@burdenoff/microfe-workspaces 2026.1113.1 → 2026.1114.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.
Files changed (51) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/components/CreateProjectDialog.js +81 -78
  3. package/dist/components/CreateWorkspaceDialog.js +41 -41
  4. package/dist/components/InviteMemberDialog.js +54 -54
  5. package/dist/components/MemberListItem.js +53 -53
  6. package/dist/components/ProjectCard.js +82 -82
  7. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  8. package/dist/components/RenameProjectDialog.js +16 -16
  9. package/dist/components/WorkspaceCard.js +18 -18
  10. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  11. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  12. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +15 -14
  15. package/dist/pages/ActivityListPage.js +30 -30
  16. package/dist/pages/CreateWorkspacePage.js +205 -173
  17. package/dist/pages/InviteAcceptancePage.js +201 -201
  18. package/dist/pages/MembersListPage.js +165 -164
  19. package/dist/pages/PendingInvitesPage.js +67 -67
  20. package/dist/pages/ProjectDetailPage.js +297 -272
  21. package/dist/pages/ProjectMembersPage.js +59 -59
  22. package/dist/pages/ProjectsListPage.js +275 -244
  23. package/dist/pages/WorkspaceDetailPage.js +175 -172
  24. package/dist/pages/WorkspaceInvitePage.js +298 -298
  25. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  26. package/dist/pages/WorkspacesListPage.js +55 -55
  27. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  28. package/dist/pages/dashboard/DashboardPage.js +35 -35
  29. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  30. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  31. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  32. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  33. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  34. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  35. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  36. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  37. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  38. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  39. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  40. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  41. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  42. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  43. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  44. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  45. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  46. package/dist/providers/WorkspacesProvider.js +2 -2
  47. package/dist/types/index.d.ts +11 -1
  48. package/dist/utils/createForms.d.ts +21 -0
  49. package/dist/utils/createForms.js +20 -0
  50. package/dist/utils/index.d.ts +1 -0
  51. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, CheckCircle2 as r, GitBranch as i, Pause as a, Play as o, XCircle as s } from "lucide-react";
4
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
- import { Badge as u, Button as d, IllustratedEmptyState as f } from "@burdenoff/fe-libs/ui";
4
+ import { Badge as c, Button as l, IllustratedEmptyState as u } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
6
  import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/WorkflowStatsWidget.tsx
