@fuma-content/studio 1.0.3 → 1.0.4

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 (109) hide show
  1. package/build/client/assets/{QueryClientProvider-Cys2v_1v.js → QueryClientProvider-BFSUF51X.js} +1 -1
  2. package/build/client/assets/actions-ByenKsIt.js +1 -0
  3. package/build/client/assets/actions-ClHPL1CP.js +1 -0
  4. package/build/client/assets/badge-BnhEE6iu.js +1 -0
  5. package/build/client/assets/{client-Cfd36Zz-.js → client-BEKU4RIg.js} +146 -146
  6. package/build/client/assets/client-DBU2dkUR.js +1 -0
  7. package/build/client/assets/client-DvwvjHta.js +1 -0
  8. package/build/client/assets/client-wd2sce2I.js +8 -0
  9. package/build/client/assets/dropdown-menu-By_XeFX4.js +1 -0
  10. package/build/client/assets/entry.rsc-J_U0YQEr.js +1 -0
  11. package/build/client/assets/{index-DL539Bhx.js → index-B5GacMxj.js} +1 -1
  12. package/build/client/assets/index-BTaHNKf7.js +1 -0
  13. package/build/client/assets/index-BgFxGtat.js +1 -0
  14. package/build/client/assets/index-CG_0cSZQ.js +1 -0
  15. package/build/client/assets/index-CfCSvolS.js +1 -0
  16. package/build/client/assets/{index-C37mbJ0i.js → index-D8KuzOxG.js} +1 -1
  17. package/build/client/assets/index-DrT4Adhh.js +41 -0
  18. package/build/client/assets/{index-DXHuzvfN.js → index-El_a1Yhs.js} +1 -1
  19. package/build/client/assets/index-QYLIz8qa.js +1 -0
  20. package/build/client/assets/layout-BPVd8vtW.js +1 -0
  21. package/build/client/assets/{mdx-CehodSrM.js → mdx-DBJIR6uw.js} +1 -1
  22. package/build/client/assets/page-BJL5nvn-.js +1 -0
  23. package/build/client/assets/page-eyuUZvVn.js +1 -0
  24. package/build/client/assets/popover-BowiFsDm.js +1 -0
  25. package/build/client/assets/{react-D58ornpH.js → react-CzFdRS7Y.js} +7 -7
  26. package/build/client/assets/root-7fvd-0uP.js +1 -0
  27. package/build/client/assets/root-B0B6-NU5.css +1 -0
  28. package/build/client/assets/{root-CNcQf1GA.js → root-jg-0qm8s.js} +1 -1
  29. package/build/client/assets/route-BLLsZ_zO.js +1 -0
  30. package/build/client/assets/{router-XCTsiXqQ.js → router-QEl8O8lm.js} +1 -1
  31. package/build/client/assets/select-BI356bZ1.js +1 -0
  32. package/build/client/assets/separator-0kwG7IIM.js +1 -0
  33. package/build/client/assets/sidebar-ByyQE2QS.js +12 -0
  34. package/build/client/assets/{site-header-1Aor7-g4.js → site-header-iBpA4Sim.js} +1 -1
  35. package/build/client/assets/spinner-D35u7i0p.js +1 -0
  36. package/build/client/assets/tooltip-v-_I4rCw.js +16 -0
  37. package/build/client/assets/use-sync-yCWvjE_m.js +2 -0
  38. package/build/client/assets/{yaml-DUnUkeX8.js → yaml-BnQf_2Zt.js} +1 -1
  39. package/build/server/__ssr_build/__vite_rsc_assets_manifest.js +213 -133
  40. package/build/server/__ssr_build/assets/{actions-DLZnfFzU.js → actions-C5Kv8XYU.js} +2 -2
  41. package/build/server/__ssr_build/assets/{actions-D6dLhck1.js → actions-DQIBBM15.js} +4 -4
  42. package/build/server/__ssr_build/assets/{badge-CH6ntch2.js → badge-B48L9yYO.js} +1 -1
  43. package/build/server/__ssr_build/assets/{client-C-WcMcGh.js → client-AuWNsacU.js} +3 -3
  44. package/build/server/__ssr_build/assets/client-BHaLyky8.js +1162 -0
  45. package/build/server/__ssr_build/assets/{client-DX-wDNer.js → client-BogEWrwz.js} +9 -5
  46. package/build/server/__ssr_build/assets/{client-JNaR8Jey.js → client-DXOHI3cC.js} +2808 -4397
  47. package/build/server/__ssr_build/assets/{dropdown-menu-gcIcDMHP.js → dropdown-menu-CnDgV_JY.js} +7 -9
  48. package/build/server/__ssr_build/assets/{entry.rsc-Cg_DxYkh.js → entry.rsc-aOU-YPkj.js} +1 -1
  49. package/build/server/__ssr_build/assets/{index-PpqpVA51.js → index-B6ajh-UP.js} +1 -1
  50. package/build/server/__ssr_build/assets/index-BPd5y8T-.js +76 -0
  51. package/build/server/__ssr_build/assets/{button-U-KvP9zg.js → index-By9m5mBe.js} +3272 -3175
  52. package/build/server/__ssr_build/assets/index-Ch7b9Ofo.js +37 -0
  53. package/build/server/__ssr_build/assets/{index-BJ-AF-IL.js → index-Cw6b1mnl.js} +8 -7
  54. package/build/server/__ssr_build/assets/{index-BloUStie.js → index-kCa2P0Xn.js} +4 -75
  55. package/build/server/__ssr_build/assets/{index-CWwW5yWZ.js → index-tFzyztyE.js} +2 -2
  56. package/build/server/__ssr_build/assets/{layout-B79fq6F-.js → layout-CC-HJHWR.js} +13 -11
  57. package/build/server/__ssr_build/assets/{mdx-bmeV1kyx.js → mdx-D9VFmsYC.js} +1 -1
  58. package/build/server/__ssr_build/assets/{page-CxhOzrct.js → page-BVUd9aDy.js} +10 -8
  59. package/build/server/__ssr_build/assets/{page-DxtKhA1K.js → page-C_wQzy3_.js} +13 -11
  60. package/build/server/__ssr_build/assets/popover-CzQgoguQ.js +321 -0
  61. package/build/server/__ssr_build/assets/{root-TWeSpY2W.js → root-BmMc6_zA.js} +1 -1
  62. package/build/server/__ssr_build/assets/route-CNYc37pV.js +860 -0
  63. package/build/server/__ssr_build/assets/{spinner-w3Q_wkh3.js → select-B8QQSB6X.js} +10 -25
  64. package/build/server/__ssr_build/assets/{separator-CKrKBtv4.js → separator-C601eKPH.js} +2 -2
  65. package/build/server/__ssr_build/assets/{sidebar-DoXmiwf0.js → sidebar-C6fHDjcx.js} +237 -65
  66. package/build/server/__ssr_build/assets/{site-header-pFjDV73T.js → site-header-Bmsr3a30.js} +2 -2
  67. package/build/server/__ssr_build/assets/spinner-D5zAJQcS.js +19 -0
  68. package/build/server/__ssr_build/assets/{tooltip-B2NV0tpS.js → tooltip-B3A57zPO.js} +1211 -1211
  69. package/build/server/__ssr_build/assets/{use-sync-p_-o0jkt.js → use-sync-DTZgOM1O.js} +29 -1185
  70. package/build/server/__ssr_build/assets/{yaml-BEdFfhvc.js → yaml-xJU1Ur4O.js} +1 -1
  71. package/build/server/__ssr_build/index.js +31 -15
  72. package/build/server/__vite_rsc_assets_manifest.js +213 -133
  73. package/build/server/assets/{actions-C92yn6jE.js → actions-BbMzIy5J.js} +2 -2
  74. package/build/server/assets/{actions-CWWFIcb1.js → actions-CjWBMAed.js} +2 -2
  75. package/build/server/assets/{actions-DZdN0IBq.js → actions-cRzXiMyR.js} +2 -2
  76. package/build/server/assets/{config-Cb909uq6.js → config-Dka4Bvz4.js} +10 -10
  77. package/build/server/assets/{layout-CRw_6FCt.js → layout-CIIfFN0v.js} +2 -2
  78. package/build/server/assets/{page-BfKoQQmw.js → page-pyqagPXb.js} +2 -2
  79. package/build/server/assets/root-B0B6-NU5.css +1 -0
  80. package/build/server/assets/{root-BqMNAwvK.js → root-D1ebFoST.js} +1 -1
  81. package/build/server/assets/{route-DiqCR5uw.js → route-C7QEArEP.js} +13911 -5699
  82. package/build/server/index.js +40 -15
  83. package/dist/bin.mjs +4 -4
  84. package/dist/package.mjs +1 -1
  85. package/package.json +32 -15
  86. package/build/client/assets/actions-BIaFztcg.js +0 -1
  87. package/build/client/assets/actions-Bws1O3FH.js +0 -1
  88. package/build/client/assets/badge-C70RdDmr.js +0 -1
  89. package/build/client/assets/button-B0G-joJA.js +0 -41
  90. package/build/client/assets/client-C814jsdE.js +0 -1
  91. package/build/client/assets/client-wwp8K9Xz.js +0 -1
  92. package/build/client/assets/dropdown-menu-Re3QusA0.js +0 -1
  93. package/build/client/assets/entry.rsc-CdTwhQ3_.js +0 -1
  94. package/build/client/assets/index-DZ8LIlZu.js +0 -1
  95. package/build/client/assets/index-DprkZK2S.js +0 -1
  96. package/build/client/assets/index-UnlOgAz7.js +0 -1
  97. package/build/client/assets/layout-C5TjiFIx.js +0 -1
  98. package/build/client/assets/page-CiRIEJz9.js +0 -1
  99. package/build/client/assets/page-DBIuN_hk.js +0 -1
  100. package/build/client/assets/root-CbriXo_i.css +0 -1
  101. package/build/client/assets/root-DJ8qMHCd.js +0 -1
  102. package/build/client/assets/separator-BDe8wWVP.js +0 -1
  103. package/build/client/assets/sidebar-DNKkYLTA.js +0 -12
  104. package/build/client/assets/spinner-O3ZbB6fn.js +0 -1
  105. package/build/client/assets/tooltip-B4fI3WTO.js +0 -16
  106. package/build/client/assets/use-sync-CfDyibsS.js +0 -9
  107. package/build/server/assets/root-CbriXo_i.css +0 -1
  108. /package/build/server/__ssr_build/assets/{root-BYlluTc0.js → root-S8l7oX7x.js} +0 -0
  109. /package/build/server/assets/{root-ByROcfN4.js → root-DRYtk85G.js} +0 -0
