@burdenoff/fe-libs 2026.1113.10 → 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.
- package/README.md +55 -8
- package/dist/node_modules/pdfjs-dist/build/pdf.js +21 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +21 -0
- package/dist/platform-pages/AcceptShareRoute.js +15 -16
- package/dist/platform-pages/AffiliatesPage.js +4 -5
- package/dist/shared/assistant/createSandboxAssistantTransport.js +0 -1
- package/dist/shared/assistant/index.d.ts +3 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +267 -241
- package/dist/shared/assistant/ui/AssistantChatArea.js +1243 -1241
- package/dist/shared/assistant/ui/AssistantConversationList.js +253 -252
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +4 -23
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +52 -55
- package/dist/shared/assistant/ui/AssistantMessageItem.js +37 -38
- package/dist/shared/assistant/ui/AssistantMessageList.js +48 -47
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +24 -25
- package/dist/shared/assistant/ui/assistantPageLayout.d.ts +13 -0
- package/dist/shared/assistant/ui/assistantPageLayout.js +8 -0
- package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.d.ts +6 -0
- package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.js +77 -71
- package/dist/shared/assistant/ui/compact/AssistantMenuView.js +130 -129
- package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +13 -0
- package/dist/shared/assistant/ui/compact/AssistantPageBar.js +46 -0
- package/dist/shared/assistant/ui/compact/AssistantViewSwitch.d.ts +5 -0
- package/dist/shared/assistant/ui/compact/AssistantViewSwitch.js +11 -11
- package/dist/shared/assistant/ui/composer/AssistantCompactFooter.js +15 -11
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +258 -257
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +3 -3
- package/dist/shared/assistant/ui/composer/connectSource.js +1 -2
- package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -30
- package/dist/shared/assistant/uiActions/assistantHref.js +7 -43
- package/dist/shared/assistant/uiActions/assistantLinkNavigation.d.ts +12 -0
- package/dist/shared/assistant/uiActions/assistantLinkNavigation.js +42 -0
- package/dist/shared/assistant/uiActions/inAppLinks.js +9 -8
- package/dist/shared/components/ContextConversationWidget.js +6 -7
- package/dist/shared/components/assistantWidget/MessageContent.js +3 -4
- package/dist/shared/components/contextConversationWidget/Composer.js +9 -10
- package/dist/shared/components/contextConversationWidget/MessageItem.js +0 -1
- package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +0 -1
- package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +0 -1
- package/dist/shared/components/contextConversationWidget/ReplyBanner.js +0 -1
- package/dist/shared/components/contextConversationWidget/WidgetHeader.js +8 -9
- package/dist/shared/hooks/usePushDeviceRegistration.js +9 -10
- package/dist/shared/hooks/useRecordProductVisit.js +8 -9
- package/dist/shared/tours/ToursContext.js +6 -7
- package/dist/shared-assistant.js +224 -221
- package/dist/shared-hooks.js +10 -12
- package/dist/shared-plugins.js +0 -1
- package/dist/shared-providers-shell.js +7 -8
- package/dist/shared.js +83 -87
- package/dist/third-party/pdfjs-dist/ATTRIBUTION.txt +54 -0
- package/dist/third-party/pdfjs-dist/LICENSE +177 -0
- package/dist/third-party/pdfjs-dist/manifest.json +19 -0
- package/dist/utils/index.js +1 -1
- package/package.json +29 -2
- package/dist/shared/actors/index.js +0 -3
- package/dist/shared/assistant/speech/index.js +0 -6
- 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
|
|
143
|
-
|
|
144
|
-
| Canvas
|
|
145
|
-
| Node surface
|
|
146
|
-
| Node category | `--color-node-{trigger,action,logic,loop,data,integration,ai,human,utility,end,default}` plus `-subtle`
|
|
147
|
-
| Node state
|
|
148
|
-
| Edge
|
|
149
|
-
| Data type
|
|
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.
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licstart The following is the entire license notice for the
|
|
3
|
+
* JavaScript code in this page
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Mozilla Foundation
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
* @licend The above is the entire license notice for the
|
|
19
|
+
* JavaScript code in this page
|
|
20
|
+
*/
|
|
21
|
+
/*! Modified by Burdenoff: transformed from the upstream PDF.js distribution to preserved-module ESM by Vite/Rolldown; upstream notices and accompanying license are retained. */
|
|
1
22
|
// node_modules/pdfjs-dist/build/pdf.mjs
|
|
2
23
|
var e = typeof process == "object" && process + "" == "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"), t = [
|
|
3
24
|
Infinity,
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @licstart The following is the entire license notice for the
|
|
3
|
+
* JavaScript code in this page
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2024 Mozilla Foundation
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
* @licend The above is the entire license notice for the
|
|
19
|
+
* JavaScript code in this page
|
|
20
|
+
*/
|
|
21
|
+
/*! Modified by Burdenoff: transformed from the upstream PDF.js distribution to preserved-module ESM by Vite/Rolldown; upstream notices and accompanying license are retained. */
|
|
1
22
|
// node_modules/pdfjs-dist/build/pdf.worker.min.mjs
|
|
2
23
|
var e = !(typeof process != "object" || process + "" != "[object process]" || process.versions.nw || process.versions.electron && process.type && process.type !== "browser"), t = [
|
|
3
24
|
1 / 0,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "../sharing.js";
|
|
2
|
-
import { graphqlFetch as
|
|
3
|
-
import { useShellNavigate as
|
|
4
|
-
import { useAuth as
|
|
5
|
-
import { AcceptSharePage as r } from "../sharing/AcceptSharePage.js";
|
|
1
|
+
import { AcceptSharePage as e } from "../sharing/AcceptSharePage.js";
|
|
2
|
+
import { graphqlFetch as t } from "../shared/graphql/fetch.js";
|
|
3
|
+
import { useShellNavigate as n } from "../shared/utils/appHelpers.js";
|
|
4
|
+
import { useAuth as r } from "../shared/providers/shell/AuthProvider.js";
|
|
6
5
|
import "../shared-utils.js";
|
|
7
6
|
import { useCallback as i, useRef as a } from "react";
|
|
8
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -13,11 +12,11 @@ function d(e, t, n) {
|
|
|
13
12
|
return !e || !n ? t : n(e) ?? t;
|
|
14
13
|
}
|
|
15
14
|
function f({ homePath: f, resolveDestination: p }) {
|
|
16
|
-
let { token: m } = s(), h =
|
|
17
|
-
let n = (await
|
|
15
|
+
let { token: m } = s(), h = r(), g = n(), _ = h.user?.email ?? null, v = a(void 0), y = i(async (e) => {
|
|
16
|
+
let n = (await t({
|
|
18
17
|
gateway: "workspace",
|
|
19
18
|
query: c,
|
|
20
|
-
variables: { token:
|
|
19
|
+
variables: { token: e },
|
|
21
20
|
operationName: "ShareGrantByToken",
|
|
22
21
|
workspaceId: !0,
|
|
23
22
|
workspaceToken: !0
|
|
@@ -29,28 +28,28 @@ function f({ homePath: f, resolveDestination: p }) {
|
|
|
29
28
|
sharerName: n.sharerName ?? void 0,
|
|
30
29
|
status: n.status
|
|
31
30
|
}) : null;
|
|
32
|
-
}, []), b = i(async (
|
|
33
|
-
let n = await
|
|
31
|
+
}, []), b = i(async (e) => {
|
|
32
|
+
let n = await t({
|
|
34
33
|
gateway: "workspace",
|
|
35
34
|
query: l,
|
|
36
|
-
variables: { token:
|
|
35
|
+
variables: { token: e },
|
|
37
36
|
operationName: "AcceptShare",
|
|
38
37
|
workspaceId: !0,
|
|
39
38
|
workspaceToken: !0
|
|
40
39
|
});
|
|
41
40
|
if (n.errors?.length) throw Error(n.errors[0].message);
|
|
42
|
-
}, []), x = i(async (
|
|
43
|
-
let n = await
|
|
41
|
+
}, []), x = i(async (e) => {
|
|
42
|
+
let n = await t({
|
|
44
43
|
gateway: "workspace",
|
|
45
44
|
query: u,
|
|
46
|
-
variables: { token:
|
|
45
|
+
variables: { token: e },
|
|
47
46
|
operationName: "DeclineShare",
|
|
48
47
|
workspaceId: !0,
|
|
49
48
|
workspaceToken: !0
|
|
50
49
|
});
|
|
51
50
|
if (n.errors?.length) throw Error(n.errors[0].message);
|
|
52
51
|
}, []);
|
|
53
|
-
return m ? /* @__PURE__ */ o(
|
|
52
|
+
return m ? /* @__PURE__ */ o(e, {
|
|
54
53
|
token: m,
|
|
55
54
|
loadPreview: y,
|
|
56
55
|
accept: b,
|
|
@@ -59,7 +58,7 @@ function f({ homePath: f, resolveDestination: p }) {
|
|
|
59
58
|
g(d(v.current, f, p));
|
|
60
59
|
},
|
|
61
60
|
currentUserEmail: _
|
|
62
|
-
}) : /* @__PURE__ */ o(
|
|
61
|
+
}) : /* @__PURE__ */ o(e, {
|
|
63
62
|
token: "",
|
|
64
63
|
loadPreview: async () => null,
|
|
65
64
|
accept: async () => {},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../shared-config.js";
|
|
1
|
+
import { useAuth as e } from "../shared/providers/shell/AuthProvider.js";
|
|
2
|
+
import { useAuthToken as t } from "../shared/providers/shell/AuthTokenProvider.js";
|
|
3
|
+
import { resolveGatewayUrls as n } from "../shared/config/gatewayUrls.js";
|
|
5
4
|
import { useCallback as r, useEffect as i, useMemo as a, useReducer as o, useState as s } from "react";
|
|
6
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
6
|
// src/platform-pages/AffiliatesPage.tsx
|
|
@@ -83,7 +82,7 @@ async function h(e) {
|
|
|
83
82
|
return n.data;
|
|
84
83
|
}
|
|
85
84
|
function g({ productSlug: g }) {
|
|
86
|
-
let { user: x } =
|
|
85
|
+
let { user: x } = e(), { accessToken: S } = t(), C = S ?? "", w = `${a(() => n(), []).globalBaseUrl}/global/graphql`, [T, E] = o(f, d), [D, O] = o(m, p), [k, A] = s(""), [j, M] = s(() => u(g)), { codes: N, loading: P, error: F } = T, { selectedCodeId: I, analytics: L, notes: R } = D, z = x?.id ?? "", B = r(async () => {
|
|
87
86
|
if (z) {
|
|
88
87
|
E({ type: "load:start" });
|
|
89
88
|
try {
|
|
@@ -4,7 +4,6 @@ import { AssistantRuntimeManager as s } from "./runtime.js";
|
|
|
4
4
|
import { AssistantPromptDelivery as c, trackAssistantSandboxTurn as l } from "./promptDelivery.js";
|
|
5
5
|
import { buildProgress as u, isReapedSandboxConnectionError as d, isRecoverable as f, mergeMessagesById as p, sanitize as m } from "./progress.js";
|
|
6
6
|
import { createSandboxBusyGate as h, gateDoneOnSandboxBusy as g } from "./sandboxBusy.js";
|
|
7
|
-
import "./gatewayClient.js";
|
|
8
7
|
import { AssistantQuotaRefusal as _, describeQuotaError as v, isQuotaExhaustedError as y } from "./quota.js";
|
|
9
8
|
import { TURN_OUTCOME_COPY as b } from "./turnOutcomeCopy.js";
|
|
10
9
|
import { assistantLlmTerminalCodeOf as x } from "./sandboxProxyError.js";
|
|
@@ -296,6 +296,7 @@ export * from './uiActions/backStack';
|
|
|
296
296
|
export * from './uiActions/draftPathname';
|
|
297
297
|
export * from './uiActions/navigateAction';
|
|
298
298
|
export * from './uiActions/assistantHref';
|
|
299
|
+
export * from './uiActions/assistantLinkNavigation';
|
|
299
300
|
export * from './uiActions/inAppLinks';
|
|
300
301
|
export * from './uiActions/entityRoutes';
|
|
301
302
|
export * from './uiActions/resolveTarget';
|
|
@@ -353,6 +354,7 @@ export * from './ui/useAssistantLauncherLift';
|
|
|
353
354
|
export * from './ui/AssistantOverlay';
|
|
354
355
|
export * from './ui/AssistantPageHost';
|
|
355
356
|
export * from './ui/assistantPageSurface';
|
|
357
|
+
export * from './ui/assistantPageLayout';
|
|
356
358
|
export * from './ui/assistantPanelLoader';
|
|
357
359
|
export * from './ui/AssistantPanelPlaceholder';
|
|
358
360
|
export * from './openui/generativeUi';
|
|
@@ -397,6 +399,7 @@ export * from './attachmentAccessCopy';
|
|
|
397
399
|
export * from './ui/closeGuard';
|
|
398
400
|
export * from './ui/compact/compactChrome';
|
|
399
401
|
export * from './ui/compact/AssistantCompactHeader';
|
|
402
|
+
export * from './ui/compact/AssistantPageBar';
|
|
400
403
|
export * from './ui/compact/AssistantConversationMenu';
|
|
401
404
|
export * from './ui/compact/AssistantDiscardDraftDialog';
|
|
402
405
|
export * from './ui/compact/AssistantMenuView';
|