@azure/communication-react 1.18.0-alpha-202406280014 → 1.18.0-alpha-202406300015

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.
Files changed (46) hide show
  1. package/dist/communication-react.d.ts +15 -1
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js → ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js.map → ChatMessageComponentAsRichTextEditBox-BtaxqZHP.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-G-04IaQB.js → RichTextSendBoxWrapper-BMGUpdeA.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-G-04IaQB.js.map → RichTextSendBoxWrapper-BMGUpdeA.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-CWs0GTYF.js → index-D8bZR5YN.js} +72 -57
  7. package/dist/dist-cjs/communication-react/index-D8bZR5YN.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +3 -1
  12. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +12 -0
  13. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +7 -2
  15. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
  16. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  17. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/NotificationStack.d.ts +4 -0
  19. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/utils.js +3 -1
  21. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/theming/icons.js +1 -2
  23. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  24. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -9
  25. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +1 -0
  27. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +12 -2
  28. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  29. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -0
  30. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +6 -2
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +4 -2
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +3 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +4 -2
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +3 -1
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +10 -0
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +6 -2
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +5 -4
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/dist-cjs/communication-react/index-CWs0GTYF.js.map +0 -1
@@ -1,21 +1,22 @@
1
1
  import { ActiveErrorMessage, ErrorType } from "../../../../../react-components/src";
2
- import { TrackedErrors } from '../types/ErrorTracking';
2
+ import { TrackedNotifications } from '../types/ErrorTracking';
3
+ import { NotificationType, ActiveNotification } from "../../../../../react-components/src";
3
4
  /**
4
5
  * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.
5
6
  *
6
7
  * @private
7
8
  */
8
- export declare const filterLatestErrors: (activeErrors: ActiveErrorMessage[], trackedErrors: TrackedErrors) => ActiveErrorMessage[];
9
+ export declare const filterLatestErrors: (activeErrors: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[], trackedErrors: TrackedNotifications) => ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[];
9
10
  /**
10
11
  * Maintain a record of the most recently active error for each error type.
11
12
  *
12
13
  * @private
13
14
  */
14
- export declare const updateTrackedErrorsWithActiveErrors: (existingTrackedErrors: TrackedErrors, activeErrors: ActiveErrorMessage[]) => TrackedErrors;
15
+ export declare const updateTrackedErrorsWithActiveErrors: (existingTrackedErrors: TrackedNotifications, activeErrors: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[]) => TrackedNotifications;
15
16
  /**
16
17
  * Create a record for when the error was most recently dismissed for tracking dismissed errors.
17
18
  *
18
19
  * @private
19
20
  */
20
- export declare const trackErrorAsDismissed: (errorType: ErrorType, trackedErrors: TrackedErrors) => TrackedErrors;
21
+ export declare const trackErrorAsDismissed: (errorType: ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType, trackedErrors: TrackedNotifications) => TrackedNotifications;
21
22
  //# sourceMappingURL=TrackErrors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TrackErrors.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/utils/TrackErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,YAAkC,EAClC,aAA4B,EACN,EAAE;IACxB,MAAM,cAAc,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE;QACzD,MAAM,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrD,OAAO,CACL,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,eAAe,IAAI,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,kBAAkB,CACjH,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,qBAAoC,EACpC,YAAkC,EACnB,EAAE;;IACjB,MAAM,aAAa,GAAkB,EAAE,CAAC;IAExC,0HAA0H;IAC1H,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrE,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YAChC,kBAAkB,EAAE,MAAA,MAAA,WAAW,CAAC,SAAS,mCAAI,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,kBAAkB,mCAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7G,eAAe,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,eAAe;SACvD,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAAoB,EAAE,aAA4B,EAAiB,EAAE;IACzG,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IAE/C,uCACK,aAAa,KAChB,CAAC,SAAS,CAAC,kCACN,CAAC,aAAa,IAAI,EAAE,CAAC,KACxB,eAAe,EAAE,GAAG,OAEtB;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { TrackedErrors } from '../types/ErrorTracking';\n\n/**\n * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestErrors = (\n activeErrors: ActiveErrorMessage[],\n trackedErrors: TrackedErrors\n): ActiveErrorMessage[] => {\n const filteredErrors = activeErrors.filter((activeError) => {\n const trackedError = trackedErrors[activeError.type];\n return (\n !trackedError || !trackedError.lastDismissedAt || trackedError.lastDismissedAt < trackedError.mostRecentlyActive\n );\n });\n return filteredErrors;\n};\n\n/**\n * Maintain a record of the most recently active error for each error type.\n *\n * @private\n */\nexport const updateTrackedErrorsWithActiveErrors = (\n existingTrackedErrors: TrackedErrors,\n activeErrors: ActiveErrorMessage[]\n): TrackedErrors => {\n const trackedErrors: TrackedErrors = {};\n\n // Only care about active errors. If errors are no longer active we do not track that they have been previously dismissed.\n for (const activeError of activeErrors) {\n const existingTrackedError = existingTrackedErrors[activeError.type];\n trackedErrors[activeError.type] = {\n mostRecentlyActive: activeError.timestamp ?? existingTrackedError?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedError?.lastDismissedAt\n };\n }\n\n return trackedErrors;\n};\n\n/**\n * Create a record for when the error was most recently dismissed for tracking dismissed errors.\n *\n * @private\n */\nexport const trackErrorAsDismissed = (errorType: ErrorType, trackedErrors: TrackedErrors): TrackedErrors => {\n const now = new Date(Date.now());\n const existingError = trackedErrors[errorType];\n\n return {\n ...trackedErrors,\n [errorType]: {\n ...(existingError || {}),\n lastDismissedAt: now\n }\n };\n};\n"]}
