@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.
- 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/package.json +22 -13
- package/dist/pagehub-viewer.umd.cjs +0 -574
- package/dist/pagehub.umd.cjs +0 -1130
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useNode as f } from "@craftjs/core";
|
|
3
|
+
import { useRef as A } from "react";
|
|
4
|
+
import { e9 as P, d as O, G as S, f3 as g, f2 as h } from "./index-C66dAl3Q.js";
|
|
5
|
+
import { S as v } from "./SearchableMenuPopover-DZKVXiEl.js";
|
|
6
|
+
import { g as T } from "./propertyRegistry-CMhVNOgl.js";
|
|
7
|
+
import { P as b, u as q, r as I } from "./popoverOpenRequestAtom-hBS_siXv.js";
|
|
8
|
+
import { A as N } from "./ActionInput-CTt7sOs6.js";
|
|
9
|
+
const R = "action", _ = h.map((e) => ({
|
|
10
|
+
id: e.value,
|
|
11
|
+
label: e.label,
|
|
12
|
+
hint: e.group,
|
|
13
|
+
data: e.value
|
|
14
|
+
}));
|
|
15
|
+
function j({ def: e }) {
|
|
16
|
+
var a;
|
|
17
|
+
const {
|
|
18
|
+
id: s,
|
|
19
|
+
actions: { setProp: p }
|
|
20
|
+
} = f((t) => ({ id: t.id })), o = P(), r = (a = T(e.section)) == null ? void 0 : a.title, [m, l] = O(b), n = A(null);
|
|
21
|
+
return q(
|
|
22
|
+
s,
|
|
23
|
+
e.id,
|
|
24
|
+
() => requestAnimationFrame(() => {
|
|
25
|
+
var t;
|
|
26
|
+
return (t = n.current) == null ? void 0 : t.open();
|
|
27
|
+
})
|
|
28
|
+
), /* @__PURE__ */ u(
|
|
29
|
+
v,
|
|
30
|
+
{
|
|
31
|
+
ref: n,
|
|
32
|
+
items: _,
|
|
33
|
+
onSelect: (t) => {
|
|
34
|
+
if (!t.data) return;
|
|
35
|
+
const d = N[t.data];
|
|
36
|
+
p((i) => {
|
|
37
|
+
const c = g(i);
|
|
38
|
+
c.push(d), i.action = c;
|
|
39
|
+
}), r && (o != null && o.setOpen) && o.setOpen(r, !0), I(m, l, s, R);
|
|
40
|
+
},
|
|
41
|
+
trigger: /* @__PURE__ */ u(S, { className: "size-3.5", "aria-hidden": !0 }),
|
|
42
|
+
triggerAriaLabel: "Add action",
|
|
43
|
+
searchPlaceholder: "Search actions…",
|
|
44
|
+
anchor: "bottom end",
|
|
45
|
+
panelWidthClass: "w-56"
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
j as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { jsxs as D, Fragment as S, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useEditor as W, useNode as B } from "@craftjs/core";
|
|
3
|
+
import { useState as E, useMemo as z, useRef as P, useEffect as I, Suspense as F, lazy as M } from "react";
|
|
4
|
+
import { ROOT_NODE as Y } from "@craftjs/utils";
|
|
5
|
+
import { eW as j, eX as V, e4 as H, eY as K, e8 as U, eZ as X, e_ as Z, e$ as G, cf as x, f0 as J, dC as Q, al as tt, dr as et, f1 as ot, aI as rt, ar as nt, C as st, f2 as it, f3 as at, u as ct } from "./index-C66dAl3Q.js";
|
|
6
|
+
import { u as lt } from "./usePopoverPosition-83Vti7Aw.js";
|
|
7
|
+
import { P as ft } from "./PeekTargetButton-ClrJX7zh.js";
|
|
8
|
+
import { g as pt } from "./useElementPicker-DoNuXNMQ.js";
|
|
9
|
+
import { P as ut, p as dt } from "./popoverOpenRequestAtom-hBS_siXv.js";
|
|
10
|
+
const gt = M(() => import("./ActionEditorPanel-9v50QUwu.js")), mt = 340, ht = {
|
|
11
|
+
link: rt,
|
|
12
|
+
"open-modal": ot,
|
|
13
|
+
"show-hide": et,
|
|
14
|
+
"copy-to-clipboard": tt,
|
|
15
|
+
"download-file": Q,
|
|
16
|
+
"toggle-theme": J,
|
|
17
|
+
"add-to-cart": x,
|
|
18
|
+
"toggle-cart": x,
|
|
19
|
+
"cart-checkout": G,
|
|
20
|
+
"manage-subscription": Z,
|
|
21
|
+
"agent-send": X,
|
|
22
|
+
"set-local-storage": U,
|
|
23
|
+
"remove-local-storage": K,
|
|
24
|
+
"set-state": H,
|
|
25
|
+
"toggle-state": V,
|
|
26
|
+
"clear-state": j
|
|
27
|
+
}, yt = new Map(it.map((t) => [t.value, t.label]));
|
|
28
|
+
function bt(t) {
|
|
29
|
+
return yt.get(t.type) ?? t.type;
|
|
30
|
+
}
|
|
31
|
+
function Tt(t, a) {
|
|
32
|
+
if (t.type === "link") {
|
|
33
|
+
const e = t.href || "";
|
|
34
|
+
if (e.startsWith("ref:") && a) {
|
|
35
|
+
const o = e.match(/^ref:([^/?#]+)(.*)$/), i = o ? o[1] : e.slice(4), u = o ? o[2] : "", s = a.get(i);
|
|
36
|
+
if (s) return u ? `${s}${u}` : s;
|
|
37
|
+
}
|
|
38
|
+
return e.startsWith("mailto:") ? e.slice(7).split("?")[0] || e : e.startsWith("tel:") && e.slice(4) || e;
|
|
39
|
+
}
|
|
40
|
+
if (t.type === "open-modal") return t.anchor || "";
|
|
41
|
+
if (t.type === "show-hide") {
|
|
42
|
+
const e = t.target || "", o = t.trigger, i = Array.isArray(t.conditions) && t.conditions.length > 0 ? " · conditional" : "";
|
|
43
|
+
return `${o === "load" ? `${e} · on load` : o === "hover" ? `${e} · hover` : e}${i}`;
|
|
44
|
+
}
|
|
45
|
+
if (t.type === "copy-to-clipboard") {
|
|
46
|
+
const e = t.text;
|
|
47
|
+
return e ? e.length > 24 ? e.slice(0, 24) + "…" : e : "";
|
|
48
|
+
}
|
|
49
|
+
if (t.type === "download-file") return t.url || "";
|
|
50
|
+
if (t.type === "add-to-cart" && t.quantity) return `×${t.quantity}`;
|
|
51
|
+
if (t.type === "agent-send") return t.field || "";
|
|
52
|
+
if (t.type === "set-local-storage") {
|
|
53
|
+
const e = t.key, o = t.value;
|
|
54
|
+
return e && o ? `${e} = ${o}` : e || "";
|
|
55
|
+
}
|
|
56
|
+
if (t.type === "remove-local-storage") return t.key || "";
|
|
57
|
+
if (t.type === "set-state") {
|
|
58
|
+
const e = t.key, o = t.value;
|
|
59
|
+
return e && o ? `${e} = ${o}` : e || "";
|
|
60
|
+
}
|
|
61
|
+
return (t.type === "toggle-state" || t.type === "clear-state") && t.key || "";
|
|
62
|
+
}
|
|
63
|
+
function At({
|
|
64
|
+
action: t,
|
|
65
|
+
onChange: a,
|
|
66
|
+
onRemove: e,
|
|
67
|
+
autoOpen: o,
|
|
68
|
+
onAutoOpenConsumed: i,
|
|
69
|
+
selfId: u,
|
|
70
|
+
ensureSelfId: s
|
|
71
|
+
}) {
|
|
72
|
+
const [c, l] = E(!1), { triggerRef: A, initialPos: g, setInitialPos: m, computePosition: d } = lt(mt), h = t.type === "link", { pageNames: y } = W((C) => {
|
|
73
|
+
var R, $, w, L;
|
|
74
|
+
if (!h) return { pageNames: void 0 };
|
|
75
|
+
const N = /* @__PURE__ */ new Map(), b = C.nodes[Y];
|
|
76
|
+
if ((R = b == null ? void 0 : b.data) != null && R.nodes)
|
|
77
|
+
for (const O of b.data.nodes) {
|
|
78
|
+
const T = C.nodes[O];
|
|
79
|
+
((w = ($ = T == null ? void 0 : T.data) == null ? void 0 : $.props) == null ? void 0 : w.type) === "page" && N.set(O, ((L = T.data.custom) == null ? void 0 : L.displayName) || "Untitled Page");
|
|
80
|
+
}
|
|
81
|
+
return { pageNames: N };
|
|
82
|
+
}), r = ht[t.type] || nt, n = bt(t), f = z(() => Tt(t, y) || "Add…", [t, y]), v = () => {
|
|
83
|
+
m(d()), l(!0);
|
|
84
|
+
}, k = P(!1);
|
|
85
|
+
I(() => {
|
|
86
|
+
!o || k.current || (k.current = !0, requestAnimationFrame(() => {
|
|
87
|
+
m(d()), l(!0), i == null || i();
|
|
88
|
+
}));
|
|
89
|
+
}, [o]);
|
|
90
|
+
const _ = () => {
|
|
91
|
+
c && l(!1), e();
|
|
92
|
+
}, q = t.type === "show-hide" ? t.target : void 0;
|
|
93
|
+
return /* @__PURE__ */ D(S, { children: [
|
|
94
|
+
/* @__PURE__ */ p(
|
|
95
|
+
st,
|
|
96
|
+
{
|
|
97
|
+
mode: "popover",
|
|
98
|
+
ref: A,
|
|
99
|
+
label: n,
|
|
100
|
+
open: c,
|
|
101
|
+
onTriggerClick: () => c ? l(!1) : v(),
|
|
102
|
+
onClear: _,
|
|
103
|
+
triggerAriaLabel: "Edit action",
|
|
104
|
+
clearAriaLabel: "Remove action",
|
|
105
|
+
leading: /* @__PURE__ */ p(r, { className: "size-3.5", "aria-hidden": !0 }),
|
|
106
|
+
summary: f,
|
|
107
|
+
trailingExtras: t.type === "show-hide" ? /* @__PURE__ */ p(ft, { target: q, size: "sm" }) : null
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
c && /* @__PURE__ */ p(F, { fallback: null, children: /* @__PURE__ */ p(
|
|
111
|
+
gt,
|
|
112
|
+
{
|
|
113
|
+
action: t,
|
|
114
|
+
onChange: a,
|
|
115
|
+
onRemove: e,
|
|
116
|
+
initialPosition: g,
|
|
117
|
+
onClose: () => l(!1),
|
|
118
|
+
selfId: u,
|
|
119
|
+
ensureSelfId: s
|
|
120
|
+
}
|
|
121
|
+
) })
|
|
122
|
+
] });
|
|
123
|
+
}
|
|
124
|
+
const vt = "action";
|
|
125
|
+
function Ot() {
|
|
126
|
+
const {
|
|
127
|
+
id: t,
|
|
128
|
+
actions: { setProp: a },
|
|
129
|
+
actionList: e,
|
|
130
|
+
selfId: o
|
|
131
|
+
} = B((r) => {
|
|
132
|
+
const n = r.data.props;
|
|
133
|
+
return {
|
|
134
|
+
id: r.id,
|
|
135
|
+
actionList: at(n),
|
|
136
|
+
selfId: pt(r)
|
|
137
|
+
};
|
|
138
|
+
}), i = () => o || (a((r) => {
|
|
139
|
+
const n = r.attrs && typeof r.attrs == "object" ? { ...r.attrs } : {};
|
|
140
|
+
(typeof n.id != "string" || !n.id) && (n.id = t), r.attrs = n;
|
|
141
|
+
}), t), s = ct(ut).get(dt(t, vt)) || 0, c = (r) => {
|
|
142
|
+
a((n) => {
|
|
143
|
+
n.action = r.length > 0 ? r : null;
|
|
144
|
+
});
|
|
145
|
+
}, l = (r, n) => {
|
|
146
|
+
c(e.map((f, v) => v === r ? n : f));
|
|
147
|
+
}, A = (r) => {
|
|
148
|
+
c(e.filter((n, f) => f !== r));
|
|
149
|
+
}, g = P(e.length), [m, d] = E(null);
|
|
150
|
+
I(() => {
|
|
151
|
+
e.length > g.current && d(e.length - 1), g.current = e.length;
|
|
152
|
+
}, [e.length]);
|
|
153
|
+
const h = P(0);
|
|
154
|
+
I(() => {
|
|
155
|
+
s === 0 || s === h.current || (h.current = s, e.length > 0 && d(e.length - 1));
|
|
156
|
+
}, [s, e.length]);
|
|
157
|
+
const y = () => d(null);
|
|
158
|
+
return /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: e.map((r, n) => /* @__PURE__ */ p(
|
|
159
|
+
At,
|
|
160
|
+
{
|
|
161
|
+
action: r,
|
|
162
|
+
autoOpen: n === m,
|
|
163
|
+
onAutoOpenConsumed: y,
|
|
164
|
+
onChange: (f) => l(n, f),
|
|
165
|
+
onRemove: () => A(n),
|
|
166
|
+
selfId: o,
|
|
167
|
+
ensureSelfId: i
|
|
168
|
+
},
|
|
169
|
+
`action-${n}`
|
|
170
|
+
)) });
|
|
171
|
+
}
|
|
172
|
+
export {
|
|
173
|
+
Ot as ActionsInput
|
|
174
|
+
};
|