@zextras/carbonio-shell-ui 9.0.1 → 10.0.0-devel.1741258975575

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.
Files changed (167) hide show
  1. package/THIRDPARTIES +431 -0
  2. package/lib/boot/app/app-context-provider.d.ts +5 -0
  3. package/lib/boot/app/app-context-provider.js +5 -0
  4. package/lib/boot/app/app-context-provider.js.map +1 -1
  5. package/lib/boot/app/app-dependant-exports.d.ts +1 -9
  6. package/lib/boot/app/app-dependant-exports.js +1 -11
  7. package/lib/boot/app/app-dependant-exports.js.map +1 -1
  8. package/lib/boot/app/app-direct-exports.d.ts +21 -9
  9. package/lib/boot/app/app-direct-exports.js +20 -37
  10. package/lib/boot/app/app-direct-exports.js.map +1 -1
  11. package/lib/boot/app/app-error-catcher.js +17 -7
  12. package/lib/boot/app/app-error-catcher.js.map +1 -1
  13. package/lib/constants/index.d.ts +4 -54
  14. package/lib/constants/index.js +8 -65
  15. package/lib/constants/index.js.map +1 -1
  16. package/lib/constants/locales.d.ts +6 -87
  17. package/lib/constants/locales.js +87 -23
  18. package/lib/constants/locales.js.map +1 -1
  19. package/lib/dark-mode/use-dark-reader-result-value.js +4 -5
  20. package/lib/dark-mode/use-dark-reader-result-value.js.map +1 -1
  21. package/lib/history/hooks.d.ts +0 -10
  22. package/lib/history/hooks.js +1 -51
  23. package/lib/history/hooks.js.map +1 -1
  24. package/lib/lib.d.ts +9 -15
  25. package/lib/lib.js +1 -3
  26. package/lib/lib.js.map +1 -1
  27. package/lib/network/edit-settings.d.ts +1 -1
  28. package/lib/network/fetch-utils.d.ts +1 -1
  29. package/lib/network/fetch.d.ts +10 -4
  30. package/lib/network/fetch.js +18 -4
  31. package/lib/network/fetch.js.map +1 -1
  32. package/lib/network/logout.d.ts +1 -0
  33. package/lib/network/logout.js +29 -0
  34. package/lib/network/logout.js.map +1 -0
  35. package/lib/network/utils.js +2 -3
  36. package/lib/network/utils.js.map +1 -1
  37. package/lib/settings/components/settings-header.js +22 -16
  38. package/lib/settings/components/settings-header.js.map +1 -1
  39. package/lib/shell/creation-button.d.ts +1 -1
  40. package/lib/shell/creation-button.js +24 -8
  41. package/lib/shell/creation-button.js.map +1 -1
  42. package/lib/shell/hooks/useLocalStorage.js +2 -2
  43. package/lib/shell/hooks/useLocalStorage.js.map +1 -1
  44. package/lib/store/account/hooks.js +2 -1
  45. package/lib/store/account/hooks.js.map +1 -1
  46. package/lib/store/account/utils.js +4 -5
  47. package/lib/store/account/utils.js.map +1 -1
  48. package/lib/store/app/hooks.d.ts +0 -6
  49. package/lib/store/app/hooks.js +1 -13
  50. package/lib/store/app/hooks.js.map +1 -1
  51. package/lib/store/app/store.d.ts +2 -4
  52. package/lib/store/app/store.js +5 -28
  53. package/lib/store/app/store.js.map +1 -1
  54. package/lib/store/app/utils.d.ts +2 -3
  55. package/lib/store/app/utils.js +1 -14
  56. package/lib/store/app/utils.js.map +1 -1
  57. package/lib/store/boards/hooks.js +17 -7
  58. package/lib/store/boards/hooks.js.map +1 -1
  59. package/lib/store/boards/store.d.ts +4 -4
  60. package/lib/store/i18n/store.js +14 -4
  61. package/lib/store/i18n/store.js.map +1 -1
  62. package/lib/store/integrations/composer.d.ts +1 -1
  63. package/lib/store/integrations/composer.js +17 -7
  64. package/lib/store/integrations/composer.js.map +1 -1
  65. package/lib/store/integrations/getters.d.ts +4 -4
  66. package/lib/store/integrations/getters.js +3 -1
  67. package/lib/store/integrations/getters.js.map +1 -1
  68. package/lib/store/integrations/hooks.d.ts +4 -4
  69. package/lib/store/integrations/hooks.js.map +1 -1
  70. package/lib/store/integrations/utils.d.ts +2 -2
  71. package/lib/store/integrations/utils.js +12 -8
  72. package/lib/store/integrations/utils.js.map +1 -1
  73. package/lib/store/login/getters.js +2 -3
  74. package/lib/store/login/getters.js.map +1 -1
  75. package/lib/store/login/hooks.js +4 -4
  76. package/lib/store/login/hooks.js.map +1 -1
  77. package/lib/store/network/hooks.js +4 -2
  78. package/lib/store/network/hooks.js.map +1 -1
  79. package/lib/store/network/utils.d.ts +1 -2
  80. package/lib/store/network/utils.js +4 -40
  81. package/lib/store/network/utils.js.map +1 -1
  82. package/lib/types/apps/index.d.ts +2 -15
  83. package/lib/types/misc/index.d.ts +1 -45
  84. package/lib/types/network/index.d.ts +6 -31
  85. package/lib/types/network/soap.d.ts +1 -0
  86. package/lib/types/network/soap.js +4 -0
  87. package/lib/types/network/soap.js.map +1 -1
  88. package/lib/types/tags/index.d.ts +0 -4
  89. package/lib/types/theme.d.ts +10 -0
  90. package/lib/types/{search/items.js → theme.js} +1 -1
  91. package/lib/types/theme.js.map +1 -0
  92. package/lib/ui-extras/auth-guard.d.ts +5 -0
  93. package/lib/ui-extras/auth-guard.js +14 -0
  94. package/lib/ui-extras/auth-guard.js.map +1 -0
  95. package/lib/ui-extras/nav-guard.d.ts +1 -1
  96. package/lib/ui-extras/nav-guard.js +39 -47
  97. package/lib/ui-extras/nav-guard.js.map +1 -1
  98. package/lib/utility-bar/bar.d.ts +19 -0
  99. package/lib/utility-bar/bar.js +129 -0
  100. package/lib/utility-bar/bar.js.map +1 -0
  101. package/lib/utility-bar/store.d.ts +2 -0
  102. package/lib/utility-bar/store.js +19 -0
  103. package/lib/utility-bar/store.js.map +1 -0
  104. package/lib/utility-bar/utils.d.ts +4 -0
  105. package/lib/utility-bar/utils.js +30 -0
  106. package/lib/utility-bar/utils.js.map +1 -0
  107. package/lib/utils/typeUtils.d.ts +0 -1
  108. package/lib/utils/utils.d.ts +0 -3
  109. package/lib/utils/utils.js +4 -6
  110. package/lib/utils/utils.js.map +1 -1
  111. package/package.json +31 -32
  112. package/lib/network/tags.d.ts +0 -27
  113. package/lib/network/tags.js +0 -31
  114. package/lib/network/tags.js.map +0 -1
  115. package/lib/search/run-search.d.ts +0 -2
  116. package/lib/search/run-search.js +0 -17
  117. package/lib/search/run-search.js.map +0 -1
  118. package/lib/search/search-store.d.ts +0 -2
  119. package/lib/search/search-store.js +0 -20
  120. package/lib/search/search-store.js.map +0 -1
  121. package/lib/search/useSearchModule.d.ts +0 -3
  122. package/lib/search/useSearchModule.js +0 -21
  123. package/lib/search/useSearchModule.js.map +0 -1
  124. package/lib/store/context-bridge.d.ts +0 -11
  125. package/lib/store/context-bridge.js +0 -34
  126. package/lib/store/context-bridge.js.map +0 -1
  127. package/lib/store/folder/hooks.d.ts +0 -21
  128. package/lib/store/folder/hooks.js +0 -77
  129. package/lib/store/folder/hooks.js.map +0 -1
  130. package/lib/store/folder/index.d.ts +0 -2
  131. package/lib/store/folder/index.js +0 -24
  132. package/lib/store/folder/index.js.map +0 -1
  133. package/lib/store/folder/store.d.ts +0 -2
  134. package/lib/store/folder/store.js +0 -20
  135. package/lib/store/folder/store.js.map +0 -1
  136. package/lib/store/folder/utils.d.ts +0 -16
  137. package/lib/store/folder/utils.js +0 -53
  138. package/lib/store/folder/utils.js.map +0 -1
  139. package/lib/store/tags/hooks.d.ts +0 -3
  140. package/lib/store/tags/hooks.js +0 -15
  141. package/lib/store/tags/hooks.js.map +0 -1
  142. package/lib/store/tags/index.d.ts +0 -2
  143. package/lib/store/tags/index.js +0 -24
  144. package/lib/store/tags/index.js.map +0 -1
  145. package/lib/store/tags/store.d.ts +0 -2
  146. package/lib/store/tags/store.js +0 -18
  147. package/lib/store/tags/store.js.map +0 -1
  148. package/lib/types/folder/index.d.ts +0 -29
  149. package/lib/types/folder/index.js +0 -8
  150. package/lib/types/folder/index.js.map +0 -1
  151. package/lib/types/search/index.d.ts +0 -11
  152. package/lib/types/search/index.js +0 -23
  153. package/lib/types/search/index.js.map +0 -1
  154. package/lib/types/search/items.d.ts +0 -6
  155. package/lib/types/search/items.js.map +0 -1
  156. package/lib/types/workers/index.d.ts +0 -17
  157. package/lib/types/workers/index.js +0 -3
  158. package/lib/types/workers/index.js.map +0 -1
  159. package/lib/ui-extras/app-link.d.ts +0 -6
  160. package/lib/ui-extras/app-link.js +0 -40
  161. package/lib/ui-extras/app-link.js.map +0 -1
  162. package/lib/ui-extras/spinner.d.ts +0 -2
  163. package/lib/ui-extras/spinner.js +0 -18
  164. package/lib/ui-extras/spinner.js.map +0 -1
  165. package/lib/workers/index.d.ts +0 -2
  166. package/lib/workers/index.js +0 -15
  167. package/lib/workers/index.js.map +0 -1
