@myissue/vue-website-page-builder 3.5.25 → 3.5.26
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/index.d.ts +32 -12
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +13357 -12774
- package/dist/vue-website-page-builder.umd.cjs +105 -104
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,10 @@ export declare function buildProductSectionHtml(products: ReadonlyArray<PageBuil
|
|
|
92
92
|
declare interface BuildProductSectionStyleOptions {
|
|
93
93
|
cardStyle?: ProductCardStyle;
|
|
94
94
|
roundedImages?: boolean;
|
|
95
|
+
openInNewTab?: boolean;
|
|
96
|
+
hidePrice?: boolean;
|
|
97
|
+
hideImage?: boolean;
|
|
98
|
+
hideButton?: boolean;
|
|
95
99
|
mobileColumns?: 1 | 2;
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -138,6 +142,14 @@ export declare interface InsertProductsOptions {
|
|
|
138
142
|
cardStyle?: ProductCardStyle;
|
|
139
143
|
/** Adds rounded corners to product images */
|
|
140
144
|
roundedImages?: boolean;
|
|
145
|
+
/** Adds target="_blank" rel="noopener noreferrer" to product links */
|
|
146
|
+
openInNewTab?: boolean;
|
|
147
|
+
/** Hides price and compare-at price when product data includes them */
|
|
148
|
+
hidePrice?: boolean;
|
|
149
|
+
/** Hides product photos when product data includes images */
|
|
150
|
+
hideImage?: boolean;
|
|
151
|
+
/** Hides the CTA button when product data includes url and buttonText */
|
|
152
|
+
hideButton?: boolean;
|
|
141
153
|
sectionTitle?: string;
|
|
142
154
|
/** unshift | push | insert (uses current add index) */
|
|
143
155
|
method?: 'unshift' | 'push' | 'insert' | (string & {});
|
|
@@ -197,23 +209,19 @@ export declare interface PageBuilderConfig {
|
|
|
197
209
|
* Default canvas font and, optionally, the restricted set of fonts shown in
|
|
198
210
|
* the font-family picker.
|
|
199
211
|
*
|
|
200
|
-
* - Single
|
|
201
|
-
* - Comma-separated list:
|
|
202
|
-
*
|
|
212
|
+
* - Single built-in key: `'jost'` — canvas default; picker shows all built-in fonts.
|
|
213
|
+
* - Comma-separated list: first entry is the canvas default; picker is restricted
|
|
214
|
+
* to the listed fonts.
|
|
203
215
|
*
|
|
204
|
-
*
|
|
216
|
+
* Any name not in the built-in list is treated as a custom font (e.g.
|
|
217
|
+
* `'Bitcount Grid Double'`). You must load the font in your app CSS
|
|
218
|
+
* (`@import`, `@font-face`, or a `<link>`). The builder applies the name only.
|
|
205
219
|
*/
|
|
206
220
|
fontFamily?: string;
|
|
207
221
|
/**
|
|
208
222
|
* Per-element font overrides applied to the builder canvas.
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* Available font names: jost, raleway, palantino, arial, helvetica, georgia,
|
|
213
|
-
* times, times-new-roman, courier, courier-new, verdana, tahoma, trebuchet,
|
|
214
|
-
* garamond, bookman, comic-sans, impact, lucida, lucida-console, lucida-sans,
|
|
215
|
-
* candara, optima, avenir, futura, calibri, cambria, didot, franklin-gothic,
|
|
216
|
-
* rockwell, baskerville, sans, serif, mono
|
|
223
|
+
* Same format as `fontFamily` — built-in keys, comma-separated fallbacks,
|
|
224
|
+
* or custom font names you load yourself.
|
|
217
225
|
*/
|
|
218
226
|
elementFonts?: PageBuilderElementFonts;
|
|
219
227
|
} | null;
|
|
@@ -468,6 +476,11 @@ export declare class PageBuilderService {
|
|
|
468
476
|
setSelectedComponentFullWidth(enabled: boolean): Promise<void>;
|
|
469
477
|
isSelectedProductSection(): boolean;
|
|
470
478
|
getSelectedProductSectionOptions(): ProductSectionOptions;
|
|
479
|
+
getSelectedProductSectionContentAvailability(): {
|
|
480
|
+
hasPrices: boolean;
|
|
481
|
+
hasImages: boolean;
|
|
482
|
+
hasButtons: boolean;
|
|
483
|
+
};
|
|
471
484
|
updateSelectedProductSection(options: ProductSectionOptions): Promise<void>;
|
|
472
485
|
/**
|
|
473
486
|
* Returns true when the global page wrapper has the full-width class applied.
|
|
@@ -1143,6 +1156,13 @@ export declare interface ProductSectionOptions {
|
|
|
1143
1156
|
mobileColumns?: ProductMobileColumns;
|
|
1144
1157
|
cardStyle?: ProductCardStyle;
|
|
1145
1158
|
roundedImages?: boolean;
|
|
1159
|
+
openInNewTab?: boolean;
|
|
1160
|
+
/** Hides price and compare-at price when product data includes them */
|
|
1161
|
+
hidePrice?: boolean;
|
|
1162
|
+
/** Hides product photos when product data includes images */
|
|
1163
|
+
hideImage?: boolean;
|
|
1164
|
+
/** Hides the CTA button when product data includes url and buttonText */
|
|
1165
|
+
hideButton?: boolean;
|
|
1146
1166
|
}
|
|
1147
1167
|
|
|
1148
1168
|
/**
|