@multiplayer-app/session-recorder-react-native 0.0.1-beta.7 → 0.0.1-beta.9

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 (75) hide show
  1. package/app.plugin.js +42 -0
  2. package/docs/NATIVE_MODULE_SETUP.md +177 -0
  3. package/ios/SessionRecorderNative.podspec +5 -0
  4. package/package.json +10 -1
  5. package/plugin/package.json +20 -0
  6. package/plugin/src/index.js +42 -0
  7. package/android/src/main/AndroidManifest.xml +0 -2
  8. package/android/src/main/java/com/multiplayer/sessionrecorder/ScreenMaskingModule.kt +0 -202
  9. package/android/src/main/java/com/multiplayer/sessionrecorder/ScreenMaskingPackage.kt +0 -16
  10. package/android/src/main/java/com/multiplayer/sessionrecorder/SessionRecorderModule.kt +0 -202
  11. package/android/src/main/java/com/multiplayer/sessionrecorder/SessionRecorderPackage.kt +0 -16
  12. package/babel.config.js +0 -13
  13. package/docs/AUTO_METADATA_DETECTION.md +0 -108
  14. package/docs/TROUBLESHOOTING.md +0 -168
  15. package/ios/ScreenMasking.m +0 -12
  16. package/ios/ScreenMasking.podspec +0 -21
  17. package/ios/ScreenMasking.swift +0 -205
  18. package/ios/SessionRecorder.podspec +0 -21
  19. package/scripts/generate-app-metadata.js +0 -173
  20. package/src/components/GestureCaptureWrapper/GestureCaptureWrapper.tsx +0 -86
  21. package/src/components/GestureCaptureWrapper/index.ts +0 -1
  22. package/src/components/ScreenRecorderView/ScreenRecorderView.tsx +0 -72
  23. package/src/components/ScreenRecorderView/index.ts +0 -1
  24. package/src/components/SessionRecorderWidget/FinalPopover.tsx +0 -62
  25. package/src/components/SessionRecorderWidget/FloatingButton.tsx +0 -136
  26. package/src/components/SessionRecorderWidget/InitialPopover.tsx +0 -89
  27. package/src/components/SessionRecorderWidget/ModalContainer.tsx +0 -128
  28. package/src/components/SessionRecorderWidget/ModalHeader.tsx +0 -24
  29. package/src/components/SessionRecorderWidget/SessionRecorderWidget.tsx +0 -109
  30. package/src/components/SessionRecorderWidget/icons.tsx +0 -52
  31. package/src/components/SessionRecorderWidget/index.ts +0 -3
  32. package/src/components/SessionRecorderWidget/styles.ts +0 -150
  33. package/src/components/index.ts +0 -3
  34. package/src/config/constants.ts +0 -60
  35. package/src/config/defaults.ts +0 -83
  36. package/src/config/index.ts +0 -6
  37. package/src/config/masking.ts +0 -28
  38. package/src/config/session-recorder.ts +0 -55
  39. package/src/config/validators.ts +0 -31
  40. package/src/context/SessionRecorderContext.tsx +0 -53
  41. package/src/index.ts +0 -9
  42. package/src/native/ScreenMasking.ts +0 -34
  43. package/src/native/SessionRecorderNative.ts +0 -34
  44. package/src/otel/helpers.ts +0 -275
  45. package/src/otel/index.ts +0 -138
  46. package/src/otel/instrumentations/index.ts +0 -115
  47. package/src/patch/index.ts +0 -1
  48. package/src/patch/xhr.ts +0 -141
  49. package/src/recorder/eventExporter.ts +0 -141
  50. package/src/recorder/gestureRecorder.ts +0 -498
  51. package/src/recorder/index.ts +0 -179
  52. package/src/recorder/navigationTracker.ts +0 -449
  53. package/src/recorder/screenRecorder.ts +0 -527
  54. package/src/services/api.service.ts +0 -203
  55. package/src/services/screenMaskingService.ts +0 -118
  56. package/src/services/storage.service.ts +0 -199
  57. package/src/session-recorder.ts +0 -606
  58. package/src/types/expo.d.ts +0 -23
  59. package/src/types/index.ts +0 -28
  60. package/src/types/session-recorder.ts +0 -429
  61. package/src/types/session.ts +0 -65
  62. package/src/utils/app-metadata.ts +0 -31
  63. package/src/utils/index.ts +0 -8
  64. package/src/utils/logger.ts +0 -225
  65. package/src/utils/nativeModuleTest.ts +0 -60
  66. package/src/utils/platform.ts +0 -384
  67. package/src/utils/request-utils.ts +0 -61
  68. package/src/utils/rrweb-events.ts +0 -309
  69. package/src/utils/session.ts +0 -18
  70. package/src/utils/time.ts +0 -17
  71. package/src/utils/type-utils.ts +0 -75
  72. package/src/version.ts +0 -1
  73. package/tsconfig.json +0 -24
  74. /package/ios/{SessionRecorder.m → SessionRecorderNative.m} +0 -0
  75. /package/ios/{SessionRecorder.swift → SessionRecorderNative.swift} +0 -0
