@alfalab/core-components-confirmation 12.2.3 → 12.3.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.
Files changed (113) hide show
  1. package/{component-f8aaad22.d.ts → component-176a536e.d.ts} +0 -0
  2. package/{component-f8aaad22.js → component-176a536e.js} +3 -2
  3. package/component.desktop.js +2 -2
  4. package/component.mobile.js +3 -3
  5. package/component.responsive.js +2 -2
  6. package/components/base-confirmation/component.js +2 -2
  7. package/components/base-confirmation/index.css +3 -3
  8. package/components/base-confirmation/index.d.ts +1 -1
  9. package/components/base-confirmation/index.js +2 -2
  10. package/components/countdown-loader/component.js +1 -1
  11. package/components/countdown-loader/index.css +2 -2
  12. package/components/header/component.js +1 -1
  13. package/components/header/index.css +4 -4
  14. package/components/index.js +1 -1
  15. package/components/screens/fatal-error/component.js +1 -1
  16. package/components/screens/fatal-error/index.css +5 -5
  17. package/components/screens/hint/component.js +7 -3
  18. package/components/screens/hint/index.css +12 -12
  19. package/components/screens/index.js +1 -1
  20. package/components/screens/initial/component.js +3 -3
  21. package/components/screens/initial/countdown-section.js +1 -1
  22. package/components/screens/initial/index.css +18 -18
  23. package/components/screens/initial/index.js +1 -1
  24. package/components/screens/temp-block/component.js +1 -1
  25. package/components/screens/temp-block/index.css +5 -5
  26. package/{countdown-section-68318269.d.ts → countdown-section-f9b594c9.d.ts} +0 -0
  27. package/{countdown-section-68318269.js → countdown-section-f9b594c9.js} +1 -1
  28. package/cssm/{component-4b21185d.d.ts → component-cbe72bf1.d.ts} +0 -0
  29. package/cssm/{component-4b21185d.js → component-cbe72bf1.js} +2 -1
  30. package/cssm/component.desktop.js +1 -1
  31. package/cssm/component.mobile.js +1 -1
  32. package/cssm/component.responsive.js +1 -1
  33. package/cssm/components/base-confirmation/component.js +1 -1
  34. package/cssm/components/base-confirmation/index.d.ts +1 -1
  35. package/cssm/components/base-confirmation/index.js +1 -1
  36. package/cssm/components/screens/hint/component.js +6 -2
  37. package/cssm/components/screens/initial/component.js +2 -2
  38. package/cssm/desktop.js +1 -1
  39. package/cssm/index.js +1 -1
  40. package/cssm/mobile.js +1 -1
  41. package/cssm/responsive.js +1 -1
  42. package/cssm/types.d.ts +5 -1
  43. package/desktop.js +2 -2
  44. package/esm/{component-299f3d2b.d.ts → component-c701193b.d.ts} +0 -0
  45. package/esm/{component-299f3d2b.js → component-c701193b.js} +3 -2
  46. package/esm/component.desktop.js +2 -2
  47. package/esm/component.mobile.js +3 -3
  48. package/esm/component.responsive.js +2 -2
  49. package/esm/components/base-confirmation/component.js +2 -2
  50. package/esm/components/base-confirmation/index.css +3 -3
  51. package/esm/components/base-confirmation/index.d.ts +1 -1
  52. package/esm/components/base-confirmation/index.js +2 -2
  53. package/esm/components/countdown-loader/component.js +1 -1
  54. package/esm/components/countdown-loader/index.css +2 -2
  55. package/esm/components/header/component.js +1 -1
  56. package/esm/components/header/index.css +4 -4
  57. package/esm/components/index.js +1 -1
  58. package/esm/components/screens/fatal-error/component.js +1 -1
  59. package/esm/components/screens/fatal-error/index.css +5 -5
  60. package/esm/components/screens/hint/component.js +7 -3
  61. package/esm/components/screens/hint/index.css +12 -12
  62. package/esm/components/screens/index.js +1 -1
  63. package/esm/components/screens/initial/component.js +3 -3
  64. package/esm/components/screens/initial/countdown-section.js +1 -1
  65. package/esm/components/screens/initial/index.css +18 -18
  66. package/esm/components/screens/initial/index.js +1 -1
  67. package/esm/components/screens/temp-block/component.js +1 -1
  68. package/esm/components/screens/temp-block/index.css +5 -5
  69. package/esm/{countdown-section-63fb6745.d.ts → countdown-section-08eeb8e4.d.ts} +0 -0
  70. package/esm/{countdown-section-63fb6745.js → countdown-section-08eeb8e4.js} +1 -1
  71. package/esm/desktop.js +2 -2
  72. package/esm/index.js +2 -2
  73. package/esm/mobile.css +2 -2
  74. package/esm/mobile.js +2 -2
  75. package/esm/responsive.js +2 -2
  76. package/esm/types.d.ts +5 -1
  77. package/index.js +2 -2
  78. package/mobile.css +2 -2
  79. package/mobile.js +2 -2
  80. package/modern/component.desktop.js +2 -2
  81. package/modern/component.mobile.js +2 -2
  82. package/modern/component.responsive.js +2 -2
  83. package/modern/components/base-confirmation/component.js +4 -3
  84. package/modern/components/base-confirmation/index.css +3 -3
  85. package/modern/components/base-confirmation/index.js +1 -1
  86. package/modern/components/countdown-loader/component.js +1 -1
  87. package/modern/components/countdown-loader/index.css +2 -2
  88. package/modern/components/header/component.js +1 -1
  89. package/modern/components/header/index.css +4 -4
  90. package/modern/components/index.js +1 -1
  91. package/modern/components/screens/fatal-error/component.js +1 -1
  92. package/modern/components/screens/fatal-error/index.css +5 -5
  93. package/modern/components/screens/hint/component.js +7 -3
  94. package/modern/components/screens/hint/index.css +12 -12
  95. package/modern/components/screens/index.js +1 -1
  96. package/modern/components/screens/initial/component.js +4 -4
  97. package/modern/components/screens/initial/countdown-section.js +1 -1
  98. package/modern/components/screens/initial/index.css +18 -18
  99. package/modern/components/screens/initial/index.js +1 -1
  100. package/modern/components/screens/temp-block/component.js +1 -1
  101. package/modern/components/screens/temp-block/index.css +5 -5
  102. package/modern/{countdown-section-4c8d60ef.d.ts → countdown-section-64567d05.d.ts} +0 -0
  103. package/modern/{countdown-section-4c8d60ef.js → countdown-section-64567d05.js} +1 -1
  104. package/modern/desktop.js +1 -1
  105. package/modern/index.js +1 -1
  106. package/modern/mobile.css +2 -2
  107. package/modern/mobile.js +1 -1
  108. package/modern/responsive.js +1 -1
  109. package/modern/types.d.ts +5 -1
  110. package/package.json +4 -4
  111. package/responsive.js +2 -2
  112. package/send-stats.js +1 -1
  113. package/types.d.ts +5 -1
