designertool 0.52.0 → 0.55.0

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.
@@ -7521,7 +7521,7 @@ const defaultConfig = {
7521
7521
  }
7522
7522
  ],
7523
7523
  api: {
7524
- base_url: "https://dev.designertool.io/api",
7524
+ base_url: "https://designer-tool-backend.test/api",
7525
7525
  project_id: 1,
7526
7526
  user_id: 2
7527
7527
  },
@@ -53749,7 +53749,10 @@ const FontSize = Extension.create({
53749
53749
  addCommands() {
53750
53750
  return {
53751
53751
  setFontSize: (ye) => ({ chain: ae }) => ae().setMark("textStyle", { fontSize: ye }).run(),
53752
- unsetFontSize: () => ({ chain: ye }) => ye().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
53752
+ unsetFontSize: () => ({ chain: ye }) => {
53753
+ const ae = ye().setMark("textStyle", { fontSize: null });
53754
+ return ae.removeEmptyTextStyle ? ae.removeEmptyTextStyle().run() : ae.run();
53755
+ }
53753
53756
  };
53754
53757
  }
53755
53758
  }), _hoisted_1$e = ["data-editable"], DEFAULT_PASTE_FONT_SIZE = "16", _sfc_main$f = /* @__PURE__ */ defineComponent({
@@ -68140,11 +68143,11 @@ const _hoisted_1$6 = { class: "wbg-dt-mx-auto wbg-dt-flex wbg-dt-h-full wbg-dt-f
68140
68143
  },
68141
68144
  setup(ye, { expose: ae }) {
68142
68145
  useCssVars((pr) => ({
68143
- "5674c573": qt.value,
68144
- "566e41a7": Zt.value,
68145
- "6e092896": er.value,
68146
- "77b0547c": rr.value,
68147
- "636753cb": nr.value
68146
+ "10112bc6": qt.value,
68147
+ "100aa7fa": Zt.value,
68148
+ "6bdf6f02": er.value,
68149
+ "1cbe8eee": rr.value,
68150
+ "2783715e": nr.value
68148
68151
  }));
68149
68152
  const Ne = ye, { width: rt, height: ft } = useWindowSize(), pt = useCanvas(), bt = useItems(), Pt = computed(() => pt.canvasState), $t = computed(() => bt.items), qt = computed(() => pt.zoom), Qt = ref$1(), Jt = ref$1(), Zt = ref$1(""), er = ref$1(""), rr = ref$1(""), nr = ref$1(""), ir = ref$1(Ne.isGuidelines), sr = computed(() => pt.isCropping), or = ref$1(""), cr = computed(() => pt.isFullscreen), ur = /rgba\((\s*-?\d+%?\s*,){3}\s*0\)/, lr = computed(() => Pt.value.borderColor !== null && !ur.test(Pt.value.borderColor) ? `background-color: ${Pt.value.borderColor}` : Pt.value.backgroundColor !== null ? `background-color: ${Pt.value.backgroundColor}` : "background-color: white");
68150
68153
  function ar(pr) {
@@ -68177,7 +68180,7 @@ const _hoisted_1$6 = { class: "wbg-dt-mx-auto wbg-dt-flex wbg-dt-h-full wbg-dt-f
68177
68180
  }), (pr, dr) => (openBlock(), createElementBlock("div", {
68178
68181
  ref_key: "containerRef",
68179
68182
  ref: Jt,
68180
- class: normalizeClass(["zoom-style wbg-dt-my-auto wbg-dt-flex wbg-dt-h-full wbg-dt-w-full wbg-dt-items-center wbg-dt-justify-center wbg-dt-self-center", { "wbg-dt-shadow-lg": !unref(pt).isCodeActive }])
68183
+ class: "zoom-style wbg-dt-my-auto wbg-dt-flex wbg-dt-h-full wbg-dt-w-full wbg-dt-items-center wbg-dt-justify-center wbg-dt-self-center"
68181
68184
  }, [
68182
68185
  unref(pt).isCodeActive ? (openBlock(), createBlock(Code, {
68183
68186
  key: 1,
@@ -68212,9 +68215,9 @@ const _hoisted_1$6 = { class: "wbg-dt-mx-auto wbg-dt-flex wbg-dt-h-full wbg-dt-f
68212
68215
  class: "wbg-dt-pointer-events-none wbg-dt-absolute"
68213
68216
  })), 64)) : createCommentVNode("", !0)
68214
68217
  ]))
68215
- ], 2));
68218
+ ], 512));
68216
68219
  }