1
+ {"version":3,"file":"TrackErrors.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/utils/TrackErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,YAA0G,EAC1G,aAAmC,EAC2D,EAAE;IAChG,MAAM,cAAc,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE;QACzD,MAAM,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrD,OAAO,CACL,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,eAAe,IAAI,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,kBAAkB,CACjH,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,OAAO,cAA8G,CAAC;AACxH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,qBAA2C,EAC3C,YAA0G,EACpF,EAAE;;IACxB,MAAM,aAAa,GAAyB,EAAE,CAAC;IAE/C,0HAA0H;IAC1H,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrE,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YAChC,kBAAkB,EAAE,MAAA,MAAA,WAAW,CAAC,SAAS,mCAAI,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,kBAAkB,mCAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7G,eAAe,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,eAAe;SACvD,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,SAAwF,EACxF,aAAmC,EACb,EAAE;IACxB,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IAE/C,uCACK,aAAa,KAChB,CAAC,SAAS,CAAC,kCACN,CAAC,aAAa,IAAI,EAAE,CAAC,KACxB,eAAe,EAAE,GAAG,OAEtB;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { TrackedNotifications } from '../types/ErrorTracking';\n/* @conditional-compile-remove(notifications) */\nimport { NotificationType, ActiveNotification } from '@internal/react-components';\n\n/**\n * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestErrors = (\n activeErrors: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[],\n trackedErrors: TrackedNotifications\n): ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[] => {\n const filteredErrors = activeErrors.filter((activeError) => {\n const trackedError = trackedErrors[activeError.type];\n return (\n !trackedError || !trackedError.lastDismissedAt || trackedError.lastDismissedAt < trackedError.mostRecentlyActive\n );\n });\n return filteredErrors as ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[];\n};\n\n/**\n * Maintain a record of the most recently active error for each error type.\n *\n * @private\n */\nexport const updateTrackedErrorsWithActiveErrors = (\n existingTrackedErrors: TrackedNotifications,\n activeErrors: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[]\n): TrackedNotifications => {\n const trackedErrors: TrackedNotifications = {};\n\n // Only care about active errors. If errors are no longer active we do not track that they have been previously dismissed.\n for (const activeError of activeErrors) {\n const existingTrackedError = existingTrackedErrors[activeError.type];\n trackedErrors[activeError.type] = {\n mostRecentlyActive: activeError.timestamp ?? existingTrackedError?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedError?.lastDismissedAt\n };\n }\n\n return trackedErrors;\n};\n\n/**\n * Create a record for when the error was most recently dismissed for tracking dismissed errors.\n *\n * @private\n */\nexport const trackErrorAsDismissed = (\n errorType: ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType,\n trackedErrors: TrackedNotifications\n): TrackedNotifications => {\n const now = new Date(Date.now());\n const existingError = trackedErrors[errorType];\n\n return {\n ...trackedErrors,\n [errorType]: {\n ...(existingError || {}),\n lastDismissedAt: now\n }\n };\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/communication-react",
3
- "version": "1.18.0-alpha-202406280014",
3
+ "version": "1.18.0-alpha-202406300015",
4
4
  "sideEffects": false,
5
5
  "description": "React library for building modern communication user experiences utilizing Azure Communication Services",
6
6
  "keywords": [