@@ -9,7 +9,7 @@ import '@alfalab/core-components-link/modern';
9
9
  import '@alfalab/core-components-typography/modern';
10
10
  import '../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import '../../countdown-section-4c8d60ef.js';
12
+ import '../../countdown-section-64567d05.js';
13
13
  export { Initial } from './initial/component.js';
14
14
  export { Hint } from './hint/component.js';
15
15
  export { FatalError } from './fatal-error/component.js';
@@ -9,16 +9,16 @@ import { Link } from '@alfalab/core-components-link/modern';
9
9
  import { Typography } from '@alfalab/core-components-typography/modern';
10
10
  import { Header } from '../../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import { s as styles, C as CountdownSection } from '../../../countdown-section-4c8d60ef.js';
12
+ import { s as styles, C as CountdownSection } from '../../../countdown-section-64567d05.js';
13
13
 
14
14
  const CODE_SEND_HINT_VISIBLE_DURATION = 2000;
15
15
  const Initial = ({ mobile }) => {
16
- const { state, alignContent, texts, requiredCharAmount, timeLeft, phone, onChangeState, onInputFinished, onChangeScreen, onSmsRetryClick, } = useContext(ConfirmationContext);
16
+ const { state, alignContent, texts, requiredCharAmount, timeLeft, phone, clearCodeOnError, onChangeState, onInputFinished, onChangeScreen, onSmsRetryClick, } = useContext(ConfirmationContext);
17
17
  const prevState = usePrevious(state);
18
18
  const inputRef = useRef(null);
19
19
  const [codeSendHintVisible, setCodeSendHintVisible] = useState(false);
20
20
  const timerId = useRef(0);
21
- const handleInputComplete = code => {
21
+ const handleInputComplete = (code) => {
22
22
  onInputFinished(code);
23
23
  };
24
24
  const handleSmsHintLinkClick = () => {
@@ -79,7 +79,7 @@ const Initial = ({ mobile }) => {
79
79
  React.createElement(Typography.Text, { view: 'primary-medium', color: 'primary', className: cn(styles.phone, { [styles.typographyTheme]: !mobile }) },
80
80
  "\u041A\u043E\u0434 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D \u043D\u0430 ",
81
81
  phone),
82
- React.createElement(CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn(styles.containerInput, styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange }),
82
+ React.createElement(CodeInput, { disabled: processing, error: getCodeInputError(), ref: inputRef, fields: requiredCharAmount, className: cn(styles.containerInput, styles.codeInput), onComplete: handleInputComplete, onChange: handleInputChange, clearCodeOnError: clearCodeOnError }),
83
83
  React.createElement(CountdownSection, { processing: processing, timePassed: timePassed, codeSendHintVisible: codeSendHintVisible, handleSmsRetryClick: handleSmsRetryClick, mobile: mobile }),
84
84
  mobile ? (React.createElement(Button, { onClick: handleSmsHintLinkClick, view: 'link', size: 'xs' }, texts.linkToHint)) : (React.createElement(Link, { onClick: handleSmsHintLinkClick, className: styles.smsComeLink, view: mobile ? 'primary' : 'secondary', pseudo: true }, texts.linkToHint))));
85
85
  };
@@ -5,4 +5,4 @@ import '../../../context.js';
5
5
  import '@alfalab/core-components-button/modern';
6
6
  import '@alfalab/core-components-typography/modern';
7
7
  import '@alfalab/core-components-loader/modern';
8
- export { C as CountdownSection } from '../../../countdown-section-4c8d60ef.js';
8
+ export { C as CountdownSection } from '../../../countdown-section-64567d05.js';
@@ -1,4 +1,4 @@
1
- /* hash: 139og */
1
+ /* hash: esit0 */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -38,67 +38,67 @@
38
38
 
39
39
  /* header */
40
40
  }
