convex-cms 0.0.5-alpha.4 → 0.0.5-alpha.5

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 (145) hide show
  1. package/README.md +3 -3
  2. package/admin/src/components/Sidebar.tsx +150 -58
  3. package/admin/src/components/ui/collapsible.tsx +7 -0
  4. package/admin/src/embed/components/EmbedSidebar.tsx +163 -68
  5. package/admin-dist/nitro.json +1 -1
  6. package/admin-dist/public/assets/{CmsEmptyState-CkqBIab3.js → CmsEmptyState-Do_erIgn.js} +1 -1
  7. package/admin-dist/public/assets/{CmsPageHeader-CUtl5MMG.js → CmsPageHeader-qDwPGi48.js} +1 -1
  8. package/admin-dist/public/assets/{CmsStatusBadge-CUYFgEe-.js → CmsStatusBadge-Dd9uToHE.js} +1 -1
  9. package/admin-dist/public/assets/{CmsSurface-CsJfAVa3.js → CmsSurface-DBy5Lumx.js} +1 -1
  10. package/admin-dist/public/assets/{CmsToolbar-CnfbcxeP.js → CmsToolbar-D1-Y-7SK.js} +1 -1
  11. package/admin-dist/public/assets/ContentEntryEditor-CWBiIx52.js +4 -0
  12. package/admin-dist/public/assets/{TaxonomyFilter-CWCxC5HZ.js → TaxonomyFilter-CdYQawxb.js} +1 -1
  13. package/admin-dist/public/assets/_contentTypeId-D9VMP6Gs.js +1 -0
  14. package/admin-dist/public/assets/_entryId-2FlCfqE7.js +1 -0
  15. package/admin-dist/public/assets/{alert-CF1BSzGR.js → alert-GxZx0y5c.js} +1 -1
  16. package/admin-dist/public/assets/{badge-CmuOIVKp.js → badge-BAlGIjop.js} +1 -1
  17. package/admin-dist/public/assets/{circle-check-big-BKDVG6DU.js → circle-check-big-CpLxAvEj.js} +1 -1
  18. package/admin-dist/public/assets/{command-XJxnF2Sd.js → command-di7XCqcv.js} +1 -1
  19. package/admin-dist/public/assets/content-D8zELsDG.js +1 -0
  20. package/admin-dist/public/assets/{content-types-CrNEm8Hf.js → content-types-BmzD0krT.js} +2 -2
  21. package/admin-dist/public/assets/globals-BvFfH-v9.css +1 -0
  22. package/admin-dist/public/assets/{index-C7xOwudI.js → index-zqfj4T_v.js} +1 -1
  23. package/admin-dist/public/assets/{label-CHCnXeBk.js → label-B6PPtKR5.js} +1 -1
  24. package/admin-dist/public/assets/{link-2-Bb34judH.js → link-2-W2fVnVOf.js} +1 -1
  25. package/admin-dist/public/assets/{list-9Pzt48ld.js → list-F8O0lZXC.js} +1 -1
  26. package/admin-dist/public/assets/main-dZT72bAG.js +97 -0
  27. package/admin-dist/public/assets/media-CETueFbV.js +1 -0
  28. package/admin-dist/public/assets/new._contentTypeId-BV2-TyyR.js +1 -0
  29. package/admin-dist/public/assets/{plus-Ceef7DHk.js → plus-AABQIF0N.js} +1 -1
  30. package/admin-dist/public/assets/{rotate-ccw-7k7-4VUq.js → rotate-ccw-BZpZtw0N.js} +1 -1
  31. package/admin-dist/public/assets/{scroll-area-CC6wujnp.js → scroll-area-CDfk-zrz.js} +1 -1
  32. package/admin-dist/public/assets/{search-DwoUV2pv.js → search-BvgYr-c9.js} +1 -1
  33. package/admin-dist/public/assets/{select-hOZTp8aC.js → select-BuiHcMzS.js} +1 -1
  34. package/admin-dist/public/assets/settings-DBxbYDvn.js +1 -0
  35. package/admin-dist/public/assets/{switch-jX2pDaNU.js → switch-DiJvolcs.js} +1 -1
  36. package/admin-dist/public/assets/tabs-Cgz6G_Xy.js +1 -0
  37. package/admin-dist/public/assets/{tanstack-adapter-B-Glm4kH.js → tanstack-adapter-BknsSgra.js} +1 -1
  38. package/admin-dist/public/assets/taxonomies-DOErsLl5.js +1 -0
  39. package/admin-dist/public/assets/{textarea-B6SfBmr0.js → textarea-CgggMxUX.js} +1 -1
  40. package/admin-dist/public/assets/{trash-BOCnIznD.js → trash-BU4ANuaW.js} +1 -1
  41. package/admin-dist/public/assets/{triangle-alert-CXFIO_Gu.js → triangle-alert-lvCbwp0s.js} +1 -1
  42. package/admin-dist/public/assets/{useBreadcrumbLabel-_6qBagc3.js → useBreadcrumbLabel-D00rvqjw.js} +1 -1
  43. package/admin-dist/public/assets/{usePermissions-M1ijZ7a6.js → usePermissions-D7tQowaF.js} +1 -1
  44. package/admin-dist/server/_chunks/_libs/@radix-ui/react-collapsible.mjs +144 -0
  45. package/admin-dist/server/_chunks/_libs/@radix-ui/react-slot.mjs +21 -21
  46. package/admin-dist/server/_libs/lucide-react.mjs +131 -124
  47. package/admin-dist/server/_ssr/{CmsButton-DOiTVKQq.mjs → CmsButton-DbzfJru_.mjs} +1 -1
  48. package/admin-dist/server/_ssr/{CmsEmptyState-fbnGt3LD.mjs → CmsEmptyState-CuvcXr3Z.mjs} +3 -3
  49. package/admin-dist/server/_ssr/{CmsPageHeader-DHRrdOZa.mjs → CmsPageHeader-ClNPU7Up.mjs} +1 -1
  50. package/admin-dist/server/_ssr/{CmsStatusBadge-s7obWbKZ.mjs → CmsStatusBadge-CojMbrY7.mjs} +2 -2
  51. package/admin-dist/server/_ssr/{CmsSurface-rFoYjb62.mjs → CmsSurface-Dcv440rp.mjs} +1 -1
  52. package/admin-dist/server/_ssr/{CmsToolbar-zTE45z2q.mjs → CmsToolbar-BKv1nL6u.mjs} +2 -2
  53. package/admin-dist/server/_ssr/{ContentEntryEditor-BLoEjT_m.mjs → ContentEntryEditor-weiXSBdZ.mjs} +35 -51
  54. package/admin-dist/server/_ssr/{TaxonomyFilter-XAtaJC2z.mjs → TaxonomyFilter-BPQ57Mwk.mjs} +7 -7
  55. package/admin-dist/server/_ssr/{_contentTypeId-Csl4822C.mjs → _contentTypeId-DyyauLOs.mjs} +24 -23
  56. package/admin-dist/server/_ssr/{_entryId-D8alLFBx.mjs → _entryId-9Cafwxmw.mjs} +22 -21
  57. package/admin-dist/server/_ssr/_tanstack-start-manifest_v-Dk-FIYPN.mjs +4 -0
  58. package/admin-dist/server/_ssr/{command-C0Di14--.mjs → command-CEf8YBxY.mjs} +1 -1
  59. package/admin-dist/server/_ssr/{content-CT-FPsmV.mjs → content-ZFWVzO25.mjs} +20 -19
  60. package/admin-dist/server/_ssr/{content-types-C8cBFdzE.mjs → content-types-D25lUE-j.mjs} +18 -17
  61. package/admin-dist/server/_ssr/{index-BJtcrEc-.mjs → index-BlSIlH4Z.mjs} +10 -9
  62. package/admin-dist/server/_ssr/index.mjs +2 -2
  63. package/admin-dist/server/_ssr/{label-qn2Afwl4.mjs → label-PblVvdRv.mjs} +1 -1
  64. package/admin-dist/server/_ssr/{media-qv5IAsMZ.mjs → media-CD2_NUMw.mjs} +683 -314
  65. package/admin-dist/server/_ssr/{new._contentTypeId-DdGyrhqs.mjs → new._contentTypeId-dmZy6PBX.mjs} +20 -19
  66. package/admin-dist/server/_ssr/{router-nSVkxb6Y.mjs → router-x6Ab8T4s.mjs} +109 -43
  67. package/admin-dist/server/_ssr/{scroll-area-BCinP455.mjs → scroll-area-BH_1K-WT.mjs} +1 -1
  68. package/admin-dist/server/_ssr/{select-BKQlQScw.mjs → select-CrfEkFJw.mjs} +2 -2
  69. package/admin-dist/server/_ssr/{settings-BCr2KQlk.mjs → settings-DVdsoWoh.mjs} +158 -105
  70. package/admin-dist/server/_ssr/{switch-BaOi42fE.mjs → switch-DX_X8vZl.mjs} +1 -1
  71. package/admin-dist/server/_ssr/{tabs-DYXEi9kq.mjs → tabs-4FWM0sn8.mjs} +3 -3
  72. package/admin-dist/server/_ssr/{tanstack-adapter-Bsz8kha-.mjs → tanstack-adapter-D3ZcKtbY.mjs} +1 -1
  73. package/admin-dist/server/_ssr/{taxonomies-CueMHTbE.mjs → taxonomies-BHFfO9Yr.mjs} +21 -20
  74. package/admin-dist/server/_ssr/{textarea-CI0Jqx2x.mjs → textarea-CZVaroMc.mjs} +1 -1
  75. package/admin-dist/server/_ssr/{trash-DE6W8GoX.mjs → trash-9tUB2KwI.mjs} +14 -13
  76. package/admin-dist/server/_ssr/{useBreadcrumbLabel-B5Yi72lM.mjs → useBreadcrumbLabel-DVme3DSb.mjs} +1 -1
  77. package/admin-dist/server/_ssr/{usePermissions-C3nZ-Izm.mjs → usePermissions-zAQj-ruE.mjs} +1 -1
  78. package/admin-dist/server/index.mjs +188 -188
  79. package/dist/cli/commands/init.d.ts +12 -2
  80. package/dist/cli/commands/init.d.ts.map +1 -1
  81. package/dist/cli/commands/init.js +136 -138
  82. package/dist/cli/commands/init.js.map +1 -1
  83. package/dist/cli/index.js +2 -1
  84. package/dist/cli/index.js.map +1 -1
  85. package/dist/cli/templates/admin.d.ts +10 -0
  86. package/dist/cli/templates/admin.d.ts.map +1 -0
  87. package/dist/cli/templates/admin.js +212 -0
  88. package/dist/cli/templates/admin.js.map +1 -0
  89. package/dist/cli/templates/cmsClient.d.ts +7 -0
  90. package/dist/cli/templates/cmsClient.d.ts.map +1 -0
  91. package/dist/cli/templates/cmsClient.js +36 -0
  92. package/dist/cli/templates/cmsClient.js.map +1 -0
  93. package/dist/cli/templates/cmsConfig.d.ts +7 -0
  94. package/dist/cli/templates/cmsConfig.d.ts.map +1 -0
  95. package/dist/cli/templates/cmsConfig.js +86 -0
  96. package/dist/cli/templates/cmsConfig.js.map +1 -0
  97. package/dist/cli/templates/index.d.ts +10 -0
  98. package/dist/cli/templates/index.d.ts.map +1 -0
  99. package/dist/cli/templates/index.js +10 -0
  100. package/dist/cli/templates/index.js.map +1 -0
  101. package/dist/cli/templates/schemas/blog.d.ts +8 -0
  102. package/dist/cli/templates/schemas/blog.d.ts.map +1 -0
  103. package/dist/cli/templates/schemas/blog.js +103 -0
  104. package/dist/cli/templates/schemas/blog.js.map +1 -0
  105. package/dist/cli/templates/schemas/docs.d.ts +8 -0
  106. package/dist/cli/templates/schemas/docs.d.ts.map +1 -0
  107. package/dist/cli/templates/schemas/docs.js +110 -0
  108. package/dist/cli/templates/schemas/docs.js.map +1 -0
  109. package/dist/cli/templates/schemas/index.d.ts +11 -0
  110. package/dist/cli/templates/schemas/index.d.ts.map +1 -0
  111. package/dist/cli/templates/schemas/index.js +13 -0
  112. package/dist/cli/templates/schemas/index.js.map +1 -0
  113. package/dist/cli/templates/schemas/landing.d.ts +8 -0
  114. package/dist/cli/templates/schemas/landing.d.ts.map +1 -0
  115. package/dist/cli/templates/schemas/landing.js +135 -0
  116. package/dist/cli/templates/schemas/landing.js.map +1 -0
  117. package/dist/cli/utils/fileUtils.d.ts +21 -0
  118. package/dist/cli/utils/fileUtils.d.ts.map +1 -0
  119. package/dist/cli/utils/fileUtils.js +95 -0
  120. package/dist/cli/utils/fileUtils.js.map +1 -0
  121. package/dist/cli/utils/prompts.d.ts +25 -0
  122. package/dist/cli/utils/prompts.d.ts.map +1 -0
  123. package/dist/cli/utils/prompts.js +87 -0
  124. package/dist/cli/utils/prompts.js.map +1 -0
  125. package/dist/client/agentTools.d.ts +1 -1427
  126. package/dist/client/agentTools.d.ts.map +1 -1
  127. package/dist/component/contentTypeMutations.d.ts +1 -1
  128. package/dist/test.d.ts +5 -0
  129. package/dist/test.d.ts.map +1 -1
  130. package/dist/test.js +0 -1
  131. package/dist/test.js.map +1 -1
  132. package/package.json +28 -28
  133. package/admin/README.md +0 -99
  134. package/admin-dist/public/assets/ContentEntryEditor-BU220CCy.js +0 -4
  135. package/admin-dist/public/assets/_contentTypeId-DK8cskRt.js +0 -1
  136. package/admin-dist/public/assets/_entryId-CuVMExbb.js +0 -1
  137. package/admin-dist/public/assets/content-QBUxdxbS.js +0 -1
  138. package/admin-dist/public/assets/globals-B7Wsfh_v.css +0 -1
  139. package/admin-dist/public/assets/main-CjQ2VI9L.js +0 -97
  140. package/admin-dist/public/assets/media-Dc5PWt2Q.js +0 -1
  141. package/admin-dist/public/assets/new._contentTypeId-C_I4YxIa.js +0 -1
  142. package/admin-dist/public/assets/settings-t2PbCZh4.js +0 -1
  143. package/admin-dist/public/assets/tabs-q4EbZk7c.js +0 -1
  144. package/admin-dist/public/assets/taxonomies-kyk5P4ZW.js +0 -1
  145. package/admin-dist/server/_ssr/_tanstack-start-manifest_v-BffZedId.mjs +0 -4
