@contember/react-devbar 2.0.0-beta.4 → 2.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/src/DevErrorManager.cjs +26 -11
- package/dist/development/src/DevErrorManager.cjs.map +1 -1
- package/dist/development/src/DevErrorManager.js +26 -11
- package/dist/development/src/DevErrorManager.js.map +1 -1
- package/dist/development/src/ui/DevError/DevErrorBadge.cjs +3 -3
- package/dist/development/src/ui/DevError/DevErrorBadge.cjs.map +1 -1
- package/dist/development/src/ui/DevError/DevErrorBadge.js +3 -3
- package/dist/development/src/ui/DevError/DevErrorBadge.js.map +1 -1
- package/dist/development/src/ui/DevError/DevErrorList.cjs +25 -15
- package/dist/development/src/ui/DevError/DevErrorList.cjs.map +1 -1
- package/dist/development/src/ui/DevError/DevErrorList.js +25 -15
- package/dist/development/src/ui/DevError/DevErrorList.js.map +1 -1
- package/dist/production/src/ui/DevError/DevErrorBadge.cjs +1 -1
- package/dist/production/src/ui/DevError/DevErrorBadge.cjs.map +1 -1
- package/dist/production/src/ui/DevError/DevErrorBadge.js +1 -1
- package/dist/production/src/ui/DevError/DevErrorBadge.js.map +1 -1
- package/dist/production/src/ui/DevError/DevErrorList.cjs +4 -2
- package/dist/production/src/ui/DevError/DevErrorList.cjs.map +1 -1
- package/dist/production/src/ui/DevError/DevErrorList.js +4 -2
- package/dist/production/src/ui/DevError/DevErrorList.js.map +1 -1
- package/dist/types/DevErrorManager.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/ui/DevError/DevErrorBadge.d.ts +2 -1
- package/dist/types/ui/DevError/DevErrorBadge.d.ts.map +1 -1
- package/dist/types/ui/DevError/DevErrorList.d.ts +2 -1
- package/dist/types/ui/DevError/DevErrorList.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/DevErrorManager.tsx +35 -9
- package/src/index.css +1 -3
- package/src/ui/DevError/DevErrorBadge.tsx +2 -1
- package/src/ui/DevError/DevErrorList.tsx +7 -0
|
@@ -17,14 +17,8 @@ class ErrorBus {
|
|
|
17
17
|
const boxedError = { error, source };
|
|
18
18
|
if (!this.listener) {
|
|
19
19
|
this.queue.push(boxedError);
|
|
20
|
-
this.queue.push(boxedError);
|
|
21
|
-
this.queue.push(boxedError);
|
|
22
|
-
this.queue.push(boxedError);
|
|
23
20
|
} else {
|
|
24
21
|
this.listener(boxedError);
|
|
25
|
-
this.listener(boxedError);
|
|
26
|
-
this.listener(boxedError);
|
|
27
|
-
this.listener(boxedError);
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
24
|
register(listener) {
|
|
@@ -36,6 +30,21 @@ class ErrorBus {
|
|
|
36
30
|
};
|
|
37
31
|
}
|
|
38
32
|
}
|
|
33
|
+
const compareErrors = (a, b) => {
|
|
34
|
+
if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (!("stack" in a) || !("stack" in b) || !("message" in a) || !("message" in b)) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (a.message !== b.message) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (a.stack !== b.stack) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
};
|
|
39
48
|
function DevErrorManager(props) {
|
|
40
49
|
const [errors, setErrors] = React.useState([]);
|
|
41
50
|
const [errIndex, setErrorIndex] = React.useState(0);
|
|
@@ -45,7 +54,9 @@ function DevErrorManager(props) {
|
|
|
45
54
|
return props.bus.register((err) => {
|
|
46
55
|
setTimeout(
|
|
47
56
|
() => {
|
|
48
|
-
setErrors((errors2) =>
|
|
57
|
+
setErrors((errors2) => {
|
|
58
|
+
return !errors2.find((it) => compareErrors(it.error, err.error)) ? [err, ...errors2] : errors2;
|
|
59
|
+
});
|
|
49
60
|
setOpen(true);
|
|
50
61
|
},
|
|
51
62
|
0
|
|
@@ -56,16 +67,19 @@ function DevErrorManager(props) {
|
|
|
56
67
|
);
|
|
57
68
|
const currentError = errors[errIndex];
|
|
58
69
|
const processedError = useParsedStacktrace.useProcessedError(currentError?.error);
|
|
70
|
+
React.useEffect(() => {
|
|
71
|
+
}, []);
|
|
59
72
|
if (!currentError) {
|
|
60
73
|
return null;
|
|
61
74
|
}
|
|
62
75
|
const onPrevious = () => setErrorIndex((it) => Math.max(0, it - 1));
|
|
63
76
|
const onNext = () => setErrorIndex((it) => Math.min(errors.length - 1, it + 1));
|
|
64
77
|
const onClose = () => setOpen(false);
|
|
78
|
+
const onClear = () => setErrors([]);
|
|
65
79
|
if (!open) {
|
|
66
|
-
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(DevErrorBadge.DevErrorBadge, { errorCount: errors.length, onOpen: () => setOpen(true) }, void 0, false, {
|
|
80
|
+
return /* @__PURE__ */ jsxDevRuntime.jsxDEV(DevErrorBadge.DevErrorBadge, { errorCount: errors.length, onOpen: () => setOpen(true), onClear }, void 0, false, {
|
|
67
81
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/DevErrorManager.tsx",
|
|
68
|
-
lineNumber:
|
|
82
|
+
lineNumber: 94,
|
|
69
83
|
columnNumber: 10
|
|
70
84
|
}, this);
|
|
71
85
|
}
|
|
@@ -78,13 +92,14 @@ function DevErrorManager(props) {
|
|
|
78
92
|
errorCount: errors.length,
|
|
79
93
|
onPrevious,
|
|
80
94
|
onNext,
|
|
81
|
-
onClose
|
|
95
|
+
onClose,
|
|
96
|
+
onClear
|
|
82
97
|
},
|
|
83
98
|
void 0,
|
|
84
99
|
false,
|
|
85
100
|
{
|
|
86
101
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/DevErrorManager.tsx",
|
|
87
|
-
lineNumber:
|
|
102
|
+
lineNumber: 97,
|
|
88
103
|
columnNumber: 3
|
|
89
104
|
},
|
|
90
105
|
this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorManager.cjs","sources":["../../../../packages/react-devbar/src/DevErrorManager.tsx"],"sourcesContent":["import { DevErrorBadge, DevErrorList, ErrorType } from './ui/DevError'\nimport { useEffect, useState } from 'react'\nimport { useProcessedError } from './hooks/useParsedStacktrace'\n\nexport class ErrorBus {\n\tprivate queue: { error: ErrorType; source: string }[] = []\n\tprivate listener: null | ((error: { error: ErrorType; source: string }) => void) = null\n\n\tasync handleError(source: string, error: ErrorType) {\n\t\tconst boxedError = { error, source }\n\n\t\tif (!this.listener) {\n\t\t\tthis.queue.push(boxedError)\n\t\t
|
|
1
|
+
{"version":3,"file":"DevErrorManager.cjs","sources":["../../../../packages/react-devbar/src/DevErrorManager.tsx"],"sourcesContent":["import { DevErrorBadge, DevErrorList, ErrorType } from './ui/DevError'\nimport { useEffect, useState } from 'react'\nimport { useProcessedError } from './hooks/useParsedStacktrace'\n\nexport class ErrorBus {\n\tprivate queue: { error: ErrorType; source: string }[] = []\n\tprivate listener: null | ((error: { error: ErrorType; source: string }) => void) = null\n\n\tasync handleError(source: string, error: ErrorType) {\n\t\tconst boxedError = { error, source }\n\n\t\tif (!this.listener) {\n\t\t\tthis.queue.push(boxedError)\n\t\t} else {\n\t\t\tthis.listener(boxedError)\n\t\t}\n\t}\n\n\tregister(listener: (error: { error: ErrorType; source: string }) => void): () => void {\n\t\tthis.listener = listener\n\t\tthis.queue.forEach(listener)\n\t\tthis.queue = []\n\t\treturn () => {\n\t\t\tthis.listener = null\n\t\t}\n\t}\n}\n\nexport interface DevErrorManagerProps {\n\tbus: ErrorBus\n}\n\nconst compareErrors = (a: ErrorType, b: ErrorType) => {\n\tif (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {\n\t\treturn false\n\t}\n\tif (!('stack' in a) || !('stack' in b) || !('message' in a) || !('message' in b)) {\n\t\treturn false\n\t}\n\tif (a.message !== b.message) {\n\t\treturn false\n\t}\n\tif (a.stack !== b.stack) {\n\t\treturn false\n\t}\n\treturn true\n}\n\nexport function DevErrorManager(props: DevErrorManagerProps) {\n\tconst [errors, setErrors] = useState<{ error: ErrorType; source: string }[]>([])\n\tconst [errIndex, setErrorIndex] = useState(0)\n\tconst [open, setOpen] = useState(false)\n\n\tuseEffect(\n\t\t() => {\n\t\t\treturn props.bus.register(err => {\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() => {\n\t\t\t\t\t\tsetErrors(errors => {\n\t\t\t\t\t\t\treturn !errors.find(it => compareErrors(it.error, err.error)) ? [err, ...errors] : errors\n\t\t\t\t\t\t})\n\t\t\t\t\t\tsetOpen(true)\n\t\t\t\t\t},\n\t\t\t\t\t0,\n\t\t\t\t)\n\t\t\t})\n\t\t},\n\t\t[props.bus],\n\t)\n\n\tconst currentError = errors[errIndex]\n\tconst processedError = useProcessedError(currentError?.error)\n\n\tuseEffect(() => {\n\t\tif (import.meta.hot) {\n\t\t\tconst cb = () => {\n\t\t\t\tsetOpen(false)\n\t\t\t}\n\t\t\timport.meta.hot.on('vite:afterUpdate', cb)\n\t\t\treturn () => {\n\t\t\t\timport.meta.hot?.off('vite:afterUpdate', cb)\n\t\t\t}\n\t\t}\n\t}, [])\n\n\tif (!currentError) {\n\t\treturn null\n\t}\n\tconst onPrevious = () => setErrorIndex(it => Math.max(0, it - 1))\n\tconst onNext = () => setErrorIndex(it => Math.min(errors.length - 1, it + 1))\n\tconst onClose = () => setOpen(false)\n\tconst onClear = () => setErrors([])\n\tif (!open) {\n\t\treturn <DevErrorBadge errorCount={errors.length} onOpen={() => setOpen(true)} onClear={onClear} />\n\t}\n\treturn (\n\t\t<DevErrorList\n\t\t\tcurrentError={processedError}\n\t\t\tcurrentErrorSource={currentError.source}\n\t\t\tcurrentErrorIndex={errIndex}\n\t\t\terrorCount={errors.length}\n\t\t\tonPrevious={onPrevious}\n\t\t\tonNext={onNext}\n\t\t\tonClose={onClose}\n\t\t\tonClear={onClear}\n\t\t/>\n\t)\n}\n"],"names":["useState","useEffect","errors","useProcessedError","jsxDEV","DevErrorBadge","DevErrorList"],"mappings":";;;;;;;;;;AAIO,MAAM,SAAS;AAAA,EAAf,cAAA;AACN,kBAAA,MAAQ,SAAgD,EAAC;AACzD,kBAAA,MAAQ,YAA2E,IAAA;AAAA,EAAA;AAAA,EAEnF,MAAM,YAAY,QAAgB,OAAkB;AAC7C,UAAA,aAAa,EAAE,OAAO,OAAO;AAE/B,QAAA,CAAC,KAAK,UAAU;AACd,WAAA,MAAM,KAAK,UAAU;AAAA,IAAA,OACpB;AACN,WAAK,SAAS,UAAU;AAAA,IAAA;AAAA,EACzB;AAAA,EAGD,SAAS,UAA6E;AACrF,SAAK,WAAW;AACX,SAAA,MAAM,QAAQ,QAAQ;AAC3B,SAAK,QAAQ,CAAC;AACd,WAAO,MAAM;AACZ,WAAK,WAAW;AAAA,IACjB;AAAA,EAAA;AAEF;AAMA,MAAM,gBAAgB,CAAC,GAAc,MAAiB;AACjD,MAAA,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,MAAM;AACxE,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,WAAW,MAAM,EAAE,WAAW,MAAM,EAAE,aAAa,MAAM,EAAE,aAAa,IAAI;AAC1E,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,YAAY,EAAE,SAAS;AACrB,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,UAAU,EAAE,OAAO;AACjB,WAAA;AAAA,EAAA;AAED,SAAA;AACR;AAEO,SAAS,gBAAgB,OAA6B;AAC5D,QAAM,CAAC,QAAQ,SAAS,IAAIA,MAAAA,SAAiD,CAAA,CAAE;AAC/E,QAAM,CAAC,UAAU,aAAa,IAAIA,MAAAA,SAAS,CAAC;AAC5C,QAAM,CAAC,MAAM,OAAO,IAAIA,MAAAA,SAAS,KAAK;AAEtCC,QAAA;AAAA,IACC,MAAM;AACE,aAAA,MAAM,IAAI,SAAS,CAAO,QAAA;AAChC;AAAA,UACC,MAAM;AACL,sBAAU,CAAAC,YAAU;AACnB,qBAAO,CAACA,QAAO,KAAK,CAAA,OAAM,cAAc,GAAG,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,GAAGA,OAAM,IAAIA;AAAAA,YAAAA,CACnF;AACD,oBAAQ,IAAI;AAAA,UACb;AAAA,UACA;AAAA,QACD;AAAA,MAAA,CACA;AAAA,IACF;AAAA,IACA,CAAC,MAAM,GAAG;AAAA,EACX;AAEM,QAAA,eAAe,OAAO,QAAQ;AAC9B,QAAA,iBAAiBC,oBAAAA,kBAAkB,cAAc,KAAK;AAE5DF,QAAAA,UAAU,MAAM;AAAA,EAUhB,GAAG,EAAE;AAEL,MAAI,CAAC,cAAc;AACX,WAAA;AAAA,EAAA;AAEF,QAAA,aAAa,MAAM,cAAc,CAAA,OAAM,KAAK,IAAI,GAAG,KAAK,CAAC,CAAC;AAC1D,QAAA,SAAS,MAAM,cAAc,CAAM,OAAA,KAAK,IAAI,OAAO,SAAS,GAAG,KAAK,CAAC,CAAC;AACtE,QAAA,UAAU,MAAM,QAAQ,KAAK;AACnC,QAAM,UAAU,MAAM,UAAU,EAAE;AAClC,MAAI,CAAC,MAAM;AACH,WAACG,8BAAA,OAAAC,cAAA,eAAc,EAAA,YAAY,OAAO,QAAQ,QAAQ,MAAM,QAAQ,IAAI,GAAG,QAAvE,GAAA,QAAA,OAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,OAAyF,IAAA;AAAA,EAAA;AAGhG,SAAAD,8BAAA;AAAA,IAACE,aAAA;AAAA,IAAA;AAAA,MACA,cAAc;AAAA,MACd,oBAAoB,aAAa;AAAA,MACjC,mBAAmB;AAAA,MACnB,YAAY,OAAO;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IARD;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAA;AAAA,EASA;AAEF;;;"}
|
|
@@ -15,14 +15,8 @@ class ErrorBus {
|
|
|
15
15
|
const boxedError = { error, source };
|
|
16
16
|
if (!this.listener) {
|
|
17
17
|
this.queue.push(boxedError);
|
|
18
|
-
this.queue.push(boxedError);
|
|
19
|
-
this.queue.push(boxedError);
|
|
20
|
-
this.queue.push(boxedError);
|
|
21
18
|
} else {
|
|
22
19
|
this.listener(boxedError);
|
|
23
|
-
this.listener(boxedError);
|
|
24
|
-
this.listener(boxedError);
|
|
25
|
-
this.listener(boxedError);
|
|
26
20
|
}
|
|
27
21
|
}
|
|
28
22
|
register(listener) {
|
|
@@ -34,6 +28,21 @@ class ErrorBus {
|
|
|
34
28
|
};
|
|
35
29
|
}
|
|
36
30
|
}
|
|
31
|
+
const compareErrors = (a, b) => {
|
|
32
|
+
if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
if (!("stack" in a) || !("stack" in b) || !("message" in a) || !("message" in b)) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
if (a.message !== b.message) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
if (a.stack !== b.stack) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
};
|
|
37
46
|
function DevErrorManager(props) {
|
|
38
47
|
const [errors, setErrors] = useState([]);
|
|
39
48
|
const [errIndex, setErrorIndex] = useState(0);
|
|
@@ -43,7 +52,9 @@ function DevErrorManager(props) {
|
|
|
43
52
|
return props.bus.register((err) => {
|
|
44
53
|
setTimeout(
|
|
45
54
|
() => {
|
|
46
|
-
setErrors((errors2) =>
|
|
55
|
+
setErrors((errors2) => {
|
|
56
|
+
return !errors2.find((it) => compareErrors(it.error, err.error)) ? [err, ...errors2] : errors2;
|
|
57
|
+
});
|
|
47
58
|
setOpen(true);
|
|
48
59
|
},
|
|
49
60
|
0
|
|
@@ -54,16 +65,19 @@ function DevErrorManager(props) {
|
|
|
54
65
|
);
|
|
55
66
|
const currentError = errors[errIndex];
|
|
56
67
|
const processedError = useProcessedError(currentError?.error);
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
}, []);
|
|
57
70
|
if (!currentError) {
|
|
58
71
|
return null;
|
|
59
72
|
}
|
|
60
73
|
const onPrevious = () => setErrorIndex((it) => Math.max(0, it - 1));
|
|
61
74
|
const onNext = () => setErrorIndex((it) => Math.min(errors.length - 1, it + 1));
|
|
62
75
|
const onClose = () => setOpen(false);
|
|
76
|
+
const onClear = () => setErrors([]);
|
|
63
77
|
if (!open) {
|
|
64
|
-
return /* @__PURE__ */ jsxDEV(DevErrorBadge, { errorCount: errors.length, onOpen: () => setOpen(true) }, void 0, false, {
|
|
78
|
+
return /* @__PURE__ */ jsxDEV(DevErrorBadge, { errorCount: errors.length, onOpen: () => setOpen(true), onClear }, void 0, false, {
|
|
65
79
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/DevErrorManager.tsx",
|
|
66
|
-
lineNumber:
|
|
80
|
+
lineNumber: 94,
|
|
67
81
|
columnNumber: 10
|
|
68
82
|
}, this);
|
|
69
83
|
}
|
|
@@ -76,13 +90,14 @@ function DevErrorManager(props) {
|
|
|
76
90
|
errorCount: errors.length,
|
|
77
91
|
onPrevious,
|
|
78
92
|
onNext,
|
|
79
|
-
onClose
|
|
93
|
+
onClose,
|
|
94
|
+
onClear
|
|
80
95
|
},
|
|
81
96
|
void 0,
|
|
82
97
|
false,
|
|
83
98
|
{
|
|
84
99
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/DevErrorManager.tsx",
|
|
85
|
-
lineNumber:
|
|
100
|
+
lineNumber: 97,
|
|
86
101
|
columnNumber: 3
|
|
87
102
|
},
|
|
88
103
|
this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorManager.js","sources":["../../../../packages/react-devbar/src/DevErrorManager.tsx"],"sourcesContent":["import { DevErrorBadge, DevErrorList, ErrorType } from './ui/DevError'\nimport { useEffect, useState } from 'react'\nimport { useProcessedError } from './hooks/useParsedStacktrace'\n\nexport class ErrorBus {\n\tprivate queue: { error: ErrorType; source: string }[] = []\n\tprivate listener: null | ((error: { error: ErrorType; source: string }) => void) = null\n\n\tasync handleError(source: string, error: ErrorType) {\n\t\tconst boxedError = { error, source }\n\n\t\tif (!this.listener) {\n\t\t\tthis.queue.push(boxedError)\n\t\t
|
|
1
|
+
{"version":3,"file":"DevErrorManager.js","sources":["../../../../packages/react-devbar/src/DevErrorManager.tsx"],"sourcesContent":["import { DevErrorBadge, DevErrorList, ErrorType } from './ui/DevError'\nimport { useEffect, useState } from 'react'\nimport { useProcessedError } from './hooks/useParsedStacktrace'\n\nexport class ErrorBus {\n\tprivate queue: { error: ErrorType; source: string }[] = []\n\tprivate listener: null | ((error: { error: ErrorType; source: string }) => void) = null\n\n\tasync handleError(source: string, error: ErrorType) {\n\t\tconst boxedError = { error, source }\n\n\t\tif (!this.listener) {\n\t\t\tthis.queue.push(boxedError)\n\t\t} else {\n\t\t\tthis.listener(boxedError)\n\t\t}\n\t}\n\n\tregister(listener: (error: { error: ErrorType; source: string }) => void): () => void {\n\t\tthis.listener = listener\n\t\tthis.queue.forEach(listener)\n\t\tthis.queue = []\n\t\treturn () => {\n\t\t\tthis.listener = null\n\t\t}\n\t}\n}\n\nexport interface DevErrorManagerProps {\n\tbus: ErrorBus\n}\n\nconst compareErrors = (a: ErrorType, b: ErrorType) => {\n\tif (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {\n\t\treturn false\n\t}\n\tif (!('stack' in a) || !('stack' in b) || !('message' in a) || !('message' in b)) {\n\t\treturn false\n\t}\n\tif (a.message !== b.message) {\n\t\treturn false\n\t}\n\tif (a.stack !== b.stack) {\n\t\treturn false\n\t}\n\treturn true\n}\n\nexport function DevErrorManager(props: DevErrorManagerProps) {\n\tconst [errors, setErrors] = useState<{ error: ErrorType; source: string }[]>([])\n\tconst [errIndex, setErrorIndex] = useState(0)\n\tconst [open, setOpen] = useState(false)\n\n\tuseEffect(\n\t\t() => {\n\t\t\treturn props.bus.register(err => {\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() => {\n\t\t\t\t\t\tsetErrors(errors => {\n\t\t\t\t\t\t\treturn !errors.find(it => compareErrors(it.error, err.error)) ? [err, ...errors] : errors\n\t\t\t\t\t\t})\n\t\t\t\t\t\tsetOpen(true)\n\t\t\t\t\t},\n\t\t\t\t\t0,\n\t\t\t\t)\n\t\t\t})\n\t\t},\n\t\t[props.bus],\n\t)\n\n\tconst currentError = errors[errIndex]\n\tconst processedError = useProcessedError(currentError?.error)\n\n\tuseEffect(() => {\n\t\tif (import.meta.hot) {\n\t\t\tconst cb = () => {\n\t\t\t\tsetOpen(false)\n\t\t\t}\n\t\t\timport.meta.hot.on('vite:afterUpdate', cb)\n\t\t\treturn () => {\n\t\t\t\timport.meta.hot?.off('vite:afterUpdate', cb)\n\t\t\t}\n\t\t}\n\t}, [])\n\n\tif (!currentError) {\n\t\treturn null\n\t}\n\tconst onPrevious = () => setErrorIndex(it => Math.max(0, it - 1))\n\tconst onNext = () => setErrorIndex(it => Math.min(errors.length - 1, it + 1))\n\tconst onClose = () => setOpen(false)\n\tconst onClear = () => setErrors([])\n\tif (!open) {\n\t\treturn <DevErrorBadge errorCount={errors.length} onOpen={() => setOpen(true)} onClear={onClear} />\n\t}\n\treturn (\n\t\t<DevErrorList\n\t\t\tcurrentError={processedError}\n\t\t\tcurrentErrorSource={currentError.source}\n\t\t\tcurrentErrorIndex={errIndex}\n\t\t\terrorCount={errors.length}\n\t\t\tonPrevious={onPrevious}\n\t\t\tonNext={onNext}\n\t\t\tonClose={onClose}\n\t\t\tonClear={onClear}\n\t\t/>\n\t)\n}\n"],"names":["errors"],"mappings":";;;;;;;;AAIO,MAAM,SAAS;AAAA,EAAf,cAAA;AACN,kBAAA,MAAQ,SAAgD,EAAC;AACzD,kBAAA,MAAQ,YAA2E,IAAA;AAAA,EAAA;AAAA,EAEnF,MAAM,YAAY,QAAgB,OAAkB;AAC7C,UAAA,aAAa,EAAE,OAAO,OAAO;AAE/B,QAAA,CAAC,KAAK,UAAU;AACd,WAAA,MAAM,KAAK,UAAU;AAAA,IAAA,OACpB;AACN,WAAK,SAAS,UAAU;AAAA,IAAA;AAAA,EACzB;AAAA,EAGD,SAAS,UAA6E;AACrF,SAAK,WAAW;AACX,SAAA,MAAM,QAAQ,QAAQ;AAC3B,SAAK,QAAQ,CAAC;AACd,WAAO,MAAM;AACZ,WAAK,WAAW;AAAA,IACjB;AAAA,EAAA;AAEF;AAMA,MAAM,gBAAgB,CAAC,GAAc,MAAiB;AACjD,MAAA,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,MAAM;AACxE,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,WAAW,MAAM,EAAE,WAAW,MAAM,EAAE,aAAa,MAAM,EAAE,aAAa,IAAI;AAC1E,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,YAAY,EAAE,SAAS;AACrB,WAAA;AAAA,EAAA;AAEJ,MAAA,EAAE,UAAU,EAAE,OAAO;AACjB,WAAA;AAAA,EAAA;AAED,SAAA;AACR;AAEO,SAAS,gBAAgB,OAA6B;AAC5D,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAiD,CAAA,CAAE;AAC/E,QAAM,CAAC,UAAU,aAAa,IAAI,SAAS,CAAC;AAC5C,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAEtC;AAAA,IACC,MAAM;AACE,aAAA,MAAM,IAAI,SAAS,CAAO,QAAA;AAChC;AAAA,UACC,MAAM;AACL,sBAAU,CAAAA,YAAU;AACnB,qBAAO,CAACA,QAAO,KAAK,CAAA,OAAM,cAAc,GAAG,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,GAAGA,OAAM,IAAIA;AAAAA,YAAAA,CACnF;AACD,oBAAQ,IAAI;AAAA,UACb;AAAA,UACA;AAAA,QACD;AAAA,MAAA,CACA;AAAA,IACF;AAAA,IACA,CAAC,MAAM,GAAG;AAAA,EACX;AAEM,QAAA,eAAe,OAAO,QAAQ;AAC9B,QAAA,iBAAiB,kBAAkB,cAAc,KAAK;AAE5D,YAAU,MAAM;AAAA,EAUhB,GAAG,EAAE;AAEL,MAAI,CAAC,cAAc;AACX,WAAA;AAAA,EAAA;AAEF,QAAA,aAAa,MAAM,cAAc,CAAA,OAAM,KAAK,IAAI,GAAG,KAAK,CAAC,CAAC;AAC1D,QAAA,SAAS,MAAM,cAAc,CAAM,OAAA,KAAK,IAAI,OAAO,SAAS,GAAG,KAAK,CAAC,CAAC;AACtE,QAAA,UAAU,MAAM,QAAQ,KAAK;AACnC,QAAM,UAAU,MAAM,UAAU,EAAE;AAClC,MAAI,CAAC,MAAM;AACH,WAAC,uBAAA,eAAc,EAAA,YAAY,OAAO,QAAQ,QAAQ,MAAM,QAAQ,IAAI,GAAG,QAAvE,GAAA,QAAA,OAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,OAAyF,IAAA;AAAA,EAAA;AAGhG,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAc;AAAA,MACd,oBAAoB,aAAa;AAAA,MACjC,mBAAmB;AAAA,MACnB,YAAY,OAAO;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IARD;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAA;AAAA,EASA;AAEF;"}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxDevRuntime = require("react/jsx-dev-runtime");
|
|
4
4
|
const className = (cls) => cls ? `cui-devErrorBadge-${cls}` : "cui-devErrorBadge";
|
|
5
|
-
function DevErrorBadge({ errorCount, onOpen }) {
|
|
5
|
+
function DevErrorBadge({ errorCount, onOpen, onClear }) {
|
|
6
6
|
return /* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className(), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("a", { className: className("button"), onClick: onOpen, children: [
|
|
7
7
|
errorCount,
|
|
8
8
|
" ",
|
|
9
9
|
errorCount > 1 ? "errors" : "error"
|
|
10
10
|
] }, void 0, true, {
|
|
11
11
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx",
|
|
12
|
-
lineNumber:
|
|
12
|
+
lineNumber: 13,
|
|
13
13
|
columnNumber: 4
|
|
14
14
|
}, this) }, void 0, false, {
|
|
15
15
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx",
|
|
16
|
-
lineNumber:
|
|
16
|
+
lineNumber: 12,
|
|
17
17
|
columnNumber: 3
|
|
18
18
|
}, this);
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorBadge.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":["jsxDEV"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DevErrorBadge.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\tonClear: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":["jsxDEV"],"mappings":";;;AAOA,MAAM,YAAY,CAAC,QAAwB,MAAM,qBAAqB,GAAG,KAAK;AAEvE,SAAS,cAAc,EAAE,YAAY,QAAQ,WAA+B;AAClF,SACEA,8BAAAA,OAAA,OAAA,EAAI,WAAW,UAAA,GACf,UAAAA,8BAAA,OAAC,KAAE,EAAA,WAAW,UAAU,QAAQ,GAAG,SAAS,QAC1C,UAAA;AAAA,IAAA;AAAA,IAAW;AAAA,IAAE,aAAa,IAAI,WAAW;AAAA,EAAA,KAD3C,QAAA,MAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAA,IAEA,EAHD,GAAA,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAIA,GAAA,IAAA;AAEF;;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
2
2
|
const className = (cls) => cls ? `cui-devErrorBadge-${cls}` : "cui-devErrorBadge";
|
|
3
|
-
function DevErrorBadge({ errorCount, onOpen }) {
|
|
3
|
+
function DevErrorBadge({ errorCount, onOpen, onClear }) {
|
|
4
4
|
return /* @__PURE__ */ jsxDEV("div", { className: className(), children: /* @__PURE__ */ jsxDEV("a", { className: className("button"), onClick: onOpen, children: [
|
|
5
5
|
errorCount,
|
|
6
6
|
" ",
|
|
7
7
|
errorCount > 1 ? "errors" : "error"
|
|
8
8
|
] }, void 0, true, {
|
|
9
9
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx",
|
|
10
|
-
lineNumber:
|
|
10
|
+
lineNumber: 13,
|
|
11
11
|
columnNumber: 4
|
|
12
12
|
}, this) }, void 0, false, {
|
|
13
13
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx",
|
|
14
|
-
lineNumber:
|
|
14
|
+
lineNumber: 12,
|
|
15
15
|
columnNumber: 3
|
|
16
16
|
}, this);
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorBadge.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DevErrorBadge.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\tonClear: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";AAOA,MAAM,YAAY,CAAC,QAAwB,MAAM,qBAAqB,GAAG,KAAK;AAEvE,SAAS,cAAc,EAAE,YAAY,QAAQ,WAA+B;AAClF,SACE,uBAAA,OAAA,EAAI,WAAW,UAAA,GACf,UAAA,uBAAC,KAAE,EAAA,WAAW,UAAU,QAAQ,GAAG,SAAS,QAC1C,UAAA;AAAA,IAAA;AAAA,IAAW;AAAA,IAAE,aAAa,IAAI,WAAW;AAAA,EAAA,KAD3C,QAAA,MAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAAA,GAAA,IAEA,EAHD,GAAA,QAAA,OAAA;AAAA,IAAA,UAAA;AAAA,IAAA,YAAA;AAAA,IAAA,cAAA;AAAA,EAIA,GAAA,IAAA;AAEF;"}
|
|
@@ -11,7 +11,8 @@ function DevErrorList({
|
|
|
11
11
|
errorCount,
|
|
12
12
|
onClose,
|
|
13
13
|
onNext,
|
|
14
|
-
onPrevious
|
|
14
|
+
onPrevious,
|
|
15
|
+
onClear
|
|
15
16
|
}) {
|
|
16
17
|
React.useEffect(() => {
|
|
17
18
|
document.body.classList.add("cui-devError-body");
|
|
@@ -23,7 +24,7 @@ function DevErrorList({
|
|
|
23
24
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("bar"), children: [
|
|
24
25
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("errorSource"), children: currentErrorSource }, void 0, false, {
|
|
25
26
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
26
|
-
lineNumber:
|
|
27
|
+
lineNumber: 39,
|
|
27
28
|
columnNumber: 6
|
|
28
29
|
}, this),
|
|
29
30
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("actions"), children: [
|
|
@@ -35,65 +36,74 @@ function DevErrorList({
|
|
|
35
36
|
errorCount
|
|
36
37
|
] }, void 0, true, {
|
|
37
38
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
38
|
-
lineNumber:
|
|
39
|
+
lineNumber: 43,
|
|
39
40
|
columnNumber: 9
|
|
40
41
|
}, this),
|
|
41
42
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("switcherButtons"), children: [
|
|
42
43
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("button", { className: className("switcherButton"), onClick: onPrevious, children: "←" }, void 0, false, {
|
|
43
44
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
44
|
-
lineNumber:
|
|
45
|
+
lineNumber: 47,
|
|
45
46
|
columnNumber: 10
|
|
46
47
|
}, this),
|
|
47
48
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("button", { className: className("switcherButton"), onClick: onNext, children: "→" }, void 0, false, {
|
|
48
49
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
49
|
-
lineNumber:
|
|
50
|
+
lineNumber: 50,
|
|
50
51
|
columnNumber: 10
|
|
51
52
|
}, this)
|
|
52
53
|
] }, void 0, true, {
|
|
53
54
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
54
|
-
lineNumber:
|
|
55
|
+
lineNumber: 46,
|
|
55
56
|
columnNumber: 9
|
|
56
57
|
}, this)
|
|
57
58
|
] }, void 0, true, {
|
|
58
59
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
59
|
-
lineNumber:
|
|
60
|
+
lineNumber: 42,
|
|
60
61
|
columnNumber: 8
|
|
61
62
|
}, this) : null,
|
|
62
63
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("close"), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("button", { className: className("closeButton"), onClick: onClose, children: "✕" }, void 0, false, {
|
|
63
64
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
64
|
-
lineNumber:
|
|
65
|
+
lineNumber: 57,
|
|
65
66
|
columnNumber: 8
|
|
66
67
|
}, this) }, void 0, false, {
|
|
67
68
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
68
|
-
lineNumber:
|
|
69
|
+
lineNumber: 56,
|
|
69
70
|
columnNumber: 7
|
|
70
71
|
}, this)
|
|
71
72
|
] }, void 0, true, {
|
|
72
73
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
73
|
-
lineNumber:
|
|
74
|
+
lineNumber: 40,
|
|
75
|
+
columnNumber: 6
|
|
76
|
+
}, this),
|
|
77
|
+
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("close"), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV("button", { className: className("closeButton"), onClick: onClear, children: "Clear errors" }, void 0, false, {
|
|
78
|
+
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
79
|
+
lineNumber: 63,
|
|
80
|
+
columnNumber: 7
|
|
81
|
+
}, this) }, void 0, false, {
|
|
82
|
+
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
83
|
+
lineNumber: 62,
|
|
74
84
|
columnNumber: 6
|
|
75
85
|
}, this)
|
|
76
86
|
] }, void 0, true, {
|
|
77
87
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
78
|
-
lineNumber:
|
|
88
|
+
lineNumber: 38,
|
|
79
89
|
columnNumber: 5
|
|
80
90
|
}, this),
|
|
81
91
|
/* @__PURE__ */ jsxDevRuntime.jsxDEV("div", { className: className("content"), children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(DevErrorInner.DevErrorInner, { error: currentError }, void 0, false, {
|
|
82
92
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
83
|
-
lineNumber:
|
|
93
|
+
lineNumber: 69,
|
|
84
94
|
columnNumber: 6
|
|
85
95
|
}, this) }, void 0, false, {
|
|
86
96
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
87
|
-
lineNumber:
|
|
97
|
+
lineNumber: 68,
|
|
88
98
|
columnNumber: 5
|
|
89
99
|
}, this)
|
|
90
100
|
] }, void 0, true, {
|
|
91
101
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
92
|
-
lineNumber:
|
|
102
|
+
lineNumber: 37,
|
|
93
103
|
columnNumber: 4
|
|
94
104
|
}, this) }, void 0, false, {
|
|
95
105
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
96
|
-
lineNumber:
|
|
106
|
+
lineNumber: 36,
|
|
97
107
|
columnNumber: 3
|
|
98
108
|
}, this);
|
|
99
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorList.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["useEffect","jsxDEV","DevErrorInner"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DevErrorList.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n\tonClear: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n\tonClear,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClear}>\n\t\t\t\t\t\t\tClear errors\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["useEffect","jsxDEV","DevErrorInner"],"mappings":"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"}
|
|
@@ -9,7 +9,8 @@ function DevErrorList({
|
|
|
9
9
|
errorCount,
|
|
10
10
|
onClose,
|
|
11
11
|
onNext,
|
|
12
|
-
onPrevious
|
|
12
|
+
onPrevious,
|
|
13
|
+
onClear
|
|
13
14
|
}) {
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
document.body.classList.add("cui-devError-body");
|
|
@@ -21,7 +22,7 @@ function DevErrorList({
|
|
|
21
22
|
/* @__PURE__ */ jsxDEV("div", { className: className("bar"), children: [
|
|
22
23
|
/* @__PURE__ */ jsxDEV("div", { className: className("errorSource"), children: currentErrorSource }, void 0, false, {
|
|
23
24
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
24
|
-
lineNumber:
|
|
25
|
+
lineNumber: 39,
|
|
25
26
|
columnNumber: 6
|
|
26
27
|
}, this),
|
|
27
28
|
/* @__PURE__ */ jsxDEV("div", { className: className("actions"), children: [
|
|
@@ -33,65 +34,74 @@ function DevErrorList({
|
|
|
33
34
|
errorCount
|
|
34
35
|
] }, void 0, true, {
|
|
35
36
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
36
|
-
lineNumber:
|
|
37
|
+
lineNumber: 43,
|
|
37
38
|
columnNumber: 9
|
|
38
39
|
}, this),
|
|
39
40
|
/* @__PURE__ */ jsxDEV("div", { className: className("switcherButtons"), children: [
|
|
40
41
|
/* @__PURE__ */ jsxDEV("button", { className: className("switcherButton"), onClick: onPrevious, children: "←" }, void 0, false, {
|
|
41
42
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
42
|
-
lineNumber:
|
|
43
|
+
lineNumber: 47,
|
|
43
44
|
columnNumber: 10
|
|
44
45
|
}, this),
|
|
45
46
|
/* @__PURE__ */ jsxDEV("button", { className: className("switcherButton"), onClick: onNext, children: "→" }, void 0, false, {
|
|
46
47
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
47
|
-
lineNumber:
|
|
48
|
+
lineNumber: 50,
|
|
48
49
|
columnNumber: 10
|
|
49
50
|
}, this)
|
|
50
51
|
] }, void 0, true, {
|
|
51
52
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
52
|
-
lineNumber:
|
|
53
|
+
lineNumber: 46,
|
|
53
54
|
columnNumber: 9
|
|
54
55
|
}, this)
|
|
55
56
|
] }, void 0, true, {
|
|
56
57
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
57
|
-
lineNumber:
|
|
58
|
+
lineNumber: 42,
|
|
58
59
|
columnNumber: 8
|
|
59
60
|
}, this) : null,
|
|
60
61
|
/* @__PURE__ */ jsxDEV("div", { className: className("close"), children: /* @__PURE__ */ jsxDEV("button", { className: className("closeButton"), onClick: onClose, children: "✕" }, void 0, false, {
|
|
61
62
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
62
|
-
lineNumber:
|
|
63
|
+
lineNumber: 57,
|
|
63
64
|
columnNumber: 8
|
|
64
65
|
}, this) }, void 0, false, {
|
|
65
66
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
66
|
-
lineNumber:
|
|
67
|
+
lineNumber: 56,
|
|
67
68
|
columnNumber: 7
|
|
68
69
|
}, this)
|
|
69
70
|
] }, void 0, true, {
|
|
70
71
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
71
|
-
lineNumber:
|
|
72
|
+
lineNumber: 40,
|
|
73
|
+
columnNumber: 6
|
|
74
|
+
}, this),
|
|
75
|
+
/* @__PURE__ */ jsxDEV("div", { className: className("close"), children: /* @__PURE__ */ jsxDEV("button", { className: className("closeButton"), onClick: onClear, children: "Clear errors" }, void 0, false, {
|
|
76
|
+
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
77
|
+
lineNumber: 63,
|
|
78
|
+
columnNumber: 7
|
|
79
|
+
}, this) }, void 0, false, {
|
|
80
|
+
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
81
|
+
lineNumber: 62,
|
|
72
82
|
columnNumber: 6
|
|
73
83
|
}, this)
|
|
74
84
|
] }, void 0, true, {
|
|
75
85
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
76
|
-
lineNumber:
|
|
86
|
+
lineNumber: 38,
|
|
77
87
|
columnNumber: 5
|
|
78
88
|
}, this),
|
|
79
89
|
/* @__PURE__ */ jsxDEV("div", { className: className("content"), children: /* @__PURE__ */ jsxDEV(DevErrorInner, { error: currentError }, void 0, false, {
|
|
80
90
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
81
|
-
lineNumber:
|
|
91
|
+
lineNumber: 69,
|
|
82
92
|
columnNumber: 6
|
|
83
93
|
}, this) }, void 0, false, {
|
|
84
94
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
85
|
-
lineNumber:
|
|
95
|
+
lineNumber: 68,
|
|
86
96
|
columnNumber: 5
|
|
87
97
|
}, this)
|
|
88
98
|
] }, void 0, true, {
|
|
89
99
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
90
|
-
lineNumber:
|
|
100
|
+
lineNumber: 37,
|
|
91
101
|
columnNumber: 4
|
|
92
102
|
}, this) }, void 0, false, {
|
|
93
103
|
fileName: "/home/runner/work/contember/contember/packages/react-devbar/src/ui/DevError/DevErrorList.tsx",
|
|
94
|
-
lineNumber:
|
|
104
|
+
lineNumber: 36,
|
|
95
105
|
columnNumber: 3
|
|
96
106
|
}, this);
|
|
97
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorList.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DevErrorList.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n\tonClear: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n\tonClear,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClear}>\n\t\t\t\t\t\t\tClear errors\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const className = (cls) => cls ? `cui-devErrorBadge-${cls}` : "cui-devErrorBadge";
|
|
5
|
-
function DevErrorBadge({ errorCount, onOpen }) {
|
|
5
|
+
function DevErrorBadge({ errorCount, onOpen, onClear }) {
|
|
6
6
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: className(), children: /* @__PURE__ */ jsxRuntime.jsxs("a", { className: className("button"), onClick: onOpen, children: [
|
|
7
7
|
errorCount,
|
|
8
8
|
" ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorBadge.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":["jsx","jsxs"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DevErrorBadge.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\tonClear: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":["jsx","jsxs"],"mappings":";;;AAOA,MAAM,YAAY,CAAC,QAAwB,MAAM,qBAAqB,GAAG,KAAK;AAEvE,SAAS,cAAc,EAAE,YAAY,QAAQ,WAA+B;AAClF,SACEA,2BAAAA,IAAA,OAAA,EAAI,WAAW,UAAA,GACf,UAAAC,2BAAA,KAAC,KAAE,EAAA,WAAW,UAAU,QAAQ,GAAG,SAAS,QAC1C,UAAA;AAAA,IAAA;AAAA,IAAW;AAAA,IAAE,aAAa,IAAI,WAAW;AAAA,EAAA,EAAA,CAC3C,EACD,CAAA;AAEF;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
const className = (cls) => cls ? `cui-devErrorBadge-${cls}` : "cui-devErrorBadge";
|
|
3
|
-
function DevErrorBadge({ errorCount, onOpen }) {
|
|
3
|
+
function DevErrorBadge({ errorCount, onOpen, onClear }) {
|
|
4
4
|
return /* @__PURE__ */ jsx("div", { className: className(), children: /* @__PURE__ */ jsxs("a", { className: className("button"), onClick: onOpen, children: [
|
|
5
5
|
errorCount,
|
|
6
6
|
" ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorBadge.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DevErrorBadge.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorBadge.tsx"],"sourcesContent":["export interface DevErrorBadgeProps {\n\tonOpen: () => void\n\tonClear: () => void\n\terrorCount: number\n}\n\n\nconst className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'\n\nexport function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps) {\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<a className={className('button')} onClick={onOpen}>\n\t\t\t\t{errorCount} {errorCount > 1 ? 'errors' : 'error'}\n\t\t\t</a>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";AAOA,MAAM,YAAY,CAAC,QAAwB,MAAM,qBAAqB,GAAG,KAAK;AAEvE,SAAS,cAAc,EAAE,YAAY,QAAQ,WAA+B;AAClF,SACE,oBAAA,OAAA,EAAI,WAAW,UAAA,GACf,UAAA,qBAAC,KAAE,EAAA,WAAW,UAAU,QAAQ,GAAG,SAAS,QAC1C,UAAA;AAAA,IAAA;AAAA,IAAW;AAAA,IAAE,aAAa,IAAI,WAAW;AAAA,EAAA,EAAA,CAC3C,EACD,CAAA;AAEF;"}
|
|
@@ -11,7 +11,8 @@ function DevErrorList({
|
|
|
11
11
|
errorCount,
|
|
12
12
|
onClose,
|
|
13
13
|
onNext,
|
|
14
|
-
onPrevious
|
|
14
|
+
onPrevious,
|
|
15
|
+
onClear
|
|
15
16
|
}) {
|
|
16
17
|
React.useEffect(() => {
|
|
17
18
|
document.body.classList.add("cui-devError-body");
|
|
@@ -36,7 +37,8 @@ function DevErrorList({
|
|
|
36
37
|
] })
|
|
37
38
|
] }) : null,
|
|
38
39
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: className("close"), children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: className("closeButton"), onClick: onClose, children: "✕" }) })
|
|
39
|
-
] })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: className("close"), children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: className("closeButton"), onClick: onClear, children: "Clear errors" }) })
|
|
40
42
|
] }),
|
|
41
43
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: className("content"), children: /* @__PURE__ */ jsxRuntime.jsx(DevErrorInner.DevErrorInner, { error: currentError }) })
|
|
42
44
|
] }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorList.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["useEffect","jsx","jsxs","DevErrorInner"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"DevErrorList.cjs","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n\tonClear: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n\tonClear,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClear}>\n\t\t\t\t\t\t\tClear errors\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["useEffect","jsx","jsxs","DevErrorInner"],"mappings":";;;;;AAeA,MAAM,YAAY,CAAC,QAAwB,MAAM,gBAAgB,GAAG,KAAK;AAElE,SAAS,aAAa;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAsB;AACrBA,QAAAA,UAAU,MAAM;AACN,aAAA,KAAK,UAAU,IAAI,mBAAmB;AAC/C,WAAO,MAAM;AACH,eAAA,KAAK,UAAU,OAAO,mBAAmB;AAAA,IACnD;AAAA,EACD,GAAG,EAAE;AAGJ,SAAAC,2BAAA,IAAC,OAAI,EAAA,WAAW,UAAU,GACzB,0CAAC,OAAI,EAAA,WAAW,UAAU,IAAI,GAC7B,UAAA;AAAA,IAAAC,2BAAA,KAAC,OAAI,EAAA,WAAW,UAAU,KAAK,GAC9B,UAAA;AAAA,MAAAD,+BAAC,OAAI,EAAA,WAAW,UAAU,aAAa,GAAI,UAAmB,oBAAA;AAAA,MAC7DC,2BAAA,KAAA,OAAA,EAAI,WAAW,UAAU,SAAS,GACjC,UAAA;AAAA,QAAA,aAAa,IACZA,2BAAAA,KAAA,OAAA,EAAI,WAAW,UAAU,UAAU,GACnC,UAAA;AAAA,UAAAA,2BAAA,KAAC,KAAE,EAAA,WAAW,UAAU,YAAY,GAAG,UAAA;AAAA,YAAA;AAAA,YAC/B,oBAAoB;AAAA,YAAE;AAAA,YAAK;AAAA,UAAA,GACnC;AAAA,UACCA,2BAAA,KAAA,OAAA,EAAI,WAAW,UAAU,iBAAiB,GAC1C,UAAA;AAAA,YAAAD,2BAAAA,IAAC,YAAO,WAAW,UAAU,gBAAgB,GAAG,SAAS,YAAY,UAErE,KAAA;AAAA,YACAA,+BAAC,YAAO,WAAW,UAAU,gBAAgB,GAAG,SAAS,QAAQ,UAEjE,IAAA,CAAA;AAAA,UAAA,EACD,CAAA;AAAA,QAAA,EAAA,CACD,IACG;AAAA,QACHA,2BAAA,IAAA,OAAA,EAAI,WAAW,UAAU,OAAO,GAChC,UAAAA,+BAAC,UAAO,EAAA,WAAW,UAAU,aAAa,GAAG,SAAS,SAAS,eAE/D,EACD,CAAA;AAAA,MAAA,GACD;AAAA,MACCA,2BAAA,IAAA,OAAA,EAAI,WAAW,UAAU,OAAO,GAChC,UAAAA,+BAAC,UAAO,EAAA,WAAW,UAAU,aAAa,GAAG,SAAS,SAAS,0BAE/D,EACD,CAAA;AAAA,IAAA,GACD;AAAA,IACAA,2BAAAA,IAAC,OAAI,EAAA,WAAW,UAAU,SAAS,GAClC,UAACA,2BAAAA,IAAAE,cAAAA,eAAA,EAAc,OAAO,aAAc,CAAA,EACrC,CAAA;AAAA,EAAA,EAAA,CACD,EACD,CAAA;AAEF;;"}
|
|
@@ -9,7 +9,8 @@ function DevErrorList({
|
|
|
9
9
|
errorCount,
|
|
10
10
|
onClose,
|
|
11
11
|
onNext,
|
|
12
|
-
onPrevious
|
|
12
|
+
onPrevious,
|
|
13
|
+
onClear
|
|
13
14
|
}) {
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
document.body.classList.add("cui-devError-body");
|
|
@@ -34,7 +35,8 @@ function DevErrorList({
|
|
|
34
35
|
] })
|
|
35
36
|
] }) : null,
|
|
36
37
|
/* @__PURE__ */ jsx("div", { className: className("close"), children: /* @__PURE__ */ jsx("button", { className: className("closeButton"), onClick: onClose, children: "✕" }) })
|
|
37
|
-
] })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ jsx("div", { className: className("close"), children: /* @__PURE__ */ jsx("button", { className: className("closeButton"), onClick: onClear, children: "Clear errors" }) })
|
|
38
40
|
] }),
|
|
39
41
|
/* @__PURE__ */ jsx("div", { className: className("content"), children: /* @__PURE__ */ jsx(DevErrorInner, { error: currentError }) })
|
|
40
42
|
] }) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorList.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"DevErrorList.js","sources":["../../../../../../packages/react-devbar/src/ui/DevError/DevErrorList.tsx"],"sourcesContent":["import { DevErrorInner } from './DevErrorInner'\nimport { ProcessedError } from './types'\nimport { useEffect } from 'react'\n\nexport interface DevErrorListProps {\n\tcurrentError: ProcessedError\n\tcurrentErrorSource: string\n\tcurrentErrorIndex: number\n\terrorCount: number\n\tonPrevious: () => void\n\tonNext: () => void\n\tonClose: () => void\n\tonClear: () => void\n}\n\nconst className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'\n\nexport function DevErrorList({\n\tcurrentError,\n\tcurrentErrorIndex,\n\tcurrentErrorSource,\n\terrorCount,\n\tonClose,\n\tonNext,\n\tonPrevious,\n\tonClear,\n}: DevErrorListProps) {\n\tuseEffect(() => {\n\t\tdocument.body.classList.add('cui-devError-body')\n\t\treturn () => {\n\t\t\tdocument.body.classList.remove('cui-devError-body')\n\t\t}\n\t}, [])\n\n\treturn (\n\t\t<div className={className()}>\n\t\t\t<div className={className('in')}>\n\t\t\t\t<div className={className('bar')}>\n\t\t\t\t\t<div className={className('errorSource')}>{currentErrorSource}</div>\n\t\t\t\t\t<div className={className('actions')}>\n\t\t\t\t\t\t{errorCount > 1 ? (\n\t\t\t\t\t\t\t<div className={className('switcher')}>\n\t\t\t\t\t\t\t\t<p className={className('errorCount')}>\n\t\t\t\t\t\t\t\t\tError {currentErrorIndex + 1} of {errorCount}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div className={className('switcherButtons')}>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onPrevious}>\n\t\t\t\t\t\t\t\t\t\t←\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<button className={className('switcherButton')} onClick={onNext}>\n\t\t\t\t\t\t\t\t\t\t→\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClose}>\n\t\t\t\t\t\t\t\t✕\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={className('close')}>\n\t\t\t\t\t\t<button className={className('closeButton')} onClick={onClear}>\n\t\t\t\t\t\t\tClear errors\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div className={className('content')}>\n\t\t\t\t\t<DevErrorInner error={currentError} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;AAeA,MAAM,YAAY,CAAC,QAAwB,MAAM,gBAAgB,GAAG,KAAK;AAElE,SAAS,aAAa;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAsB;AACrB,YAAU,MAAM;AACN,aAAA,KAAK,UAAU,IAAI,mBAAmB;AAC/C,WAAO,MAAM;AACH,eAAA,KAAK,UAAU,OAAO,mBAAmB;AAAA,IACnD;AAAA,EACD,GAAG,EAAE;AAGJ,SAAA,oBAAC,OAAI,EAAA,WAAW,UAAU,GACzB,+BAAC,OAAI,EAAA,WAAW,UAAU,IAAI,GAC7B,UAAA;AAAA,IAAA,qBAAC,OAAI,EAAA,WAAW,UAAU,KAAK,GAC9B,UAAA;AAAA,MAAA,oBAAC,OAAI,EAAA,WAAW,UAAU,aAAa,GAAI,UAAmB,oBAAA;AAAA,MAC7D,qBAAA,OAAA,EAAI,WAAW,UAAU,SAAS,GACjC,UAAA;AAAA,QAAA,aAAa,IACZ,qBAAA,OAAA,EAAI,WAAW,UAAU,UAAU,GACnC,UAAA;AAAA,UAAA,qBAAC,KAAE,EAAA,WAAW,UAAU,YAAY,GAAG,UAAA;AAAA,YAAA;AAAA,YAC/B,oBAAoB;AAAA,YAAE;AAAA,YAAK;AAAA,UAAA,GACnC;AAAA,UACC,qBAAA,OAAA,EAAI,WAAW,UAAU,iBAAiB,GAC1C,UAAA;AAAA,YAAA,oBAAC,YAAO,WAAW,UAAU,gBAAgB,GAAG,SAAS,YAAY,UAErE,KAAA;AAAA,YACA,oBAAC,YAAO,WAAW,UAAU,gBAAgB,GAAG,SAAS,QAAQ,UAEjE,IAAA,CAAA;AAAA,UAAA,EACD,CAAA;AAAA,QAAA,EAAA,CACD,IACG;AAAA,QACH,oBAAA,OAAA,EAAI,WAAW,UAAU,OAAO,GAChC,UAAA,oBAAC,UAAO,EAAA,WAAW,UAAU,aAAa,GAAG,SAAS,SAAS,eAE/D,EACD,CAAA;AAAA,MAAA,GACD;AAAA,MACC,oBAAA,OAAA,EAAI,WAAW,UAAU,OAAO,GAChC,UAAA,oBAAC,UAAO,EAAA,WAAW,UAAU,aAAa,GAAG,SAAS,SAAS,0BAE/D,EACD,CAAA;AAAA,IAAA,GACD;AAAA,IACA,oBAAC,OAAI,EAAA,WAAW,UAAU,SAAS,GAClC,UAAC,oBAAA,eAAA,EAAc,OAAO,aAAc,CAAA,EACrC,CAAA;AAAA,EAAA,EAAA,CACD,EACD,CAAA;AAEF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorManager.d.ts","sourceRoot":"","sources":["../../src/DevErrorManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,eAAe,CAAA;AAItE,qBAAa,QAAQ;IACpB,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,QAAQ,CAAuE;IAEjF,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"DevErrorManager.d.ts","sourceRoot":"","sources":["../../src/DevErrorManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,eAAe,CAAA;AAItE,qBAAa,QAAQ;IACpB,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,QAAQ,CAAuE;IAEjF,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS;IAUlD,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,MAAM,IAAI;CAQrF;AAED,MAAM,WAAW,oBAAoB;IACpC,GAAG,EAAE,QAAQ,CAAA;CACb;AAkBD,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,kDA2D1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/ui/DevError/types.ts","../../src/ui/DevError/StackTrace.tsx","../../src/ui/DevError/DevErrorInner.tsx","../../src/ui/DevError/DevError.tsx","../../src/ui/DevError/DevErrorList.tsx","../../src/ui/DevError/DevErrorBadge.tsx","../../src/ui/DevError/index.ts","../../../../node_modules/stacktracey/stacktracey.d.ts","../../src/hooks/useParsedStacktrace.ts","../../src/DevErrorManager.tsx","../../../../node_modules/@types/react-dom/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../src/errorHandling.tsx","../../../react-utils/dist/types/context/createRequiredContext.d.ts","../../../react-utils/dist/types/context/createContext.d.ts","../../../react-utils/dist/types/context/index.d.ts","../../../react-utils/dist/types/debug-context/Types.d.ts","../../../react-utils/dist/types/debug-context/Constants.d.ts","../../../react-utils/dist/types/debug-context/Context.d.ts","../../../react-utils/dist/types/debug-context/index.d.ts","../../../react-utils/dist/types/hooks/unwrapRefValue.d.ts","../../../react-utils/dist/types/hooks/useAbortController.d.ts","../../../react-utils/dist/types/hooks/useArrayMapMemo.d.ts","../../../react-utils/dist/types/hooks/useAutoHeightTextArea.d.ts","../../../react-utils/dist/types/hooks/useChildrenAsLabel.d.ts","../../../react-utils/dist/types/hooks/useComposeRef.d.ts","../../../react-utils/dist/types/hooks/useConstantLengthInvariant.d.ts","../../../react-utils/dist/types/hooks/useConstantValueInvariant.d.ts","../../../react-utils/dist/types/hooks/useDebounce.d.ts","../../../react-utils/dist/types/hooks/useDebounceCallback.d.ts","../../../react-utils/dist/types/hooks/useDocumentTitle.d.ts","../../../react-utils/dist/types/hooks/useExpectSameValueReference.d.ts","../../../react-utils/dist/types/hooks/useForceRender.d.ts","../../../react-utils/dist/types/hooks/useId.d.ts","../../../react-utils/dist/types/hooks/useIsMounted.d.ts","../../../react-utils/dist/types/hooks/useObjectMemo.d.ts","../../../react-utils/dist/types/hooks/useOnElementClickOutsideCallback.d.ts","../../../react-utils/dist/types/hooks/useOnElementMouseEnterDelayedCallback.d.ts","../../../react-utils/dist/types/hooks/useOnElementResize.d.ts","../../../react-utils/dist/types/hooks/useOnWindowResize.d.ts","../../../react-utils/dist/types/hooks/usePreviousValue.d.ts","../../../react-utils/dist/types/types/PropsWithRequiredChildren.d.ts","../../../react-utils/dist/types/types/Serializable.d.ts","../../../react-utils/dist/types/types/index.d.ts","../../../react-utils/dist/types/hooks/useStoredState.d.ts","../../../react-utils/dist/types/hooks/useUpdatedRef.d.ts","../../../react-utils/dist/types/hooks/useWindowSize.d.ts","../../../react-utils/dist/types/hooks/index.d.ts","../../../react-utils/dist/types/referentiallyStable/emptyArray.d.ts","../../../react-utils/dist/types/referentiallyStable/emptyObject.d.ts","../../../react-utils/dist/types/referentiallyStable/identityFunction.d.ts","../../../react-utils/dist/types/referentiallyStable/noop.d.ts","../../../react-utils/dist/types/referentiallyStable/returnFalse.d.ts","../../../react-utils/dist/types/referentiallyStable/returnTrue.d.ts","../../../react-utils/dist/types/referentiallyStable/useReferentiallyStableCallback.d.ts","../../../react-utils/dist/types/referentiallyStable/index.d.ts","../../../react-utils/dist/types/index.d.ts","../../../utilities/dist/types/assert-types/assertNever.d.ts","../../../utilities/dist/types/assert-types/index.d.ts","../../../utilities/dist/types/deprecate/types.d.ts","../../../utilities/dist/types/deprecate/deprecate.d.ts","../../../utilities/dist/types/deprecate/index.d.ts","../../../utilities/dist/types/dom/dataAttribute.d.ts","../../../utilities/dist/types/dom/svgSizeProps.d.ts","../../../utilities/dist/types/dom/index.d.ts","../../../utilities/dist/types/structures/BijectiveIndexedMap.d.ts","../../../utilities/dist/types/structures/LRUCache.d.ts","../../../utilities/dist/types/structures/WeakIdCache.d.ts","../../../utilities/dist/types/structures/index.d.ts","../../../utilities/dist/types/index.d.ts","../../src/ui/DevBar/DevBar.tsx","../../src/ui/DevBar/index.tsx","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileIdsList":[[78],[75,76,77],[157],[153],[154],[155,156],[78,79,86,88],[78,79,89,90,91],[78,79,86,87],[79,86,88,92,151],[78,79,136,149],[79,150],[79,82],[79],[79,80,81],[78,79,80,82],[79,80],[79,80,83,84,85],[93,94],[96],[78,96],[96,97,98],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,124,125,126],[100],[123],[95,99,123,127,135],[128,129,130,131,132,133,134],[121,122],[137],[139],[139,140],[142,143],[138,141,144,148],[145,146,147]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"65ff5a0aefd7817a03c1ad04fee85c9cdd3ec415cc3c9efec85d8008d4d5e4ee","impliedFormat":1},{"version":"aea201321e7df78b294c9c39c61503ed81fb73b1b1703240013b557dfa25b016","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"ae31916b0bd678f2cdd0b0f29b2d7b2e75379d93ffa02d14ed7afe97c4ac58d3","signature":"2cb6d00f40af1186ad22043591ab58eb7cdccb3e51a016dcf90179bab0423bd4"},{"version":"54cdd124184fba232b51cedf5b098d60d7536c4ea256912082adc491c16840ee","signature":"77dd2fbe255a1ca2931697cb0ebe5a73c03331e2398bc098cbb6ebb1ee9455c7"},{"version":"c2adc924710bbe92fc862254d8b87c1b2f32590fc0f81618be7c0308f66299ab","signature":"76846a373991aba49458f1be13be0860d1c5eadba8c9b570a4c47d78d35210e6"},{"version":"e9335dd152eb24f1c39a41f2e37d8ed4421ae84a7bf52a664f615cfb1ecd6182","signature":"f75e50cd4c64ffd68126a7a16fce5e53cbcdc49a89a88c75f563c74ff0d8a333"},{"version":"6f284d598b736a1f85a38676c588f5c318fccb96523081b5feab048a64c43a41","signature":"1f94db68f98285466d3e4b330bc83133710bee6d4eff1afea7a838e96ef2b501"},{"version":"556f033341933b549fd3dab3919b01e77e0ac998fc6670be48de86e311c7dc49","signature":"0e89f6a9db029b656e683334f94599f2feb5331dde4390681c4e96e66ed81c9c"},{"version":"0d20ec7155f27813aeef59264790f3da6d8af752acd6f5be6e35ed1e25697fb7","signature":"011ef1c7bf62f61d9cc5ab3dc0edd33681bbbd43e60476bb44d77511fa232acd"},{"version":"8b93ed03cbd9acd4190ea0e38011512aa543df1a27b773fdcf06199e56db9131","impliedFormat":1},{"version":"b38cf7352e8bc3254331756ca2e368668a7ea51619cd388b9a5f3c2bb9dd960e","signature":"48bbeda480e9b3f9e294c92c8f3e1f2a5d2712eded316ad7f15c715c054d1486"},{"version":"15ccf65e25e72893d403b4eed0a1c6d6d660bbfb3fe78c4c0753f4f75c4c620b","signature":"1f14e4ff84a34c822a372407b967f2469aab82242c498afda31811fca9096f5e"},{"version":"17ed71200119e86ccef2d96b73b02ce8854b76ad6bd21b5021d4269bec527b5f","impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"64f6d042f208799549116623dc755cb36d69464491d2b363b1c703775e6b590f","signature":"35f89c4e27105a3779e9170a645aa01a610708800f93e3b6826fad9aabd51bc7"},"5fbca454c09f19ef478fb9968bc9e923bbf1936a29cd5fe3571779115cec3249","e10c658c12792b6d909e54c58112e886f06b1a1233aea9bd03e339fb8db16aba","221d79913a07871407b22c5bb9f4a0eed142f0314771663aaed21d303062ea07","c2d7b2ba06f7ddcfc14a19836a07ca4e4fa995f29323bcf398a1e7b259a2f883","1f6c8bf3acd3faf5b580fc7b547057de1eb12a9351a3c882c3027d0442404630","ccd3d9bcda5e494d59a4c994aff671739b1f8389e75ac7651e6f7ff6205583d0","d5a966f87b35362b5d996d9ecf3d8508c27156956627498195abfdaf23326506","8f2446cd225d6848f764838175f31f918b704800880bd8dc045932d6b2a52673","76e9a763eef4a0ef8a4f50e387b9fad5266d471d8b0f62619f31bbd3d21b9814","809cd2debef3870c93afe5ddf02db6f18f4e223163bf252af70241de431f4465","4105be25a4337db6a374974bb8a51a25478eff481ff32bd5fff8ff62c9ae7344","5f4542d55d076b0b4bb1e5f95ef08d6492d76362544b7e4d095156d7ac4aa186","273dab284b012bd39052d5068a8e5e493e79f7bbf603c3a6e8aa544d3a37a971","572d37a64f63ea48d1e50cc50a3ffb9dea5fb130926dc53f9eef8e867c6982d5","5d05ccc4198e13f67f653cb968b468bb81cf3e65ae591cf59cf30f8ab6450237","19fc07b31d401c27075277ed71154ab13c74ef43ab20898e7ae24de8d16fb172","807c0151462ab7b02b0a3bf439c110128ebef4644850d10b95a280efad9241fd","983caabf3cd06702da1064b2792dad01147341ec2d11e399d982cfe43a9b039a","7223d57fe3a5c3ea34ff88f8f9d2711fe496d15b9032b6d2f9c0b4ca1e7cbd00","2bd4625ce452e0f25677c4d07430710c57d424ec2d33391debae18ea9a67a56a","d971ba1f17e274d839caeb0d88e8ebd84ffecade35028617c054b5b34d934ac5","b48798e7ef7f2e4f7bd9e6dbdcb037b24ea8f2effbb4bdd4a9a05930f01d9fc7","9e9ed85ced77a7b59d07a821d69db8a8e780bcd1caeb5623e6ac04401cba31c4","285ffd072e60b09837971b38641196165c190e95217de3d66d5c31261b023ef5","ac913ee688a6300d23c9ec14d2c52b40d01106f8d6f91543eaed3e810aecd1ae","f4846a5ce4f92bcfbd766a60b500be9132562b536501694b16eac9be117c1a93","5d68e76b227ac7a7c2fd863ca5c7168117276051d049b49c3ff475d04390f669","2bc449b91944ffae1f59471da701908ff793787f257f23b4ef71759acc97939f","ba2e3244ab6bb9b566681fe3739144a3f3a6c549f8ffc18af5c6909f34b5367c","8b4adeab24aaca65cf5145650e670147494fbd9aa71ac29de6685b0bfbf4be05","40ab9090ab933f2463706b6eab3f6cee55021b38beb59f1e52d323475eac2c92","a235538d09f6333ea3c805b93f93085e989856073d5f783d9c4054486e2e0865","da4d2fd24b5b25a9fff5fd42166c1fd6e44dacc8362bee445590583d95795f3f","89a2e13f35eafb164d59a5ec2c46cf97bf12c76a670d546a986c7880bde83c23","176b9f99f09a37af4826a82f84f8ee04c165ad3194fc7ce074e51fbfffd6de20","944cd92c6b59feb32961d560267393f372b1dcff1d6cd71a6230ba03f91036b5","314e888c6a1a1cc4d30295ebacece510231e4e4ee7028434aee277abda977baf","f6e30e59f4a1f0d0e6b231c280322ce9b007ff9c54fdb13b707e870430341778","58861fcc3db99d3761938fad76882bb93f726eaddbc3342cced707d00f94f5bd","bda7d503a370f6aef217e2f68a326d4a5c2d4cae43f8131c084f509c8ccb83a7","6194964a45d631834d96f0c91ea7041d7e15f94db83b217e92466adf1646b894","47450610465821f3ef5c6c116a91f2d1f3da33f37a9a4da00fff7a1a3bbaf8c4","d55e0e385634448cb9df2a75a80e9b44e4bdc1e87d2f942b0ee68c28365b9bfc","e4377349ba50d4da674de09a20d45ec7e4ad6522263a40b8029a044d6680b97f","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","369ae551d795d7eb44e05de3c26d4fddb0f524ea0900826ae6511cdd7d68ab5a","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"9781da62c2c6e7ddba612e089e70dfe69655ec93308ea4e4ef7ce2237e610657","signature":"ee69d6af04fb6e65b525995c2230d2089f64f06af3c402be6ebffea0d1a725f6"},{"version":"9b82c4382c28066786f048b73ad0c6eb3dcac1ff00bb4a996ad96628b64c75e6","signature":"744c734f29602973c3958905441fa3abc4c6d5cead5cf27835fb0d82b74d68c0"},{"version":"30dd4353a465f244f6c89da722754d14b4b6549bf14afc1f852a85e70a503ec5","signature":"20d583bbf8c16ef8550cbe7a7778f77689e0723f4ef530443d699245810ee64b"},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true,"impliedFormat":1},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true,"impliedFormat":99}],"root":[[80,86],88,89,92,[150,152]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[90,1],[78,2],[79,1],[158,3],[154,4],[155,5],[157,6],[89,7],[92,8],[88,9],[152,10],[150,11],[151,12],[83,13],[85,14],[82,15],[84,16],[81,17],[86,18],[80,14],[94,1],[93,1],[95,19],[97,20],[98,21],[99,22],[127,23],[100,1],[103,24],[104,1],[105,1],[112,1],[114,1],[116,24],[117,24],[118,24],[124,25],[125,1],[136,26],[135,27],[121,1],[123,28],[138,29],[140,30],[141,31],[144,32],[149,33],[148,34]],"latestChangedDtsFile":"./index.d.ts","version":"5.6.3"}
|
|
1
|
+
{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/ui/DevError/types.ts","../../src/ui/DevError/StackTrace.tsx","../../src/ui/DevError/DevErrorInner.tsx","../../src/ui/DevError/DevError.tsx","../../src/ui/DevError/DevErrorList.tsx","../../src/ui/DevError/DevErrorBadge.tsx","../../src/ui/DevError/index.ts","../../../../node_modules/stacktracey/stacktracey.d.ts","../../src/hooks/useParsedStacktrace.ts","../../src/DevErrorManager.tsx","../../../../node_modules/@types/react-dom/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../src/errorHandling.tsx","../../../react-utils/dist/types/context/createRequiredContext.d.ts","../../../react-utils/dist/types/context/createContext.d.ts","../../../react-utils/dist/types/context/index.d.ts","../../../react-utils/dist/types/debug-context/Types.d.ts","../../../react-utils/dist/types/debug-context/Constants.d.ts","../../../react-utils/dist/types/debug-context/Context.d.ts","../../../react-utils/dist/types/debug-context/index.d.ts","../../../react-utils/dist/types/hooks/unwrapRefValue.d.ts","../../../react-utils/dist/types/hooks/useAbortController.d.ts","../../../react-utils/dist/types/hooks/useArrayMapMemo.d.ts","../../../react-utils/dist/types/hooks/useAutoHeightTextArea.d.ts","../../../react-utils/dist/types/hooks/useChildrenAsLabel.d.ts","../../../react-utils/dist/types/hooks/useComposeRef.d.ts","../../../react-utils/dist/types/hooks/useConstantLengthInvariant.d.ts","../../../react-utils/dist/types/hooks/useConstantValueInvariant.d.ts","../../../react-utils/dist/types/hooks/useDebounce.d.ts","../../../react-utils/dist/types/hooks/useDebounceCallback.d.ts","../../../react-utils/dist/types/hooks/useDocumentTitle.d.ts","../../../react-utils/dist/types/hooks/useExpectSameValueReference.d.ts","../../../react-utils/dist/types/hooks/useForceRender.d.ts","../../../react-utils/dist/types/hooks/useId.d.ts","../../../react-utils/dist/types/hooks/useIsMounted.d.ts","../../../react-utils/dist/types/hooks/useObjectMemo.d.ts","../../../react-utils/dist/types/hooks/useOnElementClickOutsideCallback.d.ts","../../../react-utils/dist/types/hooks/useOnElementMouseEnterDelayedCallback.d.ts","../../../react-utils/dist/types/hooks/useOnElementResize.d.ts","../../../react-utils/dist/types/hooks/useOnWindowResize.d.ts","../../../react-utils/dist/types/hooks/usePreviousValue.d.ts","../../../react-utils/dist/types/types/PropsWithRequiredChildren.d.ts","../../../react-utils/dist/types/types/Serializable.d.ts","../../../react-utils/dist/types/types/index.d.ts","../../../react-utils/dist/types/hooks/useStoredState.d.ts","../../../react-utils/dist/types/hooks/useUpdatedRef.d.ts","../../../react-utils/dist/types/hooks/useWindowSize.d.ts","../../../react-utils/dist/types/hooks/index.d.ts","../../../react-utils/dist/types/referentiallyStable/emptyArray.d.ts","../../../react-utils/dist/types/referentiallyStable/emptyObject.d.ts","../../../react-utils/dist/types/referentiallyStable/identityFunction.d.ts","../../../react-utils/dist/types/referentiallyStable/noop.d.ts","../../../react-utils/dist/types/referentiallyStable/returnFalse.d.ts","../../../react-utils/dist/types/referentiallyStable/returnTrue.d.ts","../../../react-utils/dist/types/referentiallyStable/useReferentiallyStableCallback.d.ts","../../../react-utils/dist/types/referentiallyStable/index.d.ts","../../../react-utils/dist/types/index.d.ts","../../../utilities/dist/types/assert-types/assertNever.d.ts","../../../utilities/dist/types/assert-types/index.d.ts","../../../utilities/dist/types/deprecate/types.d.ts","../../../utilities/dist/types/deprecate/deprecate.d.ts","../../../utilities/dist/types/deprecate/index.d.ts","../../../utilities/dist/types/dom/dataAttribute.d.ts","../../../utilities/dist/types/dom/svgSizeProps.d.ts","../../../utilities/dist/types/dom/index.d.ts","../../../utilities/dist/types/structures/BijectiveIndexedMap.d.ts","../../../utilities/dist/types/structures/LRUCache.d.ts","../../../utilities/dist/types/structures/WeakIdCache.d.ts","../../../utilities/dist/types/structures/index.d.ts","../../../utilities/dist/types/index.d.ts","../../src/ui/DevBar/DevBar.tsx","../../src/ui/DevBar/index.tsx","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileIdsList":[[78],[75,76,77],[157],[153],[154],[155,156],[78,79,86,88],[78,79,89,90,91],[78,79,86,87],[79,86,88,92,151],[78,79,136,149],[79,150],[79,82],[79],[79,80,81],[78,79,80,82],[79,80],[79,80,83,84,85],[93,94],[96],[78,96],[96,97,98],[100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,124,125,126],[100],[123],[95,99,123,127,135],[128,129,130,131,132,133,134],[121,122],[137],[139],[139,140],[142,143],[138,141,144,148],[145,146,147]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"65ff5a0aefd7817a03c1ad04fee85c9cdd3ec415cc3c9efec85d8008d4d5e4ee","impliedFormat":1},{"version":"aea201321e7df78b294c9c39c61503ed81fb73b1b1703240013b557dfa25b016","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"ae31916b0bd678f2cdd0b0f29b2d7b2e75379d93ffa02d14ed7afe97c4ac58d3","signature":"2cb6d00f40af1186ad22043591ab58eb7cdccb3e51a016dcf90179bab0423bd4"},{"version":"54cdd124184fba232b51cedf5b098d60d7536c4ea256912082adc491c16840ee","signature":"77dd2fbe255a1ca2931697cb0ebe5a73c03331e2398bc098cbb6ebb1ee9455c7"},{"version":"c2adc924710bbe92fc862254d8b87c1b2f32590fc0f81618be7c0308f66299ab","signature":"76846a373991aba49458f1be13be0860d1c5eadba8c9b570a4c47d78d35210e6"},{"version":"e9335dd152eb24f1c39a41f2e37d8ed4421ae84a7bf52a664f615cfb1ecd6182","signature":"f75e50cd4c64ffd68126a7a16fce5e53cbcdc49a89a88c75f563c74ff0d8a333"},{"version":"218aadecccb084f3b26cad4e034093e0bfc34eddbefc09cf6e2af758a0fb2806","signature":"e9ac7abbd61232b96bed2ff2e3b3deb1343c479cfee81adc5c45a01129667cc5"},{"version":"31e46899bfa7c3dde6bd90fd1a7abe164f63c021b03d8938b1b0f2527dc6cbb9","signature":"dfb7fa232551fa21a9be0be029f0ca2c1021c323b148246bb02803ed6cb587ad"},{"version":"0d20ec7155f27813aeef59264790f3da6d8af752acd6f5be6e35ed1e25697fb7","signature":"011ef1c7bf62f61d9cc5ab3dc0edd33681bbbd43e60476bb44d77511fa232acd"},{"version":"8b93ed03cbd9acd4190ea0e38011512aa543df1a27b773fdcf06199e56db9131","impliedFormat":1},{"version":"b38cf7352e8bc3254331756ca2e368668a7ea51619cd388b9a5f3c2bb9dd960e","signature":"48bbeda480e9b3f9e294c92c8f3e1f2a5d2712eded316ad7f15c715c054d1486"},{"version":"aff55b893a8e4a0361ede8d65ad1a9276aa17053c228f46d23df6595ac144494","signature":"1f14e4ff84a34c822a372407b967f2469aab82242c498afda31811fca9096f5e"},{"version":"17ed71200119e86ccef2d96b73b02ce8854b76ad6bd21b5021d4269bec527b5f","impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"64f6d042f208799549116623dc755cb36d69464491d2b363b1c703775e6b590f","signature":"35f89c4e27105a3779e9170a645aa01a610708800f93e3b6826fad9aabd51bc7"},"5fbca454c09f19ef478fb9968bc9e923bbf1936a29cd5fe3571779115cec3249","e10c658c12792b6d909e54c58112e886f06b1a1233aea9bd03e339fb8db16aba","221d79913a07871407b22c5bb9f4a0eed142f0314771663aaed21d303062ea07","c2d7b2ba06f7ddcfc14a19836a07ca4e4fa995f29323bcf398a1e7b259a2f883","1f6c8bf3acd3faf5b580fc7b547057de1eb12a9351a3c882c3027d0442404630","ccd3d9bcda5e494d59a4c994aff671739b1f8389e75ac7651e6f7ff6205583d0","d5a966f87b35362b5d996d9ecf3d8508c27156956627498195abfdaf23326506","8f2446cd225d6848f764838175f31f918b704800880bd8dc045932d6b2a52673","76e9a763eef4a0ef8a4f50e387b9fad5266d471d8b0f62619f31bbd3d21b9814","809cd2debef3870c93afe5ddf02db6f18f4e223163bf252af70241de431f4465","4105be25a4337db6a374974bb8a51a25478eff481ff32bd5fff8ff62c9ae7344","5f4542d55d076b0b4bb1e5f95ef08d6492d76362544b7e4d095156d7ac4aa186","273dab284b012bd39052d5068a8e5e493e79f7bbf603c3a6e8aa544d3a37a971","572d37a64f63ea48d1e50cc50a3ffb9dea5fb130926dc53f9eef8e867c6982d5","5d05ccc4198e13f67f653cb968b468bb81cf3e65ae591cf59cf30f8ab6450237","19fc07b31d401c27075277ed71154ab13c74ef43ab20898e7ae24de8d16fb172","807c0151462ab7b02b0a3bf439c110128ebef4644850d10b95a280efad9241fd","983caabf3cd06702da1064b2792dad01147341ec2d11e399d982cfe43a9b039a","7223d57fe3a5c3ea34ff88f8f9d2711fe496d15b9032b6d2f9c0b4ca1e7cbd00","2bd4625ce452e0f25677c4d07430710c57d424ec2d33391debae18ea9a67a56a","d971ba1f17e274d839caeb0d88e8ebd84ffecade35028617c054b5b34d934ac5","b48798e7ef7f2e4f7bd9e6dbdcb037b24ea8f2effbb4bdd4a9a05930f01d9fc7","9e9ed85ced77a7b59d07a821d69db8a8e780bcd1caeb5623e6ac04401cba31c4","285ffd072e60b09837971b38641196165c190e95217de3d66d5c31261b023ef5","ac913ee688a6300d23c9ec14d2c52b40d01106f8d6f91543eaed3e810aecd1ae","f4846a5ce4f92bcfbd766a60b500be9132562b536501694b16eac9be117c1a93","5d68e76b227ac7a7c2fd863ca5c7168117276051d049b49c3ff475d04390f669","2bc449b91944ffae1f59471da701908ff793787f257f23b4ef71759acc97939f","ba2e3244ab6bb9b566681fe3739144a3f3a6c549f8ffc18af5c6909f34b5367c","8b4adeab24aaca65cf5145650e670147494fbd9aa71ac29de6685b0bfbf4be05","40ab9090ab933f2463706b6eab3f6cee55021b38beb59f1e52d323475eac2c92","a235538d09f6333ea3c805b93f93085e989856073d5f783d9c4054486e2e0865","da4d2fd24b5b25a9fff5fd42166c1fd6e44dacc8362bee445590583d95795f3f","89a2e13f35eafb164d59a5ec2c46cf97bf12c76a670d546a986c7880bde83c23","176b9f99f09a37af4826a82f84f8ee04c165ad3194fc7ce074e51fbfffd6de20","944cd92c6b59feb32961d560267393f372b1dcff1d6cd71a6230ba03f91036b5","314e888c6a1a1cc4d30295ebacece510231e4e4ee7028434aee277abda977baf","f6e30e59f4a1f0d0e6b231c280322ce9b007ff9c54fdb13b707e870430341778","58861fcc3db99d3761938fad76882bb93f726eaddbc3342cced707d00f94f5bd","bda7d503a370f6aef217e2f68a326d4a5c2d4cae43f8131c084f509c8ccb83a7","6194964a45d631834d96f0c91ea7041d7e15f94db83b217e92466adf1646b894","47450610465821f3ef5c6c116a91f2d1f3da33f37a9a4da00fff7a1a3bbaf8c4","d55e0e385634448cb9df2a75a80e9b44e4bdc1e87d2f942b0ee68c28365b9bfc","e4377349ba50d4da674de09a20d45ec7e4ad6522263a40b8029a044d6680b97f","a95c25e1f9146dd90f7cb36c7e306a25a67bdef1eaae7319a60d2f9d3ff66804","3436aa850e6d85c1ca81028e1ac6a9ba3ca0cbc27efe797fe99aea0a99a49881","624e76b41eb76400df5e0cbacc5f7091e6bd0518e0f9f4ac4a047794b2c189f9","f14113b17b6a1863dd58e49e0bc504f21d51da969bc1fc4af1a07b3684f0de25","1762533296e00297d454534bdb27ddae5f6b69fef679295094cb0afb4e9a526a","369ae551d795d7eb44e05de3c26d4fddb0f524ea0900826ae6511cdd7d68ab5a","dfe644b96a0786c3ed103bffe7331349022c647802d40030067cf71c9ce79bb5","893bdae1d9648d1f4da2ddad5647a63282aef8d30df09eacb14fdb68e2349a1d","0a52d67559b7ef5541d532dc78fbbfb69d028a4adf1c3501424e355e53e66257","fed47bc1ca2d6c672b7ce3be63f206bd0ad5e67c18c2650eb9d79d842e9d208a","cd7e9d427302a244cce2881eceae5fbaccf62a7a6064f161a699fe39bad1d998","fb6bb88e6e41f878eaf58a6c141e0379f208f85f6f922512b3b25efffe70380b","e31346a3e386e227daee4cd99ac59dc7bd0e324541ea401bdf8b623a7e20bf56",{"version":"9781da62c2c6e7ddba612e089e70dfe69655ec93308ea4e4ef7ce2237e610657","signature":"ee69d6af04fb6e65b525995c2230d2089f64f06af3c402be6ebffea0d1a725f6"},{"version":"9b82c4382c28066786f048b73ad0c6eb3dcac1ff00bb4a996ad96628b64c75e6","signature":"744c734f29602973c3958905441fa3abc4c6d5cead5cf27835fb0d82b74d68c0"},{"version":"30dd4353a465f244f6c89da722754d14b4b6549bf14afc1f852a85e70a503ec5","signature":"20d583bbf8c16ef8550cbe7a7778f77689e0723f4ef530443d699245810ee64b"},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true,"impliedFormat":1},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true,"impliedFormat":99}],"root":[[80,86],88,89,92,[150,152]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"referencedMap":[[90,1],[78,2],[79,1],[158,3],[154,4],[155,5],[157,6],[89,7],[92,8],[88,9],[152,10],[150,11],[151,12],[83,13],[85,14],[82,15],[84,16],[81,17],[86,18],[80,14],[94,1],[93,1],[95,19],[97,20],[98,21],[99,22],[127,23],[100,1],[103,24],[104,1],[105,1],[112,1],[114,1],[116,24],[117,24],[118,24],[124,25],[125,1],[136,26],[135,27],[121,1],[123,28],[138,29],[140,30],[141,31],[144,32],[149,33],[148,34]],"latestChangedDtsFile":"./index.d.ts","version":"5.6.3"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface DevErrorBadgeProps {
|
|
2
2
|
onOpen: () => void;
|
|
3
|
+
onClear: () => void;
|
|
3
4
|
errorCount: number;
|
|
4
5
|
}
|
|
5
|
-
export declare function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
//# sourceMappingURL=DevErrorBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorBadge.d.ts","sourceRoot":"","sources":["../../../../src/ui/DevError/DevErrorBadge.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CAClB;AAKD,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"DevErrorBadge.d.ts","sourceRoot":"","sources":["../../../../src/ui/DevError/DevErrorBadge.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CAClB;AAKD,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAQhF"}
|
|
@@ -7,6 +7,7 @@ export interface DevErrorListProps {
|
|
|
7
7
|
onPrevious: () => void;
|
|
8
8
|
onNext: () => void;
|
|
9
9
|
onClose: () => void;
|
|
10
|
+
onClear: () => void;
|
|
10
11
|
}
|
|
11
|
-
export declare function DevErrorList({ currentError, currentErrorIndex, currentErrorSource, errorCount, onClose, onNext, onPrevious, }: DevErrorListProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function DevErrorList({ currentError, currentErrorIndex, currentErrorSource, errorCount, onClose, onNext, onPrevious, onClear, }: DevErrorListProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
//# sourceMappingURL=DevErrorList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevErrorList.d.ts","sourceRoot":"","sources":["../../../../src/ui/DevError/DevErrorList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGxC,MAAM,WAAW,iBAAiB;IACjC,YAAY,EAAE,cAAc,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACnB;AAID,wBAAgB,YAAY,CAAC,EAC5B,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,
|
|
1
|
+
{"version":3,"file":"DevErrorList.d.ts","sourceRoot":"","sources":["../../../../src/ui/DevError/DevErrorList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGxC,MAAM,WAAW,iBAAiB;IACjC,YAAY,EAAE,cAAc,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACnB;AAID,wBAAgB,YAAY,CAAC,EAC5B,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,GACP,EAAE,iBAAiB,2CA+CnB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/react-devbar",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"directory": "packages/react-devbar"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@contember/react-utils": "2.0.0-beta.
|
|
41
|
-
"@contember/utilities": "2.0.0-beta.
|
|
40
|
+
"@contember/react-utils": "2.0.0-beta.6",
|
|
41
|
+
"@contember/utilities": "2.0.0-beta.6",
|
|
42
42
|
"buffer": "6.0.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/DevErrorManager.tsx
CHANGED
|
@@ -11,15 +11,8 @@ export class ErrorBus {
|
|
|
11
11
|
|
|
12
12
|
if (!this.listener) {
|
|
13
13
|
this.queue.push(boxedError)
|
|
14
|
-
this.queue.push(boxedError)
|
|
15
|
-
this.queue.push(boxedError)
|
|
16
|
-
this.queue.push(boxedError)
|
|
17
|
-
|
|
18
14
|
} else {
|
|
19
15
|
this.listener(boxedError)
|
|
20
|
-
this.listener(boxedError)
|
|
21
|
-
this.listener(boxedError)
|
|
22
|
-
this.listener(boxedError)
|
|
23
16
|
}
|
|
24
17
|
}
|
|
25
18
|
|
|
@@ -37,6 +30,22 @@ export interface DevErrorManagerProps {
|
|
|
37
30
|
bus: ErrorBus
|
|
38
31
|
}
|
|
39
32
|
|
|
33
|
+
const compareErrors = (a: ErrorType, b: ErrorType) => {
|
|
34
|
+
if (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {
|
|
35
|
+
return false
|
|
36
|
+
}
|
|
37
|
+
if (!('stack' in a) || !('stack' in b) || !('message' in a) || !('message' in b)) {
|
|
38
|
+
return false
|
|
39
|
+
}
|
|
40
|
+
if (a.message !== b.message) {
|
|
41
|
+
return false
|
|
42
|
+
}
|
|
43
|
+
if (a.stack !== b.stack) {
|
|
44
|
+
return false
|
|
45
|
+
}
|
|
46
|
+
return true
|
|
47
|
+
}
|
|
48
|
+
|
|
40
49
|
export function DevErrorManager(props: DevErrorManagerProps) {
|
|
41
50
|
const [errors, setErrors] = useState<{ error: ErrorType; source: string }[]>([])
|
|
42
51
|
const [errIndex, setErrorIndex] = useState(0)
|
|
@@ -47,7 +56,9 @@ export function DevErrorManager(props: DevErrorManagerProps) {
|
|
|
47
56
|
return props.bus.register(err => {
|
|
48
57
|
setTimeout(
|
|
49
58
|
() => {
|
|
50
|
-
setErrors(errors =>
|
|
59
|
+
setErrors(errors => {
|
|
60
|
+
return !errors.find(it => compareErrors(it.error, err.error)) ? [err, ...errors] : errors
|
|
61
|
+
})
|
|
51
62
|
setOpen(true)
|
|
52
63
|
},
|
|
53
64
|
0,
|
|
@@ -59,14 +70,28 @@ export function DevErrorManager(props: DevErrorManagerProps) {
|
|
|
59
70
|
|
|
60
71
|
const currentError = errors[errIndex]
|
|
61
72
|
const processedError = useProcessedError(currentError?.error)
|
|
73
|
+
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (import.meta.hot) {
|
|
76
|
+
const cb = () => {
|
|
77
|
+
setOpen(false)
|
|
78
|
+
}
|
|
79
|
+
import.meta.hot.on('vite:afterUpdate', cb)
|
|
80
|
+
return () => {
|
|
81
|
+
import.meta.hot?.off('vite:afterUpdate', cb)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, [])
|
|
85
|
+
|
|
62
86
|
if (!currentError) {
|
|
63
87
|
return null
|
|
64
88
|
}
|
|
65
89
|
const onPrevious = () => setErrorIndex(it => Math.max(0, it - 1))
|
|
66
90
|
const onNext = () => setErrorIndex(it => Math.min(errors.length - 1, it + 1))
|
|
67
91
|
const onClose = () => setOpen(false)
|
|
92
|
+
const onClear = () => setErrors([])
|
|
68
93
|
if (!open) {
|
|
69
|
-
return <DevErrorBadge errorCount={errors.length} onOpen={() => setOpen(true)} />
|
|
94
|
+
return <DevErrorBadge errorCount={errors.length} onOpen={() => setOpen(true)} onClear={onClear} />
|
|
70
95
|
}
|
|
71
96
|
return (
|
|
72
97
|
<DevErrorList
|
|
@@ -77,6 +102,7 @@ export function DevErrorManager(props: DevErrorManagerProps) {
|
|
|
77
102
|
onPrevious={onPrevious}
|
|
78
103
|
onNext={onNext}
|
|
79
104
|
onClose={onClose}
|
|
105
|
+
onClear={onClear}
|
|
80
106
|
/>
|
|
81
107
|
)
|
|
82
108
|
}
|
package/src/index.css
CHANGED
|
@@ -225,8 +225,6 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.cui-devError-header {
|
|
228
|
-
position: sticky;
|
|
229
|
-
top: 0;
|
|
230
228
|
background: #cd1818;
|
|
231
229
|
color: #ffffff;
|
|
232
230
|
padding: 0.5em 1em;
|
|
@@ -421,7 +419,7 @@
|
|
|
421
419
|
position: fixed;
|
|
422
420
|
bottom: 1.25rem;
|
|
423
421
|
left: 1.25rem;
|
|
424
|
-
z-index:
|
|
422
|
+
z-index: 16777270;
|
|
425
423
|
}
|
|
426
424
|
|
|
427
425
|
.cui-devErrorBadge-button {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export interface DevErrorBadgeProps {
|
|
2
2
|
onOpen: () => void
|
|
3
|
+
onClear: () => void
|
|
3
4
|
errorCount: number
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
const className = (cls?: string | null) => cls ? `cui-devErrorBadge-${cls}` : 'cui-devErrorBadge'
|
|
8
9
|
|
|
9
|
-
export function DevErrorBadge({ errorCount, onOpen }: DevErrorBadgeProps) {
|
|
10
|
+
export function DevErrorBadge({ errorCount, onOpen, onClear }: DevErrorBadgeProps) {
|
|
10
11
|
return (
|
|
11
12
|
<div className={className()}>
|
|
12
13
|
<a className={className('button')} onClick={onOpen}>
|
|
@@ -10,6 +10,7 @@ export interface DevErrorListProps {
|
|
|
10
10
|
onPrevious: () => void
|
|
11
11
|
onNext: () => void
|
|
12
12
|
onClose: () => void
|
|
13
|
+
onClear: () => void
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const className = (cls?: string | null) => cls ? `cui-devError-${cls}` : 'cui-devError'
|
|
@@ -22,6 +23,7 @@ export function DevErrorList({
|
|
|
22
23
|
onClose,
|
|
23
24
|
onNext,
|
|
24
25
|
onPrevious,
|
|
26
|
+
onClear,
|
|
25
27
|
}: DevErrorListProps) {
|
|
26
28
|
useEffect(() => {
|
|
27
29
|
document.body.classList.add('cui-devError-body')
|
|
@@ -57,6 +59,11 @@ export function DevErrorList({
|
|
|
57
59
|
</button>
|
|
58
60
|
</div>
|
|
59
61
|
</div>
|
|
62
|
+
<div className={className('close')}>
|
|
63
|
+
<button className={className('closeButton')} onClick={onClear}>
|
|
64
|
+
Clear errors
|
|
65
|
+
</button>
|
|
66
|
+
</div>
|
|
60
67
|
</div>
|
|
61
68
|
<div className={className('content')}>
|
|
62
69
|
<DevErrorInner error={currentError} />
|