agora-appbuilder-core 3.0.6 → 3.0.8

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 (43) hide show
  1. package/package.json +1 -1
  2. package/template/_package-lock.json +35 -28939
  3. package/template/agora-rn-uikit/.git/HEAD +1 -0
  4. package/template/agora-rn-uikit/.git/config +16 -0
  5. package/template/agora-rn-uikit/.git/description +1 -0
  6. package/template/agora-rn-uikit/.git/hooks/applypatch-msg.sample +15 -0
  7. package/template/agora-rn-uikit/.git/hooks/commit-msg.sample +24 -0
  8. package/template/agora-rn-uikit/.git/hooks/fsmonitor-watchman.sample +174 -0
  9. package/template/agora-rn-uikit/.git/hooks/post-update.sample +8 -0
  10. package/template/agora-rn-uikit/.git/hooks/pre-applypatch.sample +14 -0
  11. package/template/agora-rn-uikit/.git/hooks/pre-commit.sample +49 -0
  12. package/template/agora-rn-uikit/.git/hooks/pre-merge-commit.sample +13 -0
  13. package/template/agora-rn-uikit/.git/hooks/pre-push.sample +53 -0
  14. package/template/agora-rn-uikit/.git/hooks/pre-rebase.sample +169 -0
  15. package/template/agora-rn-uikit/.git/hooks/pre-receive.sample +24 -0
  16. package/template/agora-rn-uikit/.git/hooks/prepare-commit-msg.sample +42 -0
  17. package/template/agora-rn-uikit/.git/hooks/push-to-checkout.sample +78 -0
  18. package/template/agora-rn-uikit/.git/hooks/update.sample +128 -0
  19. package/template/agora-rn-uikit/.git/index +0 -0
  20. package/template/agora-rn-uikit/.git/info/exclude +6 -0
  21. package/template/agora-rn-uikit/.git/logs/HEAD +2 -0
  22. package/template/agora-rn-uikit/.git/logs/refs/heads/master +1 -0
  23. package/template/agora-rn-uikit/.git/logs/refs/heads/release/fpe-1.0.1 +1 -0
  24. package/template/agora-rn-uikit/.git/logs/refs/remotes/origin/HEAD +1 -0
  25. package/template/agora-rn-uikit/.git/objects/pack/pack-baa9cf4109c3e8528f39535764621cee252b2b77.idx +0 -0
  26. package/template/agora-rn-uikit/.git/objects/pack/pack-baa9cf4109c3e8528f39535764621cee252b2b77.pack +0 -0
  27. package/template/agora-rn-uikit/.git/packed-refs +49 -0
  28. package/template/agora-rn-uikit/.git/refs/heads/master +1 -0
  29. package/template/agora-rn-uikit/.git/refs/heads/release/fpe-1.0.1 +1 -0
  30. package/template/agora-rn-uikit/.git/refs/remotes/origin/HEAD +1 -0
  31. package/template/agora-rn-uikit/.gitignore +63 -0
  32. package/template/agora-rn-uikit/package-lock.json +7612 -0
  33. package/template/package-lock.json +22543 -0
  34. package/template/react-native-toast-message/.gitignore +5 -0
  35. package/template/react-native-toast-message/.npmignore +5 -0
  36. package/template/react-native-toast-message/package-lock.json +10553 -0
  37. package/template/src/.DS_Store +0 -0
  38. package/template/src/SDKAppWrapper.tsx +13 -1
  39. package/template/src/pages/Create.tsx +2 -0
  40. package/template/src/subComponents/.DS_Store +0 -0
  41. package/template/src/subComponents/screenshare/ScreenshareConfigure.native.tsx +0 -14
  42. package/template/src/subComponents/screenshare/ScreenshareConfigure.tsx +0 -13
  43. package/template/src/utils/SdkEvents.ts +1 -0
Binary file
@@ -38,13 +38,25 @@ export interface AppBuilderSdkApiInterface {
38
38
  ) => Unsubscribe;
39
39
  }
40
40
 
