@alfalab/core-components-confirmation 12.2.1 → 12.2.3

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 (129) hide show
  1. package/{component-8a46eb16.d.ts → component-f8aaad22.d.ts} +6 -4
  2. package/{component-8a46eb16.js → component-f8aaad22.js} +3 -2
  3. package/component.desktop.js +3 -3
  4. package/component.mobile.js +4 -4
  5. package/component.responsive.js +3 -3
  6. package/components/base-confirmation/component.js +3 -3
  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 +3 -3
  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 +2 -2
  15. package/components/screens/fatal-error/component.js +2 -2
  16. package/components/screens/fatal-error/index.css +5 -5
  17. package/components/screens/fatal-error/index.js +1 -1
  18. package/components/screens/hint/component.js +2 -2
  19. package/components/screens/hint/index.css +12 -12
  20. package/components/screens/hint/index.js +1 -1
  21. package/components/screens/index.js +2 -2
  22. package/components/screens/initial/component.js +2 -2
  23. package/components/screens/initial/countdown-section.js +2 -2
  24. package/components/screens/initial/index.css +18 -18
  25. package/components/screens/initial/index.js +2 -2
  26. package/components/screens/temp-block/component.js +1 -1
  27. package/components/screens/temp-block/index.css +5 -5
  28. package/{countdown-section-d2ec5a14.d.ts → countdown-section-68318269.d.ts} +0 -0
  29. package/{countdown-section-d2ec5a14.js → countdown-section-68318269.js} +2 -2
  30. package/cssm/{component-5c5b24ae.d.ts → component-4b21185d.d.ts} +6 -4
  31. package/cssm/{component-5c5b24ae.js → component-4b21185d.js} +2 -1
  32. package/cssm/component.desktop.js +2 -2
  33. package/cssm/component.mobile.js +2 -2
  34. package/cssm/component.responsive.js +2 -2
  35. package/cssm/components/base-confirmation/component.js +2 -2
  36. package/cssm/components/base-confirmation/index.d.ts +1 -1
  37. package/cssm/components/base-confirmation/index.js +2 -2
  38. package/cssm/components/index.js +1 -1
  39. package/cssm/components/screens/fatal-error/component.js +1 -1
  40. package/cssm/components/screens/fatal-error/index.js +1 -1
  41. package/cssm/components/screens/hint/component.js +1 -1
  42. package/cssm/components/screens/hint/index.js +1 -1
  43. package/cssm/components/screens/index.js +1 -1
  44. package/cssm/components/screens/initial/component.js +1 -1
  45. package/cssm/components/screens/initial/countdown-section.js +1 -1
  46. package/cssm/components/screens/initial/index.js +1 -1
  47. package/cssm/desktop.js +2 -2
  48. package/cssm/index.d.ts +1 -1
  49. package/cssm/index.js +2 -2
  50. package/cssm/mobile.js +2 -2
  51. package/cssm/responsive.js +2 -2
  52. package/cssm/utils.js +3 -5
  53. package/desktop.js +3 -3
  54. package/esm/{component-417f2884.d.ts → component-299f3d2b.d.ts} +6 -4
  55. package/esm/{component-417f2884.js → component-299f3d2b.js} +3 -2
  56. package/esm/component.desktop.js +3 -3
  57. package/esm/component.mobile.js +4 -4
  58. package/esm/component.responsive.js +3 -3
  59. package/esm/components/base-confirmation/component.js +3 -3
  60. package/esm/components/base-confirmation/index.css +3 -3
  61. package/esm/components/base-confirmation/index.d.ts +1 -1
  62. package/esm/components/base-confirmation/index.js +3 -3
  63. package/esm/components/countdown-loader/component.js +1 -1
  64. package/esm/components/countdown-loader/index.css +2 -2
  65. package/esm/components/header/component.js +1 -1
  66. package/esm/components/header/index.css +4 -4
  67. package/esm/components/index.js +2 -2
  68. package/esm/components/screens/fatal-error/component.js +2 -2
  69. package/esm/components/screens/fatal-error/index.css +5 -5
  70. package/esm/components/screens/fatal-error/index.js +1 -1
  71. package/esm/components/screens/hint/component.js +2 -2
  72. package/esm/components/screens/hint/index.css +12 -12
  73. package/esm/components/screens/hint/index.js +1 -1
  74. package/esm/components/screens/index.js +2 -2
  75. package/esm/components/screens/initial/component.js +2 -2
  76. package/esm/components/screens/initial/countdown-section.js +2 -2
  77. package/esm/components/screens/initial/index.css +18 -18
  78. package/esm/components/screens/initial/index.js +2 -2
  79. package/esm/components/screens/temp-block/component.js +1 -1
  80. package/esm/components/screens/temp-block/index.css +5 -5
  81. package/esm/{countdown-section-9777131a.d.ts → countdown-section-63fb6745.d.ts} +0 -0
  82. package/esm/{countdown-section-9777131a.js → countdown-section-63fb6745.js} +2 -2
  83. package/esm/desktop.js +3 -3
  84. package/esm/index.d.ts +1 -1
  85. package/esm/index.js +3 -3
  86. package/esm/mobile.css +2 -2
  87. package/esm/mobile.js +3 -3
  88. package/esm/responsive.js +3 -3
  89. package/esm/utils.js +3 -5
  90. package/index.d.ts +1 -1
  91. package/index.js +3 -3
  92. package/mobile.css +2 -2
  93. package/mobile.js +3 -3
  94. package/modern/component.desktop.js +3 -3
  95. package/modern/component.mobile.js +4 -4
  96. package/modern/component.responsive.js +3 -3
  97. package/modern/components/base-confirmation/component.js +4 -3
  98. package/modern/components/base-confirmation/index.css +3 -3
  99. package/modern/components/base-confirmation/index.js +2 -2
  100. package/modern/components/countdown-loader/component.js +1 -1
  101. package/modern/components/countdown-loader/index.css +2 -2
  102. package/modern/components/header/component.js +1 -1
  103. package/modern/components/header/index.css +4 -4
  104. package/modern/components/index.js +2 -2
  105. package/modern/components/screens/fatal-error/component.js +2 -2
  106. package/modern/components/screens/fatal-error/index.css +5 -5
  107. package/modern/components/screens/fatal-error/index.js +1 -1
  108. package/modern/components/screens/hint/component.js +2 -2
  109. package/modern/components/screens/hint/index.css +12 -12
  110. package/modern/components/screens/hint/index.js +1 -1
  111. package/modern/components/screens/index.js +2 -2
  112. package/modern/components/screens/initial/component.js +2 -2
  113. package/modern/components/screens/initial/countdown-section.js +2 -2
  114. package/modern/components/screens/initial/index.css +18 -18
  115. package/modern/components/screens/initial/index.js +2 -2
  116. package/modern/components/screens/temp-block/component.js +1 -1
  117. package/modern/components/screens/temp-block/index.css +5 -5
  118. package/modern/{countdown-section-f68f4069.d.ts → countdown-section-4c8d60ef.d.ts} +0 -0
  119. package/modern/{countdown-section-f68f4069.js → countdown-section-4c8d60ef.js} +2 -2
  120. package/modern/desktop.js +2 -2
  121. package/modern/index.d.ts +1 -1
  122. package/modern/index.js +2 -2
  123. package/modern/mobile.css +2 -2
  124. package/modern/mobile.js +2 -2
  125. package/modern/responsive.js +2 -2
  126. package/modern/utils.js +2 -4
  127. package/package.json +4 -4
  128. package/responsive.js +3 -3
  129. package/utils.js +3 -5
