@myissue/vue-website-page-builder 3.4.20 → 3.4.22
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 +22 -24
- package/dist/vue-website-page-builder.js +1 -1
- package/dist/vue-website-page-builder.umd.cjs +1 -1
- package/package.json +2 -3
- package/src/App.vue +0 -28
- package/src/Components/Homepage/Footer.vue +0 -32
- package/src/Components/Homepage/Navbar.vue +0 -25
- package/src/Components/Layouts/FullWidthElement.vue +0 -34
- package/src/Components/Loaders/GlobalLoader.vue +0 -18
- package/src/Components/Modals/BuilderComponents.vue +0 -53
- package/src/Components/Modals/DynamicModalBuilder.vue +0 -209
- package/src/Components/Modals/MediaLibraryModal.vue +0 -61
- package/src/Components/Modals/ModalBuilder.vue +0 -117
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +0 -121
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +0 -188
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +0 -176
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +0 -112
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +0 -108
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +0 -541
- package/src/Components/PageBuilder/EditorMenu/Editables/HTMLEditor.vue +0 -203
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +0 -96
- package/src/Components/PageBuilder/EditorMenu/Editables/LinkEditor.vue +0 -315
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +0 -107
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +0 -106
- package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +0 -116
- package/src/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue +0 -19
- package/src/Components/PageBuilder/EditorMenu/Editables/Padding.vue +0 -117
- package/src/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue +0 -123
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +0 -123
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +0 -237
- package/src/Components/PageBuilder/EditorMenu/EditorAccordion.vue +0 -46
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +0 -368
- package/src/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue +0 -476
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +0 -581
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +0 -248
- package/src/Components/PageBuilder/UndoRedo/UndoRedo.vue +0 -90
- package/src/Components/TipTap/TipTap.vue +0 -25
- package/src/Components/TipTap/TipTapInput.vue +0 -341
- package/src/PageBuilder/PageBuilder.vue +0 -1025
- package/src/PageBuilder/Preview.vue +0 -64
- package/src/composables/builderInstance.ts +0 -47
- package/src/composables/delay.ts +0 -5
- package/src/composables/extractCleanHTMLFromPageBuilder.ts +0 -59
- package/src/composables/preloadImage.ts +0 -8
- package/src/composables/useDebounce.ts +0 -8
- package/src/composables/usePageBuilderModal.ts +0 -25
- package/src/composables/useTranslations.ts +0 -28
- package/src/css/dev-global.css +0 -24
- package/src/css/style.css +0 -600
- package/src/helpers/isEmptyObject.ts +0 -5
- package/src/index.ts +0 -28
- package/src/locales/ar.json +0 -170
- package/src/locales/de.json +0 -171
- package/src/locales/en.json +0 -171
- package/src/locales/es.json +0 -171
- package/src/locales/fr.json +0 -171
- package/src/locales/hi.json +0 -172
- package/src/locales/ja.json +0 -171
- package/src/locales/pt.json +0 -171
- package/src/locales/ru.json +0 -171
- package/src/locales/zh-Hans.json +0 -171
- package/src/main.ts +0 -14
- package/src/plugin.ts +0 -16
- package/src/services/LocalStorageManager.ts +0 -25
- package/src/services/PageBuilderService.ts +0 -3191
- package/src/stores/page-builder-state.ts +0 -498
- package/src/stores/shared-store.ts +0 -13
- package/src/tailwind-safelist.html +0 -3
- package/src/tests/DefaultComponents/DefaultBuilderComponents.vue +0 -284
- package/src/tests/DefaultComponents/DefaultMediaLibraryComponent.vue +0 -10
- package/src/tests/PageBuilderTest.vue +0 -82
- package/src/tests/TestComponents/DemoBuilderComponentsTest.vue +0 -5
- package/src/tests/TestComponents/DemoMediaLibraryComponentTest.vue +0 -8
- package/src/tests/TestComponents/DemoUnsplash.vue +0 -389
- package/src/tests/componentsArray.test.json +0 -62
- package/src/tests/pageBuilderService.test.ts +0 -165
- package/src/types/global.d.ts +0 -11
- package/src/types/index.ts +0 -306
- package/src/utils/builder/html-doc-declaration-with-components.ts +0 -7
- package/src/utils/builder/tailwaind-colors.ts +0 -503
- package/src/utils/builder/tailwind-border-radius.ts +0 -67
- package/src/utils/builder/tailwind-border-style-width-color.ts +0 -272
- package/src/utils/builder/tailwind-font-sizes.ts +0 -75
- package/src/utils/builder/tailwind-font-styles.ts +0 -56
- package/src/utils/builder/tailwind-opacities.ts +0 -45
- package/src/utils/builder/tailwind-padding-margin.ts +0 -159
- package/src/utils/html-elements/component.ts +0 -485
- package/src/utils/html-elements/componentHelpers.ts +0 -98
- package/src/utils/html-elements/themes.ts +0 -85
package/README.md
CHANGED
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
- [Initializing the Page Builder](#initializing-the-page-builder)
|
|
22
22
|
- [Nuxt 3 Integration](#nuxt-3-integration)
|
|
23
23
|
- [Create a Nuxt Plugin](#create-a-nuxt-plugin)
|
|
24
|
-
|
|
25
|
-
- [Why Use the Shared Instance?](#why-use-the-shared-instance)
|
|
26
|
-
- [Using the Page Builder Component](#using-the-page-builder-component)
|
|
24
|
+
- [Why Use the Shared Instance? By always accessing the shared instance, you avoid creating](#why-use-the-shared-instance-by-always-accessing-the-shared-instance-you-avoid-creating)
|
|
27
25
|
- [Important: CSS Prefixing (`pbx-`)](#important-css-prefixing-pbx-)
|
|
28
26
|
- [Rendering HTML Output in Other Frameworks (React, Nuxt, etc.)](#rendering-html-output-in-other-frameworks-react-nuxt-etc)
|
|
29
27
|
- [Providing Configuration to the Page Builder](#providing-configuration-to-the-page-builder)
|
|
@@ -245,18 +243,21 @@ app.mount('#app')
|
|
|
245
243
|
|
|
246
244
|
To use `@myissue/vue-website-page-builder` in a Nuxt 3 project, follow these steps:
|
|
247
245
|
|
|
246
|
+
```bash
|
|
247
|
+
npm install @myissue/vue-website-page-builder
|
|
248
|
+
```
|
|
249
|
+
|
|
248
250
|
#### Create a Nuxt Plugin
|
|
249
251
|
|
|
250
252
|
Create a file:
|
|
251
253
|
|
|
252
254
|
```
|
|
253
|
-
|
|
255
|
+
plugins/page-builder.client.js
|
|
254
256
|
```
|
|
255
257
|
|
|
256
258
|
Add:
|
|
257
259
|
|
|
258
260
|
```javascript
|
|
259
|
-
import { defineNuxtPlugin } from '#app'
|
|
260
261
|
import { pageBuilder } from '@myissue/vue-website-page-builder'
|
|
261
262
|
import '@myissue/vue-website-page-builder/style.css'
|
|
262
263
|
|
|
@@ -265,29 +266,26 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
265
266
|
})
|
|
266
267
|
```
|
|
267
268
|
|
|
268
|
-
|
|
269
|
+
Uusing the component:
|
|
269
270
|
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
```vue
|
|
272
|
+
<template>
|
|
273
|
+
<client-only>
|
|
274
|
+
<PageBuilder />
|
|
275
|
+
</client-only>
|
|
276
|
+
</template>
|
|
274
277
|
```
|
|
275
278
|
|
|
276
|
-
### Why Use the Shared Instance?
|
|
279
|
+
### Why Use the Shared Instance? By always accessing the shared instance, you avoid creating
|
|
277
280
|
|
|
278
|
-
|
|
281
|
+
multiple, isolated copies of the builder. This prevents data inconsistencies, synchronization
|
|
282
|
+
issues, and unpredictable behavior. All components and modules interact with the same centralized
|
|
283
|
+
service, ensuring that updates and state changes are reflected everywhere in your application. ###
|
|
284
|
+
Using the Page Builder Component Ensure the following configuration options are set: - **`formType`
|
|
285
|
+
(required):** Indicates whether you are creating or updating a resource. This is used to retrieve
|
|
286
|
+
the correct content from local storage. - **`formName` (required):** Specifies the resource type
|
|
287
|
+
(for example, `article`, `jobPost`, `store`, etc.). ```vue
|
|
279
288
|
|
|
280
|
-
### Using the Page Builder Component
|
|
281
|
-
|
|
282
|
-
Ensure the following configuration options are set:
|
|
283
|
-
|
|
284
|
-
- **`formType` (required):**
|
|
285
|
-
Indicates whether you are creating or updating a resource. This is used to retrieve the correct content from local storage.
|
|
286
|
-
|
|
287
|
-
- **`formName` (required):**
|
|
288
|
-
Specifies the resource type (for example, `article`, `jobPost`, `store`, etc.).
|
|
289
|
-
|
|
290
|
-
```vue
|
|
291
289
|
<script setup>
|
|
292
290
|
import { PageBuilder, getPageBuilder } from '@myissue/vue-website-page-builder'
|
|
293
291
|
import '@myissue/vue-website-page-builder/style.css'
|
|
@@ -308,7 +306,7 @@ console.info('You may inspect this result for message, status, or error:', resul
|
|
|
308
306
|
<template>
|
|
309
307
|
<PageBuilder />
|
|
310
308
|
</template>
|
|
311
|
-
|
|
309
|
+
````
|
|
312
310
|
|
|
313
311
|
## Important: CSS Prefixing (`pbx-`)
|
|
314
312
|
|
|
@@ -25130,7 +25130,7 @@ const Zk = ["src"], eC = {
|
|
|
25130
25130
|
}, UE = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, WE = { class: "pbx-overflow-x-auto" }, KE = { class: "pbx-w-max" }, GE = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, JE = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, YE = { class: "pbx-min-w-[30rem] pbx-w-max" }, QE = { key: 0 }, XE = { key: 1 }, ZE = { key: 0 }, e3 = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, t3 = { class: "pbx-min-w-[30rem] pbx-w-max" }, n3 = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, r3 = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, i3 = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, s3 = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, o3 = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, l3 = {
|
|
25131
25131
|
__name: "PageBuilderSettings",
|
|
25132
25132
|
setup(n) {
|
|
25133
|
-
const e = "3.4.
|
|
25133
|
+
const e = "3.4.22", t = ke, r = I(() => t.getPageBuilderConfig);
|
|
25134
25134
|
return (i, s) => {
|
|
25135
25135
|
var o, l, a, p, c, u, f, h, b, x, m, v, S, k, g, O;
|
|
25136
25136
|
return w(), M("div", AT, [
|