agora-appbuilder-core 4.0.0-beta.18 → 4.0.0-beta.20

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 (148) hide show
  1. package/package.json +1 -1
  2. package/template/.bundle/config +2 -0
  3. package/template/Gemfile +4 -0
  4. package/template/_eslintrc.js +3 -3
  5. package/template/_gitignore +12 -11
  6. package/template/_package-lock.json +25351 -22828
  7. package/template/_prettierrc.js +2 -2
  8. package/template/agora-rn-uikit/src/Rtc/Create.tsx +1 -1
  9. package/template/agora-rn-uikit/src/Views/MaxVideoView.native.tsx +25 -3
  10. package/template/agora-rn-uikit/src/Views/MaxVideoView.tsx +11 -1
  11. package/template/android/app/build.gradle +59 -156
  12. package/template/android/app/src/debug/AndroidManifest.xml +6 -1
  13. package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +7 -4
  14. package/template/android/app/src/main/AndroidManifest.xml +2 -2
  15. package/template/android/app/src/main/assets/fonts/icomoon.ttf +0 -0
  16. package/template/android/app/src/main/java/com/helloworld/MainActivity.java +17 -0
  17. package/template/android/app/src/main/java/com/helloworld/MainApplication.java +19 -36
  18. package/template/android/app/src/release/java/com/helloworld/ReactNativeFlipper.java +20 -0
  19. package/template/android/build.gradle +9 -33
  20. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  21. package/template/android/gradle/wrapper/gradle-wrapper.properties +3 -2
  22. package/template/android/gradle.properties +18 -4
  23. package/template/android/gradlew +165 -104
  24. package/template/android/gradlew.bat +12 -23
  25. package/template/android/settings.gradle +1 -0
  26. package/template/bridge/rtc/webNg/RtcEngine.ts +58 -8
  27. package/template/bridge/rtm/web/index.ts +5 -3
  28. package/template/global.d.ts +1 -0
  29. package/template/ios/.xcode.env +11 -0
  30. package/template/ios/HelloWorld/AppDelegate.h +2 -4
  31. package/template/ios/HelloWorld/AppDelegate.mm +42 -0
  32. package/template/ios/HelloWorld/Info.plist +1 -1
  33. package/template/ios/HelloWorld/main.m +2 -1
  34. package/template/ios/HelloWorld.xcodeproj/project.pbxproj +529 -17
  35. package/template/ios/HelloWorld.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  36. package/template/ios/HelloWorld.xcworkspace/contents.xcworkspacedata +10 -0
  37. package/template/ios/HelloWorld.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  38. package/template/ios/HelloWorldTests/HelloWorldTests.m +14 -13
  39. package/template/ios/HelloWorldTests/Info.plist +2 -2
  40. package/template/ios/Podfile +53 -20
  41. package/template/ios/Podfile.lock +872 -0
  42. package/template/ios/ScreenSharing/Info.plist +15 -0
  43. package/template/ios/ScreenSharing/SampleHandler.h +9 -0
  44. package/template/ios/ScreenSharing/SampleHandler.m +70 -0
  45. package/template/jest.config.js +4 -0
  46. package/template/metro.config.js +7 -32
  47. package/template/package.json +45 -39
  48. package/template/react-native-toast-message/index.d.ts +1 -0
  49. package/template/src/assets/font-styles.css +135 -86
  50. package/template/src/assets/fonts/icomoon.ttf +0 -0
  51. package/template/src/assets/selection.json +1 -1
  52. package/template/src/atoms/ActionMenu.tsx +1 -0
  53. package/template/src/atoms/Carousel.native.tsx +105 -0
  54. package/template/src/atoms/Carousel.tsx +104 -0
  55. package/template/src/atoms/Checkbox.tsx +98 -0
  56. package/template/src/atoms/CustomIcon.tsx +13 -0
  57. package/template/src/atoms/DropDownMulti.tsx +349 -0
  58. package/template/src/atoms/ParticipantsCount.tsx +2 -4
  59. package/template/src/atoms/Popup.tsx +44 -26
  60. package/template/src/atoms/PrimaryButton.tsx +17 -4
  61. package/template/src/atoms/RecordingInfo.tsx +1 -1
  62. package/template/src/auth/AuthProvider.tsx +14 -13
  63. package/template/src/components/Chat.tsx +3 -0
  64. package/template/src/components/CommonStyles.ts +9 -2
  65. package/template/src/components/Controls.tsx +195 -14
  66. package/template/src/components/DeviceConfigure.tsx +1 -0
  67. package/template/src/components/EventsConfigure.tsx +31 -8
  68. package/template/src/components/GridVideo.tsx +7 -2
  69. package/template/src/components/ParticipantsView.tsx +3 -0
  70. package/template/src/components/PinnedVideo.tsx +5 -1
  71. package/template/src/components/RTMConfigure.tsx +19 -13
  72. package/template/src/components/SdkApiContext.tsx +2 -0
  73. package/template/src/components/SettingsView.tsx +4 -0
  74. package/template/src/components/chat-messages/useChatMessages.tsx +166 -152
  75. package/template/src/components/common/Error.tsx +1 -0
  76. package/template/src/components/contexts/ScreenShareContext.tsx +14 -1
  77. package/template/src/components/livestream/LiveStreamContext.tsx +189 -157
  78. package/template/src/components/participants/UserActionMenuOptions.tsx +1 -0
  79. package/template/src/components/popups/StartScreenSharePopup.native.tsx +179 -0
  80. package/template/src/components/popups/StartScreenSharePopup.tsx +6 -0
  81. package/template/src/components/popups/StopScreenSharePopup.native.tsx +123 -0
  82. package/template/src/components/popups/StopScreenSharePopup.tsx +6 -0
  83. package/template/src/components/useVideoCall.tsx +26 -0
  84. package/template/src/pages/Create.tsx +2 -0
  85. package/template/src/pages/Join.tsx +1 -0
  86. package/template/src/pages/VideoCall.tsx +20 -11
  87. package/template/src/pages/video-call/ActionSheet.native.tsx +39 -5
  88. package/template/src/pages/video-call/ActionSheet.tsx +43 -8
  89. package/template/src/pages/video-call/ActionSheetContent.tsx +295 -56
  90. package/template/src/pages/video-call/ActionSheetHandle.tsx +7 -1
  91. package/template/src/pages/video-call/NameWithMicIcon.tsx +7 -3
  92. package/template/src/pages/video-call/PinchableView.tsx +119 -0
  93. package/template/src/pages/video-call/SidePanelHeader.tsx +159 -1
  94. package/template/src/pages/video-call/VideoCallMobileView.tsx +128 -74
  95. package/template/src/pages/video-call/VideoCallScreen.native.tsx +24 -0
  96. package/template/src/pages/video-call/VideoCallScreen.tsx +20 -5
  97. package/template/src/pages/video-call/VideoRenderer.tsx +181 -30
  98. package/template/src/pages/video-call/ZoomableWrapper.native.tsx +34 -0
  99. package/template/src/pages/video-call/ZoomableWrapper.tsx +5 -0
  100. package/template/src/rtm/RTMEngine.ts +4 -4
  101. package/template/src/rtm-events/constants.ts +5 -0
  102. package/template/src/selection.json +1 -0
  103. package/template/src/subComponents/EndcallPopup.tsx +68 -6
  104. package/template/src/subComponents/Loading.tsx +22 -9
  105. package/template/src/subComponents/LocalEndCall.tsx +32 -4
  106. package/template/src/subComponents/LocalSwitchCamera.tsx +8 -2
  107. package/template/src/subComponents/LocalVideoMute.tsx +19 -2
  108. package/template/src/subComponents/SidePanelEnum.tsx +1 -0
  109. package/template/src/subComponents/SidePanelHeader.tsx +97 -63
  110. package/template/src/subComponents/caption/Caption.tsx +128 -0
  111. package/template/src/subComponents/caption/CaptionContainer.tsx +296 -0
  112. package/template/src/subComponents/caption/CaptionIcon.tsx +119 -0
  113. package/template/src/subComponents/caption/CaptionText.tsx +181 -0
  114. package/template/src/subComponents/caption/DownloadTranscriptBtn.tsx +62 -0
  115. package/template/src/subComponents/caption/LanguageSelectorPopup.tsx +184 -0
  116. package/template/src/subComponents/caption/Transcript.tsx +440 -0
  117. package/template/src/subComponents/caption/TranscriptIcon.tsx +114 -0
  118. package/template/src/subComponents/caption/TranscriptText.tsx +98 -0
  119. package/template/src/subComponents/caption/index.ts +3 -0
  120. package/template/src/subComponents/caption/proto/ptoto.js +91 -0
  121. package/template/src/subComponents/caption/proto/test.proto +23 -0
  122. package/template/src/subComponents/caption/useCaption.tsx +116 -0
  123. package/template/src/subComponents/caption/useCaptionWidth.ts +27 -0
  124. package/template/src/subComponents/caption/useSTTAPI.tsx +160 -0
  125. package/template/src/subComponents/caption/useStreamMessageUtils.native.ts +205 -0
  126. package/template/src/subComponents/caption/useStreamMessageUtils.ts +217 -0
  127. package/template/src/subComponents/caption/useTranscriptDownload.native.ts +68 -0
  128. package/template/src/subComponents/caption/useTranscriptDownload.ts +52 -0
  129. package/template/src/subComponents/caption/utils.ts +118 -0
  130. package/template/src/subComponents/recording/useRecording.tsx +2 -1
  131. package/template/src/subComponents/screenshare/ScreenshareButton.tsx +23 -4
  132. package/template/src/subComponents/screenshare/ScreenshareConfigure.native.tsx +195 -53
  133. package/template/src/subComponents/screenshare/ScreenshareConfigure.tsx +75 -61
  134. package/template/src/utils/axiomLogger.ts +117 -0
  135. package/template/src/utils/common.tsx +37 -0
  136. package/template/src/utils/useAsyncEffect.ts +138 -0
  137. package/template/src/utils/useFindActiveSpeaker.native.ts +4 -0
  138. package/template/src/utils/useFindActiveSpeaker.ts +275 -0
  139. package/template/src/utils/useIsLocalUserSpeaking.native.ts +4 -0
  140. package/template/src/utils/useIsLocalUserSpeaking.ts +50 -0
  141. package/template/src/utils/useMuteToggleLocal.ts +17 -48
  142. package/template/web/index.html +20 -0
  143. package/template/_buckconfig +0 -6
  144. package/template/_gitattributes +0 -1
  145. package/template/android/app/_BUCK +0 -55
  146. package/template/android/app/build_defs.bzl +0 -19
  147. package/template/ios/HelloWorld/AppDelegate.m +0 -74
  148. package/template/src/subComponents/screenshare/ScreenshareButton.native.tsx +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.0.0-beta.18",
