@myissue/vue-website-page-builder 3.3.78 → 3.3.80

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 (33) hide show
  1. package/dist/{ar-CCqXqp3s.js → ar-BKP2GbBb.js} +40 -20
  2. package/dist/{de-DU6Hv8W2.js → de-CX2p6WRg.js} +45 -25
  3. package/dist/{en-DzWxts11.js → en-hbIz7x2o.js} +32 -12
  4. package/dist/{es-DmzWA1F8.js → es-BxsOdyOn.js} +32 -12
  5. package/dist/{fr-BARDIQ1D.js → fr-SEE-rKYV.js} +48 -28
  6. package/dist/{hi-BgQJcRDP.js → hi-DZd4Kv3J.js} +38 -18
  7. package/dist/{ja-Drg74-B1.js → ja-BGzkN2We.js} +42 -22
  8. package/dist/{pt-5fYEJgIl.js → pt-BMfrvh-9.js} +43 -23
  9. package/dist/{ru-D0zybCPa.js → ru-wi4VbdJp.js} +40 -20
  10. package/dist/style.css +1 -1
  11. package/dist/vue-website-page-builder.js +2250 -2249
  12. package/dist/vue-website-page-builder.umd.cjs +37 -37
  13. package/dist/{zh-Hans-notf0z2N.js → zh-Hans-B4txt13y.js} +42 -22
  14. package/package.json +1 -1
  15. package/src/Components/Modals/ModalBuilder.vue +2 -2
  16. package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +1 -1
  17. package/src/Components/TipTap/TipTap.vue +4 -1
  18. package/src/Components/TipTap/TipTapInput.vue +17 -12
  19. package/src/PageBuilder/PageBuilder.vue +277 -280
  20. package/src/PageBuilder/Preview.vue +1 -1
  21. package/src/locales/ar.json +18 -1
  22. package/src/locales/de.json +18 -1
  23. package/src/locales/en.json +18 -1
  24. package/src/locales/es.json +18 -1
  25. package/src/locales/fr.json +18 -1
  26. package/src/locales/hi.json +18 -1
  27. package/src/locales/ja.json +18 -1
  28. package/src/locales/pt.json +18 -1
  29. package/src/locales/ru.json +18 -1
  30. package/src/locales/zh-Hans.json +18 -1
  31. package/src/services/PageBuilderService.ts +3 -13
  32. package/src/tests/PageBuilderTest.vue +34 -10
  33. package/src/tests/componentsArray.test.json +8 -8
