@krak-stack/registry 0.1.25 → 0.1.27
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/components/ui/data-table.js +212 -207
- package/dist/components/ui/effect-form.js +170 -169
- package/dist/components/ui/form.js +113 -112
- package/dist/components/ui/icon-input.js +43 -40
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/sidebar-layout.d.ts +5 -2
- package/dist/components/ui/sidebar-layout.js +88 -80
- package/dist/components/ui/theme-switcher.js +3 -3
- package/dist/components/ui/virtualized-combobox.js +34 -31
- package/dist/lib/docs.d.ts +3 -1
- package/dist/lib/docs.js +181 -162
- package/dist/lib/docs.server.js +62 -36
- package/dist/lib/documentation-toolkit.js +63 -37
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.js +11 -11
- package/dist/lib/httpapi-mcp.js +2 -2
- package/dist/lib/httpapi-toolkit.js +2 -2
- package/dist/lib/query.js +7 -7
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +129 -128
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.d.ts +2 -2
- 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 +2 -2
- package/dist/services/notification/persistence/drizzle.d.ts +868 -0
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.d.ts +2 -0
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.d.ts +143 -0
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +2 -2
|
@@ -76,10 +76,13 @@ function Input({ className, type, ...props }) {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// ../../src/components/ui/
|
|
79
|
+
// ../../src/components/ui/textarea.tsx
|
|
80
80
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
81
|
+
|
|
82
|
+
// ../../src/components/ui/input-group.tsx
|
|
83
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
81
84
|
function InputGroup({ className, ...props }) {
|
|
82
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
83
86
|
"data-slot": "input-group",
|
|
84
87
|
role: "group",
|
|
85
88
|
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),
|
|
@@ -112,7 +115,7 @@ function InputGroupInput({
|
|
|
112
115
|
className,
|
|
113
116
|
...props
|
|
114
117
|
}) {
|
|
115
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ jsx4(Input, {
|
|
116
119
|
"data-slot": "input-group-control",
|
|
117
120
|
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),
|
|
118
121
|
...props
|
|
@@ -556,7 +559,7 @@ function isCustomStrategy(strategy2) {
|
|
|
556
559
|
}
|
|
557
560
|
|
|
558
561
|
// ../../src/components/ui/virtualized-combobox.tsx
|
|
559
|
-
import { jsx as
|
|
562
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
560
563
|
"use client";
|
|
561
564
|
var messages = {
|
|
562
565
|
en: {
|
|
@@ -632,19 +635,19 @@ var VirtualizedComboboxList = ({
|
|
|
632
635
|
virtualizer.measure();
|
|
633
636
|
}, [virtualizer]);
|
|
634
637
|
if (filteredItems.length === 0) {
|
|
635
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ jsx5("div", {
|
|
636
639
|
className: "text-muted-foreground py-6 text-center text-sm",
|
|
637
640
|
children: emptyLabel
|
|
638
641
|
});
|
|
639
642
|
}
|
|
640
|
-
return /* @__PURE__ */
|
|
643
|
+
return /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
|
|
641
644
|
className: "scroll-py-1 overflow-auto overscroll-contain p-1",
|
|
642
645
|
ref: handleScrollElementRef,
|
|
643
646
|
style: {
|
|
644
647
|
height: Math.min(virtualizer.getTotalSize() + 8, 288),
|
|
645
648
|
maxHeight: "var(--available-height)"
|
|
646
649
|
},
|
|
647
|
-
children: /* @__PURE__ */
|
|
650
|
+
children: /* @__PURE__ */ jsx5("div", {
|
|
648
651
|
className: "relative w-full",
|
|
649
652
|
role: "presentation",
|
|
650
653
|
style: { height: virtualizer.getTotalSize() },
|
|
@@ -657,9 +660,9 @@ var VirtualizedComboboxList = ({
|
|
|
657
660
|
transform: `translateY(${virtualItem.start}px)`
|
|
658
661
|
};
|
|
659
662
|
if (entry.kind === "group") {
|
|
660
|
-
return /* @__PURE__ */
|
|
663
|
+
return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
|
|
661
664
|
className: "contents",
|
|
662
|
-
children: /* @__PURE__ */
|
|
665
|
+
children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
|
|
663
666
|
className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
|
|
664
667
|
"data-index": virtualItem.index,
|
|
665
668
|
ref: virtualizer.measureElement,
|
|
@@ -678,13 +681,13 @@ var VirtualizedComboboxList = ({
|
|
|
678
681
|
style,
|
|
679
682
|
value: entry.item,
|
|
680
683
|
children: [
|
|
681
|
-
renderItem?.(entry.item) ?? /* @__PURE__ */
|
|
684
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
|
|
682
685
|
className: "min-w-0 truncate",
|
|
683
686
|
children: entry.item.label
|
|
684
687
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
|
|
686
689
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
687
|
-
children: /* @__PURE__ */
|
|
690
|
+
children: /* @__PURE__ */ jsx5(Check, {})
|
|
688
691
|
})
|
|
689
692
|
]
|
|
690
693
|
}, entry.item.value);
|
|
@@ -703,8 +706,8 @@ var VirtualizedComboboxContent = ({
|
|
|
703
706
|
virtualizerRef
|
|
704
707
|
}) => {
|
|
705
708
|
const labels = virtualizedComboboxMessages(messageOverrides);
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
children: /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
|
|
710
|
+
children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
|
|
708
711
|
align: "start",
|
|
709
712
|
className: "isolate z-50",
|
|
710
713
|
side: "bottom",
|
|
@@ -712,17 +715,17 @@ var VirtualizedComboboxContent = ({
|
|
|
712
715
|
children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
|
|
713
716
|
className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) 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),
|
|
714
717
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ jsx5("div", {
|
|
716
719
|
className: "min-w-0 p-1 pb-0",
|
|
717
|
-
children: /* @__PURE__ */
|
|
720
|
+
children: /* @__PURE__ */ jsx5(InputGroup, {
|
|
718
721
|
className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
|
|
719
|
-
children: /* @__PURE__ */
|
|
722
|
+
children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
|
|
720
723
|
placeholder: labels.search,
|
|
721
|
-
render: /* @__PURE__ */
|
|
724
|
+
render: /* @__PURE__ */ jsx5(InputGroupInput, {})
|
|
722
725
|
})
|
|
723
726
|
})
|
|
724
727
|
}),
|
|
725
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ jsx5(VirtualizedComboboxList, {
|
|
726
729
|
emptyLabel,
|
|
727
730
|
groupSelections,
|
|
728
731
|
itemIndexRef,
|
|
@@ -745,20 +748,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
|
|
|
745
748
|
type: "button",
|
|
746
749
|
variant: "outline",
|
|
747
750
|
children: [
|
|
748
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ jsx5("span", {
|
|
749
752
|
className: "min-w-0 flex-1 truncate pr-7 text-left",
|
|
750
753
|
children: label
|
|
751
754
|
}),
|
|
752
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ jsx5(ChevronsUpDown, {
|
|
753
756
|
className: "text-muted-foreground shrink-0 opacity-70"
|
|
754
757
|
})
|
|
755
758
|
]
|
|
756
759
|
});
|
|
757
|
-
var defaultClear = (label) => /* @__PURE__ */
|
|
760
|
+
var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
|
|
758
761
|
"aria-label": label,
|
|
759
762
|
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",
|
|
760
763
|
type: "button",
|
|
761
|
-
children: /* @__PURE__ */
|
|
764
|
+
children: /* @__PURE__ */ jsx5(X, {
|
|
762
765
|
className: "size-3.5"
|
|
763
766
|
})
|
|
764
767
|
});
|
|
@@ -797,13 +800,13 @@ var VirtualizedComboboxSingle = (props) => {
|
|
|
797
800
|
/* @__PURE__ */ jsxs("div", {
|
|
798
801
|
className: "relative",
|
|
799
802
|
children: [
|
|
800
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
|
|
801
804
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
802
805
|
}),
|
|
803
806
|
props.trigger ? null : defaultClear(labels.clear)
|
|
804
807
|
]
|
|
805
808
|
}),
|
|
806
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
|
|
807
810
|
...props,
|
|
808
811
|
groupSelections: false,
|
|
809
812
|
itemIndexRef,
|
|
@@ -839,13 +842,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
839
842
|
/* @__PURE__ */ jsxs("div", {
|
|
840
843
|
className: "relative",
|
|
841
844
|
children: [
|
|
842
|
-
/* @__PURE__ */
|
|
845
|
+
/* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
|
|
843
846
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
844
847
|
}),
|
|
845
848
|
props.trigger ? null : defaultClear(labels.clear)
|
|
846
849
|
]
|
|
847
850
|
}),
|
|
848
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
|
|
849
852
|
...props,
|
|
850
853
|
groupSelections: true,
|
|
851
854
|
itemIndexRef,
|
|
@@ -856,13 +859,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
856
859
|
});
|
|
857
860
|
};
|
|
858
861
|
function VirtualizedCombobox(props) {
|
|
859
|
-
return props.multiple ? /* @__PURE__ */
|
|
862
|
+
return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
|
|
860
863
|
...props
|
|
861
|
-
}) : /* @__PURE__ */
|
|
864
|
+
}) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
|
|
862
865
|
...props
|
|
863
866
|
});
|
|
864
867
|
}
|
|
865
868
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
869
|
+
virtualizedComboboxMessages,
|
|
870
|
+
VirtualizedCombobox
|
|
868
871
|
};
|
package/dist/lib/docs.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ForwardRefExoticComponent, type RefAttributes, type ReactNode } from "react";
|
|
3
|
+
import { type SidebarCollapsible } from "../components/ui/sidebar-layout.js";
|
|
3
4
|
type DocsIconProps = ComponentPropsWithoutRef<"svg"> & {
|
|
4
5
|
absoluteStrokeWidth?: boolean;
|
|
5
6
|
size?: string | number;
|
|
@@ -710,8 +711,9 @@ export type DocsLayoutProps = {
|
|
|
710
711
|
docs: DocsCatalog;
|
|
711
712
|
headerActions?: ReactNode;
|
|
712
713
|
locale: DocsLocale;
|
|
714
|
+
sidebarCollapsible?: SidebarCollapsible;
|
|
713
715
|
};
|
|
714
|
-
export declare const DocsLayout: ({ children, docs, headerActions, locale, }: DocsLayoutProps) => import("react").JSX.Element;
|
|
716
|
+
export declare const DocsLayout: ({ children, docs, headerActions, locale, sidebarCollapsible, }: DocsLayoutProps) => import("react").JSX.Element;
|
|
715
717
|
export type DocsPageProps = {
|
|
716
718
|
children?: ReactNode;
|
|
717
719
|
docs: DocsCatalog;
|