@pagehub/sdk 0.1.5 → 0.1.6

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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/chrome/viewport/Viewport/hooks/usePageLoadIndicator.d.ts +2 -2
  3. package/dist/chrome/viewport/design-system/hooks/useDesignSystem.d.ts +2 -2
  4. package/dist/chrome/viewport/design-system/hooks/usePaletteState.d.ts +2 -2
  5. package/dist/chunks/ActionEditorPanel-9v50QUwu.js +89 -0
  6. package/dist/chunks/ActionInput-CTt7sOs6.js +929 -0
  7. package/dist/chunks/ActionsAddPicker-BeTPUUor.js +51 -0
  8. package/dist/chunks/ActionsInput-D0h-zLYj.js +174 -0
  9. package/dist/chunks/AnchoredPopover-CckPTxXu.js +2676 -0
  10. package/dist/chunks/AnimationEditorPanel-CXNmsTqV.js +26 -0
  11. package/dist/chunks/AnimationsInput-Djyz0uXG.js +292 -0
  12. package/dist/chunks/AnimationsInputPopover-B2-oNebx.js +71 -0
  13. package/dist/chunks/AnimationsPanel-DungA9qb.js +25 -0
  14. package/dist/chunks/Audio.render-CsR69fZ9.js +22 -0
  15. package/dist/chunks/AudioMainTab-BljM2NMQ.js +70 -0
  16. package/dist/chunks/BackdropEditorPanel-CA2k-6SR.js +26 -0
  17. package/dist/chunks/BackgroundImageInputPopover-vB_217Ig.js +94 -0
  18. package/dist/chunks/BackgroundImagePanel-BvMhF9eU.js +100 -0
  19. package/dist/chunks/BackgroundMainTab-CI4c5DEF.js +10 -0
  20. package/dist/chunks/BundleRowPanel-BcYfyfGQ.js +33 -0
  21. package/dist/chunks/ButtonMainTab-Civy_DoA.js +43 -0
  22. package/dist/chunks/CSSEditorInput-C1ITwAh3.js +73 -0
  23. package/dist/chunks/ClassNameInput-Ce0fGQES.js +720 -0
  24. package/dist/chunks/CodeEditor-axBXmPH8.js +33370 -0
  25. package/dist/chunks/ColorInput-BSfMNt86.js +187 -0
  26. package/dist/chunks/ColorPanel-DOLrT-gS.js +562 -0
  27. package/dist/chunks/ComponentImportExportPanel-DVcnGhGx.js +161 -0
  28. package/dist/chunks/ComponentImportExportPopover-BY1_oxU8.js +26 -0
  29. package/dist/chunks/ConditionEditorPanel-DLbqYaSF.js +43 -0
  30. package/dist/chunks/ConditionsAddPicker-SsHJlc1E.js +54 -0
  31. package/dist/chunks/ConditionsInput-B_5Nge8o.js +474 -0
  32. package/dist/chunks/ContainerMainTab-kkktm1Ns.js +1107 -0
  33. package/dist/chunks/ContainerOverflowSectionPanel-ibKXf-1N.js +120 -0
  34. package/dist/chunks/ContainerOverflowSectionPopover-CRQ9EPsn.js +24 -0
  35. package/dist/chunks/ContainerPaddingOverlay-Cd3xOv-S.js +340 -0
  36. package/dist/chunks/ContainerScrollEffectSection-Dbztqdnr.js +123 -0
  37. package/dist/chunks/ContainerStateSection-DY_gjBJL.js +478 -0
  38. package/dist/chunks/ConversionFields-Bpfl-SGP.js +135 -0
  39. package/dist/chunks/CraftListEditor-_TIy1ogW.js +73 -0
  40. package/dist/chunks/CreateTokenDialog-DNWtWqJd.js +147 -0
  41. package/dist/chunks/Data.render-DTmaqSyz.js +10 -0
  42. package/dist/chunks/DataAttributesPanel-mYhisO_O.js +125 -0
  43. package/dist/chunks/DataMainTab-Batm515E.js +23 -0
  44. package/dist/chunks/DataSourceSectionSlot-BKoO6Vxn.js +10 -0
  45. package/dist/chunks/EditorEmptyLeafHintView-D3E3UN_0.js +78 -0
  46. package/dist/chunks/EffectRowInputPopover-CYhfjFwJ.js +323 -0
  47. package/dist/chunks/EffectsClassInput-Yujuchwy.js +315 -0
  48. package/dist/chunks/Embed.render-BgKpUV8n.js +17 -0
  49. package/dist/chunks/EmbedMainTab-d_-Bnkug.js +225 -0
  50. package/dist/chunks/FilterEditorPanel-CRa0IpLr.js +26 -0
  51. package/dist/chunks/FlexDirectionInput-C5gYjk5W.js +78 -0
  52. package/dist/chunks/FloatingPanel-DJP5Vhua.js +553 -0
  53. package/dist/chunks/FontFamilyInput-CVNnVylt.js +111 -0
  54. package/dist/chunks/Form.render-6GjcmL2u.js +54 -0
  55. package/dist/chunks/FormElement.render-DWrG-2ID.js +36 -0
  56. package/dist/chunks/FormElementMainTab-DSbF3F6e.js +470 -0
  57. package/dist/chunks/FormMainTab-SHny1HxF.js +240 -0
  58. package/dist/chunks/GradientInputPopover-1K6O9jBq.js +103 -0
  59. package/dist/chunks/GradientPanel-DSRQKkaB.js +194 -0
  60. package/dist/chunks/HTMLCodeInput-CCe4Bj5z.js +69 -0
  61. package/dist/chunks/HandlerEditorPanel-DiOXobsl.js +93 -0
  62. package/dist/chunks/HandlersAddPicker-DWTgjKgo.js +101 -0
  63. package/dist/chunks/HandlersInput-p49STTn8.js +132 -0
  64. package/dist/chunks/IconDialogInput-C-81_L2n.js +105 -0
  65. package/dist/chunks/IconInput-D2Gy7Hvf.js +182 -0
  66. package/dist/chunks/IconMainTab-CNrVjDWP.js +26 -0
  67. package/dist/chunks/IconPickerPanel-BjNOlCh6.js +670 -0
  68. package/dist/chunks/ImageMainTab-C4O7RjX0.js +66 -0
  69. package/dist/chunks/ImageSettingsPanel-dvOmGg3C.js +485 -0
  70. package/dist/chunks/LayoutPresetPanel-CNAVAcvw.js +81 -0
  71. package/dist/chunks/LayoutPresetSlot-BqMTdE33.js +16 -0
  72. package/dist/chunks/LinkMainTab-BfFZx0AU.js +13 -0
  73. package/dist/chunks/ListEditor-mD-CmRNE.js +178 -0
  74. package/dist/chunks/Map.render-DFkmncHz.js +82 -0
  75. package/dist/chunks/MapLeaflet-DOfmZ3Pk.js +6588 -0
  76. package/dist/chunks/MapMainTab-CxI7IS1_.js +165 -0
  77. package/dist/chunks/MapPoint.render-0OAfCZTp.js +16 -0
  78. package/dist/chunks/MapPointMainTab-CmLcaSR5.js +60 -0
  79. package/dist/chunks/MediaInput-DHs3D8TJ.js +672 -0
  80. package/dist/chunks/MediaManagerModal-Dc5PK3dn.js +240 -0
  81. package/dist/chunks/MiniPreviewTile-B4zxTj9Y.js +32 -0
  82. package/dist/chunks/ModifierChipList-CwsWklih.js +33 -0
  83. package/dist/chunks/ModifiersAddPicker-D-vSYw7O.js +74 -0
  84. package/dist/chunks/ModifiersPickerPanel-CTefidBx.js +243 -0
  85. package/dist/chunks/NodeAiContextInputPopover-D5bn5o_T.js +66 -0
  86. package/dist/chunks/NodeAiContextPanel-Bx4rcjiM.js +81 -0
  87. package/dist/chunks/NumberSettingsPanel-DASi_l6V.js +56 -0
  88. package/dist/chunks/PageSettingsModal-D6o450IR.js +2678 -0
  89. package/dist/chunks/PatternInputPopover-qMWBv_nl.js +100 -0
  90. package/dist/chunks/PatternPanel-D2fgWDd-.js +352 -0
  91. package/dist/chunks/PeekTargetButton-ClrJX7zh.js +26 -0
  92. package/dist/chunks/PermissionsSection-DwobrV40.js +82 -0
  93. package/dist/chunks/PresetAddChildList-D6a0xdt8.js +35 -0
  94. package/dist/chunks/PropertiesInput-9O39ngbb.js +125 -0
  95. package/dist/chunks/PropertiesPanel-DO0RlalO.js +76 -0
  96. package/dist/chunks/SaveModifierPanel-B6mjKyrT.js +130 -0
  97. package/dist/chunks/ScrollEffectEditorPanel-CllGUhui.js +26 -0
  98. package/dist/chunks/SearchInput-DRUztbM0.js +76 -0
  99. package/dist/chunks/SearchableMenuPopover-DZKVXiEl.js +1251 -0
  100. package/dist/chunks/SlotRenderer-CaLf_2_C.js +38 -0
  101. package/dist/chunks/StateBindingEditorPanel-DKdcG5py.js +101 -0
  102. package/dist/chunks/StateBindingsAddPicker-DxMNAWAD.js +91 -0
  103. package/dist/chunks/StateBindingsInput-iWiqvAVB.js +103 -0
  104. package/dist/chunks/TailwindInput-660FZtyK.js +24 -0
  105. package/dist/chunks/TextEditor-B2O7DlN8.js +22032 -0
  106. package/dist/chunks/TextMainTab-B5udsXsk.js +260 -0
  107. package/dist/chunks/TextStyleEditorPanel-GRNPGzUL.js +381 -0
  108. package/dist/chunks/TextStylePickerPanel-l108SmGQ.js +140 -0
  109. package/dist/chunks/TextareaSettingsPanel-C1rQuF1O.js +50 -0
  110. package/dist/chunks/TokenPicker-Q0LToF_p.js +291 -0
  111. package/dist/chunks/ToolbarDashedButton-DbUxGmDg.js +23 -0
  112. package/dist/chunks/TransformEditorPanel-BGwyznZ6.js +26 -0
  113. package/dist/chunks/TransitionEditorPanel-BSvk58Ow.js +26 -0
  114. package/dist/chunks/TypographyPresetInput-DqnGSgR2.js +296 -0
  115. package/dist/chunks/ValidationPanel-CmA9SfoF.js +56 -0
  116. package/dist/chunks/Video.render-Dg6xvis4.js +21 -0
  117. package/dist/chunks/VideoMainTab-v5UFhUm-.js +174 -0
  118. package/dist/chunks/YouTube.esm-EbHnLU1Z.js +744 -0
  119. package/dist/chunks/dialogAtoms-CeQ2G05l.js +59 -0
  120. package/dist/chunks/extends-hS2Bh-Yp.js +12 -0
  121. package/dist/chunks/formatStorage-C3o2s3dk.js +22 -0
  122. package/dist/chunks/googleFonts-Dj4AntNi.js +323 -0
  123. package/dist/chunks/helpers-Cll72tMn.js +18 -0
  124. package/dist/chunks/index-B-GJd039.js +2875 -0
  125. package/dist/chunks/index-C66dAl3Q.js +32177 -0
  126. package/dist/chunks/index.esm-mqFx3NOs.js +644 -0
  127. package/dist/chunks/popoverOpenRequestAtom-hBS_siXv.js +22 -0
  128. package/dist/chunks/propertyRegistry-CMhVNOgl.js +38 -0
  129. package/dist/chunks/resolveAnchorsViaCraft-Cixm6ZyJ.js +31 -0
  130. package/dist/chunks/toolboxUtils-DjTMslSn.js +370 -0
  131. package/dist/chunks/uiPrimitives-BtohldWg.js +15 -0
  132. package/dist/chunks/use-event-listener-DO3Sk7g0.js +15 -0
  133. package/dist/chunks/useElementPicker-DoNuXNMQ.js +41 -0
  134. package/dist/chunks/useLayoutPreset-wOMV5YnO.js +528 -0
  135. package/dist/chunks/useMediaManager-CmKDbFfw.js +4629 -0
  136. package/dist/chunks/usePopoverAutoOpen-CxIjt0ez.js +25 -0
  137. package/dist/chunks/usePopoverPosition-83Vti7Aw.js +15 -0
  138. package/dist/render/static/index.js +9 -0
  139. package/package.json +22 -13
  140. package/dist/pagehub-viewer.umd.cjs +0 -574
  141. package/dist/pagehub.umd.cjs +0 -1130
