@pitcher/canvas-ui 2026.1.15-144700-beta → 2026.1.15-145732

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
@@ -109730,18 +109730,16 @@ const _sfc_main$4U = /* @__PURE__ */ defineComponent({
109730
109730
 
109731
109731
  function filterByItemVisibility(items) {
109732
109732
  const isAdmin = state$3.appName.value === "admin";
109733
- const isSearchMode = state$3.showFilteredResults.value;
109734
109733
  return items.reduce((acc, item) => {
109735
109734
  const hasCountData = "files_count" in item || "folders_count" in item || "available_files_count" in item || "available_folders_count" in item;
109736
109735
  const filesCount = item.available_files_count ?? item.files_count ?? 0;
109737
109736
  const foldersCount = item.available_folders_count ?? item.folders_count ?? 0;
109738
109737
  const isFolderEmpty = item.type == "folder" && hasCountData && filesCount === 0 && foldersCount === 0;
109739
- const isFolderWithoutData = item.type == "folder" && !hasCountData && isSearchMode;
109740
109738
  const shouldHideItem = item.name?.startsWith(".") || isFolderEmpty || item.folder?.file_thumbnail_urls?.length === 0;
109741
109739
  if (!shouldHideItem && !isAdmin || isAdmin) {
109742
109740
  acc.push({
109743
109741
  ...item,
109744
- opacity: isFolderWithoutData || shouldHideItem && isAdmin ? 0.5 : 1
109742
+ opacity: shouldHideItem && isAdmin ? 0.5 : 1
109745
109743
  });
109746
109744
  }
109747
109745
  return acc;
@@ -110333,13 +110331,6 @@ function init({
110333
110331
  canvas_thumbnail_urls: []
110334
110332
  }
110335
110333
  ];
110336
- state$2.folderCache[folder.id] = {
110337
- files_count: 0,
110338
- folders_count: 0,
110339
- available_files_count: 0,
110340
- available_folders_count: 0,
110341
- timestamp: Date.now()
110342
- };
110343
110334
  return folder;
110344
110335
  };
110345
110336
  state$2.folderUpdater = async function(payload) {
@@ -110363,7 +110354,6 @@ function init({
110363
110354
  state$2.folderDeleter = async function(payload) {
110364
110355
  await onFolderDelete(payload);
110365
110356
  state$2.folders = state$2.folders.filter((folder) => folder.id !== payload);
110366
- delete state$2.folderCache[payload];
110367
110357
  useAppStore$4().removeSelectedItems([payload]);
110368
110358
  };
110369
110359
  state$2.folderFetcher = async function(folderId) {
@@ -110384,9 +110374,6 @@ function init({
110384
110374
  const response = await onFoldersDelete(payload);
110385
110375
  const deletedIdsSet = new Set(response.deleted_ids);
110386
110376
  state$2.folders = state$2.folders.filter((folder) => !deletedIdsSet.has(folder.id));
110387
- response.deleted_ids.forEach((id2) => {
110388
- delete state$2.folderCache[id2];
110389
- });
110390
110377
  useAppStore$4().removeSelectedItems(response.deleted_ids);
110391
110378
  return response;
110392
110379
  };