@@ -1,24 +1,36 @@
1
1
  export { useAction, useActions, useIntegratedComponent, useIntegratedFunction } from '../../store/integrations/hooks';
2
2
  export { getAction, getActions, getIntegratedComponent, getIntegratedFunction } from '../../store/integrations/getters';
3
- export declare const registerFunctions: (...items: {
3
+ export declare const registerFunctions: (...items: Array<{
4
4
  id: string;
5
5
  fn: import("../../utils/typeUtils").AnyFunction;
6
- }[]) => void, removeFunctions: (...ids: string[]) => void, registerActions: <TAction extends import("../../lib").Action = import("../../lib").Action>(...items: {
6
+ }>) => void, removeFunctions: (...ids: Array<string>) => void, registerActions: <TAction extends import("../../lib").Action = import("../../lib").Action>(...items: Array<{
7
7
  id: string;
8
8
  action: import("../../types/integrations").ActionFactory<unknown, TAction>;
9
9
  type: string;
10
- }[]) => void, removeActions: (...ids: string[]) => void, removeComponents: (...ids: string[]) => void;
10
+ }>) => void, removeActions: (...ids: Array<string>) => void, removeComponents: (...ids: Array<string>) => void;
11
11
  export { getUserAccount, getUserAccounts, getUserSetting, getUserSettings, useUserAccount, useUserAccounts, useUserSetting, useUserSettings, useUserRight, useUserRights, getUserRight, getUserRights, useAuthenticated, updateSettings, updateAccount } from '../../store/account';
12
- export { getTags, useTags } from '../../store/tags';
13
- export { changeTagColor, createTag, deleteTag, renameTag } from '../../network/tags';
14
12
  export { useNotify, useRefresh } from '../../store/network';
