@myissue/vue-website-page-builder 3.5.4 → 3.5.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.
- package/README.md +34 -2
- package/dist/App.vue.d.ts +1 -2
- package/dist/Components/ComponentThumbnail.vue.d.ts +8 -4
- package/dist/Components/Homepage/Footer.vue.d.ts +1 -2
- package/dist/Components/Icons/LayersIcon.vue.d.ts +7 -0
- package/dist/Components/Icons/SliderIcon.vue.d.ts +7 -0
- package/dist/Components/Inputs/ToggleInput.vue.d.ts +1 -2
- package/dist/Components/Loaders/ElementLoader.vue.d.ts +1 -2
- package/dist/Components/Loaders/GlobalLoader.vue.d.ts +1 -2
- package/dist/Components/Modals/BuilderComponents.vue.d.ts +1 -2
- package/dist/Components/Modals/DynamicModalBuilder.vue.d.ts +7 -8
- package/dist/Components/Modals/MediaLibraryModal.vue.d.ts +1 -2
- package/dist/Components/Modals/ModalBuilder.vue.d.ts +4 -5
- package/dist/Components/Overlays/FloatingSidePanel.vue.d.ts +4 -5
- package/dist/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Borders.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/HTMLEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Margin.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Padding.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/ThemeColorPresetManager.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/Typography.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/Editables/TypographyForTipTap.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/EditorMenu/EditorAccordion.vue.d.ts +2 -3
- package/dist/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/Settings/PageBuilderSettings.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/ToolbarOption/ToolbarOption.vue.d.ts +1 -2
- package/dist/Components/PageBuilder/UndoRedo/UndoRedo.vue.d.ts +1 -2
- package/dist/Components/TipTap/TipTapInput.vue.d.ts +1 -2
- package/dist/PageBuilder/PageBuilder.vue.d.ts +1 -2
- package/dist/PageBuilder/Preview.vue.d.ts +1 -2
- package/dist/composables/useThemeColorPresets.d.ts +18 -0
- package/dist/index.d.ts +2 -1
- package/dist/services/PageBuilderService.d.ts +28 -0
- package/dist/stores/page-builder-state.d.ts +19 -5
- package/dist/style.css +1 -1
- package/dist/tests/DefaultComponents/DefaultBuilderComponents.vue.d.ts +1 -2
- package/dist/tests/DefaultComponents/DefaultMediaLibraryComponent.vue.d.ts +1 -2
- package/dist/tests/PageBuilderTest.vue.d.ts +1 -2
- package/dist/tests/TestComponents/DemoMediaLibraryComponentTest.vue.d.ts +1 -2
- package/dist/tests/TestComponents/DemoUnsplash.vue.d.ts +1 -2
- package/dist/tests/composables/useThemeColorPresets.test.d.ts +16 -0
- package/dist/types/index.d.ts +56 -6
- package/dist/utils/html-elements/componentHelpers.d.ts +1 -0
- package/dist/vue-website-page-builder.js +12578 -11599
- package/dist/vue-website-page-builder.umd.cjs +110 -94
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,39 @@ A Page Builder designed for growth. Build your website pages with ready-made com
|
|
|
72
72
|
|
|
73
73
|
From solo freelancers to fast-growing startups and established enterprises, the Page Builder is trusted by teams everywhere. With its intuitive click-and-drop editor, real-time visual editing, and a rich library of reusable components, you can turn ideas into polished pages in minutes. Built for merchants, brands, and agencies, it empowers anyone to create high-impact content.
|
|
74
74
|
|
|
75
|
-
Discover how the Vue Website Page Builder is empowering businesses to create dynamic and responsive web pages.
|
|
75
|
+
Discover how the Vue Website Page Builder is empowering businesses to create dynamic and responsive web pages. Used by teams at myself.ae, Zara, H&M, Chanel, BOSS, DKNY, Aldo, Bershka, Furla, Pandora, The New York Times, and Pentagram — the builder powers engaging, user-friendly pages across fashion, retail, media, and design.
|
|
76
|
+
|
|
77
|
+
<br>
|
|
78
|
+
|
|
79
|
+
<h3 align="center">Teams from top companies building using this page builder</h3>
|
|
80
|
+
|
|
81
|
+
<p align="center">
|
|
82
|
+
<img src="./public/logo/top-companies/myself.ae.jpg" width="80" height="80" alt="myself.ae" title="myself.ae" />
|
|
83
|
+
|
|
84
|
+
<img src="./public/logo/top-companies/zara.jpg" width="80" height="80" alt="Zara" title="Zara" />
|
|
85
|
+
|
|
86
|
+
<img src="./public/logo/top-companies/hm.png" width="80" height="80" alt="H&M" title="H&M" />
|
|
87
|
+
|
|
88
|
+
<img src="./public/logo/top-companies/chanel.avif" width="80" height="80" alt="Chanel" title="Chanel" />
|
|
89
|
+
<br><br>
|
|
90
|
+
<img src="./public/logo/top-companies/boss.jpg" width="80" height="80" alt="BOSS" title="BOSS" />
|
|
91
|
+
|
|
92
|
+
<img src="./public/logo/top-companies/dkny.jpg" width="80" height="80" alt="DKNY" title="DKNY" />
|
|
93
|
+
|
|
94
|
+
<img src="./public/logo/top-companies/aldo.jpg" width="80" height="80" alt="Aldo" title="Aldo" />
|
|
95
|
+
|
|
96
|
+
<img src="./public/logo/top-companies/bershka.jpg" width="80" height="80" alt="Bershka" title="Bershka" />
|
|
97
|
+
<br><br>
|
|
98
|
+
<img src="./public/logo/top-companies/furla.jpg" width="80" height="80" alt="Furla" title="Furla" />
|
|
99
|
+
|
|
100
|
+
<img src="./public/logo/top-companies/pandora.jpg" width="80" height="80" alt="Pandora" title="Pandora" />
|
|
101
|
+
|
|
102
|
+
<img src="./public/logo/top-companies/bottega_veneta.png" width="80" height="80" alt="Bottega Veneta" title="Bottega Veneta" />
|
|
103
|
+
|
|
104
|
+
<img src="./public/logo/top-companies/charles_keith.jpg" width="80" height="80" alt="Charles & Keith" title="Charles & Keith" />
|
|
105
|
+
</p>
|
|
106
|
+
|
|
107
|
+
<br>
|
|
76
108
|
|
|
77
109
|
## Reviews, Ratings, and User Testimonials
|
|
78
110
|
|
|
@@ -182,7 +214,7 @@ If you discover a security vulnerability, please send us a message.
|
|
|
182
214
|
|
|
183
215
|
## Get in Touch for Customization or Any Questions
|
|
184
216
|
|
|
185
|
-
If you have any questions or if you're looking for customization, feel free to connect with our
|
|
217
|
+
If you have any questions or if you're looking for customization, feel free to connect with our developers.
|
|
186
218
|
|
|
187
219
|
- [Email](mailto:qais.wardag@outlook.com)
|
|
188
220
|
- [LinkedIn](https://www.linkedin.com/in/qaiswardag)
|
package/dist/App.vue.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -2,14 +2,18 @@ type __VLS_Props = {
|
|
|
2
2
|
htmlCode: string;
|
|
3
3
|
containerHeight?: number;
|
|
4
4
|
renderWidth?: number;
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
5
|
+
/** Maximum visual height in px. Thumbnails taller than this are clipped
|
|
6
|
+
* at the bottom (cover-style). Shorter ones show fully. */
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
/** 'cover': fill container width, clip vertically.
|
|
9
|
+
* 'contain' (default): grow container to show the full component at a
|
|
10
|
+
* consistent zoom level. Content is never clipped beyond maxHeight. */
|
|
7
11
|
fit?: 'cover' | 'contain';
|
|
8
12
|
};
|
|
9
|
-
declare const
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
maxHeight: number;
|
|
10
15
|
containerHeight: number;
|
|
11
16
|
renderWidth: number;
|
|
12
17
|
fit: "cover" | "contain";
|
|
13
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
19
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number | string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
size: number | string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue: boolean;
|
|
3
3
|
};
|
|
4
|
-
declare const
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
5
|
"update:modelValue": (value: boolean) => any;
|
|
6
6
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
8
8
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
9
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
firstButtonText: {
|
|
3
3
|
required: true;
|
|
4
4
|
};
|
|
@@ -39,5 +39,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
39
39
|
}>, {
|
|
40
40
|
CustomBuilderComponents: Record<string, any>;
|
|
41
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
42
|
-
declare const _default: typeof __VLS_export;
|
|
43
42
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
content?: (props: typeof
|
|
3
|
+
content?: (props: typeof __VLS_9) => any;
|
|
4
4
|
} & {
|
|
5
|
-
header?: (props: typeof
|
|
5
|
+
header?: (props: typeof __VLS_11) => any;
|
|
6
6
|
} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_13) => any;
|
|
8
8
|
} & {
|
|
9
|
-
footer?: (props: typeof
|
|
9
|
+
footer?: (props: typeof __VLS_15) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
12
|
showDynamicModalBuilder: {
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
@@ -133,8 +133,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
133
133
|
isLoading: boolean;
|
|
134
134
|
disabledWhichButton: string;
|
|
135
135
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
136
|
-
declare const
|
|
137
|
-
declare const _default: typeof __VLS_export;
|
|
136
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
138
137
|
export default _default;
|
|
139
138
|
type __VLS_WithSlots<T, S> = T & {
|
|
140
139
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
title: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
@@ -55,5 +55,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
55
55
|
}>, {
|
|
56
56
|
customMediaComponent: Record<string, any>;
|
|
57
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
|
-
declare const _default: typeof __VLS_export;
|
|
59
58
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_5: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
3
|
+
default?: (props: typeof __VLS_5) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
6
|
title: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
@@ -64,8 +64,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
64
64
|
maxWidth: string;
|
|
65
65
|
noBackgroundOpacity: boolean;
|
|
66
66
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
67
|
-
declare const
|
|
68
|
-
declare const _default: typeof __VLS_export;
|
|
67
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
69
68
|
export default _default;
|
|
70
69
|
type __VLS_WithSlots<T, S> = T & {
|
|
71
70
|
new (): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_9: {};
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof
|
|
3
|
+
default?: (props: typeof __VLS_9) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
6
|
title: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: false;
|
|
@@ -43,8 +43,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
43
43
|
showSidebarPanel: boolean;
|
|
44
44
|
position: string;
|
|
45
45
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
-
declare const
|
|
47
|
-
declare const _default: typeof __VLS_export;
|
|
46
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
48
47
|
export default _default;
|
|
49
48
|
type __VLS_WithSlots<T, S> = T & {
|
|
50
49
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
globalPageLayout: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
};
|
|
@@ -9,5 +9,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
9
9
|
}>> & Readonly<{}>, {
|
|
10
10
|
globalPageLayout: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
2
|
"open-global-page-settings": () => any;
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
"onOpen-global-page-settings"?: (() => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
6
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
globalPageLayout: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
};
|
|
@@ -9,5 +9,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
9
9
|
}>> & Readonly<{}>, {
|
|
10
10
|
globalPageLayout: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -4,9 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
} & {
|
|
5
5
|
content?: (props: typeof __VLS_3) => any;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
9
|
export default _default;
|
|
11
10
|
type __VLS_WithSlots<T, S> = T & {
|
|
12
11
|
new (): {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
2
|
closeEditor: (...args: any[]) => void;
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
onCloseEditor?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
6
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
isLoading: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
required: true;
|
|
@@ -11,5 +11,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
14
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
2
|
"toolbar-hide-request": (...args: any[]) => void;
|
|
3
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
4
|
"onToolbar-hide-request"?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
6
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
declare const _default: typeof __VLS_export;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
2
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
CustomMediaLibraryComponent: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: null;
|
|
@@ -44,5 +44,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
44
44
|
showCloseButton: boolean;
|
|
45
45
|
showPublishButton: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
-
declare const _default: typeof __VLS_export;
|
|
48
47
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
mobile: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
};
|
|
@@ -9,5 +9,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
9
9
|
}>> & Readonly<{}>, {
|
|
10
10
|
mobile: boolean;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { PageBuilderConfig, ThemeColorPreset, ThemeColorPresetId, ThemeColorPresetSettings } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Build a user-scoped storage key so each user keeps their own presets.
|
|
5
|
+
* Falls back to the shared key when no `userForPageBuilder.id` is provided.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* // user id 42 → "vueWebsitePageBuilderThemeColorPresets-u42"
|
|
9
|
+
* // no id → "vueWebsitePageBuilderThemeColorPresets"
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildStorageKey(config?: PageBuilderConfig | null): string;
|
|
12
|
+
/**
|
|
13
|
+
* Clear the stored theme color presets for the current user and reset the
|
|
14
|
+
* in-memory state to built-in defaults.
|
|
15
|
+
*
|
|
16
|
+
* Useful when the user explicitly wants to "restore defaults" or when a
|
|
17
|
+
* host application signs out a user and needs to clear personalization data.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resetThemeColorPresets(): void;
|
|
3
20
|
export declare function useThemeColorPresets(config?: Ref<PageBuilderConfig | null> | ComputedRef<PageBuilderConfig | null>): {
|
|
4
21
|
themeColorPresetSettings: Ref<{
|
|
5
22
|
enabled: boolean;
|
|
@@ -26,4 +43,5 @@ export declare function useThemeColorPresets(config?: Ref<PageBuilderConfig | nu
|
|
|
26
43
|
}[]>;
|
|
27
44
|
setThemeColorPresetsEnabled: (enabled: boolean) => void;
|
|
28
45
|
updateThemeColorPreset: (id: ThemeColorPresetId, updates: Partial<Omit<ThemeColorPreset, "id">>) => void;
|
|
46
|
+
resetToConfigDefaults: () => void;
|
|
29
47
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ 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
|
|
5
|
+
export { resetThemeColorPresets, buildStorageKey } from './composables/useThemeColorPresets';
|
|
6
|
+
export type { PageBuilderUser, ComponentObject, ImageObject, PageBuilderConfig, BuilderResourceComponent, BuilderResourceData, StartBuilderResult, PageSettings, ThemeColorPreset, ThemeColorPresetId, ThemeColorPresetInput, ThemeColorPresetSettings, ThemeColorPresetSettingsInput, FormName, } from './types';
|
|
6
7
|
export { PageBuilderService } from './services/PageBuilderService';
|
|
7
8
|
export { createPinia } from 'pinia';
|
|
8
9
|
export { sharedPageBuilderPinia, sharedPageBuilderStore } from './stores/shared-store';
|
|
@@ -19,6 +19,7 @@ export declare class PageBuilderService {
|
|
|
19
19
|
private pendingMountComponents;
|
|
20
20
|
private globalStylesObserver;
|
|
21
21
|
private _pendingPageSettings;
|
|
22
|
+
private _lastKnownPageSettings;
|
|
22
23
|
private isPageBuilderMissingOnStart;
|
|
23
24
|
private elementsWithListeners;
|
|
24
25
|
private translate;
|
|
@@ -396,12 +397,31 @@ export declare class PageBuilderService {
|
|
|
396
397
|
* Duplicate the currently selected component from the DOM and the state.
|
|
397
398
|
* @returns {Promise<void>}
|
|
398
399
|
*/
|
|
400
|
+
/**
|
|
401
|
+
* Finds the first two-column layout container inside the selected section.
|
|
402
|
+
* Matches flex-row containers (including responsive variants like lg:pbx-flex-row)
|
|
403
|
+
* AND grid containers with a grid-cols-2 class, in each case requiring exactly
|
|
404
|
+
* two direct element children. Returns the container or null.
|
|
405
|
+
*/
|
|
406
|
+
findReverseableContainer(): HTMLElement | null;
|
|
407
|
+
/**
|
|
408
|
+
* Reverses the visual order of a two-column layout by physically swapping the
|
|
409
|
+
* two direct children of the detected container. This works for both flex-row
|
|
410
|
+
* and grid-cols-2 layouts and naturally toggles on repeated clicks.
|
|
411
|
+
* Persists the change to the store and localStorage.
|
|
412
|
+
*/
|
|
413
|
+
reverseComponentLayout(): Promise<void>;
|
|
399
414
|
duplicateComponent(): Promise<void>;
|
|
400
415
|
/**
|
|
401
416
|
* Deletes the currently selected component from the DOM and the state.
|
|
402
417
|
* @returns {Promise<void>}
|
|
403
418
|
*/
|
|
404
419
|
deleteComponentFromDOM(): Promise<void>;
|
|
420
|
+
/**
|
|
421
|
+
* Duplicates the currently selected element and inserts the copy immediately
|
|
422
|
+
* after it in the DOM, then syncs the change to the store.
|
|
423
|
+
*/
|
|
424
|
+
duplicateElementInDOM(): Promise<void>;
|
|
405
425
|
/**
|
|
406
426
|
* Deletes the currently selected element from the DOM and stores it for potential restoration.
|
|
407
427
|
* @returns {Promise<void>}
|
|
@@ -482,9 +502,17 @@ export declare class PageBuilderService {
|
|
|
482
502
|
private removeCurrentComponentsFromLocalStorage;
|
|
483
503
|
/**
|
|
484
504
|
* Handles the form submission process, clearing local storage and the DOM.
|
|
505
|
+
* Global page settings (classes / inline styles on the content wrapper) are
|
|
506
|
+
* intentionally preserved so they survive a "remove all components" action.
|
|
485
507
|
* @returns {Promise<void>}
|
|
486
508
|
*/
|
|
487
509
|
handleFormSubmission(): Promise<void>;
|
|
510
|
+
/**
|
|
511
|
+
* Reads the current page settings.
|
|
512
|
+
* Prioritises the live DOM (always current) and falls back to localStorage
|
|
513
|
+
* if there are no [data-pagebuilder-content] elements.
|
|
514
|
+
*/
|
|
515
|
+
private readCurrentPageSettings;
|
|
488
516
|
/**
|
|
489
517
|
* Parses a CSS style string into a key-value object.
|
|
490
518
|
* @param {string} style - The style string to parse.
|