@zextras/carbonio-shell-ui 9.0.1 → 10.0.0-devel.1738847815855
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/THIRDPARTIES +431 -0
- package/lib/boot/app/app-context-provider.d.ts +5 -0
- package/lib/boot/app/app-context-provider.js +5 -0
- package/lib/boot/app/app-context-provider.js.map +1 -1
- package/lib/boot/app/app-dependant-exports.d.ts +1 -2
- package/lib/boot/app/app-dependant-exports.js +0 -1
- package/lib/boot/app/app-dependant-exports.js.map +1 -1
- package/lib/boot/app/app-direct-exports.d.ts +20 -8
- package/lib/boot/app/app-direct-exports.js +20 -30
- package/lib/boot/app/app-direct-exports.js.map +1 -1
- package/lib/boot/app/app-error-catcher.js +17 -7
- package/lib/boot/app/app-error-catcher.js.map +1 -1
- package/lib/constants/index.d.ts +4 -54
- package/lib/constants/index.js +6 -63
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/locales.d.ts +6 -87
- package/lib/constants/locales.js +87 -23
- package/lib/constants/locales.js.map +1 -1
- package/lib/dark-mode/use-dark-reader-result-value.js +4 -5
- package/lib/dark-mode/use-dark-reader-result-value.js.map +1 -1
- package/lib/history/hooks.d.ts +2 -2
- package/lib/history/hooks.js +2 -2
- package/lib/history/hooks.js.map +1 -1
- package/lib/lib.d.ts +9 -10
- package/lib/lib.js +1 -2
- package/lib/lib.js.map +1 -1
- package/lib/network/edit-settings.d.ts +1 -1
- package/lib/network/fetch-utils.d.ts +1 -1
- package/lib/network/fetch.d.ts +10 -4
- package/lib/network/fetch.js +18 -4
- package/lib/network/fetch.js.map +1 -1
- package/lib/network/logout.d.ts +1 -0
- package/lib/network/logout.js +29 -0
- package/lib/network/logout.js.map +1 -0
- package/lib/network/utils.js +2 -3
- package/lib/network/utils.js.map +1 -1
- package/lib/settings/components/settings-header.js +17 -7
- package/lib/settings/components/settings-header.js.map +1 -1
- package/lib/shell/creation-button.js +24 -8
- package/lib/shell/creation-button.js.map +1 -1
- package/lib/shell/hooks/useLocalStorage.js +2 -2
- package/lib/shell/hooks/useLocalStorage.js.map +1 -1
- package/lib/store/account/hooks.js +2 -1
- package/lib/store/account/hooks.js.map +1 -1
- package/lib/store/account/utils.js +4 -5
- package/lib/store/account/utils.js.map +1 -1
- package/lib/store/app/hooks.d.ts +0 -5
- package/lib/store/app/hooks.js +1 -11
- package/lib/store/app/hooks.js.map +1 -1
- package/lib/store/app/store.d.ts +2 -4
- package/lib/store/app/store.js +5 -28
- package/lib/store/app/store.js.map +1 -1
- package/lib/store/app/utils.d.ts +2 -3
- package/lib/store/app/utils.js +1 -14
- package/lib/store/app/utils.js.map +1 -1
- package/lib/store/boards/hooks.js +17 -7
- package/lib/store/boards/hooks.js.map +1 -1
- package/lib/store/boards/store.d.ts +4 -4
- package/lib/store/i18n/store.js +14 -4
- package/lib/store/i18n/store.js.map +1 -1
- package/lib/store/integrations/composer.d.ts +1 -1
- package/lib/store/integrations/composer.js +17 -7
- package/lib/store/integrations/composer.js.map +1 -1
- package/lib/store/integrations/getters.d.ts +4 -4
- package/lib/store/integrations/getters.js +3 -1
- package/lib/store/integrations/getters.js.map +1 -1
- package/lib/store/integrations/hooks.d.ts +4 -4
- package/lib/store/integrations/hooks.js.map +1 -1
- package/lib/store/integrations/utils.d.ts +2 -2
- package/lib/store/integrations/utils.js +12 -8
- package/lib/store/integrations/utils.js.map +1 -1
- package/lib/store/login/getters.js +2 -3
- package/lib/store/login/getters.js.map +1 -1
- package/lib/store/login/hooks.js +4 -4
- package/lib/store/login/hooks.js.map +1 -1
- package/lib/store/network/hooks.js +4 -2
- package/lib/store/network/hooks.js.map +1 -1
- package/lib/store/network/utils.d.ts +1 -2
- package/lib/store/network/utils.js +4 -40
- package/lib/store/network/utils.js.map +1 -1
- package/lib/types/apps/index.d.ts +2 -15
- package/lib/types/misc/index.d.ts +0 -44
- package/lib/types/network/index.d.ts +6 -31
- package/lib/types/network/soap.d.ts +1 -0
- package/lib/types/network/soap.js +4 -0
- package/lib/types/network/soap.js.map +1 -1
- package/lib/types/tags/index.d.ts +0 -4
- package/lib/types/theme.d.ts +10 -0
- package/lib/types/{search/items.js → theme.js} +1 -1
- package/lib/types/theme.js.map +1 -0
- package/lib/ui-extras/app-link.js +17 -7
- package/lib/ui-extras/app-link.js.map +1 -1
- package/lib/ui-extras/auth-guard.d.ts +5 -0
- package/lib/ui-extras/auth-guard.js +14 -0
- package/lib/ui-extras/auth-guard.js.map +1 -0
- package/lib/ui-extras/nav-guard.js +17 -7
- package/lib/ui-extras/nav-guard.js.map +1 -1
- package/lib/utility-bar/bar.d.ts +19 -0
- package/lib/utility-bar/bar.js +129 -0
- package/lib/utility-bar/bar.js.map +1 -0
- package/lib/utility-bar/store.d.ts +2 -0
- package/lib/utility-bar/store.js +19 -0
- package/lib/utility-bar/store.js.map +1 -0
- package/lib/utility-bar/utils.d.ts +4 -0
- package/lib/utility-bar/utils.js +30 -0
- package/lib/utility-bar/utils.js.map +1 -0
- package/lib/utils/typeUtils.d.ts +0 -1
- package/lib/utils/utils.d.ts +0 -3
- package/lib/utils/utils.js +4 -6
- package/lib/utils/utils.js.map +1 -1
- package/package.json +29 -27
- package/lib/network/tags.d.ts +0 -27
- package/lib/network/tags.js +0 -31
- package/lib/network/tags.js.map +0 -1
- package/lib/search/run-search.d.ts +0 -2
- package/lib/search/run-search.js +0 -17
- package/lib/search/run-search.js.map +0 -1
- package/lib/search/search-store.d.ts +0 -2
- package/lib/search/search-store.js +0 -20
- package/lib/search/search-store.js.map +0 -1
- package/lib/search/useSearchModule.d.ts +0 -3
- package/lib/search/useSearchModule.js +0 -21
- package/lib/search/useSearchModule.js.map +0 -1
- package/lib/store/folder/hooks.d.ts +0 -21
- package/lib/store/folder/hooks.js +0 -77
- package/lib/store/folder/hooks.js.map +0 -1
- package/lib/store/folder/index.d.ts +0 -2
- package/lib/store/folder/index.js +0 -24
- package/lib/store/folder/index.js.map +0 -1
- package/lib/store/folder/store.d.ts +0 -2
- package/lib/store/folder/store.js +0 -20
- package/lib/store/folder/store.js.map +0 -1
- package/lib/store/folder/utils.d.ts +0 -16
- package/lib/store/folder/utils.js +0 -53
- package/lib/store/folder/utils.js.map +0 -1
- package/lib/store/tags/hooks.d.ts +0 -3
- package/lib/store/tags/hooks.js +0 -15
- package/lib/store/tags/hooks.js.map +0 -1
- package/lib/store/tags/index.d.ts +0 -2
- package/lib/store/tags/index.js +0 -24
- package/lib/store/tags/index.js.map +0 -1
- package/lib/store/tags/store.d.ts +0 -2
- package/lib/store/tags/store.js +0 -18
- package/lib/store/tags/store.js.map +0 -1
- package/lib/types/folder/index.d.ts +0 -29
- package/lib/types/folder/index.js +0 -8
- package/lib/types/folder/index.js.map +0 -1
- package/lib/types/search/index.d.ts +0 -11
- package/lib/types/search/index.js +0 -23
- package/lib/types/search/index.js.map +0 -1
- package/lib/types/search/items.d.ts +0 -6
- package/lib/types/search/items.js.map +0 -1
- package/lib/types/workers/index.d.ts +0 -17
- package/lib/types/workers/index.js +0 -3
- package/lib/types/workers/index.js.map +0 -1
- package/lib/ui-extras/spinner.d.ts +0 -2
- package/lib/ui-extras/spinner.js +0 -18
- package/lib/ui-extras/spinner.js.map +0 -1
- package/lib/workers/index.d.ts +0 -2
- package/lib/workers/index.js +0 -15
- package/lib/workers/index.js.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapNodes = exports.filterNodes = exports.folderViewFilter = exports.isRoot = exports.isTrash = exports.sortFolders = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
6
|
-
*
|
|
7
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
8
|
-
*/
|
|
9
|
-
const lodash_1 = require("lodash");
|
|
10
|
-
const constants_1 = require("../../constants");
|
|
11
|
-
const hasId = (f, id) => f.id.split(':').includes(id);
|
|
12
|
-
const getOriginalId = (f) => {
|
|
13
|
-
const parts = f.id.split(':');
|
|
14
|
-
return parts[1] ?? parts[0];
|
|
15
|
-
};
|
|
16
|
-
const sortFolders = (f) => {
|
|
17
|
-
const id = getOriginalId(f);
|
|
18
|
-
if (id === constants_1.FOLDERS.TRASH) {
|
|
19
|
-
return constants_1.FOLDERS.LAST_SYSTEM_FOLDER_POSITION;
|
|
20
|
-
}
|
|
21
|
-
return parseInt(id, 10) < 17 ? ` ${id}` : f.name.toLowerCase();
|
|
22
|
-
};
|
|
23
|
-
exports.sortFolders = sortFolders;
|
|
24
|
-
const isTrash = (f) => hasId(f, constants_1.FOLDERS.TRASH);
|
|
25
|
-
exports.isTrash = isTrash;
|
|
26
|
-
const isRoot = (f) => f.id === constants_1.FOLDERS.USER_ROOT || f.oname === constants_1.ROOT_NAME;
|
|
27
|
-
exports.isRoot = isRoot;
|
|
28
|
-
const folderViewFilter = (v) => (deep) => (f) => f.view === v || !deep || (typeof f.view === 'undefined' && !(0, exports.isRoot)(f));
|
|
29
|
-
exports.folderViewFilter = folderViewFilter;
|
|
30
|
-
const filterNodes = (children, f, sortFunction, deep) => {
|
|
31
|
-
const childrenSorted = sortFunction ? (0, lodash_1.sortBy)(children, sortFunction) : children;
|
|
32
|
-
return childrenSorted
|
|
33
|
-
.filter(f(deep))
|
|
34
|
-
.map((i) => ({ ...i, children: (0, exports.filterNodes)(i.children, f, sortFunction, true) }));
|
|
35
|
-
};
|
|
36
|
-
exports.filterNodes = filterNodes;
|
|
37
|
-
const mapNodes = (children, { mapFunction, filterFunction, recursionKey, sortFunction, deep }) => (0, lodash_1.sortBy)(children, sortFunction).reduce((acc, folder) => {
|
|
38
|
-
if (filterFunction(deep)(folder)) {
|
|
39
|
-
acc.push({
|
|
40
|
-
...mapFunction(folder),
|
|
41
|
-
[recursionKey]: (0, exports.mapNodes)(folder.children, {
|
|
42
|
-
mapFunction,
|
|
43
|
-
filterFunction,
|
|
44
|
-
recursionKey,
|
|
45
|
-
sortFunction,
|
|
46
|
-
deep: true
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return acc;
|
|
51
|
-
}, []);
|
|
52
|
-
exports.mapNodes = mapNodes;
|
|
53
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/store/folder/utils.ts"],"names":[],"mappings":"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"}
|
package/lib/store/tags/hooks.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.getTags = exports.useTags = void 0;
|
|
9
|
-
const lodash_1 = require("lodash");
|
|
10
|
-
const store_1 = require("./store");
|
|
11
|
-
const useTags = (ids) => (0, store_1.useTagStore)((s) => (ids ? (0, lodash_1.pick)(s.tags, ids) : s.tags));
|
|
12
|
-
exports.useTags = useTags;
|
|
13
|
-
const getTags = (ids) => ids ? (0, lodash_1.pick)(store_1.useTagStore.getState().tags, ids) : store_1.useTagStore.getState().tags;
|
|
14
|
-
exports.getTags = getTags;
|
|
15
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/tags/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAA8B;AAE9B,mCAAsC;AAG/B,MAAM,OAAO,GAAG,CAAC,GAA4B,EAAQ,EAAE,CAC7D,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,aAAI,EAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAD3C,QAAA,OAAO,WACoC;AACjD,MAAM,OAAO,GAAG,CAAC,GAA4B,EAAQ,EAAE,CAC7D,GAAG,CAAC,CAAC,CAAC,IAAA,aAAI,EAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC;AAD/D,QAAA,OAAO,WACwD"}
|
package/lib/store/tags/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
__exportStar(require("./hooks"), exports);
|
|
23
|
-
__exportStar(require("./store"), exports);
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/tags/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,0CAAwB"}
|
package/lib/store/tags/store.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useTagStore = void 0;
|
|
9
|
-
const zustand_1 = require("zustand");
|
|
10
|
-
const workers_1 = require("../../workers");
|
|
11
|
-
// extra currying as suggested in https://github.com/pmndrs/zustand/blob/main/docs/guides/typescript.md#basic-usage
|
|
12
|
-
exports.useTagStore = (0, zustand_1.create)()(() => ({
|
|
13
|
-
tags: {}
|
|
14
|
-
}));
|
|
15
|
-
workers_1.tagWorker.onmessage = ({ data }) => {
|
|
16
|
-
exports.useTagStore.setState(data);
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=store.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/store/tags/store.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qCAAiC;AAGjC,2CAA0C;AAE1C,mHAAmH;AACtG,QAAA,WAAW,GAAG,IAAA,gBAAM,GAAY,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,IAAI,EAAE,EAAE;CACR,CAAC,CAAC,CAAC;AAEJ,mBAAS,CAAC,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,EAAQ,EAAE;IACxC,mBAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { BaseFolder, LinkFolderFields, SearchFolderFields } from '../misc';
|
|
2
|
-
export type FolderFields = {
|
|
3
|
-
isLink: boolean;
|
|
4
|
-
depth: number;
|
|
5
|
-
parent?: Folder;
|
|
6
|
-
children: Array<Folder>;
|
|
7
|
-
};
|
|
8
|
-
export type UserFolder = BaseFolder & FolderFields & {
|
|
9
|
-
isLink: false;
|
|
10
|
-
};
|
|
11
|
-
export type LinkFolder = BaseFolder & FolderFields & LinkFolderFields & {
|
|
12
|
-
isLink: true;
|
|
13
|
-
};
|
|
14
|
-
export type SearchFolder = BaseFolder & Pick<FolderFields, 'parent' | 'isLink'> & SearchFolderFields;
|
|
15
|
-
export type Folder = UserFolder | LinkFolder;
|
|
16
|
-
export type Folders = {
|
|
17
|
-
[id: string]: Folder;
|
|
18
|
-
};
|
|
19
|
-
export type Roots = {
|
|
20
|
-
[id: string]: Folder;
|
|
21
|
-
};
|
|
22
|
-
export type Searches = {
|
|
23
|
-
[id: string]: SearchFolder;
|
|
24
|
-
};
|
|
25
|
-
export type FolderState = {
|
|
26
|
-
folders: Folders;
|
|
27
|
-
roots: Roots;
|
|
28
|
-
searches: Searches;
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/folder/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { QueryChip } from './items';
|
|
2
|
-
export * from './items';
|
|
3
|
-
export type SearchState = {
|
|
4
|
-
query: Array<QueryChip>;
|
|
5
|
-
module?: string;
|
|
6
|
-
searchDisabled: boolean;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
setSearchDisabled: (searchDisabled: boolean) => void;
|
|
9
|
-
updateQuery: (query: Array<QueryChip> | ((q: Array<QueryChip>) => Array<QueryChip>)) => void;
|
|
10
|
-
updateModule: (module: string) => void;
|
|
11
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
__exportStar(require("./items"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/search/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAIH,0CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/types/search/items.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SoapNotify, SoapRefresh } from '../network';
|
|
2
|
-
import type { Tags } from '../tags';
|
|
3
|
-
export type SyncNotifyMessage = {
|
|
4
|
-
op: 'notify';
|
|
5
|
-
notify: SoapNotify;
|
|
6
|
-
};
|
|
7
|
-
export type SyncRefreshMessage = SoapRefresh & {
|
|
8
|
-
op: 'refresh';
|
|
9
|
-
};
|
|
10
|
-
export type SyncMessage = SyncNotifyMessage | SyncRefreshMessage;
|
|
11
|
-
export type WorkerMessage<T> = {
|
|
12
|
-
data: SyncMessage & T;
|
|
13
|
-
};
|
|
14
|
-
export type TagMessage = WorkerMessage<{
|
|
15
|
-
state: Tags;
|
|
16
|
-
}>;
|
|
17
|
-
export type FolderMessage = WorkerMessage<Record<string, never>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/workers/index.ts"],"names":[],"mappings":""}
|
package/lib/ui-extras/spinner.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.Spinner = void 0;
|
|
12
|
-
const react_1 = __importDefault(require("react"));
|
|
13
|
-
const carbonio_design_system_1 = require("@zextras/carbonio-design-system");
|
|
14
|
-
const lodash_1 = require("lodash");
|
|
15
|
-
const Spinner = () => (react_1.default.createElement(carbonio_design_system_1.Container, { width: "fill", height: "fill", mainAlignment: "center", crossAlignment: "center" },
|
|
16
|
-
react_1.default.createElement(carbonio_design_system_1.Button, { type: "ghost", label: "Button", color: "primary", loading: true, onClick: lodash_1.noop })));
|
|
17
|
-
exports.Spinner = Spinner;
|
|
18
|
-
//# sourceMappingURL=spinner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/ui-extras/spinner.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,kDAA0B;AAE1B,4EAAoE;AACpE,mCAA8B;AAEvB,MAAM,OAAO,GAAG,GAAsB,EAAE,CAAC,CAC/C,8BAAC,kCAAS,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,aAAa,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ;IAEnF,8BAAC,+BAAM,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,QAAC,OAAO,EAAE,aAAI,GAAI,CAClE,CACZ,CAAC;AALW,QAAA,OAAO,WAKlB"}
|
package/lib/workers/index.d.ts
DELETED
package/lib/workers/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2022 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.folderWorker = exports.tagWorker = void 0;
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
exports.tagWorker = new Worker(new URL('./tag', import.meta.url));
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
exports.folderWorker = new Worker(new URL('./folder', import.meta.url));
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/lib/workers/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workers/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,6DAA6D;AAC7D,aAAa;AACA,QAAA,SAAS,GAAG,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACvE,6DAA6D;AAC7D,aAAa;AACA,QAAA,YAAY,GAAG,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC"}
|