@xyo-network/react-error 2.82.0 → 2.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. package/dist/browser/index.d.ts +62 -3
  2. package/package.json +7 -23
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  5. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  6. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  7. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  8. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  9. package/dist/browser/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  10. package/dist/browser/components/ErrorBoundary/index.d.cts +0 -2
  11. package/dist/browser/components/ErrorBoundary/index.d.cts.map +0 -1
  12. package/dist/browser/components/ErrorBoundary/index.d.mts +0 -2
  13. package/dist/browser/components/ErrorBoundary/index.d.mts.map +0 -1
  14. package/dist/browser/components/ErrorBoundary/index.d.ts +0 -2
  15. package/dist/browser/components/ErrorBoundary/index.d.ts.map +0 -1
  16. package/dist/browser/components/ErrorRender/ErrorAlert.d.cts +0 -11
  17. package/dist/browser/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  18. package/dist/browser/components/ErrorRender/ErrorAlert.d.mts +0 -11
  19. package/dist/browser/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  20. package/dist/browser/components/ErrorRender/ErrorAlert.d.ts +0 -11
  21. package/dist/browser/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  22. package/dist/browser/components/ErrorRender/Props.d.cts +0 -15
  23. package/dist/browser/components/ErrorRender/Props.d.cts.map +0 -1
  24. package/dist/browser/components/ErrorRender/Props.d.mts +0 -15
  25. package/dist/browser/components/ErrorRender/Props.d.mts.map +0 -1
  26. package/dist/browser/components/ErrorRender/Props.d.ts +0 -15
  27. package/dist/browser/components/ErrorRender/Props.d.ts.map +0 -1
  28. package/dist/browser/components/ErrorRender/Render.d.cts +0 -4
  29. package/dist/browser/components/ErrorRender/Render.d.cts.map +0 -1
  30. package/dist/browser/components/ErrorRender/Render.d.mts +0 -4
  31. package/dist/browser/components/ErrorRender/Render.d.mts.map +0 -1
  32. package/dist/browser/components/ErrorRender/Render.d.ts +0 -4
  33. package/dist/browser/components/ErrorRender/Render.d.ts.map +0 -1
  34. package/dist/browser/components/ErrorRender/index.d.cts +0 -4
  35. package/dist/browser/components/ErrorRender/index.d.cts.map +0 -1
  36. package/dist/browser/components/ErrorRender/index.d.mts +0 -4
  37. package/dist/browser/components/ErrorRender/index.d.mts.map +0 -1
  38. package/dist/browser/components/ErrorRender/index.d.ts +0 -4
  39. package/dist/browser/components/ErrorRender/index.d.ts.map +0 -1
  40. package/dist/browser/components/index.d.cts +0 -3
  41. package/dist/browser/components/index.d.cts.map +0 -1
  42. package/dist/browser/components/index.d.mts +0 -3
  43. package/dist/browser/components/index.d.mts.map +0 -1
  44. package/dist/browser/components/index.d.ts +0 -3
  45. package/dist/browser/components/index.d.ts.map +0 -1
  46. package/dist/browser/contexts/ErrorReporter/Context.d.cts +0 -3
  47. package/dist/browser/contexts/ErrorReporter/Context.d.cts.map +0 -1
  48. package/dist/browser/contexts/ErrorReporter/Context.d.mts +0 -3
  49. package/dist/browser/contexts/ErrorReporter/Context.d.mts.map +0 -1
  50. package/dist/browser/contexts/ErrorReporter/Context.d.ts +0 -3
  51. package/dist/browser/contexts/ErrorReporter/Context.d.ts.map +0 -1
  52. package/dist/browser/contexts/ErrorReporter/Provider.d.cts +0 -9
  53. package/dist/browser/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  54. package/dist/browser/contexts/ErrorReporter/Provider.d.mts +0 -9
  55. package/dist/browser/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  56. package/dist/browser/contexts/ErrorReporter/Provider.d.ts +0 -9
  57. package/dist/browser/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  58. package/dist/browser/contexts/ErrorReporter/State.d.cts +0 -5
  59. package/dist/browser/contexts/ErrorReporter/State.d.cts.map +0 -1
  60. package/dist/browser/contexts/ErrorReporter/State.d.mts +0 -5
  61. package/dist/browser/contexts/ErrorReporter/State.d.mts.map +0 -1
  62. package/dist/browser/contexts/ErrorReporter/State.d.ts +0 -5
  63. package/dist/browser/contexts/ErrorReporter/State.d.ts.map +0 -1
  64. package/dist/browser/contexts/ErrorReporter/index.d.cts +0 -4
  65. package/dist/browser/contexts/ErrorReporter/index.d.cts.map +0 -1
  66. package/dist/browser/contexts/ErrorReporter/index.d.mts +0 -4
  67. package/dist/browser/contexts/ErrorReporter/index.d.mts.map +0 -1
  68. package/dist/browser/contexts/ErrorReporter/index.d.ts +0 -4
  69. package/dist/browser/contexts/ErrorReporter/index.d.ts.map +0 -1
  70. package/dist/browser/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  71. package/dist/browser/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  72. package/dist/browser/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  73. package/dist/browser/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  74. package/dist/browser/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  75. package/dist/browser/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  76. package/dist/browser/contexts/index.d.cts +0 -2
  77. package/dist/browser/contexts/index.d.cts.map +0 -1
  78. package/dist/browser/contexts/index.d.mts +0 -2
  79. package/dist/browser/contexts/index.d.mts.map +0 -1
  80. package/dist/browser/contexts/index.d.ts +0 -2
  81. package/dist/browser/contexts/index.d.ts.map +0 -1
  82. package/dist/browser/index.cjs +0 -194
  83. package/dist/browser/index.cjs.map +0 -1
  84. package/dist/browser/index.d.cts +0 -3
  85. package/dist/browser/index.d.cts.map +0 -1
  86. package/dist/browser/index.d.mts +0 -3
  87. package/dist/browser/index.d.mts.map +0 -1
  88. package/dist/browser/index.d.ts.map +0 -1
  89. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  90. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  91. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  92. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  93. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  94. package/dist/neutral/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  95. package/dist/neutral/components/ErrorBoundary/index.d.cts +0 -2
  96. package/dist/neutral/components/ErrorBoundary/index.d.cts.map +0 -1
  97. package/dist/neutral/components/ErrorBoundary/index.d.mts +0 -2
  98. package/dist/neutral/components/ErrorBoundary/index.d.mts.map +0 -1
  99. package/dist/neutral/components/ErrorBoundary/index.d.ts +0 -2
  100. package/dist/neutral/components/ErrorBoundary/index.d.ts.map +0 -1
  101. package/dist/neutral/components/ErrorRender/ErrorAlert.d.cts +0 -11
  102. package/dist/neutral/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  103. package/dist/neutral/components/ErrorRender/ErrorAlert.d.mts +0 -11
  104. package/dist/neutral/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  105. package/dist/neutral/components/ErrorRender/ErrorAlert.d.ts +0 -11
  106. package/dist/neutral/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  107. package/dist/neutral/components/ErrorRender/Props.d.cts +0 -15
  108. package/dist/neutral/components/ErrorRender/Props.d.cts.map +0 -1
  109. package/dist/neutral/components/ErrorRender/Props.d.mts +0 -15
  110. package/dist/neutral/components/ErrorRender/Props.d.mts.map +0 -1
  111. package/dist/neutral/components/ErrorRender/Props.d.ts +0 -15
  112. package/dist/neutral/components/ErrorRender/Props.d.ts.map +0 -1
  113. package/dist/neutral/components/ErrorRender/Render.d.cts +0 -4
  114. package/dist/neutral/components/ErrorRender/Render.d.cts.map +0 -1
  115. package/dist/neutral/components/ErrorRender/Render.d.mts +0 -4
  116. package/dist/neutral/components/ErrorRender/Render.d.mts.map +0 -1
  117. package/dist/neutral/components/ErrorRender/Render.d.ts +0 -4
  118. package/dist/neutral/components/ErrorRender/Render.d.ts.map +0 -1
  119. package/dist/neutral/components/ErrorRender/index.d.cts +0 -4
  120. package/dist/neutral/components/ErrorRender/index.d.cts.map +0 -1
  121. package/dist/neutral/components/ErrorRender/index.d.mts +0 -4
  122. package/dist/neutral/components/ErrorRender/index.d.mts.map +0 -1
  123. package/dist/neutral/components/ErrorRender/index.d.ts +0 -4
  124. package/dist/neutral/components/ErrorRender/index.d.ts.map +0 -1
  125. package/dist/neutral/components/index.d.cts +0 -3
  126. package/dist/neutral/components/index.d.cts.map +0 -1
  127. package/dist/neutral/components/index.d.mts +0 -3
  128. package/dist/neutral/components/index.d.mts.map +0 -1
  129. package/dist/neutral/components/index.d.ts +0 -3
  130. package/dist/neutral/components/index.d.ts.map +0 -1
  131. package/dist/neutral/contexts/ErrorReporter/Context.d.cts +0 -3
  132. package/dist/neutral/contexts/ErrorReporter/Context.d.cts.map +0 -1
  133. package/dist/neutral/contexts/ErrorReporter/Context.d.mts +0 -3
  134. package/dist/neutral/contexts/ErrorReporter/Context.d.mts.map +0 -1
  135. package/dist/neutral/contexts/ErrorReporter/Context.d.ts +0 -3
  136. package/dist/neutral/contexts/ErrorReporter/Context.d.ts.map +0 -1
  137. package/dist/neutral/contexts/ErrorReporter/Provider.d.cts +0 -9
  138. package/dist/neutral/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  139. package/dist/neutral/contexts/ErrorReporter/Provider.d.mts +0 -9
  140. package/dist/neutral/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  141. package/dist/neutral/contexts/ErrorReporter/Provider.d.ts +0 -9
  142. package/dist/neutral/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  143. package/dist/neutral/contexts/ErrorReporter/State.d.cts +0 -5
  144. package/dist/neutral/contexts/ErrorReporter/State.d.cts.map +0 -1
  145. package/dist/neutral/contexts/ErrorReporter/State.d.mts +0 -5
  146. package/dist/neutral/contexts/ErrorReporter/State.d.mts.map +0 -1
  147. package/dist/neutral/contexts/ErrorReporter/State.d.ts +0 -5
  148. package/dist/neutral/contexts/ErrorReporter/State.d.ts.map +0 -1
  149. package/dist/neutral/contexts/ErrorReporter/index.d.cts +0 -4
  150. package/dist/neutral/contexts/ErrorReporter/index.d.cts.map +0 -1
  151. package/dist/neutral/contexts/ErrorReporter/index.d.mts +0 -4
  152. package/dist/neutral/contexts/ErrorReporter/index.d.mts.map +0 -1
  153. package/dist/neutral/contexts/ErrorReporter/index.d.ts +0 -4
  154. package/dist/neutral/contexts/ErrorReporter/index.d.ts.map +0 -1
  155. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  156. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  157. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  158. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  159. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  160. package/dist/neutral/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  161. package/dist/neutral/contexts/index.d.cts +0 -2
  162. package/dist/neutral/contexts/index.d.cts.map +0 -1
  163. package/dist/neutral/contexts/index.d.mts +0 -2
  164. package/dist/neutral/contexts/index.d.mts.map +0 -1
  165. package/dist/neutral/contexts/index.d.ts +0 -2
  166. package/dist/neutral/contexts/index.d.ts.map +0 -1
  167. package/dist/neutral/index.cjs +0 -194
  168. package/dist/neutral/index.cjs.map +0 -1
  169. package/dist/neutral/index.d.cts +0 -3
  170. package/dist/neutral/index.d.cts.map +0 -1
  171. package/dist/neutral/index.d.mts +0 -3
  172. package/dist/neutral/index.d.mts.map +0 -1
  173. package/dist/neutral/index.d.ts +0 -3
  174. package/dist/neutral/index.d.ts.map +0 -1
  175. package/dist/neutral/index.mjs +0 -163
  176. package/dist/neutral/index.mjs.map +0 -1
  177. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.cts +0 -23
  178. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.cts.map +0 -1
  179. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -23
  180. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  181. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -23
  182. package/dist/node/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  183. package/dist/node/components/ErrorBoundary/index.d.cts +0 -2
  184. package/dist/node/components/ErrorBoundary/index.d.cts.map +0 -1
  185. package/dist/node/components/ErrorBoundary/index.d.mts +0 -2
  186. package/dist/node/components/ErrorBoundary/index.d.mts.map +0 -1
  187. package/dist/node/components/ErrorBoundary/index.d.ts +0 -2
  188. package/dist/node/components/ErrorBoundary/index.d.ts.map +0 -1
  189. package/dist/node/components/ErrorRender/ErrorAlert.d.cts +0 -11
  190. package/dist/node/components/ErrorRender/ErrorAlert.d.cts.map +0 -1
  191. package/dist/node/components/ErrorRender/ErrorAlert.d.mts +0 -11
  192. package/dist/node/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  193. package/dist/node/components/ErrorRender/ErrorAlert.d.ts +0 -11
  194. package/dist/node/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  195. package/dist/node/components/ErrorRender/Props.d.cts +0 -15
  196. package/dist/node/components/ErrorRender/Props.d.cts.map +0 -1
  197. package/dist/node/components/ErrorRender/Props.d.mts +0 -15
  198. package/dist/node/components/ErrorRender/Props.d.mts.map +0 -1
  199. package/dist/node/components/ErrorRender/Props.d.ts +0 -15
  200. package/dist/node/components/ErrorRender/Props.d.ts.map +0 -1
  201. package/dist/node/components/ErrorRender/Render.d.cts +0 -4
  202. package/dist/node/components/ErrorRender/Render.d.cts.map +0 -1
  203. package/dist/node/components/ErrorRender/Render.d.mts +0 -4
  204. package/dist/node/components/ErrorRender/Render.d.mts.map +0 -1
  205. package/dist/node/components/ErrorRender/Render.d.ts +0 -4
  206. package/dist/node/components/ErrorRender/Render.d.ts.map +0 -1
  207. package/dist/node/components/ErrorRender/index.d.cts +0 -4
  208. package/dist/node/components/ErrorRender/index.d.cts.map +0 -1
  209. package/dist/node/components/ErrorRender/index.d.mts +0 -4
  210. package/dist/node/components/ErrorRender/index.d.mts.map +0 -1
  211. package/dist/node/components/ErrorRender/index.d.ts +0 -4
  212. package/dist/node/components/ErrorRender/index.d.ts.map +0 -1
  213. package/dist/node/components/index.d.cts +0 -3
  214. package/dist/node/components/index.d.cts.map +0 -1
  215. package/dist/node/components/index.d.mts +0 -3
  216. package/dist/node/components/index.d.mts.map +0 -1
  217. package/dist/node/components/index.d.ts +0 -3
  218. package/dist/node/components/index.d.ts.map +0 -1
  219. package/dist/node/contexts/ErrorReporter/Context.d.cts +0 -3
  220. package/dist/node/contexts/ErrorReporter/Context.d.cts.map +0 -1
  221. package/dist/node/contexts/ErrorReporter/Context.d.mts +0 -3
  222. package/dist/node/contexts/ErrorReporter/Context.d.mts.map +0 -1
  223. package/dist/node/contexts/ErrorReporter/Context.d.ts +0 -3
  224. package/dist/node/contexts/ErrorReporter/Context.d.ts.map +0 -1
  225. package/dist/node/contexts/ErrorReporter/Provider.d.cts +0 -9
  226. package/dist/node/contexts/ErrorReporter/Provider.d.cts.map +0 -1
  227. package/dist/node/contexts/ErrorReporter/Provider.d.mts +0 -9
  228. package/dist/node/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  229. package/dist/node/contexts/ErrorReporter/Provider.d.ts +0 -9
  230. package/dist/node/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  231. package/dist/node/contexts/ErrorReporter/State.d.cts +0 -5
  232. package/dist/node/contexts/ErrorReporter/State.d.cts.map +0 -1
  233. package/dist/node/contexts/ErrorReporter/State.d.mts +0 -5
  234. package/dist/node/contexts/ErrorReporter/State.d.mts.map +0 -1
  235. package/dist/node/contexts/ErrorReporter/State.d.ts +0 -5
  236. package/dist/node/contexts/ErrorReporter/State.d.ts.map +0 -1
  237. package/dist/node/contexts/ErrorReporter/index.d.cts +0 -4
  238. package/dist/node/contexts/ErrorReporter/index.d.cts.map +0 -1
  239. package/dist/node/contexts/ErrorReporter/index.d.mts +0 -4
  240. package/dist/node/contexts/ErrorReporter/index.d.mts.map +0 -1
  241. package/dist/node/contexts/ErrorReporter/index.d.ts +0 -4
  242. package/dist/node/contexts/ErrorReporter/index.d.ts.map +0 -1
  243. package/dist/node/contexts/ErrorReporter/useRollbar.d.cts +0 -3
  244. package/dist/node/contexts/ErrorReporter/useRollbar.d.cts.map +0 -1
  245. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  246. package/dist/node/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  247. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts +0 -3
  248. package/dist/node/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  249. package/dist/node/contexts/index.d.cts +0 -2
  250. package/dist/node/contexts/index.d.cts.map +0 -1
  251. package/dist/node/contexts/index.d.mts +0 -2
  252. package/dist/node/contexts/index.d.mts.map +0 -1
  253. package/dist/node/contexts/index.d.ts +0 -2
  254. package/dist/node/contexts/index.d.ts.map +0 -1
  255. package/dist/node/index.cjs +0 -201
  256. package/dist/node/index.cjs.map +0 -1
  257. package/dist/node/index.d.cts +0 -3
  258. package/dist/node/index.d.cts.map +0 -1
  259. package/dist/node/index.d.mts +0 -3
  260. package/dist/node/index.d.mts.map +0 -1
  261. package/dist/node/index.d.ts +0 -3
  262. package/dist/node/index.d.ts.map +0 -1
  263. package/dist/node/index.mjs +0 -162
  264. package/dist/node/index.mjs.map +0 -1
