@krak-stack/registry 0.2.0 → 0.2.2

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 (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/ui/app-brand.js +17 -17
  3. package/dist/components/ui/code-block.js +6 -6
  4. package/dist/components/ui/color-picker.js +26 -28
  5. package/dist/components/ui/copy-button.js +4 -4
  6. package/dist/components/ui/data-table.js +441 -442
  7. package/dist/components/ui/editing-locale-switcher.js +10 -10
  8. package/dist/components/ui/effect-form.js +185 -186
  9. package/dist/components/ui/error-component.js +6 -6
  10. package/dist/components/ui/file-picker.js +2 -2
  11. package/dist/components/ui/form.d.ts +5 -5
  12. package/dist/components/ui/form.js +138 -139
  13. package/dist/components/ui/google-map.js +2 -2
  14. package/dist/components/ui/icon-input.js +47 -50
  15. package/dist/components/ui/krakstack-provider.js +2 -2
  16. package/dist/components/ui/locale-switcher.js +4 -4
  17. package/dist/components/ui/pagination.js +2 -2
  18. package/dist/components/ui/search-menu.js +2 -2
  19. package/dist/components/ui/sidebar-layout.js +67 -72
  20. package/dist/components/ui/theme-switcher.js +6 -6
  21. package/dist/components/ui/virtualized-combobox.js +33 -36
  22. package/dist/lib/docs.js +166 -171
  23. package/dist/lib/docs.server.js +18 -40
  24. package/dist/lib/documentation-toolkit.js +19 -41
  25. package/dist/lib/httpapi-adapter.js +2 -2
  26. package/dist/lib/httpapi-cli.js +7 -7
  27. package/dist/lib/query.js +11 -11
  28. package/dist/lib/seo.js +2 -2
  29. package/dist/lib/webfetch-toolkit.js +6 -6
  30. package/dist/oxlint/anti-slop/index.js +2 -2
  31. package/dist/services/agent/client/index.js +153 -155
  32. package/dist/services/agent/index.js +2 -2
  33. package/dist/services/agent/schema.js +5 -5
  34. package/dist/services/events/browser.js +6 -6
  35. package/dist/services/events/client/audit-log-table.js +445 -446
  36. package/dist/services/events/index.js +59 -59
  37. package/dist/services/events/migrations.js +2 -2
  38. package/dist/services/events/record.js +2 -2
  39. package/dist/services/events/schema.js +39 -39
  40. package/dist/services/file-extraction/index.js +4 -4
  41. package/dist/services/file-extraction/schema.js +2 -2
  42. package/dist/services/health/index.js +9 -9
  43. package/dist/services/notification/channels/ses/index.js +2 -2
  44. package/dist/services/notification/channels/ses/schema.js +2 -2
  45. package/dist/services/notification/client/index.js +5 -5
  46. package/dist/services/notification/index.js +2 -2
  47. package/dist/services/notification/persistence/drizzle.js +2 -2
  48. package/dist/services/notification/persistence/index.js +15 -15
  49. package/dist/services/notification/persistence/schema.js +12 -12
  50. package/dist/services/notification/public.js +7 -7
  51. package/dist/services/notification/schema.js +2 -2
  52. package/dist/services/opentelemetry/api.js +2 -2
  53. package/dist/services/opentelemetry/browser.js +7 -7
  54. package/dist/services/opentelemetry/web-vitals.js +2 -2
  55. package/dist/services/s3/index.js +2 -2
  56. package/dist/services/s3/schema.js +2 -2
  57. package/dist/services/speech/schema.js +9 -9
  58. package/dist/services/webhooks/client/delivery-table.js +479 -480
  59. package/dist/services/webhooks/http-client.js +5 -5
  60. package/dist/services/webhooks/index.js +34 -34
  61. package/dist/services/webhooks/migrations.js +5 -5
  62. package/dist/services/webhooks/schema.js +20 -20
  63. package/dist/services/webhooks/url.js +5 -5
  64. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @krak-stack/registry
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Prevent virtualized combobox group headings from collapsing into options after asynchronous search results refresh.
8
+
9
+ ## 0.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Keep the color picker panel full-width inside its popup, with even padding and a HEX value centered beneath it. Prevent react-colorful's injected styles from overriding panel, hue slider, and pointer dimensions.
14
+
3
15
  ## 0.2.0
4
16
 
5
17
  ### Minor Changes
@@ -53,38 +53,38 @@ function AppBrand(brandProps) {
53
53
  ].filter(Boolean).join(" ");
54
54
  if (isStaticBrand(brandProps)) {
55
55
  const {
56
- className: _className2,
57
- label: _label2,
58
- subtitle: _subtitle2,
59
- icon: _icon2,
60
- imageSrc: _imageSrc2,
61
- variant: _variant2,
56
+ className: _className,
57
+ label: _label,
58
+ subtitle: _subtitle,
59
+ icon: _icon,
60
+ imageSrc: _imageSrc,
61
+ variant: _variant,
62
62
  to: _to,
63
- href: _href2,
64
- ...props2
63
+ href: _href,
64
+ ...props
65
65
  } = brandProps;
66
66
  return /* @__PURE__ */ jsx("div", {
67
67
  className: brandClassName,
68
- ...props2,
68
+ ...props,
69
69
  children: content
70
70
  });
71
71
  }
72
72
  if (isAnchorBrand(brandProps)) {
73
73
  const {
74
- className: _className2,
75
- label: _label2,
76
- subtitle: _subtitle2,
77
- icon: _icon2,
78
- imageSrc: _imageSrc2,
79
- variant: _variant2,
74
+ className: _className,
75
+ label: _label,
76
+ subtitle: _subtitle,
77
+ icon: _icon,
78
+ imageSrc: _imageSrc,
79
+ variant: _variant,
80
80
  to: _to,
81
81
  href,
82
- ...props2
82
+ ...props
83
83
  } = brandProps;
84
84
  return /* @__PURE__ */ jsx("a", {
85
85
  className: brandClassName,
86
86
  href,
87
- ...props2,
87
+ ...props,
88
88
  children: content
89
89
  });
90
90
  }
@@ -65,7 +65,7 @@ function CopyButton({
65
65
  valueDescription,
66
66
  copyVariant = "default",
67
67
  locale: localeOverride,
68
- messages: messages2,
68
+ messages,
69
69
  onCopied,
70
70
  onCopyError,
71
71
  resetDelay = 1500,
@@ -77,7 +77,7 @@ function CopyButton({
77
77
  const locale = useKrakstackLocale(localeOverride);
78
78
  const [copyState, setCopyState] = useState("idle");
79
79
  const copyTimeout = useRef(undefined);
80
- const labels = copyButtonMessages(locale, messages2);
80
+ const labels = copyButtonMessages(locale, messages);
81
81
  const accessibleLabel = ariaLabel ?? (valueDescription ? `${labels.copy} ${valueDescription}` : labels.copy);
82
82
  const isLarge = copyVariant === "large";
83
83
  const defaultSize = copyVariant === "sm" ? "icon-xs" : isLarge ? "sm" : "icon-sm";
@@ -179,12 +179,12 @@ function CodeBlock({
179
179
  code,
180
180
  language = "text",
181
181
  locale: localeOverride,
182
- messages: messages3
182
+ messages
183
183
  }) {
184
184
  const locale = useKrakstackLocale2(localeOverride);
185
185
  const normalizedLanguage = language.toLowerCase() || "text";
186
186
  const highlighted = highlight(code, { lang: normalizedLanguage });
187
- const labels = codeBlockMessages(locale, messages3);
187
+ const labels = codeBlockMessages(locale, messages);
188
188
  return /* @__PURE__ */ jsxs2("div", {
189
189
  className: "not-prose bg-muted overflow-hidden rounded-md border text-[var(--th-token)]",
190
190
  "data-code-theme": true,
@@ -216,6 +216,6 @@ function CodeBlock({
216
216
  });
217
217
  }
218
218
  export {
219
- codeBlockMessages,
220
- CodeBlock
219
+ CodeBlock,
220
+ codeBlockMessages
221
221
  };
@@ -66,13 +66,10 @@ function Input({ className, type, ...props }) {
66
66
  });
67
67
  }
68
68
 
69
- // ../../src/components/ui/textarea.tsx
70
- import { jsx as jsx3 } from "react/jsx-runtime";
71
-
72
69
  // ../../src/components/ui/input-group.tsx
73
- import { jsx as jsx4 } from "react/jsx-runtime";
70
+ import { jsx as jsx3 } from "react/jsx-runtime";
74
71
  function InputGroup({ className, ...props }) {
75
- return /* @__PURE__ */ jsx4("div", {
72
+ return /* @__PURE__ */ jsx3("div", {
76
73
  "data-slot": "input-group",
77
74
  role: "group",
78
75
  className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
@@ -95,7 +92,7 @@ function InputGroupAddon({
95
92
  align = "inline-start",
96
93
  ...props
97
94
  }) {
98
- return /* @__PURE__ */ jsx4("div", {
95
+ return /* @__PURE__ */ jsx3("div", {
99
96
  role: "group",
100
97
  "data-slot": "input-group-addon",
101
98
  "data-align": align,
@@ -127,7 +124,7 @@ function InputGroupButton({
127
124
  size = "xs",
128
125
  ...props
129
126
  }) {
130
- return /* @__PURE__ */ jsx4(Button, {
127
+ return /* @__PURE__ */ jsx3(Button, {
131
128
  type,
132
129
  "data-size": size,
133
130
  variant,
@@ -139,7 +136,7 @@ function InputGroupInput({
139
136
  className,
140
137
  ...props
141
138
  }) {
142
- return /* @__PURE__ */ jsx4(Input, {
139
+ return /* @__PURE__ */ jsx3(Input, {
143
140
  "data-slot": "input-group-control",
144
141
  className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
145
142
  ...props
@@ -148,15 +145,15 @@ function InputGroupInput({
148
145
 
149
146
  // ../../src/components/ui/popover.tsx
150
147
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
151
- import { jsx as jsx5 } from "react/jsx-runtime";
148
+ import { jsx as jsx4 } from "react/jsx-runtime";
152
149
  function Popover({ ...props }) {
153
- return /* @__PURE__ */ jsx5(PopoverPrimitive.Root, {
150
+ return /* @__PURE__ */ jsx4(PopoverPrimitive.Root, {
154
151
  "data-slot": "popover",
155
152
  ...props
156
153
  });
157
154
  }
158
155
  function PopoverTrigger({ ...props }) {
159
- return /* @__PURE__ */ jsx5(PopoverPrimitive.Trigger, {
156
+ return /* @__PURE__ */ jsx4(PopoverPrimitive.Trigger, {
160
157
  "data-slot": "popover-trigger",
161
158
  ...props
162
159
  });
@@ -169,14 +166,14 @@ function PopoverContent({
169
166
  sideOffset = 4,
170
167
  ...props
171
168
  }) {
172
- return /* @__PURE__ */ jsx5(PopoverPrimitive.Portal, {
173
- children: /* @__PURE__ */ jsx5(PopoverPrimitive.Positioner, {
169
+ return /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, {
170
+ children: /* @__PURE__ */ jsx4(PopoverPrimitive.Positioner, {
174
171
  align,
175
172
  alignOffset,
176
173
  side,
177
174
  sideOffset,
178
175
  className: "isolate z-50",
179
- children: /* @__PURE__ */ jsx5(PopoverPrimitive.Popup, {
176
+ children: /* @__PURE__ */ jsx4(PopoverPrimitive.Popup, {
180
177
  "data-slot": "popover-content",
181
178
  className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
182
179
  ...props
@@ -185,7 +182,7 @@ function PopoverContent({
185
182
  });
186
183
  }
187
184
  function PopoverTitle({ className, ...props }) {
188
- return /* @__PURE__ */ jsx5(PopoverPrimitive.Title, {
185
+ return /* @__PURE__ */ jsx4(PopoverPrimitive.Title, {
189
186
  "data-slot": "popover-title",
190
187
  className: cn("font-medium", className),
191
188
  ...props
@@ -194,7 +191,7 @@ function PopoverTitle({ className, ...props }) {
194
191
 
195
192
  // ../../src/components/ui/color-picker.tsx
196
193
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
197
- import { jsx as jsx6, jsxs } from "react/jsx-runtime";
194
+ import { jsx as jsx5, jsxs } from "react/jsx-runtime";
198
195
  var HexColor = Schema.String.check(Schema.isPattern(/^#?(?:[\da-f]{3}|[\da-f]{6})$/i)).annotate({
199
196
  identifier: "HexColor"
200
197
  });
@@ -257,12 +254,13 @@ var ColorPanel = ({
257
254
  });
258
255
  return () => observer.disconnect();
259
256
  }, [copy.saturation, copy.hue, copy.saturationValue, copy.brightnessValue]);
260
- return /* @__PURE__ */ jsx6("div", {
257
+ return /* @__PURE__ */ jsx5("div", {
261
258
  ref,
262
- className: "[&_.react-colorful]:h-48 [&_.react-colorful]:w-full [&_.react-colorful__hue]:h-4 [&_.react-colorful__pointer]:size-5",
263
- children: /* @__PURE__ */ jsx6(HexColorPicker, {
259
+ className: "[&_.react-colorful__hue]:h-4! [&_.react-colorful__pointer]:size-5!",
260
+ children: /* @__PURE__ */ jsx5(HexColorPicker, {
264
261
  color,
265
- onChange
262
+ onChange,
263
+ style: { width: "100%", height: "12rem" }
266
264
  })
267
265
  });
268
266
  };
@@ -314,7 +312,7 @@ var ColorPicker = ({
314
312
  className,
315
313
  "data-disabled": disabled || undefined,
316
314
  children: [
317
- /* @__PURE__ */ jsx6(InputGroupInput, {
315
+ /* @__PURE__ */ jsx5(InputGroupInput, {
318
316
  ...inputProps,
319
317
  type: "text",
320
318
  "aria-label": ariaLabel ?? copy.input,
@@ -339,15 +337,15 @@ var ColorPicker = ({
339
337
  }
340
338
  }
341
339
  }),
342
- /* @__PURE__ */ jsx6(InputGroupAddon, {
340
+ /* @__PURE__ */ jsx5(InputGroupAddon, {
343
341
  align: "inline-end",
344
- children: /* @__PURE__ */ jsx6(PopoverTrigger, {
345
- render: /* @__PURE__ */ jsx6(InputGroupButton, {
342
+ children: /* @__PURE__ */ jsx5(PopoverTrigger, {
343
+ render: /* @__PURE__ */ jsx5(InputGroupButton, {
346
344
  "aria-label": copy.open,
347
345
  disabled: disabled || readOnly,
348
346
  size: "icon-xs"
349
347
  }),
350
- children: /* @__PURE__ */ jsx6("span", {
348
+ children: /* @__PURE__ */ jsx5("span", {
351
349
  "aria-hidden": "true",
352
350
  className: "size-5 rounded-sm border border-black/15",
353
351
  style: { backgroundColor: color }
@@ -360,11 +358,11 @@ var ColorPicker = ({
360
358
  align: "end",
361
359
  className: "w-64 max-w-[calc(100vw-2rem)] gap-3 p-3",
362
360
  children: [
363
- /* @__PURE__ */ jsx6(PopoverTitle, {
361
+ /* @__PURE__ */ jsx5(PopoverTitle, {
364
362
  className: "sr-only",
365
363
  children: copy.open
366
364
  }),
367
- /* @__PURE__ */ jsx6(ColorPanel, {
365
+ /* @__PURE__ */ jsx5(ColorPanel, {
368
366
  color,
369
367
  copy,
370
368
  onChange: (next) => {
@@ -372,7 +370,7 @@ var ColorPicker = ({
372
370
  commit(next);
373
371
  }
374
372
  }),
375
- /* @__PURE__ */ jsx6("output", {
373
+ /* @__PURE__ */ jsx5("output", {
376
374
  className: "text-muted-foreground text-center font-mono text-xs",
377
375
  children: color
378
376
  })
@@ -65,7 +65,7 @@ function CopyButton({
65
65
  valueDescription,
66
66
  copyVariant = "default",
67
67
  locale: localeOverride,
68
- messages: messages2,
68
+ messages,
69
69
  onCopied,
70
70
  onCopyError,
71
71
  resetDelay = 1500,
@@ -77,7 +77,7 @@ function CopyButton({
77
77
  const locale = useKrakstackLocale(localeOverride);
78
78
  const [copyState, setCopyState] = useState("idle");
79
79
  const copyTimeout = useRef(undefined);
80
- const labels = copyButtonMessages(locale, messages2);
80
+ const labels = copyButtonMessages(locale, messages);
81
81
  const accessibleLabel = ariaLabel ?? (valueDescription ? `${labels.copy} ${valueDescription}` : labels.copy);
82
82
  const isLarge = copyVariant === "large";
83
83
  const defaultSize = copyVariant === "sm" ? "icon-xs" : isLarge ? "sm" : "icon-sm";
@@ -133,6 +133,6 @@ function CopyButton({
133
133
  });
134
134
  }
135
135
  export {
136
- copyButtonMessages,
137
- CopyButton
136
+ CopyButton,
137
+ copyButtonMessages
138
138
  };