@hcengineering/workbench 0.7.0

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.
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var analytics_exports = {};
20
+ __export(analytics_exports, {
21
+ WorkbenchEvents: () => WorkbenchEvents
22
+ });
23
+ module.exports = __toCommonJS(analytics_exports);
24
+ var WorkbenchEvents = /* @__PURE__ */ ((WorkbenchEvents2) => {
25
+ WorkbenchEvents2["DocumentationOpened"] = "workbench.help.DocumentationOpened";
26
+ WorkbenchEvents2["KeyboardShortcutsOpened"] = "workbench.help.KeyboardShortcutsOpened";
27
+ WorkbenchEvents2["SidebarCloseWidget"] = "workbench.sidebar.CloseWidget";
28
+ WorkbenchEvents2["SidebarOpenWidget"] = "workbench.sidebar.OpenWidget";
29
+ WorkbenchEvents2["Connect"] = "workbench.Connect";
30
+ return WorkbenchEvents2;
31
+ })(WorkbenchEvents || {});
32
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/analytics.ts"],
4
+ "sourcesContent": ["export enum WorkbenchEvents {\n DocumentationOpened = 'workbench.help.DocumentationOpened',\n KeyboardShortcutsOpened = 'workbench.help.KeyboardShortcutsOpened',\n SidebarCloseWidget = 'workbench.sidebar.CloseWidget',\n SidebarOpenWidget = 'workbench.sidebar.OpenWidget',\n Connect = 'workbench.Connect'\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAK,kBAAL,kBAAKA,qBAAL;AACL,EAAAA,iBAAA,yBAAsB;AACtB,EAAAA,iBAAA,6BAA0B;AAC1B,EAAAA,iBAAA,wBAAqB;AACrB,EAAAA,iBAAA,uBAAoB;AACpB,EAAAA,iBAAA,aAAU;AALA,SAAAA;AAAA,GAAA;",
6
+ "names": ["WorkbenchEvents"]
7
+ }
package/lib/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ default: () => index_default,
23
+ workbenchId: () => import_plugin.workbenchId
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var import_plugin = require("./plugin");
27
+ __reExport(index_exports, require("./analytics"), module.exports);
28
+ __reExport(index_exports, require("./types"), module.exports);
29
+ __reExport(index_exports, require("./utils"), module.exports);
30
+ var index_default = import_plugin.workbenchPlugin;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { workbenchId, workbenchPlugin } from './plugin'\n\nexport * from './analytics'\nexport * from './types'\nexport * from './utils'\n\nexport { workbenchId }\n\nexport default workbenchPlugin\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,oBAA6C;AAE7C,0BAAc,wBAjBd;AAkBA,0BAAc,oBAlBd;AAmBA,0BAAc,oBAnBd;AAuBA,IAAO,gBAAQ;",
6
+ "names": []
7
+ }
package/lib/plugin.js ADDED
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var plugin_exports = {};
20
+ __export(plugin_exports, {
21
+ workbenchId: () => workbenchId,
22
+ workbenchPlugin: () => workbenchPlugin
23
+ });
24
+ module.exports = __toCommonJS(plugin_exports);
25
+ var import_platform = require("@hcengineering/platform");
26
+ const workbenchId = "workbench";
27
+ const workbenchPlugin = (0, import_platform.plugin)(workbenchId, {
28
+ class: {
29
+ Application: "",
30
+ ApplicationNavModel: "",
31
+ HiddenApplication: "",
32
+ Widget: "",
33
+ WidgetPreference: "",
34
+ WorkbenchTab: ""
35
+ },
36
+ mixin: {
37
+ SpaceView: ""
38
+ },
39
+ action: {
40
+ CloseCurrentTab: ""
41
+ },
42
+ component: {
43
+ WorkbenchApp: "",
44
+ InviteLink: "",
45
+ Archive: "",
46
+ SpecialView: ""
47
+ },
48
+ string: {
49
+ Archive: "",
50
+ View: "",
51
+ ServerUnderMaintenance: "",
52
+ UpgradeDownloadProgress: "",
53
+ OpenInSidebar: "",
54
+ OpenInSidebarNewTab: "",
55
+ ConfigureWidgets: "",
56
+ WorkspaceIsArchived: "",
57
+ WorkspaceIsMigrating: ""
58
+ },
59
+ icon: {
60
+ Search: ""
61
+ },
62
+ event: {
63
+ NotifyConnection: "",
64
+ NotifyTitle: ""
65
+ },
66
+ metadata: {
67
+ PlatformTitle: "",
68
+ ExcludedApplications: "",
69
+ ExcludedApplicationsForAnonymous: "",
70
+ DefaultApplication: "",
71
+ DefaultSpace: "",
72
+ DefaultSpecial: "",
73
+ // Default for navigation expanded state
74
+ NavigationExpandedDefault: ""
75
+ },
76
+ extensions: {
77
+ WorkbenchExtensions: "",
78
+ WorkbenchTabExtensions: "",
79
+ SpecialViewAction: ""
80
+ },
81
+ function: {
82
+ CreateWidgetTab: "",
83
+ CloseWidgetTab: "",
84
+ CloseWidget: "",
85
+ GetSidebarObject: "",
86
+ LogIn: "",
87
+ LogOut: ""
88
+ },
89
+ actionImpl: {
90
+ Navigate: ""
91
+ }
92
+ });
93
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/plugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { Class, Doc, Mixin, Ref, Space } from '@hcengineering/core'\nimport type { Asset, IntlString, Metadata, Plugin, Resource } from '@hcengineering/platform'\nimport { plugin } from '@hcengineering/platform'\nimport { AnyComponent, ComponentExtensionId } from '@hcengineering/ui'\nimport { Action, ViewAction } from '@hcengineering/view'\n\nimport type {\n Application,\n ApplicationNavModel,\n HiddenApplication,\n SpaceView,\n Widget,\n WidgetPreference,\n WidgetTab,\n WorkbenchTab\n} from './types'\n\n/** @public */\nexport const workbenchId = 'workbench' as Plugin\n\n/** @public */\nexport const workbenchPlugin = plugin(workbenchId, {\n class: {\n Application: '' as Ref<Class<Application>>,\n ApplicationNavModel: '' as Ref<Class<ApplicationNavModel>>,\n HiddenApplication: '' as Ref<Class<HiddenApplication>>,\n Widget: '' as Ref<Class<Widget>>,\n WidgetPreference: '' as Ref<Class<WidgetPreference>>,\n WorkbenchTab: '' as Ref<Class<WorkbenchTab>>\n },\n mixin: {\n SpaceView: '' as Ref<Mixin<SpaceView>>\n },\n action: {\n CloseCurrentTab: '' as Ref<Action>\n },\n component: {\n WorkbenchApp: '' as AnyComponent,\n InviteLink: '' as AnyComponent,\n Archive: '' as AnyComponent,\n SpecialView: '' as AnyComponent\n },\n string: {\n Archive: '' as IntlString,\n View: '' as IntlString,\n ServerUnderMaintenance: '' as IntlString,\n UpgradeDownloadProgress: '' as IntlString,\n OpenInSidebar: '' as IntlString,\n OpenInSidebarNewTab: '' as IntlString,\n ConfigureWidgets: '' as IntlString,\n WorkspaceIsArchived: '' as IntlString,\n WorkspaceIsMigrating: '' as IntlString\n },\n icon: {\n Search: '' as Asset\n },\n event: {\n NotifyConnection: '' as Metadata<string>,\n NotifyTitle: '' as Metadata<string>\n },\n metadata: {\n PlatformTitle: '' as Metadata<string>,\n ExcludedApplications: '' as Metadata<Ref<Application>[]>,\n ExcludedApplicationsForAnonymous: '' as Metadata<string[]>,\n DefaultApplication: '' as Metadata<string>,\n DefaultSpace: '' as Metadata<Ref<Space>>,\n DefaultSpecial: '' as Metadata<string>,\n // Default for navigation expanded state\n NavigationExpandedDefault: '' as Metadata<boolean>\n },\n extensions: {\n WorkbenchExtensions: '' as ComponentExtensionId,\n WorkbenchTabExtensions: '' as ComponentExtensionId,\n SpecialViewAction: '' as ComponentExtensionId\n },\n function: {\n CreateWidgetTab: '' as Resource<(widget: Widget, tab: WidgetTab, newTab: boolean) => Promise<void>>,\n CloseWidgetTab: '' as Resource<(widget: Widget, tab: string) => Promise<void>>,\n CloseWidget: '' as Resource<(widget: Ref<Widget>) => Promise<void>>,\n GetSidebarObject: '' as Resource<() => Partial<Pick<Doc, '_id' | '_class'>>>,\n LogIn: '' as Resource<(loginInfo: { account: string, token?: string }) => Promise<void>>,\n LogOut: '' as Resource<() => Promise<void>>\n },\n actionImpl: {\n Navigate: '' as ViewAction<{\n mode: 'app' | 'special' | 'space'\n application?: string\n special?: string\n space?: Ref<Space>\n // If no space is selected, select first space from list\n spaceClass?: Ref<Class<Space>>\n spaceSpecial?: string\n }>\n }\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAA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1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var types_exports = {};
20
+ __export(types_exports, {
21
+ WidgetType: () => WidgetType
22
+ });
23
+ module.exports = __toCommonJS(types_exports);
24
+ var WidgetType = /* @__PURE__ */ ((WidgetType2) => {
25
+ WidgetType2["Fixed"] = "fixed";
26
+ WidgetType2["Flexible"] = "flexible";
27
+ WidgetType2["Configurable"] = "configurable ";
28
+ return WidgetType2;
29
+ })(WidgetType || {});
30
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/types.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2020, 2021 Anticrm Platform Contributors.\n// Copyright \u00A9 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport type { AccountRole, AccountUuid, Class, Doc, DocumentQuery, Obj, Ref, Space } from '@hcengineering/core'\nimport { DocNotifyContext, InboxNotification } from '@hcengineering/notification'\nimport type { Asset, IntlString, Resource } from '@hcengineering/platform'\nimport type { Preference } from '@hcengineering/preference'\nimport { AnyComponent, type AnySvelteComponent, Location, ResolvedLocation } from '@hcengineering/ui'\n\n/** @public */\nexport interface LocationData {\n objectId?: Ref<Doc>\n objectClass?: Ref<Class<Doc>>\n name?: string\n nameIntl?: IntlString\n icon?: Asset\n iconComponent?: AnyComponent\n iconProps?: Record<string, any>\n}\n\n/** @public */\nexport interface Application extends Doc {\n label: IntlString\n alias: string\n icon: Asset\n hidden: boolean\n position?: 'top' | 'mid' | 'bottom'\n order?: number\n type?: string // temporary workaround for navigation in card-based application\n\n // Also attached ApplicationNavModel will be joined after this one main.\n navigatorModel?: NavigatorModel\n\n locationResolver?: Resource<(loc: Location) => Promise<ResolvedLocation | undefined>>\n locationDataResolver?: Resource<(loc: Location) => Promise<LocationData>>\n\n // Component will be displayed in case navigator model is not defined, or nothing is selected in navigator model\n component?: AnyComponent\n\n navHeaderComponent?: AnyComponent\n accessLevel?: AccountRole\n navFooterComponent?: AnyComponent\n}\n\n/** @public */\nexport enum WidgetType {\n Fixed = 'fixed', // Fixed sidebar are always visible\n Flexible = 'flexible', // Flexible sidebar are visible only in special cases (during the meeting, etc.)\n Configurable = 'configurable ' // Configurable might be fixed in sidebar by user in preferences\n}\n\n/** @public */\nexport interface Widget extends Doc {\n label: IntlString\n icon: Asset\n type: WidgetType\n\n component: AnyComponent\n tabComponent?: AnyComponent\n switcherComponent?: AnyComponent\n headerLabel?: IntlString\n\n closeIfNoTabs?: boolean\n onTabClose?: Resource<(tab: WidgetTab) => Promise<void>>\n\n accessLevel?: AccountRole\n}\n\n/** @public */\nexport interface WidgetPreference extends Preference {\n enabled: boolean\n}\n\n/** @public */\nexport interface WidgetTab {\n id: string\n name?: string\n label?: IntlString\n icon?: Asset | AnySvelteComponent\n iconComponent?: AnyComponent\n iconProps?: Record<string, any>\n isPinned?: boolean\n allowedPath?: string\n objectId?: Ref<Doc>\n objectClass?: Ref<Class<Doc>>\n data?: Record<string, any>\n readonly?: boolean\n}\n\n/** @public */\nexport interface WorkbenchTab extends Preference {\n attachedTo: AccountUuid\n location: string\n isPinned: boolean\n name?: string\n}\n\n/** @public */\nexport interface ApplicationNavModel extends Doc {\n extends: Ref<Application>\n\n spaces?: SpacesNavModel[]\n specials?: SpecialNavModel[]\n}\n\n/** @public */\nexport interface HiddenApplication extends Preference {\n attachedTo: Ref<Application>\n}\n\n/** @public */\nexport interface SpacesNavModel {\n id: string // Id could be used for extending of navigation model\n label?: IntlString\n spaceClass: Ref<Class<Space>>\n addSpaceLabel?: IntlString\n createComponent?: AnyComponent\n icon?: Asset\n\n // Child special items.\n specials?: SpecialNavModel[]\n\n visibleIf?: Resource<(space: Space) => Promise<boolean>>\n}\n\n/** @public */\nexport interface NavigatorModel {\n spaces: SpacesNavModel[]\n specials?: SpecialNavModel[]\n}\n\n/** @public */\nexport interface SpecialNavModel {\n id: string // Uniq id\n label: IntlString\n icon?: Asset\n accessLevel?: AccountRole\n component: AnyComponent\n componentProps?: Record<string, any>\n // If not top and bottom, position will be sorted alphabetically.\n position?: 'top' | 'bottom' | string // undefined == 'top\n visibleIf?: Resource<(spaces: Space[]) => Promise<boolean>>\n // If defined, will be used to find spaces for visibleIf\n spaceClass?: Ref<Class<Space>>\n checkIsDisabled?: Resource<() => Promise<boolean>>\n notificationsCountProvider?: Resource<\n (inboxNotificationsByContext: Map<Ref<DocNotifyContext>, InboxNotification[]>) => number\n >\n navigationModel?: ParentsNavigationModel\n queryBuilder?: Resource<() => Promise<DocumentQuery<Doc>>>\n}\n\n/** @public */\nexport interface ParentsNavigationModel {\n navigationComponent: AnyComponent\n navigationComponentLabel: IntlString\n navigationComponentIcon?: Asset\n mainComponentLabel: IntlString\n mainComponentIcon?: Asset\n navigationComponentProps?: Record<string, any>\n syncWithLocationQuery?: boolean\n createComponent?: AnyComponent\n createComponentProps?: Record<string, any>\n createButton?: AnyComponent\n}\n\n/** @public */\nexport interface ViewConfiguration {\n class: Ref<Class<Doc>> // show object of this class\n createItemDialog?: AnyComponent\n createItemLabel?: IntlString\n\n // If defined component will be used to render content for selected space.\n component?: AnyComponent\n componentProps?: Record<string, any>\n}\n\n/** @public */\nexport interface SpaceView extends Class<Obj> {\n view: ViewConfiguration\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0DO,IAAK,aAAL,kBAAKA,gBAAL;AACL,EAAAA,YAAA,WAAQ;AACR,EAAAA,YAAA,cAAW;AACX,EAAAA,YAAA,kBAAe;AAHL,SAAAA;AAAA,GAAA;",
6
+ "names": ["WidgetType"]
7
+ }
package/lib/utils.js ADDED
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ logIn: () => logIn,
23
+ logOut: () => logOut
24
+ });
25
+ module.exports = __toCommonJS(utils_exports);
26
+ var import_platform = require("@hcengineering/platform");
27
+ var import_plugin = require("./plugin");
28
+ async function logIn(loginInfo) {
29
+ const res = await (0, import_platform.getResource)(import_plugin.workbenchPlugin.function.LogIn);
30
+ await res(loginInfo);
31
+ }
32
+ __name(logIn, "logIn");
33
+ async function logOut() {
34
+ const res = await (0, import_platform.getResource)(import_plugin.workbenchPlugin.function.LogOut);
35
+ await res();
36
+ }
37
+ __name(logOut, "logOut");
38
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils.ts"],
4
+ "sourcesContent": ["//\n// Copyright \u00A9 2025 Hardcore Engineering Inc.\n//\n// Licensed under the Eclipse Public License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License. You may\n// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n\nimport { getResource } from '@hcengineering/platform'\nimport { workbenchPlugin as plugin } from './plugin'\n\n/** @public */\nexport async function logIn (loginInfo: { account: string, token?: string }): Promise<void> {\n const res = await getResource(plugin.function.LogIn)\n await res(loginInfo)\n}\n\n/** @public */\nexport async function logOut (): Promise<void> {\n const res = await getResource(plugin.function.LogOut)\n await res()\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,sBAA4B;AAC5B,oBAA0C;AAG1C,eAAsB,MAAO,WAA+D;AAC1F,QAAM,MAAM,UAAM,6BAAY,cAAAA,gBAAO,SAAS,KAAK;AACnD,QAAM,IAAI,SAAS;AACrB;AAHsB;AAMtB,eAAsB,SAAyB;AAC7C,QAAM,MAAM,UAAM,6BAAY,cAAAA,gBAAO,SAAS,MAAM;AACpD,QAAM,IAAI;AACZ;AAHsB;",
6
+ "names": ["plugin"]
7
+ }
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@hcengineering/workbench",
3
+ "version": "0.7.0",
4
+ "main": "lib/index.js",
5
+ "svelte": "src/index.ts",
6
+ "types": "types/index.d.ts",
7
+ "files": [
8
+ "lib/**/*",
9
+ "types/**/*",
10
+ "tsconfig.json"
11
+ ],
12
+ "author": "Anticrm Platform Contributors",
13
+ "license": "EPL-2.0",
14
+ "scripts": {
15
+ "build": "compile",
16
+ "build:watch": "compile",
17
+ "format": "format src",
18
+ "test": "jest --passWithNoTests --silent",
19
+ "_phase:build": "compile transpile src",
20
+ "_phase:test": "jest --passWithNoTests --silent",
21
+ "_phase:format": "format src",
22
+ "_phase:validate": "compile validate"
23
+ },
24
+ "devDependencies": {
25
+ "@hcengineering/platform-rig": "^0.7.10",
26
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
27
+ "eslint-plugin-import": "^2.26.0",
28
+ "eslint-plugin-promise": "^6.1.1",
29
+ "eslint-plugin-n": "^15.4.0",
30
+ "eslint": "^8.54.0",
31
+ "@typescript-eslint/parser": "^6.11.0",
32
+ "eslint-config-standard-with-typescript": "^40.0.0",
33
+ "prettier": "^3.1.0",
34
+ "typescript": "^5.8.3",
35
+ "jest": "^29.7.0",
36
+ "ts-jest": "^29.1.1",
37
+ "@types/jest": "^29.5.5"
38
+ },
39
+ "dependencies": {
40
+ "@hcengineering/core": "^0.7.3",
41
+ "@hcengineering/notification": "^0.7.0",
42
+ "@hcengineering/platform": "^0.7.3",
43
+ "@hcengineering/preference": "^0.7.0",
44
+ "@hcengineering/ui": "^0.7.0",
45
+ "@hcengineering/view": "^0.7.0"
46
+ },
47
+ "repository": "https://github.com/hcengineering/platform",
48
+ "publishConfig": {
49
+ "access": "public"
50
+ }
51
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "./node_modules/@hcengineering/platform-rig/profiles/default/tsconfig.json",
3
+
4
+ "compilerOptions": {
5
+ "rootDir": "./src",
6
+ "outDir": "./lib",
7
+ "declarationDir": "./types",
8
+ "tsBuildInfoFile": ".build/build.tsbuildinfo"
9
+ },
10
+ "include": ["src/**/*"],
11
+ "exclude": ["node_modules", "lib", "dist", "types", "bundle"]
12
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum WorkbenchEvents {
2
+ DocumentationOpened = "workbench.help.DocumentationOpened",
3
+ KeyboardShortcutsOpened = "workbench.help.KeyboardShortcutsOpened",
4
+ SidebarCloseWidget = "workbench.sidebar.CloseWidget",
5
+ SidebarOpenWidget = "workbench.sidebar.OpenWidget",
6
+ Connect = "workbench.Connect"
7
+ }
8
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,mBAAmB,uCAAuC;IAC1D,uBAAuB,2CAA2C;IAClE,kBAAkB,kCAAkC;IACpD,iBAAiB,iCAAiC;IAClD,OAAO,sBAAsB;CAC9B"}
@@ -0,0 +1,7 @@
1
+ import { workbenchId, workbenchPlugin } from './plugin';
2
+ export * from './analytics';
3
+ export * from './types';
4
+ export * from './utils';
5
+ export { workbenchId };
6
+ export default workbenchPlugin;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEvD,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,WAAW,EAAE,CAAA;AAEtB,eAAe,eAAe,CAAA"}
@@ -0,0 +1,84 @@
1
+ import type { Class, Doc, Mixin, Ref, Space } from '@hcengineering/core';
2
+ import type { Asset, IntlString, Metadata, Plugin, Resource } from '@hcengineering/platform';
3
+ import { AnyComponent, ComponentExtensionId } from '@hcengineering/ui';
4
+ import { Action, ViewAction } from '@hcengineering/view';
5
+ import type { Application, ApplicationNavModel, HiddenApplication, SpaceView, Widget, WidgetPreference, WidgetTab, WorkbenchTab } from './types';
6
+ /** @public */
7
+ export declare const workbenchId: Plugin;
8
+ /** @public */
9
+ export declare const workbenchPlugin: {
10
+ class: {
11
+ Application: Ref<Class<Application>>;
12
+ ApplicationNavModel: Ref<Class<ApplicationNavModel>>;
13
+ HiddenApplication: Ref<Class<HiddenApplication>>;
14
+ Widget: Ref<Class<Widget>>;
15
+ WidgetPreference: Ref<Class<WidgetPreference>>;
16
+ WorkbenchTab: Ref<Class<WorkbenchTab>>;
17
+ };
18
+ mixin: {
19
+ SpaceView: Ref<Mixin<SpaceView>>;
20
+ };
21
+ action: {
22
+ CloseCurrentTab: Ref<Action>;
23
+ };
24
+ component: {
25
+ WorkbenchApp: AnyComponent;
26
+ InviteLink: AnyComponent;
27
+ Archive: AnyComponent;
28
+ SpecialView: AnyComponent;
29
+ };
30
+ string: {
31
+ Archive: IntlString;
32
+ View: IntlString;
33
+ ServerUnderMaintenance: IntlString;
34
+ UpgradeDownloadProgress: IntlString;
35
+ OpenInSidebar: IntlString;
36
+ OpenInSidebarNewTab: IntlString;
37
+ ConfigureWidgets: IntlString;
38
+ WorkspaceIsArchived: IntlString;
39
+ WorkspaceIsMigrating: IntlString;
40
+ };
41
+ icon: {
42
+ Search: Asset;
43
+ };
44
+ event: {
45
+ NotifyConnection: Metadata<string>;
46
+ NotifyTitle: Metadata<string>;
47
+ };
48
+ metadata: {
49
+ PlatformTitle: Metadata<string>;
50
+ ExcludedApplications: Metadata<Ref<Application>[]>;
51
+ ExcludedApplicationsForAnonymous: Metadata<string[]>;
52
+ DefaultApplication: Metadata<string>;
53
+ DefaultSpace: Metadata<Ref<Space>>;
54
+ DefaultSpecial: Metadata<string>;
55
+ NavigationExpandedDefault: Metadata<boolean>;
56
+ };
57
+ extensions: {
58
+ WorkbenchExtensions: ComponentExtensionId;
59
+ WorkbenchTabExtensions: ComponentExtensionId;
60
+ SpecialViewAction: ComponentExtensionId;
61
+ };
62
+ function: {
63
+ CreateWidgetTab: Resource<(widget: Widget, tab: WidgetTab, newTab: boolean) => Promise<void>>;
64
+ CloseWidgetTab: Resource<(widget: Widget, tab: string) => Promise<void>>;
65
+ CloseWidget: Resource<(widget: Ref<Widget>) => Promise<void>>;
66
+ GetSidebarObject: Resource<() => Partial<Pick<Doc, "_id" | "_class">>>;
67
+ LogIn: Resource<(loginInfo: {
68
+ account: string;
69
+ token?: string;
70
+ }) => Promise<void>>;
71
+ LogOut: Resource<() => Promise<void>>;
72
+ };
73
+ actionImpl: {
74
+ Navigate: ViewAction<{
75
+ mode: "app" | "special" | "space";
76
+ application?: string;
77
+ special?: string;
78
+ space?: Ref<Space>;
79
+ spaceClass?: Ref<Class<Space>>;
80
+ spaceSpecial?: string;
81
+ }>;
82
+ };
83
+ };
84
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAE5F,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,YAAY,EACb,MAAM,SAAS,CAAA;AAEhB,cAAc;AACd,eAAO,MAAM,WAAW,EAAkB,MAAM,CAAA;AAEhD,cAAc;AACd,eAAO,MAAM,eAAe;;qBAEL,GAAG,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AAG,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;0BAC3C,QAAQ,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC;eAC/D,QAAQ,CAAC,CAAC,SAAS,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC1E,QAAQ,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;;;kBAG3B,UAAU,CAAC;YACzB,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAA;YACjC,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;YAElB,UAAU,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;YAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;SACtB,CAAC;;CAEJ,CAAA"}
@@ -0,0 +1,145 @@
1
+ import type { AccountRole, AccountUuid, Class, Doc, DocumentQuery, Obj, Ref, Space } from '@hcengineering/core';
2
+ import { DocNotifyContext, InboxNotification } from '@hcengineering/notification';
3
+ import type { Asset, IntlString, Resource } from '@hcengineering/platform';
4
+ import type { Preference } from '@hcengineering/preference';
5
+ import { AnyComponent, type AnySvelteComponent, Location, ResolvedLocation } from '@hcengineering/ui';
6
+ /** @public */
7
+ export interface LocationData {
8
+ objectId?: Ref<Doc>;
9
+ objectClass?: Ref<Class<Doc>>;
10
+ name?: string;
11
+ nameIntl?: IntlString;
12
+ icon?: Asset;
13
+ iconComponent?: AnyComponent;
14
+ iconProps?: Record<string, any>;
15
+ }
16
+ /** @public */
17
+ export interface Application extends Doc {
18
+ label: IntlString;
19
+ alias: string;
20
+ icon: Asset;
21
+ hidden: boolean;
22
+ position?: 'top' | 'mid' | 'bottom';
23
+ order?: number;
24
+ type?: string;
25
+ navigatorModel?: NavigatorModel;
26
+ locationResolver?: Resource<(loc: Location) => Promise<ResolvedLocation | undefined>>;
27
+ locationDataResolver?: Resource<(loc: Location) => Promise<LocationData>>;
28
+ component?: AnyComponent;
29
+ navHeaderComponent?: AnyComponent;
30
+ accessLevel?: AccountRole;
31
+ navFooterComponent?: AnyComponent;
32
+ }
33
+ /** @public */
34
+ export declare enum WidgetType {
35
+ Fixed = "fixed",// Fixed sidebar are always visible
36
+ Flexible = "flexible",// Flexible sidebar are visible only in special cases (during the meeting, etc.)
37
+ Configurable = "configurable "
38
+ }
39
+ /** @public */
40
+ export interface Widget extends Doc {
41
+ label: IntlString;
42
+ icon: Asset;
43
+ type: WidgetType;
44
+ component: AnyComponent;
45
+ tabComponent?: AnyComponent;
46
+ switcherComponent?: AnyComponent;
47
+ headerLabel?: IntlString;
48
+ closeIfNoTabs?: boolean;
49
+ onTabClose?: Resource<(tab: WidgetTab) => Promise<void>>;
50
+ accessLevel?: AccountRole;
51
+ }
52
+ /** @public */
53
+ export interface WidgetPreference extends Preference {
54
+ enabled: boolean;
55
+ }
56
+ /** @public */
57
+ export interface WidgetTab {
58
+ id: string;
59
+ name?: string;
60
+ label?: IntlString;
61
+ icon?: Asset | AnySvelteComponent;
62
+ iconComponent?: AnyComponent;
63
+ iconProps?: Record<string, any>;
64
+ isPinned?: boolean;
65
+ allowedPath?: string;
66
+ objectId?: Ref<Doc>;
67
+ objectClass?: Ref<Class<Doc>>;
68
+ data?: Record<string, any>;
69
+ readonly?: boolean;
70
+ }
71
+ /** @public */
72
+ export interface WorkbenchTab extends Preference {
73
+ attachedTo: AccountUuid;
74
+ location: string;
75
+ isPinned: boolean;
76
+ name?: string;
77
+ }
78
+ /** @public */
79
+ export interface ApplicationNavModel extends Doc {
80
+ extends: Ref<Application>;
81
+ spaces?: SpacesNavModel[];
82
+ specials?: SpecialNavModel[];
83
+ }
84
+ /** @public */
85
+ export interface HiddenApplication extends Preference {
86
+ attachedTo: Ref<Application>;
87
+ }
88
+ /** @public */
89
+ export interface SpacesNavModel {
90
+ id: string;
91
+ label?: IntlString;
92
+ spaceClass: Ref<Class<Space>>;
93
+ addSpaceLabel?: IntlString;
94
+ createComponent?: AnyComponent;
95
+ icon?: Asset;
96
+ specials?: SpecialNavModel[];
97
+ visibleIf?: Resource<(space: Space) => Promise<boolean>>;
98
+ }
99
+ /** @public */
100
+ export interface NavigatorModel {
101
+ spaces: SpacesNavModel[];
102
+ specials?: SpecialNavModel[];
103
+ }
104
+ /** @public */
105
+ export interface SpecialNavModel {
106
+ id: string;
107
+ label: IntlString;
108
+ icon?: Asset;
109
+ accessLevel?: AccountRole;
110
+ component: AnyComponent;
111
+ componentProps?: Record<string, any>;
112
+ position?: 'top' | 'bottom' | string;
113
+ visibleIf?: Resource<(spaces: Space[]) => Promise<boolean>>;
114
+ spaceClass?: Ref<Class<Space>>;
115
+ checkIsDisabled?: Resource<() => Promise<boolean>>;
116
+ notificationsCountProvider?: Resource<(inboxNotificationsByContext: Map<Ref<DocNotifyContext>, InboxNotification[]>) => number>;
117
+ navigationModel?: ParentsNavigationModel;
118
+ queryBuilder?: Resource<() => Promise<DocumentQuery<Doc>>>;
119
+ }
120
+ /** @public */
121
+ export interface ParentsNavigationModel {
122
+ navigationComponent: AnyComponent;
123
+ navigationComponentLabel: IntlString;
124
+ navigationComponentIcon?: Asset;
125
+ mainComponentLabel: IntlString;
126
+ mainComponentIcon?: Asset;
127
+ navigationComponentProps?: Record<string, any>;
128
+ syncWithLocationQuery?: boolean;
129
+ createComponent?: AnyComponent;
130
+ createComponentProps?: Record<string, any>;
131
+ createButton?: AnyComponent;
132
+ }
133
+ /** @public */
134
+ export interface ViewConfiguration {
135
+ class: Ref<Class<Doc>>;
136
+ createItemDialog?: AnyComponent;
137
+ createItemLabel?: IntlString;
138
+ component?: AnyComponent;
139
+ componentProps?: Record<string, any>;
140
+ }
141
+ /** @public */
142
+ export interface SpaceView extends Class<Obj> {
143
+ view: ViewConfiguration;
144
+ }
145
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC/G,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAErG,cAAc;AACd,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAA;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,aAAa,CAAC,EAAE,YAAY,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC;AAED,cAAc;AACd,MAAM,WAAW,WAAY,SAAQ,GAAG;IACtC,KAAK,EAAE,UAAU,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,KAAK,CAAA;IACX,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;IACnC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WAAW,sBAAsB;IACrC,mBAAmB,EAAE,YAAY,CAAA;IACjC,wBAAwB,EAAE,UAAU,CAAA;IACpC,uBAAuB,CAAC,EAAE,KAAK,CAAA;IAC/B,kBAAkB,EAAE,UAAU,CAAA;IAC9B,iBAAiB,CAAC,EAAE,KAAK,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9C,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE,YAAY,CAAA;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1C,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,cAAc;AACd,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACtB,gBAAgB,CAAC,EAAE,YAAY,CAAA;IAC/B,eAAe,CAAC,EAAE,UAAU,CAAA;IAG5B,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACrC;AAED,cAAc;AACd,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,GAAG,CAAC;IAC3C,IAAI,EAAE,iBAAiB,CAAA;CACxB"}
@@ -0,0 +1,8 @@
1
+ /** @public */
2
+ export declare function logIn(loginInfo: {
3
+ account: string;
4
+ token?: string;
5
+ }): Promise<void>;
6
+ /** @public */
7
+ export declare function logOut(): Promise<void>;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAkBA,cAAc;AACd,wBAAsB,KAAK,CAAE,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1F;AAED,cAAc;AACd,wBAAsB,MAAM,IAAK,OAAO,CAAC,IAAI,CAAC,CAG7C"}