@@ -0,0 +1,37 @@
1
+ import { r as reactExports, j as jsxRuntimeExports } from "../index.js";
2
+ import { G as createSlot } from "./index-By9m5mBe.js";
3
+ var NODES = [
4
+ "a",
5
+ "button",
6
+ "div",
7
+ "form",
8
+ "h2",
9
+ "h3",
10
+ "img",
11
+ "input",
12
+ "label",
13
+ "li",
14
+ "nav",
15
+ "ol",
16
+ "p",
17
+ "select",
18
+ "span",
19
+ "svg",
20
+ "ul"
21
+ ];
22
+ var Primitive = NODES.reduce((primitive, node) => {
23
+ const Slot = createSlot(`Primitive.${node}`);
24
+ const Node = reactExports.forwardRef((props, forwardedRef) => {
25
+ const { asChild, ...primitiveProps } = props;
26
+ const Comp = asChild ? Slot : node;
27
+ if (typeof window !== "undefined") {
28
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
29
+ }
30
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
31
+ });
32
+ Node.displayName = `Primitive.${node}`;
33
+ return { ...primitive, [node]: Node };
34
+ }, {});
35
+ export {
36
+ Primitive as P
37
+ };
@@ -1,14 +1,15 @@
1
1
  import { j as jsxRuntimeExports, L as Link } from "../index.js";