15
- export { getFolder, getFolders, useFolder, useFolders, useRoot, getRoot, useRoots, getRoots, useSearchFolder, useSearchFolders, getSearchFolder, getSearchFolders, useFoldersByView, useFoldersAccordionByView, useRootByUser, getRootByUser } from '../../store/folder';
16
13
  export { closeBoard, updateBoard, updateBoardContext, getBoardById, getBoardContextById, useBoardContextById, useBoardById, useBoard, minimizeBoards, expandBoards, reopenBoards, setCurrentBoard, useBoardHooks } from '../../store/boards';
17
- export { usePushHistoryCallback, useGoBackHistoryCallback, useReplaceHistoryCallback, getCurrentRoute, useCurrentRoute, replaceHistory, goBackHistory, pushHistory } from '../../history/hooks';
14
+ export { useCurrentRoute } from '../../history/hooks';
18
15
  export { getNotificationManager } from '../../notification/NotificationManager';
19
- export { runSearch } from '../../search/run-search';
20
16
  export { useLocalStorage } from '../../shell/hooks/useLocalStorage';
21
- export declare const updatePrimaryBadge: (badge: Partial<import("../../lib").BadgeInfo>, id: string) => void, setRouteVisibility: (id: string, visible: boolean) => void, removeRoute: (id: string) => void, removeBoardView: (id: string) => void, removeSettingsView: (id: string) => void, removeSearchView: (id: string) => void, removeUtilityView: (id: string) => void, removePrimaryAccessoryView: (id: string) => void, removeSecondaryAccessoryView: (id: string) => void;
17
+ export declare const updatePrimaryBadge: (badge: Partial<import("../../lib").BadgeInfo>, id: string) => void, setRouteVisibility: (id: string, visible: boolean) => void, removeRoute: (id: string) => void, removeBoardView: (id: string) => void, removeSettingsView: (id: string) => void, removeUtilityView: (id: string) => void, removePrimaryAccessoryView: (id: string) => void, removeSecondaryAccessoryView: (id: string) => void,
18
+ /**
19
+ * Add or update the translatable display label for an app.
20
+ * These fields are the ones used in the UI.
21
+ * @param app - The app to update based on the name field
22
+ * @example
23
+ * upsertApp(\{
24
+ * name: 'carbonio-example-ui',
25
+ * display: t('label.app_name', 'Example')
26
+ * \});
27
+ */
28
+ upsertApp: (app: Pick<import("../../types/apps").CarbonioModule, "name" | "display">) => void;
22
29
  export { useIsCarbonioCE } from '../../store/login/hooks';
23
30
  export type { NewAction } from '../../shell/creation-button';
31
+ export type { AccountMenuAction } from '../../utility-bar/bar';
24
32
  export { useTracker } from '../../tracker/tracker';
33
+ export { AppContextProvider } from './app-context-provider';
34
+ export type { AuthGuardProps } from '../../ui-extras/auth-guard';
35
+ export { AuthGuard } from '../../ui-extras/auth-guard';
36
+ export { soapFetchV2 } from '../../network/fetch';
@@ -6,8 +6,8 @@
6
6
  */
7
7
  var _a, _b;
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.useFoldersAccordionByView = exports.useFoldersByView = exports.getSearchFolders = exports.getSearchFolder = exports.useSearchFolders = exports.useSearchFolder = exports.getRoots = exports.useRoots = exports.getRoot = exports.useRoot = exports.useFolders = exports.useFolder = exports.getFolders = exports.getFolder = exports.useRefresh = exports.useNotify = exports.renameTag = exports.deleteTag = exports.createTag = exports.changeTagColor = exports.useTags = exports.getTags = exports.updateAccount = exports.updateSettings = exports.useAuthenticated = exports.getUserRights = exports.getUserRight = exports.useUserRights = exports.useUserRight = exports.useUserSettings = exports.useUserSetting = exports.useUserAccounts = exports.useUserAccount = exports.getUserSettings = exports.getUserSetting = exports.getUserAccounts = exports.getUserAccount = exports.removeComponents = exports.removeActions = exports.registerActions = exports.removeFunctions = exports.registerFunctions = exports.getIntegratedFunction = exports.getIntegratedComponent = exports.getActions = exports.getAction = exports.useIntegratedFunction = exports.useIntegratedComponent = exports.useActions = exports.useAction = void 0;
10
- exports.useTracker = exports.useIsCarbonioCE = exports.removeSecondaryAccessoryView = exports.removePrimaryAccessoryView = exports.removeUtilityView = exports.removeSearchView = exports.removeSettingsView = exports.removeBoardView = exports.removeRoute = exports.setRouteVisibility = exports.updatePrimaryBadge = exports.useLocalStorage = exports.runSearch = exports.getNotificationManager = exports.pushHistory = exports.goBackHistory = exports.replaceHistory = exports.useCurrentRoute = exports.getCurrentRoute = exports.useReplaceHistoryCallback = exports.useGoBackHistoryCallback = exports.usePushHistoryCallback = exports.useBoardHooks = exports.setCurrentBoard = exports.reopenBoards = exports.expandBoards = exports.minimizeBoards = exports.useBoard = exports.useBoardById = exports.useBoardContextById = exports.getBoardContextById = exports.getBoardById = exports.updateBoardContext = exports.updateBoard = exports.closeBoard = exports.getRootByUser = exports.useRootByUser = void 0;
9
+ exports.removeBoardView = exports.removeRoute = exports.setRouteVisibility = exports.updatePrimaryBadge = exports.useLocalStorage = exports.getNotificationManager = exports.useCurrentRoute = exports.useBoardHooks = exports.setCurrentBoard = exports.reopenBoards = exports.expandBoards = exports.minimizeBoards = exports.useBoard = exports.useBoardById = exports.useBoardContextById = exports.getBoardContextById = exports.getBoardById = exports.updateBoardContext = exports.updateBoard = exports.closeBoard = exports.useRefresh = exports.useNotify = exports.updateAccount = exports.updateSettings = exports.useAuthenticated = exports.getUserRights = exports.getUserRight = exports.useUserRights = exports.useUserRight = exports.useUserSettings = exports.useUserSetting = exports.useUserAccounts = exports.useUserAccount = exports.getUserSettings = exports.getUserSetting = exports.getUserAccounts = exports.getUserAccount = exports.removeComponents = exports.removeActions = exports.registerActions = exports.removeFunctions = exports.registerFunctions = exports.getIntegratedFunction = exports.getIntegratedComponent = exports.getActions = exports.getAction = exports.useIntegratedFunction = exports.useIntegratedComponent = exports.useActions = exports.useAction = void 0;
10
+ exports.soapFetchV2 = exports.AuthGuard = exports.AppContextProvider = exports.useTracker = exports.useIsCarbonioCE = exports.upsertApp = exports.removeSecondaryAccessoryView = exports.removePrimaryAccessoryView = exports.removeUtilityView = exports.removeSettingsView = void 0;
11
11
  const app_1 = require("../../store/app");
