@myissue/vue-website-page-builder 3.3.54 → 3.3.55
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 +3 -15
- package/dist/home/page_builder_architecture.png +0 -0
- package/dist/vue-website-page-builder.js +12339 -12367
- package/dist/vue-website-page-builder.umd.cjs +39 -39
- package/package.json +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +46 -25
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +29 -5
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +0 -24
- package/src/DemoComponents/HomeSection.vue +1 -1
- package/src/composables/PageBuilderService.ts +10 -8
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ The Page Builder is packed with features:
|
|
|
75
75
|
- **Global Styles**: Global Styles for fonts, designs, & colors.
|
|
76
76
|
- **YouTube Videos**: Integrate video content smoothly.
|
|
77
77
|
- **Tailwind Support**: Fully compatible with Tailwind CSS (with automatic class prefixing to avoid conflicts).
|
|
78
|
-
- **Styles Prefixed**: No risk of style conflicts between the builder and your app.
|
|
78
|
+
- **Styles Prefixed**: To ensure clean and predictable styling, the builder uses Scoped Style Isolation. No risk of style conflicts between the builder and your app.
|
|
79
79
|
|
|
80
80
|
Powerful Page Builder for any growing merchants, brands, & agencies. Empower users to create the perfect content with the Page Builder.
|
|
81
81
|
|
|
@@ -188,23 +188,11 @@ console.info('You may inspect this result for message, status, or error:', resul
|
|
|
188
188
|
## Important: CSS Prefixing (`pbx-`)
|
|
189
189
|
|
|
190
190
|
All CSS classes generated or processed by the Page Builder—including Tailwind utilities and your custom classes—are automatically prefixed with `pbx-`. This ensures the builder’s styles never conflict with your app’s existing CSS or Tailwind setup.
|
|
191
|
+
This prevents global styles from leaking into the builder and vice versa, which is crucial for embedding the builder into larger apps or white-label environments.
|
|
191
192
|
|
|
192
193
|
**How does this affect you?**
|
|
193
194
|
|
|
194
|
-
|
|
195
|
-
- 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`.
|
|
196
|
-
|
|
197
|
-
**Example:**
|
|
198
|
-
|
|
199
|
-
```html
|
|
200
|
-
<div class="pbx-myCustomCSSClass pbx-bg-blue-100 md:pbx-grid-cols-2"></div>
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
```css
|
|
204
|
-
.pbx-myCustomCSSClass {
|
|
205
|
-
margin-bottom: 2rem;
|
|
206
|
-
}
|
|
207
|
-
```
|
|
195
|
+
When a user adds a component into the page builder, all classes from that component are automatically prefixed with pbx- (e.g., pbx-button, pbx-container) to ensure style isolation and avoid conflicts.
|
|
208
196
|
|
|
209
197
|
> **Note:**
|
|
210
198
|
> Simply import the builder’s CSS file once in your project. All builder styles are namespaced, so there is no risk of style conflicts
|
|
Binary file
|