@krak-stack/registry 0.1.61 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/components/ui/app-brand.js +17 -17
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/color-picker.d.ts +30 -0
- package/dist/components/ui/color-picker.js +386 -0
- package/dist/components/ui/copy-button.js +4 -4
- package/dist/components/ui/data-table.js +468 -455
- package/dist/components/ui/editing-locale-switcher.js +10 -10
- package/dist/components/ui/effect-form.js +186 -185
- package/dist/components/ui/error-component.js +10 -18
- package/dist/components/ui/file-picker.js +2 -2
- package/dist/components/ui/form.d.ts +131 -335
- package/dist/components/ui/form.js +137 -136
- package/dist/components/ui/google-map.js +38 -6
- package/dist/components/ui/icon-input.js +48 -45
- package/dist/components/ui/krakstack-provider.js +2 -2
- package/dist/components/ui/locale-switcher.js +4 -4
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/search-menu.js +2 -2
- package/dist/components/ui/sidebar-layout.js +82 -80
- package/dist/components/ui/theme-switcher.js +6 -6
- package/dist/components/ui/virtualized-combobox.js +34 -31
- package/dist/lib/docs.d.ts +2 -2
- package/dist/lib/docs.js +187 -185
- package/dist/lib/docs.server.js +45 -23
- package/dist/lib/documentation-toolkit.d.ts +2 -2
- package/dist/lib/documentation-toolkit.js +45 -23
- package/dist/lib/httpapi-adapter.d.ts +11 -3
- package/dist/lib/httpapi-adapter.js +42 -15
- package/dist/lib/httpapi-cli.d.ts +13 -4
- package/dist/lib/httpapi-cli.js +70 -28
- package/dist/lib/httpapi-toolkit.js +40 -13
- package/dist/lib/query.d.ts +4 -4
- package/dist/lib/query.js +13 -13
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +7 -7
- package/dist/oxlint/anti-slop/index.js +2 -2
- package/dist/services/agent/client/index.js +155 -153
- package/dist/services/agent/index.js +3 -3
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/events/browser.js +38 -23
- package/dist/services/events/client/audit-log-table.js +472 -459
- package/dist/services/events/client/tracking-notice.js +9 -4
- package/dist/services/events/index.d.ts +3 -1
- package/dist/services/events/index.js +79 -74
- package/dist/services/events/migrations.js +2 -2
- package/dist/services/events/record.js +2 -2
- package/dist/services/events/schema.d.ts +18 -10
- package/dist/services/events/schema.js +42 -42
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.d.ts +3 -1
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/api.builder.d.ts +8 -8
- package/dist/services/health/api.group.d.ts +8 -8
- package/dist/services/health/index.d.ts +10 -6
- package/dist/services/health/index.js +17 -13
- package/dist/services/health/schema.d.ts +7 -7
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +3 -3
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +8 -8
- package/dist/services/notification/schema.d.ts +3 -1
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/opentelemetry/api.js +7 -5
- package/dist/services/opentelemetry/browser.js +9 -9
- package/dist/services/opentelemetry/index.js +2 -2
- package/dist/services/opentelemetry/processor.d.ts +3 -1
- package/dist/services/opentelemetry/web-vitals.js +12 -7
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.d.ts +3 -1
- package/dist/services/s3/schema.js +2 -2
- package/dist/services/speech/api.js +3 -1
- package/dist/services/speech/index.js +15 -8
- package/dist/services/speech/schema.d.ts +3 -1
- package/dist/services/speech/schema.js +12 -10
- package/dist/services/webhooks/client/delivery-table.js +506 -493
- package/dist/services/webhooks/http-client.js +5 -5
- package/dist/services/webhooks/index.js +47 -47
- package/dist/services/webhooks/migrations.js +5 -5
- package/dist/services/webhooks/receiver.d.ts +6 -2
- package/dist/services/webhooks/schema.d.ts +7 -5
- package/dist/services/webhooks/schema.js +22 -22
- package/dist/services/webhooks/url.js +5 -5
- package/package.json +6 -1
|
@@ -72,10 +72,13 @@ function Input({ className, type, ...props }) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
// ../../src/components/ui/
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
227
|
+
return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
|
|
225
228
|
className: "contents",
|
|
226
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
248
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
|
|
246
249
|
className: "min-w-0 truncate",
|
|
247
250
|
children: entry.item.label
|
|
248
251
|
}),
|
|
249
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
|
|
250
253
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
251
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
274
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
285
|
+
/* @__PURE__ */ jsx5("div", {
|
|
283
286
|
className: "min-w-0 shrink-0 p-1 pb-0",
|
|
284
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
289
|
+
children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
|
|
287
290
|
placeholder: labels.search,
|
|
288
|
-
render: /* @__PURE__ */
|
|
291
|
+
render: /* @__PURE__ */ jsx5(InputGroupInput, {})
|
|
289
292
|
})
|
|
290
293
|
})
|
|
291
294
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
431
|
+
return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
|
|
429
432
|
...props,
|
|
430
433
|
locale
|
|
431
|
-
}) : /* @__PURE__ */
|
|
434
|
+
}) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
|
|
432
435
|
...props,
|
|
433
436
|
locale
|
|
434
437
|
});
|
|
435
438
|
}
|
|
436
439
|
export {
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
virtualizedComboboxMessages,
|
|
441
|
+
VirtualizedCombobox
|
|
439
442
|
};
|
package/dist/lib/docs.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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"]>;
|