@axiom-lattice/react-sdk 4.9.1 → 4.11.0
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/dist/{AgentDetailSideApp-IKFO5B76.mjs → AgentDetailSideApp-ZGV4WC4V.mjs} +8 -8
- package/dist/AgentGovernanceWorkbench-HCVHQ3P7.mjs +20 -0
- package/dist/{MessageGraph-4O5BZI5H.mjs → MessageGraph-OA2HMEHI.mjs} +4 -4
- package/dist/{ReactChart-DSQZBNK7.mjs → ReactChart-DWIFRI5G.mjs} +4 -4
- package/dist/{SkillFlow-7UFS5RSF.mjs → SkillFlow-IHRME3YO.mjs} +4 -4
- package/dist/{TasksSideApp-UERUXLGZ.mjs → TasksSideApp-KKBQDSO4.mjs} +5 -5
- package/dist/{TeamWorkspace-RMFSSDLK.mjs → TeamWorkspace-ETVDJAYT.mjs} +4 -4
- package/dist/{TopologyRuntimeView-OYMC3OZ7.mjs → TopologyRuntimeView-F7JQAXN2.mjs} +5 -5
- package/dist/{WorkflowAutomationView-CYLQ3HOW.mjs → WorkflowAutomationView-PBZ5K43L.mjs} +7 -7
- package/dist/{chunk-73ZKUUUV.mjs → chunk-3FXH5ZAQ.mjs} +3 -3
- package/dist/{chunk-BGRLHXKR.mjs → chunk-3MF4SALK.mjs} +6 -6
- package/dist/{chunk-JEYG4OYQ.mjs → chunk-3SEKZBYQ.mjs} +3 -3
- package/dist/{chunk-2RTE6SQG.mjs → chunk-57IPUJ5T.mjs} +3 -3
- package/dist/{chunk-WZPXSVHJ.mjs → chunk-6XGZ74LQ.mjs} +75 -30
- package/dist/chunk-6XGZ74LQ.mjs.map +1 -0
- package/dist/{chunk-MZIYYFYF.mjs → chunk-EHUPRLAS.mjs} +38 -10
- package/dist/chunk-EHUPRLAS.mjs.map +1 -0
- package/dist/{chunk-YCRJHIO7.mjs → chunk-JQLUFZKH.mjs} +6 -6
- package/dist/{chunk-WEEKSFGI.mjs → chunk-KU634FOH.mjs} +4 -4
- package/dist/{chunk-MD7WRYIP.mjs → chunk-PEEXMLMK.mjs} +23 -7
- package/dist/chunk-PEEXMLMK.mjs.map +1 -0
- package/dist/{chunk-V7SUAKB5.mjs → chunk-TA243DB6.mjs} +36 -3
- package/dist/chunk-TA243DB6.mjs.map +1 -0
- package/dist/{embed-page-AgentDetailSideApp-WQAMMDXN.js → embed-page-AgentDetailSideApp-RM4TDSC5.js} +1 -1
- package/dist/{embed-page-AgentGovernanceWorkbench-VKD4IZIO.js → embed-page-AgentGovernanceWorkbench-G6A6QNZY.js} +1 -1
- package/dist/{embed-page-MessageGraph-C4EJWY3E.js → embed-page-MessageGraph-ZLGTKJNE.js} +1 -1
- package/dist/{embed-page-ReactChart-TNT4TT4C.js → embed-page-ReactChart-IB6R6G57.js} +1 -1
- package/dist/{embed-page-SkillFlow-WWRDU6GS.js → embed-page-SkillFlow-STU36L34.js} +1 -1
- package/dist/{embed-page-TasksSideApp-73SJLGRY.js → embed-page-TasksSideApp-X4APWG4G.js} +1 -1
- package/dist/{embed-page-TeamWorkspace-6E4HAH7L.js → embed-page-TeamWorkspace-EK4BNNGD.js} +1 -1
- package/dist/{embed-page-TopologyRuntimeView-SXUNRFT4.js → embed-page-TopologyRuntimeView-X5CHJPHN.js} +1 -1
- package/dist/{embed-page-WorkflowAutomationView-I4VN6YY2.js → embed-page-WorkflowAutomationView-3LIT27E2.js} +1 -1
- package/dist/{embed-page-chunk-YZMHK63X.js → embed-page-chunk-5WPKSLDW.js} +1 -1
- package/dist/embed-page-chunk-64FTYZ5F.js +2 -0
- package/dist/{embed-page-chunk-IM57IYUL.js → embed-page-chunk-734QFJP3.js} +1 -1
- package/dist/{embed-page-chunk-L7HKGCDN.js → embed-page-chunk-7D54ACES.js} +1 -1
- package/dist/{embed-page-chunk-TEIHYMTL.js → embed-page-chunk-DDK2VFYD.js} +7 -7
- package/dist/{embed-page-chunk-G5NEOKZK.js → embed-page-chunk-EQRDCFN5.js} +1 -1
- package/dist/{embed-page-chunk-WUOHF2QZ.js → embed-page-chunk-W45YCZIC.js} +7 -7
- package/dist/{embed-page-en-GE4GI4D3.js → embed-page-en-ICVL5QAC.js} +1 -1
- package/dist/{embed-page-zh-KC2E7UVY.js → embed-page-zh-FPYCTKQK.js} +1 -1
- package/dist/embed-page.js +1 -1
- package/dist/{en-EYIMZ5UR.mjs → en-QKZNWG2U.mjs} +13 -3
- package/dist/{en-EYIMZ5UR.mjs.map → en-QKZNWG2U.mjs.map} +1 -1
- package/dist/index.d.mts +53 -5
- package/dist/index.d.ts +53 -5
- package/dist/index.js +287 -142
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/web-app.js +25 -10
- package/dist/web-app.js.map +1 -1
- package/dist/web-app.mjs +1 -1
- package/dist/{zh-7GXZLF3M.mjs → zh-5WQFAPH5.mjs} +13 -3
- package/dist/{zh-7GXZLF3M.mjs.map → zh-5WQFAPH5.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/AgentGovernanceWorkbench-HWXXIML7.mjs +0 -20
- package/dist/chunk-MD7WRYIP.mjs.map +0 -1
- package/dist/chunk-MZIYYFYF.mjs.map +0 -1
- package/dist/chunk-V7SUAKB5.mjs.map +0 -1
- package/dist/chunk-WZPXSVHJ.mjs.map +0 -1
- package/dist/embed-page-chunk-RQXI6NQX.js +0 -2
- /package/dist/{AgentDetailSideApp-IKFO5B76.mjs.map → AgentDetailSideApp-ZGV4WC4V.mjs.map} +0 -0
- /package/dist/{AgentGovernanceWorkbench-HWXXIML7.mjs.map → AgentGovernanceWorkbench-HCVHQ3P7.mjs.map} +0 -0
- /package/dist/{MessageGraph-4O5BZI5H.mjs.map → MessageGraph-OA2HMEHI.mjs.map} +0 -0
- /package/dist/{ReactChart-DSQZBNK7.mjs.map → ReactChart-DWIFRI5G.mjs.map} +0 -0
- /package/dist/{SkillFlow-7UFS5RSF.mjs.map → SkillFlow-IHRME3YO.mjs.map} +0 -0
- /package/dist/{TasksSideApp-UERUXLGZ.mjs.map → TasksSideApp-KKBQDSO4.mjs.map} +0 -0
- /package/dist/{TeamWorkspace-RMFSSDLK.mjs.map → TeamWorkspace-ETVDJAYT.mjs.map} +0 -0
- /package/dist/{TopologyRuntimeView-OYMC3OZ7.mjs.map → TopologyRuntimeView-F7JQAXN2.mjs.map} +0 -0
- /package/dist/{WorkflowAutomationView-CYLQ3HOW.mjs.map → WorkflowAutomationView-PBZ5K43L.mjs.map} +0 -0
- /package/dist/{chunk-73ZKUUUV.mjs.map → chunk-3FXH5ZAQ.mjs.map} +0 -0
- /package/dist/{chunk-BGRLHXKR.mjs.map → chunk-3MF4SALK.mjs.map} +0 -0
- /package/dist/{chunk-JEYG4OYQ.mjs.map → chunk-3SEKZBYQ.mjs.map} +0 -0
- /package/dist/{chunk-2RTE6SQG.mjs.map → chunk-57IPUJ5T.mjs.map} +0 -0
- /package/dist/{chunk-YCRJHIO7.mjs.map → chunk-JQLUFZKH.mjs.map} +0 -0
- /package/dist/{chunk-WEEKSFGI.mjs.map → chunk-KU634FOH.mjs.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPanel,
|
|
3
3
|
TrainingContextCard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KU634FOH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
TaskOutlineList
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-57IPUJ5T.mjs";
|
|
8
8
|
import {
|
|
9
9
|
WorkflowCanvas_default,
|
|
10
10
|
expandWorkflow
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3FXH5ZAQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
WorkflowGraphBase,
|
|
14
14
|
applyDagreLayout
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
useTaskCommands,
|
|
51
51
|
useWorkbenchNavStyles,
|
|
52
52
|
useWorkspaceContext
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6XGZ74LQ.mjs";
|
|
54
54
|
import {
|
|
55
55
|
Background,
|
|
56
56
|
Controls,
|
|
@@ -72,15 +72,18 @@ import {
|
|
|
72
72
|
useAuth,
|
|
73
73
|
useClient,
|
|
74
74
|
useLatticeChatShellContext
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-TA243DB6.mjs";
|
|
76
76
|
import {
|
|
77
77
|
AgentWebAppRuntimeClient,
|
|
78
78
|
AgentWebAppRuntimeClientError
|
|
79
79
|
} from "./chunk-Y2HJPMUR.mjs";
|
|
80
80
|
import {
|
|
81
|
+
DEFAULT_LOCALE_STORAGE_KEY,
|
|
81
82
|
LatticeLocaleProvider,
|
|
83
|
+
LocaleBridgeContext,
|
|
84
|
+
readStoredLocale,
|
|
82
85
|
useT
|
|
83
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-PEEXMLMK.mjs";
|
|
84
87
|
|
|
85
88
|
// src/components/Governance/agentMeta.ts
|
|
86
89
|
var TYPE_LABEL = {
|
|
@@ -389,7 +392,7 @@ var AgentEvalPanel = ({ assistantId, initial, navigationKey, onEvalInvalidated }
|
|
|
389
392
|
};
|
|
390
393
|
|
|
391
394
|
// src/integrations/web-app/console-chat/AgentChatApp.tsx
|
|
392
|
-
import { useCallback as useCallback3, useEffect as useEffect3, useMemo, useRef as useRef2, useState as useState2 } from "react";
|
|
395
|
+
import { useCallback as useCallback3, useContext, useEffect as useEffect3, useMemo, useRef as useRef2, useState as useState2 } from "react";
|
|
393
396
|
import { ConfigProvider, Spin as Spin2 } from "antd";
|
|
394
397
|
import { RuntimeAxiomClient } from "@axiom-lattice/client-sdk";
|
|
395
398
|
|
|
@@ -585,11 +588,36 @@ function identityScopeKey(identity) {
|
|
|
585
588
|
function AgentChatApp(props) {
|
|
586
589
|
validateProps(props);
|
|
587
590
|
const scopeKey = `${props.gatewayUrl}\0${props.webAppId}\0${identityScopeKey(props.identity)}`;
|
|
591
|
+
const localeProvidedAbove = useContext(LocaleBridgeContext) !== null;
|
|
592
|
+
const storageKey = props.storageKey ?? DEFAULT_LOCALE_STORAGE_KEY;
|
|
593
|
+
const initialLocale = useMemo(
|
|
594
|
+
() => props.locale ?? readStoredLocale(storageKey) ?? "en-US",
|
|
595
|
+
[props.locale, storageKey]
|
|
596
|
+
);
|
|
597
|
+
const onLocaleChange = useMemo(
|
|
598
|
+
() => props.onLocaleChange ?? (() => {
|
|
599
|
+
if (typeof window !== "undefined") window.location.reload();
|
|
600
|
+
}),
|
|
601
|
+
[props.onLocaleChange]
|
|
602
|
+
);
|
|
603
|
+
if (localeProvidedAbove) {
|
|
604
|
+
return /* @__PURE__ */ jsx3(ScopedAgentChatApp, { ...props }, scopeKey);
|
|
605
|
+
}
|
|
588
606
|
return (
|
|
589
607
|
/* The locale provider sits ABOVE ScopedAgentChatApp on purpose: that
|
|
590
608
|
* component calls useT() itself for its own loading/error copy, so a
|
|
591
|
-
* provider rendered inside its return value would only reach descendants.
|
|
592
|
-
|
|
609
|
+
* provider rendered inside its return value would only reach descendants.
|
|
610
|
+
* `locale` is passed down resolved so antd's built-in text follows the same
|
|
611
|
+
* value the dictionaries were loaded for. */
|
|
612
|
+
/* @__PURE__ */ jsx3(
|
|
613
|
+
LatticeLocaleProvider,
|
|
614
|
+
{
|
|
615
|
+
locale: initialLocale,
|
|
616
|
+
storageKey,
|
|
617
|
+
onLocaleChange,
|
|
618
|
+
children: /* @__PURE__ */ jsx3(ScopedAgentChatApp, { ...props, locale: initialLocale }, scopeKey)
|
|
619
|
+
}
|
|
620
|
+
)
|
|
593
621
|
);
|
|
594
622
|
}
|
|
595
623
|
function ScopedAgentChatApp({ gatewayUrl, webAppId, identity, onError, onChatReady, onChatMessage, fetch: fetchImplementation, className, welcome, quickPrompts, locale = "en-US" }) {
|
|
@@ -8895,4 +8923,4 @@ export {
|
|
|
8895
8923
|
AgentConfigGraph,
|
|
8896
8924
|
AgentDetailView
|
|
8897
8925
|
};
|
|
8898
|
-
//# sourceMappingURL=chunk-
|
|
8926
|
+
//# sourceMappingURL=chunk-EHUPRLAS.mjs.map
|