@xyo-network/react-error 2.81.10 → 2.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (283) hide show
  1. package/dist/browser/index.d.ts +62 -3
  2. package/dist/browser/index.mjs +163 -0
  3. package/dist/browser/index.mjs.map +1 -0
  4. package/package.json +15 -31
  5. package/src/components/ErrorBoundary/ThrownErrorBoundary.stories.tsx +8 -4
  6. package/src/components/ErrorBoundary/ThrownErrorBoundary.tsx +5 -5
  7. package/src/components/ErrorBoundary/index.ts +1 -1
  8. package/src/components/ErrorRender/ErrorAlert.stories.tsx +1 -2
  9. package/src/components/ErrorRender/ErrorAlert.tsx +18 -14
  10. package/src/components/ErrorRender/Render.tsx +15 -12
  11. package/src/components/ErrorRender/index.ts +3 -3
  12. package/src/components/index.ts +2 -2
  13. package/src/contexts/ErrorReporter/Context.ts +1 -1
  14. package/src/contexts/ErrorReporter/Provider.stories.tsx +11 -4
  15. package/src/contexts/ErrorReporter/Provider.tsx +3 -2
  16. package/src/contexts/ErrorReporter/index.ts +3 -3
  17. package/src/contexts/ErrorReporter/useRollbar.tsx +1 -1
  18. package/src/contexts/index.ts +1 -1
  19. package/src/index.ts +2 -2
  20. package/xy.config.ts +12 -0
  21. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  22. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  23. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  24. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  25. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  26. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  27. package/dist/browser/components/ErrorBoundary/index.d.cts +0 -2
  28. package/dist/browser/components/ErrorBoundary/index.d.cts.map +0 -1
  29. package/dist/browser/components/ErrorBoundary/index.d.mts +0 -2
  30. package/dist/browser/components/ErrorBoundary/index.d.mts.map +0 -1
  31. package/dist/browser/components/ErrorBoundary/index.d.ts +0 -2
  32. package/dist/browser/components/ErrorBoundary/index.d.ts.map +0 -1
  33. package/dist/browser/components/ErrorRender/ErrorAlert.d.cts +0 -10
  34. package/dist/browser/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  35. package/dist/browser/components/ErrorRender/ErrorAlert.d.mts +0 -10
  36. package/dist/browser/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  37. package/dist/browser/components/ErrorRender/ErrorAlert.d.ts +0 -10
  38. package/dist/browser/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  39. package/dist/browser/components/ErrorRender/Props.d.cts +0 -15
  40. package/dist/browser/components/ErrorRender/Props.d.cts.map +0 -1
  41. package/dist/browser/components/ErrorRender/Props.d.mts +0 -15
  42. package/dist/browser/components/ErrorRender/Props.d.mts.map +0 -1
  43. package/dist/browser/components/ErrorRender/Props.d.ts +0 -15
  44. package/dist/browser/components/ErrorRender/Props.d.ts.map +0 -1
  45. package/dist/browser/components/ErrorRender/Render.d.cts +0 -3
  46. package/dist/browser/components/ErrorRender/Render.d.cts.map +0 -1
  47. package/dist/browser/components/ErrorRender/Render.d.mts +0 -3
  48. package/dist/browser/components/ErrorRender/Render.d.mts.map +0 -1
  49. package/dist/browser/components/ErrorRender/Render.d.ts +0 -3
  50. package/dist/browser/components/ErrorRender/Render.d.ts.map +0 -1
  51. package/dist/browser/components/ErrorRender/index.d.cts +0 -4
  52. package/dist/browser/components/ErrorRender/index.d.cts.map +0 -1
  53. package/dist/browser/components/ErrorRender/index.d.mts +0 -4
  54. package/dist/browser/components/ErrorRender/index.d.mts.map +0 -1
  55. package/dist/browser/components/ErrorRender/index.d.ts +0 -4
  56. package/dist/browser/components/ErrorRender/index.d.ts.map +0 -1
  57. package/dist/browser/components/index.d.cts +0 -3
  58. package/dist/browser/components/index.d.cts.map +0 -1
  59. package/dist/browser/components/index.d.mts +0 -3
  60. package/dist/browser/components/index.d.mts.map +0 -1
  61. package/dist/browser/components/index.d.ts +0 -3
  62. package/dist/browser/components/index.d.ts.map +0 -1
  63. package/dist/browser/contexts/ErrorReporter/Context.d.cts +0 -3
  64. package/dist/browser/contexts/ErrorReporter/Context.d.cts.map +0 -1
  65. package/dist/browser/contexts/ErrorReporter/Context.d.mts +0 -3
  66. package/dist/browser/contexts/ErrorReporter/Context.d.mts.map +0 -1
  67. package/dist/browser/contexts/ErrorReporter/Context.d.ts +0 -3
  68. package/dist/browser/contexts/ErrorReporter/Context.d.ts.map +0 -1
  69. package/dist/browser/contexts/ErrorReporter/Provider.d.cts +0 -8
  70. package/dist/browser/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  71. package/dist/browser/contexts/ErrorReporter/Provider.d.mts +0 -8
  72. package/dist/browser/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  73. package/dist/browser/contexts/ErrorReporter/Provider.d.ts +0 -8
  74. package/dist/browser/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  75. package/dist/browser/contexts/ErrorReporter/State.d.cts +0 -5
  76. package/dist/browser/contexts/ErrorReporter/State.d.cts.map +0 -1
  77. package/dist/browser/contexts/ErrorReporter/State.d.mts +0 -5
  78. package/dist/browser/contexts/ErrorReporter/State.d.mts.map +0 -1
  79. package/dist/browser/contexts/ErrorReporter/State.d.ts +0 -5
  80. package/dist/browser/contexts/ErrorReporter/State.d.ts.map +0 -1
  81. package/dist/browser/contexts/ErrorReporter/index.d.cts +0 -4
  82. package/dist/browser/contexts/ErrorReporter/index.d.cts.map +0 -1
  83. package/dist/browser/contexts/ErrorReporter/index.d.mts +0 -4
  84. package/dist/browser/contexts/ErrorReporter/index.d.mts.map +0 -1
  85. package/dist/browser/contexts/ErrorReporter/index.d.ts +0 -4
  86. package/dist/browser/contexts/ErrorReporter/index.d.ts.map +0 -1
  87. package/dist/browser/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  88. package/dist/browser/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  89. package/dist/browser/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  90. package/dist/browser/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  91. package/dist/browser/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  92. package/dist/browser/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  93. package/dist/browser/contexts/index.d.cts +0 -2
  94. package/dist/browser/contexts/index.d.cts.map +0 -1
  95. package/dist/browser/contexts/index.d.mts +0 -2
  96. package/dist/browser/contexts/index.d.mts.map +0 -1
  97. package/dist/browser/contexts/index.d.ts +0 -2
  98. package/dist/browser/contexts/index.d.ts.map +0 -1
  99. package/dist/browser/index.cjs +0 -153
  100. package/dist/browser/index.cjs.map +0 -1
  101. package/dist/browser/index.d.cts +0 -3
  102. package/dist/browser/index.d.cts.map +0 -1
  103. package/dist/browser/index.d.mts +0 -3
  104. package/dist/browser/index.d.mts.map +0 -1
  105. package/dist/browser/index.d.ts.map +0 -1
  106. package/dist/browser/index.js +0 -130
  107. package/dist/browser/index.js.map +0 -1
  108. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  109. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  110. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  111. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  112. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  113. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  114. package/dist/neutral/components/ErrorBoundary/index.d.cts +0 -2
  115. package/dist/neutral/components/ErrorBoundary/index.d.cts.map +0 -1
  116. package/dist/neutral/components/ErrorBoundary/index.d.mts +0 -2
  117. package/dist/neutral/components/ErrorBoundary/index.d.mts.map +0 -1
  118. package/dist/neutral/components/ErrorBoundary/index.d.ts +0 -2
  119. package/dist/neutral/components/ErrorBoundary/index.d.ts.map +0 -1
  120. package/dist/neutral/components/ErrorRender/ErrorAlert.d.cts +0 -10
  121. package/dist/neutral/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  122. package/dist/neutral/components/ErrorRender/ErrorAlert.d.mts +0 -10
  123. package/dist/neutral/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  124. package/dist/neutral/components/ErrorRender/ErrorAlert.d.ts +0 -10
  125. package/dist/neutral/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  126. package/dist/neutral/components/ErrorRender/Props.d.cts +0 -15
  127. package/dist/neutral/components/ErrorRender/Props.d.cts.map +0 -1
  128. package/dist/neutral/components/ErrorRender/Props.d.mts +0 -15
  129. package/dist/neutral/components/ErrorRender/Props.d.mts.map +0 -1
  130. package/dist/neutral/components/ErrorRender/Props.d.ts +0 -15
  131. package/dist/neutral/components/ErrorRender/Props.d.ts.map +0 -1
  132. package/dist/neutral/components/ErrorRender/Render.d.cts +0 -3
  133. package/dist/neutral/components/ErrorRender/Render.d.cts.map +0 -1
  134. package/dist/neutral/components/ErrorRender/Render.d.mts +0 -3
  135. package/dist/neutral/components/ErrorRender/Render.d.mts.map +0 -1
  136. package/dist/neutral/components/ErrorRender/Render.d.ts +0 -3
  137. package/dist/neutral/components/ErrorRender/Render.d.ts.map +0 -1
  138. package/dist/neutral/components/ErrorRender/index.d.cts +0 -4
  139. package/dist/neutral/components/ErrorRender/index.d.cts.map +0 -1
  140. package/dist/neutral/components/ErrorRender/index.d.mts +0 -4
  141. package/dist/neutral/components/ErrorRender/index.d.mts.map +0 -1
  142. package/dist/neutral/components/ErrorRender/index.d.ts +0 -4
  143. package/dist/neutral/components/ErrorRender/index.d.ts.map +0 -1
  144. package/dist/neutral/components/index.d.cts +0 -3
  145. package/dist/neutral/components/index.d.cts.map +0 -1
  146. package/dist/neutral/components/index.d.mts +0 -3
  147. package/dist/neutral/components/index.d.mts.map +0 -1
  148. package/dist/neutral/components/index.d.ts +0 -3
  149. package/dist/neutral/components/index.d.ts.map +0 -1
  150. package/dist/neutral/contexts/ErrorReporter/Context.d.cts +0 -3
  151. package/dist/neutral/contexts/ErrorReporter/Context.d.cts.map +0 -1
  152. package/dist/neutral/contexts/ErrorReporter/Context.d.mts +0 -3
  153. package/dist/neutral/contexts/ErrorReporter/Context.d.mts.map +0 -1
  154. package/dist/neutral/contexts/ErrorReporter/Context.d.ts +0 -3
  155. package/dist/neutral/contexts/ErrorReporter/Context.d.ts.map +0 -1
  156. package/dist/neutral/contexts/ErrorReporter/Provider.d.cts +0 -8
  157. package/dist/neutral/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  158. package/dist/neutral/contexts/ErrorReporter/Provider.d.mts +0 -8
  159. package/dist/neutral/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  160. package/dist/neutral/contexts/ErrorReporter/Provider.d.ts +0 -8
  161. package/dist/neutral/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  162. package/dist/neutral/contexts/ErrorReporter/State.d.cts +0 -5
  163. package/dist/neutral/contexts/ErrorReporter/State.d.cts.map +0 -1
  164. package/dist/neutral/contexts/ErrorReporter/State.d.mts +0 -5
  165. package/dist/neutral/contexts/ErrorReporter/State.d.mts.map +0 -1
  166. package/dist/neutral/contexts/ErrorReporter/State.d.ts +0 -5
  167. package/dist/neutral/contexts/ErrorReporter/State.d.ts.map +0 -1
  168. package/dist/neutral/contexts/ErrorReporter/index.d.cts +0 -4
  169. package/dist/neutral/contexts/ErrorReporter/index.d.cts.map +0 -1
  170. package/dist/neutral/contexts/ErrorReporter/index.d.mts +0 -4
  171. package/dist/neutral/contexts/ErrorReporter/index.d.mts.map +0 -1
  172. package/dist/neutral/contexts/ErrorReporter/index.d.ts +0 -4
  173. package/dist/neutral/contexts/ErrorReporter/index.d.ts.map +0 -1
  174. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  175. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  176. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  177. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  178. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  179. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  180. package/dist/neutral/contexts/index.d.cts +0 -2
  181. package/dist/neutral/contexts/index.d.cts.map +0 -1
  182. package/dist/neutral/contexts/index.d.mts +0 -2
  183. package/dist/neutral/contexts/index.d.mts.map +0 -1
  184. package/dist/neutral/contexts/index.d.ts +0 -2
  185. package/dist/neutral/contexts/index.d.ts.map +0 -1
  186. package/dist/neutral/index.cjs +0 -153
  187. package/dist/neutral/index.cjs.map +0 -1
  188. package/dist/neutral/index.d.cts +0 -3
  189. package/dist/neutral/index.d.cts.map +0 -1
  190. package/dist/neutral/index.d.mts +0 -3
  191. package/dist/neutral/index.d.mts.map +0 -1
  192. package/dist/neutral/index.d.ts +0 -3
  193. package/dist/neutral/index.d.ts.map +0 -1
  194. package/dist/neutral/index.js +0 -130
  195. package/dist/neutral/index.js.map +0 -1
  196. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  197. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  198. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  199. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  200. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  201. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  202. package/dist/node/components/ErrorBoundary/index.d.cts +0 -2
  203. package/dist/node/components/ErrorBoundary/index.d.cts.map +0 -1
  204. package/dist/node/components/ErrorBoundary/index.d.mts +0 -2
  205. package/dist/node/components/ErrorBoundary/index.d.mts.map +0 -1
  206. package/dist/node/components/ErrorBoundary/index.d.ts +0 -2
  207. package/dist/node/components/ErrorBoundary/index.d.ts.map +0 -1
  208. package/dist/node/components/ErrorRender/ErrorAlert.d.cts +0 -10
  209. package/dist/node/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  210. package/dist/node/components/ErrorRender/ErrorAlert.d.mts +0 -10
  211. package/dist/node/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  212. package/dist/node/components/ErrorRender/ErrorAlert.d.ts +0 -10
  213. package/dist/node/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  214. package/dist/node/components/ErrorRender/Props.d.cts +0 -15
  215. package/dist/node/components/ErrorRender/Props.d.cts.map +0 -1
  216. package/dist/node/components/ErrorRender/Props.d.mts +0 -15
  217. package/dist/node/components/ErrorRender/Props.d.mts.map +0 -1
  218. package/dist/node/components/ErrorRender/Props.d.ts +0 -15
  219. package/dist/node/components/ErrorRender/Props.d.ts.map +0 -1
  220. package/dist/node/components/ErrorRender/Render.d.cts +0 -3
  221. package/dist/node/components/ErrorRender/Render.d.cts.map +0 -1
  222. package/dist/node/components/ErrorRender/Render.d.mts +0 -3
  223. package/dist/node/components/ErrorRender/Render.d.mts.map +0 -1
  224. package/dist/node/components/ErrorRender/Render.d.ts +0 -3
  225. package/dist/node/components/ErrorRender/Render.d.ts.map +0 -1
  226. package/dist/node/components/ErrorRender/index.d.cts +0 -4
  227. package/dist/node/components/ErrorRender/index.d.cts.map +0 -1
  228. package/dist/node/components/ErrorRender/index.d.mts +0 -4
  229. package/dist/node/components/ErrorRender/index.d.mts.map +0 -1
  230. package/dist/node/components/ErrorRender/index.d.ts +0 -4
  231. package/dist/node/components/ErrorRender/index.d.ts.map +0 -1
  232. package/dist/node/components/index.d.cts +0 -3
  233. package/dist/node/components/index.d.cts.map +0 -1
  234. package/dist/node/components/index.d.mts +0 -3
  235. package/dist/node/components/index.d.mts.map +0 -1
  236. package/dist/node/components/index.d.ts +0 -3
  237. package/dist/node/components/index.d.ts.map +0 -1
  238. package/dist/node/contexts/ErrorReporter/Context.d.cts +0 -3
  239. package/dist/node/contexts/ErrorReporter/Context.d.cts.map +0 -1
  240. package/dist/node/contexts/ErrorReporter/Context.d.mts +0 -3
  241. package/dist/node/contexts/ErrorReporter/Context.d.mts.map +0 -1
  242. package/dist/node/contexts/ErrorReporter/Context.d.ts +0 -3
  243. package/dist/node/contexts/ErrorReporter/Context.d.ts.map +0 -1
  244. package/dist/node/contexts/ErrorReporter/Provider.d.cts +0 -8
  245. package/dist/node/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  246. package/dist/node/contexts/ErrorReporter/Provider.d.mts +0 -8
  247. package/dist/node/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  248. package/dist/node/contexts/ErrorReporter/Provider.d.ts +0 -8
  249. package/dist/node/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  250. package/dist/node/contexts/ErrorReporter/State.d.cts +0 -5
  251. package/dist/node/contexts/ErrorReporter/State.d.cts.map +0 -1
  252. package/dist/node/contexts/ErrorReporter/State.d.mts +0 -5
  253. package/dist/node/contexts/ErrorReporter/State.d.mts.map +0 -1
  254. package/dist/node/contexts/ErrorReporter/State.d.ts +0 -5
  255. package/dist/node/contexts/ErrorReporter/State.d.ts.map +0 -1
  256. package/dist/node/contexts/ErrorReporter/index.d.cts +0 -4
  257. package/dist/node/contexts/ErrorReporter/index.d.cts.map +0 -1
  258. package/dist/node/contexts/ErrorReporter/index.d.mts +0 -4
  259. package/dist/node/contexts/ErrorReporter/index.d.mts.map +0 -1
  260. package/dist/node/contexts/ErrorReporter/index.d.ts +0 -4
  261. package/dist/node/contexts/ErrorReporter/index.d.ts.map +0 -1
  262. package/dist/node/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  263. package/dist/node/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  264. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  265. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  266. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  267. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  268. package/dist/node/contexts/index.d.cts +0 -2
  269. package/dist/node/contexts/index.d.cts.map +0 -1
  270. package/dist/node/contexts/index.d.mts +0 -2
  271. package/dist/node/contexts/index.d.mts.map +0 -1
  272. package/dist/node/contexts/index.d.ts +0 -2
  273. package/dist/node/contexts/index.d.ts.map +0 -1
  274. package/dist/node/index.cjs +0 -161
  275. package/dist/node/index.cjs.map +0 -1
  276. package/dist/node/index.d.cts +0 -3
  277. package/dist/node/index.d.cts.map +0 -1
  278. package/dist/node/index.d.mts +0 -3
  279. package/dist/node/index.d.mts.map +0 -1
  280. package/dist/node/index.d.ts +0 -3
  281. package/dist/node/index.d.ts.map +0 -1
  282. package/dist/node/index.js +0 -130
  283. package/dist/node/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThrownErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/ThrownErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,SAAS,CAAA;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,qBAAa,mBAAoB,SAAQ,SAAS,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;IAC3F,KAAK,EAAE,wBAAwB,CAEvC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GACwC,wBAAwB;IAG5G,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW;IAOrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAYpD,MAAM;CAYhB"}
