@expo/metro-runtime 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +3 -0
  3. package/assets/alert-triangle.png +0 -0
  4. package/assets/chevron-left.png +0 -0
  5. package/assets/chevron-right.png +0 -0
  6. package/assets/close.png +0 -0
  7. package/assets/loader.png +0 -0
  8. package/asyncRequire.js +1 -0
  9. package/build/HMRClient.d.ts +17 -0
  10. package/build/HMRClient.d.ts.map +1 -0
  11. package/build/HMRClient.js +250 -0
  12. package/build/HMRClient.js.map +1 -0
  13. package/build/HMRClient.native.d.ts +1 -0
  14. package/build/HMRClient.native.d.ts.map +1 -0
  15. package/build/HMRClient.native.js +2 -0
  16. package/build/HMRClient.native.js.map +1 -0
  17. package/build/LoadingView.d.ts +8 -0
  18. package/build/LoadingView.d.ts.map +1 -0
  19. package/build/LoadingView.js +21 -0
  20. package/build/LoadingView.js.map +1 -0
  21. package/build/LoadingView.native.d.ts +1 -0
  22. package/build/LoadingView.native.d.ts.map +1 -0
  23. package/build/LoadingView.native.js +2 -0
  24. package/build/LoadingView.native.js.map +1 -0
  25. package/build/asyncRequire/buildAsyncRequire.d.ts +24 -0
  26. package/build/asyncRequire/buildAsyncRequire.d.ts.map +1 -0
  27. package/build/asyncRequire/buildAsyncRequire.js +50 -0
  28. package/build/asyncRequire/buildAsyncRequire.js.map +1 -0
  29. package/build/asyncRequire/buildUrlForBundle.d.ts +8 -0
  30. package/build/asyncRequire/buildUrlForBundle.d.ts.map +1 -0
  31. package/build/asyncRequire/buildUrlForBundle.js +25 -0
  32. package/build/asyncRequire/buildUrlForBundle.js.map +1 -0
  33. package/build/asyncRequire/buildUrlForBundle.native.d.ts +2 -0
  34. package/build/asyncRequire/buildUrlForBundle.native.d.ts.map +1 -0
  35. package/build/asyncRequire/buildUrlForBundle.native.js +25 -0
  36. package/build/asyncRequire/buildUrlForBundle.native.js.map +1 -0
  37. package/build/asyncRequire/fetchAsync.d.ts +5 -0
  38. package/build/asyncRequire/fetchAsync.d.ts.map +1 -0
  39. package/build/asyncRequire/fetchAsync.js +19 -0
  40. package/build/asyncRequire/fetchAsync.js.map +1 -0
  41. package/build/asyncRequire/fetchAsync.native.d.ts +12 -0
  42. package/build/asyncRequire/fetchAsync.native.d.ts.map +1 -0
  43. package/build/asyncRequire/fetchAsync.native.js +57 -0
  44. package/build/asyncRequire/fetchAsync.native.js.map +1 -0
  45. package/build/asyncRequire/fetchThenEval.d.ts +7 -0
  46. package/build/asyncRequire/fetchThenEval.d.ts.map +1 -0
  47. package/build/asyncRequire/fetchThenEval.js +30 -0
  48. package/build/asyncRequire/fetchThenEval.js.map +1 -0
  49. package/build/asyncRequire/fetchThenEval.web.d.ts +6 -0
  50. package/build/asyncRequire/fetchThenEval.web.d.ts.map +1 -0
  51. package/build/asyncRequire/fetchThenEval.web.js +29 -0
  52. package/build/asyncRequire/fetchThenEval.web.js.map +1 -0
  53. package/build/asyncRequire/index.d.ts +2 -0
  54. package/build/asyncRequire/index.d.ts.map +1 -0
  55. package/build/asyncRequire/index.js +5 -0
  56. package/build/asyncRequire/index.js.map +1 -0
  57. package/build/asyncRequire/loadBundle.android.d.ts +2 -0
  58. package/build/asyncRequire/loadBundle.android.d.ts.map +1 -0
  59. package/build/asyncRequire/loadBundle.android.js +22 -0
  60. package/build/asyncRequire/loadBundle.android.js.map +1 -0
  61. package/build/asyncRequire/loadBundle.d.ts +2 -0
  62. package/build/asyncRequire/loadBundle.d.ts.map +1 -0
  63. package/build/asyncRequire/loadBundle.js +6 -0
  64. package/build/asyncRequire/loadBundle.js.map +1 -0
  65. package/build/asyncRequire/loadBundlePolyfill.d.ts +7 -0
  66. package/build/asyncRequire/loadBundlePolyfill.d.ts.map +1 -0
  67. package/build/asyncRequire/loadBundlePolyfill.js +40 -0
  68. package/build/asyncRequire/loadBundlePolyfill.js.map +1 -0
  69. package/build/effects.d.ts +2 -0
  70. package/build/effects.d.ts.map +1 -0
  71. package/build/effects.js +16 -0
  72. package/build/effects.js.map +1 -0
  73. package/build/effects.native.d.ts +1 -0
  74. package/build/effects.native.d.ts.map +1 -0
  75. package/build/effects.native.js +1 -0
  76. package/build/effects.native.js.map +1 -0
  77. package/build/error-overlay/Data/LogBoxData.d.ts +60 -0
  78. package/build/error-overlay/Data/LogBoxData.d.ts.map +1 -0
  79. package/build/error-overlay/Data/LogBoxData.js +386 -0
  80. package/build/error-overlay/Data/LogBoxData.js.map +1 -0
  81. package/build/error-overlay/Data/LogBoxLog.d.ts +61 -0
  82. package/build/error-overlay/Data/LogBoxLog.d.ts.map +1 -0
  83. package/build/error-overlay/Data/LogBoxLog.js +148 -0
  84. package/build/error-overlay/Data/LogBoxLog.js.map +1 -0
  85. package/build/error-overlay/Data/LogBoxSymbolication.d.ts +17 -0
  86. package/build/error-overlay/Data/LogBoxSymbolication.d.ts.map +1 -0
  87. package/build/error-overlay/Data/LogBoxSymbolication.js +56 -0
  88. package/build/error-overlay/Data/LogBoxSymbolication.js.map +1 -0
  89. package/build/error-overlay/Data/LogContext.d.ts +14 -0
  90. package/build/error-overlay/Data/LogContext.d.ts.map +1 -0
  91. package/build/error-overlay/Data/LogContext.js +27 -0
  92. package/build/error-overlay/Data/LogContext.js.map +1 -0
  93. package/build/error-overlay/Data/parseLogBoxLog.d.ts +45 -0
  94. package/build/error-overlay/Data/parseLogBoxLog.d.ts.map +1 -0
  95. package/build/error-overlay/Data/parseLogBoxLog.js +286 -0
  96. package/build/error-overlay/Data/parseLogBoxLog.js.map +1 -0
  97. package/build/error-overlay/ErrorOverlay.d.ts +18 -0
  98. package/build/error-overlay/ErrorOverlay.d.ts.map +1 -0
  99. package/build/error-overlay/ErrorOverlay.js +146 -0
  100. package/build/error-overlay/ErrorOverlay.js.map +1 -0
  101. package/build/error-overlay/LogBox.d.ts +16 -0
  102. package/build/error-overlay/LogBox.d.ts.map +1 -0
  103. package/build/error-overlay/LogBox.js +31 -0
  104. package/build/error-overlay/LogBox.js.map +1 -0
  105. package/build/error-overlay/LogBox.web.d.ts +23 -0
  106. package/build/error-overlay/LogBox.web.d.ts.map +1 -0
  107. package/build/error-overlay/LogBox.web.js +129 -0
  108. package/build/error-overlay/LogBox.web.js.map +1 -0
  109. package/build/error-overlay/UI/AnsiHighlight.d.ts +6 -0
  110. package/build/error-overlay/UI/AnsiHighlight.d.ts.map +1 -0
  111. package/build/error-overlay/UI/AnsiHighlight.js +86 -0
  112. package/build/error-overlay/UI/AnsiHighlight.js.map +1 -0
  113. package/build/error-overlay/UI/LogBoxButton.d.ts +14 -0
  114. package/build/error-overlay/UI/LogBoxButton.d.ts.map +1 -0
  115. package/build/error-overlay/UI/LogBoxButton.js +59 -0
  116. package/build/error-overlay/UI/LogBoxButton.js.map +1 -0
  117. package/build/error-overlay/UI/LogBoxMessage.d.ts +11 -0
  118. package/build/error-overlay/UI/LogBoxMessage.d.ts.map +1 -0
  119. package/build/error-overlay/UI/LogBoxMessage.js +53 -0
  120. package/build/error-overlay/UI/LogBoxMessage.js.map +1 -0
  121. package/build/error-overlay/UI/LogBoxStyle.d.ts +22 -0
  122. package/build/error-overlay/UI/LogBoxStyle.d.ts.map +1 -0
  123. package/build/error-overlay/UI/LogBoxStyle.js +68 -0
  124. package/build/error-overlay/UI/LogBoxStyle.js.map +1 -0
  125. package/build/error-overlay/UI/constants.d.ts +2 -0
  126. package/build/error-overlay/UI/constants.d.ts.map +1 -0
  127. package/build/error-overlay/UI/constants.js +10 -0
  128. package/build/error-overlay/UI/constants.js.map +1 -0
  129. package/build/error-overlay/formatProjectFilePath.d.ts +2 -0
  130. package/build/error-overlay/formatProjectFilePath.d.ts.map +1 -0
  131. package/build/error-overlay/formatProjectFilePath.js +27 -0
  132. package/build/error-overlay/formatProjectFilePath.js.map +1 -0
  133. package/build/error-overlay/index.d.ts +3 -0
  134. package/build/error-overlay/index.d.ts.map +1 -0
  135. package/build/error-overlay/index.js +30 -0
  136. package/build/error-overlay/index.js.map +1 -0
  137. package/build/error-overlay/modules/ExceptionsManager/index.d.ts +38 -0
  138. package/build/error-overlay/modules/ExceptionsManager/index.d.ts.map +1 -0
  139. package/build/error-overlay/modules/ExceptionsManager/index.js +80 -0
  140. package/build/error-overlay/modules/ExceptionsManager/index.js.map +1 -0
  141. package/build/error-overlay/modules/ExceptionsManager/index.native.d.ts +2 -0
  142. package/build/error-overlay/modules/ExceptionsManager/index.native.d.ts.map +1 -0
  143. package/build/error-overlay/modules/ExceptionsManager/index.native.js +3 -0
  144. package/build/error-overlay/modules/ExceptionsManager/index.native.js.map +1 -0
  145. package/build/error-overlay/modules/NativeLogBox/index.d.ts +6 -0
  146. package/build/error-overlay/modules/NativeLogBox/index.d.ts.map +1 -0
  147. package/build/error-overlay/modules/NativeLogBox/index.js +34 -0
  148. package/build/error-overlay/modules/NativeLogBox/index.js.map +1 -0
  149. package/build/error-overlay/modules/NativeLogBox/index.native.d.ts +3 -0
  150. package/build/error-overlay/modules/NativeLogBox/index.native.d.ts.map +1 -0
  151. package/build/error-overlay/modules/NativeLogBox/index.native.js +8 -0
  152. package/build/error-overlay/modules/NativeLogBox/index.native.js.map +1 -0
  153. package/build/error-overlay/modules/openFileInEditor/index.d.ts +3 -0
  154. package/build/error-overlay/modules/openFileInEditor/index.d.ts.map +1 -0
  155. package/build/error-overlay/modules/openFileInEditor/index.js +15 -0
  156. package/build/error-overlay/modules/openFileInEditor/index.js.map +1 -0
  157. package/build/error-overlay/modules/openFileInEditor/index.native.d.ts +3 -0
  158. package/build/error-overlay/modules/openFileInEditor/index.native.d.ts.map +1 -0
  159. package/build/error-overlay/modules/openFileInEditor/index.native.js +8 -0
  160. package/build/error-overlay/modules/openFileInEditor/index.native.js.map +1 -0
  161. package/build/error-overlay/modules/parseErrorStack/index.d.ts +6 -0
  162. package/build/error-overlay/modules/parseErrorStack/index.d.ts.map +1 -0
  163. package/build/error-overlay/modules/parseErrorStack/index.js +25 -0
  164. package/build/error-overlay/modules/parseErrorStack/index.js.map +1 -0
  165. package/build/error-overlay/modules/parseErrorStack/parseHermesStack.d.ts +3 -0
  166. package/build/error-overlay/modules/parseErrorStack/parseHermesStack.d.ts.map +1 -0
  167. package/build/error-overlay/modules/parseErrorStack/parseHermesStack.js +9 -0
  168. package/build/error-overlay/modules/parseErrorStack/parseHermesStack.js.map +1 -0
  169. package/build/error-overlay/modules/stringifySafe/index.d.ts +20 -0
  170. package/build/error-overlay/modules/stringifySafe/index.d.ts.map +1 -0
  171. package/build/error-overlay/modules/stringifySafe/index.js +117 -0
  172. package/build/error-overlay/modules/stringifySafe/index.js.map +1 -0
  173. package/build/error-overlay/modules/symbolicateStackTrace/index.d.ts +24 -0
  174. package/build/error-overlay/modules/symbolicateStackTrace/index.d.ts.map +1 -0
  175. package/build/error-overlay/modules/symbolicateStackTrace/index.js +19 -0
  176. package/build/error-overlay/modules/symbolicateStackTrace/index.js.map +1 -0
  177. package/build/error-overlay/modules/symbolicateStackTrace/index.native.d.ts +3 -0
  178. package/build/error-overlay/modules/symbolicateStackTrace/index.native.d.ts.map +1 -0
  179. package/build/error-overlay/modules/symbolicateStackTrace/index.native.js +8 -0
  180. package/build/error-overlay/modules/symbolicateStackTrace/index.native.js.map +1 -0
  181. package/build/error-overlay/overlay/LogBoxInspectorCodeFrame.d.ts +5 -0
  182. package/build/error-overlay/overlay/LogBoxInspectorCodeFrame.d.ts.map +1 -0
  183. package/build/error-overlay/overlay/LogBoxInspectorCodeFrame.js +113 -0
  184. package/build/error-overlay/overlay/LogBoxInspectorCodeFrame.js.map +1 -0
  185. package/build/error-overlay/overlay/LogBoxInspectorFooter.d.ts +7 -0
  186. package/build/error-overlay/overlay/LogBoxInspectorFooter.d.ts.map +1 -0
  187. package/build/error-overlay/overlay/LogBoxInspectorFooter.js +111 -0
  188. package/build/error-overlay/overlay/LogBoxInspectorFooter.js.map +1 -0
  189. package/build/error-overlay/overlay/LogBoxInspectorHeader.d.ts +8 -0
  190. package/build/error-overlay/overlay/LogBoxInspectorHeader.d.ts.map +1 -0
  191. package/build/error-overlay/overlay/LogBoxInspectorHeader.js +139 -0
  192. package/build/error-overlay/overlay/LogBoxInspectorHeader.js.map +1 -0
  193. package/build/error-overlay/overlay/LogBoxInspectorMessageHeader.d.ts +12 -0
  194. package/build/error-overlay/overlay/LogBoxInspectorMessageHeader.d.ts.map +1 -0
  195. package/build/error-overlay/overlay/LogBoxInspectorMessageHeader.js +116 -0
  196. package/build/error-overlay/overlay/LogBoxInspectorMessageHeader.js.map +1 -0
  197. package/build/error-overlay/overlay/LogBoxInspectorSection.d.ts +8 -0
  198. package/build/error-overlay/overlay/LogBoxInspectorSection.d.ts.map +1 -0
  199. package/build/error-overlay/overlay/LogBoxInspectorSection.js +70 -0
  200. package/build/error-overlay/overlay/LogBoxInspectorSection.js.map +1 -0
  201. package/build/error-overlay/overlay/LogBoxInspectorSourceMapStatus.d.ts +8 -0
  202. package/build/error-overlay/overlay/LogBoxInspectorSourceMapStatus.d.ts.map +1 -0
  203. package/build/error-overlay/overlay/LogBoxInspectorSourceMapStatus.js +127 -0
  204. package/build/error-overlay/overlay/LogBoxInspectorSourceMapStatus.js.map +1 -0
  205. package/build/error-overlay/overlay/LogBoxInspectorStackFrame.d.ts +11 -0
  206. package/build/error-overlay/overlay/LogBoxInspectorStackFrame.d.ts.map +1 -0
  207. package/build/error-overlay/overlay/LogBoxInspectorStackFrame.js +103 -0
  208. package/build/error-overlay/overlay/LogBoxInspectorStackFrame.js.map +1 -0
  209. package/build/error-overlay/overlay/LogBoxInspectorStackFrames.d.ts +10 -0
  210. package/build/error-overlay/overlay/LogBoxInspectorStackFrames.d.ts.map +1 -0
  211. package/build/error-overlay/overlay/LogBoxInspectorStackFrames.js +177 -0
  212. package/build/error-overlay/overlay/LogBoxInspectorStackFrames.js.map +1 -0
  213. package/build/error-overlay/toast/ErrorToast.d.ts +11 -0
  214. package/build/error-overlay/toast/ErrorToast.d.ts.map +1 -0
  215. package/build/error-overlay/toast/ErrorToast.js +147 -0
  216. package/build/error-overlay/toast/ErrorToast.js.map +1 -0
  217. package/build/error-overlay/toast/ErrorToastContainer.d.ts +4 -0
  218. package/build/error-overlay/toast/ErrorToastContainer.d.ts.map +1 -0
  219. package/build/error-overlay/toast/ErrorToastContainer.js +7 -0
  220. package/build/error-overlay/toast/ErrorToastContainer.js.map +1 -0
  221. package/build/error-overlay/toast/ErrorToastContainer.web.d.ts +12 -0
  222. package/build/error-overlay/toast/ErrorToastContainer.web.d.ts.map +1 -0
  223. package/build/error-overlay/toast/ErrorToastContainer.web.js +83 -0
  224. package/build/error-overlay/toast/ErrorToastContainer.web.js.map +1 -0
  225. package/build/error-overlay/toast/ErrorToastMessage.d.ts +5 -0
  226. package/build/error-overlay/toast/ErrorToastMessage.d.ts.map +1 -0
  227. package/build/error-overlay/toast/ErrorToastMessage.js +50 -0
  228. package/build/error-overlay/toast/ErrorToastMessage.js.map +1 -0
  229. package/build/error-overlay/useRejectionHandler.d.ts +3 -0
  230. package/build/error-overlay/useRejectionHandler.d.ts.map +1 -0
  231. package/build/error-overlay/useRejectionHandler.js +60 -0
  232. package/build/error-overlay/useRejectionHandler.js.map +1 -0
  233. package/build/getDevServer.d.ts +8 -0
  234. package/build/getDevServer.d.ts.map +1 -0
  235. package/build/getDevServer.js +37 -0
  236. package/build/getDevServer.js.map +1 -0
  237. package/build/getDevServer.native.d.ts +1 -0
  238. package/build/getDevServer.native.d.ts.map +1 -0
  239. package/build/getDevServer.native.js +2 -0
  240. package/build/getDevServer.native.js.map +1 -0
  241. package/build/index.d.ts +2 -0
  242. package/build/index.d.ts.map +1 -0
  243. package/build/index.js +4 -0
  244. package/build/index.js.map +1 -0
  245. package/build/messageSocket.d.ts +3 -0
  246. package/build/messageSocket.d.ts.map +1 -0
  247. package/build/messageSocket.js +24 -0
  248. package/build/messageSocket.js.map +1 -0
  249. package/build/setupFastRefresh.d.ts +10 -0
  250. package/build/setupFastRefresh.d.ts.map +1 -0
  251. package/build/setupFastRefresh.js +23 -0
  252. package/build/setupFastRefresh.js.map +1 -0
  253. package/build/setupHMR.d.ts +2 -0
  254. package/build/setupHMR.d.ts.map +1 -0
  255. package/build/setupHMR.js +14 -0
  256. package/build/setupHMR.js.map +1 -0
  257. package/error-overlay.d.ts +1 -0
  258. package/error-overlay.js +1 -0
  259. package/package.json +41 -0
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseErrorStack = void 0;
7
+ const parseErrorStack_1 = __importDefault(require("react-native/Libraries/Core/Devtools/parseErrorStack"));
8
+ exports.parseErrorStack = parseErrorStack_1.default;
9
+ //# sourceMappingURL=parseHermesStack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseHermesStack.js","sourceRoot":"","sources":["../../../../src/error-overlay/modules/parseErrorStack/parseHermesStack.ts"],"names":[],"mappings":";;;;;;AAAA,2GAAmF;AAE1E,0BAFF,yBAAe,CAEE","sourcesContent":["import parseErrorStack from \"react-native/Libraries/Core/Devtools/parseErrorStack\";\n\nexport { parseErrorStack };\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) Evan Bacon.
3
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ /**
9
+ * Tries to stringify with JSON.stringify and toString, but catches exceptions
10
+ * (e.g. from circular objects) and always returns a string and never throws.
11
+ */
12
+ export declare function createStringifySafeWithLimits(limits: {
13
+ maxDepth?: number;
14
+ maxStringLimit?: number;
15
+ maxArrayLimit?: number;
16
+ maxObjectKeysLimit?: number;
17
+ }): (foo: any) => string;
18
+ declare const stringifySafe: (foo: any) => string;
19
+ export default stringifySafe;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/modules/stringifySafe/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CA2FvB;AAED,QAAA,MAAM,aAAa,QA7FT,GAAG,KAAK,MAkGhB,CAAC;AAEH,eAAe,aAAa,CAAC"}
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Evan Bacon.
4
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.createStringifySafeWithLimits = void 0;
11
+ /**
12
+ * Tries to stringify with JSON.stringify and toString, but catches exceptions
13
+ * (e.g. from circular objects) and always returns a string and never throws.
14
+ */
15
+ function createStringifySafeWithLimits(limits) {
16
+ const { maxDepth = Number.POSITIVE_INFINITY, maxStringLimit = Number.POSITIVE_INFINITY, maxArrayLimit = Number.POSITIVE_INFINITY, maxObjectKeysLimit = Number.POSITIVE_INFINITY, } = limits;
17
+ const stack = [];
18
+ function replacer(key, value) {
19
+ // @ts-expect-error
20
+ while (stack.length && this !== stack[0]) {
21
+ stack.shift();
22
+ }
23
+ if (typeof value === "string") {
24
+ const truncatedString = "...(truncated)...";
25
+ if (value.length > maxStringLimit + truncatedString.length) {
26
+ return value.substring(0, maxStringLimit) + truncatedString;
27
+ }
28
+ return value;
29
+ }
30
+ if (typeof value !== "object" || value === null) {
31
+ return value;
32
+ }
33
+ let retval = value;
34
+ if (Array.isArray(value)) {
35
+ if (stack.length >= maxDepth) {
36
+ retval = `[ ... array with ${value.length} values ... ]`;
37
+ }
38
+ else if (value.length > maxArrayLimit) {
39
+ retval = value
40
+ .slice(0, maxArrayLimit)
41
+ .concat([
42
+ `... extra ${value.length - maxArrayLimit} values truncated ...`,
43
+ ]);
44
+ }
45
+ }
46
+ else {
47
+ // Add refinement after Array.isArray call.
48
+ if (typeof value !== "object") {
49
+ throw new Error("This was already found earlier");
50
+ }
51
+ const keys = Object.keys(value);
52
+ if (stack.length >= maxDepth) {
53
+ retval = `{ ... object with ${keys.length} keys ... }`;
54
+ }
55
+ else if (keys.length > maxObjectKeysLimit) {
56
+ // Return a sample of the keys.
57
+ retval = {};
58
+ for (const k of keys.slice(0, maxObjectKeysLimit)) {
59
+ retval[k] = value[k];
60
+ }
61
+ const truncatedKey = "...(truncated keys)...";
62
+ retval[truncatedKey] = keys.length - maxObjectKeysLimit;
63
+ }
64
+ }
65
+ stack.unshift(retval);
66
+ return retval;
67
+ }
68
+ return function stringifySafe(arg) {
69
+ if (arg === undefined) {
70
+ return "undefined";
71
+ }
72
+ else if (arg === null) {
73
+ return "null";
74
+ }
75
+ else if (typeof arg === "function") {
76
+ try {
77
+ return arg.toString();
78
+ }
79
+ catch {
80
+ return "[function unknown]";
81
+ }
82
+ }
83
+ else if (arg instanceof Error) {
84
+ return arg.name + ": " + arg.message;
85
+ }
86
+ else {
87
+ // Perform a try catch, just in case the object has a circular
88
+ // reference or stringify throws for some other reason.
89
+ try {
90
+ const ret = JSON.stringify(arg, replacer);
91
+ if (ret === undefined) {
92
+ return '["' + typeof arg + '" failed to stringify]';
93
+ }
94
+ return ret;
95
+ }
96
+ catch {
97
+ if (typeof arg.toString === "function") {
98
+ try {
99
+ // $FlowFixMe[incompatible-use] : toString shouldn't take any arguments in general.
100
+ return arg.toString();
101
+ }
102
+ catch { }
103
+ }
104
+ }
105
+ }
106
+ return '["' + typeof arg + '" failed to stringify]';
107
+ };
108
+ }
109
+ exports.createStringifySafeWithLimits = createStringifySafeWithLimits;
110
+ const stringifySafe = createStringifySafeWithLimits({
111
+ maxDepth: 10,
112
+ maxStringLimit: 100,
113
+ maxArrayLimit: 50,
114
+ maxObjectKeysLimit: 50,
115
+ });
116
+ exports.default = stringifySafe;
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/error-overlay/modules/stringifySafe/index.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Copyright (c) Evan Bacon.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Tries to stringify with JSON.stringify and toString, but catches exceptions\n * (e.g. from circular objects) and always returns a string and never throws.\n */\nexport function createStringifySafeWithLimits(limits: {\n maxDepth?: number;\n maxStringLimit?: number;\n maxArrayLimit?: number;\n maxObjectKeysLimit?: number;\n}): (foo: any) => string {\n const {\n maxDepth = Number.POSITIVE_INFINITY,\n maxStringLimit = Number.POSITIVE_INFINITY,\n maxArrayLimit = Number.POSITIVE_INFINITY,\n maxObjectKeysLimit = Number.POSITIVE_INFINITY,\n } = limits;\n const stack: any[] = [];\n function replacer(key: string, value: any): any {\n // @ts-expect-error\n while (stack.length && this !== stack[0]) {\n stack.shift();\n }\n\n if (typeof value === \"string\") {\n const truncatedString = \"...(truncated)...\";\n if (value.length > maxStringLimit + truncatedString.length) {\n return value.substring(0, maxStringLimit) + truncatedString;\n }\n return value;\n }\n if (typeof value !== \"object\" || value === null) {\n return value;\n }\n\n let retval = value;\n if (Array.isArray(value)) {\n if (stack.length >= maxDepth) {\n retval = `[ ... array with ${value.length} values ... ]`;\n } else if (value.length > maxArrayLimit) {\n retval = value\n .slice(0, maxArrayLimit)\n .concat([\n `... extra ${value.length - maxArrayLimit} values truncated ...`,\n ]);\n }\n } else {\n // Add refinement after Array.isArray call.\n if (typeof value !== \"object\") {\n throw new Error(\"This was already found earlier\");\n }\n const keys = Object.keys(value);\n if (stack.length >= maxDepth) {\n retval = `{ ... object with ${keys.length} keys ... }`;\n } else if (keys.length > maxObjectKeysLimit) {\n // Return a sample of the keys.\n retval = {};\n for (const k of keys.slice(0, maxObjectKeysLimit)) {\n retval[k] = value[k];\n }\n const truncatedKey = \"...(truncated keys)...\";\n retval[truncatedKey] = keys.length - maxObjectKeysLimit;\n }\n }\n stack.unshift(retval);\n return retval;\n }\n\n return function stringifySafe(arg: any): string {\n if (arg === undefined) {\n return \"undefined\";\n } else if (arg === null) {\n return \"null\";\n } else if (typeof arg === \"function\") {\n try {\n return arg.toString();\n } catch {\n return \"[function unknown]\";\n }\n } else if (arg instanceof Error) {\n return arg.name + \": \" + arg.message;\n } else {\n // Perform a try catch, just in case the object has a circular\n // reference or stringify throws for some other reason.\n try {\n const ret = JSON.stringify(arg, replacer);\n if (ret === undefined) {\n return '[\"' + typeof arg + '\" failed to stringify]';\n }\n return ret;\n } catch {\n if (typeof arg.toString === \"function\") {\n try {\n // $FlowFixMe[incompatible-use] : toString shouldn't take any arguments in general.\n return arg.toString();\n } catch {}\n }\n }\n }\n return '[\"' + typeof arg + '\" failed to stringify]';\n };\n}\n\nconst stringifySafe = createStringifySafeWithLimits({\n maxDepth: 10,\n maxStringLimit: 100,\n maxArrayLimit: 50,\n maxObjectKeysLimit: 50,\n});\n\nexport default stringifySafe;\n"]}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Evan Bacon.
3
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { StackFrame } from "stacktrace-parser";
9
+ export declare type CodeFrame = {
10
+ content: string;
11
+ location?: {
12
+ row: number;
13
+ column: number;
14
+ [key: string]: any;
15
+ };
16
+ fileName: string;
17
+ };
18
+ export declare type SymbolicatedStackTrace = {
19
+ stack: StackFrame[];
20
+ codeFrame?: CodeFrame;
21
+ };
22
+ declare function symbolicateStackTrace(stack: StackFrame[]): Promise<SymbolicatedStackTrace>;
23
+ export default symbolicateStackTrace;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/modules/symbolicateStackTrace/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,oBAAY,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,iBAAe,qBAAqB,CAClC,KAAK,EAAE,UAAU,EAAE,GAClB,OAAO,CAAC,sBAAsB,CAAC,CAOjC;AAED,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Evan Bacon.
4
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ async function symbolicateStackTrace(stack) {
11
+ const baseUrl = window.location.protocol + "//" + window.location.host;
12
+ const response = await fetch(baseUrl + "/symbolicate", {
13
+ method: "POST",
14
+ body: JSON.stringify({ stack }),
15
+ });
16
+ return await response.json();
17
+ }
18
+ exports.default = symbolicateStackTrace;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/error-overlay/modules/symbolicateStackTrace/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAmBH,KAAK,UAAU,qBAAqB,CAClC,KAAmB;IAEnB,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;IACvE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,GAAG,cAAc,EAAE;QACrD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC;KAChC,CAAC,CAAC;IACH,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED,kBAAe,qBAAqB,CAAC","sourcesContent":["/**\n * Copyright (c) Evan Bacon.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { StackFrame } from \"stacktrace-parser\";\n\nexport type CodeFrame = {\n content: string;\n location?: {\n row: number;\n column: number;\n [key: string]: any;\n };\n fileName: string;\n};\n\nexport type SymbolicatedStackTrace = {\n stack: StackFrame[];\n codeFrame?: CodeFrame;\n};\n\nasync function symbolicateStackTrace(\n stack: StackFrame[]\n): Promise<SymbolicatedStackTrace> {\n const baseUrl = window.location.protocol + \"//\" + window.location.host;\n const response = await fetch(baseUrl + \"/symbolicate\", {\n method: \"POST\",\n body: JSON.stringify({ stack }),\n });\n return await response.json();\n}\n\nexport default symbolicateStackTrace;\n"]}
@@ -0,0 +1,3 @@
1
+ import symbolicateStackTrace from "react-native/Libraries/Core/Devtools/symbolicateStackTrace";
2
+ export default symbolicateStackTrace;
3
+ //# sourceMappingURL=index.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/modules/symbolicateStackTrace/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,4DAA4D,CAAC;AAE/F,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const symbolicateStackTrace_1 = __importDefault(require("react-native/Libraries/Core/Devtools/symbolicateStackTrace"));
7
+ exports.default = symbolicateStackTrace_1.default;
8
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/error-overlay/modules/symbolicateStackTrace/index.native.ts"],"names":[],"mappings":";;;;;AAAA,uHAA+F;AAE/F,kBAAe,+BAAqB,CAAC","sourcesContent":["import symbolicateStackTrace from \"react-native/Libraries/Core/Devtools/symbolicateStackTrace\";\n\nexport default symbolicateStackTrace;\n"]}
@@ -0,0 +1,5 @@
1
+ import type { CodeFrame } from "../Data/parseLogBoxLog";
2
+ export declare function LogBoxInspectorCodeFrame(props: {
3
+ codeFrame?: CodeFrame;
4
+ }): JSX.Element | null;
5
+ //# sourceMappingURL=LogBoxInspectorCodeFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogBoxInspectorCodeFrame.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/overlay/LogBoxInspectorCodeFrame.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASxD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAAE,SAAS,CAAC,EAAE,SAAS,CAAA;CAAE,sBA+CxE"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LogBoxInspectorCodeFrame = void 0;
30
+ /**
31
+ * Copyright (c) Evan Bacon.
32
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */
37
+ const react_1 = __importDefault(require("react"));
38
+ const react_native_1 = require("react-native");
39
+ const AnsiHighlight_1 = require("../UI/AnsiHighlight");
40
+ const LogBoxButton_1 = require("../UI/LogBoxButton");
41
+ const LogBoxStyle = __importStar(require("../UI/LogBoxStyle"));
42
+ const constants_1 = require("../UI/constants");
43
+ const formatProjectFilePath_1 = require("../formatProjectFilePath");
44
+ const openFileInEditor_1 = __importDefault(require("../modules/openFileInEditor"));
45
+ const LogBoxInspectorSection_1 = require("./LogBoxInspectorSection");
46
+ function LogBoxInspectorCodeFrame(props) {
47
+ const codeFrame = props.codeFrame;
48
+ if (codeFrame == null) {
49
+ return null;
50
+ }
51
+ function getFileName() {
52
+ return (0, formatProjectFilePath_1.formatProjectFileName)(codeFrame === null || codeFrame === void 0 ? void 0 : codeFrame.fileName);
53
+ }
54
+ function getLocation() {
55
+ const location = codeFrame === null || codeFrame === void 0 ? void 0 : codeFrame.location;
56
+ if (location != null) {
57
+ return ` (${location.row}:${location.column + 1 /* Code frame columns are zero indexed */})`;
58
+ }
59
+ return null;
60
+ }
61
+ return (react_1.default.createElement(LogBoxInspectorSection_1.LogBoxInspectorSection, { heading: "Source" },
62
+ react_1.default.createElement(react_native_1.View, { style: styles.box },
63
+ react_1.default.createElement(react_native_1.View, { style: styles.frame },
64
+ react_1.default.createElement(react_native_1.ScrollView, { horizontal: true },
65
+ react_1.default.createElement(AnsiHighlight_1.Ansi, { style: styles.content, text: codeFrame.content }))),
66
+ react_1.default.createElement(LogBoxButton_1.LogBoxButton, { backgroundColor: {
67
+ default: "transparent",
68
+ pressed: LogBoxStyle.getBackgroundDarkColor(1),
69
+ }, style: styles.button, onPress: () => {
70
+ var _a, _b;
71
+ (0, openFileInEditor_1.default)(codeFrame.fileName, (_b = (_a = codeFrame.location) === null || _a === void 0 ? void 0 : _a.row) !== null && _b !== void 0 ? _b : 0);
72
+ } },
73
+ react_1.default.createElement(react_native_1.Text, { selectable: false, style: styles.fileText },
74
+ getFileName(),
75
+ getLocation())))));
76
+ }
77
+ exports.LogBoxInspectorCodeFrame = LogBoxInspectorCodeFrame;
78
+ const styles = react_native_1.StyleSheet.create({
79
+ box: {
80
+ backgroundColor: LogBoxStyle.getBackgroundColor(),
81
+ borderWidth: 1,
82
+ borderColor: "#323232",
83
+ marginLeft: 10,
84
+ marginRight: 10,
85
+ marginTop: 5,
86
+ borderRadius: 3,
87
+ },
88
+ frame: {
89
+ padding: 10,
90
+ borderBottomColor: LogBoxStyle.getTextColor(0.1),
91
+ borderBottomWidth: 1,
92
+ },
93
+ button: {
94
+ paddingTop: 10,
95
+ paddingBottom: 10,
96
+ },
97
+ content: {
98
+ color: LogBoxStyle.getTextColor(1),
99
+ fontSize: 12,
100
+ includeFontPadding: false,
101
+ lineHeight: 20,
102
+ fontFamily: constants_1.CODE_FONT,
103
+ },
104
+ fileText: {
105
+ color: LogBoxStyle.getTextColor(0.5),
106
+ textAlign: "center",
107
+ flex: 1,
108
+ fontSize: 16,
109
+ includeFontPadding: false,
110
+ fontFamily: constants_1.CODE_FONT,
111
+ },
112
+ });
113
+ //# sourceMappingURL=LogBoxInspectorCodeFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogBoxInspectorCodeFrame.js","sourceRoot":"","sources":["../../../src/error-overlay/overlay/LogBoxInspectorCodeFrame.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,kDAA0B;AAC1B,+CAAkE;AAGlE,uDAA2C;AAC3C,qDAAkD;AAClD,+DAAiD;AACjD,+CAA4C;AAC5C,oEAAiE;AACjE,mFAA2D;AAC3D,qEAAkE;AAElE,SAAgB,wBAAwB,CAAC,KAAgC;IACvE,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,IAAI,SAAS,IAAI,IAAI,EAAE;QACrB,OAAO,IAAI,CAAC;KACb;IAED,SAAS,WAAW;QAClB,OAAO,IAAA,6CAAqB,EAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,SAAS,WAAW;QAClB,MAAM,QAAQ,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC;QACrC,IAAI,QAAQ,IAAI,IAAI,EAAE;YACpB,OAAO,KAAK,QAAQ,CAAC,GAAG,IACtB,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,yCACtB,GAAG,CAAC;SACL;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,8BAAC,+CAAsB,IAAC,OAAO,EAAC,QAAQ;QACtC,8BAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,8BAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,KAAK;gBACvB,8BAAC,yBAAU,IAAC,UAAU;oBACpB,8BAAC,oBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,OAAO,GAAI,CAC7C,CACR;YACP,8BAAC,2BAAY,IACX,eAAe,EAAE;oBACf,OAAO,EAAE,aAAa;oBACtB,OAAO,EAAE,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC;iBAC/C,EACD,KAAK,EAAE,MAAM,CAAC,MAAM,EACpB,OAAO,EAAE,GAAG,EAAE;;oBACZ,IAAA,0BAAgB,EAAC,SAAS,CAAC,QAAQ,EAAE,MAAA,MAAA,SAAS,CAAC,QAAQ,0CAAE,GAAG,mCAAI,CAAC,CAAC,CAAC;gBACrE,CAAC;gBAED,8BAAC,mBAAI,IAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ;oBAC5C,WAAW,EAAE;oBACb,WAAW,EAAE,CACT,CACM,CACV,CACgB,CAC1B,CAAC;AACJ,CAAC;AA/CD,4DA+CC;AAED,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,eAAe,EAAE,WAAW,CAAC,kBAAkB,EAAE;QACjD,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;KAChB;IACD,KAAK,EAAE;QACL,OAAO,EAAE,EAAE;QACX,iBAAiB,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC;QAChD,iBAAiB,EAAE,CAAC;KACrB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB;IACD,OAAO,EAAE;QACP,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;QAClC,QAAQ,EAAE,EAAE;QACZ,kBAAkB,EAAE,KAAK;QACzB,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,qBAAS;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC;QACpC,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,EAAE;QACZ,kBAAkB,EAAE,KAAK;QACzB,UAAU,EAAE,qBAAS;KACtB;CACF,CAAC,CAAC","sourcesContent":["/**\n * Copyright (c) Evan Bacon.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from \"react\";\nimport { ScrollView, StyleSheet, Text, View } from \"react-native\";\n\nimport type { CodeFrame } from \"../Data/parseLogBoxLog\";\nimport { Ansi } from \"../UI/AnsiHighlight\";\nimport { LogBoxButton } from \"../UI/LogBoxButton\";\nimport * as LogBoxStyle from \"../UI/LogBoxStyle\";\nimport { CODE_FONT } from \"../UI/constants\";\nimport { formatProjectFileName } from \"../formatProjectFilePath\";\nimport openFileInEditor from \"../modules/openFileInEditor\";\nimport { LogBoxInspectorSection } from \"./LogBoxInspectorSection\";\n\nexport function LogBoxInspectorCodeFrame(props: { codeFrame?: CodeFrame }) {\n const codeFrame = props.codeFrame;\n if (codeFrame == null) {\n return null;\n }\n\n function getFileName() {\n return formatProjectFileName(codeFrame?.fileName);\n }\n\n function getLocation() {\n const location = codeFrame?.location;\n if (location != null) {\n return ` (${location.row}:${\n location.column + 1 /* Code frame columns are zero indexed */\n })`;\n }\n\n return null;\n }\n\n return (\n <LogBoxInspectorSection heading=\"Source\">\n <View style={styles.box}>\n <View style={styles.frame}>\n <ScrollView horizontal>\n <Ansi style={styles.content} text={codeFrame.content} />\n </ScrollView>\n </View>\n <LogBoxButton\n backgroundColor={{\n default: \"transparent\",\n pressed: LogBoxStyle.getBackgroundDarkColor(1),\n }}\n style={styles.button}\n onPress={() => {\n openFileInEditor(codeFrame.fileName, codeFrame.location?.row ?? 0);\n }}\n >\n <Text selectable={false} style={styles.fileText}>\n {getFileName()}\n {getLocation()}\n </Text>\n </LogBoxButton>\n </View>\n </LogBoxInspectorSection>\n );\n}\n\nconst styles = StyleSheet.create({\n box: {\n backgroundColor: LogBoxStyle.getBackgroundColor(),\n borderWidth: 1,\n borderColor: \"#323232\",\n marginLeft: 10,\n marginRight: 10,\n marginTop: 5,\n borderRadius: 3,\n },\n frame: {\n padding: 10,\n borderBottomColor: LogBoxStyle.getTextColor(0.1),\n borderBottomWidth: 1,\n },\n button: {\n paddingTop: 10,\n paddingBottom: 10,\n },\n content: {\n color: LogBoxStyle.getTextColor(1),\n fontSize: 12,\n includeFontPadding: false,\n lineHeight: 20,\n fontFamily: CODE_FONT,\n },\n fileText: {\n color: LogBoxStyle.getTextColor(0.5),\n textAlign: \"center\",\n flex: 1,\n fontSize: 16,\n includeFontPadding: false,\n fontFamily: CODE_FONT,\n },\n});\n"]}
@@ -0,0 +1,7 @@
1
+ declare type Props = {
2
+ onDismiss: () => void;
3
+ onMinimize: () => void;
4
+ };
5
+ export declare function LogBoxInspectorFooter(props: Props): JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=LogBoxInspectorFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogBoxInspectorFooter.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/overlay/LogBoxInspectorFooter.tsx"],"names":[],"mappings":"AAaA,aAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,eAqBjD"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LogBoxInspectorFooter = void 0;
30
+ /**
31
+ * Copyright (c) Evan Bacon.
32
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */
37
+ const react_views_1 = require("@bacons/react-views");
38
+ const react_1 = __importDefault(require("react"));
39
+ const LogContext_1 = require("../Data/LogContext");
40
+ const LogBoxStyle = __importStar(require("../UI/LogBoxStyle"));
41
+ function LogBoxInspectorFooter(props) {
42
+ const log = (0, LogContext_1.useSelectedLog)();
43
+ if (log.level === "syntax") {
44
+ return (react_1.default.createElement(react_views_1.View, { style: styles.root },
45
+ react_1.default.createElement(react_views_1.View, { style: styles.button },
46
+ react_1.default.createElement(react_views_1.Text, { style: styles.syntaxErrorText }, "This error cannot be dismissed."))));
47
+ }
48
+ return (react_1.default.createElement(react_views_1.View, { style: styles.root },
49
+ react_1.default.createElement(FooterButton, { text: "Dismiss", onPress: props.onDismiss }),
50
+ react_1.default.createElement(FooterButton, { text: "Minimize", onPress: props.onMinimize })));
51
+ }
52
+ exports.LogBoxInspectorFooter = LogBoxInspectorFooter;
53
+ function FooterButton({ text, onPress, }) {
54
+ return (react_1.default.createElement(react_views_1.Pressable, { onPress: onPress, style: { flex: 1 } }, ({ hovered, pressed }) => (react_1.default.createElement(react_views_1.View, { style: [
55
+ buttonStyles.safeArea,
56
+ {
57
+ transitionDuration: "150ms",
58
+ backgroundColor: pressed
59
+ ? "#323232"
60
+ : hovered
61
+ ? "#111111"
62
+ : LogBoxStyle.getBackgroundColor(),
63
+ },
64
+ ] },
65
+ react_1.default.createElement(react_views_1.View, { style: buttonStyles.content },
66
+ react_1.default.createElement(react_views_1.Text, { selectable: false, style: buttonStyles.label }, text))))));
67
+ }
68
+ const buttonStyles = react_views_1.StyleSheet.create({
69
+ safeArea: {
70
+ flex: 1,
71
+ borderTopWidth: 1,
72
+ borderColor: "#323232",
73
+ // paddingBottom: DeviceInfo.getConstants().isIPhoneX_deprecated ? 30 : 0,
74
+ },
75
+ content: {
76
+ alignItems: "center",
77
+ height: 48,
78
+ justifyContent: "center",
79
+ },
80
+ label: {
81
+ color: LogBoxStyle.getTextColor(1),
82
+ fontSize: 14,
83
+ includeFontPadding: false,
84
+ lineHeight: 20,
85
+ },
86
+ });
87
+ const styles = react_views_1.StyleSheet.create({
88
+ root: {
89
+ backgroundColor: LogBoxStyle.getBackgroundColor(1),
90
+ shadowColor: "#000",
91
+ shadowOffset: { width: 0, height: -2 },
92
+ shadowRadius: 2,
93
+ shadowOpacity: 0.5,
94
+ flexDirection: "row",
95
+ },
96
+ button: {
97
+ flex: 1,
98
+ },
99
+ syntaxErrorText: {
100
+ textAlign: "center",
101
+ width: "100%",
102
+ height: 48,
103
+ fontSize: 14,
104
+ lineHeight: 20,
105
+ paddingTop: 20,
106
+ paddingBottom: 50,
107
+ fontStyle: "italic",
108
+ color: LogBoxStyle.getTextColor(0.6),
109
+ },
110
+ });
111
+ //# sourceMappingURL=LogBoxInspectorFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogBoxInspectorFooter.js","sourceRoot":"","sources":["../../../src/error-overlay/overlay/LogBoxInspectorFooter.tsx"],"names":[],"mappings":"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","sourcesContent":["/**\n * Copyright (c) Evan Bacon.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { Pressable, StyleSheet, Text, View } from \"@bacons/react-views\";\nimport React from \"react\";\n\nimport { useSelectedLog } from \"../Data/LogContext\";\nimport * as LogBoxStyle from \"../UI/LogBoxStyle\";\n\ntype Props = {\n onDismiss: () => void;\n onMinimize: () => void;\n};\n\nexport function LogBoxInspectorFooter(props: Props) {\n const log = useSelectedLog();\n\n if (log.level === \"syntax\") {\n return (\n <View style={styles.root}>\n <View style={styles.button}>\n <Text style={styles.syntaxErrorText}>\n This error cannot be dismissed.\n </Text>\n </View>\n </View>\n );\n }\n\n return (\n <View style={styles.root}>\n <FooterButton text=\"Dismiss\" onPress={props.onDismiss} />\n <FooterButton text=\"Minimize\" onPress={props.onMinimize} />\n </View>\n );\n}\n\nfunction FooterButton({\n text,\n onPress,\n}: {\n onPress: () => void;\n text: string;\n}) {\n return (\n <Pressable onPress={onPress} style={{ flex: 1 }}>\n {({ hovered, pressed }) => (\n <View\n style={[\n buttonStyles.safeArea,\n {\n transitionDuration: \"150ms\",\n backgroundColor: pressed\n ? \"#323232\"\n : hovered\n ? \"#111111\"\n : LogBoxStyle.getBackgroundColor(),\n },\n ]}\n >\n <View style={buttonStyles.content}>\n <Text selectable={false} style={buttonStyles.label}>\n {text}\n </Text>\n </View>\n </View>\n )}\n </Pressable>\n );\n}\n\nconst buttonStyles = StyleSheet.create({\n safeArea: {\n flex: 1,\n borderTopWidth: 1,\n borderColor: \"#323232\",\n // paddingBottom: DeviceInfo.getConstants().isIPhoneX_deprecated ? 30 : 0,\n },\n content: {\n alignItems: \"center\",\n height: 48,\n justifyContent: \"center\",\n },\n label: {\n color: LogBoxStyle.getTextColor(1),\n fontSize: 14,\n includeFontPadding: false,\n lineHeight: 20,\n },\n});\n\nconst styles = StyleSheet.create({\n root: {\n backgroundColor: LogBoxStyle.getBackgroundColor(1),\n shadowColor: \"#000\",\n shadowOffset: { width: 0, height: -2 },\n shadowRadius: 2,\n shadowOpacity: 0.5,\n flexDirection: \"row\",\n },\n button: {\n flex: 1,\n },\n syntaxErrorText: {\n textAlign: \"center\",\n width: \"100%\",\n height: 48,\n fontSize: 14,\n lineHeight: 20,\n paddingTop: 20,\n paddingBottom: 50,\n fontStyle: \"italic\",\n color: LogBoxStyle.getTextColor(0.6),\n },\n});\n"]}
@@ -0,0 +1,8 @@
1
+ import type { LogLevel } from "../Data/LogBoxLog";
2
+ declare type Props = {
3
+ onSelectIndex: (selectedIndex: number) => void;
4
+ level: LogLevel;
5
+ };
6
+ export declare function LogBoxInspectorHeader(props: Props): JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=LogBoxInspectorHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogBoxInspectorHeader.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/overlay/LogBoxInspectorHeader.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAKlD,aAAK,KAAK,GAAG;IACX,aAAa,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,eA0CjD"}