@krak-stack/registry 0.1.28 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/components/ui/code-block.js +1 -5
  2. package/dist/components/ui/copy-button.js +1 -5
  3. package/dist/components/ui/data-table.d.ts +149 -45
  4. package/dist/components/ui/data-table.js +808 -768
  5. package/dist/components/ui/editing-locale-switcher.js +1 -5
  6. package/dist/components/ui/effect-form.js +1 -5
  7. package/dist/components/ui/error-component.d.ts +30 -0
  8. package/dist/components/ui/error-component.js +811 -0
  9. package/dist/components/ui/file-picker.js +1 -5
  10. package/dist/components/ui/form.js +1 -5
  11. package/dist/components/ui/google-map.js +1 -5
  12. package/dist/components/ui/icon-input.js +1 -5
  13. package/dist/components/ui/loading.js +1 -5
  14. package/dist/components/ui/locale-switcher.js +1 -5
  15. package/dist/components/ui/pagination.js +1 -5
  16. package/dist/components/ui/search-menu.js +1 -5
  17. package/dist/components/ui/sidebar-layout.js +1 -5
  18. package/dist/components/ui/stats-card.js +1 -5
  19. package/dist/components/ui/theme-switcher.js +1 -5
  20. package/dist/components/ui/virtualized-combobox.js +1 -5
  21. package/dist/lib/docs.js +1 -5
  22. package/dist/lib/docs.server.js +1 -2
  23. package/dist/lib/documentation-toolkit.js +1 -2
  24. package/dist/lib/utils.d.ts +1 -2
  25. package/dist/services/agent/client/index.js +3 -5
  26. package/dist/services/agent/index.d.ts +4 -0
  27. package/dist/services/agent/index.js +1 -1
  28. package/dist/services/agent/schema.d.ts +6 -0
  29. package/dist/services/agent/schema.js +1 -0
  30. package/dist/services/notification/client/index.js +1 -5
  31. package/dist/services/notification/public.js +1 -5
  32. package/package.json +7 -4
@@ -14,11 +14,7 @@ import { useRender } from "@base-ui/react/use-render";
14
14
  import { cva as cva2 } from "class-variance-authority";
15
15
 
16
16
  // ../../src/lib/utils.ts
17
- import { clsx } from "clsx";
18
- import { twMerge } from "tailwind-merge";
19
- function cn(...inputs) {
20
- return twMerge(clsx(inputs));
21
- }
17
+ import { cn } from "cn";
22
18
 
23
19
  // ../../src/components/ui/button.tsx
24
20
  import { Button as ButtonPrimitive } from "@base-ui/react/button";
@@ -2,11 +2,7 @@
2
2
  import { Select as SelectPrimitive } from "@base-ui/react/select";
3
3
 
4
4
  // ../../src/lib/utils.ts
5
- import { clsx } from "clsx";
6
- import { twMerge } from "tailwind-merge";
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
5
+ import { cn } from "cn";
10
6
 
11
7
  // ../../src/components/ui/select.tsx
12
8
  import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
@@ -4,11 +4,7 @@ import { useEffect, useEffectEvent, useRef, useState } from "react";
4
4
  import { Schema } from "effect";
5
5
 
6
6
  // ../../src/lib/utils.ts
7
- import { clsx } from "clsx";
8
- import { twMerge } from "tailwind-merge";
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
7
+ import { cn } from "cn";
12
8
 
13
9
  // ../../src/paraglide/runtime.js
14
10
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -17,11 +17,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
17
17
  import { cva } from "class-variance-authority";
18
18
 
19
19
  // ../../src/lib/utils.ts
20
- import { clsx } from "clsx";
21
- import { twMerge } from "tailwind-merge";
22
- function cn(...inputs) {
23
- return twMerge(clsx(inputs));
24
- }
20
+ import { cn } from "cn";
25
21
 
26
22
  // ../../src/components/ui/button.tsx
27
23
  import { jsx } from "react/jsx-runtime";
@@ -2,11 +2,7 @@
2
2
  import { Loader2 } from "lucide-react";
3
3
 
4
4
  // ../../src/lib/utils.ts
