@multiplatform.one/backoffice 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/chrome/CommandPalette.cjs +20 -9
- package/dist/cjs/chrome/CommandPalette.native.js +18 -10
- package/dist/cjs/chrome/CommandPalette.native.js.map +1 -1
- package/dist/cjs/i18n/en.cjs +21 -0
- package/dist/cjs/i18n/en.native.js +21 -0
- package/dist/cjs/i18n/en.native.js.map +1 -1
- package/dist/cjs/index.cjs +49 -1
- package/dist/cjs/index.native.js +48 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/shared/types.cjs +18 -0
- package/dist/cjs/shared/types.native.js +21 -0
- package/dist/cjs/shared/types.native.js.map +1 -0
- package/dist/cjs/shared/useDocinfo.cjs +116 -0
- package/dist/cjs/shared/useDocinfo.native.js +167 -0
- package/dist/cjs/shared/useDocinfo.native.js.map +1 -0
- package/dist/cjs/shared/useDoctypeMeta.cjs +124 -0
- package/dist/cjs/shared/useDoctypeMeta.native.js +158 -0
- package/dist/cjs/shared/useDoctypeMeta.native.js.map +1 -0
- package/dist/cjs/shared/useRecentVisit.cjs +40 -0
- package/dist/cjs/shared/useRecentVisit.native.js +43 -0
- package/dist/cjs/shared/useRecentVisit.native.js.map +1 -0
- package/dist/cjs/shared/useSessionUserId.cjs +54 -0
- package/dist/cjs/shared/useSessionUserId.native.js +59 -0
- package/dist/cjs/shared/useSessionUserId.native.js.map +1 -0
- package/dist/cjs/shared/useSlugTarget.cjs +138 -0
- package/dist/cjs/shared/useSlugTarget.native.js +166 -0
- package/dist/cjs/shared/useSlugTarget.native.js.map +1 -0
- package/dist/cjs/shared/useUserRoles.cjs +72 -0
- package/dist/cjs/shared/useUserRoles.native.js +79 -0
- package/dist/cjs/shared/useUserRoles.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceChartBlock.cjs +136 -0
- package/dist/cjs/workspace/WorkspaceChartBlock.native.js +144 -0
- package/dist/cjs/workspace/WorkspaceChartBlock.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceGrid.cjs +91 -0
- package/dist/cjs/workspace/WorkspaceGrid.native.js +126 -0
- package/dist/cjs/workspace/WorkspaceGrid.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceLinkCard.cjs +139 -0
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js +155 -0
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceLinkDirectory.cjs +110 -0
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js +127 -0
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceNumberCard.cjs +133 -0
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js +138 -0
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceQuickList.cjs +112 -0
- package/dist/cjs/workspace/WorkspaceQuickList.native.js +130 -0
- package/dist/cjs/workspace/WorkspaceQuickList.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceRecents.cjs +116 -0
- package/dist/cjs/workspace/WorkspaceRecents.native.js +132 -0
- package/dist/cjs/workspace/WorkspaceRecents.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceScreen.cjs +291 -0
- package/dist/cjs/workspace/WorkspaceScreen.native.js +323 -0
- package/dist/cjs/workspace/WorkspaceScreen.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceShortcut.cjs +185 -0
- package/dist/cjs/workspace/WorkspaceShortcut.native.js +202 -0
- package/dist/cjs/workspace/WorkspaceShortcut.native.js.map +1 -0
- package/dist/cjs/workspace/parseContent.cjs +180 -0
- package/dist/cjs/workspace/parseContent.native.js +299 -0
- package/dist/cjs/workspace/parseContent.native.js.map +1 -0
- package/dist/cjs/workspace/types.cjs +18 -0
- package/dist/cjs/workspace/types.native.js +21 -0
- package/dist/cjs/workspace/types.native.js.map +1 -0
- package/dist/cjs/workspace/useDashboardChart.cjs +96 -0
- package/dist/cjs/workspace/useDashboardChart.native.js +110 -0
- package/dist/cjs/workspace/useDashboardChart.native.js.map +1 -0
- package/dist/cjs/workspace/useWorkspaceDoc.cjs +103 -0
- package/dist/cjs/workspace/useWorkspaceDoc.native.js +120 -0
- package/dist/cjs/workspace/useWorkspaceDoc.native.js.map +1 -0
- package/dist/esm/chrome/CommandPalette.mjs +20 -9
- package/dist/esm/chrome/CommandPalette.mjs.map +1 -1
- package/dist/esm/chrome/CommandPalette.native.js +18 -10
- package/dist/esm/chrome/CommandPalette.native.js.map +1 -1
- package/dist/esm/i18n/en.mjs +21 -0
- package/dist/esm/i18n/en.mjs.map +1 -1
- package/dist/esm/i18n/en.native.js +21 -0
- package/dist/esm/i18n/en.native.js.map +1 -1
- package/dist/esm/index.mjs +19 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +19 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/shared/types.mjs +2 -0
- package/dist/esm/shared/types.mjs.map +1 -0
- package/dist/esm/shared/types.native.js +2 -0
- package/dist/esm/shared/types.native.js.map +1 -0
- package/dist/esm/shared/useDocinfo.mjs +90 -0
- package/dist/esm/shared/useDocinfo.mjs.map +1 -0
- package/dist/esm/shared/useDocinfo.native.js +138 -0
- package/dist/esm/shared/useDocinfo.native.js.map +1 -0
- package/dist/esm/shared/useDoctypeMeta.mjs +99 -0
- package/dist/esm/shared/useDoctypeMeta.mjs.map +1 -0
- package/dist/esm/shared/useDoctypeMeta.native.js +130 -0
- package/dist/esm/shared/useDoctypeMeta.native.js.map +1 -0
- package/dist/esm/shared/useRecentVisit.mjs +15 -0
- package/dist/esm/shared/useRecentVisit.mjs.map +1 -0
- package/dist/esm/shared/useRecentVisit.native.js +15 -0
- package/dist/esm/shared/useRecentVisit.native.js.map +1 -0
- package/dist/esm/shared/useSessionUserId.mjs +29 -0
- package/dist/esm/shared/useSessionUserId.mjs.map +1 -0
- package/dist/esm/shared/useSessionUserId.native.js +31 -0
- package/dist/esm/shared/useSessionUserId.native.js.map +1 -0
- package/dist/esm/shared/useSlugTarget.mjs +113 -0
- package/dist/esm/shared/useSlugTarget.mjs.map +1 -0
- package/dist/esm/shared/useSlugTarget.native.js +138 -0
- package/dist/esm/shared/useSlugTarget.native.js.map +1 -0
- package/dist/esm/shared/useUserRoles.mjs +47 -0
- package/dist/esm/shared/useUserRoles.mjs.map +1 -0
- package/dist/esm/shared/useUserRoles.native.js +51 -0
- package/dist/esm/shared/useUserRoles.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceChartBlock.mjs +111 -0
- package/dist/esm/workspace/WorkspaceChartBlock.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceChartBlock.native.js +116 -0
- package/dist/esm/workspace/WorkspaceChartBlock.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceGrid.mjs +66 -0
- package/dist/esm/workspace/WorkspaceGrid.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceGrid.native.js +98 -0
- package/dist/esm/workspace/WorkspaceGrid.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceLinkCard.mjs +113 -0
- package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceLinkCard.native.js +126 -0
- package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs +84 -0
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js +98 -0
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceNumberCard.mjs +108 -0
- package/dist/esm/workspace/WorkspaceNumberCard.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceNumberCard.native.js +110 -0
- package/dist/esm/workspace/WorkspaceNumberCard.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceQuickList.mjs +87 -0
- package/dist/esm/workspace/WorkspaceQuickList.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceQuickList.native.js +102 -0
- package/dist/esm/workspace/WorkspaceQuickList.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceRecents.mjs +91 -0
- package/dist/esm/workspace/WorkspaceRecents.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceRecents.native.js +104 -0
- package/dist/esm/workspace/WorkspaceRecents.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceScreen.mjs +266 -0
- package/dist/esm/workspace/WorkspaceScreen.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceScreen.native.js +295 -0
- package/dist/esm/workspace/WorkspaceScreen.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceShortcut.mjs +159 -0
- package/dist/esm/workspace/WorkspaceShortcut.mjs.map +1 -0
- package/dist/esm/workspace/WorkspaceShortcut.native.js +173 -0
- package/dist/esm/workspace/WorkspaceShortcut.native.js.map +1 -0
- package/dist/esm/workspace/parseContent.mjs +148 -0
- package/dist/esm/workspace/parseContent.mjs.map +1 -0
- package/dist/esm/workspace/parseContent.native.js +264 -0
- package/dist/esm/workspace/parseContent.native.js.map +1 -0
- package/dist/esm/workspace/types.mjs +2 -0
- package/dist/esm/workspace/types.mjs.map +1 -0
- package/dist/esm/workspace/types.native.js +2 -0
- package/dist/esm/workspace/types.native.js.map +1 -0
- package/dist/esm/workspace/useDashboardChart.mjs +71 -0
- package/dist/esm/workspace/useDashboardChart.mjs.map +1 -0
- package/dist/esm/workspace/useDashboardChart.native.js +82 -0
- package/dist/esm/workspace/useDashboardChart.native.js.map +1 -0
- package/dist/esm/workspace/useWorkspaceDoc.mjs +77 -0
- package/dist/esm/workspace/useWorkspaceDoc.mjs.map +1 -0
- package/dist/esm/workspace/useWorkspaceDoc.native.js +91 -0
- package/dist/esm/workspace/useWorkspaceDoc.native.js.map +1 -0
- package/dist/jsx/chrome/CommandPalette.mjs +20 -9
- package/dist/jsx/chrome/CommandPalette.mjs.map +1 -1
- package/dist/jsx/chrome/CommandPalette.native.js +18 -10
- package/dist/jsx/chrome/CommandPalette.native.js.map +1 -1
- package/dist/jsx/i18n/en.mjs +21 -0
- package/dist/jsx/i18n/en.mjs.map +1 -1
- package/dist/jsx/i18n/en.native.js +21 -0
- package/dist/jsx/i18n/en.native.js.map +1 -1
- package/dist/jsx/index.js +19 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +19 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +48 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/shared/types.mjs +2 -0
- package/dist/jsx/shared/types.mjs.map +1 -0
- package/dist/jsx/shared/types.native.js +21 -0
- package/dist/jsx/shared/types.native.js.map +1 -0
- package/dist/jsx/shared/useDocinfo.mjs +90 -0
- package/dist/jsx/shared/useDocinfo.mjs.map +1 -0
- package/dist/jsx/shared/useDocinfo.native.js +167 -0
- package/dist/jsx/shared/useDocinfo.native.js.map +1 -0
- package/dist/jsx/shared/useDoctypeMeta.mjs +99 -0
- package/dist/jsx/shared/useDoctypeMeta.mjs.map +1 -0
- package/dist/jsx/shared/useDoctypeMeta.native.js +158 -0
- package/dist/jsx/shared/useDoctypeMeta.native.js.map +1 -0
- package/dist/jsx/shared/useRecentVisit.mjs +15 -0
- package/dist/jsx/shared/useRecentVisit.mjs.map +1 -0
- package/dist/jsx/shared/useRecentVisit.native.js +43 -0
- package/dist/jsx/shared/useRecentVisit.native.js.map +1 -0
- package/dist/jsx/shared/useSessionUserId.mjs +29 -0
- package/dist/jsx/shared/useSessionUserId.mjs.map +1 -0
- package/dist/jsx/shared/useSessionUserId.native.js +59 -0
- package/dist/jsx/shared/useSessionUserId.native.js.map +1 -0
- package/dist/jsx/shared/useSlugTarget.mjs +113 -0
- package/dist/jsx/shared/useSlugTarget.mjs.map +1 -0
- package/dist/jsx/shared/useSlugTarget.native.js +166 -0
- package/dist/jsx/shared/useSlugTarget.native.js.map +1 -0
- package/dist/jsx/shared/useUserRoles.mjs +47 -0
- package/dist/jsx/shared/useUserRoles.mjs.map +1 -0
- package/dist/jsx/shared/useUserRoles.native.js +79 -0
- package/dist/jsx/shared/useUserRoles.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceChartBlock.mjs +111 -0
- package/dist/jsx/workspace/WorkspaceChartBlock.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceChartBlock.native.js +144 -0
- package/dist/jsx/workspace/WorkspaceChartBlock.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceGrid.mjs +66 -0
- package/dist/jsx/workspace/WorkspaceGrid.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceGrid.native.js +126 -0
- package/dist/jsx/workspace/WorkspaceGrid.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs +113 -0
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js +155 -0
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs +84 -0
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +127 -0
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs +108 -0
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js +138 -0
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceQuickList.mjs +87 -0
- package/dist/jsx/workspace/WorkspaceQuickList.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceQuickList.native.js +130 -0
- package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceRecents.mjs +91 -0
- package/dist/jsx/workspace/WorkspaceRecents.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceRecents.native.js +132 -0
- package/dist/jsx/workspace/WorkspaceRecents.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceScreen.mjs +266 -0
- package/dist/jsx/workspace/WorkspaceScreen.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceScreen.native.js +323 -0
- package/dist/jsx/workspace/WorkspaceScreen.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceShortcut.mjs +159 -0
- package/dist/jsx/workspace/WorkspaceShortcut.mjs.map +1 -0
- package/dist/jsx/workspace/WorkspaceShortcut.native.js +202 -0
- package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -0
- package/dist/jsx/workspace/parseContent.mjs +148 -0
- package/dist/jsx/workspace/parseContent.mjs.map +1 -0
- package/dist/jsx/workspace/parseContent.native.js +299 -0
- package/dist/jsx/workspace/parseContent.native.js.map +1 -0
- package/dist/jsx/workspace/types.mjs +2 -0
- package/dist/jsx/workspace/types.mjs.map +1 -0
- package/dist/jsx/workspace/types.native.js +21 -0
- package/dist/jsx/workspace/types.native.js.map +1 -0
- package/dist/jsx/workspace/useDashboardChart.mjs +71 -0
- package/dist/jsx/workspace/useDashboardChart.mjs.map +1 -0
- package/dist/jsx/workspace/useDashboardChart.native.js +110 -0
- package/dist/jsx/workspace/useDashboardChart.native.js.map +1 -0
- package/dist/jsx/workspace/useWorkspaceDoc.mjs +77 -0
- package/dist/jsx/workspace/useWorkspaceDoc.mjs.map +1 -0
- package/dist/jsx/workspace/useWorkspaceDoc.native.js +120 -0
- package/dist/jsx/workspace/useWorkspaceDoc.native.js.map +1 -0
- package/package.json +12 -12
- package/src/chrome/CommandPalette.tsx +35 -15
- package/src/i18n/en.ts +21 -0
- package/src/index.ts +69 -0
- package/src/shared/types.ts +14 -0
- package/src/shared/useDocinfo.ts +163 -0
- package/src/shared/useDoctypeMeta.ts +243 -0
- package/src/shared/useRecentVisit.ts +33 -0
- package/src/shared/useSessionUserId.ts +42 -0
- package/src/shared/useSlugTarget.ts +143 -0
- package/src/shared/useUserRoles.ts +66 -0
- package/src/workspace/WorkspaceChartBlock.tsx +115 -0
- package/src/workspace/WorkspaceGrid.tsx +82 -0
- package/src/workspace/WorkspaceLinkCard.tsx +134 -0
- package/src/workspace/WorkspaceLinkDirectory.tsx +126 -0
- package/src/workspace/WorkspaceNumberCard.tsx +126 -0
- package/src/workspace/WorkspaceQuickList.tsx +100 -0
- package/src/workspace/WorkspaceRecents.tsx +100 -0
- package/src/workspace/WorkspaceScreen.tsx +322 -0
- package/src/workspace/WorkspaceShortcut.tsx +223 -0
- package/src/workspace/parseContent.spec.ts +327 -0
- package/src/workspace/parseContent.ts +240 -0
- package/src/workspace/types.ts +135 -0
- package/src/workspace/useDashboardChart.ts +115 -0
- package/src/workspace/useWorkspaceDoc.ts +111 -0
- package/types/chrome/CommandPalette.d.ts.map +1 -1
- package/types/i18n/en.d.ts +19 -0
- package/types/i18n/en.d.ts.map +1 -1
- package/types/index.d.ts +34 -0
- package/types/index.d.ts.map +1 -1
- package/types/shared/types.d.ts +21 -0
- package/types/shared/types.d.ts.map +1 -0
- package/types/shared/useDocinfo.d.ts +61 -0
- package/types/shared/useDocinfo.d.ts.map +1 -0
- package/types/shared/useDoctypeMeta.d.ts +118 -0
- package/types/shared/useDoctypeMeta.d.ts.map +1 -0
- package/types/shared/useRecentVisit.d.ts +10 -0
- package/types/shared/useRecentVisit.d.ts.map +1 -0
- package/types/shared/useSessionUserId.d.ts +6 -0
- package/types/shared/useSessionUserId.d.ts.map +1 -0
- package/types/shared/useSlugTarget.d.ts +18 -0
- package/types/shared/useSlugTarget.d.ts.map +1 -0
- package/types/shared/useUserRoles.d.ts +15 -0
- package/types/shared/useUserRoles.d.ts.map +1 -0
- package/types/workspace/WorkspaceChartBlock.d.ts +6 -0
- package/types/workspace/WorkspaceChartBlock.d.ts.map +1 -0
- package/types/workspace/WorkspaceGrid.d.ts +23 -0
- package/types/workspace/WorkspaceGrid.d.ts.map +1 -0
- package/types/workspace/WorkspaceLinkCard.d.ts +20 -0
- package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -0
- package/types/workspace/WorkspaceLinkDirectory.d.ts +19 -0
- package/types/workspace/WorkspaceLinkDirectory.d.ts.map +1 -0
- package/types/workspace/WorkspaceNumberCard.d.ts +19 -0
- package/types/workspace/WorkspaceNumberCard.d.ts.map +1 -0
- package/types/workspace/WorkspaceQuickList.d.ts +6 -0
- package/types/workspace/WorkspaceQuickList.d.ts.map +1 -0
- package/types/workspace/WorkspaceRecents.d.ts +2 -0
- package/types/workspace/WorkspaceRecents.d.ts.map +1 -0
- package/types/workspace/WorkspaceScreen.d.ts +24 -0
- package/types/workspace/WorkspaceScreen.d.ts.map +1 -0
- package/types/workspace/WorkspaceShortcut.d.ts +27 -0
- package/types/workspace/WorkspaceShortcut.d.ts.map +1 -0
- package/types/workspace/parseContent.d.ts +77 -0
- package/types/workspace/parseContent.d.ts.map +1 -0
- package/types/workspace/types.d.ts +112 -0
- package/types/workspace/types.d.ts.map +1 -0
- package/types/workspace/useDashboardChart.d.ts +29 -0
- package/types/workspace/useDashboardChart.d.ts.map +1 -0
- package/types/workspace/useWorkspaceDoc.d.ts +18 -0
- package/types/workspace/useWorkspaceDoc.d.ts.map +1 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var WorkspaceScreen_exports = {};
|
|
24
|
+
__export(WorkspaceScreen_exports, {
|
|
25
|
+
WorkspaceScreen: () => WorkspaceScreen
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(WorkspaceScreen_exports);
|
|
28
|
+
var import_components = require("@multiplatform.one/components");
|
|
29
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
30
|
+
var import_react = require("react");
|
|
31
|
+
var import_react_i18next = require("react-i18next");
|
|
32
|
+
var import_i18n = require("../i18n/index.cjs");
|
|
33
|
+
var import_parseContent = require("./parseContent.cjs");
|
|
34
|
+
var import_useWorkspaceDoc = require("./useWorkspaceDoc.cjs");
|
|
35
|
+
var import_WorkspaceChartBlock = require("./WorkspaceChartBlock.cjs");
|
|
36
|
+
var import_WorkspaceGrid = require("./WorkspaceGrid.cjs");
|
|
37
|
+
var import_WorkspaceLinkDirectory = require("./WorkspaceLinkDirectory.cjs");
|
|
38
|
+
var import_WorkspaceNumberCard = require("./WorkspaceNumberCard.cjs");
|
|
39
|
+
var import_WorkspaceQuickList = require("./WorkspaceQuickList.cjs");
|
|
40
|
+
var import_WorkspaceRecents = require("./WorkspaceRecents.cjs");
|
|
41
|
+
var import_WorkspaceShortcut = require("./WorkspaceShortcut.cjs");
|
|
42
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
43
|
+
const HEADER_TAGS = {
|
|
44
|
+
1: import_components.H2,
|
|
45
|
+
2: import_components.H2,
|
|
46
|
+
3: import_components.H3,
|
|
47
|
+
4: import_components.H4,
|
|
48
|
+
5: import_components.H5,
|
|
49
|
+
6: import_components.H6
|
|
50
|
+
};
|
|
51
|
+
function blockToGridItem(block, doc) {
|
|
52
|
+
const key = block.id || JSON.stringify(block.data);
|
|
53
|
+
switch (block.type) {
|
|
54
|
+
case "header":
|
|
55
|
+
{
|
|
56
|
+
const text = (0, import_parseContent.stripHtml)(block.data.text);
|
|
57
|
+
if (!text) return void 0;
|
|
58
|
+
const Tag = HEADER_TAGS[(0, import_parseContent.headerLevel)(block.data.text)];
|
|
59
|
+
return {
|
|
60
|
+
key,
|
|
61
|
+
col: 12,
|
|
62
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(Tag, {
|
|
63
|
+
margin: 0,
|
|
64
|
+
marginTop: "$3",
|
|
65
|
+
children: text
|
|
66
|
+
})
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
case "paragraph":
|
|
70
|
+
{
|
|
71
|
+
const text = (0, import_parseContent.stripHtml)(block.data.text);
|
|
72
|
+
if (!text) return void 0;
|
|
73
|
+
return {
|
|
74
|
+
key,
|
|
75
|
+
col: 12,
|
|
76
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Paragraph, {
|
|
77
|
+
margin: 0,
|
|
78
|
+
children: text
|
|
79
|
+
})
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
case "chart":
|
|
83
|
+
{
|
|
84
|
+
const row = doc.charts?.find(chart => chart.chart_name === block.data.chart_name || chart.label === block.data.chart_name);
|
|
85
|
+
if (!row) return void 0;
|
|
86
|
+
return {
|
|
87
|
+
key,
|
|
88
|
+
col: block.data.col ?? 12,
|
|
89
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceChartBlock.WorkspaceChartBlock, {
|
|
90
|
+
row
|
|
91
|
+
})
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
case "number_card":
|
|
95
|
+
{
|
|
96
|
+
const row = doc.number_cards?.find(card => card.number_card_name === block.data.number_card_name || card.label === block.data.number_card_name);
|
|
97
|
+
if (!row) return void 0;
|
|
98
|
+
return {
|
|
99
|
+
key,
|
|
100
|
+
col: block.data.col ?? 3,
|
|
101
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceNumberCard.WorkspaceNumberCard, {
|
|
102
|
+
row
|
|
103
|
+
})
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
case "quick_list":
|
|
107
|
+
{
|
|
108
|
+
const row = doc.quick_lists?.find(list => list.document_type === block.data.quick_list_name || list.label === block.data.quick_list_name);
|
|
109
|
+
if (!row) return void 0;
|
|
110
|
+
return {
|
|
111
|
+
key,
|
|
112
|
+
col: block.data.col ?? 4,
|
|
113
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceQuickList.WorkspaceQuickList, {
|
|
114
|
+
row
|
|
115
|
+
})
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
default:
|
|
119
|
+
return void 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function WorkspaceSkeleton() {
|
|
123
|
+
const {
|
|
124
|
+
knobProps
|
|
125
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
126
|
+
const {
|
|
127
|
+
t
|
|
128
|
+
} = (0, import_react_i18next.useTranslation)(import_i18n.BACKOFFICE_I18N_NAMESPACE);
|
|
129
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.YStack, {
|
|
130
|
+
...knobProps.gapLg,
|
|
131
|
+
"aria-busy": true,
|
|
132
|
+
"aria-label": t("loading", "Loading"),
|
|
133
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
134
|
+
width: "30%",
|
|
135
|
+
height: 32
|
|
136
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
137
|
+
...knobProps.gap,
|
|
138
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
139
|
+
variant: "rounded",
|
|
140
|
+
width: 128,
|
|
141
|
+
height: 44
|
|
142
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
143
|
+
variant: "rounded",
|
|
144
|
+
width: 104,
|
|
145
|
+
height: 44
|
|
146
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
147
|
+
variant: "rounded",
|
|
148
|
+
width: 144,
|
|
149
|
+
height: 44
|
|
150
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
151
|
+
variant: "rounded",
|
|
152
|
+
width: 112,
|
|
153
|
+
height: 44
|
|
154
|
+
})]
|
|
155
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
156
|
+
...knobProps.gap,
|
|
157
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
158
|
+
variant: "rounded",
|
|
159
|
+
width: "32%",
|
|
160
|
+
height: 200
|
|
161
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
162
|
+
variant: "rounded",
|
|
163
|
+
width: "32%",
|
|
164
|
+
height: 200
|
|
165
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
166
|
+
variant: "rounded",
|
|
167
|
+
width: "32%",
|
|
168
|
+
height: 200
|
|
169
|
+
})]
|
|
170
|
+
})]
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
const DATA_KIND_BY_TYPE = {
|
|
174
|
+
chart: "charts",
|
|
175
|
+
number_card: "numbers",
|
|
176
|
+
quick_list: "quickLists"
|
|
177
|
+
};
|
|
178
|
+
function buildSections(doc, hidden, renderBlock) {
|
|
179
|
+
const composition = (0, import_parseContent.composeWorkspaceBlocks)((0, import_parseContent.parseWorkspaceContent)(doc.content));
|
|
180
|
+
const toGridItems = blocks => blocks.map(block => {
|
|
181
|
+
const item = blockToGridItem(block, doc);
|
|
182
|
+
if (!item || !renderBlock) return item;
|
|
183
|
+
return {
|
|
184
|
+
...item,
|
|
185
|
+
node: renderBlock({
|
|
186
|
+
block,
|
|
187
|
+
doc,
|
|
188
|
+
defaultContent: item.node
|
|
189
|
+
})
|
|
190
|
+
};
|
|
191
|
+
}).filter(item => item !== void 0);
|
|
192
|
+
const groups = (0, import_parseContent.groupLinks)(doc.links);
|
|
193
|
+
const dataBlocks = composition.data.filter(block => {
|
|
194
|
+
const kind = DATA_KIND_BY_TYPE[block.type];
|
|
195
|
+
return !kind || !hidden.has(kind);
|
|
196
|
+
});
|
|
197
|
+
return {
|
|
198
|
+
data: toGridItems(dataBlocks),
|
|
199
|
+
text: toGridItems(composition.text),
|
|
200
|
+
shortcuts: hidden.has("shortcuts") ? [] : composition.shortcuts.flatMap(block => {
|
|
201
|
+
const row = (0, import_parseContent.findShortcut)(doc, block.data.shortcut_name);
|
|
202
|
+
return row ? [row] : [];
|
|
203
|
+
}),
|
|
204
|
+
links: hidden.has("links") ? [] : composition.cards.flatMap(block => {
|
|
205
|
+
const group = (0, import_parseContent.findLinkGroup)(groups, block.data.card_name);
|
|
206
|
+
if (!group) return [];
|
|
207
|
+
return [{
|
|
208
|
+
key: block.id || group.label,
|
|
209
|
+
col: block.data.col ?? 4,
|
|
210
|
+
group
|
|
211
|
+
}];
|
|
212
|
+
})
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function WorkspaceScreen({
|
|
216
|
+
workspace,
|
|
217
|
+
hiddenBlocks,
|
|
218
|
+
onShortcutPress,
|
|
219
|
+
renderBlock
|
|
220
|
+
}) {
|
|
221
|
+
const {
|
|
222
|
+
t
|
|
223
|
+
} = (0, import_react_i18next.useTranslation)(import_i18n.BACKOFFICE_I18N_NAMESPACE);
|
|
224
|
+
const {
|
|
225
|
+
knobProps
|
|
226
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
227
|
+
const {
|
|
228
|
+
doc,
|
|
229
|
+
isLoading,
|
|
230
|
+
error,
|
|
231
|
+
isPermissionError,
|
|
232
|
+
refresh
|
|
233
|
+
} = (0, import_useWorkspaceDoc.useWorkspaceDoc)(workspace);
|
|
234
|
+
const hidden = (0, import_react.useMemo)(() => new Set(hiddenBlocks ?? []), [hiddenBlocks]);
|
|
235
|
+
const sections = (0, import_react.useMemo)(() => doc ? buildSections(doc, hidden, renderBlock) : void 0, [doc, hidden, renderBlock]);
|
|
236
|
+
if (isLoading) {
|
|
237
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Screen, {
|
|
238
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(WorkspaceSkeleton, {})
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
if (error || !doc || !sections) {
|
|
242
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Screen, {
|
|
243
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.AsyncBoundary, {
|
|
244
|
+
error: error ?? true,
|
|
245
|
+
onRetry: refresh,
|
|
246
|
+
errorTitle: isPermissionError ? t("workspacePermissionError", "You do not have permission to view {{workspace}}", {
|
|
247
|
+
workspace
|
|
248
|
+
}) : t("workspaceError", "Couldn't load workspace {{workspace}}", {
|
|
249
|
+
workspace
|
|
250
|
+
})
|
|
251
|
+
})
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
const isEmpty = sections.data.length === 0 && sections.text.length === 0 && sections.shortcuts.length === 0 && sections.links.length === 0;
|
|
255
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.Screen, {
|
|
256
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.PageHeader, {
|
|
257
|
+
title: doc.title || doc.label || workspace,
|
|
258
|
+
titleScale: "moderate",
|
|
259
|
+
divider: false
|
|
260
|
+
}), hidden.has("recents") ? null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceRecents.WorkspaceRecents, {}), isEmpty ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.AsyncBoundary, {
|
|
261
|
+
empty: true,
|
|
262
|
+
emptyTitle: t("workspaceEmpty", "This workspace is empty"),
|
|
263
|
+
emptyDescription: t("workspaceEmptyDescription", "No blocks have been added to {{workspace}} yet", {
|
|
264
|
+
workspace
|
|
265
|
+
})
|
|
266
|
+
}) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
267
|
+
children: [sections.data.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceGrid.WorkspaceGrid, {
|
|
268
|
+
items: sections.data
|
|
269
|
+
}) : null, sections.text.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceGrid.WorkspaceGrid, {
|
|
270
|
+
items: sections.text
|
|
271
|
+
}) : null, sections.shortcuts.length > 0 ?
|
|
272
|
+
// Section heading on the shared sectionHeading scale (LC-17) —
|
|
273
|
+
// PageSection owns it; no divider rule over a chip band.
|
|
274
|
+
/* @__PURE__ */
|
|
275
|
+
(0, import_jsx_runtime.jsx)(import_components.PageSection, {
|
|
276
|
+
title: t("workspaceShortcuts", "Shortcuts"),
|
|
277
|
+
divider: false,
|
|
278
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.XStack, {
|
|
279
|
+
flexWrap: "wrap",
|
|
280
|
+
...knobProps.gap,
|
|
281
|
+
children: sections.shortcuts.map(row => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceShortcut.WorkspaceShortcut, {
|
|
282
|
+
row,
|
|
283
|
+
onPress: onShortcutPress
|
|
284
|
+
}, row.name))
|
|
285
|
+
})
|
|
286
|
+
}) : null, sections.links.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceLinkDirectory.WorkspaceLinkDirectory, {
|
|
287
|
+
items: sections.links
|
|
288
|
+
}) : null]
|
|
289
|
+
})]
|
|
290
|
+
});
|
|
291
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var WorkspaceScreen_exports = {};
|
|
26
|
+
__export(WorkspaceScreen_exports, {
|
|
27
|
+
WorkspaceScreen: () => WorkspaceScreen
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(WorkspaceScreen_exports);
|
|
30
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
+
var import_components = require("@multiplatform.one/components");
|
|
32
|
+
var import_theme = require("@multiplatform.one/theme");
|
|
33
|
+
var import_react = require("react");
|
|
34
|
+
var import_react_i18next = require("react-i18next");
|
|
35
|
+
var import_i18n = require("../i18n/index.native.js");
|
|
36
|
+
var import_parseContent = require("./parseContent.native.js");
|
|
37
|
+
var import_useWorkspaceDoc = require("./useWorkspaceDoc.native.js");
|
|
38
|
+
var import_WorkspaceChartBlock = require("./WorkspaceChartBlock.native.js");
|
|
39
|
+
var import_WorkspaceGrid = require("./WorkspaceGrid.native.js");
|
|
40
|
+
var import_WorkspaceLinkDirectory = require("./WorkspaceLinkDirectory.native.js");
|
|
41
|
+
var import_WorkspaceNumberCard = require("./WorkspaceNumberCard.native.js");
|
|
42
|
+
var import_WorkspaceQuickList = require("./WorkspaceQuickList.native.js");
|
|
43
|
+
var import_WorkspaceRecents = require("./WorkspaceRecents.native.js");
|
|
44
|
+
var import_WorkspaceShortcut = require("./WorkspaceShortcut.native.js");
|
|
45
|
+
var HEADER_TAGS = {
|
|
46
|
+
1: import_components.H2,
|
|
47
|
+
2: import_components.H2,
|
|
48
|
+
3: import_components.H3,
|
|
49
|
+
4: import_components.H4,
|
|
50
|
+
5: import_components.H5,
|
|
51
|
+
6: import_components.H6
|
|
52
|
+
};
|
|
53
|
+
function blockToGridItem(block, doc) {
|
|
54
|
+
var key = block.id || JSON.stringify(block.data);
|
|
55
|
+
switch (block.type) {
|
|
56
|
+
case "header":
|
|
57
|
+
{
|
|
58
|
+
var text = (0, import_parseContent.stripHtml)(block.data.text);
|
|
59
|
+
if (!text) return void 0;
|
|
60
|
+
var Tag = HEADER_TAGS[(0, import_parseContent.headerLevel)(block.data.text)];
|
|
61
|
+
return {
|
|
62
|
+
key,
|
|
63
|
+
col: 12,
|
|
64
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(Tag, {
|
|
65
|
+
margin: 0,
|
|
66
|
+
marginTop: "$3",
|
|
67
|
+
children: text
|
|
68
|
+
})
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
case "paragraph":
|
|
72
|
+
{
|
|
73
|
+
var text1 = (0, import_parseContent.stripHtml)(block.data.text);
|
|
74
|
+
if (!text1) return void 0;
|
|
75
|
+
return {
|
|
76
|
+
key,
|
|
77
|
+
col: 12,
|
|
78
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Paragraph, {
|
|
79
|
+
margin: 0,
|
|
80
|
+
children: text1
|
|
81
|
+
})
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
case "chart":
|
|
85
|
+
{
|
|
86
|
+
var _block_data_col;
|
|
87
|
+
var _doc_charts;
|
|
88
|
+
var row = (_doc_charts = doc.charts) === null || _doc_charts === void 0 ? void 0 : _doc_charts.find(function (chart) {
|
|
89
|
+
return chart.chart_name === block.data.chart_name || chart.label === block.data.chart_name;
|
|
90
|
+
});
|
|
91
|
+
if (!row) return void 0;
|
|
92
|
+
return {
|
|
93
|
+
key,
|
|
94
|
+
col: (_block_data_col = block.data.col) !== null && _block_data_col !== void 0 ? _block_data_col : 12,
|
|
95
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceChartBlock.WorkspaceChartBlock, {
|
|
96
|
+
row
|
|
97
|
+
})
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
case "number_card":
|
|
101
|
+
{
|
|
102
|
+
var _block_data_col1;
|
|
103
|
+
var _doc_number_cards;
|
|
104
|
+
var row1 = (_doc_number_cards = doc.number_cards) === null || _doc_number_cards === void 0 ? void 0 : _doc_number_cards.find(function (card) {
|
|
105
|
+
return card.number_card_name === block.data.number_card_name || card.label === block.data.number_card_name;
|
|
106
|
+
});
|
|
107
|
+
if (!row1) return void 0;
|
|
108
|
+
return {
|
|
109
|
+
key,
|
|
110
|
+
col: (_block_data_col1 = block.data.col) !== null && _block_data_col1 !== void 0 ? _block_data_col1 : 3,
|
|
111
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceNumberCard.WorkspaceNumberCard, {
|
|
112
|
+
row: row1
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
case "quick_list":
|
|
117
|
+
{
|
|
118
|
+
var _block_data_col2;
|
|
119
|
+
var _doc_quick_lists;
|
|
120
|
+
var row2 = (_doc_quick_lists = doc.quick_lists) === null || _doc_quick_lists === void 0 ? void 0 : _doc_quick_lists.find(function (list) {
|
|
121
|
+
return list.document_type === block.data.quick_list_name || list.label === block.data.quick_list_name;
|
|
122
|
+
});
|
|
123
|
+
if (!row2) return void 0;
|
|
124
|
+
return {
|
|
125
|
+
key,
|
|
126
|
+
col: (_block_data_col2 = block.data.col) !== null && _block_data_col2 !== void 0 ? _block_data_col2 : 4,
|
|
127
|
+
node: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceQuickList.WorkspaceQuickList, {
|
|
128
|
+
row: row2
|
|
129
|
+
})
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
default:
|
|
133
|
+
return void 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function WorkspaceSkeleton() {
|
|
137
|
+
var {
|
|
138
|
+
knobProps
|
|
139
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
140
|
+
var {
|
|
141
|
+
t
|
|
142
|
+
} = (0, import_react_i18next.useTranslation)(import_i18n.BACKOFFICE_I18N_NAMESPACE);
|
|
143
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.YStack, {
|
|
144
|
+
...knobProps.gapLg,
|
|
145
|
+
"aria-busy": true,
|
|
146
|
+
"aria-label": t("loading", "Loading"),
|
|
147
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
148
|
+
width: "30%",
|
|
149
|
+
height: 32
|
|
150
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
151
|
+
...knobProps.gap,
|
|
152
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
153
|
+
variant: "rounded",
|
|
154
|
+
width: 128,
|
|
155
|
+
height: 44
|
|
156
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
157
|
+
variant: "rounded",
|
|
158
|
+
width: 104,
|
|
159
|
+
height: 44
|
|
160
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
161
|
+
variant: "rounded",
|
|
162
|
+
width: 144,
|
|
163
|
+
height: 44
|
|
164
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
165
|
+
variant: "rounded",
|
|
166
|
+
width: 112,
|
|
167
|
+
height: 44
|
|
168
|
+
})]
|
|
169
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
170
|
+
...knobProps.gap,
|
|
171
|
+
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
172
|
+
variant: "rounded",
|
|
173
|
+
width: "32%",
|
|
174
|
+
height: 200
|
|
175
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
176
|
+
variant: "rounded",
|
|
177
|
+
width: "32%",
|
|
178
|
+
height: 200
|
|
179
|
+
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Skeleton, {
|
|
180
|
+
variant: "rounded",
|
|
181
|
+
width: "32%",
|
|
182
|
+
height: 200
|
|
183
|
+
})]
|
|
184
|
+
})]
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
var DATA_KIND_BY_TYPE = {
|
|
188
|
+
chart: "charts",
|
|
189
|
+
number_card: "numbers",
|
|
190
|
+
quick_list: "quickLists"
|
|
191
|
+
};
|
|
192
|
+
function buildSections(doc, hidden, renderBlock) {
|
|
193
|
+
var composition = (0, import_parseContent.composeWorkspaceBlocks)((0, import_parseContent.parseWorkspaceContent)(doc.content));
|
|
194
|
+
var toGridItems = function toGridItems2(blocks) {
|
|
195
|
+
return blocks.map(function (block) {
|
|
196
|
+
var item = blockToGridItem(block, doc);
|
|
197
|
+
if (!item || !renderBlock) return item;
|
|
198
|
+
return {
|
|
199
|
+
...item,
|
|
200
|
+
node: renderBlock({
|
|
201
|
+
block,
|
|
202
|
+
doc,
|
|
203
|
+
defaultContent: item.node
|
|
204
|
+
})
|
|
205
|
+
};
|
|
206
|
+
}).filter(function (item) {
|
|
207
|
+
return item !== void 0;
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
var groups = (0, import_parseContent.groupLinks)(doc.links);
|
|
211
|
+
var dataBlocks = composition.data.filter(function (block) {
|
|
212
|
+
var kind = DATA_KIND_BY_TYPE[block.type];
|
|
213
|
+
return !kind || !hidden.has(kind);
|
|
214
|
+
});
|
|
215
|
+
return {
|
|
216
|
+
data: toGridItems(dataBlocks),
|
|
217
|
+
text: toGridItems(composition.text),
|
|
218
|
+
shortcuts: hidden.has("shortcuts") ? [] : composition.shortcuts.flatMap(function (block) {
|
|
219
|
+
var row = (0, import_parseContent.findShortcut)(doc, block.data.shortcut_name);
|
|
220
|
+
return row ? [row] : [];
|
|
221
|
+
}),
|
|
222
|
+
links: hidden.has("links") ? [] : composition.cards.flatMap(function (block) {
|
|
223
|
+
var _block_data_col;
|
|
224
|
+
var group = (0, import_parseContent.findLinkGroup)(groups, block.data.card_name);
|
|
225
|
+
if (!group) return [];
|
|
226
|
+
return [{
|
|
227
|
+
key: block.id || group.label,
|
|
228
|
+
col: (_block_data_col = block.data.col) !== null && _block_data_col !== void 0 ? _block_data_col : 4,
|
|
229
|
+
group
|
|
230
|
+
}];
|
|
231
|
+
})
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
function WorkspaceScreen(param) {
|
|
235
|
+
var {
|
|
236
|
+
workspace,
|
|
237
|
+
hiddenBlocks,
|
|
238
|
+
onShortcutPress,
|
|
239
|
+
renderBlock
|
|
240
|
+
} = param;
|
|
241
|
+
var {
|
|
242
|
+
t
|
|
243
|
+
} = (0, import_react_i18next.useTranslation)(import_i18n.BACKOFFICE_I18N_NAMESPACE);
|
|
244
|
+
var {
|
|
245
|
+
knobProps
|
|
246
|
+
} = (0, import_theme.useResolvedKnobs)();
|
|
247
|
+
var {
|
|
248
|
+
doc,
|
|
249
|
+
isLoading,
|
|
250
|
+
error,
|
|
251
|
+
isPermissionError,
|
|
252
|
+
refresh
|
|
253
|
+
} = (0, import_useWorkspaceDoc.useWorkspaceDoc)(workspace);
|
|
254
|
+
var hidden = (0, import_react.useMemo)(function () {
|
|
255
|
+
return new Set(hiddenBlocks !== null && hiddenBlocks !== void 0 ? hiddenBlocks : []);
|
|
256
|
+
}, [hiddenBlocks]);
|
|
257
|
+
var sections = (0, import_react.useMemo)(function () {
|
|
258
|
+
return doc ? buildSections(doc, hidden, renderBlock) : void 0;
|
|
259
|
+
}, [doc, hidden, renderBlock]);
|
|
260
|
+
if (isLoading) {
|
|
261
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Screen, {
|
|
262
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(WorkspaceSkeleton, {})
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
if (error || !doc || !sections) {
|
|
266
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Screen, {
|
|
267
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.AsyncBoundary, {
|
|
268
|
+
error: error !== null && error !== void 0 ? error : true,
|
|
269
|
+
onRetry: refresh,
|
|
270
|
+
errorTitle: isPermissionError ? t("workspacePermissionError", "You do not have permission to view {{workspace}}", {
|
|
271
|
+
workspace
|
|
272
|
+
}) : t("workspaceError", "Couldn't load workspace {{workspace}}", {
|
|
273
|
+
workspace
|
|
274
|
+
})
|
|
275
|
+
})
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
var isEmpty = sections.data.length === 0 && sections.text.length === 0 && sections.shortcuts.length === 0 && sections.links.length === 0;
|
|
279
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.Screen, {
|
|
280
|
+
children: [
|
|
281
|
+
/* D-11 page-title dial: moderate (32px) — a workspace title is
|
|
282
|
+
wayfinding, not display copy. No divider: the rule under the title
|
|
283
|
+
earned no role (Axiom 16 chrome-earns-role). */
|
|
284
|
+
/* @__PURE__ */
|
|
285
|
+
(0, import_jsx_runtime.jsx)(import_components.PageHeader, {
|
|
286
|
+
title: doc.title || doc.label || workspace,
|
|
287
|
+
titleScale: "moderate",
|
|
288
|
+
divider: false
|
|
289
|
+
}), hidden.has("recents") ? null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceRecents.WorkspaceRecents, {}), isEmpty ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.AsyncBoundary, {
|
|
290
|
+
empty: true,
|
|
291
|
+
emptyTitle: t("workspaceEmpty", "This workspace is empty"),
|
|
292
|
+
emptyDescription: t("workspaceEmptyDescription", "No blocks have been added to {{workspace}} yet", {
|
|
293
|
+
workspace
|
|
294
|
+
})
|
|
295
|
+
}) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
296
|
+
children: [sections.data.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceGrid.WorkspaceGrid, {
|
|
297
|
+
items: sections.data
|
|
298
|
+
}) : null, sections.text.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceGrid.WorkspaceGrid, {
|
|
299
|
+
items: sections.text
|
|
300
|
+
}) : null, sections.shortcuts.length > 0 ?
|
|
301
|
+
// Section heading on the shared sectionHeading scale (LC-17) —
|
|
302
|
+
// PageSection owns it; no divider rule over a chip band.
|
|
303
|
+
/* @__PURE__ */
|
|
304
|
+
(0, import_jsx_runtime.jsx)(import_components.PageSection, {
|
|
305
|
+
title: t("workspaceShortcuts", "Shortcuts"),
|
|
306
|
+
divider: false,
|
|
307
|
+
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.XStack, {
|
|
308
|
+
flexWrap: "wrap",
|
|
309
|
+
...knobProps.gap,
|
|
310
|
+
children: sections.shortcuts.map(function (row) {
|
|
311
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceShortcut.WorkspaceShortcut, {
|
|
312
|
+
row,
|
|
313
|
+
onPress: onShortcutPress
|
|
314
|
+
}, row.name);
|
|
315
|
+
})
|
|
316
|
+
})
|
|
317
|
+
}) : null, sections.links.length > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_WorkspaceLinkDirectory.WorkspaceLinkDirectory, {
|
|
318
|
+
items: sections.links
|
|
319
|
+
}) : null]
|
|
320
|
+
})]
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
//# sourceMappingURL=WorkspaceScreen.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","WorkspaceScreen_exports","__export","WorkspaceScreen","module","exports","import_jsx_runtime","require","import_components","import_theme","import_react","import_react_i18next","import_i18n","import_parseContent","import_useWorkspaceDoc","import_WorkspaceChartBlock","import_WorkspaceGrid","import_WorkspaceLinkDirectory","import_WorkspaceNumberCard","import_WorkspaceQuickList","import_WorkspaceRecents","import_WorkspaceShortcut","HEADER_TAGS","H2","H3","H4","H5","H6","blockToGridItem","block","doc","key","id","JSON","stringify","data","type","text","stripHtml","Tag","headerLevel","col","node","jsx","margin","marginTop","children","text1","Paragraph","_block_data_col","_doc_charts","row","charts","find","chart","chart_name","label","WorkspaceChartBlock","_block_data_col1","_doc_number_cards","row1","number_cards","card","number_card_name","WorkspaceNumberCard","_block_data_col2","_doc_quick_lists","row2","quick_lists","list","document_type","quick_list_name","WorkspaceQuickList","WorkspaceSkeleton","knobProps","useResolvedKnobs","t","useTranslation","BACKOFFICE_I18N_NAMESPACE","jsxs","YStack","gapLg","Skeleton","width","height","XStack","gap","variant","DATA_KIND_BY_TYPE","number_card","quick_list","buildSections","hidden","renderBlock","composition","composeWorkspaceBlocks","parseWorkspaceContent","content","toGridItems","toGridItems2","blocks","map","item","defaultContent"],"sources":["../../../src/workspace/WorkspaceScreen.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;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