@burdenoff/microfe-workspaces 2026.1114.1 → 2026.1119.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/WorkspacesRoutes.js +56 -55
- package/dist/components/PendingInvitesRoute.d.ts +7 -0
- package/dist/components/PendingInvitesRoute.js +15 -0
- package/dist/constants/navigationV2.d.ts +12 -0
- package/dist/constants/navigationV2.js +3 -0
- package/dist/hooks/useNavigationV2.d.ts +6 -0
- package/dist/hooks/useNavigationV2.js +6 -0
- package/dist/pages/CreateWorkspacePage.js +156 -154
- package/dist/pages/InviteAcceptancePage.js +190 -180
- package/dist/pages/WorkspaceInvitePage.js +552 -449
- package/dist/utils/invitationPayload.d.ts +18 -0
- package/dist/utils/invitationPayload.js +13 -0
- package/package.json +3 -3
package/dist/WorkspacesRoutes.js
CHANGED
|
@@ -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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
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__ */
|
|
12
|
+
return /* @__PURE__ */ s("div", {
|
|
12
13
|
className: "flex items-center justify-center h-64",
|
|
13
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
18
|
+
return /* @__PURE__ */ s("div", {
|
|
18
19
|
className: "flex h-full items-center justify-center p-8 text-center",
|
|
19
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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
|
|
30
|
+
return /* @__PURE__ */ s(o, {
|
|
30
31
|
flag: e,
|
|
31
32
|
defaultValue: n,
|
|
32
|
-
fallback: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
46
|
+
return n ? /* @__PURE__ */ s(l, {
|
|
46
47
|
to: `${t}/${n}/invite`,
|
|
47
48
|
replace: !0
|
|
48
|
-
}) : /* @__PURE__ */
|
|
49
|
+
}) : /* @__PURE__ */ s(x, {});
|
|
49
50
|
}
|
|
50
51
|
function D() {
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
fallback: /* @__PURE__ */
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
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__ */
|
|
57
|
+
element: /* @__PURE__ */ s(l, {
|
|
57
58
|
to: "list",
|
|
58
59
|
replace: !0
|
|
59
60
|
})
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ s(u, {
|
|
62
63
|
path: "list",
|
|
63
|
-
element: /* @__PURE__ */
|
|
64
|
+
element: /* @__PURE__ */ s(r, {})
|
|
64
65
|
}),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ s(u, {
|
|
66
67
|
path: "new",
|
|
67
|
-
element: /* @__PURE__ */
|
|
68
|
+
element: /* @__PURE__ */ s(f, {})
|
|
68
69
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ s(u, {
|
|
70
71
|
path: "invites",
|
|
71
|
-
element: /* @__PURE__ */
|
|
72
|
+
element: /* @__PURE__ */ s(n, {})
|
|
72
73
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ s(u, {
|
|
74
75
|
path: "invite",
|
|
75
|
-
element: /* @__PURE__ */
|
|
76
|
+
element: /* @__PURE__ */ s(E, {})
|
|
76
77
|
}),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ s(u, {
|
|
78
79
|
path: "invite/:invitationId",
|
|
79
|
-
element: /* @__PURE__ */
|
|
80
|
+
element: /* @__PURE__ */ s(b, {})
|
|
80
81
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ s(u, {
|
|
82
83
|
path: ":workspaceId",
|
|
83
|
-
element: /* @__PURE__ */
|
|
84
|
+
element: /* @__PURE__ */ s(p, {})
|
|
84
85
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ s(u, {
|
|
86
87
|
path: ":workspaceId/settings",
|
|
87
|
-
element: w("workspaces.settings", /* @__PURE__ */
|
|
88
|
+
element: w("workspaces.settings", /* @__PURE__ */ s(m, {}), !0)
|
|
88
89
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ s(u, {
|
|
90
91
|
path: ":workspaceId/invite",
|
|
91
|
-
element: /* @__PURE__ */
|
|
92
|
+
element: /* @__PURE__ */ s(x, {})
|
|
92
93
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ s(u, {
|
|
94
95
|
path: "projects",
|
|
95
|
-
element: /* @__PURE__ */
|
|
96
|
+
element: /* @__PURE__ */ s(h, {})
|
|
96
97
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ s(u, {
|
|
98
99
|
path: ":workspaceId/projects",
|
|
99
|
-
element: /* @__PURE__ */
|
|
100
|
+
element: /* @__PURE__ */ s(h, {})
|
|
100
101
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ s(u, {
|
|
102
103
|
path: ":workspaceId/projects/:projectId",
|
|
103
|
-
element: /* @__PURE__ */
|
|
104
|
+
element: /* @__PURE__ */ s(g, {})
|
|
104
105
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ s(u, {
|
|
106
107
|
path: ":workspaceId/projects/:projectId/members",
|
|
107
|
-
element: /* @__PURE__ */
|
|
108
|
+
element: /* @__PURE__ */ s(_, {})
|
|
108
109
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s(u, {
|
|
110
111
|
path: "members",
|
|
111
|
-
element: /* @__PURE__ */
|
|
112
|
+
element: /* @__PURE__ */ s(v, {})
|
|
112
113
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ s(u, {
|
|
114
115
|
path: ":workspaceId/members",
|
|
115
|
-
element: /* @__PURE__ */
|
|
116
|
+
element: /* @__PURE__ */ s(v, {})
|
|
116
117
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ s(u, {
|
|
118
119
|
path: "activity",
|
|
119
|
-
element: /* @__PURE__ */
|
|
120
|
+
element: /* @__PURE__ */ s(y, {})
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ s(u, {
|
|
122
123
|
path: ":workspaceId/activity",
|
|
123
|
-
element: /* @__PURE__ */
|
|
124
|
+
element: /* @__PURE__ */ s(y, {})
|
|
124
125
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ s(u, {
|
|
126
127
|
path: "*",
|
|
127
|
-
element: /* @__PURE__ */
|
|
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,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;
|