@myissue/vue-website-page-builder 3.5.13 → 3.5.15
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/dist/index.d.ts +1384 -11
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +2464 -2443
- package/dist/vue-website-page-builder.umd.cjs +58 -54
- package/package.json +6 -9
- package/dist/App.vue.d.ts +0 -2
- package/dist/Components/ComponentThumbnail.vue.d.ts +0 -19
- package/dist/Components/Homepage/Footer.vue.d.ts +0 -2
- package/dist/Components/Icons/LayersIcon.vue.d.ts +0 -7
- package/dist/Components/Icons/SliderIcon.vue.d.ts +0 -7
- package/dist/Components/Inputs/ToggleInput.vue.d.ts +0 -9
- package/dist/Components/Loaders/ElementLoader.vue.d.ts +0 -2
- package/dist/Components/Loaders/GlobalLoader.vue.d.ts +0 -2
- package/dist/Components/Modals/BuilderComponents.vue.d.ts +0 -42
- package/dist/Components/Modals/DynamicModalBuilder.vue.d.ts +0 -142
- package/dist/Components/Modals/MediaLibraryModal.vue.d.ts +0 -58
- package/dist/Components/Modals/ModalBuilder.vue.d.ts +0 -73
- package/dist/Components/Overlays/FloatingSidePanel.vue.d.ts +0 -61
- package/dist/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue.d.ts +0 -12
- package/dist/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Borders.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue.d.ts +0 -8
- package/dist/Components/PageBuilder/EditorMenu/Editables/HTMLEditor.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ImageSettingsModal.vue.d.ts +0 -5
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/MarginControl.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/PaddingControl.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue.d.ts +0 -12
- package/dist/Components/PageBuilder/EditorMenu/Editables/ThemeColorPresetManager.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Typography.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/TypographyForTipTap.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/EditorMenu/EditorAccordion.vue.d.ts +0 -14
- package/dist/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue.d.ts +0 -6
- package/dist/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue.d.ts +0 -14
- package/dist/Components/PageBuilder/Settings/PageBuilderSettings.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/ToolbarOption/ToolbarOption.vue.d.ts +0 -2
- package/dist/Components/PageBuilder/UndoRedo/UndoRedo.vue.d.ts +0 -6
- package/dist/Components/TipTap/TipTapInput.vue.d.ts +0 -2
- package/dist/PageBuilder/PageBuilder.vue.d.ts +0 -47
- package/dist/PageBuilder/Preview.vue.d.ts +0 -12
- package/dist/composables/builderInstance.d.ts +0 -20
- package/dist/composables/delay.d.ts +0 -1
- package/dist/composables/extractCleanHTMLFromPageBuilder.d.ts +0 -2
- package/dist/composables/preloadImage.d.ts +0 -1
- package/dist/composables/useDebounce.d.ts +0 -1
- package/dist/composables/usePageBuilderModal.d.ts +0 -4
- package/dist/composables/useThemeColorPresets.d.ts +0 -47
- package/dist/composables/useTranslations.d.ts +0 -12
- package/dist/helpers/isEmptyObject.d.ts +0 -1
- package/dist/main.d.ts +0 -0
- package/dist/plugin.d.ts +0 -4
- package/dist/services/LocalStorageManager.d.ts +0 -7
- package/dist/services/PageBuilderService.d.ts +0 -698
- package/dist/sitemap.xml +0 -8
- package/dist/stores/page-builder-state.d.ts +0 -369
- package/dist/stores/shared-store.d.ts +0 -4
- package/dist/tests/DefaultComponents/DefaultBuilderComponents.vue.d.ts +0 -14
- package/dist/tests/DefaultComponents/DefaultMediaLibraryComponent.vue.d.ts +0 -2
- package/dist/tests/PageBuilderTest.vue.d.ts +0 -2
- package/dist/tests/TestComponents/DemoMediaLibraryComponentTest.vue.d.ts +0 -2
- package/dist/tests/TestComponents/DemoUnsplash.vue.d.ts +0 -2
- package/dist/tests/composables/useThemeColorPresets.test.d.ts +0 -16
- package/dist/tests/config/config.test.d.ts +0 -1
- package/dist/tests/service/componentValidation.test.d.ts +0 -1
- package/dist/tests/service/globalPageSettings.test.d.ts +0 -1
- package/dist/tests/service/htmlUtils.test.d.ts +0 -1
- package/dist/tests/service/localStorage.test.d.ts +0 -1
- package/dist/tests/service/pageBuilderService.test.d.ts +0 -1
- package/dist/tests/ui/modalStacking.test.d.ts +0 -1
- package/dist/types/index.d.ts +0 -312
- package/dist/utils/builder/font-family-map.d.ts +0 -22
- package/dist/utils/builder/html-doc-declaration-with-components.d.ts +0 -2
- package/dist/utils/builder/tailwaind-colors.d.ts +0 -6
- package/dist/utils/builder/tailwind-border-radius.d.ts +0 -9
- package/dist/utils/builder/tailwind-border-style-width-color.d.ts +0 -7
- package/dist/utils/builder/tailwind-font-sizes.d.ts +0 -8
- package/dist/utils/builder/tailwind-font-styles.d.ts +0 -7
- package/dist/utils/builder/tailwind-image.d.ts +0 -7
- package/dist/utils/builder/tailwind-opacities.d.ts +0 -6
- package/dist/utils/builder/tailwind-padding-margin.d.ts +0 -16
- package/dist/utils/html-elements/component.d.ts +0 -13
- package/dist/utils/html-elements/componentHelpers.d.ts +0 -10
- package/dist/utils/html-elements/themes.d.ts +0 -13
package/dist/types/index.d.ts
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { PageBuilderService } from '../services/PageBuilderService';
|
|
2
|
-
export interface PageBuilderState {
|
|
3
|
-
PageBuilderService: PageBuilderService | null;
|
|
4
|
-
isSaving: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface SEOCheck {
|
|
7
|
-
check: string;
|
|
8
|
-
passed: boolean;
|
|
9
|
-
details: string;
|
|
10
|
-
category: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SEOSummary {
|
|
13
|
-
score: number;
|
|
14
|
-
checks: SEOCheck[];
|
|
15
|
-
}
|
|
16
|
-
export interface ComponentObject {
|
|
17
|
-
id: string | number | null;
|
|
18
|
-
html_code: string;
|
|
19
|
-
title: string;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
export interface ImageObject {
|
|
23
|
-
src: string;
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
}
|
|
26
|
-
export interface BuilderResourceComponent {
|
|
27
|
-
html_code: string;
|
|
28
|
-
title?: string;
|
|
29
|
-
[key: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
export type BuilderResourceData = BuilderResourceComponent[];
|
|
32
|
-
export type StartBuilderResult = {
|
|
33
|
-
error: true;
|
|
34
|
-
reason: string;
|
|
35
|
-
} | {
|
|
36
|
-
message: string;
|
|
37
|
-
validation?: {
|
|
38
|
-
error: true;
|
|
39
|
-
warning: string;
|
|
40
|
-
status: string;
|
|
41
|
-
} | {
|
|
42
|
-
error: true;
|
|
43
|
-
reason: string;
|
|
44
|
-
};
|
|
45
|
-
passedComponentsArray?: BuilderResourceData;
|
|
46
|
-
};
|
|
47
|
-
export interface PageBuilderStateStore {
|
|
48
|
-
getTextAreaVueModel: string | null;
|
|
49
|
-
LocalStorageItemName: string | null;
|
|
50
|
-
getHyberlinkEnable: boolean;
|
|
51
|
-
getComponents: ComponentObject[] | null;
|
|
52
|
-
getComponent: ComponentObject | null;
|
|
53
|
-
getElement: HTMLElement | null;
|
|
54
|
-
getNextSibling: HTMLElement | null;
|
|
55
|
-
getParentElement: HTMLElement | null;
|
|
56
|
-
getRestoredElement: string | null;
|
|
57
|
-
getComponentArrayAddMethod: string | null;
|
|
58
|
-
getFontBase: string | null;
|
|
59
|
-
getFontDesktop: string | null;
|
|
60
|
-
getFontTablet: string | null;
|
|
61
|
-
getFontMobile: string | null;
|
|
62
|
-
setElement: (element: HTMLElement | null) => void;
|
|
63
|
-
setMenuRight: (value: boolean) => void;
|
|
64
|
-
setComponent: (component: ComponentObject | null) => void;
|
|
65
|
-
setComponents: (components: ComponentObject[] | null) => void;
|
|
66
|
-
setComponentArrayAddMethod: (method: string) => void;
|
|
67
|
-
setCurrentClasses: (classes: string[] | ArrayLike<string>) => void;
|
|
68
|
-
setClass: (className: string) => void;
|
|
69
|
-
removeClass: (className: string) => void;
|
|
70
|
-
setParentElement: (element: HTMLElement | Node | null) => void;
|
|
71
|
-
setRestoredElement: (html: string | null) => void;
|
|
72
|
-
setNextSibling: (element: HTMLElement | Node | null) => void;
|
|
73
|
-
setTextAreaVueModel: (html: string | null) => void;
|
|
74
|
-
setFontBase: (size: string | null) => void;
|
|
75
|
-
setFontDesktop: (size: string | null) => void;
|
|
76
|
-
setFontTablet: (size: string | null) => void;
|
|
77
|
-
setFontMobile: (size: string | null) => void;
|
|
78
|
-
setBasePrimaryImage: (url: string | null) => void;
|
|
79
|
-
setCurrentLayoutPreview: (html: string) => void;
|
|
80
|
-
setHyperlinkError: (error: string | null) => void;
|
|
81
|
-
setHyperlinkMessage: (message: string | null) => void;
|
|
82
|
-
setElementContainsHyperlink: (contains: boolean) => void;
|
|
83
|
-
setHyberlinkEnable: (enable: boolean) => void;
|
|
84
|
-
setHyperlinkInput: (input: string) => void;
|
|
85
|
-
setOpenHyperlinkInNewTab: (newTab: boolean) => void;
|
|
86
|
-
setHyperlinkAbility: (ability: boolean) => void;
|
|
87
|
-
setPushComponents: (payload: SetPushComponentsPayload) => void;
|
|
88
|
-
setLocalStorageItemName: (name: string | null) => void;
|
|
89
|
-
setUpdateOrCreate: (mode: string) => void;
|
|
90
|
-
setFontWeight: (weight: string) => void;
|
|
91
|
-
setFontFamily: (family: string) => void;
|
|
92
|
-
setFontStyle: (style: string) => void;
|
|
93
|
-
setFontVerticalPadding: (padding: string) => void;
|
|
94
|
-
setFontHorizontalPadding: (padding: string) => void;
|
|
95
|
-
setFontTopPadding: (padding: string) => void;
|
|
96
|
-
setFontRightPadding: (padding: string) => void;
|
|
97
|
-
setFontBottomPadding: (padding: string) => void;
|
|
98
|
-
setFontLeftPadding: (padding: string) => void;
|
|
99
|
-
setFontVerticalMargin: (margin: string) => void;
|
|
100
|
-
setFontHorizontalMargin: (margin: string) => void;
|
|
101
|
-
setFontTopMargin: (margin: string) => void;
|
|
102
|
-
setFontRightMargin: (margin: string) => void;
|
|
103
|
-
setFontBottomMargin: (margin: string) => void;
|
|
104
|
-
setFontLeftMargin: (margin: string) => void;
|
|
105
|
-
setBorderStyle: (style: string) => void;
|
|
106
|
-
setBorderWidth: (width: string) => void;
|
|
107
|
-
setBorderColor: (color: string) => void;
|
|
108
|
-
setBorderRadiusGlobal: (radius: string) => void;
|
|
109
|
-
setBorderRadiusTopLeft: (radius: string) => void;
|
|
110
|
-
setBorderRadiusTopRight: (radius: string) => void;
|
|
111
|
-
setBorderRadiusBottomleft: (radius: string) => void;
|
|
112
|
-
setBorderRadiusBottomRight: (radius: string) => void;
|
|
113
|
-
setBackgroundColor: (color: string) => void;
|
|
114
|
-
setTextColor: (color: string) => void;
|
|
115
|
-
setBackgroundOpacity: (opacity: string) => void;
|
|
116
|
-
setOpacity: (opacity: string) => void;
|
|
117
|
-
getApplyImageToSelection: ImageObject | null;
|
|
118
|
-
setCurrentImage: (image: ImageObject) => void;
|
|
119
|
-
getCurrentPreviewImage: string | null;
|
|
120
|
-
setCurrentPreviewImage: (url: string | null) => void;
|
|
121
|
-
[key: string]: unknown;
|
|
122
|
-
}
|
|
123
|
-
export type FormName = 'post' | 'article' | 'blog' | 'news' | 'page' | 'faq' | 'testimonial' | 'case-study' | 'press-release' | 'product' | 'products' | 'category' | 'collection' | 'brand' | 'coupon' | 'discount' | 'shop' | 'cart' | 'checkout' | 'profile' | 'account' | 'team' | 'team-member' | 'author' | 'customer' | 'user' | 'service' | 'services' | 'package' | 'plan' | 'pricing' | 'subscription' | 'job' | 'job-listing' | 'career' | 'applicant' | 'event' | 'events' | 'webinar' | 'appointment' | 'reservation' | 'schedule' | 'listing' | 'directory' | 'location' | 'vendor' | 'company' | 'gallery' | 'image' | 'video' | 'media' | 'audio' | 'file' | 'contact' | 'support' | 'ticket' | 'feedback' | 'review' | 'inquiry' | 'report' | 'setting' | 'configuration' | 'integration' | 'theme' | 'language' | 'menu' | 'navigation' | 'tag' | 'meta';
|
|
124
|
-
export interface User {
|
|
125
|
-
name: string;
|
|
126
|
-
}
|
|
127
|
-
export interface PageBuilderUser {
|
|
128
|
-
/**
|
|
129
|
-
* Optional stable user identifier.
|
|
130
|
-
* When provided, theme color presets are stored under a user-scoped localStorage
|
|
131
|
-
* key (`vueWebsitePageBuilderThemeColorPresets-u{id}`) so every user keeps their
|
|
132
|
-
* own personalized presets on the same device. Accepts any string or number that
|
|
133
|
-
* uniquely identifies the user in the host application (e.g. a database row id).
|
|
134
|
-
* Also accepts `null` for cases where the DB returns a nullable id column.
|
|
135
|
-
*/
|
|
136
|
-
id?: string | number | null;
|
|
137
|
-
/**
|
|
138
|
-
* Display name shown in the builder toolbar.
|
|
139
|
-
* Optional so consumers can omit it or pass auth-user objects where the name
|
|
140
|
-
* field may be `username`, `displayName`, etc. — just pick the right field.
|
|
141
|
-
*/
|
|
142
|
-
name?: string;
|
|
143
|
-
image?: string;
|
|
144
|
-
}
|
|
145
|
-
export interface PageSettings {
|
|
146
|
-
classes?: string;
|
|
147
|
-
style?: string | Record<string, string>;
|
|
148
|
-
[key: string]: unknown;
|
|
149
|
-
}
|
|
150
|
-
export type ThemeColorPresetId = 'primary' | 'secondary' | 'custom1' | 'custom2' | 'custom3' | 'custom4' | 'custom5' | 'custom6';
|
|
151
|
-
export interface ThemeColorPreset {
|
|
152
|
-
id: ThemeColorPresetId;
|
|
153
|
-
label: string;
|
|
154
|
-
color: string;
|
|
155
|
-
enabled: boolean;
|
|
156
|
-
}
|
|
157
|
-
/** Flexible input for consumer configs — id accepts any string (e.g. inferred from variables). */
|
|
158
|
-
export interface ThemeColorPresetInput {
|
|
159
|
-
id: ThemeColorPresetId | (string & {});
|
|
160
|
-
label?: string;
|
|
161
|
-
color?: string;
|
|
162
|
-
enabled?: boolean;
|
|
163
|
-
[key: string]: unknown;
|
|
164
|
-
}
|
|
165
|
-
/** Input shape for themeColorPresets in PageBuilderConfig (partial colors are normalized at runtime). */
|
|
166
|
-
export interface ThemeColorPresetSettingsInput {
|
|
167
|
-
enabled?: boolean;
|
|
168
|
-
colors?: ReadonlyArray<ThemeColorPresetInput>;
|
|
169
|
-
[key: string]: unknown;
|
|
170
|
-
}
|
|
171
|
-
export interface ThemeColorPresetSettings {
|
|
172
|
-
enabled: boolean;
|
|
173
|
-
colors: readonly ThemeColorPreset[];
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Per-element font overrides for the builder canvas.
|
|
177
|
-
* Each value is a font key name or comma-separated list (e.g. `'jost'` or
|
|
178
|
-
* `'jost, raleway, arial'`). The first recognised font name is applied;
|
|
179
|
-
* unrecognised names are silently skipped.
|
|
180
|
-
*/
|
|
181
|
-
export interface PageBuilderElementFonts {
|
|
182
|
-
h1?: string;
|
|
183
|
-
h2?: string;
|
|
184
|
-
h3?: string;
|
|
185
|
-
h4?: string;
|
|
186
|
-
h5?: string;
|
|
187
|
-
h6?: string;
|
|
188
|
-
p?: string;
|
|
189
|
-
}
|
|
190
|
-
export interface PageBuilderConfig {
|
|
191
|
-
updateOrCreate: {
|
|
192
|
-
/**
|
|
193
|
-
* Whether the builder is creating new content or updating existing content.
|
|
194
|
-
* Accepts `'create'`, `'update'`, or any other string for dynamic / computed values.
|
|
195
|
-
* The union with `(string & {})` preserves autocomplete for the two common values
|
|
196
|
-
* while allowing any string without requiring `as const` or explicit casting.
|
|
197
|
-
*
|
|
198
|
-
* @example
|
|
199
|
-
* // Dynamic value — works without `as const`
|
|
200
|
-
* formType: hasContent ? 'update' : 'create'
|
|
201
|
-
*/
|
|
202
|
-
formType: 'create' | 'update' | (string & {});
|
|
203
|
-
formName: FormName | (string & {});
|
|
204
|
-
[key: string]: unknown;
|
|
205
|
-
};
|
|
206
|
-
pageBuilderLogo?: {
|
|
207
|
-
src: string;
|
|
208
|
-
[key: string]: unknown;
|
|
209
|
-
} | null;
|
|
210
|
-
resourceData?: {
|
|
211
|
-
/**
|
|
212
|
-
* Optional page/resource title shown in the builder toolbar.
|
|
213
|
-
* Made optional so consumers can pass a resource object without a title
|
|
214
|
-
* or when the title isn't known yet at the time `startBuilder` is called.
|
|
215
|
-
*/
|
|
216
|
-
title?: string;
|
|
217
|
-
/**
|
|
218
|
-
* Accepts both numeric IDs and string-based IDs (e.g. UUIDs).
|
|
219
|
-
* The service handles both types at runtime when building localStorage keys.
|
|
220
|
-
*/
|
|
221
|
-
id?: number | string;
|
|
222
|
-
[key: string]: unknown;
|
|
223
|
-
} | null;
|
|
224
|
-
userForPageBuilder?: PageBuilderUser;
|
|
225
|
-
[key: string]: unknown;
|
|
226
|
-
userSettings?: {
|
|
227
|
-
language?: {
|
|
228
|
-
default?: string;
|
|
229
|
-
enable?: readonly string[];
|
|
230
|
-
disableLanguageDropDown?: boolean;
|
|
231
|
-
};
|
|
232
|
-
autoSave?: boolean;
|
|
233
|
-
notifications?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Default canvas font and, optionally, the restricted set of fonts shown in
|
|
236
|
-
* the font-family picker.
|
|
237
|
-
*
|
|
238
|
-
* - Single value: `'jost'` — sets the canvas default; picker shows all fonts.
|
|
239
|
-
* - Comma-separated list: `'jost, raleway, arial'` — first entry is the
|
|
240
|
-
* canvas default; picker is restricted to the listed fonts.
|
|
241
|
-
*
|
|
242
|
-
* Unknown font names (not in the built-in list) are silently ignored.
|
|
243
|
-
*/
|
|
244
|
-
fontFamily?: string;
|
|
245
|
-
/**
|
|
246
|
-
* Per-element font overrides applied to the builder canvas.
|
|
247
|
-
* Each value follows the same format as `fontFamily` — a font key name or
|
|
248
|
-
* comma-separated list; the first recognised entry is used.
|
|
249
|
-
*
|
|
250
|
-
* Available font names: jost, raleway, palantino, arial, helvetica, georgia,
|
|
251
|
-
* times, times-new-roman, courier, courier-new, verdana, tahoma, trebuchet,
|
|
252
|
-
* garamond, bookman, comic-sans, impact, lucida, lucida-console, lucida-sans,
|
|
253
|
-
* candara, optima, avenir, futura, calibri, cambria, didot, franklin-gothic,
|
|
254
|
-
* rockwell, baskerville, sans, serif, mono
|
|
255
|
-
*/
|
|
256
|
-
elementFonts?: PageBuilderElementFonts;
|
|
257
|
-
} | null;
|
|
258
|
-
settings?: {
|
|
259
|
-
brandColor?: string;
|
|
260
|
-
themeColorPresets?: ThemeColorPresetSettingsInput | ThemeColorPresetSettings | null;
|
|
261
|
-
[key: string]: unknown;
|
|
262
|
-
} | null;
|
|
263
|
-
pageSettings?: PageSettings;
|
|
264
|
-
}
|
|
265
|
-
export interface TailwindColors {
|
|
266
|
-
backgroundColorVariables: string[];
|
|
267
|
-
textColorVariables: string[];
|
|
268
|
-
}
|
|
269
|
-
export interface TailwindOpacities {
|
|
270
|
-
opacities: string[];
|
|
271
|
-
backgroundOpacities: string[];
|
|
272
|
-
}
|
|
273
|
-
export interface TailwindFontSizes {
|
|
274
|
-
fontBase: string[];
|
|
275
|
-
fontDesktop: string[];
|
|
276
|
-
fontTablet: string[];
|
|
277
|
-
fontMobile: string[];
|
|
278
|
-
}
|
|
279
|
-
export interface TailwindFontStyles {
|
|
280
|
-
fontStyles: string[];
|
|
281
|
-
}
|
|
282
|
-
export interface TailwindPaddingAndMargin {
|
|
283
|
-
paddingAndMargin: string[];
|
|
284
|
-
}
|
|
285
|
-
export interface TailwindBorderRadius {
|
|
286
|
-
borderRadius: string[];
|
|
287
|
-
}
|
|
288
|
-
export interface TailwindBorderStyleWidthColor {
|
|
289
|
-
borderStyles: string[];
|
|
290
|
-
borderWidths: string[];
|
|
291
|
-
borderColors: string[];
|
|
292
|
-
}
|
|
293
|
-
export type TimerHandle = ReturnType<typeof setTimeout>;
|
|
294
|
-
export type MutationObserver = globalThis.MutationObserver;
|
|
295
|
-
export interface FetchedComponentsResponse {
|
|
296
|
-
components: ComponentObject[];
|
|
297
|
-
pagination?: {
|
|
298
|
-
current_page: number;
|
|
299
|
-
last_page: number;
|
|
300
|
-
per_page: number;
|
|
301
|
-
total: number;
|
|
302
|
-
};
|
|
303
|
-
[key: string]: unknown;
|
|
304
|
-
}
|
|
305
|
-
export interface SetPushComponentsPayload {
|
|
306
|
-
componentArrayAddMethod?: string;
|
|
307
|
-
component: ComponentObject;
|
|
308
|
-
}
|
|
309
|
-
export interface LoadComponentsData {
|
|
310
|
-
search_query?: string;
|
|
311
|
-
page?: string | number;
|
|
312
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps the short font key names (matching tailwind.config.ts fontFamily keys and
|
|
3
|
-
* the pbx-font-* class suffixes) to their CSS font-family strings.
|
|
4
|
-
*
|
|
5
|
-
* Used to resolve element-level font overrides (elementFonts config) into the
|
|
6
|
-
* CSS custom properties that style.css targets with var(--pbx-el-{tag}-font).
|
|
7
|
-
*/
|
|
8
|
-
declare const fontFamilyMap: Record<string, string>;
|
|
9
|
-
/**
|
|
10
|
-
* Resolves a font config value to a CSS font-family string.
|
|
11
|
-
*
|
|
12
|
-
* Accepts a short name ("jost"), a pbx-font- prefixed class name ("pbx-font-jost"),
|
|
13
|
-
* a CSS generic keyword ("fantasy"), or a comma-separated list in any of those
|
|
14
|
-
* formats. The first recognised entry wins:
|
|
15
|
-
* 1. Known font in fontFamilyMap → returns its CSS font-family stack
|
|
16
|
-
* 2. CSS generic keyword → returned as-is (e.g. "fantasy")
|
|
17
|
-
* 3. Anything else → skipped
|
|
18
|
-
*
|
|
19
|
-
* Returns undefined when no recognised font is found in the entire list.
|
|
20
|
-
*/
|
|
21
|
-
export declare function resolveFontFamily(fontConfig: string): string | undefined;
|
|
22
|
-
export default fontFamilyMap;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface TailwindBorderRadius {
|
|
2
|
-
roundedGlobal: string[];
|
|
3
|
-
roundedTopLeft: string[];
|
|
4
|
-
roundedTopRight: string[];
|
|
5
|
-
roundedBottomLeft: string[];
|
|
6
|
-
roundedBottomRight: string[];
|
|
7
|
-
}
|
|
8
|
-
declare const tailwindBorderRadius: TailwindBorderRadius;
|
|
9
|
-
export default tailwindBorderRadius;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface TailwindPaddingMargin {
|
|
2
|
-
verticalPadding: string[];
|
|
3
|
-
horizontalPadding: string[];
|
|
4
|
-
topPadding: string[];
|
|
5
|
-
rightPadding: string[];
|
|
6
|
-
bottomPadding: string[];
|
|
7
|
-
leftPadding: string[];
|
|
8
|
-
verticalMargin: string[];
|
|
9
|
-
horizontalMargin: string[];
|
|
10
|
-
topMargin: string[];
|
|
11
|
-
rightMargin: string[];
|
|
12
|
-
bottomMargin: string[];
|
|
13
|
-
leftMargin: string[];
|
|
14
|
-
}
|
|
15
|
-
declare const tailwindPaddingAndMargin: TailwindPaddingMargin;
|
|
16
|
-
export default tailwindPaddingAndMargin;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface ComponentData {
|
|
2
|
-
title: string;
|
|
3
|
-
html_code: string;
|
|
4
|
-
cover_image: string | null;
|
|
5
|
-
category: string;
|
|
6
|
-
}
|
|
7
|
-
interface Components {
|
|
8
|
-
components: {
|
|
9
|
-
data: ComponentData[];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare const component: Components[];
|
|
13
|
-
export default component;
|