@xyo-network/react-error 2.64.0-rc.3 → 2.64.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +1 -0
  2. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +1 -0
  3. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.js +39 -0
  4. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  5. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.stories.js +26 -0
  6. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.stories.js.map +1 -0
  7. package/dist/browser/components/ErrorBoundary/index.d.mts.map +1 -0
  8. package/dist/browser/components/ErrorBoundary/index.d.ts.map +1 -0
  9. package/dist/browser/components/ErrorBoundary/index.js +2 -0
  10. package/dist/browser/components/ErrorBoundary/index.js.map +1 -0
  11. package/dist/browser/components/ErrorRender/ErrorAlert.d.mts.map +1 -0
  12. package/dist/browser/components/ErrorRender/ErrorAlert.d.ts.map +1 -0
  13. package/dist/browser/components/ErrorRender/ErrorAlert.js +17 -0
  14. package/dist/browser/components/ErrorRender/ErrorAlert.js.map +1 -0
  15. package/dist/browser/components/ErrorRender/Props.d.mts.map +1 -0
  16. package/dist/browser/components/ErrorRender/Props.d.ts.map +1 -0
  17. package/dist/browser/components/ErrorRender/Props.js +1 -0
  18. package/dist/browser/components/ErrorRender/Props.js.map +1 -0
  19. package/dist/browser/components/ErrorRender/Render.d.mts.map +1 -0
  20. package/dist/browser/components/ErrorRender/Render.d.ts.map +1 -0
  21. package/dist/browser/components/ErrorRender/Render.js +32 -0
  22. package/dist/browser/components/ErrorRender/Render.js.map +1 -0
  23. package/dist/browser/components/ErrorRender/index.d.mts.map +1 -0
  24. package/dist/browser/components/ErrorRender/index.d.ts.map +1 -0
  25. package/dist/browser/components/ErrorRender/index.js +4 -0
  26. package/dist/browser/components/ErrorRender/index.js.map +1 -0
  27. package/dist/browser/components/index.d.mts.map +1 -0
  28. package/dist/browser/components/index.d.ts.map +1 -0
  29. package/dist/browser/components/index.js +3 -0
  30. package/dist/browser/components/index.js.map +1 -0
  31. package/dist/browser/contexts/ErrorReporter/Context.d.mts.map +1 -0
  32. package/dist/browser/contexts/ErrorReporter/Context.d.ts.map +1 -0
  33. package/dist/browser/contexts/ErrorReporter/Context.js +6 -0
  34. package/dist/browser/contexts/ErrorReporter/Context.js.map +1 -0
  35. package/dist/browser/contexts/ErrorReporter/Provider.d.mts.map +1 -0
  36. package/dist/browser/contexts/ErrorReporter/Provider.d.ts.map +1 -0
  37. package/dist/browser/contexts/ErrorReporter/Provider.js +16 -0
  38. package/dist/browser/contexts/ErrorReporter/Provider.js.map +1 -0
  39. package/dist/browser/contexts/ErrorReporter/Provider.stories.js +35 -0
  40. package/dist/browser/contexts/ErrorReporter/Provider.stories.js.map +1 -0
  41. package/dist/browser/contexts/ErrorReporter/State.d.mts.map +1 -0
  42. package/dist/browser/contexts/ErrorReporter/State.d.ts.map +1 -0
  43. package/dist/browser/contexts/ErrorReporter/State.js +1 -0
  44. package/dist/browser/contexts/ErrorReporter/State.js.map +1 -0
  45. package/dist/browser/contexts/ErrorReporter/index.d.mts.map +1 -0
  46. package/dist/browser/contexts/ErrorReporter/index.d.ts.map +1 -0
  47. package/dist/browser/contexts/ErrorReporter/index.js +4 -0
  48. package/dist/browser/contexts/ErrorReporter/index.js.map +1 -0
  49. package/dist/browser/contexts/ErrorReporter/useRollbar.d.mts.map +1 -0
  50. package/dist/browser/contexts/ErrorReporter/useRollbar.d.ts.map +1 -0
  51. package/dist/browser/contexts/ErrorReporter/useRollbar.js +13 -0
  52. package/dist/browser/contexts/ErrorReporter/useRollbar.js.map +1 -0
  53. package/dist/browser/contexts/index.d.mts.map +1 -0
  54. package/dist/browser/contexts/index.d.ts.map +1 -0
  55. package/dist/browser/contexts/index.js +2 -0
  56. package/dist/browser/contexts/index.js.map +1 -0
  57. package/dist/browser/index.d.mts.map +1 -0
  58. package/dist/browser/index.d.ts.map +1 -0
  59. package/dist/browser/index.js +3 -0
  60. package/dist/browser/index.js.map +1 -0
  61. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts +21 -0
  62. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +1 -0
  63. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts +21 -0
  64. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +1 -0
  65. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.js +63 -0
  66. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  67. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.mjs +39 -0
  68. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.mjs.map +1 -0
  69. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.stories.js +51 -0
  70. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.stories.js.map +1 -0
  71. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.stories.mjs +26 -0
  72. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.stories.mjs.map +1 -0
  73. package/dist/node/components/ErrorBoundary/index.d.mts +2 -0
  74. package/dist/node/components/ErrorBoundary/index.d.mts.map +1 -0
  75. package/dist/node/components/ErrorBoundary/index.d.ts +2 -0
  76. package/dist/node/components/ErrorBoundary/index.d.ts.map +1 -0
  77. package/dist/node/components/ErrorBoundary/index.js +23 -0
  78. package/dist/node/components/ErrorBoundary/index.js.map +1 -0
  79. package/dist/node/components/ErrorBoundary/index.mjs +2 -0
  80. package/dist/node/components/ErrorBoundary/index.mjs.map +1 -0
  81. package/dist/node/components/ErrorRender/ErrorAlert.d.mts +10 -0
  82. package/dist/node/components/ErrorRender/ErrorAlert.d.mts.map +1 -0
  83. package/dist/node/components/ErrorRender/ErrorAlert.d.ts +10 -0
  84. package/dist/node/components/ErrorRender/ErrorAlert.d.ts.map +1 -0
  85. package/dist/node/components/ErrorRender/ErrorAlert.js +41 -0
  86. package/dist/node/components/ErrorRender/ErrorAlert.js.map +1 -0
  87. package/dist/node/components/ErrorRender/ErrorAlert.mjs +17 -0
  88. package/dist/node/components/ErrorRender/ErrorAlert.mjs.map +1 -0
  89. package/dist/node/components/ErrorRender/Props.d.mts +12 -0
  90. package/dist/node/components/ErrorRender/Props.d.mts.map +1 -0
  91. package/dist/node/components/ErrorRender/Props.d.ts +12 -0
  92. package/dist/node/components/ErrorRender/Props.d.ts.map +1 -0
  93. package/dist/node/components/ErrorRender/Props.js +17 -0
  94. package/dist/node/components/ErrorRender/Props.js.map +1 -0
  95. package/dist/node/components/ErrorRender/Props.mjs +1 -0
  96. package/dist/node/components/ErrorRender/Props.mjs.map +1 -0
  97. package/dist/node/components/ErrorRender/Render.d.mts +4 -0
  98. package/dist/node/components/ErrorRender/Render.d.mts.map +1 -0
  99. package/dist/node/components/ErrorRender/Render.d.ts +4 -0
  100. package/dist/node/components/ErrorRender/Render.d.ts.map +1 -0
  101. package/dist/node/components/ErrorRender/Render.js +56 -0
  102. package/dist/node/components/ErrorRender/Render.js.map +1 -0
  103. package/dist/node/components/ErrorRender/Render.mjs +32 -0
  104. package/dist/node/components/ErrorRender/Render.mjs.map +1 -0
  105. package/dist/node/components/ErrorRender/index.d.mts +4 -0
  106. package/dist/node/components/ErrorRender/index.d.mts.map +1 -0
  107. package/dist/node/components/ErrorRender/index.d.ts +4 -0
  108. package/dist/node/components/ErrorRender/index.d.ts.map +1 -0
  109. package/dist/node/components/ErrorRender/index.js +27 -0
  110. package/dist/node/components/ErrorRender/index.js.map +1 -0
  111. package/dist/node/components/ErrorRender/index.mjs +4 -0
  112. package/dist/node/components/ErrorRender/index.mjs.map +1 -0
  113. package/dist/node/components/index.d.mts +3 -0
  114. package/dist/node/components/index.d.mts.map +1 -0
  115. package/dist/node/components/index.d.ts +3 -0
  116. package/dist/node/components/index.d.ts.map +1 -0
  117. package/dist/node/components/index.js +25 -0
  118. package/dist/node/components/index.js.map +1 -0
  119. package/dist/node/components/index.mjs +3 -0
  120. package/dist/node/components/index.mjs.map +1 -0
  121. package/dist/node/contexts/ErrorReporter/Context.d.mts +4 -0
  122. package/dist/node/contexts/ErrorReporter/Context.d.mts.map +1 -0
  123. package/dist/node/contexts/ErrorReporter/Context.d.ts +4 -0
  124. package/dist/node/contexts/ErrorReporter/Context.d.ts.map +1 -0
  125. package/dist/node/contexts/ErrorReporter/Context.js +30 -0
  126. package/dist/node/contexts/ErrorReporter/Context.js.map +1 -0
  127. package/dist/node/contexts/ErrorReporter/Context.mjs +6 -0
  128. package/dist/node/contexts/ErrorReporter/Context.mjs.map +1 -0
  129. package/dist/node/contexts/ErrorReporter/Provider.d.mts +9 -0
  130. package/dist/node/contexts/ErrorReporter/Provider.d.mts.map +1 -0
  131. package/dist/node/contexts/ErrorReporter/Provider.d.ts +9 -0
  132. package/dist/node/contexts/ErrorReporter/Provider.d.ts.map +1 -0
  133. package/dist/node/contexts/ErrorReporter/Provider.js +40 -0
  134. package/dist/node/contexts/ErrorReporter/Provider.js.map +1 -0
  135. package/dist/node/contexts/ErrorReporter/Provider.mjs +16 -0
  136. package/dist/node/contexts/ErrorReporter/Provider.mjs.map +1 -0
  137. package/dist/node/contexts/ErrorReporter/Provider.stories.js +69 -0
  138. package/dist/node/contexts/ErrorReporter/Provider.stories.js.map +1 -0
  139. package/dist/node/contexts/ErrorReporter/Provider.stories.mjs +35 -0
  140. package/dist/node/contexts/ErrorReporter/Provider.stories.mjs.map +1 -0
  141. package/dist/node/contexts/ErrorReporter/State.d.mts +5 -0
  142. package/dist/node/contexts/ErrorReporter/State.d.mts.map +1 -0
  143. package/dist/node/contexts/ErrorReporter/State.d.ts +5 -0
  144. package/dist/node/contexts/ErrorReporter/State.d.ts.map +1 -0
  145. package/dist/node/contexts/ErrorReporter/State.js +17 -0
  146. package/dist/node/contexts/ErrorReporter/State.js.map +1 -0
  147. package/dist/node/contexts/ErrorReporter/State.mjs +1 -0
  148. package/dist/node/contexts/ErrorReporter/State.mjs.map +1 -0
  149. package/dist/node/contexts/ErrorReporter/index.d.mts +4 -0
  150. package/dist/node/contexts/ErrorReporter/index.d.mts.map +1 -0
  151. package/dist/node/contexts/ErrorReporter/index.d.ts +4 -0
  152. package/dist/node/contexts/ErrorReporter/index.d.ts.map +1 -0
  153. package/dist/node/contexts/ErrorReporter/index.js +27 -0
  154. package/dist/node/contexts/ErrorReporter/index.js.map +1 -0
  155. package/dist/node/contexts/ErrorReporter/index.mjs +4 -0
  156. package/dist/node/contexts/ErrorReporter/index.mjs.map +1 -0
  157. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts +3 -0
  158. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts.map +1 -0
  159. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts +3 -0
  160. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts.map +1 -0
  161. package/dist/node/contexts/ErrorReporter/useRollbar.js +37 -0
  162. package/dist/node/contexts/ErrorReporter/useRollbar.js.map +1 -0
  163. package/dist/node/contexts/ErrorReporter/useRollbar.mjs +13 -0
  164. package/dist/node/contexts/ErrorReporter/useRollbar.mjs.map +1 -0
  165. package/dist/node/contexts/index.d.mts +2 -0
  166. package/dist/node/contexts/index.d.mts.map +1 -0
  167. package/dist/node/contexts/index.d.ts +2 -0
  168. package/dist/node/contexts/index.d.ts.map +1 -0
  169. package/dist/node/contexts/index.js +23 -0
  170. package/dist/node/contexts/index.js.map +1 -0
  171. package/dist/node/contexts/index.mjs +2 -0
  172. package/dist/node/contexts/index.mjs.map +1 -0
  173. package/dist/node/index.d.mts +3 -0
  174. package/dist/node/index.d.mts.map +1 -0
  175. package/dist/node/index.d.ts +3 -0
  176. package/dist/node/index.d.ts.map +1 -0
  177. package/dist/node/index.js +25 -0
  178. package/dist/node/index.js.map +1 -0
  179. package/dist/node/index.mjs +3 -0
  180. package/dist/node/index.mjs.map +1 -0
  181. package/package.json +19 -19
  182. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  183. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  184. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts +0 -7
  185. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts.map +0 -1
  186. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts +0 -7
  187. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts.map +0 -1
  188. package/dist/components/ErrorBoundary/index.d.mts.map +0 -1
  189. package/dist/components/ErrorBoundary/index.d.ts.map +0 -1
  190. package/dist/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  191. package/dist/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  192. package/dist/components/ErrorRender/Props.d.mts.map +0 -1
  193. package/dist/components/ErrorRender/Props.d.ts.map +0 -1
  194. package/dist/components/ErrorRender/Render.d.mts.map +0 -1
  195. package/dist/components/ErrorRender/Render.d.ts.map +0 -1
  196. package/dist/components/ErrorRender/index.d.mts.map +0 -1
  197. package/dist/components/ErrorRender/index.d.ts.map +0 -1
  198. package/dist/components/index.d.mts.map +0 -1
  199. package/dist/components/index.d.ts.map +0 -1
  200. package/dist/contexts/ErrorReporter/Context.d.mts.map +0 -1
  201. package/dist/contexts/ErrorReporter/Context.d.ts.map +0 -1
  202. package/dist/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  203. package/dist/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  204. package/dist/contexts/ErrorReporter/Provider.stories.d.mts +0 -10
  205. package/dist/contexts/ErrorReporter/Provider.stories.d.mts.map +0 -1
  206. package/dist/contexts/ErrorReporter/Provider.stories.d.ts +0 -10
  207. package/dist/contexts/ErrorReporter/Provider.stories.d.ts.map +0 -1
  208. package/dist/contexts/ErrorReporter/State.d.mts.map +0 -1
  209. package/dist/contexts/ErrorReporter/State.d.ts.map +0 -1
  210. package/dist/contexts/ErrorReporter/index.d.mts.map +0 -1
  211. package/dist/contexts/ErrorReporter/index.d.ts.map +0 -1
  212. package/dist/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  213. package/dist/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  214. package/dist/contexts/index.d.mts.map +0 -1
  215. package/dist/contexts/index.d.ts.map +0 -1
  216. package/dist/index.d.mts.map +0 -1
  217. package/dist/index.d.ts.map +0 -1
  218. package/dist/index.js +0 -149
  219. package/dist/index.js.map +0 -1
  220. package/dist/index.mjs +0 -118
  221. package/dist/index.mjs.map +0 -1
  222. /package/dist/{components → browser/components}/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -0
  223. /package/dist/{components → browser/components}/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -0
  224. /package/dist/{components → browser/components}/ErrorBoundary/index.d.mts +0 -0
  225. /package/dist/{components → browser/components}/ErrorBoundary/index.d.ts +0 -0
  226. /package/dist/{components → browser/components}/ErrorRender/ErrorAlert.d.mts +0 -0
  227. /package/dist/{components → browser/components}/ErrorRender/ErrorAlert.d.ts +0 -0
  228. /package/dist/{components → browser/components}/ErrorRender/Props.d.mts +0 -0
  229. /package/dist/{components → browser/components}/ErrorRender/Props.d.ts +0 -0
  230. /package/dist/{components → browser/components}/ErrorRender/Render.d.mts +0 -0
  231. /package/dist/{components → browser/components}/ErrorRender/Render.d.ts +0 -0
  232. /package/dist/{components → browser/components}/ErrorRender/index.d.mts +0 -0
  233. /package/dist/{components → browser/components}/ErrorRender/index.d.ts +0 -0
  234. /package/dist/{components → browser/components}/index.d.mts +0 -0
  235. /package/dist/{components → browser/components}/index.d.ts +0 -0
  236. /package/dist/{contexts → browser/contexts}/ErrorReporter/Context.d.mts +0 -0
  237. /package/dist/{contexts → browser/contexts}/ErrorReporter/Context.d.ts +0 -0
  238. /package/dist/{contexts → browser/contexts}/ErrorReporter/Provider.d.mts +0 -0
  239. /package/dist/{contexts → browser/contexts}/ErrorReporter/Provider.d.ts +0 -0
  240. /package/dist/{contexts → browser/contexts}/ErrorReporter/State.d.mts +0 -0
  241. /package/dist/{contexts → browser/contexts}/ErrorReporter/State.d.ts +0 -0
  242. /package/dist/{contexts → browser/contexts}/ErrorReporter/index.d.mts +0 -0
  243. /package/dist/{contexts → browser/contexts}/ErrorReporter/index.d.ts +0 -0
  244. /package/dist/{contexts → browser/contexts}/ErrorReporter/useRollbar.d.mts +0 -0
  245. /package/dist/{contexts → browser/contexts}/ErrorReporter/useRollbar.d.ts +0 -0
  246. /package/dist/{contexts → browser/contexts}/index.d.mts +0 -0
  247. /package/dist/{contexts → browser/contexts}/index.d.ts +0 -0
  248. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  249. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
