@xyo-network/react-error 2.62.3 → 2.63.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/cjs/components/ErrorBoundary/ThrownErrorBoundary.js +43 -0
  2. package/dist/cjs/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  3. package/dist/cjs/components/ErrorBoundary/index.js +5 -0
  4. package/dist/cjs/components/ErrorBoundary/index.js.map +1 -0
  5. package/dist/cjs/components/ErrorRender/ErrorAlert.js +14 -0
  6. package/dist/cjs/components/ErrorRender/ErrorAlert.js.map +1 -0
  7. package/dist/cjs/components/ErrorRender/Props.js +3 -0
  8. package/dist/cjs/components/ErrorRender/Props.js.map +1 -0
  9. package/dist/cjs/components/ErrorRender/Render.js +30 -0
  10. package/dist/cjs/components/ErrorRender/Render.js.map +1 -0
  11. package/dist/cjs/components/ErrorRender/index.js +7 -0
  12. package/dist/cjs/components/ErrorRender/index.js.map +1 -0
  13. package/dist/cjs/components/index.js +6 -0
  14. package/dist/cjs/components/index.js.map +1 -0
  15. package/dist/cjs/contexts/ErrorReporter/Context.js +6 -0
  16. package/dist/cjs/contexts/ErrorReporter/Context.js.map +1 -0
  17. package/dist/cjs/contexts/ErrorReporter/Provider.js +17 -0
  18. package/dist/cjs/contexts/ErrorReporter/Provider.js.map +1 -0
  19. package/dist/cjs/contexts/ErrorReporter/State.js +3 -0
  20. package/dist/cjs/contexts/ErrorReporter/State.js.map +1 -0
  21. package/dist/cjs/contexts/ErrorReporter/index.js +7 -0
  22. package/dist/cjs/contexts/ErrorReporter/index.js.map +1 -0
  23. package/dist/cjs/contexts/ErrorReporter/useRollbar.js +14 -0
  24. package/dist/cjs/contexts/ErrorReporter/useRollbar.js.map +1 -0
  25. package/dist/cjs/contexts/index.js +5 -0
  26. package/dist/cjs/contexts/index.js.map +1 -0
  27. package/dist/cjs/index.js +6 -0
  28. package/dist/cjs/index.js.map +1 -0
  29. package/dist/docs.json +44 -44
  30. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js +36 -0
  31. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  32. package/dist/{components/ErrorBoundary/index.d.mts → esm/components/ErrorBoundary/index.js} +1 -1
  33. package/dist/esm/components/ErrorBoundary/index.js.map +1 -0
  34. package/dist/esm/components/ErrorRender/ErrorAlert.js +8 -0
  35. package/dist/esm/components/ErrorRender/ErrorAlert.js.map +1 -0
  36. package/dist/esm/components/ErrorRender/Props.js +2 -0
  37. package/dist/esm/components/ErrorRender/Props.js.map +1 -0
  38. package/dist/esm/components/ErrorRender/Render.js +23 -0
  39. package/dist/esm/components/ErrorRender/Render.js.map +1 -0
  40. package/dist/{components/ErrorRender/index.d.mts → esm/components/ErrorRender/index.js} +1 -1
  41. package/dist/esm/components/ErrorRender/index.js.map +1 -0
  42. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  43. package/dist/esm/components/index.js.map +1 -0
  44. package/dist/esm/contexts/ErrorReporter/Context.js +3 -0
  45. package/dist/esm/contexts/ErrorReporter/Context.js.map +1 -0
  46. package/dist/esm/contexts/ErrorReporter/Provider.js +14 -0
  47. package/dist/esm/contexts/ErrorReporter/Provider.js.map +1 -0
  48. package/dist/esm/contexts/ErrorReporter/State.js +2 -0
  49. package/dist/esm/contexts/ErrorReporter/State.js.map +1 -0
  50. package/dist/{contexts/ErrorReporter/index.d.mts → esm/contexts/ErrorReporter/index.js} +1 -1
  51. package/dist/esm/contexts/ErrorReporter/index.js.map +1 -0
  52. package/dist/esm/contexts/ErrorReporter/useRollbar.js +11 -0
  53. package/dist/esm/contexts/ErrorReporter/useRollbar.js.map +1 -0
  54. package/dist/esm/contexts/index.js +2 -0
  55. package/dist/esm/contexts/index.js.map +1 -0
  56. package/dist/{index.d.mts → esm/index.js} +1 -1
  57. package/dist/esm/index.js.map +1 -0
  58. package/dist/types/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +1 -0
  59. package/dist/types/components/ErrorBoundary/index.d.ts.map +1 -0
  60. package/dist/types/components/ErrorRender/ErrorAlert.d.ts.map +1 -0
  61. package/dist/types/components/ErrorRender/Props.d.ts.map +1 -0
  62. package/dist/types/components/ErrorRender/Render.d.ts.map +1 -0
  63. package/dist/types/components/ErrorRender/index.d.ts.map +1 -0
  64. package/dist/types/components/index.d.ts.map +1 -0
  65. package/dist/types/contexts/ErrorReporter/Context.d.ts.map +1 -0
  66. package/dist/types/contexts/ErrorReporter/Provider.d.ts.map +1 -0
  67. package/dist/types/contexts/ErrorReporter/State.d.ts.map +1 -0
  68. package/dist/types/contexts/ErrorReporter/index.d.ts.map +1 -0
  69. package/dist/types/contexts/ErrorReporter/useRollbar.d.ts.map +1 -0
  70. package/dist/types/contexts/index.d.ts.map +1 -0
  71. package/dist/types/index.d.ts.map +1 -0
  72. package/package.json +19 -27
  73. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -21
  74. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  75. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  76. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts +0 -7
  77. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts.map +0 -1
  78. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts +0 -7
  79. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts.map +0 -1
  80. package/dist/components/ErrorBoundary/index.d.mts.map +0 -1
  81. package/dist/components/ErrorBoundary/index.d.ts.map +0 -1
  82. package/dist/components/ErrorRender/ErrorAlert.d.mts +0 -10
  83. package/dist/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  84. package/dist/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  85. package/dist/components/ErrorRender/Props.d.mts +0 -12
  86. package/dist/components/ErrorRender/Props.d.mts.map +0 -1
  87. package/dist/components/ErrorRender/Props.d.ts.map +0 -1
  88. package/dist/components/ErrorRender/Render.d.mts +0 -4
  89. package/dist/components/ErrorRender/Render.d.mts.map +0 -1
  90. package/dist/components/ErrorRender/Render.d.ts.map +0 -1
  91. package/dist/components/ErrorRender/index.d.mts.map +0 -1
  92. package/dist/components/ErrorRender/index.d.ts.map +0 -1
  93. package/dist/components/index.d.mts.map +0 -1
  94. package/dist/components/index.d.ts.map +0 -1
  95. package/dist/contexts/ErrorReporter/Context.d.mts +0 -4
  96. package/dist/contexts/ErrorReporter/Context.d.mts.map +0 -1
  97. package/dist/contexts/ErrorReporter/Context.d.ts.map +0 -1
  98. package/dist/contexts/ErrorReporter/Provider.d.mts +0 -9
  99. package/dist/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  100. package/dist/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  101. package/dist/contexts/ErrorReporter/Provider.stories.d.mts +0 -10
  102. package/dist/contexts/ErrorReporter/Provider.stories.d.mts.map +0 -1
  103. package/dist/contexts/ErrorReporter/Provider.stories.d.ts +0 -10
  104. package/dist/contexts/ErrorReporter/Provider.stories.d.ts.map +0 -1
  105. package/dist/contexts/ErrorReporter/State.d.mts +0 -5
  106. package/dist/contexts/ErrorReporter/State.d.mts.map +0 -1
  107. package/dist/contexts/ErrorReporter/State.d.ts.map +0 -1
  108. package/dist/contexts/ErrorReporter/index.d.mts.map +0 -1
  109. package/dist/contexts/ErrorReporter/index.d.ts.map +0 -1
  110. package/dist/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  111. package/dist/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  112. package/dist/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  113. package/dist/contexts/index.d.mts +0 -2
  114. package/dist/contexts/index.d.mts.map +0 -1
  115. package/dist/contexts/index.d.ts.map +0 -1
  116. package/dist/index.d.mts.map +0 -1
  117. package/dist/index.d.ts.map +0 -1
  118. package/dist/index.js +0 -159
  119. package/dist/index.js.map +0 -1
  120. package/dist/index.mjs +0 -118
  121. package/dist/index.mjs.map +0 -1
  122. /package/dist/{components → types/components}/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -0
  123. /package/dist/{components → types/components}/ErrorBoundary/index.d.ts +0 -0
  124. /package/dist/{components → types/components}/ErrorRender/ErrorAlert.d.ts +0 -0
  125. /package/dist/{components → types/components}/ErrorRender/Props.d.ts +0 -0
  126. /package/dist/{components → types/components}/ErrorRender/Render.d.ts +0 -0
  127. /package/dist/{components → types/components}/ErrorRender/index.d.ts +0 -0
  128. /package/dist/{components → types/components}/index.d.ts +0 -0
  129. /package/dist/{contexts → types/contexts}/ErrorReporter/Context.d.ts +0 -0
  130. /package/dist/{contexts → types/contexts}/ErrorReporter/Provider.d.ts +0 -0
  131. /package/dist/{contexts → types/contexts}/ErrorReporter/State.d.ts +0 -0
  132. /package/dist/{contexts → types/contexts}/ErrorReporter/index.d.ts +0 -0
  133. /package/dist/{contexts → types/contexts}/ErrorReporter/useRollbar.d.ts +0 -0
  134. /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
  135. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
