@burdenoff/fe-libs 2026.1113.11 → 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.
Files changed (52) hide show
  1. package/README.md +55 -8
  2. package/dist/admin-overview/AdminOverviewList.d.ts +8 -0
  3. package/dist/admin-overview/AdminOverviewList.js +217 -0
  4. package/dist/admin-overview/AdminOverviewPage.d.ts +7 -0
  5. package/dist/admin-overview/AdminOverviewPage.js +286 -199
  6. package/dist/admin-overview/adminOverviewModel.d.ts +44 -0
  7. package/dist/admin-overview/adminOverviewModel.js +48 -0
  8. package/dist/admin-overview/nodes/ProjectNode.js +30 -29
  9. package/dist/admin-overview/nodes/TenantNode.js +33 -32
  10. package/dist/admin-overview/operations.d.ts +10 -0
  11. package/dist/admin-overview/operations.js +41 -2
  12. package/dist/node_modules/pdfjs-dist/build/pdf.js +21 -0
  13. package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +21 -0
  14. package/dist/platform-pages/AcceptShareRoute.js +15 -16
  15. package/dist/platform-pages/AffiliatesPage.js +4 -5
  16. package/dist/shared/assistant/createSandboxAssistantTransport.js +0 -1
  17. package/dist/shared/assistant/index.d.ts +1 -0
  18. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +4 -23
  19. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +52 -55
  20. package/dist/shared/assistant/ui/AssistantMessageItem.js +37 -38
  21. package/dist/shared/assistant/ui/AssistantSpeechProvider.js +24 -25
  22. package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +3 -3
  23. package/dist/shared/assistant/ui/composer/connectSource.js +1 -2
  24. package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -30
  25. package/dist/shared/assistant/uiActions/assistantHref.js +7 -43
  26. package/dist/shared/assistant/uiActions/assistantLinkNavigation.d.ts +12 -0
  27. package/dist/shared/assistant/uiActions/assistantLinkNavigation.js +42 -0
  28. package/dist/shared/assistant/uiActions/inAppLinks.js +9 -8
  29. package/dist/shared/components/ContextConversationWidget.js +6 -7
  30. package/dist/shared/components/assistantWidget/MessageContent.js +3 -4
  31. package/dist/shared/components/contextConversationWidget/Composer.js +9 -10
  32. package/dist/shared/components/contextConversationWidget/MessageItem.js +0 -1
  33. package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +0 -1
  34. package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +0 -1
  35. package/dist/shared/components/contextConversationWidget/ReplyBanner.js +0 -1
  36. package/dist/shared/components/contextConversationWidget/WidgetHeader.js +8 -9
  37. package/dist/shared/hooks/usePushDeviceRegistration.js +9 -10
  38. package/dist/shared/hooks/useRecordProductVisit.js +8 -9
  39. package/dist/shared/tours/ToursContext.js +6 -7
  40. package/dist/shared-assistant.js +160 -159
  41. package/dist/shared-hooks.js +10 -12
  42. package/dist/shared-plugins.js +0 -1
  43. package/dist/shared-providers-shell.js +7 -8
  44. package/dist/shared.js +83 -87
  45. package/dist/third-party/pdfjs-dist/ATTRIBUTION.txt +54 -0
  46. package/dist/third-party/pdfjs-dist/LICENSE +177 -0
  47. package/dist/third-party/pdfjs-dist/manifest.json +19 -0
  48. package/dist/utils/index.js +1 -1
  49. package/package.json +29 -2
  50. package/dist/shared/actors/index.js +0 -3
  51. package/dist/shared/assistant/speech/index.js +0 -6
  52. package/dist/shared/plugins/iframe-mount/index.js +0 -5
package/README.md CHANGED
@@ -25,8 +25,42 @@ import { mockProducts } from '@burdenoff/fe-libs/shared/utils/mockData';
25
25
  import { cn } from '@burdenoff/fe-libs/shared';
