@krak-stack/registry 0.1.60 → 0.2.0

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 (93) hide show
  1. package/CHANGELOG.md +15 -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.d.ts +30 -0
  5. package/dist/components/ui/color-picker.js +386 -0
  6. package/dist/components/ui/copy-button.js +4 -4
  7. package/dist/components/ui/data-table.js +468 -455
  8. package/dist/components/ui/editing-locale-switcher.js +10 -10
  9. package/dist/components/ui/effect-form.js +186 -185
  10. package/dist/components/ui/error-component.js +10 -18
  11. package/dist/components/ui/file-picker.js +2 -2
  12. package/dist/components/ui/form.d.ts +131 -335
  13. package/dist/components/ui/form.js +137 -136
  14. package/dist/components/ui/google-map.js +38 -6
  15. package/dist/components/ui/icon-input.js +48 -45
  16. package/dist/components/ui/krakstack-provider.js +2 -2
  17. package/dist/components/ui/locale-switcher.js +4 -4
  18. package/dist/components/ui/pagination.js +2 -2
  19. package/dist/components/ui/search-menu.js +2 -2
  20. package/dist/components/ui/sidebar-layout.js +82 -80
  21. package/dist/components/ui/theme-switcher.js +6 -6
  22. package/dist/components/ui/virtualized-combobox.js +34 -31
  23. package/dist/lib/docs.d.ts +2 -2
  24. package/dist/lib/docs.js +187 -185
  25. package/dist/lib/docs.server.js +45 -23
  26. package/dist/lib/documentation-toolkit.d.ts +2 -2
  27. package/dist/lib/documentation-toolkit.js +45 -23
  28. package/dist/lib/httpapi-adapter.d.ts +11 -3
  29. package/dist/lib/httpapi-adapter.js +42 -15
  30. package/dist/lib/httpapi-cli.d.ts +13 -4
  31. package/dist/lib/httpapi-cli.js +70 -28
  32. package/dist/lib/httpapi-toolkit.js +40 -13
  33. package/dist/lib/query.d.ts +4 -4
  34. package/dist/lib/query.js +13 -13
  35. package/dist/lib/seo.js +2 -2
  36. package/dist/lib/webfetch-toolkit.js +7 -7
  37. package/dist/oxlint/anti-slop/index.js +2 -2
  38. package/dist/services/agent/client/index.js +155 -153
  39. package/dist/services/agent/index.js +3 -3
  40. package/dist/services/agent/schema.js +5 -5
  41. package/dist/services/events/browser.js +38 -23
  42. package/dist/services/events/client/audit-log-table.js +472 -459
  43. package/dist/services/events/client/tracking-notice.js +9 -4
  44. package/dist/services/events/index.d.ts +3 -1
  45. package/dist/services/events/index.js +79 -74
  46. package/dist/services/events/migrations.js +2 -2
  47. package/dist/services/events/record.js +2 -2
  48. package/dist/services/events/schema.d.ts +18 -10
  49. package/dist/services/events/schema.js +42 -42
  50. package/dist/services/file-extraction/index.js +4 -4
  51. package/dist/services/file-extraction/schema.d.ts +3 -1
  52. package/dist/services/file-extraction/schema.js +2 -2
  53. package/dist/services/health/api.builder.d.ts +8 -8
  54. package/dist/services/health/api.group.d.ts +8 -8
  55. package/dist/services/health/index.d.ts +10 -6
  56. package/dist/services/health/index.js +17 -13
  57. package/dist/services/health/schema.d.ts +7 -7
  58. package/dist/services/notification/channels/ses/index.js +2 -2
  59. package/dist/services/notification/channels/ses/schema.js +2 -2
  60. package/dist/services/notification/client/index.js +5 -5
  61. package/dist/services/notification/index.js +3 -3
  62. package/dist/services/notification/persistence/drizzle.js +2 -2
  63. package/dist/services/notification/persistence/index.js +15 -15
  64. package/dist/services/notification/persistence/schema.js +12 -12
  65. package/dist/services/notification/public.js +8 -8
  66. package/dist/services/notification/schema.d.ts +3 -1
  67. package/dist/services/notification/schema.js +2 -2
  68. package/dist/services/opentelemetry/api.js +7 -5
  69. package/dist/services/opentelemetry/browser.js +9 -9
  70. package/dist/services/opentelemetry/index.js +2 -2
  71. package/dist/services/opentelemetry/processor.d.ts +3 -1
  72. package/dist/services/opentelemetry/web-vitals.js +12 -7
  73. package/dist/services/s3/index.js +2 -2
  74. package/dist/services/s3/schema.d.ts +3 -1
  75. package/dist/services/s3/schema.js +2 -2
  76. package/dist/services/speech/api.js +3 -1
  77. package/dist/services/speech/index.js +15 -8
  78. package/dist/services/speech/schema.d.ts +3 -1
  79. package/dist/services/speech/schema.js +12 -10
  80. package/dist/services/webhooks/client/delivery-table.d.ts +62 -0
  81. package/dist/services/webhooks/client/delivery-table.js +4711 -0
  82. package/dist/services/webhooks/http-client.d.ts +1 -0
  83. package/dist/services/webhooks/http-client.js +17 -5
  84. package/dist/services/webhooks/index.d.ts +2 -0
  85. package/dist/services/webhooks/index.js +249 -114
  86. package/dist/services/webhooks/migrations.d.ts +3 -0
  87. package/dist/services/webhooks/migrations.js +21 -2
  88. package/dist/services/webhooks/receiver.d.ts +45 -0
  89. package/dist/services/webhooks/schema.d.ts +15 -5
  90. package/dist/services/webhooks/schema.js +41 -21
  91. package/dist/services/webhooks/url.d.ts +5 -0
  92. package/dist/services/webhooks/url.js +18 -2
  93. package/package.json +10 -1