package/dist/docs.json CHANGED
@@ -194,7 +194,7 @@
194
194
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
195
195
  "line": 20,
196
196
  "character": 18,
197
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L20"
197
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L20"
198
198
  }
199
199
  ],
200
200
  "type": {
@@ -223,7 +223,7 @@
223
223
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
224
224
  "line": 34,
225
225
  "character": 18,
226
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L34"
226
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L34"
227
227
  }
228
228
  ],
229
229
  "signatures": [
@@ -238,7 +238,7 @@
238
238
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
239
239
  "line": 34,
240
240
  "character": 2,
241
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L34"
241
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L34"
242
242
  }
243
243
  ],
244
244
  "parameters": [
@@ -306,7 +306,7 @@
306
306
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
307
307
  "line": 46,
308
308
  "character": 18,
309
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L46"
309
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L46"
310
310
  }
311
311
  ],
312
312
  "signatures": [
@@ -321,7 +321,7 @@
321
321
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
322
322
  "line": 46,
323
323
  "character": 2,
324
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L46"
324
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L46"
325
325
  }
326
326
  ],
327
327
  "type": {
@@ -406,7 +406,7 @@
406
406
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
407
407
  "line": 24,
408
408
  "character": 9,
409
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L24"
409
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L24"
410
410
  }