26
26
  ```
27
27
 
28
+ ### Tree shaking and import-only integrations
29
+
30
+ The package declares a conservative `sideEffects` allowlist so importing a hook
31
+ or shell helper through a public barrel does not also retain unrelated feature
32
+ renderers. Public exports and implementation identities are unchanged.
33
+
34
+ Import-only initialization barrels, CSS, bundled vendor initialization, shims, native boot modules, event sinks,
35
+ providers, utilities, the assistant history storage listener and the breadcrumb
36
+ registry remain side-effectful. Do not replace this with blanket
37
+ `sideEffects: false`: import-only integrations must keep working.
38
+
39
+ When adding module-level executable code, review its variable/class initializers
40
+ as well as its statements. Add an allowlist entry when initialization changes
41
+ state outside that module. The package-side-effects tests guard the known boot
42
+ paths and require explicit classification of new top-level executable statements;
43
+ they do not replace that initializer review. Validate the packed package and loaded
44
+ consumer routes, including lazy feature opening, before release.
45
+
28
46
  ## Development
29
47
 
48
+ ### Installed public-shim consumer verification
49
+
50
+ After building and packing, create a private consumer with the actual local
51
+ archive as its `@burdenoff/fe-libs` dependency and exact React/ReactDOM `19.3.1`
52
+ peers. Use a normal script-disabled install to generate its lock, then a frozen
53
+ coherence install. Do not source-link the library or borrow another node_modules.
54
+
55
+ ```bash
56
+ node scripts/verification/installed-shim-consumer.mjs /path/to/private-consumer /path/to/candidate.tgz sha512-actual-archive-integrity
57
+ ```
58
+
59
+ The verifier checks the archive SRI, every installed shipped file, the real lock,
60
+ bare public shim imports, assert initialization/behavior, React peer/hook identity
61
+ and the server snapshot. It does not invent full-browser-root support on Node,
62
+ qualify the FluidGrids SDK, install dependencies, or publish anything.
63
+
30
64
  ```bash
31
65
  # Install dependencies
32
66
  bun install
@@ -139,14 +173,14 @@ Workflow builders, graphs and mappers use the canvas tokens in `tokens.css`.
139
173
  Each one aliases an existing `chart-*` / `status-*` / surface token, so it
140
174
  follows light/dark mode, the brand and the expressive themes:
141
175
 
142
- | Group | Tokens |
143
- |---|---|
144
- | Canvas | `--color-canvas-{bg,grid,selection,minimap-bg,minimap-node,minimap-mask,control-bg}` |
145
- | Node surface | `--color-node-{bg,bg-hover,border,border-hover,border-selected,text,text-muted,handle,handle-connected}` |
146
- | Node category | `--color-node-{trigger,action,logic,loop,data,integration,ai,human,utility,end,default}` plus `-subtle` |
147
- | Node state | `--color-node-state-{idle,queued,running,success,warning,error,skipped}` |
148
- | Edge | `--color-edge-{default,hover,selected,active,success,error,compatible,incompatible,label-bg,label-text}` |
149
- | Data type | `--color-datatype-{string,number,boolean,object,array,date,binary,any}` |
176
+ | Group | Tokens |
177
+ | ------------- | -------------------------------------------------------------------------------------------------------- |
178
+ | Canvas | `--color-canvas-{bg,grid,selection,minimap-bg,minimap-node,minimap-mask,control-bg}` |
179
+ | Node surface | `--color-node-{bg,bg-hover,border,border-hover,border-selected,text,text-muted,handle,handle-connected}` |
180
+ | Node category | `--color-node-{trigger,action,logic,loop,data,integration,ai,human,utility,end,default}` plus `-subtle` |
181
+ | Node state | `--color-node-state-{idle,queued,running,success,warning,error,skipped}` |
182
+ | Edge | `--color-edge-{default,hover,selected,active,success,error,compatible,incompatible,label-bg,label-text}` |
183
+ | Data type | `--color-datatype-{string,number,boolean,object,array,date,binary,any}` |
150
184
 
151
185
  `app-shell.css` maps them to Tailwind utilities (`bg-node-trigger`,
152
186
  `stroke-edge-default`, `ring-node-state-running`, …). A shell with its own
@@ -255,3 +289,16 @@ does not bind a request's credentials. The default `refreshable` mode retains
255
289
  profile-based session recovery. Existing explicit-token consumers need an
256
290
  individual authority/refresh review before adopting pinned behavior; this additive
257
291
  API does not retroactively repair those callers.
