@burdenoff/microfe-workspaces 2026.1121.1 → 2026.1123.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.
@@ -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, Users as c } from "lucide-react";
6
- import { FeatureFlagProvider as l, useFeatureFlags as u } from "@burdenoff/fe-libs/shared/feature-flags";
7
- import { useHeadingDocumentTitle as d } from "@burdenoff/fe-libs/ui";
8
- import { jsx as f } from "react/jsx-runtime";
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 p = (p) => {
11
- let { registerNavItems: m, registerFooterItems: h, basePath: g = "/" } = p, { isEnabled: _, evaluations: v } = u();
12
- d({
13
- enabled: p.variant === "fluidgrids",
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 y = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`), b = i(() => ({
17
- isEnabled: _,
18
- evaluations: v
19
- }), [v, _]);
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 (!m) return;
21
+ if (!h) return;
22
22
  let e = [
23
23
  {
24
24
  id: "workspaces-all",
25
25
  label: "All Workspaces",
26
- path: y(g, "list"),
27
- icon: /* @__PURE__ */ f(o, { size: 20 }),
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: y(g, "projects"),
35
- icon: /* @__PURE__ */ f(s, { size: 20 }),
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: y(g, "members"),
43
- icon: /* @__PURE__ */ f(c, { size: 20 }),
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: y(g, "activity"),
51
- icon: /* @__PURE__ */ f(a, { size: 20 }),
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 m(e);
64
+ return h(e);
57
65
  }, [
58
- m,
59
- g,
60
- b
66
+ h,
67
+ _,
68
+ x
61
69
  ]), r(() => {
62
- if (h) return h([{
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
- }, [h]), /* @__PURE__ */ f(l, {
77
+ }, [g]), /* @__PURE__ */ p(u, {
70
78
  workspaceId: null,
71
79
  gateway: "global",
72
80
  defaultEnabled: !0,
73
- children: /* @__PURE__ */ f(t, { children: /* @__PURE__ */ f(e, {
74
- ...p,
75
- children: /* @__PURE__ */ f(n, {})
81
+ children: /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(e, {
82
+ ...m,
83
+ children: /* @__PURE__ */ p(n, {})
76
84
  }) })
77
85
  });
78
86
  };
79
- export { p as WorkspacesRoot };
87
+ export { m as WorkspacesRoot };
@@ -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 }))), E = a(() => import("./pages/v2/MembersPage.js").then((e) => ({ default: e.MembersPageV2 }))), D = a(() => import("./pages/v2/ProjectsPage.js").then((e) => ({ default: e.ProjectsPageV2 }))), O = a(() => import("./pages/v2/ActivityPage.js").then((e) => ({ default: e.ActivityPageV2 })));
12
- function k() {
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 A() {
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 j(e, t, n = !1) {
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(A, {}),
34
+ fallback: /* @__PURE__ */ c(j, {}),
35
35
  children: t
36
36
  });
37
37
  }
38
- function M() {
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 N() {
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 P({ to: e, set: t }) {
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 F() {
61
+ function I() {
62
62
  let { basePath: t = "/workspaces" } = e(), { workspaceId: n } = m();
63
- return /* @__PURE__ */ c(P, {
63
+ return /* @__PURE__ */ c(F, {
64
64
  to: `${t}/${n}/members`,
65
65
  set: { dialog: "invite" }
66
66
  });
67
67
  }
68
- function I() {
68
+ function L() {
69
69
  let a = s(), { basePath: o = "/workspaces" } = e();
70
70
  return /* @__PURE__ */ l(i, {
71
- fallback: /* @__PURE__ */ c(k, {}),
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(P, { to: `${o}/list` }) : /* @__PURE__ */ c(u, {
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 ? T : r, {})
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(P, {
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(P, {
105
+ element: a ? /* @__PURE__ */ c(F, {
98
106
  to: `${o}/list`,
99
107
  set: { dialog: "invite" }
100
- }) : /* @__PURE__ */ c(N, {})
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: j("workspaces.settings", /* @__PURE__ */ c(_, {}), !0)
120
+ element: M("workspaces.settings", /* @__PURE__ */ c(_, {}), !0)
113
121
  }),
114
122
  /* @__PURE__ */ c(d, {
115
123
  path: ":workspaceId/invite",
116
- element: c(a ? F : w, {})
124
+ element: c(a ? I : w, {})
117
125
  }),
118
126
  /* @__PURE__ */ c(d, {
119
127
  path: "projects",
120
- element: c(a ? D : v, {})
128
+ element: c(a ? O : v, {})
121
129
  }),
122
130
  /* @__PURE__ */ c(d, {
123
131
  path: ":workspaceId/projects",
124
- element: c(a ? D : v, {})
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 ? E : x, {})
144
+ element: c(a ? D : x, {})
137
145
  }),
138
146
  /* @__PURE__ */ c(d, {
139
147
  path: ":workspaceId/members",
140
- element: c(a ? E : x, {})
148
+ element: c(a ? D : x, {})
141
149
  }),
142
150
  /* @__PURE__ */ c(d, {
143
151
  path: "activity",
144
- element: c(a ? O : S, {})
152
+ element: c(a ? k : S, {})
145
153
  }),
146
154
  /* @__PURE__ */ c(d, {
147
155
  path: ":workspaceId/activity",
148
- element: c(a ? O : S, {})
156
+ element: c(a ? k : S, {})
149
157
  }),
150
158
  /* @__PURE__ */ c(d, {
151
159
  path: "*",
152
- element: /* @__PURE__ */ c(M, {})
160
+ element: /* @__PURE__ */ c(N, {})
153
161
  })
154
162
  ] })]
155
163
  });
156
164
  }
157
- export { I as WorkspacesRoutes };
165
+ export { L as WorkspacesRoutes };