@burdenoff/microfe-files 2026.527.1 → 2026.527.3
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/dist/files/components/ActionMenu.js +44 -40
- package/dist/files/components/ActionMenu.js.map +1 -1
- package/dist/files/components/ConfirmDialog.js +42 -40
- package/dist/files/components/ConfirmDialog.js.map +1 -1
- package/dist/files/components/CopyDialog.js +1 -0
- package/dist/files/components/CopyDialog.js.map +1 -1
- package/dist/files/components/FileBrowser.js +186 -170
- package/dist/files/components/FileBrowser.js.map +1 -1
- package/dist/files/components/FileCard.js.map +1 -1
- package/dist/files/components/FileInfoPanel.js +102 -102
- package/dist/files/components/FileInfoPanel.js.map +1 -1
- package/dist/files/components/FileListItem.js.map +1 -1
- package/dist/files/components/FolderCard.js +147 -161
- package/dist/files/components/FolderCard.js.map +1 -1
- package/dist/files/components/MoveDialog.js +9 -12
- package/dist/files/components/MoveDialog.js.map +1 -1
- package/dist/files/components/SearchBar.js +125 -117
- package/dist/files/components/SearchBar.js.map +1 -1
- package/dist/files/components/ShareDialog.js +5 -0
- package/dist/files/components/ShareDialog.js.map +1 -1
- package/dist/files/components/Toast.js +27 -24
- package/dist/files/components/Toast.js.map +1 -1
- package/dist/files/components/UploadQueue.js +1 -1
- package/dist/files/components/UploadQueue.js.map +1 -1
- package/dist/files/components/viewers/AudioPlayer.js +3 -0
- package/dist/files/components/viewers/AudioPlayer.js.map +1 -1
- package/dist/files/components/viewers/TextViewer.js +1 -0
- package/dist/files/components/viewers/TextViewer.js.map +1 -1
- package/dist/files/components/viewers/VideoPlayer.js +3 -0
- package/dist/files/components/viewers/VideoPlayer.js.map +1 -1
- package/dist/files/hooks/useCreateFolder.js +15 -7
- package/dist/files/hooks/useCreateFolder.js.map +1 -1
- package/dist/files/hooks/useKeyboardNavigation.js +51 -51
- package/dist/files/hooks/useKeyboardNavigation.js.map +1 -1
- package/dist/files/hooks/useMoveFile.js +1 -2
- package/dist/files/hooks/useMoveFile.js.map +1 -1
- package/dist/files/hooks/useMoveFolder.js +0 -2
- package/dist/files/hooks/useMoveFolder.js.map +1 -1
- package/dist/files/hooks/useStarredItems.js +4 -3
- package/dist/files/hooks/useStarredItems.js.map +1 -1
- package/dist/files/hooks/useToggleStar.js +10 -10
- package/dist/files/hooks/useToggleStar.js.map +1 -1
- package/dist/files/pages/BrowserPage.js +312 -302
- package/dist/files/pages/BrowserPage.js.map +1 -1
- package/dist/files/pages/ShareAccessPage.js +1 -0
- package/dist/files/pages/ShareAccessPage.js.map +1 -1
- package/dist/files/utils/quotaUtils.js +14 -0
- package/dist/files/utils/quotaUtils.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/files/utils/quotaUtils.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e?.some((e) => e.extensions?.code === "QUOTA_EXHAUSTED" || e.extensions?.errorCode === "QUOTA_EXHAUSTED" || e.message?.includes("QUOTA_EXHAUSTED")) ?? !1;
|
|
4
|
+
}
|
|
5
|
+
function t(t) {
|
|
6
|
+
if (t instanceof Error && (t.message.includes("QUOTA_EXHAUSTED") || t.message.toLowerCase().includes("quota exhausted"))) return !0;
|
|
7
|
+
if (!t || typeof t != "object") return !1;
|
|
8
|
+
let n = t;
|
|
9
|
+
return Array.isArray(n.graphQLErrors) ? e(n.graphQLErrors) : Array.isArray(n.errors) ? e(n.errors) : !1;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as isQuotaExhaustedError };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=quotaUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quotaUtils.js","names":[],"sources":["../../../src/files/utils/quotaUtils.ts"],"sourcesContent":["type GraphQLErrorLike = {\n message?: string;\n extensions?: Record<string, unknown>;\n};\n\nfunction hasQuotaCode(errors: GraphQLErrorLike[] | undefined): boolean {\n return (\n errors?.some(\n (e) =>\n e.extensions?.[\"code\"] === \"QUOTA_EXHAUSTED\" ||\n e.extensions?.[\"errorCode\"] === \"QUOTA_EXHAUSTED\" ||\n e.message?.includes(\"QUOTA_EXHAUSTED\"),\n ) ?? false\n );\n}\n\nexport function isQuotaExhaustedError(error: unknown): boolean {\n if (\n error instanceof Error &&\n (error.message.includes(\"QUOTA_EXHAUSTED\") ||\n error.message.toLowerCase().includes(\"quota exhausted\"))\n ) {\n return true;\n }\n\n if (!error || typeof error !== \"object\") {\n return false;\n }\n\n const e = error as Record<string, unknown>;\n\n if (Array.isArray(e[\"graphQLErrors\"])) {\n return hasQuotaCode(e[\"graphQLErrors\"] as GraphQLErrorLike[]);\n }\n\n if (Array.isArray(e[\"errors\"])) {\n return hasQuotaCode(e[\"errors\"] as GraphQLErrorLike[]);\n }\n\n return false;\n}\n"],"mappings":";AAKA,SAAS,EAAa,GAAiD;AACrE,QACE,GAAQ,MACL,MACC,EAAE,YAAa,SAAY,qBAC3B,EAAE,YAAa,cAAiB,qBAChC,EAAE,SAAS,SAAS,kBAAkB,CACzC,IAAI;;AAIT,SAAgB,EAAsB,GAAyB;AAC7D,KACE,aAAiB,UAChB,EAAM,QAAQ,SAAS,kBAAkB,IACxC,EAAM,QAAQ,aAAa,CAAC,SAAS,kBAAkB,EAEzD,QAAO;AAGT,KAAI,CAAC,KAAS,OAAO,KAAU,SAC7B,QAAO;CAGT,IAAM,IAAI;AAUV,QARI,MAAM,QAAQ,EAAE,cAAiB,GAC5B,EAAa,EAAE,cAAuC,GAG3D,MAAM,QAAQ,EAAE,OAAU,GACrB,EAAa,EAAE,OAAgC,GAGjD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-files",
|
|
3
|
-
"version": "2026.527.
|
|
3
|
+
"version": "2026.527.3",
|
|
4
4
|
"description": "Burdenoff Files Microfrontend - Standalone file management module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@apollo/client": "^4.0.13",
|
|
48
|
-
"@burdenoff/fe-libs": "2026.
|
|
48
|
+
"@burdenoff/fe-libs": "2026.524.1",
|
|
49
49
|
"@tanstack/react-query": "^5.90.17",
|
|
50
50
|
"graphql": "^16.12.0",
|
|
51
51
|
"lucide-react": "^0.468.0",
|