@revrag-ai/embed-react-native 1.0.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 (45) hide show
  1. package/LICENSE +20 -0
  2. package/Onwid.podspec +20 -0
  3. package/README.md +402 -0
  4. package/android/build.gradle +83 -0
  5. package/android/gradle.properties +5 -0
  6. package/ios/Onwid.h +5 -0
  7. package/ios/Onwid.mm +18 -0
  8. package/lib/index.d.ts +77 -0
  9. package/lib/module/Event/onwid.js +74 -0
  10. package/lib/module/NativeOnwid.js +4 -0
  11. package/lib/module/component/OnwidButton.js +366 -0
  12. package/lib/module/component/audiowave.js +137 -0
  13. package/lib/module/component/voice.js +103 -0
  14. package/lib/module/hooks/initialize.js +92 -0
  15. package/lib/module/hooks/initialize.types.js +2 -0
  16. package/lib/module/hooks/initializelivekit.js +14 -0
  17. package/lib/module/hooks/voiceAgent.js +334 -0
  18. package/lib/module/hooks/voiceAgent.types.js +2 -0
  19. package/lib/module/index.js +61 -0
  20. package/lib/module/onwidApi/api.js +184 -0
  21. package/lib/module/onwidApi/api.types.js +2 -0
  22. package/lib/module/store.key.js +47 -0
  23. package/lib/module/style/onwidButton.style.js +230 -0
  24. package/lib/module/utils/reanimatedHelpers.js +87 -0
  25. package/lib/module/utils/utils.js +1 -0
  26. package/lib/typescript/Event/onwid.d.ts +13 -0
  27. package/lib/typescript/NativeOnwid.d.ts +6 -0
  28. package/lib/typescript/component/OnwidButton.d.ts +28 -0
  29. package/lib/typescript/component/audiowave.d.ts +6 -0
  30. package/lib/typescript/component/voice.d.ts +15 -0
  31. package/lib/typescript/hooks/initialize.d.ts +2 -0
  32. package/lib/typescript/hooks/initialize.types.d.ts +5 -0
  33. package/lib/typescript/hooks/initializelivekit.d.ts +3 -0
  34. package/lib/typescript/hooks/voiceAgent.d.ts +2 -0
  35. package/lib/typescript/hooks/voiceAgent.types.d.ts +16 -0
  36. package/lib/typescript/index.d.ts +27 -0
  37. package/lib/typescript/onwidApi/api.d.ts +53 -0
  38. package/lib/typescript/onwidApi/api.types.d.ts +21 -0
  39. package/lib/typescript/store.key.d.ts +3 -0
  40. package/lib/typescript/style/onwidButton.style.d.ts +98 -0
  41. package/lib/typescript/utils/reanimatedHelpers.d.ts +29 -0
  42. package/lib/typescript/utils/utils.d.ts +0 -0
  43. package/package.json +208 -0
  44. package/react-native.config.js +19 -0
  45. package/scripts/verify-setup.js +90 -0
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useInitialize = useInitialize;
7
+ /**
8
+ * Custom hook for initializing the OnWid SDK
9
+ *
10
+ * Required Parameters:
11
+ * - apiKey: string - Unique identifier for the user
12
+ * - deviceId: string - Unique identifier for the device
13
+ * - metadata: object - Additional device/user information
14
+ *
15
+ * The initialization process:
16
+ * 1. Validates required input parameters
17
+ * 2. Stores API key securely in keychain
18
+ * 3. Registers the device with provided details
19
+ */
20
+ const store_key_1 = require("../store.key");
21
+ const api_1 = require("../onwidApi/api");
22
+ const initializelivekit_1 = __importDefault(require("./initializelivekit"));
23
+ const react_native_1 = require("react-native");
24
+ function useInitialize({ apiKey, onwidUrl, metadata, }) {
25
+ const checkPermissions = async () => {
26
+ try {
27
+ // Check for required permissions on Android
28
+ if (react_native_1.Platform.OS === 'android') {
29
+ const recordAudioPermission = react_native_1.PermissionsAndroid.PERMISSIONS.RECORD_AUDIO;
30
+ if (!recordAudioPermission) {
31
+ throw new Error('RECORD_AUDIO permission not available');
32
+ }
33
+ const permissions = [recordAudioPermission];
34
+ const results = await Promise.all(permissions.map((permission) => react_native_1.PermissionsAndroid.request(permission)));
35
+ const allGranted = results.every((result) => result === react_native_1.PermissionsAndroid.RESULTS.GRANTED);
36
+ if (!allGranted) {
37
+ throw new Error('Required permissions not granted');
38
+ }
39
+ }
40
+ }
41
+ catch (err) {
42
+ const errorMessage = err instanceof Error ? err.message : 'Failed to check permissions';
43
+ throw new Error(errorMessage);
44
+ }
45
+ };
46
+ /**
47
+ * Validates required initialization parameters
48
+ * @throws Error if any required parameter is missing or invalid
49
+ */
50
+ const validateInputs = () => {
51
+ if (!apiKey || typeof apiKey !== 'string') {
52
+ throw new Error('apiKey is required and must be a string');
53
+ }
54
+ if (!onwidUrl || typeof onwidUrl !== 'string') {
55
+ throw new Error('onwidUrl is required and must be a string');
56
+ }
57
+ if (metadata && typeof metadata === 'object' && !metadata.config) {
58
+ throw new Error('metadata must contain a config object');
59
+ }
60
+ };
61
+ const initialize = async () => {
62
+ try {
63
+ await checkPermissions();
64
+ (0, initializelivekit_1.default)();
65
+ // Validate required parameters before proceeding
66
+ validateInputs();
67
+ // Store API key in keychain
68
+ await (0, store_key_1.setAgentData)({
69
+ apiKey,
70
+ onwidUrl,
71
+ });
72
+ // Get the APIService instance and initialize it
73
+ const apiService = api_1.APIService.getInstance();
74
+ await apiService.initialize();
75
+ console.log('registerOnInitialize');
76
+ // Register new device with provided details
77
+ const registerResponse = await apiService.registerOnInitialize();
78
+ if (!registerResponse.success) {
79
+ throw new Error(registerResponse.error || 'Device registration failed');
80
+ }
81
+ if (registerResponse.data) {
82
+ // todo: store config
83
+ }
84
+ }
85
+ catch (err) {
86
+ const errorMessage = err instanceof Error ? err.message : 'Initialization failed';
87
+ throw new Error(errorMessage);
88
+ }
89
+ };
90
+ // Initialize immediately when hook is called
91
+ initialize().catch(console.error);
92
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This module imports the `registerGlobals` function from the LiveKit React Native library.
3
+ // The `registerGlobals` function is used to register global settings and configurations
4
+ // for the LiveKit service, which is essential for managing real-time audio and video
5
+ // communication in the application. The `registerAgent` constant is created as an alias
6
+ // for `registerGlobals`, allowing for easier reference in other parts of the application.
7
+ // Finally, the `registerAgent` is exported as the default export of this module, making
8
+ // it available for use in other modules that require the registration of LiveKit globals.
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const react_native_1 = require("@livekit/react-native");
11
+ // The registerAgent constant is an alias for the registerGlobals function,
12
+ // which is used to set up global configurations for the LiveKit service.
13
+ const registerAgent = react_native_1.registerGlobals;
14
+ exports.default = registerAgent;
@@ -0,0 +1,334 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useVoiceAgent = void 0;
4
+ const livekit_client_1 = require("livekit-client");
5
+ const react_1 = require("react");
6
+ const onwid_1 = require("../Event/onwid");
7
+ const api_1 = require("../onwidApi/api");
8
+ const store_key_1 = require("../store.key");
9
+ // Create a singleton instance of Room that persists across hook instances
10
+ // This ensures we don't create multiple Room instances that could conflict
11
+ let roomInstance = null;
12
+ let isConnecting = false;
13
+ let isDisconnecting = false;
14
+ let hasListeners = false;
15
+ let connectionAttempts = 0;
16
+ let stableConnectionTimerId = null;
17
+ const MAX_CONNECTION_ATTEMPTS = 3;
18
+ const STABLE_CONNECTION_TIMEOUT = 5000; // 5 seconds
19
+ // Create getters for the room instance
20
+ const getRoomInstance = () => {
21
+ if (!roomInstance) {
22
+ console.log('Creating new Room instance');
23
+ // Configure the room with the right options at creation time
24
+ roomInstance = new livekit_client_1.Room({
25
+ adaptiveStream: true,
26
+ dynacast: true,
27
+ // Using the most stable configuration for React Native
28
+ publishDefaults: {
29
+ simulcast: false, // Disable simulcast to reduce SDP complexity
30
+ },
31
+ });
32
+ }
33
+ return roomInstance;
34
+ };
35
+ // Reset connection attempt counter
36
+ const resetConnectionAttempts = () => {
37
+ connectionAttempts = 0;
38
+ // Clear any pending stable connection timer
39
+ if (stableConnectionTimerId) {
40
+ clearTimeout(stableConnectionTimerId);
41
+ stableConnectionTimerId = null;
42
+ }
43
+ };
44
+ // Cleanup function to reset the room state
45
+ const resetRoomState = () => {
46
+ if (roomInstance) {
47
+ try {
48
+ console.log('Resetting room state');
49
+ console.log('isDisconnecting', isDisconnecting);
50
+ // Only disconnect if currently connected
51
+ if (roomInstance.state !== livekit_client_1.ConnectionState.Disconnected &&
52
+ !isDisconnecting) {
53
+ isDisconnecting = true;
54
+ roomInstance.disconnect().finally(() => {
55
+ isDisconnecting = false;
56
+ });
57
+ }
58
+ // Don't destroy the room instance, just reset its state
59
+ hasListeners = false;
60
+ resetConnectionAttempts();
61
+ }
62
+ catch (e) {
63
+ console.error('Error resetting room state:', e);
64
+ }
65
+ }
66
+ };
67
+ const useVoiceAgent = () => {
68
+ const [isLoading, setIsLoading] = (0, react_1.useState)(false);
69
+ const [error, setError] = (0, react_1.useState)(null);
70
+ const [tokenDetails, setTokenDetails] = (0, react_1.useState)(null);
71
+ const [isMicMuted, setIsMicMuted] = (0, react_1.useState)(false);
72
+ const [connectionState, setConnectionState] = (0, react_1.useState)(() => {
73
+ // Initialize with the current room state if it exists
74
+ const room = getRoomInstance();
75
+ return room ? room.state : livekit_client_1.ConnectionState.Disconnected;
76
+ });
77
+ const [stableConnection, setStableConnection] = (0, react_1.useState)(false);
78
+ console.log('ConnectionState_connected', connectionState
79
+ // tokenDetails?.token
80
+ );
81
+ // Setup event listeners for the room
82
+ const setupRoomListeners = () => {
83
+ if (hasListeners || !roomInstance)
84
+ return;
85
+ console.log('Setting up room listeners');
86
+ const handleConnectionChange = (state) => {
87
+ console.log('Connection state changed:', state);
88
+ // Use a function to ensure we're setting with the latest state
89
+ setConnectionState(() => state);
90
+ // Handle connection state changes
91
+ if (state === livekit_client_1.ConnectionState.Connected) {
92
+ // Reset connection attempts when connected successfully
93
+ resetConnectionAttempts();
94
+ // Set up a timer to mark the connection as stable after a few seconds
95
+ // This prevents immediate disconnections from being treated as stable
96
+ if (stableConnectionTimerId) {
97
+ clearTimeout(stableConnectionTimerId);
98
+ }
99
+ stableConnectionTimerId = setTimeout(() => {
100
+ console.log('Connection marked as stable');
101
+ setStableConnection(true);
102
+ }, STABLE_CONNECTION_TIMEOUT);
103
+ }
104
+ else if (state === livekit_client_1.ConnectionState.Disconnected) {
105
+ // Mark connection as unstable
106
+ setStableConnection(false);
107
+ // Clear any pending stable connection timer
108
+ if (stableConnectionTimerId) {
109
+ clearTimeout(stableConnectionTimerId);
110
+ stableConnectionTimerId = null;
111
+ }
112
+ // If disconnected unexpectedly and we have token details, don't automatically reconnect
113
+ // This prevents connection loops
114
+ if (tokenDetails && !isDisconnecting) {
115
+ console.log('Room disconnected unexpectedly - not auto-reconnecting');
116
+ }
117
+ }
118
+ };
119
+ const handleTrackSubscribed = (track) => {
120
+ if (track.kind === 'audio') {
121
+ track.setVolume(1.0);
122
+ }
123
+ };
124
+ // Handle participant disconnected - this could be helpful to detect server-side kicks
125
+ roomInstance.on('participantDisconnected', () => {
126
+ console.log('Participant disconnected from room');
127
+ });
128
+ roomInstance.on('connectionStateChanged', handleConnectionChange);
129
+ roomInstance.on('trackSubscribed', handleTrackSubscribed);
130
+ // Listen for SDP negotiation errors to handle them better
131
+ roomInstance.on('mediaDevicesError', (e) => {
132
+ console.log('Media devices error:', e.message);
133
+ });
134
+ hasListeners = true;
135
+ };
136
+ // Initialize room and listeners
137
+ (0, react_1.useEffect)(() => {
138
+ const room = getRoomInstance();
139
+ setupRoomListeners();
140
+ // Sync local state with room state
141
+ setConnectionState(room.state);
142
+ return () => {
143
+ // Do NOT disconnect or destroy the room on component unmount
144
+ // This ensures the singleton persists across component lifecycle
145
+ // But we do want to update local state if the component is unmounted
146
+ if (!tokenDetails) {
147
+ setTokenDetails(null);
148
+ }
149
+ };
150
+ }, []);
151
+ // Connect to LiveKit when token is set
152
+ (0, react_1.useEffect)(() => {
153
+ const room = getRoomInstance();
154
+ if (!tokenDetails || isConnecting)
155
+ return;
156
+ // Always sync our state with the room's current state
157
+ setConnectionState(room.state);
158
+ const connectToRoom = async () => {
159
+ // Prevent multiple connection attempts
160
+ if (isConnecting)
161
+ return;
162
+ // Limit connection attempts to prevent infinite loops
163
+ if (connectionAttempts >= MAX_CONNECTION_ATTEMPTS) {
164
+ console.log(`Maximum connection attempts (${MAX_CONNECTION_ATTEMPTS}) reached. Not trying again.`);
165
+ setError(`Failed to connect after ${MAX_CONNECTION_ATTEMPTS} attempts`);
166
+ return;
167
+ }
168
+ connectionAttempts++;
169
+ try {
170
+ isConnecting = true;
171
+ console.log(`Connecting to LiveKit room... (attempt ${connectionAttempts})`);
172
+ // Only attempt to connect if we're disconnected
173
+ if (room.state === livekit_client_1.ConnectionState.Disconnected) {
174
+ // Update state before connection attempt
175
+ setConnectionState(livekit_client_1.ConnectionState.Connecting);
176
+ await room.connect(tokenDetails.server_url, tokenDetails.token, {
177
+ autoSubscribe: true, // Ensure we subscribe to tracks automatically
178
+ });
179
+ // Explicitly set to connected if connection was successful
180
+ setConnectionState(room.state);
181
+ console.log('Connected to LiveKit room');
182
+ }
183
+ else if (room.state === livekit_client_1.ConnectionState.Connected) {
184
+ console.log('Room is already connected');
185
+ // Ensure our state matches
186
+ setConnectionState(livekit_client_1.ConnectionState.Connected);
187
+ }
188
+ else {
189
+ console.log('Room is in transition state:', room.state);
190
+ // Sync our state with the room's current state
191
+ setConnectionState(room.state);
192
+ }
193
+ }
194
+ catch (err) {
195
+ const message = err instanceof Error ? err.message : 'Failed to connect to room';
196
+ setError(message);
197
+ console.error('Connection error:', message);
198
+ // Sync state to disconnected if we failed to connect
199
+ setConnectionState(room.state);
200
+ // Don't keep retrying if we hit an SDP error
201
+ if (message.includes('SDP') || message.includes('sdp')) {
202
+ console.log('SDP error detected, will not retry automatically');
203
+ }
204
+ }
205
+ finally {
206
+ isConnecting = false;
207
+ }
208
+ };
209
+ connectToRoom();
210
+ // No cleanup here - we don't want to disconnect when token changes or component unmounts
211
+ }, [tokenDetails]);
212
+ // Log connection status periodically for debugging
213
+ (0, react_1.useEffect)(() => {
214
+ const debugInterval = setInterval(() => {
215
+ if (roomInstance) {
216
+ const state = roomInstance.state;
217
+ const participantCount = roomInstance.numParticipants;
218
+ console.log(`[DEBUG] Room state: ${state}, Participants: ${participantCount}, Stable: ${stableConnection}`);
219
+ }
220
+ }, 10000); // Every 10 seconds
221
+ return () => clearInterval(debugInterval);
222
+ }, [stableConnection]);
223
+ // Generate token and connect
224
+ const generateVoiceToken = async () => {
225
+ console.log('generateVoiceToken');
226
+ // Don't generate a new token if we're already connecting/connected
227
+ if (isConnecting || isLoading) {
228
+ console.log('Already connecting or loading, skipping token generation');
229
+ return;
230
+ }
231
+ // Reset connection attempts when starting fresh
232
+ resetConnectionAttempts();
233
+ setStableConnection(false);
234
+ const userData = await (0, store_key_1.getAgentData)(onwid_1.EventKeys.USER_DATA);
235
+ setIsLoading(true);
236
+ setError(null);
237
+ console.log('userData', userData);
238
+ try {
239
+ const apiService = api_1.APIService.getInstance();
240
+ const response = await apiService.getTokenDetails({
241
+ app_user_id: userData === null || userData === void 0 ? void 0 : userData.app_user_id,
242
+ call_type: 'EMBEDDED',
243
+ });
244
+ if (!response.data)
245
+ throw new Error('No voice token found');
246
+ // Only set token details if we're not already connected
247
+ const room = getRoomInstance();
248
+ if (room.state !== livekit_client_1.ConnectionState.Connected) {
249
+ setTokenDetails(response.data);
250
+ }
251
+ else {
252
+ console.log('Room already connected, skipping token update');
253
+ }
254
+ }
255
+ catch (err) {
256
+ const message = err instanceof Error ? err.message : 'Failed to generate voice token';
257
+ setError(message);
258
+ throw new Error(message);
259
+ }
260
+ finally {
261
+ setIsLoading(false);
262
+ }
263
+ };
264
+ // End call
265
+ const endCall = async () => {
266
+ if (isDisconnecting) {
267
+ console.log('Already disconnecting, skipping');
268
+ return;
269
+ }
270
+ try {
271
+ console.log('Ending call');
272
+ isDisconnecting = true;
273
+ setTokenDetails(null);
274
+ setIsMicMuted(false);
275
+ resetConnectionAttempts();
276
+ setStableConnection(false);
277
+ const room = getRoomInstance();
278
+ if (room.state !== livekit_client_1.ConnectionState.Disconnected) {
279
+ // Update state before disconnection
280
+ setConnectionState(livekit_client_1.ConnectionState.Connecting);
281
+ await room.disconnect();
282
+ // Update state after disconnection
283
+ setConnectionState(livekit_client_1.ConnectionState.Disconnected);
284
+ }
285
+ }
286
+ catch (err) {
287
+ setError(err instanceof Error ? err.message : 'Failed to end call');
288
+ // Make sure state is correctly reflected even if there's an error
289
+ const room = getRoomInstance();
290
+ setConnectionState(room.state);
291
+ }
292
+ finally {
293
+ isDisconnecting = false;
294
+ }
295
+ };
296
+ // Mute microphone
297
+ const muteMic = () => {
298
+ const room = getRoomInstance();
299
+ if (room.localParticipant) {
300
+ room.localParticipant.setMicrophoneEnabled(false);
301
+ setIsMicMuted(true);
302
+ console.log('Microphone muted');
303
+ }
304
+ };
305
+ // Unmute microphone
306
+ const unmuteMic = () => {
307
+ const room = getRoomInstance();
308
+ if (room.localParticipant) {
309
+ room.localParticipant.setMicrophoneEnabled(true);
310
+ setIsMicMuted(false);
311
+ console.log('Microphone unmuted');
312
+ }
313
+ };
314
+ // Clean up everything (use only when the app is shutting down)
315
+ const cleanup = () => {
316
+ endCall();
317
+ resetRoomState();
318
+ };
319
+ return {
320
+ initializeVoiceAgent: generateVoiceToken,
321
+ endCall,
322
+ muteMic,
323
+ unmuteMic,
324
+ isMicMuted,
325
+ connectionState,
326
+ room: getRoomInstance(),
327
+ tokenDetails,
328
+ isLoading,
329
+ error,
330
+ roomRef: { current: getRoomInstance() },
331
+ cleanup,
332
+ };
333
+ };
334
+ exports.useVoiceAgent = useVoiceAgent;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.useInitialize = exports.registerAgent = exports.onwid = exports.EventKeys = void 0;
40
+ exports.OnwidButton = OnwidButton;
41
+ const jsx_runtime_1 = require("react/jsx-runtime");
42
+ /**
43
+ * @file index.tsx
44
+ * @description Main entry point for the Onwid React Native library.
45
+ * This file exports the core components and utilities for the Onwid SDK.
46
+ */
47
+ const OnwidButton_1 = require("./component/OnwidButton");
48
+ const onwid_1 = __importStar(require("./Event/onwid"));
49
+ exports.onwid = onwid_1.default;
50
+ Object.defineProperty(exports, "EventKeys", { enumerable: true, get: function () { return onwid_1.EventKeys; } });
51
+ const initialize_1 = require("./hooks/initialize");
52
+ Object.defineProperty(exports, "useInitialize", { enumerable: true, get: function () { return initialize_1.useInitialize; } });
53
+ const initializelivekit_1 = __importDefault(require("./hooks/initializelivekit"));
54
+ exports.registerAgent = initializelivekit_1.default;
55
+ /**
56
+ * OnwidButton component that provides a customizable button with menu functionality
57
+ * @returns React component
58
+ */
59
+ function OnwidButton() {
60
+ return (0, jsx_runtime_1.jsx)(OnwidButton_1.OnwidButton, {});
61
+ }