@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,59 @@
1
+ import { aE as l } from "./index-C66dAl3Q.js";
2
+ l("colorPalette", []);
3
+ const a = l("colorPicker", () => ({
4
+ enabled: !1,
5
+ value: "",
6
+ prefix: "",
7
+ changed: null,
8
+ preview: null,
9
+ originalValue: null,
10
+ showPalette: !1,
11
+ e: null,
12
+ propKey: null,
13
+ mode: "both",
14
+ defaultMode: "palette"
15
+ }));
16
+ l(
17
+ "colorPickerSidebar",
18
+ () => ({
19
+ enabled: !1,
20
+ value: "",
21
+ prefix: "",
22
+ changed: null,
23
+ showPalette: !0,
24
+ propKey: null
25
+ })
26
+ );
27
+ const n = l(
28
+ "fontFamily",
29
+ () => ({
30
+ enabled: !1,
31
+ prefix: "",
32
+ value: [],
33
+ originalValue: null,
34
+ changed: null,
35
+ preview: null,
36
+ propKey: null,
37
+ e: null
38
+ })
39
+ );
40
+ l("patternDialog", () => ({
41
+ enabled: !1,
42
+ prefix: "",
43
+ value: null,
44
+ changed: null,
45
+ e: null
46
+ }));
47
+ l("tooltip", () => ({
48
+ enabled: !1,
49
+ prefix: "",
50
+ value: null,
51
+ key: null,
52
+ e: null,
53
+ placement: "bottom"
54
+ }));
55
+ l("commandPalette", { open: !1 });
56
+ export {
57
+ a as C,
58
+ n as F
59
+ };
@@ -0,0 +1,12 @@
1
+ function e() {
2
+ return e = Object.assign ? Object.assign.bind() : function(t) {
3
+ for (var n = 1; n < arguments.length; n++) {
4
+ var r = arguments[n];
5
+ for (var a in r) ({}).hasOwnProperty.call(r, a) && (t[a] = r[a]);
6
+ }
7
+ return t;
8
+ }, e.apply(null, arguments);
9
+ }
10
+ export {
11
+ e as _
12
+ };
@@ -0,0 +1,22 @@
1
+ import { Y as r, Z as n } from "./index-C66dAl3Q.js";
2
+ const v = (o, t = "") => {
3
+ if (!o || !o.value) return "";
4
+ let e = o.value;
5
+ if (o.type === "palette") {
6
+ const l = o.value.replace("palette:", ""), $ = r(l);
7
+ e = t ? `${t}-[var(--${$})]` : `var(--${$})`;
8
+ } else if (o.type === "hex")
9
+ e = t ? `${t}-[${e}]` : e;
10
+ else if (o.type === "rgb")
11
+ if (typeof e == "object" && e.r !== void 0) {
12
+ const l = e.r, $ = e.g, s = e.b, a = e.a != null ? e.a : 1;
13
+ t && a < 1 - 1e-6 ? e = `${t}-[rgb(${l},${$},${s})]${n(a)}` : (e = `rgba(${l},${$},${s},${a})`, e = t ? `${t}-[${e}]` : e);
14
+ } else
15
+ e = t ? `${t}-[${e}]` : e;
16
+ else
17
+ e = t ? `${t}-${e}` : e;
18
+ return e;
19
+ };
20
+ export {
21
+ v as f
22
+ };
@@ -0,0 +1,323 @@
1
+ import { a_ as h } from "./index-C66dAl3Q.js";
2
+ const S = {
3
+ popular: [
4
+ "Roboto",
5
+ "Open Sans",
6
+ "Lato",
7
+ "Montserrat",
8
+ "Oswald",
9
+ "Raleway",
10
+ "PT Sans",
11
+ "Merriweather",
12
+ "Poppins",
13
+ "Nunito",
14
+ "Roboto Condensed",
15
+ "Ubuntu",
16
+ "Playfair Display",
17
+ "Mukta",
18
+ "Noto Sans",
19
+ "Rubik",
20
+ "Work Sans",
21
+ "Inter",
22
+ "Fira Sans",
23
+ "Source Sans Pro",
24
+ "Noto Serif",
25
+ "Quicksand",
26
+ "Karla",
27
+ "Titillium Web",
28
+ "Libre Baskerville",
29
+ "Bitter",
30
+ "Hind",
31
+ "Cabin",
32
+ "Dosis",
33
+ "Crimson Text",
34
+ "Inconsolata",
35
+ "Oxygen",
36
+ "Droid Sans",
37
+ "Libre Franklin",
38
+ "Josefin Sans",
39
+ "Barlow",
40
+ "EB Garamond",
41
+ "PT Serif",
42
+ "Abel",
43
+ "Arimo",
44
+ "Heebo",
45
+ "DM Sans",
46
+ "Mulish",
47
+ "Manrope",
48
+ "Nanum Gothic",
49
+ "Archivo",
50
+ "Exo 2",
51
+ "Lora",
52
+ "IBM Plex Sans",
53
+ "Comfortaa"
54
+ ],
55
+ funky: [
56
+ "Pacifico",
57
+ "Lobster",
58
+ "Righteous",
59
+ "Permanent Marker",
60
+ "Bebas Neue",
61
+ "Abril Fatface",
62
+ "Fredoka One",
63
+ "Staatliches",
64
+ "Russo One",
65
+ "Orbitron",
66
+ "Press Start 2P",
67
+ "Indie Flower",
68
+ "Architects Daughter",
69
+ "Shadows Into Light",
70
+ "Caveat",
71
+ "Dancing Script",
72
+ "Great Vibes",
73
+ "Satisfy",
74
+ "Tangerine",
75
+ "Kaushan Script"
76
+ ],
77
+ extended: [
78
+ "Crimson Pro",
79
+ "Libre Baskerville",
80
+ "Playfair Display",
81
+ "Merriweather",
82
+ "Lora",
83
+ "PT Serif",
84
+ "Vollkorn",
85
+ "Cormorant",
86
+ "Spectral",
87
+ "Cardo",
88
+ "Alegreya",
89
+ "Noto Serif",
90
+ "Source Serif Pro",
91
+ "Tinos",
92
+ "Gelasio",
93
+ "Domine",
94
+ "Arvo",
95
+ "Bitter",
96
+ "Neuton",
97
+ "Old Standard TT",
98
+ "Crimson Text",
99
+ "Gentium Book Basic",
100
+ "Coustard",
101
+ "Alice",
102
+ "Amiri",
103
+ "Goudy Bookletter 1911",
104
+ "Inter",
105
+ "Roboto",
106
+ "Open Sans",
107
+ "Lato",
108
+ "Montserrat",
109
+ "Poppins",
110
+ "Nunito",
111
+ "Raleway",
112
+ "Ubuntu",
113
+ "Work Sans",
114
+ "Rubik",
115
+ "Source Sans Pro",
116
+ "Mukta",
117
+ "PT Sans",
118
+ "Oswald",
119
+ "Fira Sans",
120
+ "Hind",
121
+ "Cabin",
122
+ "Karla",
123
+ "Titillium Web",
124
+ "Quicksand",
125
+ "Oxygen",
126
+ "Dosis",
127
+ "Barlow",
128
+ "Manrope",
129
+ "DM Sans",
130
+ "Mulish",
131
+ "Heebo",
132
+ "Exo 2",
133
+ "IBM Plex Sans",
134
+ "Comfortaa",
135
+ "Abel",
136
+ "Archivo",
137
+ "Noto Sans",
138
+ "Red Hat Display",
139
+ "Jost",
140
+ "Asap",
141
+ "Catamaran",
142
+ "Public Sans",
143
+ "Space Grotesk",
144
+ "Bebas Neue",
145
+ "Anton",
146
+ "Righteous",
147
+ "Staatliches",
148
+ "Monoton",
149
+ "Abril Fatface",
150
+ "Fredoka One",
151
+ "Audiowide",
152
+ "Bungee",
153
+ "Yellowtail",
154
+ "Alfa Slab One",
155
+ "Secular One",
156
+ "Black Ops One",
157
+ "Sigmar One",
158
+ "Bowlby One SC",
159
+ "Poiret One",
160
+ "Titan One",
161
+ "Creepster",
162
+ "Fugaz One",
163
+ "Pacifico",
164
+ "Lobster",
165
+ "Dancing Script",
166
+ "Great Vibes",
167
+ "Satisfy",
168
+ "Kaushan Script",
169
+ "Tangerine",
170
+ "Allura",
171
+ "Cookie",
172
+ "Sacramento",
173
+ "Indie Flower",
174
+ "Shadows Into Light",
175
+ "Caveat",
176
+ "Architects Daughter",
177
+ "Patrick Hand",
178
+ "Amatic SC",
179
+ "Courgette",
180
+ "Kalam",
181
+ "Handlee",
182
+ "Roboto Mono",
183
+ "Source Code Pro",
184
+ "JetBrains Mono",
185
+ "Fira Code",
186
+ "Inconsolata",
187
+ "Space Mono",
188
+ "IBM Plex Mono",
189
+ "Courier Prime",
190
+ "Anonymous Pro",
191
+ "Overpass Mono",
192
+ "Ubuntu Mono",
193
+ "PT Mono",
194
+ "Roboto Condensed",
195
+ "Libre Franklin",
196
+ "Josefin Sans",
197
+ "Nanum Gothic",
198
+ "PT Sans Narrow",
199
+ "Varela Round",
200
+ "Lexend",
201
+ "Merriweather Sans",
202
+ "Encode Sans",
203
+ "Sora",
204
+ "Outfit",
205
+ "Plus Jakarta Sans",
206
+ "Epilogue",
207
+ "Urbanist",
208
+ "Figtree",
209
+ "Albert Sans",
210
+ "Bricolage Grotesque"
211
+ ]
212
+ }, L = S;
213
+ let d = null, c = null, F = "/api/fonts/list";
214
+ function O(o) {
215
+ F = o, p();
216
+ }
217
+ function C() {
218
+ return F;
219
+ }
220
+ function p() {
221
+ d = null, c = null;
222
+ }
223
+ let m = null;
224
+ function f() {
225
+ return m ?? S;
226
+ }
227
+ function M() {
228
+ return f();
229
+ }
230
+ function G(o) {
231
+ m = o, p();
232
+ }
233
+ function T() {
234
+ m = null, p();
235
+ }
236
+ function P() {
237
+ const { popular: o, funky: e, extended: a } = f();
238
+ return [.../* @__PURE__ */ new Set([...o, ...e, ...a])];
239
+ }
240
+ const y = async (o) => d || c || (c = (async () => {
241
+ try {
242
+ const e = await fetch(C());
243
+ if (!e.ok) {
244
+ const i = await e.json().catch(() => ({}));
245
+ return h.warn("Failed to fetch Google Fonts from proxy:", i), g();
246
+ }
247
+ return d = (await e.json()).items, d;
248
+ } catch (e) {
249
+ return h.error("Error fetching Google Fonts:", e), g();
250
+ } finally {
251
+ c = null;
252
+ }
253
+ })(), c), g = () => P().map((e) => ({
254
+ family: e,
255
+ variants: ["regular", "700"],
256
+ subsets: ["latin"],
257
+ category: "sans-serif"
258
+ })), B = async (o) => {
259
+ const e = await y(), a = f(), i = new Set(a.popular), l = new Set(a.funky), r = e.filter((t) => i.has(t.family)), s = e.filter((t) => l.has(t.family)), n = e.filter(
260
+ (t) => t.category === "serif" && !r.includes(t) && !s.includes(t)
261
+ ), u = e.filter(
262
+ (t) => t.category === "sans-serif" && !r.includes(t) && !s.includes(t)
263
+ ), w = e.filter((t) => t.category === "display" && !s.includes(t)), k = e.filter((t) => t.category === "handwriting"), b = e.filter((t) => t.category === "monospace");
264
+ return {
265
+ popular: r,
266
+ funky: s,
267
+ serif: n,
268
+ sansSerif: u,
269
+ display: w,
270
+ handwriting: k,
271
+ monospace: b,
272
+ all: e
273
+ };
274
+ }, x = async (o, e) => {
275
+ const a = await y(), i = o.toLowerCase(), l = a.filter((n) => n.family.toLowerCase() === i), r = a.filter(
276
+ (n) => n.family.toLowerCase().startsWith(i) && !l.includes(n)
277
+ ), s = a.filter(
278
+ (n) => n.family.toLowerCase().includes(i) && !l.includes(n) && !r.includes(n)
279
+ );
280
+ return [...l, ...r, ...s].slice(0, 50);
281
+ }, E = (o, e = ["400", "700"], a = "swap") => {
282
+ if (typeof window > "u") return;
283
+ const i = o.replace(/ +/g, "+"), l = e.join(";"), r = `https://fonts.googleapis.com/css2?family=${i}:wght@${l}&display=${a}`;
284
+ if (Array.from(
285
+ document.querySelectorAll('link[rel="stylesheet"][href*="fonts.googleapis.com"]')
286
+ ).some((u) => u.href === r))
287
+ return;
288
+ const n = document.createElement("link");
289
+ n.rel = "stylesheet", n.href = r, n.media = "all", document.head.appendChild(n);
290
+ }, D = (o, e = "swap") => {
291
+ if (typeof window > "u" || o.length === 0) return;
292
+ const a = o.map((s) => {
293
+ const n = s.family.replace(/ +/g, "+"), u = s.weights || ["400", "700"];
294
+ return `family=${n}:wght@${u.join(";")}`;
295
+ }).join("&"), i = `https://fonts.googleapis.com/css2?${a}&display=${e}`;
296
+ if (Array.from(
297
+ document.querySelectorAll('link[rel="stylesheet"][href*="fonts.googleapis.com"]')
298
+ ).some((s) => s.href.includes(a)))
299
+ return;
300
+ const r = document.createElement("link");
301
+ r.rel = "preload", r.as = "style", r.href = i, r.onload = function() {
302
+ this.onload = null, this.rel = "stylesheet", this.media = "all";
303
+ }, document.head.appendChild(r);
304
+ }, R = () => {
305
+ p();
306
+ }, I = async (o) => (await y()).map((a) => a.family), N = () => [...f().popular], v = () => [...f().funky];
307
+ export {
308
+ L as CURATED_GOOGLE_FONT_FAMILIES,
309
+ S as DEFAULT_CURATED_GOOGLE_FONT_FAMILIES,
310
+ R as clearFontCache,
311
+ y as fetchGoogleFonts,
312
+ M as getCuratedGoogleFontFamilies,
313
+ I as getFontFamilies,
314
+ v as getFunkyFonts,
315
+ B as getOrganizedFonts,
316
+ N as getPopularFonts,
317
+ E as loadGoogleFont,
318
+ D as preloadFonts,
319
+ T as resetCuratedGoogleFontFamilies,
320
+ x as searchFonts,
321
+ G as setCuratedGoogleFontFamilies,
322
+ O as setFontsListEndpoint
323
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as r, Fragment as o } from "react/jsx-runtime";
2
+ import t from "react";
3
+ import "@craftjs/core";
4
+ import { aU as a, aV as m } from "./index-C66dAl3Q.js";
5
+ const s = {
6
+ // Component
7
+ Content: /* @__PURE__ */ r(a, {}),
8
+ Type: /* @__PURE__ */ r(m, {})
9
+ }, p = ["Content", "Type", "Marker"];
10
+ function S(n) {
11
+ return /* @__PURE__ */ r(o, { children: p.map(
12
+ (e) => n[e] !== void 0 ? /* @__PURE__ */ r(t.Fragment, { children: n[e] }, e) : null
13
+ ) });
14
+ }
15
+ export {
16
+ s as S,
17
+ S as r
18
+ };