41
- .confirmation__component_13j22 {
41
+ .confirmation__component_181fk {
42
42
  display: flex;
43
43
  flex-direction: column;
44
44
  }
45
- .confirmation__typographyTheme_13j22 {
45
+ .confirmation__typographyTheme_181fk {
46
46
  font-size: var(--confirmation-text-font-size);
47
47
  line-height: var(--confirmation-text-line-height);
48
48
  font-weight: var(--confirmation-text-font-weight);
49
49
  font-family: var(--confirmation-text-font-family);
50
50
  color: var(--confirmation-text-color);
51
51
  }
52
- .confirmation__phone_13j22 {
52
+ .confirmation__phone_181fk {
53
53
  color: var(--color-light-text-primary);
54
54
  margin-bottom: var(--gap-2xl);
55
55
  }
56
- .confirmation__compact_13j22 {
56
+ .confirmation__compact_181fk {
57
57
  margin-bottom: var(--gap-xl);
58
58
  }
59
- .confirmation__loaderWrap_13j22 {
59
+ .confirmation__loaderWrap_181fk {
60
60
  display: flex;
61
61
  align-items: center;
62
62
  }
63
- .confirmation__left_13j22 {
63
+ .confirmation__left_181fk {
64
64
  align-items: flex-start;
65
65
  }
66
- .confirmation__center_13j22 {
66
+ .confirmation__center_181fk {
67
67
  align-items: center;
68
68
  text-align: center
69
69
  }
70
- .confirmation__center_13j22 .confirmation__loaderWrap_13j22 {
70
+ .confirmation__center_181fk .confirmation__loaderWrap_181fk {
71
71
  justify-content: center;
72
72
  }
73
- .confirmation__center_13j22 input {
73
+ .confirmation__center_181fk input {
74
74
  margin: 0 var(--gap-2xs);
75
75
  }
76
- .confirmation__codeInput_13j22 {
76
+ .confirmation__codeInput_181fk {
77
77
  margin-bottom: var(--gap-s);
78
78
  }
79
- .confirmation__smsComeLink_13j22 {
79
+ .confirmation__smsComeLink_181fk {
80
80
  font-size: 14px;
81
81
  line-height: 20px;
82
82
  font-weight: 500;
83
83
  }
84
- .confirmation__countdownContainer_13j22 {
84
+ .confirmation__countdownContainer_181fk {
85
85
  color: var(--color-light-text-secondary);
86
86
  margin-bottom: var(--gap-xl);
87
87
  }
88
- .confirmation__countdownMobile_13j22 {
88
+ .confirmation__countdownMobile_181fk {
89
89
  margin-bottom: var(--gap-l);
90
90
  }
91
- .confirmation__countdownLoaderMobile_13j22 {
91
+ .confirmation__countdownLoaderMobile_181fk {
92
92
  margin-bottom: var(--gap-m);
93
93
  }
94
- .confirmation__getCodeButton_13j22 {
94
+ .confirmation__getCodeButton_181fk {
95
95
  position: relative;
96
96
  top: var(--gap-2xs-neg);
97
97
  margin-bottom: var(--gap-m);
98
98
  }
99
- .confirmation__getCodeButtonMobile_13j22 {
99
+ .confirmation__getCodeButtonMobile_181fk {
100
100
  margin-bottom: 0;
101
101
  }
102
- .confirmation__containerInput_13j22 {
102
+ .confirmation__containerInput_181fk {
103
103
  min-height: 80px;
104
104
  }
@@ -9,5 +9,5 @@ import '@alfalab/core-components-link/modern';
9
9
  import '@alfalab/core-components-typography/modern';
10
10
  import '../../header/component.js';
11
11
  import '@alfalab/core-components-loader/modern';
12
- import '../../../countdown-section-4c8d60ef.js';
12
+ import '../../../countdown-section-64567d05.js';
13
13
  export { Initial } from './component.js';
@@ -6,7 +6,7 @@ import { Typography } from '@alfalab/core-components-typography/modern';
6
6
  import { Header } from '../../header/component.js';
7
7
  import { CountdownLoader } from '../../countdown-loader/component.js';
8
8
 
9
- var styles = {"typographyTheme":"confirmation__typographyTheme_1pgrz","description":"confirmation__description_1pgrz","countdownWrap":"confirmation__countdownWrap_1pgrz","loader":"confirmation__loader_1pgrz"};
9
+ var styles = {"typographyTheme":"confirmation__typographyTheme_1kyeh","description":"confirmation__description_1kyeh","countdownWrap":"confirmation__countdownWrap_1kyeh","loader":"confirmation__loader_1kyeh"};
10
10
  require('./index.css')
11
11
 
12
12
  const TempBlock = ({ mobile }) => {
@@ -1,4 +1,4 @@
1
- /* hash: rbhai */
1
+ /* hash: p8h57 */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -31,20 +31,20 @@
31
31
 
32
32
  /* header */
33
33
  }
34
- .confirmation__typographyTheme_1pgrz {
34
+ .confirmation__typographyTheme_1kyeh {
35
35
  font-size: var(--confirmation-text-font-size);
36
36
  line-height: var(--confirmation-text-line-height);
37
37
  font-weight: var(--confirmation-text-font-weight);
38
38
  font-family: var(--confirmation-text-font-family);
39
39
  color: var(--confirmation-text-color);
40
40
  }
41
- .confirmation__description_1pgrz {
41
+ .confirmation__description_1kyeh {
42
42
  margin-bottom: var(--gap-xs);
43
43
  }
44
- .confirmation__countdownWrap_1pgrz {
44
+ .confirmation__countdownWrap_1kyeh {
45
45
  display: flex;
46
46
  align-items: center;
47
47
  }
48
- .confirmation__loader_1pgrz {
48
+ .confirmation__loader_1kyeh {
49
49
  margin-right: var(--gap-xs);
50
50
  }
@@ -6,7 +6,7 @@ import { Button } from '@alfalab/core-components-button/modern';
6
6
  import { Typography } from '@alfalab/core-components-typography/modern';
7
7
  import { Loader } from '@alfalab/core-components-loader/modern';
8
8
 
9
- var styles = {"component":"confirmation__component_13j22","typographyTheme":"confirmation__typographyTheme_13j22","phone":"confirmation__phone_13j22","compact":"confirmation__compact_13j22","loaderWrap":"confirmation__loaderWrap_13j22","left":"confirmation__left_13j22","center":"confirmation__center_13j22","codeInput":"confirmation__codeInput_13j22","smsComeLink":"confirmation__smsComeLink_13j22","countdownContainer":"confirmation__countdownContainer_13j22","countdownMobile":"confirmation__countdownMobile_13j22","countdownLoaderMobile":"confirmation__countdownLoaderMobile_13j22","getCodeButton":"confirmation__getCodeButton_13j22","getCodeButtonMobile":"confirmation__getCodeButtonMobile_13j22","containerInput":"confirmation__containerInput_13j22"};
9
+ var styles = {"component":"confirmation__component_181fk","typographyTheme":"confirmation__typographyTheme_181fk","phone":"confirmation__phone_181fk","compact":"confirmation__compact_181fk","loaderWrap":"confirmation__loaderWrap_181fk","left":"confirmation__left_181fk","center":"confirmation__center_181fk","codeInput":"confirmation__codeInput_181fk","smsComeLink":"confirmation__smsComeLink_181fk","countdownContainer":"confirmation__countdownContainer_181fk","countdownMobile":"confirmation__countdownMobile_181fk","countdownLoaderMobile":"confirmation__countdownLoaderMobile_181fk","getCodeButton":"confirmation__getCodeButton_181fk","getCodeButtonMobile":"confirmation__getCodeButtonMobile_181fk","containerInput":"confirmation__containerInput_181fk"};
10
10
  require('./components/screens/initial/index.css')
11
11
 
12
12
  const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
package/modern/desktop.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-4c8d60ef.js';
13
+ import './countdown-section-64567d05.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
package/modern/index.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-4c8d60ef.js';
13
+ import './countdown-section-64567d05.js';
14
14
  export { Initial } from './components/screens/initial/component.js';
15
15
  export { Hint } from './components/screens/hint/component.js';
16
16
  export { FatalError } from './components/screens/fatal-error/component.js';
package/modern/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: o7isy */
2
- .confirmation__container_10y5j {
1
+ /* hash: rmazf */
2
+ .confirmation__container_15gj1 {
3
3
  max-width: 288px;
4
4
  }
package/modern/mobile.js CHANGED
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-4c8d60ef.js';
13
+ import './countdown-section-64567d05.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
@@ -10,7 +10,7 @@ import '@alfalab/core-components-link/modern';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-4c8d60ef.js';
13
+ import './countdown-section-64567d05.js';
14
14
  import './components/screens/initial/component.js';
15
15
  import './components/screens/hint/component.js';
16
16
  import './components/screens/fatal-error/component.js';
package/modern/types.d.ts CHANGED
@@ -48,6 +48,10 @@ type ConfirmationProps = {
48
48
  * Сss класс для стилизации общей обёртки
49
49
  */
50
50
  className?: string;
51
+ /**
52
+ * Флаг - нужно ли очищать код при возникновении ошибки
53
+ */
54
+ clearCodeOnError?: boolean;
51
55
  /**
52
56
  * Функция обновления состояния компонента
53
57
  */
@@ -81,7 +85,7 @@ type ConfirmationProps = {
81
85
  */
82
86
  children?: ReactNode;
83
87
  };
84
- type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
88
+ type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
85
89
  timeLeft: number;
86
90
  };
87
91
  type ConfirmationTexts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "12.2.3",
3
+ "version": "12.3.0",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,10 +14,10 @@
14
14
  "directory": "dist"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-button": "^7.0.0",
18
- "@alfalab/core-components-code-input": "^2.1.1",
17
+ "@alfalab/core-components-button": "^7.0.1",
18
+ "@alfalab/core-components-code-input": "^2.2.0",
19
19
  "@alfalab/core-components-link": "^5.0.1",
20
- "@alfalab/core-components-loader": "^3.0.2",
20
+ "@alfalab/core-components-loader": "^3.0.3",
21
21
  "@alfalab/core-components-typography": "^3.0.3",
22
22
  "@alfalab/hooks": "^1.4.1",
23
23
  "@alfalab/icons-glyph": "^2.71.0",
package/responsive.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-f8aaad22.js');
5
+ require('./component-176a536e.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/hooks');
@@ -15,7 +15,7 @@ require('@alfalab/core-components-link');
15
15
  require('@alfalab/core-components-typography');
16
16
  require('./components/header/component.js');
17
17
  require('@alfalab/core-components-loader');
18
- require('./countdown-section-68318269.js');
18
+ require('./countdown-section-f9b594c9.js');
19
19
  require('./components/screens/initial/component.js');
20
20
  require('./components/screens/hint/component.js');
21
21
  require('./components/screens/fatal-error/component.js');
package/send-stats.js CHANGED
@@ -55,7 +55,7 @@ async function main() {
55
55
  };
56
56
 
57
57
  return new Promise((resolve, reject) => {
58
- const req = http.request(options, res => {
58
+ const req = http.request(options, (res) => {
59
59
  res.on('end', () => {
60
60
  resolve();
61
61
  });
package/types.d.ts CHANGED
@@ -48,6 +48,10 @@ type ConfirmationProps = {
48
48
  * Сss класс для стилизации общей обёртки
49
49
  */
50
50
  className?: string;
51
+ /**
52
+ * Флаг - нужно ли очищать код при возникновении ошибки
53
+ */
54
+ clearCodeOnError?: boolean;
51
55
  /**
52
56
  * Функция обновления состояния компонента
53
57
  */
@@ -81,7 +85,7 @@ type ConfirmationProps = {
81
85
  */
82
86
  children?: ReactNode;
83
87
  };
84
- type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished'> & {
88
+ type TConfirmationContext = Required<Pick<ConfirmationProps, 'alignContent' | 'texts' | 'state' | 'screen' | 'requiredCharAmount' | 'onInputFinished' | 'countdownDuration' | 'onChangeState' | 'onSmsRetryClick' | 'onChangeScreen' | 'onFatalErrorOkButtonClick' | 'tempBlockDuration'>> & Pick<ConfirmationProps, 'phone' | 'blockSmsRetry' | 'onTempBlockFinished' | 'clearCodeOnError'> & {
85
89
  timeLeft: number;
86
90
  };
87
91
  type ConfirmationTexts = {