@droppii-org/chat-sdk 0.0.41 → 0.0.42

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":"MessageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/message/MessageHeader.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,KAAK,sBAAsB,GAAG,aAAa,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,sBAAsB,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,GAAI,6BAA6B,kBAAkB,4CA4LrE,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"MessageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/message/MessageHeader.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC;AAED,KAAK,sBAAsB,GAAG,aAAa,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,sBAAsB,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,GAAI,6BAA6B,kBAAkB,4CAgMrE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -86,12 +86,14 @@ const MessageHeader = ({ onClose, currentSession }) => {
86
86
  }, [t]);
87
87
  const handleUpdateSession = (value, type, isSameValue) => {
88
88
  let newValue = value;
89
- if (type === "tag" && value === SessionTag.AWAITING_REPLY && isSameValue) {
89
+ if (type === "tag" &&
90
+ value === SessionTag.TEMPORARILY_PAUSED &&
91
+ isSameValue) {
90
92
  newValue = SessionTag.NONE;
91
93
  }
92
94
  if (currentSession) {
93
95
  if (!isSameValue ||
94
- (type === "tag" && value === SessionTag.AWAITING_REPLY)) {
96
+ (type === "tag" && value === SessionTag.TEMPORARILY_PAUSED)) {
95
97
  updateSession({
96
98
  sessionId: currentSession.id,
97
99
  [type]: newValue,
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../src/components/message/footer/ActionBar.tsx"],"names":[],"mappings":"AAkFA,QAAA,MAAM,SAAS,+CAyPd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ActionBar.d.ts","sourceRoot":"","sources":["../../../../src/components/message/footer/ActionBar.tsx"],"names":[],"mappings":"AAkFA,QAAA,MAAM,SAAS,+CAwPd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -101,12 +101,12 @@ const ActionBar = () => {
101
101
  message.error(`${file.name} không đúng định dạng JPG, JPEG, PNG hoặc VIDEO`);
102
102
  }
103
103
  if (isErrorSize) {
104
- if (isVideo) {
105
- message.error(`Tệp không được vượt quá ${maxSize}MB`);
106
- }
107
104
  if (isImage) {
108
105
  message.error(`${file.name} có kích thước tập tin vượt quá ${maxSize}MB`);
109
106
  }
107
+ else {
108
+ message.error(`Tệp không được vượt quá ${maxSize}MB`);
109
+ }
110
110
  }
111
111
  return Upload.LIST_IGNORE;
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droppii-org/chat-sdk",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "Droppii React Chat SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",