@@ -0,0 +1,144 @@
1
+ import { r as reactExports, j as jsxRuntimeExports } from "../react.mjs";
2
+ import { c as composeEventHandlers } from "./primitive.mjs";
3
+ import { c as createContextScope } from "./react-context.mjs";
4
+ import { u as useControllableState } from "./react-use-controllable-state.mjs";
5
+ import { u as useLayoutEffect2 } from "./react-use-layout-effect.mjs";
6
+ import { u as useComposedRefs } from "./react-compose-refs.mjs";
7
+ import { P as Primitive } from "./react-primitive.mjs";
8
+ import { P as Presence } from "./react-presence.mjs";
9
+ import { u as useId } from "./react-id.mjs";
10
+ var COLLAPSIBLE_NAME = "Collapsible";
11
+ var [createCollapsibleContext] = createContextScope(COLLAPSIBLE_NAME);
12
+ var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
13
+ var Collapsible = reactExports.forwardRef(
14
+ (props, forwardedRef) => {
15
+ const {
16
+ __scopeCollapsible,
17
+ open: openProp,
18
+ defaultOpen,
19
+ disabled,
20
+ onOpenChange,
21
+ ...collapsibleProps
22
+ } = props;
23
+ const [open, setOpen] = useControllableState({
24
+ prop: openProp,
25
+ defaultProp: defaultOpen ?? false,
26
+ onChange: onOpenChange,
27
+ caller: COLLAPSIBLE_NAME
28
+ });
29
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
30
+ CollapsibleProvider,
31
+ {
32
+ scope: __scopeCollapsible,
33
+ disabled,
34
+ contentId: useId(),
35
+ open,
36
+ onOpenToggle: reactExports.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
37
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
38
+ Primitive.div,
39
+ {
40
+ "data-state": getState(open),
41
+ "data-disabled": disabled ? "" : void 0,
42
+ ...collapsibleProps,
43
+ ref: forwardedRef
44
+ }
45
+ )
46
+ }
47
+ );
48
+ }
49
+ );
50
+ Collapsible.displayName = COLLAPSIBLE_NAME;
51
+ var TRIGGER_NAME = "CollapsibleTrigger";
52
+ var CollapsibleTrigger = reactExports.forwardRef(
53
+ (props, forwardedRef) => {
54
+ const { __scopeCollapsible, ...triggerProps } = props;
55
+ const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
56
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
57
+ Primitive.button,
58
+ {
59
+ type: "button",
60
+ "aria-controls": context.contentId,
61
+ "aria-expanded": context.open || false,
62
+ "data-state": getState(context.open),
63
+ "data-disabled": context.disabled ? "" : void 0,
64
+ disabled: context.disabled,
65
+ ...triggerProps,
66
+ ref: forwardedRef,
67
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
68
+ }
69
+ );
70
+ }
71
+ );
72
+ CollapsibleTrigger.displayName = TRIGGER_NAME;
73
+ var CONTENT_NAME = "CollapsibleContent";
74
+ var CollapsibleContent = reactExports.forwardRef(
75
+ (props, forwardedRef) => {
76
+ const { forceMount, ...contentProps } = props;
77
+ const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);
78
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });
79
+ }
80
+ );
81
+ CollapsibleContent.displayName = CONTENT_NAME;
82
+ var CollapsibleContentImpl = reactExports.forwardRef((props, forwardedRef) => {
83
+ const { __scopeCollapsible, present, children, ...contentProps } = props;
84
+ const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
85
+ const [isPresent, setIsPresent] = reactExports.useState(present);
86
+ const ref = reactExports.useRef(null);
87
+ const composedRefs = useComposedRefs(forwardedRef, ref);
88
+ const heightRef = reactExports.useRef(0);
89
+ const height = heightRef.current;
90
+ const widthRef = reactExports.useRef(0);
91
+ const width = widthRef.current;
92
+ const isOpen = context.open || isPresent;
93
+ const isMountAnimationPreventedRef = reactExports.useRef(isOpen);
94
+ const originalStylesRef = reactExports.useRef(void 0);
95
+ reactExports.useEffect(() => {
96
+ const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
97
+ return () => cancelAnimationFrame(rAF);
98
+ }, []);
99
+ useLayoutEffect2(() => {
100
+ const node = ref.current;
101
+ if (node) {
102
+ originalStylesRef.current = originalStylesRef.current || {
103
+ transitionDuration: node.style.transitionDuration,
104
+ animationName: node.style.animationName
105
+ };
106
+ node.style.transitionDuration = "0s";
107
+ node.style.animationName = "none";
108
+ const rect = node.getBoundingClientRect();
109
+ heightRef.current = rect.height;
110
+ widthRef.current = rect.width;
111
+ if (!isMountAnimationPreventedRef.current) {
112
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
113
+ node.style.animationName = originalStylesRef.current.animationName;
114
+ }
115
+ setIsPresent(present);
116
+ }
117
+ }, [context.open, present]);
118
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
119
+ Primitive.div,
120
+ {
121
+ "data-state": getState(context.open),
122
+ "data-disabled": context.disabled ? "" : void 0,
123
+ id: context.contentId,
124
+ hidden: !isOpen,
125
+ ...contentProps,
126
+ ref: composedRefs,
127
+ style: {
128
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,
129
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,
130
+ ...props.style
131
+ },
132
+ children: isOpen && children
133
+ }
134
+ );
135
+ });
136
+ function getState(open) {
137
+ return open ? "open" : "closed";
138
+ }
139
+ var Root = Collapsible;
140
+ export {
141
+ CollapsibleTrigger as C,
142
+ Root as R,
143
+ CollapsibleContent as a
144
+ };
@@ -1,21 +1,10 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, R as React } from "../react.mjs";
2
2
  import { c as composeRefs } from "./react-compose-refs.mjs";