package/modern/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ConfirmationDesktop as Confirmation, DesktopConfirmationProps as ConfirmationProps } from "./desktop";
1
+ export { ConfirmationDesktop as Confirmation } from "./desktop";
2
2
  export * from "./responsive";
3
3
  export * from "./components/index";
4
4
  export * from "./context";
package/modern/index.js CHANGED
@@ -4,13 +4,13 @@ import '@alfalab/hooks';
4
4
  export { ONE_DAY, ONE_MINUTE, formatMsAsMinutes, useConfirmation, useCountdown } from './utils.js';
5
5
  export { ConfirmationContext } from './context.js';
6
6
  export { defaultTexts } from './types.js';
7
+ import '@alfalab/core-components-button/modern';
7
8
  import '@alfalab/core-components-code-input/modern';
8
9
  import '@alfalab/core-components-link/modern';
9
10
  import '@alfalab/core-components-typography/modern';
10
- import '@alfalab/core-components-button/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-f68f4069.js';
13
+ import './countdown-section-4c8d60ef.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: 1d6w3 */
2
- .confirmation__container_b0nsc {
1
+ /* hash: o7isy */
2
+ .confirmation__container_10y5j {
3
3
  max-width: 288px;
4
4
  }
package/modern/mobile.js CHANGED
@@ -4,13 +4,13 @@ import '@alfalab/hooks';
4
4
  import './utils.js';
5
5
  import './context.js';
6
6
  import './types.js';
7
+ import '@alfalab/core-components-button/modern';
7
8
  import '@alfalab/core-components-code-input/modern';
8
9
  import '@alfalab/core-components-link/modern';
9
10
  import '@alfalab/core-components-typography/modern';
10
- import '@alfalab/core-components-button/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-f68f4069.js';
13
+ import './countdown-section-4c8d60ef.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';
@@ -4,13 +4,13 @@ import '@alfalab/hooks';
4
4
  import './utils.js';
5
5
  import './context.js';
6
6
  import './types.js';
7
+ import '@alfalab/core-components-button/modern';
7
8
  import '@alfalab/core-components-code-input/modern';
8
9
  import '@alfalab/core-components-link/modern';
9
10
  import '@alfalab/core-components-typography/modern';
10
- import '@alfalab/core-components-button/modern';
11
11
  import './components/header/component.js';
12
12
  import '@alfalab/core-components-loader/modern';
13
- import './countdown-section-f68f4069.js';
13
+ import './countdown-section-4c8d60ef.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/utils.js CHANGED
@@ -48,10 +48,8 @@ const useCountdown = (countdownDuration, tick = 1000) => {
48
48
  timerId.current = window.setInterval(updateProgress, tick);
49
49
  }, [stopTimer, updateProgress, tick]);
