@myissue/vue-website-page-builder 3.2.82 → 3.2.84
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 +14 -14
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +8644 -8642
- package/dist/vue-website-page-builder.umd.cjs +47 -47
- package/package.json +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +5 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +3 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +2 -2
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +5 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/PaddingPlusMargin.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +7 -7
- package/src/Components/TipTap/TipTap.vue +1 -1
- package/src/Components/TipTap/TipTapInput.vue +3 -3
- package/src/DemoComponents/DemoUnsplash.vue +2 -11
- package/src/DemoComponents/HomeSection.vue +5 -5
- package/src/PageBuilder/PageBuilder.vue +5 -7
- package/src/composables/PageBuilderClass.ts +19 -22
- package/src/helpers/passedPageBuilderConfig.ts +3 -3
- package/src/stores/page-builder-state.ts +1 -1
- package/src/utils/builder/compiledCSS.ts +1011 -1
package/README.md
CHANGED
|
@@ -190,7 +190,7 @@ const pageBuilderStateStore = sharedPageBuilderStore
|
|
|
190
190
|
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
191
191
|
|
|
192
192
|
// Initializing with essential configuration
|
|
193
|
-
pageBuilderClass.
|
|
193
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder)
|
|
194
194
|
</script>
|
|
195
195
|
|
|
196
196
|
<template>
|
|
@@ -202,12 +202,12 @@ pageBuilderClass.setConfigPageBuilder(configPageBuilder)
|
|
|
202
202
|
|
|
203
203
|
You can display your company logo in the Page Builder interface and set the currently logged-in user by passing both a logo URL and user information in your config object:
|
|
204
204
|
|
|
205
|
-
- **Company Logo:** Set the logo URL in your config object and pass it to the PageBuilder using `pageBuilderClass.
|
|
205
|
+
- **Company Logo:** Set the logo URL in your config object and pass it to the PageBuilder using `pageBuilderClass.applyPageBuilderConfig(configPageBuilder)`. When provided, the logo will appear at the top of the Page Builder with proper spacing in the toolbar.
|
|
206
206
|
- **Logged-in User:** Pass a `userForPageBuilder` object in your config to display or use the logged-in user's information within the builder (e.g., name and user image).
|
|
207
207
|
|
|
208
208
|
**Basic Usage:**
|
|
209
209
|
|
|
210
|
-
- You can display your company logo in the page builder interface by setting the `src` in your config object and passing it to the PageBuilder using `pageBuilderClass.
|
|
210
|
+
- You can display your company logo in the page builder interface by setting the `src` in your config object and passing it to the PageBuilder using `pageBuilderClass.applyPageBuilderConfig(configPageBuilder)`. When provided, the logo will appear in the top of the page builder.
|
|
211
211
|
|
|
212
212
|
Basic Usage:
|
|
213
213
|
|
|
@@ -232,7 +232,7 @@ const pageBuilderStateStore = sharedPageBuilderStore
|
|
|
232
232
|
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
233
233
|
|
|
234
234
|
// Initializing with essential configuration
|
|
235
|
-
pageBuilderClass.
|
|
235
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder)
|
|
236
236
|
</script>
|
|
237
237
|
|
|
238
238
|
<template>
|
|
@@ -295,10 +295,10 @@ const configPageBuilder = {
|
|
|
295
295
|
},
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
pageBuilderClass.
|
|
298
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder);
|
|
299
299
|
|
|
300
300
|
|
|
301
|
-
let storedComponents = pageBuilderClass.
|
|
301
|
+
let storedComponents = pageBuilderClass.loadStoredComponentsFromStorage();
|
|
302
302
|
let contentFromPageBuilder = "";
|
|
303
303
|
|
|
304
304
|
try {
|
|
@@ -346,7 +346,7 @@ const configPageBuilder = {
|
|
|
346
346
|
},
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
pageBuilderClass.
|
|
349
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder);
|
|
350
350
|
|
|
351
351
|
const createResource = async function(){
|
|
352
352
|
pageBuilderClass.deleteAllComponents();
|
|
@@ -380,7 +380,7 @@ const configPageBuilder = {
|
|
|
380
380
|
},
|
|
381
381
|
};
|
|
382
382
|
|
|
383
|
-
pageBuilderClass.
|
|
383
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder);
|
|
384
384
|
|
|
385
385
|
const updateResource = async function() {
|
|
386
386
|
pageBuilderClass.deleteAllComponents();
|
|
@@ -420,10 +420,10 @@ const configPageBuilder = {
|
|
|
420
420
|
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
421
421
|
|
|
422
422
|
// Initializing with essential configuration
|
|
423
|
-
pageBuilderClass.
|
|
423
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder)
|
|
424
424
|
|
|
425
425
|
// Populating page builder with existing resource content
|
|
426
|
-
pageBuilderClass.
|
|
426
|
+
pageBuilderClass.mountComponentsToDOM(existingResourceFromBackend)
|
|
427
427
|
</script>
|
|
428
428
|
|
|
429
429
|
|
|
@@ -467,7 +467,7 @@ const configPageBuilder = {
|
|
|
467
467
|
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
468
468
|
|
|
469
469
|
// Initializing with essential configuration
|
|
470
|
-
pageBuilderClass.
|
|
470
|
+
pageBuilderClass.applyPageBuilderConfig(configPageBuilder)
|
|
471
471
|
</script>
|
|
472
472
|
|
|
473
473
|
<template>
|
|
@@ -482,9 +482,9 @@ pageBuilderClass.setConfigPageBuilder(configPageBuilder)
|
|
|
482
482
|
To load existing content that was created with this PageBuilder from any backend:
|
|
483
483
|
|
|
484
484
|
- Use `sharedPageBuilderStore` to ensure the external `PageBuilderClass` and internal `PageBuilder` component share the same state.
|
|
485
|
-
- Import `PageBuilderClass` which contains all methods to manipulate and control the page builder state. Use the `
|
|
485
|
+
- Import `PageBuilderClass` which contains all methods to manipulate and control the page builder state. Use the `mountComponentsToDOM()` method to load existing content into the page builder.
|
|
486
486
|
- The `PageBuilderClass` uses the shared store to maintain state consistency between external operations and the internal `PageBuilder` component, ensuring that when you load content externally it appears correctly in the PageBuilder interface.
|
|
487
|
-
- Set `formType` to `"update"` in your config object and pass it to the PageBuilder using `pageBuilderClass.
|
|
487
|
+
- Set `formType` to `"update"` in your config object and pass it to the PageBuilder using `pageBuilderClass.applyPageBuilderConfig(configPageBuilder)`. This tells the PageBuilder that you're editing an existing resource rather than creating a new one, which affects how the component handles data and interactions.
|
|
488
488
|
|
|
489
489
|
**Example: Set `formType` to "update" for editing an existing resource**
|
|
490
490
|
|
|
@@ -526,7 +526,7 @@ const existingResourceFromBackend = [
|
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
// Populating page builder with existing resource content from backend
|
|
529
|
-
pageBuilderClass.
|
|
529
|
+
pageBuilderClass.mountComponentsToDOM(existingResourceFromBackend)
|
|
530
530
|
</script>
|
|
531
531
|
|
|
532
532
|
<template>
|