@@ -1,3 +1,62 @@
1
- export * from './components/index.ts';
2
- export * from './contexts/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ModuleError } from '@xyo-network/payload-model';
3
+ import React, { ReactNode, Component, ErrorInfo } from 'react';
4
+ import Rollbar from 'rollbar';
5
+ import { AlertProps } from '@mui/material';
6
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
7
+ import { Location } from 'react-router-dom';
8
+ import { WithChildren } from '@xylabs/react-shared';
9
+
10
+ interface ThrownErrorBoundaryProps {
11
+ boundaryName?: string;
12
+ children: ReactNode;
13
+ errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode;
14
+ rethrow?: boolean;
15
+ rollbar?: Rollbar;
16
+ scope?: string;
17
+ title?: string;
18
+ }
19
+ interface ThrownErrorBoundaryState {
20
+ xyoError?: ModuleError;
21
+ }
22
+ declare class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {
23
+ state: ThrownErrorBoundaryState;
24
+ static getDerivedStateFromError(error: Error): ThrownErrorBoundaryState;
25
+ static normalizeError(error: Error | ModuleError): ModuleError;
26
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
27
+ render(): string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | null | undefined;
28
+ }
29
+
30
+ interface ErrorAlertProps extends AlertProps {
31
+ error?: ModuleError | Error | string;
32
+ errorContext?: string;
33
+ onCancel?: () => void;
34
+ scope?: string;
35
+ }
36
+ declare const ErrorAlert: React.FC<ErrorAlertProps>;
37
+
38
+ interface ErrorRenderProps extends FlexBoxProps {
39
+ customError?: ReactNode;
40
+ error?: ModuleError | Error;
41
+ errorContext?: string;
42
+ noErrorDisplay?: boolean;
43
+ noReAuth?: boolean;
44
+ onCancel?: () => void;
45
+ scope?: string;
46
+ useLocation?: () => Location;
47
+ }
48
+
49
+ declare const ErrorRender: React.FC<ErrorRenderProps>;
50
+
51
+ interface ErrorReporterProviderProps {
52
+ rollbar: Rollbar;
53
+ }
54
+ declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
55
+
56
+ interface ErrorReporterContextState {
57
+ rollbar?: Rollbar;
58
+ }
59
+
60
+ declare const useRollbar: () => ErrorReporterContextState;
61
+
62
+ export { ErrorAlert, type ErrorAlertProps, ErrorRender, type ErrorRenderProps, type ErrorReporterContextState, ErrorReporterProvider, type ErrorReporterProviderProps, ThrownErrorBoundary, type ThrownErrorBoundaryProps, type ThrownErrorBoundaryState, useRollbar };
package/package.json CHANGED
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@storybook/react": "^8.2.7",
29
- "@xylabs/ts-scripts-yarn3": "^3.15.16",
30
- "@xylabs/tsconfig-react": "^3.15.16",
29
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.7",
30
+ "@xylabs/tsconfig-react": "^4.0.0-rc.7",
31
31
  "typescript": "^5.5.4"
