@myissue/vue-website-page-builder 3.4.96 → 3.4.97
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/App.vue.d.ts +3 -0
- package/dist/Components/ComponentThumbnail.vue.d.ts +15 -0
- package/dist/Components/Homepage/Footer.vue.d.ts +3 -0
- package/dist/Components/Inputs/ToggleInput.vue.d.ts +10 -0
- package/dist/Components/Loaders/ElementLoader.vue.d.ts +3 -0
- package/dist/Components/Loaders/GlobalLoader.vue.d.ts +3 -0
- package/dist/Components/Modals/BuilderComponents.vue.d.ts +43 -0
- package/dist/Components/Modals/DynamicModalBuilder.vue.d.ts +143 -0
- package/dist/Components/Modals/MediaLibraryModal.vue.d.ts +59 -0
- package/dist/Components/Modals/ModalBuilder.vue.d.ts +74 -0
- package/dist/Components/Overlays/FloatingSidePanel.vue.d.ts +53 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue.d.ts +13 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/Borders.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/HTMLEditor.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/Margin.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/Padding.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue.d.ts +13 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/Typography.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/Editables/TypographyForTipTap.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/EditorMenu/EditorAccordion.vue.d.ts +15 -0
- package/dist/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue.d.ts +7 -0
- package/dist/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue.d.ts +15 -0
- package/dist/Components/PageBuilder/Settings/PageBuilderSettings.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/ToolbarOption/ToolbarOption.vue.d.ts +3 -0
- package/dist/Components/PageBuilder/UndoRedo/UndoRedo.vue.d.ts +7 -0
- package/dist/Components/TipTap/TipTapInput.vue.d.ts +3 -0
- package/dist/PageBuilder/PageBuilder.vue.d.ts +48 -0
- package/dist/PageBuilder/Preview.vue.d.ts +13 -0
- package/dist/composables/builderInstance.d.ts +20 -0
- package/dist/composables/delay.d.ts +1 -0
- package/dist/composables/extractCleanHTMLFromPageBuilder.d.ts +2 -0
- package/dist/composables/preloadImage.d.ts +1 -0
- package/dist/composables/useDebounce.d.ts +1 -0
- package/dist/composables/usePageBuilderModal.d.ts +4 -0
- package/dist/composables/useTranslations.d.ts +12 -0
- package/dist/helpers/isEmptyObject.d.ts +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/main.d.ts +0 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/services/LocalStorageManager.d.ts +7 -0
- package/dist/services/PageBuilderService.d.ts +587 -0
- package/dist/stores/page-builder-state.d.ts +285 -0
- package/dist/stores/shared-store.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/tests/DefaultComponents/DefaultBuilderComponents.vue.d.ts +15 -0
- package/dist/tests/DefaultComponents/DefaultMediaLibraryComponent.vue.d.ts +3 -0
- package/dist/tests/PageBuilderTest.vue.d.ts +3 -0
- package/dist/tests/TestComponents/DemoMediaLibraryComponentTest.vue.d.ts +3 -0
- package/dist/tests/TestComponents/DemoUnsplash.vue.d.ts +3 -0
- package/dist/tests/pageBuilderService.test.d.ts +1 -0
- package/dist/types/index.d.ts +201 -0
- package/dist/utils/builder/html-doc-declaration-with-components.d.ts +2 -0
- package/dist/utils/builder/tailwaind-colors.d.ts +6 -0
- package/dist/utils/builder/tailwind-border-radius.d.ts +9 -0
- package/dist/utils/builder/tailwind-border-style-width-color.d.ts +7 -0
- package/dist/utils/builder/tailwind-font-sizes.d.ts +8 -0
- package/dist/utils/builder/tailwind-font-styles.d.ts +7 -0
- package/dist/utils/builder/tailwind-opacities.d.ts +6 -0
- package/dist/utils/builder/tailwind-padding-margin.d.ts +8 -0
- package/dist/utils/html-elements/component.d.ts +13 -0
- package/dist/utils/html-elements/componentHelpers.d.ts +8 -0
- package/dist/utils/html-elements/themes.d.ts +13 -0
- package/dist/vue-website-page-builder.js +5 -3
- package/dist/vue-website-page-builder.umd.cjs +43 -43
- package/package.json +3 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
customMediaComponent: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
customMediaComponent: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
customMediaComponent: Record<string, any>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
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,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,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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { PageBuilderService } from '../services/PageBuilderService.ts';
|
|
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
|
+
}
|
|
21
|
+
export interface ImageObject {
|
|
22
|
+
src: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BuilderResourceComponent {
|
|
25
|
+
html_code: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
}
|
|
28
|
+
export type BuilderResourceData = BuilderResourceComponent[];
|
|
29
|
+
export type StartBuilderResult = {
|
|
30
|
+
error: true;
|
|
31
|
+
reason: string;
|
|
32
|
+
} | {
|
|
33
|
+
message: string;
|
|
34
|
+
validation?: {
|
|
35
|
+
error: true;
|
|
36
|
+
warning: string;
|
|
37
|
+
status: string;
|
|
38
|
+
} | {
|
|
39
|
+
error: true;
|
|
40
|
+
reason: string;
|
|
41
|
+
};
|
|
42
|
+
passedComponentsArray?: BuilderResourceData;
|
|
43
|
+
};
|
|
44
|
+
export interface PageBuilderStateStore {
|
|
45
|
+
getTextAreaVueModel: string | null;
|
|
46
|
+
LocalStorageItemName: string | null;
|
|
47
|
+
getHyberlinkEnable: boolean;
|
|
48
|
+
getComponents: ComponentObject[] | null;
|
|
49
|
+
getComponent: ComponentObject | null;
|
|
50
|
+
getElement: HTMLElement | null;
|
|
51
|
+
getNextSibling: HTMLElement | null;
|
|
52
|
+
getParentElement: HTMLElement | null;
|
|
53
|
+
getRestoredElement: string | null;
|
|
54
|
+
getComponentArrayAddMethod: string | null;
|
|
55
|
+
getFontBase: string | null;
|
|
56
|
+
getFontDesktop: string | null;
|
|
57
|
+
getFontTablet: string | null;
|
|
58
|
+
getFontMobile: string | null;
|
|
59
|
+
setElement: (element: HTMLElement | null) => void;
|
|
60
|
+
setMenuRight: (value: boolean) => void;
|
|
61
|
+
setComponent: (component: ComponentObject | null) => void;
|
|
62
|
+
setComponents: (components: ComponentObject[] | null) => void;
|
|
63
|
+
setComponentArrayAddMethod: (method: string) => void;
|
|
64
|
+
setCurrentClasses: (classes: string[] | ArrayLike<string>) => void;
|
|
65
|
+
setClass: (className: string) => void;
|
|
66
|
+
removeClass: (className: string) => void;
|
|
67
|
+
setParentElement: (element: HTMLElement | Node | null) => void;
|
|
68
|
+
setRestoredElement: (html: string | null) => void;
|
|
69
|
+
setNextSibling: (element: HTMLElement | Node | null) => void;
|
|
70
|
+
setTextAreaVueModel: (html: string | null) => void;
|
|
71
|
+
setFontBase: (size: string | null) => void;
|
|
72
|
+
setFontDesktop: (size: string | null) => void;
|
|
73
|
+
setFontTablet: (size: string | null) => void;
|
|
74
|
+
setFontMobile: (size: string | null) => void;
|
|
75
|
+
setBasePrimaryImage: (url: string | null) => void;
|
|
76
|
+
setCurrentLayoutPreview: (html: string) => void;
|
|
77
|
+
setHyperlinkError: (error: string | null) => void;
|
|
78
|
+
setHyperlinkMessage: (message: string | null) => void;
|
|
79
|
+
setElementContainsHyperlink: (contains: boolean) => void;
|
|
80
|
+
setHyberlinkEnable: (enable: boolean) => void;
|
|
81
|
+
setHyperlinkInput: (input: string) => void;
|
|
82
|
+
setOpenHyperlinkInNewTab: (newTab: boolean) => void;
|
|
83
|
+
setHyperlinkAbility: (ability: boolean) => void;
|
|
84
|
+
setPushComponents: (payload: SetPushComponentsPayload) => void;
|
|
85
|
+
setLocalStorageItemName: (name: string | null) => void;
|
|
86
|
+
setUpdateOrCreate: (mode: string) => void;
|
|
87
|
+
setFontWeight: (weight: string) => void;
|
|
88
|
+
setFontFamily: (family: string) => void;
|
|
89
|
+
setFontStyle: (style: string) => void;
|
|
90
|
+
setFontVerticalPadding: (padding: string) => void;
|
|
91
|
+
setFontHorizontalPadding: (padding: string) => void;
|
|
92
|
+
setFontVerticalMargin: (margin: string) => void;
|
|
93
|
+
setFontHorizontalMargin: (margin: string) => void;
|
|
94
|
+
setBorderStyle: (style: string) => void;
|
|
95
|
+
setBorderWidth: (width: string) => void;
|
|
96
|
+
setBorderColor: (color: string) => void;
|
|
97
|
+
setBorderRadiusGlobal: (radius: string) => void;
|
|
98
|
+
setBorderRadiusTopLeft: (radius: string) => void;
|
|
99
|
+
setBorderRadiusTopRight: (radius: string) => void;
|
|
100
|
+
setBorderRadiusBottomleft: (radius: string) => void;
|
|
101
|
+
setBorderRadiusBottomRight: (radius: string) => void;
|
|
102
|
+
setBackgroundColor: (color: string) => void;
|
|
103
|
+
setTextColor: (color: string) => void;
|
|
104
|
+
setBackgroundOpacity: (opacity: string) => void;
|
|
105
|
+
setOpacity: (opacity: string) => void;
|
|
106
|
+
getApplyImageToSelection: ImageObject | null;
|
|
107
|
+
setCurrentImage: (image: ImageObject) => void;
|
|
108
|
+
getCurrentPreviewImage: string | null;
|
|
109
|
+
setCurrentPreviewImage: (url: string | null) => void;
|
|
110
|
+
[key: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
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';
|
|
113
|
+
export interface User {
|
|
114
|
+
name: string;
|
|
115
|
+
}
|
|
116
|
+
export interface PageBuilderUser {
|
|
117
|
+
name: string;
|
|
118
|
+
image: string;
|
|
119
|
+
}
|
|
120
|
+
export interface PageSettings {
|
|
121
|
+
classes: string;
|
|
122
|
+
style?: Record<string, string>;
|
|
123
|
+
}
|
|
124
|
+
export interface PageBuilderConfig {
|
|
125
|
+
updateOrCreate: {
|
|
126
|
+
formType: 'create' | 'update';
|
|
127
|
+
formName: FormName;
|
|
128
|
+
};
|
|
129
|
+
pageBuilderLogo?: {
|
|
130
|
+
src: string;
|
|
131
|
+
} | null;
|
|
132
|
+
resourceData?: {
|
|
133
|
+
title: string;
|
|
134
|
+
id?: number;
|
|
135
|
+
} | null;
|
|
136
|
+
userForPageBuilder?: PageBuilderUser;
|
|
137
|
+
[key: string]: unknown;
|
|
138
|
+
userSettings?: {
|
|
139
|
+
language?: {
|
|
140
|
+
default: 'en' | 'zh-Hans' | 'fr' | 'ja' | 'ru' | 'es' | 'pt' | 'de' | 'ar' | 'hi' | 'da' | 'it';
|
|
141
|
+
enable?: ReadonlyArray<'en' | 'zh-Hans' | 'fr' | 'ja' | 'ru' | 'es' | 'pt' | 'de' | 'ar' | 'hi' | 'da' | 'it'>;
|
|
142
|
+
disableLanguageDropDown?: boolean;
|
|
143
|
+
};
|
|
144
|
+
autoSave?: boolean;
|
|
145
|
+
fontFamily?: string;
|
|
146
|
+
[key: string]: unknown;
|
|
147
|
+
} | null;
|
|
148
|
+
settings?: {
|
|
149
|
+
brandColor?: string;
|
|
150
|
+
[key: string]: unknown;
|
|
151
|
+
} | null;
|
|
152
|
+
pageSettings?: PageSettings;
|
|
153
|
+
}
|
|
154
|
+
export interface TailwindColors {
|
|
155
|
+
backgroundColorVariables: string[];
|
|
156
|
+
textColorVariables: string[];
|
|
157
|
+
}
|
|
158
|
+
export interface TailwindOpacities {
|
|
159
|
+
opacities: string[];
|
|
160
|
+
backgroundOpacities: string[];
|
|
161
|
+
}
|
|
162
|
+
export interface TailwindFontSizes {
|
|
163
|
+
fontBase: string[];
|
|
164
|
+
fontDesktop: string[];
|
|
165
|
+
fontTablet: string[];
|
|
166
|
+
fontMobile: string[];
|
|
167
|
+
}
|
|
168
|
+
export interface TailwindFontStyles {
|
|
169
|
+
fontStyles: string[];
|
|
170
|
+
}
|
|
171
|
+
export interface TailwindPaddingAndMargin {
|
|
172
|
+
paddingAndMargin: string[];
|
|
173
|
+
}
|
|
174
|
+
export interface TailwindBorderRadius {
|
|
175
|
+
borderRadius: string[];
|
|
176
|
+
}
|
|
177
|
+
export interface TailwindBorderStyleWidthColor {
|
|
178
|
+
borderStyles: string[];
|
|
179
|
+
borderWidths: string[];
|
|
180
|
+
borderColors: string[];
|
|
181
|
+
}
|
|
182
|
+
export type TimerHandle = ReturnType<typeof setTimeout>;
|
|
183
|
+
export type MutationObserver = globalThis.MutationObserver;
|
|
184
|
+
export interface FetchedComponentsResponse {
|
|
185
|
+
components: ComponentObject[];
|
|
186
|
+
pagination?: {
|
|
187
|
+
current_page: number;
|
|
188
|
+
last_page: number;
|
|
189
|
+
per_page: number;
|
|
190
|
+
total: number;
|
|
191
|
+
};
|
|
192
|
+
[key: string]: unknown;
|
|
193
|
+
}
|
|
194
|
+
export interface SetPushComponentsPayload {
|
|
195
|
+
componentArrayAddMethod?: string;
|
|
196
|
+
component: ComponentObject;
|
|
197
|
+
}
|
|
198
|
+
export interface LoadComponentsData {
|
|
199
|
+
search_query?: string;
|
|
200
|
+
page?: string | number;
|
|
201
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|