@myissue/vue-website-page-builder 3.3.84 → 3.3.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.3.84",
3
+ "version": "3.3.85",
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",
@@ -301,7 +301,7 @@ const getRestoredElement = computed(() => {
301
301
  v-if="
302
302
  getElement &&
303
303
  getComponent &&
304
- getBasePrimaryImage !== null &&
304
+ getBasePrimaryImage &&
305
305
  !pageBuilderService.ElOrFirstChildIsIframe()
306
306
  "
307
307
  >
@@ -8,27 +8,18 @@ const pageBuilderService = getPageBuilder()
8
8
 
9
9
  <template>
10
10
  <div>
11
- <div class="pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear">
12
- <template v-if="pageBuilderService.isSelectedElementValidText()">
13
- <hr />
14
- <div class="pbx-flex pbx-items-center pbx-justify-start pbx-mb-6 pbx-pt-4">
15
- <div
16
- class="pbx-pr-2 pbx-pl-1 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"
17
- >
18
- <div
19
- @click="pageBuilderService.toggleTipTapModal(true)"
20
- class="pbx-myPrimaryParagraph pbx-cursor-pointer pbx-textsm pbx-flex pbx-items-center pbx-gap-2"
21
- >
22
- <div
23
- 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 hover:pbx-text-white"
24
- >
25
- <span class="material-symbols-outlined"> edit </span>
26
- </div>
27
- <span class="pbx-text-xs">{{ translate('Edit text and links') }}</span>
28
- </div>
29
- </div>
11
+ <template v-if="pageBuilderService.isSelectedElementValidText()">
12
+ <div class="pbx-flex pbx-flex-col pbx-border-solid pbx-border pbx-border-gray-400">
13
+ <div
14
+ @click="pageBuilderService.toggleTipTapModal(true)"
15
+ class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor"
16
+ >
17
+ <p class="pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0">
18
+ {{ translate('Text') }}
19
+ </p>
20
+ <span class="material-symbols-outlined"> chevron_right </span>
30
21
  </div>
31
- </template>
32
- </div>
22
+ </div>
23
+ </template>
33
24
  </div>
34
25
  </template>
@@ -2475,7 +2475,7 @@ export class PageBuilderService {
2475
2475
  // Wait for Vue to finish DOM updates before attaching event listeners.
2476
2476
  // This ensures elements exist in the DOM.
2477
2477
  await nextTick()
2478
-
2478
+ this.setBasePrimaryImageFromSelectedElement()
2479
2479
  this.handleHyperlink(undefined, null, false)
2480
2480
  this.handleOpacity(undefined)
2481
2481
  this.handleBackgroundOpacity(undefined)