dce-reactkit 2.0.11 → 2.0.12
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/lib/components/AppWrapper.d.ts +3 -3
- package/lib/components/AppWrapper.js +8 -8
- package/lib/components/AppWrapper.js.map +1 -1
- package/lib/helpers/alert.d.ts +1 -1
- package/lib/helpers/alert.js +2 -1
- package/lib/helpers/alert.js.map +1 -1
- package/lib/helpers/confirm.d.ts +1 -1
- package/lib/helpers/confirm.js +2 -1
- package/lib/helpers/confirm.js.map +1 -1
- package/lib/helpers/showFatalError.d.ts +1 -1
- package/lib/helpers/showFatalError.js +2 -1
- package/lib/helpers/showFatalError.js.map +1 -1
- package/package.json +1 -1
- package/src/components/AppWrapper.tsx +4 -4
- package/src/helpers/alert.tsx +3 -1
- package/src/helpers/confirm.tsx +3 -1
- package/src/helpers/showFatalError.tsx +3 -1
|
@@ -15,7 +15,7 @@ declare type Props = {
|
|
|
15
15
|
* @param title the title text to display at the top of the alert
|
|
16
16
|
* @param text the text to display in the alert
|
|
17
17
|
*/
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const _alert: (title: string, text: string) => Promise<unknown>;
|
|
19
19
|
/**
|
|
20
20
|
* Show a confirmation modal with an "Okay" and a "Cancel" button
|
|
21
21
|
* @author Gabe Abrams
|
|
@@ -23,13 +23,13 @@ export declare const alert: (title: string, text: string) => Promise<unknown>;
|
|
|
23
23
|
* @param text the text to display in the alert
|
|
24
24
|
* @returns true if the user confirmed
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const _confirm: (title: string, text: string) => Promise<boolean>;
|
|
27
27
|
/**
|
|
28
28
|
* Show a fatal error message
|
|
29
29
|
* @author Gabe Abrams
|
|
30
30
|
* @param error the error to show
|
|
31
31
|
* @param [errorTitle] title of the error box
|
|
32
32
|
*/
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const _showFatalError: (error: any, errorTitle?: string) => Promise<unknown>;
|
|
34
34
|
declare const AppWrapper: (props: Props) => React.ReactElement;
|
|
35
35
|
export default AppWrapper;
|
|
@@ -50,7 +50,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.
|
|
53
|
+
exports._showFatalError = exports._confirm = exports._alert = void 0;
|
|
54
54
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
55
55
|
/**
|
|
56
56
|
* A wrapper for the entire React app that adds global functionality like
|
|
@@ -84,7 +84,7 @@ var onAlertClosed;
|
|
|
84
84
|
* @param title the title text to display at the top of the alert
|
|
85
85
|
* @param text the text to display in the alert
|
|
86
86
|
*/
|
|
87
|
-
var
|
|
87
|
+
var _alert = function (title, text) { return __awaiter(void 0, void 0, void 0, function () {
|
|
88
88
|
return __generator(this, function (_a) {
|
|
89
89
|
// Fallback if alert not available
|
|
90
90
|
if (!setAlertInfo) {
|
|
@@ -104,7 +104,7 @@ var alert = function (title, text) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
104
104
|
})];
|
|
105
105
|
});
|
|
106
106
|
}); };
|
|
107
|
-
exports.
|
|
107
|
+
exports._alert = _alert;
|
|
108
108
|
/*----------------------------------------*/
|
|
109
109
|
/* Confirm */
|
|
110
110
|
/*----------------------------------------*/
|
|
@@ -118,7 +118,7 @@ var onConfirmClosed;
|
|
|
118
118
|
* @param text the text to display in the alert
|
|
119
119
|
* @returns true if the user confirmed
|
|
120
120
|
*/
|
|
121
|
-
var
|
|
121
|
+
var _confirm = function (title, text) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
122
|
return __generator(this, function (_a) {
|
|
123
123
|
// Fallback if confirm is not available
|
|
124
124
|
if (!setConfirmInfo) {
|
|
@@ -138,7 +138,7 @@ var confirm = function (title, text) { return __awaiter(void 0, void 0, void 0,
|
|
|
138
138
|
})];
|
|
139
139
|
});
|
|
140
140
|
}); };
|
|
141
|
-
exports.
|
|
141
|
+
exports._confirm = _confirm;
|
|
142
142
|
/*----------------------------------------*/
|
|
143
143
|
/* Fatal Error */
|
|
144
144
|
/*----------------------------------------*/
|
|
@@ -152,7 +152,7 @@ var setFatalErrorTitle;
|
|
|
152
152
|
* @param error the error to show
|
|
153
153
|
* @param [errorTitle] title of the error box
|
|
154
154
|
*/
|
|
155
|
-
var
|
|
155
|
+
var _showFatalError = function (error, errorTitle) {
|
|
156
156
|
var _a, _b;
|
|
157
157
|
if (errorTitle === void 0) { errorTitle = 'An Error Occurred'; }
|
|
158
158
|
// Determine message and code
|
|
@@ -164,14 +164,14 @@ var showFatalError = function (error, errorTitle) {
|
|
|
164
164
|
: String((_b = error.code) !== null && _b !== void 0 ? _b : ReactKitErrorCode_1.default.NoCode));
|
|
165
165
|
// Handle case where app hasn't loaded
|
|
166
166
|
if (!setFatalErrorMessage || !setFatalErrorCode) {
|
|
167
|
-
return (0, exports.
|
|
167
|
+
return (0, exports._alert)(errorTitle, "".concat(message, " (code: ").concat(code, "). Please contact support."));
|
|
168
168
|
}
|
|
169
169
|
// Use setters
|
|
170
170
|
setFatalErrorMessage(message);
|
|
171
171
|
setFatalErrorCode(code);
|
|
172
172
|
setFatalErrorTitle(errorTitle);
|
|
173
173
|
};
|
|
174
|
-
exports.
|
|
174
|
+
exports._showFatalError = _showFatalError;
|
|
175
175
|
/*------------------------------------------------------------------------*/
|
|
176
176
|
/* Component */
|
|
177
177
|
/*------------------------------------------------------------------------*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppWrapper.js","sourceRoot":"","sources":["../../src/components/AppWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;GAIG;AAEH,eAAe;AACf,+BAAmD;AAEnD,2BAA2B;AAC3B,wDAAkC;AAElC,iBAAiB;AACjB,sEAAyE;AAEzE,sB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CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAE5C,iDAAiD;IACjD,IAAI,IAAqB,CAAC;IAE1B,wCAAwC;IAExC,IAAI,iBAAiB,IAAI,cAAc,IAAI,iBAAiB,EAAE;QAC5D,6BAA6B;QAC7B,IAAM,KAAK,GAAG,CACZ,iBAAiB;YACf,CAAC,CAAC,IAAI,uBAAa,CACjB,iBAAiB,EACjB,cAAc,CACf;YACD,CAAC,CAAC,IAAI,uBAAa,CACjB,qBAAqB,EACrB,2BAAiB,CAAC,cAAc,CACjC,CACJ,CAAC;QAEF,qBAAqB;QACrB,IAAI,GAAG,CACL,yCACE,KAAK,EAAE;gBACL,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,OAAO;gBACd,SAAS,EAAE,OAAO;gBAClB,UAAU,EAAE,OAAO;gBACnB,eAAe,EAAE,CACf,IAAI;oBACF,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,MAAM,CACX;aACF,gBAED,uBAAC,kBAAQ,IACP,KAAK,EAAE,CACL,iBAAiB;oBACf,CAAC,CAAC,iBAAiB;oBACnB,CAAC,CAAC,eAAe,CACpB,EACD,KAAK,EAAE,KAAK,GACZ,IACE,CACP,CAAC;KACH;IAED,wCAAwC;IAExC,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,CACL,2DACG,QAAQ,GACR,CACJ,CAAC;KACH;IAED,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAE5C,OAAO,CACL,6DACG,KAAK,EACL,IAAI,IACJ,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAE5E,mBAAmB;AACnB,kBAAe,UAAU,CAAC"}
|
package/lib/helpers/alert.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const alert: (title: string, text: string) => Promise<unknown>;
|
|
2
2
|
export default alert;
|
package/lib/helpers/alert.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var AppWrapper_1 = require("../components/AppWrapper");
|
|
4
|
-
|
|
4
|
+
var alert = AppWrapper_1._alert;
|
|
5
|
+
exports.default = alert;
|
|
5
6
|
//# sourceMappingURL=alert.js.map
|
package/lib/helpers/alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/helpers/alert.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/helpers/alert.tsx"],"names":[],"mappings":";;AAAA,uDAAkD;AAElD,IAAM,KAAK,GAAG,mBAAM,CAAC;AAErB,kBAAe,KAAK,CAAC"}
|
package/lib/helpers/confirm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const confirm: (title: string, text: string) => Promise<boolean>;
|
|
2
2
|
export default confirm;
|
package/lib/helpers/confirm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var AppWrapper_1 = require("../components/AppWrapper");
|
|
4
|
-
|
|
4
|
+
var confirm = AppWrapper_1._confirm;
|
|
5
|
+
exports.default = confirm;
|
|
5
6
|
//# sourceMappingURL=confirm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm.js","sourceRoot":"","sources":["../../src/helpers/confirm.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"confirm.js","sourceRoot":"","sources":["../../src/helpers/confirm.tsx"],"names":[],"mappings":";;AAAA,uDAAoD;AAEpD,IAAM,OAAO,GAAG,qBAAQ,CAAC;AAEzB,kBAAe,OAAO,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const showFatalError: (error: any, errorTitle?: string) => Promise<unknown>;
|
|
2
2
|
export default showFatalError;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var AppWrapper_1 = require("../components/AppWrapper");
|
|
4
|
-
|
|
4
|
+
var showFatalError = AppWrapper_1._showFatalError;
|
|
5
|
+
exports.default = showFatalError;
|
|
5
6
|
//# sourceMappingURL=showFatalError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showFatalError.js","sourceRoot":"","sources":["../../src/helpers/showFatalError.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"showFatalError.js","sourceRoot":"","sources":["../../src/helpers/showFatalError.tsx"],"names":[],"mappings":";;AAAA,uDAA2D;AAE3D,IAAM,cAAc,GAAG,4BAAe,CAAC;AAEvC,kBAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ let onAlertClosed: () => void;
|
|
|
53
53
|
* @param title the title text to display at the top of the alert
|
|
54
54
|
* @param text the text to display in the alert
|
|
55
55
|
*/
|
|
56
|
-
export const
|
|
56
|
+
export const _alert = async (title: string, text: string) => {
|
|
57
57
|
// Fallback if alert not available
|
|
58
58
|
if (!setAlertInfo) {
|
|
59
59
|
return window.alert(`${title}\n\n${text}`);
|
|
@@ -89,7 +89,7 @@ let onConfirmClosed: (confirmed: boolean) => void;
|
|
|
89
89
|
* @param text the text to display in the alert
|
|
90
90
|
* @returns true if the user confirmed
|
|
91
91
|
*/
|
|
92
|
-
export const
|
|
92
|
+
export const _confirm = async (
|
|
93
93
|
title: string,
|
|
94
94
|
text: string,
|
|
95
95
|
): Promise<boolean> => {
|
|
@@ -128,7 +128,7 @@ let setFatalErrorTitle: (title: string) => void;
|
|
|
128
128
|
* @param error the error to show
|
|
129
129
|
* @param [errorTitle] title of the error box
|
|
130
130
|
*/
|
|
131
|
-
export const
|
|
131
|
+
export const _showFatalError = (
|
|
132
132
|
error: any,
|
|
133
133
|
errorTitle: string = 'An Error Occurred',
|
|
134
134
|
) => {
|
|
@@ -146,7 +146,7 @@ export const showFatalError = (
|
|
|
146
146
|
|
|
147
147
|
// Handle case where app hasn't loaded
|
|
148
148
|
if (!setFatalErrorMessage || !setFatalErrorCode) {
|
|
149
|
-
return
|
|
149
|
+
return _alert(
|
|
150
150
|
errorTitle,
|
|
151
151
|
`${message} (code: ${code}). Please contact support.`,
|
|
152
152
|
);
|
package/src/helpers/alert.tsx
CHANGED
package/src/helpers/confirm.tsx
CHANGED