411
411
  ],
412
412
  "signatures": [
@@ -421,7 +421,7 @@
421
421
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
422
422
  "line": 24,
423
423
  "character": 2,
424
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L24"
424
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L24"
425
425
  }
426
426
  ],
427
427
  "parameters": [
@@ -465,7 +465,7 @@
465
465
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
466
466
  "line": 28,
467
467
  "character": 16,
468
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L28"
468
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L28"
469
469
  }
470
470
  ],
471
471
  "signatures": [
@@ -480,7 +480,7 @@
480
480
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
481
481
  "line": 28,
482
482
  "character": 2,
483
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L28"
483
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L28"
484
484
  }
485
485
  ],
486
486
  "parameters": [
@@ -618,7 +618,7 @@
618
618
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
619
619
  "line": 19,
620
620
  "character": 13,
621
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L19"
621
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L19"
622
622
  }
623
623
  ],
624
624
  "extendedTypes": [
@@ -668,7 +668,7 @@
668
668
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
669
669
  "line": 7,
670
670
  "character": 2,
671
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L7"
671
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L7"
672
672
  }
673
673
  ],
674
674
  "type": {
@@ -739,7 +739,7 @@
739
739
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
740
740
  "line": 8,
741
741
  "character": 2,
742
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L8"
742
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L8"
743
743
  }
744
744
  ],
745
745
  "type": {
@@ -760,7 +760,7 @@
760
760
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
761
761
  "line": 9,
762
762
  "character": 2,
763
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
763
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
764
764
  }
765
765
  ],
766
766
  "type": {
@@ -776,7 +776,7 @@
776
776
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
777
777
  "line": 9,
778
778
  "character": 13,
779
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
779
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
780
780
  }
781
781
  ],
