@novodip/expo-router-devtools 1.0.3 → 1.0.4
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.
- package/dist/index.esm.js +9 -196
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -193
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,195 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { usePathname, useGlobalSearchParams, useRouter } from 'expo-router';
|
|
3
|
-
import
|
|
3
|
+
import * as SecureStore from 'expo-secure-store';
|
|
4
4
|
import { useState, useEffect, useCallback } from 'react';
|
|
5
|
-
|
|
6
|
-
// We default to an empty object shim wherever we don't have an environment-specific implementation
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated `NativeModulesProxy` is deprecated and might be removed in the future releases.
|
|
9
|
-
* Use `requireNativeModule` or `requireOptionalNativeModule` instead.
|
|
10
|
-
*/
|
|
11
|
-
var NativeModulesProxy = {};
|
|
12
|
-
|
|
13
|
-
function createTurboModuleToExpoProxy(turboModule, name) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Imports the native module registered with given name. In the first place it tries to load
|
|
19
|
-
* the module installed through the JSI host object and then falls back to the bridge proxy module.
|
|
20
|
-
* Notice that the modules loaded from the proxy may not support some features like synchronous functions.
|
|
21
|
-
*
|
|
22
|
-
* @param moduleName Name of the requested native module.
|
|
23
|
-
* @returns Object representing the native module.
|
|
24
|
-
* @throws Error when there is no native module with given name.
|
|
25
|
-
*/
|
|
26
|
-
function requireNativeModule(moduleName) {
|
|
27
|
-
const nativeModule = requireOptionalNativeModule(moduleName);
|
|
28
|
-
if (!nativeModule) {
|
|
29
|
-
throw new Error(`Cannot find native module '${moduleName}'`);
|
|
30
|
-
}
|
|
31
|
-
return nativeModule;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Imports the native module registered with the given name. The same as `requireNativeModule`,
|
|
35
|
-
* but returns `null` when the module cannot be found instead of throwing an error.
|
|
36
|
-
*
|
|
37
|
-
* @param moduleName Name of the requested native module.
|
|
38
|
-
* @returns Object representing the native module or `null` when it cannot be found.
|
|
39
|
-
*/
|
|
40
|
-
function requireOptionalNativeModule(moduleName) {
|
|
41
|
-
var _a, _b, _c, _d, _e;
|
|
42
|
-
try {
|
|
43
|
-
return ((_e = (_d = (_c = (_b = (_a = globalThis.expo) === null || _a === void 0 ? void 0 : _a.modules) === null || _b === void 0 ? void 0 : _b[moduleName]) !== null && _c !== void 0 ? _c : NativeModulesProxy[moduleName]) !== null && _d !== void 0 ? _d : createTurboModuleToExpoProxy(TurboModuleRegistry.get(moduleName), moduleName)) !== null && _e !== void 0 ? _e : null);
|
|
44
|
-
}
|
|
45
|
-
catch (e) {
|
|
46
|
-
const error = e;
|
|
47
|
-
console.warn(`An error occurred while requiring the '${moduleName}' module: ${error.message}`);
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
var ExpoSecureStore = requireNativeModule('ExpoSecureStore');
|
|
53
|
-
|
|
54
|
-
const VALUE_BYTES_LIMIT = 2048;
|
|
55
|
-
// note this probably could be JS-engine dependent
|
|
56
|
-
// inspired by https://stackoverflow.com/a/39488643
|
|
57
|
-
function byteCountOverLimit(value, limit) {
|
|
58
|
-
let bytes = 0;
|
|
59
|
-
for (let i = 0; i < value.length; i++) {
|
|
60
|
-
const codePoint = value.charCodeAt(i);
|
|
61
|
-
// Lone surrogates cannot be passed to encodeURI
|
|
62
|
-
if (codePoint >= 0xd800 && codePoint < 0xe000) {
|
|
63
|
-
if (codePoint < 0xdc00 && i + 1 < value.length) {
|
|
64
|
-
const next = value.charCodeAt(i + 1);
|
|
65
|
-
if (next >= 0xdc00 && next < 0xe000) {
|
|
66
|
-
bytes += 4;
|
|
67
|
-
if (bytes > limit) {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
i++;
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;
|
|
76
|
-
if (bytes > limit) {
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return bytes > limit;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// @needsAudit
|
|
84
|
-
/**
|
|
85
|
-
* The data in the keychain item cannot be accessed after a restart until the device has been
|
|
86
|
-
* unlocked once by the user. This may be useful if you need to access the item when the phone
|
|
87
|
-
* is locked.
|
|
88
|
-
*/
|
|
89
|
-
ExpoSecureStore.AFTER_FIRST_UNLOCK;
|
|
90
|
-
// @needsAudit
|
|
91
|
-
/**
|
|
92
|
-
* Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring
|
|
93
|
-
* from a backup.
|
|
94
|
-
*/
|
|
95
|
-
ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;
|
|
96
|
-
// @needsAudit
|
|
97
|
-
/**
|
|
98
|
-
* The data in the keychain item can always be accessed regardless of whether the device is locked.
|
|
99
|
-
* This is the least secure option.
|
|
100
|
-
*
|
|
101
|
-
* @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.
|
|
102
|
-
*/
|
|
103
|
-
ExpoSecureStore.ALWAYS;
|
|
104
|
-
// @needsAudit
|
|
105
|
-
/**
|
|
106
|
-
* Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to
|
|
107
|
-
* store an entry. If the user removes their passcode, the entry will be deleted.
|
|
108
|
-
*/
|
|
109
|
-
ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;
|
|
110
|
-
// @needsAudit
|
|
111
|
-
/**
|
|
112
|
-
* Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.
|
|
113
|
-
*
|
|
114
|
-
* @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.
|
|
115
|
-
*/
|
|
116
|
-
ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;
|
|
117
|
-
// @needsAudit
|
|
118
|
-
/**
|
|
119
|
-
* The data in the keychain item can be accessed only while the device is unlocked by the user.
|
|
120
|
-
*/
|
|
121
|
-
ExpoSecureStore.WHEN_UNLOCKED;
|
|
122
|
-
// @needsAudit
|
|
123
|
-
/**
|
|
124
|
-
* Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from
|
|
125
|
-
* a backup.
|
|
126
|
-
*/
|
|
127
|
-
ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;
|
|
128
|
-
// @needsAudit
|
|
129
|
-
/**
|
|
130
|
-
* Delete the value associated with the provided key.
|
|
131
|
-
*
|
|
132
|
-
* @param key The key that was used to store the associated value.
|
|
133
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
134
|
-
*
|
|
135
|
-
* @return A promise that rejects if the value can't be deleted.
|
|
136
|
-
*/
|
|
137
|
-
async function deleteItemAsync(key, options = {}) {
|
|
138
|
-
ensureValidKey(key);
|
|
139
|
-
await ExpoSecureStore.deleteValueWithKeyAsync(key, options);
|
|
140
|
-
}
|
|
141
|
-
// @needsAudit
|
|
142
|
-
/**
|
|
143
|
-
* Reads the stored value associated with the provided key.
|
|
144
|
-
*
|
|
145
|
-
* @param key The key that was used to store the associated value.
|
|
146
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
147
|
-
*
|
|
148
|
-
* @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry
|
|
149
|
-
* for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.
|
|
150
|
-
*
|
|
151
|
-
* > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.
|
|
152
|
-
* > After a key has been invalidated, it becomes impossible to read its value.
|
|
153
|
-
* > This only applies to values stored with `requireAuthentication` set to `true`.
|
|
154
|
-
*/
|
|
155
|
-
async function getItemAsync(key, options = {}) {
|
|
156
|
-
ensureValidKey(key);
|
|
157
|
-
return await ExpoSecureStore.getValueWithKeyAsync(key, options);
|
|
158
|
-
}
|
|
159
|
-
// @needsAudit
|
|
160
|
-
/**
|
|
161
|
-
* Stores a key–value pair.
|
|
162
|
-
*
|
|
163
|
-
* @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.
|
|
164
|
-
* @param value The value to store. Size limit is 2048 bytes.
|
|
165
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
166
|
-
*
|
|
167
|
-
* @return A promise that rejects if value cannot be stored on the device.
|
|
168
|
-
*/
|
|
169
|
-
async function setItemAsync(key, value, options = {}) {
|
|
170
|
-
ensureValidKey(key);
|
|
171
|
-
if (!isValidValue(value)) {
|
|
172
|
-
throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);
|
|
173
|
-
}
|
|
174
|
-
await ExpoSecureStore.setValueWithKeyAsync(value, key, options);
|
|
175
|
-
}
|
|
176
|
-
function ensureValidKey(key) {
|
|
177
|
-
if (!isValidKey(key)) {
|
|
178
|
-
throw new Error(`Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, ".", "-", and "_".`);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function isValidKey(key) {
|
|
182
|
-
return typeof key === 'string' && /^[\w.-]+$/.test(key);
|
|
183
|
-
}
|
|
184
|
-
function isValidValue(value) {
|
|
185
|
-
if (typeof value !== 'string') {
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
|
-
if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {
|
|
189
|
-
console.warn(`Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`);
|
|
190
|
-
}
|
|
191
|
-
return true;
|
|
192
|
-
}
|
|
5
|
+
import { View, Pressable, Text, ScrollView, StyleSheet, Platform } from 'react-native';
|
|
193
6
|
|
|
194
7
|
const STORAGE_PREFIX = 'expo-router-devtools_';
|
|
195
8
|
const MAX_HISTORY = 10;
|
|
@@ -220,12 +33,12 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
220
33
|
useEffect(() => {
|
|
221
34
|
const loadData = async () => {
|
|
222
35
|
try {
|
|
223
|
-
const savedRoutesData = await getItemAsync(SAVED_ROUTES_KEY);
|
|
36
|
+
const savedRoutesData = await SecureStore.getItemAsync(SAVED_ROUTES_KEY);
|
|
224
37
|
if (savedRoutesData) {
|
|
225
38
|
setSavedRoutes(JSON.parse(savedRoutesData));
|
|
226
39
|
}
|
|
227
40
|
if (enableHistory) {
|
|
228
|
-
const historyData = await getItemAsync(HISTORY_KEY);
|
|
41
|
+
const historyData = await SecureStore.getItemAsync(HISTORY_KEY);
|
|
229
42
|
if (historyData) {
|
|
230
43
|
setRouteHistory(JSON.parse(historyData));
|
|
231
44
|
}
|
|
@@ -245,7 +58,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
245
58
|
try {
|
|
246
59
|
const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory);
|
|
247
60
|
setRouteHistory(newHistory);
|
|
248
|
-
await setItemAsync(HISTORY_KEY, JSON.stringify(newHistory));
|
|
61
|
+
await SecureStore.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory));
|
|
249
62
|
}
|
|
250
63
|
catch (error) {
|
|
251
64
|
console.error('[ExpoRouterDevTools] Error updating history:', error);
|
|
@@ -264,7 +77,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
264
77
|
const updated = [...savedRoutes, newRoute];
|
|
265
78
|
setSavedRoutes(updated);
|
|
266
79
|
try {
|
|
267
|
-
await setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
80
|
+
await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
268
81
|
}
|
|
269
82
|
catch (error) {
|
|
270
83
|
console.error('[ExpoRouterDevTools] Error saving route:', error);
|
|
@@ -284,7 +97,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
284
97
|
const updated = savedRoutes.filter((_, i) => i !== index);
|
|
285
98
|
setSavedRoutes(updated);
|
|
286
99
|
try {
|
|
287
|
-
await setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
100
|
+
await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
288
101
|
}
|
|
289
102
|
catch (error) {
|
|
290
103
|
console.error('[ExpoRouterDevTools] Error deleting route:', error);
|
|
@@ -295,8 +108,8 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
295
108
|
setSavedRoutes([]);
|
|
296
109
|
setRouteHistory([]);
|
|
297
110
|
try {
|
|
298
|
-
await deleteItemAsync(SAVED_ROUTES_KEY);
|
|
299
|
-
await deleteItemAsync(HISTORY_KEY);
|
|
111
|
+
await SecureStore.deleteItemAsync(SAVED_ROUTES_KEY);
|
|
112
|
+
await SecureStore.deleteItemAsync(HISTORY_KEY);
|
|
300
113
|
}
|
|
301
114
|
catch (error) {
|
|
302
115
|
console.error('[ExpoRouterDevTools] Error clearing data:', error);
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../node_modules/expo-modules-core/src/NativeModulesProxy.ts","../node_modules/expo-modules-core/src/TurboModuleToExpoModuleProxy.ts","../node_modules/expo-modules-core/src/requireNativeModule.ts","../node_modules/expo-secure-store/build/ExpoSecureStore.js","../node_modules/expo-secure-store/build/byteCounter.js","../node_modules/expo-secure-store/build/SecureStore.js","../src/ExpoRouterDevTools.tsx"],"sourcesContent":["import type { ProxyNativeModule } from './NativeModulesProxy.types';\n\n// We default to an empty object shim wherever we don't have an environment-specific implementation\n\n/**\n * @deprecated `NativeModulesProxy` is deprecated and might be removed in the future releases.\n * Use `requireNativeModule` or `requireOptionalNativeModule` instead.\n */\nexport default {} as Record<string, ProxyNativeModule>;\n","// Copyright © 2024 650 Industries.\nimport type { TurboModule } from 'react-native';\n\nexport function createTurboModuleToExpoProxy(turboModule: TurboModule | null, name: string) {\n return null;\n}\n","import { TurboModuleRegistry } from 'react-native';\n\nimport NativeModulesProxy from './NativeModulesProxy';\nimport { createTurboModuleToExpoProxy } from './TurboModuleToExpoModuleProxy';\nimport { ensureNativeModulesAreInstalled } from './ensureNativeModulesAreInstalled';\n\n/**\n * Imports the native module registered with given name. In the first place it tries to load\n * the module installed through the JSI host object and then falls back to the bridge proxy module.\n * Notice that the modules loaded from the proxy may not support some features like synchronous functions.\n *\n * @param moduleName Name of the requested native module.\n * @returns Object representing the native module.\n * @throws Error when there is no native module with given name.\n */\nexport function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType {\n const nativeModule = requireOptionalNativeModule<ModuleType>(moduleName);\n\n if (!nativeModule) {\n throw new Error(`Cannot find native module '${moduleName}'`);\n }\n return nativeModule;\n}\n\n/**\n * Imports the native module registered with the given name. The same as `requireNativeModule`,\n * but returns `null` when the module cannot be found instead of throwing an error.\n *\n * @param moduleName Name of the requested native module.\n * @returns Object representing the native module or `null` when it cannot be found.\n */\nexport function requireOptionalNativeModule<ModuleType = any>(\n moduleName: string\n): ModuleType | null {\n ensureNativeModulesAreInstalled();\n\n try {\n return (\n globalThis.expo?.modules?.[moduleName] ??\n NativeModulesProxy[moduleName] ??\n createTurboModuleToExpoProxy(TurboModuleRegistry.get(moduleName), moduleName) ??\n null\n );\n } catch (e) {\n const error = e as Error;\n console.warn(`An error occurred while requiring the '${moduleName}' module: ${error.message}`);\n return null;\n }\n}\n","import { requireNativeModule } from 'expo-modules-core';\nexport default requireNativeModule('ExpoSecureStore');\n//# sourceMappingURL=ExpoSecureStore.js.map","export const VALUE_BYTES_LIMIT = 2048;\n// note this probably could be JS-engine dependent\n// inspired by https://stackoverflow.com/a/39488643\nexport function byteCountOverLimit(value, limit) {\n let bytes = 0;\n for (let i = 0; i < value.length; i++) {\n const codePoint = value.charCodeAt(i);\n // Lone surrogates cannot be passed to encodeURI\n if (codePoint >= 0xd800 && codePoint < 0xe000) {\n if (codePoint < 0xdc00 && i + 1 < value.length) {\n const next = value.charCodeAt(i + 1);\n if (next >= 0xdc00 && next < 0xe000) {\n bytes += 4;\n if (bytes > limit) {\n return true;\n }\n i++;\n continue;\n }\n }\n }\n bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;\n if (bytes > limit) {\n return true;\n }\n }\n return bytes > limit;\n}\n//# sourceMappingURL=byteCounter.js.map","import ExpoSecureStore from './ExpoSecureStore';\nimport { byteCountOverLimit, VALUE_BYTES_LIMIT } from './byteCounter';\n// @needsAudit\n/**\n * The data in the keychain item cannot be accessed after a restart until the device has been\n * unlocked once by the user. This may be useful if you need to access the item when the phone\n * is locked.\n */\nexport const AFTER_FIRST_UNLOCK = ExpoSecureStore.AFTER_FIRST_UNLOCK;\n// @needsAudit\n/**\n * Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring\n * from a backup.\n */\nexport const AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY = ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * The data in the keychain item can always be accessed regardless of whether the device is locked.\n * This is the least secure option.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.\n */\nexport const ALWAYS = ExpoSecureStore.ALWAYS;\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to\n * store an entry. If the user removes their passcode, the entry will be deleted.\n */\nexport const WHEN_PASSCODE_SET_THIS_DEVICE_ONLY = ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.\n */\nexport const ALWAYS_THIS_DEVICE_ONLY = ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * The data in the keychain item can be accessed only while the device is unlocked by the user.\n */\nexport const WHEN_UNLOCKED = ExpoSecureStore.WHEN_UNLOCKED;\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from\n * a backup.\n */\nexport const WHEN_UNLOCKED_THIS_DEVICE_ONLY = ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * Returns whether the SecureStore API is enabled on the current device. This does not check the app\n * permissions.\n *\n * @return Promise which fulfils with a `boolean`, indicating whether the SecureStore API is available\n * on the current device. Currently, this resolves `true` on Android and iOS only.\n */\nexport async function isAvailableAsync() {\n return !!ExpoSecureStore.getValueWithKeyAsync;\n}\n// @needsAudit\n/**\n * Delete the value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if the value can't be deleted.\n */\nexport async function deleteItemAsync(key, options = {}) {\n ensureValidKey(key);\n await ExpoSecureStore.deleteValueWithKeyAsync(key, options);\n}\n// @needsAudit\n/**\n * Reads the stored value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.\n *\n * > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.\n * > After a key has been invalidated, it becomes impossible to read its value.\n * > This only applies to values stored with `requireAuthentication` set to `true`.\n */\nexport async function getItemAsync(key, options = {}) {\n ensureValidKey(key);\n return await ExpoSecureStore.getValueWithKeyAsync(key, options);\n}\n// @needsAudit\n/**\n * Stores a key–value pair.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if value cannot be stored on the device.\n */\nexport async function setItemAsync(key, value, options = {}) {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);\n }\n await ExpoSecureStore.setValueWithKeyAsync(value, key, options);\n}\n/**\n * Stores a key–value pair synchronously.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when the `requireAuthentication` option is set to `true` until the user authenticates.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n */\nexport function setItem(key, value, options = {}) {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);\n }\n return ExpoSecureStore.setValueWithKeySync(value, key, options);\n}\n/**\n * Synchronously reads the stored value associated with the provided key.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when reading a value with `requireAuthentication`\n * > option set to `true` until the user authenticates.\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return Previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated.\n */\nexport function getItem(key, options = {}) {\n ensureValidKey(key);\n return ExpoSecureStore.getValueWithKeySync(key, options);\n}\n/**\n * Checks if the value can be saved with `requireAuthentication` option enabled.\n * @return `true` if the device supports biometric authentication and the enrolled method is sufficiently secure. Otherwise, returns `false`. Always returns false on tvOS.\n * @platform android\n * @platform ios\n */\nexport function canUseBiometricAuthentication() {\n return ExpoSecureStore.canUseBiometricAuthentication();\n}\nfunction ensureValidKey(key) {\n if (!isValidKey(key)) {\n throw new Error(`Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, \".\", \"-\", and \"_\".`);\n }\n}\nfunction isValidKey(key) {\n return typeof key === 'string' && /^[\\w.-]+$/.test(key);\n}\nfunction isValidValue(value) {\n if (typeof value !== 'string') {\n return false;\n }\n if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {\n console.warn(`Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`);\n }\n return true;\n}\n//# sourceMappingURL=SecureStore.js.map","import { useGlobalSearchParams, usePathname, useRouter, type RelativePathString } from 'expo-router'\nimport * as SecureStore from 'expo-secure-store'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { Platform, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'\nimport { ExpoRouterDevToolsProps, SavedRoute } from './interfaces/base'\n\nconst STORAGE_PREFIX = 'expo-router-devtools_'\nconst MAX_HISTORY = 10\n\nconst ExpoRouterDevTools: React.FC<ExpoRouterDevToolsProps> = ({\n position = 'top',\n theme = 'light',\n hideInProduction = true,\n storageKeyPrefix = STORAGE_PREFIX,\n onRouteChange,\n enableHistory = true,\n maxHistory = MAX_HISTORY,\n maxNumOfLines = 3,\n}) => {\n const pathname = usePathname()\n const searchParams = useGlobalSearchParams()\n const router = useRouter()\n\n const [currentRoute, setCurrentRoute] = useState('')\n const [savedRoutes, setSavedRoutes] = useState<SavedRoute[]>([])\n const [routeHistory, setRouteHistory] = useState<string[]>([])\n const [isExpanded, setIsExpanded] = useState(false)\n const [showHistory, setShowHistory] = useState(false)\n\n const SAVED_ROUTES_KEY = `${storageKeyPrefix}saved-routes`\n const HISTORY_KEY = `${storageKeyPrefix}history`\n\n // Build current full route\n useEffect(() => {\n const query = Object.keys(searchParams).length\n ? '?' +\n Object.entries(searchParams)\n .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)\n .join('&')\n : ''\n\n const fullRoute = `${pathname}${query}`\n setCurrentRoute(fullRoute)\n onRouteChange?.(fullRoute)\n }, [pathname, searchParams, onRouteChange])\n\n // Load saved routes and history\n useEffect(() => {\n const loadData = async () => {\n try {\n const savedRoutesData = await SecureStore.getItemAsync(SAVED_ROUTES_KEY)\n if (savedRoutesData) {\n setSavedRoutes(JSON.parse(savedRoutesData))\n }\n\n if (enableHistory) {\n const historyData = await SecureStore.getItemAsync(HISTORY_KEY)\n if (historyData) {\n setRouteHistory(JSON.parse(historyData))\n }\n }\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error loading data:', error)\n }\n }\n\n loadData()\n }, [SAVED_ROUTES_KEY, HISTORY_KEY, enableHistory])\n\n // Update history when route changes\n useEffect(() => {\n if (!enableHistory || !currentRoute) return\n\n const updateHistory = async () => {\n try {\n const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory)\n setRouteHistory(newHistory)\n await SecureStore.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error updating history:', error)\n }\n }\n\n updateHistory()\n }, [currentRoute, enableHistory, maxHistory, HISTORY_KEY])\n\n // Save current route\n const saveRoute = useCallback(async () => {\n const label = `Route ${savedRoutes.length + 1}`\n const newRoute: SavedRoute = {\n route: currentRoute,\n label,\n timestamp: Date.now(),\n }\n\n const updated = [...savedRoutes, newRoute]\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error saving route:', error)\n }\n }, [currentRoute, savedRoutes, SAVED_ROUTES_KEY])\n\n // Navigate to route\n const navigateToRoute = useCallback(\n (route: string) => {\n try {\n router.push(route as RelativePathString)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Navigation error:', error)\n }\n },\n [router]\n )\n\n // Delete saved route\n const deleteSavedRoute = useCallback(\n async (index: number) => {\n const updated = savedRoutes.filter((_, i) => i !== index)\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error deleting route:', error)\n }\n },\n [savedRoutes, SAVED_ROUTES_KEY]\n )\n\n // Clear all data\n const clearAll = useCallback(async () => {\n setSavedRoutes([])\n setRouteHistory([])\n\n try {\n await SecureStore.deleteItemAsync(SAVED_ROUTES_KEY)\n await SecureStore.deleteItemAsync(HISTORY_KEY)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error clearing data:', error)\n }\n }, [SAVED_ROUTES_KEY, HISTORY_KEY])\n\n const isDark = theme === 'dark'\n const styles = createStyles(isDark, position)\n\n // Check if we should render in production\n if (hideInProduction && !__DEV__) {\n return null\n }\n\n return (\n <View style={styles.container}>\n {/* Current route bar */}\n <Pressable onPress={() => setIsExpanded(!isExpanded)} style={styles.routeBar}>\n <Text style={styles.routeText} numberOfLines={maxNumOfLines}>\n 🛣️ {currentRoute || '/'}\n </Text>\n <Text style={styles.expandIcon}>{isExpanded ? '▼' : '▶'}</Text>\n </Pressable>\n\n {/* Expanded controls */}\n {isExpanded && (\n <View style={styles.controls}>\n {/* Action buttons */}\n <View style={styles.buttonRow}>\n <Pressable onPress={saveRoute} style={styles.button}>\n <Text style={styles.buttonText}>Save</Text>\n </Pressable>\n\n {enableHistory && (\n <Pressable onPress={() => setShowHistory(!showHistory)} style={styles.button}>\n <Text style={styles.buttonText}>History</Text>\n </Pressable>\n )}\n\n <Pressable onPress={clearAll} style={[styles.button, styles.dangerButton]}>\n <Text style={styles.buttonText}>Clear</Text>\n </Pressable>\n </View>\n\n {/* History section */}\n {showHistory && enableHistory && routeHistory.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Recent Routes</Text>\n <ScrollView style={styles.listContainer}>\n {routeHistory.map((route, index) => (\n <Pressable\n key={`${route}-${index}`}\n onPress={() => navigateToRoute(route)}\n style={({ pressed }) => [styles.listItem, route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <Text style={styles.listItemText} numberOfLines={1}>\n {route}\n </Text>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n\n {/* Saved routes section */}\n {savedRoutes.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Saved Routes</Text>\n <ScrollView style={styles.listContainer}>\n {savedRoutes.map((saved, index) => (\n <Pressable\n key={`${saved.route}-${index}`}\n onPress={() => navigateToRoute(saved.route)}\n style={({ pressed }) => [styles.savedItem, saved.route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <View style={styles.savedItemContent}>\n <Text style={styles.savedItemLabel}>{saved.label}</Text>\n <Text style={styles.listItemText} numberOfLines={1}>\n {saved.route}\n </Text>\n </View>\n <Pressable\n onPress={(e) => {\n e.stopPropagation?.()\n deleteSavedRoute(index)\n }}\n style={styles.deleteButton}\n >\n <Text style={styles.deleteButtonText}>✕</Text>\n </Pressable>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n </View>\n )}\n </View>\n )\n}\n\nconst createStyles = (isDark: boolean, position: 'top' | 'bottom') => {\n const bgColor = isDark ? '#1a1a1a' : '#ffffff'\n const textColor = isDark ? '#e0e0e0' : '#333333'\n const borderColor = isDark ? '#333333' : '#dddddd'\n const buttonBg = isDark ? '#2563eb' : '#2563eb'\n const secondaryBg = isDark ? '#262626' : '#f5f5f5'\n const pressedBg = isDark ? '#1e40af' : '#dbeafe'\n\n return StyleSheet.create({\n container: {\n backgroundColor: bgColor,\n borderTopWidth: position === 'bottom' ? 1 : 0,\n borderBottomWidth: position === 'top' ? 1 : 0,\n borderColor,\n ...Platform.select({\n ios: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 4,\n },\n android: {\n elevation: 4,\n },\n }),\n },\n selectedItem: {\n backgroundColor: pressedBg,\n borderWidth: 1,\n borderColor: '#2563eb',\n },\n\n routeBar: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: 12,\n paddingHorizontal: 16,\n },\n routeText: {\n flex: 1,\n fontSize: 12,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n expandIcon: {\n fontSize: 16,\n color: textColor,\n marginLeft: 8,\n },\n controls: {\n padding: 12,\n paddingTop: 0,\n },\n buttonRow: {\n flexDirection: 'row',\n gap: 8,\n marginBottom: 12,\n },\n button: {\n flex: 1,\n paddingHorizontal: 12,\n paddingVertical: 8,\n backgroundColor: buttonBg,\n borderRadius: 6,\n alignItems: 'center',\n },\n dangerButton: {\n backgroundColor: '#dc2626',\n },\n buttonText: {\n color: '#ffffff',\n fontSize: 12,\n fontWeight: '600',\n },\n section: {\n marginTop: 12,\n },\n sectionTitle: {\n fontSize: 11,\n fontWeight: '600',\n color: textColor,\n marginBottom: 8,\n textTransform: 'uppercase',\n letterSpacing: 0.5,\n },\n listContainer: {\n maxHeight: 150,\n },\n listItem: {\n padding: 8,\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n },\n listItemPressed: {\n backgroundColor: pressedBg,\n },\n listItemText: {\n fontSize: 11,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n savedItem: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n overflow: 'hidden',\n },\n savedItemContent: {\n flex: 1,\n padding: 8,\n },\n savedItemLabel: {\n fontSize: 10,\n fontWeight: '600',\n color: buttonBg,\n marginBottom: 2,\n },\n deleteButton: {\n padding: 8,\n paddingHorizontal: 12,\n backgroundColor: '#dc2626',\n },\n deleteButtonText: {\n color: '#ffffff',\n fontSize: 14,\n fontWeight: 'bold',\n },\n })\n}\n\nexport default ExpoRouterDevTools\n"],"names":["SecureStore.getItemAsync","SecureStore.setItemAsync","SecureStore.deleteItemAsync","_jsxs","_jsx"],"mappings":";;;;;AAEA;AAEA;;;AAGG;AACH,yBAAe,EAAuC;;ACLtC,SAAA,4BAA4B,CAAC,WAA+B,EAAE,IAAY,EAAA;AACxF,IAAA,OAAO,IAAI,CAAC;AACd;;ACCA;;;;;;;;AAQG;AACG,SAAU,mBAAmB,CAAmB,UAAkB,EAAA;AACtE,IAAA,MAAM,YAAY,GAAG,2BAA2B,CAAa,UAAU,CAAC,CAAC;IAEzE,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,MAAM,IAAI,KAAK,CAAC,8BAA8B,UAAU,CAAA,CAAA,CAAG,CAAC,CAAC;KAC9D;AACD,IAAA,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;;AAMG;AACG,SAAU,2BAA2B,CACzC,UAAkB,EAAA;;AAIlB,IAAA,IAAI;AACF,QAAA,QACE,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,MAAA,CAAA,EAAA,GAAA,UAAU,CAAC,IAAI,0CAAE,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAG,UAAU,CAAC,mCACtC,kBAAkB,CAAC,UAAU,CAAC,MAC9B,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,4BAA4B,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,MAC7E,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,IAAI,EACJ;KACH;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,KAAK,GAAG,CAAU,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,CAA0C,uCAAA,EAAA,UAAU,CAAa,UAAA,EAAA,KAAK,CAAC,OAAO,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AA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,UAAU,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,WAAW;AAC1D,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,eAAe,EAAE,WAAW;AAC5B,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,QAAQ,EAAE,QAAQ;AACnB,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,KAAK;AACjB,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,YAAY,EAAE,CAAC;AAChB,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,OAAO,EAAE,CAAC;AACV,YAAA,iBAAiB,EAAE,EAAE;AACrB,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,MAAM;AACnB,SAAA;AACF,KAAA,CAAC,CAAA;AACJ,CAAC;;;;","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/ExpoRouterDevTools.tsx"],"sourcesContent":["import { useGlobalSearchParams, usePathname, useRouter, type RelativePathString } from 'expo-router'\nimport * as SecureStore from 'expo-secure-store'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { Platform, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'\nimport { ExpoRouterDevToolsProps, SavedRoute } from './interfaces/base'\n\nconst STORAGE_PREFIX = 'expo-router-devtools_'\nconst MAX_HISTORY = 10\n\nconst ExpoRouterDevTools: React.FC<ExpoRouterDevToolsProps> = ({\n position = 'top',\n theme = 'light',\n hideInProduction = true,\n storageKeyPrefix = STORAGE_PREFIX,\n onRouteChange,\n enableHistory = true,\n maxHistory = MAX_HISTORY,\n maxNumOfLines = 3,\n}) => {\n const pathname = usePathname()\n const searchParams = useGlobalSearchParams()\n const router = useRouter()\n\n const [currentRoute, setCurrentRoute] = useState('')\n const [savedRoutes, setSavedRoutes] = useState<SavedRoute[]>([])\n const [routeHistory, setRouteHistory] = useState<string[]>([])\n const [isExpanded, setIsExpanded] = useState(false)\n const [showHistory, setShowHistory] = useState(false)\n\n const SAVED_ROUTES_KEY = `${storageKeyPrefix}saved-routes`\n const HISTORY_KEY = `${storageKeyPrefix}history`\n\n // Build current full route\n useEffect(() => {\n const query = Object.keys(searchParams).length\n ? '?' +\n Object.entries(searchParams)\n .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)\n .join('&')\n : ''\n\n const fullRoute = `${pathname}${query}`\n setCurrentRoute(fullRoute)\n onRouteChange?.(fullRoute)\n }, [pathname, searchParams, onRouteChange])\n\n // Load saved routes and history\n useEffect(() => {\n const loadData = async () => {\n try {\n const savedRoutesData = await SecureStore.getItemAsync(SAVED_ROUTES_KEY)\n if (savedRoutesData) {\n setSavedRoutes(JSON.parse(savedRoutesData))\n }\n\n if (enableHistory) {\n const historyData = await SecureStore.getItemAsync(HISTORY_KEY)\n if (historyData) {\n setRouteHistory(JSON.parse(historyData))\n }\n }\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error loading data:', error)\n }\n }\n\n loadData()\n }, [SAVED_ROUTES_KEY, HISTORY_KEY, enableHistory])\n\n // Update history when route changes\n useEffect(() => {\n if (!enableHistory || !currentRoute) return\n\n const updateHistory = async () => {\n try {\n const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory)\n setRouteHistory(newHistory)\n await SecureStore.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error updating history:', error)\n }\n }\n\n updateHistory()\n }, [currentRoute, enableHistory, maxHistory, HISTORY_KEY])\n\n // Save current route\n const saveRoute = useCallback(async () => {\n const label = `Route ${savedRoutes.length + 1}`\n const newRoute: SavedRoute = {\n route: currentRoute,\n label,\n timestamp: Date.now(),\n }\n\n const updated = [...savedRoutes, newRoute]\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error saving route:', error)\n }\n }, [currentRoute, savedRoutes, SAVED_ROUTES_KEY])\n\n // Navigate to route\n const navigateToRoute = useCallback(\n (route: string) => {\n try {\n router.push(route as RelativePathString)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Navigation error:', error)\n }\n },\n [router]\n )\n\n // Delete saved route\n const deleteSavedRoute = useCallback(\n async (index: number) => {\n const updated = savedRoutes.filter((_, i) => i !== index)\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error deleting route:', error)\n }\n },\n [savedRoutes, SAVED_ROUTES_KEY]\n )\n\n // Clear all data\n const clearAll = useCallback(async () => {\n setSavedRoutes([])\n setRouteHistory([])\n\n try {\n await SecureStore.deleteItemAsync(SAVED_ROUTES_KEY)\n await SecureStore.deleteItemAsync(HISTORY_KEY)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error clearing data:', error)\n }\n }, [SAVED_ROUTES_KEY, HISTORY_KEY])\n\n const isDark = theme === 'dark'\n const styles = createStyles(isDark, position)\n\n // Check if we should render in production\n if (hideInProduction && !__DEV__) {\n return null\n }\n\n return (\n <View style={styles.container}>\n {/* Current route bar */}\n <Pressable onPress={() => setIsExpanded(!isExpanded)} style={styles.routeBar}>\n <Text style={styles.routeText} numberOfLines={maxNumOfLines}>\n 🛣️ {currentRoute || '/'}\n </Text>\n <Text style={styles.expandIcon}>{isExpanded ? '▼' : '▶'}</Text>\n </Pressable>\n\n {/* Expanded controls */}\n {isExpanded && (\n <View style={styles.controls}>\n {/* Action buttons */}\n <View style={styles.buttonRow}>\n <Pressable onPress={saveRoute} style={styles.button}>\n <Text style={styles.buttonText}>Save</Text>\n </Pressable>\n\n {enableHistory && (\n <Pressable onPress={() => setShowHistory(!showHistory)} style={styles.button}>\n <Text style={styles.buttonText}>History</Text>\n </Pressable>\n )}\n\n <Pressable onPress={clearAll} style={[styles.button, styles.dangerButton]}>\n <Text style={styles.buttonText}>Clear</Text>\n </Pressable>\n </View>\n\n {/* History section */}\n {showHistory && enableHistory && routeHistory.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Recent Routes</Text>\n <ScrollView style={styles.listContainer}>\n {routeHistory.map((route, index) => (\n <Pressable\n key={`${route}-${index}`}\n onPress={() => navigateToRoute(route)}\n style={({ pressed }) => [styles.listItem, route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <Text style={styles.listItemText} numberOfLines={1}>\n {route}\n </Text>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n\n {/* Saved routes section */}\n {savedRoutes.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Saved Routes</Text>\n <ScrollView style={styles.listContainer}>\n {savedRoutes.map((saved, index) => (\n <Pressable\n key={`${saved.route}-${index}`}\n onPress={() => navigateToRoute(saved.route)}\n style={({ pressed }) => [styles.savedItem, saved.route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <View style={styles.savedItemContent}>\n <Text style={styles.savedItemLabel}>{saved.label}</Text>\n <Text style={styles.listItemText} numberOfLines={1}>\n {saved.route}\n </Text>\n </View>\n <Pressable\n onPress={(e) => {\n e.stopPropagation?.()\n deleteSavedRoute(index)\n }}\n style={styles.deleteButton}\n >\n <Text style={styles.deleteButtonText}>✕</Text>\n </Pressable>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n </View>\n )}\n </View>\n )\n}\n\nconst createStyles = (isDark: boolean, position: 'top' | 'bottom') => {\n const bgColor = isDark ? '#1a1a1a' : '#ffffff'\n const textColor = isDark ? '#e0e0e0' : '#333333'\n const borderColor = isDark ? '#333333' : '#dddddd'\n const buttonBg = isDark ? '#2563eb' : '#2563eb'\n const secondaryBg = isDark ? '#262626' : '#f5f5f5'\n const pressedBg = isDark ? '#1e40af' : '#dbeafe'\n\n return StyleSheet.create({\n container: {\n backgroundColor: bgColor,\n borderTopWidth: position === 'bottom' ? 1 : 0,\n borderBottomWidth: position === 'top' ? 1 : 0,\n borderColor,\n ...Platform.select({\n ios: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 4,\n },\n android: {\n elevation: 4,\n },\n }),\n },\n selectedItem: {\n backgroundColor: pressedBg,\n borderWidth: 1,\n borderColor: '#2563eb',\n },\n\n routeBar: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: 12,\n paddingHorizontal: 16,\n },\n routeText: {\n flex: 1,\n fontSize: 12,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n expandIcon: {\n fontSize: 16,\n color: textColor,\n marginLeft: 8,\n },\n controls: {\n padding: 12,\n paddingTop: 0,\n },\n buttonRow: {\n flexDirection: 'row',\n gap: 8,\n marginBottom: 12,\n },\n button: {\n flex: 1,\n paddingHorizontal: 12,\n paddingVertical: 8,\n backgroundColor: buttonBg,\n borderRadius: 6,\n alignItems: 'center',\n },\n dangerButton: {\n backgroundColor: '#dc2626',\n },\n buttonText: {\n color: '#ffffff',\n fontSize: 12,\n fontWeight: '600',\n },\n section: {\n marginTop: 12,\n },\n sectionTitle: {\n fontSize: 11,\n fontWeight: '600',\n color: textColor,\n marginBottom: 8,\n textTransform: 'uppercase',\n letterSpacing: 0.5,\n },\n listContainer: {\n maxHeight: 150,\n },\n listItem: {\n padding: 8,\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n },\n listItemPressed: {\n backgroundColor: pressedBg,\n },\n listItemText: {\n fontSize: 11,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n savedItem: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n overflow: 'hidden',\n },\n savedItemContent: {\n flex: 1,\n padding: 8,\n },\n savedItemLabel: {\n fontSize: 10,\n fontWeight: '600',\n color: buttonBg,\n marginBottom: 2,\n },\n deleteButton: {\n padding: 8,\n paddingHorizontal: 12,\n backgroundColor: '#dc2626',\n },\n deleteButtonText: {\n color: '#ffffff',\n fontSize: 14,\n fontWeight: 'bold',\n },\n })\n}\n\nexport default ExpoRouterDevTools\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAMA,MAAM,cAAc,GAAG,uBAAuB,CAAA;AAC9C,MAAM,WAAW,GAAG,EAAE,CAAA;AAEtB,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,OAAO,EACf,gBAAgB,GAAG,IAAI,EACvB,gBAAgB,GAAG,cAAc,EACjC,aAAa,EACb,aAAa,GAAG,IAAI,EACpB,UAAU,GAAG,WAAW,EACxB,aAAa,GAAG,CAAC,GAClB,KAAI;AACH,IAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;AAC9B,IAAA,MAAM,YAAY,GAAG,qBAAqB,EAAE,CAAA;AAC5C,IAAA,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAE1B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IACpD,MAAM,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AAE,CAAC;AACf,YAAA,YAAY,EAAE,CAAC;AAChB,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,UAAU,EAAE,QAAQ,CAAC,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,WAAW;AAC1D,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,eAAe,EAAE,WAAW;AAC5B,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,QAAQ,EAAE,QAAQ;AACnB,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,KAAK;AACjB,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,YAAY,EAAE,CAAC;AAChB,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,OAAO,EAAE,CAAC;AACV,YAAA,iBAAiB,EAAE,EAAE;AACrB,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,MAAM;AACnB,SAAA;AACF,KAAA,CAAC,CAAA;AACJ,CAAC;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,196 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var expoRouter = require('expo-router');
|
|
5
|
-
var
|
|
5
|
+
var SecureStore = require('expo-secure-store');
|
|
6
6
|
var react = require('react');
|
|
7
|
+
var reactNative = require('react-native');
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*
|
|
24
|
-
* @param moduleName Name of the requested native module.
|
|
25
|
-
* @returns Object representing the native module.
|
|
26
|
-
* @throws Error when there is no native module with given name.
|
|
27
|
-
*/
|
|
28
|
-
function requireNativeModule(moduleName) {
|
|
29
|
-
const nativeModule = requireOptionalNativeModule(moduleName);
|
|
30
|
-
if (!nativeModule) {
|
|
31
|
-
throw new Error(`Cannot find native module '${moduleName}'`);
|
|
32
|
-
}
|
|
33
|
-
return nativeModule;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Imports the native module registered with the given name. The same as `requireNativeModule`,
|
|
37
|
-
* but returns `null` when the module cannot be found instead of throwing an error.
|
|
38
|
-
*
|
|
39
|
-
* @param moduleName Name of the requested native module.
|
|
40
|
-
* @returns Object representing the native module or `null` when it cannot be found.
|
|
41
|
-
*/
|
|
42
|
-
function requireOptionalNativeModule(moduleName) {
|
|
43
|
-
var _a, _b, _c, _d, _e;
|
|
44
|
-
try {
|
|
45
|
-
return ((_e = (_d = (_c = (_b = (_a = globalThis.expo) === null || _a === void 0 ? void 0 : _a.modules) === null || _b === void 0 ? void 0 : _b[moduleName]) !== null && _c !== void 0 ? _c : NativeModulesProxy[moduleName]) !== null && _d !== void 0 ? _d : createTurboModuleToExpoProxy(reactNative.TurboModuleRegistry.get(moduleName), moduleName)) !== null && _e !== void 0 ? _e : null);
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
const error = e;
|
|
49
|
-
console.warn(`An error occurred while requiring the '${moduleName}' module: ${error.message}`);
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
var ExpoSecureStore = requireNativeModule('ExpoSecureStore');
|
|
55
|
-
|
|
56
|
-
const VALUE_BYTES_LIMIT = 2048;
|
|
57
|
-
// note this probably could be JS-engine dependent
|
|
58
|
-
// inspired by https://stackoverflow.com/a/39488643
|
|
59
|
-
function byteCountOverLimit(value, limit) {
|
|
60
|
-
let bytes = 0;
|
|
61
|
-
for (let i = 0; i < value.length; i++) {
|
|
62
|
-
const codePoint = value.charCodeAt(i);
|
|
63
|
-
// Lone surrogates cannot be passed to encodeURI
|
|
64
|
-
if (codePoint >= 0xd800 && codePoint < 0xe000) {
|
|
65
|
-
if (codePoint < 0xdc00 && i + 1 < value.length) {
|
|
66
|
-
const next = value.charCodeAt(i + 1);
|
|
67
|
-
if (next >= 0xdc00 && next < 0xe000) {
|
|
68
|
-
bytes += 4;
|
|
69
|
-
if (bytes > limit) {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
i++;
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;
|
|
78
|
-
if (bytes > limit) {
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return bytes > limit;
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
83
24
|
}
|
|
84
25
|
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The data in the keychain item cannot be accessed after a restart until the device has been
|
|
88
|
-
* unlocked once by the user. This may be useful if you need to access the item when the phone
|
|
89
|
-
* is locked.
|
|
90
|
-
*/
|
|
91
|
-
ExpoSecureStore.AFTER_FIRST_UNLOCK;
|
|
92
|
-
// @needsAudit
|
|
93
|
-
/**
|
|
94
|
-
* Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring
|
|
95
|
-
* from a backup.
|
|
96
|
-
*/
|
|
97
|
-
ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;
|
|
98
|
-
// @needsAudit
|
|
99
|
-
/**
|
|
100
|
-
* The data in the keychain item can always be accessed regardless of whether the device is locked.
|
|
101
|
-
* This is the least secure option.
|
|
102
|
-
*
|
|
103
|
-
* @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.
|
|
104
|
-
*/
|
|
105
|
-
ExpoSecureStore.ALWAYS;
|
|
106
|
-
// @needsAudit
|
|
107
|
-
/**
|
|
108
|
-
* Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to
|
|
109
|
-
* store an entry. If the user removes their passcode, the entry will be deleted.
|
|
110
|
-
*/
|
|
111
|
-
ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;
|
|
112
|
-
// @needsAudit
|
|
113
|
-
/**
|
|
114
|
-
* Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.
|
|
115
|
-
*
|
|
116
|
-
* @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.
|
|
117
|
-
*/
|
|
118
|
-
ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;
|
|
119
|
-
// @needsAudit
|
|
120
|
-
/**
|
|
121
|
-
* The data in the keychain item can be accessed only while the device is unlocked by the user.
|
|
122
|
-
*/
|
|
123
|
-
ExpoSecureStore.WHEN_UNLOCKED;
|
|
124
|
-
// @needsAudit
|
|
125
|
-
/**
|
|
126
|
-
* Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from
|
|
127
|
-
* a backup.
|
|
128
|
-
*/
|
|
129
|
-
ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;
|
|
130
|
-
// @needsAudit
|
|
131
|
-
/**
|
|
132
|
-
* Delete the value associated with the provided key.
|
|
133
|
-
*
|
|
134
|
-
* @param key The key that was used to store the associated value.
|
|
135
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
136
|
-
*
|
|
137
|
-
* @return A promise that rejects if the value can't be deleted.
|
|
138
|
-
*/
|
|
139
|
-
async function deleteItemAsync(key, options = {}) {
|
|
140
|
-
ensureValidKey(key);
|
|
141
|
-
await ExpoSecureStore.deleteValueWithKeyAsync(key, options);
|
|
142
|
-
}
|
|
143
|
-
// @needsAudit
|
|
144
|
-
/**
|
|
145
|
-
* Reads the stored value associated with the provided key.
|
|
146
|
-
*
|
|
147
|
-
* @param key The key that was used to store the associated value.
|
|
148
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
149
|
-
*
|
|
150
|
-
* @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry
|
|
151
|
-
* for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.
|
|
152
|
-
*
|
|
153
|
-
* > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.
|
|
154
|
-
* > After a key has been invalidated, it becomes impossible to read its value.
|
|
155
|
-
* > This only applies to values stored with `requireAuthentication` set to `true`.
|
|
156
|
-
*/
|
|
157
|
-
async function getItemAsync(key, options = {}) {
|
|
158
|
-
ensureValidKey(key);
|
|
159
|
-
return await ExpoSecureStore.getValueWithKeyAsync(key, options);
|
|
160
|
-
}
|
|
161
|
-
// @needsAudit
|
|
162
|
-
/**
|
|
163
|
-
* Stores a key–value pair.
|
|
164
|
-
*
|
|
165
|
-
* @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.
|
|
166
|
-
* @param value The value to store. Size limit is 2048 bytes.
|
|
167
|
-
* @param options An [`SecureStoreOptions`](#securestoreoptions) object.
|
|
168
|
-
*
|
|
169
|
-
* @return A promise that rejects if value cannot be stored on the device.
|
|
170
|
-
*/
|
|
171
|
-
async function setItemAsync(key, value, options = {}) {
|
|
172
|
-
ensureValidKey(key);
|
|
173
|
-
if (!isValidValue(value)) {
|
|
174
|
-
throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);
|
|
175
|
-
}
|
|
176
|
-
await ExpoSecureStore.setValueWithKeyAsync(value, key, options);
|
|
177
|
-
}
|
|
178
|
-
function ensureValidKey(key) {
|
|
179
|
-
if (!isValidKey(key)) {
|
|
180
|
-
throw new Error(`Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, ".", "-", and "_".`);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
function isValidKey(key) {
|
|
184
|
-
return typeof key === 'string' && /^[\w.-]+$/.test(key);
|
|
185
|
-
}
|
|
186
|
-
function isValidValue(value) {
|
|
187
|
-
if (typeof value !== 'string') {
|
|
188
|
-
return false;
|
|
189
|
-
}
|
|
190
|
-
if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {
|
|
191
|
-
console.warn(`Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`);
|
|
192
|
-
}
|
|
193
|
-
return true;
|
|
194
|
-
}
|
|
26
|
+
var SecureStore__namespace = /*#__PURE__*/_interopNamespaceDefault(SecureStore);
|
|
195
27
|
|
|
196
28
|
const STORAGE_PREFIX = 'expo-router-devtools_';
|
|
197
29
|
const MAX_HISTORY = 10;
|
|
@@ -222,12 +54,12 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
222
54
|
react.useEffect(() => {
|
|
223
55
|
const loadData = async () => {
|
|
224
56
|
try {
|
|
225
|
-
const savedRoutesData = await getItemAsync(SAVED_ROUTES_KEY);
|
|
57
|
+
const savedRoutesData = await SecureStore__namespace.getItemAsync(SAVED_ROUTES_KEY);
|
|
226
58
|
if (savedRoutesData) {
|
|
227
59
|
setSavedRoutes(JSON.parse(savedRoutesData));
|
|
228
60
|
}
|
|
229
61
|
if (enableHistory) {
|
|
230
|
-
const historyData = await getItemAsync(HISTORY_KEY);
|
|
62
|
+
const historyData = await SecureStore__namespace.getItemAsync(HISTORY_KEY);
|
|
231
63
|
if (historyData) {
|
|
232
64
|
setRouteHistory(JSON.parse(historyData));
|
|
233
65
|
}
|
|
@@ -247,7 +79,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
247
79
|
try {
|
|
248
80
|
const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory);
|
|
249
81
|
setRouteHistory(newHistory);
|
|
250
|
-
await setItemAsync(HISTORY_KEY, JSON.stringify(newHistory));
|
|
82
|
+
await SecureStore__namespace.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory));
|
|
251
83
|
}
|
|
252
84
|
catch (error) {
|
|
253
85
|
console.error('[ExpoRouterDevTools] Error updating history:', error);
|
|
@@ -266,7 +98,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
266
98
|
const updated = [...savedRoutes, newRoute];
|
|
267
99
|
setSavedRoutes(updated);
|
|
268
100
|
try {
|
|
269
|
-
await setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
101
|
+
await SecureStore__namespace.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
270
102
|
}
|
|
271
103
|
catch (error) {
|
|
272
104
|
console.error('[ExpoRouterDevTools] Error saving route:', error);
|
|
@@ -286,7 +118,7 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
286
118
|
const updated = savedRoutes.filter((_, i) => i !== index);
|
|
287
119
|
setSavedRoutes(updated);
|
|
288
120
|
try {
|
|
289
|
-
await setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
121
|
+
await SecureStore__namespace.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated));
|
|
290
122
|
}
|
|
291
123
|
catch (error) {
|
|
292
124
|
console.error('[ExpoRouterDevTools] Error deleting route:', error);
|
|
@@ -297,8 +129,8 @@ const ExpoRouterDevTools = ({ position = 'top', theme = 'light', hideInProductio
|
|
|
297
129
|
setSavedRoutes([]);
|
|
298
130
|
setRouteHistory([]);
|
|
299
131
|
try {
|
|
300
|
-
await deleteItemAsync(SAVED_ROUTES_KEY);
|
|
301
|
-
await deleteItemAsync(HISTORY_KEY);
|
|
132
|
+
await SecureStore__namespace.deleteItemAsync(SAVED_ROUTES_KEY);
|
|
133
|
+
await SecureStore__namespace.deleteItemAsync(HISTORY_KEY);
|
|
302
134
|
}
|
|
303
135
|
catch (error) {
|
|
304
136
|
console.error('[ExpoRouterDevTools] Error clearing data:', error);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../node_modules/expo-modules-core/src/NativeModulesProxy.ts","../node_modules/expo-modules-core/src/TurboModuleToExpoModuleProxy.ts","../node_modules/expo-modules-core/src/requireNativeModule.ts","../node_modules/expo-secure-store/build/ExpoSecureStore.js","../node_modules/expo-secure-store/build/byteCounter.js","../node_modules/expo-secure-store/build/SecureStore.js","../src/ExpoRouterDevTools.tsx"],"sourcesContent":["import type { ProxyNativeModule } from './NativeModulesProxy.types';\n\n// We default to an empty object shim wherever we don't have an environment-specific implementation\n\n/**\n * @deprecated `NativeModulesProxy` is deprecated and might be removed in the future releases.\n * Use `requireNativeModule` or `requireOptionalNativeModule` instead.\n */\nexport default {} as Record<string, ProxyNativeModule>;\n","// Copyright © 2024 650 Industries.\nimport type { TurboModule } from 'react-native';\n\nexport function createTurboModuleToExpoProxy(turboModule: TurboModule | null, name: string) {\n return null;\n}\n","import { TurboModuleRegistry } from 'react-native';\n\nimport NativeModulesProxy from './NativeModulesProxy';\nimport { createTurboModuleToExpoProxy } from './TurboModuleToExpoModuleProxy';\nimport { ensureNativeModulesAreInstalled } from './ensureNativeModulesAreInstalled';\n\n/**\n * Imports the native module registered with given name. In the first place it tries to load\n * the module installed through the JSI host object and then falls back to the bridge proxy module.\n * Notice that the modules loaded from the proxy may not support some features like synchronous functions.\n *\n * @param moduleName Name of the requested native module.\n * @returns Object representing the native module.\n * @throws Error when there is no native module with given name.\n */\nexport function requireNativeModule<ModuleType = any>(moduleName: string): ModuleType {\n const nativeModule = requireOptionalNativeModule<ModuleType>(moduleName);\n\n if (!nativeModule) {\n throw new Error(`Cannot find native module '${moduleName}'`);\n }\n return nativeModule;\n}\n\n/**\n * Imports the native module registered with the given name. The same as `requireNativeModule`,\n * but returns `null` when the module cannot be found instead of throwing an error.\n *\n * @param moduleName Name of the requested native module.\n * @returns Object representing the native module or `null` when it cannot be found.\n */\nexport function requireOptionalNativeModule<ModuleType = any>(\n moduleName: string\n): ModuleType | null {\n ensureNativeModulesAreInstalled();\n\n try {\n return (\n globalThis.expo?.modules?.[moduleName] ??\n NativeModulesProxy[moduleName] ??\n createTurboModuleToExpoProxy(TurboModuleRegistry.get(moduleName), moduleName) ??\n null\n );\n } catch (e) {\n const error = e as Error;\n console.warn(`An error occurred while requiring the '${moduleName}' module: ${error.message}`);\n return null;\n }\n}\n","import { requireNativeModule } from 'expo-modules-core';\nexport default requireNativeModule('ExpoSecureStore');\n//# sourceMappingURL=ExpoSecureStore.js.map","export const VALUE_BYTES_LIMIT = 2048;\n// note this probably could be JS-engine dependent\n// inspired by https://stackoverflow.com/a/39488643\nexport function byteCountOverLimit(value, limit) {\n let bytes = 0;\n for (let i = 0; i < value.length; i++) {\n const codePoint = value.charCodeAt(i);\n // Lone surrogates cannot be passed to encodeURI\n if (codePoint >= 0xd800 && codePoint < 0xe000) {\n if (codePoint < 0xdc00 && i + 1 < value.length) {\n const next = value.charCodeAt(i + 1);\n if (next >= 0xdc00 && next < 0xe000) {\n bytes += 4;\n if (bytes > limit) {\n return true;\n }\n i++;\n continue;\n }\n }\n }\n bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;\n if (bytes > limit) {\n return true;\n }\n }\n return bytes > limit;\n}\n//# sourceMappingURL=byteCounter.js.map","import ExpoSecureStore from './ExpoSecureStore';\nimport { byteCountOverLimit, VALUE_BYTES_LIMIT } from './byteCounter';\n// @needsAudit\n/**\n * The data in the keychain item cannot be accessed after a restart until the device has been\n * unlocked once by the user. This may be useful if you need to access the item when the phone\n * is locked.\n */\nexport const AFTER_FIRST_UNLOCK = ExpoSecureStore.AFTER_FIRST_UNLOCK;\n// @needsAudit\n/**\n * Similar to `AFTER_FIRST_UNLOCK`, except the entry is not migrated to a new device when restoring\n * from a backup.\n */\nexport const AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY = ExpoSecureStore.AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * The data in the keychain item can always be accessed regardless of whether the device is locked.\n * This is the least secure option.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK`.\n */\nexport const ALWAYS = ExpoSecureStore.ALWAYS;\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED_THIS_DEVICE_ONLY`, except the user must have set a passcode in order to\n * store an entry. If the user removes their passcode, the entry will be deleted.\n */\nexport const WHEN_PASSCODE_SET_THIS_DEVICE_ONLY = ExpoSecureStore.WHEN_PASSCODE_SET_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * Similar to `ALWAYS`, except the entry is not migrated to a new device when restoring from a backup.\n *\n * @deprecated Use an accessibility level that provides some user protection, such as `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`.\n */\nexport const ALWAYS_THIS_DEVICE_ONLY = ExpoSecureStore.ALWAYS_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * The data in the keychain item can be accessed only while the device is unlocked by the user.\n */\nexport const WHEN_UNLOCKED = ExpoSecureStore.WHEN_UNLOCKED;\n// @needsAudit\n/**\n * Similar to `WHEN_UNLOCKED`, except the entry is not migrated to a new device when restoring from\n * a backup.\n */\nexport const WHEN_UNLOCKED_THIS_DEVICE_ONLY = ExpoSecureStore.WHEN_UNLOCKED_THIS_DEVICE_ONLY;\n// @needsAudit\n/**\n * Returns whether the SecureStore API is enabled on the current device. This does not check the app\n * permissions.\n *\n * @return Promise which fulfils with a `boolean`, indicating whether the SecureStore API is available\n * on the current device. Currently, this resolves `true` on Android and iOS only.\n */\nexport async function isAvailableAsync() {\n return !!ExpoSecureStore.getValueWithKeyAsync;\n}\n// @needsAudit\n/**\n * Delete the value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if the value can't be deleted.\n */\nexport async function deleteItemAsync(key, options = {}) {\n ensureValidKey(key);\n await ExpoSecureStore.deleteValueWithKeyAsync(key, options);\n}\n// @needsAudit\n/**\n * Reads the stored value associated with the provided key.\n *\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that resolves to the previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated. It rejects if an error occurs while retrieving the value.\n *\n * > Keys are invalidated by the system when biometrics change, such as adding a new fingerprint or changing the face profile used for face recognition.\n * > After a key has been invalidated, it becomes impossible to read its value.\n * > This only applies to values stored with `requireAuthentication` set to `true`.\n */\nexport async function getItemAsync(key, options = {}) {\n ensureValidKey(key);\n return await ExpoSecureStore.getValueWithKeyAsync(key, options);\n}\n// @needsAudit\n/**\n * Stores a key–value pair.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return A promise that rejects if value cannot be stored on the device.\n */\nexport async function setItemAsync(key, value, options = {}) {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);\n }\n await ExpoSecureStore.setValueWithKeyAsync(value, key, options);\n}\n/**\n * Stores a key–value pair synchronously.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when the `requireAuthentication` option is set to `true` until the user authenticates.\n *\n * @param key The key to associate with the stored value. Keys may contain alphanumeric characters, `.`, `-`, and `_`.\n * @param value The value to store. Size limit is 2048 bytes.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n */\nexport function setItem(key, value, options = {}) {\n ensureValidKey(key);\n if (!isValidValue(value)) {\n throw new Error(`Invalid value provided to SecureStore. Values must be strings; consider JSON-encoding your values if they are serializable.`);\n }\n return ExpoSecureStore.setValueWithKeySync(value, key, options);\n}\n/**\n * Synchronously reads the stored value associated with the provided key.\n * > **Note:** This function blocks the JavaScript thread, so the application may not be interactive when reading a value with `requireAuthentication`\n * > option set to `true` until the user authenticates.\n * @param key The key that was used to store the associated value.\n * @param options An [`SecureStoreOptions`](#securestoreoptions) object.\n *\n * @return Previously stored value. It resolves with `null` if there is no entry\n * for the given key or if the key has been invalidated.\n */\nexport function getItem(key, options = {}) {\n ensureValidKey(key);\n return ExpoSecureStore.getValueWithKeySync(key, options);\n}\n/**\n * Checks if the value can be saved with `requireAuthentication` option enabled.\n * @return `true` if the device supports biometric authentication and the enrolled method is sufficiently secure. Otherwise, returns `false`. Always returns false on tvOS.\n * @platform android\n * @platform ios\n */\nexport function canUseBiometricAuthentication() {\n return ExpoSecureStore.canUseBiometricAuthentication();\n}\nfunction ensureValidKey(key) {\n if (!isValidKey(key)) {\n throw new Error(`Invalid key provided to SecureStore. Keys must not be empty and contain only alphanumeric characters, \".\", \"-\", and \"_\".`);\n }\n}\nfunction isValidKey(key) {\n return typeof key === 'string' && /^[\\w.-]+$/.test(key);\n}\nfunction isValidValue(value) {\n if (typeof value !== 'string') {\n return false;\n }\n if (byteCountOverLimit(value, VALUE_BYTES_LIMIT)) {\n console.warn(`Value being stored in SecureStore is larger than ${VALUE_BYTES_LIMIT} bytes and it may not be stored successfully. In a future SDK version, this call may throw an error.`);\n }\n return true;\n}\n//# sourceMappingURL=SecureStore.js.map","import { useGlobalSearchParams, usePathname, useRouter, type RelativePathString } from 'expo-router'\nimport * as SecureStore from 'expo-secure-store'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { Platform, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'\nimport { ExpoRouterDevToolsProps, SavedRoute } from './interfaces/base'\n\nconst STORAGE_PREFIX = 'expo-router-devtools_'\nconst MAX_HISTORY = 10\n\nconst ExpoRouterDevTools: React.FC<ExpoRouterDevToolsProps> = ({\n position = 'top',\n theme = 'light',\n hideInProduction = true,\n storageKeyPrefix = STORAGE_PREFIX,\n onRouteChange,\n enableHistory = true,\n maxHistory = MAX_HISTORY,\n maxNumOfLines = 3,\n}) => {\n const pathname = usePathname()\n const searchParams = useGlobalSearchParams()\n const router = useRouter()\n\n const [currentRoute, setCurrentRoute] = useState('')\n const [savedRoutes, setSavedRoutes] = useState<SavedRoute[]>([])\n const [routeHistory, setRouteHistory] = useState<string[]>([])\n const [isExpanded, setIsExpanded] = useState(false)\n const [showHistory, setShowHistory] = useState(false)\n\n const SAVED_ROUTES_KEY = `${storageKeyPrefix}saved-routes`\n const HISTORY_KEY = `${storageKeyPrefix}history`\n\n // Build current full route\n useEffect(() => {\n const query = Object.keys(searchParams).length\n ? '?' +\n Object.entries(searchParams)\n .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)\n .join('&')\n : ''\n\n const fullRoute = `${pathname}${query}`\n setCurrentRoute(fullRoute)\n onRouteChange?.(fullRoute)\n }, [pathname, searchParams, onRouteChange])\n\n // Load saved routes and history\n useEffect(() => {\n const loadData = async () => {\n try {\n const savedRoutesData = await SecureStore.getItemAsync(SAVED_ROUTES_KEY)\n if (savedRoutesData) {\n setSavedRoutes(JSON.parse(savedRoutesData))\n }\n\n if (enableHistory) {\n const historyData = await SecureStore.getItemAsync(HISTORY_KEY)\n if (historyData) {\n setRouteHistory(JSON.parse(historyData))\n }\n }\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error loading data:', error)\n }\n }\n\n loadData()\n }, [SAVED_ROUTES_KEY, HISTORY_KEY, enableHistory])\n\n // Update history when route changes\n useEffect(() => {\n if (!enableHistory || !currentRoute) return\n\n const updateHistory = async () => {\n try {\n const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory)\n setRouteHistory(newHistory)\n await SecureStore.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error updating history:', error)\n }\n }\n\n updateHistory()\n }, [currentRoute, enableHistory, maxHistory, HISTORY_KEY])\n\n // Save current route\n const saveRoute = useCallback(async () => {\n const label = `Route ${savedRoutes.length + 1}`\n const newRoute: SavedRoute = {\n route: currentRoute,\n label,\n timestamp: Date.now(),\n }\n\n const updated = [...savedRoutes, newRoute]\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error saving route:', error)\n }\n }, [currentRoute, savedRoutes, SAVED_ROUTES_KEY])\n\n // Navigate to route\n const navigateToRoute = useCallback(\n (route: string) => {\n try {\n router.push(route as RelativePathString)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Navigation error:', error)\n }\n },\n [router]\n )\n\n // Delete saved route\n const deleteSavedRoute = useCallback(\n async (index: number) => {\n const updated = savedRoutes.filter((_, i) => i !== index)\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error deleting route:', error)\n }\n },\n [savedRoutes, SAVED_ROUTES_KEY]\n )\n\n // Clear all data\n const clearAll = useCallback(async () => {\n setSavedRoutes([])\n setRouteHistory([])\n\n try {\n await SecureStore.deleteItemAsync(SAVED_ROUTES_KEY)\n await SecureStore.deleteItemAsync(HISTORY_KEY)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error clearing data:', error)\n }\n }, [SAVED_ROUTES_KEY, HISTORY_KEY])\n\n const isDark = theme === 'dark'\n const styles = createStyles(isDark, position)\n\n // Check if we should render in production\n if (hideInProduction && !__DEV__) {\n return null\n }\n\n return (\n <View style={styles.container}>\n {/* Current route bar */}\n <Pressable onPress={() => setIsExpanded(!isExpanded)} style={styles.routeBar}>\n <Text style={styles.routeText} numberOfLines={maxNumOfLines}>\n 🛣️ {currentRoute || '/'}\n </Text>\n <Text style={styles.expandIcon}>{isExpanded ? '▼' : '▶'}</Text>\n </Pressable>\n\n {/* Expanded controls */}\n {isExpanded && (\n <View style={styles.controls}>\n {/* Action buttons */}\n <View style={styles.buttonRow}>\n <Pressable onPress={saveRoute} style={styles.button}>\n <Text style={styles.buttonText}>Save</Text>\n </Pressable>\n\n {enableHistory && (\n <Pressable onPress={() => setShowHistory(!showHistory)} style={styles.button}>\n <Text style={styles.buttonText}>History</Text>\n </Pressable>\n )}\n\n <Pressable onPress={clearAll} style={[styles.button, styles.dangerButton]}>\n <Text style={styles.buttonText}>Clear</Text>\n </Pressable>\n </View>\n\n {/* History section */}\n {showHistory && enableHistory && routeHistory.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Recent Routes</Text>\n <ScrollView style={styles.listContainer}>\n {routeHistory.map((route, index) => (\n <Pressable\n key={`${route}-${index}`}\n onPress={() => navigateToRoute(route)}\n style={({ pressed }) => [styles.listItem, route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <Text style={styles.listItemText} numberOfLines={1}>\n {route}\n </Text>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n\n {/* Saved routes section */}\n {savedRoutes.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Saved Routes</Text>\n <ScrollView style={styles.listContainer}>\n {savedRoutes.map((saved, index) => (\n <Pressable\n key={`${saved.route}-${index}`}\n onPress={() => navigateToRoute(saved.route)}\n style={({ pressed }) => [styles.savedItem, saved.route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <View style={styles.savedItemContent}>\n <Text style={styles.savedItemLabel}>{saved.label}</Text>\n <Text style={styles.listItemText} numberOfLines={1}>\n {saved.route}\n </Text>\n </View>\n <Pressable\n onPress={(e) => {\n e.stopPropagation?.()\n deleteSavedRoute(index)\n }}\n style={styles.deleteButton}\n >\n <Text style={styles.deleteButtonText}>✕</Text>\n </Pressable>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n </View>\n )}\n </View>\n )\n}\n\nconst createStyles = (isDark: boolean, position: 'top' | 'bottom') => {\n const bgColor = isDark ? '#1a1a1a' : '#ffffff'\n const textColor = isDark ? '#e0e0e0' : '#333333'\n const borderColor = isDark ? '#333333' : '#dddddd'\n const buttonBg = isDark ? '#2563eb' : '#2563eb'\n const secondaryBg = isDark ? '#262626' : '#f5f5f5'\n const pressedBg = isDark ? '#1e40af' : '#dbeafe'\n\n return StyleSheet.create({\n container: {\n backgroundColor: bgColor,\n borderTopWidth: position === 'bottom' ? 1 : 0,\n borderBottomWidth: position === 'top' ? 1 : 0,\n borderColor,\n ...Platform.select({\n ios: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 4,\n },\n android: {\n elevation: 4,\n },\n }),\n },\n selectedItem: {\n backgroundColor: pressedBg,\n borderWidth: 1,\n borderColor: '#2563eb',\n },\n\n routeBar: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: 12,\n paddingHorizontal: 16,\n },\n routeText: {\n flex: 1,\n fontSize: 12,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n expandIcon: {\n fontSize: 16,\n color: textColor,\n marginLeft: 8,\n },\n controls: {\n padding: 12,\n paddingTop: 0,\n },\n buttonRow: {\n flexDirection: 'row',\n gap: 8,\n marginBottom: 12,\n },\n button: {\n flex: 1,\n paddingHorizontal: 12,\n paddingVertical: 8,\n backgroundColor: buttonBg,\n borderRadius: 6,\n alignItems: 'center',\n },\n dangerButton: {\n backgroundColor: '#dc2626',\n },\n buttonText: {\n color: '#ffffff',\n fontSize: 12,\n fontWeight: '600',\n },\n section: {\n marginTop: 12,\n },\n sectionTitle: {\n fontSize: 11,\n fontWeight: '600',\n color: textColor,\n marginBottom: 8,\n textTransform: 'uppercase',\n letterSpacing: 0.5,\n },\n listContainer: {\n maxHeight: 150,\n },\n listItem: {\n padding: 8,\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n },\n listItemPressed: {\n backgroundColor: pressedBg,\n },\n listItemText: {\n fontSize: 11,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n savedItem: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n overflow: 'hidden',\n },\n savedItemContent: {\n flex: 1,\n padding: 8,\n },\n savedItemLabel: {\n fontSize: 10,\n fontWeight: '600',\n color: buttonBg,\n marginBottom: 2,\n },\n deleteButton: {\n padding: 8,\n paddingHorizontal: 12,\n backgroundColor: '#dc2626',\n },\n deleteButtonText: {\n color: '#ffffff',\n fontSize: 14,\n fontWeight: 'bold',\n },\n })\n}\n\nexport default ExpoRouterDevTools\n"],"names":["TurboModuleRegistry","usePathname","useGlobalSearchParams","useRouter","useState","useEffect","SecureStore.getItemAsync","SecureStore.setItemAsync","useCallback","SecureStore.deleteItemAsync","_jsxs","View","Pressable","Text","_jsx","ScrollView","StyleSheet","Platform"],"mappings":";;;;;;;AAEA;AAEA;;;AAGG;AACH,yBAAe,EAAuC;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,QAAQ,EAAE,EAAE;AACZ,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,UAAU,EAAEA,oBAAQ,CAAC,EAAE,KAAK,KAAK,GAAG,OAAO,GAAG,WAAW;AAC1D,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,eAAe,EAAE,WAAW;AAC5B,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,QAAQ,EAAE,QAAQ;AACnB,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,KAAK;AACjB,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,YAAY,EAAE,CAAC;AAChB,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,OAAO,EAAE,CAAC;AACV,YAAA,iBAAiB,EAAE,EAAE;AACrB,YAAA,eAAe,EAAE,SAAS;AAC3B,SAAA;AACD,QAAA,gBAAgB,EAAE;AAChB,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,UAAU,EAAE,MAAM;AACnB,SAAA;AACF,KAAA,CAAC,CAAA;AACJ,CAAC;;;;","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/ExpoRouterDevTools.tsx"],"sourcesContent":["import { useGlobalSearchParams, usePathname, useRouter, type RelativePathString } from 'expo-router'\nimport * as SecureStore from 'expo-secure-store'\nimport React, { useCallback, useEffect, useState } from 'react'\nimport { Platform, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'\nimport { ExpoRouterDevToolsProps, SavedRoute } from './interfaces/base'\n\nconst STORAGE_PREFIX = 'expo-router-devtools_'\nconst MAX_HISTORY = 10\n\nconst ExpoRouterDevTools: React.FC<ExpoRouterDevToolsProps> = ({\n position = 'top',\n theme = 'light',\n hideInProduction = true,\n storageKeyPrefix = STORAGE_PREFIX,\n onRouteChange,\n enableHistory = true,\n maxHistory = MAX_HISTORY,\n maxNumOfLines = 3,\n}) => {\n const pathname = usePathname()\n const searchParams = useGlobalSearchParams()\n const router = useRouter()\n\n const [currentRoute, setCurrentRoute] = useState('')\n const [savedRoutes, setSavedRoutes] = useState<SavedRoute[]>([])\n const [routeHistory, setRouteHistory] = useState<string[]>([])\n const [isExpanded, setIsExpanded] = useState(false)\n const [showHistory, setShowHistory] = useState(false)\n\n const SAVED_ROUTES_KEY = `${storageKeyPrefix}saved-routes`\n const HISTORY_KEY = `${storageKeyPrefix}history`\n\n // Build current full route\n useEffect(() => {\n const query = Object.keys(searchParams).length\n ? '?' +\n Object.entries(searchParams)\n .map(([key, value]) => `${key}=${encodeURIComponent(String(value))}`)\n .join('&')\n : ''\n\n const fullRoute = `${pathname}${query}`\n setCurrentRoute(fullRoute)\n onRouteChange?.(fullRoute)\n }, [pathname, searchParams, onRouteChange])\n\n // Load saved routes and history\n useEffect(() => {\n const loadData = async () => {\n try {\n const savedRoutesData = await SecureStore.getItemAsync(SAVED_ROUTES_KEY)\n if (savedRoutesData) {\n setSavedRoutes(JSON.parse(savedRoutesData))\n }\n\n if (enableHistory) {\n const historyData = await SecureStore.getItemAsync(HISTORY_KEY)\n if (historyData) {\n setRouteHistory(JSON.parse(historyData))\n }\n }\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error loading data:', error)\n }\n }\n\n loadData()\n }, [SAVED_ROUTES_KEY, HISTORY_KEY, enableHistory])\n\n // Update history when route changes\n useEffect(() => {\n if (!enableHistory || !currentRoute) return\n\n const updateHistory = async () => {\n try {\n const newHistory = [currentRoute, ...routeHistory.filter((r) => r !== currentRoute)].slice(0, maxHistory)\n setRouteHistory(newHistory)\n await SecureStore.setItemAsync(HISTORY_KEY, JSON.stringify(newHistory))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error updating history:', error)\n }\n }\n\n updateHistory()\n }, [currentRoute, enableHistory, maxHistory, HISTORY_KEY])\n\n // Save current route\n const saveRoute = useCallback(async () => {\n const label = `Route ${savedRoutes.length + 1}`\n const newRoute: SavedRoute = {\n route: currentRoute,\n label,\n timestamp: Date.now(),\n }\n\n const updated = [...savedRoutes, newRoute]\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error saving route:', error)\n }\n }, [currentRoute, savedRoutes, SAVED_ROUTES_KEY])\n\n // Navigate to route\n const navigateToRoute = useCallback(\n (route: string) => {\n try {\n router.push(route as RelativePathString)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Navigation error:', error)\n }\n },\n [router]\n )\n\n // Delete saved route\n const deleteSavedRoute = useCallback(\n async (index: number) => {\n const updated = savedRoutes.filter((_, i) => i !== index)\n setSavedRoutes(updated)\n\n try {\n await SecureStore.setItemAsync(SAVED_ROUTES_KEY, JSON.stringify(updated))\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error deleting route:', error)\n }\n },\n [savedRoutes, SAVED_ROUTES_KEY]\n )\n\n // Clear all data\n const clearAll = useCallback(async () => {\n setSavedRoutes([])\n setRouteHistory([])\n\n try {\n await SecureStore.deleteItemAsync(SAVED_ROUTES_KEY)\n await SecureStore.deleteItemAsync(HISTORY_KEY)\n } catch (error) {\n console.error('[ExpoRouterDevTools] Error clearing data:', error)\n }\n }, [SAVED_ROUTES_KEY, HISTORY_KEY])\n\n const isDark = theme === 'dark'\n const styles = createStyles(isDark, position)\n\n // Check if we should render in production\n if (hideInProduction && !__DEV__) {\n return null\n }\n\n return (\n <View style={styles.container}>\n {/* Current route bar */}\n <Pressable onPress={() => setIsExpanded(!isExpanded)} style={styles.routeBar}>\n <Text style={styles.routeText} numberOfLines={maxNumOfLines}>\n 🛣️ {currentRoute || '/'}\n </Text>\n <Text style={styles.expandIcon}>{isExpanded ? '▼' : '▶'}</Text>\n </Pressable>\n\n {/* Expanded controls */}\n {isExpanded && (\n <View style={styles.controls}>\n {/* Action buttons */}\n <View style={styles.buttonRow}>\n <Pressable onPress={saveRoute} style={styles.button}>\n <Text style={styles.buttonText}>Save</Text>\n </Pressable>\n\n {enableHistory && (\n <Pressable onPress={() => setShowHistory(!showHistory)} style={styles.button}>\n <Text style={styles.buttonText}>History</Text>\n </Pressable>\n )}\n\n <Pressable onPress={clearAll} style={[styles.button, styles.dangerButton]}>\n <Text style={styles.buttonText}>Clear</Text>\n </Pressable>\n </View>\n\n {/* History section */}\n {showHistory && enableHistory && routeHistory.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Recent Routes</Text>\n <ScrollView style={styles.listContainer}>\n {routeHistory.map((route, index) => (\n <Pressable\n key={`${route}-${index}`}\n onPress={() => navigateToRoute(route)}\n style={({ pressed }) => [styles.listItem, route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <Text style={styles.listItemText} numberOfLines={1}>\n {route}\n </Text>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n\n {/* Saved routes section */}\n {savedRoutes.length > 0 && (\n <View style={styles.section}>\n <Text style={styles.sectionTitle}>Saved Routes</Text>\n <ScrollView style={styles.listContainer}>\n {savedRoutes.map((saved, index) => (\n <Pressable\n key={`${saved.route}-${index}`}\n onPress={() => navigateToRoute(saved.route)}\n style={({ pressed }) => [styles.savedItem, saved.route === currentRoute && styles.selectedItem, pressed && styles.listItemPressed]}\n >\n <View style={styles.savedItemContent}>\n <Text style={styles.savedItemLabel}>{saved.label}</Text>\n <Text style={styles.listItemText} numberOfLines={1}>\n {saved.route}\n </Text>\n </View>\n <Pressable\n onPress={(e) => {\n e.stopPropagation?.()\n deleteSavedRoute(index)\n }}\n style={styles.deleteButton}\n >\n <Text style={styles.deleteButtonText}>✕</Text>\n </Pressable>\n </Pressable>\n ))}\n </ScrollView>\n </View>\n )}\n </View>\n )}\n </View>\n )\n}\n\nconst createStyles = (isDark: boolean, position: 'top' | 'bottom') => {\n const bgColor = isDark ? '#1a1a1a' : '#ffffff'\n const textColor = isDark ? '#e0e0e0' : '#333333'\n const borderColor = isDark ? '#333333' : '#dddddd'\n const buttonBg = isDark ? '#2563eb' : '#2563eb'\n const secondaryBg = isDark ? '#262626' : '#f5f5f5'\n const pressedBg = isDark ? '#1e40af' : '#dbeafe'\n\n return StyleSheet.create({\n container: {\n backgroundColor: bgColor,\n borderTopWidth: position === 'bottom' ? 1 : 0,\n borderBottomWidth: position === 'top' ? 1 : 0,\n borderColor,\n ...Platform.select({\n ios: {\n shadowColor: '#000',\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 4,\n },\n android: {\n elevation: 4,\n },\n }),\n },\n selectedItem: {\n backgroundColor: pressedBg,\n borderWidth: 1,\n borderColor: '#2563eb',\n },\n\n routeBar: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: 12,\n paddingHorizontal: 16,\n },\n routeText: {\n flex: 1,\n fontSize: 12,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n expandIcon: {\n fontSize: 16,\n color: textColor,\n marginLeft: 8,\n },\n controls: {\n padding: 12,\n paddingTop: 0,\n },\n buttonRow: {\n flexDirection: 'row',\n gap: 8,\n marginBottom: 12,\n },\n button: {\n flex: 1,\n paddingHorizontal: 12,\n paddingVertical: 8,\n backgroundColor: buttonBg,\n borderRadius: 6,\n alignItems: 'center',\n },\n dangerButton: {\n backgroundColor: '#dc2626',\n },\n buttonText: {\n color: '#ffffff',\n fontSize: 12,\n fontWeight: '600',\n },\n section: {\n marginTop: 12,\n },\n sectionTitle: {\n fontSize: 11,\n fontWeight: '600',\n color: textColor,\n marginBottom: 8,\n textTransform: 'uppercase',\n letterSpacing: 0.5,\n },\n listContainer: {\n maxHeight: 150,\n },\n listItem: {\n padding: 8,\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n },\n listItemPressed: {\n backgroundColor: pressedBg,\n },\n listItemText: {\n fontSize: 11,\n color: textColor,\n fontFamily: Platform.OS === 'ios' ? 'Menlo' : 'monospace',\n },\n savedItem: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: secondaryBg,\n borderRadius: 4,\n marginBottom: 4,\n overflow: 'hidden',\n },\n savedItemContent: {\n flex: 1,\n padding: 8,\n },\n savedItemLabel: {\n fontSize: 10,\n fontWeight: '600',\n color: buttonBg,\n marginBottom: 2,\n },\n deleteButton: {\n padding: 8,\n paddingHorizontal: 12,\n backgroundColor: '#dc2626',\n },\n deleteButtonText: {\n color: '#ffffff',\n fontSize: 14,\n fontWeight: 'bold',\n },\n })\n}\n\nexport default ExpoRouterDevTools\n"],"names":["usePathname","useGlobalSearchParams","useRouter","useState","useEffect","SecureStore","useCallback","_jsxs","View","Pressable","Text","_jsx","ScrollView","StyleSheet","Platform"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,cAAc,GAAG,uBAAuB,CAAA;AAC9C,MAAM,WAAW,GAAG,EAAE,CAAA;AAEtB,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,OAAO,EACf,gBAAgB,GAAG,IAAI,EACvB,gBAAgB,GAAG,cAAc,EACjC,aAAa,EACb,aAAa,GAAG,IAAI,EACpB,UAAU,GAAG,WAAW,EACxB,aAAa,GAAG,CAAC,GAClB,KAAI;AACH,IAAA,MAAM,QAAQ,GAAGA,sBAAW,EAAE,CAAA;AAC9B,IAAA,MAAM,YAAY,GAAGC,gCAAqB,EAAE,CAAA;AAC5C,IAAA,MAAM,MAAM,GAAGC,oBAAS,EAAE,CAAA;IAE1B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAGC,cAAQ,CAAC,EAAE,CAAC,CAAA;IAC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-router-devtools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Development tools for Expo Router - visualize routes, save navigation states, and debug your app's navigation flow",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo-router": ">=3.0.0",
|
|
41
41
|
"react": ">=17.0.0",
|
|
42
|
-
"react-native": ">=0.70.0"
|
|
42
|
+
"react-native": ">=0.70.0",
|
|
43
|
+
"expo-secure-store": ">=12.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@rollup/plugin-commonjs": "^29.0.0",
|