@@ -0,0 +1,323 @@
1
+ import { jsxs as H, Fragment as W, jsx as c } from "react/jsx-runtime";
2
+ import { useNode as X } from "@craftjs/core";
3
+ import { lazy as i, useState as V, Suspense as Y } from "react";
4
+ import { e4 as U, eL as Z, eM as G, eN as J, eO as Q, e3 as ee, eH as te, d as ae, S as se, u as oe, i as y, C as ne } from "./index-C66dAl3Q.js";
5
+ import { u as ie } from "./usePopoverAutoOpen-CxIjt0ez.js";
6
+ import { u as re } from "./usePopoverPosition-83Vti7Aw.js";
7
+ import { P as le, p as ce } from "./popoverOpenRequestAtom-hBS_siXv.js";
8
+ function C(e) {
9
+ return e.replace(/^(?:[a-zA-Z0-9_-]+:)*/, "");
10
+ }
11
+ function w(e, t) {
12
+ const a = C(e);
13
+ return a === t || a.startsWith(t + "-");
14
+ }
15
+ function m(e, t) {
16
+ return e ? e.split(/\s+/).filter(Boolean).some((s) => t.some((o) => w(s, o))) : !1;
17
+ }
18
+ function d(e, t) {
19
+ return e ? e.split(/\s+/).filter(Boolean).filter((a) => !t.some((s) => w(a, s))).join(" ").trim() : "";
20
+ }
21
+ function f(e, t) {
22
+ const a = new Set((e || "").split(/\s+/).filter(Boolean));
23
+ for (const s of t) a.add(s);
24
+ return Array.from(a).join(" ");
25
+ }
26
+ function u(e, t) {
27
+ if (!e) return "";
28
+ const a = [];
29
+ for (const s of e.split(/\s+/).filter(Boolean)) {
30
+ const o = C(s);
31
+ t.some((l) => o === l || o.startsWith(l + "-")) && a.push(o);
32
+ }
33
+ return a.length === 0 ? "" : a.length <= 2 ? a.join(", ") : `${a.slice(0, 2).join(", ")} +${a.length - 2}`;
34
+ }
35
+ const b = ["transition", "duration", "ease", "delay"], g = [
36
+ "scale",
37
+ "scale-x",
38
+ "scale-y",
39
+ "rotate",
40
+ "translate",
41
+ "translate-x",
42
+ "translate-y",
43
+ "skew",
44
+ "skew-x",
45
+ "skew-y",
46
+ "origin",
47
+ "transform",
48
+ "will-change"
49
+ ], h = [
50
+ "blur",
51
+ "brightness",
52
+ "contrast",
53
+ "grayscale",
54
+ "hue-rotate",
55
+ "invert",
56
+ "saturate",
57
+ "sepia",
58
+ "filter"
59
+ ], E = [
60
+ "backdrop-blur",
61
+ "backdrop-brightness",
62
+ "backdrop-contrast",
63
+ "backdrop-grayscale",
64
+ "backdrop-hue-rotate",
65
+ "backdrop-invert",
66
+ "backdrop-opacity",
67
+ "backdrop-saturate",
68
+ "backdrop-sepia",
69
+ "backdrop-filter"
70
+ ], me = [
71
+ "animationDuration",
72
+ "animationDelay",
73
+ "animationEasing",
74
+ "animationTrigger",
75
+ "animationLoop",
76
+ "animationStagger",
77
+ "animationExit"
78
+ ];
79
+ function de(e, t) {
80
+ if (!e) return "Animation";
81
+ const a = te[e];
82
+ return a != null && a.label ? a.label : t === "framer" ? `Framer: ${e}` : e;
83
+ }
84
+ const fe = {
85
+ "horizontal-scroll": "Horizontal Scroll",
86
+ "scroll-timeline": "Scroll Timeline"
87
+ }, ue = i(() => import("./AnimationEditorPanel-CXNmsTqV.js")), pe = i(() => import("./ScrollEffectEditorPanel-CllGUhui.js")), ye = i(() => import("./TransitionEditorPanel-BSvk58Ow.js")), be = i(() => import("./TransformEditorPanel-BGwyznZ6.js")), ge = i(() => import("./FilterEditorPanel-CRa0IpLr.js")), he = i(() => import("./BackdropEditorPanel-CA2k-6SR.js")), Ee = [
88
+ {
89
+ id: "animation",
90
+ label: "Animation",
91
+ keywords: [
92
+ "animation",
93
+ "animate",
94
+ "motion",
95
+ "entrance",
96
+ "fade",
97
+ "slide",
98
+ "scale",
99
+ "spring",
100
+ "bounce",
101
+ "framer",
102
+ "css",
103
+ "preset"
104
+ ],
105
+ Icon: U,
106
+ hideKey: "animations",
107
+ help: "Entrance / scroll / hover motion presets.",
108
+ isActive: ({ props: e }) => {
109
+ var t;
110
+ return !!((t = e == null ? void 0 : e.root) != null && t.animation);
111
+ },
112
+ summary: ({ props: e }) => {
113
+ var s, o;
114
+ const t = ((s = e == null ? void 0 : e.root) == null ? void 0 : s.animation) || "";
115
+ if (!t) return "";
116
+ const a = ((o = e == null ? void 0 : e.root) == null ? void 0 : o.animationEngine) || "css";
117
+ return de(t, a);
118
+ },
119
+ applyDefault: (e) => {
120
+ e((t) => {
121
+ t.root || (t.root = {}), t.root.animation || (t.root.animation = "cssFadeUp", t.root.animationEngine = t.root.animationEngine || "css");
122
+ });
123
+ },
124
+ clear: (e) => {
125
+ e((t) => {
126
+ if (t.root) {
127
+ t.root.animation = "";
128
+ for (const a of me) delete t.root[a];
129
+ }
130
+ });
131
+ },
132
+ EditorPanel: ue
133
+ },
134
+ {
135
+ id: "scroll-effect",
136
+ label: "Scroll Effect",
137
+ keywords: ["scroll", "horizontal", "timeline", "pin", "gsap", "section", "parallax"],
138
+ Icon: Z,
139
+ gate: ({ craftName: e }) => e === "Container",
140
+ help: "Pin a section and animate children as the user scrolls (Container only).",
141
+ isActive: ({ props: e }) => !!(e != null && e.scrollEffect),
142
+ summary: ({ props: e }) => {
143
+ const t = (e == null ? void 0 : e.scrollEffect) || "";
144
+ return t ? fe[t] || t : "";
145
+ },
146
+ applyDefault: (e) => {
147
+ e((t) => {
148
+ t.type || (t.type = "section");
149
+ });
150
+ },
151
+ clear: (e) => {
152
+ e((t) => {
153
+ t.scrollEffect = "", t.scrollDirection = void 0, t.scrollSpeed = void 0, t.scrollSnap = void 0, t.scrollTimelineRunway = void 0, t.scrollSmoothing = void 0;
154
+ });
155
+ },
156
+ EditorPanel: pe
157
+ },
158
+ {
159
+ id: "transition",
160
+ label: "Transition",
161
+ keywords: [
162
+ "transition",
163
+ "duration",
164
+ "ease",
165
+ "easing",
166
+ "delay",
167
+ "timing",
168
+ "curve",
169
+ "ms",
170
+ "speed"
171
+ ],
172
+ Icon: G,
173
+ hideKey: "effectsClass",
174
+ help: "CSS transitions — property, duration, easing, delay.",
175
+ isActive: ({ className: e }) => m(e, b),
176
+ summary: ({ className: e }) => u(e, b),
177
+ applyDefault: (e) => {
178
+ e((t) => {
179
+ t.className = f(t.className || "", ["transition", "duration-300"]);
180
+ });
181
+ },
182
+ clear: (e) => {
183
+ e((t) => {
184
+ t.className = d(t.className || "", b);
185
+ });
186
+ },
187
+ EditorPanel: ye
188
+ },
189
+ {
190
+ id: "transform",
191
+ label: "Transform",
192
+ keywords: [
193
+ "transform",
194
+ "scale",
195
+ "rotate",
196
+ "translate",
197
+ "skew",
198
+ "origin",
199
+ "gpu",
200
+ "3d",
201
+ "hardware"
202
+ ],
203
+ Icon: J,
204
+ hideKey: "effectsClass",
205
+ help: "Scale, rotate, translate, skew, origin.",
206
+ isActive: ({ className: e }) => m(e, g),
207
+ summary: ({ className: e }) => u(e, g),
208
+ applyDefault: (e) => {
209
+ e((t) => {
210
+ t.className = f(t.className || "", ["scale-100"]);
211
+ });
212
+ },
213
+ clear: (e) => {
214
+ e((t) => {
215
+ t.className = d(t.className || "", g);
216
+ });
217
+ },
218
+ EditorPanel: be
219
+ },
220
+ {
221
+ id: "filter",
222
+ label: "Filter",
223
+ keywords: [
224
+ "filter",
225
+ "blur",
226
+ "brightness",
227
+ "contrast",
228
+ "grayscale",
229
+ "hue",
230
+ "invert",
231
+ "saturate",
232
+ "sepia"
233
+ ],
234
+ Icon: Q,
235
+ hideKey: "effectsClass",
236
+ help: "Blur, brightness, contrast, saturation, etc.",
237
+ isActive: ({ className: e }) => m(e, h),
238
+ summary: ({ className: e }) => u(e, h),
239
+ applyDefault: (e) => {
240
+ e((t) => {
241
+ t.className = f(t.className || "", ["blur-sm"]);
242
+ });
243
+ },
244
+ clear: (e) => {
245
+ e((t) => {
246
+ t.className = d(t.className || "", h);
247
+ });
248
+ },
249
+ EditorPanel: ge
250
+ },
251
+ {
252
+ id: "backdrop",
253
+ label: "Backdrop Filter",
254
+ keywords: ["backdrop", "frosted", "glass", "blur", "filter"],
255
+ Icon: ee,
256
+ hideKey: "effectsClass",
257
+ help: "Backdrop filter — frosted glass effects on the layer beneath.",
258
+ isActive: ({ className: e }) => m(e, E),
259
+ summary: ({ className: e }) => u(e, E),
260
+ applyDefault: (e) => {
261
+ e((t) => {
262
+ t.className = f(t.className || "", ["backdrop-blur-sm"]);
263
+ });
264
+ },
265
+ clear: (e) => {
266
+ e((t) => {
267
+ t.className = d(t.className || "", E);
268
+ });
269
+ },
270
+ EditorPanel: he
271
+ }
272
+ ];
273
+ function Pe(e) {
274
+ return Ee.find((t) => t.id === e);
275
+ }
276
+ const Ae = 360;
277
+ function Fe({ def: e }) {
278
+ const t = Pe(e.id), [a, s] = V(!1), { triggerRef: o, initialPos: l, setInitialPos: R, computePosition: F } = re(Ae), [p, D] = ae(se), x = oe(le), {
279
+ actions: { setProp: B },
280
+ id: r,
281
+ className: _,
282
+ componentProps: L,
283
+ craftName: O
284
+ } = X((n) => {
285
+ var v, S, N, T, I;
286
+ return {
287
+ id: n.id,
288
+ className: typeof ((S = (v = n.data) == null ? void 0 : v.props) == null ? void 0 : S.className) == "string" ? n.data.props.className : "",
289
+ componentProps: ((N = n.data) == null ? void 0 : N.props) || {},
290
+ craftName: ((T = n.data) == null ? void 0 : T.name) || ((I = n.data) == null ? void 0 : I.displayName) || ""
291
+ };
292
+ }), P = { className: _, props: L, craftName: O }, A = t ? t.isActive(P) : !1, K = p.has(y(r, e.id)), z = x.get(ce(r, e.id)) || 0, k = () => {
293
+ R(F()), s(!0);
294
+ };
295
+ if (ie({ nodeId: r, defId: e.id, onOpen: k }), !t || !(A || K || z > 0)) return null;
296
+ const j = t.Icon, $ = () => {
297
+ if (a && s(!1), t.clear(B), p.has(y(r, e.id))) {
298
+ const n = new Set(p);
299
+ n.delete(y(r, e.id)), D(n);
300
+ }
301
+ }, M = t.EditorPanel, q = t.summary(P) || "Add...";
302
+ return /* @__PURE__ */ H(W, { children: [
303
+ /* @__PURE__ */ c(
304
+ ne,
305
+ {
306
+ mode: "popover",
307
+ ref: o,
308
+ label: t.label,
309
+ open: a,
310
+ onTriggerClick: () => a ? s(!1) : k(),
311
+ onClear: $,
312
+ triggerAriaLabel: A ? `Edit ${t.label}` : `Add ${t.label}`,
313
+ clearAriaLabel: `Remove ${t.label}`,
314
+ leading: /* @__PURE__ */ c(j, { className: "size-3.5", "aria-hidden": !0 }),
315
+ summary: q
316
+ }
317
+ ),
318
+ a && /* @__PURE__ */ c(Y, { fallback: null, children: /* @__PURE__ */ c(M, { onClose: () => s(!1), initialPosition: l }) })
319
+ ] });
320
+ }
321
+ export {
322
+ Fe as default
323
+ };
@@ -0,0 +1,315 @@
1
+ import { jsxs as p, Fragment as l, jsx as e } from "react/jsx-runtime";
2
+ import { U as y } from "./index-B-GJd039.js";
3
+ const n = [
4
+ "tailwind",
5
+ "calc",
6
+ "px",
7
+ "%",
8
+ "em",
9
+ "rem",
10
+ "vw",
11
+ "vh",
12
+ "vmin",
13
+ "vmax"
14
+ ];
15
+ function r({
16
+ propKey: a,
17
+ label: o,
18
+ tailwindKey: i,
19
+ propTag: t,
20
+ index: s = ""
21
+ }) {
22
+ return /* @__PURE__ */ e(
23
+ y,
24
+ {
25
+ propKey: a,
26
+ propType: "class",
27
+ ...t ? { propTag: t } : {},
28
+ label: o,
29
+ tailwindKey: i,
30
+ index: s,
31
+ showVarSelector: !0,
32
+ placeholder: "",
33
+ allowedTypes: n,
34
+ inline: !0,
35
+ inputWidth: "flex-1"
36
+ }
37
+ );
38
+ }
39
+ const K = ({ index: a = "" }) => /* @__PURE__ */ p(l, { children: [
40
+ /* @__PURE__ */ e(
41
+ r,
42
+ {
43
+ propKey: "transitionProperty",
44
+ label: "Property",
45
+ tailwindKey: "transitionProperty",
46
+ propTag: "transition",
47
+ index: a
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e(
51
+ r,
52
+ {
53
+ propKey: "duration",
54
+ label: "Duration",
55
+ tailwindKey: "duration",
56
+ propTag: "duration",
57
+ index: a
58
+ }
59
+ ),
60
+ /* @__PURE__ */ e(r, { propKey: "ease", label: "Easing", tailwindKey: "ease", propTag: "ease", index: a }),
61
+ /* @__PURE__ */ e(r, { propKey: "delay", label: "Delay", tailwindKey: "delay", propTag: "delay", index: a })
62
+ ] }), d = ({ index: a = "" }) => /* @__PURE__ */ p(l, { children: [
63
+ /* @__PURE__ */ e(r, { propKey: "twTransform", label: "GPU mode", tailwindKey: "twTransform", index: a }),
64
+ /* @__PURE__ */ e(r, { propKey: "scale", label: "Scale", tailwindKey: "scale", propTag: "scale", index: a }),
65
+ /* @__PURE__ */ e(
66
+ r,
67
+ {
68
+ propKey: "scaleX",
69
+ label: "Scale X",
70
+ tailwindKey: "scaleX",
71
+ propTag: "scale-x",
72
+ index: a
73
+ }
74
+ ),
75
+ /* @__PURE__ */ e(
76
+ r,
77
+ {
78
+ propKey: "scaleY",
79
+ label: "Scale Y",
80
+ tailwindKey: "scaleY",
81
+ propTag: "scale-y",
82
+ index: a
83
+ }
84
+ ),
85
+ /* @__PURE__ */ e(
86
+ r,
87
+ {
88
+ propKey: "rotate",
89
+ label: "Rotate",
90
+ tailwindKey: "rotate",
91
+ propTag: "rotate",
92
+ index: a
93
+ }
94
+ ),
95
+ /* @__PURE__ */ e(
96
+ r,
97
+ {
98
+ propKey: "translateX",
99
+ label: "Translate X",
100
+ tailwindKey: "translateX",
101
+ propTag: "translate-x",
102
+ index: a
103
+ }
104
+ ),
105
+ /* @__PURE__ */ e(
106
+ r,
107
+ {
108
+ propKey: "translateY",
109
+ label: "Translate Y",
110
+ tailwindKey: "translateY",
111
+ propTag: "translate-y",
112
+ index: a
113
+ }
114
+ ),
115
+ /* @__PURE__ */ e(
116
+ r,
117
+ {
118
+ propKey: "skewX",
119
+ label: "Skew X",
120
+ tailwindKey: "skewX",
121
+ propTag: "skew-x",
122
+ index: a
123
+ }
124
+ ),
125
+ /* @__PURE__ */ e(
126
+ r,
127
+ {
128
+ propKey: "skewY",
129
+ label: "Skew Y",
130
+ tailwindKey: "skewY",
131
+ propTag: "skew-y",
132
+ index: a
133
+ }
134
+ ),
135
+ /* @__PURE__ */ e(
136
+ r,
137
+ {
138
+ propKey: "transformOrigin",
139
+ label: "Origin",
140
+ tailwindKey: "transformOrigin",
141
+ propTag: "origin",
142
+ index: a
143
+ }
144
+ ),
145
+ /* @__PURE__ */ e(
146
+ r,
147
+ {
148
+ propKey: "willChange",
149
+ label: "Will-change",
150
+ tailwindKey: "willChange",
151
+ propTag: "will-change",
152
+ index: a
153
+ }
154
+ )
155
+ ] }), g = ({ index: a = "" }) => /* @__PURE__ */ p(l, { children: [
156
+ /* @__PURE__ */ e(r, { propKey: "blur", label: "Blur", tailwindKey: "blur", propTag: "blur", index: a }),
157
+ /* @__PURE__ */ e(
158
+ r,
159
+ {
160
+ propKey: "brightness",
161
+ label: "Brightness",
162
+ tailwindKey: "brightness",
163
+ propTag: "brightness",
164
+ index: a
165
+ }
166
+ ),
167
+ /* @__PURE__ */ e(
168
+ r,
169
+ {
170
+ propKey: "contrast",
171
+ label: "Contrast",
172
+ tailwindKey: "contrast",
173
+ propTag: "contrast",
174
+ index: a
175
+ }
176
+ ),
177
+ /* @__PURE__ */ e(
178
+ r,
179
+ {
180
+ propKey: "grayscale",
181
+ label: "Grayscale",
182
+ tailwindKey: "grayscale",
183
+ propTag: "grayscale",
184
+ index: a
185
+ }
186
+ ),
187
+ /* @__PURE__ */ e(
188
+ r,
189
+ {
190
+ propKey: "hueRotate",
191
+ label: "Hue rotate",
192
+ tailwindKey: "hueRotate",
193
+ propTag: "hue-rotate",
194
+ index: a
195
+ }
196
+ ),
197
+ /* @__PURE__ */ e(
198
+ r,
199
+ {
200
+ propKey: "invert",
201
+ label: "Invert",
202
+ tailwindKey: "invert",
203
+ propTag: "invert",
204
+ index: a
205
+ }
206
+ ),
207
+ /* @__PURE__ */ e(
208
+ r,
209
+ {
210
+ propKey: "saturate",
211
+ label: "Saturate",
212
+ tailwindKey: "saturate",
213
+ propTag: "saturate",
214
+ index: a
215
+ }
216
+ ),
217
+ /* @__PURE__ */ e(r, { propKey: "sepia", label: "Sepia", tailwindKey: "sepia", propTag: "sepia", index: a })
218
+ ] }), w = ({ index: a = "" }) => /* @__PURE__ */ p(l, { children: [
219
+ /* @__PURE__ */ e(
220
+ r,
221
+ {
222
+ propKey: "backdropBlur",
223
+ label: "Blur",
224
+ tailwindKey: "backdropBlur",
225
+ propTag: "backdrop-blur",
226
+ index: a
227
+ }
228
+ ),
229
+ /* @__PURE__ */ e(
230
+ r,
231
+ {
232
+ propKey: "backdropOpacity",
233
+ label: "Opacity",
234
+ tailwindKey: "backdropOpacity",
235
+ propTag: "backdrop-opacity",
236
+ index: a
237
+ }
238
+ ),
239
+ /* @__PURE__ */ e(
240
+ r,
241
+ {
242
+ propKey: "backdropBrightness",
243
+ label: "Brightness",
244
+ tailwindKey: "backdropBrightness",
245
+ propTag: "backdrop-brightness",
246
+ index: a
247
+ }
248
+ ),
249
+ /* @__PURE__ */ e(
250
+ r,
251
+ {
252
+ propKey: "backdropContrast",
253
+ label: "Contrast",
254
+ tailwindKey: "backdropContrast",
255
+ propTag: "backdrop-contrast",
256
+ index: a
257
+ }
258
+ ),
259
+ /* @__PURE__ */ e(
260
+ r,
261
+ {
262
+ propKey: "backdropGrayscale",
263
+ label: "Grayscale",
264
+ tailwindKey: "backdropGrayscale",
265
+ propTag: "backdrop-grayscale",
266
+ index: a
267
+ }
268
+ ),
269
+ /* @__PURE__ */ e(
270
+ r,
271
+ {
272
+ propKey: "backdropHueRotate",
273
+ label: "Hue rotate",
274
+ tailwindKey: "backdropHueRotate",
275
+ propTag: "backdrop-hue-rotate",
276
+ index: a
277
+ }
278
+ ),
279
+ /* @__PURE__ */ e(
280
+ r,
281
+ {
282
+ propKey: "backdropInvert",
283
+ label: "Invert",
284
+ tailwindKey: "backdropInvert",
285
+ propTag: "backdrop-invert",
286
+ index: a
287
+ }
288
+ ),
289
+ /* @__PURE__ */ e(
290
+ r,
291
+ {
292
+ propKey: "backdropSaturate",
293
+ label: "Saturate",
294
+ tailwindKey: "backdropSaturate",
295
+ propTag: "backdrop-saturate",
296
+ index: a
297
+ }
298
+ ),
299
+ /* @__PURE__ */ e(
300
+ r,
301
+ {
302
+ propKey: "backdropSepia",
303
+ label: "Sepia",
304
+ tailwindKey: "backdropSepia",
305
+ propTag: "backdrop-sepia",
306
+ index: a
307
+ }
308
+ )
309
+ ] });
310
+ export {
311
+ w as B,
312
+ g as F,
313
+ K as T,
314
+ d as a
315
+ };
@@ -0,0 +1,17 @@
1
+ import { cY as c, cZ as i, c_ as p, d2 as t } from "./index-C66dAl3Q.js";
2
+ const g = (a) => {
3
+ var d;
4
+ const e = { service: "custom", ...a }, o = c(), s = i(), n = p({
5
+ id: (s == null ? void 0 : s.id) ?? "",
6
+ isCanvas: (s == null ? void 0 : s.isCanvas) ?? !1,
7
+ hasChildNodes: (((d = s == null ? void 0 : s.childIds) == null ? void 0 : d.length) ?? 0) > 0,
8
+ displayName: (s == null ? void 0 : s.displayName) ?? "Embed",
9
+ rootProps: (o == null ? void 0 : o.rootProps) ?? {},
10
+ pageMedia: (o == null ? void 0 : o.pageMedia) ?? null,
11
+ pageIndex: (o == null ? void 0 : o.pageIndex) ?? {}
12
+ });
13
+ return t(e, n);
14
+ };
15
+ export {
16
+ g as EmbedRender
17
+ };