@burdenoff/microfe-workspaces 2026.1114.1 → 2026.1114.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.
@@ -1,130 +1,131 @@
1
1
  import { useWorkspacesContext as e } from "./providers/WorkspacesProvider.js";
2
2
  import { WorkspaceContextPathSync as t } from "./components/WorkspaceContextPathSync.js";
3
- import { WorkspacesListPage as n } from "./pages/WorkspacesListPage.js";
4
- import { Suspense as r, lazy as i } from "react";
5
- import { FeatureGate as a } from "@burdenoff/fe-libs/shared/feature-flags";
6
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { Navigate as c, Route as l, Routes as u } from "react-router";
3
+ import { PendingInvitesRoute as n } from "./components/PendingInvitesRoute.js";
4
+ import { WorkspacesListPage as r } from "./pages/WorkspacesListPage.js";
5
+ import { Suspense as i, lazy as a } from "react";
6
+ import { FeatureGate as o } from "@burdenoff/fe-libs/shared/feature-flags";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { Navigate as l, Route as u, Routes as d } from "react-router";
8
9
  // src/WorkspacesRoutes.tsx
9
- var d = i(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), f = i(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), p = i(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), m = i(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), h = i(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), g = i(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), _ = i(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), v = i(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), y = i(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), b = i(() => import("./pages/PendingInvitesPage.js").then((e) => ({ default: e.PendingInvitesPage }))), x = i(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage })));
10
+ var f = a(() => import("./pages/CreateWorkspacePage.js").then((e) => ({ default: e.CreateWorkspacePage }))), p = a(() => import("./pages/WorkspaceDetailPage.js").then((e) => ({ default: e.WorkspaceDetailPage }))), m = a(() => import("./pages/WorkspaceSettingsPage.js").then((e) => ({ default: e.WorkspaceSettingsPage }))), h = a(() => import("./pages/ProjectsListPage.js").then((e) => ({ default: e.ProjectsListPage }))), g = a(() => import("./pages/ProjectDetailPage.js").then((e) => ({ default: e.ProjectDetailPage }))), _ = a(() => import("./pages/ProjectMembersPage.js").then((e) => ({ default: e.ProjectMembersPage }))), v = a(() => import("./pages/MembersListPage.js").then((e) => ({ default: e.MembersListPage }))), y = a(() => import("./pages/ActivityListPage.js").then((e) => ({ default: e.ActivityListPage }))), b = a(() => import("./pages/InviteAcceptancePage.js").then((e) => ({ default: e.InviteAcceptancePage }))), x = a(() => import("./pages/WorkspaceInvitePage.js").then((e) => ({ default: e.WorkspaceInvitePage })));
10
11
  function S() {
11
- return /* @__PURE__ */ o("div", {
12
+ return /* @__PURE__ */ s("div", {
12
13
  className: "flex items-center justify-center h-64",
13
- children: /* @__PURE__ */ o("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
14
+ children: /* @__PURE__ */ s("div", { className: "animate-spin rounded-full size-8 border-b-2 border-primary" })
14
15
  });
15
16
  }
16
17
  function C() {
17
- return /* @__PURE__ */ o("div", {
18
+ return /* @__PURE__ */ s("div", {
18
19
  className: "flex h-full items-center justify-center p-8 text-center",
19
- children: /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h2", {
20
+ children: /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h2", {
20
21
  className: "text-lg font-semibold mb-2 text-text-primary",
21
22
  children: "Feature Not Available"
22
- }), /* @__PURE__ */ o("p", {
23
+ }), /* @__PURE__ */ s("p", {
23
24
  className: "text-sm text-text-secondary",
24
25
  children: "This feature is not currently available. Enable it under Feature Previews to access this functionality."
25
26
  })] })
26
27
  });
27
28
  }
