@stream-io/video-react-native-sdk 0.1.14 → 0.2.1

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 (117) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js +120 -0
  3. package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js.map +1 -0
  4. package/dist/commonjs/components/Call/CallControls/index.js +11 -0
  5. package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  7. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +5 -4
  8. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  9. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +1 -1
  10. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
  11. package/dist/commonjs/constants/TestIds.js +1 -0
  12. package/dist/commonjs/constants/TestIds.js.map +1 -1
  13. package/dist/commonjs/hooks/index.js +11 -0
  14. package/dist/commonjs/hooks/index.js.map +1 -1
  15. package/dist/commonjs/hooks/useIsIosScreenshareBroadcastStarted.js +25 -0
  16. package/dist/commonjs/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -0
  17. package/dist/commonjs/icons/ScreenShare.js +2 -14
  18. package/dist/commonjs/icons/ScreenShare.js.map +1 -1
  19. package/dist/commonjs/icons/ScreenShareIndicator.js +38 -0
  20. package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -0
  21. package/dist/commonjs/icons/index.js +11 -0
  22. package/dist/commonjs/icons/index.js.map +1 -1
  23. package/dist/commonjs/theme/theme.js +4 -0
  24. package/dist/commonjs/theme/theme.js.map +1 -1
  25. package/dist/commonjs/translations/en.json +1 -0
  26. package/dist/commonjs/version.js +1 -1
  27. package/dist/commonjs/version.js.map +1 -1
  28. package/dist/module/components/Call/CallControls/ScreenShareButton.js +112 -0
  29. package/dist/module/components/Call/CallControls/ScreenShareButton.js.map +1 -0
  30. package/dist/module/components/Call/CallControls/index.js +1 -0
  31. package/dist/module/components/Call/CallControls/index.js.map +1 -1
  32. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  33. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +6 -5
  34. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  35. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +1 -1
  36. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
  37. package/dist/module/constants/TestIds.js +1 -0
  38. package/dist/module/constants/TestIds.js.map +1 -1
  39. package/dist/module/hooks/index.js +1 -0
  40. package/dist/module/hooks/index.js.map +1 -1
  41. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js +19 -0
  42. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -0
  43. package/dist/module/icons/ScreenShare.js +3 -15
  44. package/dist/module/icons/ScreenShare.js.map +1 -1
  45. package/dist/module/icons/ScreenShareIndicator.js +28 -0
  46. package/dist/module/icons/ScreenShareIndicator.js.map +1 -0
  47. package/dist/module/icons/index.js +1 -0
  48. package/dist/module/icons/index.js.map +1 -1
  49. package/dist/module/theme/theme.js +4 -0
  50. package/dist/module/theme/theme.js.map +1 -1
  51. package/dist/module/translations/en.json +1 -0
  52. package/dist/module/version.js +1 -1
  53. package/dist/module/version.js.map +1 -1
  54. package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts +22 -0
  55. package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts.map +1 -0
  56. package/dist/typescript/components/Call/CallControls/index.d.ts +1 -0
  57. package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
  58. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +2 -2
  59. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  60. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
  61. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
  62. package/dist/typescript/constants/TestIds.d.ts +1 -0
  63. package/dist/typescript/constants/TestIds.d.ts.map +1 -1
  64. package/dist/typescript/hooks/index.d.ts +1 -0
  65. package/dist/typescript/hooks/index.d.ts.map +1 -1
  66. package/dist/typescript/hooks/useIsIosScreenshareBroadcastStarted.d.ts +2 -0
  67. package/dist/typescript/hooks/useIsIosScreenshareBroadcastStarted.d.ts.map +1 -0
  68. package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
  69. package/dist/typescript/icons/ScreenShareIndicator.d.ts +8 -0
  70. package/dist/typescript/icons/ScreenShareIndicator.d.ts.map +1 -0
  71. package/dist/typescript/icons/index.d.ts +1 -0
  72. package/dist/typescript/icons/index.d.ts.map +1 -1
  73. package/dist/typescript/theme/theme.d.ts +4 -0
  74. package/dist/typescript/theme/theme.d.ts.map +1 -1
  75. package/dist/typescript/translations/index.d.ts +1 -0
  76. package/dist/typescript/translations/index.d.ts.map +1 -1
  77. package/dist/typescript/version.d.ts +1 -1
  78. package/dist/typescript/version.d.ts.map +1 -1
  79. package/expo-config-plugin/dist/common/types.d.ts +2 -0
  80. package/expo-config-plugin/dist/index.js +2 -0
  81. package/expo-config-plugin/dist/withAndroidManifest.js +9 -5
  82. package/expo-config-plugin/dist/withBuildProperties.d.ts +2 -2
  83. package/expo-config-plugin/dist/withBuildProperties.js +2 -2
  84. package/expo-config-plugin/dist/withIosScreenCapture/addBroadcastExtensionXcodeTarget.d.ts +11 -0
  85. package/expo-config-plugin/dist/withIosScreenCapture/addBroadcastExtensionXcodeTarget.js +225 -0
  86. package/expo-config-plugin/dist/withIosScreenCapture/index.d.ts +4 -0
  87. package/expo-config-plugin/dist/withIosScreenCapture/index.js +20 -0
  88. package/expo-config-plugin/dist/withIosScreenCapture/withFilesMod.d.ts +4 -0
  89. package/expo-config-plugin/dist/withIosScreenCapture/withFilesMod.js +71 -0
  90. package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.d.ts +4 -0
  91. package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.js +33 -0
  92. package/expo-config-plugin/dist/withIosScreenCapture/withTarget.d.ts +4 -0
  93. package/expo-config-plugin/dist/withIosScreenCapture/withTarget.js +122 -0
  94. package/expo-config-plugin/static/Atomic.swift +36 -0
  95. package/expo-config-plugin/static/DarwinNotificationCenter.swift +25 -0
  96. package/expo-config-plugin/static/SampleHandler.swift +99 -0
  97. package/expo-config-plugin/static/SampleUploader.swift +143 -0
  98. package/expo-config-plugin/static/SocketConnection.swift +195 -0
  99. package/ios/StreamVideoReactNative-Bridging-Header.h +2 -1
  100. package/ios/StreamVideoReactNative.h +4 -2
  101. package/ios/StreamVideoReactNative.m +82 -1
  102. package/ios/StreamVideoReactNative.xcodeproj/project.pbxproj +3 -3
  103. package/package.json +4 -3
  104. package/src/components/Call/CallControls/ScreenShareButton.tsx +127 -0
  105. package/src/components/Call/CallControls/index.tsx +1 -0
  106. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +2 -3
  107. package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +14 -5
  108. package/src/components/Participant/ParticipantView/VideoRenderer.tsx +3 -1
  109. package/src/constants/TestIds.ts +1 -0
  110. package/src/hooks/index.ts +1 -0
  111. package/src/hooks/useIsIosScreenshareBroadcastStarted.ts +33 -0
  112. package/src/icons/ScreenShare.tsx +3 -18
  113. package/src/icons/ScreenShareIndicator.tsx +34 -0
  114. package/src/icons/index.tsx +1 -0
  115. package/src/theme/theme.ts +8 -0
  116. package/src/translations/en.json +1 -0
  117. package/src/version.ts +1 -1
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import Svg, { Mask, Path } from 'react-native-svg';
3
+ import { ColorValue } from 'react-native/types';
4
+ import { IconTestIds } from '../constants/TestIds';
5
+
6
+ type Props = {
7
+ color: ColorValue;
8
+ };
9
+
10
+ export const ScreenShareIndicator = ({ color }: Props) => {
11
+ return (
12
+ <Svg viewBox="0 0 24 24" testID={IconTestIds.SCREEN_SHARE_INDICATOR}>
13
+ <Mask id="path-1-inside-1_1396_84816">
14
+ <Path
15
+ fillRule="evenodd"
16
+ clipRule="evenodd"
17
+ d="M 2 6.68176 C 2 5.57719 2.89543 4.68176 4 4.68176 H 20 C 21.1046 4.68176 22 5.57719 22 6.68176 V 16.3181 C 22 17.4227 21.1046 18.3181 20 18.3181 H 4 C 2.89543 18.3181 2 17.4227 2 16.3181 V 6.68176 Z M 10.4209 11.5243 L 8.3635 11.5 L 11.9999 7.25755 L 15.6362 11.5 L 13.5065 11.5247 V 15.7424 L 10.4209 15.7424 V 11.5243 Z"
18
+ />
19
+ </Mask>
20
+
21
+ <Path
22
+ fill={color}
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M 2 6.68176 C 2 5.57719 2.89543 4.68176 4 4.68176 H 20 C 21.1046 4.68176 22 5.57719 22 6.68176 V 16.3181 C 22 17.4227 21.1046 18.3181 20 18.3181 H 4 C 2.89543 18.3181 2 17.4227 2 16.3181 V 6.68176 Z M 10.4209 11.5243 L 8.3635 11.5 L 11.9999 7.25755 L 15.6362 11.5 L 13.5065 11.5247 V 15.7424 L 10.4209 15.7424 V 11.5243 Z"
26
+ />
27
+ <Path
28
+ mask="url(#path-1-inside-1_1396_84816)"
29
+ fill={color}
30
+ d="M 8.3635 11.5 L 6.84499 10.1984 L 4.05865 13.4491 L 8.33982 13.4998 L 8.3635 11.5 Z M 10.4209 11.5243 H 12.4209 V 9.54789 L 10.4446 9.52449 L 10.4209 11.5243 Z M 11.9999 7.25755 L 13.5184 5.95597 L 11.9999 4.18437 L 10.4814 5.95597 L 11.9999 7.25755 Z M 15.6362 11.5 L 15.6594 13.4998 L 19.9419 13.4501 L 17.1547 10.1984 L 15.6362 11.5 Z M 13.5065 11.5247 L 13.4833 9.52483 L 11.5065 9.54778 V 11.5247 H 13.5065 Z M 13.5065 15.7424 L 13.5065 17.7424 L 15.5065 17.7424 V 15.7424 H 13.5065 Z M 10.4209 15.7424 H 8.42094 V 17.7424 H 10.4209 L 10.4209 15.7424 Z M 4 2.68176 C 1.79086 2.68176 0 4.47263 0 6.68176 H 4 V 6.68176 V 2.68176 Z M 20 2.68176 H 4 V 6.68176 H 20 V 2.68176 Z M 24 6.68176 C 24 4.47262 22.2091 2.68176 20 2.68176 V 6.68176 H 24 Z M 24 16.3181 V 6.68176 H 20 V 16.3181 H 24 Z M 20 20.3181 C 22.2091 20.3181 24 18.5273 24 16.3181 H 20 V 16.3181 V 20.3181 Z M 4 20.3181 H 20 V 16.3181 H 4 V 20.3181 Z M 0 16.3181 C 0 18.5273 1.79086 20.3181 4 20.3181 V 16.3181 H 4 H 0 Z M 0 6.68176 V 16.3181 H 4 V 6.68176 H 0 Z M 8.33982 13.4998 L 10.3973 13.5242 L 10.4446 9.52449 L 8.38719 9.50012 L 8.33982 13.4998 Z M 10.4814 5.95597 L 6.84499 10.1984 L 9.88202 12.8016 L 13.5184 8.55913 L 10.4814 5.95597 Z M 17.1547 10.1984 L 13.5184 5.95597 L 10.4814 8.55913 L 14.1177 12.8016 L 17.1547 10.1984 Z M 13.5297 13.5246 L 15.6594 13.4998 L 15.613 9.50011 L 13.4833 9.52483 L 13.5297 13.5246 Z M 11.5065 11.5247 V 15.7424 H 15.5065 V 11.5247 H 11.5065 Z M 13.5065 13.7424 L 10.4209 13.7424 L 10.4209 17.7424 L 13.5065 17.7424 L 13.5065 13.7424 Z M 12.4209 15.7424 V 11.5243 H 8.42094 V 15.7424 H 12.4209 Z"
31
+ />
32
+ </Svg>
33
+ );
34
+ };
@@ -11,6 +11,7 @@ export * from './Participants';
11
11
  export * from './ThreeDots';
