From ea106e570fb60364ceb36f0328267fed75c39f27 Mon Sep 17 00:00:00 2001 From: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com> Date: Mon, 29 May 2023 15:34:30 -0700 Subject: [PATCH] [Chat] ChatSDK version bump to beta.2 (#3115) * [ChatSDK] Version bump * Change files * Duplicate change files for beta release * [ChatSDK] update stable lock file * [MessageThreadSelector] updating imports for stable * Update change-beta/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com> Signed-off-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com> * Update change/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com> Signed-off-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com> --------- Signed-off-by: JoshuaLai <9044372+JoshuaLai@users.noreply.github.com> Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com> --- ...-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json | 7 ++ ...-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json | 7 ++ common/config/rush/common-versions.json | 4 +- common/config/rush/pnpm-lock.yaml | 72 +++++++++---------- .../rush/variants/stable/pnpm-lock.yaml | 34 ++++----- package.json | 2 +- packages/chat-component-bindings/package.json | 4 +- .../src/messageThreadSelector.ts | 16 ++++- packages/chat-stateful-client/package.json | 6 +- packages/communication-react/package.json | 4 +- packages/fake-backends/package.json | 4 +- packages/react-composites/package.json | 6 +- packages/storybook/package.json | 2 +- samples/CallWithChat/package.json | 2 +- samples/Chat/package.json | 2 +- samples/ComponentExamples/package.json | 2 +- samples/Server/package.json | 2 +- samples/StaticHtmlComposites/package.json | 2 +- samples/tests/package.json | 4 +- 19 files changed, 103 insertions(+), 79 deletions(-) create mode 100644 change-beta/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json create mode 100644 change/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json diff --git a/change-beta/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json b/change-beta/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json new file mode 100644 index 00000000000..1d90d6213b7 --- /dev/null +++ b/change-beta/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "`@azure/communication-chat` peer dependency updated to 1.3.2-beta.2 for beta packages", + "packageName": "@azure/communication-react", + "email": "joshlai@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json b/change/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json new file mode 100644 index 00000000000..1d90d6213b7 --- /dev/null +++ b/change/@azure-communication-react-c4bb9de6-fe63-4936-bf91-f6e57a73e6a8.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "`@azure/communication-chat` peer dependency updated to 1.3.2-beta.2 for beta packages", + "packageName": "@azure/communication-react", + "email": "joshlai@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/common/config/rush/common-versions.json b/common/config/rush/common-versions.json index 655f5ec56d4..32acdcf153f 100644 --- a/common/config/rush/common-versions.json +++ b/common/config/rush/common-versions.json @@ -25,7 +25,7 @@ */ // "some-library": "1.2.3" "@azure/communication-calling": "1.13.2-beta.1", - "@azure/communication-chat": "1.3.2-beta.1" + "@azure/communication-chat": "1.3.2-beta.2" }, /** @@ -54,7 +54,7 @@ */ "allowedAlternativeVersions": { "@azure/communication-calling": ["1.13.2-beta.1"], - "@azure/communication-chat": ["1.3.2-beta.1"], + "@azure/communication-chat": ["1.3.2-beta.2"], "typescript": [ // All projects should use this version by default "4.3.5", diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index dffe5ab5b46..e8b7952b16b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1,6 +1,6 @@ dependencies: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@rush-temp/acs-ui-common': file:projects/acs-ui-common.tgz '@rush-temp/calling': file:projects/calling.tgz '@rush-temp/calling-component-bindings': file:projects/calling-component-bindings.tgz @@ -50,11 +50,11 @@ packages: dev: false resolution: integrity: sha512-pwgq1z89G5m9SxLwrXWgdwjpFSFvQ8ev/N3Zwdmx45J8Ow/HsW6pa+ywMYa4ywyitenbGXzS0pOwom5V9WkmtA== - /@azure/communication-chat/1.3.2-beta.1: + /@azure/communication-chat/1.3.2-beta.2: dependencies: '@azure/abort-controller': 1.1.0 '@azure/communication-common': 2.2.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-auth': 1.4.0 '@azure/core-client': 1.7.2 '@azure/core-paging': 1.5.0 @@ -68,7 +68,7 @@ packages: engines: node: '>=14.0.0' resolution: - integrity: sha512-XtKO2dBAIKpwDj9X1GJeXLXRoz6jHFg/mNbsnFeE5kWuvUdYscT6iuSJQ+NuePp2Pmx3d7r+6GaYDSoSfY3Bcw== + integrity: sha512-wdkd5hoJOL7jLONAhJ+uvqAvpD3owebnE0iS4dNsm47o4v3bsABFgv7lPZXHlgiTP1cvfohM2IksbGsE3vxhkw== /@azure/communication-common/2.0.0: dependencies: '@azure/abort-controller': 1.1.0 @@ -131,18 +131,18 @@ packages: node: '>=12.0.0' resolution: integrity: sha512-s1nTZ6XiAY0N0ICjinJkPx0NFMLnK+nmBOeLCQPVefMwE0XB3JRhT5Bjo5KLcnxmIy9Cl+74Dlcrs6fbh6b5pA== - /@azure/communication-signaling/1.0.0-beta.17: + /@azure/communication-signaling/1.0.0-beta.18: dependencies: '@azure/core-http': 2.3.2 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.3 + '@azure/logger': 1.0.4 events: 3.3.0 tslib: 1.14.1 dev: false engines: node: '>=8.0.0' resolution: - integrity: sha512-vJejWxpVEbBoA+TpDDJyUQUx2PE7N9fZ9pZpbz9rE5396sEj9RPhbjP1NB1uM2mgECMzkcWs4Qwl+dRca7r29g== + integrity: sha512-hxW6w8pgVNpRZkAx0LMQYgpbV3Qk6UdCQtXNqJjEkOjxc1OR6F1/6zTJJfyldild6+aiNhpOkXUNJii9Ya75BQ== /@azure/core-asynciterator-polyfill/1.0.2: dev: false engines: @@ -200,7 +200,7 @@ packages: '@azure/core-auth': 1.4.0 '@azure/core-tracing': 1.0.0-preview.13 '@azure/core-util': 1.3.2 - '@azure/logger': 1.0.3 + '@azure/logger': 1.0.4 '@types/node-fetch': 2.6.3 '@types/tunnel': 0.0.3 form-data: 4.0.0 @@ -19493,7 +19493,7 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@azure/logger': 1.0.3 @@ -19557,12 +19557,12 @@ packages: dev: false name: '@rush-temp/callwithchat' resolution: - integrity: sha512-VUKZ9aE1x/+PLBHMu0DR0ng9ccnMbZtmUBPfEj+hTnRRfTaZrhT8wLJ9WkAFBvjQJwK47CMcH58s8gOIu/P79Q== + integrity: sha512-/3vLPUo465A0XjJXf3YSnEBoJwd5aMiFFzWjt4b8tU7pROO1ArHpOfzABIjzXDIM5Rh4NEvdOn9TGShs10VWXw== tarball: file:projects/callwithchat.tgz version: 0.0.0 file:projects/chat-component-bindings.tgz: dependencies: - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/core-paging': 1.1.3 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -19594,14 +19594,14 @@ packages: dev: false name: '@rush-temp/chat-component-bindings' resolution: - integrity: sha512-7nG92sV0iPpPH/NexctTgY8OO9W+Gkg39GtTugTYsuwhxplE+Bw3gyu+MFbvWRvKh4O7GPAoVjAl1YTEOmG69g== + integrity: sha512-/rzWmfj5ScWY0sMsd9d2wIMyQbI2s2THg7rXlKCOACtHmLrE4bvGmWmpDYIIWLLOVqhVPQh5m2hYPZx9hMhPsA== tarball: file:projects/chat-component-bindings.tgz version: 0.0.0 file:projects/chat-stateful-client.tgz: dependencies: - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@azure/logger': 1.0.3 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -19636,13 +19636,13 @@ packages: dev: false name: '@rush-temp/chat-stateful-client' resolution: - integrity: sha512-fbeFoJN8AEsoSyairD7np/87X081bWpbbkEu+fPCUez5p9kDADRafHosIm6wyNVB/V4IhWZEnmPcHPe5Nej2Kg== + integrity: sha512-K7mH8FGMRw+oPo8rkpDQcpa2t7mqghXBMXX5T24D+Bu6t5mcZb0SZHUT0ln3mfV0GBmFltePLMhbqlHNxX+21w== tarball: file:projects/chat-stateful-client.tgz version: 0.0.0 file:projects/chat.tgz: dependencies: '@azure/abort-controller': 1.1.0 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@azure/logger': 1.0.3 @@ -19700,7 +19700,7 @@ packages: dev: false name: '@rush-temp/chat' resolution: - integrity: sha512-GTjcelMXdqeOGqEYoo882/pdP+WNZ30hVqc2zEB5CyAb9t9p4xNNoQzHPYXgbS2XsZA5xaCZoe2y8jskvpbGBA== + integrity: sha512-u0Am/G/JSDwkEE3mIQicz7tGnGgE1jKSz4TIn2clI4znW8isCwPSsv1eAMQrjDyVDqfmFxr+NoLh91u2zwVmow== tarball: file:projects/chat.tgz version: 0.0.0 file:projects/check-treeshaking.tgz: @@ -19743,7 +19743,7 @@ packages: dependencies: '@azure/communication-calling': 1.13.2-beta.1 '@azure/communication-calling-effects': 1.0.0-beta.2 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/core-auth': 1.3.2 '@azure/core-client': 1.3.0 @@ -19822,13 +19822,13 @@ packages: dev: false name: '@rush-temp/communication-react' resolution: - integrity: sha512-0tNslwwYEDpov0I7Vku+/GTMNpRhvuSxQ16wzt29UuLX0ETUzVZma9TbLT37Ff8Wo1q/YnTdGed7RgBUJbiflA== + integrity: sha512-t3uPAp+b9AbLhLx5jGNbdwcAPh8hBEN7CSXh6GFy9dohUoJjrMKUhD6LUbJ6NbfMF/SwW4DK944Fo3cZ8tRzYQ== tarball: file:projects/communication-react.tgz version: 0.0.0 file:projects/component-examples.tgz: dependencies: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@babel/core': 7.16.12 @@ -19872,7 +19872,7 @@ packages: dev: false name: '@rush-temp/component-examples' resolution: - integrity: sha512-XXfVYNffCV4lTY54stVZGIgmDtO5D7vNCRfzdrgOqvCc2JFB2YmR333dL+OHzf5cQcGeDOL3IWGMp7+vGSzKLQ== + integrity: sha512-IF8GXEN9pDy0JV1p/kfng/Vy5Gf9G7O6NiidLLQZpQGWsHnUQ/HLwuaJ1zQdVhpoK/6pVVUHPkuauJCe9HB2Rg== tarball: file:projects/component-examples.tgz version: 0.0.0 file:projects/config.tgz: @@ -19894,9 +19894,9 @@ packages: version: 0.0.0 file:projects/fake-backends.tgz: dependencies: - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@babel/cli': 7.16.8_@babel+core@7.16.12 '@babel/core': 7.16.12 @@ -19931,7 +19931,7 @@ packages: dev: false name: '@rush-temp/fake-backends' resolution: - integrity: sha512-AGzf5coS+aMbY7RTa+wglBJq6xDbLzHhPLVAN/TT9DStkfIFlZqNvBxUwG6E1IsJC0wYPfVeKYGKcHRvlQDsBg== + integrity: sha512-yyYONzTG/Zw4o51t/xTv29aR0IUPuIKEOJSD1Rt5oqjYSjfwAdW24odlaZAzX5TDTOvSxxhhhNJtkFmcEayM0Q== tarball: file:projects/fake-backends.tgz version: 0.0.0 file:projects/northstar-wrapper.tgz: @@ -20044,10 +20044,10 @@ packages: dependencies: '@azure/communication-calling': 1.13.2-beta.1 '@azure/communication-calling-effects': 1.0.0-beta.2 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@azure/core-rest-pipeline': 1.9.2 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -20142,13 +20142,13 @@ packages: dev: false name: '@rush-temp/react-composites' resolution: - integrity: sha512-mAqPf9GkDnfi99O+eLppYA6AjgvoPsNKM2cZvvOSdQQWVh06B1prHkmLe1h7ZGrEwpPiFP+yB5DVWebCZMUfYw== + integrity: sha512-r2jIu8SHdLPqYBI/+anvlvLvRGTtFywxTV99Pq93KVpe+nBsQmN6tNo/uZAm+oxFOa8uamLRVN5qMBNDsQI54g== tarball: file:projects/react-composites.tgz version: 0.0.0 file:projects/sample-automation-tests.tgz: dependencies: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@playwright/test': 1.22.2 @@ -20166,13 +20166,13 @@ packages: dev: false name: '@rush-temp/sample-automation-tests' resolution: - integrity: sha512-EXYb7URVqD3jvJQpOZx9PgnbrzZ1+fQV/LVOejYp7YD9U847AY+MB5W54wi3VeTV734PLgIIEOu8GRISHr4irw== + integrity: sha512-QhMgPDCJsTUlhs8Q3iYTnBHz/zZjzTNZL/2PFIJdv6zLWvbn8rAza+fesrnu2TLAdjvm0eGI7InJ+azgih8b4g== tarball: file:projects/sample-automation-tests.tgz version: 0.0.0 file:projects/sample-static-html-composites.tgz: dependencies: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -20206,12 +20206,12 @@ packages: dev: false name: '@rush-temp/sample-static-html-composites' resolution: - integrity: sha512-QdaG6H/lEibusUAXe3Tg17XkOXCMRosW1RVYm7ed7iZBQhNFvTEM71JYlEyip69SgYYt3z7EfACZG9SSKBvinw== + integrity: sha512-k285c3B+71DDYA0Dg0f/UQqB3ZAL4W40K3RAjt3vLyrZx4ylm/ok+jXYp+TxnJPhF5OnP72ArmcJi9EvIWPbZA== tarball: file:projects/sample-static-html-composites.tgz version: 0.0.0 file:projects/server.tgz: dependencies: - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@azure/communication-rooms': 1.0.0-beta.1 @@ -20259,13 +20259,13 @@ packages: dev: false name: '@rush-temp/server' resolution: - integrity: sha512-/8fmmhs80jRgf8yGJeowFO6n3qTbsJkvJlIbU/lsULTChnZVVPEHa0/k0EBRLfcwtYJO7HZKI4F4ldZXyXsy1g== + integrity: sha512-g4LOK5XuTeFjJsx/S57jw+xyv67MFyHujd94Sk1QPDSeeSkWetG2SYAWmMFC9+rp/YYb9BhkcqAf+BLRA5uT0g== tarball: file:projects/server.tgz version: 0.0.0 file:projects/storybook.tgz: dependencies: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 '@babel/core': 7.16.12 @@ -20357,12 +20357,12 @@ packages: dev: false name: '@rush-temp/storybook' resolution: - integrity: sha512-KIQZlmySwwmSn4t+EJ5pBmqXQemXXjv1cgqHZLT6LRiFwItIGhrym6zCS+ik+FV/hG6C/7wgHQyKbRjUkVr16w== + integrity: sha512-k8qLZJYvLXtf8yHEqZcLShZK0JLEcF/lFU8uJGj37RwdnaDjU1usR/QVvHgoWdOHLb5EWpMmKNYpgOoDme8SPw== tarball: file:projects/storybook.tgz version: 0.0.0 specifiers: '@azure/communication-calling': 1.13.2-beta.1 - '@azure/communication-chat': 1.3.2-beta.1 + '@azure/communication-chat': 1.3.2-beta.2 '@rush-temp/acs-ui-common': file:./projects/acs-ui-common.tgz '@rush-temp/calling': file:./projects/calling.tgz '@rush-temp/calling-component-bindings': file:./projects/calling-component-bindings.tgz diff --git a/common/config/rush/variants/stable/pnpm-lock.yaml b/common/config/rush/variants/stable/pnpm-lock.yaml index 2c07dee9006..a957512937d 100644 --- a/common/config/rush/variants/stable/pnpm-lock.yaml +++ b/common/config/rush/variants/stable/pnpm-lock.yaml @@ -143,7 +143,7 @@ packages: node: '>=8.0.0' resolution: integrity: sha512-EcwDgD7tmxY4rZif/T7YK1JMNjIfaBVrJvu2BBZDlnyRtBbhQbkzDH5wCm1c7mgsWAZTeR/BsCffUOSWFXw8JQ== - /@azure/communication-signaling/1.0.0-beta.17: + /@azure/communication-signaling/1.0.0-beta.18: dependencies: '@azure/core-http': 2.3.2 '@azure/core-tracing': 1.0.0-preview.13 @@ -154,7 +154,7 @@ packages: engines: node: '>=8.0.0' resolution: - integrity: sha512-vJejWxpVEbBoA+TpDDJyUQUx2PE7N9fZ9pZpbz9rE5396sEj9RPhbjP1NB1uM2mgECMzkcWs4Qwl+dRca7r29g== + integrity: sha512-hxW6w8pgVNpRZkAx0LMQYgpbV3Qk6UdCQtXNqJjEkOjxc1OR6F1/6zTJJfyldild6+aiNhpOkXUNJii9Ya75BQ== /@azure/core-asynciterator-polyfill/1.0.2: dev: false engines: @@ -19569,7 +19569,7 @@ packages: dev: false name: '@rush-temp/callwithchat' resolution: - integrity: sha512-VUKZ9aE1x/+PLBHMu0DR0ng9ccnMbZtmUBPfEj+hTnRRfTaZrhT8wLJ9WkAFBvjQJwK47CMcH58s8gOIu/P79Q== + integrity: sha512-/3vLPUo465A0XjJXf3YSnEBoJwd5aMiFFzWjt4b8tU7pROO1ArHpOfzABIjzXDIM5Rh4NEvdOn9TGShs10VWXw== tarball: file:projects/callwithchat.tgz version: 0.0.0 file:projects/chat-component-bindings.tgz: @@ -19606,14 +19606,14 @@ packages: dev: false name: '@rush-temp/chat-component-bindings' resolution: - integrity: sha512-7nG92sV0iPpPH/NexctTgY8OO9W+Gkg39GtTugTYsuwhxplE+Bw3gyu+MFbvWRvKh4O7GPAoVjAl1YTEOmG69g== + integrity: sha512-/rzWmfj5ScWY0sMsd9d2wIMyQbI2s2THg7rXlKCOACtHmLrE4bvGmWmpDYIIWLLOVqhVPQh5m2hYPZx9hMhPsA== tarball: file:projects/chat-component-bindings.tgz version: 0.0.0 file:projects/chat-stateful-client.tgz: dependencies: '@azure/communication-chat': 1.3.1 '@azure/communication-common': 2.2.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@azure/logger': 1.0.3 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -19648,7 +19648,7 @@ packages: dev: false name: '@rush-temp/chat-stateful-client' resolution: - integrity: sha512-fbeFoJN8AEsoSyairD7np/87X081bWpbbkEu+fPCUez5p9kDADRafHosIm6wyNVB/V4IhWZEnmPcHPe5Nej2Kg== + integrity: sha512-K7mH8FGMRw+oPo8rkpDQcpa2t7mqghXBMXX5T24D+Bu6t5mcZb0SZHUT0ln3mfV0GBmFltePLMhbqlHNxX+21w== tarball: file:projects/chat-stateful-client.tgz version: 0.0.0 file:projects/chat.tgz: @@ -19712,7 +19712,7 @@ packages: dev: false name: '@rush-temp/chat' resolution: - integrity: sha512-GTjcelMXdqeOGqEYoo882/pdP+WNZ30hVqc2zEB5CyAb9t9p4xNNoQzHPYXgbS2XsZA5xaCZoe2y8jskvpbGBA== + integrity: sha512-u0Am/G/JSDwkEE3mIQicz7tGnGgE1jKSz4TIn2clI4znW8isCwPSsv1eAMQrjDyVDqfmFxr+NoLh91u2zwVmow== tarball: file:projects/chat.tgz version: 0.0.0 file:projects/check-treeshaking.tgz: @@ -19834,7 +19834,7 @@ packages: dev: false name: '@rush-temp/communication-react' resolution: - integrity: sha512-0tNslwwYEDpov0I7Vku+/GTMNpRhvuSxQ16wzt29UuLX0ETUzVZma9TbLT37Ff8Wo1q/YnTdGed7RgBUJbiflA== + integrity: sha512-t3uPAp+b9AbLhLx5jGNbdwcAPh8hBEN7CSXh6GFy9dohUoJjrMKUhD6LUbJ6NbfMF/SwW4DK944Fo3cZ8tRzYQ== tarball: file:projects/communication-react.tgz version: 0.0.0 file:projects/component-examples.tgz: @@ -19884,7 +19884,7 @@ packages: dev: false name: '@rush-temp/component-examples' resolution: - integrity: sha512-XXfVYNffCV4lTY54stVZGIgmDtO5D7vNCRfzdrgOqvCc2JFB2YmR333dL+OHzf5cQcGeDOL3IWGMp7+vGSzKLQ== + integrity: sha512-IF8GXEN9pDy0JV1p/kfng/Vy5Gf9G7O6NiidLLQZpQGWsHnUQ/HLwuaJ1zQdVhpoK/6pVVUHPkuauJCe9HB2Rg== tarball: file:projects/component-examples.tgz version: 0.0.0 file:projects/config.tgz: @@ -19908,7 +19908,7 @@ packages: dependencies: '@azure/communication-chat': 1.3.1 '@azure/communication-common': 2.2.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@babel/cli': 7.16.8_@babel+core@7.16.12 '@babel/core': 7.16.12 @@ -19943,7 +19943,7 @@ packages: dev: false name: '@rush-temp/fake-backends' resolution: - integrity: sha512-AGzf5coS+aMbY7RTa+wglBJq6xDbLzHhPLVAN/TT9DStkfIFlZqNvBxUwG6E1IsJC0wYPfVeKYGKcHRvlQDsBg== + integrity: sha512-yyYONzTG/Zw4o51t/xTv29aR0IUPuIKEOJSD1Rt5oqjYSjfwAdW24odlaZAzX5TDTOvSxxhhhNJtkFmcEayM0Q== tarball: file:projects/fake-backends.tgz version: 0.0.0 file:projects/northstar-wrapper.tgz: @@ -20059,7 +20059,7 @@ packages: '@azure/communication-chat': 1.3.1 '@azure/communication-common': 2.2.0 '@azure/communication-identity': 1.1.0 - '@azure/communication-signaling': 1.0.0-beta.17 + '@azure/communication-signaling': 1.0.0-beta.18 '@azure/core-paging': 1.1.3 '@azure/core-rest-pipeline': 1.9.2 '@babel/cli': 7.16.8_@babel+core@7.16.12 @@ -20154,7 +20154,7 @@ packages: dev: false name: '@rush-temp/react-composites' resolution: - integrity: sha512-mAqPf9GkDnfi99O+eLppYA6AjgvoPsNKM2cZvvOSdQQWVh06B1prHkmLe1h7ZGrEwpPiFP+yB5DVWebCZMUfYw== + integrity: sha512-r2jIu8SHdLPqYBI/+anvlvLvRGTtFywxTV99Pq93KVpe+nBsQmN6tNo/uZAm+oxFOa8uamLRVN5qMBNDsQI54g== tarball: file:projects/react-composites.tgz version: 0.0.0 file:projects/sample-automation-tests.tgz: @@ -20178,7 +20178,7 @@ packages: dev: false name: '@rush-temp/sample-automation-tests' resolution: - integrity: sha512-EXYb7URVqD3jvJQpOZx9PgnbrzZ1+fQV/LVOejYp7YD9U847AY+MB5W54wi3VeTV734PLgIIEOu8GRISHr4irw== + integrity: sha512-QhMgPDCJsTUlhs8Q3iYTnBHz/zZjzTNZL/2PFIJdv6zLWvbn8rAza+fesrnu2TLAdjvm0eGI7InJ+azgih8b4g== tarball: file:projects/sample-automation-tests.tgz version: 0.0.0 file:projects/sample-static-html-composites.tgz: @@ -20218,7 +20218,7 @@ packages: dev: false name: '@rush-temp/sample-static-html-composites' resolution: - integrity: sha512-QdaG6H/lEibusUAXe3Tg17XkOXCMRosW1RVYm7ed7iZBQhNFvTEM71JYlEyip69SgYYt3z7EfACZG9SSKBvinw== + integrity: sha512-k285c3B+71DDYA0Dg0f/UQqB3ZAL4W40K3RAjt3vLyrZx4ylm/ok+jXYp+TxnJPhF5OnP72ArmcJi9EvIWPbZA== tarball: file:projects/sample-static-html-composites.tgz version: 0.0.0 file:projects/server.tgz: @@ -20271,7 +20271,7 @@ packages: dev: false name: '@rush-temp/server' resolution: - integrity: sha512-/8fmmhs80jRgf8yGJeowFO6n3qTbsJkvJlIbU/lsULTChnZVVPEHa0/k0EBRLfcwtYJO7HZKI4F4ldZXyXsy1g== + integrity: sha512-g4LOK5XuTeFjJsx/S57jw+xyv67MFyHujd94Sk1QPDSeeSkWetG2SYAWmMFC9+rp/YYb9BhkcqAf+BLRA5uT0g== tarball: file:projects/server.tgz version: 0.0.0 file:projects/storybook.tgz: @@ -20369,7 +20369,7 @@ packages: dev: false name: '@rush-temp/storybook' resolution: - integrity: sha512-KIQZlmySwwmSn4t+EJ5pBmqXQemXXjv1cgqHZLT6LRiFwItIGhrym6zCS+ik+FV/hG6C/7wgHQyKbRjUkVr16w== + integrity: sha512-k8qLZJYvLXtf8yHEqZcLShZK0JLEcF/lFU8uJGj37RwdnaDjU1usR/QVvHgoWdOHLb5EWpMmKNYpgOoDme8SPw== tarball: file:projects/storybook.tgz version: 0.0.0 specifiers: diff --git a/package.json b/package.json index 1a26e6d5eb6..3ce2737a152 100644 --- a/package.json +++ b/package.json @@ -8,4 +8,4 @@ "bugs": { "url": "https://github.com/Azure/communication-ui-library/issues/new/choose" } -} \ No newline at end of file +} diff --git a/packages/chat-component-bindings/package.json b/packages/chat-component-bindings/package.json index 41b4dfdbb2b..3101ec1d01b 100644 --- a/packages/chat-component-bindings/package.json +++ b/packages/chat-component-bindings/package.json @@ -39,12 +39,12 @@ "memoize-one": "~5.2.1" }, "peerDependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@types/react": ">=16.8.0 <19.0.0", "react": ">=16.8.0 <19.0.0" }, "devDependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@babel/cli": "~7.16.0", "@babel/core": "~7.16.0", "@microsoft/api-documenter": "~7.12.11", diff --git a/packages/chat-component-bindings/src/messageThreadSelector.ts b/packages/chat-component-bindings/src/messageThreadSelector.ts index 9974bc3d8d3..acb051abda4 100644 --- a/packages/chat-component-bindings/src/messageThreadSelector.ts +++ b/packages/chat-component-bindings/src/messageThreadSelector.ts @@ -30,9 +30,9 @@ import { DEFAULT_DATA_LOSS_PREVENTION_POLICY_URL } from './utils/constants'; import { updateMessagesWithAttached } from './utils/updateMessagesWithAttached'; /* @conditional-compile-remove(file-sharing) @conditional-compile-remove(teams-inline-images) */ -import { FileMetadata } from '@internal/react-components'; +import { FileMetadata, FileMetadataAttachmentType } from '@internal/react-components'; /* @conditional-compile-remove(teams-inline-images) */ -import { ChatAttachment } from '@azure/communication-chat'; +import { AttachmentType, ChatAttachment } from '@azure/communication-chat'; const memoizedAllConvertChatMessage = memoizeFnAll( ( @@ -76,7 +76,7 @@ const extractAttachedFilesMetadata = (metadata: Record): FileMet /* @conditional-compile-remove(teams-inline-images) */ const extractInlineImageFilesMetadata = (attachments: ChatAttachment[]): FileMetadata[] => { return attachments.map((attachment) => ({ - attachmentType: attachment.attachmentType, + attachmentType: mapAttachmentType(attachment.attachmentType), id: attachment.id, name: attachment.name ?? '', extension: attachment.contentType ?? '', @@ -85,6 +85,16 @@ const extractInlineImageFilesMetadata = (attachments: ChatAttachment[]): FileMet })); }; +/* @conditional-compile-remove(teams-inline-images) */ +const mapAttachmentType = (attachmentType: AttachmentType): FileMetadataAttachmentType => { + if (attachmentType === 'teamsImage' || attachmentType === 'teamsInlineImage') { + return 'teamsInlineImage'; + } else if (attachmentType === 'file') { + return 'fileSharing'; + } + return 'unknown'; +}; + /* @conditional-compile-remove(file-sharing) @conditional-compile-remove(teams-inline-images) */ const extractFilesMetadata = (message: ChatMessageWithStatus): FileMetadata[] => { let fileMetadata: FileMetadata[] = []; diff --git a/packages/chat-stateful-client/package.json b/packages/chat-stateful-client/package.json index b6c4aade462..4b972cf890b 100644 --- a/packages/chat-stateful-client/package.json +++ b/packages/chat-stateful-client/package.json @@ -39,11 +39,11 @@ "nanoid": "3.1.32" }, "peerDependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0" + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0" }, "devDependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", - "@azure/communication-signaling": "1.0.0-beta.17", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", + "@azure/communication-signaling": "1.0.0-beta.18", "@babel/cli": "~7.16.0", "@babel/core": "~7.16.0", "@microsoft/api-documenter": "~7.12.11", diff --git a/packages/communication-react/package.json b/packages/communication-react/package.json index f632859c481..8bedef08e3d 100644 --- a/packages/communication-react/package.json +++ b/packages/communication-react/package.json @@ -49,7 +49,7 @@ "peerDependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", "@azure/communication-calling-effects": "1.0.0-beta.2", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@types/react": ">=16.8.0 <19.0.0", "@types/react-dom": ">=16.8.0 <19.0.0", "react": ">=16.8.0 <19.0.0", @@ -88,7 +88,7 @@ "devDependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", "@azure/communication-calling-effects": "1.0.0-beta.2", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/core-auth": "1.3.2", "@babel/cli": "~7.16.0", "@babel/core": "~7.16.0", diff --git a/packages/fake-backends/package.json b/packages/fake-backends/package.json index 0eaea32bf3d..806efa62bc8 100644 --- a/packages/fake-backends/package.json +++ b/packages/fake-backends/package.json @@ -29,9 +29,9 @@ "_test:by-flavor": "(rushx _if-preprocess && rushx preprocess || if-env COMMUNICATION_REACT_FLAVOR=beta && echo \"skip preprocess\") && jest --passWithNoTests" }, "dependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-common": "2.2.0", - "@azure/communication-signaling": "1.0.0-beta.17", + "@azure/communication-signaling": "1.0.0-beta.18", "@azure/core-paging": "~1.1.3", "@internal/acs-ui-common": "1.5.1-beta.4", "events": "~3.3.0", diff --git a/packages/react-composites/package.json b/packages/react-composites/package.json index dc75a19449c..c8362e90d6e 100644 --- a/packages/react-composites/package.json +++ b/packages/react-composites/package.json @@ -73,7 +73,7 @@ "peerDependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", "@azure/communication-calling-effects": "1.0.0-beta.2", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@types/react": ">=16.8.0 <19.0.0", "@types/react-dom": ">=16.8.0 <19.0.0", "react": ">=16.8.0 <19.0.0", @@ -82,9 +82,9 @@ "devDependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", "@azure/communication-calling-effects": "1.0.0-beta.2", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-identity": "~1.1.0", - "@azure/communication-signaling": "1.0.0-beta.17", + "@azure/communication-signaling": "1.0.0-beta.18", "@babel/cli": "~7.16.0", "@babel/core": "~7.16.0", "@babel/preset-env": "7.13.10", diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 75f48b5aeef..b14eda85893 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-common": "2.2.0", "@azure/communication-identity": "~1.1.0", "@azure/communication-react": "1.5.1-beta.4", diff --git a/samples/CallWithChat/package.json b/samples/CallWithChat/package.json index ca3d11044a5..f264809f24d 100644 --- a/samples/CallWithChat/package.json +++ b/samples/CallWithChat/package.json @@ -31,7 +31,7 @@ "@azure/abort-controller": "^1.0.0", "@azure/communication-identity": "~1.1.0", "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-react": "1.5.1-beta.4", "@azure/communication-common": "2.2.0", "@azure/logger": "1.0.3", diff --git a/samples/Chat/package.json b/samples/Chat/package.json index 53b0af4c2b9..0e276d1d2f4 100644 --- a/samples/Chat/package.json +++ b/samples/Chat/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-common": "2.2.0", "@azure/communication-identity": "~1.1.0", "@azure/communication-react": "1.5.1-beta.4", diff --git a/samples/ComponentExamples/package.json b/samples/ComponentExamples/package.json index e1b3bcde534..bc0bc1ae9f9 100644 --- a/samples/ComponentExamples/package.json +++ b/samples/ComponentExamples/package.json @@ -22,7 +22,7 @@ "_typecheck": "rushx _by-flavor \"rushx _if-preprocess && echo skip || (if-env COMMUNICATION_REACT_FLAVOR=beta && tsc)\"" }, "dependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", "@azure/communication-common": "2.2.0", "@azure/communication-identity": "~1.1.0", diff --git a/samples/Server/package.json b/samples/Server/package.json index 151392d6c1d..f549b54cda2 100644 --- a/samples/Server/package.json +++ b/samples/Server/package.json @@ -19,7 +19,7 @@ "lint:quiet": "eslint */**/*.{ts,tsx} --quiet" }, "dependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-common": "2.2.0", "@azure/communication-identity": "~1.1.0", "@types/cors": "^2.8.8", diff --git a/samples/StaticHtmlComposites/package.json b/samples/StaticHtmlComposites/package.json index ff4f054d55d..024c24baa72 100644 --- a/samples/StaticHtmlComposites/package.json +++ b/samples/StaticHtmlComposites/package.json @@ -25,7 +25,7 @@ "@azure/communication-react": "1.5.1-beta.4", "@azure/communication-common": "2.2.0", "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@fluentui/react": "~8.98.3", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/samples/tests/package.json b/samples/tests/package.json index 0b788780156..206d662a096 100644 --- a/samples/tests/package.json +++ b/samples/tests/package.json @@ -20,13 +20,13 @@ "license": "MIT", "dependencies": { "@azure/communication-calling": "1.13.2-beta.1 || >=1.13.1", - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-common": "2.2.0", "uuid": "^8.1.0", "cross-env": "~7.0.3" }, "devDependencies": { - "@azure/communication-chat": "1.3.2-beta.1 || >=1.2.0", + "@azure/communication-chat": "1.3.2-beta.2 || >=1.2.0", "@azure/communication-identity": "~1.1.0", "@playwright/test": "~1.22.2", "@types/node": "^16.11.7",