782
782
  "signatures": [
@@ -791,7 +791,7 @@
791
791
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
792
792
  "line": 9,
793
793
  "character": 13,
794
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
794
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L9"
795
795
  }
796
796
  ],
797
797
  "type": {
@@ -819,7 +819,7 @@
819
819
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
820
820
  "line": 6,
821
821
  "character": 17,
822
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L6"
822
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L6"
823
823
  }
824
824
  ],
825
825
  "extendedTypes": [
@@ -5544,7 +5544,7 @@
5544
5544
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
5545
5545
  "line": 6,
5546
5546
  "character": 2,
5547
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L6"
5547
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L6"
5548
5548
  }
5549
5549
  ],
5550
5550
  "type": {
@@ -5855,7 +5855,7 @@
5855
5855
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
5856
5856
  "line": 7,
5857
5857
  "character": 2,
5858
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L7"
5858
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L7"
5859
5859
  }
5860
5860
  ],
5861
5861
  "type": {
@@ -5926,7 +5926,7 @@
5926
5926
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
5927
5927
  "line": 8,
5928
5928
  "character": 2,
5929
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L8"
5929
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L8"
5930
5930
  }
5931
5931
  ],
5932
5932
  "type": {
@@ -16111,7 +16111,7 @@
16111
16111
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
16112
16112
  "line": 9,
16113
16113
  "character": 2,
16114
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L9"
16114
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L9"
16115
16115
  }
16116
16116
  ],
16117
16117
  "type": {
@@ -16132,7 +16132,7 @@
16132
16132
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
16133
16133
  "line": 10,
16134
16134
  "character": 2,
16135
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L10"
16135
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L10"
16136
16136
  }
16137
16137
  ],
16138
16138
  "type": {
@@ -16153,7 +16153,7 @@
16153
16153
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
16154
16154
  "line": 11,
16155
16155
  "character": 2,
16156
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16156
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16157
16157
  }
16158
16158
  ],
16159
16159
  "type": {
@@ -16169,7 +16169,7 @@
16169
16169
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
16170
16170
  "line": 11,
16171
16171
  "character": 13,
16172
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16172
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16173
16173
  }
16174
16174
  ],
16175
16175
  "signatures": [
@@ -16184,7 +16184,7 @@
16184
16184
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
16185
16185
  "line": 11,
16186
16186
  "character": 13,
16187
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16187
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L11"
16188
16188
  }
16189
16189
  ],
16190
16190
  "type": {
@@ -22634,7 +22634,7 @@
22634
22634
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Props.ts",
22635
22635
  "line": 5,
22636
22636
  "character": 17,
22637
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L5"
22637
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Props.ts#L5"
22638
22638
  }
22639
22639
  ],
22640
22640
  "extendedTypes": [
@@ -22669,7 +22669,7 @@
22669
22669
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts",
22670
22670
  "line": 4,
22671
22671
  "character": 2,
22672
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts#L4"
22672
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts#L4"
22673
22673
  }
22674
22674
  ],
22675
22675
  "type": {
@@ -22696,7 +22696,7 @@
22696
22696
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts",
22697
22697
  "line": 3,
22698
22698
  "character": 17,
22699
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts#L3"
22699
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/State.ts#L3"
22700
22700
  }
22701
22701
  ]
22702
22702
  },
@@ -22718,7 +22718,7 @@
22718
22718
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx",
22719
22719
  "line": 8,
22720
22720
  "character": 2,
22721
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L8"
22721
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L8"
22722
22722
  }
22723
22723
  ],
22724
22724
  "type": {
@@ -22745,7 +22745,7 @@
22745
22745
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx",
22746
22746
  "line": 7,
22747
22747
  "character": 17,
22748
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L7"
22748
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L7"
22749
22749
  }
22750
22750
  ]
22751
22751
  },
@@ -22769,7 +22769,7 @@
22769
22769
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22770
22770
  "line": 8,
22771
22771
  "character": 2,
22772
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L8"
22772
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L8"
22773
22773
  }
22774
22774
  ],
22775
22775
  "type": {
@@ -22788,7 +22788,7 @@
22788
22788
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22789
22789
  "line": 9,
22790
22790
  "character": 2,
22791
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L9"
22791
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L9"
22792
22792
  }
22793
22793
  ],