@@ -1,23 +0,0 @@
1
- import { ModuleError } from '@xyo-network/payload-model';
2
- import { Component, ErrorInfo, ReactNode } from 'react';
3
- import Rollbar from 'rollbar';
4
- export interface ThrownErrorBoundaryProps {
5
- boundaryName?: string;
6
- children: ReactNode;
7
- errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode;
8
- rethrow?: boolean;
9
- rollbar?: Rollbar;
10
- scope?: string;
11
- title?: string;
12
- }
13
- export interface ThrownErrorBoundaryState {
14
- xyoError?: ModuleError;
15
- }
16
- export declare class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {
17
- state: ThrownErrorBoundaryState;
18
- static getDerivedStateFromError(error: Error): ThrownErrorBoundaryState;
19
- static normalizeError(error: Error | ModuleError): ModuleError;
20
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
21
- render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
22
- }
23
- //# sourceMappingURL=ThrownErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThrownErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/ThrownErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,SAAS,CAAA;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,qBAAa,mBAAoB,SAAQ,SAAS,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;IAC3F,KAAK,EAAE,wBAAwB,CAEvC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GACwC,wBAAwB;IAG5G,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW;IAOrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAYpD,MAAM;CAYhB"}
@@ -1,2 +0,0 @@
1
- export * from './ThrownErrorBoundary.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ThrownErrorBoundary.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ThrownErrorBoundary.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,10 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- export interface ErrorAlertProps extends AlertProps {
4
- error?: ModuleError | Error | string;
5
- errorContext?: string;
6
- onCancel?: () => void;
7
- scope?: string;
8
- }
9
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
10
- //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/ErrorAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAA0B,MAAM,eAAe,CAAA;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;IAEpC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiChD,CAAA"}
@@ -1,10 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- export interface ErrorAlertProps extends AlertProps {
4
- error?: ModuleError | Error | string;
5
- errorContext?: string;
6
- onCancel?: () => void;
7
- scope?: string;
8
- }
9
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
10
- //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/ErrorAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAA0B,MAAM,eAAe,CAAA;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;IAEpC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiChD,CAAA"}
@@ -1,10 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- export interface ErrorAlertProps extends AlertProps {
4
- error?: ModuleError | Error | string;
5
- errorContext?: string;
6
- onCancel?: () => void;
7
- scope?: string;
8
- }
9
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
10
- //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/ErrorAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAA0B,MAAM,eAAe,CAAA;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;IAEpC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiChD,CAAA"}
@@ -1,15 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import { ReactNode } from 'react';
4
- import { Location } from 'react-router-dom';
5
- export interface ErrorRenderProps extends FlexBoxProps {
6
- customError?: ReactNode;
7
- error?: ModuleError | Error;
8
- errorContext?: string;
9
- noErrorDisplay?: boolean;
10
- noReAuth?: boolean;
11
- onCancel?: () => void;
12
- scope?: string;
13
- useLocation?: () => Location;
14
- }
15
- //# sourceMappingURL=Props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,QAAQ,CAAA;CAC7B"}
@@ -1,15 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import { ReactNode } from 'react';
4
- import { Location } from 'react-router-dom';
5
- export interface ErrorRenderProps extends FlexBoxProps {
6
- customError?: ReactNode;
7
- error?: ModuleError | Error;
8
- errorContext?: string;
9
- noErrorDisplay?: boolean;
10
- noReAuth?: boolean;
11
- onCancel?: () => void;
12
- scope?: string;
13
- useLocation?: () => Location;
14
- }
15
- //# sourceMappingURL=Props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,QAAQ,CAAA;CAC7B"}
@@ -1,15 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import { ReactNode } from 'react';
4
- import { Location } from 'react-router-dom';
5
- export interface ErrorRenderProps extends FlexBoxProps {
6
- customError?: ReactNode;
7
- error?: ModuleError | Error;
8
- errorContext?: string;
9
- noErrorDisplay?: boolean;
10
- noReAuth?: boolean;
11
- onCancel?: () => void;
12
- scope?: string;
13
- useLocation?: () => Location;
14
- }
15
- //# sourceMappingURL=Props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,GAAG,KAAK,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,QAAQ,CAAA;CAC7B"}
@@ -1,3 +0,0 @@
1
- import { ErrorRenderProps } from './Props.js';
2
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
3
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiClD,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ErrorRenderProps } from './Props.js';
2
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
3
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiClD,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ErrorRenderProps } from './Props.js';
2
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
3
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiClD,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.js';
2
- export * from './Props.js';
3
- export * from './Render.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.js';
2
- export * from './Props.js';
3
- export * from './Render.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.js';
2
- export * from './Props.js';
3
- export * from './Render.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorBoundary/index.js';
2
- export * from './ErrorRender/index.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorBoundary/index.js';
2
- export * from './ErrorRender/index.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorBoundary/index.js';
2
- export * from './ErrorRender/index.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ErrorReporterContextState } from './State.js';
2
- export declare const ErrorReporterContext: import("react").Context<ErrorReporterContextState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAEtD,eAAO,MAAM,oBAAoB,oDAA+C,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ErrorReporterContextState } from './State.js';
2
- export declare const ErrorReporterContext: import("react").Context<ErrorReporterContextState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAEtD,eAAO,MAAM,oBAAoB,oDAA+C,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ErrorReporterContextState } from './State.js';
2
- export declare const ErrorReporterContext: import("react").Context<ErrorReporterContextState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAEtD,eAAO,MAAM,oBAAoB,oDAA+C,CAAA"}
@@ -1,8 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import Rollbar from 'rollbar';
3
- export interface ErrorReporterProviderProps {
4
- rollbar: Rollbar;
5
- }
6
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
7
- export { ErrorReporterProvider };
8
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAU7E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,8 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import Rollbar from 'rollbar';
3
- export interface ErrorReporterProviderProps {
4
- rollbar: Rollbar;
5
- }
6
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
7
- export { ErrorReporterProvider };
8
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAU7E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,8 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import Rollbar from 'rollbar';
3
- export interface ErrorReporterProviderProps {
4
- rollbar: Rollbar;
5
- }
6
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
7
- export { ErrorReporterProvider };
8
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,OAAO,MAAM,SAAS,CAAA;AAI7B,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,0BAA0B,CAAC,CAU7E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import Rollbar from 'rollbar';
2
- export interface ErrorReporterContextState {
3
- rollbar?: Rollbar;
4
- }
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/State.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -1,5 +0,0 @@
1
- import Rollbar from 'rollbar';
2
- export interface ErrorReporterContextState {
3
- rollbar?: Rollbar;
4
- }
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/State.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -1,5 +0,0 @@
1
- import Rollbar from 'rollbar';
2
- export interface ErrorReporterContextState {
3
- rollbar?: Rollbar;
4
- }
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/State.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -1,4 +0,0 @@
1
- export * from './Provider.js';
2
- export * from './State.js';
3
- export * from './useRollbar.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Provider.js';
2
- export * from './State.js';
3
- export * from './useRollbar.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Provider.js';
2
- export * from './State.js';
3
- export * from './useRollbar.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const useRollbar: () => import("./State.js").ErrorReporterContextState;
2
- export { useRollbar };
3
- //# sourceMappingURL=useRollbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRollbar.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,sDAOf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const useRollbar: () => import("./State.js").ErrorReporterContextState;
2
- export { useRollbar };
3
- //# sourceMappingURL=useRollbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRollbar.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,sDAOf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const useRollbar: () => import("./State.js").ErrorReporterContextState;
2
- export { useRollbar };
3
- //# sourceMappingURL=useRollbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRollbar.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,sDAOf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ErrorReporter/index.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ErrorReporter/index.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ErrorReporter/index.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1,161 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- ErrorAlert: () => ErrorAlert,
24
- ErrorRender: () => ErrorRender,
25
- ErrorReporterProvider: () => ErrorReporterProvider,
26
- ThrownErrorBoundary: () => ThrownErrorBoundary,
27
- useRollbar: () => useRollbar
28
- });
29
- module.exports = __toCommonJS(src_exports);
30
-
31
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
32
- var import_payload_model = require("@xyo-network/payload-model");
33
- var import_react2 = require("react");
34
-
35
- // src/components/ErrorRender/ErrorAlert.tsx
36
- var import_icons_material = require("@mui/icons-material");
37
- var import_material = require("@mui/material");
38
- var import_react_button = require("@xylabs/react-button");
39
- var import_jsx_runtime = require("react/jsx-runtime");
40
- var ErrorAlert = ({
41
- title = "Whoops! Something went wrong",
42
- onCancel,
43
- error = "An unknown error occurred",
44
- errorContext,
45
- scope,
46
- ...props
47
- }) => {
48
- const finalScope = scope ?? errorContext;
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", ...props, children: [
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: title }),
51
- finalScope ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
52
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Scope:" }),
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: finalScope })
54
- ] }) : null,
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
56
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Error:" }),
57
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: typeof error === "string" ? error : error == null ? void 0 : error.message })
58
- ] }),
59
- onCancel ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { variant: "outlined", size: "small", onClick: onCancel, position: "absolute", style: { right: 8, top: 8 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.ExitToApp, { fontSize: "small" }) }) : null
60
- ] });
61
- };
62
-
63
- // src/components/ErrorRender/Render.tsx
64
- var import_react_flexbox = require("@xylabs/react-flexbox");
65
- var import_react = require("react");
66
- var import_jsx_runtime2 = require("react/jsx-runtime");
67
- var ErrorRender = ({
68
- onCancel,
69
- error,
70
- noErrorDisplay = false,
71
- customError = null,
72
- children,
73
- errorContext,
74
- scope,
75
- useLocation,
76
- ...props
77
- }) => {
78
- const location = useLocation == null ? void 0 : useLocation();
79
- (0, import_react.useEffect)(() => {
80
- if (location) {
81
- location.state = {
82
- from: {
83
- pathname: window.location.pathname
84
- }
85
- };
86
- }
87
- }, [location]);
88
- return error ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox.FlexCol, { alignItems: "stretch", ...props, children: noErrorDisplay ? customError : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox.FlexCol, { alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorAlert, { error, errorContext, onCancel, scope }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children }) ?? null;
89
- };
90
-
91
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
92
- var import_jsx_runtime3 = require("react/jsx-runtime");
93
- var ThrownErrorBoundary = class _ThrownErrorBoundary extends import_react2.Component {
94
- state = {
95
- xyoError: void 0
96
- };
97
- static getDerivedStateFromError(error) {
98
- return { hasError: true, xyoError: _ThrownErrorBoundary.normalizeError(error) };
99
- }
100
- static normalizeError(error) {
101
- return error.schema === import_payload_model.ModuleErrorSchema ? error : { message: error.message, schema: import_payload_model.ModuleErrorSchema, sources: [] };
102
- }
103
- componentDidCatch(error, errorInfo) {
104
- const { rethrow, rollbar } = this.props;
105
- const { xyoError } = this.state;
106
- rollbar == null ? void 0 : rollbar.error(error);
107
- console.error("Error:", xyoError, errorInfo);
108
- if (rethrow) {
109
- throw error;
110
- }
111
- }
112
- render() {
113
- const { xyoError } = this.state;
114
- const { children, boundaryName, errorComponent, scope, title } = this.props;
115
- if (xyoError) {
116
- if (errorComponent) {
117
- return errorComponent(xyoError);
118
- }
119
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ErrorRender, { error: xyoError, errorContext: `${boundaryName} Boundary`, scope, title });
120
- }
121
- return children;
122
- }
123
- };
124
-
125
- // src/contexts/ErrorReporter/Provider.tsx
126
- var import_react4 = require("react");
127
-
128
- // src/contexts/ErrorReporter/Context.ts
129
- var import_react3 = require("react");
130
- var ErrorReporterContext = (0, import_react3.createContext)({});
131
-
132
- // src/contexts/ErrorReporter/Provider.tsx
133
- var import_jsx_runtime4 = require("react/jsx-runtime");
134
- var ErrorReporterProvider = ({ children, rollbar }) => {
135
- const [rollbarInstance, setRollBarInstance] = (0, import_react4.useState)();
136
- (0, import_react4.useEffect)(() => {
137
- if (rollbarInstance) {
138
- setRollBarInstance(rollbarInstance);
139
- }
140
- }, [rollbar, rollbarInstance]);
141
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ErrorReporterContext.Provider, { value: { rollbar }, children });
142
- };
143
-
144
- // src/contexts/ErrorReporter/useRollbar.tsx
145
- var import_react5 = require("react");
146
- var useRollbar = () => {
147
- const context = (0, import_react5.useContext)(ErrorReporterContext);
148
- if (context === void 0) {
149
- console.warn("useRollbar must be used within a ErrorReporterContext");
150
- }
151
- return context ?? {};
152
- };
153
- // Annotate the CommonJS export names for ESM import in node:
154
- 0 && (module.exports = {
155
- ErrorAlert,
156
- ErrorRender,
157
- ErrorReporterProvider,
158
- ThrownErrorBoundary,
159
- useRollbar
160
- });
161
- //# sourceMappingURL=index.cjs.map