@myissue/vue-website-page-builder 3.2.86 → 3.2.91

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.
Files changed (59) hide show
  1. package/README.md +46 -3
  2. package/dist/vue-website-page-builder.css +1 -1
  3. package/dist/vue-website-page-builder.js +9217 -9022
  4. package/dist/vue-website-page-builder.umd.cjs +38 -38
  5. package/package.json +2 -2
  6. package/src/Components/Homepage/Footer.vue +9 -7
  7. package/src/Components/Homepage/Navbar.vue +6 -4
  8. package/src/Components/Layouts/FullWidthElement.vue +6 -6
  9. package/src/Components/Modals/BuilderComponents.vue +12 -6
  10. package/src/Components/Modals/DynamicModalBuilder.vue +39 -47
  11. package/src/Components/Modals/MediaLibraryModal.vue +2 -2
  12. package/src/Components/Modals/ModalBuilder.vue +23 -19
  13. package/src/Components/PageBuilder/DefaultComponents/DefaultBuilderComponents.vue +29 -17
  14. package/src/Components/PageBuilder/DefaultComponents/DefaultMediaLibraryComponent.vue +2 -2
  15. package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +22 -20
  16. package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +17 -17
  17. package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +28 -26
  18. package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +13 -11
  19. package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +5 -5
  20. package/src/Components/PageBuilder/EditorMenu/Editables/DeleteElement.vue +4 -4
  21. package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +22 -19
  22. package/src/Components/PageBuilder/EditorMenu/Editables/ElementEditor.vue +11 -11
  23. package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +4 -4
  24. package/src/Components/PageBuilder/EditorMenu/Editables/LinkEditor.vue +74 -66
  25. package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +26 -21
  26. package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +26 -21
  27. package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +101 -0
  28. package/src/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue +2 -3
  29. package/src/Components/PageBuilder/EditorMenu/Editables/{PaddingPlusMargin.vue → Padding.vue} +8 -41
  30. package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +22 -20
  31. package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +63 -58
  32. package/src/Components/PageBuilder/EditorMenu/EditorAccordion.vue +7 -4
  33. package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +24 -19
  34. package/src/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue +132 -98
  35. package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +216 -146
  36. package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +14 -14
  37. package/src/Components/TipTap/TipTap.vue +4 -4
  38. package/src/Components/TipTap/TipTapInput.vue +39 -33
  39. package/src/DemoComponents/DemoBuilderComponents.vue +1 -1
  40. package/src/DemoComponents/DemoUnsplash.vue +79 -56
  41. package/src/DemoComponents/HomeSection.vue +20 -16
  42. package/src/DemoComponents/html.json +4 -4
  43. package/src/PageBuilder/PageBuilder.vue +62 -57
  44. package/src/PageBuilder/Preview.vue +4 -20
  45. package/src/composables/PageBuilderClass.ts +66 -120
  46. package/src/css/app.css +161 -448
  47. package/src/css/dev-global.css +137 -0
  48. package/src/main.ts +1 -0
  49. package/src/tailwind-safelist.html +1 -1
  50. package/src/utils/builder/tailwaind-colors.ts +488 -488
  51. package/src/utils/builder/tailwind-border-radius.ts +40 -40
  52. package/src/utils/builder/tailwind-border-style-width-color.ts +231 -231
  53. package/src/utils/builder/tailwind-font-sizes.ts +56 -57
  54. package/src/utils/builder/tailwind-font-styles.ts +44 -11
  55. package/src/utils/builder/tailwind-opacities.ts +30 -30
  56. package/src/utils/builder/tailwind-padding-margin.ts +136 -136
  57. package/dist/components.json +0 -36
  58. package/src/Components/Loaders/FullScreenSpinner.vue +0 -9
  59. package/src/Components/Loaders/SmallUniversalSpinner.vue +0 -26
package/README.md CHANGED
@@ -60,7 +60,8 @@ The Page Builder is packed with features:
60
60
  - **Click & Drop**: Easily rearrange elements on your page.
61
61
  - **Reordering**: Change the order of your content without hassle.
62
62
  - **True Visual Editing**: See your changes in real-time as you make them.
