@pitcher/canvas-ui 2025.12.5-123108-beta → 2025.12.5-130057-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.js CHANGED
@@ -87748,6 +87748,36 @@ function crmSmartObjectValidationRules(payload) {
87748
87748
  }
87749
87749
  return highLevelApi.API.request("crm_smart_object_validation_rules", payload);
87750
87750
  }
87751
+ function crmSmartDeleteObjects(payload) {
87752
+ if (!payload || !payload.objects || !Array.isArray(payload.objects)) {
87753
+ return Promise.reject(new Error("Payload must contain an array of objects"));
87754
+ }
87755
+ if (payload.objects.length === 0) {
87756
+ return Promise.reject(new Error("Objects array cannot be empty"));
87757
+ }
87758
+ for (const obj of payload.objects) {
87759
+ if (!obj) {
87760
+ return Promise.reject(new Error("Objects array cannot contain null or undefined elements"));
87761
+ }
87762
+ if (!obj.table_name || typeof obj.table_name !== "string" || obj.table_name.trim() === "") {
87763
+ return Promise.reject(new Error("Each object must have a valid non-empty table_name"));
87764
+ }
87765
+ if (!obj.ids || !Array.isArray(obj.ids) || obj.ids.length === 0) {
87766
+ return Promise.reject(new Error(`Object for table ${obj.table_name} must have a non-empty ids array`));
87767
+ }
87768
+ for (let i = 0; i < obj.ids.length; i++) {
87769
+ const id = obj.ids[i];
87770
+ if (!id || typeof id !== "string" || id.trim() === "") {
87771
+ return Promise.reject(
87772
+ new Error(
87773
+ `Object for table ${obj.table_name} contains invalid id at index ${i}. All IDs must be non-empty strings.`
87774
+ )
87775
+ );
87776
+ }
87777
+ }
87778
+ }
87779
+ return highLevelApi.API.request("crm_smart_delete_objects", payload);
87780
+ }
87751
87781
 