41
+ let joinInit = false;
42
+
41
43
  export const AppBuilderSdkApi: AppBuilderSdkApiInterface = {
42
44
  customize: (customization: CustomizationApiInterface) => {
43
45
  SDKEvents.emit('addFpe', customization);
44
46
  },
45
47
  join: (roomid: string) =>
46
48
  new Promise((resolve, reject) => {
47
- SDKEvents.emit('joinMeetingWithPhrase', roomid, resolve, reject);
49
+ if (joinInit) {
50
+ console.log('[SDKEvents] Join listener emitted preemptive');
51
+ SDKEvents.emit('joinMeetingWithPhrase', roomid, resolve, reject);
52
+ }
53
+ SDKEvents.on('joinInit', () => {
54
+ if (!joinInit) {
55
+ console.log('[SDKEvents] Join listener emitted');
56
+ SDKEvents.emit('joinMeetingWithPhrase', roomid, resolve, reject);
57
+ joinInit = true;
58
+ }
59
+ });
48
60
  }),
49
61
  createCustomization: customize,
50
62
  on: (userEventName, cb) => {
@@ -86,6 +86,7 @@ const Create = () => {
86
86
  if (isWebInternal()) {
87
87
  document.title = $config.APP_NAME;
88
88
  }
89
+ console.log('[SDKEvents] Join listener registered');
89
90
  const unbind = SDKEvents.on(
90
91
  'joinMeetingWithPhrase',
91
92
  (phrase, resolve, reject) => {
@@ -99,6 +100,7 @@ const Create = () => {
99
100
  }
100
101
  },
101
102
  );
103
+ SDKEvents.emit('joinInit');
102
104
  return () => {
103
105
  unbind();
104
106
  };
@@ -49,20 +49,6 @@ export const ScreenshareConfigure = (props: {children: React.ReactNode}) => {
49
49
  currentLayoutRef.current.currentLayout = currentLayout;
50
50
  }, [currentLayout]);
51
51
 
52
- // useEffect(() => {
53
- // if (
54
- // lastJoinedUid &&
55
- // activeUids &&
56
- // activeUids.indexOf(lastJoinedUid) !== -1 &&
57
- // renderListRef.current.renderList[lastJoinedUid] &&
58
- // renderListRef.current.renderList[lastJoinedUid].type === 'screenshare' &&
59
- // isPinned.current !== lastJoinedUid
60
- // ) {
61
- // //set to pinned layout
62
- // //triggerChangeLayout(true, lastJoinedUid);
63
- // }
64
- // }, [lastJoinedUid, activeUids, renderListRef.current.renderList]);
65
-
66
52
  useEffect(() => {
67
53
  const data = filterObject(screenShareData, ([k, v]) => v?.isActive);
68
54
  if (data) {
@@ -70,19 +70,6 @@ export const ScreenshareConfigure = (props: {children: React.ReactNode}) => {
70
70
  * lastJoinedUid will be coming from the user joined event
71
71
  * cross check lastJoinedUid data with renderlist
72
72
  */
73
- // useEffect(() => {
74
- // if (
75
- // lastJoinedUid &&
76
- // activeUids &&
77
- // activeUids.indexOf(lastJoinedUid) !== -1 &&
78
- // renderListRef.current.renderList[lastJoinedUid] &&
79
- // renderListRef.current.renderList[lastJoinedUid].type === 'screenshare' &&
80
- // isPinned.current !== lastJoinedUid
81
- // ) {
82
- // //set to pinned layout
83
- // // triggerChangeLayout(true, lastJoinedUid);
84
- // }
85
- // }, [lastJoinedUid, activeUids, renderListRef.current.renderList]);
86
73
 
87
74
  useEffect(() => {
88
75
  const data = filterObject(screenShareData, ([k, v]) => v?.isActive);
@@ -19,6 +19,7 @@ import {createNanoEvents} from 'nanoevents';
19
19
  interface eventsMapInterface extends userEventsMapInterface {
20
20
  addFpe?: callBackType;
21
21
  addFpeInit?: () => void;
22
+ joinInit?: () => void;
22
23
  joinMeetingWithPhrase?: (
23
24
  phrase: string,
24
25
  resolve: () => void,