@pitcher/canvas-ui 2025.12.15-144029-beta → 2025.12.16-081609-beta

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/canvas-ui.css CHANGED
@@ -551,13 +551,13 @@ swiper-container::part(pagination) {
551
551
  line-height: 20px;
552
552
  letter-spacing: 0.25px;
553
553
  color: var(--ad430d74);
554
- }[data-v-07e48e19] .ais-SearchBox {
554
+ }[data-v-338ca99c] .ais-SearchBox {
555
555
  margin: 0;
556
556
  }
557
- [data-v-07e48e19] .ais-SearchBox-submit,[data-v-07e48e19] .ais-SearchBox-reset {
557
+ [data-v-338ca99c] .ais-SearchBox-submit,[data-v-338ca99c] .ais-SearchBox-reset {
558
558
  display: none;
559
559
  }
560
- .admin-search[data-v-07e48e19] .ais-SearchBox-reset {
560
+ .admin-search[data-v-338ca99c] .ais-SearchBox-reset {
561
561
  display: block !important;
562
562
  position: absolute !important;
563
563
  right: 12px !important;
@@ -571,17 +571,17 @@ swiper-container::part(pagination) {
571
571
  font-size: 16px !important;
572
572
  z-index: 10 !important;
573
573
  }
574
- .admin-search[data-v-07e48e19] .ais-SearchBox-reset:hover {
574
+ .admin-search[data-v-338ca99c] .ais-SearchBox-reset:hover {
575
575
  color: var(--p-text2) !important;
576
576
  }
577
- .admin-search[data-v-07e48e19] .ais-SearchBox-reset:focus {
577
+ .admin-search[data-v-338ca99c] .ais-SearchBox-reset:focus {
578
578
  outline: none !important;
579
579
  color: var(--p-primary) !important;
580
580
  }
581
- .admin-search[data-v-07e48e19] .ais-SearchBox-input {
581
+ .admin-search[data-v-338ca99c] .ais-SearchBox-input {
582
582
  padding-right: 40px !important;
583
583
  }
584
- [data-v-07e48e19] .ais-SearchBox-input {
584
+ [data-v-338ca99c] .ais-SearchBox-input {
585
585
  width: 100%;
586
586
  padding: 12px 16px 12px 40px;
587
587
  border: 1px solid var(--p-primary4);
@@ -590,39 +590,39 @@ swiper-container::part(pagination) {
590
590
  background-color: var(--p-base);
591
591
  transition: border-color 0.2s ease;
592
592
  }
593
- [data-v-07e48e19] .ais-SearchBox-input:focus {
593
+ [data-v-338ca99c] .ais-SearchBox-input:focus {
594
594
  outline: none;
595
595
  border-color: var(--p-primary);
596
596
  box-shadow: 0 0 0 3px var(--p-primary5);
597
597
  }
598
- [data-v-07e48e19] .ais-SearchBox-input::placeholder {
598
+ [data-v-338ca99c] .ais-SearchBox-input::placeholder {
599
599
  color: var(--p-text3);
600
600
  font-size: 14px;
601
601
  }
602
- .overflow-y-auto[data-v-07e48e19] {
602
+ .overflow-y-auto[data-v-338ca99c] {
603
603
  scrollbar-width: thin;
604
604
  scrollbar-color: var(--p-border2) var(--p-surface2);
605
605
  }
606
- .overflow-y-auto[data-v-07e48e19]::-webkit-scrollbar {
606
+ .overflow-y-auto[data-v-338ca99c]::-webkit-scrollbar {
607
607
  width: 6px;
608
608
  }
609
- .overflow-y-auto[data-v-07e48e19]::-webkit-scrollbar-track {
609
+ .overflow-y-auto[data-v-338ca99c]::-webkit-scrollbar-track {
610
610
  background: var(--p-surface2);
611
611
  }
612
- .overflow-y-auto[data-v-07e48e19]::-webkit-scrollbar-thumb {
612
+ .overflow-y-auto[data-v-338ca99c]::-webkit-scrollbar-thumb {
613
613
  background-color: var(--p-border2);
614
614
  border-radius: 3px;
615
615
  }
616
- .overflow-y-auto[data-v-07e48e19]::-webkit-scrollbar-thumb:hover {
616
+ .overflow-y-auto[data-v-338ca99c]::-webkit-scrollbar-thumb:hover {
617
617
  background-color: var(--p-text3);
618
618
  }
619
- button[data-v-07e48e19]:hover {
619
+ button[data-v-338ca99c]:hover {
620
620
  transition: all 0.2s ease;
621
621
  }
622
- button[data-v-07e48e19]:focus {
622
+ button[data-v-338ca99c]:focus {
623
623
  outline: none;
624
624
  }
625
- [data-v-07e48e19] mark,[data-v-07e48e19] em {
625
+ [data-v-338ca99c] mark,[data-v-338ca99c] em {
626
626
  font-weight: bold;
627
627
  font-style: normal;
628
628
  }
package/canvas-ui.js CHANGED
@@ -94612,7 +94612,7 @@ const _hoisted_14$h = {
94612
94612
  class: "flex items-center ml-2"
94613
94613
  };
94614
94614
  const _hoisted_15$f = {
94615
- key: 2,
94615
+ key: 0,
94616
94616
  class: "flex items-center ml-2"
94617
94617
  };
94618
94618
  const _hoisted_16$e = { class: "flex flex-col w-full flex-1 min-h-0" };
@@ -94997,7 +94997,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
94997
94997
  hasSearchCompleted.value = false;
94998
94998
  searchError.value = null;
94999
94999
  try {
95000
- const ALLOWED_CANVAS_TYPES = ["saved_canvas", "template", "product_template", "section", "block"];
95000
+ const ALLOWED_CANVAS_TYPES = ["saved_canvas", "template", "section", "block"];
95001
95001
  const ALLOWED_FILE_TYPES = [
95002
95002
  "folder",
95003
95003
  "pdf",
@@ -95221,8 +95221,6 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95221
95221
  return t("canvasUI.CAlgoliaSearch.canvasFilters.saved");
95222
95222
  case "template":
95223
95223
  return t("canvasUI.CAlgoliaSearch.canvasFilters.templates");
95224
- case "product_template":
95225
- return t("canvasUI.CAlgoliaSearch.canvasFilters.productTemplates");
95226
95224
  case "section":
95227
95225
  return t("canvasUI.CAlgoliaSearch.canvasFilters.products");
95228
95226
  case "block":
@@ -95444,7 +95442,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95444
95442
  show: "",
95445
95443
  verticalAlignment: "top",
95446
95444
  "z-index": _ctx.zIndex,
95447
- "onUpdate:show": _cache[16] || (_cache[16] = ($event) => emit("toggleSearch", $event))
95445
+ "onUpdate:show": _cache[15] || (_cache[15] = ($event) => emit("toggleSearch", $event))
95448
95446
  }, {
95449
95447
  default: withCtx(() => [
95450
95448
  createElementVNode("div", {
@@ -95453,7 +95451,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95453
95451
  }, [
95454
95452
  createElementVNode("div", _hoisted_1$4w, [
95455
95453
  createElementVNode("div", _hoisted_2$3j, [
95456
- _cache[17] || (_cache[17] = createElementVNode("div", { class: "absolute left-2.5 top-1/2 transform -translate-y-1/2 z-10" }, [
95454
+ _cache[16] || (_cache[16] = createElementVNode("div", { class: "absolute left-2.5 top-1/2 transform -translate-y-1/2 z-10" }, [
95457
95455
  createElementVNode("i", { class: "c-icon far fa-search text-gray-400 text-l" })
95458
95456
  ], -1)),
95459
95457
  withDirectives(createElementVNode("input", {
@@ -95634,15 +95632,14 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95634
95632
  _: 1
95635
95633
  }, 8, ["show"]),
95636
95634
  hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
95637
- _cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95635
+ _cache[17] || (_cache[17] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95638
95636
  createElementVNode("span", {
95639
95637
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
95640
95638
  onClick: clearAllFilters
95641
95639
  }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.clear")), 1)
95642
95640
  ])) : createCommentVNode("", true)
95643
95641
  ], 64)) : searchType.value === "canvases" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
95644
- !_ctx.isAdmin ? (openBlock(), createBlock(unref(NTag), {
95645
- key: 0,
95642
+ createVNode(unref(NTag), {
95646
95643
  class: "select-none cursor-pointer",
95647
95644
  style: normalizeStyle({
95648
95645
  "--n-color": selectedCanvasFilters.value.includes("saved_canvas") ? "var(--p-primary5)" : "var(--p-primary6)",
@@ -95658,7 +95655,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95658
95655
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 1)
95659
95656
  ]),
95660
95657
  _: 1
95661
- }, 8, ["style"])) : createCommentVNode("", true),
95658
+ }, 8, ["style"]),
95662
95659
  createVNode(unref(NTag), {
95663
95660
  class: "select-none cursor-pointer",
95664
95661
  style: normalizeStyle({
@@ -95676,24 +95673,6 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95676
95673
  ]),
95677
95674
  _: 1
95678
95675
  }, 8, ["style"]),
95679
- _ctx.isAdmin ? (openBlock(), createBlock(unref(NTag), {
95680
- key: 1,
95681
- class: "select-none cursor-pointer",
95682
- style: normalizeStyle({
95683
- "--n-color": selectedCanvasFilters.value.includes("product_template") ? "var(--p-primary5)" : "var(--p-primary6)",
95684
- "--n-border": "1px solid var(--p-primary5)",
95685
- "--n-height": "28px"
95686
- }),
95687
- themeOverrides: {
95688
- borderRadius: "4px"
95689
- },
95690
- onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("product_template"))
95691
- }, {
95692
- default: withCtx(() => [
95693
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.productTemplates")), 1)
95694
- ]),
95695
- _: 1
95696
- }, 8, ["style"])) : createCommentVNode("", true),
95697
95676
  createVNode(unref(NTag), {
95698
95677
  class: "select-none cursor-pointer",
95699
95678
  style: normalizeStyle({
@@ -95704,7 +95683,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95704
95683
  themeOverrides: {
95705
95684
  borderRadius: "4px"
95706
95685
  },
95707
- onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("section"))
95686
+ onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("section"))
95708
95687
  }, {
95709
95688
  default: withCtx(() => [
95710
95689
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 1)
@@ -95721,7 +95700,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95721
95700
  themeOverrides: {
95722
95701
  borderRadius: "4px"
95723
95702
  },
95724
- onClick: _cache[13] || (_cache[13] = ($event) => toggleCanvasFilter("block"))
95703
+ onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("block"))
95725
95704
  }, {
95726
95705
  default: withCtx(() => [
95727
95706
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 1)
@@ -95729,7 +95708,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95729
95708
  _: 1
95730
95709
  }, 8, ["style"]),
95731
95710
  selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$f, [
95732
- _cache[19] || (_cache[19] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95711
+ _cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95733
95712
  createElementVNode("span", {
95734
95713
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
95735
95714
  onClick: clearCanvasFilters
@@ -95759,7 +95738,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95759
95738
  }), 128))
95760
95739
  ]),
95761
95740
  recentlyOpenedDocs.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
95762
- _cache[20] || (_cache[20] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
95741
+ _cache[19] || (_cache[19] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
95763
95742
  createElementVNode("div", _hoisted_21$7, [
95764
95743
  createElementVNode("span", _hoisted_22$5, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
95765
95744
  ]),
@@ -95869,7 +95848,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95869
95848
  filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_43$4, [
95870
95849
  createElementVNode("span", {
95871
95850
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
95872
- onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "content")
95851
+ onClick: _cache[13] || (_cache[13] = ($event) => searchType.value = "content")
95873
95852
  }, [
95874
95853
  createTextVNode(toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.actions.viewAll")) + " ", 1),
95875
95854
  createVNode(CIcon, {
@@ -95921,7 +95900,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95921
95900
  filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_54$2, [
95922
95901
  createElementVNode("span", {
95923
95902
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
95924
- onClick: _cache[15] || (_cache[15] = ($event) => searchType.value = "canvases")
95903
+ onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "canvases")
95925
95904
  }, [
95926
95905
  createTextVNode(toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.actions.viewAll")) + " ", 1),
95927
95906
  createVNode(CIcon, {
@@ -96068,7 +96047,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96068
96047
  }
96069
96048
  });
96070
96049
 
96071
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-07e48e19"]]);
96050
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-338ca99c"]]);
96072
96051
 
96073
96052
  const BulletListExtended = BulletList.extend({
96074
96053
  addOptions() {