12
12
  const store_1 = require("../../store/integrations/store");
13
13
  var hooks_1 = require("../../store/integrations/hooks");
@@ -37,34 +37,9 @@ Object.defineProperty(exports, "getUserRights", { enumerable: true, get: functio
37
37
  Object.defineProperty(exports, "useAuthenticated", { enumerable: true, get: function () { return account_1.useAuthenticated; } });
38
38
  Object.defineProperty(exports, "updateSettings", { enumerable: true, get: function () { return account_1.updateSettings; } });
39
39
  Object.defineProperty(exports, "updateAccount", { enumerable: true, get: function () { return account_1.updateAccount; } });
40
- var tags_1 = require("../../store/tags");
41
- Object.defineProperty(exports, "getTags", { enumerable: true, get: function () { return tags_1.getTags; } });
42
- Object.defineProperty(exports, "useTags", { enumerable: true, get: function () { return tags_1.useTags; } });
43
- var tags_2 = require("../../network/tags");
44
- Object.defineProperty(exports, "changeTagColor", { enumerable: true, get: function () { return tags_2.changeTagColor; } });
45
- Object.defineProperty(exports, "createTag", { enumerable: true, get: function () { return tags_2.createTag; } });
46
- Object.defineProperty(exports, "deleteTag", { enumerable: true, get: function () { return tags_2.deleteTag; } });
47
- Object.defineProperty(exports, "renameTag", { enumerable: true, get: function () { return tags_2.renameTag; } });
48
40
  var network_1 = require("../../store/network");
49
41
  Object.defineProperty(exports, "useNotify", { enumerable: true, get: function () { return network_1.useNotify; } });
50
42
  Object.defineProperty(exports, "useRefresh", { enumerable: true, get: function () { return network_1.useRefresh; } });
51
- var folder_1 = require("../../store/folder");
52
- Object.defineProperty(exports, "getFolder", { enumerable: true, get: function () { return folder_1.getFolder; } });
53
- Object.defineProperty(exports, "getFolders", { enumerable: true, get: function () { return folder_1.getFolders; } });
54
- Object.defineProperty(exports, "useFolder", { enumerable: true, get: function () { return folder_1.useFolder; } });
55
- Object.defineProperty(exports, "useFolders", { enumerable: true, get: function () { return folder_1.useFolders; } });
56
- Object.defineProperty(exports, "useRoot", { enumerable: true, get: function () { return folder_1.useRoot; } });
57
- Object.defineProperty(exports, "getRoot", { enumerable: true, get: function () { return folder_1.getRoot; } });
58
- Object.defineProperty(exports, "useRoots", { enumerable: true, get: function () { return folder_1.useRoots; } });
59
- Object.defineProperty(exports, "getRoots", { enumerable: true, get: function () { return folder_1.getRoots; } });
60
- Object.defineProperty(exports, "useSearchFolder", { enumerable: true, get: function () { return folder_1.useSearchFolder; } });
61
- Object.defineProperty(exports, "useSearchFolders", { enumerable: true, get: function () { return folder_1.useSearchFolders; } });
62
- Object.defineProperty(exports, "getSearchFolder", { enumerable: true, get: function () { return folder_1.getSearchFolder; } });
63
- Object.defineProperty(exports, "getSearchFolders", { enumerable: true, get: function () { return folder_1.getSearchFolders; } });
64
- Object.defineProperty(exports, "useFoldersByView", { enumerable: true, get: function () { return folder_1.useFoldersByView; } });
65
- Object.defineProperty(exports, "useFoldersAccordionByView", { enumerable: true, get: function () { return folder_1.useFoldersAccordionByView; } });
66
- Object.defineProperty(exports, "useRootByUser", { enumerable: true, get: function () { return folder_1.useRootByUser; } });
67
- Object.defineProperty(exports, "getRootByUser", { enumerable: true, get: function () { return folder_1.getRootByUser; } });
68
43
  var boards_1 = require("../../store/boards");
69
44
  Object.defineProperty(exports, "closeBoard", { enumerable: true, get: function () { return boards_1.closeBoard; } });
70
45
  Object.defineProperty(exports, "updateBoard", { enumerable: true, get: function () { return boards_1.updateBoard; } });
@@ -80,23 +55,31 @@ Object.defineProperty(exports, "reopenBoards", { enumerable: true, get: function
80
55
  Object.defineProperty(exports, "setCurrentBoard", { enumerable: true, get: function () { return boards_1.setCurrentBoard; } });
81
56
  Object.defineProperty(exports, "useBoardHooks", { enumerable: true, get: function () { return boards_1.useBoardHooks; } });
82
57
  var hooks_2 = require("../../history/hooks");
83
- Object.defineProperty(exports, "usePushHistoryCallback", { enumerable: true, get: function () { return hooks_2.usePushHistoryCallback; } });
84
- Object.defineProperty(exports, "useGoBackHistoryCallback", { enumerable: true, get: function () { return hooks_2.useGoBackHistoryCallback; } });
85
- Object.defineProperty(exports, "useReplaceHistoryCallback", { enumerable: true, get: function () { return hooks_2.useReplaceHistoryCallback; } });
86
- Object.defineProperty(exports, "getCurrentRoute", { enumerable: true, get: function () { return hooks_2.getCurrentRoute; } });
87
58
  Object.defineProperty(exports, "useCurrentRoute", { enumerable: true, get: function () { return hooks_2.useCurrentRoute; } });
88
- Object.defineProperty(exports, "replaceHistory", { enumerable: true, get: function () { return hooks_2.replaceHistory; } });
89
- Object.defineProperty(exports, "goBackHistory", { enumerable: true, get: function () { return hooks_2.goBackHistory; } });
90
- Object.defineProperty(exports, "pushHistory", { enumerable: true, get: function () { return hooks_2.pushHistory; } });
91
59
  var NotificationManager_1 = require("../../notification/NotificationManager");
92
60
  Object.defineProperty(exports, "getNotificationManager", { enumerable: true, get: function () { return NotificationManager_1.getNotificationManager; } });
93
- var run_search_1 = require("../../search/run-search");
94
- Object.defineProperty(exports, "runSearch", { enumerable: true, get: function () { return run_search_1.runSearch; } });
95
61
  var useLocalStorage_1 = require("../../shell/hooks/useLocalStorage");
96
62
  Object.defineProperty(exports, "useLocalStorage", { enumerable: true, get: function () { return useLocalStorage_1.useLocalStorage; } });
97
- _b = app_1.useAppStore.getState(), exports.updatePrimaryBadge = _b.updatePrimaryBadge, exports.setRouteVisibility = _b.setRouteVisibility, exports.removeRoute = _b.removeRoute, exports.removeBoardView = _b.removeBoardView, exports.removeSettingsView = _b.removeSettingsView, exports.removeSearchView = _b.removeSearchView, exports.removeUtilityView = _b.removeUtilityView, exports.removePrimaryAccessoryView = _b.removePrimaryAccessoryView, exports.removeSecondaryAccessoryView = _b.removeSecondaryAccessoryView;
63
+ _b = app_1.useAppStore.getState(), exports.updatePrimaryBadge = _b.updatePrimaryBadge, exports.setRouteVisibility = _b.setRouteVisibility, exports.removeRoute = _b.removeRoute, exports.removeBoardView = _b.removeBoardView, exports.removeSettingsView = _b.removeSettingsView, exports.removeUtilityView = _b.removeUtilityView, exports.removePrimaryAccessoryView = _b.removePrimaryAccessoryView, exports.removeSecondaryAccessoryView = _b.removeSecondaryAccessoryView,
64
+ /**
65
+ * Add or update the translatable display label for an app.
66
+ * These fields are the ones used in the UI.
67
+ * @param app - The app to update based on the name field
68
+ * @example
69
+ * upsertApp(\{
70
+ * name: 'carbonio-example-ui',
71
+ * display: t('label.app_name', 'Example')
72
+ * \});
73
+ */
74
+ exports.upsertApp = _b.upsertApp;
98
75
  var hooks_3 = require("../../store/login/hooks");
99
76
  Object.defineProperty(exports, "useIsCarbonioCE", { enumerable: true, get: function () { return hooks_3.useIsCarbonioCE; } });
100
77
  var tracker_1 = require("../../tracker/tracker");
101
78
  Object.defineProperty(exports, "useTracker", { enumerable: true, get: function () { return tracker_1.useTracker; } });
79
+ var app_context_provider_1 = require("./app-context-provider");
80
+ Object.defineProperty(exports, "AppContextProvider", { enumerable: true, get: function () { return app_context_provider_1.AppContextProvider; } });
81
+ var auth_guard_1 = require("../../ui-extras/auth-guard");
82
+ Object.defineProperty(exports, "AuthGuard", { enumerable: true, get: function () { return auth_guard_1.AuthGuard; } });
83
+ var fetch_1 = require("../../network/fetch");
84
+ Object.defineProperty(exports, "soapFetchV2", { enumerable: true, get: function () { return fetch_1.soapFetchV2; } });
102
85
  //# sourceMappingURL=app-direct-exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-direct-exports.js","sourceRoot":"","sources":["../../../src/boot/app/app-direct-exports.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,yCAA8C;AAC9C,0DAAsE;AAEtE,wDAKwC;AAJvC,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,+GAAA,sBAAsB,OAAA;AACtB,8GAAA,qBAAqB,OAAA;AAGtB,4DAK0C;AAJzC,oGAAA,SAAS,OAAA;AACT,qGAAA,UAAU,OAAA;AACV,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AAGT,KAMT,4BAAoB,CAAC,QAAQ,EAAE,EALlC,yBAAiB,yBACjB,uBAAe,uBACf,uBAAe,uBACf,qBAAa,qBACb,wBAAgB,uBACmB;AAEpC,+CAgB6B;AAf5B,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,wGAAA,aAAa,OAAA;AAGd,yCAAoD;AAA3C,+FAAA,OAAO,OAAA;AAAE,+FAAA,OAAO,OAAA;AACzB,2CAAqF;AAA5E,sGAAA,cAAc,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,iGAAA,SAAS,OAAA;AA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AAQ,EAAE,EATzB,0BAAkB,0BAClB,0BAAkB,0BAClB,mBAAW,mBACX,uBAAe,uBACf,0BAAkB,0BAClB,wBAAgB,wBAChB,yBAAiB,yBACjB,kCAA0B,kCAC1B,oCAA4B,mCACF;AAE3B,iDAA0D;AAAjD,wGAAA,eAAe,OAAA;AAGxB,iDAAmD;AAA1C,qGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"app-direct-exports.js","sourceRoot":"","sources":["../../../src/boot/app/app-direct-exports.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,yCAA8C;AAC9C,0DAAsE;AAEtE,wDAKwC;AAJvC,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,+GAAA,sBAAsB,OAAA;AACtB,8GAAA,qBAAqB,OAAA;AAGtB,4DAK0C;AAJzC,oGAAA,SAAS,OAAA;AACT,qGAAA,UAAU,OAAA;AACV,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AAGT,KAMT,4BAAoB,CAAC,QAAQ,EAAE,EALlC,yBAAiB,yBACjB,uBAAe,uBACf,uBAAe,uBACf,qBAAa,qBACb,wBAAgB,uBACmB;AAEpC,+CAgB6B;AAf5B,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,wGAAA,aAAa,OAAA;AAGd,+CAA4D;AAAnD,oGAAA,SAAS,OAAA;AAAE,qGAAA,UAAU,OAAA;AAE9B,6CAc4B;AAb3B,oGAAA,UAAU,OAAA;AACV,qGAAA,WAAW,OAAA;AACX,4GAAA,kBAAkB,OAAA;AAClB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AACnB,sGAAA,YAAY,OAAA;AACZ,kGAAA,QAAQ,OAAA;AACR,wGAAA,cAAc,OAAA;AACd,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AAGd,6CAAsD;AAA7C,wGAAA,eAAe,OAAA;AAExB,8EAAgF;AAAvE,6HAAA,sBAAsB,OAAA;AAE/B,qEAAoE;AAA3D,kHAAA,eAAe,OAAA;AAEX,KAoBT,iBAAW,CAAC,QAAQ,EAAE,EAnBzB,0BAAkB,0BAClB,0BAAkB,0BAClB,mBAAW,mBACX,uBAAe,uBACf,0BAAkB,0BAClB,yBAAiB,yBACjB,kCAA0B,kCAC1B,oCAA4B;AAC5B;;;;;;;;;GASG;AACH,iBAAS,gBACiB;AAE3B,iDAA0D;AAAjD,wGAAA,eAAe,OAAA;AAIxB,iDAAmD;AAA1C,qGAAA,UAAU,OAAA;AAEnB,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAG3B,yDAAuD;AAA9C,uGAAA,SAAS,OAAA;AAClB,6CAAkD;AAAzC,oGAAA,WAAW,OAAA"}
@@ -20,13 +20,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
20
20
  }) : function(o, v) {
21
21
  o["default"] = v;
22
22
  });
23
- var __importStar = (this && this.__importStar) || function (mod) {
24
- if (mod && mod.__esModule) return mod;
25
- var result = {};
26
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
- __setModuleDefault(result, mod);
28
- return result;
29
- };
23
+ var __importStar = (this && this.__importStar) || (function () {
24
+ var ownKeys = function(o) {
25
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26
+ var ar = [];
27
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
+ return ar;
29
+ };
30
+ return ownKeys(o);
31
+ };
32
+ return function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ })();
30
40
  Object.defineProperty(exports, "__esModule", { value: true });
