@krak-stack/registry 0.1.27 → 0.1.28
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/dist/components/ui/data-table.js +238 -237
- package/dist/components/ui/effect-form.js +169 -170
- package/dist/components/ui/form.js +112 -113
- package/dist/components/ui/icon-input.js +40 -43
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/sidebar-layout.js +66 -71
- package/dist/components/ui/theme-switcher.js +3 -3
- package/dist/components/ui/virtualized-combobox.js +31 -34
- package/dist/lib/docs.js +133 -138
- package/dist/lib/docs.server.js +23 -47
- package/dist/lib/documentation-toolkit.js +24 -48
- 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.d.ts +16 -6
- package/dist/lib/query.js +17 -8
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +127 -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.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.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 +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 +1 -1
|
@@ -90,13 +90,10 @@ function Input({ className, type, ...props }) {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// ../../src/components/ui/textarea.tsx
|
|
94
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
95
|
-
|
|
96
93
|
// ../../src/components/ui/input-group.tsx
|
|
97
|
-
import { jsx as
|
|
94
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
98
95
|
function InputGroup({ className, ...props }) {
|
|
99
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx3("div", {
|
|
100
97
|
"data-slot": "input-group",
|
|
101
98
|
role: "group",
|
|
102
99
|
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),
|
|
@@ -129,7 +126,7 @@ function InputGroupInput({
|
|
|
129
126
|
className,
|
|
130
127
|
...props
|
|
131
128
|
}) {
|
|
132
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ jsx3(Input, {
|
|
133
130
|
"data-slot": "input-group-control",
|
|
134
131
|
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),
|
|
135
132
|
...props
|
|
@@ -573,7 +570,7 @@ function isCustomStrategy(strategy2) {
|
|
|
573
570
|
}
|
|
574
571
|
|
|
575
572
|
// ../../src/components/ui/virtualized-combobox.tsx
|
|
576
|
-
import { jsx as
|
|
573
|
+
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
577
574
|
"use client";
|
|
578
575
|
var messages = {
|
|
579
576
|
en: {
|
|
@@ -649,19 +646,19 @@ var VirtualizedComboboxList = ({
|
|
|
649
646
|
virtualizer.measure();
|
|
650
647
|
}, [virtualizer]);
|
|
651
648
|
if (filteredItems.length === 0) {
|
|
652
|
-
return /* @__PURE__ */
|
|
649
|
+
return /* @__PURE__ */ jsx4("div", {
|
|
653
650
|
className: "text-muted-foreground py-6 text-center text-sm",
|
|
654
651
|
children: emptyLabel
|
|
655
652
|
});
|
|
656
653
|
}
|
|
657
|
-
return /* @__PURE__ */
|
|
654
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
|
|
658
655
|
className: "scroll-py-1 overflow-auto overscroll-contain p-1",
|
|
659
656
|
ref: handleScrollElementRef,
|
|
660
657
|
style: {
|
|
661
658
|
height: Math.min(virtualizer.getTotalSize() + 8, 288),
|
|
662
659
|
maxHeight: "var(--available-height)"
|
|
663
660
|
},
|
|
664
|
-
children: /* @__PURE__ */
|
|
661
|
+
children: /* @__PURE__ */ jsx4("div", {
|
|
665
662
|
className: "relative w-full",
|
|
666
663
|
role: "presentation",
|
|
667
664
|
style: { height: virtualizer.getTotalSize() },
|
|
@@ -674,9 +671,9 @@ var VirtualizedComboboxList = ({
|
|
|
674
671
|
transform: `translateY(${virtualItem.start}px)`
|
|
675
672
|
};
|
|
676
673
|
if (entry.kind === "group") {
|
|
677
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
|
|
678
675
|
className: "contents",
|
|
679
|
-
children: /* @__PURE__ */
|
|
676
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
|
|
680
677
|
className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
|
|
681
678
|
"data-index": virtualItem.index,
|
|
682
679
|
ref: virtualizer.measureElement,
|
|
@@ -695,13 +692,13 @@ var VirtualizedComboboxList = ({
|
|
|
695
692
|
style,
|
|
696
693
|
value: entry.item,
|
|
697
694
|
children: [
|
|
698
|
-
renderItem?.(entry.item) ?? /* @__PURE__ */
|
|
695
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
|
|
699
696
|
className: "min-w-0 truncate",
|
|
700
697
|
children: entry.item.label
|
|
701
698
|
}),
|
|
702
|
-
/* @__PURE__ */
|
|
699
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
|
|
703
700
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
704
|
-
children: /* @__PURE__ */
|
|
701
|
+
children: /* @__PURE__ */ jsx4(Check, {})
|
|
705
702
|
})
|
|
706
703
|
]
|
|
707
704
|
}, entry.item.value);
|
|
@@ -720,8 +717,8 @@ var VirtualizedComboboxContent = ({
|
|
|
720
717
|
virtualizerRef
|
|
721
718
|
}) => {
|
|
722
719
|
const labels = virtualizedComboboxMessages(messageOverrides);
|
|
723
|
-
return /* @__PURE__ */
|
|
724
|
-
children: /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
|
|
721
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
|
|
725
722
|
align: "start",
|
|
726
723
|
className: "isolate z-50",
|
|
727
724
|
side: "bottom",
|
|
@@ -729,17 +726,17 @@ var VirtualizedComboboxContent = ({
|
|
|
729
726
|
children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
|
|
730
727
|
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),
|
|
731
728
|
children: [
|
|
732
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ jsx4("div", {
|
|
733
730
|
className: "min-w-0 p-1 pb-0",
|
|
734
|
-
children: /* @__PURE__ */
|
|
731
|
+
children: /* @__PURE__ */ jsx4(InputGroup, {
|
|
735
732
|
className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
|
|
736
|
-
children: /* @__PURE__ */
|
|
733
|
+
children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
|
|
737
734
|
placeholder: labels.search,
|
|
738
|
-
render: /* @__PURE__ */
|
|
735
|
+
render: /* @__PURE__ */ jsx4(InputGroupInput, {})
|
|
739
736
|
})
|
|
740
737
|
})
|
|
741
738
|
}),
|
|
742
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxList, {
|
|
743
740
|
emptyLabel,
|
|
744
741
|
groupSelections,
|
|
745
742
|
itemIndexRef,
|
|
@@ -762,20 +759,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
|
|
|
762
759
|
type: "button",
|
|
763
760
|
variant: "outline",
|
|
764
761
|
children: [
|
|
765
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ jsx4("span", {
|
|
766
763
|
className: "min-w-0 flex-1 truncate pr-7 text-left",
|
|
767
764
|
children: label
|
|
768
765
|
}),
|
|
769
|
-
/* @__PURE__ */
|
|
766
|
+
/* @__PURE__ */ jsx4(ChevronsUpDown, {
|
|
770
767
|
className: "text-muted-foreground shrink-0 opacity-70"
|
|
771
768
|
})
|
|
772
769
|
]
|
|
773
770
|
});
|
|
774
|
-
var defaultClear = (label) => /* @__PURE__ */
|
|
771
|
+
var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
|
|
775
772
|
"aria-label": label,
|
|
776
773
|
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",
|
|
777
774
|
type: "button",
|
|
778
|
-
children: /* @__PURE__ */
|
|
775
|
+
children: /* @__PURE__ */ jsx4(X, {
|
|
779
776
|
className: "size-3.5"
|
|
780
777
|
})
|
|
781
778
|
});
|
|
@@ -814,13 +811,13 @@ var VirtualizedComboboxSingle = (props) => {
|
|
|
814
811
|
/* @__PURE__ */ jsxs("div", {
|
|
815
812
|
className: "relative",
|
|
816
813
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
|
|
818
815
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
819
816
|
}),
|
|
820
817
|
props.trigger ? null : defaultClear(labels.clear)
|
|
821
818
|
]
|
|
822
819
|
}),
|
|
823
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
|
|
824
821
|
...props,
|
|
825
822
|
groupSelections: false,
|
|
826
823
|
itemIndexRef,
|
|
@@ -856,13 +853,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
856
853
|
/* @__PURE__ */ jsxs("div", {
|
|
857
854
|
className: "relative",
|
|
858
855
|
children: [
|
|
859
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
|
|
860
857
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
861
858
|
}),
|
|
862
859
|
props.trigger ? null : defaultClear(labels.clear)
|
|
863
860
|
]
|
|
864
861
|
}),
|
|
865
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
|
|
866
863
|
...props,
|
|
867
864
|
groupSelections: true,
|
|
868
865
|
itemIndexRef,
|
|
@@ -873,15 +870,15 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
873
870
|
});
|
|
874
871
|
};
|
|
875
872
|
function VirtualizedCombobox(props) {
|
|
876
|
-
return props.multiple ? /* @__PURE__ */
|
|
873
|
+
return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
|
|
877
874
|
...props
|
|
878
|
-
}) : /* @__PURE__ */
|
|
875
|
+
}) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
|
|
879
876
|
...props
|
|
880
877
|
});
|
|
881
878
|
}
|
|
882
879
|
|
|
883
880
|
// ../../src/components/ui/icon-input.tsx
|
|
884
|
-
import { jsx as
|
|
881
|
+
import { jsx as jsx5, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
|
|
885
882
|
var IconifySearchResponse = Schema.Struct({
|
|
886
883
|
icons: Schema.Array(Schema.String)
|
|
887
884
|
}).pipe(Schema.annotate({ identifier: "IconifySearchResponse" }));
|
|
@@ -935,20 +932,20 @@ function IconInput({
|
|
|
935
932
|
const isWaiting = deferredQuery.trim() !== "" && AsyncResult.isWaiting(iconSearchResult);
|
|
936
933
|
const items = icons.map((icon) => ({ label: icon, value: icon }));
|
|
937
934
|
const selectedItem = value ? { label: value, value } : null;
|
|
938
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ jsx5(VirtualizedCombobox, {
|
|
939
936
|
ariaLabel: copy.select,
|
|
940
937
|
contentClassName: "w-80",
|
|
941
938
|
emptyLabel: isWaiting ? null : /* @__PURE__ */ jsxs2("div", {
|
|
942
939
|
className: "text-muted-foreground flex flex-col items-center gap-2 px-3",
|
|
943
940
|
children: [
|
|
944
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ jsx5(Search, {
|
|
945
942
|
className: "size-5"
|
|
946
943
|
}),
|
|
947
|
-
/* @__PURE__ */
|
|
944
|
+
/* @__PURE__ */ jsx5("p", {
|
|
948
945
|
children: query ? copy.empty : copy.searchPrompt
|
|
949
946
|
}),
|
|
950
947
|
/* @__PURE__ */ jsxs2(Button, {
|
|
951
|
-
render: /* @__PURE__ */
|
|
948
|
+
render: /* @__PURE__ */ jsx5("a", {
|
|
952
949
|
href: iconifyCollectionUrl(collection),
|
|
953
950
|
rel: "noreferrer",
|
|
954
951
|
target: "_blank"
|
|
@@ -958,7 +955,7 @@ function IconInput({
|
|
|
958
955
|
children: [
|
|
959
956
|
copy.browse,
|
|
960
957
|
" ",
|
|
961
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ jsx5(ExternalLink, {
|
|
962
959
|
className: "inline size-3"
|
|
963
960
|
})
|
|
964
961
|
]
|
|
@@ -984,22 +981,22 @@ function IconInput({
|
|
|
984
981
|
placeholder: copy.select,
|
|
985
982
|
renderItem: (item) => /* @__PURE__ */ jsxs2(Fragment, {
|
|
986
983
|
children: [
|
|
987
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ jsx5(Icon, {
|
|
988
985
|
className: "size-5 shrink-0",
|
|
989
986
|
icon: `${collection}:${item.value}`
|
|
990
987
|
}),
|
|
991
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ jsx5("span", {
|
|
992
989
|
className: "truncate",
|
|
993
990
|
children: item.label
|
|
994
991
|
}),
|
|
995
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ jsx5("span", {
|
|
996
993
|
className: "sr-only",
|
|
997
994
|
children: copy.select
|
|
998
995
|
})
|
|
999
996
|
]
|
|
1000
997
|
}),
|
|
1001
998
|
searchValue: query,
|
|
1002
|
-
trigger: /* @__PURE__ */
|
|
999
|
+
trigger: /* @__PURE__ */ jsx5(Button, {
|
|
1003
1000
|
"aria-label": copy.select,
|
|
1004
1001
|
disabled,
|
|
1005
1002
|
id,
|
|
@@ -1007,7 +1004,7 @@ function IconInput({
|
|
|
1007
1004
|
title: value,
|
|
1008
1005
|
type: "button",
|
|
1009
1006
|
variant: "outline",
|
|
1010
|
-
children: /* @__PURE__ */
|
|
1007
|
+
children: /* @__PURE__ */ jsx5(Icon, {
|
|
1011
1008
|
className: "size-5",
|
|
1012
1009
|
icon: `${collection}:${value}`
|
|
1013
1010
|
})
|