@@ -1,4 +1,4 @@
1
- const e = "保存", o = "选项", t = "头像", n = "发布", s = "关闭", a = "组件", i = "样式", r = "排版", l = "选择", d = "内边距", p = "边距", u = "全局", c = "具体", g = "边框", y = "透明", h = "添加", m = "属性", S = "值", C = "关闭", f = "编辑", w = "删除", T = "预览", b = "移动", v = {
1
+ const e = "保存", o = "选项", t = "头像", n = "发布", i = "关闭", s = "组件", a = "样式", r = "排版", l = "选择", d = "内边距", p = "边距", c = "全局", u = "具体", g = "边框", y = "透明", h = "添加", m = "属性", T = "值", S = "关闭", C = "编辑", w = "删除", b = "预览", f = "移动", v = "加粗", B = "链接", D = "列表", L = {
2
2
  "Reset Page": "重置页面",
3
3
  "Global Page Styles": "全局页面样式",
4
4
  "Try the powerful Click & Drop Page Builder—designed for developers and creators who want full control without the hassle. Customize layouts, fonts, and colors. Edit content visually in real time. Add media, embed YouTube videos, or export everything as clean HTML. With responsive editing, local auto-save, Tailwind support, and even Unsplash integration, it's everything you need—wrapped in one seamless builder. Build Stunning Pages in Minutes.": "试试强大的Click & Drop Page Builder——专为希望完全控制而无需麻烦的开发者和创作者设计。自定义布局、字体和颜色。实时可视化编辑内容。添加媒体、嵌入YouTube视频或将所有内容导出为干净的HTML。凭借响应式编辑、本地自动保存、Tailwind支持,甚至Unsplash集成,它是您所需的一切——集成在一个无缝的构建器中。几分钟内构建令人惊叹的页面。",
@@ -16,15 +16,15 @@ const e = "保存", o = "选项", t = "头像", n = "发布", s = "关闭", a =
16
16
  avatar: t,
17
17
  Publish: n,
18
18
  "Add Components to Page": "将组件添加到页面",
19
- Close: s,
19
+ Close: i,
20
20
  "Helper Components": "辅助组件",
21
21
  "Click to add": "点击添加",
22
- component: a,
22
+ component: s,
23
23
  "Layout Components": "布局组件",
24
24
  "Click to add component": "点击添加组件",
25
25
  "Remove all Components": "删除所有组件",
26
26
  "Are you sure you want to remove all Components?": "您确定要删除所有组件吗?",
27
- Styles: i,
27
+ Styles: a,
28
28
  "Apply styles that affect the entire page. These settings include global font family, text color, background color, and other universal styles that apply to all sections.": "应用影响整个页面的样式。这些设置包括全局字体系列、文本颜色、背景颜色和适用于所有部分的其他通用样式。",
29
29
  "Update Page Styles": "更新页面样式",
30
30
  "Download HTML": "下载HTML",
@@ -48,8 +48,8 @@ const e = "保存", o = "选项", t = "头像", n = "发布", s = "关闭", a =
48
48
  "Vertical Margin": "垂直边距",
49
49
  "Horizontal Margin": "水平边距",
50
50
  "Border Radius": "边框半径",
51
- Global: u,
52
- Specific: c,
51
+ Global: c,
52
+ Specific: u,
53
53
  "Border Radius top left": "边框半径 左上",
54
54
  "Border Radius top right": "边框半径 右上",
55
55
  "Border Radius bottom left": "边框半径 左下",
@@ -70,9 +70,9 @@ const e = "保存", o = "选项", t = "头像", n = "发布", s = "关闭", a =
70
70
  "These are the inline styles applied by the builder. Add your own styles and press Enter to apply them to the selected element.": "这些是构建器应用的内联样式。添加您自己的样式,然后按 Enter 将其应用于选定的元素。",
71
71
  "Add your own style.": "添加您自己的样式。",
72
72
  property: m,
73
- value: S,
74
- close: C,
75
- Editing: f,
73
+ value: T,
74
+ close: S,
75
+ Editing: C,
76
76
  "Loading...": "加载中...",
77
77
  "Background Color": "背景颜色",
78
78
  "Text Color": "文字颜色",
@@ -81,32 +81,52 @@ const e = "保存", o = "选项", t = "头像", n = "发布", s = "关闭", a =
81
81
  "Are you sure you want to remove this Component?": "您确定要删除此组件吗?",
82
82
  Delete: w,
83
83
  "Add to the bottom": "添加到底部",
84
- Preview: T,
85
- Mobile: b
84
+ Preview: b,
85
+ Mobile: f,
86
+ "Demo Content": "演示内容",
87
+ "Demo Description": "介绍轻量级和免费的Vue Click & Drop页面构建器。使用Vue轻松创建和增强数字体验。并非所有强大的东西都需要复杂。这款简约轻便的页面构建器提供了一个优雅直观的界面,专注于简单性和速度。创建完全响应式的页面,例如列表、职位板或博客文章,并使用免费的Click & Drop页面构建器轻松管理您的内容。",
88
+ "Demo Title": "令人惊叹的页面的网页构建器",
89
+ "Demo Description Two": "为增长而设计的页面构建器。使用完全可定制且始终响应的现成组件构建您的网站页面,旨在满足所有需求。为不断发展的商家、品牌和代理商提供强大的页面构建器。",
90
+ "Demo Description Three": "设计师喜爱的网站构建器。轻松设计、预览和调整每个屏幕尺寸的布局。干净。快速。直观。并非所有强大的东西都必须看起来很复杂。",
91
+ "Demo Description Four": "确保您的网站在所有设备上看起来都很棒。实时编辑文本内容。选择与您的风格相匹配的完美字体。自信地进行实验,并能够轻松复更改。样式前缀。构建器和您的应用程序之间没有样式冲突的风险。",
92
+ "Demo Title Two": "只需使用Vue发布即可",
93
+ "Demo Title Three": "响应式编辑",
94
+ "Edit text and links": "编辑文本和链接",
95
+ "Enter URL": "输入URL",
96
+ "Line break": "换行",
97
+ Bold: v,
98
+ Link: B,
99
+ "Header 2": "标题2",
100
+ "Header 3": "标题3",
101
+ List: D,
102
+ "Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.": "添加一个有效的URL,将选定的文本转换为可点击的超链接,指向指定的网页地址。"
86
103
  };
87
104
  export {
88
105
  h as Add,
106
+ v as Bold,
89
107
  g as Border,
90
- s as Close,
108
+ i as Close,
91
109
  w as Delete,
92
- f as Editing,
93
- u as Global,
110
+ C as Editing,
111
+ c as Global,
112
+ B as Link,
113
+ D as List,
94
114
  p as Margin,
95
- b as Mobile,
115
+ f as Mobile,
96
116
  o as Options,
97
117
  d as Padding,
98
- T as Preview,
118
+ b as Preview,
99
119
  n as Publish,
100
120
  e as Save,
101
121
  l as Select,
102
- c as Specific,
103
- i as Styles,
122
+ u as Specific,
123
+ a as Styles,
104
124
  y as Transparent,
105
125
  r as Typographies,
106
126
  t as avatar,
107
- C as close,
108
- a as component,
109
- v as default,
127
+ S as close,
128
+ s as component,
129
+ L as default,
110
130
  m as property,
111
- S as value
131
+ T as value
112
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.3.78",
3
+ "version": "3.3.80",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
@@ -72,7 +72,7 @@ const maxWidthClass = computed(() => {
72
72
  ></div>
73
73
 
74
74
  <div
75
- class="pbx-relative pbx-inline-block pbx-bg-white pbx-rounded-xl pbx-text-left pbx-overflow-hidden pbx-shadow-xl pbx-transform pbx-transition-all pbx-max-w-[96vh] pbx-max-h-[98vh] pbx-overflow-y-auto pbx-w-full"
75
+ class="pbx-relative pbx-inline-block pbx-bg-white pbx-rounded-xl pbx-text-left pbx-overflow-hidden pbx-shadow-xl pbx-transform pbx-transition-all pbx-max-w-[96vh] lg:pbx-max-h-[98vh] pbx-max-h-[85vh] pbx-overflow-y-auto pbx-w-full"
76
76
  :class="[
77
77
  maxWidthClass ? maxWidthClass : '',
78
78
  minHeight ? minHeight : '',
@@ -101,7 +101,7 @@ const maxWidthClass = computed(() => {
101
101
  {{ title }}
102
102
  </h3>
103
103
  <div
104
- class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white hover:pbx-fill-white focus-visible:pbx-ring-0"
104
+ class="pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-text-black"
105
105
  @click="handleClose"
106
106
  >
107
107
  <span class="material-symbols-outlined"> close </span>
@@ -97,7 +97,7 @@ const openHTMLSettings = function () {
97
97
  <div class="pbx-mr-2">
98
98
  <!-- User No image Start-->
99
99
  <div
100
- class="pbx-flex pbx-items-center pbx-myPrimaryTag pbx-whitespace-nowrappbx-py-0"
100
+ class="pbx-flex pbx-items-center pbx-myPrimaryTag pbx-whitespace-nowrap pbx-py-0"
101
101
  v-if="
102
102
  getPageBuilderConfig &&
103
103
  getPageBuilderConfig.userForPageBuilder &&
@@ -1,5 +1,8 @@
1
1
  <script setup lang="ts">
2
2
  import { getPageBuilder } from '../../composables/builderInstance'
3
+ import { useTranslations } from '../../composables/useTranslations'
4
+
5
+ const { translate } = useTranslations()
3
6
  const pageBuilderService = getPageBuilder()
4
7
  </script>
5
8
 
@@ -15,7 +18,7 @@ const pageBuilderService = getPageBuilder()
15
18
  class="pbx-myPrimaryButton"
16
19
  >
17
20
  <span class="material-symbols-outlined"> edit </span>
18
- <span>Edit text and links</span>
21
+ <span>{{ translate('Edit text and links') }}</span>
19
22
  </button>
20
23
  </div>
21
24
  </div>
@@ -6,8 +6,11 @@ import Link from '@tiptap/extension-link'
6
6
  import DynamicModalBuilder from '../Modals/DynamicModalBuilder.vue'
7
7
  import { sharedPageBuilderStore } from '../../stores/shared-store'
8
8
  import { getPageBuilder } from '../../composables/builderInstance'
9
+ import { useTranslations } from '../../composables/useTranslations'
9
10
  const pageBuilderService = getPageBuilder()
10
11
 
12
+ const { translate } = useTranslations()
13
+
11
14
  // Use shared store instance
12
15
  const pageBuilderStateStore = sharedPageBuilderStore
13
16
 
@@ -106,12 +109,13 @@ const handleURL = function () {
106
109
  showModalUrl.value = true
107
110
  typeModal.value = 'success'
108
111
  gridColumnModal.value = 2
109
- titleModal.value = 'Enter URL'
110
- descriptionModal.value =
111
- 'Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.'
112
+ titleModal.value = translate('Enter URL')
113
+ descriptionModal.value = translate(
114
+ 'Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.',
115
+ )
112
116
  firstButtonModal.value = 'Close'
113
117
  secondButtonModal.value = urlEnteret.value ? 'Remove url' : null
114
- thirdButtonModal.value = 'Save'
118
+ thirdButtonModal.value = translate('Save')
115
119
 
116
120
  // handle click
117
121
  firstModalButtonFunctionDynamicModalBuilder.value = function () {
@@ -196,7 +200,8 @@ onMounted(() => {
196
200
  <header></header>
197
201
  <main>
198
202
  <div class="pbx-myInputGroup">
199
- <label class="pbx-myPrimaryInputLabel" for="roles"><span>Enter URL</span></label
203
+ <label class="pbx-myPrimaryInputLabel" for="roles"
204
+ ><span>{{ translate('Enter URL') }}</span></label
200
205
  ><input
201
206
  v-model="urlEnteret"
202
207
  class="pbx-myPrimaryInput pbx-mt-1"
@@ -232,7 +237,7 @@ onMounted(() => {
232
237
  class="pbx-myPrimaryTag"
233
238
  >
234
239
  <span class="material-symbols-outlined"> save </span>
235
- <span>Save</span>
240
+ <span>{{ translate('Save') }}</span>
236
241
  </button>
237
242
  </div>
238
243
  </div>
@@ -247,7 +252,7 @@ onMounted(() => {
247
252
  class="pbx-myPrimaryTag"
248
253
  >
249
254
  <span class="material-symbols-outlined"> keyboard_return </span>
250
- <span>Line break</span>
255
+ <span>{{ translate('Line break') }}</span>
251
256
  </button>
252
257
  </div>
253
258
 
@@ -259,7 +264,7 @@ onMounted(() => {
259
264
  :class="{ 'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('bold') }"
260
265
  >
261
266
  <span class="material-symbols-outlined"> format_bold </span>
262
- <span>Bold</span>
267
+ <span>{{ translate('Bold') }}</span>
263
268
  </button>
264
269
  </div>
265
270
 
@@ -271,7 +276,7 @@ onMounted(() => {
271
276
  :class="{ 'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('link') }"
272
277
  >
273
278
  <span class="material-symbols-outlined"> link </span>
274
- <span>Link</span>
279
+ <span>{{ translate('Link') }}</span>
275
280
  </button>
276
281
  </div>
277
282
 
@@ -287,7 +292,7 @@ onMounted(() => {
287
292
  }"
288
293
  >
289
294
  <span class="material-symbols-outlined"> titlecase </span>
290
- <span>Header 2</span>
295
+ <span>{{ translate('Header 2') }}</span>
291
296
  </button>
292
297
  </div>
293
298
 
@@ -303,7 +308,7 @@ onMounted(() => {
303
308
  }"
304
309
  >
305
310
  <span class="material-symbols-outlined"> titlecase </span>
306
- <span>Header 3</span>
311
+ <span>{{ translate('Header 3') }}</span>
307
312
  </button>
308
313
  </div>
309
314
 
@@ -317,7 +322,7 @@ onMounted(() => {
317
322
  }"
318
323
  >
319
324
  <span class="material-symbols-outlined"> list </span>
320
- <span>List</span>
325
+ <span>{{ translate('List') }}</span>
321
326
  </button>
322
327
  </div>
323
328
  </div>