22794
22794
  "type": {
@@ -22815,7 +22815,7 @@
22815
22815
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22816
22816
  "line": 10,
22817
22817
  "character": 2,
22818
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22818
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22819
22819
  }
22820
22820
  ],
22821
22821
  "type": {
@@ -22831,7 +22831,7 @@
22831
22831
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22832
22832
  "line": 10,
22833
22833
  "character": 19,
22834
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22834
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22835
22835
  }
22836
22836
  ],
22837
22837
  "signatures": [
@@ -22846,7 +22846,7 @@
22846
22846
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22847
22847
  "line": 10,
22848
22848
  "character": 19,
22849
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22849
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L10"
22850
22850
  }
22851
22851
  ],
22852
22852
  "parameters": [
@@ -22939,7 +22939,7 @@
22939
22939
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22940
22940
  "line": 11,
22941
22941
  "character": 2,
22942
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L11"
22942
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L11"
22943
22943
  }
22944
22944
  ],
22945
22945
  "type": {
@@ -22960,7 +22960,7 @@
22960
22960
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22961
22961
  "line": 12,
22962
22962
  "character": 2,
22963
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L12"
22963
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L12"
22964
22964
  }
22965
22965
  ],
22966
22966
  "type": {
@@ -22991,7 +22991,7 @@
22991
22991
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
22992
22992
  "line": 7,
22993
22993
  "character": 17,
22994
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L7"
22994
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L7"
22995
22995
  }
22996
22996
  ]
22997
22997
  },
@@ -23015,7 +23015,7 @@
23015
23015
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
23016
23016
  "line": 16,
23017
23017
  "character": 2,
23018
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L16"
23018
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L16"
23019
23019
  }
23020
23020
  ],
23021
23021
  "type": {
@@ -23073,7 +23073,7 @@
23073
23073
  "fileName": "packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx",
23074
23074
  "line": 15,
23075
23075
  "character": 17,
23076
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L15"
23076
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorBoundary/ThrownErrorBoundary.tsx#L15"
23077
23077
  }
23078
23078
  ]
23079
23079
  },
@@ -23088,7 +23088,7 @@
23088
23088
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx",
23089
23089
  "line": 12,
23090
23090
  "character": 13,
23091
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L12"
23091
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/ErrorAlert.tsx#L12"
23092
23092
  }
23093
23093
  ],
23094
23094
  "signatures": [
@@ -23176,7 +23176,7 @@
23176
23176
  "fileName": "packages/sdk/packages/error/src/components/ErrorRender/Render.tsx",
23177
23177
  "line": 8,
23178
23178
  "character": 13,
23179
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/components/ErrorRender/Render.tsx#L8"
23179
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/components/ErrorRender/Render.tsx#L8"
23180
23180
  }
23181
23181
  ],
23182
23182
  "signatures": [
@@ -23264,7 +23264,7 @@
23264
23264
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx",
23265
23265
  "line": 11,
23266
23266
  "character": 6,
23267
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L11"
23267
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/Provider.tsx#L11"
23268
23268
  }
23269
23269
  ],
23270
23270
  "signatures": [
@@ -23363,7 +23363,7 @@
23363
23363
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx",
23364
23364
  "line": 5,
23365
23365
  "character": 6,
23366
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx#L5"
23366
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx#L5"
23367
23367
  }
23368
23368
  ],
23369
23369
  "signatures": [
@@ -23378,7 +23378,7 @@
23378
23378
  "fileName": "packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx",
23379
23379
  "line": 5,
23380
23380
  "character": 19,
23381
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/6e04b89cd41a/packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx#L5"
23381
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/979e91e13a6b/packages/sdk/packages/error/src/contexts/ErrorReporter/useRollbar.tsx#L5"
23382
23382
  }
23383
23383
  ],
