@oxyhq/services 6.9.4 → 6.9.5

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 (71) hide show
  1. package/lib/commonjs/ui/client.js +0 -7
  2. package/lib/commonjs/ui/client.js.map +1 -1
  3. package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -1
  4. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
  5. package/lib/commonjs/ui/components/types.js +4 -0
  6. package/lib/commonjs/ui/screens/AppInfoScreen.js +66 -60
  7. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  8. package/lib/commonjs/ui/screens/FileManagementScreen.js +139 -79
  9. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  10. package/lib/commonjs/ui/screens/SessionManagementScreen.js +39 -29
  11. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  12. package/lib/module/ui/client.js +0 -1
  13. package/lib/module/ui/client.js.map +1 -1
  14. package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
  15. package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
  16. package/lib/module/ui/components/types.js +2 -0
  17. package/lib/module/ui/screens/AppInfoScreen.js +66 -60
  18. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  19. package/lib/module/ui/screens/FileManagementScreen.js +139 -79
  20. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  21. package/lib/module/ui/screens/SessionManagementScreen.js +39 -29
  22. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  23. package/lib/typescript/commonjs/ui/client.d.ts +0 -1
  24. package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
  25. package/lib/typescript/commonjs/ui/components/types.d.ts +18 -17
  26. package/lib/typescript/commonjs/ui/components/types.d.ts.map +1 -1
  27. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  28. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  30. package/lib/typescript/module/ui/client.d.ts +0 -1
  31. package/lib/typescript/module/ui/client.d.ts.map +1 -1
  32. package/lib/typescript/module/ui/components/types.d.ts +18 -17
  33. package/lib/typescript/module/ui/components/types.d.ts.map +1 -1
  34. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  35. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  36. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/ui/client.ts +0 -1
  39. package/src/ui/components/feedback/FormInput.tsx +1 -1
  40. package/src/ui/components/icon/OxyIcon.tsx +1 -1
  41. package/src/ui/components/types.tsx +19 -17
  42. package/src/ui/screens/AppInfoScreen.tsx +63 -61
  43. package/src/ui/screens/FileManagementScreen.tsx +130 -121
  44. package/src/ui/screens/SessionManagementScreen.tsx +30 -28
  45. package/lib/commonjs/ui/components/AnimationExample.js +0 -213
  46. package/lib/commonjs/ui/components/AnimationExample.js.map +0 -1
  47. package/lib/commonjs/ui/components/ErrorBoundary.js +0 -145
  48. package/lib/commonjs/ui/components/ErrorBoundary.js.map +0 -1
  49. package/lib/commonjs/ui/components/WebOxyProvider.js +0 -106
  50. package/lib/commonjs/ui/components/WebOxyProvider.js.map +0 -1
  51. package/lib/module/ui/components/AnimationExample.js +0 -209
  52. package/lib/module/ui/components/AnimationExample.js.map +0 -1
  53. package/lib/module/ui/components/ErrorBoundary.js +0 -139
  54. package/lib/module/ui/components/ErrorBoundary.js.map +0 -1
  55. package/lib/module/ui/components/WebOxyProvider.js +0 -102
  56. package/lib/module/ui/components/WebOxyProvider.js.map +0 -1
  57. package/lib/typescript/commonjs/ui/components/AnimationExample.d.ts +0 -4
  58. package/lib/typescript/commonjs/ui/components/AnimationExample.d.ts.map +0 -1
  59. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +0 -31
  60. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +0 -1
  61. package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts +0 -52
  62. package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts.map +0 -1
  63. package/lib/typescript/module/ui/components/AnimationExample.d.ts +0 -4
  64. package/lib/typescript/module/ui/components/AnimationExample.d.ts.map +0 -1
  65. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +0 -31
  66. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +0 -1
  67. package/lib/typescript/module/ui/components/WebOxyProvider.d.ts +0 -52
  68. package/lib/typescript/module/ui/components/WebOxyProvider.d.ts.map +0 -1
  69. package/src/ui/components/AnimationExample.tsx +0 -195
  70. package/src/ui/components/ErrorBoundary.tsx +0 -154
  71. package/src/ui/components/WebOxyProvider.tsx +0 -117
