@tellescope/chat 1.24.0 → 1.26.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/chat",
3
- "version": "1.24.0",
3
+ "version": "1.26.0",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -34,13 +34,13 @@
34
34
  "@fontsource/roboto": "^4.5.1",
35
35
  "@mui/icons-material": "^5.0.1",
36
36
  "@mui/material": "^5.0.2",
37
- "@tellescope/constants": "^1.24.0",
38
- "@tellescope/react-components": "^1.24.0",
39
- "@tellescope/sdk": "^1.24.0",
40
- "@tellescope/types-client": "^1.24.0",
41
- "@tellescope/types-models": "^1.24.0",
37
+ "@tellescope/constants": "^1.26.0",
38
+ "@tellescope/react-components": "^1.26.0",
39
+ "@tellescope/sdk": "^1.26.0",
40
+ "@tellescope/types-client": "^1.26.0",
41
+ "@tellescope/types-models": "^1.26.0",
42
42
  "@tellescope/types-utilities": "^1.5.1",
43
- "@tellescope/utilities": "^1.24.0",
43
+ "@tellescope/utilities": "^1.26.0",
44
44
  "@typescript-eslint/eslint-plugin": "^4.33.0",
45
45
  "@typescript-eslint/parser": "^4.33.0",
46
46
  "eslint": "^7.32.0",
@@ -51,7 +51,7 @@
51
51
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
52
52
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
53
53
  },
54
- "gitHead": "719e54ce57bdb212d4d6eae9a272218948884abb",
54
+ "gitHead": "522dc1def27548de35aece8c14ad0104aeab3e7f",
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  }
package/src/chat.tsx CHANGED
@@ -562,10 +562,12 @@ export interface CreateChatRoomProps extends Omit<UserAndEnduserSelectorProps, '
562
562
  onSuccess?: (c: ChatRoom) => void,
563
563
  onError?: (e: APIError) => void,
564
564
  roomTitle?: string,
565
+ roomType?: ChatRoom['type'],
565
566
  }
566
567
  export const CreateChatRoom = ({
567
568
  roomTitle: defaultRoomTitle = "Group Chat",
568
569
  onSuccess, onError,
570
+ roomType,
569
571
  ...props
570
572
  } : CreateChatRoomProps) => {
571
573
  const [, { createElement: createRoom }] = useChatRooms({ dontFetch: true })
@@ -579,6 +581,7 @@ export const CreateChatRoom = ({
579
581
  enduserIds,
580
582
  userIds,
581
583
  title: roomTitle,
584
+ type: roomType,
582
585
  })
583
586
  .then(r => {
584
587
  onSuccess?.(r)