@axiom-lattice/react-sdk 4.10.0 → 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-EQDCKCXY.mjs → AgentDetailSideApp-ZGV4WC4V.mjs} +8 -8
- package/dist/AgentGovernanceWorkbench-HCVHQ3P7.mjs +20 -0
- package/dist/{MessageGraph-WWTTGLD7.mjs → MessageGraph-OA2HMEHI.mjs} +4 -4
- package/dist/{ReactChart-AOJAFAZM.mjs → ReactChart-DWIFRI5G.mjs} +4 -4
- package/dist/{SkillFlow-3ZGSHMHW.mjs → SkillFlow-IHRME3YO.mjs} +4 -4
- package/dist/{TasksSideApp-42BLTNY4.mjs → TasksSideApp-KKBQDSO4.mjs} +5 -5
- package/dist/{TeamWorkspace-U2IO3W4F.mjs → TeamWorkspace-ETVDJAYT.mjs} +4 -4
- package/dist/{TopologyRuntimeView-KJQVVUGE.mjs → TopologyRuntimeView-F7JQAXN2.mjs} +5 -5
- package/dist/{WorkflowAutomationView-3L3IMYYG.mjs → WorkflowAutomationView-PBZ5K43L.mjs} +7 -7
- package/dist/{chunk-4CGRA733.mjs → chunk-3FXH5ZAQ.mjs} +3 -3
- package/dist/{chunk-ECHGNV43.mjs → chunk-3MF4SALK.mjs} +6 -6
- package/dist/{chunk-HG7UMQO2.mjs → chunk-3SEKZBYQ.mjs} +3 -3
- package/dist/{chunk-HJDE5RQJ.mjs → chunk-57IPUJ5T.mjs} +3 -3
- package/dist/{chunk-TBQVOSCN.mjs → chunk-6XGZ74LQ.mjs} +24 -18
- package/dist/chunk-6XGZ74LQ.mjs.map +1 -0
- package/dist/{chunk-ZHOCTUDR.mjs → chunk-EHUPRLAS.mjs} +38 -10
- package/dist/chunk-EHUPRLAS.mjs.map +1 -0
- package/dist/{chunk-CRGVJY56.mjs → chunk-JQLUFZKH.mjs} +6 -6
- package/dist/{chunk-QTXQT77Q.mjs → chunk-KU634FOH.mjs} +4 -4
- package/dist/{chunk-XVZUC4U3.mjs → chunk-PEEXMLMK.mjs} +21 -5
- package/dist/chunk-PEEXMLMK.mjs.map +1 -0
- package/dist/{chunk-JNP2AHRT.mjs → chunk-TA243DB6.mjs} +36 -3
- package/dist/chunk-TA243DB6.mjs.map +1 -0
- package/dist/{embed-page-AgentDetailSideApp-GH3XNS5A.js → embed-page-AgentDetailSideApp-RM4TDSC5.js} +1 -1
- package/dist/{embed-page-AgentGovernanceWorkbench-AXHLZTUG.js → embed-page-AgentGovernanceWorkbench-G6A6QNZY.js} +1 -1
- package/dist/{embed-page-MessageGraph-HLLPBTLQ.js → embed-page-MessageGraph-ZLGTKJNE.js} +1 -1
- package/dist/{embed-page-ReactChart-46EYPRQ7.js → embed-page-ReactChart-IB6R6G57.js} +1 -1
- package/dist/{embed-page-SkillFlow-NMUDTNTY.js → embed-page-SkillFlow-STU36L34.js} +1 -1
- package/dist/{embed-page-TasksSideApp-DOCKHJCF.js → embed-page-TasksSideApp-X4APWG4G.js} +1 -1
- package/dist/{embed-page-TeamWorkspace-LXOIMYRW.js → embed-page-TeamWorkspace-EK4BNNGD.js} +1 -1
- package/dist/{embed-page-TopologyRuntimeView-DT7XXEK2.js → embed-page-TopologyRuntimeView-X5CHJPHN.js} +1 -1
- package/dist/{embed-page-WorkflowAutomationView-ONAY4RTM.js → embed-page-WorkflowAutomationView-3LIT27E2.js} +1 -1
- package/dist/{embed-page-chunk-JQSBSZMP.js → embed-page-chunk-5WPKSLDW.js} +1 -1
- package/dist/embed-page-chunk-64FTYZ5F.js +2 -0
- package/dist/{embed-page-chunk-LGZUYB7B.js → embed-page-chunk-734QFJP3.js} +1 -1
- package/dist/{embed-page-chunk-RA35MUYW.js → embed-page-chunk-7D54ACES.js} +1 -1
- package/dist/{embed-page-chunk-OY4CDWED.js → embed-page-chunk-DDK2VFYD.js} +7 -7
- package/dist/{embed-page-chunk-F7G2DME5.js → embed-page-chunk-EQRDCFN5.js} +1 -1
- package/dist/{embed-page-chunk-H4W4NDIY.js → embed-page-chunk-W45YCZIC.js} +7 -7
- package/dist/embed-page.js +1 -1
- package/dist/index.d.mts +41 -3
- package/dist/index.d.ts +41 -3
- package/dist/index.js +211 -125
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/web-app.js +1 -6
- package/dist/web-app.js.map +1 -1
- package/dist/web-app.mjs +1 -1
- package/package.json +3 -3
- package/dist/AgentGovernanceWorkbench-2HCQ4POL.mjs +0 -20
- package/dist/chunk-JNP2AHRT.mjs.map +0 -1
- package/dist/chunk-TBQVOSCN.mjs.map +0 -1
- package/dist/chunk-XVZUC4U3.mjs.map +0 -1
- package/dist/chunk-ZHOCTUDR.mjs.map +0 -1
- package/dist/embed-page-chunk-NR2PTMJ6.js +0 -2
- /package/dist/{AgentDetailSideApp-EQDCKCXY.mjs.map → AgentDetailSideApp-ZGV4WC4V.mjs.map} +0 -0
- /package/dist/{AgentGovernanceWorkbench-2HCQ4POL.mjs.map → AgentGovernanceWorkbench-HCVHQ3P7.mjs.map} +0 -0
- /package/dist/{MessageGraph-WWTTGLD7.mjs.map → MessageGraph-OA2HMEHI.mjs.map} +0 -0
- /package/dist/{ReactChart-AOJAFAZM.mjs.map → ReactChart-DWIFRI5G.mjs.map} +0 -0
- /package/dist/{SkillFlow-3ZGSHMHW.mjs.map → SkillFlow-IHRME3YO.mjs.map} +0 -0
- /package/dist/{TasksSideApp-42BLTNY4.mjs.map → TasksSideApp-KKBQDSO4.mjs.map} +0 -0
- /package/dist/{TeamWorkspace-U2IO3W4F.mjs.map → TeamWorkspace-ETVDJAYT.mjs.map} +0 -0
- /package/dist/{TopologyRuntimeView-KJQVVUGE.mjs.map → TopologyRuntimeView-F7JQAXN2.mjs.map} +0 -0
- /package/dist/{WorkflowAutomationView-3L3IMYYG.mjs.map → WorkflowAutomationView-PBZ5K43L.mjs.map} +0 -0
- /package/dist/{chunk-4CGRA733.mjs.map → chunk-3FXH5ZAQ.mjs.map} +0 -0
- /package/dist/{chunk-ECHGNV43.mjs.map → chunk-3MF4SALK.mjs.map} +0 -0
- /package/dist/{chunk-HG7UMQO2.mjs.map → chunk-3SEKZBYQ.mjs.map} +0 -0
- /package/dist/{chunk-HJDE5RQJ.mjs.map → chunk-57IPUJ5T.mjs.map} +0 -0
- /package/dist/{chunk-CRGVJY56.mjs.map → chunk-JQLUFZKH.mjs.map} +0 -0
- /package/dist/{chunk-QTXQT77Q.mjs.map → chunk-KU634FOH.mjs.map} +0 -0
package/dist/embed-page.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h}from"./embed-page-chunk-
|
|
1
|
+
import{b as h}from"./embed-page-chunk-64FTYZ5F.js";import"./embed-page-chunk-DDK2VFYD.js";import"./embed-page-chunk-W45YCZIC.js";import{a as E}from"./embed-page-chunk-QV7QAJ4N.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-QULNM5O2.js";import{a as b}from"./embed-page-chunk-MHGVD4EV.js";import"./embed-page-chunk-R5QL57JJ.js";import"./embed-page-chunk-QOWM3LMZ.js";import"./embed-page-chunk-EUOOO2LS.js";import"./embed-page-chunk-5JDQ456X.js";import{b as f}from"./embed-page-chunk-HYPA2PHA.js";import{c as z,f as l}from"./embed-page-chunk-QBTAJ2YI.js";var x=z(m=>{"use strict";var y=b();m.createRoot=y.createRoot,m.hydrateRoot=y.hydrateRoot;var te});var T=l(x()),M=l(b());var w="axiom-web-app-embed";var _=["axiom:hello","axiom:identity","axiom:send","axiom:config"];function R(e,t){return{source:w,version:1,type:e,payload:t}}var B=6,H=40,Q=500;function q(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e,n=Object.keys(t);return n.length!==2||!n.includes("label")||!n.includes("text")?!1:typeof t.label=="string"&&t.label.length>=1&&t.label.length<=H&&typeof t.text=="string"&&t.text.length>=1&&t.text.length<=Q}function G(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(t.length>=B)break;q(n)&&t.push({label:n.label,text:n.text})}return t}function C(e){if(typeof e!="object"||e===null)return null;let t=e,n={};if(typeof t.welcome=="string"&&t.welcome.length>0&&(n.welcome=t.welcome),Array.isArray(t.quicks)){let a=G(t.quicks);(a.length>0||t.quicks.length===0)&&(n.quicks=a)}return n.welcome===void 0&&n.quicks===void 0?null:n}function A(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==w||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var r=l(E()),S=/^[A-Za-z0-9._:@-]{1,128}$/,v="axiom-embed-root",k="axiom-embed-style",P=32768,j=`
|
|
2
2
|
html, body, #${v} { height: 100%; margin: 0; }
|
|
3
3
|
.axiom-embed-fill { height: 100% !important; min-height: 0 !important; }
|
|
4
4
|
.axiom-embed-card { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #64748b; padding: 24px; box-sizing: border-box; text-align: center; }
|
package/dist/index.d.mts
CHANGED
|
@@ -3,12 +3,12 @@ import { Message, InterruptMessage, Thread, MessageChunk, ModelProviderPublicEnt
|
|
|
3
3
|
export * from '@axiom-lattice/protocols';
|
|
4
4
|
import * as _axiom_lattice_client_sdk from '@axiom-lattice/client-sdk';
|
|
5
5
|
import { ClientConfig as ClientConfig$1, Client, CapabilityBundle, InvalidCapabilityBundleSummary, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CapabilityPreview, Workspace, Project, CreateWorkspaceRequest, UpdateWorkspaceRequest, CreateProjectRequest, UpdateProjectRequest, FileItem, ProjectKind, Assistant, CreateAssistantOptions, UpdateAssistantOptions, LocalA2AProviderState, A2AKeyListItem, ImportResolutions, ProjectRoomDispatchResult, ProjectRoomRecord, ProjectRoomMessageRecord, ProjectRoomMembershipRecord, ProjectRoomBotRecord, WorkspaceRoomKnownBusinessEvent, AddProjectMembershipInput, AddProjectBotMembershipInput, UpdateProjectBotMembershipInput, ProjectRoomInterruptAnswerInput, WorkspaceRoomEntryRecord } from '@axiom-lattice/client-sdk';
|
|
6
|
+
import { LatticeLocale, TParams, Dictionary } from '@axiom-lattice/i18n';
|
|
7
|
+
export { Dictionary, LatticeLocale, TFunction, TParams } from '@axiom-lattice/i18n';
|
|
6
8
|
import * as React$1 from 'react';
|
|
7
9
|
import React__default, { ReactNode, Component } from 'react';
|
|
8
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
11
|
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
10
|
-
import { TParams, LatticeLocale, Dictionary } from '@axiom-lattice/i18n';
|
|
11
|
-
export { Dictionary, LatticeLocale, TFunction, TParams } from '@axiom-lattice/i18n';
|
|
12
12
|
import { Prompts } from '@ant-design/x';
|
|
13
13
|
import { GetProp, ThemeConfig } from 'antd';
|
|
14
14
|
export { ThemeConfig } from 'antd';
|
|
@@ -54,6 +54,30 @@ interface AxiomLatticeProviderProps {
|
|
|
54
54
|
* factory is invoked per assistant ID to produce assistant-scoped clients.
|
|
55
55
|
*/
|
|
56
56
|
createClient?: (config: ClientConfig$1) => Client;
|
|
57
|
+
/**
|
|
58
|
+
* Locale used by the locale layer this provider supplies when there is no
|
|
59
|
+
* `LatticeLocaleProvider` above it. Ignored when there is one.
|
|
60
|
+
*
|
|
61
|
+
* Defaults to the stored value in `storageKey`, then `"en-US"`.
|
|
62
|
+
*/
|
|
63
|
+
locale?: LatticeLocale;
|
|
64
|
+
/**
|
|
65
|
+
* `localStorage` key the supplied locale layer persists the choice under.
|
|
66
|
+
*
|
|
67
|
+
* Defaults to `"lattice.locale"` — the key the first-party apps use — so a
|
|
68
|
+
* host that mounts only this provider still agrees with them.
|
|
69
|
+
*/
|
|
70
|
+
storageKey?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the user picks a locale, after it is persisted. Defaults to a
|
|
73
|
+
* full `window.location.reload()`.
|
|
74
|
+
*
|
|
75
|
+
* The reload is the default on purpose: the locale layer loads one locale's
|
|
76
|
+
* dictionaries at boot, so switching only persists the choice — without a
|
|
77
|
+
* reload (or equivalent re-render that feeds the new locale back in) the
|
|
78
|
+
* switch would silently do nothing.
|
|
79
|
+
*/
|
|
80
|
+
onLocaleChange?: (locale: LatticeLocale) => void;
|
|
57
81
|
}
|
|
58
82
|
/**
|
|
59
83
|
* Thread interface
|
|
@@ -4295,7 +4319,7 @@ declare function useCapabilityBundles(): UseCapabilityBundlesResult;
|
|
|
4295
4319
|
* @param props - Provider props
|
|
4296
4320
|
* @returns Provider component
|
|
4297
4321
|
*/
|
|
4298
|
-
declare function AxiomLatticeProvider({ config, onUnauthorized, createClient, children, }: AxiomLatticeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4322
|
+
declare function AxiomLatticeProvider({ config, onUnauthorized, createClient, locale, storageKey, onLocaleChange, children, }: AxiomLatticeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4299
4323
|
interface UseAxiomLatticeOptions {
|
|
4300
4324
|
assistantId?: string | null;
|
|
4301
4325
|
}
|
|
@@ -6208,6 +6232,20 @@ interface AgentChatAppProps {
|
|
|
6208
6232
|
* passes `"zh-CN"`; a host serving several locales derives it per request.
|
|
6209
6233
|
*/
|
|
6210
6234
|
locale?: LatticeLocale;
|
|
6235
|
+
/**
|
|
6236
|
+
* `localStorage` key the language switch persists the choice under, used only
|
|
6237
|
+
* when this component supplies the locale layer itself (see below). Defaults
|
|
6238
|
+
* to the SDK's `"lattice.locale"`.
|
|
6239
|
+
*/
|
|
6240
|
+
storageKey?: string;
|
|
6241
|
+
/**
|
|
6242
|
+
* Called when the user picks a locale, after it is persisted. Defaults to a
|
|
6243
|
+
* full reload. Only used when this component supplies the locale layer.
|
|
6244
|
+
*
|
|
6245
|
+
* Without a reload (or an equivalent re-render feeding the new locale back in)
|
|
6246
|
+
* the switch would silently do nothing: switching only persists the choice.
|
|
6247
|
+
*/
|
|
6248
|
+
onLocaleChange?: (locale: LatticeLocale) => void;
|
|
6211
6249
|
}
|
|
6212
6250
|
/**
|
|
6213
6251
|
* Public Web App chat shell that reuses the unmodified Console chat stack
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { Message, InterruptMessage, Thread, MessageChunk, ModelProviderPublicEnt
|
|
|
3
3
|
export * from '@axiom-lattice/protocols';
|
|
4
4
|
import * as _axiom_lattice_client_sdk from '@axiom-lattice/client-sdk';
|
|
5
5
|
import { ClientConfig as ClientConfig$1, Client, CapabilityBundle, InvalidCapabilityBundleSummary, CreateCapabilityBundleInput, UpdateCapabilityBundleInput, CapabilityPreview, Workspace, Project, CreateWorkspaceRequest, UpdateWorkspaceRequest, CreateProjectRequest, UpdateProjectRequest, FileItem, ProjectKind, Assistant, CreateAssistantOptions, UpdateAssistantOptions, LocalA2AProviderState, A2AKeyListItem, ImportResolutions, ProjectRoomDispatchResult, ProjectRoomRecord, ProjectRoomMessageRecord, ProjectRoomMembershipRecord, ProjectRoomBotRecord, WorkspaceRoomKnownBusinessEvent, AddProjectMembershipInput, AddProjectBotMembershipInput, UpdateProjectBotMembershipInput, ProjectRoomInterruptAnswerInput, WorkspaceRoomEntryRecord } from '@axiom-lattice/client-sdk';
|
|
6
|
+
import { LatticeLocale, TParams, Dictionary } from '@axiom-lattice/i18n';
|
|
7
|
+
export { Dictionary, LatticeLocale, TFunction, TParams } from '@axiom-lattice/i18n';
|
|
6
8
|
import * as React$1 from 'react';
|
|
7
9
|
import React__default, { ReactNode, Component } from 'react';
|
|
8
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
11
|
import { SlotConfigType } from '@ant-design/x/es/sender/interface';
|
|
10
|
-
import { TParams, LatticeLocale, Dictionary } from '@axiom-lattice/i18n';
|
|
11
|
-
export { Dictionary, LatticeLocale, TFunction, TParams } from '@axiom-lattice/i18n';
|
|
12
12
|
import { Prompts } from '@ant-design/x';
|
|
13
13
|
import { GetProp, ThemeConfig } from 'antd';
|
|
14
14
|
export { ThemeConfig } from 'antd';
|
|
@@ -54,6 +54,30 @@ interface AxiomLatticeProviderProps {
|
|
|
54
54
|
* factory is invoked per assistant ID to produce assistant-scoped clients.
|
|
55
55
|
*/
|
|
56
56
|
createClient?: (config: ClientConfig$1) => Client;
|
|
57
|
+
/**
|
|
58
|
+
* Locale used by the locale layer this provider supplies when there is no
|
|
59
|
+
* `LatticeLocaleProvider` above it. Ignored when there is one.
|
|
60
|
+
*
|
|
61
|
+
* Defaults to the stored value in `storageKey`, then `"en-US"`.
|
|
62
|
+
*/
|
|
63
|
+
locale?: LatticeLocale;
|
|
64
|
+
/**
|
|
65
|
+
* `localStorage` key the supplied locale layer persists the choice under.
|
|
66
|
+
*
|
|
67
|
+
* Defaults to `"lattice.locale"` — the key the first-party apps use — so a
|
|
68
|
+
* host that mounts only this provider still agrees with them.
|
|
69
|
+
*/
|
|
70
|
+
storageKey?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the user picks a locale, after it is persisted. Defaults to a
|
|
73
|
+
* full `window.location.reload()`.
|
|
74
|
+
*
|
|
75
|
+
* The reload is the default on purpose: the locale layer loads one locale's
|
|
76
|
+
* dictionaries at boot, so switching only persists the choice — without a
|
|
77
|
+
* reload (or equivalent re-render that feeds the new locale back in) the
|
|
78
|
+
* switch would silently do nothing.
|
|
79
|
+
*/
|
|
80
|
+
onLocaleChange?: (locale: LatticeLocale) => void;
|
|
57
81
|
}
|
|
58
82
|
/**
|
|
59
83
|
* Thread interface
|
|
@@ -4295,7 +4319,7 @@ declare function useCapabilityBundles(): UseCapabilityBundlesResult;
|
|
|
4295
4319
|
* @param props - Provider props
|
|
4296
4320
|
* @returns Provider component
|
|
4297
4321
|
*/
|
|
4298
|
-
declare function AxiomLatticeProvider({ config, onUnauthorized, createClient, children, }: AxiomLatticeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4322
|
+
declare function AxiomLatticeProvider({ config, onUnauthorized, createClient, locale, storageKey, onLocaleChange, children, }: AxiomLatticeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4299
4323
|
interface UseAxiomLatticeOptions {
|
|
4300
4324
|
assistantId?: string | null;
|
|
4301
4325
|
}
|
|
@@ -6208,6 +6232,20 @@ interface AgentChatAppProps {
|
|
|
6208
6232
|
* passes `"zh-CN"`; a host serving several locales derives it per request.
|
|
6209
6233
|
*/
|
|
6210
6234
|
locale?: LatticeLocale;
|
|
6235
|
+
/**
|
|
6236
|
+
* `localStorage` key the language switch persists the choice under, used only
|
|
6237
|
+
* when this component supplies the locale layer itself (see below). Defaults
|
|
6238
|
+
* to the SDK's `"lattice.locale"`.
|
|
6239
|
+
*/
|
|
6240
|
+
storageKey?: string;
|
|
6241
|
+
/**
|
|
6242
|
+
* Called when the user picks a locale, after it is persisted. Defaults to a
|
|
6243
|
+
* full reload. Only used when this component supplies the locale layer.
|
|
6244
|
+
*
|
|
6245
|
+
* Without a reload (or an equivalent re-render feeding the new locale back in)
|
|
6246
|
+
* the switch would silently do nothing: switching only persists the choice.
|
|
6247
|
+
*/
|
|
6248
|
+
onLocaleChange?: (locale: LatticeLocale) => void;
|
|
6211
6249
|
}
|
|
6212
6250
|
/**
|
|
6213
6251
|
* Public Web App chat shell that reuses the unmodified Console chat stack
|