@selfhelp/shared 1.0.0

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 (64) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE +381 -0
  3. package/README.md +266 -0
  4. package/dist/common-B96dASgu.d.mts +80 -0
  5. package/dist/common-B96dASgu.d.ts +80 -0
  6. package/dist/index-Bg60YTsF.d.mts +1743 -0
  7. package/dist/index-DEOVT86P.d.ts +1743 -0
  8. package/dist/index.d.mts +597 -0
  9. package/dist/index.d.ts +597 -0
  10. package/dist/index.js +796 -0
  11. package/dist/index.mjs +718 -0
  12. package/dist/registry/index.d.mts +2 -0
  13. package/dist/registry/index.d.ts +2 -0
  14. package/dist/registry/index.js +134 -0
  15. package/dist/registry/index.mjs +105 -0
  16. package/dist/theme/index.d.mts +63 -0
  17. package/dist/theme/index.d.ts +63 -0
  18. package/dist/theme/index.js +202 -0
  19. package/dist/theme/index.mjs +162 -0
  20. package/dist/theme/tailwind.d.mts +36 -0
  21. package/dist/theme/tailwind.d.ts +36 -0
  22. package/dist/theme/tailwind.js +125 -0
  23. package/dist/theme/tailwind.mjs +97 -0
  24. package/package.json +69 -0
  25. package/src/api/endpoints.ts +58 -0
  26. package/src/api/index.ts +5 -0
  27. package/src/assets/index.ts +5 -0
  28. package/src/assets/resolveAssetUrl.ts +44 -0
  29. package/src/cms-classes/allow-list.ts +158 -0
  30. package/src/cms-classes/classify.ts +90 -0
  31. package/src/cms-classes/index.ts +7 -0
  32. package/src/cms-classes/remap.ts +44 -0
  33. package/src/condition/evaluate.ts +121 -0
  34. package/src/condition/index.ts +5 -0
  35. package/src/index.ts +25 -0
  36. package/src/interpolation/index.ts +5 -0
  37. package/src/interpolation/replaceCalcedValues.ts +27 -0
  38. package/src/registry/index.ts +37 -0
  39. package/src/registry/styles.registry.ts +158 -0
  40. package/src/theme/index.ts +6 -0
  41. package/src/theme/tailwind.ts +73 -0
  42. package/src/theme/tokens.ts +177 -0
  43. package/src/types/api/auth.ts +46 -0
  44. package/src/types/api/envelope.ts +34 -0
  45. package/src/types/api/forms.ts +38 -0
  46. package/src/types/api/index.ts +9 -0
  47. package/src/types/api/language.ts +12 -0
  48. package/src/types/api/page.ts +9 -0
  49. package/src/types/auth.ts +110 -0
  50. package/src/types/index.ts +17 -0
  51. package/src/types/mantine/common.ts +142 -0
  52. package/src/types/pages.ts +107 -0
  53. package/src/types/styles/auth.ts +165 -0
  54. package/src/types/styles/base.ts +72 -0
  55. package/src/types/styles/composite.ts +131 -0
  56. package/src/types/styles/forms.ts +439 -0
  57. package/src/types/styles/interactive.ts +165 -0
  58. package/src/types/styles/layout.ts +184 -0
  59. package/src/types/styles/media.ts +68 -0
  60. package/src/types/styles/typography.ts +118 -0
  61. package/src/types/styles/unknown.ts +220 -0
  62. package/src/utils/index.ts +6 -0
  63. package/src/utils/spacing.ts +64 -0
  64. package/src/utils/transformPageData.ts +93 -0