87752
87782
  function getFolders(payload) {
87753
87783
  return this.API.request("get_folders", payload);
@@ -87845,6 +87875,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
87845
87875
  createFile,
87846
87876
  createFolder,
87847
87877
  crmQuery,
87878
+ crmSmartDeleteObjects,
87848
87879
  crmSmartObjectMetadata,
87849
87880
  crmSmartObjectValidationRules,
87850
87881
  crmSmartQuery,
@@ -94474,119 +94505,115 @@ const _hoisted_5$1M = {
94474
94505
  key: 1,
94475
94506
  class: "flex items-center mt-4"
94476
94507
  };
94477
- const _hoisted_6$1w = { class: "flex space-x-0 items-center" };
94508
+ const _hoisted_6$1w = { class: "flex space-x-0" };
94478
94509
  const _hoisted_7$18 = { class: "uppercase" };
94479
94510
  const _hoisted_8$Z = {
94480
- key: 1,
94481
- class: "h-16px w-1px bg-gray-300 mx-2"
94482
- };
94483
- const _hoisted_9$O = {
94484
94511
  key: 0,
94485
94512
  class: "flex items-center space-x-1 ml-2"
94486
94513
  };
94487
- const _hoisted_10$C = { class: "flex items-center" };
94488
- const _hoisted_11$x = { key: 0 };
94489
- const _hoisted_12$p = { class: "c-select-filter__popover w-[350px] rounded flex flex-col bg-base" };
94490
- const _hoisted_13$k = { class: "pa-2 max-h-[300px] overflow-y-auto" };
94491
- const _hoisted_14$h = {
94514
+ const _hoisted_9$O = { class: "flex items-center" };
94515
+ const _hoisted_10$C = { key: 0 };
94516
+ const _hoisted_11$x = { class: "c-select-filter__popover w-[350px] rounded flex flex-col bg-base" };
94517
+ const _hoisted_12$p = { class: "pa-2 max-h-[300px] overflow-y-auto" };
94518
+ const _hoisted_13$k = {
94492
94519
  key: 0,
94493
94520
  class: "flex items-center ml-2"
94494
94521
  };
94495
- const _hoisted_15$f = {
94522
+ const _hoisted_14$h = {
94496
94523
  key: 0,
94497
94524
  class: "flex items-center ml-2"
94498
94525
  };
94499
- const _hoisted_16$e = { class: "flex flex-col w-full flex-1 min-h-0" };
94500
- const _hoisted_17$c = {
94526
+ const _hoisted_15$f = { class: "flex flex-col w-full flex-1 min-h-0" };
94527
+ const _hoisted_16$e = {
94501
94528
  key: 0,
94502
94529
  class: "flex-1 overflow-y-auto bg-white w-full pl-1 pr-6 py-0"
94503
94530
  };
94504
- const _hoisted_18$a = { class: "space-y-1 mt-4" };
94505
- const _hoisted_19$a = ["onClick"];
94506
- const _hoisted_20$9 = { class: "text-sm text-gray-700" };
94507
- const _hoisted_21$7 = { class: "flex items-center mb-0" };
94508
- const _hoisted_22$5 = { class: "text-sm font-bold text-gray-700" };
94509
- const _hoisted_23$5 = ["onClick"];
94510
- const _hoisted_24$5 = {
94531
+ const _hoisted_17$c = { class: "space-y-1 mt-4" };
94532
+ const _hoisted_18$a = ["onClick"];
94533
+ const _hoisted_19$a = { class: "text-sm text-gray-700" };
94534
+ const _hoisted_20$9 = { class: "flex items-center mb-0" };
94535
+ const _hoisted_21$7 = { class: "text-sm font-bold text-gray-700" };
94536
+ const _hoisted_22$5 = ["onClick"];
94537
+ const _hoisted_23$5 = {
94511
94538
  key: 0,
94512
94539
  class: "relative mr-4"
94513
94540
  };
94514
- const _hoisted_25$5 = {
94541
+ const _hoisted_24$5 = {
94515
94542
  key: 0,
94516
94543
  class: "absolute inset-0 flex items-center justify-center bg-gray-200 bg-opacity-75 border-rounded-1"
94517
94544
  };
94518
- const _hoisted_26$5 = {
94545
+ const _hoisted_25$5 = {
94519
94546
  key: 1,
94520
94547
  class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
94521
94548
  };
94522
- const _hoisted_27$5 = { class: "flex-1 min-w-0" };
94523
- const _hoisted_28$5 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94524
- const _hoisted_29$5 = { class: "text-xs text-gray-500" };
94525
- const _hoisted_30$4 = {
94549
+ const _hoisted_26$5 = { class: "flex-1 min-w-0" };
94550
+ const _hoisted_27$5 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94551
+ const _hoisted_28$5 = { class: "text-xs text-gray-500" };
94552
+ const _hoisted_29$5 = {
94526
94553
  key: 1,
94527
94554
  class: "flex-1 overflow-y-auto bg-white w-full"
94528
94555
  };
94529
- const _hoisted_31$4 = { class: "w-full px-0" };
94530
- const _hoisted_32$4 = {
94556
+ const _hoisted_30$4 = { class: "w-full px-0" };
94557
+ const _hoisted_31$4 = {
94531
94558
  key: 0,
94532
94559
  class: "mb-0"
94533
94560
  };
94534
- const _hoisted_33$4 = { class: "flex items-center px-0 pt-2 pb-1" };
94535
- const _hoisted_34$4 = { class: "text-m font-semibold text-gray-900" };
94536
- const _hoisted_35$4 = { class: "ml-2 text-sm text-gray-500" };
94537
- const _hoisted_36$4 = ["data-result-selected", "onClick"];
94538
- const _hoisted_37$4 = {
94561
+ const _hoisted_32$4 = { class: "flex items-center px-0 pt-2 pb-1" };
94562
+ const _hoisted_33$4 = { class: "text-m font-semibold text-gray-900" };
94563
+ const _hoisted_34$4 = { class: "ml-2 text-sm text-gray-500" };
94564
+ const _hoisted_35$4 = ["data-result-selected", "onClick"];
94565
+ const _hoisted_36$4 = {
94539
94566
  key: 1,
94540
94567
  class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
94541
94568
  };
94542
- const _hoisted_38$4 = { class: "flex-1 min-w-0" };
94543
- const _hoisted_39$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94544
- const _hoisted_40$4 = { class: "text-xs text-gray-500" };
94545
- const _hoisted_41$4 = { class: "text-xs text-gray-400" };
94546
- const _hoisted_42$4 = {
94569
+ const _hoisted_37$4 = { class: "flex-1 min-w-0" };
94570
+ const _hoisted_38$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94571
+ const _hoisted_39$4 = { class: "text-xs text-gray-500" };
94572
+ const _hoisted_40$4 = { class: "text-xs text-gray-400" };
94573
+ const _hoisted_41$4 = {
94547
94574
  key: 0,
94548
94575
  class: "px-0 py-0"
94549
94576
  };
94550
- const _hoisted_43$4 = { key: 1 };
94551
- const _hoisted_44$4 = { class: "flex items-center px-0 pt-4 pb-1" };
94552
- const _hoisted_45$4 = { class: "text-m font-semibold text-gray-900" };
94553
- const _hoisted_46$4 = { class: "ml-2 text-sm text-gray-500" };
94554
- const _hoisted_47$4 = ["data-result-selected", "onClick"];
94555
- const _hoisted_48$4 = { class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center" };
94556
- const _hoisted_49$4 = { class: "flex-1 min-w-0" };
94557
- const _hoisted_50$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94558
- const _hoisted_51$2 = { class: "text-xs text-gray-500" };
94559
- const _hoisted_52$2 = { class: "text-xs text-gray-400" };
94560
- const _hoisted_53$2 = {
94577
+ const _hoisted_42$4 = { key: 1 };
94578
+ const _hoisted_43$4 = { class: "flex items-center px-0 pt-4 pb-1" };
94579
+ const _hoisted_44$4 = { class: "text-m font-semibold text-gray-900" };
94580
+ const _hoisted_45$4 = { class: "ml-2 text-sm text-gray-500" };
94581
+ const _hoisted_46$4 = ["data-result-selected", "onClick"];
94582
+ const _hoisted_47$4 = { class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center" };
94583
+ const _hoisted_48$4 = { class: "flex-1 min-w-0" };
94584
+ const _hoisted_49$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94585
+ const _hoisted_50$4 = { class: "text-xs text-gray-500" };
94586
+ const _hoisted_51$2 = { class: "text-xs text-gray-400" };
94587
+ const _hoisted_52$2 = {
94561
94588
  key: 0,
94562
94589
  class: "px-0 py-0"
94563
94590
  };
94564
- const _hoisted_54$1 = {
94591
+ const _hoisted_53$2 = {
94565
94592
  key: 0,
94566
94593
  class: "flex flex-col items-center justify-center text-center p-8 gap-4"
94567
94594
  };
94568
- const _hoisted_55$1 = {
94595
+ const _hoisted_54$1 = {
94569
94596
  key: 2,
94570
94597
  class: "flex-1 overflow-y-auto bg-white w-full"
94571
94598
  };
94572
- const _hoisted_56$1 = { class: "w-full px-0" };
94573
- const _hoisted_57$1 = { class: "flex items-center px-0 pt-2 pb-1" };
94574
- const _hoisted_58$1 = { class: "text-m font-semibold text-gray-900" };
94575
- const _hoisted_59$1 = { class: "ml-2 text-sm text-gray-500" };
94576
- const _hoisted_60$1 = ["data-result-selected", "onClick"];
94577
- const _hoisted_61$1 = {
94599
+ const _hoisted_55$1 = { class: "w-full px-0" };
94600
+ const _hoisted_56$1 = { class: "flex items-center px-0 pt-2 pb-1" };
94601
+ const _hoisted_57$1 = { class: "text-m font-semibold text-gray-900" };
94602
+ const _hoisted_58$1 = { class: "ml-2 text-sm text-gray-500" };
94603
+ const _hoisted_59$1 = ["data-result-selected", "onClick"];
94604
+ const _hoisted_60$1 = {
94578
94605
  key: 1,
94579
94606
  class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
94580
94607
  };
94581
- const _hoisted_62$1 = { class: "flex-1 min-w-0" };
94582
- const _hoisted_63$1 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94583
- const _hoisted_64$1 = { class: "text-xs text-gray-500" };
94584
- const _hoisted_65$1 = { class: "text-xs text-gray-400" };
94585
- const _hoisted_66$1 = {
94608
+ const _hoisted_61$1 = { class: "flex-1 min-w-0" };
94609
+ const _hoisted_62$1 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
94610
+ const _hoisted_63$1 = { class: "text-xs text-gray-500" };
94611
+ const _hoisted_64$1 = { class: "text-xs text-gray-400" };
94612
+ const _hoisted_65$1 = {
94586
94613
  key: 0,
94587
94614
  class: "flex flex-col items-center justify-center text-center p-8 gap-4"
94588
94615
  };
94589
- const _hoisted_67$1 = {
94616
+ const _hoisted_66$1 = {
94590
94617
  key: 0,
94591
94618
  class: "flex flex-wrap line-height-6 pt-4 pb-2 px-6 border-t border-gray-200 gap-y-4 gap-x-4"
94592
94619
  };
@@ -95381,8 +95408,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95381
95408
  createElementVNode("div", _hoisted_6$1w, [
95382
95409
  createElementVNode("button", {
95383
95410
  class: normalizeClass([
95384
- "h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
95385
- searchType.value === null ? "bg-primary5 text-primary px-12px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
95411
+ "h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
95412
+ searchType.value === null ? "bg-primary border-primary text-white px-12px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
95386
95413
  ]),
95387
95414
  onClick: handleEverywhereClick
95388
95415
  }, [
@@ -95391,26 +95418,25 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95391
95418
  searchType.value !== "canvases" ? (openBlock(), createElementBlock("button", {
95392
95419
  key: 0,
95393
95420
  class: normalizeClass([
95394
- "h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
95395
- searchType.value === "content" ? "bg-primary5 text-primary px-16px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
95421
+ "h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
95422
+ searchType.value === "content" ? "bg-primary border-primary text-white px-16px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
95396
95423
  ]),
95397
95424
  onClick: _cache[4] || (_cache[4] = ($event) => searchType.value === "content" ? handleEverywhereClick() : searchType.value = "content")
95398
95425
  }, [
95399
95426
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.content")), 1)
95400
95427
  ], 2)) : createCommentVNode("", true),
95401
- searchType.value !== "content" && searchType.value !== "canvases" ? (openBlock(), createElementBlock("div", _hoisted_8$Z)) : createCommentVNode("", true),
95402
95428
  searchType.value !== "content" ? (openBlock(), createElementBlock("button", {
95403
- key: 2,
95429
+ key: 1,
95404
95430
  class: normalizeClass([
95405
- "h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
95406
- searchType.value === "canvases" ? "bg-primary5 text-primary px-16px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
95431
+ "h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
95432
+ searchType.value === "canvases" ? "bg-primary border-primary text-white px-16px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
95407
95433
  ]),
95408
95434
  onClick: _cache[5] || (_cache[5] = ($event) => searchType.value === "canvases" ? handleEverywhereClick() : searchType.value = "canvases")
95409
95435
  }, [
95410
95436
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.pitchDecks")), 1)
95411
95437
  ], 2)) : createCommentVNode("", true)
95412
95438
  ]),
95413
- searchType.value ? (openBlock(), createElementBlock("div", _hoisted_9$O, [
95439
+ searchType.value ? (openBlock(), createElementBlock("div", _hoisted_8$Z, [
95414
95440
  searchType.value === "content" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
95415
95441
  createVNode(unref(NPopover), {
95416
95442
  class: "c-select-filter",
@@ -95427,7 +95453,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95427
95453
  style: normalizeStyle({
95428
95454
  "--n-color": selectedFileTypes.value.length ? "var(--p-primary5)" : "var(--p-primary6)",
95429
95455
  "--n-border": "1px solid var(--p-primary5)",
95430
- "--n-height": "28px"
95456
+ "--n-height": "32px"
95431
95457
  }),
95432
95458
  themeOverrides: {
95433
95459
  borderRadius: "4px"
@@ -95435,9 +95461,11 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95435
95461
  onClick: _cache[7] || (_cache[7] = ($event) => showFileTypeDropdown.value = !showFileTypeDropdown.value)
95436
95462
  }, {
95437
95463
  default: withCtx(() => [
95438
- createElementVNode("div", _hoisted_10$C, [
95439
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 1),
95440
- selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_11$x, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
95464
+ createElementVNode("div", _hoisted_9$O, [
95465
+ createElementVNode("span", {
95466
+ class: normalizeClass({ "font-bold": selectedFileTypes.value.length })
95467
+ }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 3),
95468
+ selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_10$C, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
95441
95469
  selectedFileTypes.value.length ? (openBlock(), createBlock(CIcon, {
95442
95470
  key: 1,
95443
95471
  class: "ml-1",
@@ -95452,8 +95480,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95452
95480
  }, 8, ["style"])
95453
95481
  ]),
95454
95482
  default: withCtx(() => [
95455
- createElementVNode("div", _hoisted_12$p, [
95456
- createElementVNode("div", _hoisted_13$k, [
95483
+ createElementVNode("div", _hoisted_11$x, [
95484
+ createElementVNode("div", _hoisted_12$p, [
95457
95485
  (openBlock(), createElementBlock(Fragment, null, renderList(fileTypeOptions, (option) => {
95458
95486
  return createElementVNode("div", {
95459
95487
  key: option.value,
@@ -95493,7 +95521,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95493
95521
  ]),
95494
95522
  _: 1
95495
95523
  }, 8, ["show"]),
95496
- hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
95524
+ hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_13$k, [
95497
95525
  _cache[17] || (_cache[17] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95498
95526
  createElementVNode("span", {
95499
95527
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
@@ -95506,7 +95534,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95506
95534
  style: normalizeStyle({
95507
95535
  "--n-color": selectedCanvasFilters.value.includes("saved_canvas") ? "var(--p-primary5)" : "var(--p-primary6)",
95508
95536
  "--n-border": "1px solid var(--p-primary5)",
95509
- "--n-height": "28px"
95537
+ "--n-height": "32px"
95510
95538
  }),
95511
95539
  themeOverrides: {
95512
95540
  borderRadius: "4px"
@@ -95514,7 +95542,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95514
95542
  onClick: _cache[9] || (_cache[9] = ($event) => toggleCanvasFilter("saved_canvas"))
95515
95543
  }, {
95516
95544
  default: withCtx(() => [
95517
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 1)
95545
+ createElementVNode("span", {
95546
+ class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("saved_canvas") })
95547
+ }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 3)
95518
95548
  ]),
95519
95549
  _: 1
95520
95550
  }, 8, ["style"]),
@@ -95523,7 +95553,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95523
95553
  style: normalizeStyle({
95524
95554
  "--n-color": selectedCanvasFilters.value.includes("template") ? "var(--p-primary5)" : "var(--p-primary6)",
95525
95555
  "--n-border": "1px solid var(--p-primary5)",
95526
- "--n-height": "28px"
95556
+ "--n-height": "32px"
95527
95557
  }),
95528
95558
  themeOverrides: {
95529
95559
  borderRadius: "4px"
@@ -95531,7 +95561,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95531
95561
  onClick: _cache[10] || (_cache[10] = ($event) => toggleCanvasFilter("template"))
95532
95562
  }, {
95533
95563
  default: withCtx(() => [
95534
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 1)
95564
+ createElementVNode("span", {
95565
+ class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("template") })
95566
+ }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 3)
95535
95567
  ]),
95536
95568
  _: 1
95537
95569
  }, 8, ["style"]),
@@ -95540,7 +95572,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95540
95572
  style: normalizeStyle({
95541
95573
  "--n-color": selectedCanvasFilters.value.includes("section") ? "var(--p-primary5)" : "var(--p-primary6)",
95542
95574
  "--n-border": "1px solid var(--p-primary5)",
95543
- "--n-height": "28px"
95575
+ "--n-height": "32px"
95544
95576
  }),
95545
95577
  themeOverrides: {
95546
95578
  borderRadius: "4px"
@@ -95548,7 +95580,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95548
95580
  onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("section"))
95549
95581
  }, {
95550
95582
  default: withCtx(() => [
95551
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 1)
95583
+ createElementVNode("span", {
95584
+ class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("section") })
95585
+ }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 3)
95552
95586
  ]),
95553
95587
  _: 1
95554
95588
  }, 8, ["style"]),
@@ -95557,7 +95591,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95557
95591
  style: normalizeStyle({
95558
95592
  "--n-color": selectedCanvasFilters.value.includes("block") ? "var(--p-primary5)" : "var(--p-primary6)",
95559
95593
  "--n-border": "1px solid var(--p-primary5)",
95560
- "--n-height": "28px"
95594
+ "--n-height": "32px"
95561
95595
  }),
95562
95596
  themeOverrides: {
95563
95597
  borderRadius: "4px"
@@ -95565,11 +95599,13 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95565
95599
  onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("block"))
95566
95600
  }, {
95567
95601
  default: withCtx(() => [
95568
- createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 1)
95602
+ createElementVNode("span", {
95603
+ class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("block") })
95604
+ }, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 3)
95569
95605
  ]),
95570
95606
  _: 1
95571
95607
  }, 8, ["style"]),
95572
- selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$f, [
95608
+ selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
95573
95609
  _cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
95574
95610
  createElementVNode("span", {
95575
95611
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
@@ -95580,9 +95616,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95580
95616
  ])) : createCommentVNode("", true)
95581
95617
  ])) : createCommentVNode("", true)
95582
95618
  ]),
95583
- createElementVNode("div", _hoisted_16$e, [
95584
- showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_17$c, [
95585
- createElementVNode("div", _hoisted_18$a, [
95619
+ createElementVNode("div", _hoisted_15$f, [
95620
+ showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_16$e, [
95621
+ createElementVNode("div", _hoisted_17$c, [
95586
95622
  (openBlock(true), createElementBlock(Fragment, null, renderList(recentSearches.value, (search) => {
95587
95623
  return openBlock(), createElementBlock("div", {
95588
95624
  key: search,
@@ -95595,14 +95631,14 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95595
95631
  icon: "clock-rotate-left",
95596
95632
  size: "16"
95597
95633
  }),
95598
- createElementVNode("span", _hoisted_20$9, toDisplayString(search), 1)
95599
- ], 8, _hoisted_19$a);
95634
+ createElementVNode("span", _hoisted_19$a, toDisplayString(search), 1)
95635
+ ], 8, _hoisted_18$a);
95600
95636
  }), 128))
95601
95637
  ]),
95602
95638
  recentlyOpenedDocs.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
95603
95639
  _cache[19] || (_cache[19] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
95604
- createElementVNode("div", _hoisted_21$7, [
95605
- createElementVNode("span", _hoisted_22$5, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
95640
+ createElementVNode("div", _hoisted_20$9, [
95641
+ createElementVNode("span", _hoisted_21$7, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
95606
95642
  ]),
95607
95643
  createElementVNode("div", {
95608
95644
  class: normalizeClass(_ctx.isAdmin ? "space-y-2" : "space-y-0")
@@ -95616,7 +95652,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95616
95652
  ]),
95617
95653
  onClick: ($event) => handleRecentDocClick(doc, doc.type)
95618
95654
  }, [
95619
- doc.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_24$5, [
95655
+ doc.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_23$5, [
95620
95656
  createVNode(_sfc_main$6I, {
95621
95657
  class: "h-14 border-rounded-1 overflow-hidden flex-0",
95622
95658
  cover: "",
@@ -95625,7 +95661,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95625
95661
  src: recentThumbnails.value[doc.id] || "",
95626
95662
  width: "72"
95627
95663
  }, null, 8, ["file-data", "src"]),
95628
- isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div", _hoisted_25$5, [
95664
+ isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div", _hoisted_24$5, [
95629
95665
  createVNode(CIcon, {
95630
95666
  class: "animate-spin",
95631
95667
  color: "var(--p-primary)",
@@ -95633,7 +95669,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95633
95669
  size: "20"
95634
95670
  })
95635
95671
  ])) : createCommentVNode("", true)
95636
- ])) : (openBlock(), createElementBlock("div", _hoisted_26$5, [
95672
+ ])) : (openBlock(), createElementBlock("div", _hoisted_25$5, [
95637
95673
  doc.type === "canvas" ? (openBlock(), createBlock(CIcon, {
95638
95674
  key: 0,
95639
95675
  color: "var(--p-text2)",
@@ -95646,26 +95682,26 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95646
95682
  size: "32"
95647
95683
  }))
95648
95684
  ])),
95649
- createElementVNode("div", _hoisted_27$5, [
95650
- createElementVNode("h3", _hoisted_28$5, toDisplayString(doc.name), 1),
95651
- createElementVNode("p", _hoisted_29$5, toDisplayString(doc.type === "canvas" ? formatCanvasType(doc.content_type) : doc.type === "folder" ? "Folder" : doc.file_category || "File"), 1)
95685
+ createElementVNode("div", _hoisted_26$5, [
95686
+ createElementVNode("h3", _hoisted_27$5, toDisplayString(doc.name), 1),
95687
+ createElementVNode("p", _hoisted_28$5, toDisplayString(doc.type === "canvas" ? formatCanvasType(doc.content_type) : doc.type === "folder" ? "Folder" : doc.file_category || "File"), 1)
95652
95688
  ])
95653
- ], 10, _hoisted_23$5);
95689
+ ], 10, _hoisted_22$5);
95654
95690
  }), 128))
95655
95691
  ], 2)
95656
95692
  ], 64)) : createCommentVNode("", true)
95657
- ])) : !searchType.value ? (openBlock(), createElementBlock("div", _hoisted_30$4, [
95658
- createElementVNode("div", _hoisted_31$4, [
95659
- filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_32$4, [
95660
- createElementVNode("div", _hoisted_33$4, [
95693
+ ])) : !searchType.value ? (openBlock(), createElementBlock("div", _hoisted_29$5, [
95694
+ createElementVNode("div", _hoisted_30$4, [
95695
+ filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_31$4, [
95696
+ createElementVNode("div", _hoisted_32$4, [
95661
95697
  createVNode(CIcon, {
95662
95698
  class: "mr-2",
95663
95699
  color: "var(--p-text2)",
95664
95700
  icon: "folder",
95665
95701
  size: "16"
95666
95702
  }),
95667
- createElementVNode("span", _hoisted_34$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.content")), 1),
95668
- createElementVNode("span", _hoisted_35$4, "(" + toDisplayString(filteredContentFiles.value.length) + ")", 1)
95703
+ createElementVNode("span", _hoisted_33$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.content")), 1),
95704
+ createElementVNode("span", _hoisted_34$4, "(" + toDisplayString(filteredContentFiles.value.length) + ")", 1)
95669
95705
  ]),
95670
95706
  createElementVNode("div", null, [
95671
95707
  (openBlock(true), createElementBlock(Fragment, null, renderList(filteredContentFiles.value.slice(0, 5), (item) => {
@@ -95687,22 +95723,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95687
95723
  "object-fit": "cover",
95688
95724
  src: item.picture_url || "",
95689
95725
  width: "72"
95690
- }, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_37$4, [
95726
+ }, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_36$4, [
95691
95727
  createVNode(CIcon, {
95692
95728
  color: "var(--p-text2)",
95693
95729
  icon: "folder",
95694
95730
  size: "32"
95695
95731
  })
95696
95732
  ])),
95697
- createElementVNode("div", _hoisted_38$4, [
95698
- createElementVNode("h3", _hoisted_39$4, toDisplayString(item.name), 1),
95699
- createElementVNode("p", _hoisted_40$4, toDisplayString(item.type === "folder" ? "Folder" : item.content_type || "PDF"), 1)
95733
+ createElementVNode("div", _hoisted_37$4, [
95734
+ createElementVNode("h3", _hoisted_38$4, toDisplayString(item.name), 1),
95735
+ createElementVNode("p", _hoisted_39$4, toDisplayString(item.type === "folder" ? "Folder" : item.content_type || "PDF"), 1)
95700
95736
  ]),
95701
- createElementVNode("div", _hoisted_41$4, toDisplayString(item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
95702
- ], 10, _hoisted_36$4);
95737
+ createElementVNode("div", _hoisted_40$4, toDisplayString(item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
95738
+ ], 10, _hoisted_35$4);
95703
95739
  }), 128))
95704
95740
  ]),
95705
- filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_42$4, [
95741
+ filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_41$4, [
95706
95742
  createElementVNode("span", {
95707
95743
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
95708
95744
  onClick: _cache[13] || (_cache[13] = ($event) => searchType.value = "content")
@@ -95716,16 +95752,16 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95716
95752
  ])
95717
95753
  ])) : createCommentVNode("", true)
95718
95754
  ])) : createCommentVNode("", true),
95719
- filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_43$4, [
95720
- createElementVNode("div", _hoisted_44$4, [
95755
+ filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_42$4, [
95756
+ createElementVNode("div", _hoisted_43$4, [
95721
95757
  createVNode(CIcon, {
95722
95758
  class: "mr-2",
95723
95759
  color: "var(--p-text2)",
95724
95760
  icon: "presentation",
95725
95761
  size: "16"
95726
95762
  }),
95727
- createElementVNode("span", _hoisted_45$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
95728
- createElementVNode("span", _hoisted_46$4, "(" + toDisplayString(filteredCanvasFiles.value.length) + ")", 1)
95763
+ createElementVNode("span", _hoisted_44$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
95764
+ createElementVNode("span", _hoisted_45$4, "(" + toDisplayString(filteredCanvasFiles.value.length) + ")", 1)
95729
95765
  ]),
95730
95766
  createElementVNode("div", null, [
95731
95767
  (openBlock(true), createElementBlock(Fragment, null, renderList(filteredCanvasFiles.value.slice(0, 5), (item) => {
@@ -95739,22 +95775,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95739
95775
  "data-result-selected": isResultSelected(item),
95740
95776
  onClick: ($event) => handleResultClick(item, "canvas")
95741
95777
  }, [
95742
- createElementVNode("div", _hoisted_48$4, [
95778
+ createElementVNode("div", _hoisted_47$4, [
95743
95779
  createVNode(CIcon, {
95744
95780
  color: "var(--p-text2)",
95745
95781
  icon: "presentation",
95746
95782
  size: "32"
95747
95783
  })
95748
95784
  ]),
95749
- createElementVNode("div", _hoisted_49$4, [
95750
- createElementVNode("h3", _hoisted_50$4, toDisplayString(item.name), 1),
95751
- createElementVNode("p", _hoisted_51$2, toDisplayString(formatCanvasType(item.content_type)), 1)
95785
+ createElementVNode("div", _hoisted_48$4, [
95786
+ createElementVNode("h3", _hoisted_49$4, toDisplayString(item.name), 1),
95787
+ createElementVNode("p", _hoisted_50$4, toDisplayString(formatCanvasType(item.content_type)), 1)
95752
95788
  ]),
95753
- createElementVNode("div", _hoisted_52$2, toDisplayString(item.folder?.name || ""), 1)
95754
- ], 10, _hoisted_47$4);
95789
+ createElementVNode("div", _hoisted_51$2, toDisplayString(item.folder?.name || ""), 1)
95790
+ ], 10, _hoisted_46$4);
95755
95791
  }), 128))
95756
95792
  ]),
95757
- filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_53$2, [
95793
+ filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_52$2, [
95758
95794
  createElementVNode("span", {
95759
95795
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
95760
95796
  onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "canvases")
@@ -95769,7 +95805,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95769
95805
  ])) : createCommentVNode("", true)
95770
95806
  ])) : createCommentVNode("", true)
95771
95807
  ]),
95772
- searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_54$1, [
95808
+ searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_53$2, [
95773
95809
  createVNode(CIcon, {
95774
95810
  class: "text-6xl",
95775
95811
  color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
@@ -95780,9 +95816,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95780
95816
  class: normalizeClass(searchError.value ? "text-error font-semibold" : "text-text2")
95781
95817
  }, toDisplayString(searchError.value || unref(t)("canvasUI.CGlobalSearch.noResults")), 3)
95782
95818
  ])) : createCommentVNode("", true)
95783
- ])) : (openBlock(), createElementBlock("div", _hoisted_55$1, [
95784
- createElementVNode("div", _hoisted_56$1, [
95785
- createElementVNode("div", _hoisted_57$1, [
95819
+ ])) : (openBlock(), createElementBlock("div", _hoisted_54$1, [
95820
+ createElementVNode("div", _hoisted_55$1, [
95821
+ createElementVNode("div", _hoisted_56$1, [
95786
95822
  searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
95787
95823
  key: 0,
95788
95824
  class: "mr-2",
@@ -95796,8 +95832,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95796
95832
  icon: "presentation",
95797
95833
  size: "16"
95798
95834
  })),
95799
- createElementVNode("span", _hoisted_58$1, toDisplayString(searchType.value === "content" ? unref(t)("canvasUI.CAlgoliaSearch.sections.content") : unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
95800
- createElementVNode("span", _hoisted_59$1, " (" + toDisplayString(searchType.value === "content" ? filteredContentFiles.value.length : filteredCanvasFiles.value.length) + ") ", 1)
95835
+ createElementVNode("span", _hoisted_57$1, toDisplayString(searchType.value === "content" ? unref(t)("canvasUI.CAlgoliaSearch.sections.content") : unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
95836
+ createElementVNode("span", _hoisted_58$1, " (" + toDisplayString(searchType.value === "content" ? filteredContentFiles.value.length : filteredCanvasFiles.value.length) + ") ", 1)
95801
95837
  ]),
95802
95838
  createElementVNode("div", null, [
95803
95839
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchType.value === "content" ? filteredContentFiles.value : filteredCanvasFiles.value, (item) => {
@@ -95822,7 +95858,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95822
95858
  "object-fit": "cover",
95823
95859
  src: item.picture_url || "",
95824
95860
  width: "72"
95825
- }, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_61$1, [
95861
+ }, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_60$1, [
95826
95862
  searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
95827
95863
  key: 0,
95828
95864
  color: "var(--p-text2)",
@@ -95835,15 +95871,15 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95835
95871
  size: "32"
95836
95872
  }))
95837
95873
  ])),
95838
- createElementVNode("div", _hoisted_62$1, [
95839
- createElementVNode("h3", _hoisted_63$1, toDisplayString(item.name), 1),
95840
- createElementVNode("p", _hoisted_64$1, toDisplayString(searchType.value === "content" ? item.type === "folder" ? "Folder" : item.content_type || "PDF" : formatCanvasType(item.content_type)), 1)
95874
+ createElementVNode("div", _hoisted_61$1, [
95875
+ createElementVNode("h3", _hoisted_62$1, toDisplayString(item.name), 1),
95876
+ createElementVNode("p", _hoisted_63$1, toDisplayString(searchType.value === "content" ? item.type === "folder" ? "Folder" : item.content_type || "PDF" : formatCanvasType(item.content_type)), 1)
95841
95877
  ]),
95842
- createElementVNode("div", _hoisted_65$1, toDisplayString(searchType.value === "content" && item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
95843
- ], 10, _hoisted_60$1);
95878
+ createElementVNode("div", _hoisted_64$1, toDisplayString(searchType.value === "content" && item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
95879
+ ], 10, _hoisted_59$1);
95844
95880
  }), 128))
95845
95881
  ]),
95846
- searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_66$1, [
95882
+ searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_65$1, [
95847
95883
  createVNode(CIcon, {
95848
95884
  class: "text-6xl",
95849
95885
  color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
@@ -95857,7 +95893,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95857
95893
  ])
95858
95894
  ]))
95859
95895
  ]),
95860
- !showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_67$1, [
95896
+ !showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_66$1, [
95861
95897
  createVNode(CShortcut, null, {
95862
95898
  default: withCtx(() => [
95863
95899
  createVNode(CShortcutIcon, { icon: "arrow-up" }),
@@ -95899,7 +95935,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
95899
95935
  }
95900
95936
  });
95901
95937
 
95902
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-2614a281"]]);
95938
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-14d06208"]]);
95903
95939
 
95904
95940
  const BulletListExtended = BulletList.extend({
95905
95941
  addOptions() {