23384
23384
  "type": {
@@ -0,0 +1,36 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ModuleErrorSchema } from '@xyo-network/payload-model';
3
+ import { Component } from 'react';
4
+ import { ErrorRender } from '../ErrorRender';
5
+ export class ThrownErrorBoundary extends Component {
6
+ state = {
7
+ xyoError: undefined,
8
+ };
9
+ static getDerivedStateFromError(error) {
10
+ return { hasError: true, xyoError: ThrownErrorBoundary.normalizeError(error) };
11
+ }
12
+ static normalizeError(error) {
13
+ return (error.schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] });
14
+ }
15
+ componentDidCatch(error, errorInfo) {
16
+ const { rethrow, rollbar } = this.props;
17
+ const { xyoError } = this.state;
18
+ rollbar?.error(error);
19
+ console.error('Error:', xyoError, errorInfo);
20
+ if (rethrow) {
21
+ throw error;
22
+ }
23
+ }
24
+ render() {
25
+ const { xyoError } = this.state;
26
+ const { children, boundaryName, errorComponent } = this.props;
27
+ if (xyoError) {
28
+ if (errorComponent) {
29
+ return errorComponent(xyoError);
30
+ }
31
+ return _jsx(ErrorRender, { error: xyoError, errorContext: `${boundaryName} Boundary` });
32
+ }
33
+ return children;
34
+ }
35
+ }
36
+ //# sourceMappingURL=ThrownErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThrownErrorBoundary.js","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/ThrownErrorBoundary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAA;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAc5C,MAAM,OAAO,mBAAoB,SAAQ,SAA6D;IACpF,KAAK,GAA6B;QAChD,QAAQ,EAAE,SAAS;KACpB,CAAA;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,CAAC,cAAc,CAAC,KAAK,CAAC,EAA8B,CAAA;IAC5G,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,KAA0B;QACrD,OAAO,CACJ,KAAqB,CAAC,MAAM,KAAK,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,CAClH,CAAA;IAClB,CAAC;IAEe,iBAAiB,CAAC,KAAY,EAAE,SAAoB;QAClE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QACvC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE/B,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;QAErB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;QAC5C,IAAI,OAAO,EAAE;YACX,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;IAEe,MAAM;QACpB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAC/B,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAC7D,IAAI,QAAQ,EAAE;YACZ,IAAI,cAAc,EAAE;gBAClB,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAA;aAChC;YACD,OAAO,KAAC,WAAW,IAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,YAAY,WAAW,GAAI,CAAA;SAClF;QAED,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF"}
@@ -1,2 +1,2 @@
1
1
  export * from './ThrownErrorBoundary';
