@xyo-network/react-error 2.61.0 → 2.61.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +1 -0
  2. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.ts +21 -0
  3. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +1 -0
  4. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts +7 -0
  5. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts.map +1 -0
  6. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts +7 -0
  7. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts.map +1 -0
  8. package/dist/components/ErrorBoundary/index.d.mts.map +1 -0
  9. package/dist/{esm/components/ErrorBoundary/index.js → components/ErrorBoundary/index.d.ts} +1 -1
  10. package/dist/components/ErrorBoundary/index.d.ts.map +1 -0
  11. package/dist/components/ErrorRender/ErrorAlert.d.mts.map +1 -0
  12. package/dist/components/ErrorRender/ErrorAlert.d.ts +10 -0
  13. package/dist/components/ErrorRender/ErrorAlert.d.ts.map +1 -0
  14. package/dist/components/ErrorRender/Props.d.mts.map +1 -0
  15. package/dist/components/ErrorRender/Props.d.ts +12 -0
  16. package/dist/components/ErrorRender/Props.d.ts.map +1 -0
  17. package/dist/components/ErrorRender/Render.d.mts.map +1 -0
  18. package/dist/components/ErrorRender/Render.d.ts +4 -0
  19. package/dist/components/ErrorRender/Render.d.ts.map +1 -0
  20. package/dist/components/ErrorRender/index.d.mts.map +1 -0
  21. package/dist/{esm/components/ErrorRender/index.js → components/ErrorRender/index.d.ts} +1 -1
  22. package/dist/components/ErrorRender/index.d.ts.map +1 -0
  23. package/dist/components/index.d.mts.map +1 -0
  24. package/dist/{esm/components/index.js → components/index.d.ts} +1 -1
  25. package/dist/components/index.d.ts.map +1 -0
  26. package/dist/contexts/ErrorReporter/Context.d.mts.map +1 -0
  27. package/dist/contexts/ErrorReporter/Context.d.ts +4 -0
  28. package/dist/contexts/ErrorReporter/Context.d.ts.map +1 -0
  29. package/dist/contexts/ErrorReporter/Provider.d.mts.map +1 -0
  30. package/dist/contexts/ErrorReporter/Provider.d.ts +9 -0
  31. package/dist/contexts/ErrorReporter/Provider.d.ts.map +1 -0
  32. package/dist/contexts/ErrorReporter/Provider.stories.d.mts +10 -0
  33. package/dist/contexts/ErrorReporter/Provider.stories.d.mts.map +1 -0
  34. package/dist/contexts/ErrorReporter/Provider.stories.d.ts +10 -0
  35. package/dist/contexts/ErrorReporter/Provider.stories.d.ts.map +1 -0
  36. package/dist/contexts/ErrorReporter/State.d.mts.map +1 -0
  37. package/dist/contexts/ErrorReporter/State.d.ts +5 -0
  38. package/dist/contexts/ErrorReporter/State.d.ts.map +1 -0
  39. package/dist/contexts/ErrorReporter/index.d.mts.map +1 -0
  40. package/dist/{esm/contexts/ErrorReporter/index.js → contexts/ErrorReporter/index.d.ts} +1 -1
  41. package/dist/contexts/ErrorReporter/index.d.ts.map +1 -0
  42. package/dist/contexts/ErrorReporter/useRollbar.d.mts.map +1 -0
  43. package/dist/contexts/ErrorReporter/useRollbar.d.ts +3 -0
  44. package/dist/contexts/ErrorReporter/useRollbar.d.ts.map +1 -0
  45. package/dist/contexts/index.d.mts.map +1 -0
  46. package/dist/contexts/index.d.ts +2 -0
  47. package/dist/contexts/index.d.ts.map +1 -0
  48. package/dist/docs.json +25215 -0
  49. package/dist/index.d.mts.map +1 -0
  50. package/dist/{esm/index.js → index.d.ts} +1 -1
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +159 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/index.mjs +118 -0
  55. package/dist/index.mjs.map +1 -0
  56. package/package.json +28 -20
  57. package/dist/cjs/components/ErrorBoundary/ThrownErrorBoundary.js +0 -43
  58. package/dist/cjs/components/ErrorBoundary/ThrownErrorBoundary.js.map +0 -1
  59. package/dist/cjs/components/ErrorBoundary/index.js +0 -5
  60. package/dist/cjs/components/ErrorBoundary/index.js.map +0 -1
  61. package/dist/cjs/components/ErrorRender/ErrorAlert.js +0 -14
  62. package/dist/cjs/components/ErrorRender/ErrorAlert.js.map +0 -1
  63. package/dist/cjs/components/ErrorRender/Props.js +0 -3
  64. package/dist/cjs/components/ErrorRender/Props.js.map +0 -1
  65. package/dist/cjs/components/ErrorRender/Render.js +0 -30
  66. package/dist/cjs/components/ErrorRender/Render.js.map +0 -1
  67. package/dist/cjs/components/ErrorRender/index.js +0 -7
  68. package/dist/cjs/components/ErrorRender/index.js.map +0 -1
  69. package/dist/cjs/components/index.js +0 -6
  70. package/dist/cjs/components/index.js.map +0 -1
  71. package/dist/cjs/contexts/ErrorReporter/Context.js +0 -6
  72. package/dist/cjs/contexts/ErrorReporter/Context.js.map +0 -1
  73. package/dist/cjs/contexts/ErrorReporter/Provider.js +0 -17
  74. package/dist/cjs/contexts/ErrorReporter/Provider.js.map +0 -1
  75. package/dist/cjs/contexts/ErrorReporter/State.js +0 -3
  76. package/dist/cjs/contexts/ErrorReporter/State.js.map +0 -1
  77. package/dist/cjs/contexts/ErrorReporter/index.js +0 -7
  78. package/dist/cjs/contexts/ErrorReporter/index.js.map +0 -1
  79. package/dist/cjs/contexts/ErrorReporter/useRollbar.js +0 -14
  80. package/dist/cjs/contexts/ErrorReporter/useRollbar.js.map +0 -1
  81. package/dist/cjs/contexts/index.js +0 -5
  82. package/dist/cjs/contexts/index.js.map +0 -1
  83. package/dist/cjs/index.js +0 -6
  84. package/dist/cjs/index.js.map +0 -1
  85. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js +0 -36
  86. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js.map +0 -1
  87. package/dist/esm/components/ErrorBoundary/index.js.map +0 -1
  88. package/dist/esm/components/ErrorRender/ErrorAlert.js +0 -8
  89. package/dist/esm/components/ErrorRender/ErrorAlert.js.map +0 -1
  90. package/dist/esm/components/ErrorRender/Props.js +0 -2
  91. package/dist/esm/components/ErrorRender/Props.js.map +0 -1
  92. package/dist/esm/components/ErrorRender/Render.js +0 -23
  93. package/dist/esm/components/ErrorRender/Render.js.map +0 -1
  94. package/dist/esm/components/ErrorRender/index.js.map +0 -1
  95. package/dist/esm/components/index.js.map +0 -1
  96. package/dist/esm/contexts/ErrorReporter/Context.js +0 -3
  97. package/dist/esm/contexts/ErrorReporter/Context.js.map +0 -1
  98. package/dist/esm/contexts/ErrorReporter/Provider.js +0 -14
  99. package/dist/esm/contexts/ErrorReporter/Provider.js.map +0 -1
  100. package/dist/esm/contexts/ErrorReporter/State.js +0 -2
  101. package/dist/esm/contexts/ErrorReporter/State.js.map +0 -1
  102. package/dist/esm/contexts/ErrorReporter/index.js.map +0 -1
  103. package/dist/esm/contexts/ErrorReporter/useRollbar.js +0 -11
  104. package/dist/esm/contexts/ErrorReporter/useRollbar.js.map +0 -1
  105. package/dist/esm/contexts/index.js +0 -2
  106. package/dist/esm/contexts/index.js.map +0 -1
  107. package/dist/esm/index.js.map +0 -1
  108. package/dist/types/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  109. package/dist/types/components/ErrorBoundary/index.d.ts.map +0 -1
  110. package/dist/types/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  111. package/dist/types/components/ErrorRender/Props.d.ts.map +0 -1
  112. package/dist/types/components/ErrorRender/Render.d.ts.map +0 -1
  113. package/dist/types/components/ErrorRender/index.d.ts.map +0 -1
  114. package/dist/types/components/index.d.ts.map +0 -1
  115. package/dist/types/contexts/ErrorReporter/Context.d.ts.map +0 -1
  116. package/dist/types/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  117. package/dist/types/contexts/ErrorReporter/State.d.ts.map +0 -1
  118. package/dist/types/contexts/ErrorReporter/index.d.ts.map +0 -1
  119. package/dist/types/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  120. package/dist/types/contexts/index.d.ts.map +0 -1
  121. package/dist/types/index.d.ts.map +0 -1
  122. /package/dist/{types/components/ErrorBoundary/ThrownErrorBoundary.d.ts → components/ErrorBoundary/ThrownErrorBoundary.d.mts} +0 -0
  123. /package/dist/{types/components/ErrorBoundary/index.d.ts → components/ErrorBoundary/index.d.mts} +0 -0
  124. /package/dist/{types/components/ErrorRender/ErrorAlert.d.ts → components/ErrorRender/ErrorAlert.d.mts} +0 -0
  125. /package/dist/{types/components/ErrorRender/Props.d.ts → components/ErrorRender/Props.d.mts} +0 -0
  126. /package/dist/{types/components/ErrorRender/Render.d.ts → components/ErrorRender/Render.d.mts} +0 -0
  127. /package/dist/{types/components/ErrorRender/index.d.ts → components/ErrorRender/index.d.mts} +0 -0
  128. /package/dist/{types/components/index.d.ts → components/index.d.mts} +0 -0
  129. /package/dist/{types/contexts/ErrorReporter/Context.d.ts → contexts/ErrorReporter/Context.d.mts} +0 -0
  130. /package/dist/{types/contexts/ErrorReporter/Provider.d.ts → contexts/ErrorReporter/Provider.d.mts} +0 -0
  131. /package/dist/{types/contexts/ErrorReporter/State.d.ts → contexts/ErrorReporter/State.d.mts} +0 -0
  132. /package/dist/{types/contexts/ErrorReporter/index.d.ts → contexts/ErrorReporter/index.d.mts} +0 -0
  133. /package/dist/{types/contexts/ErrorReporter/useRollbar.d.ts → contexts/ErrorReporter/useRollbar.d.mts} +0 -0
  134. /package/dist/{types/contexts/index.d.ts → contexts/index.d.mts} +0 -0
  135. /package/dist/{types/index.d.ts → index.d.mts} +0 -0
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,21 @@
1
+ import { ModuleError } from '@xyo-network/payload-model';
2
+ import { Component, ErrorInfo, ReactNode } from 'react';
3
+ import Rollbar from 'rollbar';
4
+ export interface ThrownErrorBoundaryProps {
5
+ boundaryName?: string;
6
+ children: ReactNode;
7
+ errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode;
8
+ rethrow?: boolean;
9
+ rollbar?: Rollbar;
10
+ }
11
+ export interface ThrownErrorBoundaryState {
12
+ xyoError?: ModuleError;
13
+ }
14
+ export declare class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {
15
+ state: ThrownErrorBoundaryState;
16
+ static getDerivedStateFromError(error: Error): ThrownErrorBoundaryState;
17
+ static normalizeError(error: Error | ModuleError): ModuleError;
18
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
19
+ render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
20
+ }
21
+ //# sourceMappingURL=ThrownErrorBoundary.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +1,2 @@
1
1
  export * from './ThrownErrorBoundary';