50
50
  const timeLeft = countdownDuration - timePassed;
51
- useEffect(() => {
52
- return () => {
53
- stopTimer();
54
- };
51
+ useEffect(() => () => {
52
+ stopTimer();
55
53
  }, [stopTimer]);
56
54
  return [timeLeft, startTimer, stopTimer];
57
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "12.2.1",
3
+ "version": "12.2.3",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,14 +14,14 @@
14
14
  "directory": "dist"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-button": "^6.1.2",
17
+ "@alfalab/core-components-button": "^7.0.0",
18
18
  "@alfalab/core-components-code-input": "^2.1.1",
19
19
  "@alfalab/core-components-link": "^5.0.1",
20
20
  "@alfalab/core-components-loader": "^3.0.2",
21
- "@alfalab/core-components-typography": "^3.0.1",
21
+ "@alfalab/core-components-typography": "^3.0.3",
22
22
  "@alfalab/hooks": "^1.4.1",
23
23
  "@alfalab/icons-glyph": "^2.71.0",
24
- "@alfalab/utils": "^1.13.2",
24
+ "@alfalab/utils": "^1.13.3",
25
25
  "classnames": "^2.3.1"
26
26
  },
27
27
  "peerDependencies": {
package/responsive.js CHANGED
@@ -2,20 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-8a46eb16.js');
5
+ require('./component-f8aaad22.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/hooks');
9
9
  require('./utils.js');
10
10
  require('./context.js');
11
11
  require('./types.js');
12
+ require('@alfalab/core-components-button');
12
13
  require('@alfalab/core-components-code-input');
13
14
  require('@alfalab/core-components-link');
14
15
  require('@alfalab/core-components-typography');
15
- require('@alfalab/core-components-button');
16
16
  require('./components/header/component.js');
17
17
  require('@alfalab/core-components-loader');
18
- require('./countdown-section-d2ec5a14.js');
18
+ require('./countdown-section-68318269.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/utils.js CHANGED
@@ -53,11 +53,9 @@ var useCountdown = function (countdownDuration, tick) {
53
53
  timerId.current = window.setInterval(updateProgress, tick);
54
54
  }, [stopTimer, updateProgress, tick]);
55
55
  var timeLeft = countdownDuration - timePassed;
56
- React.useEffect(function () {
57
- return function () {
58
- stopTimer();
59
- };
60
- }, [stopTimer]);
56
+ React.useEffect(function () { return function () {
57
+ stopTimer();
58
+ }; }, [stopTimer]);
61
59
  return [timeLeft, startTimer, stopTimer];
62
60
  };
63
61
  var ONE_DAY = 24 * 60 * 60 * 1000;