@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
package/dist/types/index.d.ts
CHANGED
|
@@ -92,8 +92,16 @@ export interface PageBuilderStateStore {
|
|
|
92
92
|
setFontStyle: (style: string) => void;
|
|
93
93
|
setFontVerticalPadding: (padding: string) => void;
|
|
94
94
|
setFontHorizontalPadding: (padding: string) => void;
|
|
95
|
+
setFontTopPadding: (padding: string) => void;
|
|
96
|
+
setFontRightPadding: (padding: string) => void;
|
|
97
|
+
setFontBottomPadding: (padding: string) => void;
|
|
98
|
+
setFontLeftPadding: (padding: string) => void;
|
|
95
99
|
setFontVerticalMargin: (margin: string) => void;
|
|
96
100
|
setFontHorizontalMargin: (margin: string) => void;
|
|
101
|
+
setFontTopMargin: (margin: string) => void;
|
|
102
|
+
setFontRightMargin: (margin: string) => void;
|
|
103
|
+
setFontBottomMargin: (margin: string) => void;
|
|
104
|
+
setFontLeftMargin: (margin: string) => void;
|
|
97
105
|
setBorderStyle: (style: string) => void;
|
|
98
106
|
setBorderWidth: (width: string) => void;
|
|
99
107
|
setBorderColor: (color: string) => void;
|
|
@@ -122,7 +130,18 @@ export interface PageBuilderUser {
|
|
|
122
130
|
}
|
|
123
131
|
export interface PageSettings {
|
|
124
132
|
classes: string;
|
|
125
|
-
style?: Record<string, string>;
|
|
133
|
+
style?: string | Record<string, string>;
|
|
134
|
+
}
|
|
135
|
+
export type ThemeColorPresetId = 'primary' | 'secondary' | 'custom1' | 'custom2' | 'custom3' | 'custom4' | 'custom5' | 'custom6';
|
|
136
|
+
export interface ThemeColorPreset {
|
|
137
|
+
id: ThemeColorPresetId;
|
|
138
|
+
label: string;
|
|
139
|
+
color: string;
|
|
140
|
+
enabled: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface ThemeColorPresetSettings {
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
colors: readonly ThemeColorPreset[];
|
|
126
145
|
}
|
|
127
146
|
export interface PageBuilderConfig {
|
|
128
147
|
updateOrCreate: {
|
|
@@ -151,6 +170,7 @@ export interface PageBuilderConfig {
|
|
|
151
170
|
} | null;
|
|
152
171
|
settings?: {
|
|
153
172
|
brandColor?: string;
|
|
173
|
+
themeColorPresets?: ThemeColorPresetSettings | null;
|
|
154
174
|
[key: string]: unknown;
|
|
155
175
|
} | null;
|
|
156
176
|
pageSettings?: PageSettings;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
interface TailwindPaddingMargin {
|
|
2
2
|
verticalPadding: string[];
|
|
3
3
|
horizontalPadding: string[];
|
|
4
|
+
topPadding: string[];
|
|
5
|
+
rightPadding: string[];
|
|
6
|
+
bottomPadding: string[];
|
|
7
|
+
leftPadding: string[];
|
|
4
8
|
verticalMargin: string[];
|
|
5
9
|
horizontalMargin: string[];
|
|
10
|
+
topMargin: string[];
|
|
11
|
+
rightMargin: string[];
|
|
12
|
+
bottomMargin: string[];
|
|
13
|
+
leftMargin: string[];
|
|
6
14
|
}
|
|
7
15
|
declare const tailwindPaddingAndMargin: TailwindPaddingMargin;
|
|
8
16
|
export default tailwindPaddingAndMargin;
|