@myissue/vue-website-page-builder 3.3.70 → 3.3.72
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 +4 -6
- package/dist/{vue-website-page-builder.css → style.css} +1 -1
- package/dist/vue-website-page-builder.js +8476 -8460
- package/dist/vue-website-page-builder.umd.cjs +63 -62
- package/package.json +2 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.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/StyleEditor.vue +1 -1
- package/src/PageBuilder/PageBuilder.vue +1 -20
- package/src/composables/builderInstance.ts +4 -7
- package/src/css/{app.css → style.css} +15 -0
- package/src/index.ts +5 -2
- package/src/main.ts +3 -4
- package/src/plugin.ts +16 -0
- package/src/services/PageBuilderService.ts +4 -27
- package/src/tests/PageBuilderTest.vue +1 -0
- package/src/utils/builder/html-doc-declaration-with-components.ts +1 -1
package/README.md
CHANGED
|
@@ -167,21 +167,19 @@ This section walks you through the essential steps—from installation to render
|
|
|
167
167
|
|
|
168
168
|
To get started with the Page Builder, follow these steps:
|
|
169
169
|
|
|
170
|
-
- **
|
|
170
|
+
- **Use the Page Builder plugin** in your application entry point (e.g., `main.ts` or `main.js`). This sets up the shared builder instance for your entire app.
|
|
171
171
|
- **Access the shared builder instance** anywhere in your application using the `getPageBuilder()` composable.
|
|
172
172
|
- **Import the CSS file once** in your `main.js`, `main.ts`, or root component to ensure proper styling and automatic icon loading.
|
|
173
173
|
|
|
174
174
|
```typescript
|
|
175
175
|
import { createApp } from 'vue'
|
|
176
176
|
import App from './App.vue'
|
|
177
|
-
import {
|
|
177
|
+
import { pageBuilder } from '@myissue/vue-website-page-builder'
|
|
178
178
|
import '@myissue/vue-website-page-builder/style.css'
|
|
179
179
|
|
|
180
|
-
//
|
|
181
|
-
// This must be called once in your app entry point
|
|
182
|
-
initPageBuilder()
|
|
183
|
-
|
|
180
|
+
// Use the Page Builder plugin
|
|
184
181
|
const app = createApp(App)
|
|
182
|
+
app.use(pageBuilder)
|
|
185
183
|
app.mount('#app')
|
|
186
184
|
```
|
|
187
185
|
|