2
- //# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { AlertProps } from '@mui/material';
3
+ import { ModuleError } from '@xyo-network/payload-model';
4
+ export interface ErrorAlertProps extends AlertProps {
5
+ error?: ModuleError | Error;
6
+ errorContext?: string;
7
+ onCancel?: () => void;
8
+ }
9
+ export declare const ErrorAlert: React.FC<ErrorAlertProps>;
10
+ //# sourceMappingURL=ErrorAlert.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { ModuleError } from '@xyo-network/payload-model';
3
+ import { ReactNode } from 'react';
4
+ export interface ErrorRenderProps extends FlexBoxProps {
5
+ customError?: ReactNode;
6
+ error?: ModuleError | Error;
7
+ errorContext?: string;
8
+ noErrorDisplay?: boolean;
9
+ noReAuth?: boolean;
10
+ onCancel?: () => void;
11
+ }
12
+ //# sourceMappingURL=Props.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ErrorRenderProps } from './Props';
3
+ export declare const ErrorRender: React.FC<ErrorRenderProps>;
4
+ //# sourceMappingURL=Render.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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,4 +1,4 @@
1
1
  export * from './ErrorAlert';
2
2
  export * from './Props';
3
3
  export * from './Render';
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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,3 +1,3 @@
1
1
  export * from './ErrorBoundary';
2
2
  export * from './ErrorRender';
3
- //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ErrorReporterContextState } from './State';
3
+ export declare const ErrorReporterContext: import("react").Context<ErrorReporterContextState>;
4
+ //# sourceMappingURL=Context.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { WithChildren } from '@xylabs/react-shared';
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
1
+ import Rollbar from 'rollbar';
2
+ export interface ErrorReporterContextState {
3
+ rollbar?: Rollbar;
4
+ }
5
+ //# sourceMappingURL=State.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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,4 +1,4 @@
1
1
  export * from './Provider';
2
2
  export * from './State';
3
3
  export * from './useRollbar';
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ declare const useRollbar: () => import("./State").ErrorReporterContextState;
2
+ export { useRollbar };
3
+ //# sourceMappingURL=useRollbar.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './ErrorReporter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}