@pagehub/sdk 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chrome/viewport/Viewport/hooks/usePageLoadIndicator.d.ts +2 -2
- package/dist/chrome/viewport/design-system/hooks/useDesignSystem.d.ts +2 -2
- package/dist/chrome/viewport/design-system/hooks/usePaletteState.d.ts +2 -2
- package/dist/chunks/ActionEditorPanel-9v50QUwu.js +89 -0
- package/dist/chunks/ActionInput-CTt7sOs6.js +929 -0
- package/dist/chunks/ActionsAddPicker-BeTPUUor.js +51 -0
- package/dist/chunks/ActionsInput-D0h-zLYj.js +174 -0
- package/dist/chunks/AnchoredPopover-CckPTxXu.js +2676 -0
- package/dist/chunks/AnimationEditorPanel-CXNmsTqV.js +26 -0
- package/dist/chunks/AnimationsInput-Djyz0uXG.js +292 -0
- package/dist/chunks/AnimationsInputPopover-B2-oNebx.js +71 -0
- package/dist/chunks/AnimationsPanel-DungA9qb.js +25 -0
- package/dist/chunks/Audio.render-CsR69fZ9.js +22 -0
- package/dist/chunks/AudioMainTab-BljM2NMQ.js +70 -0
- package/dist/chunks/BackdropEditorPanel-CA2k-6SR.js +26 -0
- package/dist/chunks/BackgroundImageInputPopover-vB_217Ig.js +94 -0
- package/dist/chunks/BackgroundImagePanel-BvMhF9eU.js +100 -0
- package/dist/chunks/BackgroundMainTab-CI4c5DEF.js +10 -0
- package/dist/chunks/BundleRowPanel-BcYfyfGQ.js +33 -0
- package/dist/chunks/ButtonMainTab-Civy_DoA.js +43 -0
- package/dist/chunks/CSSEditorInput-C1ITwAh3.js +73 -0
- package/dist/chunks/ClassNameInput-Ce0fGQES.js +720 -0
- package/dist/chunks/CodeEditor-axBXmPH8.js +33370 -0
- package/dist/chunks/ColorInput-BSfMNt86.js +187 -0
- package/dist/chunks/ColorPanel-DOLrT-gS.js +562 -0
- package/dist/chunks/ComponentImportExportPanel-DVcnGhGx.js +161 -0
- package/dist/chunks/ComponentImportExportPopover-BY1_oxU8.js +26 -0
- package/dist/chunks/ConditionEditorPanel-DLbqYaSF.js +43 -0
- package/dist/chunks/ConditionsAddPicker-SsHJlc1E.js +54 -0
- package/dist/chunks/ConditionsInput-B_5Nge8o.js +474 -0
- package/dist/chunks/ContainerMainTab-kkktm1Ns.js +1107 -0
- package/dist/chunks/ContainerOverflowSectionPanel-ibKXf-1N.js +120 -0
- package/dist/chunks/ContainerOverflowSectionPopover-CRQ9EPsn.js +24 -0
- package/dist/chunks/ContainerPaddingOverlay-Cd3xOv-S.js +340 -0
- package/dist/chunks/ContainerScrollEffectSection-Dbztqdnr.js +123 -0
- package/dist/chunks/ContainerStateSection-DY_gjBJL.js +478 -0
- package/dist/chunks/ConversionFields-Bpfl-SGP.js +135 -0
- package/dist/chunks/CraftListEditor-_TIy1ogW.js +73 -0
- package/dist/chunks/CreateTokenDialog-DNWtWqJd.js +147 -0
- package/dist/chunks/Data.render-DTmaqSyz.js +10 -0
- package/dist/chunks/DataAttributesPanel-mYhisO_O.js +125 -0
- package/dist/chunks/DataMainTab-Batm515E.js +23 -0
- package/dist/chunks/DataSourceSectionSlot-BKoO6Vxn.js +10 -0
- package/dist/chunks/EditorEmptyLeafHintView-D3E3UN_0.js +78 -0
- package/dist/chunks/EffectRowInputPopover-CYhfjFwJ.js +323 -0
- package/dist/chunks/EffectsClassInput-Yujuchwy.js +315 -0
- package/dist/chunks/Embed.render-BgKpUV8n.js +17 -0
- package/dist/chunks/EmbedMainTab-d_-Bnkug.js +225 -0
- package/dist/chunks/FilterEditorPanel-CRa0IpLr.js +26 -0
- package/dist/chunks/FlexDirectionInput-C5gYjk5W.js +78 -0
- package/dist/chunks/FloatingPanel-DJP5Vhua.js +553 -0
- package/dist/chunks/FontFamilyInput-CVNnVylt.js +111 -0
- package/dist/chunks/Form.render-6GjcmL2u.js +54 -0
- package/dist/chunks/FormElement.render-DWrG-2ID.js +36 -0
- package/dist/chunks/FormElementMainTab-DSbF3F6e.js +470 -0
- package/dist/chunks/FormMainTab-SHny1HxF.js +240 -0
- package/dist/chunks/GradientInputPopover-1K6O9jBq.js +103 -0
- package/dist/chunks/GradientPanel-DSRQKkaB.js +194 -0
- package/dist/chunks/HTMLCodeInput-CCe4Bj5z.js +69 -0
- package/dist/chunks/HandlerEditorPanel-DiOXobsl.js +93 -0
- package/dist/chunks/HandlersAddPicker-DWTgjKgo.js +101 -0
- package/dist/chunks/HandlersInput-p49STTn8.js +132 -0
- package/dist/chunks/IconDialogInput-C-81_L2n.js +105 -0
- package/dist/chunks/IconInput-D2Gy7Hvf.js +182 -0
- package/dist/chunks/IconMainTab-CNrVjDWP.js +26 -0
- package/dist/chunks/IconPickerPanel-BjNOlCh6.js +670 -0
- package/dist/chunks/ImageMainTab-C4O7RjX0.js +66 -0
- package/dist/chunks/ImageSettingsPanel-dvOmGg3C.js +485 -0
- package/dist/chunks/LayoutPresetPanel-CNAVAcvw.js +81 -0
- package/dist/chunks/LayoutPresetSlot-BqMTdE33.js +16 -0
- package/dist/chunks/LinkMainTab-BfFZx0AU.js +13 -0
- package/dist/chunks/ListEditor-mD-CmRNE.js +178 -0
- package/dist/chunks/Map.render-DFkmncHz.js +82 -0
- package/dist/chunks/MapLeaflet-DOfmZ3Pk.js +6588 -0
- package/dist/chunks/MapMainTab-CxI7IS1_.js +165 -0
- package/dist/chunks/MapPoint.render-0OAfCZTp.js +16 -0
- package/dist/chunks/MapPointMainTab-CmLcaSR5.js +60 -0
- package/dist/chunks/MediaInput-DHs3D8TJ.js +672 -0
- package/dist/chunks/MediaManagerModal-Dc5PK3dn.js +240 -0
- package/dist/chunks/MiniPreviewTile-B4zxTj9Y.js +32 -0
- package/dist/chunks/ModifierChipList-CwsWklih.js +33 -0
- package/dist/chunks/ModifiersAddPicker-D-vSYw7O.js +74 -0
- package/dist/chunks/ModifiersPickerPanel-CTefidBx.js +243 -0
- package/dist/chunks/NodeAiContextInputPopover-D5bn5o_T.js +66 -0
- package/dist/chunks/NodeAiContextPanel-Bx4rcjiM.js +81 -0
- package/dist/chunks/NumberSettingsPanel-DASi_l6V.js +56 -0
- package/dist/chunks/PageSettingsModal-D6o450IR.js +2678 -0
- package/dist/chunks/PatternInputPopover-qMWBv_nl.js +100 -0
- package/dist/chunks/PatternPanel-D2fgWDd-.js +352 -0
- package/dist/chunks/PeekTargetButton-ClrJX7zh.js +26 -0
- package/dist/chunks/PermissionsSection-DwobrV40.js +82 -0
- package/dist/chunks/PresetAddChildList-D6a0xdt8.js +35 -0
- package/dist/chunks/PropertiesInput-9O39ngbb.js +125 -0
- package/dist/chunks/PropertiesPanel-DO0RlalO.js +76 -0
- package/dist/chunks/SaveModifierPanel-B6mjKyrT.js +130 -0
- package/dist/chunks/ScrollEffectEditorPanel-CllGUhui.js +26 -0
- package/dist/chunks/SearchInput-DRUztbM0.js +76 -0
- package/dist/chunks/SearchableMenuPopover-DZKVXiEl.js +1251 -0
- package/dist/chunks/SlotRenderer-CaLf_2_C.js +38 -0
- package/dist/chunks/StateBindingEditorPanel-DKdcG5py.js +101 -0
- package/dist/chunks/StateBindingsAddPicker-DxMNAWAD.js +91 -0
- package/dist/chunks/StateBindingsInput-iWiqvAVB.js +103 -0
- package/dist/chunks/TailwindInput-660FZtyK.js +24 -0
- package/dist/chunks/TextEditor-B2O7DlN8.js +22032 -0
- package/dist/chunks/TextMainTab-B5udsXsk.js +260 -0
- package/dist/chunks/TextStyleEditorPanel-GRNPGzUL.js +381 -0
- package/dist/chunks/TextStylePickerPanel-l108SmGQ.js +140 -0
- package/dist/chunks/TextareaSettingsPanel-C1rQuF1O.js +50 -0
- package/dist/chunks/TokenPicker-Q0LToF_p.js +291 -0
- package/dist/chunks/ToolbarDashedButton-DbUxGmDg.js +23 -0
- package/dist/chunks/TransformEditorPanel-BGwyznZ6.js +26 -0
- package/dist/chunks/TransitionEditorPanel-BSvk58Ow.js +26 -0
- package/dist/chunks/TypographyPresetInput-DqnGSgR2.js +296 -0
- package/dist/chunks/ValidationPanel-CmA9SfoF.js +56 -0
- package/dist/chunks/Video.render-Dg6xvis4.js +21 -0
- package/dist/chunks/VideoMainTab-v5UFhUm-.js +174 -0
- package/dist/chunks/YouTube.esm-EbHnLU1Z.js +744 -0
- package/dist/chunks/dialogAtoms-CeQ2G05l.js +59 -0
- package/dist/chunks/extends-hS2Bh-Yp.js +12 -0
- package/dist/chunks/formatStorage-C3o2s3dk.js +22 -0
- package/dist/chunks/googleFonts-Dj4AntNi.js +323 -0
- package/dist/chunks/helpers-Cll72tMn.js +18 -0
- package/dist/chunks/index-B-GJd039.js +2875 -0
- package/dist/chunks/index-C66dAl3Q.js +32177 -0
- package/dist/chunks/index.esm-mqFx3NOs.js +644 -0
- package/dist/chunks/popoverOpenRequestAtom-hBS_siXv.js +22 -0
- package/dist/chunks/propertyRegistry-CMhVNOgl.js +38 -0
- package/dist/chunks/resolveAnchorsViaCraft-Cixm6ZyJ.js +31 -0
- package/dist/chunks/toolboxUtils-DjTMslSn.js +370 -0
- package/dist/chunks/uiPrimitives-BtohldWg.js +15 -0
- package/dist/chunks/use-event-listener-DO3Sk7g0.js +15 -0
- package/dist/chunks/useElementPicker-DoNuXNMQ.js +41 -0
- package/dist/chunks/useLayoutPreset-wOMV5YnO.js +528 -0
- package/dist/chunks/useMediaManager-CmKDbFfw.js +4629 -0
- package/dist/chunks/usePopoverAutoOpen-CxIjt0ez.js +25 -0
- package/dist/chunks/usePopoverPosition-83Vti7Aw.js +15 -0
- package/dist/render/static/index.js +9 -0
- package/dist/theme.css +168 -0
- package/package.json +25 -14
- package/dist/pagehub-viewer.umd.cjs +0 -574
- package/dist/pagehub.umd.cjs +0 -1130
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { jsxs as o, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useNode as y } from "@craftjs/core";
|
|
3
|
+
import { w as s, n as r, aT as c } from "./index-C66dAl3Q.js";
|
|
4
|
+
import { r as b, S as f } from "./helpers-Cll72tMn.js";
|
|
5
|
+
import { S as g } from "./SlotRenderer-CaLf_2_C.js";
|
|
6
|
+
const u = [
|
|
7
|
+
"custom",
|
|
8
|
+
"stripe",
|
|
9
|
+
"mailchimp",
|
|
10
|
+
"convertkit",
|
|
11
|
+
"beehiiv"
|
|
12
|
+
], v = ["crisp", "intercom", "tidio"];
|
|
13
|
+
function S(i) {
|
|
14
|
+
return u.includes(i) ? "Embed Code" : v.includes(i) ? "Widget ID" : "URL";
|
|
15
|
+
}
|
|
16
|
+
function d(i) {
|
|
17
|
+
switch (i) {
|
|
18
|
+
case "custom":
|
|
19
|
+
return "Paste any HTML, iframe, or script embed code.";
|
|
20
|
+
case "calendly":
|
|
21
|
+
return "Paste your Calendly scheduling link.";
|
|
22
|
+
case "cal":
|
|
23
|
+
return "Paste your Cal.com booking link.";
|
|
24
|
+
case "stripe":
|
|
25
|
+
return "Stripe Dashboard → Payment Links → Buy Button, paste the code.";
|
|
26
|
+
case "gumroad":
|
|
27
|
+
return "Paste your Gumroad product link.";
|
|
28
|
+
case "kofi":
|
|
29
|
+
return "Paste your Ko-fi page URL.";
|
|
30
|
+
case "typeform":
|
|
31
|
+
return "Paste your Typeform form URL.";
|
|
32
|
+
case "tally":
|
|
33
|
+
return "Paste your Tally form URL.";
|
|
34
|
+
case "jotform":
|
|
35
|
+
return "Paste your Jotform form URL.";
|
|
36
|
+
case "mailchimp":
|
|
37
|
+
return "Mailchimp → Audience → Signup forms → Embedded forms, paste the code.";
|
|
38
|
+
case "convertkit":
|
|
39
|
+
return "Kit → Forms → Embed, paste the code.";
|
|
40
|
+
case "beehiiv":
|
|
41
|
+
return "Beehiiv → Settings → Embed, paste the code.";
|
|
42
|
+
case "spotify":
|
|
43
|
+
return "Paste a Spotify link (track, album, playlist, episode, or show).";
|
|
44
|
+
case "soundcloud":
|
|
45
|
+
return "Paste a SoundCloud track or playlist URL.";
|
|
46
|
+
case "podcast":
|
|
47
|
+
return "Paste an Apple Podcasts link.";
|
|
48
|
+
case "instagram":
|
|
49
|
+
return "Paste an Instagram post URL.";
|
|
50
|
+
case "twitter":
|
|
51
|
+
return "Paste a tweet URL.";
|
|
52
|
+
case "tiktok":
|
|
53
|
+
return "Paste a TikTok video URL.";
|
|
54
|
+
case "crisp":
|
|
55
|
+
return "Crisp → Settings → Website Settings, paste your Website ID.";
|
|
56
|
+
case "intercom":
|
|
57
|
+
return "Intercom → Settings → Installation, paste your App ID.";
|
|
58
|
+
case "tidio":
|
|
59
|
+
return "Tidio → Settings → Installation, paste your Public Key.";
|
|
60
|
+
case "google-calendar":
|
|
61
|
+
return "Paste your Google Calendar embed URL or calendar ID.";
|
|
62
|
+
default:
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const I = () => {
|
|
67
|
+
var n, l;
|
|
68
|
+
const { props: i } = y((h) => {
|
|
69
|
+
var a;
|
|
70
|
+
return {
|
|
71
|
+
props: (a = h.data) == null ? void 0 : a.props
|
|
72
|
+
};
|
|
73
|
+
}), t = i.service || "custom", m = u.includes(t);
|
|
74
|
+
return b({
|
|
75
|
+
Content: /* @__PURE__ */ o(p, { children: [
|
|
76
|
+
/* @__PURE__ */ o(
|
|
77
|
+
s,
|
|
78
|
+
{
|
|
79
|
+
title: "Embed",
|
|
80
|
+
icon: f.Content,
|
|
81
|
+
help: "Pick a service and paste the URL or embed code.",
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ o(
|
|
84
|
+
r,
|
|
85
|
+
{
|
|
86
|
+
propKey: "service",
|
|
87
|
+
propType: "component",
|
|
88
|
+
type: "select",
|
|
89
|
+
label: "Service",
|
|
90
|
+
labelHide: !1,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ o("optgroup", { label: "Booking", children: [
|
|
93
|
+
/* @__PURE__ */ e("option", { value: "calendly", children: "Calendly" }),
|
|
94
|
+
/* @__PURE__ */ e("option", { value: "cal", children: "Cal.com" }),
|
|
95
|
+
/* @__PURE__ */ e("option", { value: "google-calendar", children: "Google Calendar" })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ o("optgroup", { label: "Payments", children: [
|
|
98
|
+
/* @__PURE__ */ e("option", { value: "stripe", children: "Stripe Buy Button" }),
|
|
99
|
+
/* @__PURE__ */ e("option", { value: "gumroad", children: "Gumroad" }),
|
|
100
|
+
/* @__PURE__ */ e("option", { value: "kofi", children: "Ko-fi" })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ o("optgroup", { label: "Forms", children: [
|
|
103
|
+
/* @__PURE__ */ e("option", { value: "typeform", children: "Typeform" }),
|
|
104
|
+
/* @__PURE__ */ e("option", { value: "tally", children: "Tally" }),
|
|
105
|
+
/* @__PURE__ */ e("option", { value: "jotform", children: "Jotform" })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ o("optgroup", { label: "Newsletter", children: [
|
|
108
|
+
/* @__PURE__ */ e("option", { value: "mailchimp", children: "Mailchimp" }),
|
|
109
|
+
/* @__PURE__ */ e("option", { value: "convertkit", children: "Kit (ConvertKit)" }),
|
|
110
|
+
/* @__PURE__ */ e("option", { value: "beehiiv", children: "Beehiiv" })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ o("optgroup", { label: "Audio", children: [
|
|
113
|
+
/* @__PURE__ */ e("option", { value: "spotify", children: "Spotify" }),
|
|
114
|
+
/* @__PURE__ */ e("option", { value: "soundcloud", children: "SoundCloud" }),
|
|
115
|
+
/* @__PURE__ */ e("option", { value: "podcast", children: "Apple Podcasts" })
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ o("optgroup", { label: "Social", children: [
|
|
118
|
+
/* @__PURE__ */ e("option", { value: "instagram", children: "Instagram" }),
|
|
119
|
+
/* @__PURE__ */ e("option", { value: "twitter", children: "Twitter / X" }),
|
|
120
|
+
/* @__PURE__ */ e("option", { value: "tiktok", children: "TikTok" })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ o("optgroup", { label: "Chat Widgets", children: [
|
|
123
|
+
/* @__PURE__ */ e("option", { value: "crisp", children: "Crisp" }),
|
|
124
|
+
/* @__PURE__ */ e("option", { value: "intercom", children: "Intercom" }),
|
|
125
|
+
/* @__PURE__ */ e("option", { value: "tidio", children: "Tidio" })
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ e("optgroup", { label: "Other", children: /* @__PURE__ */ e("option", { value: "custom", children: "Custom HTML" }) })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
m ? /* @__PURE__ */ e(
|
|
132
|
+
r,
|
|
133
|
+
{
|
|
134
|
+
propKey: t === "custom" ? "code" : "url",
|
|
135
|
+
propType: "component",
|
|
136
|
+
type: "codemirror",
|
|
137
|
+
rows: 10,
|
|
138
|
+
labelHide: !0,
|
|
139
|
+
placeholder: (n = c[t]) == null ? void 0 : n.placeholder,
|
|
140
|
+
description: d(t)
|
|
141
|
+
}
|
|
142
|
+
) : /* @__PURE__ */ o(p, { children: [
|
|
143
|
+
/* @__PURE__ */ e(
|
|
144
|
+
r,
|
|
145
|
+
{
|
|
146
|
+
propKey: "url",
|
|
147
|
+
propType: "component",
|
|
148
|
+
type: "text",
|
|
149
|
+
label: S(t),
|
|
150
|
+
labelHide: !1,
|
|
151
|
+
placeholder: (l = c[t]) == null ? void 0 : l.placeholder
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ e("p", { className: "text-neutral-content col-span-full text-[11px] leading-snug", children: d(t) })
|
|
155
|
+
] }),
|
|
156
|
+
/* @__PURE__ */ e(g, { id: "settings/ai-button" })
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ o(s, { title: "Advanced", help: "Title for accessibility and optional code override.", children: [
|
|
161
|
+
/* @__PURE__ */ e(
|
|
162
|
+
r,
|
|
163
|
+
{
|
|
164
|
+
propKey: "title",
|
|
165
|
+
propType: "component",
|
|
166
|
+
type: "text",
|
|
167
|
+
label: "Title",
|
|
168
|
+
labelHide: !1,
|
|
169
|
+
placeholder: "Describe the embedded content"
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
t !== "custom" && /* @__PURE__ */ e(
|
|
173
|
+
r,
|
|
174
|
+
{
|
|
175
|
+
propKey: "code",
|
|
176
|
+
propType: "component",
|
|
177
|
+
type: "codemirror",
|
|
178
|
+
rows: 6,
|
|
179
|
+
label: "Code Override",
|
|
180
|
+
labelHide: !1,
|
|
181
|
+
description: "Override the auto-generated embed code."
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ e(
|
|
185
|
+
r,
|
|
186
|
+
{
|
|
187
|
+
propKey: "headCode",
|
|
188
|
+
propType: "component",
|
|
189
|
+
type: "codemirror",
|
|
190
|
+
rows: 6,
|
|
191
|
+
label: "Head code",
|
|
192
|
+
labelHide: !1,
|
|
193
|
+
description: "Scripts, styles, meta tags rendered into <head> during SSR. Deduped across Embeds — paste the same snippet in multiple blocks, emitted once."
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
/* @__PURE__ */ e(
|
|
197
|
+
r,
|
|
198
|
+
{
|
|
199
|
+
propKey: "footCode",
|
|
200
|
+
propType: "component",
|
|
201
|
+
type: "codemirror",
|
|
202
|
+
rows: 6,
|
|
203
|
+
label: "Footer code",
|
|
204
|
+
labelHide: !1,
|
|
205
|
+
description: "Scripts rendered inline where this Embed sits. Useful when the widget needs surrounding DOM to exist before init."
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ e(
|
|
209
|
+
r,
|
|
210
|
+
{
|
|
211
|
+
propKey: "runInEditor",
|
|
212
|
+
propType: "component",
|
|
213
|
+
type: "checkbox",
|
|
214
|
+
label: "Run in editor",
|
|
215
|
+
labelHide: !1,
|
|
216
|
+
description: "Let head/footer scripts execute while editing. Off by default — prevents popups and widgets firing during design."
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] })
|
|
220
|
+
] })
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
export {
|
|
224
|
+
I as EmbedMainTab
|
|
225
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { W as i, eO as l } from "./index-C66dAl3Q.js";
|
|
3
|
+
import { F as o } from "./FloatingPanel-DJP5Vhua.js";
|
|
4
|
+
import { F as a } from "./EffectsClassInput-Yujuchwy.js";
|
|
5
|
+
function f({ initialPosition: r, onClose: t }) {
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
|
+
o,
|
|
8
|
+
{
|
|
9
|
+
isOpen: !0,
|
|
10
|
+
onClose: t,
|
|
11
|
+
title: "Filter",
|
|
12
|
+
icon: /* @__PURE__ */ e(l, { "aria-hidden": !0 }),
|
|
13
|
+
storageKey: "effects-builder-filter",
|
|
14
|
+
minWidth: 300,
|
|
15
|
+
maxWidth: 480,
|
|
16
|
+
minHeight: 260,
|
|
17
|
+
initialPosition: r,
|
|
18
|
+
zIndex: i,
|
|
19
|
+
scrollable: !0,
|
|
20
|
+
children: /* @__PURE__ */ e(a, {})
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useEditor as y, useNode as L } from "@craftjs/core";
|
|
3
|
+
import { u as n, V as P, E, M as R, g as C, C as I, T as S, P as k, J as F, c as K, fd as f, fe as u, ff as d, fg as h } from "./index-C66dAl3Q.js";
|
|
4
|
+
function M(t) {
|
|
5
|
+
return t === "columns" ? [
|
|
6
|
+
{ value: "flex-col", hint: "Top to Bottom", icon: f },
|
|
7
|
+
{ value: "flex-col-reverse", hint: "Bottom to Top", icon: u }
|
|
8
|
+
] : t === "rows" ? [
|
|
9
|
+
{ value: "flex-row", hint: "Left to Right", icon: d },
|
|
10
|
+
{ value: "flex-row-reverse", hint: "Right to Left", icon: h }
|
|
11
|
+
] : [
|
|
12
|
+
{ value: "flex-col", hint: "Top to Bottom", icon: f },
|
|
13
|
+
{ value: "flex-col-reverse", hint: "Bottom to Top", icon: u },
|
|
14
|
+
{ value: "flex-row", hint: "Left to Right", icon: d },
|
|
15
|
+
{ value: "flex-row-reverse", hint: "Right to Left", icon: h }
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
const q = ({ wrap: t = "", inline: N = !0, mode: v }) => {
|
|
19
|
+
const s = n(P), a = n(E), m = n(R), r = a.dark ?? !1, { query: x, actions: g } = y(), {
|
|
20
|
+
actions: { setProp: T },
|
|
21
|
+
nodeProps: w,
|
|
22
|
+
id: B
|
|
23
|
+
} = L((e) => {
|
|
24
|
+
var o;
|
|
25
|
+
return {
|
|
26
|
+
nodeProps: ((o = e.data) == null ? void 0 : o.props) || {},
|
|
27
|
+
id: e.id
|
|
28
|
+
};
|
|
29
|
+
}), { value: A, viewValue: _ } = C(
|
|
30
|
+
{ propKey: "flexDirection", propType: "class" },
|
|
31
|
+
s,
|
|
32
|
+
w,
|
|
33
|
+
r
|
|
34
|
+
), l = M(v), c = l.map((e) => e.value), p = String(A ?? ""), b = c.includes(p) ? p : c[0], D = (e) => {
|
|
35
|
+
F(a, s, m).forEach((V) => {
|
|
36
|
+
K({
|
|
37
|
+
propKey: "flexDirection",
|
|
38
|
+
value: e,
|
|
39
|
+
setProp: T,
|
|
40
|
+
view: V,
|
|
41
|
+
propType: "class",
|
|
42
|
+
query: x,
|
|
43
|
+
actions: g,
|
|
44
|
+
nodeId: B,
|
|
45
|
+
classDark: r
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ i(I, { frame: "bare", propType: "class", propKey: "flexDirection", passthrough: !!t, children: /* @__PURE__ */ i(
|
|
50
|
+
S,
|
|
51
|
+
{
|
|
52
|
+
"aria-label": "Flex direction",
|
|
53
|
+
dense: !0,
|
|
54
|
+
value: b,
|
|
55
|
+
onChange: (e) => D(e),
|
|
56
|
+
options: l.map((e) => {
|
|
57
|
+
const o = e.icon;
|
|
58
|
+
return {
|
|
59
|
+
value: e.value,
|
|
60
|
+
label: /* @__PURE__ */ i(
|
|
61
|
+
"span",
|
|
62
|
+
{
|
|
63
|
+
"data-tooltip-id": k,
|
|
64
|
+
"data-tooltip-content": e.hint,
|
|
65
|
+
"data-tooltip-place": "top",
|
|
66
|
+
"data-tooltip-offset": 10,
|
|
67
|
+
className: "flex items-center",
|
|
68
|
+
children: /* @__PURE__ */ i(o, { className: "size-4 shrink-0", "aria-hidden": !0 })
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
};
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
) });
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
q as FlexDirectionInput
|
|
78
|
+
};
|