@myissue/vue-website-page-builder 3.2.28 → 3.2.31

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
@@ -2,14 +2,6 @@
2
2
  <img width="200" style="max-width: 100%;" src="./public/logo/logo.svg" alt="Vue Website Page Builder Logo" />
3
3
  </p>
4
4
 
5
- ## **DEVELOPMENT VERSION - NOT READY FOR PRODUCTION**
6
-
7
- 🚀 **Official Launch Date: June 16, 2025**
8
- We're working hard to bring you a production-ready page builder. Stay tuned for updates!
9
-
10
- You are welcome to test the builder and report any bugs or feedback before the official launch date.
11
- Your input will help us deliver a more stable and feature-rich release!
12
-
13
5
  # Free Click & Drop Page Builder
14
6
 
15
7
  ## Overview
@@ -368,6 +360,37 @@ const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
368
360
 
369
361
  // Initializing with essential configuration
370
362
  pageBuilderClass.setConfigPageBuilder(configPageBuilder)
363
+
364
+ // Recommended HTML wrapper for optimal layout and responsiveness:
365
+ // Wrap your components using the following structure to ensure proper spacing and alignment:
366
+ //
367
+ // <section>
368
+ // <div class="relative py-4">
369
+ // <div class="mx-auto max-w-7xl lg:px-4 px-2">
370
+ // <div class="break-words">
371
+ // <!-- Your HTML layout goes here -->
372
+ // </div>
373
+ // </div>
374
+ // </div>
375
+ // </section>
376
+
377
+
378
+ const existingResourceFromBackend = [
379
+ {
380
+ html_code:
381
+ '<section><div class="relative py-4"><div class="mx-auto max-w-7xl lg:px-4 px-2"><div class="break-words"><h2>Component Example One</h2></div></div></div></section>',
382
+ id: null,
383
+ title: 'Header H2',
384
+ },
385
+ {
386
+ html_code:
387
+ '<section><div class="relative py-4"><div class="mx-auto max-w-7xl lg:px-4 px-2"><div class="break-words" selected=""><h3>Component Example Two</h3></div></div></div></section>',
388
+ id: null,
389
+ title: 'Header H3',
390
+ },
391
+ ]
392
+
393
+
371
394
  // Populating page builder with existing resource content from backend
372
395
  pageBuilderClass.loadExistingContent(existingResourceFromBackend)
373
396
  </script>
@@ -384,6 +407,23 @@ The example below shows the structure as it would appear when loaded from local
384
407
  - Example JSON string (from localStorage or backend)
385
408
  - For existing resources, id will always be present and set by the page builder.
386
409
 
410
+ Example `existingResourceFromBackend`:
411
+
412
+ ```json
413
+ [
414
+ {
415
+ "html_code": "<section><div class=\"relative py-4\"><div class=\"mx-auto max-w-7xl lg:px-4 px-2\"><div class=\"break-words\"><h2>Component Example One</h2></div></div></div></section>",
416
+ "id": null,
417
+ "title": "Header H2"
418
+ },
419
+ {
420
+ "html_code": "<section><div class=\"relative py-4\"><div class=\"mx-auto max-w-7xl lg:px-4 px-2\"><div class=\"break-words\" selected=\"\"><h3>Component Example Two</h3></div></div></div></section>",
421
+ "id": null,
422
+ "title": "Header H3"
423
+ }
424
+ ]
425
+ ```
426
+
387
427
  ### Customization
388
428
 
389
429
  Customizing the page builder is made simple since all the logic resides in the PageBuilder Class.