3
+ "version": "4.0.0-beta.20",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -0,0 +1,2 @@
1
+ BUNDLE_PATH: "vendor/bundle"
2
+ BUNDLE_FORCE_RUBY_PLATFORM: 1
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
3
+ ruby ">= 2.6.10"
4
+ gem 'cocoapods', '~> 1.12'
@@ -11,10 +11,10 @@
11
11
  */
12
12
  module.exports = {
13
13
  root: true,
14
- extends: '@react-native-community',
14
+ extends: '@react-native',
15
15
  parser: '@typescript-eslint/parser',
16
16
  plugins: ['@typescript-eslint'],
17
17
  globals: {
18
- $config: true
19
- }
18
+ $config: true,
19
+ },
20
20
  };
@@ -39,12 +39,6 @@ node_modules/
39
39
  npm-debug.log
40
40
  yarn-error.log
41
41
 
42
- # BUCK
43
- buck-out/
44
- \.buckd/
45
- *.keystore
46
- !debug.keystore
47
-
48
42
  # fastlane
49
43
  #
50
44
  # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
@@ -52,15 +46,17 @@ buck-out/
52
46
  # For more information about the recommended setup visit:
53
47
  # https://docs.fastlane.tools/best-practices/source-control/
54
48
 
55
- */fastlane/report.xml
56
- */fastlane/Preview.html
57
- */fastlane/screenshots
49
+ **/fastlane/report.xml
50
+ **/fastlane/Preview.html
51
+ **/fastlane/screenshots
52
+ **/fastlane/test_output
58
53
 
59
54
  # Bundle artifact
60
55
  *.jsbundle
61
56
 
62
- # CocoaPods
57
+ # Ruby / CocoaPods
63
58
  /ios/Pods/
59
+ /vendor/bundle/
64
60
 
65
61
  #UI Kit
66
62
  agora-rn-uikit/
@@ -74,4 +70,9 @@ dist/
74
70
  out/
75
71
 
76
72
  #Customization plugin folder
77
- template/customization/*
73
+ template/customization/*
74
+
75
+ # Temporary files created by Metro to check the health of the file watcher
76
+ .metro-health-check*
77
+ # testing
78
+ /coverage