@droppii-org/chat-sdk 0.1.45 → 0.1.46

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BizThreadDetailInput.d.ts","sourceRoot":"","sources":["../../../src/components/biz-thread-detail/BizThreadDetailInput.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,oBAAoB,GAAI,gDAI3B,yBAAyB,4CAmV3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"BizThreadDetailInput.d.ts","sourceRoot":"","sources":["../../../src/components/biz-thread-detail/BizThreadDetailInput.tsx"],"names":[],"mappings":"AA2BA,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,oBAAoB,GAAI,gDAI3B,yBAAyB,4CAoV3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -21,6 +21,7 @@ const MAX_LINES = 5;
21
21
  const CONTAINER_MIN_HEIGHT = 48;
22
22
  const BizThreadDetailInput = ({ placeholder, onSendMessage, onInputChange, }) => {
23
23
  const { t } = useTranslation("biz-inbox");
24
+ const { t: tCommon } = useTranslation("common");
24
25
  const bizConversation = useBizConversationStore((state) => state.conversationData);
25
26
  const conversationData = useConversationStore((state) => state.conversationData);
26
27
  const selectedConversationId = useConversationStore((state) => state.selectedConversationId);
@@ -132,14 +133,14 @@ const BizThreadDetailInput = ({ placeholder, onSendMessage, onInputChange, }) =>
132
133
  if (files.length === 0)
133
134
  return;
134
135
  const validFiles = processAndValidateFiles(files, {
135
- t,
136
+ t: tCommon,
136
137
  currentUploadedFiles: listUploadFiles,
137
138
  });
138
139
  if (validFiles.length > 0) {
139
140
  setListUploadFiles((prev) => [...prev, ...validFiles]);
140
141
  }
141
142
  event.target.value = "";
142
- }, [t, listUploadFiles]);
143
+ }, [tCommon, listUploadFiles]);
143
144
  const handleRemoveFile = useCallback((uid) => {
144
145
  setListUploadFiles((prev) => prev.filter((f) => f.uid !== uid));
145
146
  }, []);