8
8
  var m = {
@@ -25,13 +25,13 @@ var m = {
25
25
  };
26
26
  function h({ workspaceData: r, isLoading: a, navigate: o }) {
27
27
  let { t: s } = p(), h = r?.workflowStats;
28
- return /* @__PURE__ */ c(e, {
28
+ return /* @__PURE__ */ d(e, {
29
29
  title: t(s, "dashboard.workflowStats.title", "Workflows"),
30
- icon: /* @__PURE__ */ c(i, { className: "size-4" }),
30
+ icon: /* @__PURE__ */ d(i, { className: "size-4" }),
31
31
  size: "medium",
32
32
  isLoading: a,
33
33
  unavailable: !r,
34
- headerAction: /* @__PURE__ */ l(d, {
34
+ headerAction: /* @__PURE__ */ f(l, {
35
35
  variant: "ghost",
36
36
  size: "sm",
37
37
  className: "text-xs",
@@ -39,48 +39,48 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
39
39
  children: [
40
40
  t(s, "dashboard.workflowStats.viewAll", "View all"),
41
41
  " ",
42
- /* @__PURE__ */ c(n, { className: "ml-1 size-3" })
42
+ /* @__PURE__ */ d(n, { className: "ml-1 size-3" })
43
43
  ]
44
44
  }),
45
- children: h ? /* @__PURE__ */ l("div", {
45
+ children: h ? /* @__PURE__ */ f("div", {
46
46
  className: "space-y-3",
47
- children: [/* @__PURE__ */ l("div", {
47
+ children: [/* @__PURE__ */ f("div", {
48
48
  className: "grid grid-cols-2 gap-3",
49
- children: [/* @__PURE__ */ l("div", {
49
+ children: [/* @__PURE__ */ f("div", {
50
50
  className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
51
- children: [/* @__PURE__ */ c("p", {
51
+ children: [/* @__PURE__ */ d("p", {
52
52
  className: "text-2xl font-bold text-text-primary tabular-nums",
53
53
  children: h.activeWorkflowsCount
54
- }), /* @__PURE__ */ c("p", {
54
+ }), /* @__PURE__ */ d("p", {
55
55
  className: "text-xs text-text-secondary",
56
56
  children: t(s, "dashboard.workflowStats.statActive", "Active")
57
57
  })]
58
- }), /* @__PURE__ */ l("div", {
58
+ }), /* @__PURE__ */ f("div", {
59
59
  className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
60
- children: [/* @__PURE__ */ c("p", {
60
+ children: [/* @__PURE__ */ d("p", {
61
61
  className: "text-2xl font-bold text-text-primary tabular-nums",
62
62
  children: h.archivedWorkflowsCount
63
- }), /* @__PURE__ */ c("p", {
63
+ }), /* @__PURE__ */ d("p", {
64
64
  className: "text-xs text-text-secondary",
65
65
  children: t(s, "dashboard.workflowStats.statArchived", "Archived")
66
66
  })]
67
67
  })]
68
- }), h.recentRuns.length > 0 && /* @__PURE__ */ l("div", {
68
+ }), h.recentRuns.length > 0 && /* @__PURE__ */ f("div", {
69
69
  className: "space-y-1.5",
70
- children: [/* @__PURE__ */ c("p", {
70
+ children: [/* @__PURE__ */ d("p", {
71
71
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
72
72
  children: t(s, "dashboard.workflowStats.recentRunsHeading", "Recent Runs")
73
73
  }), h.recentRuns.slice(0, 3).map((e) => {
74
74
  let t = m[e.status] || m.RUNNING, n = t.icon;
75
- return /* @__PURE__ */ l("div", {
75
+ return /* @__PURE__ */ f("div", {
76
76
  className: "flex items-center justify-between p-1.5 rounded hover:bg-accent/5 transition-colors",
77
- children: [/* @__PURE__ */ l("div", {
77
+ children: [/* @__PURE__ */ f("div", {
78
78
  className: "flex items-center gap-2 min-w-0",
79
- children: [/* @__PURE__ */ c(n, { className: `size-3.5 ${t.color}` }), /* @__PURE__ */ c("span", {
79
+ children: [/* @__PURE__ */ d(n, { className: `size-3.5 ${t.color}` }), /* @__PURE__ */ d("span", {
80
80
  className: "text-sm text-text-primary truncate",
81
81
  children: e.workflowKey
82
82
  })]
83
- }), /* @__PURE__ */ c(u, {
83
+ }), /* @__PURE__ */ d(c, {
84
84
  variant: "outline",
85
85
  className: "text-[10px]",
86
86
  children: e.status
@@ -88,7 +88,7 @@ function h({ workspaceData: r, isLoading: a, navigate: o }) {
88
88
  }, e.id);
89
89
  })]
90
90
  })]
91
- }) : /* @__PURE__ */ c(f, {
91
+ }) : /* @__PURE__ */ d(u, {
92
92
  illustration: "empty-data",
93
93
  title: t(s, "dashboard.workflowStats.emptyTitle", "No workflow data available"),
94
94
  description: t(s, "dashboard.workflowStats.emptyDescription", "Once you run automations, their status and counts will appear here."),
@@ -1,8 +1,8 @@
1
1
  import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { ArrowRight as n, GitBranch as r, Plus as i } from "lucide-react";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
- import { Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
4
+ import { Button as a, IllustratedEmptyState as o } from "@burdenoff/fe-libs/ui";
5
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
6
6
  import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
7
  // src/pages/dashboard/widgets/WorkflowsOverviewWidget.tsx
8
8
  function u(e, n) {
@@ -19,13 +19,13 @@ function u(e, n) {
19
19
  }
20
20
  function d({ workspaceData: d, isLoading: f, navigate: p }) {
21
21
  let { t: m } = l(), h = d?.workflowStats, g = h?.recentWorkflows ?? [];
22
- return /* @__PURE__ */ a(e, {
22
+ return /* @__PURE__ */ s(e, {
23
23
  title: t(m, "dashboard.workflowsOverview.title", "Workflows"),
24
- icon: /* @__PURE__ */ a(r, { className: "size-4" }),
24
+ icon: /* @__PURE__ */ s(r, { className: "size-4" }),
25
25
  size: "medium",
26
26
  isLoading: f,
27
27
  unavailable: !d,
28
- headerAction: /* @__PURE__ */ o(s, {
28
+ headerAction: /* @__PURE__ */ c(a, {
29
29
  variant: "ghost",
30
30
  size: "sm",
31
31
  className: "text-xs",
@@ -33,61 +33,61 @@ function d({ workspaceData: d, isLoading: f, navigate: p }) {
33
33
  children: [
34
34
  t(m, "dashboard.workflowsOverview.viewAll", "View all"),
35
35
  " ",
36
- /* @__PURE__ */ a(n, { className: "ml-1 size-3" })
36
+ /* @__PURE__ */ s(n, { className: "ml-1 size-3" })
37
37
  ]
38
38
  }),
39
- children: h ? /* @__PURE__ */ o("div", {
39
+ children: h ? /* @__PURE__ */ c("div", {
40
40
  className: "space-y-3",
41
- children: [/* @__PURE__ */ o("div", {
41
+ children: [/* @__PURE__ */ c("div", {
42
42
  className: "grid grid-cols-2 gap-3",
43
- children: [/* @__PURE__ */ o("div", {
43
+ children: [/* @__PURE__ */ c("div", {
44
44
  className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
45
- children: [/* @__PURE__ */ a("p", {
45
+ children: [/* @__PURE__ */ s("p", {
46
46
  className: "text-2xl font-bold text-text-primary tabular-nums",
47
47
  children: h.activeWorkflowsCount
48
- }), /* @__PURE__ */ a("p", {
48
+ }), /* @__PURE__ */ s("p", {
49
49
  className: "text-xs text-text-secondary",
50
50
  children: t(m, "dashboard.workflowsOverview.statActive", "Active")
51
51
  })]
52
- }), /* @__PURE__ */ o("div", {
52
+ }), /* @__PURE__ */ c("div", {
53
53
  className: "rounded-lg bg-bg-canvas p-3 border border-border-default text-center",
54
- children: [/* @__PURE__ */ a("p", {
54
+ children: [/* @__PURE__ */ s("p", {
55
55
  className: "text-2xl font-bold text-text-primary tabular-nums",
56
56
  children: h.archivedWorkflowsCount
57
- }), /* @__PURE__ */ a("p", {
57
+ }), /* @__PURE__ */ s("p", {
58
58
  className: "text-xs text-text-secondary",
59
59
  children: t(m, "dashboard.workflowsOverview.statArchived", "Archived")
60
60
  })]
61
61
  })]
62
- }), g.length > 0 && /* @__PURE__ */ o("div", {
62
+ }), g.length > 0 && /* @__PURE__ */ c("div", {
63
63
  className: "space-y-1.5",
64
- children: [/* @__PURE__ */ a("p", {
64
+ children: [/* @__PURE__ */ s("p", {
65
65
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
66
66
  children: t(m, "dashboard.workflowsOverview.recentlyUpdatedHeading", "Recently Updated")
67
- }), g.slice(0, 4).map((e) => /* @__PURE__ */ o("button", {
67
+ }), g.slice(0, 4).map((e) => /* @__PURE__ */ c("button", {
68
68
  type: "button",
69
69
  onClick: () => p(`/workflows/workflow/${e.workflowKey}/${e.version}`),
70
70
  className: "flex w-full items-center justify-between gap-2 rounded-md p-1.5 text-left transition-colors hover:bg-accent/5",
71
- children: [/* @__PURE__ */ a("span", {
71
+ children: [/* @__PURE__ */ s("span", {
72
72
  className: "truncate text-sm text-text-primary",
73
73
  children: e.name
74
- }), /* @__PURE__ */ a("span", {
74
+ }), /* @__PURE__ */ s("span", {
75
75
  className: "shrink-0 text-[11px] text-text-secondary",
76
76
  children: u(m, e.updatedAt)
77
77
  })]
78
78
  }, `${e.workflowKey}-${e.version}`))]
79
79
  })]
80
- }) : /* @__PURE__ */ a(c, {
80
+ }) : /* @__PURE__ */ s(o, {
81
81
  illustration: "empty-data",
82
82
  title: t(m, "dashboard.workflowsOverview.emptyTitle", "No workflows yet"),
83
83
  description: t(m, "dashboard.workflowsOverview.emptyDescription", "Build your first workflow to automate a process."),
84
84
  className: "py-4",
85
- action: /* @__PURE__ */ o(s, {
85
+ action: /* @__PURE__ */ c(a, {
86
86
  variant: "outline",
87
87
  size: "sm",
88
88
  onClick: () => p("/workflows/new"),
89
89
  children: [
90
- /* @__PURE__ */ a(i, { className: "mr-1.5 size-3.5" }),
90
+ /* @__PURE__ */ s(i, { className: "mr-1.5 size-3.5" }),
91
91
  " ",
92
92
  t(m, "dashboard.workflowsOverview.emptyAction", "New Workflow")
93
93
  ]
@@ -2,9 +2,9 @@ import { WidgetWrapper as e } from "../WidgetWrapper.js";
2
2
  import { tWithFallback as t } from "../../../utils/i18n.js";
3
3
  import { commitWorkspaceSelection as n } from "../../../hooks/useOpenWorkspace.js";
4
4
  import { ArrowRight as r, Building2 as i, Circle as a } from "lucide-react";
5
- import { useActiveContext as o } from "@burdenoff/fe-libs/shared/providers/shell";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- import { Badge as l, Button as u, IllustratedEmptyState as d } from "@burdenoff/fe-libs/ui";
5
+ import { Badge as o, Button as s, IllustratedEmptyState as c } from "@burdenoff/fe-libs/ui";
6
+ import { useActiveContext as l } from "@burdenoff/fe-libs/shared/providers/shell";
7
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
8
  import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
9
  // src/pages/dashboard/widgets/WorkspacesWidget.tsx
10
10
  var p = {
@@ -13,7 +13,7 @@ var p = {
13
13
  ARCHIVED: "bg-text-tertiary"
14
14
  };
15
15
  function m({ workspaceData: m, isLoading: h, navigate: g }) {
16
- let { t: _ } = f(), v = m?.workspaces.items ?? [], y = m?.workspaces.total ?? 0, { setOrganization: b, setWorkspace: x, setProject: S, setTenant: C } = o(), w = (e) => {
16
+ let { t: _ } = f(), v = m?.workspaces.items ?? [], y = m?.workspaces.total ?? 0, { setOrganization: b, setWorkspace: x, setProject: S, setTenant: C } = l(), w = (e) => {
17
17
  n({
18
18
  setOrganization: b,
19
19
  setWorkspace: x,
@@ -21,13 +21,13 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
21
21
  setTenant: C
22
22
  }, e), g(`/workspaces/${e.id}`);
23
23
  };
24
- return /* @__PURE__ */ s(e, {
24
+ return /* @__PURE__ */ u(e, {
25
25
  title: t(_, "dashboard.workspaces.title", "Workspaces"),
26
- icon: /* @__PURE__ */ s(i, { className: "size-4" }),
26
+ icon: /* @__PURE__ */ u(i, { className: "size-4" }),
27
27
  size: "medium",
28
28
  isLoading: h,
29
29
  unavailable: !m,
30
- headerAction: /* @__PURE__ */ c(u, {
30
+ headerAction: /* @__PURE__ */ d(s, {
31
31
  variant: "ghost",
32
32
  size: "sm",
33
33
  className: "text-xs",
@@ -35,37 +35,37 @@ function m({ workspaceData: m, isLoading: h, navigate: g }) {
35
35
  children: [
36
36
  t(_, "dashboard.workspaces.viewAll", "View all"),
37
37
  " ",
38
- /* @__PURE__ */ s(r, { className: "ml-1 size-3" })
38
+ /* @__PURE__ */ u(r, { className: "ml-1 size-3" })
39
39
  ]
40
40
  }),
41
- children: v.length === 0 ? /* @__PURE__ */ s(d, {
41
+ children: v.length === 0 ? /* @__PURE__ */ u(c, {
42
42
  illustration: "empty-data",
43
43
  title: t(_, "dashboard.workspaces.emptyTitle", "No workspaces yet"),
44
44
  className: "py-4",
45
- action: /* @__PURE__ */ s(u, {
45
+ action: /* @__PURE__ */ u(s, {
46
46
  variant: "outline",
47
47
  size: "sm",
48
48
  onClick: () => g("/workspaces/list"),
49
49
  children: t(_, "dashboard.workspaces.emptyAction", "Create your first workspace")
50
50
  })
51
- }) : /* @__PURE__ */ c("div", {
51
+ }) : /* @__PURE__ */ d("div", {
52
52
  className: "space-y-2",
53
- children: [v.slice(0, 5).map((e) => /* @__PURE__ */ c("button", {
53
+ children: [v.slice(0, 5).map((e) => /* @__PURE__ */ d("button", {
54
54
  type: "button",
55
55
  className: "w-full flex items-center justify-between p-2 rounded-md hover:bg-accent/5 cursor-pointer transition-colors text-left",
56
56
  onClick: () => w(e),
57
- children: [/* @__PURE__ */ c("div", {
57
+ children: [/* @__PURE__ */ d("div", {
58
58
  className: "flex items-center gap-2 min-w-0",
59
- children: [/* @__PURE__ */ s(a, { className: `size-2 ${p[e.status] || "bg-text-tertiary"} fill-current ${e.status === "ACTIVE" ? "motion-safe:animate-vc-glow-pulse" : ""}` }), /* @__PURE__ */ s("span", {
59
+ children: [/* @__PURE__ */ u(a, { className: `size-2 ${p[e.status] || "bg-text-tertiary"} fill-current ${e.status === "ACTIVE" ? "motion-safe:animate-vc-glow-pulse" : ""}` }), /* @__PURE__ */ u("span", {
60
60
  className: "text-sm font-medium text-text-primary truncate",
61
61
  children: e.name
62
62
  })]
63
- }), /* @__PURE__ */ s(l, {
63
+ }), /* @__PURE__ */ u(o, {
64
64
  variant: "outline",
65
65
  className: "text-[10px] shrink-0",
66
66
  children: e.type
67
67
  })]
68
- }, e.id)), y > 5 && /* @__PURE__ */ s("p", {
68
+ }, e.id)), y > 5 && /* @__PURE__ */ u("p", {
69
69
  className: "text-xs text-text-secondary text-center pt-1",
70
70
  children: t(_, "dashboard.workspaces.more", "+{count} more workspaces", { count: y - 5 })
71
71
  })]
@@ -4,6 +4,11 @@ import { WorkspacesRootProps } from '../types';
4
4
  * Hook to access Workspaces context
5
5
  */
6
6
  export declare const useWorkspacesContext: () => WorkspacesRootProps;
7
+ /**
8
+ * True when the host opted into the FluidGrids page design (BOFF-11854).
9
+ * Everything gated on it must leave the default design untouched.
10
+ */
11
+ export declare const useIsFluidGridsVariant: () => boolean;
7
12
  /**
8
13
  * Provider component for Workspaces microfrontend
9
14
  * Sets up context and dependencies including permission management
@@ -6,7 +6,7 @@ var i = e(null), a = () => {
6
6
  let e = t(i);
7
7
  if (!e) throw Error("useWorkspacesContext must be used within WorkspacesProvider");
8
8
  return e;
9
- }, o = ({ children: e, ...t }) => {
9
+ }, o = () => t(i)?.variant === "fluidgrids", s = ({ children: e, ...t }) => {
10
10
  let a = { ...t };
11
11
  return /* @__PURE__ */ r(i.Provider, {
12
12
  value: a,
@@ -18,4 +18,4 @@ var i = e(null), a = () => {
18
18
  })
19
19
  });
20
20
  };
21
- export { o as WorkspacesProvider, a as useWorkspacesContext };
21
+ export { s as WorkspacesProvider, o as useIsFluidGridsVariant, a as useWorkspacesContext };
@@ -24,7 +24,17 @@ export interface WorkspacesRootProps extends MicrofrontendRootProps {
24
24
  registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
25
25
  onWorkspaceCreate?: (workspace: Workspace) => void;
26
26
  onProjectCreate?: (project: Project) => void;
27
- }
27
+ /**
28
+ * Opt-in page design for one host app (BOFF-11854). `'fluidgrids'` turns on
29
+ * the FluidGrids Navigation v2 layout: short create forms with "More
30
+ * options", technical IDs behind "Show technical details", plainer
31
+ * confirmations and one tab title per page. Left out (or `'default'`), every
32
+ * page looks and behaves exactly as before.
33
+ */
34
+ variant?: WorkspacesVariant;
35
+ }
36
+ /** Page design variant of the Workspaces module; see `WorkspacesRootProps.variant`. */
37
+ export type WorkspacesVariant = 'default' | 'fluidgrids';
28
38
  export type WorkspaceType = 'workspace' | 'user';
29
39
  export type WorkspaceStatus = 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED' | 'DELETED';
30
40
  export type ProjectStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED';
@@ -0,0 +1,21 @@
1
+ import { CreateProjectInput, CreateWorkspaceInput } from '../types';
2
+ export interface CreateWorkspaceFormValues {
3
+ name: string;
4
+ slug: string;
5
+ tenantId: string;
6
+ organizationId: string;
7
+ }
8
+ /** The `createWorkspace` input for the create-workspace form's values. */
9
+ export declare function buildCreateWorkspaceInput(values: CreateWorkspaceFormValues): CreateWorkspaceInput;
10
+ export interface CreateProjectFormValues {
11
+ name: string;
12
+ key: string;
13
+ description?: string;
14
+ }
15
+ /** The `createProject` input for the create-project dialog's values. */
16
+ export declare function buildCreateProjectInput(values: CreateProjectFormValues): CreateProjectInput;
17
+ /**
18
+ * The project key the dialog suggests for a project name: uppercase letters
19
+ * and digits, spaces turned into underscores, at most 10 characters.
20
+ */
21
+ export declare function generateProjectKey(name: string): string;
@@ -0,0 +1,20 @@
1
+ // src/utils/createForms.ts
2
+ function e(e) {
3
+ return {
4
+ name: e.name,
5
+ slug: e.slug,
6
+ tenantId: e.tenantId,
7
+ organizationId: e.organizationId
8
+ };
9
+ }
10
+ function t(e) {
11
+ return {
12
+ name: e.name,
13
+ key: e.key,
14
+ config: e.description ? { description: e.description } : void 0
15
+ };
16
+ }
17
+ function n(e) {
18
+ return e.toUpperCase().replace(/[^A-Z0-9\s]/g, "").replace(/\s+/g, "_").slice(0, 10);
19
+ }
20
+ export { t as buildCreateProjectInput, e as buildCreateWorkspaceInput, n as generateProjectKey };
@@ -1,2 +1,3 @@
1
1
  export * from './formatters';
2
2
  export * from './tokenHelpers';
3
+ export * from './createForms';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workspaces",
3
- "version": "2026.1113.1",
3
+ "version": "2026.1114.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.1102.4",
55
+ "@burdenoff/fe-libs": "2026.1113.11",
56
56
  "@radix-ui/react-icons": "^1.3.2",
57
57
  "@tanstack/react-query": "^5.107.1",
58
58
  "axios": "^1.21.0",