2
- import { C as CollectionActionsContext } from "./actions-DLZnfFzU.js";
3
- import { S as SiteHeader } from "./site-header-pFjDV73T.js";
4
- import { u as useLiveQuery, c as collection } from "./sidebar-DoXmiwf0.js";
5
- import { c as createLucideIcon } from "./button-U-KvP9zg.js";
2
+ import { C as CollectionActionsContext } from "./actions-C5Kv8XYU.js";
3
+ import { S as SiteHeader } from "./site-header-Bmsr3a30.js";
4
+ import { u as useLiveQuery, c as collection } from "./sidebar-C6fHDjcx.js";
5
+ import { c as createLucideIcon } from "./index-By9m5mBe.js";
6
6
  import "../__vite_rsc_assets_manifest.js";
7
7
  import "node:async_hooks";
8
- import "./tooltip-B2NV0tpS.js";
8
+ import "./tooltip-B3A57zPO.js";
9
9
  import "class-variance-authority";
10
- import "./client-C-WcMcGh.js";
11
- import "./separator-CKrKBtv4.js";
10
+ import "./client-AuWNsacU.js";
11
+ import "./separator-C601eKPH.js";
12
+ import "./index-Ch7b9Ofo.js";
12
13
  import "@tanstack/query-db-collection";
13
14
  import "./query-C1_xUNXy.js";
14
15
  import "clsx";
