@myissue/vue-website-page-builder 3.2.81 → 3.2.83

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 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.setConfigPageBuilder(configPageBuilder)
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.setConfigPageBuilder(configPageBuilder)`. When provided, the logo will appear at the top of the Page Builder with proper spacing in the toolbar.
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.setConfigPageBuilder(configPageBuilder)`. When provided, the logo will appear in the top of the page builder.
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.setConfigPageBuilder(configPageBuilder)
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.setConfigPageBuilder(configPageBuilder);
298
+ pageBuilderClass.applyPageBuilderConfig(configPageBuilder);
299
299
 
300
300
 
301
- let storedComponents = pageBuilderClass.areComponentsStoredInLocalStorage();
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.setConfigPageBuilder(configPageBuilder);
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.setConfigPageBuilder(configPageBuilder);
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.setConfigPageBuilder(configPageBuilder)
423
+ pageBuilderClass.applyPageBuilderConfig(configPageBuilder)
424
424
 
425
425
  // Populating page builder with existing resource content
426
- pageBuilderClass.loadExistingContent(existingResourceFromBackend)
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.setConfigPageBuilder(configPageBuilder)
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 `loadExistingContent()` method to load existing content into the page builder.
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.setConfigPageBuilder(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.
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.loadExistingContent(existingResourceFromBackend)
529
+ pageBuilderClass.mountComponentsToDOM(existingResourceFromBackend)
530
530
  </script>
531
531
 
532
532
  <template>