5
- import { clsx } from "clsx";
6
- import { twMerge } from "tailwind-merge";
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
5
+ import { cn } from "cn";
10
6
 
11
7
  // ../../src/paraglide/runtime.js
12
8
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -439,11 +439,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
439
439
  import { cva } from "class-variance-authority";
440
440
 
441
441
  // ../../src/lib/utils.ts
442
- import { clsx } from "clsx";
443
- import { twMerge } from "tailwind-merge";
444
- function cn(...inputs) {
445
- return twMerge(clsx(inputs));
446
- }
442
+ import { cn } from "cn";
447
443
 
448
444
  // ../../src/components/ui/button.tsx
449
445
  import { jsx } from "react/jsx-runtime";
@@ -12,11 +12,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
12
12
  import { cva } from "class-variance-authority";
13
13
 
14
14
  // ../../src/lib/utils.ts
15
- import { clsx } from "clsx";
16
- import { twMerge } from "tailwind-merge";
17
- function cn(...inputs) {
18
- return twMerge(clsx(inputs));
19
- }
15
+ import { cn } from "cn";
20
16
 
21
17
  // ../../src/components/ui/button.tsx
22
18
  import { jsx } from "react/jsx-runtime";
@@ -7,11 +7,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
7
7
  import { cva } from "class-variance-authority";
8
8
 
9
9
  // ../../src/lib/utils.ts
10
- import { clsx } from "clsx";
11
- import { twMerge } from "tailwind-merge";
12
- function cn(...inputs) {
13
- return twMerge(clsx(inputs));
14
- }
10
+ import { cn } from "cn";
15
11
 
16
12
  // ../../src/components/ui/button.tsx
17
13
  import { jsx } from "react/jsx-runtime";
@@ -10,11 +10,7 @@ import { useRender } from "@base-ui/react/use-render";
10
10
  import { cva } from "class-variance-authority";
11
11
 
12
12
  // ../../src/lib/utils.ts
13
- import { clsx } from "clsx";
14
- import { twMerge } from "tailwind-merge";
15
- function cn(...inputs) {
16
- return twMerge(clsx(inputs));
17
- }
13
+ import { cn } from "cn";
18
14
 
19
15
  // ../../src/components/ui/badge.tsx
20
16
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -5,11 +5,7 @@ import {
5
5
  } from "react";
6
6
 
7
7
  // ../../src/lib/utils.ts
8
- import { clsx } from "clsx";
9
- import { twMerge } from "tailwind-merge";
10
- function cn(...inputs) {
11
- return twMerge(clsx(inputs));
12
- }
8
+ import { cn } from "cn";
13
9
 
14
10
  // ../../src/components/ui/card.tsx
15
11
  import { jsx } from "react/jsx-runtime";
@@ -15,11 +15,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
15
15
  import { cva } from "class-variance-authority";
16
16
 
17
17
  // ../../src/lib/utils.ts
18
- import { clsx } from "clsx";
19
- import { twMerge } from "tailwind-merge";
20
- function cn(...inputs) {
21
- return twMerge(clsx(inputs));
22
- }
18
+ import { cn } from "cn";
23
19
 
24
20
  // ../../src/components/ui/button.tsx
25
21
  import { jsx } from "react/jsx-runtime";
@@ -14,11 +14,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
14
14
  import { cva } from "class-variance-authority";
15
15
 
16
16
  // ../../src/lib/utils.ts
17
- import { clsx } from "clsx";
18
- import { twMerge } from "tailwind-merge";
19
- function cn(...inputs) {
20
- return twMerge(clsx(inputs));
21
- }
17
+ import { cn } from "cn";
22
18
 
23
19
  // ../../src/components/ui/button.tsx
24
20
  import { jsx } from "react/jsx-runtime";
package/dist/lib/docs.js CHANGED
@@ -125,11 +125,7 @@ import { useRender } from "@base-ui/react/use-render";
125
125
  import { cva } from "class-variance-authority";
126
126
 
127
127
  // ../../src/lib/utils.ts
128
- import { clsx } from "clsx";
129
- import { twMerge } from "tailwind-merge";
130
- function cn(...inputs) {
131
- return twMerge(clsx(inputs));
132
- }
128
+ import { cn } from "cn";
133
129
 
