@pitcher/canvas-ui 2026.1.20-122608-beta → 2026.1.20-131745

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
@@ -110498,12 +110498,13 @@ function init({
110498
110498
  setSelectedFolder: false
110499
110499
  });
110500
110500
  if (parentFolder) {
110501
+ const isAdmin2 = useAppStore$4().appName.value === "admin";
110501
110502
  state$2.folderCache[parentId] = {
110502
110503
  files_count: parentFolder.files.length,
110503
110504
  folders_count: parentFolder.folders.length,
110504
110505
  available_files_count: parentFolder.files.filter((f) => {
110505
110506
  const isExpired = f.expires_at && new Date(f.expires_at) < /* @__PURE__ */ new Date();
110506
- return !f.deleted_at && !isExpired && f.status === "viewable";
110507
+ return !f.deleted_at && (isAdmin2 || !isExpired) && f.status === "viewable";
110507
110508
  }).length,
110508
110509
  available_folders_count: parentFolder.folders.filter((sf) => {
110509
110510
  return (sf.files_count > 0 || sf.folders_count > 0) && (sf.available_files_count !== 0 || sf.available_folders_count !== 0);
@@ -110529,11 +110530,14 @@ function init({
110529
110530
  filteredFolders = foldersFromSearch.map((folder) => {
110530
110531
  const cached = state$2.folderCache[folder.id];
110531
110532
  const parentCached = folder.parent_folder_id ? state$2.folderCache[folder.parent_folder_id] : null;
110532
- if (cached && cached.available_files_count !== void 0 && cached.available_folders_count !== void 0 && cached.available_files_count === 0 && cached.available_folders_count === 0) {
110533
- return null;
110534
- }
110535
- if (parentCached && parentCached.available_folders_count !== void 0 && parentCached.available_folders_count === 0) {
110536
- return null;
110533
+ const isAdmin2 = useAppStore$4().appName.value === "admin";
110534
+ if (!isAdmin2) {
110535
+ if (cached && cached.available_files_count !== void 0 && cached.available_folders_count !== void 0 && cached.available_files_count === 0 && cached.available_folders_count === 0) {
110536
+ return null;
110537
+ }
110538
+ if (parentCached && parentCached.available_folders_count !== void 0 && parentCached.available_folders_count === 0) {
110539
+ return null;
110540
+ }
110537
110541
  }
110538
110542
  if (cached) {
110539
110543
  const result = {
@@ -159631,6 +159635,10 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
159631
159635
  "sectionSelectorApps",
159632
159636
  computed(() => [])
159633
159637
  );
159638
+ const launchDarkly = inject(
159639
+ "launchDarkly",
159640
+ computed(() => ({}))
159641
+ );
159634
159642
  const { isCompletionWizardEnabled, retriggerWizard } = useCanvasCompletionWizard();
159635
159643
  const isEditable = computed(
159636
159644
  () => isImpact.value ? !props.data.selection_strategy || props.data.selection_strategy === "free" || isCompletionWizardEnabled.value && wizardStepSectionListIds.value.includes(props.id) : true
@@ -159656,6 +159664,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
159656
159664
  const attrs = useAttrs();
159657
159665
  const contentListRef = ref(null);
159658
159666
  const componentName = computed(() => {
159667
+ if (!launchDarkly.value?.display_section_list_name) return;
159659
159668
  const node = componentNodesById.value[props.id];
159660
159669
  return node.tracking_id !== node.type ? node.tracking_id : "";
159661
159670
  });