@@ -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;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,qBAAa,mBAAoB,SAAQ,SAAS,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;IACpF,KAAK,EAAE,wBAAwB,CAE9C;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK;WAI9B,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW;IAMrD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS;IAYpD,MAAM;CAYvB"}
@@ -1,7 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- declare const StorybookEntry: Meta;
3
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ThrownErrorBoundary").ThrownErrorBoundaryProps>;
4
- declare const CustomErrorComponent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ThrownErrorBoundary").ThrownErrorBoundaryProps>;
5
- export { CustomErrorComponent, Default };
6
- export default StorybookEntry;
7
- //# sourceMappingURL=ThrownErrorBoundary.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThrownErrorBoundary.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/ThrownErrorBoundary.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAIhD,QAAA,MAAM,cAAc,EAAE,IAGrB,CAAA;AAUD,QAAA,MAAM,OAAO,yJAAoB,CAAA;AAGjC,QAAA,MAAM,oBAAoB,yJAAoB,CAAA;AAK9C,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAA;AAGxC,eAAe,cAAc,CAAA"}
@@ -1,7 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- declare const StorybookEntry: Meta;
3
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ThrownErrorBoundary").ThrownErrorBoundaryProps>;
4
- declare const CustomErrorComponent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ThrownErrorBoundary").ThrownErrorBoundaryProps>;
5
- export { CustomErrorComponent, Default };
6
- export default StorybookEntry;
7
- //# sourceMappingURL=ThrownErrorBoundary.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThrownErrorBoundary.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/ThrownErrorBoundary.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAIhD,QAAA,MAAM,cAAc,EAAE,IAGrB,CAAA;AAUD,QAAA,MAAM,OAAO,yJAAoB,CAAA;AAGjC,QAAA,MAAM,oBAAoB,yJAAoB,CAAA;AAK9C,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAA;AAGxC,eAAe,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -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,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoBhD,CAAA"}
@@ -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,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoBhD,CAAA"}
@@ -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;AAEjC,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;CACtB"}
@@ -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;AAEjC,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;CACtB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkClD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkClD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -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,SAAS,CAAA;AAEnD,eAAO,MAAM,oBAAoB,oDAA+C,CAAA"}
@@ -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,SAAS,CAAA;AAEnD,eAAO,MAAM,oBAAoB,oDAA+C,CAAA"}
@@ -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 +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,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./Provider").ErrorReporterProviderProps, "children"> & {
3
- children?: import("react").ReactNode;
4
- }>;
5
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./Provider").ErrorReporterProviderProps, "children"> & {
6
- children?: import("react").ReactNode;
7
- }>;
8
- export { Default };
9
- export default StorybookEntry;
10
- //# sourceMappingURL=Provider.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.stories.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/Provider.stories.tsx"],"names":[],"mappings":";AAOA,QAAA,MAAM,cAAc;;EASmB,CAAA;AAkBvC,QAAA,MAAM,OAAO;;EAAoB,CAAA;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./Provider").ErrorReporterProviderProps, "children"> & {
3
- children?: import("react").ReactNode;
4
- }>;
5
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./Provider").ErrorReporterProviderProps, "children"> & {
6
- children?: import("react").ReactNode;
7
- }>;
8
- export { Default };
9
- export default StorybookEntry;
10
- //# sourceMappingURL=Provider.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.stories.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/Provider.stories.tsx"],"names":[],"mappings":";AAOA,QAAA,MAAM,cAAc;;EASmB,CAAA;AAkBvC,QAAA,MAAM,OAAO;;EAAoB,CAAA;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
@@ -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 +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 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRollbar.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,mDAOf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRollbar.d.ts","sourceRoot":"","sources":["../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,mDAOf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
package/dist/index.js DELETED
@@ -1,149 +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 = ({ onCancel, error, errorContext, ...props }) => {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", ...props, children: [
42
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: "Whoops! Something went wrong" }),
43
- errorContext ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", my: 0.5, lineHeight: "1", display: "block", children: errorContext }) : null,
44
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Error:" }),
45
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: error?.message }),
46
- 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
47
- ] });
48
- };
49
-
50
- // src/components/ErrorRender/Render.tsx
51
- var import_react_flexbox = require("@xylabs/react-flexbox");
52
- var import_react = require("react");
53
- var import_react_router_dom = require("react-router-dom");
54
- var import_jsx_runtime2 = require("react/jsx-runtime");
55
- var ErrorRender = ({
56
- onCancel,
57
- error,
58
- noErrorDisplay = false,
59
- customError = null,
60
- children,
61
- errorContext,
62
- ...props
63
- }) => {
64
- const location = (0, import_react_router_dom.useLocation)();
65
- (0, import_react.useEffect)(() => {
66
- location.state = {
67
- from: {
68
- pathname: window.location.pathname
69
- }
70
- };
71
- }, [location]);
72
- if (error) {
73
- return /* @__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 }) }) });
74
- } else {
75
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children }) ?? null;
76
- }
77
- };
78
-
79
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
80
- var import_jsx_runtime3 = require("react/jsx-runtime");
81
- var ThrownErrorBoundary = class _ThrownErrorBoundary extends import_react2.Component {
82
- state = {
83
- xyoError: void 0
84
- };
85
- static getDerivedStateFromError(error) {
86
- return { hasError: true, xyoError: _ThrownErrorBoundary.normalizeError(error) };
87
- }
88
- static normalizeError(error) {
89
- return error.schema === import_payload_model.ModuleErrorSchema ? error : { message: error.message, schema: import_payload_model.ModuleErrorSchema, sources: [] };
90
- }
91
- componentDidCatch(error, errorInfo) {
92
- const { rethrow, rollbar } = this.props;
93
- const { xyoError } = this.state;
94
- rollbar?.error(error);
95
- console.error("Error:", xyoError, errorInfo);
96
- if (rethrow) {
97
- throw error;
98
- }
99
- }
100
- render() {
101
- const { xyoError } = this.state;
102
- const { children, boundaryName, errorComponent } = this.props;
103
- if (xyoError) {
104
- if (errorComponent) {
105
- return errorComponent(xyoError);
106
- }
107
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ErrorRender, { error: xyoError, errorContext: `${boundaryName} Boundary` });
108
- }
109
- return children;
110
- }
111
- };
112
-
113
- // src/contexts/ErrorReporter/Provider.tsx
114
- var import_react4 = require("react");
115
-
116
- // src/contexts/ErrorReporter/Context.ts
117
- var import_react3 = require("react");
118
- var ErrorReporterContext = (0, import_react3.createContext)({});
119
-
120
- // src/contexts/ErrorReporter/Provider.tsx
121
- var import_jsx_runtime4 = require("react/jsx-runtime");
122
- var ErrorReporterProvider = ({ children, rollbar }) => {
123
- const [rollbarInstance, setRollBarInstance] = (0, import_react4.useState)();
124
- (0, import_react4.useEffect)(() => {
125
- if (rollbarInstance) {
126
- setRollBarInstance(rollbarInstance);
127
- }
128
- }, [rollbar, rollbarInstance]);
129
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ErrorReporterContext.Provider, { value: { rollbar }, children });
130
- };
131
-
132
- // src/contexts/ErrorReporter/useRollbar.tsx
133
- var import_react5 = require("react");
134
- var useRollbar = () => {
135
- const context = (0, import_react5.useContext)(ErrorReporterContext);
136
- if (context === void 0) {
137
- console.warn("useRollbar must be used within a ErrorReporterContext");
138
- }
139
- return context ?? {};
140
- };
141
- // Annotate the CommonJS export names for ESM import in node:
142
- 0 && (module.exports = {
143
- ErrorAlert,
144
- ErrorRender,
145
- ErrorReporterProvider,
146
- ThrownErrorBoundary,
147
- useRollbar
148
- });
149
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts","../src/components/ErrorBoundary/ThrownErrorBoundary.tsx","../src/components/ErrorRender/ErrorAlert.tsx","../src/components/ErrorRender/Render.tsx","../src/contexts/ErrorReporter/Provider.tsx","../src/contexts/ErrorReporter/Context.ts","../src/contexts/ErrorReporter/useRollbar.tsx"],"sourcesContent":["export * from './components'\nexport * from './contexts'\n","import { ModuleError, ModuleErrorSchema } from '@xyo-network/payload-model'\nimport { Component, ErrorInfo, ReactNode } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorRender } from '../ErrorRender'\n\nexport interface ThrownErrorBoundaryProps {\n boundaryName?: string\n children: ReactNode\n errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode\n rethrow?: boolean\n rollbar?: Rollbar\n}\n\nexport interface ThrownErrorBoundaryState {\n xyoError?: ModuleError\n}\n\nexport class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {\n public override state: ThrownErrorBoundaryState = {\n xyoError: undefined,\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, xyoError: ThrownErrorBoundary.normalizeError(error) } as ThrownErrorBoundaryState\n }\n\n public static normalizeError(error: Error | ModuleError): ModuleError {\n return (\n (error as ModuleError).schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] }\n ) as ModuleError\n }\n\n public override componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n const { rethrow, rollbar } = this.props\n const { xyoError } = this.state\n\n rollbar?.error(error)\n\n console.error('Error:', xyoError, errorInfo)\n if (rethrow) {\n throw error\n }\n }\n\n public override render() {\n const { xyoError } = this.state\n const { children, boundaryName, errorComponent } = this.props\n if (xyoError) {\n if (errorComponent) {\n return errorComponent(xyoError)\n }\n return <ErrorRender error={xyoError} errorContext={`${boundaryName} Boundary`} />\n }\n\n return children\n }\n}\n","import { ExitToApp as ExitIcon } from '@mui/icons-material'\nimport { Alert, AlertProps, AlertTitle, Typography } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { ModuleError } from '@xyo-network/payload-model'\n\nexport interface ErrorAlertProps extends AlertProps {\n error?: ModuleError | Error\n errorContext?: string\n onCancel?: () => void\n}\n\nexport const ErrorAlert: React.FC<ErrorAlertProps> = ({ onCancel, error, errorContext, ...props }) => {\n return (\n <Alert severity=\"error\" {...props}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {errorContext ? (\n <Typography variant=\"caption\" my={0.5} lineHeight=\"1\" display=\"block\">\n {errorContext}\n </Typography>\n ) : null}\n <Typography variant=\"caption\" mr={0.5} fontWeight=\"bold\">\n Error:\n </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n {onCancel ? (\n <ButtonEx variant=\"outlined\" size=\"small\" onClick={onCancel} position=\"absolute\" style={{ right: 8, top: 8 }}>\n <ExitIcon fontSize=\"small\" />\n </ButtonEx>\n ) : null}\n </Alert>\n )\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\n\nimport { ErrorAlert } from './ErrorAlert'\nimport { ErrorRenderProps } from './Props'\n\nexport const ErrorRender: React.FC<ErrorRenderProps> = ({\n onCancel,\n error,\n noErrorDisplay = false,\n customError = null,\n children,\n errorContext,\n ...props\n}) => {\n const location = useLocation()\n useEffect(() => {\n // ensure we end up at the same place we are now after logging in\n location.state = {\n from: {\n pathname: window.location.pathname,\n },\n }\n }, [location])\n\n if (error) {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n {noErrorDisplay ? (\n customError\n ) : (\n <FlexCol alignItems=\"center\" {...props}>\n <ErrorAlert error={error} errorContext={errorContext} onCancel={onCancel} />\n </FlexCol>\n )}\n </FlexCol>\n )\n } else {\n return <>{children}</> ?? null\n }\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { useEffect, useState } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorReporterContext } from './Context'\n\nexport interface ErrorReporterProviderProps {\n rollbar: Rollbar\n}\n\nconst ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>> = ({ children, rollbar }) => {\n const [rollbarInstance, setRollBarInstance] = useState<Rollbar>()\n\n useEffect(() => {\n if (rollbarInstance) {\n setRollBarInstance(rollbarInstance)\n }\n }, [rollbar, rollbarInstance])\n\n return <ErrorReporterContext.Provider value={{ rollbar }}>{children}</ErrorReporterContext.Provider>\n}\n\nexport { ErrorReporterProvider }\n","import { createContext } from 'react'\n\nimport { ErrorReporterContextState } from './State'\n\nexport const ErrorReporterContext = createContext<ErrorReporterContextState>({})\n","import { useContext } from 'react'\n\nimport { ErrorReporterContext } from './Context'\n\nconst useRollbar = () => {\n const context = useContext(ErrorReporterContext)\n if (context === undefined) {\n console.warn('useRollbar must be used within a ErrorReporterContext')\n }\n\n return context ?? {}\n}\n\nexport { useRollbar }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAA+C;AAC/C,IAAAA,gBAAgD;;;ACDhD,4BAAsC;AACtC,sBAA0D;AAC1D,0BAAyB;AAWrB;AAFG,IAAM,aAAwC,CAAC,E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AI3B,IAAM,aAAa,MAAM;AACvB,QAAM,cAAU,0BAAW,oBAAoB;AAC/C,MAAI,YAAY,QAAW;AACzB,YAAQ,KAAK,uDAAuD;AAAA,EACtE;AAEA,SAAO,WAAW,CAAC;AACrB;","names":["import_react","ExitIcon","import_jsx_runtime","import_jsx_runtime","import_react","import_react","import_jsx_runtime","import_react"]}
package/dist/index.mjs DELETED
@@ -1,118 +0,0 @@
1
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
2
- import { ModuleErrorSchema } from "@xyo-network/payload-model";
3
- import { Component } from "react";
4
-
5
- // src/components/ErrorRender/ErrorAlert.tsx
6
- import { ExitToApp as ExitIcon } from "@mui/icons-material";
7
- import { Alert, AlertTitle, Typography } from "@mui/material";
8
- import { ButtonEx } from "@xylabs/react-button";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- var ErrorAlert = ({ onCancel, error, errorContext, ...props }) => {
11
- return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...props, children: [
12
- /* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
13
- errorContext ? /* @__PURE__ */ jsx(Typography, { variant: "caption", my: 0.5, lineHeight: "1", display: "block", children: errorContext }) : null,
14
- /* @__PURE__ */ jsx(Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Error:" }),
15
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: error?.message }),
16
- onCancel ? /* @__PURE__ */ jsx(ButtonEx, { variant: "outlined", size: "small", onClick: onCancel, position: "absolute", style: { right: 8, top: 8 }, children: /* @__PURE__ */ jsx(ExitIcon, { fontSize: "small" }) }) : null
17
- ] });
18
- };
19
-
20
- // src/components/ErrorRender/Render.tsx
21
- import { FlexCol } from "@xylabs/react-flexbox";
22
- import { useEffect } from "react";
23
- import { useLocation } from "react-router-dom";
24
- import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
25
- var ErrorRender = ({
26
- onCancel,
27
- error,
28
- noErrorDisplay = false,
29
- customError = null,
30
- children,
31
- errorContext,
32
- ...props
33
- }) => {
34
- const location = useLocation();
35
- useEffect(() => {
36
- location.state = {
37
- from: {
38
- pathname: window.location.pathname
39
- }
40
- };
41
- }, [location]);
42
- if (error) {
43
- return /* @__PURE__ */ jsx2(FlexCol, { alignItems: "stretch", ...props, children: noErrorDisplay ? customError : /* @__PURE__ */ jsx2(FlexCol, { alignItems: "center", ...props, children: /* @__PURE__ */ jsx2(ErrorAlert, { error, errorContext, onCancel }) }) });
44
- } else {
45
- return /* @__PURE__ */ jsx2(Fragment, { children }) ?? null;
46
- }
47
- };
48
-
49
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
50
- import { jsx as jsx3 } from "react/jsx-runtime";
51
- var ThrownErrorBoundary = class _ThrownErrorBoundary extends Component {
52
- state = {
53
- xyoError: void 0
54
- };
55
- static getDerivedStateFromError(error) {
56
- return { hasError: true, xyoError: _ThrownErrorBoundary.normalizeError(error) };
57
- }
58
- static normalizeError(error) {
59
- return error.schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] };
60
- }
61
- componentDidCatch(error, errorInfo) {
62
- const { rethrow, rollbar } = this.props;
63
- const { xyoError } = this.state;
64
- rollbar?.error(error);
65
- console.error("Error:", xyoError, errorInfo);
66
- if (rethrow) {
67
- throw error;
68
- }
69
- }
70
- render() {
71
- const { xyoError } = this.state;
72
- const { children, boundaryName, errorComponent } = this.props;
73
- if (xyoError) {
74
- if (errorComponent) {
75
- return errorComponent(xyoError);
76
- }
77
- return /* @__PURE__ */ jsx3(ErrorRender, { error: xyoError, errorContext: `${boundaryName} Boundary` });
78
- }
79
- return children;
80
- }
81
- };
82
-
83
- // src/contexts/ErrorReporter/Provider.tsx
84
- import { useEffect as useEffect2, useState } from "react";
85
-
86
- // src/contexts/ErrorReporter/Context.ts
87
- import { createContext } from "react";
88
- var ErrorReporterContext = createContext({});
89
-
90
- // src/contexts/ErrorReporter/Provider.tsx
91
- import { jsx as jsx4 } from "react/jsx-runtime";
92
- var ErrorReporterProvider = ({ children, rollbar }) => {
93
- const [rollbarInstance, setRollBarInstance] = useState();
94
- useEffect2(() => {
95
- if (rollbarInstance) {
96
- setRollBarInstance(rollbarInstance);
97
- }
98
- }, [rollbar, rollbarInstance]);
99
- return /* @__PURE__ */ jsx4(ErrorReporterContext.Provider, { value: { rollbar }, children });
100
- };
101
-
102
- // src/contexts/ErrorReporter/useRollbar.tsx
103
- import { useContext } from "react";
104
- var useRollbar = () => {
105
- const context = useContext(ErrorReporterContext);
106
- if (context === void 0) {
107
- console.warn("useRollbar must be used within a ErrorReporterContext");
108
- }
109
- return context ?? {};
110
- };
111
- export {
112
- ErrorAlert,
113
- ErrorRender,
114
- ErrorReporterProvider,
115
- ThrownErrorBoundary,
116
- useRollbar
117
- };
118
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/ErrorBoundary/ThrownErrorBoundary.tsx","../src/components/ErrorRender/ErrorAlert.tsx","../src/components/ErrorRender/Render.tsx","../src/contexts/ErrorReporter/Provider.tsx","../src/contexts/ErrorReporter/Context.ts","../src/contexts/ErrorReporter/useRollbar.tsx"],"sourcesContent":["import { ModuleError, ModuleErrorSchema } from '@xyo-network/payload-model'\nimport { Component, ErrorInfo, ReactNode } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorRender } from '../ErrorRender'\n\nexport interface ThrownErrorBoundaryProps {\n boundaryName?: string\n children: ReactNode\n errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode\n rethrow?: boolean\n rollbar?: Rollbar\n}\n\nexport interface ThrownErrorBoundaryState {\n xyoError?: ModuleError\n}\n\nexport class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {\n public override state: ThrownErrorBoundaryState = {\n xyoError: undefined,\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, xyoError: ThrownErrorBoundary.normalizeError(error) } as ThrownErrorBoundaryState\n }\n\n public static normalizeError(error: Error | ModuleError): ModuleError {\n return (\n (error as ModuleError).schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] }\n ) as ModuleError\n }\n\n public override componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n const { rethrow, rollbar } = this.props\n const { xyoError } = this.state\n\n rollbar?.error(error)\n\n console.error('Error:', xyoError, errorInfo)\n if (rethrow) {\n throw error\n }\n }\n\n public override render() {\n const { xyoError } = this.state\n const { children, boundaryName, errorComponent } = this.props\n if (xyoError) {\n if (errorComponent) {\n return errorComponent(xyoError)\n }\n return <ErrorRender error={xyoError} errorContext={`${boundaryName} Boundary`} />\n }\n\n return children\n }\n}\n","import { ExitToApp as ExitIcon } from '@mui/icons-material'\nimport { Alert, AlertProps, AlertTitle, Typography } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { ModuleError } from '@xyo-network/payload-model'\n\nexport interface ErrorAlertProps extends AlertProps {\n error?: ModuleError | Error\n errorContext?: string\n onCancel?: () => void\n}\n\nexport const ErrorAlert: React.FC<ErrorAlertProps> = ({ onCancel, error, errorContext, ...props }) => {\n return (\n <Alert severity=\"error\" {...props}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {errorContext ? (\n <Typography variant=\"caption\" my={0.5} lineHeight=\"1\" display=\"block\">\n {errorContext}\n </Typography>\n ) : null}\n <Typography variant=\"caption\" mr={0.5} fontWeight=\"bold\">\n Error:\n </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n {onCancel ? (\n <ButtonEx variant=\"outlined\" size=\"small\" onClick={onCancel} position=\"absolute\" style={{ right: 8, top: 8 }}>\n <ExitIcon fontSize=\"small\" />\n </ButtonEx>\n ) : null}\n </Alert>\n )\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\n\nimport { ErrorAlert } from './ErrorAlert'\nimport { ErrorRenderProps } from './Props'\n\nexport const ErrorRender: React.FC<ErrorRenderProps> = ({\n onCancel,\n error,\n noErrorDisplay = false,\n customError = null,\n children,\n errorContext,\n ...props\n}) => {\n const location = useLocation()\n useEffect(() => {\n // ensure we end up at the same place we are now after logging in\n location.state = {\n from: {\n pathname: window.location.pathname,\n },\n }\n }, [location])\n\n if (error) {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n {noErrorDisplay ? (\n customError\n ) : (\n <FlexCol alignItems=\"center\" {...props}>\n <ErrorAlert error={error} errorContext={errorContext} onCancel={onCancel} />\n </FlexCol>\n )}\n </FlexCol>\n )\n } else {\n return <>{children}</> ?? null\n }\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { useEffect, useState } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorReporterContext } from './Context'\n\nexport interface ErrorReporterProviderProps {\n rollbar: Rollbar\n}\n\nconst ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>> = ({ children, rollbar }) => {\n const [rollbarInstance, setRollBarInstance] = useState<Rollbar>()\n\n useEffect(() => {\n if (rollbarInstance) {\n setRollBarInstance(rollbarInstance)\n }\n }, [rollbar, rollbarInstance])\n\n return <ErrorReporterContext.Provider value={{ rollbar }}>{children}</ErrorReporterContext.Provider>\n}\n\nexport { ErrorReporterProvider }\n","import { createContext } from 'react'\n\nimport { ErrorReporterContextState } from './State'\n\nexport const ErrorReporterContext = createContext<ErrorReporterContextState>({})\n","import { useContext } from 'react'\n\nimport { ErrorReporterContext } from './Context'\n\nconst useRollbar = () => {\n const context = useContext(ErrorReporterContext)\n if (context === undefined) {\n console.warn('useRollbar must be used within a ErrorReporterContext')\n }\n\n return context ?? {}\n}\n\nexport { useRollbar }\n"],"mappings":";AAAA,SAAsB,yBAAyB;AAC/C,SAAS,iBAAuC;;;ACDhD,SAAS,aAAa,gBAAgB;AACtC,SAAS,OAAmB,YAAY,kBAAkB;AAC1D,SAAS,gBAAgB;AAWrB,SACE,KADF;AAFG,IAAM,aAAwC,CAAC,EAAE,UAAU,OAAO,cAAc,G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AAS;AACtE;;;AEpBA,SAAS,kBAAkB;AAI3B,IAAM,aAAa,MAAM;AACvB,QAAM,UAAU,WAAW,oBAAoB;AAC/C,MAAI,YAAY,QAAW;AACzB,YAAQ,KAAK,uDAAuD;AAAA,EACtE;AAEA,SAAO,WAAW,CAAC;AACrB;","names":["jsx","jsx","useEffect","jsx","useEffect"]}
File without changes
File without changes
File without changes
File without changes