@@ -1,74 +1,6 @@
1
- import { c as createLucideIcon, a as createContextScope, u as useComposedRefs, o as createSlot, k as useId, P as Primitive, b as composeEventHandlers, h as useControllableState, e as useCallbackRef } from "./button-U-KvP9zg.js";
2
- import { d as We, j as jsxRuntimeExports, r as reactExports } from "../index.js";
3
- const __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
4
- const Check = createLucideIcon("check", __iconNode);
5
- function createCollection(name) {
6
- const PROVIDER_NAME = name + "CollectionProvider";
7
- const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME);
8
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
9
- PROVIDER_NAME,
10
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
11
- );
12
- const CollectionProvider = (props) => {
13
- const { scope, children } = props;
14
- const ref = We.useRef(null);
15
- const itemMap = We.useRef(/* @__PURE__ */ new Map()).current;
16
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
17
- };
18
- CollectionProvider.displayName = PROVIDER_NAME;
19
- const COLLECTION_SLOT_NAME = name + "CollectionSlot";
20
- const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
21
- const CollectionSlot = We.forwardRef(
22
- (props, forwardedRef) => {
23
- const { scope, children } = props;
24
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
25
- const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
26
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionSlotImpl, { ref: composedRefs, children });
27
- }
28
- );
29
- CollectionSlot.displayName = COLLECTION_SLOT_NAME;
30
- const ITEM_SLOT_NAME = name + "CollectionItemSlot";
31
- const ITEM_DATA_ATTR = "data-radix-collection-item";
32
- const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
33
- const CollectionItemSlot = We.forwardRef(
34
- (props, forwardedRef) => {
35
- const { scope, children, ...itemData } = props;
36
- const ref = We.useRef(null);
37
- const composedRefs = useComposedRefs(forwardedRef, ref);
38
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
39
- We.useEffect(() => {
40
- context.itemMap.set(ref, { ref, ...itemData });
41
- return () => void context.itemMap.delete(ref);
42
- });
43
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
44
- }
45
- );
46
- CollectionItemSlot.displayName = ITEM_SLOT_NAME;
47
- function useCollection2(scope) {
48
- const context = useCollectionContext(name + "CollectionConsumer", scope);
49
- const getItems = We.useCallback(() => {
50
- const collectionNode = context.collectionRef.current;
51
- if (!collectionNode) return [];
52
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
53
- const items = Array.from(context.itemMap.values());
54
- const orderedItems = items.sort(
55
- (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
56
- );
57
- return orderedItems;
58
- }, [context.collectionRef, context.itemMap]);
59
- return getItems;
60
- }
61
- return [
62
- { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
63
- useCollection2,
64
- createCollectionScope2
65
- ];
66
- }
67
- var DirectionContext = reactExports.createContext(void 0);
68
- function useDirection(localDir) {
69
- const globalDir = reactExports.useContext(DirectionContext);
70
- return localDir || globalDir || "ltr";
71
- }
1
+ import { r as reactExports, j as jsxRuntimeExports } from "../index.js";
2
+ import { u as useId, P as Primitive, g as composeEventHandlers, h as createContextScope, m as useComposedRefs, f as useControllableState, d as useCallbackRef } from "./index-By9m5mBe.js";
3
+ import { c as createCollection, u as useDirection } from "./index-BPd5y8T-.js";
72
4
  var ENTRY_FOCUS = "rovingFocusGroup.onEntryFocus";
73
5
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
74
6
  var GROUP_NAME = "RovingFocusGroup";
@@ -279,10 +211,7 @@ function wrapArray(array, startIndex) {
279
211
  var Root = RovingFocusGroup;
280
212
  var Item = RovingFocusGroupItem;
281
213
  export {
282
- Check as C,
283
214
  Item as I,
284
215
  Root as R,
285
- createCollection as a,
286
- createRovingFocusGroupScope as c,
287
- useDirection as u
216
+ createRovingFocusGroupScope as c
288
217
  };
@@ -1,5 +1,5 @@
1
- import { c as createLucideIcon } from "./button-U-KvP9zg.js";
2
- import { d as We, R as ReactDOM } from "../index.js";
1
+ import { c as createLucideIcon } from "./index-By9m5mBe.js";
2
+ import { W as We, R as ReactDOM } from "../index.js";
3
3
  const __iconNode = [
4
4
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
5
5
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
@@ -1,24 +1,26 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, L as Link, u as useLocation, O as Outlet } from "../index.js";
2
- import { u as useLiveQuery, b as Sidebar, f as SidebarHeader, g as SidebarMenuButton, h as SidebarContent, i as SidebarGroup, j as SidebarGroupContent, k as SidebarMenu, l as SidebarFooter, c as collection, d as documentCollection, e as eq, o as or, m as ilike, n as SidebarMenuItem, p as SidebarProvider, q as SidebarInset } from "./sidebar-DoXmiwf0.js";
3
- import { B as Badge } from "./badge-CH6ntch2.js";
4
- import { c as createLucideIcon, s as cn } from "./button-U-KvP9zg.js";
2
+ import { u as useLiveQuery, b as Sidebar, f as SidebarHeader, g as SidebarMenuButton, h as SidebarContent, i as SidebarGroup, j as SidebarGroupContent, k as SidebarMenu, l as SidebarFooter, c as collection, d as documentCollection, e as eq, o as or, m as ilike, n as SidebarMenuItem, p as SidebarProvider, q as SidebarInset } from "./sidebar-C6fHDjcx.js";
3
+ import { B as Badge } from "./badge-B48L9yYO.js";
4
+ import { c as createLucideIcon, b as cn } from "./index-By9m5mBe.js";
5
5
  import { z } from "./index-DvVNShHF.js";
6
- import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem, L as LoaderCircle, e as Spinner } from "./spinner-w3Q_wkh3.js";
7
- import { a as DocumentActionsContext } from "./actions-D6dLhck1.js";
8
- import { C as CollectionActionsContext } from "./actions-DLZnfFzU.js";
9
- import { S as Search, T as Toaster$1 } from "./index-CWwW5yWZ.js";
10
- import { C as ClientContextProvider } from "./client-C-WcMcGh.js";
6
+ import { S as Select, a as SelectTrigger, b as SelectValue, c as SelectContent, d as SelectItem } from "./select-B8QQSB6X.js";
7
+ import { a as DocumentActionsContext } from "./actions-DQIBBM15.js";
8
+ import { C as CollectionActionsContext } from "./actions-C5Kv8XYU.js";
9
+ import { S as Search, T as Toaster$1 } from "./index-tFzyztyE.js";
10
+ import { C as ClientContextProvider } from "./client-AuWNsacU.js";
11
+ import { L as LoaderCircle, S as Spinner } from "./spinner-D5zAJQcS.js";
11
12
  import { t as tryResolveSync, n as noop } from "./query-C1_xUNXy.js";
12
13
  import { u as useQueryClient } from "./QueryClientProvider-DlvBH3OQ.js";
13
14
  import "../__vite_rsc_assets_manifest.js";
14
15
  import "node:async_hooks";
15
16
  import "@tanstack/query-db-collection";
16
17
  import "class-variance-authority";
17
- import "./tooltip-B2NV0tpS.js";
18
+ import "./tooltip-B3A57zPO.js";
18
19
  import "clsx";
19
20
  import "tailwind-merge";
20
- import "./index-BloUStie.js";
21
- import "./dropdown-menu-gcIcDMHP.js";
21
+ import "./index-BPd5y8T-.js";
22
+ import "./dropdown-menu-CnDgV_JY.js";
23
+ import "./index-kCa2P0Xn.js";
22
24
  const __iconNode$8 = [
23
25
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
24
26
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
@@ -1,5 +1,5 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../index.js";
2
- import { F as Ft } from "./index-PpqpVA51.js";
2
+ import { F as Ft } from "./index-B6ajh-UP.js";
3
3
  import { z } from "./index-DvVNShHF.js";
4
4
  import "../__vite_rsc_assets_manifest.js";
5
5
  import "node:async_hooks";
@@ -1,17 +1,19 @@
1
1
  import { j as jsxRuntimeExports, L as Link } from "../index.js";
2
- import { D as DocumentActionsDropdown } from "./actions-D6dLhck1.js";
3
- import { S as SiteHeader } from "./site-header-pFjDV73T.js";
4
- import { u as useLiveQuery, d as documentCollection, a as and, e as eq } from "./sidebar-DoXmiwf0.js";
2
+ import { D as DocumentActionsDropdown } from "./actions-DQIBBM15.js";
3
+ import { S as SiteHeader } from "./site-header-Bmsr3a30.js";
4
+ import { u as useLiveQuery, d as documentCollection, a as and, e as eq } from "./sidebar-C6fHDjcx.js";
5
5
  import "../__vite_rsc_assets_manifest.js";
6
6
  import "node:async_hooks";
7
- import "./dropdown-menu-gcIcDMHP.js";
8
- import "./button-U-KvP9zg.js";
7
+ import "./dropdown-menu-CnDgV_JY.js";
8
+ import "./index-By9m5mBe.js";
9
9
  import "class-variance-authority";
10
10
  import "clsx";
11
11
  import "tailwind-merge";
12
- import "./index-BloUStie.js";
13
- import "./tooltip-B2NV0tpS.js";
14
- import "./separator-CKrKBtv4.js";
12
+ import "./index-BPd5y8T-.js";
13
+ import "./index-kCa2P0Xn.js";
14
+ import "./tooltip-B3A57zPO.js";
15
+ import "./separator-C601eKPH.js";
16
+ import "./index-Ch7b9Ofo.js";
15
17
  import "@tanstack/query-db-collection";
16
18
  import "./query-C1_xUNXy.js";
17
19
  function Header({ collectionId, documentId }) {
@@ -1,22 +1,24 @@
1
1
  import { j as jsxRuntimeExports, L as Link } from "../index.js";
2
- import { B as Badge } from "./badge-CH6ntch2.js";
3
- import { S as SiteHeader } from "./site-header-pFjDV73T.js";
4
- import { u as useLiveQuery, c as collection, e as eq, d as documentCollection } from "./sidebar-DoXmiwf0.js";
5
- import { u as useCreateDocumentDialog, F as FilePlus } from "./client-C-WcMcGh.js";
6
- import { w as buttonVariants } from "./button-U-KvP9zg.js";
7
- import { a as DocumentActionsContext, D as DocumentActionsDropdown } from "./actions-D6dLhck1.js";
8
- import { N as NotFoundError } from "./root-BYlluTc0.js";
2
+ import { B as Badge } from "./badge-B48L9yYO.js";
3
+ import { S as SiteHeader } from "./site-header-Bmsr3a30.js";
4
+ import { u as useLiveQuery, c as collection, e as eq, d as documentCollection } from "./sidebar-C6fHDjcx.js";
5
+ import { u as useCreateDocumentDialog, F as FilePlus } from "./client-AuWNsacU.js";
6
+ import { j as buttonVariants } from "./index-By9m5mBe.js";
7
+ import { a as DocumentActionsContext, D as DocumentActionsDropdown } from "./actions-DQIBBM15.js";
8
+ import { N as NotFoundError } from "./root-S8l7oX7x.js";
9
9
  import "../__vite_rsc_assets_manifest.js";
10
10
  import "node:async_hooks";
11
11
  import "class-variance-authority";
12
- import "./separator-CKrKBtv4.js";
12
+ import "./separator-C601eKPH.js";
13
+ import "./index-Ch7b9Ofo.js";
13
14
  import "@tanstack/query-db-collection";
14
15
  import "./query-C1_xUNXy.js";
15
- import "./tooltip-B2NV0tpS.js";
16
+ import "./tooltip-B3A57zPO.js";
16
17
  import "clsx";
17
18
  import "tailwind-merge";
18
- import "./dropdown-menu-gcIcDMHP.js";
19
- import "./index-BloUStie.js";
19
+ import "./dropdown-menu-CnDgV_JY.js";
20
+ import "./index-BPd5y8T-.js";
21
+ import "./index-kCa2P0Xn.js";
20
22
  import "./QueryClientProvider-DlvBH3OQ.js";
21
23
  import "./index-DvVNShHF.js";
22
24
  function Page(args) {
@@ -0,0 +1,321 @@
1
+ import { r as reactExports, j as jsxRuntimeExports } from "../index.js";
2
+ import { m as useComposedRefs, P as Primitive, g as composeEventHandlers, A as Anchor, q as Presence, s as Portal$1, f as useControllableState, R as Root2$1, u as useId, t as createPopperScope, v as hideOthers, w as ReactRemoveScroll, h as createContextScope, x as createSlot, y as useFocusGuards, F as FocusScope, D as DismissableLayer, z as Content, E as Arrow, b as cn } from "./index-By9m5mBe.js";
3
+ var POPOVER_NAME = "Popover";
4
+ var [createPopoverContext] = createContextScope(POPOVER_NAME, [
5
+ createPopperScope
6
+ ]);
7
+ var usePopperScope = createPopperScope();
8
+ var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
9
+ var Popover$1 = (props) => {
10
+ const {
11
+ __scopePopover,
12
+ children,
13
+ open: openProp,
14
+ defaultOpen,
15
+ onOpenChange,
16
+ modal = false
17
+ } = props;
18
+ const popperScope = usePopperScope(__scopePopover);
19
+ const triggerRef = reactExports.useRef(null);
20
+ const [hasCustomAnchor, setHasCustomAnchor] = reactExports.useState(false);
21
+ const [open, setOpen] = useControllableState({
22
+ prop: openProp,
23
+ defaultProp: defaultOpen ?? false,
24
+ onChange: onOpenChange,
25
+ caller: POPOVER_NAME
26
+ });
27
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2$1, { ...popperScope, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
28
+ PopoverProvider,
29
+ {
30
+ scope: __scopePopover,
31
+ contentId: useId(),
32
+ triggerRef,
33
+ open,
34
+ onOpenChange: setOpen,
35
+ onOpenToggle: reactExports.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
36
+ hasCustomAnchor,
37
+ onCustomAnchorAdd: reactExports.useCallback(() => setHasCustomAnchor(true), []),
38
+ onCustomAnchorRemove: reactExports.useCallback(() => setHasCustomAnchor(false), []),
39
+ modal,
40
+ children
41
+ }
42
+ ) });
43
+ };
44
+ Popover$1.displayName = POPOVER_NAME;
45
+ var ANCHOR_NAME = "PopoverAnchor";
46
+ var PopoverAnchor$1 = reactExports.forwardRef(
47
+ (props, forwardedRef) => {
48
+ const { __scopePopover, ...anchorProps } = props;
49
+ const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
50
+ const popperScope = usePopperScope(__scopePopover);
51
+ const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
52
+ reactExports.useEffect(() => {
53
+ onCustomAnchorAdd();
54
+ return () => onCustomAnchorRemove();
55
+ }, [onCustomAnchorAdd, onCustomAnchorRemove]);
56
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
57
+ }
58
+ );
59
+ PopoverAnchor$1.displayName = ANCHOR_NAME;
60
+ var TRIGGER_NAME = "PopoverTrigger";
61
+ var PopoverTrigger$1 = reactExports.forwardRef(
62
+ (props, forwardedRef) => {
63
+ const { __scopePopover, ...triggerProps } = props;
64
+ const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
65
+ const popperScope = usePopperScope(__scopePopover);
66
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
67
+ const trigger = /* @__PURE__ */ jsxRuntimeExports.jsx(
68
+ Primitive.button,
69
+ {
70
+ type: "button",
71
+ "aria-haspopup": "dialog",
72
+ "aria-expanded": context.open,
73
+ "aria-controls": context.contentId,
74
+ "data-state": getState(context.open),
75
+ ...triggerProps,
76
+ ref: composedTriggerRef,
77
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
78
+ }
79
+ );
80
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsxRuntimeExports.jsx(Anchor, { asChild: true, ...popperScope, children: trigger });
81
+ }
82
+ );
83
+ PopoverTrigger$1.displayName = TRIGGER_NAME;
84
+ var PORTAL_NAME = "PopoverPortal";
85
+ var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
86
+ forceMount: void 0
87
+ });
88
+ var PopoverPortal = (props) => {
89
+ const { __scopePopover, forceMount, children, container } = props;
90
+ const context = usePopoverContext(PORTAL_NAME, __scopePopover);
91
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Portal$1, { asChild: true, container, children }) }) });
92
+ };
93
+ PopoverPortal.displayName = PORTAL_NAME;
94
+ var CONTENT_NAME = "PopoverContent";
95
+ var PopoverContent$1 = reactExports.forwardRef(
96
+ (props, forwardedRef) => {
97
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
98
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
99
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
100
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
101
+ }
102
+ );
103
+ PopoverContent$1.displayName = CONTENT_NAME;
104
+ var Slot = createSlot("PopoverContent.RemoveScroll");
105
+ var PopoverContentModal = reactExports.forwardRef(
106
+ (props, forwardedRef) => {
107
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
108
+ const contentRef = reactExports.useRef(null);
109
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
110
+ const isRightClickOutsideRef = reactExports.useRef(false);
111
+ reactExports.useEffect(() => {
112
+ const content = contentRef.current;
113
+ if (content) return hideOthers(content);
114
+ }, []);
115
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
116
+ PopoverContentImpl,
117
+ {
118
+ ...props,
119
+ ref: composedRefs,
120
+ trapFocus: context.open,
121
+ disableOutsidePointerEvents: true,
122
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
123
+ event.preventDefault();
124
+ if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
125
+ }),
126
+ onPointerDownOutside: composeEventHandlers(
127
+ props.onPointerDownOutside,
128
+ (event) => {
129
+ const originalEvent = event.detail.originalEvent;
130
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
131
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
132
+ isRightClickOutsideRef.current = isRightClick;
133
+ },
134
+ { checkForDefaultPrevented: false }
135
+ ),
136
+ onFocusOutside: composeEventHandlers(
137
+ props.onFocusOutside,
138
+ (event) => event.preventDefault(),
139
+ { checkForDefaultPrevented: false }
140
+ )
141
+ }
142
+ ) });
143
+ }
144
+ );
145
+ var PopoverContentNonModal = reactExports.forwardRef(
146
+ (props, forwardedRef) => {
147
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
148
+ const hasInteractedOutsideRef = reactExports.useRef(false);
149
+ const hasPointerDownOutsideRef = reactExports.useRef(false);
150
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
151
+ PopoverContentImpl,
152
+ {
153
+ ...props,
154
+ ref: forwardedRef,
155
+ trapFocus: false,
156
+ disableOutsidePointerEvents: false,
157
+ onCloseAutoFocus: (event) => {
158
+ props.onCloseAutoFocus?.(event);
159
+ if (!event.defaultPrevented) {
160
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
161
+ event.preventDefault();
162
+ }
163
+ hasInteractedOutsideRef.current = false;
164
+ hasPointerDownOutsideRef.current = false;
165
+ },
166
+ onInteractOutside: (event) => {
167
+ props.onInteractOutside?.(event);
168
+ if (!event.defaultPrevented) {
169
+ hasInteractedOutsideRef.current = true;
170
+ if (event.detail.originalEvent.type === "pointerdown") {
171
+ hasPointerDownOutsideRef.current = true;
172
+ }
173
+ }
174
+ const target = event.target;
175
+ const targetIsTrigger = context.triggerRef.current?.contains(target);
176
+ if (targetIsTrigger) event.preventDefault();
177
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
178
+ event.preventDefault();
179
+ }
180
+ }
181
+ }
182
+ );
183
+ }
184
+ );
185
+ var PopoverContentImpl = reactExports.forwardRef(
186
+ (props, forwardedRef) => {
187
+ const {
188
+ __scopePopover,
189
+ trapFocus,
190
+ onOpenAutoFocus,
191
+ onCloseAutoFocus,
192
+ disableOutsidePointerEvents,
193
+ onEscapeKeyDown,
194
+ onPointerDownOutside,
195
+ onFocusOutside,
196
+ onInteractOutside,
197
+ ...contentProps
198
+ } = props;
199
+ const context = usePopoverContext(CONTENT_NAME, __scopePopover);
200
+ const popperScope = usePopperScope(__scopePopover);
201
+ useFocusGuards();
202
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
203
+ FocusScope,
204
+ {
205
+ asChild: true,
206
+ loop: true,
207
+ trapped: trapFocus,
208
+ onMountAutoFocus: onOpenAutoFocus,
209
+ onUnmountAutoFocus: onCloseAutoFocus,
210
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
211
+ DismissableLayer,
212
+ {
213
+ asChild: true,
214
+ disableOutsidePointerEvents,
215
+ onInteractOutside,
216
+ onEscapeKeyDown,
217
+ onPointerDownOutside,
218
+ onFocusOutside,
219
+ onDismiss: () => context.onOpenChange(false),
220
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
221
+ Content,
222
+ {
223
+ "data-state": getState(context.open),
224
+ role: "dialog",
225
+ id: context.contentId,
226
+ ...popperScope,
227
+ ...contentProps,
228
+ ref: forwardedRef,
229
+ style: {
230
+ ...contentProps.style,
231
+ // re-namespace exposed content custom properties
232
+ ...{
233
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
234
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
235
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
236
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
237
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
238
+ }
239
+ }
240
+ }
241
+ )
242
+ }
243
+ )
244
+ }
245
+ );
246
+ }
247
+ );
248
+ var CLOSE_NAME = "PopoverClose";
249
+ var PopoverClose = reactExports.forwardRef(
250
+ (props, forwardedRef) => {
251
+ const { __scopePopover, ...closeProps } = props;
252
+ const context = usePopoverContext(CLOSE_NAME, __scopePopover);
253
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
254
+ Primitive.button,
255
+ {
256
+ type: "button",
257
+ ...closeProps,
258
+ ref: forwardedRef,
259
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
260
+ }
261
+ );
262
+ }
263
+ );
264
+ PopoverClose.displayName = CLOSE_NAME;
265
+ var ARROW_NAME = "PopoverArrow";
266
+ var PopoverArrow = reactExports.forwardRef(
267
+ (props, forwardedRef) => {
268
+ const { __scopePopover, ...arrowProps } = props;
269
+ const popperScope = usePopperScope(__scopePopover);
270
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
271
+ }
272
+ );
273
+ PopoverArrow.displayName = ARROW_NAME;
274
+ function getState(open) {
275
+ return open ? "open" : "closed";
276
+ }
277
+ var Root2 = Popover$1;
278
+ var Anchor2 = PopoverAnchor$1;
279
+ var Trigger = PopoverTrigger$1;
280
+ var Portal = PopoverPortal;
281
+ var Content2 = PopoverContent$1;
282
+ function Popover({ ...props }) {
283
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Root2, { "data-slot": "popover", ...props });
284
+ }
285
+ function PopoverTrigger({ ...props }) {
286
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Trigger, { "data-slot": "popover-trigger", ...props });
287
+ }
288
+ function PopoverContent({
289
+ className,
290
+ align = "center",
291
+ sideOffset = 4,
292
+ ...props
293
+ }) {
294
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
295
+ Content2,
296
+ {
297
+ "data-slot": "popover-content",
298
+ align,
299
+ sideOffset,
300
+ className: cn(
301
+ "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 flex flex-col gap-4 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
302
+ className
303
+ ),
304
+ ...props
305
+ }
306
+ ) });
307
+ }
308
+ function PopoverAnchor({ ...props }) {
309
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Anchor2, { "data-slot": "popover-anchor", ...props });
310
+ }
311
+ export {
312
+ Anchor2 as A,
313
+ Content2 as C,
314
+ PopoverTrigger as P,
315
+ Root2 as R,
316
+ Trigger as T,
317
+ PopoverContent as a,
318
+ Popover as b,
319
+ PopoverAnchor as c,
320
+ Portal as d
321
+ };
@@ -1,4 +1,4 @@
1
- import { l as links, A as App, L as Layout, E as ErrorBoundary } from "./root-BYlluTc0.js";
1
+ import { l as links, A as App, L as Layout, E as ErrorBoundary } from "./root-S8l7oX7x.js";
2
2
  import "../index.js";
3
3
  import "../__vite_rsc_assets_manifest.js";
4
4
  import "node:async_hooks";