@pitcher/canvas-ui 2025.12.18-75050 → 2025.12.19-075910-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-c5f0443f] .ais-SearchBox {
555
555
  margin: 0;
556
556
  }
557
- [data-v-07e48e19] .ais-SearchBox-submit,[data-v-07e48e19] .ais-SearchBox-reset {
557
+ [data-v-c5f0443f] .ais-SearchBox-submit,[data-v-c5f0443f] .ais-SearchBox-reset {
558
558
  display: none;
559
559
  }
560
- .admin-search[data-v-07e48e19] .ais-SearchBox-reset {
560
+ .admin-search[data-v-c5f0443f] .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-c5f0443f] .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-c5f0443f] .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-c5f0443f] .ais-SearchBox-input {
582
582
  padding-right: 40px !important;
583
583
  }
584
- [data-v-07e48e19] .ais-SearchBox-input {
584
+ [data-v-c5f0443f] .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-c5f0443f] .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-c5f0443f] .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-c5f0443f] {
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-c5f0443f]::-webkit-scrollbar {
607
607
  width: 6px;
608
608
  }
609
- .overflow-y-auto[data-v-07e48e19]::-webkit-scrollbar-track {
609
+ .overflow-y-auto[data-v-c5f0443f]::-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-c5f0443f]::-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-c5f0443f]::-webkit-scrollbar-thumb:hover {
617
617
  background-color: var(--p-text3);
618
618
  }
619
- button[data-v-07e48e19]:hover {
619
+ button[data-v-c5f0443f]:hover {
620
620
  transition: all 0.2s ease;
621
621
  }
622
- button[data-v-07e48e19]:focus {
622
+ button[data-v-c5f0443f]:focus {
623
623
  outline: none;
624
624
  }
625
- [data-v-07e48e19] mark,[data-v-07e48e19] em {
625
+ [data-v-c5f0443f] mark,[data-v-c5f0443f] em {
626
626
  font-weight: bold;
627
627
  font-style: normal;
628
628
  }
package/canvas-ui.js CHANGED
@@ -87862,6 +87862,15 @@ function crmUpsert(payload) {
87862
87862
  }
87863
87863
  return highLevelApi.API.request("crm_upsert", payload);
87864
87864
  }
87865
+ function crmDescribe(payload) {
87866
+ if (!payload) {
87867
+ return Promise.reject(new Error("Payload is required"));
87868
+ }
87869
+ if (!payload.sobject || typeof payload.sobject !== "string" || payload.sobject.trim() === "") {
87870
+ return Promise.reject(new Error("sobject is required and must be a non-empty string"));
87871
+ }
87872
+ return highLevelApi.API.request("crm_describe", payload);
87873
+ }
87865
87874
 
87866
87875
  function getFolders(payload) {
87867
87876
  return this.API.request("get_folders", payload);
@@ -87959,6 +87968,7 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
87959
87968
  createFile,
87960
87969
  createFolder,
87961
87970
  crmCreate,
87971
+ crmDescribe,
87962
87972
  crmQuery,
87963
87973
  crmSmartDeleteObjects,
87964
87974
  crmSmartObjectMetadata,
@@ -95118,10 +95128,20 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95118
95128
  canvas: canvasFilters,
95119
95129
  content: contentFilters
95120
95130
  });
95131
+ if (query.trim() !== searchQuery.value.trim()) {
95132
+ return;
95133
+ }
95121
95134
  contentResults.value = results.content?.hits || [];
95122
95135
  canvasResults.value = results.canvas?.hits || [];
95123
95136
  selectedResultIndex.value = -1;
95124
95137
  searchError.value = null;
95138
+ if (query.trim().length >= 2) {
95139
+ if (skipNextSuggestionFetch.value) {
95140
+ skipNextSuggestionFetch.value = false;
95141
+ } else {
95142
+ fetchQuerySuggestions(query.trim());
95143
+ }
95144
+ }
95125
95145
  const totalResults = contentResults.value.length + canvasResults.value.length;
95126
95146
  trackAlgoliaSearchPerformed(query.trim(), totalResults);
95127
95147
  if (totalResults === 0) {
@@ -95170,13 +95190,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95170
95190
  if (validatedQuery.trim()) {
95171
95191
  showRecentView.value = false;
95172
95192
  hasSearchCompleted.value = false;
95173
- if (validatedQuery.trim().length >= 2) {
95174
- if (skipNextSuggestionFetch.value) {
95175
- skipNextSuggestionFetch.value = false;
95176
- } else {
95177
- fetchQuerySuggestions(validatedQuery);
95178
- }
95179
- } else {
95193
+ if (validatedQuery.trim().length < 2) {
95180
95194
  querySuggestions.value = [];
95181
95195
  selectedSuggestionIndex.value = -1;
95182
95196
  }
@@ -96144,7 +96158,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96144
96158
  }
96145
96159
  });
96146
96160
 
96147
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-07e48e19"]]);
96161
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-c5f0443f"]]);
96148
96162
 
96149
96163
  const BulletListExtended = BulletList.extend({
96150
96164
  addOptions() {