63
- - **Media Library**: Access and manage your media files.
63
+ - **Media Library**: Easily inject your own custom media library component.
64
+ -
64
65
  - **Local Storage & Auto-Save**: Never lose your work - changes are saved as you go.
65
66
  - **Unsplash**: Unsplash Integration.
66
67
  - **Responsive Editing**: Ensure your site looks great on all devices.
@@ -69,9 +70,9 @@ The Page Builder is packed with features:
69
70
  - **Undo & Redo**: Experiment confidently with the ability to revert changes.
70
71
  - **Global Styles**: Global Styles for fonts, designs, & colors.
71
72
  - **YouTube Videos**: Integrate video content smoothly.
73
+ - **Styles Prefixed**: No risk of style conflicts between the builder and your app.
72
74
 
73
- Powerful Page Builder for any growing merchants, brands, &
74
- agencies. Empower users to create the perfect content with the Page Builder.
75
+ Powerful Page Builder for any growing merchants, brands, & agencies. Empower users to create the perfect content with the Page Builder.
75
76
 
76
77
  <img style="max-width: 100%;" src="./public/home/text_editor.jpg" alt="Vue Website Page Builder - the media library" />
77
78
 
@@ -140,6 +141,48 @@ This import automatically includes:
140
141
  - ✅ Google Material Icons (no additional setup needed)
141
142
  - ✅ Responsive design utilities
142
143
 
144
+ ### Important: CSS Prefix (`pbx-`) for All Builder Styles
145
+
146
+ The Page Builder automatically adds a `pbx-` prefix to **all CSS classes** it generates or processes, including Tailwind utility classes and any custom classes you add through the builder interface. This namespacing ensures that the builder’s styles will **not conflict** with your application's existing CSS or Tailwind classes.
147
+
148
+ **What does this mean for you?**
149
+
150
+ - If you create your own custom components to use with the Page Builder (instead of the default ones), **remember that the builder will automatically add the `pbx-` prefix to every CSS class** in your component’s markup. This applies to both Tailwind utility classes and any custom classes you define.
151
+ - For example, if you use a custom class called `myCustomCSSClass` in your component, it will be rendered as `pbx-myCustomCSSClass` in the final HTML output.
152
+ - All Tailwind classes are also prefixed, e.g. `bg-red-100` becomes `pbx-bg-red-100`, `md:grid-cols-2` becomes `md:pbx-grid-cols-2`, etc.
153
+
154
+ **Why is this important?**
155
+
156
+ - The prefixing is done automatically by the builder to avoid style conflicts between the builder’s output and your own app’s CSS or Tailwind setup.
157
+
158
+ **Example:**
159
+
160
+ ```html
161
+ <!-- Builder output -->
162
+ <div class="pbx-myCustomCSSClass pbx-bg-blue-100 md:pbx-grid-cols-2"></div>
163
+ ```
164
+
165
+ ```css
166
+ /* To style this element, use the pbx- prefix */
167
+ .pbx-myCustomCSSClass {
168
+ margin-bottom: 2rem;
169
+ }
170
+ ```
171
+
172
+ **When** you import the builder’s CSS file:
173
+
174
+ ```js
175
+ import '@myissue/vue-website-page-builder/style.css'
176
+ ```
177
+
178
+ - ✅ **All styles included in this file are already prefixed with `pbx-`**.
179
+ - ✅ **All Tailwind and custom classes generated by the builder are automatically prefixed with `pbx-`**.
180
+ - ✅ **Any custom components you create for the builder will also have their classes prefixed automatically**.
181
+
182
+ **What does this mean for you?**
183
+
184
+ - There is no risk of style conflicts between the builder and your app, since all builder-related styles are namespaced.
185
+
143
186
  ### Rendering Only the HTML Output from the Page Builder in Other Frameworks (React, Nuxt, etc.)
144
187
 
145
188
  If you use the Page Builder to generate HTML pages and want to render them in another application (such as React, Nuxt, or any server-side app), simply install the Page Builder package in your target project and import its CSS file. This ensures that all Tailwind and builder-specific styles are applied to the rendered HTML.