3
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
4
- var use = React[" use ".trim().toString()];
5
- function isPromiseLike(value) {
6
- return typeof value === "object" && value !== null && "then" in value;
7
- }
8
- function isLazyComponent(element) {
9
- return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
10
- }
11
3
  // @__NO_SIDE_EFFECTS__
12
4
  function createSlot$6(ownerName) {
13
5
  const SlotClone = /* @__PURE__ */ createSlotClone$6(ownerName);
14
6
  const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
15
- let { children, ...slotProps } = props;
16
- if (isLazyComponent(children) && typeof use === "function") {
17
- children = use(children._payload);
18
- }
7
+ const { children, ...slotProps } = props;
19
8
  const childrenArray = reactExports.Children.toArray(children);
20
9
  const slottable = childrenArray.find(isSlottable$6);
21
10
  if (slottable) {
@@ -35,14 +24,10 @@ function createSlot$6(ownerName) {
35
24
  Slot2.displayName = `${ownerName}.Slot`;
36
25
  return Slot2;
37
26
  }
38
- var Slot = /* @__PURE__ */ createSlot$6("Slot");
39
27
  // @__NO_SIDE_EFFECTS__
40
28
  function createSlotClone$6(ownerName) {
41
29
  const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
42
- let { children, ...slotProps } = props;
43
- if (isLazyComponent(children) && typeof use === "function") {
44
- children = use(children._payload);
45
- }
30
+ const { children, ...slotProps } = props;
46
31
  if (reactExports.isValidElement(children)) {
47
32
  const childrenRef = getElementRef$6(children);
48
33
  const props2 = mergeProps$6(slotProps, children.props);
@@ -97,11 +82,22 @@ function getElementRef$6(element) {
97
82
  }
98
83
  return element.props.ref || element.ref;
99
84
  }
85
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
86
+ var use = React[" use ".trim().toString()];
87
+ function isPromiseLike(value) {
88
+ return typeof value === "object" && value !== null && "then" in value;
89
+ }
90
+ function isLazyComponent(element) {
91
+ return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
92
+ }
100
93
  // @__NO_SIDE_EFFECTS__
101
94
  function createSlot$5(ownerName) {
102
95
  const SlotClone = /* @__PURE__ */ createSlotClone$5(ownerName);
103
96
  const Slot2 = reactExports.forwardRef((props, forwardedRef) => {
104
- const { children, ...slotProps } = props;
97
+ let { children, ...slotProps } = props;
98
+ if (isLazyComponent(children) && typeof use === "function") {
99
+ children = use(children._payload);
100
+ }
105
101
  const childrenArray = reactExports.Children.toArray(children);
106
102
  const slottable = childrenArray.find(isSlottable$5);
107
103
  if (slottable) {
@@ -121,10 +117,14 @@ function createSlot$5(ownerName) {
121
117
  Slot2.displayName = `${ownerName}.Slot`;
122
118
  return Slot2;
123
119
  }
120
+ var Slot = /* @__PURE__ */ createSlot$5("Slot");
124
121
  // @__NO_SIDE_EFFECTS__
125
122
  function createSlotClone$5(ownerName) {
126
123
  const SlotClone = reactExports.forwardRef((props, forwardedRef) => {
127
- const { children, ...slotProps } = props;
124
+ let { children, ...slotProps } = props;
125
+ if (isLazyComponent(children) && typeof use === "function") {
126
+ children = use(children._payload);
127
+ }
128
128
  if (reactExports.isValidElement(children)) {
129
129
  const childrenRef = getElementRef$5(children);
130
130
  const props2 = mergeProps$5(slotProps, children.props);
@@ -591,9 +591,9 @@ function getElementRef(element) {
591
591
  }
592
592
  export {
593
593
  Slot as S,
594
- createSlot$6 as a,
594
+ createSlot$5 as a,
595
595
  createSlot$4 as b,
596
- createSlot$5 as c,
596
+ createSlot$6 as c,
597
597
  createSlot$3 as d,
598
598
  createSlot$2 as e,
599
599
  createSlot$1 as f,