@g1cloud/page-builder-editor 1.0.0-alpha.25 → 1.0.0-alpha.27

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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
2
2
  import { BSTextInput } from "@g1cloud/bluesea";
3
- import { P as PbColorPicker } from "./index-B7bPjhdc.js";
3
+ import { P as PbColorPicker } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-color" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = ["textContent"];
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, defineAsyncComponent } from "vue";
2
2
  import { useModal } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-B7bPjhdc.js";
3
+ import { u as usePageBuilderEditor } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = ["textContent"];
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
2
- import { u as usePageBuilderEditor } from "./index-B7bPjhdc.js";
2
+ import { u as usePageBuilderEditor } from "./index-ymPNKJAe.js";
3
3
  import { useModal } from "@g1cloud/bluesea";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
2
2
  import { BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-B7bPjhdc.js";
3
+ import { u as usePageBuilderEditor } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = ["textContent"];
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
2
2
  import { BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-B7bPjhdc.js";
3
+ import { u as usePageBuilderEditor } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-text flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = ["textContent"];
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
2
2
  import { useModal } from "@g1cloud/bluesea";
3
- import { s as selectYoutubeVideo } from "./index-B7bPjhdc.js";
3
+ import { s as selectYoutubeVideo } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = ["textContent"];
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
2
2
  import { useModalHandle, BSModalFrame } from "@g1cloud/bluesea";
3
- import { w as widgetPartDefinitions } from "./index-B7bPjhdc.js";
3
+ import { w as widgetPartDefinitions } from "./index-ymPNKJAe.js";
4
4
  const _hoisted_1 = { class: "bs-layout-vertical pb-part-add-modal" };
5
5
  const _hoisted_2 = { class: "bs-layout-horizontal-wrap ml-16 mb-8 gap-8" };
6
6
  const _hoisted_3 = ["onClick", "textContent"];
@@ -8129,13 +8129,13 @@ class PartManager {
8129
8129
  const defaultPartPropertyEditors = () => {
8130
8130
  return {
8131
8131
  "readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-Dgp_AVOD.js")),
8132
- "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-tVPcjTNt.js")),
8133
- "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-ru4ikHma.js")),
8132
+ "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-CQwH7v7k.js")),
8133
+ "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-Bnro6dbg.js")),
8134
8134
  "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-CWedbXJI.js")),
8135
- "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-CjVPQ69L.js")),
8136
- "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-DAGrURID.js")),
8137
- "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-BA2fVHPA.js")),
8138
- "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-Dlfj7kat.js"))
8135
+ "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-6nHFFcG2.js")),
8136
+ "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-D47dKq2n.js")),
8137
+ "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-BeIgPnp1.js")),
8138
+ "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-sa28xTeJ.js"))
8139
8139
  };
8140
8140
  };
8141
8141
  const getPropertyValueOfParts = (parts, propertyName) => {
@@ -11386,7 +11386,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11386
11386
  const selectImage = () => {
11387
11387
  const imageProvider = pageBuilder.getProvider("imageProvider");
11388
11388
  if (imageProvider) {
11389
- imageProvider({ modal }, (media) => {
11389
+ imageProvider({ modal, mediaTypes: ["Image"] }, (media) => {
11390
11390
  if (media.mediaType === "Image") {
11391
11391
  updatePropertyValue({ backgroundImage: media.url });
11392
11392
  }
@@ -12400,7 +12400,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
12400
12400
  let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
12401
12401
  const openWidgetAddModal = (modal, args, callback) => {
12402
12402
  modal.openModal({
12403
- component: defineAsyncComponent(() => import("./PbWidgetAddModal-sKV_WrZY.js")),
12403
+ component: defineAsyncComponent(() => import("./PbWidgetAddModal-BtGAzP14.js")),
12404
12404
  style: {
12405
12405
  width: "80%",
12406
12406
  height: "80%",
@@ -1,3 +1,4 @@
1
+ import { BSModal } from '@g1cloud/bluesea';
1
2
  import { Component } from 'vue';
2
3
  import { PartPropertyEditor, PartPropertyGroupEditor, PartPropertyType } from './part-property.ts';
3
4
  import { PartDefinition } from './part-definintion.ts';
@@ -23,3 +24,7 @@ export type PageBuilderToolbarPlugin = {
23
24
  [key: string]: Function | Function[];
24
25
  };
25
26
  };
27
+ export type ImageProviderArg = {
28
+ modal: BSModal;
29
+ mediaTypes: string[];
30
+ };
@@ -1,4 +1,4 @@
1
- import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, t, v, x, y, z, A, C } from "./index-B7bPjhdc.js";
1
+ import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, t, v, x, y, z, A, C } from "./index-ymPNKJAe.js";
2
2
  export {
3
3
  B as BLOCK_TYPE,
4
4
  b as Block,
@@ -11387,7 +11387,7 @@ ${_html.style}
11387
11387
  const selectImage = () => {
11388
11388
  const imageProvider = pageBuilder.getProvider("imageProvider");
11389
11389
  if (imageProvider) {
11390
- imageProvider({ modal }, (media) => {
11390
+ imageProvider({ modal, mediaTypes: ["Image"] }, (media) => {
11391
11391
  if (media.mediaType === "Image") {
11392
11392
  updatePropertyValue({ backgroundImage: media.url });
11393
11393
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@g1cloud/page-builder-editor",
3
3
  "private": false,
4
- "version": "1.0.0-alpha.25",
4
+ "version": "1.0.0-alpha.27",
5
5
  "engins": {
6
6
  "node": ">= 20.0.0"
7
7
  },
@@ -30,7 +30,7 @@
30
30
  "vue-router": "^4.4.3",
31
31
  "vue3-click-away": "^1.2.4",
32
32
  "yjs": "^13.6.14",
33
- "@g1cloud/page-builder-viewer": "1.0.0-alpha.25"
33
+ "@g1cloud/page-builder-viewer": "1.0.0-alpha.27"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.12.7",