68217
- }), _style_0$2 = ".zoom-style[data-v-43a075ec]{transform:scale(calc(var(--5674c573) / 100));transform-origin:center top}.zone-1[data-v-43a075ec]{left:0;top:0;bottom:0;width:var(--566e41a7)}.zone-2[data-v-43a075ec]{top:0;left:0;right:0;height:var(--6e092896)}.zone-3[data-v-43a075ec]{right:0;top:0;bottom:0;width:var(--77b0547c)}.zone-4[data-v-43a075ec]{bottom:0;left:0;right:0;height:var(--636753cb)}", EditPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["styles", [_style_0$2]], ["__scopeId", "data-v-43a075ec"]]), _hoisted_1$4 = { class: "wbg-dt-relative wbg-dt-my-2 wbg-dt-h-2 wbg-dt-w-full wbg-dt-min-w-[100px] wbg-dt-rounded-wbg-dt-def wbg-dt-bg-wbg-dt-secondary-200" }, _hoisted_2$2 = ["min", "max", "value"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
68220
+ }), _style_0$2 = ".zoom-style[data-v-fd2b9f68]{transform:scale(calc(var(--10112bc6) / 100));transform-origin:center top}.zone-1[data-v-fd2b9f68]{left:0;top:0;bottom:0;width:var(--100aa7fa)}.zone-2[data-v-fd2b9f68]{top:0;left:0;right:0;height:var(--6bdf6f02)}.zone-3[data-v-fd2b9f68]{right:0;top:0;bottom:0;width:var(--1cbe8eee)}.zone-4[data-v-fd2b9f68]{bottom:0;left:0;right:0;height:var(--2783715e)}", EditPage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["styles", [_style_0$2]], ["__scopeId", "data-v-fd2b9f68"]]), _hoisted_1$4 = { class: "wbg-dt-relative wbg-dt-my-2 wbg-dt-h-2 wbg-dt-w-full wbg-dt-min-w-[100px] wbg-dt-rounded-wbg-dt-def wbg-dt-bg-wbg-dt-secondary-200" }, _hoisted_2$2 = ["min", "max", "value"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
68218
68221
  __name: "Slider",
68219
68222
  props: {
68220
68223
  modelValue: {
@@ -68571,7 +68574,8 @@ const _hoisted_1$3 = { class: "wbg-dt-relative wbg-dt-z-50 wbg-dt-flex wbg-dt-h-
68571
68574
  "--tooltip-text-color": ir
68572
68575
  })), or = useCustomShadowRoot();
68573
68576
  onMounted(() => {
68574
- if (or.querySelector("#GMAPS_SCRIPT"))
68577
+ var Wr;
68578
+ if ((Wr = window.google) != null && Wr.maps || document.querySelector("#GMAPS_SCRIPT") || or.querySelector("#GMAPS_SCRIPT"))
68575
68579
  return;
68576
68580
  const on = document.createElement("script");
68577
68581
  on.async = !0, on.defer = !0, on.id = "GMAPS_SCRIPT", on.src = `https://maps.googleapis.com/maps/api/js?libraries=places&key=${qt.config.google.map_api_key}&callback=initMap`, pt.value.appendChild(on);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "designertool",
3
3
  "private": false,
4
- "version": "0.52.0",
4
+ "version": "0.55.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"