@myissue/vue-website-page-builder 3.3.65 → 3.3.68
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 +70 -4
- package/dist/vue-website-page-builder.js +14959 -12086
- package/dist/vue-website-page-builder.umd.cjs +78 -57
- package/package.json +2 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +2 -2
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +19 -13
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +9 -7
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +8 -7
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +7 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +5 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +9 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/Padding.vue +9 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/StyleEditor.vue +8 -7
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +25 -9
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +9 -12
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +3 -3
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +4 -4
- package/src/PageBuilder/PageBuilder.vue +83 -5
- package/src/composables/builderInstance.ts +3 -2
- package/src/i18n.ts +28 -0
- package/src/locales/ar.json +136 -0
- package/src/locales/de.json +136 -0
- package/src/locales/en.json +136 -0
- package/src/locales/es.json +136 -0
- package/src/locales/fr.json +136 -0
- package/src/locales/hi.json +136 -0
- package/src/locales/ja.json +136 -0
- package/src/locales/pt.json +136 -0
- package/src/locales/ru.json +136 -0
- package/src/locales/zh-Hans.json +136 -0
- package/src/main.ts +10 -5
- package/src/services/PageBuilderService.ts +150 -29
- package/src/tests/PageBuilderTest.vue +24 -54
- package/src/tests/pageBuilderService.test.ts +7 -1
- package/src/types/index.ts +7 -1
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
- [Installation](#installation)
|
|
12
12
|
- [About](#about)
|
|
13
13
|
- [Features](#features)
|
|
14
|
+
- [Trusted by Freelancers and Leading Brands](#trusted-by-freelancers-and-leading-brands)
|
|
14
15
|
- [Technical Details](#technical-details)
|
|
15
16
|
- [Documentation](#documentation)
|
|
16
17
|
- [Requirements](#requirements)
|
|
@@ -22,6 +23,8 @@
|
|
|
22
23
|
- [Important: CSS Prefixing (`pbx-`)](#important-css-prefixing-pbx-)
|
|
23
24
|
- [Rendering HTML Output in Other Frameworks (React, Nuxt, etc.)](#rendering-html-output-in-other-frameworks-react-nuxt-etc)
|
|
24
25
|
- [Providing Configuration to the Page Builder](#providing-configuration-to-the-page-builder)
|
|
26
|
+
- [Comprehensive Language Support in the Page Builder](#comprehensive-language-support-in-the-page-builder)
|
|
27
|
+
- [Disabling the Language Dropdown](#disabling-the-language-dropdown)
|
|
25
28
|
- [Local Storage \& Auto-Save](#local-storage--auto-save)
|
|
26
29
|
- [Retrieving the Latest HTML Content for Form Submission](#retrieving-the-latest-html-content-for-form-submission)
|
|
27
30
|
- [Resetting the Builder After Successful Resource Creation or Update](#resetting-the-builder-after-successful-resource-creation-or-update)
|
|
@@ -87,7 +90,7 @@ npm install @myissue/vue-website-page-builder
|
|
|
87
90
|
|
|
88
91
|
## About
|
|
89
92
|
|
|
90
|
-
A Page Builder designed for growth. Build your website pages with ready-made components that are fully customizable and always responsive, designed to fit every need. A powerful Page Builder for growing merchants, brands, and agencies.
|
|
93
|
+
A Page Builder designed for growth. Build your website pages with ready-made components that are fully customizable and always responsive, designed to fit every need. A powerful Page Builder for growing merchants, brands, and agencies. And it is totally free.
|
|
91
94
|
|
|
92
95
|
<img style="max-width: 100%;" src="./public/home/media_library.jpg" alt="Vue Website Page Builder - the editor" />
|
|
93
96
|
|
|
@@ -101,6 +104,7 @@ Includes:
|
|
|
101
104
|
The Page Builder is packed with features:
|
|
102
105
|
|
|
103
106
|
- **Click & Drop**: Easily rearrange elements on your page.
|
|
107
|
+
- **Multilingual Page Builder**: : The Page Builder now offers comprehensive language support, empowering users around the world to build pages in their native language. Supported languages include English, Simplified Chinese, French, Japanese, Russian, Spanish, Portuguese, German, Arabic, and Hindi — making content creation truly global.
|
|
104
108
|
- **Reordering**: Change the order of your content without hassle.
|
|
105
109
|
- **True Visual Editing**: See your changes in real-time as you make them.
|
|
106
110
|
- **Media Library**: Easily inject your own custom media library component.
|
|
@@ -117,9 +121,9 @@ The Page Builder is packed with features:
|
|
|
117
121
|
- **Tailwind Support**: Fully compatible with Tailwind CSS (with automatic class prefixing to avoid conflicts).
|
|
118
122
|
- **Scoped Styles**: To ensure clean and predictable styling, the builder uses scoped style isolation. There is no risk of style conflicts between the builder and your app.
|
|
119
123
|
|
|
120
|
-
|
|
124
|
+
### Trusted by Freelancers and Leading Brands
|
|
121
125
|
|
|
122
|
-
|
|
126
|
+
From solo freelancers to fast-growing startups and established enterprises, the Page Builder is trusted by teams everywhere. With its intuitive click-and-drop editor, real-time visual editing, and a rich library of reusable components, you can turn ideas into polished pages in minutes. Built for merchants, brands, and agencies, it empowers anyone to create high-impact content.
|
|
123
127
|
|
|
124
128
|
## Technical Details
|
|
125
129
|
|
|
@@ -316,7 +320,10 @@ const configPageBuilder = {
|
|
|
316
320
|
},
|
|
317
321
|
userSettings: {
|
|
318
322
|
theme: 'light',
|
|
319
|
-
language:
|
|
323
|
+
language: {
|
|
324
|
+
default: 'en',
|
|
325
|
+
enable: ['en', 'zh-Hans', 'fr'],
|
|
326
|
+
},
|
|
320
327
|
autoSave: true,
|
|
321
328
|
},
|
|
322
329
|
settings: {
|
|
@@ -336,6 +343,65 @@ console.info('You may inspect this result for message, status, or error:', resul
|
|
|
336
343
|
</template>
|
|
337
344
|
```
|
|
338
345
|
|
|
346
|
+
## Comprehensive Language Support in the Page Builder
|
|
347
|
+
|
|
348
|
+
The Page Builder offers robust multilingual support, enabling you to reach a global audience with ease. By default, it supports the following languages, chosen for their widespread use and strong developer communities:
|
|
349
|
+
|
|
350
|
+
| Language | Code |
|
|
351
|
+
| -------------------- | ------- |
|
|
352
|
+
| English | en |
|
|
353
|
+
| Chinese (Simplified) | zh-Hans |
|
|
354
|
+
| French | fr |
|
|
355
|
+
| Japanese | ja |
|
|
356
|
+
| Russian | ru |
|
|
357
|
+
| Spanish | es |
|
|
358
|
+
| Portuguese (Brazil) | pt |
|
|
359
|
+
| German | de |
|
|
360
|
+
| Arabic | ar |
|
|
361
|
+
| Hindi | hi |
|
|
362
|
+
|
|
363
|
+
You can set a default language for your project:
|
|
364
|
+
|
|
365
|
+
```js
|
|
366
|
+
userSettings: {
|
|
367
|
+
language: {
|
|
368
|
+
default: 'en',
|
|
369
|
+
enable: ['en', 'zh-Hans', 'fr'],
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
If you prefer to offer only a subset of these languages for users to switch between, specify them using the `enable` option.
|
|
375
|
+
|
|
376
|
+
If you do not provide the `enable` array, the Page Builder will default to showing all supported languages by default.
|
|
377
|
+
|
|
378
|
+
```js
|
|
379
|
+
userSettings: {
|
|
380
|
+
language: {
|
|
381
|
+
default: 'en',
|
|
382
|
+
enable: ['en', 'zh-Hans', 'fr'],
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
#### Disabling the Language Dropdown
|
|
388
|
+
|
|
389
|
+
If you want to completely hide the language selector from the UI (e.g., when only one language is available or you want a fixed language), simply set `disableLanguageDropdown` to `true`.
|
|
390
|
+
|
|
391
|
+
Even when the dropdown is disabled, the default language will still be applied automatically. This gives you full control over localization while keeping the interface simple for your users.
|
|
392
|
+
|
|
393
|
+
```js
|
|
394
|
+
userSettings: {
|
|
395
|
+
theme: 'light',
|
|
396
|
+
language: {
|
|
397
|
+
default: 'en',
|
|
398
|
+
disableLanguageDropdown: true,
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
This flexibility allows you to tailor the language experience to your audience’s needs.
|
|
404
|
+
|
|
339
405
|
## Local Storage & Auto-Save
|
|
340
406
|
|
|
341
407
|
The Page Builder automatically saves all changes to the browser’s local storage. Every time you add, edit, or delete a component, your progress is preserved—even if you close the browser or navigate away.
|