134
130
  // ../../src/components/ui/badge.tsx
135
131
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -23,8 +23,7 @@ import { useRender } from "@base-ui/react/use-render";
23
23
  import { cva } from "class-variance-authority";
24
24
 
25
25
  // ../../src/lib/utils.ts
26
- import { clsx } from "clsx";
27
- import { twMerge } from "tailwind-merge";
26
+ import { cn } from "cn";
28
27
 
29
28
  // ../../src/components/ui/badge.tsx
30
29
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -23,8 +23,7 @@ import { useRender } from "@base-ui/react/use-render";
23
23
  import { cva } from "class-variance-authority";
24
24
 
25
25
  // ../../src/lib/utils.ts
26
- import { clsx } from "clsx";
27
- import { twMerge } from "tailwind-merge";
26
+ import { cn } from "cn";
28
27
 
29
28
  // ../../src/components/ui/badge.tsx
30
29
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -1,2 +1 @@
1
- import type { ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
1
+ export { cn } from "cn";
@@ -71,6 +71,7 @@ var reduceAgentEvent = (state, event) => {
71
71
  return { ...state, history: event.value };
72
72
  case "error":
73
73
  return failAgentState(state, event.code);
74
+ case "heartbeat":
74
75
  case "finish":
75
76
  return state;
76
77
  }
@@ -164,11 +165,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
164
165
  import { cva } from "class-variance-authority";
165
166
 
166
167
  // ../../src/lib/utils.ts
167
- import { clsx } from "clsx";
168
- import { twMerge } from "tailwind-merge";
169
- function cn(...inputs) {
170
- return twMerge(clsx(inputs));
171
- }
168
+ import { cn } from "cn";
172
169
 
173
170
  // ../../src/components/ui/button.tsx
174
171
  import { jsx } from "react/jsx-runtime";
@@ -1567,6 +1564,7 @@ var AgentMarkdownCodeBlock = Schema2.Struct({
1567
1564
  language: Schema2.String
1568
1565
  }).annotate({ identifier: "AgentMarkdownCodeBlock" });
1569
1566
  var AgentEvent = Schema2.Union([
1567
+ Schema2.Struct({ type: Schema2.Literal("heartbeat") }),
1570
1568
  Schema2.Struct({
1571
1569
  type: Schema2.Literal("message-start"),
1572
1570
  messageId: Schema2.String
@@ -14,6 +14,8 @@ declare class AgentHistoryError extends AgentHistoryError_base {
14
14
  }
15
15
  declare const AgentService_base: Context.ServiceClass<AgentService, "AgentService", {
16
16
  stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
17
+ readonly type: "heartbeat";
18
+ } | {
17
19
  readonly type: "message-start";
18
20
  readonly messageId: string;
19
21
  } | {
@@ -68,6 +70,8 @@ declare const AgentService_base: Context.ServiceClass<AgentService, "AgentServic
68
70
  }> & {
69
71
  readonly make: Effect.Effect<{
70
72
  stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
73
+ readonly type: "heartbeat";
74
+ } | {
71
75
  readonly type: "message-start";
72
76
  readonly messageId: string;
73
77
  } | {
@@ -289,7 +289,7 @@ class AgentService extends Context.Service()("AgentService", {
289
289
  type: "error",
290
290
  code: "stream-failed"
291
291
  }, { type: "finish" })))));
292
- return Stream.concat(Stream.succeed({ type: "message-start", messageId }), response);
292
+ return Stream.concat(Stream.succeed({ type: "message-start", messageId }), response).pipe(Stream.merge(Stream.tick("5 seconds").pipe(Stream.drop(1), Stream.map(() => ({ type: "heartbeat" }))), { haltStrategy: "left" }), Stream.takeUntil((event) => event.type === "finish"));
293
293
  });
294
294
  return { stream };
295
295
  })
@@ -28,6 +28,8 @@ export declare const AgentMarkdownCodeBlock: Schema.Struct<{
28
28
  readonly language: Schema.String;
29
29
  }>;
