@pitcher/canvas-ui 2026.1.22-124836-beta → 2026.1.22-145841-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 +19 -19
- package/canvas-ui.js +34 -13
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.css
CHANGED
|
@@ -1401,18 +1401,18 @@ to {
|
|
|
1401
1401
|
height: 100px;
|
|
1402
1402
|
background: var(--3ad38b36);
|
|
1403
1403
|
}
|
|
1404
|
-
.content-grid-file-item[data-v-
|
|
1405
|
-
color: 1px solid var(--
|
|
1404
|
+
.content-grid-file-item[data-v-660a5765] {
|
|
1405
|
+
color: 1px solid var(--3d45b92e);
|
|
1406
1406
|
}
|
|
1407
|
-
.content-grid-file-item__img[data-v-
|
|
1408
|
-
outline: 1px solid var(--
|
|
1407
|
+
.content-grid-file-item__img[data-v-660a5765] {
|
|
1408
|
+
outline: 1px solid var(--3aa83df5);
|
|
1409
1409
|
}
|
|
1410
|
-
.description[data-v-
|
|
1411
|
-
color: var(--
|
|
1410
|
+
.description[data-v-660a5765] {
|
|
1411
|
+
color: var(--6b716cc5);
|
|
1412
1412
|
}
|
|
1413
1413
|
.dot-slider {
|
|
1414
1414
|
.dot {
|
|
1415
|
-
&[data-v-
|
|
1415
|
+
&[data-v-660a5765] {
|
|
1416
1416
|
border-radius: 50%;
|
|
1417
1417
|
background-color: rgba(0, 0, 0, 0.3);
|
|
1418
1418
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
@@ -1420,10 +1420,10 @@ to {
|
|
|
1420
1420
|
box-shadow 0.3s 0,
|
|
1421
1421
|
background-color 0.3s 0;
|
|
1422
1422
|
}
|
|
1423
|
-
&.dot--active[data-v-
|
|
1423
|
+
&.dot--active[data-v-660a5765] {
|
|
1424
1424
|
height: 10px;
|
|
1425
1425
|
width: 10px;
|
|
1426
|
-
background-color: var(--
|
|
1426
|
+
background-color: var(--d2ece33e);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
@@ -1432,15 +1432,15 @@ to {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
.color-text[data-v-79d6b1bf] {
|
|
1434
1434
|
color: var(--0a685aa6);
|
|
1435
|
-
}.content-grid-raw__item[data-v-
|
|
1436
|
-
color: var(--
|
|
1437
|
-
border: 1px solid var(--
|
|
1435
|
+
}.content-grid-raw__item[data-v-a4be1f85] {
|
|
1436
|
+
color: var(--9e48fc38);
|
|
1437
|
+
border: 1px solid var(--2fc288ac);
|
|
1438
1438
|
}
|
|
1439
|
-
.content-grid-raw__item__img[data-v-
|
|
1440
|
-
outline: 1px solid var(--
|
|
1439
|
+
.content-grid-raw__item__img[data-v-a4be1f85] {
|
|
1440
|
+
outline: 1px solid var(--2fc288aa);
|
|
1441
1441
|
}
|
|
1442
|
-
.content-grid-raw__item__hint[data-v-
|
|
1443
|
-
color: var(--
|
|
1442
|
+
.content-grid-raw__item__hint[data-v-a4be1f85] {
|
|
1443
|
+
color: var(--6a94bacf);
|
|
1444
1444
|
}
|
|
1445
1445
|
[data-v-440dbcdb] .content-grid-carousel__arrows {
|
|
1446
1446
|
box-sizing: border-box;
|
|
@@ -1469,12 +1469,12 @@ to {
|
|
|
1469
1469
|
[data-v-440dbcdb] .content-grid-carousel__button:hover {
|
|
1470
1470
|
background-color: rgba(0, 0, 0, 0.1);
|
|
1471
1471
|
}
|
|
1472
|
-
.content-grid-list-item[data-v-
|
|
1472
|
+
.content-grid-list-item[data-v-f1296b1d] {
|
|
1473
1473
|
cursor: pointer;
|
|
1474
1474
|
transition: background-color 0.2s;
|
|
1475
1475
|
}
|
|
1476
|
-
.content-grid-list-item[data-v-
|
|
1477
|
-
background-color: var(--
|
|
1476
|
+
.content-grid-list-item[data-v-f1296b1d]:hover {
|
|
1477
|
+
background-color: var(--3f0f3834);
|
|
1478
1478
|
}
|
|
1479
1479
|
.content-grid-list[data-v-f00de553] {
|
|
1480
1480
|
max-height: 600px;
|
package/canvas-ui.js
CHANGED
|
@@ -122571,6 +122571,9 @@ const _sfc_main$4e = /* @__PURE__ */ defineComponent({
|
|
|
122571
122571
|
if (!launchDarkly.value.enable_file_sharing_print_permissions) {
|
|
122572
122572
|
return true;
|
|
122573
122573
|
}
|
|
122574
|
+
if (props.item?.permissions?.can_share === false) {
|
|
122575
|
+
return true;
|
|
122576
|
+
}
|
|
122574
122577
|
return props.item?.permissions?.can_print !== false;
|
|
122575
122578
|
});
|
|
122576
122579
|
return (_ctx, _cache) => {
|
|
@@ -141076,10 +141079,10 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
|
|
|
141076
141079
|
},
|
|
141077
141080
|
setup(__props) {
|
|
141078
141081
|
useCssVars((_ctx) => ({
|
|
141079
|
-
"
|
|
141080
|
-
"
|
|
141081
|
-
"
|
|
141082
|
-
"
|
|
141082
|
+
"3d45b92e": unref(themeVars).text,
|
|
141083
|
+
"3aa83df5": unref(themeVars).primary6,
|
|
141084
|
+
"6b716cc5": unref(themeVars).text3,
|
|
141085
|
+
"d2ece33e": unref(themeVars).primary
|
|
141083
141086
|
}));
|
|
141084
141087
|
const props = __props;
|
|
141085
141088
|
const launchDarkly = inject(
|
|
@@ -141099,6 +141102,9 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
|
|
|
141099
141102
|
if (!launchDarkly.value.enable_file_sharing_print_permissions) {
|
|
141100
141103
|
return true;
|
|
141101
141104
|
}
|
|
141105
|
+
if (!isShareable.value) {
|
|
141106
|
+
return true;
|
|
141107
|
+
}
|
|
141102
141108
|
const file = fileDataCache.value.get(item.value?.file.id || "");
|
|
141103
141109
|
if (file) {
|
|
141104
141110
|
return file.permissions?.can_print !== false;
|
|
@@ -141323,7 +141329,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
|
|
|
141323
141329
|
}
|
|
141324
141330
|
});
|
|
141325
141331
|
|
|
141326
|
-
const ContentGridFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$2O, [["__scopeId", "data-v-
|
|
141332
|
+
const ContentGridFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$2O, [["__scopeId", "data-v-660a5765"]]);
|
|
141327
141333
|
|
|
141328
141334
|
const _hoisted_1$2a = { class: "flex items-center flex-col justify-center" };
|
|
141329
141335
|
const _hoisted_2$1y = { class: "text-center font-400 text-truncate font-size-4 line-height-6 color-text font-normal" };
|
|
@@ -141383,10 +141389,10 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
|
|
|
141383
141389
|
emits: ["deletedFileClicked"],
|
|
141384
141390
|
setup(__props, { emit: __emit }) {
|
|
141385
141391
|
useCssVars((_ctx) => ({
|
|
141386
|
-
"
|
|
141387
|
-
"
|
|
141388
|
-
"
|
|
141389
|
-
"
|
|
141392
|
+
"9e48fc38": unref(themeVars).text,
|
|
141393
|
+
"2fc288ac": unref(themeVars).primary5,
|
|
141394
|
+
"2fc288aa": unref(themeVars).primary6,
|
|
141395
|
+
"6a94bacf": unref(themeVars).text3
|
|
141390
141396
|
}));
|
|
141391
141397
|
const props = __props;
|
|
141392
141398
|
const emit = __emit;
|
|
@@ -141406,6 +141412,9 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
|
|
|
141406
141412
|
if (!launchDarkly.value.enable_file_sharing_print_permissions) {
|
|
141407
141413
|
return true;
|
|
141408
141414
|
}
|
|
141415
|
+
if (!isShareable.value) {
|
|
141416
|
+
return true;
|
|
141417
|
+
}
|
|
141409
141418
|
return props.item.file?.permissions?.can_print !== false;
|
|
141410
141419
|
});
|
|
141411
141420
|
const canDownload = computed(() => {
|
|
@@ -141505,7 +141514,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
|
|
|
141505
141514
|
}
|
|
141506
141515
|
});
|
|
141507
141516
|
|
|
141508
|
-
const ContentGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$2M, [["__scopeId", "data-v-
|
|
141517
|
+
const ContentGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$2M, [["__scopeId", "data-v-a4be1f85"]]);
|
|
141509
141518
|
|
|
141510
141519
|
const _hoisted_1$28 = ["onClick"];
|
|
141511
141520
|
const _hoisted_2$1w = ["onClick"];
|
|
@@ -141652,7 +141661,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
|
141652
141661
|
emits: ["deletedFileClicked"],
|
|
141653
141662
|
setup(__props, { emit: __emit }) {
|
|
141654
141663
|
useCssVars((_ctx) => ({
|
|
141655
|
-
"
|
|
141664
|
+
"3f0f3834": unref(themeVars).primary6
|
|
141656
141665
|
}));
|
|
141657
141666
|
const { t } = useI18n();
|
|
141658
141667
|
const vTooltip = tooltipDirective;
|
|
@@ -141780,6 +141789,9 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
|
141780
141789
|
if (!launchDarkly.value.enable_file_sharing_print_permissions) {
|
|
141781
141790
|
return true;
|
|
141782
141791
|
}
|
|
141792
|
+
if (enrichedFile.value?.permissions?.can_share === false) {
|
|
141793
|
+
return true;
|
|
141794
|
+
}
|
|
141783
141795
|
return enrichedFile.value?.permissions?.can_print !== false;
|
|
141784
141796
|
});
|
|
141785
141797
|
const { hasValidThumbnail, handleImageError } = useImageAccessibility({
|
|
@@ -141960,7 +141972,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
|
141960
141972
|
}
|
|
141961
141973
|
});
|
|
141962
141974
|
|
|
141963
|
-
const ContentGridListItem = /* @__PURE__ */ _export_sfc(_sfc_main$2K, [["__scopeId", "data-v-
|
|
141975
|
+
const ContentGridListItem = /* @__PURE__ */ _export_sfc(_sfc_main$2K, [["__scopeId", "data-v-f1296b1d"]]);
|
|
141964
141976
|
|
|
141965
141977
|
const _hoisted_1$26 = { class: "content-grid-list w-full rounded-2 flex bg-base p-4" };
|
|
141966
141978
|
const _hoisted_2$1u = { class: "flex flex-col w-full" };
|
|
@@ -171954,6 +171966,11 @@ const _sfc_main$11 = /*@__PURE__*/defineComponent({
|
|
|
171954
171966
|
if (!launchDarkly.value.enable_file_sharing_print_permissions) {
|
|
171955
171967
|
return true;
|
|
171956
171968
|
}
|
|
171969
|
+
|
|
171970
|
+
// If sharing is disabled, don't show print badge (sharing takes precedence)
|
|
171971
|
+
if (props.item.file?.permissions?.can_share === false) {
|
|
171972
|
+
return true;
|
|
171973
|
+
}
|
|
171957
171974
|
const fileId = getFileId();
|
|
171958
171975
|
return files.value?.[fileId]?.permissions?.can_print !== false;
|
|
171959
171976
|
});
|
|
@@ -178668,7 +178685,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
178668
178685
|
});
|
|
178669
178686
|
}
|
|
178670
178687
|
const isPptxFile = getFileExtension(file) === "pptx";
|
|
178671
|
-
const fileMetadata = {
|
|
178688
|
+
const fileMetadata = {
|
|
178689
|
+
...metadata.value,
|
|
178690
|
+
...form.value.metadata,
|
|
178691
|
+
pitcher: { ...metadata.value?.pitcher, ...form.value.metadata?.pitcher }
|
|
178692
|
+
};
|
|
178672
178693
|
if (isPptxFile && shouldShowConvertPptxToHtml.value) {
|
|
178673
178694
|
fileMetadata.convert_pptx_to_html = convertPptxToHtml.value;
|
|
178674
178695
|
}
|