@myissue/vue-website-page-builder 3.5.3 → 3.5.5
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 +33 -1
- 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/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 +5 -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 +2 -0
- 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 +47 -0
- package/dist/index.d.ts +2 -1
- package/dist/services/PageBuilderService.d.ts +56 -0
- package/dist/stores/page-builder-state.d.ts +61 -6
- 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 +76 -6
- package/dist/utils/builder/tailwind-padding-margin.d.ts +8 -0
- package/dist/utils/html-elements/componentHelpers.d.ts +1 -0
- package/dist/vue-website-page-builder.js +12936 -10943
- package/dist/vue-website-page-builder.umd.cjs +85 -69
- 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
|
|
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;
|
|
@@ -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,3 +1,6 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const _default: 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>;
|
|
3
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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>;
|
|
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;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
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;
|
|
20
|
+
export declare function useThemeColorPresets(config?: Ref<PageBuilderConfig | null> | ComputedRef<PageBuilderConfig | null>): {
|
|
21
|
+
themeColorPresetSettings: Ref<{
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
colors: readonly {
|
|
24
|
+
id: ThemeColorPresetId;
|
|
25
|
+
label: string;
|
|
26
|
+
color: string;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
}, ThemeColorPresetSettings | {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
colors: readonly {
|
|
32
|
+
id: ThemeColorPresetId;
|
|
33
|
+
label: string;
|
|
34
|
+
color: string;
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
}>;
|
|
38
|
+
enabledThemeColorPresets: ComputedRef<{
|
|
39
|
+
id: ThemeColorPresetId;
|
|
40
|
+
label: string;
|
|
41
|
+
color: string;
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
}[]>;
|
|
44
|
+
setThemeColorPresetsEnabled: (enabled: boolean) => void;
|
|
45
|
+
updateThemeColorPreset: (id: ThemeColorPresetId, updates: Partial<Omit<ThemeColorPreset, "id">>) => void;
|
|
46
|
+
resetToConfigDefaults: () => void;
|
|
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';
|