@axiom-lattice/react-sdk 2.0.0 → 2.0.1

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 CHANGED
@@ -364,6 +364,7 @@ interface ChatingProps {
364
364
  default_submit_message?: string;
365
365
  avatar?: string;
366
366
  attachment_placeholder?: React__default.ReactNode;
367
+ uploadAction?: string;
367
368
  onOpenSidePanel: (data: any) => void;
368
369
  onReminderClick: () => void;
369
370
  styles: any;
package/dist/index.d.ts CHANGED
@@ -364,6 +364,7 @@ interface ChatingProps {
364
364
  default_submit_message?: string;
365
365
  avatar?: string;
366
366
  attachment_placeholder?: React__default.ReactNode;
367
+ uploadAction?: string;
367
368
  onOpenSidePanel: (data: any) => void;
368
369
  onReminderClick: () => void;
369
370
  styles: any;
package/dist/index.js CHANGED
@@ -1642,7 +1642,8 @@ var Chating = ({
1642
1642
  senderPromptsItems,
1643
1643
  extra,
1644
1644
  attachment_placeholder,
1645
- extraMeta = []
1645
+ extraMeta = [],
1646
+ uploadAction = "/api/file_storage/upload?path=temp"
1646
1647
  }) => {
1647
1648
  const { t } = (0, import_react_i18next.useTranslation)();
1648
1649
  const [content, setContent] = (0, import_react10.useState)("");
@@ -1840,7 +1841,7 @@ ${JSON.stringify(tool_call)}
1840
1841
  {
1841
1842
  ref: attachmentsRef,
1842
1843
  items: attachedFiles,
1843
- action: `/api/file_storage/upload?path=temp`,
1844
+ action: uploadAction,
1844
1845
  headers: {
1845
1846
  "x-tenant-id": tenant_id
1846
1847
  },