@pagehub/sdk 0.1.4 → 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,165 @@
1
+ import { jsxs as l, Fragment as c, jsx as e } from "react/jsx-runtime";
2
+ import { useNode as s, NodeProvider as m } from "@craftjs/core";
3
+ import { C as b } from "./CraftListEditor-_TIy1ogW.js";
4
+ import { d as y, w as p, n as o, aE as h } from "./index-C66dAl3Q.js";
5
+ import { r as u } from "./helpers-Cll72tMn.js";
6
+ import { S as f } from "./SlotRenderer-CaLf_2_C.js";
7
+ const g = h("selectedmappoint_unified", null), L = () => {
8
+ const { id: a } = s(), [n, d] = y(g);
9
+ return u({
10
+ Content: /* @__PURE__ */ l(c, { children: [
11
+ /* @__PURE__ */ l(p, { collapsible: !1, children: [
12
+ /* @__PURE__ */ e(
13
+ b,
14
+ {
15
+ parentId: a,
16
+ childTypeName: "MapPoint",
17
+ mapItem: (t) => ({
18
+ title: t.data.props.title || "",
19
+ lat: t.data.props.lat || 0,
20
+ lng: t.data.props.lng || 0,
21
+ description: t.data.props.description || ""
22
+ }),
23
+ activeIndex: n,
24
+ setActiveIndex: d,
25
+ addLabel: "Add Point",
26
+ editTooltip: "Edit point",
27
+ renderLabel: (t, i) => t.title || `Point ${i + 1}`,
28
+ onAdd: ({ query: t, addNode: i }) => {
29
+ const r = t.getOptions().resolver.MapPoint;
30
+ r && i(/* @__PURE__ */ e(r, { title: "New Point" }));
31
+ },
32
+ renderPopover: (t) => /* @__PURE__ */ l(m, { id: t.id, children: [
33
+ /* @__PURE__ */ l(p, { title: "Location", children: [
34
+ /* @__PURE__ */ e(
35
+ o,
36
+ {
37
+ propKey: "lat",
38
+ propType: "component",
39
+ type: "number",
40
+ label: "Latitude",
41
+ labelHide: !1,
42
+ placeholder: "e.g. 51.505"
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e(
46
+ o,
47
+ {
48
+ propKey: "lng",
49
+ propType: "component",
50
+ type: "number",
51
+ label: "Longitude",
52
+ labelHide: !1,
53
+ placeholder: "e.g. -0.09"
54
+ }
55
+ )
56
+ ] }),
57
+ /* @__PURE__ */ e(p, { title: "Details", children: /* @__PURE__ */ e(
58
+ o,
59
+ {
60
+ propKey: "description",
61
+ propType: "component",
62
+ type: "text",
63
+ label: "Description",
64
+ labelHide: !1,
65
+ placeholder: "Brief description"
66
+ }
67
+ ) })
68
+ ] })
69
+ }
70
+ ),
71
+ /* @__PURE__ */ e(f, { id: "settings/ai-button" })
72
+ ] }),
73
+ /* @__PURE__ */ l(
74
+ p,
75
+ {
76
+ title: "Map Settings",
77
+ help: "Interactive, static, or background display mode.",
78
+ children: [
79
+ /* @__PURE__ */ l(
80
+ o,
81
+ {
82
+ propKey: "type",
83
+ propType: "component",
84
+ type: "select",
85
+ label: "Display Type",
86
+ labelHide: !1,
87
+ children: [
88
+ /* @__PURE__ */ e("option", { value: "interactive", children: "Interactive" }),
89
+ /* @__PURE__ */ e("option", { value: "static", children: "Static" }),
90
+ /* @__PURE__ */ e("option", { value: "background", children: "Background" })
91
+ ]
92
+ }
93
+ ),
94
+ /* @__PURE__ */ l(
95
+ o,
96
+ {
97
+ propKey: "tileStyle",
98
+ propType: "component",
99
+ type: "select",
100
+ label: "Tile Style",
101
+ labelHide: !1,
102
+ children: [
103
+ /* @__PURE__ */ e("option", { value: "osm", children: "OpenStreetMap" }),
104
+ /* @__PURE__ */ e("option", { value: "cartodb-positron", children: "Light (Positron)" }),
105
+ /* @__PURE__ */ e("option", { value: "cartodb-dark", children: "Dark" }),
106
+ /* @__PURE__ */ e("option", { value: "cartodb-voyager", children: "Voyager" })
107
+ ]
108
+ }
109
+ )
110
+ ]
111
+ }
112
+ ),
113
+ /* @__PURE__ */ l(p, { title: "Center Position", help: "Where the map is centered by default.", children: [
114
+ /* @__PURE__ */ e(
115
+ o,
116
+ {
117
+ propKey: "lat",
118
+ propType: "component",
119
+ type: "number",
120
+ label: "Latitude",
121
+ labelHide: !1,
122
+ placeholder: "e.g. 51.505"
123
+ }
124
+ ),
125
+ /* @__PURE__ */ e(
126
+ o,
127
+ {
128
+ propKey: "lng",
129
+ propType: "component",
130
+ type: "number",
131
+ label: "Longitude",
132
+ labelHide: !1,
133
+ placeholder: "e.g. -0.09"
134
+ }
135
+ ),
136
+ /* @__PURE__ */ e(
137
+ o,
138
+ {
139
+ propKey: "zoom",
140
+ propType: "component",
141
+ type: "number",
142
+ label: "Zoom (1-20)",
143
+ labelHide: !1,
144
+ placeholder: "13"
145
+ }
146
+ )
147
+ ] }),
148
+ /* @__PURE__ */ e(p, { title: "Accessibility", help: "Title for screen readers.", children: /* @__PURE__ */ e(
149
+ o,
150
+ {
151
+ propKey: "title",
152
+ propType: "component",
153
+ type: "text",
154
+ label: "Map Title",
155
+ labelHide: !1,
156
+ placeholder: "Describe the map content"
157
+ }
158
+ ) })
159
+ ] })
160
+ });
161
+ };
162
+ export {
163
+ L as MapMainTab,
164
+ g as SelectedMapPointAtom
165
+ };
@@ -0,0 +1,16 @@
1
+ import { cY as d, cZ as n, c_ as p, da as i } from "./index-C66dAl3Q.js";
2
+ const r = (s) => {
3
+ const a = d(), o = n(), e = p({
4
+ id: (o == null ? void 0 : o.id) ?? "",
5
+ isCanvas: !1,
6
+ hasChildNodes: !1,
7
+ displayName: "MapPoint",
8
+ rootProps: (a == null ? void 0 : a.rootProps) ?? {},
9
+ pageMedia: (a == null ? void 0 : a.pageMedia) ?? null,
10
+ pageIndex: (a == null ? void 0 : a.pageIndex) ?? {}
11
+ });
12
+ return i(s, e);
13
+ };
14
+ export {
15
+ r as MapPointRender
16
+ };
@@ -0,0 +1,60 @@
1
+ import { jsxs as t, Fragment as l, jsx as e } from "react/jsx-runtime";
2
+ import { w as p, n as o } from "./index-C66dAl3Q.js";
3
+ import { r as n } from "./helpers-Cll72tMn.js";
4
+ import { S as r } from "./SlotRenderer-CaLf_2_C.js";
5
+ const c = () => n({
6
+ Content: /* @__PURE__ */ t(l, { children: [
7
+ /* @__PURE__ */ e(r, { id: "settings/ai-button" }),
8
+ /* @__PURE__ */ t(p, { title: "Location", help: "Latitude and longitude for this pin.", children: [
9
+ /* @__PURE__ */ e(
10
+ o,
11
+ {
12
+ propKey: "lat",
13
+ propType: "component",
14
+ type: "number",
15
+ label: "Latitude",
16
+ labelHide: !1,
17
+ placeholder: "e.g. 51.505"
18
+ }
19
+ ),
20
+ /* @__PURE__ */ e(
21
+ o,
22
+ {
23
+ propKey: "lng",
24
+ propType: "component",
25
+ type: "number",
26
+ label: "Longitude",
27
+ labelHide: !1,
28
+ placeholder: "e.g. -0.09"
29
+ }
30
+ )
31
+ ] }),
32
+ /* @__PURE__ */ t(p, { title: "Details", help: "Name and description shown in the pin popup.", children: [
33
+ /* @__PURE__ */ e(
34
+ o,
35
+ {
36
+ propKey: "title",
37
+ propType: "component",
38
+ type: "text",
39
+ label: "Title",
40
+ labelHide: !1,
41
+ placeholder: "Location name"
42
+ }
43
+ ),
44
+ /* @__PURE__ */ e(
45
+ o,
46
+ {
47
+ propKey: "description",
48
+ propType: "component",
49
+ type: "text",
50
+ label: "Description",
51
+ labelHide: !1,
52
+ placeholder: "Brief description"
53
+ }
54
+ )
55
+ ] })
56
+ ] })
57
+ });
58
+ export {
59
+ c as MapPointMainTab
60
+ };