@axiom-lattice/react-sdk 2.1.75 → 2.1.76
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/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1427,6 +1427,11 @@ interface LatticeChatShellConfig {
|
|
|
1427
1427
|
* Defaults to true
|
|
1428
1428
|
*/
|
|
1429
1429
|
sidebarDefaultExpanded?: boolean;
|
|
1430
|
+
/**
|
|
1431
|
+
* Whether workspace menu is expanded by default
|
|
1432
|
+
* Defaults to true
|
|
1433
|
+
*/
|
|
1434
|
+
workspaceMenuDefaultExpanded?: boolean;
|
|
1430
1435
|
/**
|
|
1431
1436
|
* Whether to show the expand/collapse toggle button
|
|
1432
1437
|
* Defaults to true
|
package/dist/index.d.ts
CHANGED
|
@@ -1427,6 +1427,11 @@ interface LatticeChatShellConfig {
|
|
|
1427
1427
|
* Defaults to true
|
|
1428
1428
|
*/
|
|
1429
1429
|
sidebarDefaultExpanded?: boolean;
|
|
1430
|
+
/**
|
|
1431
|
+
* Whether workspace menu is expanded by default
|
|
1432
|
+
* Defaults to true
|
|
1433
|
+
*/
|
|
1434
|
+
workspaceMenuDefaultExpanded?: boolean;
|
|
1430
1435
|
/**
|
|
1431
1436
|
* Whether to show the expand/collapse toggle button
|
|
1432
1437
|
* Defaults to true
|
package/dist/index.js
CHANGED
|
@@ -1443,6 +1443,7 @@ var DEFAULT_CONFIG = {
|
|
|
1443
1443
|
enableModelSelector: false,
|
|
1444
1444
|
sidebarMode: "icon",
|
|
1445
1445
|
sidebarDefaultExpanded: true,
|
|
1446
|
+
workspaceMenuDefaultExpanded: true,
|
|
1446
1447
|
sidebarShowToggle: true,
|
|
1447
1448
|
sidebarShowNewAnalysis: true,
|
|
1448
1449
|
sidebarLogoText: "Lattice"
|
|
@@ -20998,7 +20999,7 @@ var WorkspaceResourceManager = ({
|
|
|
20998
20999
|
logo,
|
|
20999
21000
|
logoText: workspaceName || "Workspace",
|
|
21000
21001
|
showToggle: true,
|
|
21001
|
-
defaultExpanded: true,
|
|
21002
|
+
defaultExpanded: config.workspaceMenuDefaultExpanded ?? true,
|
|
21002
21003
|
collapsed: menuCollapsed,
|
|
21003
21004
|
onCollapsedChange: setMenuCollapsed,
|
|
21004
21005
|
footer: ({ isIconMode }) => user && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
@@ -32571,11 +32572,6 @@ var import_antd97 = require("antd");
|
|
|
32571
32572
|
var import_lucide_react34 = require("lucide-react");
|
|
32572
32573
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
32573
32574
|
var { Text: Text47, Title: Title17 } = import_antd97.Typography;
|
|
32574
|
-
var MAPPING_MODE_OPTIONS = [
|
|
32575
|
-
{ label: "User", value: "user" },
|
|
32576
|
-
{ label: "Group", value: "group" },
|
|
32577
|
-
{ label: "Hybrid", value: "hybrid" }
|
|
32578
|
-
];
|
|
32579
32575
|
var ChannelInstallationsDrawerContent = () => {
|
|
32580
32576
|
const { get, post, put, del } = useApi();
|
|
32581
32577
|
const [installations, setInstallations] = (0, import_react104.useState)([]);
|
|
@@ -32697,22 +32693,6 @@ var ChannelInstallationsDrawerContent = () => {
|
|
|
32697
32693
|
"ID: ",
|
|
32698
32694
|
installation.id
|
|
32699
32695
|
] }),
|
|
32700
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Text47, { style: { fontSize: 13 }, children: [
|
|
32701
|
-
"Assistant ID: ",
|
|
32702
|
-
installation.config.assistantId
|
|
32703
|
-
] }),
|
|
32704
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Text47, { style: { fontSize: 13 }, children: [
|
|
32705
|
-
"Mapping Mode: ",
|
|
32706
|
-
installation.config.mappingMode
|
|
32707
|
-
] }),
|
|
32708
|
-
installation.config.workspaceId ? /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Text47, { style: { fontSize: 13 }, children: [
|
|
32709
|
-
"Workspace ID: ",
|
|
32710
|
-
installation.config.workspaceId
|
|
32711
|
-
] }) : null,
|
|
32712
|
-
installation.config.projectId ? /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(Text47, { style: { fontSize: 13 }, children: [
|
|
32713
|
-
"Project ID: ",
|
|
32714
|
-
installation.config.projectId
|
|
32715
|
-
] }) : null,
|
|
32716
32696
|
webhookPath ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text47, { code: true, style: { fontSize: 12 }, children: webhookPath }) : /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Text47, { type: "secondary", style: { fontSize: 12 }, children: "Unsupported channel configuration UI" })
|
|
32717
32697
|
]
|
|
32718
32698
|
}
|
|
@@ -32768,23 +32748,17 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
|
|
|
32768
32748
|
const [form] = import_antd97.Form.useForm();
|
|
32769
32749
|
(0, import_react104.useEffect)(() => {
|
|
32770
32750
|
if (installation) {
|
|
32751
|
+
const config = installation.config;
|
|
32771
32752
|
form.setFieldsValue({
|
|
32772
32753
|
name: installation.name,
|
|
32773
|
-
appId:
|
|
32774
|
-
appSecret:
|
|
32775
|
-
verificationToken:
|
|
32776
|
-
encryptKey:
|
|
32777
|
-
mappingMode: installation.config.mappingMode,
|
|
32778
|
-
assistantId: installation.config.assistantId,
|
|
32779
|
-
workspaceId: installation.config.workspaceId,
|
|
32780
|
-
projectId: installation.config.projectId
|
|
32754
|
+
appId: config.appId,
|
|
32755
|
+
appSecret: config.appSecret,
|
|
32756
|
+
verificationToken: config.verificationToken,
|
|
32757
|
+
encryptKey: config.encryptKey
|
|
32781
32758
|
});
|
|
32782
32759
|
return;
|
|
32783
32760
|
}
|
|
32784
32761
|
form.resetFields();
|
|
32785
|
-
form.setFieldsValue({
|
|
32786
|
-
mappingMode: "hybrid"
|
|
32787
|
-
});
|
|
32788
32762
|
}, [installation, form]);
|
|
32789
32763
|
const handleSubmit = async () => {
|
|
32790
32764
|
const values = await form.validateFields();
|
|
@@ -32792,11 +32766,7 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
|
|
|
32792
32766
|
appId: values.appId,
|
|
32793
32767
|
appSecret: values.appSecret,
|
|
32794
32768
|
verificationToken: values.verificationToken,
|
|
32795
|
-
encryptKey: values.encryptKey
|
|
32796
|
-
mappingMode: values.mappingMode,
|
|
32797
|
-
assistantId: values.assistantId,
|
|
32798
|
-
workspaceId: values.workspaceId,
|
|
32799
|
-
projectId: values.projectId
|
|
32769
|
+
encryptKey: values.encryptKey
|
|
32800
32770
|
};
|
|
32801
32771
|
try {
|
|
32802
32772
|
if (installation) {
|
|
@@ -32869,27 +32839,7 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
|
|
|
32869
32839
|
}
|
|
32870
32840
|
),
|
|
32871
32841
|
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Form.Item, { name: "verificationToken", label: "Verification Token", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {}) }),
|
|
32872
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Form.Item, { name: "encryptKey", label: "Encrypt Key", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {}) })
|
|
32873
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
32874
|
-
import_antd97.Form.Item,
|
|
32875
|
-
{
|
|
32876
|
-
name: "mappingMode",
|
|
32877
|
-
label: "Mapping Mode",
|
|
32878
|
-
rules: [{ required: true, message: "Mapping Mode is required" }],
|
|
32879
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Select, { options: MAPPING_MODE_OPTIONS })
|
|
32880
|
-
}
|
|
32881
|
-
),
|
|
32882
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
32883
|
-
import_antd97.Form.Item,
|
|
32884
|
-
{
|
|
32885
|
-
name: "assistantId",
|
|
32886
|
-
label: "Assistant ID",
|
|
32887
|
-
rules: [{ required: true, message: "Assistant ID is required" }],
|
|
32888
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {})
|
|
32889
|
-
}
|
|
32890
|
-
),
|
|
32891
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Form.Item, { name: "workspaceId", label: "Workspace ID", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {}) }),
|
|
32892
|
-
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Form.Item, { name: "projectId", label: "Project ID", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {}) })
|
|
32842
|
+
/* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Form.Item, { name: "encryptKey", label: "Encrypt Key", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_antd97.Input, {}) })
|
|
32893
32843
|
] })
|
|
32894
32844
|
}
|
|
32895
32845
|
);
|