@@ -1,106 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = require("react");
8
- var _OxyContext = require("../context/OxyContext.js");
9
- var _reactQuery = require("@tanstack/react-query");
10
- var _queryClient = require("../hooks/queryClient.js");
11
- var _storageHelpers = require("../utils/storageHelpers.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- /**
14
- * WebOxyProvider - Lightweight provider for pure React/Next.js apps
15
- *
16
- * Use this provider for web apps that DON'T use Expo/React Native.
17
- * For Expo apps (native + web), use `OxyProvider` instead - it works on all platforms.
18
- *
19
- * Features:
20
- * - Automatic cross-domain SSO via FedCM (Chrome 108+, Safari 16.4+, Edge 108+)
21
- * - No React Native dependencies
22
- * - Session management
23
- * - All useOxy/useAuth functionality
24
- *
25
- * Usage:
26
- * ```tsx
27
- * // For pure React/Next.js apps (no Expo):
28
- * import { WebOxyProvider, useAuth } from '@oxyhq/services';
29
- *
30
- * function App() {
31
- * return (
32
- * <WebOxyProvider baseURL="https://api.oxy.so">
33
- * <YourApp />
34
- * </WebOxyProvider>
35
- * );
36
- * }
37
- *
38
- * // For Expo apps (native + web), use OxyProvider instead:
39
- * import { OxyProvider, useAuth } from '@oxyhq/services';
40
- * ```
41
- */
42
-
43
- /**
44
- * OxyProvider for web applications
45
- *
46
- * Features:
47
- * - Automatic cross-domain SSO via FedCM (browser-native identity API)
48
- * - Works across different TLDs (alia.onl, mention.earth, homiio.com, etc.)
49
- * - Session persistence in localStorage
50
- * - TanStack Query for data fetching
51
- * - No React Native dependencies
52
- */
53
- const WebOxyProvider = ({
54
- children,
55
- baseURL,
56
- authWebUrl,
57
- onAuthStateChange,
58
- storageKeyPrefix,
59
- queryClient: providedQueryClient
60
- }) => {
61
- const storageRef = (0, _react.useRef)(null);
62
- const queryClientRef = (0, _react.useRef)(null);
63
- const [queryClient, setQueryClient] = (0, _react.useState)(null);
64
- (0, _react.useEffect)(() => {
65
- if (providedQueryClient) {
66
- queryClientRef.current = providedQueryClient;
67
- setQueryClient(providedQueryClient);
68
- return;
69
- }
70
- let mounted = true;
71
- (0, _storageHelpers.createPlatformStorage)().then(storage => {
72
- if (mounted && !queryClientRef.current) {
73
- storageRef.current = storage;
74
- const client = (0, _queryClient.createQueryClient)(storage);
75
- queryClientRef.current = client;
76
- setQueryClient(client);
77
- }
78
- }).catch(() => {
79
- if (mounted && !queryClientRef.current) {
80
- const client = (0, _queryClient.createQueryClient)(null);
81
- queryClientRef.current = client;
82
- setQueryClient(client);
83
- }
84
- });
85
- return () => {
86
- mounted = false;
87
- };
88
- }, [providedQueryClient]);
89
-
90
- // Wait for query client to be ready
91
- if (!queryClient) {
92
- return null;
93
- }
94
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactQuery.QueryClientProvider, {
95
- client: queryClient,
96
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyContext.OxyContextProvider, {
97
- baseURL: baseURL,
98
- authWebUrl: authWebUrl,
99
- storageKeyPrefix: storageKeyPrefix,
100
- onAuthStateChange: onAuthStateChange,
101
- children: children
102
- })
103
- });
104
- };
105
- var _default = exports.default = WebOxyProvider;
106
- //# sourceMappingURL=WebOxyProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_OxyContext","_reactQuery","_queryClient","_storageHelpers","_jsxRuntime","WebOxyProvider","children","baseURL","authWebUrl","onAuthStateChange","storageKeyPrefix","queryClient","providedQueryClient","storageRef","useRef","queryClientRef","setQueryClient","useState","useEffect","current","mounted","createPlatformStorage","then","storage","client","createQueryClient","catch","jsx","QueryClientProvider","OxyContextProvider","_default","exports","default"],"sourceRoot":"../../../../src","sources":["ui/components/WebOxyProvider.tsx"],"mappings":";;;;;;AA8BA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AAAuF,IAAAK,WAAA,GAAAL,OAAA;AAlCvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMM,cAAuC,GAAGA,CAAC;EAC/CC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,iBAAiB;EACjBC,gBAAgB;EAChBC,WAAW,EAAEC;AACf,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAG,IAAAC,aAAM,EAA0B,IAAI,CAAC;EACxD,MAAMC,cAAc,GAAG,IAAAD,aAAM,EAA8C,IAAI,CAAC;EAChF,MAAM,CAACH,WAAW,EAAEK,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAA8C,IAAI,CAAC;EAEjG,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIN,mBAAmB,EAAE;MACvBG,cAAc,CAACI,OAAO,GAAGP,mBAAmB;MAC5CI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- "use strict";
2
-
3
- import { useState } from 'react';
4
- import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
5
- import Animated, { useSharedValue, useAnimatedStyle, withTiming, withSpring, withSequence, withDelay, interpolateColor, runOnJS, Easing } from 'react-native-reanimated';
6
-
7
- // Example component showcasing improved Reanimated usage
8
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- const AnimationExample = () => {
10
- const [currentStep, setCurrentStep] = useState(0);
11
-
12
- // Shared values for better performance
13
- const opacity = useSharedValue(1);
14
- const scale = useSharedValue(1);
15
- const translateX = useSharedValue(0);
16
- const rotation = useSharedValue(0);
17
- const progress = useSharedValue(0);
18
- const colorProgress = useSharedValue(0);
19
-
20
- // Animated styles with proper interpolation
21
- const animatedStyle = useAnimatedStyle(() => {
22
- return {
23
- opacity: opacity.value,
24
- transform: [{
25
- scale: scale.value
26
- }, {
27
- translateX: translateX.value
28
- }, {
29
- rotate: `${rotation.value}deg`
30
- }]
31
- };
32
- });
33
- const progressStyle = useAnimatedStyle(() => {
34
- return {
35
- width: `${progress.value * 100}%`,
36
- backgroundColor: interpolateColor(colorProgress.value, [0, 1], ['#3498db', '#e74c3c'])
37
- };
38
- });
39
- const backgroundStyle = useAnimatedStyle(() => {
40
- return {
41
- backgroundColor: interpolateColor(colorProgress.value, [0, 1], ['#ecf0f1', '#f39c12'])
42
- };
43
- });
44
-
45
- // Complex animation sequence
46
- const animateSequence = () => {
47
- 'worklet';
48
-
49
- // Staggered animations for smooth transitions
50
- opacity.value = withTiming(0.5, {
51
- duration: 200
52
- });
53
- scale.value = withSpring(0.8, {
54
- damping: 15,
55
- stiffness: 150
56
- });
57
-
58
- // Delayed follow-up animations
59
- translateX.value = withDelay(100, withSpring(50, {
60
- damping: 20,
61
- stiffness: 100
62
- }, finished => {
63
- if (finished) {
64
- translateX.value = withSpring(0, {
65
- damping: 15,
66
- stiffness: 150
67
- });
68
- }
69
- }));
70
-
71
- // Sequential animations
72
- rotation.value = withSequence(withTiming(10, {
73
- duration: 150
74
- }), withTiming(-10, {
75
- duration: 150
76
- }), withTiming(0, {
77
- duration: 150
78
- }));
79
-
80
- // Progress animation with easing
81
- progress.value = withTiming(1, {
82
- duration: 1000,
83
- easing: Easing.out(Easing.exp)
84
- }, finished => {
85
- if (finished) {
86
- runOnJS(setCurrentStep)(currentStep + 1);
87
- }
88
- });
89
-
90
- // Color transition
91
- colorProgress.value = withTiming(1, {
92
- duration: 800
93
- });
94
-
95
- // Reset animations
96
- setTimeout(() => {
97
- opacity.value = withSpring(1);
98
- scale.value = withSpring(1);
99
- progress.value = withTiming(0, {
100
- duration: 500
101
- });
102
- colorProgress.value = withTiming(0, {
103
- duration: 500
104
- });
105
- }, 1500);
106
- };
107
- return /*#__PURE__*/_jsxs(Animated.View, {
108
- style: [styles.container, backgroundStyle],
109
- children: [/*#__PURE__*/_jsx(Text, {
110
- style: styles.title,
111
- children: "Advanced Reanimated Example"
112
- }), /*#__PURE__*/_jsxs(Text, {
113
- style: styles.subtitle,
114
- children: ["Step: ", currentStep]
115
- }), /*#__PURE__*/_jsx(Animated.View, {
116
- style: [styles.box, animatedStyle],
117
- children: /*#__PURE__*/_jsx(Text, {
118
- style: styles.boxText,
119
- children: "Animated Box"
120
- })
121
- }), /*#__PURE__*/_jsx(View, {
122
- style: styles.progressContainer,
123
- children: /*#__PURE__*/_jsx(Animated.View, {
124
- style: [styles.progressBar, progressStyle]
125
- })
126
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
127
- style: styles.button,
128
- onPress: animateSequence,
129
- children: /*#__PURE__*/_jsx(Text, {
130
- style: styles.buttonText,
131
- children: "Animate Sequence"
132
- })
133
- })]
134
- });
135
- };
136
- const styles = StyleSheet.create({
137
- container: {
138
- flex: 1,
139
- justifyContent: 'center',
140
- alignItems: 'center',
141
- padding: 20
142
- },
143
- title: {
144
- fontSize: 24,
145
- fontWeight: 'bold',
146
- marginBottom: 10,
147
- color: '#2c3e50'
148
- },
149
- subtitle: {
150
- fontSize: 16,
151
- marginBottom: 30,
152
- color: '#7f8c8d'
153
- },
154
- box: {
155
- width: 150,
156
- height: 150,
157
- backgroundColor: '#3498db',
158
- borderRadius: 20,
159
- justifyContent: 'center',
160
- alignItems: 'center',
161
- marginBottom: 30,
162
- shadowColor: '#000',
163
- shadowOffset: {
164
- width: 0,
165
- height: 4
166
- },
167
- shadowOpacity: 0.3,
168
- shadowRadius: 8,
169
- elevation: 8
170
- },
171
- boxText: {
172
- color: 'white',
173
- fontSize: 16,
174
- fontWeight: 'bold'
175
- },
176
- progressContainer: {
177
- width: '100%',
178
- height: 10,
179
- backgroundColor: '#ecf0f1',
180
- borderRadius: 5,
181
- marginBottom: 30,
182
- overflow: 'hidden'
183
- },
184
- progressBar: {
185
- height: '100%',
186
- borderRadius: 5
187
- },
188
- button: {
189
- backgroundColor: '#e74c3c',
190
- paddingHorizontal: 30,
191
- paddingVertical: 15,
192
- borderRadius: 25,
193
- shadowColor: '#000',
194
- shadowOffset: {
195
- width: 0,
196
- height: 2
197
- },
198
- shadowOpacity: 0.2,
199
- shadowRadius: 4,
200
- elevation: 4
201
- },
202
- buttonText: {
203
- color: 'white',
204
- fontSize: 16,
205
- fontWeight: 'bold'
206
- }
207
- });
208
- export default AnimationExample;
209
- //# sourceMappingURL=AnimationExample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useState","View","Text","StyleSheet","TouchableOpacity","Animated","useSharedValue","useAnimatedStyle","withTiming","withSpring","withSequence","withDelay","interpolateColor","runOnJS","Easing","jsx","_jsx","jsxs","_jsxs","AnimationExample","currentStep","setCurrentStep","opacity","scale","translateX","rotation","progress","colorProgress","animatedStyle","value","transform","rotate","progressStyle","width","backgroundColor","backgroundStyle","animateSequence","duration","damping","stiffness","finished","easing","out","exp","setTimeout","style","styles","container","children","title","subtitle","box","boxText","progressContainer","progressBar","button","onPress","buttonText","create","flex","justifyContent","alignItems","padding","fontSize","fontWeight","marginBottom","color","height","borderRadius","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","overflow","paddingHorizontal","paddingVertical"],"sourceRoot":"../../../../src","sources":["ui/components/AnimationExample.tsx"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,YAAY,EACZC,SAAS,EACTC,gBAAgB,EAChBC,OAAO,EACPC,MAAM,QACD,yBAAyB;;AAEhC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,gBAA0B,GAAGA,CAAA,KAAM;EACvC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGrB,QAAQ,CAAC,CAAC,CAAC;;EAEjD;EACA,MAAMsB,OAAO,GAAGhB,cAAc,CAAC,CAAC,CAAC;EACjC,MAAMiB,KAAK,GAAGjB,cAAc,CAAC,CAAC,CAAC;EAC/B,MAAMkB,UAAU,GAAGlB,cAAc,CAAC,CAAC,CAAC;EACpC,MAAMmB,QAAQ,GAAGnB,cAAc,CAAC,CAAC,CAAC;EAClC,MAAMoB,QAAQ,GAAGpB,cAAc,CAAC,CAAC,CAAC;EAClC,MAAMqB,aAAa,GAAGrB,cAAc,CAAC,CAAC,CAAC;;EAEvC;EACA,MAAMsB,aAAa,GAAGrB,gBAAgB,CAAC,MAAM;IAC3C,OAAO;MACLe,OAAO,EAAEA,OAAO,CAACO,KAAK;MACtBC,SAAS,EAAE,CACT;QAAEP,KAAK,EAAEA,KAAK,CAACM;MAAM,CAAC,EACtB;QAAEL,UAAU,EAAEA,UAAU,CAACK;MAAM,CAAC,EAChC;QAAEE,MAAM,EAAE,GAAGN,QAAQ,CAACI,KAAK;MAAM,CAAC;IAEtC,CAAC;EACH,CAAC,CAAC;EAEF,MAAMG,aAAa,GAAGzB,gBAAgB,CAAC,MAAM;IAC3C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E,SAAS;IAC1BkC,YAAY,EAAE,EAAE;IAChBR,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBI,YAAY,EAAE,EAAE;IAChBI,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAErC,KAAK,EAAE,CAAC;MAAEkC,MAAM,EAAE;IAAE,CAAC;IACrCI,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDrB,OAAO,EAAE;IACPc,KAAK,EAAE,OAAO;IACdH,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDX,iBAAiB,EAAE;IACjBpB,KAAK,EAAE,MAAM;IACbkC,MAAM,EAAE,EAAE;IACVjC,eAAe,EAAE,SAAS;IAC1BkC,YAAY,EAAE,CAAC;IACfH,YAAY,EAAE,EAAE;IAChBS,QAAQ,EAAE;EACZ,CAAC;EACDpB,WAAW,EAAE;IACXa,MAAM,EAAE,MAAM;IACdC,YAAY,EAAE;EAChB,CAAC;EACDb,MAAM,EAAE;IACNrB,eAAe,EAAE,SAAS;IAC1ByC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBR,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAErC,KAAK,EAAE,CAAC;MAAEkC,MAAM,EAAE;IAAE,CAAC;IACrCI,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDhB,UAAU,EAAE;IACVS,KAAK,EAAE,OAAO;IACdH,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAe7C,gBAAgB","ignoreList":[]}
@@ -1,139 +0,0 @@
1
- "use strict";
2
-
3
- import React, { Component } from 'react';
4
- import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- /**
7
- * Error Boundary Component
8
- *
9
- * Catches JavaScript errors anywhere in the child component tree,
10
- * logs those errors, and displays a fallback UI instead of crashing.
11
- *
12
- * Usage:
13
- * <ErrorBoundary>
14
- * <YourComponent />
15
- * </ErrorBoundary>
16
- */
17
- export class ErrorBoundary extends Component {
18
- constructor(props) {
19
- super(props);
20
- this.state = {
21
- hasError: false,
22
- error: null,
23
- errorInfo: null
24
- };
25
- }
26
- static getDerivedStateFromError(error) {
27
- // Update state so the next render will show the fallback UI
28
- return {
29
- hasError: true,
30
- error
31
- };
32
- }
33
- componentDidCatch(error, errorInfo) {
34
- // Log error to console in development
35
- if (__DEV__) {
36
- console.error('ErrorBoundary caught an error:', error, errorInfo);
37
- }
38
-
39
- // Call optional error handler
40
- if (this.props.onError) {
41
- this.props.onError(error, errorInfo);
42
- }
43
-
44
- // Update state with error info
45
- this.setState({
46
- error,
47
- errorInfo
48
- });
49
- }
50
- handleReset = () => {
51
- this.setState({
52
- hasError: false,
53
- error: null,
54
- errorInfo: null
55
- });
56
- };
57
- render() {
58
- if (this.state.hasError) {
59
- // Use custom fallback if provided
60
- if (this.props.fallback) {
61
- return this.props.fallback;
62
- }
63
-
64
- // Default fallback UI
65
- return /*#__PURE__*/_jsx(View, {
66
- style: styles.container,
67
- children: /*#__PURE__*/_jsxs(View, {
68
- style: styles.errorContainer,
69
- children: [/*#__PURE__*/_jsx(Text, {
70
- style: styles.errorTitle,
71
- children: "Something went wrong"
72
- }), /*#__PURE__*/_jsx(Text, {
73
- style: styles.errorMessage,
74
- children: this.state.error?.message || 'An unexpected error occurred'
75
- }), __DEV__ && this.state.errorInfo && /*#__PURE__*/_jsx(Text, {
76
- style: styles.errorDetails,
77
- children: this.state.errorInfo.componentStack
78
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
79
- style: styles.resetButton,
80
- onPress: this.handleReset,
81
- children: /*#__PURE__*/_jsx(Text, {
82
- style: styles.resetButtonText,
83
- children: "Try Again"
84
- })
85
- })]
86
- })
87
- });
88
- }
89
- return this.props.children;
90
- }
91
- }
92
- const styles = StyleSheet.create({
93
- container: {
94
- flex: 1,
95
- justifyContent: 'center',
96
- alignItems: 'center',
97
- padding: 20,
98
- backgroundColor: '#fff'
99
- },
100
- errorContainer: {
101
- maxWidth: 400,
102
- width: '100%',
103
- padding: 20,
104
- borderRadius: 8,
105
- backgroundColor: '#f5f5f5',
106
- borderWidth: 1,
107
- borderColor: '#e0e0e0'
108
- },
109
- errorTitle: {
110
- fontSize: 20,
111
- fontWeight: 'bold',
112
- marginBottom: 10,
113
- color: '#d32f2f'
114
- },
115
- errorMessage: {
116
- fontSize: 14,
117
- marginBottom: 15,
118
- color: '#666'
119
- },
120
- errorDetails: {
121
- fontSize: 12,
122
- marginBottom: 15,
123
- color: '#999',
124
- fontFamily: 'monospace'
125
- },
126
- resetButton: {
127
- backgroundColor: '#007AFF',
128
- padding: 12,
129
- borderRadius: 6,
130
- alignItems: 'center'
131
- },
132
- resetButtonText: {
133
- color: '#fff',
134
- fontSize: 16,
135
- fontWeight: '600'
136
- }
137
- });
138
- export default ErrorBoundary;
139
- //# sourceMappingURL=ErrorBoundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Component","View","Text","StyleSheet","TouchableOpacity","jsx","_jsx","jsxs","_jsxs","ErrorBoundary","constructor","props","state","hasError","error","errorInfo","getDerivedStateFromError","componentDidCatch","__DEV__","console","onError","setState","handleReset","render","fallback","style","styles","container","children","errorContainer","errorTitle","errorMessage","message","errorDetails","componentStack","resetButton","onPress","resetButtonText","create","flex","justifyContent","alignItems","padding","backgroundColor","maxWidth","width","borderRadius","borderWidth","borderColor","fontSize","fontWeight","marginBottom","color","fontFamily"],"sourceRoot":"../../../../src","sources":["ui/components/ErrorBoundary.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAwC,OAAO;AACxE,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;A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CAAC;IACdC,WAAW,EAAE;EACjB,CAAC;EACDlB,UAAU,EAAE;IACRmB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,MAAM;IAClBC,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE;EACX,CAAC;EACDrB,YAAY,EAAE;IACVkB,QAAQ,EAAE,EAAE;IACZE,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE;EACX,CAAC;EACDnB,YAAY,EAAE;IACVgB,QAAQ,EAAE,EAAE;IACZE,YAAY,EAAE,EAAE;IAChBC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE;EAChB,CAAC;EACDlB,WAAW,EAAE;IACTQ,eAAe,EAAE,SAAS;IAC1BD,OAAO,EAAE,EAAE;IACXI,YAAY,EAAE,CAAC;IACfL,UAAU,EAAE;EAChB,CAAC;EACDJ,eAAe,EAAE;IACbe,KAAK,EAAE,MAAM;IACbH,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC;AAEF,eAAezC,aAAa","ignoreList":[]}
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * WebOxyProvider - Lightweight provider for pure React/Next.js apps
5
- *
6
- * Use this provider for web apps that DON'T use Expo/React Native.
7
- * For Expo apps (native + web), use `OxyProvider` instead - it works on all platforms.
8
- *
9
- * Features:
10
- * - Automatic cross-domain SSO via FedCM (Chrome 108+, Safari 16.4+, Edge 108+)
11
- * - No React Native dependencies
12
- * - Session management
13
- * - All useOxy/useAuth functionality
14
- *
15
- * Usage:
16
- * ```tsx
17
- * // For pure React/Next.js apps (no Expo):
18
- * import { WebOxyProvider, useAuth } from '@oxyhq/services';
19
- *
20
- * function App() {
21
- * return (
22
- * <WebOxyProvider baseURL="https://api.oxy.so">
23
- * <YourApp />
24
- * </WebOxyProvider>
25
- * );
26
- * }
27
- *
28
- * // For Expo apps (native + web), use OxyProvider instead:
29
- * import { OxyProvider, useAuth } from '@oxyhq/services';
30
- * ```
31
- */
32
-
33
- import { useEffect, useRef, useState } from 'react';
34
- import { OxyContextProvider } from "../context/OxyContext.js";
35
- import { QueryClientProvider } from '@tanstack/react-query';
36
- import { createQueryClient } from "../hooks/queryClient.js";
37
- import { createPlatformStorage } from "../utils/storageHelpers.js";
38
- import { jsx as _jsx } from "react/jsx-runtime";
39
- /**
40
- * OxyProvider for web applications
41
- *
42
- * Features:
43
- * - Automatic cross-domain SSO via FedCM (browser-native identity API)
44
- * - Works across different TLDs (alia.onl, mention.earth, homiio.com, etc.)
45
- * - Session persistence in localStorage
46
- * - TanStack Query for data fetching
47
- * - No React Native dependencies
48
- */
49
- const WebOxyProvider = ({
50
- children,
51
- baseURL,
52
- authWebUrl,
53
- onAuthStateChange,
54
- storageKeyPrefix,
55
- queryClient: providedQueryClient
56
- }) => {
57
- const storageRef = useRef(null);
58
- const queryClientRef = useRef(null);
59
- const [queryClient, setQueryClient] = useState(null);
60
- useEffect(() => {
61
- if (providedQueryClient) {
62
- queryClientRef.current = providedQueryClient;
63
- setQueryClient(providedQueryClient);
64
- return;
65
- }
66
- let mounted = true;
67
- createPlatformStorage().then(storage => {
68
- if (mounted && !queryClientRef.current) {
69
- storageRef.current = storage;
70
- const client = createQueryClient(storage);
71
- queryClientRef.current = client;
72
- setQueryClient(client);
73
- }
74
- }).catch(() => {
75
- if (mounted && !queryClientRef.current) {
76
- const client = createQueryClient(null);
77
- queryClientRef.current = client;
78
- setQueryClient(client);
79
- }
80
- });
81
- return () => {
82
- mounted = false;
83
- };
84
- }, [providedQueryClient]);
85
-
86
- // Wait for query client to be ready
87
- if (!queryClient) {
88
- return null;
89
- }
90
- return /*#__PURE__*/_jsx(QueryClientProvider, {
91
- client: queryClient,
92
- children: /*#__PURE__*/_jsx(OxyContextProvider, {
93
- baseURL: baseURL,
94
- authWebUrl: authWebUrl,
95
- storageKeyPrefix: storageKeyPrefix,
96
- onAuthStateChange: onAuthStateChange,
97
- children: children
98
- })
99
- });
100
- };
101
- export default WebOxyProvider;
102
- //# sourceMappingURL=WebOxyProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useEffect","useRef","useState","OxyContextProvider","QueryClientProvider","createQueryClient","createPlatformStorage","jsx","_jsx","WebOxyProvider","children","baseURL","authWebUrl","onAuthStateChange","storageKeyPrefix","queryClient","providedQueryClient","storageRef","queryClientRef","setQueryClient","current","mounted","then","storage","client","catch"],"sourceRoot":"../../../../src","sources":["ui/components/WebOxyProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAiC,OAAO;AAC5E,SAASC,kBAAkB,QAAQ,0BAAuB;AAC1D,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,iBAAiB,QAAQ,yBAAsB;AACxD,SAASC,qBAAqB,QAA+B,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAWvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,cAAuC,GAAGA,CAAC;EAC/CC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,iBAAiB;EACjBC,gBAAgB;EAChBC,WAAW,EAAEC;AACf,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGhB,MAAM,CAA0B,IAAI,CAAC;EACxD,MAAMiB,cAAc,GAAGjB,MAAM,CAA8C,IAAI,CAAC;EAChF,MAAM,CAACc,WAAW,EAAEI,cAAc,CAAC,GAAGjB,QAAQ,CAA8C,IAAI,CAAC;EAEjGF,SAAS,CAAC,MAAM;IACd,IAAIgB,mBAAmB,EAAE;MACvBE,cAAc,CAACE,OAAO,GAAGJ,mBAAmB;MAC5CG,cAAc,CAACH,mBAAmB,CAAC;MACnC;IACF;IAEA,IAAIK,OAAO,GAAG,IAAI;IAClBf,qBAAqB,CAAC,CAAC,CACpBgB,IAAI,CAAEC,OAAO,IAAK;MACjB,IAAIF,OAAO,IAAI,CAACH,cAAc,CAACE,OAAO,EAAE;QACtCH,UAAU,CAACG,OAAO,GAAGG,OAAO;QAC5B,MAAMC,MAAM,GAAGnB,iBAAiB,CAACkB,OAAO,CAAC;QACzCL,cAAc,CAACE,OAAO,GAAGI,MAAM;QAC/BL,cAAc,CAACK,MAAM,CAAC;MACxB;IACF,CAAC,CAAC,CACDC,KAAK,CAAC,MAAM;MACX,IAAIJ,OAAO,IAAI,CAACH,cAAc,CAACE,OAAO,EAAE;QACtC,MAAMI,MAAM,GAAGnB,iBAAiB,CAAC,IAAI,CAAC;QACtCa,cAAc,CAACE,OAAO,GAAGI,MAAM;QAC/BL,cAAc,CAACK,MAAM,CAAC;MACxB;IACF,CAAC,CAAC;IAEJ,OAAO,MAAM;MACXH,OAAO,GAAG,KAAK;IACjB,CAAC;EACH,CAAC,EAAE,CAACL,mBAAmB,CAAC,CAAC;;EAEzB;EACA,IAAI,CAACD,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,oBACEP,IAAA,CAACJ,mBAAmB;IAACoB,MAAM,EAAET,WAAY;IAAAL,QAAA,eACvCF,IAAA,CAACL,kBAAkB;MACjBQ,OAAO,EAAEA,OAAQ;MACjBC,UAAU,EAAEA,UAAW;MACvBE,gBAAgB,EAAEA,gBAAiB;MACnCD,iBAAiB,EAAEA,iBAAkB;MAAAH,QAAA,EAEpCA;IAAQ,CACS;EAAC,CACF,CAAC;AAE1B,CAAC;AAED,eAAeD,cAAc","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- import type React from 'react';
2
- declare const AnimationExample: React.FC;
3
- export default AnimationExample;
4
- //# sourceMappingURL=AnimationExample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnimationExample.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/AnimationExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA6G7B,CAAC;AAqEF,eAAe,gBAAgB,CAAC"}
@@ -1,31 +0,0 @@
1
- import React, { Component, type ErrorInfo, type ReactNode } from 'react';
2
- interface Props {
3
- children: ReactNode;
4
- fallback?: ReactNode;
5
- onError?: (error: Error, errorInfo: ErrorInfo) => void;
6
- }
7
- interface State {
8
- hasError: boolean;
9
- error: Error | null;
10
- errorInfo: ErrorInfo | null;
11
- }
12
- /**
13
- * Error Boundary Component
14
- *
15
- * Catches JavaScript errors anywhere in the child component tree,
16
- * logs those errors, and displays a fallback UI instead of crashing.
17
- *
18
- * Usage:
19
- * <ErrorBoundary>
20
- * <YourComponent />
21
- * </ErrorBoundary>
22
- */
23
- export declare class ErrorBoundary extends Component<Props, State> {
24
- constructor(props: Props);
25
- static getDerivedStateFromError(error: Error): Partial<State>;
26
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
27
- handleReset: () => void;
28
- render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
29
- }
30
- export default ErrorBoundary;
31
- //# sourceMappingURL=ErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzE,UAAU,KAAK;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;CAC1D;AAED,UAAU,KAAK;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBAC1C,KAAK,EAAE,KAAK;IASxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAQ7D,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAkBpD,WAAW,aAMT;IAEF,MAAM;CAiCT;AAiDD,eAAe,aAAa,CAAC"}