28
29
  function w(e, t, n = !1) {
29
- return /* @__PURE__ */ o(a, {
30
+ return /* @__PURE__ */ s(o, {
30
31
  flag: e,
31
32
  defaultValue: n,
32
- fallback: /* @__PURE__ */ o(C, {}),
33
+ fallback: /* @__PURE__ */ s(C, {}),
33
34
  children: t
34
35
  });
35
36
  }
36
37
  function T() {
37
38
  let { basePath: t = "/workspaces" } = e();
38
- return /* @__PURE__ */ o(c, {
39
+ return /* @__PURE__ */ s(l, {
39
40
  to: `${t}/list`,
40
41
  replace: !0
41
42
  });
42
43
  }
43
44
  function E() {
44
45
  let { basePath: t = "/workspaces", workspaceId: n } = e();
45
- return n ? /* @__PURE__ */ o(c, {
46
+ return n ? /* @__PURE__ */ s(l, {
46
47
  to: `${t}/${n}/invite`,
47
48
  replace: !0
48
- }) : /* @__PURE__ */ o(x, {});
49
+ }) : /* @__PURE__ */ s(x, {});
49
50
  }
50
51
  function D() {
51
- return /* @__PURE__ */ s(r, {
52
- fallback: /* @__PURE__ */ o(S, {}),
53
- children: [/* @__PURE__ */ o(t, {}), /* @__PURE__ */ s(u, { children: [
54
- /* @__PURE__ */ o(l, {
52
+ return /* @__PURE__ */ c(i, {
53
+ fallback: /* @__PURE__ */ s(S, {}),
54
+ children: [/* @__PURE__ */ s(t, {}), /* @__PURE__ */ c(d, { children: [
55
+ /* @__PURE__ */ s(u, {
55
56
  index: !0,
56
- element: /* @__PURE__ */ o(c, {
57
+ element: /* @__PURE__ */ s(l, {
57
58
  to: "list",
58
59
  replace: !0
59
60
  })
60
61
  }),
61
- /* @__PURE__ */ o(l, {
62
+ /* @__PURE__ */ s(u, {
62
63
  path: "list",
63
- element: /* @__PURE__ */ o(n, {})
64
+ element: /* @__PURE__ */ s(r, {})
64
65
  }),
65
- /* @__PURE__ */ o(l, {
66
+ /* @__PURE__ */ s(u, {
66
67
  path: "new",
67
- element: /* @__PURE__ */ o(d, {})
68
+ element: /* @__PURE__ */ s(f, {})
68
69
  }),
69
- /* @__PURE__ */ o(l, {
70
+ /* @__PURE__ */ s(u, {
70
71
  path: "invites",
71
- element: /* @__PURE__ */ o(b, {})
72
+ element: /* @__PURE__ */ s(n, {})
72
73
  }),
73
- /* @__PURE__ */ o(l, {
74
+ /* @__PURE__ */ s(u, {
74
75
  path: "invite",
75
- element: /* @__PURE__ */ o(E, {})
76
+ element: /* @__PURE__ */ s(E, {})
76
77
  }),
77
- /* @__PURE__ */ o(l, {
78
+ /* @__PURE__ */ s(u, {
78
79
  path: "invite/:invitationId",
79
- element: /* @__PURE__ */ o(y, {})
80
+ element: /* @__PURE__ */ s(b, {})
80
81
  }),
81
- /* @__PURE__ */ o(l, {
82
+ /* @__PURE__ */ s(u, {
82
83
  path: ":workspaceId",
83
- element: /* @__PURE__ */ o(f, {})
84
+ element: /* @__PURE__ */ s(p, {})
84
85
  }),
85
- /* @__PURE__ */ o(l, {
86
+ /* @__PURE__ */ s(u, {
86
87
  path: ":workspaceId/settings",
87
- element: w("workspaces.settings", /* @__PURE__ */ o(p, {}), !0)
88
+ element: w("workspaces.settings", /* @__PURE__ */ s(m, {}), !0)
88
89
  }),
89
- /* @__PURE__ */ o(l, {
90
+ /* @__PURE__ */ s(u, {
90
91
  path: ":workspaceId/invite",
91
- element: /* @__PURE__ */ o(x, {})
92
+ element: /* @__PURE__ */ s(x, {})
92
93
  }),
93
- /* @__PURE__ */ o(l, {
94
+ /* @__PURE__ */ s(u, {
94
95
  path: "projects",
95
- element: /* @__PURE__ */ o(m, {})
96
+ element: /* @__PURE__ */ s(h, {})
96
97
  }),
97
- /* @__PURE__ */ o(l, {
98
+ /* @__PURE__ */ s(u, {
98
99
  path: ":workspaceId/projects",
99
- element: /* @__PURE__ */ o(m, {})
100
+ element: /* @__PURE__ */ s(h, {})
100
101
  }),
101
- /* @__PURE__ */ o(l, {
102
+ /* @__PURE__ */ s(u, {
102
103
  path: ":workspaceId/projects/:projectId",
103
- element: /* @__PURE__ */ o(h, {})
104
+ element: /* @__PURE__ */ s(g, {})
104
105
  }),
105
- /* @__PURE__ */ o(l, {
106
+ /* @__PURE__ */ s(u, {
106
107
  path: ":workspaceId/projects/:projectId/members",
107
- element: /* @__PURE__ */ o(g, {})
108
+ element: /* @__PURE__ */ s(_, {})
108
109
  }),
109
- /* @__PURE__ */ o(l, {
110
+ /* @__PURE__ */ s(u, {
110
111
  path: "members",
111
- element: /* @__PURE__ */ o(_, {})
112
+ element: /* @__PURE__ */ s(v, {})
112
113
  }),
113
- /* @__PURE__ */ o(l, {
114
+ /* @__PURE__ */ s(u, {
114
115
  path: ":workspaceId/members",
115
- element: /* @__PURE__ */ o(_, {})
116
+ element: /* @__PURE__ */ s(v, {})
116
117
  }),
117
- /* @__PURE__ */ o(l, {
118
+ /* @__PURE__ */ s(u, {
118
119
  path: "activity",
119
- element: /* @__PURE__ */ o(v, {})
120
+ element: /* @__PURE__ */ s(y, {})
120
121
  }),
121
- /* @__PURE__ */ o(l, {
122
+ /* @__PURE__ */ s(u, {
122
123
  path: ":workspaceId/activity",
123
- element: /* @__PURE__ */ o(v, {})
124
+ element: /* @__PURE__ */ s(y, {})
124
125
  }),
125
- /* @__PURE__ */ o(l, {
126
+ /* @__PURE__ */ s(u, {
126
127
  path: "*",
127
- element: /* @__PURE__ */ o(T, {})
128
+ element: /* @__PURE__ */ s(T, {})
128
129
  })
129
130
  ] })]
130
131
  });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * `/workspaces/invites`. With Navigation v2 (FluidGrids) it opens the one My
3
+ * invites inbox, where workspace and organization invites are listed
4
+ * together, keeping the query string (BOFF-11855). Every other app keeps this
5
+ * module's own pending-invites list.
6
+ */
7
+ export declare function PendingInvitesRoute(): import('react').JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { useNavigationV2 as e } from "../hooks/useNavigationV2.js";
2
+ import { NAVIGATION_V2_MY_INVITES_PATH as t } from "../constants/navigationV2.js";
3
+ import { lazy as n } from "react";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { Navigate as i, useLocation as a } from "react-router";
6
+ // src/components/PendingInvitesRoute.tsx
7
+ var o = n(() => import("../pages/PendingInvitesPage.js").then((e) => ({ default: e.PendingInvitesPage })));
8
+ function s() {
9
+ let n = e(), { search: s } = a();
10
+ return n ? /* @__PURE__ */ r(i, {
11
+ to: `${t}${s}`,
12
+ replace: !0
13
+ }) : /* @__PURE__ */ r(o, {});
14
+ }
15
+ export { s as PendingInvitesRoute };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Where Navigation v2 (FluidGrids) keeps the one My invites inbox:
3
+ * microfe-organization, which FluidGrids mounts at `/organizations`, lists
4
+ * organization and workspace invites together there (BOFF-11855).
5
+ */
6
+ export declare const NAVIGATION_V2_MY_INVITES_PATH = "/organizations/invites";
7
+ /**
8
+ * The Invite People chooser of microfe-organization: lists the organizations
9
+ * you can invite into. Navigation v2 keeps it one click away from the
10
+ * workspace invite form.
11
+ */
12
+ export declare const NAVIGATION_V2_ORGANIZATION_INVITE_PATH = "/organizations/invite";
@@ -0,0 +1,3 @@
1
+ // src/constants/navigationV2.ts
2
+ var e = "/organizations/invites", t = "/organizations/invite";
3
+ export { e as NAVIGATION_V2_MY_INVITES_PATH, t as NAVIGATION_V2_ORGANIZATION_INVITE_PATH };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * True when the host opted in to the FluidGrids Navigation v2 design
3
+ * (`variant="fluidgrids"`). The invite pages (BOFF-11855) read it through this
4
+ * hook so their tests can switch it without mocking the provider.
5
+ */
6
+ export declare function useNavigationV2(): boolean;
@@ -0,0 +1,6 @@
1
+ import { useIsFluidGridsVariant as e } from "../providers/WorkspacesProvider.js";
2
+ // src/hooks/useNavigationV2.ts
3
+ function t() {
4
+ return e();
5
+ }
6
+ export { t as useNavigationV2 };