@burdenoff/fe-libs 2026.1113.11 → 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 +1 -0
- 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/AssistantSpeechProvider.js +24 -25
- 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 +160 -159
- 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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Card as e, CardContent as t, CardHeader as n, CardTitle as r } from "../../../ui/card.js";
|
|
2
|
-
import "../../../ui.js";
|
|
3
2
|
import { MessageCircle as i } from "lucide-react";
|
|
4
3
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
4
|
// src/shared/components/contextConversationWidget/NoWorkspaceCard.tsx
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Badge as e } from "../../../ui/badge.js";
|
|
2
|
-
import "../../../ui.js";
|
|
3
2
|
import { Paperclip as t, X as n } from "lucide-react";
|
|
4
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
4
|
// src/shared/components/contextConversationWidget/PendingAttachmentsBar.tsx
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Badge as e } from "../../../ui/badge.js";
|
|
2
|
+
import { Button as t } from "../../../ui/button.js";
|
|
3
3
|
import { CardHeader as n, CardTitle as r } from "../../../ui/card.js";
|
|
4
|
-
import "../../../ui.js";
|
|
5
4
|
import { ChevronDown as i, ChevronUp as a, ExternalLink as o, MessageCircle as s } from "lucide-react";
|
|
6
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
6
|
// src/shared/components/contextConversationWidget/WidgetHeader.tsx
|
|
@@ -24,14 +23,14 @@ function u({ conversationTitle: u, pageContext: d, resolvedContext: f, unreadCou
|
|
|
24
23
|
}), /* @__PURE__ */ l("div", {
|
|
25
24
|
className: "flex flex-wrap items-center gap-2 md:justify-end",
|
|
26
25
|
children: [
|
|
27
|
-
/* @__PURE__ */ l(
|
|
26
|
+
/* @__PURE__ */ l(t, {
|
|
28
27
|
type: "button",
|
|
29
28
|
variant: "outline",
|
|
30
29
|
size: "sm",
|
|
31
30
|
onClick: _,
|
|
32
31
|
children: [/* @__PURE__ */ c(o, { className: "me-2 size-4" }), y("conversationWidget.openContext", "Open context")]
|
|
33
32
|
}),
|
|
34
|
-
/* @__PURE__ */ c(
|
|
33
|
+
/* @__PURE__ */ c(t, {
|
|
35
34
|
type: "button",
|
|
36
35
|
"data-tour": "page-discussion-open-full",
|
|
37
36
|
variant: "outline",
|
|
@@ -40,7 +39,7 @@ function u({ conversationTitle: u, pageContext: d, resolvedContext: f, unreadCou
|
|
|
40
39
|
disabled: !m,
|
|
41
40
|
children: y("conversationWidget.openInbox", "Open in conversations")
|
|
42
41
|
}),
|
|
43
|
-
/* @__PURE__ */ c(
|
|
42
|
+
/* @__PURE__ */ c(t, {
|
|
44
43
|
type: "button",
|
|
45
44
|
variant: "ghost",
|
|
46
45
|
size: "icon",
|
|
@@ -53,15 +52,15 @@ function u({ conversationTitle: u, pageContext: d, resolvedContext: f, unreadCou
|
|
|
53
52
|
}), /* @__PURE__ */ l("div", {
|
|
54
53
|
className: "flex flex-wrap items-center gap-2",
|
|
55
54
|
children: [
|
|
56
|
-
/* @__PURE__ */ c(
|
|
55
|
+
/* @__PURE__ */ c(e, {
|
|
57
56
|
variant: "secondary",
|
|
58
57
|
children: f.widgetKey
|
|
59
58
|
}),
|
|
60
|
-
f.activeTab ? /* @__PURE__ */ c(
|
|
59
|
+
f.activeTab ? /* @__PURE__ */ c(e, {
|
|
61
60
|
variant: "outline",
|
|
62
61
|
children: f.activeTab
|
|
63
62
|
}) : null,
|
|
64
|
-
p ? /* @__PURE__ */ l(
|
|
63
|
+
p ? /* @__PURE__ */ l(e, { children: [p, " unread"] }) : null
|
|
65
64
|
]
|
|
66
65
|
})]
|
|
67
66
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { installPushDeviceRegistration as
|
|
3
|
-
import { logManager as n } from "../logger/LogManager.js";
|
|
1
|
+
import { logManager as e } from "../logger/LogManager.js";
|
|
2
|
+
import { installPushDeviceRegistration as t, unregisterPushDevice as n } from "../native/push-registration.js";
|
|
4
3
|
import { useAppShell as r } from "../providers/shell/AppShellContext.js";
|
|
5
4
|
import { useAuth as i } from "../providers/shell/AuthProvider.js";
|
|
6
5
|
import { useEffect as a, useRef as o } from "react";
|
|
7
6
|
// src/shared/hooks/usePushDeviceRegistration.ts
|
|
8
|
-
var s =
|
|
7
|
+
var s = e.getLogger("usePushDeviceRegistration");
|
|
9
8
|
function c() {
|
|
10
9
|
let e = globalThis.__APP_VERSION__;
|
|
11
10
|
return typeof e == "string" && e.length > 0 ? e : void 0;
|
|
@@ -13,24 +12,24 @@ function c() {
|
|
|
13
12
|
function l() {
|
|
14
13
|
if (typeof navigator < "u") return navigator.language || void 0;
|
|
15
14
|
}
|
|
16
|
-
function u(
|
|
17
|
-
let { productSlug: u } = r(), { user: d, tokens: f } = i(), p =
|
|
15
|
+
function u(e = {}) {
|
|
16
|
+
let { productSlug: u } = r(), { user: d, tokens: f } = i(), p = e.productSlug ?? u, m = e.enabled !== !1, h = d?.id, g = f?.accessToken, _ = o(null);
|
|
18
17
|
a(() => {
|
|
19
18
|
if (m && p) {
|
|
20
19
|
if (!h || !g) {
|
|
21
20
|
let e = _.current;
|
|
22
21
|
if (!e) return;
|
|
23
|
-
_.current = null,
|
|
22
|
+
_.current = null, n({ authToken: e.accessToken }).catch((e) => {
|
|
24
23
|
s.warn("[usePushDeviceRegistration] unregister failed", { error: e instanceof Error ? e.message : String(e) });
|
|
25
24
|
});
|
|
26
25
|
} else return _.current = {
|
|
27
26
|
userId: h,
|
|
28
27
|
accessToken: g
|
|
29
|
-
},
|
|
28
|
+
}, t({
|
|
30
29
|
productSlug: p,
|
|
31
30
|
getAuthToken: () => _.current?.accessToken,
|
|
32
31
|
getUserId: () => _.current?.userId,
|
|
33
|
-
appVersion:
|
|
32
|
+
appVersion: e.appVersion ?? c(),
|
|
34
33
|
locale: l(),
|
|
35
34
|
onError: (e) => {
|
|
36
35
|
s.warn("[usePushDeviceRegistration] registration failed", {
|
|
@@ -45,7 +44,7 @@ function u(n = {}) {
|
|
|
45
44
|
p,
|
|
46
45
|
h,
|
|
47
46
|
g,
|
|
48
|
-
|
|
47
|
+
e.appVersion
|
|
49
48
|
]);
|
|
50
49
|
}
|
|
51
50
|
export { u as usePushDeviceRegistration };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { graphqlFetch as e } from "../graphql/fetch.js";
|
|
2
|
-
import "
|
|
3
|
-
import { useAppShell as
|
|
4
|
-
import { logManager as n } from "../logger/LogManager.js";
|
|
2
|
+
import { logManager as t } from "../logger/LogManager.js";
|
|
3
|
+
import { useAppShell as n } from "../providers/shell/AppShellContext.js";
|
|
5
4
|
import { useAuth as r } from "../providers/shell/AuthProvider.js";
|
|
6
5
|
import { useEffect as i, useRef as a } from "react";
|
|
7
6
|
// src/shared/hooks/useRecordProductVisit.ts
|
|
8
|
-
var o =
|
|
7
|
+
var o = t.getLogger("useRecordProductVisit"), s = "\n mutation RecordProductVisit($input: RecordProductVisitInput!) {\n recordProductVisit(input: $input) {\n isFirstVisit\n productSlug\n recordedAt\n welcomeEmailStatus\n welcomeEmailMessageId\n }\n }\n";
|
|
9
8
|
function c(e, t) {
|
|
10
9
|
return `boff:product-visit-recorded:${t}:${e}`;
|
|
11
10
|
}
|
|
@@ -22,19 +21,19 @@ function u(e, t) {
|
|
|
22
21
|
window.sessionStorage.setItem(c(e, t), "1");
|
|
23
22
|
} catch {}
|
|
24
23
|
}
|
|
25
|
-
function d(
|
|
26
|
-
let { productSlug: c } =
|
|
24
|
+
function d(t = {}) {
|
|
25
|
+
let { productSlug: c } = n(), { user: d, tokens: f } = r(), p = t.productSlug ?? c, m = t.enabled !== !1, h = a(!1);
|
|
27
26
|
i(() => {
|
|
28
27
|
if (!m || !p || !d?.id || !f?.accessToken || l(d.id, p) || h.current) return;
|
|
29
28
|
h.current = !0;
|
|
30
|
-
let
|
|
29
|
+
let n = t.appUrl ?? (typeof window < "u" ? window.location.origin : void 0), r = f.accessToken, i = d.id;
|
|
31
30
|
e({
|
|
32
31
|
gateway: "global",
|
|
33
32
|
query: s,
|
|
34
33
|
operationName: "RecordProductVisit",
|
|
35
34
|
variables: { input: {
|
|
36
35
|
productSlug: p,
|
|
37
|
-
appUrl:
|
|
36
|
+
appUrl: n
|
|
38
37
|
} },
|
|
39
38
|
authToken: r,
|
|
40
39
|
suppressGlobalErrorEvent: !0
|
|
@@ -64,7 +63,7 @@ function d(n = {}) {
|
|
|
64
63
|
p,
|
|
65
64
|
d?.id,
|
|
66
65
|
f?.accessToken,
|
|
67
|
-
|
|
66
|
+
t.appUrl
|
|
68
67
|
]);
|
|
69
68
|
}
|
|
70
69
|
export { d as useRecordProductVisit };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useGatewayClient as e } from "../graphql/GatewayContext.js";
|
|
2
2
|
import "../../shared-graphql.js";
|
|
3
|
-
import "
|
|
4
|
-
import { useActiveContext as
|
|
5
|
-
import { useSafePermissions as
|
|
6
|
-
import { isTourAllowedByPermissions as
|
|
7
|
-
import { useLogger as i } from "../logger/useLogger.js";
|
|
3
|
+
import { useLogger as t } from "../logger/useLogger.js";
|
|
4
|
+
import { useActiveContext as n } from "../providers/shell/ActiveContextProvider.js";
|
|
5
|
+
import { useSafePermissions as r } from "../providers/shell/PermissionProvider.js";
|
|
6
|
+
import { isTourAllowedByPermissions as i } from "./permissions.js";
|
|
8
7
|
import { useAuth as a } from "../providers/shell/AuthProvider.js";
|
|
9
8
|
import { useAppShell as o } from "../providers/shell/AppShellContext.js";
|
|
10
9
|
import { isTourVisibleForContext as s } from "./routeCatalog.js";
|
|
@@ -20,7 +19,7 @@ import { useLocation as oe } from "react-router";
|
|
|
20
19
|
// src/shared/tours/ToursContext.tsx
|
|
21
20
|
var y = f(null);
|
|
22
21
|
function b({ children: f, defaultPageId: p = "home", getPageIdFromPath: b, disabled: x = !1, requireWorkspace: S = !1 }) {
|
|
23
|
-
let C = oe(), w = e("global"), { workspaceId: se } =
|
|
22
|
+
let C = oe(), w = e("global"), { workspaceId: se } = n(), { user: T } = a(), E = r(), { productSlug: D } = o(), O = t("ToursContext"), k = se ?? void 0, A = x || S && !k, { moduleId: j, pageId: M } = g(() => te(C.pathname, D, p, b), [
|
|
24
23
|
p,
|
|
25
24
|
b,
|
|
26
25
|
C.pathname,
|
|
@@ -127,7 +126,7 @@ function b({ children: f, defaultPageId: p = "home", getPageIdFromPath: b, disab
|
|
|
127
126
|
}, [N]);
|
|
128
127
|
let Y = m(() => {
|
|
129
128
|
q(!0);
|
|
130
|
-
}, [q]), X = g(() => N.filter((e) =>
|
|
129
|
+
}, [q]), X = g(() => N.filter((e) => i(e, E)), [N, E]), Z = g(() => X.filter((e) => e.isActive && e.steps?.length > 0 && s(e, {
|
|
131
130
|
productId: D,
|
|
132
131
|
moduleId: j,
|
|
133
132
|
pageId: M
|