@krak-stack/registry 0.1.27 → 0.1.29

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 (52) hide show
  1. package/dist/components/ui/code-block.js +1 -5
  2. package/dist/components/ui/copy-button.js +1 -5
  3. package/dist/components/ui/data-table.js +239 -242
  4. package/dist/components/ui/editing-locale-switcher.js +1 -5
  5. package/dist/components/ui/effect-form.js +170 -175
  6. package/dist/components/ui/error-component.d.ts +30 -0
  7. package/dist/components/ui/error-component.js +811 -0
  8. package/dist/components/ui/file-picker.js +1 -5
  9. package/dist/components/ui/form.js +113 -118
  10. package/dist/components/ui/google-map.js +1 -5
  11. package/dist/components/ui/icon-input.js +41 -48
  12. package/dist/components/ui/loading.js +1 -5
  13. package/dist/components/ui/locale-switcher.js +1 -5
  14. package/dist/components/ui/pagination.js +3 -7
  15. package/dist/components/ui/search-menu.js +1 -5
  16. package/dist/components/ui/sidebar-layout.js +67 -76
  17. package/dist/components/ui/stats-card.js +1 -5
  18. package/dist/components/ui/theme-switcher.js +4 -8
  19. package/dist/components/ui/virtualized-combobox.js +32 -39
  20. package/dist/lib/docs.js +134 -143
  21. package/dist/lib/docs.server.js +24 -49
  22. package/dist/lib/documentation-toolkit.js +25 -50
  23. package/dist/lib/httpapi-cli.js +7 -7
  24. package/dist/lib/httpapi-client.js +3 -3
  25. package/dist/lib/httpapi-helpers.js +11 -11
  26. package/dist/lib/httpapi-mcp.js +2 -2
  27. package/dist/lib/httpapi-toolkit.js +2 -2
  28. package/dist/lib/query.d.ts +16 -6
  29. package/dist/lib/query.js +17 -8
  30. package/dist/lib/seo.js +2 -2
  31. package/dist/lib/utils.d.ts +1 -2
  32. package/dist/lib/webfetch-toolkit.js +6 -6
  33. package/dist/services/agent/client/index.js +130 -133
  34. package/dist/services/agent/index.d.ts +4 -0
  35. package/dist/services/agent/index.js +1 -1
  36. package/dist/services/agent/schema.d.ts +6 -0
  37. package/dist/services/agent/schema.js +6 -5
  38. package/dist/services/file-extraction/index.js +4 -4
  39. package/dist/services/file-extraction/schema.js +2 -2
  40. package/dist/services/health/index.js +9 -9
  41. package/dist/services/notification/channels/ses/index.js +2 -2
  42. package/dist/services/notification/channels/ses/schema.js +2 -2
  43. package/dist/services/notification/client/index.js +6 -10
  44. package/dist/services/notification/index.js +2 -2
  45. package/dist/services/notification/persistence/drizzle.js +2 -2
  46. package/dist/services/notification/persistence/index.js +15 -15
  47. package/dist/services/notification/persistence/schema.js +12 -12
  48. package/dist/services/notification/public.js +8 -12
  49. package/dist/services/notification/schema.js +2 -2
  50. package/dist/services/s3/index.js +2 -2
  51. package/dist/services/s3/schema.js +2 -2
  52. package/package.json +7 -4
@@ -4,11 +4,7 @@ import { useEffect, useEffectEvent, useRef, useState } from "react";
4
4
  import { Schema } from "effect";
5
5
 
6
6
  // ../../src/lib/utils.ts
7
- import { clsx } from "clsx";
8
- import { twMerge } from "tailwind-merge";
9
- function cn(...inputs) {
10
- return twMerge(clsx(inputs));
11
- }
7
+ import { cn } from "cn";
12
8
 
13
9
  // ../../src/paraglide/runtime.js
14
10
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -17,11 +17,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
17
17
  import { cva } from "class-variance-authority";
18
18
 
19
19
  // ../../src/lib/utils.ts
20
- import { clsx } from "clsx";
21
- import { twMerge } from "tailwind-merge";
22
- function cn(...inputs) {
23
- return twMerge(clsx(inputs));
24
- }
20
+ import { cn } from "cn";
25
21
 
26
22
  // ../../src/components/ui/button.tsx
