@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,25 @@
|
|
|
1
|
+
import { useRef as u, useEffect as a } from "react";
|
|
2
|
+
import { P as A, p as R } from "./popoverOpenRequestAtom-hBS_siXv.js";
|
|
3
|
+
import { u as f, S as q, i as v } from "./index-C66dAl3Q.js";
|
|
4
|
+
function F({
|
|
5
|
+
nodeId: r,
|
|
6
|
+
defId: e,
|
|
7
|
+
enabled: t = !0,
|
|
8
|
+
onOpen: n
|
|
9
|
+
}) {
|
|
10
|
+
const i = f(q), c = f(A), s = u(n);
|
|
11
|
+
s.current = n;
|
|
12
|
+
const p = u(!1);
|
|
13
|
+
a(() => {
|
|
14
|
+
!t || p.current || !e || i.has(v(r, e)) && (p.current = !0, requestAnimationFrame(() => s.current()));
|
|
15
|
+
}, [i, r, e, t]);
|
|
16
|
+
const m = u(0);
|
|
17
|
+
a(() => {
|
|
18
|
+
if (!t || !e) return;
|
|
19
|
+
const o = c.get(R(r, e)) || 0;
|
|
20
|
+
o === 0 || o === m.current || (m.current = o, requestAnimationFrame(() => s.current()));
|
|
21
|
+
}, [c, r, e, t]);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
F as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useRef as c, useState as m, useCallback as f } from "react";
|
|
2
|
+
import { u as l, aK as g } from "./index-C66dAl3Q.js";
|
|
3
|
+
function P(e) {
|
|
4
|
+
const r = c(null), o = l(g), [i, n] = m(), u = f(() => {
|
|
5
|
+
var s;
|
|
6
|
+
const t = (s = r.current) == null ? void 0 : s.getBoundingClientRect();
|
|
7
|
+
if (!t) return;
|
|
8
|
+
const a = o ? t.right + 8 : t.left - e - 8;
|
|
9
|
+
return { x: Math.max(8, a), y: Math.max(8, t.top) };
|
|
10
|
+
}, [o, e]);
|
|
11
|
+
return { triggerRef: r, initialPos: i, setInitialPos: n, computePosition: u, sidebarLeft: o };
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
P as u
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { dg as a, fv as t, fw as s, fx as i, fy as f, fz as g } from "../../chunks/index-C66dAl3Q.js";
|
|
2
|
+
export {
|
|
3
|
+
a as PageHubError,
|
|
4
|
+
t as buildRootThemeCss,
|
|
5
|
+
s as generateThemeVars,
|
|
6
|
+
i as getCartBridgeScript,
|
|
7
|
+
f as getStaticPublishRuntimeScript,
|
|
8
|
+
g as renderToHTML
|
|
9
|
+
};
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* ═══ @pagehub/sdk Default Theme (DaisyUI 5) ═════════════════════════════════
|
|
2
|
+
Canonical design tokens: palette, aliases, style, shadows, fonts.
|
|
3
|
+
Import this in any Tailwind 4 entry point to get the full DaisyUI 5 theme.
|
|
4
|
+
|
|
5
|
+
⚠️ GENERATED FILE — do not edit. Source: packages/sdk/src/utils/design/tokenSource.ts
|
|
6
|
+
Run `pnpm exec tsx scripts/generate-theme-css.mjs` (also runs in prebuild).
|
|
7
|
+
═════════════════════════════════════════════════════════════════════════════ */
|
|
8
|
+
|
|
9
|
+
@custom-variant dark (&:is(.dark *):not(#viewport:not(.dark) *));
|
|
10
|
+
|
|
11
|
+
/* ─── Light palette ────────────────────────────────────────────────────────── */
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
/* DaisyUI 5 canonical tokens (oklch) */
|
|
15
|
+
--primary: oklch(14% 0 0);
|
|
16
|
+
--primary-content: oklch(100% 0 0);
|
|
17
|
+
--secondary: oklch(96.5% 0 0);
|
|
18
|
+
--secondary-content: oklch(14% 0 0);
|
|
19
|
+
--accent: oklch(96.5% 0 0);
|
|
20
|
+
--accent-content: oklch(14% 0 0);
|
|
21
|
+
--neutral: oklch(96.5% 0 0);
|
|
22
|
+
--neutral-content: oklch(55% 0 0);
|
|
23
|
+
--base-100: oklch(100% 0 0);
|
|
24
|
+
--base-200: oklch(100% 0 0);
|
|
25
|
+
--base-300: oklch(92% 0 0);
|
|
26
|
+
--base-content: oklch(0% 0 0);
|
|
27
|
+
--error: oklch(63.7% 0.208 26.3);
|
|
28
|
+
--error-content: oklch(98% 0 0);
|
|
29
|
+
--info: oklch(62% 0.214 259);
|
|
30
|
+
--info-content: oklch(100% 0 0);
|
|
31
|
+
--success: oklch(62% 0.178 155);
|
|
32
|
+
--success-content: oklch(100% 0 0);
|
|
33
|
+
--warning: oklch(75% 0.183 70);
|
|
34
|
+
--warning-content: oklch(0% 0 0);
|
|
35
|
+
--ring: oklch(14% 0 0);
|
|
36
|
+
/* --border is a WIDTH in DaisyUI 5, not a color. Border color uses --base-300 */
|
|
37
|
+
--border: 1px;
|
|
38
|
+
|
|
39
|
+
/* DaisyUI 5 style tokens */
|
|
40
|
+
--radius-box: 0.5rem;
|
|
41
|
+
--radius-field: 0.25rem;
|
|
42
|
+
--radius-selector: 0.5rem;
|
|
43
|
+
--size-field: 0.25rem;
|
|
44
|
+
--size-selector: 0.25rem;
|
|
45
|
+
--depth: 1;
|
|
46
|
+
--noise: 0;
|
|
47
|
+
/* Radius aliases */
|
|
48
|
+
--radius: var(--radius-box);
|
|
49
|
+
--card-radius: var(--radius-box);
|
|
50
|
+
--input-border-radius: var(--radius-field);
|
|
51
|
+
|
|
52
|
+
/* Sidebar chrome (editor only — kept here so --color-sidebar-* aliases resolve) */
|
|
53
|
+
--sidebar-foreground: var(--base-content);
|
|
54
|
+
--sidebar-border: var(--base-300);
|
|
55
|
+
|
|
56
|
+
/* Font stacks */
|
|
57
|
+
--font-sans:
|
|
58
|
+
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
59
|
+
"Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
60
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
61
|
+
--font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
62
|
+
--font-mono:
|
|
63
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
|
64
|
+
monospace;
|
|
65
|
+
|
|
66
|
+
/* Shadow primitives */
|
|
67
|
+
--shadow-x: 1px;
|
|
68
|
+
--shadow-y: 2px;
|
|
69
|
+
--shadow-blur: 4.5px;
|
|
70
|
+
--shadow-spread: 0px;
|
|
71
|
+
--shadow-opacity: 0.14;
|
|
72
|
+
--shadow-color: #000000;
|
|
73
|
+
/* Shadow composites */
|
|
74
|
+
--shadow-2xs: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.07);
|
|
75
|
+
--shadow-xs: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.07);
|
|
76
|
+
--shadow-sm: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.14), 1px 1px 2px -1px hsl(0 0% 0% / 0.14);
|
|
77
|
+
--shadow: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.14), 1px 1px 2px -1px hsl(0 0% 0% / 0.14);
|
|
78
|
+
--shadow-md: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.14), 1px 2px 4px -1px hsl(0 0% 0% / 0.14);
|
|
79
|
+
--shadow-lg: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.14), 1px 4px 6px -1px hsl(0 0% 0% / 0.14);
|
|
80
|
+
--shadow-xl: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.14), 1px 8px 10px -1px hsl(0 0% 0% / 0.14);
|
|
81
|
+
--shadow-2xl: 1px 2px 4.5px 0px hsl(0 0% 0% / 0.35);
|
|
82
|
+
|
|
83
|
+
--tracking-normal: 0em;
|
|
84
|
+
--spacing: 0.25rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ─── Dark palette ─────────────────────────────────────────────────────────── */
|
|
88
|
+
|
|
89
|
+
.dark {
|
|
90
|
+
--primary: oklch(98% 0 0);
|
|
91
|
+
--primary-content: oklch(14% 0 0);
|
|
92
|
+
--secondary: oklch(24% 0 0);
|
|
93
|
+
--secondary-content: oklch(98% 0 0);
|
|
94
|
+
--accent: oklch(32% 0 0);
|
|
95
|
+
--accent-content: oklch(98% 0 0);
|
|
96
|
+
--neutral: oklch(20% 0 0);
|
|
97
|
+
--neutral-content: oklch(78% 0 0);
|
|
98
|
+
--base-100: oklch(12% 0 0);
|
|
99
|
+
--base-200: oklch(18% 0 0);
|
|
100
|
+
--base-300: oklch(32% 0 0);
|
|
101
|
+
--base-content: oklch(98% 0 0);
|
|
102
|
+
--error: oklch(55% 0.15 26);
|
|
103
|
+
--error-content: oklch(98% 0 0);
|
|
104
|
+
--info: oklch(62% 0.214 259);
|
|
105
|
+
--info-content: oklch(14% 0 0);
|
|
106
|
+
--success: oklch(62% 0.178 155);
|
|
107
|
+
--success-content: oklch(14% 0 0);
|
|
108
|
+
--warning: oklch(75% 0.183 70);
|
|
109
|
+
--warning-content: oklch(14% 0 0);
|
|
110
|
+
--ring: oklch(85% 0 0);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ─── Tailwind Theme Mapping ───────────────────────────────────────────────── */
|
|
114
|
+
|
|
115
|
+
@theme inline {
|
|
116
|
+
/* DaisyUI 5 canonical color tokens */
|
|
117
|
+
--color-primary: var(--primary);
|
|
118
|
+
--color-primary-content: var(--primary-content);
|
|
119
|
+
--color-secondary: var(--secondary);
|
|
120
|
+
--color-secondary-content: var(--secondary-content);
|
|
121
|
+
--color-accent: var(--accent);
|
|
122
|
+
--color-accent-content: var(--accent-content);
|
|
123
|
+
--color-neutral: var(--neutral);
|
|
124
|
+
--color-neutral-content: var(--neutral-content);
|
|
125
|
+
--color-base-100: var(--base-100);
|
|
126
|
+
--color-base-200: var(--base-200);
|
|
127
|
+
--color-base-300: var(--base-300);
|
|
128
|
+
--color-base-content: var(--base-content);
|
|
129
|
+
--color-error: var(--error);
|
|
130
|
+
--color-error-content: var(--error-content);
|
|
131
|
+
--color-info: var(--info);
|
|
132
|
+
--color-info-content: var(--info-content);
|
|
133
|
+
--color-success: var(--success);
|
|
134
|
+
--color-success-content: var(--success-content);
|
|
135
|
+
--color-warning: var(--warning);
|
|
136
|
+
--color-warning-content: var(--warning-content);
|
|
137
|
+
--color-border: var(--base-300);
|
|
138
|
+
--color-input: var(--base-300);
|
|
139
|
+
--color-ring: var(--ring);
|
|
140
|
+
|
|
141
|
+
/* Fonts */
|
|
142
|
+
--font-sans: var(--sans-font-family, var(--font-sans));
|
|
143
|
+
--font-mono: var(--mono-font-family, var(--font-mono));
|
|
144
|
+
--font-serif: var(--serif-font-family, var(--font-serif));
|
|
145
|
+
--font-heading: var(--heading-font-family), sans-serif;
|
|
146
|
+
--font-body: var(--body-font-family), sans-serif;
|
|
147
|
+
--font-accent: var(--accent-font-family), sans-serif;
|
|
148
|
+
|
|
149
|
+
/* Border Radius */
|
|
150
|
+
--radius-box: var(--radius-box);
|
|
151
|
+
--radius-field: var(--radius-field);
|
|
152
|
+
--radius-selector: var(--radius-selector);
|
|
153
|
+
--radius-full: var(--radius-full, 9999px);
|
|
154
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
155
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
156
|
+
--radius-lg: var(--radius);
|
|
157
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
158
|
+
|
|
159
|
+
/* Shadows */
|
|
160
|
+
--shadow-2xs: var(--shadow-2xs);
|
|
161
|
+
--shadow-xs: var(--shadow-xs);
|
|
162
|
+
--shadow-sm: var(--shadow-sm);
|
|
163
|
+
--shadow: var(--shadow);
|
|
164
|
+
--shadow-md: var(--shadow-md);
|
|
165
|
+
--shadow-lg: var(--shadow-lg);
|
|
166
|
+
--shadow-xl: var(--shadow-xl);
|
|
167
|
+
--shadow-2xl: var(--shadow-2xl);
|
|
168
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagehub/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Embeddable visual page builder SDK — drop a full drag-and-drop page editor into any web app, or render published sites anywhere JS runs.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/pagehub.
|
|
6
|
+
"main": "./dist/pagehub.js",
|
|
7
7
|
"module": "./dist/pagehub.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"sideEffects": [
|
|
@@ -19,19 +19,30 @@
|
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"import": "./dist/pagehub.js",
|
|
22
|
-
"
|
|
22
|
+
"default": "./dist/pagehub.js"
|
|
23
|
+
},
|
|
24
|
+
"./react": {
|
|
25
|
+
"types": "./dist/viewer.d.ts",
|
|
26
|
+
"import": "./dist/pagehub-viewer.js",
|
|
27
|
+
"default": "./dist/pagehub-viewer.js"
|
|
23
28
|
},
|
|
24
29
|
"./viewer": {
|
|
25
|
-
"types": "./dist/
|
|
30
|
+
"types": "./dist/viewer.d.ts",
|
|
26
31
|
"import": "./dist/pagehub-viewer.js",
|
|
27
|
-
"
|
|
32
|
+
"default": "./dist/pagehub-viewer.js"
|
|
33
|
+
},
|
|
34
|
+
"./html": {
|
|
35
|
+
"types": "./dist/render/static/index.d.ts",
|
|
36
|
+
"import": "./dist/render/static/index.js",
|
|
37
|
+
"default": "./dist/render/static/index.js"
|
|
28
38
|
},
|
|
29
39
|
"./render/static": {
|
|
30
|
-
"types": "./dist/index.d.ts",
|
|
31
|
-
"import": "./dist/
|
|
32
|
-
"
|
|
40
|
+
"types": "./dist/render/static/index.d.ts",
|
|
41
|
+
"import": "./dist/render/static/index.js",
|
|
42
|
+
"default": "./dist/render/static/index.js"
|
|
33
43
|
},
|
|
34
|
-
"./editor.css": "./dist/editor.css"
|
|
44
|
+
"./editor.css": "./dist/editor.css",
|
|
45
|
+
"./theme.css": "./dist/theme.css"
|
|
35
46
|
},
|
|
36
47
|
"files": [
|
|
37
48
|
"dist"
|
|
@@ -226,7 +237,7 @@
|
|
|
226
237
|
"style-to-object": "^1.0.14",
|
|
227
238
|
"tailwind-merge": "^3.5.0",
|
|
228
239
|
"uuid": "^10.0.0",
|
|
229
|
-
"@pagehub/daisyui-spatial": "0.1.
|
|
240
|
+
"@pagehub/daisyui-spatial": "0.1.1"
|
|
230
241
|
},
|
|
231
242
|
"devDependencies": {
|
|
232
243
|
"@codemirror/autocomplete": "^6.20.1",
|
|
@@ -314,12 +325,12 @@
|
|
|
314
325
|
},
|
|
315
326
|
"scripts": {
|
|
316
327
|
"dev": "vite build --watch",
|
|
317
|
-
"build": "vite build && vite build --config vite.editor-css.config.ts && pnpm run build:viewer && pnpm run build:
|
|
328
|
+
"build": "vite build && vite build --config vite.editor-css.config.ts && pnpm run build:viewer && pnpm run build:static && pnpm run build:theme-css",
|
|
318
329
|
"build:editor-css": "vite build --config vite.editor-css.config.ts",
|
|
319
330
|
"build:viewer": "vite build --mode viewer",
|
|
320
|
-
"build:
|
|
331
|
+
"build:static": "vite build --mode static",
|
|
332
|
+
"build:theme-css": "cp src/css/theme.css dist/theme.css",
|
|
321
333
|
"preview": "vite preview",
|
|
322
|
-
"typecheck": "tsc --noEmit"
|
|
323
|
-
"demo": "vite --config vite.demo.config.ts"
|
|
334
|
+
"typecheck": "tsc --noEmit"
|
|
324
335
|
}
|
|
325
336
|
}
|