package/dist/index.js ADDED
@@ -0,0 +1,796 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ API_VERSION_PREFIX: () => API_VERSION_PREFIX,
34
+ CLASS_PATTERNS: () => CLASS_PATTERNS,
35
+ CLASS_REMAP: () => CLASS_REMAP,
36
+ CLIENT_TYPE_MOBILE: () => CLIENT_TYPE_MOBILE,
37
+ CLIENT_TYPE_MOBILE_AND_WEB: () => CLIENT_TYPE_MOBILE_AND_WEB,
38
+ CLIENT_TYPE_WEB: () => CLIENT_TYPE_WEB,
39
+ COLOR_NAMES: () => COLOR_NAMES,
40
+ COLOR_PALETTE: () => COLOR_PALETTE,
41
+ COLOR_SCALES: () => COLOR_SCALES,
42
+ CONTAINER_SIZE_PX: () => CONTAINER_SIZE_PX,
43
+ ENDPOINTS: () => ENDPOINTS,
44
+ FONT_SIZE_PX: () => FONT_SIZE_PX,
45
+ HEADER_CLIENT_TYPE: () => HEADER_CLIENT_TYPE,
46
+ LINE_HEIGHT: () => LINE_HEIGHT,
47
+ LITERAL_CLASSES: () => LITERAL_CLASSES,
48
+ PERMISSIONS: () => PERMISSIONS,
49
+ RADIUS_PX: () => RADIUS_PX,
50
+ SIZE_VALUES: () => SIZE_VALUES,
51
+ SPACING_PX: () => SPACING_PX,
52
+ SPACING_TO_TAILWIND: () => SPACING_TO_TAILWIND,
53
+ SPACING_VALUES: () => SPACING_VALUES,
54
+ STYLE_REGISTRY: () => STYLE_REGISTRY,
55
+ buildConditionContext: () => buildConditionContext,
56
+ classifyClass: () => classifyClass,
57
+ classifyClassString: () => classifyClassString,
58
+ colorToHex: () => colorToHex,
59
+ evaluateCondition: () => evaluateCondition,
60
+ findRemap: () => findRemap,
61
+ getRegistryEntry: () => getRegistryEntry,
62
+ isKnownStyleName: () => isKnownStyleName,
63
+ parseSpacing: () => parseSpacing,
64
+ radiusToPx: () => radiusToPx,
65
+ replaceCalcedValues: () => replaceCalcedValues,
66
+ resolveAssetSources: () => resolveAssetSources,
67
+ resolveAssetUrl: () => resolveAssetUrl,
68
+ sharedTailwindExtend: () => sharedTailwindExtend,
69
+ sharedTailwindPreset: () => sharedTailwindPreset,
70
+ sizeToFontPx: () => sizeToFontPx,
71
+ spacingToClasses: () => spacingToClasses,
72
+ spacingToPx: () => spacingToPx,
73
+ transformPageData: () => transformPageData,
74
+ transformPagesData: () => transformPagesData
75
+ });
76
+ module.exports = __toCommonJS(index_exports);
77
+
78
+ // src/types/auth.ts
79
+ var PERMISSIONS = {
80
+ ADMIN_ACCESS: "admin.access",
81
+ ADMIN_PAGE_READ: "admin.page.read",
82
+ ADMIN_PAGE_CREATE: "admin.page.create",
83
+ ADMIN_PAGE_UPDATE: "admin.page.update",
84
+ ADMIN_PAGE_DELETE: "admin.page.delete",
85
+ ADMIN_PAGE_EXPORT: "admin.page.export",
86
+ ADMIN_PAGE_VERSION_PUBLISH: "admin.page.version.publish",
87
+ ADMIN_PAGE_VERSION_READ: "admin.page.version.read",
88
+ ADMIN_PAGE_VERSION_COMPARE: "admin.page.version.compare",
89
+ ADMIN_USER_READ: "admin.user.read",
90
+ ADMIN_USER_CREATE: "admin.user.create",
91
+ ADMIN_USER_UPDATE: "admin.user.update",
92
+ ADMIN_USER_DELETE: "admin.user.delete",
93
+ ADMIN_USER_BLOCK: "admin.user.block",
94
+ ADMIN_USER_IMPERSONATE: "admin.user.impersonate",
95
+ ADMIN_GROUP_READ: "admin.group.read",
96
+ ADMIN_GROUP_CREATE: "admin.group.create",
97
+ ADMIN_GROUP_UPDATE: "admin.group.update",
98
+ ADMIN_GROUP_DELETE: "admin.group.delete",
99
+ ADMIN_GROUP_ACL: "admin.group.acl",
100
+ ADMIN_ROLE_READ: "admin.role.read",
101
+ ADMIN_ROLE_CREATE: "admin.role.create",
102
+ ADMIN_ROLE_UPDATE: "admin.role.update",
103
+ ADMIN_ROLE_DELETE: "admin.role.delete",
104
+ ADMIN_ROLE_PERMISSIONS: "admin.role.permissions",
105
+ ADMIN_PERMISSION_READ: "admin.permission.read",
106
+ ADMIN_ASSET_READ: "admin.asset.read",
107
+ ADMIN_ASSET_CREATE: "admin.asset.create",
108
+ ADMIN_ASSET_DELETE: "admin.asset.delete",
109
+ ADMIN_ACTION_READ: "admin.action.read",
110
+ ADMIN_ACTION_UPDATE: "admin.action.update",
111
+ ADMIN_ACTION_DELETE: "admin.action.delete",
112
+ ADMIN_ACTION_TRANSLATION_READ: "admin.action.translation.read",
113
+ ADMIN_DATA_READ: "admin.data.read",
114
+ ADMIN_DATA_DELETE: "admin.data.delete",
115
+ ADMIN_DATA_DELETE_COLUMNS: "admin.data.delete_columns",
116
+ ADMIN_SCHEDULED_JOB_READ: "admin.scheduled_job.read",
117
+ ADMIN_SCHEDULED_JOB_EXECUTE: "admin.scheduled_job.execute",
118
+ ADMIN_SCHEDULED_JOB_DELETE: "admin.scheduled_job.delete",
119
+ ADMIN_SECTION_DELETE: "admin.section.delete",
120
+ ADMIN_SETTINGS: "admin.settings",
121
+ ADMIN_CMS_PREFERENCES_READ: "admin.cms_preferences.read",
122
+ ADMIN_CMS_PREFERENCES_UPDATE: "admin.cms_preferences.update",
123
+ ADMIN_CACHE_READ: "admin.cache.read",
124
+ ADMIN_CACHE_CLEAR: "admin.cache.clear",
125
+ ADMIN_CACHE_MANAGE: "admin.cache.manage",
126
+ ADMIN_AUDIT_VIEW: "admin.audit.view"
127
+ };
128
+
129
+ // src/registry/styles.registry.ts
130
+ var STYLE_REGISTRY = {
131
+ // ===== auth =====
132
+ login: { description: "User login form", category: "auth", frontendOnly: true, canHaveChildren: false },
133
+ register: { description: "User registration form", category: "auth", frontendOnly: true, canHaveChildren: false },
134
+ validate: { description: "Email/account validation flow", category: "auth", frontendOnly: true, canHaveChildren: true },
135
+ resetPassword: { description: "Reset password form", category: "auth", frontendOnly: true, canHaveChildren: false },
136
+ twoFactorAuth: { description: "Two-factor auth code form", category: "auth", frontendOnly: true, canHaveChildren: false },
137
+ profile: { description: "User profile management", category: "auth", frontendOnly: true, canHaveChildren: false },
138
+ // ===== layout =====
139
+ container: { description: "Mantine Container with responsive max-width", category: "layout", frontendOnly: true, canHaveChildren: true },
140
+ box: { description: "Generic Mantine Box wrapper", category: "layout", frontendOnly: true, canHaveChildren: true },
141
+ flex: { description: "Mantine Flex layout", category: "layout", frontendOnly: true, canHaveChildren: true },
142
+ group: { description: "Mantine Group horizontal layout", category: "layout", frontendOnly: true, canHaveChildren: true },
143
+ stack: { description: "Mantine Stack vertical layout", category: "layout", frontendOnly: true, canHaveChildren: true },
144
+ "simple-grid": { description: "Mantine SimpleGrid", category: "layout", frontendOnly: true, canHaveChildren: true },
145
+ grid: { description: "Mantine Grid", category: "layout", frontendOnly: true, canHaveChildren: true },
146
+ "grid-column": { description: "Mantine Grid.Col", category: "layout", frontendOnly: true, canHaveChildren: true },
147
+ space: { description: "Mantine Space spacer", category: "layout", frontendOnly: true, canHaveChildren: false },
148
+ divider: { description: "Mantine Divider", category: "layout", frontendOnly: true, canHaveChildren: false },
149
+ paper: { description: "Mantine Paper surface", category: "layout", frontendOnly: true, canHaveChildren: true },
150
+ center: { description: "Mantine Center alignment", category: "layout", frontendOnly: true, canHaveChildren: true },
151
+ "scroll-area": { description: "Mantine ScrollArea", category: "layout", frontendOnly: true, canHaveChildren: true },
152
+ card: { description: "Mantine Card", category: "layout", frontendOnly: true, canHaveChildren: true },
153
+ "card-segment": { description: "Mantine Card.Section", category: "layout", frontendOnly: true, canHaveChildren: true },
154
+ "aspect-ratio": { description: "Mantine AspectRatio wrapper", category: "layout", frontendOnly: true, canHaveChildren: true },
155
+ "background-image": { description: "Mantine BackgroundImage", category: "layout", frontendOnly: true, canHaveChildren: true },
156
+ // ===== typography =====
157
+ title: { description: "Mantine Title", category: "typography", frontendOnly: true, canHaveChildren: false },
158
+ text: { description: "Mantine Text", category: "typography", frontendOnly: true, canHaveChildren: false },
159
+ code: { description: "Mantine Code (inline / block)", category: "typography", frontendOnly: true, canHaveChildren: false },
160
+ highlight: { description: "Mantine Highlight", category: "typography", frontendOnly: true, canHaveChildren: false },
161
+ blockquote: { description: "Mantine Blockquote", category: "typography", frontendOnly: true, canHaveChildren: false },
162
+ "html-tag": { description: "Generic HTML tag wrapper (web), maps to View on RN", category: "typography", frontendOnly: true, canHaveChildren: true },
163
+ kbd: { description: "Mantine Kbd", category: "typography", frontendOnly: true, canHaveChildren: false },
164
+ typography: { description: "Mantine Typography wrapper", category: "typography", frontendOnly: true, canHaveChildren: true },
165
+ fieldset: { description: "Mantine Fieldset", category: "typography", frontendOnly: true, canHaveChildren: true },
166
+ spoiler: { description: "Mantine Spoiler reveal", category: "typography", frontendOnly: true, canHaveChildren: true },
167
+ // ===== media =====
168
+ image: { description: "Mantine Image / RN Image", category: "media", frontendOnly: true, canHaveChildren: false },
169
+ video: { description: "HTML5 video / expo-video", category: "media", frontendOnly: true, canHaveChildren: false },
170
+ audio: { description: "HTML5 audio / expo-audio", category: "media", frontendOnly: true, canHaveChildren: false },
171
+ figure: { description: "Figure with caption", category: "media", frontendOnly: true, canHaveChildren: true },
172
+ carousel: { description: "Embla on web, reanimated-carousel on RN", category: "media", frontendOnly: true, canHaveChildren: true },
173
+ // ===== interactive =====
174
+ button: { description: "Mantine Button / HeroUI Button", category: "interactive", frontendOnly: true, canHaveChildren: false },
175
+ link: { description: "Anchor / Pressable navigation", category: "interactive", frontendOnly: true, canHaveChildren: false },
176
+ "action-icon": { description: "Mantine ActionIcon", category: "interactive", frontendOnly: true, canHaveChildren: false },
177
+ alert: { description: "Mantine Alert", category: "interactive", frontendOnly: true, canHaveChildren: true },
178
+ badge: { description: "Mantine Badge", category: "interactive", frontendOnly: true, canHaveChildren: false },
179
+ avatar: { description: "Mantine Avatar", category: "interactive", frontendOnly: true, canHaveChildren: false },
180
+ chip: { description: "Mantine Chip", category: "interactive", frontendOnly: true, canHaveChildren: false },
181
+ indicator: { description: "Mantine Indicator dot", category: "interactive", frontendOnly: true, canHaveChildren: true },
182
+ "theme-icon": { description: "Mantine ThemeIcon", category: "interactive", frontendOnly: true, canHaveChildren: false },
183
+ notification: { description: "Mantine Notification", category: "interactive", frontendOnly: true, canHaveChildren: false },
184
+ // ===== forms =====
185
+ "form-log": { description: "Append-only form (one row per submit)", category: "forms", frontendOnly: true, canHaveChildren: true },
186
+ "form-record": { description: "Per-user record form", category: "forms", frontendOnly: true, canHaveChildren: true },
187
+ input: { description: "Plain HTML input", category: "forms", frontendOnly: true, canHaveChildren: false },
188
+ "text-input": { description: "Mantine TextInput", category: "forms", frontendOnly: true, canHaveChildren: false },
189
+ textarea: { description: "Mantine Textarea", category: "forms", frontendOnly: true, canHaveChildren: false },
190
+ "rich-text-editor": { description: "Tiptap editor on web; READ-ONLY viewer on mobile v1", category: "forms", frontendOnly: true, canHaveChildren: false },
191
+ select: { description: "HTML select / Mantine Select", category: "forms", frontendOnly: true, canHaveChildren: false },
192
+ radio: { description: "Mantine Radio / RadioGroup", category: "forms", frontendOnly: true, canHaveChildren: false },
193
+ checkbox: { description: "Mantine Checkbox", category: "forms", frontendOnly: true, canHaveChildren: false },
194
+ slider: { description: "Mantine Slider", category: "forms", frontendOnly: true, canHaveChildren: false },
195
+ "range-slider": { description: "Mantine RangeSlider", category: "forms", frontendOnly: true, canHaveChildren: false },
196
+ datepicker: { description: "Mantine DatePicker", category: "forms", frontendOnly: true, canHaveChildren: false },
197
+ switch: { description: "Mantine Switch", category: "forms", frontendOnly: true, canHaveChildren: false },
198
+ combobox: { description: "Mantine Combobox", category: "forms", frontendOnly: true, canHaveChildren: false },
199
+ "color-input": { description: "Mantine ColorInput", category: "forms", frontendOnly: true, canHaveChildren: false },
200
+ "color-picker": { description: "Mantine ColorPicker", category: "forms", frontendOnly: true, canHaveChildren: false },
201
+ "file-input": { description: "Mantine FileInput / DocumentPicker on RN", category: "forms", frontendOnly: true, canHaveChildren: false },
202
+ "number-input": { description: "Mantine NumberInput", category: "forms", frontendOnly: true, canHaveChildren: false },
203
+ "segmented-control": { description: "Mantine SegmentedControl", category: "forms", frontendOnly: true, canHaveChildren: false },
204
+ rating: { description: "Mantine Rating", category: "forms", frontendOnly: true, canHaveChildren: false },
205
+ progress: { description: "Mantine Progress", category: "forms", frontendOnly: true, canHaveChildren: false },
206
+ "progress-root": { description: "Mantine Progress.Root", category: "forms", frontendOnly: true, canHaveChildren: true },
207
+ "progress-section": { description: "Mantine Progress.Section", category: "forms", frontendOnly: true, canHaveChildren: false },
208
+ // ===== composite =====
209
+ accordion: { description: "Mantine Accordion", category: "composite", frontendOnly: true, canHaveChildren: true },
210
+ "accordion-item": { description: "Mantine Accordion.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
211
+ tabs: { description: "Mantine Tabs", category: "composite", frontendOnly: true, canHaveChildren: true },
212
+ tab: { description: "Mantine Tabs.Tab + Tabs.Panel pair", category: "composite", frontendOnly: true, canHaveChildren: true },
213
+ timeline: { description: "Mantine Timeline", category: "composite", frontendOnly: true, canHaveChildren: true },
214
+ list: { description: "Mantine List", category: "composite", frontendOnly: true, canHaveChildren: true },
215
+ "list-item": { description: "Mantine List.Item", category: "composite", frontendOnly: true, canHaveChildren: true },
216
+ entryList: { description: "Data-driven list of entries (form-log table)", category: "composite", frontendOnly: true, canHaveChildren: true },
217
+ entryRecord: { description: "Single-record container", category: "composite", frontendOnly: true, canHaveChildren: true },
218
+ entryRecordDelete: { description: "Inline delete confirmation for an entry", category: "composite", frontendOnly: true, canHaveChildren: false },
219
+ loop: { description: "Loop / repeater over backend-provided rows", category: "composite", frontendOnly: true, canHaveChildren: true }
220
+ };
221
+
222
+ // src/registry/index.ts
223
+ function getRegistryEntry(name) {
224
+ return STYLE_REGISTRY[name];
225
+ }
226
+ function isKnownStyleName(name) {
227
+ return Object.prototype.hasOwnProperty.call(STYLE_REGISTRY, name);
228
+ }
229
+
230
+ // src/api/endpoints.ts
231
+ var API_VERSION_PREFIX = "/cms-api/v1";
232
+ var ENDPOINTS = {
233
+ AUTH: {
234
+ LOGIN: `${API_VERSION_PREFIX}/auth/login`,
235
+ TWO_FACTOR_VERIFY: `${API_VERSION_PREFIX}/auth/two-factor-verify`,
236
+ LOGOUT: `${API_VERSION_PREFIX}/auth/logout`,
237
+ REFRESH: `${API_VERSION_PREFIX}/auth/refresh-token`,
238
+ SET_LANGUAGE: `${API_VERSION_PREFIX}/auth/set-language`,
239
+ USER_DATA: `${API_VERSION_PREFIX}/auth/user-data`,
240
+ EVENTS: `${API_VERSION_PREFIX}/auth/events`
241
+ },
242
+ USER: {
243
+ UPDATE_USERNAME: `${API_VERSION_PREFIX}/auth/user/username`,
244
+ UPDATE_NAME: `${API_VERSION_PREFIX}/auth/user/name`,
245
+ UPDATE_PASSWORD: `${API_VERSION_PREFIX}/auth/user/password`,
246
+ UPDATE_TIMEZONE: `${API_VERSION_PREFIX}/auth/user/timezone`,
247
+ DELETE_ACCOUNT: `${API_VERSION_PREFIX}/auth/user/account`,
248
+ VALIDATE_TOKEN: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}`,
249
+ COMPLETE_VALIDATION: (userId, token) => `${API_VERSION_PREFIX}/validate/${userId}/${token}/complete`
250
+ },
251
+ PAGES: {
252
+ LIST: `${API_VERSION_PREFIX}/pages`,
253
+ LIST_WITH_LANGUAGE: (languageId) => `${API_VERSION_PREFIX}/pages/language/${languageId}`,
254
+ BY_KEYWORD: (keyword) => `${API_VERSION_PREFIX}/pages/by-keyword/${encodeURIComponent(keyword)}`,
255
+ BY_ID: (pageId) => `${API_VERSION_PREFIX}/pages/${pageId}`
256
+ },
257
+ LANGUAGES: `${API_VERSION_PREFIX}/languages`,
258
+ FORMS: {
259
+ SUBMIT: `${API_VERSION_PREFIX}/forms/submit`,
260
+ UPDATE: `${API_VERSION_PREFIX}/forms/update`,
261
+ DELETE: `${API_VERSION_PREFIX}/forms/delete`
262
+ }
263
+ };
264
+ var HEADER_CLIENT_TYPE = "X-Client-Type";
265
+ var CLIENT_TYPE_WEB = "web";
266
+ var CLIENT_TYPE_MOBILE = "mobile";
267
+ var CLIENT_TYPE_MOBILE_AND_WEB = "mobile_and_web";
268
+
269
+ // src/theme/tokens.ts
270
+ var FONT_SIZE_PX = {
271
+ xs: 12,
272
+ sm: 14,
273
+ md: 16,
274
+ lg: 18,
275
+ xl: 20
276
+ };
277
+ var LINE_HEIGHT = {
278
+ xs: 1.4,
279
+ sm: 1.45,
280
+ md: 1.55,
281
+ lg: 1.6,
282
+ xl: 1.65
283
+ };
284
+ var SPACING_PX = {
285
+ none: 0,
286
+ xs: 10,
287
+ sm: 12,
288
+ md: 16,
289
+ lg: 20,
290
+ xl: 32
291
+ };
292
+ var SPACING_TO_TAILWIND = {
293
+ none: "0",
294
+ xs: "2.5",
295
+ sm: "3",
296
+ md: "4",
297
+ lg: "5",
298
+ xl: "8"
299
+ };
300
+ var RADIUS_PX = {
301
+ xs: 2,
302
+ sm: 4,
303
+ md: 8,
304
+ lg: 16,
305
+ xl: 32
306
+ };
307
+ var CONTAINER_SIZE_PX = {
308
+ xs: 540,
309
+ sm: 720,
310
+ md: 960,
311
+ lg: 1140,
312
+ xl: 1320
313
+ };
314
+ var COLOR_PALETTE = {
315
+ gray: "#868e96",
316
+ red: "#fa5252",
317
+ pink: "#e64980",
318
+ grape: "#be4bdb",
319
+ violet: "#7950f2",
320
+ indigo: "#4c6ef5",
321
+ blue: "#228be6",
322
+ cyan: "#15aabf",
323
+ teal: "#12b886",
324
+ green: "#40c057",
325
+ lime: "#82c91e",
326
+ yellow: "#fab005",
327
+ orange: "#fd7e14",
328
+ dark: "#212529"
329
+ };
330
+ var COLOR_SCALES = {
331
+ gray: ["#f8f9fa", "#f1f3f5", "#e9ecef", "#dee2e6", "#ced4da", "#adb5bd", "#868e96", "#495057", "#343a40", "#212529"],
332
+ red: ["#fff5f5", "#ffe3e3", "#ffc9c9", "#ffa8a8", "#ff8787", "#ff6b6b", "#fa5252", "#f03e3e", "#e03131", "#c92a2a"],
333
+ pink: ["#fff0f6", "#ffdeeb", "#fcc2d7", "#faa2c1", "#f783ac", "#f06595", "#e64980", "#d6336c", "#c2255c", "#a61e4d"],
334
+ grape: ["#f8f0fc", "#f3d9fa", "#eebefa", "#e599f7", "#da77f2", "#cc5de8", "#be4bdb", "#ae3ec9", "#9c36b5", "#862e9c"],
335
+ violet: ["#f3f0ff", "#e5dbff", "#d0bfff", "#b197fc", "#9775fa", "#845ef7", "#7950f2", "#7048e8", "#6741d9", "#5f3dc4"],
336
+ indigo: ["#edf2ff", "#dbe4ff", "#bac8ff", "#91a7ff", "#748ffc", "#5c7cfa", "#4c6ef5", "#4263eb", "#3b5bdb", "#364fc7"],
337
+ blue: ["#e7f5ff", "#d0ebff", "#a5d8ff", "#74c0fc", "#4dabf7", "#339af0", "#228be6", "#1c7ed6", "#1971c2", "#1864ab"],
338
+ cyan: ["#e3fafc", "#c5f6fa", "#99e9f2", "#66d9e8", "#3bc9db", "#22b8cf", "#15aabf", "#1098ad", "#0c8599", "#0b7285"],
339
+ teal: ["#e6fcf5", "#c3fae8", "#96f2d7", "#63e6be", "#38d9a9", "#20c997", "#12b886", "#0ca678", "#099268", "#087f5b"],
340
+ green: ["#ebfbee", "#d3f9d8", "#b2f2bb", "#8ce99a", "#69db7c", "#51cf66", "#40c057", "#37b24d", "#2f9e44", "#2b8a3e"],
341
+ lime: ["#f4fce3", "#e9fac8", "#d8f5a2", "#c0eb75", "#a9e34b", "#94d82d", "#82c91e", "#74b816", "#66a80f", "#5c940d"],
342
+ yellow: ["#fff9db", "#fff3bf", "#ffec99", "#ffe066", "#ffd43b", "#fcc419", "#fab005", "#f59f00", "#f08c00", "#e67700"],
343
+ orange: ["#fff4e6", "#ffe8cc", "#ffd8a8", "#ffc078", "#ffa94d", "#ff922b", "#fd7e14", "#f76707", "#e8590c", "#d9480f"],
344
+ dark: ["#c1c2c5", "#a6a7ab", "#909296", "#5c5f66", "#373a40", "#2c2e33", "#25262b", "#1a1b1e", "#141517", "#101113"]
345
+ };
346
+ function spacingToPx(token) {
347
+ if (!token || token === "none") return void 0;
348
+ if (token in SPACING_PX) return SPACING_PX[token];
349
+ return token;
350
+ }
351
+ function sizeToFontPx(token) {
352
+ if (!token) return void 0;
353
+ if (token in FONT_SIZE_PX) return FONT_SIZE_PX[token];
354
+ return token;
355
+ }
356
+ function radiusToPx(token) {
357
+ if (!token) return void 0;
358
+ if (token in RADIUS_PX) return RADIUS_PX[token];
359
+ return token;
360
+ }
361
+ function colorToHex(name, shade = 6) {
362
+ if (!name) return void 0;
363
+ if (name.startsWith("#") || name.startsWith("rgb") || name.startsWith("hsl")) return name;
364
+ const scale = COLOR_SCALES[name];
365
+ if (!scale) return name;
366
+ return scale[Math.max(0, Math.min(9, shade))];
367
+ }
368
+
369
+ // src/theme/tailwind.ts
370
+ var px = (n) => n === void 0 ? "0px" : `${n}px`;
371
+ var colorScaleToTailwind = (scale) => {
372
+ const out = {};
373
+ scale.forEach((value, idx) => {
374
+ out[String(idx)] = value;
375
+ });
376
+ return out;
377
+ };
378
+ var colors = {};
379
+ for (const [name, scale] of Object.entries(COLOR_SCALES)) {
380
+ colors[name] = colorScaleToTailwind(scale);
381
+ }
382
+ var spacing = {
383
+ none: px(SPACING_PX.none),
384
+ xs: px(SPACING_PX.xs),
385
+ sm: px(SPACING_PX.sm),
386
+ md: px(SPACING_PX.md),
387
+ lg: px(SPACING_PX.lg),
388
+ xl: px(SPACING_PX.xl)
389
+ };
390
+ var borderRadius = {
391
+ xs: px(RADIUS_PX.xs),
392
+ sm: px(RADIUS_PX.sm),
393
+ md: px(RADIUS_PX.md),
394
+ lg: px(RADIUS_PX.lg),
395
+ xl: px(RADIUS_PX.xl)
396
+ };
397
+ var fontSize = {
398
+ xs: [px(FONT_SIZE_PX.xs), { lineHeight: String(LINE_HEIGHT.xs) }],
399
+ sm: [px(FONT_SIZE_PX.sm), { lineHeight: String(LINE_HEIGHT.sm) }],
400
+ md: [px(FONT_SIZE_PX.md), { lineHeight: String(LINE_HEIGHT.md) }],
401
+ lg: [px(FONT_SIZE_PX.lg), { lineHeight: String(LINE_HEIGHT.lg) }],
402
+ xl: [px(FONT_SIZE_PX.xl), { lineHeight: String(LINE_HEIGHT.xl) }]
403
+ };
404
+ var sharedTailwindExtend = {
405
+ colors,
406
+ spacing,
407
+ borderRadius,
408
+ fontSize
409
+ };
410
+ var sharedTailwindPreset = {
411
+ theme: {
412
+ extend: sharedTailwindExtend
413
+ }
414
+ };
415
+
416
+ // src/interpolation/replaceCalcedValues.ts
417
+ var PLACEHOLDER_RE = /{{({{)?([^{}]+?)(}})?}}/g;
418
+ function replaceCalcedValues(input, values) {
419
+ if (input === null || input === void 0) return "";
420
+ return String(input).replace(PLACEHOLDER_RE, (full, _open, key) => {
421
+ const trimmed = String(key).trim();
422
+ const value = values[trimmed];
423
+ if (value === void 0 || value === null) return full;
424
+ return String(value);
425
+ });
426
+ }
427
+
428
+ // src/condition/evaluate.ts
429
+ var import_json_logic_js = __toESM(require("json-logic-js"));
430
+ function buildConditionContext(platform, extraVars = {}, now = /* @__PURE__ */ new Date()) {
431
+ const pad = (n) => String(n).padStart(2, "0");
432
+ const date = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;
433
+ const time = `${pad(now.getHours())}:${pad(now.getMinutes())}:${pad(now.getSeconds())}`;
434
+ return {
435
+ platform,
436
+ current_date: date,
437
+ current_time: time,
438
+ current_datetime: `${date} ${time}`,
439
+ ...extraVars
440
+ };
441
+ }
442
+ function evaluateCondition(condition, context, options = {}) {
443
+ const trimmed = (condition ?? "").toString().trim();
444
+ if (!trimmed) {
445
+ return options.withDebug ? { visible: true, debug: { condition: null, result: true, variables: { ...context } } } : { visible: true };
446
+ }
447
+ let parsed;
448
+ try {
449
+ parsed = JSON.parse(trimmed);
450
+ } catch (err) {
451
+ return options.withDebug ? {
452
+ visible: false,
453
+ debug: {
454
+ condition: trimmed,
455
+ result: false,
456
+ variables: { ...context },
457
+ error: `Invalid JSON: ${err.message}`
458
+ }
459
+ } : { visible: false };
460
+ }
461
+ try {
462
+ const raw = import_json_logic_js.default.apply(parsed, context);
463
+ const visible = Boolean(raw);
464
+ return options.withDebug ? { visible, debug: { condition: trimmed, result: visible, variables: { ...context } } } : { visible };
465
+ } catch (err) {
466
+ return options.withDebug ? {
467
+ visible: false,
468
+ debug: {
469
+ condition: trimmed,
470
+ result: false,
471
+ variables: { ...context },
472
+ error: err.message
473
+ }
474
+ } : { visible: false };
475
+ }
476
+ }
477
+
478
+ // src/cms-classes/allow-list.ts
479
+ var SPACING_VALUES = ["none", "xs", "sm", "md", "lg", "xl"];
480
+ var SIZE_VALUES = ["xs", "sm", "md", "lg", "xl"];
481
+ var COLOR_NAMES = [
482
+ "gray",
483
+ "red",
484
+ "pink",
485
+ "grape",
486
+ "violet",
487
+ "indigo",
488
+ "blue",
489
+ "cyan",
490
+ "teal",
491
+ "green",
492
+ "lime",
493
+ "yellow",
494
+ "orange",
495
+ "dark"
496
+ ];
497
+ var COLOR_SCALE_VALUES = COLOR_NAMES.flatMap((c) => Array.from({ length: 10 }, (_, i) => `${c}-${i}`));
498
+ var NUMERIC_1_12 = Array.from({ length: 12 }, (_, i) => String(i + 1));
499
+ var NUMERIC_0_12 = ["0", ...NUMERIC_1_12];
500
+ var CLASS_PATTERNS = [
501
+ // spacing
502
+ { prefix: "m-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
503
+ { prefix: "mt-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
504
+ { prefix: "mb-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
505
+ { prefix: "ms-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
506
+ { prefix: "me-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
507
+ { prefix: "ml-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
508
+ { prefix: "mr-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
509
+ { prefix: "mx-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
510
+ { prefix: "my-", values: [...SPACING_VALUES, ...NUMERIC_0_12, "auto"] },
511
+ { prefix: "p-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
512
+ { prefix: "pt-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
513
+ { prefix: "pb-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
514
+ { prefix: "ps-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
515
+ { prefix: "pe-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
516
+ { prefix: "pl-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
517
+ { prefix: "pr-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
518
+ { prefix: "px-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
519
+ { prefix: "py-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
520
+ { prefix: "gap-", values: [...SPACING_VALUES, ...NUMERIC_0_12] },
521
+ // sizing
522
+ { prefix: "w-", values: [...SIZE_VALUES, "full", "auto", "fit", "1/2", "1/3", "2/3", "1/4", "3/4"] },
523
+ { prefix: "h-", values: [...SIZE_VALUES, "full", "auto", "fit"] },
524
+ { prefix: "min-w-", values: ["0", "full", "fit"] },
525
+ { prefix: "min-h-", values: ["0", "full", "fit", "screen"] },
526
+ { prefix: "max-w-", values: [...SIZE_VALUES, "full", "fit", "screen", "none"] },
527
+ { prefix: "max-h-", values: [...SIZE_VALUES, "full", "screen", "none"] },
528
+ // typography
529
+ { prefix: "text-", values: [...SIZE_VALUES, "left", "center", "right", "justify", ...COLOR_SCALE_VALUES] },
530
+ { prefix: "font-", values: ["thin", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"] },
531
+ { prefix: "leading-", values: ["none", "tight", "snug", "normal", "relaxed", "loose"] },
532
+ { prefix: "tracking-", values: ["tighter", "tight", "normal", "wide", "wider", "widest"] },
533
+ // background
534
+ { prefix: "bg-", values: ["transparent", "white", "black", ...COLOR_SCALE_VALUES] },
535
+ // border
536
+ { prefix: "border-", values: ["0", "1", "2", "4", ...COLOR_SCALE_VALUES] },
537
+ { prefix: "rounded-", values: ["none", ...SIZE_VALUES, "full"] },
538
+ // flex
539
+ { prefix: "flex-", values: ["1", "auto", "initial", "none", "row", "col", "row-reverse", "col-reverse", "wrap", "nowrap"] },
540
+ { prefix: "items-", values: ["start", "end", "center", "baseline", "stretch"] },
541
+ { prefix: "justify-", values: ["start", "end", "center", "between", "around", "evenly"] },
542
+ { prefix: "self-", values: ["auto", "start", "end", "center", "stretch", "baseline"] },
543
+ // grid
544
+ { prefix: "col-span-", values: NUMERIC_1_12 },
545
+ { prefix: "row-span-", values: NUMERIC_1_12 },
546
+ // opacity
547
+ { prefix: "opacity-", values: ["0", "25", "50", "75", "100"] },
548
+ // z-index
549
+ { prefix: "z-", values: ["0", "10", "20", "30", "40", "50", "auto"] }
550
+ ];
551
+ var LITERAL_CLASSES = /* @__PURE__ */ new Set([
552
+ "flex",
553
+ "inline-flex",
554
+ "block",
555
+ "inline-block",
556
+ "inline",
557
+ "hidden",
558
+ "absolute",
559
+ "relative",
560
+ "sticky",
561
+ "fixed",
562
+ "overflow-hidden",
563
+ "overflow-visible",
564
+ "overflow-scroll",
565
+ "overflow-auto",
566
+ "overflow-x-hidden",
567
+ "overflow-y-hidden",
568
+ "overflow-x-auto",
569
+ "overflow-y-auto",
570
+ "rounded",
571
+ "border",
572
+ "shadow",
573
+ "shadow-sm",
574
+ "shadow-md",
575
+ "shadow-lg",
576
+ "shadow-xl",
577
+ "italic",
578
+ "underline",
579
+ "line-through",
580
+ "no-underline",
581
+ "uppercase",
582
+ "lowercase",
583
+ "capitalize",
584
+ "normal-case",
585
+ "truncate",
586
+ "whitespace-nowrap",
587
+ "whitespace-pre",
588
+ "whitespace-pre-wrap",
589
+ "pointer-events-none",
590
+ "pointer-events-auto",
591
+ "select-none",
592
+ "select-text",
593
+ "opacity-50",
594
+ "cursor-pointer",
595
+ "cursor-default",
596
+ "cursor-not-allowed"
597
+ ]);
598
+
599
+ // src/cms-classes/remap.ts
600
+ var CLASS_REMAP = [
601
+ // hover/focus on mobile only fires for keyboard nav; safe to drop.
602
+ { from: "hover:bg-gray-100", to: null, reason: "hover not applicable on mobile" },
603
+ { from: "hover:underline", to: null, reason: "hover not applicable on mobile" },
604
+ // cursor classes are no-ops on RN.
605
+ { from: "cursor-pointer", to: null, reason: "no cursor on RN" },
606
+ { from: "cursor-default", to: null, reason: "no cursor on RN" },
607
+ { from: "cursor-not-allowed", to: null, reason: "no cursor on RN" },
608
+ // select-text behaves slightly differently on RN; keep but as a soft no-op.
609
+ { from: "select-text", to: null, reason: "unsupported on RN" },
610
+ // legacy aliases
611
+ { from: "mantine-fw", to: "w-full" },
612
+ { from: "mantine-h-full", to: "h-full" }
613
+ ];
614
+ var REMAP_MAP = new Map(CLASS_REMAP.map((r) => [r.from, r]));
615
+ function findRemap(className) {
616
+ return REMAP_MAP.get(className);
617
+ }
618
+
619
+ // src/cms-classes/classify.ts
620
+ function matchesPattern(className) {
621
+ for (const pattern of CLASS_PATTERNS) {
622
+ if (!className.startsWith(pattern.prefix)) continue;
623
+ const tail = className.slice(pattern.prefix.length);
624
+ if (pattern.values.includes(tail)) return true;
625
+ }
626
+ return false;
627
+ }
628
+ function classifyClass(rawClass) {
629
+ const className = rawClass.trim();
630
+ if (!className) return { kind: "drop", className, reason: "empty class" };
631
+ const remap = findRemap(className);
632
+ if (remap) {
633
+ if (remap.to === null) {
634
+ return { kind: "drop", className, reason: remap.reason };
635
+ }
636
+ return { kind: "remap", from: className, to: remap.to, reason: remap.reason };
637
+ }
638
+ if (className.includes("[") && className.endsWith("]")) {
639
+ return { kind: "allow", className };
640
+ }
641
+ if (LITERAL_CLASSES.has(className)) {
642
+ return { kind: "allow", className };
643
+ }
644
+ if (matchesPattern(className)) {
645
+ return { kind: "allow", className };
646
+ }
647
+ return { kind: "drop", className, reason: "not in mobile allow-list" };
648
+ }
649
+ function classifyClassString(raw, onWarn) {
650
+ if (!raw) return [];
651
+ const out = [];
652
+ for (const cls of raw.split(/\s+/)) {
653
+ if (!cls) continue;
654
+ const decision = classifyClass(cls);
655
+ switch (decision.kind) {
656
+ case "allow":
657
+ out.push(decision.className);
658
+ break;
659
+ case "remap":
660
+ out.push(decision.to);
661
+ if (onWarn) onWarn(decision);
662
+ break;
663
+ case "drop":
664
+ if (onWarn) onWarn(decision);
665
+ break;
666
+ }
667
+ }
668
+ return out;
669
+ }
670
+
671
+ // src/assets/resolveAssetUrl.ts
672
+ var ABSOLUTE_RE = /^(?:[a-z][a-z0-9+\-.]*:)?\/\//i;
673
+ var DATA_OR_BLOB_RE = /^(?:data|blob|file):/i;
674
+ function resolveAssetUrl(url, baseUrl) {
675
+ if (!url) return "";
676
+ if (ABSOLUTE_RE.test(url) || DATA_OR_BLOB_RE.test(url)) return url;
677
+ const base = baseUrl.replace(/\/+$/, "");
678
+ const path = url.startsWith("/") ? url : `/${url}`;
679
+ return `${base}${path}`;
680
+ }
681
+ function resolveAssetSources(sources, baseUrl) {
682
+ if (!sources) return [];
683
+ return sources.map((s) => ({ ...s, src: resolveAssetUrl(s.src, baseUrl) }));
684
+ }
685
+
686
+ // src/utils/spacing.ts
687
+ var ALLOWED_KEYS = ["mt", "mb", "ms", "me", "pt", "pb", "ps", "pe"];
688
+ function parseSpacing(raw) {
689
+ if (!raw) return {};
690
+ let parsed;
691
+ try {
692
+ parsed = JSON.parse(raw);
693
+ } catch {
694
+ return {};
695
+ }
696
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
697
+ const result = {};
698
+ const obj = parsed;
699
+ for (const key of ALLOWED_KEYS) {
700
+ const value = obj[key];
701
+ if (value === void 0 || value === null || value === "") continue;
702
+ result[key] = String(value);
703
+ }
704
+ return result;
705
+ }
706
+ function spacingToClasses(spacing2, spacingToTailwind) {
707
+ const classes = [];
708
+ for (const [key, raw] of Object.entries(spacing2)) {
709
+ if (!raw) continue;
710
+ const tail = spacingToTailwind[raw] ?? raw;
711
+ classes.push(`${key}-${tail}`);
712
+ }
713
+ return classes;
714
+ }
715
+
716
+ // src/utils/transformPageData.ts
717
+ function toBool(value) {
718
+ if (value === null || value === void 0) return false;
719
+ if (typeof value === "boolean") return value;
720
+ if (typeof value === "number") return value === 1;
721
+ if (typeof value === "string") return value === "1" || value === "true";
722
+ return false;
723
+ }
724
+ function transformPageData(apiPage) {
725
+ const id = apiPage.id ?? apiPage.id_pages ?? 0;
726
+ return {
727
+ id,
728
+ keyword: apiPage.keyword ?? "",
729
+ url: apiPage.url ?? null,
730
+ parent_page_id: apiPage.parent_page_id ?? apiPage.parent ?? null,
731
+ is_headless: toBool(apiPage.is_headless),
732
+ navPosition: apiPage.navPosition !== void 0 ? apiPage.navPosition : apiPage.nav_position ?? null,
733
+ footerPosition: apiPage.footerPosition !== void 0 ? apiPage.footerPosition : apiPage.footer_position ?? null,
734
+ is_system: apiPage.is_system !== void 0 ? toBool(apiPage.is_system) : void 0,
735
+ title: apiPage.title ?? null,
736
+ description: apiPage.description ?? null,
737
+ children: apiPage.children?.map(transformPageData) ?? [],
738
+ id_users: apiPage.id_users,
739
+ id_pages: apiPage.id_pages ?? id,
740
+ acl_select: apiPage.acl_select,
741
+ acl_insert: apiPage.acl_insert,
742
+ acl_update: apiPage.acl_update,
743
+ acl_delete: apiPage.acl_delete,
744
+ id_type: apiPage.id_type,
745
+ id_pageAccessTypes: apiPage.id_pageAccessTypes
746
+ };
747
+ }
748
+ function transformPagesData(pages) {
749
+ if (!pages) return [];
750
+ return pages.map(transformPageData);
751
+ }
752
+ // Annotate the CommonJS export names for ESM import in node:
753
+ 0 && (module.exports = {
754
+ API_VERSION_PREFIX,
755
+ CLASS_PATTERNS,
756
+ CLASS_REMAP,
757
+ CLIENT_TYPE_MOBILE,
758
+ CLIENT_TYPE_MOBILE_AND_WEB,
759
+ CLIENT_TYPE_WEB,
760
+ COLOR_NAMES,
761
+ COLOR_PALETTE,
762
+ COLOR_SCALES,
763
+ CONTAINER_SIZE_PX,
764
+ ENDPOINTS,
765
+ FONT_SIZE_PX,
766
+ HEADER_CLIENT_TYPE,
767
+ LINE_HEIGHT,
768
+ LITERAL_CLASSES,
769
+ PERMISSIONS,
770
+ RADIUS_PX,
771
+ SIZE_VALUES,
772
+ SPACING_PX,
773
+ SPACING_TO_TAILWIND,
774
+ SPACING_VALUES,
775
+ STYLE_REGISTRY,
776
+ buildConditionContext,
777
+ classifyClass,
778
+ classifyClassString,
779
+ colorToHex,
780
+ evaluateCondition,
781
+ findRemap,
782
+ getRegistryEntry,
783
+ isKnownStyleName,
784
+ parseSpacing,
785
+ radiusToPx,
786
+ replaceCalcedValues,
787
+ resolveAssetSources,
788
+ resolveAssetUrl,
789
+ sharedTailwindExtend,
790
+ sharedTailwindPreset,
791
+ sizeToFontPx,
792
+ spacingToClasses,
793
+ spacingToPx,
794
+ transformPageData,
795
+ transformPagesData
796
+ });