32
32
  },
33
33
  "peerDependenciesMeta": {
@@ -39,31 +39,15 @@
39
39
  "docs": "dist/docs.json",
40
40
  "exports": {
41
41
  ".": {
42
- "node": {
43
- "import": {
44
- "types": "./dist/node/index.d.mts",
45
- "default": "./dist/node/index.mjs"
46
- },
47
- "require": {
48
- "types": "./dist/node/index.d.cts",
49
- "default": "./dist/node/index.cjs"
50
- }
51
- },
52
- "browser": {
53
- "import": {
54
- "types": "./dist/browser/index.d.mts",
55
- "default": "./dist/browser/index.mjs"
56
- },
57
- "require": {
58
- "types": "./dist/browser/index.d.cts",
59
- "default": "./dist/browser/index.cjs"
60
- }
42
+ "import": {
43
+ "types": "./dist/browser/index.d.ts",
44
+ "default": "./dist/browser/index.mjs"
61
45
  },
46
+ "types": "./dist/browser/index.d.ts",
62
47
  "default": "./dist/browser/index.mjs"
63
48
  },
64
49
  "./package.json": "./package.json"
65
50
  },
66
- "main": "dist/browser/index.cjs",
67
51
  "module": "dist/browser/index.mjs",
68
52
  "homepage": "https://xyo.network",
69
53
  "keywords": [
@@ -86,6 +70,6 @@
86
70
  },
87
71
  "sideEffects": false,
88
72
  "types": "dist/browser/index.d.ts",
89
- "version": "2.82.0",
73
+ "version": "2.83.0",
90
74
  "type": "module"
91
75
  }
package/xy.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ browser: {
5
+ src: true,
6
+ },
7
+ node: {},
8
+ neutral: {},
9
+ },
10
+ }
11
+
12
+ export default config
@@ -1,23 +0,0 @@
1
- import { ModuleError } from '@xyo-network/payload-model';
2
- import React, { 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<React.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,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9D,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 React, { 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<React.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,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9D,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 React, { 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<React.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,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9D,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.tsx';
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,2BAA2B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ThrownErrorBoundary.tsx';
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,2BAA2B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ThrownErrorBoundary.tsx';
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,2BAA2B,CAAA"}
@@ -1,11 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import React from 'react';
4
- export interface ErrorAlertProps extends AlertProps {
5
- error?: ModuleError | Error | string;
6
- errorContext?: string;
7
- onCancel?: () => void;
8
- scope?: string;
9
- }
10
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
11
- //# 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;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqChD,CAAA"}
@@ -1,11 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import React from 'react';
4
- export interface ErrorAlertProps extends AlertProps {
5
- error?: ModuleError | Error | string;
6
- errorContext?: string;
7
- onCancel?: () => void;
8
- scope?: string;
9
- }
10
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
11
- //# 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;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqChD,CAAA"}
@@ -1,11 +0,0 @@
1
- import { AlertProps } from '@mui/material';
2
- import { ModuleError } from '@xyo-network/payload-model';
3
- import React from 'react';
4
- export interface ErrorAlertProps extends AlertProps {
5
- error?: ModuleError | Error | string;
6
- errorContext?: string;
7
- onCancel?: () => void;
8
- scope?: string;
9
- }
10
- export declare const ErrorAlert: React.FC<ErrorAlertProps>;
11
- //# 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;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqChD,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,4 +0,0 @@
1
- import React from 'react';
2
- import { ErrorRenderProps } from './Props.ts';
3
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
4
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoClD,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ErrorRenderProps } from './Props.ts';
3
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
4
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoClD,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ErrorRenderProps } from './Props.ts';
3
- export declare const ErrorRender: React.FC<ErrorRenderProps>;
4
- //# sourceMappingURL=Render.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Render.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoClD,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.tsx';
2
- export * from './Props.ts';
3
- export * from './Render.tsx';
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,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.tsx';
2
- export * from './Props.ts';
3
- export * from './Render.tsx';
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,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './ErrorAlert.tsx';
2
- export * from './Props.ts';
3
- export * from './Render.tsx';
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,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ErrorBoundary/index.ts';
2
- export * from './ErrorRender/index.ts';
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.ts';
2
- export * from './ErrorRender/index.ts';
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.ts';
2
- export * from './ErrorRender/index.ts';
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.ts';
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.ts';
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.ts';
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,9 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import React from 'react';
3
- import Rollbar from 'rollbar';
4
- export interface ErrorReporterProviderProps {
5
- rollbar: Rollbar;
6
- }
7
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
8
- export { ErrorReporterProvider };
9
- //# 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;AACnD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,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,CAW7E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,9 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import React from 'react';
3
- import Rollbar from 'rollbar';
4
- export interface ErrorReporterProviderProps {
5
- rollbar: Rollbar;
6
- }
7
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
8
- export { ErrorReporterProvider };
9
- //# 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;AACnD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,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,CAW7E,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -1,9 +0,0 @@
1
- import { WithChildren } from '@xylabs/react-shared';
2
- import React from 'react';
3
- import Rollbar from 'rollbar';
4
- export interface ErrorReporterProviderProps {
5
- rollbar: Rollbar;
6
- }
7
- declare const ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>>;
8
- export { ErrorReporterProvider };
9
- //# 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;AACnD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,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,CAW7E,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.tsx';
2
- export * from './State.ts';
3
- export * from './useRollbar.tsx';
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,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Provider.tsx';
2
- export * from './State.ts';
3
- export * from './useRollbar.tsx';
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,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Provider.tsx';
2
- export * from './State.ts';
3
- export * from './useRollbar.tsx';
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,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const useRollbar: () => import("./State.ts").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.ts").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.ts").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"}