30
30
  export declare const AgentEvent: Schema.Union<readonly [Schema.Struct<{
31
+ readonly type: Schema.Literal<"heartbeat">;
32
+ }>, Schema.Struct<{
31
33
  readonly type: Schema.Literal<"message-start">;
32
34
  readonly messageId: Schema.String;
33
35
  }>, Schema.Struct<{
@@ -99,6 +101,8 @@ export declare const makeAgentApiGroup: <const Resource extends Schema.Top>(reso
99
101
  }>>;
100
102
  readonly history: Schema.optional<Schema.String>;
101
103
  }>>, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Struct<{
104
+ readonly type: Schema.Literal<"heartbeat">;
105
+ }>, Schema.Struct<{
102
106
  readonly type: Schema.Literal<"message-start">;
103
107
  readonly messageId: Schema.String;
104
108
  }>, Schema.Struct<{
@@ -144,6 +148,8 @@ export declare const makeAgentApiGroup: <const Resource extends Schema.Top>(reso
144
148
  }>]>>, Schema.Struct<{
145
149
  readonly code: Schema.Literals<readonly ["unavailable", "stream-failed"]>;
146
150
  }>, {
151
+ readonly type: "heartbeat";
152
+ } | {
147
153
  readonly type: "message-start";
148
154
  readonly messageId: string;
149
155
  } | {
@@ -48,6 +48,7 @@ var AgentMarkdownCodeBlock = Schema.Struct({
48
48
  language: Schema.String
49
49
  }).annotate({ identifier: "AgentMarkdownCodeBlock" });
50
50
  var AgentEvent = Schema.Union([
51
+ Schema.Struct({ type: Schema.Literal("heartbeat") }),
51
52
  Schema.Struct({
52
53
  type: Schema.Literal("message-start"),
53
54
  messageId: Schema.String
@@ -16,11 +16,7 @@ import { useRender } from "@base-ui/react/use-render";
16
16
  import { cva } from "class-variance-authority";
17
17
 
18
18
  // ../../src/lib/utils.ts
19
- import { clsx } from "clsx";
20
- import { twMerge } from "tailwind-merge";
21
- function cn(...inputs) {
22
- return twMerge(clsx(inputs));
23
- }
19
+ import { cn } from "cn";
24
20
 
25
21
  // ../../src/components/ui/badge.tsx
26
22
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -109,11 +109,7 @@ import { useRender } from "@base-ui/react/use-render";
109
109
  import { cva } from "class-variance-authority";
110
110
 
111
111
  // ../../src/lib/utils.ts
112
- import { clsx } from "clsx";
113
- import { twMerge } from "tailwind-merge";
114
- function cn(...inputs) {
115
- return twMerge(clsx(inputs));
116
- }
112
+ import { cn } from "cn";
117
113
 
118
114
  // ../../src/components/ui/badge.tsx
119
115
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -99,6 +99,10 @@
99
99
  "types": "./dist/components/ui/effect-form.d.ts",
100
100
  "import": "./dist/components/ui/effect-form.js"
101
101
  },
102
+ "./error-component": {
103
+ "types": "./dist/components/ui/error-component.d.ts",
104
+ "import": "./dist/components/ui/error-component.js"
105
+ },
102
106
  "./file-picker": {
103
107
  "types": "./dist/components/ui/file-picker.d.ts",
104
108
  "import": "./dist/components/ui/file-picker.js"
@@ -235,14 +239,13 @@
235
239
  "@tanstack/react-virtual": "^3.14.5",
236
240
  "@xberg-io/xberg": "1.0.14",
237
241
  "class-variance-authority": "^0.7.1",
238
- "clsx": "^2.1.1",
239
242
  "cmdk": "^1.1.1",
243
+ "cn": "^0.3.0",
240
244
  "drizzle-orm": "^1.0.0-rc.4-5d5b77c",
241
245
  "effect": "4.0.0-rc.112",
242
246
  "lucide-react": "^1.18.0",
243
247
  "react": "^19.2.0",
244
- "react-dom": "^19.2.0",
245
- "tailwind-merge": "^3.6.0"
248
+ "react-dom": "^19.2.0"
246
249
  },
247
250
  "peerDependenciesMeta": {
248
251
  "@aws-sdk/client-sesv2": {