@pitcher/canvas-ui 2026.1.13-125745-beta → 2026.1.13-135930-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
@@ -925,25 +925,25 @@ button[data-v-da2357d4]:focus {
925
925
  }.c-users-groups-access-manage__select[data-v-fe2300a1] {
926
926
  width: 180px;
927
927
  }
928
- .panel-title[data-v-05db071e] {
929
- color: var(--7e857d3a);
928
+ .panel-title[data-v-aa03fa77] {
929
+ color: var(--6fe3245a);
930
930
  letter-spacing: 0.15px;
931
931
  }
932
- .base[data-v-05db071e] {
933
- background-color: var(--7e7d3ede);
932
+ .base[data-v-aa03fa77] {
933
+ background-color: var(--6fdae5fe);
934
934
  }
935
- .selection-panel-list-item[data-v-05db071e] {
936
- background: var(--e1e1c7fe);
935
+ .selection-panel-list-item[data-v-aa03fa77] {
936
+ background: var(--85f799be);
937
937
  }
938
- .selection-panel-list-handle[data-v-05db071e] {
939
- color: var(--e1e1c804);
938
+ .selection-panel-list-handle[data-v-aa03fa77] {
939
+ color: var(--85f799c4);
940
940
  }
941
- .title[data-v-05db071e] {
942
- color: var(--7e857d3a);
941
+ .title[data-v-aa03fa77] {
942
+ color: var(--6fe3245a);
943
943
  letter-spacing: 0.4px;
944
944
  }
945
- .description[data-v-05db071e] {
946
- color: var(--e1e1c804);
945
+ .description[data-v-aa03fa77] {
946
+ color: var(--85f799c4);
947
947
  }
948
948
  .content-selector__section-title[data-v-2e7377ec] {
949
949
  font-size: 18px;
@@ -958,7 +958,7 @@ button[data-v-da2357d4]:focus {
958
958
  background-color: var(--49a7913e);
959
959
  }
960
960
 
961
- [data-v-ba7b39ff] .dynamic-value-tree-select__trigger {
961
+ [data-v-1287b675] .dynamic-value-tree-select__trigger {
962
962
  margin-right: -16px;
963
963
  }
964
964
  .ai-preview-container[data-v-2a9cccf6] {
@@ -1604,65 +1604,65 @@ to {
1604
1604
  object-fit: var(--1d3ef4cb);
1605
1605
  height: 100%;
1606
1606
  }
1607
- .canvas-text[data-v-73a884c3] p {
1607
+ .canvas-text[data-v-b2424519] p {
1608
1608
  margin-bottom: 20px;
1609
1609
  }
1610
- [data-v-73a884c3] .ProseMirror:focus {
1610
+ [data-v-b2424519] .ProseMirror:focus {
1611
1611
  outline: none;
1612
1612
  }
1613
- .cb-text-component[data-v-73a884c3] p,
1614
- .c-text__rich-text-editor[data-v-73a884c3] p,
1615
- .cb-text-component[data-v-73a884c3] ol,
1616
- .c-text__rich-text-editor[data-v-73a884c3] ol,
1617
- .cb-text-component[data-v-73a884c3] ul,
1618
- .c-text__rich-text-editor[data-v-73a884c3] ul {
1613
+ .cb-text-component[data-v-b2424519] p,
1614
+ .c-text__rich-text-editor[data-v-b2424519] p,
1615
+ .cb-text-component[data-v-b2424519] ol,
1616
+ .c-text__rich-text-editor[data-v-b2424519] ol,
1617
+ .cb-text-component[data-v-b2424519] ul,
1618
+ .c-text__rich-text-editor[data-v-b2424519] ul {
1619
1619
  margin: 0 0 1em 0;
1620
1620
  min-height: 1.6em;
1621
1621
  }
1622
- .cb-text-component[data-v-73a884c3] ol,
1623
- .c-text__rich-text-editor[data-v-73a884c3] ol,
1624
- .cb-text-component[data-v-73a884c3] ul,
1625
- .c-text__rich-text-editor[data-v-73a884c3] ul {
1622
+ .cb-text-component[data-v-b2424519] ol,
1623
+ .c-text__rich-text-editor[data-v-b2424519] ol,
1624
+ .cb-text-component[data-v-b2424519] ul,
1625
+ .c-text__rich-text-editor[data-v-b2424519] ul {
1626
1626
  padding: 0 0 0 1em;
1627
1627
  }
1628
- .cb-text-component[data-v-73a884c3] p:last-of-type,
1629
- .c-text__rich-text-editor[data-v-73a884c3] p:last-of-type,
1630
- .cb-text-component[data-v-73a884c3] ol:last-of-type,
1631
- .c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type,
1632
- .cb-text-component[data-v-73a884c3] ul:last-of-type,
1633
- .c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type {
1628
+ .cb-text-component[data-v-b2424519] p:last-of-type,
1629
+ .c-text__rich-text-editor[data-v-b2424519] p:last-of-type,
1630
+ .cb-text-component[data-v-b2424519] ol:last-of-type,
1631
+ .c-text__rich-text-editor[data-v-b2424519] ol:last-of-type,
1632
+ .cb-text-component[data-v-b2424519] ul:last-of-type,
1633
+ .c-text__rich-text-editor[data-v-b2424519] ul:last-of-type {
1634
1634
  margin-bottom: 0em;
1635
1635
  }
1636
- .cb-text-component[data-v-73a884c3] p:last-of-type + ol,
1637
- .c-text__rich-text-editor[data-v-73a884c3] p:last-of-type + ol,
1638
- .cb-text-component[data-v-73a884c3] p:last-of-type + ul,
1639
- .c-text__rich-text-editor[data-v-73a884c3] p:last-of-type + ul,
1640
- .cb-text-component[data-v-73a884c3] ol:last-of-type + p,
1641
- .c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type + p,
1642
- .cb-text-component[data-v-73a884c3] ol:last-of-type + ul,
1643
- .c-text__rich-text-editor[data-v-73a884c3] ol:last-of-type + ul,
1644
- .cb-text-component[data-v-73a884c3] ul:last-of-type + p,
1645
- .c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type + p,
1646
- .cb-text-component[data-v-73a884c3] ul:last-of-type + ol,
1647
- .c-text__rich-text-editor[data-v-73a884c3] ul:last-of-type + ol {
1636
+ .cb-text-component[data-v-b2424519] p:last-of-type + ol,
1637
+ .c-text__rich-text-editor[data-v-b2424519] p:last-of-type + ol,
1638
+ .cb-text-component[data-v-b2424519] p:last-of-type + ul,
1639
+ .c-text__rich-text-editor[data-v-b2424519] p:last-of-type + ul,
1640
+ .cb-text-component[data-v-b2424519] ol:last-of-type + p,
1641
+ .c-text__rich-text-editor[data-v-b2424519] ol:last-of-type + p,
1642
+ .cb-text-component[data-v-b2424519] ol:last-of-type + ul,
1643
+ .c-text__rich-text-editor[data-v-b2424519] ol:last-of-type + ul,
1644
+ .cb-text-component[data-v-b2424519] ul:last-of-type + p,
1645
+ .c-text__rich-text-editor[data-v-b2424519] ul:last-of-type + p,
1646
+ .cb-text-component[data-v-b2424519] ul:last-of-type + ol,
1647
+ .c-text__rich-text-editor[data-v-b2424519] ul:last-of-type + ol {
1648
1648
  margin-top: 1em;
1649
1649
  }
1650
- .cb-text-component[data-v-73a884c3] ol > li ol,
1651
- .c-text__rich-text-editor[data-v-73a884c3] ol > li ol,
1652
- .cb-text-component[data-v-73a884c3] ol > li ul,
1653
- .c-text__rich-text-editor[data-v-73a884c3] ol > li ul,
1654
- .cb-text-component[data-v-73a884c3] ul > li ol,
1655
- .c-text__rich-text-editor[data-v-73a884c3] ul > li ol,
1656
- .cb-text-component[data-v-73a884c3] ul > li ul,
1657
- .c-text__rich-text-editor[data-v-73a884c3] ul > li ul {
1650
+ .cb-text-component[data-v-b2424519] ol > li ol,
1651
+ .c-text__rich-text-editor[data-v-b2424519] ol > li ol,
1652
+ .cb-text-component[data-v-b2424519] ol > li ul,
1653
+ .c-text__rich-text-editor[data-v-b2424519] ol > li ul,
1654
+ .cb-text-component[data-v-b2424519] ul > li ol,
1655
+ .c-text__rich-text-editor[data-v-b2424519] ul > li ol,
1656
+ .cb-text-component[data-v-b2424519] ul > li ul,
1657
+ .c-text__rich-text-editor[data-v-b2424519] ul > li ul {
1658
1658
  margin-top: 0 !important;
1659
1659
  }
1660
1660
 
1661
1661
  /* Sortable table styles */
1662
- .canvas-text[data-v-73a884c3] .sortable-header {
1662
+ .canvas-text[data-v-b2424519] .sortable-header {
1663
1663
  position: relative;
1664
1664
  }
1665
- .canvas-text[data-v-73a884c3] .sortable-header::after {
1665
+ .canvas-text[data-v-b2424519] .sortable-header::after {
1666
1666
  content: "";
1667
1667
  position: absolute;
1668
1668
  right: 8px;
@@ -1670,22 +1670,22 @@ to {
1670
1670
  transform: translateY(-50%);
1671
1671
  opacity: 0.5;
1672
1672
  }
1673
- .canvas-text[data-v-73a884c3] .sortable-header:hover::after {
1673
+ .canvas-text[data-v-b2424519] .sortable-header:hover::after {
1674
1674
  content: "↕";
1675
1675
  opacity: 0.7;
1676
1676
  }
1677
- .canvas-text[data-v-73a884c3] .sortable-header.sorted-asc::after {
1677
+ .canvas-text[data-v-b2424519] .sortable-header.sorted-asc::after {
1678
1678
  content: "↑";
1679
1679
  opacity: 1;
1680
1680
  }
1681
- .canvas-text[data-v-73a884c3] .sortable-header.sorted-desc::after {
1681
+ .canvas-text[data-v-b2424519] .sortable-header.sorted-desc::after {
1682
1682
  content: "↓";
1683
1683
  opacity: 1;
1684
1684
  }
1685
- .canvas-text[data-v-73a884c3] .sortable-header.sorted-original::after {
1685
+ .canvas-text[data-v-b2424519] .sortable-header.sorted-original::after {
1686
1686
  content: "";
1687
1687
  }
1688
- .canvas-text[data-v-73a884c3] .sortable-header.sorted-original:hover::after {
1688
+ .canvas-text[data-v-b2424519] .sortable-header.sorted-original:hover::after {
1689
1689
  content: "↕";
1690
1690
  opacity: 0.5;
1691
1691
  }.cb-linkable-settings[data-v-4f5606e1] {
@@ -2667,7 +2667,7 @@ to {
2667
2667
  padding: 0;
2668
2668
  }
2669
2669
 
2670
- .data-accessor-input[data-v-1114be0f] .n-input__prefix {
2670
+ .data-accessor-input[data-v-dce6a881] .n-input__prefix {
2671
2671
  margin-right: 0;
2672
2672
  }
2673
2673
  .cb-dynamic-data-table-settings {
@@ -3074,36 +3074,36 @@ to {
3074
3074
  }
3075
3075
  .browser-list-item[data-v-8781de25] {
3076
3076
  border-bottom: 1px solid var(--10ccf2df);
3077
- }.breadcrumb-area[data-v-fecebf5a] .n-button {
3078
- border: 1px solid var(--c6ccac5c) !important;
3077
+ }.breadcrumb-area[data-v-38edbab6] .n-button {
3078
+ border: 1px solid var(--c70ce490) !important;
3079
3079
  }
3080
- .content__breadcrumb__item.n-breadcrumb-item.n-breadcrumb-item[data-v-fecebf5a] .n-breadcrumb-item__link {
3080
+ .content__breadcrumb__item.n-breadcrumb-item.n-breadcrumb-item[data-v-38edbab6] .n-breadcrumb-item__link {
3081
3081
  font-size: 18px;
3082
3082
  line-height: 28px;
3083
3083
  letter-spacing: 0.25px;
3084
3084
  }
3085
- .content__section-title[data-v-fecebf5a] {
3085
+ .content__section-title[data-v-38edbab6] {
3086
3086
  font-size: 18px;
3087
3087
  line-height: 28px;
3088
3088
  letter-spacing: 0.25px;
3089
- color: var(--3edbaaa2);
3089
+ color: var(--471cb1fc);
3090
3090
  }
3091
- .actions-toolbar[data-v-fecebf5a] {
3092
- background-color: var(--c6ccac58);
3091
+ .actions-toolbar[data-v-38edbab6] {
3092
+ background-color: var(--c70ce48c);
3093
3093
  }
3094
- .actions-toolbar__nav[data-v-fecebf5a] {
3095
- background: var(--0f45ae31);
3094
+ .actions-toolbar__nav[data-v-38edbab6] {
3095
+ background: var(--08cf7517);
3096
3096
  }
3097
- .actions-toolbar_filters-divider[data-v-fecebf5a] {
3097
+ .actions-toolbar_filters-divider[data-v-38edbab6] {
3098
3098
  margin-left: 0;
3099
3099
  margin-right: 8px;
3100
3100
  height: 36px;
3101
3101
  }
3102
- .actions-toolbar_filters-clear[data-v-fecebf5a] {
3102
+ .actions-toolbar_filters-clear[data-v-38edbab6] {
3103
3103
  text-transform: none;
3104
3104
  }
3105
- .actions-toolbar__controls[data-v-fecebf5a] {
3106
- background: var(--0f45ae31);
3105
+ .actions-toolbar__controls[data-v-38edbab6] {
3106
+ background: var(--08cf7517);
3107
3107
  }.is-even[data-v-8ac6d2e9] {
3108
3108
  background: var(--d77d151a);
3109
3109
  }
package/canvas-ui.js CHANGED
@@ -88219,15 +88219,14 @@ async function crmQueryAdaptive(payload) {
88219
88219
  } catch {
88220
88220
  useSmartStore = false;
88221
88221
  }
88222
- console.log(`[crmQueryAdaptive] Called query: `, query2);
88222
+ console.log(`crmQueryAdaptive called with the query: `, query2);
88223
88223
  if (useSmartStore) {
88224
88224
  const fields = extractFieldsFromSoql(query2);
88225
88225
  const objectName = extractObjectFromSoql(query2);
88226
88226
  const smartQuery = convertSoqlToSmartQuery(query2);
88227
- console.log(`[crmSmartQuery] Called query: `, smartQuery);
88227
+ console.log(`Smart Query: `, smartQuery);
88228
88228
  const smartStoreResults = await crmSmartQuery({ query: smartQuery });
88229
88229
  const records = transformSmartStoreResults(smartStoreResults, fields, objectName);
88230
- console.log(`[SmartStore] Results: `, records);
88231
88230
  return {
88232
88231
  records,
88233
88232
  totalSize: records.length
@@ -99253,25 +99252,6 @@ const INITIAL_CALL_STATE = {
99253
99252
  };
99254
99253
 
99255
99254
  const realTimeExtraCrmShape = ref({});
99256
- function buildSchemaFromData(data) {
99257
- if (data === null || data === void 0) {
99258
- return null;
99259
- }
99260
- if (Array.isArray(data)) {
99261
- if (data.length === 0) {
99262
- return [];
99263
- }
99264
- return [buildSchemaFromData(data[0])];
99265
- }
99266
- if (typeof data === "object") {
99267
- const schema = {};
99268
- for (const [key, value] of Object.entries(data)) {
99269
- schema[key] = buildSchemaFromData(value);
99270
- }
99271
- return schema;
99272
- }
99273
- return null;
99274
- }
99275
99255
  function isEmptyValue(value) {
99276
99256
  return !value || typeof value === "string" && value.trim() === "";
99277
99257
  }
@@ -99291,7 +99271,6 @@ function removeEmptyValues(obj) {
99291
99271
  return result;
99292
99272
  }
99293
99273
  function useCrmShape() {
99294
- const { activeCanvas } = useCanvas$1();
99295
99274
  const call = useLocalStorage(CALL_STORAGE_KEY, INITIAL_CALL_STATE, {
99296
99275
  deep: true,
99297
99276
  listenToStorageChanges: true
@@ -99308,13 +99287,6 @@ function useCrmShape() {
99308
99287
  "myUser",
99309
99288
  computed(() => null)
99310
99289
  );
99311
- const pitcherDataSchema = computed(() => {
99312
- const pitcherData = activeCanvas.value?.context?.pitcher_data;
99313
- if (!pitcherData || typeof pitcherData !== "object") {
99314
- return {};
99315
- }
99316
- return { pitcher_data: buildSchemaFromData(pitcherData) };
99317
- });
99318
99290
  function getDefaultCrmShape({
99319
99291
  accountName = "",
99320
99292
  myUser: myUser2 = null,
@@ -99353,9 +99325,7 @@ function useCrmShape() {
99353
99325
  showDefault: !!launchDarkly.value.enable_default_crm_shape
99354
99326
  }),
99355
99327
  isEmpty(realTimeExtraCrmShape.value) ? {} : realTimeExtraCrmShape.value,
99356
- isEmpty(extraCrmShape.value) ? {} : extraCrmShape.value,
99357
- // Derive schema from actual pitcher_data in canvas context
99358
- isEmpty(pitcherDataSchema.value) ? {} : pitcherDataSchema.value
99328
+ isEmpty(extraCrmShape.value) ? {} : extraCrmShape.value
99359
99329
  );
99360
99330
  });
99361
99331
  return {
@@ -110344,7 +110314,24 @@ function init({
110344
110314
  }
110345
110315
  let filteredFolders = [];
110346
110316
  if (!hasMetadataFilters && foldersResponse.status === "fulfilled" && foldersResponse.value) {
110347
- filteredFolders = foldersResponse.value.results?.map((f) => ({ ...f, type: "folder" })) ?? [];
110317
+ const foldersFromSearch = foldersResponse.value.results ?? [];
110318
+ const folderDetailsPromises = foldersFromSearch.map(async (folder) => {
110319
+ try {
110320
+ const folderDetails = await state$2.folderItemsFetcher?.(folder.id, { justFetch: true, setSelectedFolder: false });
110321
+ const filesCount = folderDetails?.files?.length ?? 0;
110322
+ const foldersCount = folderDetails?.folders?.length ?? 0;
110323
+ return {
110324
+ ...folder,
110325
+ type: "folder",
110326
+ files_count: filesCount,
110327
+ folders_count: foldersCount
110328
+ };
110329
+ } catch (error) {
110330
+ console.error(`Failed to fetch details for folder ${folder.name}:`, error);
110331
+ return { ...folder, type: "folder" };
110332
+ }
110333
+ });
110334
+ filteredFolders = await Promise.all(folderDetailsPromises);
110348
110335
  } else if (!hasMetadataFilters && !useAppStore$4().isLocalSearch.value) {
110349
110336
  console.error(
110350
110337
  "Failed to fetch folders:",
@@ -120825,7 +120812,7 @@ const _sfc_main$4k = /* @__PURE__ */ defineComponent({
120825
120812
 
120826
120813
  function useCanvasContext() {
120827
120814
  const { activeCanvas, isPrintDisplayMode, builderCache } = useCanvas$1();
120828
- const { crmShape, getDefaultCrmShape } = useCrmShape();
120815
+ const { getDefaultCrmShape } = useCrmShape();
120829
120816
  const myUser = inject(
120830
120817
  "myUser",
120831
120818
  computed(() => null)
@@ -120857,21 +120844,14 @@ function useCanvasContext() {
120857
120844
  builderCache.value[sectionOverrideKey] = mergedCtx;
120858
120845
  return mergedCtx;
120859
120846
  };
120860
- const fullContext = computed(() => {
120847
+ const crmShape = computed(() => getDefaultCrmShape({ myUser: myUser.value }));
120848
+ const crmShapeWithSectionCtx = computed(() => {
120861
120849
  const mergedCtx = getSectionCtx();
120862
- const defaultShape = getDefaultCrmShape({
120863
- myUser: myUser.value,
120864
- showDefault: true
120865
- });
120866
- return mergeWith({}, defaultShape, crmShape.value ?? {}, mergedCtx, (_objValue, srcValue) => {
120867
- if (Array.isArray(srcValue)) {
120868
- return srcValue;
120869
- }
120870
- return void 0;
120871
- });
120850
+ return !isEmpty(crmShape.value) ? { ...mergedCtx, ...crmShape.value } : mergedCtx;
120872
120851
  });
120873
120852
  return {
120874
- fullContext
120853
+ getSectionCtx,
120854
+ crmShapeWithSectionCtx
120875
120855
  };
120876
120856
  }
120877
120857
 
@@ -120917,10 +120897,10 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
120917
120897
  __name: "SelectionPanel",
120918
120898
  setup(__props) {
120919
120899
  useCssVars((_ctx) => ({
120920
- "7e857d3a": unref(themeVars).text,
120921
- "7e7d3ede": unref(themeVars).base,
120922
- "e1e1c7fe": unref(themeVars).primary6,
120923
- "e1e1c804": unref(themeVars).primary3
120900
+ "6fe3245a": unref(themeVars).text,
120901
+ "6fdae5fe": unref(themeVars).base,
120902
+ "85f799be": unref(themeVars).primary6,
120903
+ "85f799c4": unref(themeVars).primary3
120924
120904
  }));
120925
120905
  const { t } = useI18n();
120926
120906
  const { renderContentType, isFileExpired, isFileExpiring } = useFileDisplayHelpers();
@@ -120942,7 +120922,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
120942
120922
  "launchDarkly",
120943
120923
  computed(() => ({}))
120944
120924
  );
120945
- const { fullContext } = useCanvasContext();
120925
+ const { crmShapeWithSectionCtx } = useCanvasContext();
120946
120926
  const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
120947
120927
  const draggableItems = computed({
120948
120928
  get: () => isDragNDropEnabled.value ? addedItems.value : selectedItems.value,
@@ -120957,7 +120937,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
120957
120937
  function getParsedUrl(url) {
120958
120938
  if (!url || !isCrmShapeEnabled.value) return url;
120959
120939
  try {
120960
- return renderTemplate(url, fullContext.value);
120940
+ return renderTemplate(url, crmShapeWithSectionCtx.value);
120961
120941
  } catch (error) {
120962
120942
  console.warn("Failed to parse template in external URL, using original URL:", error);
120963
120943
  return url;
@@ -121261,7 +121241,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
121261
121241
  }
121262
121242
  });
121263
121243
 
121264
- const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-05db071e"]]);
121244
+ const SelectionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-aa03fa77"]]);
121265
121245
 
121266
121246
  const _hoisted_1$3q = { class: "flex justify-between gap-2 items-center truncate py-1" };
121267
121247
  const _hoisted_2$2z = {
@@ -123793,13 +123773,13 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
123793
123773
  computed(() => ({}))
123794
123774
  );
123795
123775
  const { crmShape } = useCrmShape();
123796
- const { fullContext } = useCanvasContext();
123776
+ const { crmShapeWithSectionCtx } = useCanvasContext();
123797
123777
  const isCrmShapeEnabled = computed(() => launchDarkly.value?.enable_crm_shape_for_external_links ?? false);
123798
123778
  const parsedUrl = computed(() => {
123799
123779
  if (!url.value.trim()) return url.value;
123800
123780
  if (!isCrmShapeEnabled.value) return url.value;
123801
123781
  try {
123802
- return renderTemplate(url.value, fullContext.value);
123782
+ return renderTemplate(url.value, crmShapeWithSectionCtx.value);
123803
123783
  } catch (error) {
123804
123784
  console.error("Error parsing URL template:", error);
123805
123785
  return url.value;
@@ -123905,7 +123885,7 @@ const _sfc_main$45 = /* @__PURE__ */ defineComponent({
123905
123885
  }
123906
123886
  });
123907
123887
 
123908
- const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-ba7b39ff"]]);
123888
+ const ExternalLinks = /* @__PURE__ */ _export_sfc(_sfc_main$45, [["__scopeId", "data-v-1287b675"]]);
123909
123889
 
123910
123890
  const _hoisted_1$3d = { class: "mr-3 h-full" };
123911
123891
  const _hoisted_2$2m = { class: "flex flex-col gap-3 mb-3" };
@@ -137726,37 +137706,19 @@ function useComponentPermissions({
137726
137706
  isAnyTypeOfAdmin: false
137727
137707
  }))
137728
137708
  );
137729
- const launchDarkly = inject(
137730
- "launchDarkly",
137731
- computed(() => ({}))
137732
- );
137733
- const { canvasContent, activeCanvas } = useCanvas$1();
137709
+ const { canvasContent } = useCanvas$1();
137734
137710
  return computed(() => {
137735
- if (usedInSectionId.value) {
137736
- const parent = findParentByNodeId(canvasContent.value, id.value);
137737
- const canRemove = !!when_used_in_section.value?.is_removable;
137738
- const canEdit = !!when_used_in_section.value?.is_editable;
137739
- const canDuplicate = parent ? !!parent.when_used_in_section?.is_editable : false;
137740
- return {
137741
- hasSomethingEditable: canEdit || canRemove || canDuplicate,
137742
- canRemove,
137743
- canEdit,
137744
- canDuplicate
137745
- };
137746
- }
137747
- if (activeCanvas.value?.template?.id && launchDarkly.value.enable_template_component_permissions && when_used_in_section.value) {
137748
- const parent = findParentByNodeId(canvasContent.value, id.value);
137749
- const canRemove = !!when_used_in_section.value?.is_removable;
137750
- const canEdit = !!when_used_in_section.value?.is_editable;
137751
- const canDuplicate = parent ? !!parent.when_used_in_section?.is_editable : false;
137752
- return {
137753
- hasSomethingEditable: canEdit || canRemove || canDuplicate,
137754
- canRemove,
137755
- canEdit,
137756
- canDuplicate
137757
- };
137758
- }
137759
- return calculateCanvasPermissions(id.value, !!pitcherInfo.value?.isAnyTypeOfAdmin);
137711
+ if (!usedInSectionId.value) return calculateCanvasPermissions(id.value, !!pitcherInfo.value?.isAnyTypeOfAdmin);
137712
+ const parent = findParentByNodeId(canvasContent.value, id.value);
137713
+ const canRemove = !!when_used_in_section.value?.is_removable;
137714
+ const canEdit = !!when_used_in_section.value?.is_editable;
137715
+ const canDuplicate = parent ? !!parent.when_used_in_section?.is_editable : false;
137716
+ return {
137717
+ hasSomethingEditable: canEdit || canRemove || canDuplicate,
137718
+ canRemove,
137719
+ canEdit,
137720
+ canDuplicate
137721
+ };
137760
137722
  });
137761
137723
  }
137762
137724
 
@@ -148009,7 +147971,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
148009
147971
  } = useCanvas$1();
148010
147972
  const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
148011
147973
  const { getDerivedStyleFromFeatureFlags } = useComponentStyle(componentNode);
148012
- const { fullContext } = useCanvasContext();
147974
+ const { crmShapeWithSectionCtx } = useCanvasContext();
148013
147975
  const { setContentSelectorMode } = useContentSelector();
148014
147976
  const confirmation = useConfirmation();
148015
147977
  const themeVars = useThemeVars();
@@ -148162,7 +148124,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
148162
148124
  try {
148163
148125
  return {
148164
148126
  ...value,
148165
- external_url: renderTemplate(value.external_url, fullContext.value)
148127
+ external_url: renderTemplate(value.external_url, crmShapeWithSectionCtx.value)
148166
148128
  };
148167
148129
  } catch (error) {
148168
148130
  console.warn("Failed to parse template in external URL, using original URL:", error);
@@ -148680,7 +148642,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
148680
148642
  setCanvasMetadata,
148681
148643
  isImpact
148682
148644
  } = useCanvas$1();
148683
- const { fullContext } = useCanvasContext();
148645
+ const { crmShapeWithSectionCtx } = useCanvasContext();
148684
148646
  const { coreRestApiAxios } = useCoreApi();
148685
148647
  const { applyPrintModeToElement } = usePrintMode();
148686
148648
  const { discardOverridesConfirmationOptions, getComponentOverrides } = useCanvasSectionOverrides();
@@ -148737,7 +148699,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
148737
148699
  const memoizedModelValue = computed(() => getModelValue(computedTextProps.value.data?.content));
148738
148700
  function getModelValue(value = "") {
148739
148701
  if (!shouldInterpolate.value || !value.trim()) return value;
148740
- return renderTemplate(value, fullContext.value);
148702
+ return renderTemplate(value, crmShapeWithSectionCtx.value);
148741
148703
  }
148742
148704
  const debouncedUpdateNodeData = debounce((data2, nodeId, sectionId) => {
148743
148705
  return updateNodeData(data2, nodeId, sectionId);
@@ -148845,7 +148807,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
148845
148807
  );
148846
148808
  applyPrintModeToElement(contentElement.value, () => {
148847
148809
  const content = computedTextProps.value.data?.content || "";
148848
- return shouldInterpolate.value ? renderTemplate(content, fullContext.value) : content;
148810
+ return shouldInterpolate.value ? renderTemplate(content, crmShapeWithSectionCtx.value) : content;
148849
148811
  });
148850
148812
  if (enableScaleContent && spanStyles) {
148851
148813
  setTimeout(() => {
@@ -148957,7 +148919,7 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
148957
148919
  }
148958
148920
  });
148959
148921
 
148960
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-73a884c3"]]);
148922
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$2h, [["__scopeId", "data-v-b2424519"]]);
148961
148923
 
148962
148924
  const _hoisted_1$1Q = { class: "absolute top-2 right-2 flex items-center gap-1 z-10" };
148963
148925
  const _hoisted_2$1m = { class: "text-xs" };
@@ -162512,7 +162474,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
162512
162474
  );
162513
162475
  const areSectionsSystemControlled = computed(() => launchDarkly.value?.are_sections_system_controlled);
162514
162476
  const allowEditOrRemove = computed(
162515
- () => isAdmin.value && launchDarkly.value.enable_template_component_permissions && (isSection.value || isCanvasTemplate.value)
162477
+ () => (selectedComponentType.value === ComponentTypes.Text || selectedComponentType.value === ComponentTypes.Carousel || selectedComponentType.value === ComponentTypes.Multimedia) && isAdmin.value && isSection.value
162516
162478
  );
162517
162479
  const canSelectSectionListStrategy = computed(
162518
162480
  () => isAdmin.value && isCanvasTemplate.value && isSectionOrContentList.value
@@ -163075,7 +163037,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
163075
163037
  }
163076
163038
  });
163077
163039
 
163078
- const ComponentDrawerSettings = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-1114be0f"]]);
163040
+ const ComponentDrawerSettings = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-dce6a881"]]);
163079
163041
 
163080
163042
  function useConnectUpload() {
163081
163043
  async function uploadToConnect(formData) {
@@ -176308,10 +176270,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
176308
176270
  __name: "ActionsToolbar",
176309
176271
  setup(__props) {
176310
176272
  useCssVars((_ctx) => ({
176311
- "c6ccac5c": unref(themeVars).primary4,
176312
- "3edbaaa2": unref(themeVars).primary,
176313
- "c6ccac58": unref(themeVars).primary6,
176314
- "0f45ae31": unref(themeVars).base
176273
+ "c70ce490": unref(themeVars).primary4,
176274
+ "471cb1fc": unref(themeVars).primary,
176275
+ "c70ce48c": unref(themeVars).primary6,
176276
+ "08cf7517": unref(themeVars).base
176315
176277
  }));
176316
176278
  const {
176317
176279
  toggleContentPanel,
@@ -176549,7 +176511,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
176549
176511
  },
176550
176512
  type: "folder",
176551
176513
  file_thumbnail_urls: folder.file_thumbnail_urls,
176552
- thumbnail_url: folder.thumbnail_url
176514
+ thumbnail_url: folder.thumbnail_url,
176515
+ files_count: folder.files_count,
176516
+ folders_count: folder.folders_count,
176517
+ available_files_count: folder.available_files_count,
176518
+ available_folders_count: folder.available_folders_count
176553
176519
  };
176554
176520
  });
176555
176521
  const fileResults = files.map((file) => {
@@ -176779,7 +176745,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
176779
176745
  }
176780
176746
  });
176781
176747
 
176782
- const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-fecebf5a"]]);
176748
+ const ActionsToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-38edbab6"]]);
176783
176749
 
176784
176750
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
176785
176751
  __name: "FavoritesTable",
@@ -183701,14 +183667,8 @@ function getEventColor(sfEvent) {
183701
183667
  } else {
183702
183668
  isSubmitted = false;
183703
183669
  }
183704
- const now = /* @__PURE__ */ new Date();
183705
183670
  if (isSubmitted) return SfEventColors.SUBMITTED;
183706
- else if (sfEvent.IsAllDayEvent) {
183707
- const endDate = new Date(sfEvent.EndDateTime);
183708
- const todayStart = startOfDay(now);
183709
- const endDayStart = startOfDay(endDate);
183710
- return isAfter$1(todayStart, endDayStart) ? SfEventColors.PAST : SfEventColors.PLANNED;
183711
- } else if (isAfter$1(now, new Date(sfEvent.EndDateTime))) return SfEventColors.PAST;
183671
+ else if (isAfter$1(/* @__PURE__ */ new Date(), new Date(sfEvent.EndDateTime))) return SfEventColors.PAST;
183712
183672
  else return SfEventColors.PLANNED;
183713
183673
  }
183714
183674
  const minFutureDate = (date = /* @__PURE__ */ new Date()) => add(date, { minutes: MIN_DIFFERENCE_IN_MINUTES });