@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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The createInvitation / bulkCreateInvitations input the workspace invite
3
+ * page sends for one email. Roles and projects come from the form's access
4
+ * picker ("More options" in Navigation v2) and are applied to every invite
5
+ * sent from the page; projects ride in the invitation context so the person
6
+ * is added to them on acceptance.
7
+ */
8
+ export declare function buildInvitationPayload(workspaceId: string, email: string, roleIds: string[], projectIds: string[]): {
9
+ context?: {
10
+ type: string;
11
+ metadata: {
12
+ projectIds: string[];
13
+ };
14
+ } | undefined;
15
+ email: string;
16
+ workspaceId: string;
17
+ roleIds: string[];
18
+ };
@@ -0,0 +1,13 @@
1
+ // src/utils/invitationPayload.ts
2
+ function e(e, t, n, r) {
3
+ return {
4
+ email: t,
5
+ workspaceId: e,
6
+ roleIds: n,
7
+ ...r.length > 0 ? { context: {
8
+ type: "workspace.invitation",
9
+ metadata: { projectIds: r }
10
+ } } : {}
11
+ };
12
+ }
13
+ export { e as buildInvitationPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workspaces",
3
- "version": "2026.1114.1",
3
+ "version": "2026.1119.1",
4
4
  "description": "Workspaces microfrontend for Burdenoff products",
5
5
  "type": "module",
6
6
  "files": [
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@apollo/client": "^4.3.7",
55
- "@burdenoff/fe-libs": "2026.1113.11",
55
+ "@burdenoff/fe-libs": "2026.1119.2",
56
56
  "@radix-ui/react-icons": "^1.3.2",
57
57
  "@tanstack/react-query": "^5.107.1",
58
58
  "axios": "^1.21.0",
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@apollo/client": "^4.0.11",
97
- "@burdenoff/fe-libs": "^2026.1102.4",
97
+ "@burdenoff/fe-libs": "^2026.1119.2",
98
98
  "react": "^19.0.0",
99
99
  "react-dom": "^19.0.0",
100
100
  "zustand": "^5.0.0"