@burdenoff/microfe-workspaces 2026.1121.1 → 2026.1123.2
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/WorkspacesRoot.js +39 -31
- package/dist/WorkspacesRoutes.js +35 -27
- package/dist/components/WorkspaceContextPathSync.js +2 -0
- package/dist/generated/wspace-operations.d.ts +460 -0
- package/dist/generated/wspace-operations.js +4047 -1031
- package/dist/generated/wspace-types.d.ts +359 -0
- package/dist/generated/wspace-types.js +19 -0
- package/dist/hooks/useCollaboration.d.ts +143 -0
- package/dist/hooks/useCollaboration.js +119 -0
- package/dist/hooks/useCollaborationMutations.d.ts +177 -0
- package/dist/hooks/useCollaborationMutations.js +126 -0
- package/dist/node_modules/sonner/dist/index.js +167 -0
- package/dist/pages/CollaborationConsolePage.d.ts +1 -0
- package/dist/pages/CollaborationConsolePage.js +1059 -0
- package/dist/pages/WorkspacesListPage.js +79 -68
- package/dist/translations/en.d.ts +54 -0
- package/dist/translations/en.js +54 -0
- package/package.json +1 -1
package/dist/WorkspacesRoot.js
CHANGED
|
@@ -2,78 +2,86 @@ import { WorkspacesProvider as e } from "./providers/WorkspacesProvider.js";
|
|
|
2
2
|
import { WorkspacesErrorBoundary as t } from "./components/WorkspacesErrorBoundary.js";
|
|
3
3
|
import { WorkspacesRoutes as n } from "./WorkspacesRoutes.js";
|
|
4
4
|
import { useEffect as r, useMemo as i } from "react";
|
|
5
|
-
import { Activity as a, Building2 as o, FolderKanban as s,
|
|
6
|
-
import { FeatureFlagProvider as
|
|
7
|
-
import { useHeadingDocumentTitle as
|
|
8
|
-
import { jsx as
|
|
5
|
+
import { Activity as a, Building2 as o, FolderKanban as s, Globe as c, Users as l } from "lucide-react";
|
|
6
|
+
import { FeatureFlagProvider as u, useFeatureFlags as d } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
+
import { useHeadingDocumentTitle as f } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
9
9
|
// src/WorkspacesRoot.tsx
|
|
10
|
-
var
|
|
11
|
-
let { registerNavItems:
|
|
12
|
-
|
|
13
|
-
enabled:
|
|
10
|
+
var m = (m) => {
|
|
11
|
+
let { registerNavItems: h, registerFooterItems: g, basePath: _ = "/" } = m, { isEnabled: v, evaluations: y } = d();
|
|
12
|
+
f({
|
|
13
|
+
enabled: m.variant === "fluidgrids",
|
|
14
14
|
suffix: "FluidGrids"
|
|
15
15
|
});
|
|
16
|
-
let
|
|
17
|
-
isEnabled:
|
|
18
|
-
evaluations:
|
|
19
|
-
}), [
|
|
16
|
+
let b = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), x = i(() => ({
|
|
17
|
+
isEnabled: v,
|
|
18
|
+
evaluations: y
|
|
19
|
+
}), [y, v]);
|
|
20
20
|
return r(() => {
|
|
21
|
-
if (!
|
|
21
|
+
if (!h) return;
|
|
22
22
|
let e = [
|
|
23
23
|
{
|
|
24
24
|
id: "workspaces-all",
|
|
25
25
|
label: "All Workspaces",
|
|
26
|
-
path:
|
|
27
|
-
icon: /* @__PURE__ */
|
|
26
|
+
path: b(_, "list"),
|
|
27
|
+
icon: /* @__PURE__ */ p(o, { size: 20 }),
|
|
28
28
|
order: 10,
|
|
29
29
|
group: "workspaces"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: "workspaces-projects",
|
|
33
33
|
label: "Projects",
|
|
34
|
-
path:
|
|
35
|
-
icon: /* @__PURE__ */
|
|
34
|
+
path: b(_, "projects"),
|
|
35
|
+
icon: /* @__PURE__ */ p(s, { size: 20 }),
|
|
36
36
|
order: 20,
|
|
37
37
|
group: "workspaces"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
id: "workspaces-members",
|
|
41
41
|
label: "Members",
|
|
42
|
-
path:
|
|
43
|
-
icon: /* @__PURE__ */
|
|
42
|
+
path: b(_, "members"),
|
|
43
|
+
icon: /* @__PURE__ */ p(l, { size: 20 }),
|
|
44
44
|
order: 30,
|
|
45
45
|
group: "workspaces"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
id: "workspaces-activity",
|
|
49
49
|
label: "Activity",
|
|
50
|
-
path:
|
|
51
|
-
icon: /* @__PURE__ */
|
|
50
|
+
path: b(_, "activity"),
|
|
51
|
+
icon: /* @__PURE__ */ p(a, { size: 20 }),
|
|
52
52
|
order: 40,
|
|
53
53
|
group: "workspaces"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "workspaces-collaboration",
|
|
57
|
+
label: "Multi-Org & Sharing",
|
|
58
|
+
path: b(_, "collaboration"),
|
|
59
|
+
icon: /* @__PURE__ */ p(c, { size: 20 }),
|
|
60
|
+
order: 50,
|
|
61
|
+
group: "workspaces"
|
|
54
62
|
}
|
|
55
63
|
];
|
|
56
|
-
return
|
|
64
|
+
return h(e);
|
|
57
65
|
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
66
|
+
h,
|
|
67
|
+
_,
|
|
68
|
+
x
|
|
61
69
|
]), r(() => {
|
|
62
|
-
if (
|
|
70
|
+
if (g) return g([{
|
|
63
71
|
id: "workspaces-status",
|
|
64
72
|
label: "Workspaces Ready",
|
|
65
73
|
type: "status",
|
|
66
74
|
order: 10,
|
|
67
75
|
section: "left"
|
|
68
76
|
}]);
|
|
69
|
-
}, [
|
|
77
|
+
}, [g]), /* @__PURE__ */ p(u, {
|
|
70
78
|
workspaceId: null,
|
|
71
79
|
gateway: "global",
|
|
72
80
|
defaultEnabled: !0,
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
...
|
|
75
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(e, {
|
|
82
|
+
...m,
|
|
83
|
+
children: /* @__PURE__ */ p(n, {})
|
|
76
84
|
}) })
|
|
77
85
|
});
|
|
78
86
|
};
|
|
79
|
-
export {
|
|
87
|
+
export { m as WorkspacesRoot };
|
package/dist/WorkspacesRoutes.js
CHANGED
|
@@ -8,14 +8,14 @@ import { useWorkspacePagesV2 as s } from "@burdenoff/fe-libs/ui";
|
|
|
8
8
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
9
|
import { Navigate as u, Route as d, Routes as f, useLocation as p, useParams as m } from "react-router";
|
|
10
10
|
// src/WorkspacesRoutes.tsx
|
|
11
|
-
var h = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), g = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), _ = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), v = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), y = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), b = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), x = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), S = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), C = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), w = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage }))), T = a(() => import("./pages/v2/WorkspacesPage.js").then((e) => ({ default: e.WorkspacesPageV2 }))),
|
|
12
|
-
function
|
|
11
|
+
var h = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), g = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), _ = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), v = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), y = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), b = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), x = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), S = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), C = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), w = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage }))), T = a(() => import("./pages/CollaborationConsolePage.js").then((e) => ({ default: e.CollaborationConsolePage }))), E = a(() => import("./pages/v2/WorkspacesPage.js").then((e) => ({ default: e.WorkspacesPageV2 }))), D = a(() => import("./pages/v2/MembersPage.js").then((e) => ({ default: e.MembersPageV2 }))), O = a(() => import("./pages/v2/ProjectsPage.js").then((e) => ({ default: e.ProjectsPageV2 }))), k = a(() => import("./pages/v2/ActivityPage.js").then((e) => ({ default: e.ActivityPageV2 })));
|
|
12
|
+
function A() {
|
|
13
13
|
return /* @__PURE__ */ c("div", {
|
|
14
14
|
className: "flex items-center justify-center h-64",
|
|
15
15
|
children: /* @__PURE__ */ c("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function j() {
|
|
19
19
|
return /* @__PURE__ */ c("div", {
|
|
20
20
|
className: "flex h-full items-center justify-center p-8 text-center",
|
|
21
21
|
children: /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h2", {
|
|
@@ -27,29 +27,29 @@ function A() {
|
|
|
27
27
|
})] })
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function M(e, t, n = !1) {
|
|
31
31
|
return /* @__PURE__ */ c(o, {
|
|
32
32
|
flag: e,
|
|
33
33
|
defaultValue: n,
|
|
34
|
-
fallback: /* @__PURE__ */ c(
|
|
34
|
+
fallback: /* @__PURE__ */ c(j, {}),
|
|
35
35
|
children: t
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function N() {
|
|
39
39
|
let { basePath: t = "/workspaces" } = e();
|
|
40
40
|
return /* @__PURE__ */ c(u, {
|
|
41
41
|
to: `${t}/list`,
|
|
42
42
|
replace: !0
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function P() {
|
|
46
46
|
let { basePath: t = "/workspaces", workspaceId: n } = e();
|
|
47
47
|
return n ? /* @__PURE__ */ c(u, {
|
|
48
48
|
to: `${t}/${n}/invite`,
|
|
49
49
|
replace: !0
|
|
50
50
|
}) : /* @__PURE__ */ c(w, {});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function F({ to: e, set: t }) {
|
|
53
53
|
let { search: n } = p(), r = new URLSearchParams(n);
|
|
54
54
|
for (let [e, n] of Object.entries(t ?? {})) r.set(e, n);
|
|
55
55
|
let i = r.toString();
|
|
@@ -58,46 +58,54 @@ function P({ to: e, set: t }) {
|
|
|
58
58
|
replace: !0
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function I() {
|
|
62
62
|
let { basePath: t = "/workspaces" } = e(), { workspaceId: n } = m();
|
|
63
|
-
return /* @__PURE__ */ c(
|
|
63
|
+
return /* @__PURE__ */ c(F, {
|
|
64
64
|
to: `${t}/${n}/members`,
|
|
65
65
|
set: { dialog: "invite" }
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L() {
|
|
69
69
|
let a = s(), { basePath: o = "/workspaces" } = e();
|
|
70
70
|
return /* @__PURE__ */ l(i, {
|
|
71
|
-
fallback: /* @__PURE__ */ c(
|
|
71
|
+
fallback: /* @__PURE__ */ c(A, {}),
|
|
72
72
|
children: [/* @__PURE__ */ c(t, {}), /* @__PURE__ */ l(f, { children: [
|
|
73
73
|
/* @__PURE__ */ c(d, {
|
|
74
74
|
index: !0,
|
|
75
|
-
element: a ? /* @__PURE__ */ c(
|
|
75
|
+
element: a ? /* @__PURE__ */ c(F, { to: `${o}/list` }) : /* @__PURE__ */ c(u, {
|
|
76
76
|
to: "list",
|
|
77
77
|
replace: !0
|
|
78
78
|
})
|
|
79
79
|
}),
|
|
80
80
|
/* @__PURE__ */ c(d, {
|
|
81
81
|
path: "list",
|
|
82
|
-
element: c(a ?
|
|
82
|
+
element: c(a ? E : r, {})
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ c(d, {
|
|
85
85
|
path: "new",
|
|
86
86
|
element: /* @__PURE__ */ c(h, {})
|
|
87
87
|
}),
|
|
88
|
+
/* @__PURE__ */ c(d, {
|
|
89
|
+
path: "collaboration",
|
|
90
|
+
element: /* @__PURE__ */ c(T, {})
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ c(d, {
|
|
93
|
+
path: "msp",
|
|
94
|
+
element: /* @__PURE__ */ c(T, {})
|
|
95
|
+
}),
|
|
88
96
|
/* @__PURE__ */ c(d, {
|
|
89
97
|
path: "invites",
|
|
90
|
-
element: a ? /* @__PURE__ */ c(
|
|
98
|
+
element: a ? /* @__PURE__ */ c(F, {
|
|
91
99
|
to: `${o}/list`,
|
|
92
100
|
set: { tab: "invites" }
|
|
93
101
|
}) : /* @__PURE__ */ c(n, {})
|
|
94
102
|
}),
|
|
95
103
|
/* @__PURE__ */ c(d, {
|
|
96
104
|
path: "invite",
|
|
97
|
-
element: a ? /* @__PURE__ */ c(
|
|
105
|
+
element: a ? /* @__PURE__ */ c(F, {
|
|
98
106
|
to: `${o}/list`,
|
|
99
107
|
set: { dialog: "invite" }
|
|
100
|
-
}) : /* @__PURE__ */ c(
|
|
108
|
+
}) : /* @__PURE__ */ c(P, {})
|
|
101
109
|
}),
|
|
102
110
|
/* @__PURE__ */ c(d, {
|
|
103
111
|
path: "invite/:invitationId",
|
|
@@ -109,19 +117,19 @@ function I() {
|
|
|
109
117
|
}),
|
|
110
118
|
/* @__PURE__ */ c(d, {
|
|
111
119
|
path: ":workspaceId/settings",
|
|
112
|
-
element:
|
|
120
|
+
element: M("workspaces.settings", /* @__PURE__ */ c(_, {}), !0)
|
|
113
121
|
}),
|
|
114
122
|
/* @__PURE__ */ c(d, {
|
|
115
123
|
path: ":workspaceId/invite",
|
|
116
|
-
element: c(a ?
|
|
124
|
+
element: c(a ? I : w, {})
|
|
117
125
|
}),
|
|
118
126
|
/* @__PURE__ */ c(d, {
|
|
119
127
|
path: "projects",
|
|
120
|
-
element: c(a ?
|
|
128
|
+
element: c(a ? O : v, {})
|
|
121
129
|
}),
|
|
122
130
|
/* @__PURE__ */ c(d, {
|
|
123
131
|
path: ":workspaceId/projects",
|
|
124
|
-
element: c(a ?
|
|
132
|
+
element: c(a ? O : v, {})
|
|
125
133
|
}),
|
|
126
134
|
/* @__PURE__ */ c(d, {
|
|
127
135
|
path: ":workspaceId/projects/:projectId",
|
|
@@ -133,25 +141,25 @@ function I() {
|
|
|
133
141
|
}),
|
|
134
142
|
/* @__PURE__ */ c(d, {
|
|
135
143
|
path: "members",
|
|
136
|
-
element: c(a ?
|
|
144
|
+
element: c(a ? D : x, {})
|
|
137
145
|
}),
|
|
138
146
|
/* @__PURE__ */ c(d, {
|
|
139
147
|
path: ":workspaceId/members",
|
|
140
|
-
element: c(a ?
|
|
148
|
+
element: c(a ? D : x, {})
|
|
141
149
|
}),
|
|
142
150
|
/* @__PURE__ */ c(d, {
|
|
143
151
|
path: "activity",
|
|
144
|
-
element: c(a ?
|
|
152
|
+
element: c(a ? k : S, {})
|
|
145
153
|
}),
|
|
146
154
|
/* @__PURE__ */ c(d, {
|
|
147
155
|
path: ":workspaceId/activity",
|
|
148
|
-
element: c(a ?
|
|
156
|
+
element: c(a ? k : S, {})
|
|
149
157
|
}),
|
|
150
158
|
/* @__PURE__ */ c(d, {
|
|
151
159
|
path: "*",
|
|
152
|
-
element: /* @__PURE__ */ c(
|
|
160
|
+
element: /* @__PURE__ */ c(N, {})
|
|
153
161
|
})
|
|
154
162
|
] })]
|
|
155
163
|
});
|
|
156
164
|
}
|
|
157
|
-
export {
|
|
165
|
+
export { L as WorkspacesRoutes };
|