@axiom-lattice/react-sdk 4.11.0 → 4.11.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.
- package/dist/{AgentDetailSideApp-ZGV4WC4V.mjs → AgentDetailSideApp-GSO53ECQ.mjs} +7 -7
- package/dist/{AgentGovernanceWorkbench-HCVHQ3P7.mjs → AgentGovernanceWorkbench-LHXFBEYO.mjs} +8 -8
- package/dist/{MessageGraph-OA2HMEHI.mjs → MessageGraph-RUU5W4OT.mjs} +3 -3
- package/dist/{ReactChart-DWIFRI5G.mjs → ReactChart-KU4TD7TM.mjs} +3 -3
- package/dist/{SkillFlow-IHRME3YO.mjs → SkillFlow-MLSQCF4X.mjs} +3 -3
- package/dist/{TasksSideApp-KKBQDSO4.mjs → TasksSideApp-LWM6XAWN.mjs} +4 -4
- package/dist/{TeamWorkspace-ETVDJAYT.mjs → TeamWorkspace-3NLKUNRK.mjs} +3 -3
- package/dist/{TopologyRuntimeView-F7JQAXN2.mjs → TopologyRuntimeView-NVFFMHTP.mjs} +4 -4
- package/dist/{WorkflowAutomationView-PBZ5K43L.mjs → WorkflowAutomationView-WBVKM73F.mjs} +6 -6
- package/dist/{chunk-57IPUJ5T.mjs → chunk-BXPPM4ZX.mjs} +2 -2
- package/dist/{chunk-JQLUFZKH.mjs → chunk-NRT6JXPT.mjs} +5 -5
- package/dist/{chunk-6XGZ74LQ.mjs → chunk-PMICYMSW.mjs} +15 -15
- package/dist/chunk-PMICYMSW.mjs.map +1 -0
- package/dist/{chunk-EHUPRLAS.mjs → chunk-QM3NPPQJ.mjs} +14 -26
- package/dist/chunk-QM3NPPQJ.mjs.map +1 -0
- package/dist/{chunk-TA243DB6.mjs → chunk-RDC4ZHXF.mjs} +100 -73
- package/dist/chunk-RDC4ZHXF.mjs.map +1 -0
- package/dist/{chunk-KU634FOH.mjs → chunk-YDIVRYML.mjs} +3 -3
- package/dist/{chunk-3SEKZBYQ.mjs → chunk-ZQ7G446O.mjs} +2 -2
- package/dist/{chunk-3FXH5ZAQ.mjs → chunk-ZX53OESZ.mjs} +2 -2
- package/dist/{chunk-3MF4SALK.mjs → chunk-ZXEY5OGX.mjs} +5 -5
- package/dist/{embed-page-AgentDetailSideApp-RM4TDSC5.js → embed-page-AgentDetailSideApp-FHC56ARN.js} +1 -1
- package/dist/{embed-page-AgentGovernanceWorkbench-G6A6QNZY.js → embed-page-AgentGovernanceWorkbench-KAPZJBE6.js} +1 -1
- package/dist/{embed-page-MessageGraph-ZLGTKJNE.js → embed-page-MessageGraph-DMP5EZBM.js} +1 -1
- package/dist/{embed-page-ReactChart-IB6R6G57.js → embed-page-ReactChart-PYGNSRHG.js} +1 -1
- package/dist/{embed-page-SkillFlow-STU36L34.js → embed-page-SkillFlow-6LPE2VG3.js} +1 -1
- package/dist/{embed-page-TasksSideApp-X4APWG4G.js → embed-page-TasksSideApp-MPYOPRXW.js} +1 -1
- package/dist/{embed-page-TeamWorkspace-EK4BNNGD.js → embed-page-TeamWorkspace-EXUAXKAH.js} +1 -1
- package/dist/{embed-page-TopologyRuntimeView-X5CHJPHN.js → embed-page-TopologyRuntimeView-MH4YMU7D.js} +1 -1
- package/dist/{embed-page-WorkflowAutomationView-3LIT27E2.js → embed-page-WorkflowAutomationView-KQYFSLLH.js} +1 -1
- package/dist/{embed-page-chunk-7D54ACES.js → embed-page-chunk-I7BVN6EY.js} +1 -1
- package/dist/{embed-page-chunk-EQRDCFN5.js → embed-page-chunk-JSAUTBU5.js} +1 -1
- package/dist/{embed-page-chunk-734QFJP3.js → embed-page-chunk-NW37OVAX.js} +1 -1
- package/dist/{embed-page-chunk-W45YCZIC.js → embed-page-chunk-O44JEYLD.js} +7 -7
- package/dist/embed-page-chunk-QGXGVLAX.js +2 -0
- package/dist/{embed-page-chunk-DDK2VFYD.js → embed-page-chunk-QHXKZNDU.js} +8 -8
- package/dist/{embed-page-chunk-5WPKSLDW.js → embed-page-chunk-YQZI5LNV.js} +1 -1
- package/dist/embed-page.js +1 -1
- package/dist/index.js +808 -787
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/package.json +4 -4
- package/dist/chunk-6XGZ74LQ.mjs.map +0 -1
- package/dist/chunk-EHUPRLAS.mjs.map +0 -1
- package/dist/chunk-TA243DB6.mjs.map +0 -1
- package/dist/embed-page-chunk-64FTYZ5F.js +0 -2
- /package/dist/{AgentDetailSideApp-ZGV4WC4V.mjs.map → AgentDetailSideApp-GSO53ECQ.mjs.map} +0 -0
- /package/dist/{AgentGovernanceWorkbench-HCVHQ3P7.mjs.map → AgentGovernanceWorkbench-LHXFBEYO.mjs.map} +0 -0
- /package/dist/{MessageGraph-OA2HMEHI.mjs.map → MessageGraph-RUU5W4OT.mjs.map} +0 -0
- /package/dist/{ReactChart-DWIFRI5G.mjs.map → ReactChart-KU4TD7TM.mjs.map} +0 -0
- /package/dist/{SkillFlow-IHRME3YO.mjs.map → SkillFlow-MLSQCF4X.mjs.map} +0 -0
- /package/dist/{TasksSideApp-KKBQDSO4.mjs.map → TasksSideApp-LWM6XAWN.mjs.map} +0 -0
- /package/dist/{TeamWorkspace-ETVDJAYT.mjs.map → TeamWorkspace-3NLKUNRK.mjs.map} +0 -0
- /package/dist/{TopologyRuntimeView-F7JQAXN2.mjs.map → TopologyRuntimeView-NVFFMHTP.mjs.map} +0 -0
- /package/dist/{WorkflowAutomationView-PBZ5K43L.mjs.map → WorkflowAutomationView-WBVKM73F.mjs.map} +0 -0
- /package/dist/{chunk-57IPUJ5T.mjs.map → chunk-BXPPM4ZX.mjs.map} +0 -0
- /package/dist/{chunk-JQLUFZKH.mjs.map → chunk-NRT6JXPT.mjs.map} +0 -0
- /package/dist/{chunk-KU634FOH.mjs.map → chunk-YDIVRYML.mjs.map} +0 -0
- /package/dist/{chunk-3SEKZBYQ.mjs.map → chunk-ZQ7G446O.mjs.map} +0 -0
- /package/dist/{chunk-3FXH5ZAQ.mjs.map → chunk-ZX53OESZ.mjs.map} +0 -0
- /package/dist/{chunk-3MF4SALK.mjs.map → chunk-ZXEY5OGX.mjs.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPanel,
|
|
3
3
|
TrainingContextCard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YDIVRYML.mjs";
|
|
5
5
|
import {
|
|
6
6
|
TaskOutlineList
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BXPPM4ZX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
WorkflowCanvas_default,
|
|
10
10
|
expandWorkflow
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZX53OESZ.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-PMICYMSW.mjs";
|
|
54
54
|
import {
|
|
55
55
|
Background,
|
|
56
56
|
Controls,
|
|
@@ -67,20 +67,19 @@ import {
|
|
|
67
67
|
import {
|
|
68
68
|
AxiomLatticeProvider,
|
|
69
69
|
LatticeChatShellContextProvider,
|
|
70
|
+
LocaleLayerIfAbsent,
|
|
70
71
|
readAuthItem,
|
|
71
72
|
useApi,
|
|
72
73
|
useAuth,
|
|
73
74
|
useClient,
|
|
74
75
|
useLatticeChatShellContext
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RDC4ZHXF.mjs";
|
|
76
77
|
import {
|
|
77
78
|
AgentWebAppRuntimeClient,
|
|
78
79
|
AgentWebAppRuntimeClientError
|
|
79
80
|
} from "./chunk-Y2HJPMUR.mjs";
|
|
80
81
|
import {
|
|
81
82
|
DEFAULT_LOCALE_STORAGE_KEY,
|
|
82
|
-
LatticeLocaleProvider,
|
|
83
|
-
LocaleBridgeContext,
|
|
84
83
|
readStoredLocale,
|
|
85
84
|
useT
|
|
86
85
|
} from "./chunk-PEEXMLMK.mjs";
|
|
@@ -392,7 +391,7 @@ var AgentEvalPanel = ({ assistantId, initial, navigationKey, onEvalInvalidated }
|
|
|
392
391
|
};
|
|
393
392
|
|
|
394
393
|
// src/integrations/web-app/console-chat/AgentChatApp.tsx
|
|
395
|
-
import { useCallback as useCallback3,
|
|
394
|
+
import { useCallback as useCallback3, useEffect as useEffect3, useMemo, useRef as useRef2, useState as useState2 } from "react";
|
|
396
395
|
import { ConfigProvider, Spin as Spin2 } from "antd";
|
|
397
396
|
import { RuntimeAxiomClient } from "@axiom-lattice/client-sdk";
|
|
398
397
|
|
|
@@ -588,33 +587,22 @@ function identityScopeKey(identity) {
|
|
|
588
587
|
function AgentChatApp(props) {
|
|
589
588
|
validateProps(props);
|
|
590
589
|
const scopeKey = `${props.gatewayUrl}\0${props.webAppId}\0${identityScopeKey(props.identity)}`;
|
|
591
|
-
const localeProvidedAbove = useContext(LocaleBridgeContext) !== null;
|
|
592
590
|
const storageKey = props.storageKey ?? DEFAULT_LOCALE_STORAGE_KEY;
|
|
593
591
|
const initialLocale = useMemo(
|
|
594
592
|
() => props.locale ?? readStoredLocale(storageKey) ?? "en-US",
|
|
595
593
|
[props.locale, storageKey]
|
|
596
594
|
);
|
|
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
|
-
}
|
|
606
595
|
return (
|
|
607
|
-
/* The
|
|
608
|
-
* component
|
|
609
|
-
* provider
|
|
610
|
-
*
|
|
611
|
-
* value the dictionaries were loaded for. */
|
|
596
|
+
/* The layer is supplied only when the host has not: the embed page is this
|
|
597
|
+
* component's root, while the Console preview nests it inside a host
|
|
598
|
+
* provider that must keep winning. `locale` is still passed down resolved
|
|
599
|
+
* so antd's built-in text follows the value the dictionaries load for. */
|
|
612
600
|
/* @__PURE__ */ jsx3(
|
|
613
|
-
|
|
601
|
+
LocaleLayerIfAbsent,
|
|
614
602
|
{
|
|
615
603
|
locale: initialLocale,
|
|
616
604
|
storageKey,
|
|
617
|
-
onLocaleChange,
|
|
605
|
+
onLocaleChange: props.onLocaleChange,
|
|
618
606
|
children: /* @__PURE__ */ jsx3(ScopedAgentChatApp, { ...props, locale: initialLocale }, scopeKey)
|
|
619
607
|
}
|
|
620
608
|
)
|
|
@@ -8923,4 +8911,4 @@ export {
|
|
|
8923
8911
|
AgentConfigGraph,
|
|
8924
8912
|
AgentDetailView
|
|
8925
8913
|
};
|
|
8926
|
-
//# sourceMappingURL=chunk-
|
|
8914
|
+
//# sourceMappingURL=chunk-QM3NPPQJ.mjs.map
|