12
12
  export * from './PinVertical';
13
13
  export * from './Spotlight';
14
+ export * from './ScreenShareIndicator';
14
15
  export * from './ScreenShare';
15
16
  export * from './Reaction';
16
17
  export * from './TopViewBackground';
@@ -57,6 +57,10 @@ export type Theme = {
57
57
  container: ViewStyle;
58
58
  svgContainer: ViewStyle;
59
59
  };
60
+ screenShareButton: {
61
+ container: ViewStyle;
62
+ svgContainer: ViewStyle;
63
+ };
60
64
  toggleAudioPreviewButton: {
61
65
  container: ViewStyle;
62
66
  svgContainer: ViewStyle;
@@ -363,6 +367,10 @@ export const defaultTheme: Theme = {
363
367
  container: {},
364
368
  svgContainer: {},
365
369
  },
370
+ screenShareButton: {
371
+ container: {},
372
+ svgContainer: {},
373
+ },
366
374
  toggleAudioPreviewButton: {
367
375
  container: {},
368
376
  svgContainer: {},
@@ -14,6 +14,7 @@
14
14
  "You are first to Join the call.": "You are first to Join the call.",
15
15
  "Participants ({{ numberOfParticipants }})": "Participants ({{ numberOfParticipants }})",
16
16
  "{{ userName }} is sharing their screen": "{{ userName }} is sharing their screen",
17
+ "You are sharing your screen": "You are sharing your screen",
17
18
  "{{ numberOfParticipants }} participant(s) are in the call.": "{{ numberOfParticipants }} participant(s) are in the call.",
18
19
  "You are about to join a call with id {{ callId }}.": "You are about to join a call with id {{ callId }}."
19
20
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.1.14';
1
+ export const version = '0.2.1';