@burdenoff/microfe-files 2026.830.1 → 2026.930.1
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/FilesRoot.d.ts.map +1 -1
- package/dist/files/FilesRoot.js +42 -37
- package/dist/files/FilesRoot.js.map +1 -1
- package/dist/files/components/FileInfoPanel.js.map +1 -1
- package/dist/files/components/SearchBar.js +3 -3
- package/dist/files/components/SearchBar.js.map +1 -1
- package/dist/files/components/ShareDialog.d.ts.map +1 -1
- package/dist/files/components/ShareDialog.js +4 -1
- package/dist/files/components/ShareDialog.js.map +1 -1
- package/dist/files/components/StorageBanner.d.ts.map +1 -1
- package/dist/files/components/StorageBanner.js +50 -41
- package/dist/files/components/StorageBanner.js.map +1 -1
- package/dist/files/components/viewers/AudioPlayer.d.ts.map +1 -1
- package/dist/files/components/viewers/AudioPlayer.js +59 -58
- package/dist/files/components/viewers/AudioPlayer.js.map +1 -1
- package/dist/files/components/viewers/CodeViewer.d.ts.map +1 -1
- package/dist/files/components/viewers/CodeViewer.js +49 -44
- package/dist/files/components/viewers/CodeViewer.js.map +1 -1
- package/dist/files/components/viewers/ImageViewer.d.ts.map +1 -1
- package/dist/files/components/viewers/ImageViewer.js +75 -74
- package/dist/files/components/viewers/ImageViewer.js.map +1 -1
- package/dist/files/components/viewers/PDFViewer.d.ts.map +1 -1
- package/dist/files/components/viewers/PDFViewer.js +44 -41
- package/dist/files/components/viewers/PDFViewer.js.map +1 -1
- package/dist/files/components/viewers/TextViewer.d.ts.map +1 -1
- package/dist/files/components/viewers/TextViewer.js +77 -72
- package/dist/files/components/viewers/TextViewer.js.map +1 -1
- package/dist/files/components/viewers/VideoPlayer.d.ts.map +1 -1
- package/dist/files/components/viewers/VideoPlayer.js +77 -75
- package/dist/files/components/viewers/VideoPlayer.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +17 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +14 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/dist/translations/en.d.ts +85 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/en.js +84 -1
- package/dist/translations/en.js.map +1 -1
- package/package.json +6 -1
- package/src/styles/dark.css +27 -0
|
@@ -13,6 +13,25 @@ export declare const enTranslations: {
|
|
|
13
13
|
actionMenu: {
|
|
14
14
|
moreActions: string;
|
|
15
15
|
};
|
|
16
|
+
nav: {
|
|
17
|
+
allFiles: string;
|
|
18
|
+
statusReady: string;
|
|
19
|
+
};
|
|
20
|
+
root: {
|
|
21
|
+
errorFallback: string;
|
|
22
|
+
};
|
|
23
|
+
storage: {
|
|
24
|
+
almostFull: string;
|
|
25
|
+
almostFullNoLimit: string;
|
|
26
|
+
almostFullWithLimit: string;
|
|
27
|
+
deleteOrUpgrade: string;
|
|
28
|
+
freeUpOrUpgrade: string;
|
|
29
|
+
full: string;
|
|
30
|
+
fullNoLimit: string;
|
|
31
|
+
fullWithLimit: string;
|
|
32
|
+
label: string;
|
|
33
|
+
unit: string;
|
|
34
|
+
};
|
|
16
35
|
browser: {
|
|
17
36
|
actions: {
|
|
18
37
|
export: string;
|
|
@@ -254,6 +273,72 @@ export declare const enTranslations: {
|
|
|
254
273
|
preview: {
|
|
255
274
|
addStar: string;
|
|
256
275
|
removeStar: string;
|
|
276
|
+
image: {
|
|
277
|
+
failedToLoad: string;
|
|
278
|
+
fitToScreen: string;
|
|
279
|
+
loadError: string;
|
|
280
|
+
openInNewTab: string;
|
|
281
|
+
rotate: string;
|
|
282
|
+
zoomIn: string;
|
|
283
|
+
zoomOut: string;
|
|
284
|
+
};
|
|
285
|
+
pdf: {
|
|
286
|
+
browserUnsupported: string;
|
|
287
|
+
documentLabel: string;
|
|
288
|
+
download: string;
|
|
289
|
+
unableToDisplay: string;
|
|
290
|
+
zoomIn: string;
|
|
291
|
+
zoomOut: string;
|
|
292
|
+
};
|
|
293
|
+
video: {
|
|
294
|
+
fullscreen: string;
|
|
295
|
+
mute: string;
|
|
296
|
+
muteVideo: string;
|
|
297
|
+
openFullscreen: string;
|
|
298
|
+
pause: string;
|
|
299
|
+
pauseVideo: string;
|
|
300
|
+
play: string;
|
|
301
|
+
playVideo: string;
|
|
302
|
+
seek: string;
|
|
303
|
+
unmute: string;
|
|
304
|
+
unmuteVideo: string;
|
|
305
|
+
volume: string;
|
|
306
|
+
};
|
|
307
|
+
audio: {
|
|
308
|
+
mute: string;
|
|
309
|
+
pause: string;
|
|
310
|
+
play: string;
|
|
311
|
+
seek: string;
|
|
312
|
+
unmute: string;
|
|
313
|
+
volume: string;
|
|
314
|
+
};
|
|
315
|
+
code: {
|
|
316
|
+
copied: string;
|
|
317
|
+
copy: string;
|
|
318
|
+
copyCode: string;
|
|
319
|
+
copyCodeContent: string;
|
|
320
|
+
disableWordWrap: string;
|
|
321
|
+
enableWordWrap: string;
|
|
322
|
+
lines: string;
|
|
323
|
+
loading: string;
|
|
324
|
+
text: string;
|
|
325
|
+
};
|
|
326
|
+
text: {
|
|
327
|
+
copied: string;
|
|
328
|
+
copy: string;
|
|
329
|
+
copyText: string;
|
|
330
|
+
copyTextContent: string;
|
|
331
|
+
disableWordWrap: string;
|
|
332
|
+
enableWordWrap: string;
|
|
333
|
+
lines: string;
|
|
334
|
+
loading: string;
|
|
335
|
+
match: string;
|
|
336
|
+
matches: string;
|
|
337
|
+
search: string;
|
|
338
|
+
searchAria: string;
|
|
339
|
+
searchPlaceholder: string;
|
|
340
|
+
searchWithinFile: string;
|
|
341
|
+
};
|
|
257
342
|
};
|
|
258
343
|
search: {
|
|
259
344
|
filters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Y1B,CAAC"}
|
package/dist/translations/en.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
//#region src/translations/en.ts
|
|
2
2
|
var e = { files: {
|
|
3
3
|
actionMenu: { moreActions: "More actions" },
|
|
4
|
+
nav: {
|
|
5
|
+
allFiles: "All Files",
|
|
6
|
+
statusReady: "Files Ready"
|
|
7
|
+
},
|
|
8
|
+
root: { errorFallback: "Something went wrong loading this module. Please refresh the page." },
|
|
9
|
+
storage: {
|
|
10
|
+
almostFull: "Storage almost full.",
|
|
11
|
+
almostFullNoLimit: "{{used}} used.",
|
|
12
|
+
almostFullWithLimit: "{{used}} of {{limit}} used ({{percent}}%).",
|
|
13
|
+
deleteOrUpgrade: "Consider deleting files or upgrading your plan.",
|
|
14
|
+
freeUpOrUpgrade: "Delete files to free up space or upgrade your plan.",
|
|
15
|
+
full: "Storage full.",
|
|
16
|
+
fullNoLimit: "{{used}} used — no space left.",
|
|
17
|
+
fullWithLimit: "{{used}} of {{limit}} used — no space left.",
|
|
18
|
+
label: "Storage",
|
|
19
|
+
unit: "MB"
|
|
20
|
+
},
|
|
4
21
|
browser: {
|
|
5
22
|
actions: {
|
|
6
23
|
export: "Export",
|
|
@@ -209,7 +226,73 @@ var e = { files: {
|
|
|
209
226
|
},
|
|
210
227
|
preview: {
|
|
211
228
|
addStar: "Add to starred",
|
|
212
|
-
removeStar: "Remove from starred"
|
|
229
|
+
removeStar: "Remove from starred",
|
|
230
|
+
image: {
|
|
231
|
+
failedToLoad: "Failed to load image",
|
|
232
|
+
fitToScreen: "Fit to screen",
|
|
233
|
+
loadError: "Failed to load image from URL",
|
|
234
|
+
openInNewTab: "Open in new tab",
|
|
235
|
+
rotate: "Rotate 90°",
|
|
236
|
+
zoomIn: "Zoom in",
|
|
237
|
+
zoomOut: "Zoom out"
|
|
238
|
+
},
|
|
239
|
+
pdf: {
|
|
240
|
+
browserUnsupported: "Your browser may not support embedded PDF viewing.",
|
|
241
|
+
documentLabel: "PDF Document",
|
|
242
|
+
download: "Download PDF",
|
|
243
|
+
unableToDisplay: "Unable to display PDF",
|
|
244
|
+
zoomIn: "Zoom in",
|
|
245
|
+
zoomOut: "Zoom out"
|
|
246
|
+
},
|
|
247
|
+
video: {
|
|
248
|
+
fullscreen: "Fullscreen",
|
|
249
|
+
mute: "Mute",
|
|
250
|
+
muteVideo: "Mute video",
|
|
251
|
+
openFullscreen: "Open fullscreen",
|
|
252
|
+
pause: "Pause",
|
|
253
|
+
pauseVideo: "Pause video",
|
|
254
|
+
play: "Play",
|
|
255
|
+
playVideo: "Play video",
|
|
256
|
+
seek: "Seek",
|
|
257
|
+
unmute: "Unmute",
|
|
258
|
+
unmuteVideo: "Unmute video",
|
|
259
|
+
volume: "Volume"
|
|
260
|
+
},
|
|
261
|
+
audio: {
|
|
262
|
+
mute: "Mute",
|
|
263
|
+
pause: "Pause",
|
|
264
|
+
play: "Play",
|
|
265
|
+
seek: "Seek",
|
|
266
|
+
unmute: "Unmute",
|
|
267
|
+
volume: "Volume"
|
|
268
|
+
},
|
|
269
|
+
code: {
|
|
270
|
+
copied: "Copied!",
|
|
271
|
+
copy: "Copy",
|
|
272
|
+
copyCode: "Copy code",
|
|
273
|
+
copyCodeContent: "Copy code content",
|
|
274
|
+
disableWordWrap: "Disable word wrap",
|
|
275
|
+
enableWordWrap: "Enable word wrap",
|
|
276
|
+
lines: "lines",
|
|
277
|
+
loading: "Loading code...",
|
|
278
|
+
text: "Text"
|
|
279
|
+
},
|
|
280
|
+
text: {
|
|
281
|
+
copied: "Copied!",
|
|
282
|
+
copy: "Copy",
|
|
283
|
+
copyText: "Copy text",
|
|
284
|
+
copyTextContent: "Copy text content",
|
|
285
|
+
disableWordWrap: "Disable word wrap",
|
|
286
|
+
enableWordWrap: "Enable word wrap",
|
|
287
|
+
lines: "lines",
|
|
288
|
+
loading: "Loading text...",
|
|
289
|
+
match: "match",
|
|
290
|
+
matches: "matches",
|
|
291
|
+
search: "Search",
|
|
292
|
+
searchAria: "Search text",
|
|
293
|
+
searchPlaceholder: "Search...",
|
|
294
|
+
searchWithinFile: "Search within text file"
|
|
295
|
+
}
|
|
213
296
|
},
|
|
214
297
|
search: {
|
|
215
298
|
filters: { title: "Search filters" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","names":[],"sources":["../../src/translations/en.ts"],"sourcesContent":["/**\n * English fallback translations for microfe-files.\n *\n * Keys use dot-notation (e.g., 'files.browser.loading') which the\n * I18nProvider resolves against this nested object structure.\n *\n * This file is the source of truth for all translation keys used in this MFE.\n * Register it with the host shell's AppShellProvider.fallbackTranslations\n * to enable offline/fallback support.\n */\nexport const enTranslations = {\n files: {\n actionMenu: {\n moreActions: \"More actions\",\n },\n browser: {\n actions: {\n export: \"Export\",\n exportTitle: \"Export selected items\",\n goToRoot: \"Go to root folder\",\n newFolder: \"New Folder\",\n selectAll: \"Select all\",\n uploadFiles: \"Upload files\",\n uploadFolder: \"Upload folder\",\n uploadFolderTitle: \"Upload folder\",\n },\n delete: \"Delete\",\n items: \"items\",\n loading: \"Loading files…\",\n modified: \"Modified\",\n name: \"Name\",\n openFolder: \"Open folder\",\n owner: \"Owner\",\n rename: \"Rename\",\n retry: \"Retry\",\n rootLabel: \"My Drive\",\n search: {\n clear: \"Clear search\",\n showingResults: 'Showing {{count}} results for \"{{query}}\"',\n },\n selection: {\n selectedCount: \"{{count}} selected\",\n actions: {\n restore: \"Restore\",\n },\n },\n size: \"Size\",\n tabs: {\n all: \"All Files\",\n bin: \"Bin\",\n recent: \"Recent\",\n starred: \"Starred\",\n },\n view: {\n grid: \"Grid view\",\n list: \"List view\",\n },\n workspace: {\n notSelected: \"No workspace selected\",\n waiting: \"Waiting for workspace...\",\n },\n loadError: \"Failed to load files\",\n unexpectedError: \"An unexpected error occurred\",\n },\n card: {\n activity: \"Activity\",\n addToStarred: \"Add to starred\",\n delete: \"Delete\",\n details: \"Details\",\n download: \"Download\",\n favorite: \"Favorite\",\n makeCopy: \"Make a copy\",\n moveTo: \"Move to\",\n rename: \"Rename\",\n restore: \"Restore\",\n share: \"Share\",\n shared: \"Shared\",\n unfavorite: \"Remove from starred\",\n },\n common: {\n actions: {\n cancel: \"Cancel\",\n clear: \"Clear\",\n close: \"Close\",\n create: \"Create\",\n delete: \"Delete\",\n deletePermanently: \"Delete permanently\",\n done: \"Done\",\n move: \"Move\",\n rename: \"Rename\",\n share: \"Share\",\n },\n },\n confirm: {\n bulkPermanentDelete: {\n description:\n \"This action cannot be undone. All selected items will be permanently deleted.\",\n title: \"Permanently delete {{count}} items\",\n },\n deleteFile: {\n description:\n \"Are you sure you want to delete this file? It will be moved to the bin.\",\n title: \"Delete file\",\n },\n deleteFolder: {\n description:\n \"Are you sure you want to delete this folder? It will be moved to the bin.\",\n title: \"Delete folder\",\n },\n permanentDeleteFile: {\n description:\n \"This file will be permanently deleted. This action cannot be undone.\",\n title: \"Permanently delete file\",\n },\n permanentDeleteFolder: {\n description:\n \"This folder and all its contents will be permanently deleted. This action cannot be undone.\",\n title: \"Permanently delete folder\",\n },\n },\n contextMenu: {\n activity: \"Activity\",\n addToStarred: \"Add to starred\",\n delete: \"Delete\",\n download: \"Download\",\n fileInfo: \"File information\",\n folderInfo: \"Folder information\",\n moveTo: \"Move to\",\n removeStar: \"Remove star\",\n rename: \"Rename\",\n restore: \"Restore\",\n share: \"Share\",\n },\n copyDialog: {\n copy: \"Copy\",\n copyHere: \"Copy here\",\n copyOf: \"Copy of\",\n copying: \"Copying...\",\n makeCopyOf: 'Make a copy of \"{{name}}\"',\n myDrive: \"My Drive\",\n name: \"Name\",\n title: \"Copy item\",\n },\n empty: {\n all: {\n description: \"Upload files or create folders to get started\",\n title: \"No files or folders yet\",\n },\n bin: {\n description: \"Deleted files and folders will appear here\",\n title: \"Bin is empty\",\n },\n newFolder: \"New Folder\",\n recent: {\n description: \"Files you recently opened will appear here\",\n title: \"No recent files\",\n },\n starred: {\n description: \"Star files and folders to find them easily\",\n title: \"No starred items\",\n },\n uploadFiles: \"Upload Files\",\n },\n file: {\n copy: {\n success: '\"{{name}}\" copied',\n },\n delete: {\n success: '\"{{name}}\" deleted',\n },\n download: {\n success: \"Downloaded {{name}}\",\n },\n errors: {\n copyFailed: \"Failed to copy file\",\n deleteFailed: \"Failed to delete file\",\n downloadFailed: \"Failed to download file\",\n downloadUrlUnavailable: \"Download URL is not available\",\n moveFailed: \"Failed to move file\",\n permanentDeleteFailed: \"Failed to permanently delete file\",\n renameFailed: \"Failed to rename file\",\n restoreFailed: \"Failed to restore file\",\n starFailed: \"Failed to update star status\",\n },\n move: {\n success: '\"{{name}}\" moved',\n },\n permanentDelete: {\n success: '\"{{name}}\" permanently deleted',\n },\n rename: {\n success: 'Renamed \"{{name}}\"',\n },\n restore: {\n success: '\"{{name}}\" restored',\n },\n },\n folder: {\n errors: {\n copyUnsupported: \"Copying folders is not supported\",\n createFailed: \"Failed to create folder\",\n deleteFailed: \"Failed to delete folder\",\n moveFailed: \"Failed to move folder\",\n permanentDeleteFailed: \"Failed to permanently delete folder\",\n renameFailed: \"Failed to rename folder\",\n restoreFailed: \"Failed to restore folder\",\n starFailed: \"Failed to update star status\",\n },\n item: \"item\",\n move: {\n success: '\"{{name}}\" moved',\n },\n delete: {\n success: '\"{{name}}\" deleted',\n },\n permanentDelete: {\n success: '\"{{name}}\" permanently deleted',\n },\n restore: {\n success: '\"{{name}}\" restored',\n },\n rename: {\n success: 'Renamed \"{{name}}\"',\n },\n },\n info: {\n contents: \"Contents\",\n created: \"Created\",\n fileInfo: \"File information\",\n files: \"Files\",\n folder: \"Folder\",\n folderInfo: \"Folder information\",\n folders: \"Folders\",\n modified: \"Modified\",\n no: \"No\",\n owner: \"Owner\",\n path: \"Path\",\n properties: \"Properties\",\n size: \"Size\",\n starred: \"Starred\",\n status: \"Status\",\n type: \"Type\",\n unknown: \"Unknown\",\n visibility: \"Visibility\",\n yes: \"Yes\",\n },\n item: {\n errors: {\n moveFailed: \"Failed to move item\",\n renameFailed: \"Failed to rename item\",\n },\n },\n moveDialog: {\n actions: {\n moving: \"Moving...\",\n },\n title: \"Move item\",\n },\n preview: {\n addStar: \"Add to starred\",\n removeStar: \"Remove from starred\",\n },\n search: {\n filters: {\n title: \"Search filters\",\n },\n input: {\n placeholder: \"Search files...\",\n },\n },\n share: {\n back: \"Back to files\",\n password: {\n label: \"Password\",\n },\n title: \"Share\",\n unlock: \"Enter password to access\",\n },\n upload: {\n active: \"{{count}} uploading\",\n cancel: \"Cancel\",\n completed: \"{{count}} completed\",\n errors: {\n failed: \"Upload failed\",\n quotaExceeded:\n \"Storage quota exceeded. Please upgrade your plan or delete files.\",\n },\n failed: \"Upload failed\",\n noUploads: \"No uploads in progress\",\n pause: \"Pause\",\n paused: \"Paused\",\n pending: \"{{count}} pending\",\n resume: \"Resume\",\n retry: \"Retry\",\n uploads: \"Uploads\",\n },\n version: {\n deleteVersion: \"Delete version\",\n major: \"Major version\",\n restore: \"Restore\",\n restoreVersion: \"Restore this version\",\n restoredFrom: \"Restored from version {{version}}\",\n total: \"{{count}} versions\",\n version: \"Version\",\n versionDeleted: \"Version deleted\",\n versionRestored: \"Version restored\",\n versions: \"Versions\",\n },\n workspace: {\n errors: {\n notSelected: \"No workspace selected\",\n },\n },\n bulk: {\n permanentDelete: {\n success: \"Permanently deleted {{count}} items\",\n },\n },\n },\n};\n"],"mappings":";AAUA,IAAa,IAAiB,EAC5B,OAAO;CACL,YAAY,EACV,aAAa,gBACd;CACD,SAAS;EACP,SAAS;GACP,QAAQ;GACR,aAAa;GACb,UAAU;GACV,WAAW;GACX,WAAW;GACX,aAAa;GACb,cAAc;GACd,mBAAmB;GACpB;EACD,QAAQ;EACR,OAAO;EACP,SAAS;EACT,UAAU;EACV,MAAM;EACN,YAAY;EACZ,OAAO;EACP,QAAQ;EACR,OAAO;EACP,WAAW;EACX,QAAQ;GACN,OAAO;GACP,gBAAgB;GACjB;EACD,WAAW;GACT,eAAe;GACf,SAAS,EACP,SAAS,WACV;GACF;EACD,MAAM;EACN,MAAM;GACJ,KAAK;GACL,KAAK;GACL,QAAQ;GACR,SAAS;GACV;EACD,MAAM;GACJ,MAAM;GACN,MAAM;GACP;EACD,WAAW;GACT,aAAa;GACb,SAAS;GACV;EACD,WAAW;EACX,iBAAiB;EAClB;CACD,MAAM;EACJ,UAAU;EACV,cAAc;EACd,QAAQ;EACR,SAAS;EACT,UAAU;EACV,UAAU;EACV,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACR,YAAY;EACb;CACD,QAAQ,EACN,SAAS;EACP,QAAQ;EACR,OAAO;EACP,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,mBAAmB;EACnB,MAAM;EACN,MAAM;EACN,QAAQ;EACR,OAAO;EACR,EACF;CACD,SAAS;EACP,qBAAqB;GACnB,aACE;GACF,OAAO;GACR;EACD,YAAY;GACV,aACE;GACF,OAAO;GACR;EACD,cAAc;GACZ,aACE;GACF,OAAO;GACR;EACD,qBAAqB;GACnB,aACE;GACF,OAAO;GACR;EACD,uBAAuB;GACrB,aACE;GACF,OAAO;GACR;EACF;CACD,aAAa;EACX,UAAU;EACV,cAAc;EACd,QAAQ;E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Z,KAAK;EACN;CACD,MAAM,EACJ,QAAQ;EACN,YAAY;EACZ,cAAc;EACf,EACF;CACD,YAAY;EACV,SAAS,EACP,QAAQ,aACT;EACD,OAAO;EACR;CACD,SAAS;EACP,SAAS;EACT,YAAY;EACb;CACD,QAAQ;EACN,SAAS,EACP,OAAO,kBACR;EACD,OAAO,EACL,aAAa,mBACd;EACF;CACD,OAAO;EACL,MAAM;EACN,UAAU,EACR,OAAO,YACR;EACD,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,QAAQ;GACN,QAAQ;GACR,eACE;GACH;EACD,QAAQ;EACR,WAAW;EACX,OAAO;EACP,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,OAAO;EACP,SAAS;EACV;CACD,SAAS;EACP,eAAe;EACf,OAAO;EACP,SAAS;EACT,gBAAgB;EAChB,cAAc;EACd,OAAO;EACP,SAAS;EACT,gBAAgB;EAChB,iBAAiB;EACjB,UAAU;EACX;CACD,WAAW,EACT,QAAQ,EACN,aAAa,yBACd,EACF;CACD,MAAM,EACJ,iBAAiB,EACf,SAAS,uCACV,EACF;CACF,EACF"}
|
|
1
|
+
{"version":3,"file":"en.js","names":[],"sources":["../../src/translations/en.ts"],"sourcesContent":["/**\n * English fallback translations for microfe-files.\n *\n * Keys use dot-notation (e.g., 'files.browser.loading') which the\n * I18nProvider resolves against this nested object structure.\n *\n * This file is the source of truth for all translation keys used in this MFE.\n * Register it with the host shell's AppShellProvider.fallbackTranslations\n * to enable offline/fallback support.\n */\nexport const enTranslations = {\n files: {\n actionMenu: {\n moreActions: \"More actions\",\n },\n nav: {\n allFiles: \"All Files\",\n statusReady: \"Files Ready\",\n },\n root: {\n errorFallback:\n \"Something went wrong loading this module. Please refresh the page.\",\n },\n storage: {\n almostFull: \"Storage almost full.\",\n almostFullNoLimit: \"{{used}} used.\",\n almostFullWithLimit: \"{{used}} of {{limit}} used ({{percent}}%).\",\n deleteOrUpgrade: \"Consider deleting files or upgrading your plan.\",\n freeUpOrUpgrade: \"Delete files to free up space or upgrade your plan.\",\n full: \"Storage full.\",\n fullNoLimit: \"{{used}} used — no space left.\",\n fullWithLimit: \"{{used}} of {{limit}} used — no space left.\",\n label: \"Storage\",\n unit: \"MB\",\n },\n browser: {\n actions: {\n export: \"Export\",\n exportTitle: \"Export selected items\",\n goToRoot: \"Go to root folder\",\n newFolder: \"New Folder\",\n selectAll: \"Select all\",\n uploadFiles: \"Upload files\",\n uploadFolder: \"Upload folder\",\n uploadFolderTitle: \"Upload folder\",\n },\n delete: \"Delete\",\n items: \"items\",\n loading: \"Loading files…\",\n modified: \"Modified\",\n name: \"Name\",\n openFolder: \"Open folder\",\n owner: \"Owner\",\n rename: \"Rename\",\n retry: \"Retry\",\n rootLabel: \"My Drive\",\n search: {\n clear: \"Clear search\",\n showingResults: 'Showing {{count}} results for \"{{query}}\"',\n },\n selection: {\n selectedCount: \"{{count}} selected\",\n actions: {\n restore: \"Restore\",\n },\n },\n size: \"Size\",\n tabs: {\n all: \"All Files\",\n bin: \"Bin\",\n recent: \"Recent\",\n starred: \"Starred\",\n },\n view: {\n grid: \"Grid view\",\n list: \"List view\",\n },\n workspace: {\n notSelected: \"No workspace selected\",\n waiting: \"Waiting for workspace...\",\n },\n loadError: \"Failed to load files\",\n unexpectedError: \"An unexpected error occurred\",\n },\n card: {\n activity: \"Activity\",\n addToStarred: \"Add to starred\",\n delete: \"Delete\",\n details: \"Details\",\n download: \"Download\",\n favorite: \"Favorite\",\n makeCopy: \"Make a copy\",\n moveTo: \"Move to\",\n rename: \"Rename\",\n restore: \"Restore\",\n share: \"Share\",\n shared: \"Shared\",\n unfavorite: \"Remove from starred\",\n },\n common: {\n actions: {\n cancel: \"Cancel\",\n clear: \"Clear\",\n close: \"Close\",\n create: \"Create\",\n delete: \"Delete\",\n deletePermanently: \"Delete permanently\",\n done: \"Done\",\n move: \"Move\",\n rename: \"Rename\",\n share: \"Share\",\n },\n },\n confirm: {\n bulkPermanentDelete: {\n description:\n \"This action cannot be undone. All selected items will be permanently deleted.\",\n title: \"Permanently delete {{count}} items\",\n },\n deleteFile: {\n description:\n \"Are you sure you want to delete this file? It will be moved to the bin.\",\n title: \"Delete file\",\n },\n deleteFolder: {\n description:\n \"Are you sure you want to delete this folder? It will be moved to the bin.\",\n title: \"Delete folder\",\n },\n permanentDeleteFile: {\n description:\n \"This file will be permanently deleted. This action cannot be undone.\",\n title: \"Permanently delete file\",\n },\n permanentDeleteFolder: {\n description:\n \"This folder and all its contents will be permanently deleted. This action cannot be undone.\",\n title: \"Permanently delete folder\",\n },\n },\n contextMenu: {\n activity: \"Activity\",\n addToStarred: \"Add to starred\",\n delete: \"Delete\",\n download: \"Download\",\n fileInfo: \"File information\",\n folderInfo: \"Folder information\",\n moveTo: \"Move to\",\n removeStar: \"Remove star\",\n rename: \"Rename\",\n restore: \"Restore\",\n share: \"Share\",\n },\n copyDialog: {\n copy: \"Copy\",\n copyHere: \"Copy here\",\n copyOf: \"Copy of\",\n copying: \"Copying...\",\n makeCopyOf: 'Make a copy of \"{{name}}\"',\n myDrive: \"My Drive\",\n name: \"Name\",\n title: \"Copy item\",\n },\n empty: {\n all: {\n description: \"Upload files or create folders to get started\",\n title: \"No files or folders yet\",\n },\n bin: {\n description: \"Deleted files and folders will appear here\",\n title: \"Bin is empty\",\n },\n newFolder: \"New Folder\",\n recent: {\n description: \"Files you recently opened will appear here\",\n title: \"No recent files\",\n },\n starred: {\n description: \"Star files and folders to find them easily\",\n title: \"No starred items\",\n },\n uploadFiles: \"Upload Files\",\n },\n file: {\n copy: {\n success: '\"{{name}}\" copied',\n },\n delete: {\n success: '\"{{name}}\" deleted',\n },\n download: {\n success: \"Downloaded {{name}}\",\n },\n errors: {\n copyFailed: \"Failed to copy file\",\n deleteFailed: \"Failed to delete file\",\n downloadFailed: \"Failed to download file\",\n downloadUrlUnavailable: \"Download URL is not available\",\n moveFailed: \"Failed to move file\",\n permanentDeleteFailed: \"Failed to permanently delete file\",\n renameFailed: \"Failed to rename file\",\n restoreFailed: \"Failed to restore file\",\n starFailed: \"Failed to update star status\",\n },\n move: {\n success: '\"{{name}}\" moved',\n },\n permanentDelete: {\n success: '\"{{name}}\" permanently deleted',\n },\n rename: {\n success: 'Renamed \"{{name}}\"',\n },\n restore: {\n success: '\"{{name}}\" restored',\n },\n },\n folder: {\n errors: {\n copyUnsupported: \"Copying folders is not supported\",\n createFailed: \"Failed to create folder\",\n deleteFailed: \"Failed to delete folder\",\n moveFailed: \"Failed to move folder\",\n permanentDeleteFailed: \"Failed to permanently delete folder\",\n renameFailed: \"Failed to rename folder\",\n restoreFailed: \"Failed to restore folder\",\n starFailed: \"Failed to update star status\",\n },\n item: \"item\",\n move: {\n success: '\"{{name}}\" moved',\n },\n delete: {\n success: '\"{{name}}\" deleted',\n },\n permanentDelete: {\n success: '\"{{name}}\" permanently deleted',\n },\n restore: {\n success: '\"{{name}}\" restored',\n },\n rename: {\n success: 'Renamed \"{{name}}\"',\n },\n },\n info: {\n contents: \"Contents\",\n created: \"Created\",\n fileInfo: \"File information\",\n files: \"Files\",\n folder: \"Folder\",\n folderInfo: \"Folder information\",\n folders: \"Folders\",\n modified: \"Modified\",\n no: \"No\",\n owner: \"Owner\",\n path: \"Path\",\n properties: \"Properties\",\n size: \"Size\",\n starred: \"Starred\",\n status: \"Status\",\n type: \"Type\",\n unknown: \"Unknown\",\n visibility: \"Visibility\",\n yes: \"Yes\",\n },\n item: {\n errors: {\n moveFailed: \"Failed to move item\",\n renameFailed: \"Failed to rename item\",\n },\n },\n moveDialog: {\n actions: {\n moving: \"Moving...\",\n },\n title: \"Move item\",\n },\n preview: {\n addStar: \"Add to starred\",\n removeStar: \"Remove from starred\",\n image: {\n failedToLoad: \"Failed to load image\",\n fitToScreen: \"Fit to screen\",\n loadError: \"Failed to load image from URL\",\n openInNewTab: \"Open in new tab\",\n rotate: \"Rotate 90°\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n },\n pdf: {\n browserUnsupported:\n \"Your browser may not support embedded PDF viewing.\",\n documentLabel: \"PDF Document\",\n download: \"Download PDF\",\n unableToDisplay: \"Unable to display PDF\",\n zoomIn: \"Zoom in\",\n zoomOut: \"Zoom out\",\n },\n video: {\n fullscreen: \"Fullscreen\",\n mute: \"Mute\",\n muteVideo: \"Mute video\",\n openFullscreen: \"Open fullscreen\",\n pause: \"Pause\",\n pauseVideo: \"Pause video\",\n play: \"Play\",\n playVideo: \"Play video\",\n seek: \"Seek\",\n unmute: \"Unmute\",\n unmuteVideo: \"Unmute video\",\n volume: \"Volume\",\n },\n audio: {\n mute: \"Mute\",\n pause: \"Pause\",\n play: \"Play\",\n seek: \"Seek\",\n unmute: \"Unmute\",\n volume: \"Volume\",\n },\n code: {\n copied: \"Copied!\",\n copy: \"Copy\",\n copyCode: \"Copy code\",\n copyCodeContent: \"Copy code content\",\n disableWordWrap: \"Disable word wrap\",\n enableWordWrap: \"Enable word wrap\",\n lines: \"lines\",\n loading: \"Loading code...\",\n text: \"Text\",\n },\n text: {\n copied: \"Copied!\",\n copy: \"Copy\",\n copyText: \"Copy text\",\n copyTextContent: \"Copy text content\",\n disableWordWrap: \"Disable word wrap\",\n enableWordWrap: \"Enable word wrap\",\n lines: \"lines\",\n loading: \"Loading text...\",\n match: \"match\",\n matches: \"matches\",\n search: \"Search\",\n searchAria: \"Search text\",\n searchPlaceholder: \"Search...\",\n searchWithinFile: \"Search within text file\",\n },\n },\n search: {\n filters: {\n title: \"Search filters\",\n },\n input: {\n placeholder: \"Search files...\",\n },\n },\n share: {\n back: \"Back to files\",\n password: {\n label: \"Password\",\n },\n title: \"Share\",\n unlock: \"Enter password to access\",\n },\n upload: {\n active: \"{{count}} uploading\",\n cancel: \"Cancel\",\n completed: \"{{count}} completed\",\n errors: {\n failed: \"Upload failed\",\n quotaExceeded:\n \"Storage quota exceeded. Please upgrade your plan or delete files.\",\n },\n failed: \"Upload failed\",\n noUploads: \"No uploads in progress\",\n pause: \"Pause\",\n paused: \"Paused\",\n pending: \"{{count}} pending\",\n resume: \"Resume\",\n retry: \"Retry\",\n uploads: \"Uploads\",\n },\n version: {\n deleteVersion: \"Delete version\",\n major: \"Major version\",\n restore: \"Restore\",\n restoreVersion: \"Restore this version\",\n restoredFrom: \"Restored from version {{version}}\",\n total: \"{{count}} versions\",\n version: \"Version\",\n versionDeleted: \"Version deleted\",\n versionRestored: \"Version restored\",\n versions: \"Versions\",\n },\n workspace: {\n errors: {\n notSelected: \"No workspace selected\",\n },\n },\n bulk: {\n permanentDelete: {\n success: \"Permanently deleted {{count}} items\",\n },\n },\n },\n};\n"],"mappings":";AAUA,IAAa,IAAiB,EAC5B,OAAO;CACL,YAAY,EACV,aAAa,gBACd;CACD,KAAK;EACH,UAAU;EACV,aAAa;EACd;CACD,MAAM,EACJ,eACE,sEACH;CACD,SAAS;EACP,YAAY;EACZ,mBAAmB;EACnB,qBAAqB;EACrB,iBAAiB;EACjB,iBAAiB;EACjB,MAAM;EACN,aAAa;EACb,eAAe;EACf,OAAO;EACP,MAAM;EACP;CACD,SAAS;EACP,SAAS;GACP,QAAQ;GACR,aAAa;GACb,UAAU;GACV,WAAW;GACX,WAAW;GACX,aAAa;GACb,cAAc;GACd,mBAAmB;GACpB;EACD,QAAQ;EACR,OAAO;EACP,SAAS;EACT,UAAU;EACV,MAAM;EACN,YAAY;EACZ,OAAO;EACP,QAAQ;EACR,OAAO;EACP,WAAW;EACX,QAAQ;GACN,OAAO;GACP,gBAAgB;GACjB;EACD,WAAW;GACT,eAAe;GACf,SAAS,EACP,SAAS,WACV;GACF;EACD,MAAM;EACN,MAAM;GACJ,KAAK;GACL,KAAK;GACL,QAAQ;GACR,SAAS;GACV;EACD,MAAM;GACJ,MAAM;GACN,MAAM;GACP;EACD,WAAW;GACT,aAAa;GACb,SAAS;GACV;EACD,WAAW;EACX,iBAAiB;EAClB;CACD,MAAM;EACJ,UAAU;EACV,cAAc;EACd,QAAQ;EACR,SAAS;EACT,UAAU;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M;GACN,UAAU;GACV,iBAAiB;GACjB,iBAAiB;GACjB,gBAAgB;GAChB,OAAO;GACP,SAAS;GACT,OAAO;GACP,SAAS;GACT,QAAQ;GACR,YAAY;GACZ,mBAAmB;GACnB,kBAAkB;GACnB;EACF;CACD,QAAQ;EACN,SAAS,EACP,OAAO,kBACR;EACD,OAAO,EACL,aAAa,mBACd;EACF;CACD,OAAO;EACL,MAAM;EACN,UAAU,EACR,OAAO,YACR;EACD,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,WAAW;EACX,QAAQ;GACN,QAAQ;GACR,eACE;GACH;EACD,QAAQ;EACR,WAAW;EACX,OAAO;EACP,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,OAAO;EACP,SAAS;EACV;CACD,SAAS;EACP,eAAe;EACf,OAAO;EACP,SAAS;EACT,gBAAgB;EAChB,cAAc;EACd,OAAO;EACP,SAAS;EACT,gBAAgB;EAChB,iBAAiB;EACjB,UAAU;EACX;CACD,WAAW,EACT,QAAQ,EACN,aAAa,yBACd,EACF;CACD,MAAM,EACJ,iBAAiB,EACf,SAAS,uCACV,EACF;CACF,EACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-files",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.930.1",
|
|
4
4
|
"description": "Burdenoff Files Microfrontend - Standalone file management module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/files.d.ts",
|
|
17
17
|
"import": "./dist/files.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles/dark.css": {
|
|
20
|
+
"style": "./src/styles/dark.css",
|
|
21
|
+
"default": "./src/styles/dark.css"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
"files": [
|
|
21
25
|
"dist",
|
|
26
|
+
"src/styles/dark.css",
|
|
22
27
|
"package.json",
|
|
23
28
|
"README.md"
|
|
24
29
|
],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Class-based dark variant for hosts of @burdenoff/microfe-files.
|
|
3
|
+
*
|
|
4
|
+
* The dropdown triggers this package added on BOFF-7280
|
|
5
|
+
* (File Type / Status / Visibility in FilesRoot's SearchBar, the
|
|
6
|
+
* link-expiry select in ShareDialog, and the playback-rate select in
|
|
7
|
+
* VideoPlayer) use Tailwind's `dark:` variant on `color-scheme` so the
|
|
8
|
+
* browser/OS paints the native <option> rows in dark form-widget
|
|
9
|
+
* colours when the app's dark palette is active.
|
|
10
|
+
*
|
|
11
|
+
* Tailwind v4's default `dark:` variant follows the `prefers-color-scheme`
|
|
12
|
+
* media query. Hosts in this monorepo toggle dark mode through the `.dark`
|
|
13
|
+
* class on the document root (see `@burdenoff/fe-libs/shared/providers/shell/ThemeProvider`).
|
|
14
|
+
* Without this `@custom-variant` line, a user who picks dark mode on a
|
|
15
|
+
* light OS (or vice-versa) would still get `scheme-normal` for the
|
|
16
|
+
* dropdown chrome and the open `<select>` panel.
|
|
17
|
+
*
|
|
18
|
+
* The directive only needs to be present in ONE CSS file processed by
|
|
19
|
+
* Tailwind v4 during the host's build; importing this file from the host
|
|
20
|
+
* (or via the package's `./styles/dark.css` export) is enough.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // host styles.css
|
|
24
|
+
* @import "tailwindcss";
|
|
25
|
+
* @import "@burdenoff/microfe-files/styles/dark.css";
|
|
26
|
+
*/
|
|
27
|
+
@custom-variant dark (&:where(.dark, .dark *));
|