@pitcher/canvas-ui 2026.1.12-150608-beta → 2026.1.12-164137-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 +17 -17
- package/canvas-ui.js +27 -17
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
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-
|
|
554
|
+
}[data-v-1dc237d6] .ais-SearchBox {
|
|
555
555
|
margin: 0;
|
|
556
556
|
}
|
|
557
|
-
[data-v-
|
|
557
|
+
[data-v-1dc237d6] .ais-SearchBox-submit,[data-v-1dc237d6] .ais-SearchBox-reset {
|
|
558
558
|
display: none;
|
|
559
559
|
}
|
|
560
|
-
.admin-search[data-v-
|
|
560
|
+
.admin-search[data-v-1dc237d6] .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-
|
|
574
|
+
.admin-search[data-v-1dc237d6] .ais-SearchBox-reset:hover {
|
|
575
575
|
color: var(--p-text2) !important;
|
|
576
576
|
}
|
|
577
|
-
.admin-search[data-v-
|
|
577
|
+
.admin-search[data-v-1dc237d6] .ais-SearchBox-reset:focus {
|
|
578
578
|
outline: none !important;
|
|
579
579
|
color: var(--p-primary) !important;
|
|
580
580
|
}
|
|
581
|
-
.admin-search[data-v-
|
|
581
|
+
.admin-search[data-v-1dc237d6] .ais-SearchBox-input {
|
|
582
582
|
padding-right: 40px !important;
|
|
583
583
|
}
|
|
584
|
-
[data-v-
|
|
584
|
+
[data-v-1dc237d6] .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-
|
|
593
|
+
[data-v-1dc237d6] .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-
|
|
598
|
+
[data-v-1dc237d6] .ais-SearchBox-input::placeholder {
|
|
599
599
|
color: var(--p-text3);
|
|
600
600
|
font-size: 14px;
|
|
601
601
|
}
|
|
602
|
-
.overflow-y-auto[data-v-
|
|
602
|
+
.overflow-y-auto[data-v-1dc237d6] {
|
|
603
603
|
scrollbar-width: thin;
|
|
604
604
|
scrollbar-color: var(--p-border2) var(--p-surface2);
|
|
605
605
|
}
|
|
606
|
-
.overflow-y-auto[data-v-
|
|
606
|
+
.overflow-y-auto[data-v-1dc237d6]::-webkit-scrollbar {
|
|
607
607
|
width: 6px;
|
|
608
608
|
}
|
|
609
|
-
.overflow-y-auto[data-v-
|
|
609
|
+
.overflow-y-auto[data-v-1dc237d6]::-webkit-scrollbar-track {
|
|
610
610
|
background: var(--p-surface2);
|
|
611
611
|
}
|
|
612
|
-
.overflow-y-auto[data-v-
|
|
612
|
+
.overflow-y-auto[data-v-1dc237d6]::-webkit-scrollbar-thumb {
|
|
613
613
|
background-color: var(--p-border2);
|
|
614
614
|
border-radius: 3px;
|
|
615
615
|
}
|
|
616
|
-
.overflow-y-auto[data-v-
|
|
616
|
+
.overflow-y-auto[data-v-1dc237d6]::-webkit-scrollbar-thumb:hover {
|
|
617
617
|
background-color: var(--p-text3);
|
|
618
618
|
}
|
|
619
|
-
button[data-v-
|
|
619
|
+
button[data-v-1dc237d6]:hover {
|
|
620
620
|
transition: all 0.2s ease;
|
|
621
621
|
}
|
|
622
|
-
button[data-v-
|
|
622
|
+
button[data-v-1dc237d6]:focus {
|
|
623
623
|
outline: none;
|
|
624
624
|
}
|
|
625
|
-
[data-v-
|
|
625
|
+
[data-v-1dc237d6] mark,[data-v-1dc237d6] em {
|
|
626
626
|
font-weight: bold;
|
|
627
627
|
font-style: normal;
|
|
628
628
|
}
|
package/canvas-ui.js
CHANGED
|
@@ -96010,6 +96010,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96010
96010
|
const unfilteredCanvasResults = ref([]);
|
|
96011
96011
|
const isSearching = ref(false);
|
|
96012
96012
|
const hasSearchCompleted = ref(false);
|
|
96013
|
+
let currentSearchId = 0;
|
|
96013
96014
|
const querySuggestions = ref([]);
|
|
96014
96015
|
const selectedSuggestionIndex = ref(-1);
|
|
96015
96016
|
const selectedResultIndex = ref(-1);
|
|
@@ -96107,6 +96108,8 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96107
96108
|
};
|
|
96108
96109
|
watch(searchType, () => {
|
|
96109
96110
|
selectedResultIndex.value = -1;
|
|
96111
|
+
showFileTypeDropdown.value = false;
|
|
96112
|
+
showCanvasTypeDropdown.value = false;
|
|
96110
96113
|
});
|
|
96111
96114
|
watch(visibleFileTypeOptions, (newOptions) => {
|
|
96112
96115
|
if (selectedFileType.value) {
|
|
@@ -96182,6 +96185,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96182
96185
|
isSearching.value = true;
|
|
96183
96186
|
hasSearchCompleted.value = false;
|
|
96184
96187
|
searchError.value = null;
|
|
96188
|
+
const searchId = ++currentSearchId;
|
|
96185
96189
|
const shouldSkipSuggestionFetch = skipNextSuggestionFetch.value;
|
|
96186
96190
|
if (shouldSkipSuggestionFetch) {
|
|
96187
96191
|
skipNextSuggestionFetch.value = false;
|
|
@@ -96247,25 +96251,27 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96247
96251
|
}
|
|
96248
96252
|
await nextTick();
|
|
96249
96253
|
setTimeout(() => {
|
|
96250
|
-
|
|
96251
|
-
|
|
96254
|
+
if (searchId === currentSearchId) {
|
|
96255
|
+
isSearching.value = false;
|
|
96256
|
+
hasSearchCompleted.value = true;
|
|
96257
|
+
}
|
|
96252
96258
|
}, 50);
|
|
96253
96259
|
} catch (error) {
|
|
96254
96260
|
console.error("Search error:", error);
|
|
96255
|
-
|
|
96256
|
-
|
|
96257
|
-
|
|
96258
|
-
|
|
96259
|
-
|
|
96260
|
-
|
|
96261
|
-
|
|
96262
|
-
|
|
96263
|
-
|
|
96264
|
-
|
|
96265
|
-
|
|
96266
|
-
|
|
96267
|
-
|
|
96268
|
-
|
|
96261
|
+
if (searchId === currentSearchId) {
|
|
96262
|
+
contentResults.value = [];
|
|
96263
|
+
canvasResults.value = [];
|
|
96264
|
+
isSearching.value = false;
|
|
96265
|
+
hasSearchCompleted.value = true;
|
|
96266
|
+
if (error.message === "AUTH_REQUIRED") {
|
|
96267
|
+
searchError.value = "Please sign in to search";
|
|
96268
|
+
} else if (error.message === "AUTH_EXPIRED") {
|
|
96269
|
+
searchError.value = "Your session has expired. Please sign in again";
|
|
96270
|
+
} else if (error.message === "AUTH_FORBIDDEN") {
|
|
96271
|
+
searchError.value = "You do not have permission to search this instance";
|
|
96272
|
+
} else {
|
|
96273
|
+
searchError.value = "Search failed. Please try again";
|
|
96274
|
+
}
|
|
96269
96275
|
}
|
|
96270
96276
|
}
|
|
96271
96277
|
};
|
|
@@ -96313,6 +96319,8 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96313
96319
|
showRecentView.value = true;
|
|
96314
96320
|
contentResults.value = [];
|
|
96315
96321
|
canvasResults.value = [];
|
|
96322
|
+
unfilteredContentResults.value = [];
|
|
96323
|
+
unfilteredCanvasResults.value = [];
|
|
96316
96324
|
querySuggestions.value = [];
|
|
96317
96325
|
selectedSuggestionIndex.value = -1;
|
|
96318
96326
|
selectedResultIndex.value = -1;
|
|
@@ -96326,6 +96334,8 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96326
96334
|
showRecentView.value = true;
|
|
96327
96335
|
contentResults.value = [];
|
|
96328
96336
|
canvasResults.value = [];
|
|
96337
|
+
unfilteredContentResults.value = [];
|
|
96338
|
+
unfilteredCanvasResults.value = [];
|
|
96329
96339
|
querySuggestions.value = [];
|
|
96330
96340
|
selectedSuggestionIndex.value = -1;
|
|
96331
96341
|
selectedResultIndex.value = -1;
|
|
@@ -97269,7 +97279,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
97269
97279
|
}
|
|
97270
97280
|
});
|
|
97271
97281
|
|
|
97272
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-
|
|
97282
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-1dc237d6"]]);
|
|
97273
97283
|
|
|
97274
97284
|
const BulletListExtended = BulletList.extend({
|
|
97275
97285
|
addOptions() {
|