@alfalab/core-components-confirmation 9.0.7 → 10.1.0
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/CHANGELOG.md +57 -0
- package/dist/component.d.ts +4 -164
- package/dist/component.js +113 -101
- package/dist/components/countdown-loader/component.d.ts +1 -1
- package/dist/components/countdown-loader/component.js +1 -1
- package/dist/components/countdown-loader/index.css +2 -2
- package/dist/components/index.d.ts +1 -3
- package/dist/components/index.js +15 -14
- package/dist/components/screens/fatal-error/component.d.ts +3 -0
- package/dist/components/screens/fatal-error/component.js +25 -0
- package/dist/components/screens/fatal-error/index.css +61 -0
- package/dist/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
- package/dist/components/screens/fatal-error/index.js +13 -0
- package/dist/components/screens/hint/component.d.ts +3 -0
- package/dist/components/screens/hint/component.js +45 -0
- package/dist/components/screens/hint/index.css +103 -0
- package/dist/components/{countdown → screens/hint}/index.d.ts +0 -0
- package/dist/components/screens/hint/index.js +15 -0
- package/dist/components/screens/index.d.ts +4 -0
- package/dist/components/screens/index.js +26 -0
- package/dist/components/screens/initial/component.d.ts +3 -0
- package/dist/components/screens/initial/component.js +95 -0
- package/dist/components/screens/initial/countdown-section.d.ts +0 -0
- package/dist/components/screens/initial/countdown-section.js +15 -0
- package/dist/components/screens/initial/index.css +98 -0
- package/dist/components/{overlimit → screens/initial}/index.d.ts +0 -0
- package/dist/components/screens/initial/index.js +19 -0
- package/dist/components/screens/temp-block/component.d.ts +3 -0
- package/dist/components/screens/temp-block/component.js +36 -0
- package/dist/components/{overlimit → screens/temp-block}/index.css +9 -31
- package/dist/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
- package/dist/components/screens/temp-block/index.js +13 -0
- package/dist/context.d.ts +4 -0
- package/dist/context.js +27 -0
- package/dist/countdown-section-4cb91876.d.ts +9 -0
- package/dist/countdown-section-4cb91876.js +41 -0
- package/dist/cssm/component.d.ts +4 -164
- package/dist/cssm/component.js +115 -103
- package/dist/cssm/components/countdown-loader/component.d.ts +1 -1
- package/dist/cssm/components/index.d.ts +1 -3
- package/dist/cssm/components/index.js +19 -18
- package/dist/cssm/components/screens/fatal-error/component.d.ts +3 -0
- package/dist/cssm/components/screens/fatal-error/component.js +24 -0
- package/dist/cssm/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
- package/dist/cssm/components/screens/fatal-error/index.js +14 -0
- package/dist/cssm/components/screens/fatal-error/index.module.css +60 -0
- package/dist/cssm/components/screens/hint/component.d.ts +3 -0
- package/dist/cssm/components/screens/hint/component.js +44 -0
- package/dist/cssm/components/{countdown → screens/hint}/index.d.ts +0 -0
- package/dist/cssm/components/screens/hint/index.js +16 -0
- package/dist/cssm/components/screens/hint/index.module.css +102 -0
- package/dist/cssm/components/screens/index.d.ts +4 -0
- package/dist/cssm/components/screens/index.js +31 -0
- package/dist/cssm/components/screens/initial/component.d.ts +3 -0
- package/dist/cssm/components/screens/initial/component.js +97 -0
- package/dist/cssm/components/screens/initial/countdown-section.d.ts +9 -0
- package/dist/cssm/components/screens/initial/countdown-section.js +41 -0
- package/dist/cssm/components/{overlimit → screens/initial}/index.d.ts +0 -0
- package/dist/cssm/components/screens/initial/index.js +20 -0
- package/dist/cssm/components/{sign-confirmation → screens/initial}/index.module.css +40 -50
- package/dist/cssm/components/screens/temp-block/component.d.ts +3 -0
- package/dist/cssm/components/screens/temp-block/component.js +36 -0
- package/dist/cssm/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
- package/dist/cssm/components/screens/temp-block/index.js +15 -0
- package/dist/cssm/components/{overlimit → screens/temp-block}/index.module.css +6 -28
- package/dist/cssm/context.d.ts +4 -0
- package/dist/cssm/context.js +27 -0
- package/dist/cssm/index.d.ts +3 -0
- package/dist/cssm/index.js +29 -20
- package/dist/cssm/index.module.css +5 -77
- package/dist/cssm/types.d.ts +130 -0
- package/dist/cssm/types.js +23 -0
- package/dist/cssm/utils.d.ts +30 -0
- package/dist/cssm/utils.js +84 -0
- package/dist/esm/component.d.ts +4 -164
- package/dist/esm/component.js +114 -102
- package/dist/esm/components/countdown-loader/component.d.ts +1 -1
- package/dist/esm/components/countdown-loader/component.js +1 -1
- package/dist/esm/components/countdown-loader/index.css +2 -2
- package/dist/esm/components/index.d.ts +1 -3
- package/dist/esm/components/index.js +11 -10
- package/dist/esm/components/screens/fatal-error/component.d.ts +3 -0
- package/dist/esm/components/screens/fatal-error/component.js +17 -0
- package/dist/esm/components/screens/fatal-error/index.css +61 -0
- package/dist/esm/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
- package/dist/esm/components/screens/fatal-error/index.js +5 -0
- package/dist/esm/components/screens/hint/component.d.ts +3 -0
- package/dist/esm/components/screens/hint/component.js +36 -0
- package/dist/esm/components/screens/hint/index.css +103 -0
- package/dist/esm/components/{countdown → screens/hint}/index.d.ts +0 -0
- package/dist/esm/components/screens/hint/index.js +7 -0
- package/dist/esm/components/screens/index.d.ts +4 -0
- package/dist/esm/components/screens/index.js +15 -0
- package/dist/esm/components/screens/initial/component.d.ts +3 -0
- package/dist/esm/components/screens/initial/component.js +86 -0
- package/dist/esm/components/screens/initial/countdown-section.d.ts +0 -0
- package/dist/esm/components/screens/initial/countdown-section.js +7 -0
- package/dist/esm/components/screens/initial/index.css +98 -0
- package/dist/esm/components/{overlimit → screens/initial}/index.d.ts +0 -0
- package/dist/esm/components/screens/initial/index.js +11 -0
- package/dist/esm/components/screens/temp-block/component.d.ts +3 -0
- package/dist/esm/components/screens/temp-block/component.js +28 -0
- package/dist/{modern/components/overlimit → esm/components/screens/temp-block}/index.css +9 -31
- package/dist/esm/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
- package/dist/esm/components/screens/temp-block/index.js +5 -0
- package/dist/esm/context.d.ts +4 -0
- package/dist/esm/context.js +23 -0
- package/dist/esm/countdown-section-7f4accdc.d.ts +9 -0
- package/dist/esm/countdown-section-7f4accdc.js +33 -0
- package/dist/esm/index.css +7 -79
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +13 -11
- package/dist/esm/types.d.ts +130 -0
- package/dist/esm/types.js +19 -0
- package/dist/esm/utils.d.ts +30 -0
- package/dist/esm/utils.js +76 -0
- package/dist/index.css +7 -79
- package/dist/index.d.ts +3 -0
- package/dist/index.js +25 -16
- package/dist/modern/component.d.ts +4 -164
- package/dist/modern/component.js +75 -102
- package/dist/modern/components/countdown-loader/component.d.ts +1 -1
- package/dist/modern/components/countdown-loader/component.js +1 -1
- package/dist/modern/components/countdown-loader/index.css +2 -2
- package/dist/modern/components/index.d.ts +1 -3
- package/dist/modern/components/index.js +11 -10
- package/dist/modern/components/screens/fatal-error/component.d.ts +3 -0
- package/dist/modern/components/screens/fatal-error/component.js +17 -0
- package/dist/modern/components/screens/fatal-error/index.css +61 -0
- package/dist/modern/components/{code-input → screens/fatal-error}/index.d.ts +0 -0
- package/dist/modern/components/screens/fatal-error/index.js +5 -0
- package/dist/modern/components/screens/hint/component.d.ts +3 -0
- package/dist/modern/components/screens/hint/component.js +36 -0
- package/dist/modern/components/screens/hint/index.css +103 -0
- package/dist/modern/components/{countdown → screens/hint}/index.d.ts +0 -0
- package/dist/modern/components/screens/hint/index.js +7 -0
- package/dist/modern/components/screens/index.d.ts +4 -0
- package/dist/modern/components/screens/index.js +15 -0
- package/dist/modern/components/screens/initial/component.d.ts +3 -0
- package/dist/modern/components/screens/initial/component.js +86 -0
- package/dist/modern/components/screens/initial/countdown-section.d.ts +0 -0
- package/dist/modern/components/screens/initial/countdown-section.js +7 -0
- package/dist/modern/components/screens/initial/index.css +98 -0
- package/dist/modern/components/{overlimit → screens/initial}/index.d.ts +0 -0
- package/dist/modern/components/screens/initial/index.js +11 -0
- package/dist/modern/components/screens/temp-block/component.d.ts +3 -0
- package/dist/modern/components/screens/temp-block/component.js +28 -0
- package/dist/{esm/components/overlimit → modern/components/screens/temp-block}/index.css +9 -31
- package/dist/modern/components/{sign-confirmation → screens/temp-block}/index.d.ts +0 -0
- package/dist/modern/components/screens/temp-block/index.js +5 -0
- package/dist/modern/context.d.ts +4 -0
- package/dist/modern/context.js +23 -0
- package/dist/modern/countdown-section-2c8a29e0.d.ts +9 -0
- package/dist/modern/countdown-section-2c8a29e0.js +32 -0
- package/dist/modern/index.css +7 -79
- package/dist/modern/index.d.ts +3 -0
- package/dist/modern/index.js +12 -10
- package/dist/modern/types.d.ts +130 -0
- package/dist/modern/types.js +19 -0
- package/dist/modern/utils.d.ts +30 -0
- package/dist/modern/utils.js +74 -0
- package/dist/types.d.ts +130 -0
- package/dist/types.js +23 -0
- package/dist/utils.d.ts +30 -0
- package/dist/utils.js +84 -0
- package/package.json +4 -3
- package/dist/components/code-input/component.d.ts +0 -16
- package/dist/components/code-input/component.js +0 -160
- package/dist/components/code-input/index.css +0 -99
- package/dist/components/code-input/index.js +0 -13
- package/dist/components/code-input/utils.d.ts +0 -10
- package/dist/components/code-input/utils.js +0 -21
- package/dist/components/countdown/component.d.ts +0 -23
- package/dist/components/countdown/component.js +0 -117
- package/dist/components/countdown/index.css +0 -85
- package/dist/components/countdown/index.js +0 -16
- package/dist/components/overlimit/component.d.ts +0 -12
- package/dist/components/overlimit/component.js +0 -73
- package/dist/components/overlimit/index.js +0 -17
- package/dist/components/sign-confirmation/component.d.ts +0 -37
- package/dist/components/sign-confirmation/component.js +0 -62
- package/dist/components/sign-confirmation/index.css +0 -108
- package/dist/components/sign-confirmation/index.js +0 -20
- package/dist/cssm/components/code-input/component.d.ts +0 -16
- package/dist/cssm/components/code-input/component.js +0 -159
- package/dist/cssm/components/code-input/index.js +0 -14
- package/dist/cssm/components/code-input/index.module.css +0 -98
- package/dist/cssm/components/code-input/utils.d.ts +0 -10
- package/dist/cssm/components/code-input/utils.js +0 -21
- package/dist/cssm/components/countdown/component.d.ts +0 -23
- package/dist/cssm/components/countdown/component.js +0 -117
- package/dist/cssm/components/countdown/index.js +0 -18
- package/dist/cssm/components/countdown/index.module.css +0 -84
- package/dist/cssm/components/overlimit/component.d.ts +0 -12
- package/dist/cssm/components/overlimit/component.js +0 -74
- package/dist/cssm/components/overlimit/index.js +0 -20
- package/dist/cssm/components/sign-confirmation/component.d.ts +0 -37
- package/dist/cssm/components/sign-confirmation/component.js +0 -64
- package/dist/cssm/components/sign-confirmation/index.js +0 -24
- package/dist/esm/components/code-input/component.d.ts +0 -16
- package/dist/esm/components/code-input/component.js +0 -151
- package/dist/esm/components/code-input/index.css +0 -99
- package/dist/esm/components/code-input/index.js +0 -5
- package/dist/esm/components/code-input/utils.d.ts +0 -10
- package/dist/esm/components/code-input/utils.js +0 -17
- package/dist/esm/components/countdown/component.d.ts +0 -23
- package/dist/esm/components/countdown/component.js +0 -107
- package/dist/esm/components/countdown/index.css +0 -85
- package/dist/esm/components/countdown/index.js +0 -7
- package/dist/esm/components/overlimit/component.d.ts +0 -12
- package/dist/esm/components/overlimit/component.js +0 -65
- package/dist/esm/components/overlimit/index.js +0 -9
- package/dist/esm/components/sign-confirmation/component.d.ts +0 -37
- package/dist/esm/components/sign-confirmation/component.js +0 -53
- package/dist/esm/components/sign-confirmation/index.css +0 -108
- package/dist/esm/components/sign-confirmation/index.js +0 -12
- package/dist/modern/components/code-input/component.d.ts +0 -16
- package/dist/modern/components/code-input/component.js +0 -123
- package/dist/modern/components/code-input/index.css +0 -99
- package/dist/modern/components/code-input/index.js +0 -5
- package/dist/modern/components/code-input/utils.d.ts +0 -10
- package/dist/modern/components/code-input/utils.js +0 -16
- package/dist/modern/components/countdown/component.d.ts +0 -23
- package/dist/modern/components/countdown/component.js +0 -102
- package/dist/modern/components/countdown/index.css +0 -85
- package/dist/modern/components/countdown/index.js +0 -7
- package/dist/modern/components/overlimit/component.d.ts +0 -12
- package/dist/modern/components/overlimit/component.js +0 -64
- package/dist/modern/components/overlimit/index.js +0 -9
- package/dist/modern/components/sign-confirmation/component.d.ts +0 -37
- package/dist/modern/components/sign-confirmation/component.js +0 -51
- package/dist/modern/components/sign-confirmation/index.css +0 -108
- package/dist/modern/components/sign-confirmation/index.js +0 -12
package/dist/context.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var utils = require('./utils.js');
|
|
7
|
+
|
|
8
|
+
var mockFn = function () { return undefined; };
|
|
9
|
+
var ConfirmationContext = React.createContext({
|
|
10
|
+
alignContent: 'left',
|
|
11
|
+
texts: {},
|
|
12
|
+
state: 'INITIAL',
|
|
13
|
+
screen: 'INITIAL',
|
|
14
|
+
requiredCharAmount: 5,
|
|
15
|
+
countdownDuration: utils.ONE_MINUTE,
|
|
16
|
+
timeLeft: utils.ONE_MINUTE,
|
|
17
|
+
tempBlockDuration: utils.ONE_DAY,
|
|
18
|
+
phone: '',
|
|
19
|
+
onTempBlockFinished: mockFn,
|
|
20
|
+
onInputFinished: mockFn,
|
|
21
|
+
onChangeState: mockFn,
|
|
22
|
+
onSmsRetryClick: mockFn,
|
|
23
|
+
onChangeScreen: mockFn,
|
|
24
|
+
onFatalErrorOkButtonClick: mockFn,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
exports.ConfirmationContext = ConfirmationContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type CountdownSectionProps = {
|
|
3
|
+
codeSendHintVisible: boolean;
|
|
4
|
+
timePassed: boolean;
|
|
5
|
+
processing: boolean;
|
|
6
|
+
handleSmsRetryClick: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const CountdownSection: FC<CountdownSectionProps>;
|
|
9
|
+
export { CountdownSection };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var cn = require('classnames');
|
|
5
|
+
var utils = require('./utils.js');
|
|
6
|
+
var context = require('./context.js');
|
|
7
|
+
var coreComponentsLoader = require('@alfalab/core-components-loader');
|
|
8
|
+
var coreComponentsButton = require('@alfalab/core-components-button');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
14
|
+
|
|
15
|
+
var styles = {"component":"confirmation__component_1ei7g","header":"confirmation__header_1ei7g","phone":"confirmation__phone_1ei7g","inputContainer":"confirmation__inputContainer_1ei7g","compact":"confirmation__compact_1ei7g","loaderWrap":"confirmation__loaderWrap_1ei7g","center":"confirmation__center_1ei7g","codeInput":"confirmation__codeInput_1ei7g","smsComeLink":"confirmation__smsComeLink_1ei7g","countdownContainer":"confirmation__countdownContainer_1ei7g","getCodeButton":"confirmation__getCodeButton_1ei7g","countdown":"confirmation__countdown_1ei7g","countdownTimer":"confirmation__countdownTimer_1ei7g"};
|
|
16
|
+
require('./components/screens/initial/index.css')
|
|
17
|
+
|
|
18
|
+
var CountdownSection = function (_a) {
|
|
19
|
+
var codeSendHintVisible = _a.codeSendHintVisible, timePassed = _a.timePassed, processing = _a.processing, handleSmsRetryClick = _a.handleSmsRetryClick;
|
|
20
|
+
var _b = React.useContext(context.ConfirmationContext), state = _b.state, texts = _b.texts, timeLeft = _b.timeLeft, blockSmsRetry = _b.blockSmsRetry;
|
|
21
|
+
if (codeSendHintVisible) {
|
|
22
|
+
return React__default['default'].createElement("div", { className: styles.countdownContainer }, texts.codeSended);
|
|
23
|
+
}
|
|
24
|
+
if (processing) {
|
|
25
|
+
return (React__default['default'].createElement("div", { className: cn__default['default'](styles.loaderWrap, styles.countdownContainer) },
|
|
26
|
+
React__default['default'].createElement(coreComponentsLoader.Loader, null),
|
|
27
|
+
React__default['default'].createElement("span", { className: styles.loaderText }, state === 'CODE_CHECKING' ? texts.codeChecking : texts.codeSending)));
|
|
28
|
+
}
|
|
29
|
+
if (blockSmsRetry) {
|
|
30
|
+
return React__default['default'].createElement("div", { className: styles.countdownContainer }, texts.noAttemptsLeft);
|
|
31
|
+
}
|
|
32
|
+
if (timePassed) {
|
|
33
|
+
return (React__default['default'].createElement(coreComponentsButton.Button, { size: 'xxs', view: 'secondary', onClick: handleSmsRetryClick, className: styles.getCodeButton }, texts.buttonRetry));
|
|
34
|
+
}
|
|
35
|
+
return (React__default['default'].createElement("div", { className: cn__default['default'](styles.countdown, styles.countdownContainer) },
|
|
36
|
+
texts.countdown,
|
|
37
|
+
React__default['default'].createElement("div", { className: styles.countdownTimer }, utils.formatMsAsMinutes(timeLeft))));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.CountdownSection = CountdownSection;
|
|
41
|
+
exports.styles = styles;
|
package/dist/cssm/component.d.ts
CHANGED
|
@@ -1,164 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ConfirmationProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Значение поля ввода
|
|
8
|
-
*/
|
|
9
|
-
code: string;
|
|
10
|
-
/**
|
|
11
|
-
* Флаг состояния обработки введенного кода.
|
|
12
|
-
*/
|
|
13
|
-
codeChecking?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Флаг состояния отправки кода.
|
|
16
|
-
*/
|
|
17
|
-
codeSending?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Состояние ошибки подписания
|
|
20
|
-
*/
|
|
21
|
-
error?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Состояние ошибки лимитов - превышено кол-во попыток ввода или запросов кода
|
|
24
|
-
*/
|
|
25
|
-
errorOverlimit?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Состояние критической ошибки лимитов - превышены все лимиты и попытки, пользователя блокируют
|
|
28
|
-
*/
|
|
29
|
-
errorOverlimitIsFatal?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Текст ошибки подписания
|
|
32
|
-
*/
|
|
33
|
-
errorText?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Дополнительный контент
|
|
36
|
-
*/
|
|
37
|
-
additionalContent?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Флаг критичности ошибки подписания.
|
|
40
|
-
* Если true - ошибка подписания рисуется на экране без поля ввода, но с кнопкой "Запросить код"
|
|
41
|
-
* Если false - ошибка подписания рисуется под полем ввода кода
|
|
42
|
-
*/
|
|
43
|
-
errorIsFatal?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Дополнительный класс
|
|
46
|
-
*/
|
|
47
|
-
className?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Номер телефона, на который отправляется сообщение.
|
|
50
|
-
*/
|
|
51
|
-
phone?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Управление необходимостью маскировать номер телефона
|
|
54
|
-
*/
|
|
55
|
-
hasPhoneMask?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Количество символов, которое можно ввести в поле ввода подписания до того, как произойдет автоотправка
|
|
58
|
-
*/
|
|
59
|
-
requiredCharAmount?: number;
|
|
60
|
-
/**
|
|
61
|
-
* Управление отображением таймера с кнопкой "Запросить код"
|
|
62
|
-
*/
|
|
63
|
-
hasSmsCountdown?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Длительность обратного отсчета на кнопке повторного запроса сообщения, в милисекундах
|
|
66
|
-
*/
|
|
67
|
-
countdownDuration?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Заголовок экрана подписания
|
|
70
|
-
*/
|
|
71
|
-
signTitle?: string | React.ReactNode;
|
|
72
|
-
/**
|
|
73
|
-
* Заголовок экрана ошибки лимитов
|
|
74
|
-
*/
|
|
75
|
-
overlimitTitle?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Текстовое описание блокировки формы при превышении лимитов
|
|
78
|
-
*/
|
|
79
|
-
overlimitText?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Длительно блокировки при превышении лимитов, в милисекундах
|
|
82
|
-
*/
|
|
83
|
-
overlimitCountdownDuration?: number;
|
|
84
|
-
/**
|
|
85
|
-
* Заголовок экрана блокирующей ошибки
|
|
86
|
-
*/
|
|
87
|
-
errorTitle?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
90
|
-
*/
|
|
91
|
-
dataTestId?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Текст лоадера при проверке кода
|
|
94
|
-
*/
|
|
95
|
-
codeCheckingText?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Текст лоадера при отправке кода
|
|
98
|
-
*/
|
|
99
|
-
codeSendingText?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Текст кнопки при блокирующей ошибке
|
|
102
|
-
*/
|
|
103
|
-
buttonErrorText?: string;
|
|
104
|
-
/**
|
|
105
|
-
* Текст кнопки "Вернуться назад" на экране помощи
|
|
106
|
-
*/
|
|
107
|
-
buttonReturnText?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Текст кнопки "Запросить новый код"
|
|
110
|
-
*/
|
|
111
|
-
buttonRetryText?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Позиционирование контента
|
|
114
|
-
*/
|
|
115
|
-
alignContent?: ContentAlign;
|
|
116
|
-
/**
|
|
117
|
-
* Сообщение, если не осталось попыток ввода кода.
|
|
118
|
-
* Кнопка повторной отправки смс при этом скрывается.
|
|
119
|
-
*/
|
|
120
|
-
noAttemptsLeftMessage?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Кастомный контент для компонента Countdown
|
|
123
|
-
*/
|
|
124
|
-
countdownContent?: ReactNode;
|
|
125
|
-
/**
|
|
126
|
-
* Обработчик события завершения ввода кода подписания
|
|
127
|
-
*/
|
|
128
|
-
onInputFinished: ({ code }: {
|
|
129
|
-
code: string;
|
|
130
|
-
}) => void;
|
|
131
|
-
/**
|
|
132
|
-
* Обработчик события изменения значения поля ввода кода подписания
|
|
133
|
-
*/
|
|
134
|
-
onInputChange: ({ code }: {
|
|
135
|
-
code: string;
|
|
136
|
-
}) => void;
|
|
137
|
-
/**
|
|
138
|
-
* Обработчик события нажатия на кнопку "Запросить код"
|
|
139
|
-
*/
|
|
140
|
-
onSmsRetryClick: () => void;
|
|
141
|
-
/**
|
|
142
|
-
* Обработчик события нажатия на кнопку "Запросить код" в блоке превышение лимитов
|
|
143
|
-
*/
|
|
144
|
-
onOverlimitSmsRetryClick?: () => void;
|
|
145
|
-
/**
|
|
146
|
-
* Обработчик события завершения обратного отсчета для повторного запроса сообщения
|
|
147
|
-
*/
|
|
148
|
-
onCountdownFinished?: () => void;
|
|
149
|
-
/**
|
|
150
|
-
* Обработчик события завершения обратного отсчета для блокировки формы
|
|
151
|
-
*/
|
|
152
|
-
onOverlimitCountdownFinished?: () => void;
|
|
153
|
-
/**
|
|
154
|
-
* Обработчик события нажатия на ссылку "не приходит сообщение?"
|
|
155
|
-
*/
|
|
156
|
-
onSmsHintLinkClick?: () => void;
|
|
157
|
-
/**
|
|
158
|
-
* Обработчик события нажатия на кнопку buttonErrorText (по дефолту "Понятно"), которая появляется при критической ошибке.
|
|
159
|
-
* Если не передан, то вызывается onSmsRetryClick
|
|
160
|
-
*/
|
|
161
|
-
onActionWithFatalError?: () => void;
|
|
162
|
-
};
|
|
163
|
-
declare const Confirmation: React.ForwardRefExoticComponent<ConfirmationProps & React.RefAttributes<HTMLDivElement>>;
|
|
164
|
-
export { ContentAlign, ConfirmationProps, Confirmation };
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConfirmationProps } from "./types";
|
|
3
|
+
declare const Confirmation: FC<ConfirmationProps>;
|
|
4
|
+
export { Confirmation };
|
package/dist/cssm/component.js
CHANGED
|
@@ -4,23 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var cn = require('classnames');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('
|
|
10
|
-
require('
|
|
7
|
+
var hooks = require('@alfalab/hooks');
|
|
8
|
+
var utils = require('./utils.js');
|
|
9
|
+
var context = require('./context.js');
|
|
10
|
+
var types = require('./types.js');
|
|
11
|
+
require('@alfalab/core-components-code-input/dist/cssm');
|
|
12
|
+
require('@alfalab/core-components-link/dist/cssm');
|
|
13
|
+
require('./components/screens/initial/index.module.css');
|
|
14
|
+
require('@alfalab/core-components-loader/dist/cssm');
|
|
15
|
+
require('@alfalab/core-components-button/dist/cssm');
|
|
16
|
+
require('./components/screens/initial/countdown-section.js');
|
|
17
|
+
var components_screens_initial_component = require('./components/screens/initial/component.js');
|
|
18
|
+
require('./components/screens/hint/index.module.css');
|
|
19
|
+
var components_screens_hint_component = require('./components/screens/hint/component.js');
|
|
20
|
+
require('./components/screens/fatal-error/index.module.css');
|
|
21
|
+
var components_screens_fatalError_component = require('./components/screens/fatal-error/component.js');
|
|
11
22
|
require('./components/countdown-loader/index.module.css');
|
|
12
23
|
require('./components/countdown-loader/component.js');
|
|
13
|
-
require('./components/
|
|
14
|
-
require('./components/
|
|
15
|
-
require('@alfalab/core-components-loader/dist/cssm');
|
|
16
|
-
require('./components/code-input/component.js');
|
|
17
|
-
require('./components/code-input/utils.js');
|
|
18
|
-
require('./components/code-input/index.module.css');
|
|
19
|
-
require('./components/sign-confirmation/index.module.css');
|
|
20
|
-
var components_signConfirmation_component = require('./components/sign-confirmation/component.js');
|
|
21
|
-
require('@alfalab/icons-glyph');
|
|
22
|
-
require('./components/overlimit/index.module.css');
|
|
23
|
-
var components_overlimit_component = require('./components/overlimit/component.js');
|
|
24
|
+
require('./components/screens/temp-block/index.module.css');
|
|
25
|
+
var components_screens_tempBlock_component = require('./components/screens/temp-block/component.js');
|
|
24
26
|
var styles = require('./index.module.css');
|
|
25
27
|
|
|
26
28
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -29,99 +31,109 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
29
31
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
30
32
|
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}, [onSmsRetryClick, noAttemptsLeftMessage]);
|
|
55
|
-
var handleCountdownFinished = React.useCallback(function () {
|
|
56
|
-
if (onCountdownFinished) {
|
|
57
|
-
onCountdownFinished();
|
|
58
|
-
}
|
|
59
|
-
}, [onCountdownFinished]);
|
|
60
|
-
var handleOverlimitCountdownFinished = React.useCallback(function () {
|
|
61
|
-
if (onOverlimitCountdownFinished) {
|
|
62
|
-
onOverlimitCountdownFinished();
|
|
63
|
-
}
|
|
64
|
-
}, [onOverlimitCountdownFinished]);
|
|
65
|
-
var handleSmsHintLinkClick = React.useCallback(function () {
|
|
66
|
-
setShowHint(true);
|
|
67
|
-
if (onSmsHintLinkClick) {
|
|
68
|
-
onSmsHintLinkClick();
|
|
34
|
+
/*! *****************************************************************************
|
|
35
|
+
Copyright (c) Microsoft Corporation.
|
|
36
|
+
|
|
37
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
38
|
+
purpose with or without fee is hereby granted.
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
41
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
42
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
43
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
44
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
45
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
47
|
+
***************************************************************************** */
|
|
48
|
+
var __assign = function () {
|
|
49
|
+
__assign = Object.assign || function __assign(t) {
|
|
50
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
51
|
+
s = arguments[i];
|
|
52
|
+
for (var p in s)
|
|
53
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
54
|
+
t[p] = s[p];
|
|
69
55
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
return __assign.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
function __rest(s, e) {
|
|
61
|
+
var t = {};
|
|
62
|
+
for (var p in s)
|
|
63
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
64
|
+
t[p] = s[p];
|
|
65
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
66
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
68
|
+
t[p[i]] = s[p[i]];
|
|
74
69
|
}
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var confirmationScreens = {
|
|
74
|
+
INITIAL: components_screens_initial_component.Initial,
|
|
75
|
+
HINT: components_screens_hint_component.Hint,
|
|
76
|
+
FATAL_ERROR: components_screens_fatalError_component.FatalError,
|
|
77
|
+
TEMP_BLOCK: components_screens_tempBlock_component.TempBlock,
|
|
78
|
+
};
|
|
79
|
+
var Confirmation = function (_a) {
|
|
80
|
+
var state = _a.state, screen = _a.screen, _b = _a.alignContent, alignContent = _b === void 0 ? 'left' : _b, children = _a.children, _c = _a.requiredCharAmount, requiredCharAmount = _c === void 0 ? 5 : _c, _d = _a.countdownDuration, countdownDuration = _d === void 0 ? utils.ONE_MINUTE : _d, _e = _a.tempBlockDuration, tempBlockDuration = _e === void 0 ? utils.ONE_DAY : _e, phone = _a.phone, blockSmsRetry = _a.blockSmsRetry, dataTestId = _a.dataTestId, className = _a.className, getScreensMap = _a.getScreensMap, onInputFinished = _a.onInputFinished, onChangeState = _a.onChangeState, onSmsRetryClick = _a.onSmsRetryClick, onChangeScreen = _a.onChangeScreen, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick, onTempBlockFinished = _a.onTempBlockFinished, restProps = __rest(_a, ["state", "screen", "alignContent", "children", "requiredCharAmount", "countdownDuration", "tempBlockDuration", "phone", "blockSmsRetry", "dataTestId", "className", "getScreensMap", "onInputFinished", "onChangeState", "onSmsRetryClick", "onChangeScreen", "onFatalErrorOkButtonClick", "onTempBlockFinished"]);
|
|
81
|
+
var _f = utils.useCountdown(countdownDuration), timeLeft = _f[0], startTimer = _f[1], stopTimer = _f[2];
|
|
82
|
+
var prevState = hooks.usePrevious(state);
|
|
83
|
+
React.useEffect(function () {
|
|
84
|
+
startTimer();
|
|
85
|
+
}, [startTimer]);
|
|
86
|
+
React.useEffect(function () {
|
|
87
|
+
/**
|
|
88
|
+
* Перезапускаем таймер после повторного запроса кода
|
|
89
|
+
*/
|
|
90
|
+
if (state === 'INITIAL' && prevState === 'CODE_SENDING') {
|
|
91
|
+
startTimer();
|
|
77
92
|
}
|
|
78
|
-
}, [
|
|
93
|
+
}, [state, prevState, startTimer]);
|
|
79
94
|
React.useEffect(function () {
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Останавливаем таймер, если новый экран/состояние не содержит таймер
|
|
97
|
+
*/
|
|
98
|
+
if (!['INITIAL', 'HINT'].includes(screen) || blockSmsRetry) {
|
|
99
|
+
stopTimer();
|
|
100
|
+
}
|
|
101
|
+
}, [state, screen, blockSmsRetry, stopTimer]);
|
|
102
|
+
var handleSmsRetry = function () {
|
|
103
|
+
onChangeState('CODE_SENDING');
|
|
104
|
+
onSmsRetryClick();
|
|
105
|
+
};
|
|
106
|
+
var handleInputFinished = function (code) {
|
|
107
|
+
onChangeState('CODE_CHECKING');
|
|
108
|
+
onInputFinished(code);
|
|
109
|
+
};
|
|
110
|
+
var handleFatalErrorOkButtonClick = function () {
|
|
111
|
+
if (onFatalErrorOkButtonClick) {
|
|
112
|
+
onFatalErrorOkButtonClick();
|
|
82
113
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
/**
|
|
108
|
-
* Для отображения в сторибуке
|
|
109
|
-
*/
|
|
110
|
-
Confirmation.defaultProps = {
|
|
111
|
-
countdownDuration: 60000,
|
|
112
|
-
errorTitle: 'Превышено количество попыток ввода кода',
|
|
113
|
-
hasPhoneMask: true,
|
|
114
|
-
hasSmsCountdown: true,
|
|
115
|
-
requiredCharAmount: 5,
|
|
116
|
-
signTitle: 'Введите код из\xa0сообщения',
|
|
117
|
-
codeSending: false,
|
|
118
|
-
codeChecking: false,
|
|
119
|
-
codeCheckingText: 'Проверка кода',
|
|
120
|
-
codeSendingText: 'Отправляем код',
|
|
121
|
-
buttonErrorText: 'Понятно',
|
|
122
|
-
buttonReturnText: 'Вернуться назад',
|
|
123
|
-
buttonRetryText: 'Запросить новый код',
|
|
124
|
-
alignContent: 'left',
|
|
114
|
+
};
|
|
115
|
+
var contextValue = {
|
|
116
|
+
alignContent: alignContent,
|
|
117
|
+
texts: __assign(__assign({}, types.defaultTexts), restProps.texts),
|
|
118
|
+
state: state,
|
|
119
|
+
screen: screen,
|
|
120
|
+
requiredCharAmount: requiredCharAmount,
|
|
121
|
+
countdownDuration: countdownDuration,
|
|
122
|
+
timeLeft: timeLeft,
|
|
123
|
+
tempBlockDuration: tempBlockDuration,
|
|
124
|
+
phone: phone,
|
|
125
|
+
blockSmsRetry: blockSmsRetry,
|
|
126
|
+
onTempBlockFinished: onTempBlockFinished,
|
|
127
|
+
onChangeState: onChangeState,
|
|
128
|
+
onChangeScreen: onChangeScreen,
|
|
129
|
+
onInputFinished: handleInputFinished,
|
|
130
|
+
onSmsRetryClick: handleSmsRetry,
|
|
131
|
+
onFatalErrorOkButtonClick: handleFatalErrorOkButtonClick,
|
|
132
|
+
};
|
|
133
|
+
var screensMap = getScreensMap ? getScreensMap(confirmationScreens) : confirmationScreens;
|
|
134
|
+
var CurrentScreen = screensMap[screen];
|
|
135
|
+
return (React__default['default'].createElement(context.ConfirmationContext.Provider, { value: contextValue },
|
|
136
|
+
React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, styles__default['default'][alignContent], className), "data-test-id": dataTestId }, CurrentScreen && React__default['default'].createElement(CurrentScreen, null))));
|
|
125
137
|
};
|
|
126
138
|
|
|
127
139
|
exports.Confirmation = Confirmation;
|
|
@@ -4,28 +4,29 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('react');
|
|
6
6
|
require('classnames');
|
|
7
|
-
require('@alfalab/core-components-button/dist/cssm');
|
|
8
|
-
require('@alfalab/core-components-link/dist/cssm');
|
|
9
|
-
require('@alfalab/utils');
|
|
10
7
|
require('@alfalab/hooks');
|
|
8
|
+
require('../utils.js');
|
|
9
|
+
require('../context.js');
|
|
10
|
+
require('@alfalab/core-components-code-input/dist/cssm');
|
|
11
|
+
require('@alfalab/core-components-link/dist/cssm');
|
|
12
|
+
require('./screens/initial/index.module.css');
|
|
13
|
+
require('@alfalab/core-components-loader/dist/cssm');
|
|
14
|
+
require('@alfalab/core-components-button/dist/cssm');
|
|
15
|
+
require('./screens/initial/countdown-section.js');
|
|
16
|
+
var components_screens_initial_component = require('./screens/initial/component.js');
|
|
17
|
+
require('./screens/hint/index.module.css');
|
|
18
|
+
var components_screens_hint_component = require('./screens/hint/component.js');
|
|
19
|
+
require('./screens/fatal-error/index.module.css');
|
|
20
|
+
var components_screens_fatalError_component = require('./screens/fatal-error/component.js');
|
|
11
21
|
require('./countdown-loader/index.module.css');
|
|
12
22
|
var components_countdownLoader_component = require('./countdown-loader/component.js');
|
|
13
|
-
require('./
|
|
14
|
-
var
|
|
15
|
-
require('@alfalab/core-components-loader/dist/cssm');
|
|
16
|
-
require('./code-input/component.js');
|
|
17
|
-
require('./code-input/utils.js');
|
|
18
|
-
require('./code-input/index.module.css');
|
|
19
|
-
require('./sign-confirmation/index.module.css');
|
|
20
|
-
var components_signConfirmation_component = require('./sign-confirmation/component.js');
|
|
21
|
-
require('@alfalab/icons-glyph');
|
|
22
|
-
require('./overlimit/index.module.css');
|
|
23
|
-
var components_overlimit_component = require('./overlimit/component.js');
|
|
23
|
+
require('./screens/temp-block/index.module.css');
|
|
24
|
+
var components_screens_tempBlock_component = require('./screens/temp-block/component.js');
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
|
|
28
|
+
exports.Initial = components_screens_initial_component.Initial;
|
|
29
|
+
exports.Hint = components_screens_hint_component.Hint;
|
|
30
|
+
exports.FatalError = components_screens_fatalError_component.FatalError;
|
|
27
31
|
exports.CountdownLoader = components_countdownLoader_component.CountdownLoader;
|
|
28
|
-
exports.
|
|
29
|
-
exports.formatMsAsMinutes = components_countdown_component.formatMsAsMinutes;
|
|
30
|
-
exports.SignConfirmation = components_signConfirmation_component.SignConfirmation;
|
|
31
|
-
exports.Overlimit = components_overlimit_component.Overlimit;
|
|
32
|
+
exports.TempBlock = components_screens_tempBlock_component.TempBlock;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
require('../../../utils.js');
|
|
7
|
+
var context = require('../../../context.js');
|
|
8
|
+
var coreComponentsButton = require('@alfalab/core-components-button/dist/cssm');
|
|
9
|
+
var styles = require('./index.module.css');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
15
|
+
|
|
16
|
+
var FatalError = function () {
|
|
17
|
+
var _a = React.useContext(context.ConfirmationContext), texts = _a.texts, onFatalErrorOkButtonClick = _a.onFatalErrorOkButtonClick;
|
|
18
|
+
return (React__default['default'].createElement(React.Fragment, null,
|
|
19
|
+
React__default['default'].createElement("h3", { className: styles__default['default'].header }, texts.fatalErrorTitle),
|
|
20
|
+
React__default['default'].createElement("div", { className: styles__default['default'].description }, texts.fatalErrorDescription),
|
|
21
|
+
React__default['default'].createElement(coreComponentsButton.Button, { size: 'xs', view: 'secondary', onClick: onFatalErrorOkButtonClick }, texts.fatalErrorButton)));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.FatalError = FatalError;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('react');
|
|
6
|
+
require('../../../utils.js');
|
|
7
|
+
require('../../../context.js');
|
|
8
|
+
require('@alfalab/core-components-button/dist/cssm');
|
|
9
|
+
require('./index.module.css');
|
|
10
|
+
var components_screens_fatalError_component = require('./component.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.FatalError = components_screens_fatalError_component.FatalError;
|