27
23
  import { jsx } from "react/jsx-runtime";
@@ -90,13 +86,10 @@ function Input({ className, type, ...props }) {
90
86
  });
91
87
  }
92
88
 
93
- // ../../src/components/ui/textarea.tsx
94
- import { jsx as jsx3 } from "react/jsx-runtime";
95
-
96
89
  // ../../src/components/ui/input-group.tsx
97
- import { jsx as jsx4 } from "react/jsx-runtime";
90
+ import { jsx as jsx3 } from "react/jsx-runtime";
98
91
  function InputGroup({ className, ...props }) {
99
- return /* @__PURE__ */ jsx4("div", {
92
+ return /* @__PURE__ */ jsx3("div", {
100
93
  "data-slot": "input-group",
101
94
  role: "group",
102
95
  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 +122,7 @@ function InputGroupInput({
129
122
  className,
130
123
  ...props
131
124
  }) {
132
- return /* @__PURE__ */ jsx4(Input, {
125
+ return /* @__PURE__ */ jsx3(Input, {
133
126
  "data-slot": "input-group-control",
134
127
  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
128
  ...props
@@ -573,7 +566,7 @@ function isCustomStrategy(strategy2) {
573
566
  }
574
567
 
575
568
  // ../../src/components/ui/virtualized-combobox.tsx
576
- import { jsx as jsx5, jsxs } from "react/jsx-runtime";
569
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
577
570
  "use client";
578
571
  var messages = {
579
572
  en: {
@@ -649,19 +642,19 @@ var VirtualizedComboboxList = ({
649
642
  virtualizer.measure();
650
643
  }, [virtualizer]);
651
644
  if (filteredItems.length === 0) {
652
- return /* @__PURE__ */ jsx5("div", {
645
+ return /* @__PURE__ */ jsx4("div", {
653
646
  className: "text-muted-foreground py-6 text-center text-sm",
654
647
  children: emptyLabel
655
648
  });
656
649
  }
657
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
650
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
658
651
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
659
652
  ref: handleScrollElementRef,
660
653
  style: {
661
654
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
662
655
  maxHeight: "var(--available-height)"
663
656
  },
664
- children: /* @__PURE__ */ jsx5("div", {
657
+ children: /* @__PURE__ */ jsx4("div", {
665
658
  className: "relative w-full",
666
659
  role: "presentation",
667
660
  style: { height: virtualizer.getTotalSize() },
@@ -674,9 +667,9 @@ var VirtualizedComboboxList = ({
674
667
  transform: `translateY(${virtualItem.start}px)`
675
668
  };
676
669
  if (entry.kind === "group") {
677
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
670
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
678
671
  className: "contents",
679
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
672
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
680
673
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
681
674
  "data-index": virtualItem.index,
682
675
  ref: virtualizer.measureElement,
@@ -695,13 +688,13 @@ var VirtualizedComboboxList = ({
695
688
  style,
696
689
  value: entry.item,
697
690
  children: [
698
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
691
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
699
692
  className: "min-w-0 truncate",
700
693
  children: entry.item.label
701
694
  }),
702
- /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
695
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
703
696
  className: "absolute right-2 flex size-4 items-center justify-center",
704
- children: /* @__PURE__ */ jsx5(Check, {})
697
+ children: /* @__PURE__ */ jsx4(Check, {})
705
698
  })
706
699
  ]
707
700
  }, entry.item.value);
@@ -720,8 +713,8 @@ var VirtualizedComboboxContent = ({
720
713
  virtualizerRef
721
714
  }) => {
722
715
  const labels = virtualizedComboboxMessages(messageOverrides);
723
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
724
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
716
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
717
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
725
718
  align: "start",
726
719
  className: "isolate z-50",
727
720
  side: "bottom",
@@ -729,17 +722,17 @@ var VirtualizedComboboxContent = ({
729
722
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
730
723
  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
724
  children: [
732
- /* @__PURE__ */ jsx5("div", {
725
+ /* @__PURE__ */ jsx4("div", {
733
726
  className: "min-w-0 p-1 pb-0",
734
- children: /* @__PURE__ */ jsx5(InputGroup, {
727
+ children: /* @__PURE__ */ jsx4(InputGroup, {
735
728
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
736
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
729
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
737
730
  placeholder: labels.search,
738
- render: /* @__PURE__ */ jsx5(InputGroupInput, {})
731
+ render: /* @__PURE__ */ jsx4(InputGroupInput, {})
739
732
  })
740
733
  })
741
734
  }),
742
- /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
735
+ /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
743
736
  emptyLabel,
744
737
  groupSelections,
745
738
  itemIndexRef,
@@ -762,20 +755,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
762
755
  type: "button",
763
756
  variant: "outline",
764
757
  children: [
765
- /* @__PURE__ */ jsx5("span", {
758
+ /* @__PURE__ */ jsx4("span", {
766
759
  className: "min-w-0 flex-1 truncate pr-7 text-left",
767
760
  children: label
768
761
  }),
769
- /* @__PURE__ */ jsx5(ChevronsUpDown, {
762
+ /* @__PURE__ */ jsx4(ChevronsUpDown, {
770
763
  className: "text-muted-foreground shrink-0 opacity-70"
771
764
  })
772
765
  ]
773
766
  });
774
- var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
767
+ var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
775
768
  "aria-label": label,
776
769
  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
770
  type: "button",
778
- children: /* @__PURE__ */ jsx5(X, {
771
+ children: /* @__PURE__ */ jsx4(X, {
779
772
  className: "size-3.5"
780
773
  })
781
774
  });
@@ -814,13 +807,13 @@ var VirtualizedComboboxSingle = (props) => {
814
807
  /* @__PURE__ */ jsxs("div", {
815
808
  className: "relative",
816
809
  children: [
817
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
810
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
818
811
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
819
812
  }),
820
813
  props.trigger ? null : defaultClear(labels.clear)
821
814
  ]
822
815
  }),
823
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
816
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
824
817
  ...props,
825
818
  groupSelections: false,
826
819
  itemIndexRef,
@@ -856,13 +849,13 @@ var VirtualizedComboboxMultiple = (props) => {
856
849
  /* @__PURE__ */ jsxs("div", {
857
850
  className: "relative",
858
851
  children: [
859
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
852
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
860
853
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
861
854
  }),
862
855
  props.trigger ? null : defaultClear(labels.clear)
863
856
  ]
864
857
  }),
865
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
858
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
866
859
  ...props,
867
860
  groupSelections: true,
868
861
  itemIndexRef,
@@ -873,15 +866,15 @@ var VirtualizedComboboxMultiple = (props) => {
873
866
  });
874
867
  };
875
868
  function VirtualizedCombobox(props) {
876
- return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
869
+ return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
877
870
  ...props
878
- }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
871
+ }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
879
872
  ...props
880
873
  });
881
874
  }
882
875
 
883
876
  // ../../src/components/ui/icon-input.tsx
884
- import { jsx as jsx6, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
877
+ import { jsx as jsx5, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
885
878
  var IconifySearchResponse = Schema.Struct({
886
879
  icons: Schema.Array(Schema.String)
887
880
  }).pipe(Schema.annotate({ identifier: "IconifySearchResponse" }));
@@ -935,20 +928,20 @@ function IconInput({
935
928
  const isWaiting = deferredQuery.trim() !== "" && AsyncResult.isWaiting(iconSearchResult);
936
929
  const items = icons.map((icon) => ({ label: icon, value: icon }));
937
930
  const selectedItem = value ? { label: value, value } : null;
938
- return /* @__PURE__ */ jsx6(VirtualizedCombobox, {
931
+ return /* @__PURE__ */ jsx5(VirtualizedCombobox, {
939
932
  ariaLabel: copy.select,
940
933
  contentClassName: "w-80",
941
934
  emptyLabel: isWaiting ? null : /* @__PURE__ */ jsxs2("div", {
942
935
  className: "text-muted-foreground flex flex-col items-center gap-2 px-3",
943
936
  children: [
944
- /* @__PURE__ */ jsx6(Search, {
937
+ /* @__PURE__ */ jsx5(Search, {
945
938
  className: "size-5"
946
939
  }),
947
- /* @__PURE__ */ jsx6("p", {
940
+ /* @__PURE__ */ jsx5("p", {
948
941
  children: query ? copy.empty : copy.searchPrompt
949
942
  }),
950
943
  /* @__PURE__ */ jsxs2(Button, {
951
- render: /* @__PURE__ */ jsx6("a", {
944
+ render: /* @__PURE__ */ jsx5("a", {
952
945
  href: iconifyCollectionUrl(collection),
953
946
  rel: "noreferrer",
954
947
  target: "_blank"
@@ -958,7 +951,7 @@ function IconInput({
958
951
  children: [
959
952
  copy.browse,
960
953
  " ",
961
- /* @__PURE__ */ jsx6(ExternalLink, {
954
+ /* @__PURE__ */ jsx5(ExternalLink, {
962
955
  className: "inline size-3"
963
956
  })
964
957
  ]
@@ -984,22 +977,22 @@ function IconInput({
984
977
  placeholder: copy.select,
985
978
  renderItem: (item) => /* @__PURE__ */ jsxs2(Fragment, {
986
979
  children: [
987
- /* @__PURE__ */ jsx6(Icon, {
980
+ /* @__PURE__ */ jsx5(Icon, {
988
981
  className: "size-5 shrink-0",
989
982
  icon: `${collection}:${item.value}`
990
983
  }),
991
- /* @__PURE__ */ jsx6("span", {
984
+ /* @__PURE__ */ jsx5("span", {
992
985
  className: "truncate",
993
986
  children: item.label
994
987
  }),
995
- /* @__PURE__ */ jsx6("span", {
988
+ /* @__PURE__ */ jsx5("span", {
996
989
  className: "sr-only",
997
990
  children: copy.select
998
991
  })
999
992
  ]
1000
993
  }),
1001
994
  searchValue: query,
1002
- trigger: /* @__PURE__ */ jsx6(Button, {
995
+ trigger: /* @__PURE__ */ jsx5(Button, {
1003
996
  "aria-label": copy.select,
1004
997
  disabled,
1005
998
  id,
@@ -1007,7 +1000,7 @@ function IconInput({
1007
1000
  title: value,
1008
1001
  type: "button",
1009
1002
  variant: "outline",
1010
- children: /* @__PURE__ */ jsx6(Icon, {
1003
+ children: /* @__PURE__ */ jsx5(Icon, {
1011
1004
  className: "size-5",
1012
1005
  icon: `${collection}:${value}`
1013
1006
  })
@@ -2,11 +2,7 @@
2
2
  import { Loader2 } from "lucide-react";
3
3
 
4
4
  // ../../src/lib/utils.ts
5
- import { clsx } from "clsx";
6
- import { twMerge } from "tailwind-merge";
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
5
+ import { cn } from "cn";
10
6
 
11
7
  // ../../src/paraglide/runtime.js
12
8
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -439,11 +439,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
439
439
  import { cva } from "class-variance-authority";
440
440
 
441
441
  // ../../src/lib/utils.ts
442
- import { clsx } from "clsx";
443
- import { twMerge } from "tailwind-merge";
444
- function cn(...inputs) {
445
- return twMerge(clsx(inputs));
446
- }
442
+ import { cn } from "cn";
447
443
 
448
444
  // ../../src/components/ui/button.tsx
449
445
  import { jsx } from "react/jsx-runtime";
@@ -12,11 +12,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
12
12
  import { cva } from "class-variance-authority";
13
13
 
14
14
  // ../../src/lib/utils.ts
15
- import { clsx } from "clsx";
16
- import { twMerge } from "tailwind-merge";
17
- function cn(...inputs) {
18
- return twMerge(clsx(inputs));
19
- }
15
+ import { cn } from "cn";
20
16
 
21
17
  // ../../src/components/ui/button.tsx
22
18
  import { jsx } from "react/jsx-runtime";
@@ -790,6 +786,6 @@ function Pagination({
790
786
  });
791
787
  }
792
788
  export {
793
- paginationMessages,
794
- Pagination
789
+ Pagination,
790
+ paginationMessages
795
791
  };
@@ -7,11 +7,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
7
7
  import { cva } from "class-variance-authority";
8
8
 
9
9
  // ../../src/lib/utils.ts
10
- import { clsx } from "clsx";
11
- import { twMerge } from "tailwind-merge";
12
- function cn(...inputs) {
13
- return twMerge(clsx(inputs));
14
- }
10
+ import { cn } from "cn";
15
11
 
16
12
  // ../../src/components/ui/button.tsx
17
13
  import { jsx } from "react/jsx-runtime";