crowdplaysdk 0.5.1 → 0.5.2

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Drop-in consent screen. Shows CrowdPlay's locked consent wording (fetched from
3
3
  * the native SDK so it can never drift from what the manifest records), a link
4
- * to the full CrowdPlay Terms of Use and Privacy Notice, a switch, and a
4
+ * to the full CrowdPlay Terms of Use and Privacy Policy, a switch, and a
5
5
  * continue button that only enables once the participant agrees. Yields the
6
6
  * ConsentGrant that join() requires.
7
7
  *
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Drop-in consent screen. Shows CrowdPlay's locked consent wording (fetched from
4
4
  * the native SDK so it can never drift from what the manifest records), a link
5
- * to the full CrowdPlay Terms of Use and Privacy Notice, a switch, and a
5
+ * to the full CrowdPlay Terms of Use and Privacy Policy, a switch, and a
6
6
  * continue button that only enables once the participant agrees. Yields the
7
7
  * ConsentGrant that join() requires.
8
8
  *
@@ -70,21 +70,17 @@ function CrowdPlayConsentScreen({ onConsent, style }) {
70
70
  };
71
71
  }, []);
72
72
  return (<react_native_1.View style={[styles.container, style]}>
73
- <react_native_1.Text style={styles.title}>Recording consent</react_native_1.Text>
74
- {text === null ? (<react_native_1.ActivityIndicator />) : (<react_native_1.Text style={styles.body}>{text}</react_native_1.Text>)}
73
+ <react_native_1.Text style={styles.title}>Before you join</react_native_1.Text>
75
74
  <react_native_1.Pressable accessibilityRole="link" onPress={() => void react_native_1.Linking.openURL(index_1.CROWDPLAY_TERMS_URL)}>
76
- <react_native_1.Text style={styles.link}>Read the Terms of Use and Privacy Notice</react_native_1.Text>
75
+ <react_native_1.Text style={styles.link}>Read the Terms of Use and Privacy Policy</react_native_1.Text>
77
76
  </react_native_1.Pressable>
78
77
  <react_native_1.View style={styles.row}>
79
78
  <react_native_1.Switch value={agreed} onValueChange={(value) => {
80
79
  setAgreed(value);
81
80
  setAgreedAtMs(value ? Date.now() : null);
82
81
  }}/>
83
- <react_native_1.Text style={styles.agree}>I have read and agree to the CrowdPlay Terms of Use and Privacy Notice.</react_native_1.Text>
82
+ {text === null ? <react_native_1.ActivityIndicator /> : <react_native_1.Text style={styles.agree}>{text}</react_native_1.Text>}
84
83
  </react_native_1.View>
85
- <react_native_1.Text style={styles.note}>
86
- Recording starts automatically when you join, and ends when you leave.
87
- </react_native_1.Text>
88
84
  <react_native_1.Pressable accessibilityRole="button" disabled={!agreed || agreedAtMs === null} onPress={() => {
89
85
  if (agreedAtMs !== null)
90
86
  onConsent({ grantedAtMs: agreedAtMs });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crowdplaysdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "CrowdPlay lossless conversation capture for React Native (iOS). Studio-grade per-participant recording during live video calls, delivered to CrowdPlay automatically.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Drop-in consent screen. Shows CrowdPlay's locked consent wording (fetched from
3
3
  * the native SDK so it can never drift from what the manifest records), a link
4
- * to the full CrowdPlay Terms of Use and Privacy Notice, a switch, and a
4
+ * to the full CrowdPlay Terms of Use and Privacy Policy, a switch, and a
5
5
  * continue button that only enables once the participant agrees. Yields the
6
6
  * ConsentGrant that join() requires.
7
7
  *
@@ -43,14 +43,9 @@ export function CrowdPlayConsentScreen({ onConsent, style }: CrowdPlayConsentScr
43
43
 
44
44
  return (
45
45
  <View style={[styles.container, style]}>
46
- <Text style={styles.title}>Recording consent</Text>
47
- {text === null ? (
48
- <ActivityIndicator />
49
- ) : (
50
- <Text style={styles.body}>{text}</Text>
51
- )}
46
+ <Text style={styles.title}>Before you join</Text>
52
47
  <Pressable accessibilityRole="link" onPress={() => void Linking.openURL(CROWDPLAY_TERMS_URL)}>
53
- <Text style={styles.link}>Read the Terms of Use and Privacy Notice</Text>
48
+ <Text style={styles.link}>Read the Terms of Use and Privacy Policy</Text>
54
49
  </Pressable>
55
50
  <View style={styles.row}>
56
51
  <Switch
@@ -60,11 +55,8 @@ export function CrowdPlayConsentScreen({ onConsent, style }: CrowdPlayConsentScr
60
55
  setAgreedAtMs(value ? Date.now() : null);
61
56
  }}
62
57
  />
63
- <Text style={styles.agree}>I have read and agree to the CrowdPlay Terms of Use and Privacy Notice.</Text>
58
+ {text === null ? <ActivityIndicator /> : <Text style={styles.agree}>{text}</Text>}
64
59
  </View>
65
- <Text style={styles.note}>
66
- Recording starts automatically when you join, and ends when you leave.
67
- </Text>
68
60
  <Pressable
69
61
  accessibilityRole="button"
70
62
  disabled={!agreed || agreedAtMs === null}