@@ -72,10 +72,13 @@ function Input({ className, type, ...props }) {
72
72
  });
73
73
  }
74
74
 
75
- // ../../src/components/ui/input-group.tsx
75
+ // ../../src/components/ui/textarea.tsx
76
76
  import { jsx as jsx3 } from "react/jsx-runtime";
77
+
78
+ // ../../src/components/ui/input-group.tsx
79
+ import { jsx as jsx4 } from "react/jsx-runtime";
77
80
  function InputGroup({ className, ...props }) {
78
- return /* @__PURE__ */ jsx3("div", {
81
+ return /* @__PURE__ */ jsx4("div", {
79
82
  "data-slot": "input-group",
80
83
  role: "group",
81
84
  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),
@@ -108,7 +111,7 @@ function InputGroupInput({
108
111
  className,
109
112
  ...props
110
113
  }) {
111
- return /* @__PURE__ */ jsx3(Input, {
114
+ return /* @__PURE__ */ jsx4(Input, {
112
115
  "data-slot": "input-group-control",
113
116
  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),
114
117
  ...props
@@ -117,7 +120,7 @@ function InputGroupInput({
117
120
 
118
121
  // ../../src/components/ui/virtualized-combobox.tsx
119
122
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider";
120
- import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
123
+ import { jsx as jsx5, jsxs, Fragment } from "react/jsx-runtime";
121
124
  "use client";
122
125
  var messages = {
123
126
  en: {
@@ -196,11 +199,11 @@ var VirtualizedComboboxList = ({
196
199
  }, [virtualizer]);
197
200
  return /* @__PURE__ */ jsxs(Fragment, {
198
201
  children: [
199
- filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
202
+ filteredItems.length === 0 && /* @__PURE__ */ jsx5("div", {
200
203
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
201
204
  children: emptyLabel
202
205
  }),
203
- /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
206
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
204
207
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
205
208
  hidden: filteredItems.length === 0,
206
209
  ref: handleScrollElementRef,
@@ -208,7 +211,7 @@ var VirtualizedComboboxList = ({
208
211
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
209
212
  maxHeight: "var(--available-height)"
210
213
  },
211
- children: /* @__PURE__ */ jsx4("div", {
214
+ children: /* @__PURE__ */ jsx5("div", {
212
215
  className: "relative w-full",
213
216
  role: "presentation",
214
217
  style: { height: virtualizer.getTotalSize() },
@@ -221,9 +224,9 @@ var VirtualizedComboboxList = ({
221
224
  transform: `translateY(${virtualItem.start}px)`
222
225
  };
223
226
  if (entry.kind === "group") {
224
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
227
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
225
228
  className: "contents",
226
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
229
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
227
230
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
228
231
  "data-index": virtualItem.index,
229
232
  ref: virtualizer.measureElement,
@@ -242,13 +245,13 @@ var VirtualizedComboboxList = ({
242
245
  style,
243
246
  value: entry.item,
244
247
  children: [
245
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
248
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
246
249
  className: "min-w-0 truncate",
247
250
  children: entry.item.label
248
251
  }),
249
- /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
252
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
250
253
  className: "absolute right-2 flex size-4 items-center justify-center",
251
- children: /* @__PURE__ */ jsx4(Check, {})
254
+ children: /* @__PURE__ */ jsx5(Check, {})
252
255
  })
253
256
  ]
254
257
  }, entry.item.value);
@@ -270,8 +273,8 @@ var VirtualizedComboboxContent = ({
270
273
  virtualizerRef
271
274
  }) => {
272
275
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
273
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
274
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
276
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
277
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
275
278
  align: "start",
276
279
  className: "isolate z-50",
277
280
  side: "bottom",
@@ -279,17 +282,17 @@ var VirtualizedComboboxContent = ({
279
282
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
280
283
  className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-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-in-95", contentClassName),
281
284
  children: [
282
- /* @__PURE__ */ jsx4("div", {
285
+ /* @__PURE__ */ jsx5("div", {
283
286
  className: "min-w-0 shrink-0 p-1 pb-0",
284
- children: /* @__PURE__ */ jsx4(InputGroup, {
287
+ children: /* @__PURE__ */ jsx5(InputGroup, {
285
288
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
286
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
289
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
287
290
  placeholder: labels.search,
288
- render: /* @__PURE__ */ jsx4(InputGroupInput, {})
291
+ render: /* @__PURE__ */ jsx5(InputGroupInput, {})
289
292
  })
290
293
  })
291
294
  }),
292
- /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
295
+ /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
293
296
  emptyLabel,
294
297
  groupSelections,
295
298
  itemIndexRef,
@@ -313,20 +316,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
313
316
  type: "button",
314
317
  variant: "outline",
315
318
  children: [
316
- /* @__PURE__ */ jsx4("span", {
319
+ /* @__PURE__ */ jsx5("span", {
317
320
  className: "min-w-0 flex-1 truncate pr-7 text-left",
318
321
  children: label
319
322
  }),
320
- /* @__PURE__ */ jsx4(ChevronsUpDown, {
323
+ /* @__PURE__ */ jsx5(ChevronsUpDown, {
321
324
  className: "text-muted-foreground shrink-0 opacity-70"
322
325
  })
323
326
  ]
324
327
  });
325
- var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
328
+ var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
326
329
  "aria-label": label,
327
330
  className: "text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute top-1/2 right-7 z-10 flex size-6 -translate-y-1/2 items-center justify-center rounded-sm outline-none focus-visible:border focus-visible:ring-3",
328
331
  type: "button",
329
- children: /* @__PURE__ */ jsx4(X, {
332
+ children: /* @__PURE__ */ jsx5(X, {
330
333
  className: "size-3.5"
331
334
  })
332
335
  });
@@ -365,13 +368,13 @@ var VirtualizedComboboxSingle = (props) => {
365
368
  /* @__PURE__ */ jsxs("div", {
366
369
  className: "relative",
367
370
  children: [
368
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
371
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
369
372
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
370
373
  }),
371
374
  props.trigger ? null : defaultClear(labels.clear)
372
375
  ]
373
376
  }),
374
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
377
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
375
378
  ...props,
376
379
  groupSelections: false,
377
380
  itemIndexRef,
@@ -407,13 +410,13 @@ var VirtualizedComboboxMultiple = (props) => {
407
410
  /* @__PURE__ */ jsxs("div", {
408
411
  className: "relative",
409
412
  children: [
410
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
413
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
411
414
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
412
415
  }),
413
416
  props.trigger ? null : defaultClear(labels.clear)
414
417
  ]
415
418
  }),
416
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
419
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
417
420
  ...props,
418
421
  groupSelections: true,
419
422
  itemIndexRef,
@@ -425,15 +428,15 @@ var VirtualizedComboboxMultiple = (props) => {
425
428
  };
426
429
  function VirtualizedCombobox(props) {
427
430
  const locale = useKrakstackLocale(props.locale);
428
- return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
431
+ return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
429
432
  ...props,
430
433
  locale
431
- }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
434
+ }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
432
435
  ...props,
433
436
  locale
434
437
  });
435
438
  }
436
439
  export {
437
- VirtualizedCombobox,
438
- virtualizedComboboxMessages
440
+ virtualizedComboboxMessages,
441
+ VirtualizedCombobox
439
442
  };
@@ -17,7 +17,7 @@ export declare const DocsFrontmatter: Schema.Struct<{
17
17
  readonly title: Schema.String;
18
18
  readonly description: Schema.String;
19
19
  readonly icon: Schema.optional<Schema.String>;
20
- readonly order: Schema.Number;
20
+ readonly order: Schema.Finite;
21
21
  readonly locale: Schema.String;
22
22
  readonly section: Schema.String;
23
23
  readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
@@ -42,7 +42,7 @@ export declare const DocsPageSchema: Schema.Struct<{
42
42
  readonly title: Schema.String;
43
43
  readonly description: Schema.String;
44
44
  readonly icon: Schema.optional<Schema.String>;
45
- readonly order: Schema.Number;
45
+ readonly order: Schema.Finite;
46
46
  readonly locale: Schema.String;
47
47
  readonly section: Schema.String;
48
48
  readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;