@@ -1,136 +0,0 @@
1
- import React, { useRef, useEffect, useMemo } from 'react'
2
- import { StyleSheet, Platform, Animated, PanResponder, View, Dimensions } from 'react-native'
3
- import { SessionState } from '../../types'
4
- import { StorageService } from '../../services/storage.service'
5
- import { RecordIcon, CapturingIcon, PausedIcon } from './icons'
6
-
7
- interface FloatingButtonProps {
8
- sessionState: SessionState | null
9
- onPress: () => void
10
- }
11
-
12
- const buttonSize = 52
13
- const rightOffset = 20
14
- const topOffset = Platform.OS === 'ios' ? 60 : 40
15
-
16
- const FloatingButton: React.FC<FloatingButtonProps> = ({ sessionState, onPress }) => {
17
- const position = useRef(new Animated.ValueXY({ x: 0, y: 0 })).current
18
- const lastPosition = useRef({ top: topOffset, right: rightOffset })
19
- const storageService = useRef(StorageService.getInstance()).current
20
-
21
- const screenBounds = useMemo(() => {
22
- const { width, height } = Dimensions.get('window')
23
-
24
- return {
25
- minTop: topOffset,
26
- maxTop: height - buttonSize,
27
- minRight: 0,
28
- maxRight: width - buttonSize
29
- }
30
- }, [])
31
-
32
- // Load saved position on component mount
33
- useEffect(() => {
34
- const savedPosition = storageService.getFloatingButtonPosition()
35
- if (savedPosition) {
36
- const { width } = Dimensions.get('window')
37
- const top = savedPosition.y
38
- const right = width - savedPosition.x - buttonSize
39
- lastPosition.current = { top, right }
40
- position.setValue({ x: right, y: top })
41
- } else {
42
- position.setValue({ x: lastPosition.current.right, y: lastPosition.current.top })
43
- }
44
- }, [])
45
-
46
- const panResponder = useRef(
47
- PanResponder.create({
48
- onStartShouldSetPanResponder: () => true,
49
- onMoveShouldSetPanResponder: (evt, gestureState) => {
50
- const distance = Math.sqrt(gestureState.dx * gestureState.dx + gestureState.dy * gestureState.dy)
51
- return distance > 5
52
- },
53
- onPanResponderGrant: () => {
54
- // Set the initial position for this gesture
55
- position.setValue({ x: lastPosition.current.right, y: lastPosition.current.top })
56
- },
57
- onPanResponderMove: (evt, gestureState) => {
58
- // Calculate new position based on gesture movement
59
- const newTop = lastPosition.current.top + gestureState.dy
60
- const newRight = lastPosition.current.right - gestureState.dx
61
-
62
- // Update position during drag
63
- position.setValue({ x: newRight, y: newTop })
64
- },
65
- onPanResponderRelease: (e, gestureState) => {
66
- // Check if this was actually a drag (significant movement)
67
- const distance = Math.sqrt(gestureState.dx * gestureState.dx + gestureState.dy * gestureState.dy)
68
-
69
- // If it was a tap (no significant movement), trigger onPress
70
- if (distance <= 5) {
71
- onPress()
72
- } else {
73
- // Calculate new position after dragging
74
- const newTop = lastPosition.current.top + gestureState.dy
75
- const newRight = lastPosition.current.right - gestureState.dx
76
-
77
- // Clamp to screen bounds
78
- const clampedTop = Math.max(screenBounds.minTop, Math.min(screenBounds.maxTop, newTop))
79
- const clampedRight = Math.max(screenBounds.minRight, Math.min(screenBounds.maxRight, newRight))
80
-
81
- // Update position
82
- lastPosition.current = { top: clampedTop, right: clampedRight }
83
- position.setValue({ x: clampedRight, y: clampedTop })
84
-
85
- // Convert back to x,y coordinates for storage
86
- const { width } = Dimensions.get('window')
87
- const storagePosition = {
88
- x: width - clampedRight - buttonSize,
89
- y: clampedTop
90
- }
91
-
92
- // Persist position to AsyncStorage (debounced)
93
- storageService.saveFloatingButtonPosition(storagePosition)
94
- }
95
- }
96
- })
97
- ).current
98
-
99
- // Memoized button icon and color for performance
100
- const content = useMemo(() => {
101
- switch (sessionState) {
102
- case SessionState.started:
103
- return { icon: <CapturingIcon size={28} color='white' />, color: '#FF4444' }
104
- case SessionState.paused:
105
- return { icon: <PausedIcon size={28} color='white' />, color: '#FFA500' }
106
- default:
107
- return { icon: <RecordIcon size={28} color='#718096' />, color: '#ffffff' }
108
- }
109
- }, [sessionState])
110
-
111
- return (
112
- <Animated.View style={[styles.draggableButton, { top: position.y, right: position.x }]} {...panResponder.panHandlers}>
113
- <View style={[styles.floatingButton, { backgroundColor: content.color }]}>{content.icon}</View>
114
- </Animated.View>
115
- )
116
- }
117
-
118
- const styles = StyleSheet.create({
119
- draggableButton: {
120
- position: 'absolute'
121
- },
122
- floatingButton: {
123
- elevation: 8,
124
- shadowRadius: 4,
125
- width: buttonSize,
126
- shadowColor: '#000',
127
- height: buttonSize,
128
- shadowOpacity: 0.25,
129
- alignItems: 'center',
130
- justifyContent: 'center',
131
- borderRadius: buttonSize / 2,
132
- shadowOffset: { width: 0, height: 2 }
133
- }
134
- })
135
-
136
- export default FloatingButton
@@ -1,89 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { View, Text, Pressable, Alert, Switch } from 'react-native'
3
- import { SessionType } from '@multiplayer-app/session-recorder-common'
4
- import { WidgetTextOverridesConfig } from '../../types'
5
- import { sharedStyles } from './styles'
6
- import ModalHeader from './ModalHeader'
7
-
8
- interface InitialPopoverProps {
9
- textOverrides: WidgetTextOverridesConfig
10
- showContinuousRecording: boolean
11
- onStartRecording: (sessionType: SessionType) => void
12
- onSaveContinuousSession: () => void
13
- onClose: () => void
14
- isSubmitting: boolean
15
- }
16
-
17
- const InitialPopover: React.FC<InitialPopoverProps> = ({
18
- textOverrides,
19
- showContinuousRecording,
20
- onStartRecording,
21
- onSaveContinuousSession,
22
- onClose,
23
- isSubmitting
24
- }) => {
25
- const [continuousRecording, setContinuousRecording] = useState(false)
26
-
27
- const handleStartRecording = async () => {
28
- try {
29
- const sessionType = continuousRecording ? SessionType.CONTINUOUS : SessionType.PLAIN
30
- onStartRecording(sessionType)
31
- } catch (error) {
32
- Alert.alert('Error', 'Failed to start recording')
33
- }
34
- }
35
-
36
- return (
37
- <View style={sharedStyles.popoverContent}>
38
- <ModalHeader />
39
-
40
- <View style={sharedStyles.popoverBody}>
41
- {showContinuousRecording && (
42
- <View style={sharedStyles.continuousRecordingSection}>
43
- <Text style={sharedStyles.continuousRecordingLabel}>{textOverrides.continuousRecordingLabel}</Text>
44
- <Switch
45
- value={continuousRecording}
46
- onValueChange={setContinuousRecording}
47
- trackColor={{ false: '#767577', true: '#81b0ff' }}
48
- thumbColor={continuousRecording ? '#007AFF' : '#f4f3f4'}
49
- />
50
- </View>
51
- )}
52
-
53
- <Text style={sharedStyles.title}>
54
- {showContinuousRecording ? textOverrides.initialTitleWithContinuous : textOverrides.initialTitleWithoutContinuous}
55
- </Text>
56
-
57
- <Text style={sharedStyles.description}>
58
- {showContinuousRecording
59
- ? textOverrides.initialDescriptionWithContinuous
60
- : textOverrides.initialDescriptionWithoutContinuous}
61
- </Text>
62
-
63
- <View style={sharedStyles.popoverFooter}>
64
- <Pressable style={[sharedStyles.actionButton, sharedStyles.startButton]} onPress={handleStartRecording}>
65
- <Text style={sharedStyles.actionButtonText}>{textOverrides.startRecordingButtonText}</Text>
66
- </Pressable>
67
- </View>
68
-
69
- {showContinuousRecording && continuousRecording && (
70
- <View style={sharedStyles.continuousOverlay}>
71
- <View style={sharedStyles.continuousOverlayContent}>
72
- <Text style={sharedStyles.continuousOverlayTitle}>🔴 {textOverrides.continuousOverlayTitle}</Text>
73
- <Text style={sharedStyles.continuousOverlayDescription}>{textOverrides.continuousOverlayDescription}</Text>
74
- </View>
75
- <Pressable
76
- style={[sharedStyles.actionButton, sharedStyles.saveButton]}
77
- onPress={onSaveContinuousSession}
78
- disabled={isSubmitting}
79
- >
80
- <Text style={sharedStyles.actionButtonText}>{textOverrides.saveLastSnapshotButtonText}</Text>
81
- </Pressable>
82
- </View>
83
- )}
84
- </View>
85
- </View>
86
- )
87
- }
88
-
89
- export default InitialPopover
@@ -1,128 +0,0 @@
1
- import React, { useEffect, useRef, useState } from 'react'
2
- import { Animated, Pressable, StyleSheet, Dimensions, Modal, SafeAreaView } from 'react-native'
3
- import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler'
4
-
5
- const { height: SCREEN_HEIGHT } = Dimensions.get('window')
6
- const MODAL_HEIGHT = SCREEN_HEIGHT * 0.7
7
-
8
- interface ModalContainerProps {
9
- isVisible: boolean
10
- onClose: () => void
11
- children: React.ReactNode
12
- }
13
-
14
- const ModalContainer: React.FC<ModalContainerProps> = ({ isVisible, onClose, children }) => {
15
- const fadeAnim = useRef(new Animated.Value(0)).current
16
- const translateY = useRef(new Animated.Value(0)).current
17
- const [animatedFinished, setAnimatedFinished] = useState(false)
18
-
19
- const SWIPE_THRESHOLD = 100 // Distance to trigger close
20
- const MAX_SWIPE_DISTANCE = 200 // Maximum swipe distance
21
-
22
- const animateClose = () => {
23
- Animated.parallel([
24
- Animated.timing(fadeAnim, {
25
- toValue: 0,
26
- duration: 250,
27
- useNativeDriver: true
28
- }),
29
- Animated.timing(translateY, {
30
- toValue: MODAL_HEIGHT,
31
- duration: 250,
32
- useNativeDriver: true
33
- })
34
- ]).start(() => {
35
- onClose()
36
- })
37
- }
38
-
39
- useEffect(() => {
40
- if (isVisible) {
41
- // Start from bottom and animate to position
42
- translateY.setValue(MODAL_HEIGHT)
43
- Animated.parallel([
44
- Animated.timing(fadeAnim, {
45
- toValue: 1,
46
- duration: 300,
47
- useNativeDriver: true
48
- }),
49
- Animated.timing(translateY, {
50
- toValue: 0,
51
- duration: 300,
52
- useNativeDriver: true
53
- })
54
- ]).start()
55
- }
56
- }, [isVisible, fadeAnim, translateY])
57
-
58
- const panGesture = Gesture.Pan()
59
- .onUpdate((event) => {
60
- translateY.setValue(event.translationY)
61
- })
62
- .onEnd((event) => {
63
- const { translationY, velocityY } = event
64
-
65
- // If swiped down with sufficient distance or velocity, close modal
66
- if (translationY > SWIPE_THRESHOLD || velocityY > 500) {
67
- animateClose()
68
- } else {
69
- // Snap back to original position
70
- Animated.spring(translateY, {
71
- toValue: 0,
72
- useNativeDriver: true,
73
- tension: 100,
74
- friction: 8
75
- }).start()
76
- }
77
- })
78
- .activeOffsetY(10)
79
- .runOnJS(true)
80
-
81
- return (
82
- <>
83
- {isVisible && (
84
- <Animated.View style={{ ...styles.backdrop, opacity: fadeAnim }}>
85
- <Pressable style={styles.backdropPressable} onPress={animateClose} />
86
- </Animated.View>
87
- )}
88
- <Modal visible={isVisible} transparent animationType='none' onRequestClose={onClose}>
89
- <GestureHandlerRootView style={{ flex: 1 }}>
90
- <GestureDetector gesture={panGesture}>
91
- <Animated.View style={[styles.modal, { transform: [{ translateY }] }]}>
92
- <SafeAreaView style={styles.safeArea}>{children}</SafeAreaView>
93
- </Animated.View>
94
- </GestureDetector>
95
- </GestureHandlerRootView>
96
- </Modal>
97
- </>
98
- )
99
- }
100
-
101
- const styles = StyleSheet.create({
102
- backdrop: {
103
- position: 'absolute',
104
- top: 0,
105
- left: 0,
106
- right: 0,
107
- bottom: 0,
108
- backgroundColor: 'rgba(0, 0, 0, 0.5)'
109
- },
110
- backdropPressable: {
111
- flex: 1
112
- },
113
- safeArea: {
114
- flex: 1
115
- },
116
- modal: {
117
- position: 'absolute',
118
- bottom: 0,
119
- left: 0,
120
- right: 0,
121
- height: 'auto',
122
- backgroundColor: 'white',
123
- borderTopLeftRadius: 20,
124
- borderTopRightRadius: 20
125
- }
126
- })
127
-
128
- export default ModalContainer
@@ -1,24 +0,0 @@
1
- import React from 'react'
2
- import { View, Pressable, Linking } from 'react-native'
3
- import { sharedStyles } from './styles'
4
- import { LogoIcon } from './icons'
5
-
6
- interface ModalHeaderProps {
7
- children?: React.ReactNode
8
- }
9
-
10
- const ModalHeader: React.FC<ModalHeaderProps> = ({ children }) => {
11
- return (
12
- <View style={sharedStyles.popoverHeader}>
13
- <View style={sharedStyles.modalHandle} />
14
- <View style={sharedStyles.popoverHeaderContent}>
15
- <Pressable onPress={() => Linking.openURL('https://www.multiplayer.app')}>
16
- <LogoIcon size={42} />
17
- </Pressable>
18
- {children}
19
- </View>
20
- </View>
21
- )
22
- }
23
-
24
- export default ModalHeader
@@ -1,109 +0,0 @@
1
- import React, { useMemo, useState } from 'react'
2
- import { Alert } from 'react-native'
3
- import { SessionState } from '../../types'
4
- import { SessionType } from '@multiplayer-app/session-recorder-common'
5
- import { useSessionRecorder } from '../../context/SessionRecorderContext'
6
- import FloatingButton from './FloatingButton'
7
- import ModalContainer from './ModalContainer'
8
- import InitialPopover from './InitialPopover'
9
- import FinalPopover from './FinalPopover'
10
-
11
- interface SessionRecorderWidgetProps {}
12
-
13
- const SessionRecorderWidget: React.FC<SessionRecorderWidgetProps> = () => {
14
- const { sessionState, instance } = useSessionRecorder()
15
- const [isModalVisible, setIsModalVisible] = useState(false)
16
- const [isSubmitting, setIsSubmitting] = useState(false)
17
-
18
- // Get configuration from instance
19
- const config = instance.config
20
- const textOverrides = config.widgetTextOverrides
21
- const showContinuousRecording = config.showContinuousRecording
22
-
23
- const openModal = () => {
24
- setIsModalVisible(true)
25
- }
26
-
27
- const closeModal = () => {
28
- setIsModalVisible(false)
29
- }
30
-
31
- const onStartRecording = async (sessionType: SessionType) => {
32
- try {
33
- instance.start(sessionType)
34
- closeModal()
35
- } catch (error) {
36
- Alert.alert('Error', 'Failed to start recording')
37
- }
38
- }
39
-
40
- const onStopRecording = async (comment: string) => {
41
- try {
42
- setIsSubmitting(true)
43
- await instance.stop(comment)
44
- closeModal()
45
- Alert.alert('Success', 'Session saved successfully')
46
- } catch (error) {
47
- Alert.alert('Error', 'Failed to save session')
48
- } finally {
49
- setIsSubmitting(false)
50
- }
51
- }
52
-
53
- const onCancelSession = async () => {
54
- try {
55
- await instance.cancel()
56
- closeModal()
57
- } catch (error) {
58
- Alert.alert('Error', 'Failed to cancel session')
59
- }
60
- }
61
-
62
- const onSaveContinuousSession = async () => {
63
- try {
64
- setIsSubmitting(true)
65
- await instance.save()
66
- closeModal()
67
- Alert.alert('Success', 'Continuous session saved successfully')
68
- } catch (error) {
69
- Alert.alert('Error', 'Failed to save continuous session')
70
- } finally {
71
- setIsSubmitting(false)
72
- }
73
- }
74
-
75
- const renderModalContent = useMemo(() => {
76
- if (sessionState === SessionState.started || sessionState === SessionState.paused) {
77
- return (
78
- <FinalPopover
79
- isSubmitting={isSubmitting}
80
- textOverrides={textOverrides}
81
- onClose={closeModal}
82
- onStopRecording={onStopRecording}
83
- onCancelSession={onCancelSession}
84
- />
85
- )
86
- }
87
- return (
88
- <InitialPopover
89
- isSubmitting={isSubmitting}
90
- textOverrides={textOverrides}
91
- showContinuousRecording={showContinuousRecording}
92
- onClose={closeModal}
93
- onStartRecording={onStartRecording}
94
- onSaveContinuousSession={onSaveContinuousSession}
95
- />
96
- )
97
- }, [sessionState, isSubmitting, textOverrides, showContinuousRecording])
98
-
99
- return (
100
- <>
101
- <FloatingButton sessionState={sessionState} onPress={openModal} />
102
- <ModalContainer isVisible={isModalVisible} onClose={closeModal}>
103
- {renderModalContent}
104
- </ModalContainer>
105
- </>
106
- )
107
- }
108
-
109
- export default SessionRecorderWidget
@@ -1,52 +0,0 @@
1
- import React from 'react'
2
- import Svg, { Path, Circle } from 'react-native-svg'
3
-
4
- interface IconProps {
5
- size?: number
6
- color?: string
7
- }
8
-
9
- export const RecordIcon: React.FC<IconProps> = ({ size = 19, color = 'white' }) => (
10
- <Svg width={size} height={size} viewBox='0 0 19 19' fill='none'>
11
- <Path
12
- fillRule='evenodd'
13
- clipRule='evenodd'
14
- d='M6.68926 5.30356C6.56568 5.38721 6.39976 5.37561 6.29459 5.26937L3.58782 2.53477C3.46424 2.40992 3.47196 2.20492 3.60862 2.09483C5.2319 0.786982 7.28494 0 9.51866 0C11.7535 0 13.8066 0.787042 15.4308 2.09586C15.5674 2.20596 15.5752 2.41091 15.4516 2.53577L12.7468 5.26931C12.6416 5.37558 12.4757 5.38719 12.3521 5.30353C11.5393 4.75345 10.571 4.42281 9.52066 4.42281C8.47036 4.42281 7.50203 4.75346 6.68926 5.30356ZM16.4926 3.4303C16.6163 3.30527 16.8197 3.31303 16.9288 3.45121C18.2224 5.08933 19.0001 7.15932 19.0001 9.4116C19.0001 11.6671 18.2204 13.7392 16.9238 15.3785C16.8147 15.5165 16.6114 15.5242 16.4877 15.3992L13.7872 12.6701C13.682 12.5638 13.6708 12.3962 13.7538 12.2716C14.3006 11.451 14.6291 10.4727 14.6291 9.4116C14.6291 8.35454 14.3016 7.37925 13.756 6.56083C13.6728 6.43616 13.6841 6.26857 13.7893 6.16224L16.4926 3.4303ZM5.21676 12.6712C5.322 12.5649 5.3333 12.3974 5.2502 12.2727C4.70331 11.4522 4.374 10.4737 4.374 9.41184C4.374 8.35469 4.70232 7.37949 5.24808 6.56106C5.33123 6.43637 5.31996 6.26872 5.2147 6.16241L2.50855 3.4293C2.38482 3.30434 2.18146 3.31213 2.07236 3.45028C0.77864 5.08841 0 7.15845 0 9.41184C0 11.6684 0.78066 13.7406 2.07831 15.3799C2.18749 15.5178 2.39066 15.5255 2.51429 15.4006L5.21676 12.6712ZM12.3323 13.707C12.4559 13.6231 12.6221 13.6346 12.7273 13.741L15.4277 16.4691C15.5513 16.594 15.5435 16.7991 15.4068 16.9091C13.7837 18.215 11.7327 19 9.49998 19C7.2693 19 5.21837 18.2159 3.59619 16.9102C3.45943 16.8001 3.45169 16.595 3.57533 16.4702L6.27769 13.7409C6.38296 13.6346 6.54906 13.6231 6.67267 13.707C7.48459 14.2577 8.45278 14.5883 9.50198 14.5883C10.5522 14.5883 11.5204 14.2578 12.3323 13.707Z'
15
- fill={color}
16
- />
17
- </Svg>
18
- )
19
-
20
- export const CapturingIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
21
- <Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
22
- <Circle cx='12' cy='12' r='4' fill={color} />
23
- <Circle cx='12' cy='12' r='7.5' stroke={color} strokeWidth='1' />
24
- <Circle cx='12' cy='12' r='11.5' stroke={color} strokeWidth='1' opacity='0.2' />
25
- </Svg>
26
- )
27
-
28
- export const PausedIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
29
- <Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
30
- <Path d='M8 5V19M16 5V19' stroke={color} strokeWidth='2' strokeLinecap='round' strokeLinejoin='round' />
31
- </Svg>
32
- )
33
-
34
- export const CheckmarkIcon: React.FC<IconProps> = ({ size = 24, color = 'white' }) => (
35
- <Svg width={size} height={size} viewBox='0 0 24 24' fill='none'>
36
- <Path
37
- fillRule='evenodd'
38
- clipRule='evenodd'
39
- d='M20.0481 6.35147C20.5168 6.8201 20.5168 7.5799 20.0481 8.04853L10.4481 17.6485C9.97951 18.1172 9.21971 18.1172 8.75108 17.6485L3.95108 12.8485C3.48245 12.3799 3.48245 11.6201 3.95108 11.1515C4.41971 10.6828 5.17951 10.6828 5.64814 11.1515L9.59961 15.1029L18.3511 6.35147C18.8197 5.88284 19.5795 5.88284 20.0481 6.35147Z'
40
- fill={color}
41
- />
42
- </Svg>
43
- )
44
-
45
- export const LogoIcon: React.FC<IconProps> = ({ size = 30, color = '#473CFB' }) => (
46
- <Svg width={size} height={size * 0.8} viewBox='0 0 30 24' fill='none'>
47
- <Path
48
- d='M28.8324 8.83643L23.5495 6.85854L21.4856 6.08553L23.6001 0.4375L15 3.65769L6.39963 0.4375L8.51441 6.08585L6.45046 6.85885L1.16757 8.83674L0.625 9.03974L9.10095 12.0981C10.0891 12.4548 10.9201 13.1265 11.4758 13.9952C11.6632 14.2883 11.8194 14.6036 11.9398 14.9369L15 23.4076L18.0602 14.9369C18.1806 14.6036 18.3368 14.288 18.5242 13.9952C19.0802 13.1265 19.9112 12.4545 20.8991 12.0981L29.375 9.03974L28.8324 8.83674V8.83643ZM19.779 10.6434C18.2872 11.1816 17.1126 12.3563 16.5744 13.848L15.014 18.173L11.5182 8.83643L10.7776 6.85854L10.2456 5.43757L9.57367 3.64272L12.3068 4.66612L18.1631 6.85885L20.8233 7.85481L23.4457 8.83674L24.104 9.08308L19.779 10.6438V10.6434Z'
49
- fill={color}
50
- />
51
- </Svg>
52
- )
@@ -1,3 +0,0 @@
1
- import SessionRecorderWidget from "./SessionRecorderWidget";
2
-
3
- export default SessionRecorderWidget;
@@ -1,150 +0,0 @@
1
- import { StyleSheet } from 'react-native'
2
-
3
- export const sharedStyles = StyleSheet.create({
4
- // Popover styles
5
- popoverContent: {
6
- flex: 1,
7
- paddingHorizontal: 0
8
- },
9
- popoverHeader: {
10
- flexDirection: 'column',
11
- paddingBottom: 8,
12
- paddingHorizontal: 16,
13
- borderTopLeftRadius: 20,
14
- borderTopRightRadius: 20,
15
- backgroundColor: '#e3ecfd',
16
- shadowColor: '#e3ecfd',
17
- shadowOffset: { width: 0, height: 10, },
18
- shadowOpacity: 1,
19
- shadowRadius: 5,
20
- elevation: 3,
21
- },
22
- modalHandle: {
23
- marginTop: 8,
24
- marginBottom: 16,
25
- width: 40,
26
- height: 4,
27
- backgroundColor: '#D1D5DB',
28
- borderRadius: 2,
29
- alignSelf: 'center',
30
- },
31
- popoverHeaderContent: {
32
- flexDirection: 'row',
33
- justifyContent: 'space-between',
34
- alignItems: 'flex-start',
35
- },
36
-
37
-
38
- cancelButton: {
39
- paddingHorizontal: 12,
40
- paddingVertical: 6,
41
- borderRadius: 6,
42
- backgroundColor: '#F3F4F6'
43
- },
44
- cancelButtonText: {
45
- color: '#374151',
46
- fontSize: 14,
47
- fontWeight: '500'
48
- },
49
- popoverBody: {
50
- flex: 1,
51
- padding: 16,
52
- paddingTop: 32,
53
- },
54
- title: {
55
- fontSize: 18,
56
- fontWeight: '600',
57
- color: '#2d3748',
58
- marginBottom: 12
59
- },
60
- description: {
61
- fontSize: 14,
62
- color: '#718096',
63
- marginBottom: 24
64
- },
65
- popoverFooter: {
66
- marginTop: 'auto',
67
- paddingTop: 48
68
- },
69
- actionButton: {
70
- paddingVertical: 16,
71
- paddingHorizontal: 24,
72
- borderRadius: 12,
73
- alignItems: 'center'
74
- },
75
- actionButtonText: {
76
- color: 'white',
77
- fontSize: 16,
78
- fontWeight: '500'
79
- },
80
-
81
- // Continuous recording styles
82
- continuousRecordingSection: {
83
- flexDirection: 'row',
84
- justifyContent: 'space-between',
85
- alignItems: 'center',
86
- marginBottom: 20,
87
- paddingVertical: 12,
88
- paddingHorizontal: 16,
89
- borderWidth: 1,
90
- borderColor: '#e1e8f1',
91
- backgroundColor: '#fff',
92
- borderRadius: 12,
93
- shadowColor: '#000',
94
- shadowOffset: { width: 0, height: 2 },
95
- shadowOpacity: 0.06,
96
- shadowRadius: 3,
97
- elevation: 3,
98
- },
99
- continuousRecordingLabel: {
100
- fontSize: 16,
101
- fontWeight: '500',
102
- color: '#374151'
103
- },
104
- continuousOverlay: {
105
- marginTop: 20,
106
- padding: 16,
107
- backgroundColor: '#FEF3C7',
108
- borderRadius: 8,
109
- borderWidth: 1,
110
- borderColor: '#F59E0B'
111
- },
112
- continuousOverlayContent: {
113
- marginBottom: 16
114
- },
115
- continuousOverlayTitle: {
116
- fontSize: 18,
117
- fontWeight: 'bold',
118
- color: '#92400E',
119
- marginBottom: 8
120
- },
121
- continuousOverlayDescription: {
122
- fontSize: 14,
123
- color: '#92400E',
124
- lineHeight: 20
125
- },
126
-
127
- // Comment input styles
128
- commentInput: {
129
- borderWidth: 1,
130
- borderColor: '#D1D5DB',
131
- borderRadius: 8,
132
- padding: 12,
133
- fontSize: 16,
134
- color: '#374151',
135
- backgroundColor: '#F9FAFB',
136
- marginBottom: 24,
137
- minHeight: 80
138
- },
139
-
140
- // Button color variants
141
- startButton: {
142
- backgroundColor: '#473cfb'
143
- },
144
- stopButton: {
145
- backgroundColor: '#473cfb'
146
- },
147
- saveButton: {
148
- backgroundColor: '#473cfb'
149
- }
150
- })