@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.mjs CHANGED
@@ -1359,6 +1359,7 @@ var DEFAULT_CONFIG = {
1359
1359
  enableModelSelector: false,
1360
1360
  sidebarMode: "icon",
1361
1361
  sidebarDefaultExpanded: true,
1362
+ workspaceMenuDefaultExpanded: true,
1362
1363
  sidebarShowToggle: true,
1363
1364
  sidebarShowNewAnalysis: true,
1364
1365
  sidebarLogoText: "Lattice"
@@ -21157,7 +21158,7 @@ var WorkspaceResourceManager = ({
21157
21158
  logo,
21158
21159
  logoText: workspaceName || "Workspace",
21159
21160
  showToggle: true,
21160
- defaultExpanded: true,
21161
+ defaultExpanded: config.workspaceMenuDefaultExpanded ?? true,
21161
21162
  collapsed: menuCollapsed,
21162
21163
  onCollapsedChange: setMenuCollapsed,
21163
21164
  footer: ({ isIconMode }) => user && /* @__PURE__ */ jsx82(
@@ -32859,7 +32860,6 @@ import {
32859
32860
  Input as Input17,
32860
32861
  Modal as Modal23,
32861
32862
  Popconfirm as Popconfirm10,
32862
- Select as Select9,
32863
32863
  Spin as Spin21,
32864
32864
  Tag as Tag29,
32865
32865
  Typography as Typography58,
@@ -32868,11 +32868,6 @@ import {
32868
32868
  import { Edit2 as Edit24, Plus as Plus9, RadioTower, Trash2 as Trash29 } from "lucide-react";
32869
32869
  import { jsx as jsx126, jsxs as jsxs91 } from "react/jsx-runtime";
32870
32870
  var { Text: Text47, Title: Title17 } = Typography58;
32871
- var MAPPING_MODE_OPTIONS = [
32872
- { label: "User", value: "user" },
32873
- { label: "Group", value: "group" },
32874
- { label: "Hybrid", value: "hybrid" }
32875
- ];
32876
32871
  var ChannelInstallationsDrawerContent = () => {
32877
32872
  const { get, post, put, del } = useApi();
32878
32873
  const [installations, setInstallations] = useState80([]);
@@ -32994,22 +32989,6 @@ var ChannelInstallationsDrawerContent = () => {
32994
32989
  "ID: ",
32995
32990
  installation.id
32996
32991
  ] }),
32997
- /* @__PURE__ */ jsxs91(Text47, { style: { fontSize: 13 }, children: [
32998
- "Assistant ID: ",
32999
- installation.config.assistantId
33000
- ] }),
33001
- /* @__PURE__ */ jsxs91(Text47, { style: { fontSize: 13 }, children: [
33002
- "Mapping Mode: ",
33003
- installation.config.mappingMode
33004
- ] }),
33005
- installation.config.workspaceId ? /* @__PURE__ */ jsxs91(Text47, { style: { fontSize: 13 }, children: [
33006
- "Workspace ID: ",
33007
- installation.config.workspaceId
33008
- ] }) : null,
33009
- installation.config.projectId ? /* @__PURE__ */ jsxs91(Text47, { style: { fontSize: 13 }, children: [
33010
- "Project ID: ",
33011
- installation.config.projectId
33012
- ] }) : null,
33013
32992
  webhookPath ? /* @__PURE__ */ jsx126(Text47, { code: true, style: { fontSize: 12 }, children: webhookPath }) : /* @__PURE__ */ jsx126(Text47, { type: "secondary", style: { fontSize: 12 }, children: "Unsupported channel configuration UI" })
33014
32993
  ]
33015
32994
  }
@@ -33065,23 +33044,17 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
33065
33044
  const [form] = Form9.useForm();
33066
33045
  useEffect53(() => {
33067
33046
  if (installation) {
33047
+ const config = installation.config;
33068
33048
  form.setFieldsValue({
33069
33049
  name: installation.name,
33070
- appId: installation.config.appId,
33071
- appSecret: installation.config.appSecret,
33072
- verificationToken: installation.config.verificationToken,
33073
- encryptKey: installation.config.encryptKey,
33074
- mappingMode: installation.config.mappingMode,
33075
- assistantId: installation.config.assistantId,
33076
- workspaceId: installation.config.workspaceId,
33077
- projectId: installation.config.projectId
33050
+ appId: config.appId,
33051
+ appSecret: config.appSecret,
33052
+ verificationToken: config.verificationToken,
33053
+ encryptKey: config.encryptKey
33078
33054
  });
33079
33055
  return;
33080
33056
  }
33081
33057
  form.resetFields();
33082
- form.setFieldsValue({
33083
- mappingMode: "hybrid"
33084
- });
33085
33058
  }, [installation, form]);
33086
33059
  const handleSubmit = async () => {
33087
33060
  const values = await form.validateFields();
@@ -33089,11 +33062,7 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
33089
33062
  appId: values.appId,
33090
33063
  appSecret: values.appSecret,
33091
33064
  verificationToken: values.verificationToken,
33092
- encryptKey: values.encryptKey,
33093
- mappingMode: values.mappingMode,
33094
- assistantId: values.assistantId,
33095
- workspaceId: values.workspaceId,
33096
- projectId: values.projectId
33065
+ encryptKey: values.encryptKey
33097
33066
  };
33098
33067
  try {
33099
33068
  if (installation) {
@@ -33166,27 +33135,7 @@ var LarkChannelInstallationFormModal = ({ installation, open, post, put, onCance
33166
33135
  }
33167
33136
  ),
33168
33137
  /* @__PURE__ */ jsx126(Form9.Item, { name: "verificationToken", label: "Verification Token", children: /* @__PURE__ */ jsx126(Input17, {}) }),
33169
- /* @__PURE__ */ jsx126(Form9.Item, { name: "encryptKey", label: "Encrypt Key", children: /* @__PURE__ */ jsx126(Input17, {}) }),
33170
- /* @__PURE__ */ jsx126(
33171
- Form9.Item,
33172
- {
33173
- name: "mappingMode",
33174
- label: "Mapping Mode",
33175
- rules: [{ required: true, message: "Mapping Mode is required" }],
33176
- children: /* @__PURE__ */ jsx126(Select9, { options: MAPPING_MODE_OPTIONS })
33177
- }
33178
- ),
33179
- /* @__PURE__ */ jsx126(
33180
- Form9.Item,
33181
- {
33182
- name: "assistantId",
33183
- label: "Assistant ID",
33184
- rules: [{ required: true, message: "Assistant ID is required" }],
33185
- children: /* @__PURE__ */ jsx126(Input17, {})
33186
- }
33187
- ),
33188
- /* @__PURE__ */ jsx126(Form9.Item, { name: "workspaceId", label: "Workspace ID", children: /* @__PURE__ */ jsx126(Input17, {}) }),
33189
- /* @__PURE__ */ jsx126(Form9.Item, { name: "projectId", label: "Project ID", children: /* @__PURE__ */ jsx126(Input17, {}) })
33138
+ /* @__PURE__ */ jsx126(Form9.Item, { name: "encryptKey", label: "Encrypt Key", children: /* @__PURE__ */ jsx126(Input17, {}) })
33190
33139
  ] })
33191
33140
  }
33192
33141
  );