2
- //# sourceMappingURL=index.d.ts.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import ExitIcon from '@mui/icons-material/ExitToApp';
3
+ import { Alert, AlertTitle, Typography } from '@mui/material';
4
+ import { ButtonEx } from '@xylabs/react-button';
5
+ export const ErrorAlert = ({ onCancel, error, errorContext, ...props }) => {
6
+ return (_jsxs(Alert, { severity: "error", ...props, children: [_jsx(AlertTitle, { children: "Whoops! Something went wrong" }), errorContext ? (_jsx(Typography, { variant: "caption", my: 0.5, lineHeight: "1", display: "block", children: errorContext })) : null, _jsx(Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Error:" }), _jsx(Typography, { variant: "caption", children: error?.message }), onCancel ? (_jsx(ButtonEx, { variant: "outlined", size: "small", onClick: onCancel, position: "absolute", style: { right: 8, top: 8 }, children: _jsx(ExitIcon, { fontSize: "small" }) })) : null] }));
7
+ };
8
+ //# sourceMappingURL=ErrorAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorAlert.js","sourceRoot":"","sources":["../../../../src/components/ErrorRender/ErrorAlert.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,+BAA+B,CAAA;AACpD,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAS/C,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACnG,OAAO,CACL,MAAC,KAAK,IAAC,QAAQ,EAAC,OAAO,KAAK,KAAK,aAC/B,KAAC,UAAU,+CAA0C,EACpD,YAAY,CAAC,CAAC,CAAC,CACd,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,EAAE,EAAE,GAAG,EAAE,UAAU,EAAC,GAAG,EAAC,OAAO,EAAC,OAAO,YAClE,YAAY,GACF,CACd,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,EAAE,EAAE,GAAG,EAAE,UAAU,EAAC,MAAM,uBAE3C,EACb,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,YAAE,KAAK,EAAE,OAAO,GAAc,EAC1D,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,QAAQ,IAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YAC1G,KAAC,QAAQ,IAAC,QAAQ,EAAC,OAAO,GAAG,GACpB,CACZ,CAAC,CAAC,CAAC,IAAI,IACF,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Props.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { FlexCol } from '@xylabs/react-flexbox';
3
+ import { useEffect } from 'react';
4
+ import { useLocation } from 'react-router-dom';
5
+ import { ErrorAlert } from './ErrorAlert';
6
+ export const ErrorRender = ({ onCancel, error, noErrorDisplay = false, customError = null, children, errorContext, ...props }) => {
7
+ const location = useLocation();
8
+ useEffect(() => {
9
+ // ensure we end up at the same place we are now after logging in
10
+ location.state = {
11
+ from: {
12
+ pathname: window.location.pathname,
13
+ },
14
+ };
15
+ }, [location]);
16
+ if (error) {
17
+ return (_jsx(FlexCol, { alignItems: "stretch", ...props, children: noErrorDisplay ? (customError) : (_jsx(FlexCol, { alignItems: "center", ...props, children: _jsx(ErrorAlert, { error: error, errorContext: errorContext, onCancel: onCancel }) })) }));
18
+ }
19
+ else {
20
+ return _jsx(_Fragment, { children: children }) ?? null;
21
+ }
22
+ };
23
+ //# sourceMappingURL=Render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Render.js","sourceRoot":"","sources":["../../../../src/components/ErrorRender/Render.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,QAAQ,EACR,KAAK,EACL,cAAc,GAAG,KAAK,EACtB,WAAW,GAAG,IAAI,EAClB,QAAQ,EACR,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,SAAS,CAAC,GAAG,EAAE;QACb,iEAAiE;QACjE,QAAQ,CAAC,KAAK,GAAG;YACf,IAAI,EAAE;gBACJ,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;aACnC;SACF,CAAA;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,IAAI,KAAK,EAAE;QACT,OAAO,CACL,KAAC,OAAO,IAAC,UAAU,EAAC,SAAS,KAAK,KAAK,YACpC,cAAc,CAAC,CAAC,CAAC,CAChB,WAAW,CACZ,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,IAAC,UAAU,EAAC,QAAQ,KAAK,KAAK,YACpC,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAI,GACpE,CACX,GACO,CACX,CAAA;KACF;SAAM;QACL,OAAO,4BAAG,QAAQ,GAAI,IAAI,IAAI,CAAA;KAC/B;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  export * from './ErrorAlert';
2
2
  export * from './Props';
3
3
  export * from './Render';
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ErrorRender/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export * from './ErrorBoundary';
2
2
  export * from './ErrorRender';
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { createContext } from 'react';
2
+ export const ErrorReporterContext = createContext({});
3
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAIrC,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAA4B,EAAE,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { ErrorReporterContext } from './Context';
4
+ const ErrorReporterProvider = ({ children, rollbar }) => {
5
+ const [rollbarInstance, setRollBarInstance] = useState();
6
+ useEffect(() => {
7
+ if (rollbarInstance) {
8
+ setRollBarInstance(rollbarInstance);
9
+ }
10
+ }, [rollbar, rollbarInstance]);
11
+ return _jsx(ErrorReporterContext.Provider, { value: { rollbar }, children: children });
12
+ };
13
+ export { ErrorReporterProvider };
14
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAMhD,MAAM,qBAAqB,GAAuD,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1G,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,EAAW,CAAA;IAEjE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,EAAE;YACnB,kBAAkB,CAAC,eAAe,CAAC,CAAA;SACpC;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAA;IAE9B,OAAO,KAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,YAAG,QAAQ,GAAiC,CAAA;AACtG,CAAC,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/State.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  export * from './Provider';
2
2
  export * from './State';
3
3
  export * from './useRollbar';
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { useContext } from 'react';
2
+ import { ErrorReporterContext } from './Context';
3
+ const useRollbar = () => {
4
+ const context = useContext(ErrorReporterContext);
5
+ if (context === undefined) {
6
+ console.warn('useRollbar must be used within a ErrorReporterContext');
7
+ }
8
+ return context ?? {};
9
+ };
10
+ export { useRollbar };
11
+ //# sourceMappingURL=useRollbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRollbar.js","sourceRoot":"","sources":["../../../../src/contexts/ErrorReporter/useRollbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAEhD,MAAM,UAAU,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAChD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,OAAO,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAA;KACtE;IAED,OAAO,OAAO,IAAI,EAAE,CAAA;AACtB,CAAC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './ErrorReporter';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export * from './components';
2
2
  export * from './contexts';
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
@@ -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 @@
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"}