@myissue/vue-website-page-builder 3.5.3 → 3.5.4
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/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue.d.ts +5 -1
- package/dist/Components/PageBuilder/EditorMenu/Editables/ThemeColorPresetManager.vue.d.ts +3 -0
- package/dist/composables/useThemeColorPresets.d.ts +29 -0
- package/dist/index.d.ts +1 -1
- package/dist/services/PageBuilderService.d.ts +47 -0
- package/dist/stores/page-builder-state.d.ts +42 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +21 -1
- package/dist/utils/builder/tailwind-padding-margin.d.ts +8 -0
- package/dist/vue-website-page-builder.js +11611 -10217
- package/dist/vue-website-page-builder.umd.cjs +62 -62
- package/package.json +1 -1
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
|
+
"open-global-page-settings": () => any;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onOpen-global-page-settings"?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
6
|
declare const _default: typeof __VLS_export;
|
|
3
7
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { PageBuilderConfig, ThemeColorPreset, ThemeColorPresetId, ThemeColorPresetSettings } from '../types';
|
|
3
|
+
export declare function useThemeColorPresets(config?: Ref<PageBuilderConfig | null> | ComputedRef<PageBuilderConfig | null>): {
|
|
4
|
+
themeColorPresetSettings: Ref<{
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
colors: readonly {
|
|
7
|
+
id: ThemeColorPresetId;
|
|
8
|
+
label: string;
|
|
9
|
+
color: string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
}, ThemeColorPresetSettings | {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
colors: readonly {
|
|
15
|
+
id: ThemeColorPresetId;
|
|
16
|
+
label: string;
|
|
17
|
+
color: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
}[];
|
|
20
|
+
}>;
|
|
21
|
+
enabledThemeColorPresets: ComputedRef<{
|
|
22
|
+
id: ThemeColorPresetId;
|
|
23
|
+
label: string;
|
|
24
|
+
color: string;
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
}[]>;
|
|
27
|
+
setThemeColorPresetsEnabled: (enabled: boolean) => void;
|
|
28
|
+
updateThemeColorPreset: (id: ThemeColorPresetId, updates: Partial<Omit<ThemeColorPreset, "id">>) => void;
|
|
29
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { default as PageBuilder } from './PageBuilder/PageBuilder.vue';
|
|
|
2
2
|
export { default as Preview } from './PageBuilder/Preview.vue';
|
|
3
3
|
export { usePageBuilderStateStore } from './stores/page-builder-state';
|
|
4
4
|
export { usePageBuilderModal } from './composables/usePageBuilderModal';
|
|
5
|
-
export type { PageBuilderUser, ComponentObject, ImageObject, PageBuilderConfig, BuilderResourceComponent, BuilderResourceData, StartBuilderResult, PageSettings, FormName, } from './types';
|
|
5
|
+
export type { PageBuilderUser, ComponentObject, ImageObject, PageBuilderConfig, BuilderResourceComponent, BuilderResourceData, StartBuilderResult, PageSettings, ThemeColorPreset, ThemeColorPresetId, ThemeColorPresetSettings, FormName, } from './types';
|
|
6
6
|
export { PageBuilderService } from './services/PageBuilderService';
|
|
7
7
|
export { createPinia } from 'pinia';
|
|
8
8
|
export { sharedPageBuilderPinia, sharedPageBuilderStore } from './stores/shared-store';
|
|
@@ -103,6 +103,7 @@ export declare class PageBuilderService {
|
|
|
103
103
|
* @private
|
|
104
104
|
*/
|
|
105
105
|
private applyElementClassChanges;
|
|
106
|
+
private removeElementClassesFromArray;
|
|
106
107
|
/**
|
|
107
108
|
* Removes all CSS classes from the main page builder container.
|
|
108
109
|
* @returns {Promise<void>}
|
|
@@ -177,6 +178,10 @@ export declare class PageBuilderService {
|
|
|
177
178
|
* @returns {boolean} True if the element is editable, false otherwise.
|
|
178
179
|
*/
|
|
179
180
|
isEditableElement(el: Element | null): boolean;
|
|
181
|
+
getSelectedComponentSection(): HTMLElement | null;
|
|
182
|
+
isSelectedComponentTopElement(): boolean;
|
|
183
|
+
selectedComponentIsFullWidth(): boolean;
|
|
184
|
+
setSelectedComponentFullWidth(enabled: boolean): Promise<void>;
|
|
180
185
|
/**
|
|
181
186
|
* Attaches click, mouseover, and mouseleave event listeners to all editable elements in the page builder.
|
|
182
187
|
* @private
|
|
@@ -256,6 +261,26 @@ export declare class PageBuilderService {
|
|
|
256
261
|
* @param {string} [userSelectedHorizontalPadding] - The selected horizontal padding class.
|
|
257
262
|
*/
|
|
258
263
|
handleHorizontalPadding(userSelectedHorizontalPadding?: string): void;
|
|
264
|
+
/**
|
|
265
|
+
* Handles changes to the top padding of the selected element.
|
|
266
|
+
* @param {string} [userSelectedTopPadding] - The selected top padding class.
|
|
267
|
+
*/
|
|
268
|
+
handleTopPadding(userSelectedTopPadding?: string): void;
|
|
269
|
+
/**
|
|
270
|
+
* Handles changes to the right padding of the selected element.
|
|
271
|
+
* @param {string} [userSelectedRightPadding] - The selected right padding class.
|
|
272
|
+
*/
|
|
273
|
+
handleRightPadding(userSelectedRightPadding?: string): void;
|
|
274
|
+
/**
|
|
275
|
+
* Handles changes to the bottom padding of the selected element.
|
|
276
|
+
* @param {string} [userSelectedBottomPadding] - The selected bottom padding class.
|
|
277
|
+
*/
|
|
278
|
+
handleBottomPadding(userSelectedBottomPadding?: string): void;
|
|
279
|
+
/**
|
|
280
|
+
* Handles changes to the left padding of the selected element.
|
|
281
|
+
* @param {string} [userSelectedLeftPadding] - The selected left padding class.
|
|
282
|
+
*/
|
|
283
|
+
handleLeftPadding(userSelectedLeftPadding?: string): void;
|
|
259
284
|
/**
|
|
260
285
|
* Handles changes to the vertical margin of the selected element.
|
|
261
286
|
* @param {string} [userSelectedVerticalMargin] - The selected vertical margin class.
|
|
@@ -266,6 +291,26 @@ export declare class PageBuilderService {
|
|
|
266
291
|
* @param {string} [userSelectedHorizontalMargin] - The selected horizontal margin class.
|
|
267
292
|
*/
|
|
268
293
|
handleHorizontalMargin(userSelectedHorizontalMargin?: string): void;
|
|
294
|
+
/**
|
|
295
|
+
* Handles changes to the top margin of the selected element.
|
|
296
|
+
* @param {string} [userSelectedTopMargin] - The selected top margin class.
|
|
297
|
+
*/
|
|
298
|
+
handleTopMargin(userSelectedTopMargin?: string): void;
|
|
299
|
+
/**
|
|
300
|
+
* Handles changes to the right margin of the selected element.
|
|
301
|
+
* @param {string} [userSelectedRightMargin] - The selected right margin class.
|
|
302
|
+
*/
|
|
303
|
+
handleRightMargin(userSelectedRightMargin?: string): void;
|
|
304
|
+
/**
|
|
305
|
+
* Handles changes to the bottom margin of the selected element.
|
|
306
|
+
* @param {string} [userSelectedBottomMargin] - The selected bottom margin class.
|
|
307
|
+
*/
|
|
308
|
+
handleBottomMargin(userSelectedBottomMargin?: string): void;
|
|
309
|
+
/**
|
|
310
|
+
* Handles changes to the left margin of the selected element.
|
|
311
|
+
* @param {string} [userSelectedLeftMargin] - The selected left margin class.
|
|
312
|
+
*/
|
|
313
|
+
handleLeftMargin(userSelectedLeftMargin?: string): void;
|
|
269
314
|
/**
|
|
270
315
|
* Handles changes to the border style of the selected element.
|
|
271
316
|
* @param {string} [borderStyle] - The selected border style class.
|
|
@@ -286,11 +331,13 @@ export declare class PageBuilderService {
|
|
|
286
331
|
* @param {string} [color] - The selected background color class.
|
|
287
332
|
*/
|
|
288
333
|
handleBackgroundColor(color?: string): void;
|
|
334
|
+
handleCustomBackgroundColor(color: string): void;
|
|
289
335
|
/**
|
|
290
336
|
* Handles changes to the text color of the selected element.
|
|
291
337
|
* @param {string} [color] - The selected text color class.
|
|
292
338
|
*/
|
|
293
339
|
handleTextColor(color?: string): void;
|
|
340
|
+
handleCustomTextColor(color: string): void;
|
|
294
341
|
/**
|
|
295
342
|
* Handles changes to the global border radius of the selected element.
|
|
296
343
|
* @param {string} [borderRadiusGlobal] - The selected global border radius class.
|
|
@@ -26,8 +26,16 @@ interface PageBuilderState {
|
|
|
26
26
|
currentStyles: Record<string, string>;
|
|
27
27
|
fontVerticalPadding: string | null;
|
|
28
28
|
fontHorizontalPadding: string | null;
|
|
29
|
+
fontTopPadding: string | null;
|
|
30
|
+
fontRightPadding: string | null;
|
|
31
|
+
fontBottomPadding: string | null;
|
|
32
|
+
fontLeftPadding: string | null;
|
|
29
33
|
fontVerticalMargin: string | null;
|
|
30
34
|
fontHorizontalMargin: string | null;
|
|
35
|
+
fontTopMargin: string | null;
|
|
36
|
+
fontRightMargin: string | null;
|
|
37
|
+
fontBottomMargin: string | null;
|
|
38
|
+
fontLeftMargin: string | null;
|
|
31
39
|
fontStyle: string | null;
|
|
32
40
|
fontFamily: string | null;
|
|
33
41
|
fontWeight: string | null;
|
|
@@ -87,8 +95,16 @@ export declare const usePageBuilderStateStore: import('pinia').StoreDefinition<"
|
|
|
87
95
|
getFontStyle(state: PageBuilderState): string | null;
|
|
88
96
|
getFontVerticalPadding(state: PageBuilderState): string | null;
|
|
89
97
|
getFontHorizontalPadding(state: PageBuilderState): string | null;
|
|
98
|
+
getFontTopPadding(state: PageBuilderState): string | null;
|
|
99
|
+
getFontRightPadding(state: PageBuilderState): string | null;
|
|
100
|
+
getFontBottomPadding(state: PageBuilderState): string | null;
|
|
101
|
+
getFontLeftPadding(state: PageBuilderState): string | null;
|
|
90
102
|
getFontVerticalMargin(state: PageBuilderState): string | null;
|
|
91
103
|
getFontHorizontalMargin(state: PageBuilderState): string | null;
|
|
104
|
+
getFontTopMargin(state: PageBuilderState): string | null;
|
|
105
|
+
getFontRightMargin(state: PageBuilderState): string | null;
|
|
106
|
+
getFontBottomMargin(state: PageBuilderState): string | null;
|
|
107
|
+
getFontLeftMargin(state: PageBuilderState): string | null;
|
|
92
108
|
getFontFamily(state: PageBuilderState): string | null;
|
|
93
109
|
getFontWeight(state: PageBuilderState): string | null;
|
|
94
110
|
getFontBase(state: PageBuilderState): string | null;
|
|
@@ -142,8 +158,16 @@ export declare const usePageBuilderStateStore: import('pinia').StoreDefinition<"
|
|
|
142
158
|
currentStyles: Record<string, string>;
|
|
143
159
|
fontVerticalPadding: string | null;
|
|
144
160
|
fontHorizontalPadding: string | null;
|
|
161
|
+
fontTopPadding: string | null;
|
|
162
|
+
fontRightPadding: string | null;
|
|
163
|
+
fontBottomPadding: string | null;
|
|
164
|
+
fontLeftPadding: string | null;
|
|
145
165
|
fontVerticalMargin: string | null;
|
|
146
166
|
fontHorizontalMargin: string | null;
|
|
167
|
+
fontTopMargin: string | null;
|
|
168
|
+
fontRightMargin: string | null;
|
|
169
|
+
fontBottomMargin: string | null;
|
|
170
|
+
fontLeftMargin: string | null;
|
|
147
171
|
fontStyle: string | null;
|
|
148
172
|
fontFamily: string | null;
|
|
149
173
|
fontWeight: string | null;
|
|
@@ -200,10 +224,19 @@ export declare const usePageBuilderStateStore: import('pinia').StoreDefinition<"
|
|
|
200
224
|
settings?: {
|
|
201
225
|
[x: string]: unknown;
|
|
202
226
|
brandColor?: string | undefined;
|
|
227
|
+
themeColorPresets?: {
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
colors: readonly {
|
|
230
|
+
id: import('..').ThemeColorPresetId;
|
|
231
|
+
label: string;
|
|
232
|
+
color: string;
|
|
233
|
+
enabled: boolean;
|
|
234
|
+
}[];
|
|
235
|
+
} | null | undefined;
|
|
203
236
|
} | null | undefined;
|
|
204
237
|
pageSettings?: {
|
|
205
238
|
classes: string;
|
|
206
|
-
style?: Record<string, string> | undefined;
|
|
239
|
+
style?: (string | Record<string, string>) | undefined;
|
|
207
240
|
} | undefined;
|
|
208
241
|
} | null;
|
|
209
242
|
showModalHTMLEditor: boolean;
|
|
@@ -253,8 +286,16 @@ export declare const usePageBuilderStateStore: import('pinia').StoreDefinition<"
|
|
|
253
286
|
setCurrentStyles(payload: Record<string, string>): void;
|
|
254
287
|
setFontVerticalPadding(payload: string | null): void;
|
|
255
288
|
setFontHorizontalPadding(payload: string | null): void;
|
|
289
|
+
setFontTopPadding(payload: string | null): void;
|
|
290
|
+
setFontRightPadding(payload: string | null): void;
|
|
291
|
+
setFontBottomPadding(payload: string | null): void;
|
|
292
|
+
setFontLeftPadding(payload: string | null): void;
|
|
256
293
|
setFontVerticalMargin(payload: string | null): void;
|
|
257
294
|
setFontHorizontalMargin(payload: string | null): void;
|
|
295
|
+
setFontTopMargin(payload: string | null): void;
|
|
296
|
+
setFontRightMargin(payload: string | null): void;
|
|
297
|
+
setFontBottomMargin(payload: string | null): void;
|
|
298
|
+
setFontLeftMargin(payload: string | null): void;
|
|
258
299
|
setFontStyle(payload: string | null): void;
|
|
259
300
|
setFontFamily(payload: string | null): void;
|
|
260
301
|
setFontWeight(payload: string | null): void;
|