31
41
  exports.AppErrorCatcher = void 0;
32
42
  const react_1 = __importStar(require("react"));
@@ -1 +1 @@
1
- {"version":3,"file":"app-error-catcher.js","sourceRoot":"","sources":["../../../src/boot/app/app-error-catcher.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAA2C;AAE3C,4EAA0D;AAEnD,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAqB,EAAE;IAC3F,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAc,EAAE,EAAE;QAC9C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,8BAAC,gCAAO,IAAC,OAAO,EAAE,OAAO,IAAG,QAAQ,CAAW,CAAC;AACxD,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B"}
1
+ {"version":3,"file":"app-error-catcher.js","sourceRoot":"","sources":["../../../src/boot/app/app-error-catcher.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+CAA2C;AAE3C,4EAA0D;AAEnD,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAqB,EAAE;IAC3F,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAc,EAAE,EAAE;QAC9C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,8BAAC,gCAAO,IAAC,OAAO,EAAE,OAAO,IAAG,QAAQ,CAAW,CAAC;AACxD,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B"}
@@ -1,42 +1,6 @@
1
1
  import type { DynamicThemeFix } from 'darkreader';
2
- /**
3
- * @deprecated This constant is not used inside shell, and therefore it does not belong to it
4
- * reference: https://zextras.atlassian.net/wiki/spaces/IRIS/pages/223215854/UI+Guidelines+and+theming
5
- */
6
- export declare const ZIMBRA_STANDARD_COLORS: {
7
- zValue: number;
8
- hex: string;
9
- zLabel: string;
10
- }[];
11
- /**
12
- * @deprecated Folders concept is something that does not belong to shell
13
- */
14
- export declare const FOLDERS: {
15
- readonly USER_ROOT: "1";
16
- readonly INBOX: "2";
17
- readonly TRASH: "3";
18
- readonly SPAM: "4";
19
- readonly SENT: "5";
20
- readonly DRAFTS: "6";
21
- readonly CONTACTS: "7";
22
- readonly TAGS: "8";
23
- readonly CONVERSATIONS: "9";
24
- readonly CALENDAR: "10";
25
- readonly ROOT: "11";
26
- readonly NOTEBOOK: "12";
27
- readonly AUTO_CONTACTS: "13";
28
- readonly IM_LOGS: "14";
29
- readonly TASKS: "15";
30
- readonly BRIEFCASE: "16";
31
- readonly LAST_SYSTEM_FOLDER_POSITION: "16.1";
32
- };
33
2
  export declare const SHELL_APP_ID = "carbonio-shell-ui";
34
3
  export declare const SETTINGS_APP_ID = "settings";
35
- /**
36
- * @deprecated This constant is not used and will be deleted in next releases
37
- */
38
- export declare const ACCOUNTS_APP_ID = "accounts";
39
- export declare const SEARCH_APP_ID = "search";
40
4
  export declare const ACTION_TYPES: {
41
5
  /** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
42
6
  readonly CONVERSATION: "conversation";
@@ -67,32 +31,15 @@ export declare const ACTION_TYPES: {
67
31
  /** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
68
32
  readonly CALENDAR_lIST: "calendar_list";
69
33
  readonly NEW: "new";
34
+ readonly ACCOUNT_MENU: "account_menu";
70
35
  };
71
36
  export declare const darkReaderDynamicThemeFixes: DynamicThemeFix;
72
37
  export declare const IS_FOCUS_MODE: boolean;
73
38
  export declare const BASENAME: string;
74
39
  export declare const EMAIL_VALIDATION_REGEX: RegExp;
75
- /** @deprecated This user root concept does not belong to the shell, and therefore it will be removed asap */
76
- export declare const ROOT_NAME = "USER_ROOT";
77
40
  export declare const DARK_READER_VALUES: readonly ["auto", "enabled", "disabled"];
78
- /** @deprecated this const is not used inside shell, and therefore it does not belong to it */
79
- export declare const FOLDER_VIEW: {
80
- search_folder: string;
81
- tag: string;
82
- conversation: string;
83
- message: string;
84
- contact: string;
85
- document: string;
86
- appointment: string;
87
- virtual_conversation: string;
88
- remote_folder: string;
89
- wiki: string;
90
- task: string;
91
- chat: string;
92
- };
93
41
  export declare const LOCAL_STORAGE_SETTINGS_KEY = "settings";
94
42
  export declare const LOCAL_STORAGE_LAST_PRIMARY_KEY = "config";
95
- export declare const LOCAL_STORAGE_SEARCH_KEY = "search_suggestions";
96
43
  export declare const LOCAL_STORAGE_BOARD_SIZE = "board_size";
97
44
  export declare const SCALING_OPTIONS: readonly [{
98
45
  readonly value: 75;
@@ -119,6 +66,9 @@ export declare const SCALING_LIMIT: {
119
66
  export declare const LOGIN_V3_CONFIG_PATH = "/zx/login/v3/config";
120
67
  export declare const DARK_READER_PROP_KEY = "zappDarkreaderMode";
121
68
  export declare const SENTRY_SHELL_DSN = "https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6";
69
+ /**
70
+ * @deprecated this const does not belong to shell
71
+ */
122
72
  export declare const RESULT_LABEL_TYPE: {
123
73
  readonly normal: "normal";
124
74
  readonly warning: "warning";
@@ -1,51 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JSNS = exports.CUSTOM_EVENTS = exports.DELEGATED_SEND_SAVE_TARGET = exports.BOARD_MIN_VISIBILITY = exports.BOARD_CONTAINER_ZINDEX = exports.BOARD_TAB_WIDTH = exports.BOARD_HEADER_HEIGHT = exports.PRIMARY_BAR_WIDTH = exports.HEADER_BAR_HEIGHT = exports.RESULT_LABEL_TYPE = exports.SENTRY_SHELL_DSN = exports.DARK_READER_PROP_KEY = exports.LOGIN_V3_CONFIG_PATH = exports.SCALING_LIMIT = exports.BASE_FONT_SIZE = exports.SCALING_OPTIONS = exports.LOCAL_STORAGE_BOARD_SIZE = exports.LOCAL_STORAGE_SEARCH_KEY = exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = exports.LOCAL_STORAGE_SETTINGS_KEY = exports.FOLDER_VIEW = exports.DARK_READER_VALUES = exports.ROOT_NAME = exports.EMAIL_VALIDATION_REGEX = exports.BASENAME = exports.IS_FOCUS_MODE = exports.darkReaderDynamicThemeFixes = exports.ACTION_TYPES = exports.SEARCH_APP_ID = exports.ACCOUNTS_APP_ID = exports.SETTINGS_APP_ID = exports.SHELL_APP_ID = exports.FOLDERS = exports.ZIMBRA_STANDARD_COLORS = void 0;
4
- /**
5
- * @deprecated This constant is not used inside shell, and therefore it does not belong to it
6
- * reference: https://zextras.atlassian.net/wiki/spaces/IRIS/pages/223215854/UI+Guidelines+and+theming
7
- */
8
- exports.ZIMBRA_STANDARD_COLORS = [
9
- { zValue: 0, hex: '#000000', zLabel: 'black' },
10
- { zValue: 1, hex: '#2b73d2', zLabel: 'blue' },
11
- { zValue: 2, hex: '#29B6F6', zLabel: 'cyan' },
12
- { zValue: 3, hex: '#66BB6A', zLabel: 'green' },
13
- { zValue: 4, hex: '#7e57c2', zLabel: 'purple' },
14
- { zValue: 5, hex: '#ef5350', zLabel: 'red' },
15
- { zValue: 6, hex: '#ffc107', zLabel: 'yellow' },
16
- { zValue: 7, hex: '#edaeab', zLabel: 'pink' },
17
- { zValue: 8, hex: '#828282', zLabel: 'gray' },
18
- { zValue: 9, hex: '#FF7043', zLabel: 'orange' }
19
- ];
20
- /**
21
- * @deprecated Folders concept is something that does not belong to shell
22
- */
23
- exports.FOLDERS = {
24
- USER_ROOT: '1',
25
- INBOX: '2',
26
- TRASH: '3',
27
- SPAM: '4',
28
- SENT: '5',
29
- DRAFTS: '6',
30
- CONTACTS: '7',
31
- TAGS: '8',
32
- CONVERSATIONS: '9',
33
- CALENDAR: '10',
34
- ROOT: '11',
35
- NOTEBOOK: '12', // no longer created in new mailboxes since Helix (bug 39647). old mailboxes may still contain a system folder with id 12
36
- AUTO_CONTACTS: '13',
37
- IM_LOGS: '14',
38
- TASKS: '15',
39
- BRIEFCASE: '16',
40
- LAST_SYSTEM_FOLDER_POSITION: '16.1'
41
- };
3
+ exports.JSNS = exports.CUSTOM_EVENTS = exports.DELEGATED_SEND_SAVE_TARGET = exports.BOARD_MIN_VISIBILITY = exports.BOARD_CONTAINER_ZINDEX = exports.BOARD_TAB_WIDTH = exports.BOARD_HEADER_HEIGHT = exports.PRIMARY_BAR_WIDTH = exports.HEADER_BAR_HEIGHT = exports.RESULT_LABEL_TYPE = exports.SENTRY_SHELL_DSN = exports.DARK_READER_PROP_KEY = exports.LOGIN_V3_CONFIG_PATH = exports.SCALING_LIMIT = exports.BASE_FONT_SIZE = exports.SCALING_OPTIONS = exports.LOCAL_STORAGE_BOARD_SIZE = exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = exports.LOCAL_STORAGE_SETTINGS_KEY = exports.DARK_READER_VALUES = exports.EMAIL_VALIDATION_REGEX = exports.BASENAME = exports.IS_FOCUS_MODE = exports.darkReaderDynamicThemeFixes = exports.ACTION_TYPES = exports.SETTINGS_APP_ID = exports.SHELL_APP_ID = void 0;
42
4
  exports.SHELL_APP_ID = 'carbonio-shell-ui';
43
5
  exports.SETTINGS_APP_ID = 'settings';
44
- /**
45
- * @deprecated This constant is not used and will be deleted in next releases
46
- */
47
- exports.ACCOUNTS_APP_ID = 'accounts';
48
- exports.SEARCH_APP_ID = 'search';
49
6
  exports.ACTION_TYPES = {
50
7
  /** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
51
8
  CONVERSATION: 'conversation',
@@ -75,7 +32,8 @@ exports.ACTION_TYPES = {
75
32
  CALENDAR: 'calendar',
76
33
  /** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
77
34
  CALENDAR_lIST: 'calendar_list',
78
- NEW: 'new'
35
+ NEW: 'new',
36
+ ACCOUNT_MENU: 'account_menu'
79
37
  };
80
38
  exports.darkReaderDynamicThemeFixes = {
81
39
  ignoreImageAnalysis: ['.no-dr-invert *'],
@@ -89,34 +47,16 @@ exports.darkReaderDynamicThemeFixes = {
89
47
  ignoreInlineStyle: ['.tox-menu *'],
90
48
  disableStyleSheetsProxy: false
91
49
  };
92
- const base = '/carbonio/';
93
- const focusModeBase = `${base}focus-mode`;
50
+ const base = '/carbonio';
51
+ const focusModeBase = `${base}/focus-mode`;
94
52
  exports.IS_FOCUS_MODE = window.location.pathname.startsWith(focusModeBase);
95
53
  exports.BASENAME = exports.IS_FOCUS_MODE ? focusModeBase : base;
96
54
  exports.EMAIL_VALIDATION_REGEX =
97
55
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, max-len, no-control-regex
98
56
  /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/;
99
- /** @deprecated This user root concept does not belong to the shell, and therefore it will be removed asap */
100
- exports.ROOT_NAME = 'USER_ROOT';
101
57
  exports.DARK_READER_VALUES = ['auto', 'enabled', 'disabled'];
102
- /** @deprecated this const is not used inside shell, and therefore it does not belong to it */
103
- exports.FOLDER_VIEW = {
104
- search_folder: 'search folder',
105
- tag: 'tag',
106
- conversation: 'conversation',
107
- message: 'message',
108
- contact: 'contact',
109
- document: 'document',
110
- appointment: 'appointment',
111
- virtual_conversation: 'virtual conversation',
112
- remote_folder: 'remote folder',
113
- wiki: 'wiki',
114
- task: 'task',
115
- chat: 'chat'
116
- };
117
58
  exports.LOCAL_STORAGE_SETTINGS_KEY = 'settings';
118
59
  exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = 'config';
119
- exports.LOCAL_STORAGE_SEARCH_KEY = 'search_suggestions';
120
60
  exports.LOCAL_STORAGE_BOARD_SIZE = 'board_size';
121
61
  exports.SCALING_OPTIONS = [
122
62
  { value: 75, label: 'xs' },
@@ -134,6 +74,9 @@ exports.SCALING_LIMIT = {
134
74
  exports.LOGIN_V3_CONFIG_PATH = '/zx/login/v3/config';
135
75
  exports.DARK_READER_PROP_KEY = 'zappDarkreaderMode';
136
76
  exports.SENTRY_SHELL_DSN = 'https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6';
77
+ /**
78
+ * @deprecated this const does not belong to shell
79
+ */
137
80
  exports.RESULT_LABEL_TYPE = {
138
81
  normal: 'normal',
139
82
  warning: 'warning',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAOA;;;GAGG;AACU,QAAA,sBAAsB,GAAG;IACrC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;IAC9C,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;IAC7C,EAAE,MAAM,EAAE,CAAC,EAAE,GA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;
5
+ dateFnsLocale: {
6
+ key?: string;
7
+ localeImportPath: () => Promise<Locale>;
8
+ } | undefined;
5
9
  tinymceLocale?: string;
6
10
  };
7
- export declare const SUPPORTED_LOCALES: {
8
- readonly zh_CN: {
9
- readonly name: "中文 (中国)";
10
- readonly value: "zh_CN";
11
- readonly dateFnsLocale: "zh-CN";
12
- readonly tinymceLocale: "zh-Hans";
13
- };
14
- readonly nl: {
15
- readonly name: "Nederlands";
16
- readonly value: "nl";
17
- };
18
- readonly en: {
19
- readonly name: "English";
20
- readonly value: "en";
21
- readonly dateFnsLocale: "en-US";
22
- };
23
- readonly de: {
24
- readonly name: "Deutsch";
25
- readonly value: "de";
26
- };
27
- readonly hi: {
28
- readonly name: "हिंदी";
29
- readonly value: "hi";
30
- };
31
- readonly hu: {
32
- readonly name: "Magyar";
33
- readonly value: "hu";
34
- readonly tinymceLocale: "hu_HU";
35
- };
36
- readonly it: {
37
- readonly name: "italiano";
38
- readonly value: "it";
39
- };
40
- readonly ja: {
41
- readonly name: "日本語";
42
- readonly value: "ja";
43
- };
44
- readonly pt: {
45
- readonly name: "português";
46
- readonly value: "pt";
47
- readonly tinymceLocale: "pt_BR";
48
- };
49
- readonly pl: {
50
- readonly name: "polski";
51
- readonly value: "pl";
52
- };
53
- readonly pt_BR: {
54
- readonly name: "português (Brasil)";
55
- readonly value: "pt_BR";
56
- readonly dateFnsLocale: "pt-BR";
57
- };
58
- readonly ro: {
59
- readonly name: "română";
60
- readonly value: "ro";
61
- };
62
- readonly ru: {
63
- readonly name: "русский";
64
- readonly value: "ru";
65
- };
66
- readonly es: {
67
- readonly name: "español";
68
- readonly value: "es";
69
- };
70
- readonly th: {
71
- readonly name: "ไทย";
72
- readonly value: "th";
73
- readonly tinymceLocale: "th_TH";
74
- };
75
- readonly tr: {
76
- readonly name: "Türkçe";
77
- readonly value: "tr";
78
- };
79
- readonly fr: {
80
- readonly name: "français";
81
- readonly value: "fr";
82
- readonly tinymceLocale: "fr_FR";
83
- };
84
- readonly vi: {
85
- readonly name: "Tiếng Việt";
86
- readonly value: "vi";
87
- };
88
- readonly ky: {
89
- readonly name: "Кыргызча";
90
- readonly value: "ky";
91
- };
92
- };
11
+ export declare const SUPPORTED_LOCALES: Record<string, LocaleDescriptor>;