292
+ # Third-party PDF.js redistribution material
293
+
294
+ The build preserves PDF.js upstream copyright/license headers and adds an accurate
295
+ Vite/Rolldown transformation notice to both copied PDF.js modules. The packed
296
+ package includes the exact installed upstream Apache-2.0 license, attribution,
297
+ source-version/hash ledger and any supplied upstream NOTICE files under
298
+ `dist/third-party/pdfjs-dist/`. Build and extracted-archive verification fail if
299
+ this material or either PDF.js module is missing or altered.
300
+
301
+ Applications redistributing the PDF.js code must also retain its notices and copy
302
+ this accompanying legal material into their deployed distribution. Do not strip
303
+ the notices or omit the license to reduce bundle size. This does not replace the
304
+ separate notice/source-availability obligations of optional native plugins.
@@ -0,0 +1,8 @@
1
+ import { OverviewSummary } from './adminOverviewModel';
2
+ export type OverviewTr = (key: string, fallback: string) => string;
3
+ export interface AdminOverviewListProps {
4
+ summary: OverviewSummary;
5
+ technicalDetails: string;
6
+ tr: OverviewTr;
7
+ }
8
+ export declare function AdminOverviewList({ summary, technicalDetails, tr }: AdminOverviewListProps): import('react').JSX.Element;
@@ -0,0 +1,217 @@
1
+ import { cn as e } from "../lib/utils.js";
2
+ import { ShowTechnicalDetails as t } from "../ui/show-technical-details.js";
3
+ import { useShellNavigate as n } from "../shared/utils/appHelpers.js";
4
+ import "../shared-utils.js";
5
+ import { adminOverviewLinks as r } from "./adminOverviewModel.js";
6
+ import { Activity as i, Building as a, ChevronRight as o, LayoutGrid as s, Mail as c, Package as l, UserPlus as u, Users as d } from "lucide-react";
7
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
+ // src/admin-overview/AdminOverviewList.tsx
9
+ function m(e, t) {
10
+ return Object.entries(t).reduce((e, [t, n]) => e.replaceAll(`{{${t}}}`, String(n)), e);
11
+ }
12
+ function h(e, t, n, r) {
13
+ let [i, a] = t === 1 ? n : r;
14
+ return m(e(i, a), { count: t });
15
+ }
16
+ function g({ summary: e, technicalDetails: n, tr: o }) {
17
+ let m = e.peopleCount === null ? "—" : String(e.peopleCount);
18
+ return /* @__PURE__ */ p("div", {
19
+ className: "flex flex-col gap-6",
20
+ "data-testid": "admin-overview-list",
21
+ children: [
22
+ /* @__PURE__ */ p("dl", {
23
+ className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
24
+ children: [
25
+ /* @__PURE__ */ f(v, {
26
+ label: o("adminOverviewPage.list.statOrganizations", "Organizations"),
27
+ value: String(e.organizations.length)
28
+ }),
29
+ /* @__PURE__ */ f(v, {
30
+ label: o("adminOverviewPage.list.statWorkspaces", "Workspaces"),
31
+ value: String(e.workspaceCount)
32
+ }),
33
+ /* @__PURE__ */ f(v, {
34
+ label: o("adminOverviewPage.list.statPeople", "People"),
35
+ value: m
36
+ })
37
+ ]
38
+ }),
39
+ e.organizations.map((e) => /* @__PURE__ */ p("section", {
40
+ "aria-labelledby": `admin-overview-org-${e.id}`,
41
+ className: "overflow-hidden rounded-card border border-border-subtle bg-bg-surface",
42
+ children: [/* @__PURE__ */ f("h2", {
43
+ id: `admin-overview-org-${e.id}`,
44
+ className: "border-b border-border-subtle px-4 py-3 text-base font-semibold text-text-primary",
45
+ children: e.name
46
+ }), /* @__PURE__ */ p("ul", {
47
+ className: "divide-y divide-border-subtle",
48
+ children: [
49
+ /* @__PURE__ */ f(y, {
50
+ to: r.organization(e.id),
51
+ icon: /* @__PURE__ */ f(a, {
52
+ className: "size-4",
53
+ "aria-hidden": "true"
54
+ }),
55
+ title: o("adminOverviewPage.list.organizationRow", "Organization"),
56
+ detail: o("adminOverviewPage.list.organizationDetail", "Name, description, website and its workspaces")
57
+ }),
58
+ /* @__PURE__ */ f(y, {
59
+ to: r.organizationMembers(e.id),
60
+ icon: /* @__PURE__ */ f(d, {
61
+ className: "size-4",
62
+ "aria-hidden": "true"
63
+ }),
64
+ title: o("adminOverviewPage.list.membersRow", "Members"),
65
+ detail: e.memberCount === null ? o("adminOverviewPage.list.membersDetail", "Who belongs to this organization") : h(o, e.memberCount, ["adminOverviewPage.list.peopleOne", "{{count}} person"], ["adminOverviewPage.list.peopleMany", "{{count}} people"])
66
+ }),
67
+ e.workspaces.map((e) => /* @__PURE__ */ f(y, {
68
+ to: r.workspace(e.id),
69
+ icon: /* @__PURE__ */ f(s, {
70
+ className: "size-4",
71
+ "aria-hidden": "true"
72
+ }),
73
+ title: e.name,
74
+ detail: _(o, e.memberCount),
75
+ indent: !0
76
+ }, e.id)),
77
+ e.workspaces.length === 0 ? /* @__PURE__ */ f("li", {
78
+ className: "px-4 py-3 ps-11 text-sm text-text-secondary",
79
+ children: o("adminOverviewPage.list.noWorkspaces", "No workspaces in this organization yet.")
80
+ }) : null
81
+ ]
82
+ })]
83
+ }, e.id)),
84
+ e.otherWorkspaces.length > 0 ? /* @__PURE__ */ p("section", {
85
+ "aria-labelledby": "admin-overview-other-workspaces",
86
+ className: "overflow-hidden rounded-card border border-border-subtle bg-bg-surface",
87
+ children: [/* @__PURE__ */ f("h2", {
88
+ id: "admin-overview-other-workspaces",
89
+ className: "border-b border-border-subtle px-4 py-3 text-base font-semibold text-text-primary",
90
+ children: o("adminOverviewPage.list.otherWorkspaces", "Other workspaces you belong to")
91
+ }), /* @__PURE__ */ f("ul", {
92
+ className: "divide-y divide-border-subtle",
93
+ children: e.otherWorkspaces.map((e) => /* @__PURE__ */ f(y, {
94
+ to: r.workspace(e.id),
95
+ icon: /* @__PURE__ */ f(s, {
96
+ className: "size-4",
97
+ "aria-hidden": "true"
98
+ }),
99
+ title: e.name,
100
+ detail: _(o, e.memberCount)
101
+ }, e.id))
102
+ })]
103
+ }) : null,
104
+ /* @__PURE__ */ p("section", {
105
+ "aria-labelledby": "admin-overview-more",
106
+ className: "overflow-hidden rounded-card border border-border-subtle bg-bg-surface",
107
+ children: [/* @__PURE__ */ f("h2", {
108
+ id: "admin-overview-more",
109
+ className: "border-b border-border-subtle px-4 py-3 text-base font-semibold text-text-primary",
110
+ children: o("adminOverviewPage.list.moreTitle", "Everything in Administration")
111
+ }), /* @__PURE__ */ p("ul", {
112
+ className: "divide-y divide-border-subtle",
113
+ children: [
114
+ /* @__PURE__ */ f(y, {
115
+ to: r.organizations(),
116
+ icon: /* @__PURE__ */ f(a, {
117
+ className: "size-4",
118
+ "aria-hidden": "true"
119
+ }),
120
+ title: o("adminOverviewPage.list.allOrganizations", "Organizations")
121
+ }),
122
+ /* @__PURE__ */ f(y, {
123
+ to: r.workspaces(),
124
+ icon: /* @__PURE__ */ f(s, {
125
+ className: "size-4",
126
+ "aria-hidden": "true"
127
+ }),
128
+ title: o("adminOverviewPage.list.allWorkspaces", "Workspaces")
129
+ }),
130
+ /* @__PURE__ */ f(y, {
131
+ to: r.projects(),
132
+ icon: /* @__PURE__ */ f(l, {
133
+ className: "size-4",
134
+ "aria-hidden": "true"
135
+ }),
136
+ title: o("adminOverviewPage.list.allProjects", "Projects")
137
+ }),
138
+ /* @__PURE__ */ f(y, {
139
+ to: r.invitePeople(),
140
+ icon: /* @__PURE__ */ f(u, {
141
+ className: "size-4",
142
+ "aria-hidden": "true"
143
+ }),
144
+ title: o("adminOverviewPage.list.invitePeople", "Invite people")
145
+ }),
146
+ /* @__PURE__ */ f(y, {
147
+ to: r.myInvites(),
148
+ icon: /* @__PURE__ */ f(c, {
149
+ className: "size-4",
150
+ "aria-hidden": "true"
151
+ }),
152
+ title: o("adminOverviewPage.list.myInvites", "My invites")
153
+ }),
154
+ /* @__PURE__ */ f(y, {
155
+ to: r.activity(),
156
+ icon: /* @__PURE__ */ f(i, {
157
+ className: "size-4",
158
+ "aria-hidden": "true"
159
+ }),
160
+ title: o("adminOverviewPage.list.activity", "Activity")
161
+ })
162
+ ]
163
+ })]
164
+ }),
165
+ n ? /* @__PURE__ */ f(t, {
166
+ copyable: !0,
167
+ children: n
168
+ }) : null
169
+ ]
170
+ });
171
+ }
172
+ function _(e, t) {
173
+ return typeof t == "number" ? h(e, t, ["adminOverviewPage.list.workspacePeopleOne", "Workspace · {{count}} person"], ["adminOverviewPage.list.workspacePeopleMany", "Workspace · {{count}} people"]) : e("adminOverviewPage.list.workspace", "Workspace");
174
+ }
175
+ function v({ label: e, value: t }) {
176
+ return /* @__PURE__ */ p("div", {
177
+ className: "rounded-card border border-border-subtle bg-bg-surface px-4 py-3",
178
+ children: [/* @__PURE__ */ f("dt", {
179
+ className: "text-sm text-text-secondary",
180
+ children: e
181
+ }), /* @__PURE__ */ f("dd", {
182
+ className: "mt-1 text-2xl font-semibold tabular-nums text-text-primary",
183
+ children: t
184
+ })]
185
+ });
186
+ }
187
+ function y({ to: t, icon: r, title: i, detail: a, indent: s = !1 }) {
188
+ let c = n();
189
+ return /* @__PURE__ */ f("li", { children: /* @__PURE__ */ p("a", {
190
+ href: t,
191
+ onClick: (e) => {
192
+ e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), c(t));
193
+ },
194
+ className: e("flex min-h-11 items-center gap-3 px-4 py-3 text-start transition-colors hover:bg-bg-sunken", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", s && "ps-8"),
195
+ children: [
196
+ /* @__PURE__ */ f("span", {
197
+ className: "flex size-8 shrink-0 items-center justify-center rounded-button bg-bg-sunken text-text-secondary",
198
+ children: r
199
+ }),
200
+ /* @__PURE__ */ p("span", {
201
+ className: "min-w-0 flex-1",
202
+ children: [/* @__PURE__ */ f("span", {
203
+ className: "block truncate text-sm font-medium text-text-primary",
204
+ children: i
205
+ }), a ? /* @__PURE__ */ f("span", {
206
+ className: "block truncate text-xs text-text-secondary",
207
+ children: a
208
+ }) : null]
209
+ }),
210
+ /* @__PURE__ */ f(o, {
211
+ className: "size-4 shrink-0 text-text-secondary",
212
+ "aria-hidden": "true"
213
+ })
214
+ ]
215
+ }) });
216
+ }
217
+ export { g as AdminOverviewList };
@@ -1,4 +1,11 @@
1
1
  export interface AdminOverviewPageProps {
2
2
  authToken: string;
3
+ /**
4
+ * `'fluidgrids'` (BOFF-11854): the page opens on a plain list of your
5
+ * organizations, their workspaces and their people, with one-line help, and
6
+ * the graph moves one tab away (`?view=graph`). Left out, the page is the
7
+ * graph exactly as before, for every other app.
8
+ */
9
+ variant?: 'default' | 'fluidgrids';
3
10
  }
4
11
  export declare function AdminOverviewPage(props: AdminOverviewPageProps): import('react').JSX.Element;