tg-core-components 6.1.9-intl-test.2 → 6.1.9
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.
|
@@ -9,7 +9,7 @@ var translate = function translate(_ref, intl) {
|
|
|
9
9
|
values = _ref.values,
|
|
10
10
|
rest = _objectWithoutProperties(_ref, ['id', 'values']);
|
|
11
11
|
|
|
12
|
-
var cacheId =
|
|
12
|
+
var cacheId = id + (JSON.stringify(values) || '');
|
|
13
13
|
if (cache[cacheId]) return cache[cacheId];
|
|
14
14
|
|
|
15
15
|
var g = typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || {};
|
|
@@ -54,7 +54,7 @@ var ActivationCode = function ActivationCode(_ref) {
|
|
|
54
54
|
}, [autoFocus, code]);
|
|
55
55
|
|
|
56
56
|
useEffect(function () {
|
|
57
|
-
|
|
57
|
+
inputRef.current.value = code;
|
|
58
58
|
}, [code]);
|
|
59
59
|
|
|
60
60
|
var setCaretPosition = function setCaretPosition(from, to) {
|
|
@@ -15,7 +15,7 @@ var translate = function translate(_ref, intl) {
|
|
|
15
15
|
values = _ref.values,
|
|
16
16
|
rest = _objectWithoutProperties(_ref, ['id', 'values']);
|
|
17
17
|
|
|
18
|
-
var cacheId =
|
|
18
|
+
var cacheId = id + (JSON.stringify(values) || '');
|
|
19
19
|
if (cache[cacheId]) return cache[cacheId];
|
|
20
20
|
|
|
21
21
|
var g = typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || {};
|
|
@@ -93,7 +93,7 @@ var ActivationCode = function ActivationCode(_ref) {
|
|
|
93
93
|
}, [autoFocus, code]);
|
|
94
94
|
|
|
95
95
|
(0, _react.useEffect)(function () {
|
|
96
|
-
|
|
96
|
+
inputRef.current.value = code;
|
|
97
97
|
}, [code]);
|
|
98
98
|
|
|
99
99
|
var setCaretPosition = function setCaretPosition(from, to) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.9
|
|
3
|
+
"version": "6.1.9",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "18858f7706eb4bb71d9d1585741eb6fb2b60cb72"
|
|
80
80
|
}
|