@zero-library/chat-agent 2.1.6 → 2.1.7

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.cjs.js CHANGED
@@ -427,7 +427,7 @@ function createChatStore() {
427
427
  const defaultLayout = receiverType === 3 ? defaultAgentLayout : defaultExpertLayout;
428
428
  config.layout = common.deepMerge(defaultLayout, layout);
429
429
  };
430
- const setConfigParams = (params = {}) => {
430
+ const setParams = (params = {}) => {
431
431
  config.params = { ...params };
432
432
  };
433
433
  const setHooks = (hooks = {}) => {
@@ -886,7 +886,7 @@ function createChatStore() {
886
886
  setPreview,
887
887
  setLayout,
888
888
  setHooks,
889
- setConfigParams,
889
+ setParams,
890
890
  setUserInfo,
891
891
  character,
892
892
  getCharacters,
@@ -1862,7 +1862,7 @@ var layouts_default = react.forwardRef(({ theme, params, userInfo, hooks, layout
1862
1862
  chatStore.setLayout(layout, config?.receiverType);
1863
1863
  }, [layout, config?.receiverType]);
1864
1864
  react.useEffect(() => {
1865
- chatStore.setConfigParams(params);
1865
+ chatStore.setParams(params);
1866
1866
  }, [params]);
1867
1867
  react.useEffect(() => {
1868
1868
  chatStore.setHooks(hooks);
@@ -1879,6 +1879,7 @@ var layouts_default = react.forwardRef(({ theme, params, userInfo, hooks, layout
1879
1879
  setReferences: chatStore.setReferences,
1880
1880
  setMessage: chatStore.setContent,
1881
1881
  setFiles: chatStore.setFileList,
1882
+ setParams: chatStore.setParams,
1882
1883
  senderFocus: (options) => {
1883
1884
  senderRef.current?.focus(options);
1884
1885
  }