@uniformdev/design-system 19.62.0 → 19.63.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/dist/esm/index.js +3 -2
- package/dist/index.js +3 -2
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -19356,8 +19356,9 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
19356
19356
|
var _a;
|
|
19357
19357
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
19358
19358
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
19359
|
-
if (useHashForState && typeof window !== "undefined") {
|
|
19360
|
-
|
|
19359
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
19360
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
19361
|
+
window.history.pushState(null, "", hashValue);
|
|
19361
19362
|
}
|
|
19362
19363
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
19363
19364
|
useEffect15(() => {
|
package/dist/index.js
CHANGED
|
@@ -21161,8 +21161,9 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
|
|
|
21161
21161
|
var _a;
|
|
21162
21162
|
const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
|
|
21163
21163
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
21164
|
-
if (useHashForState && typeof window !== "undefined") {
|
|
21165
|
-
|
|
21164
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
21165
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
21166
|
+
window.history.pushState(null, "", hashValue);
|
|
21166
21167
|
}
|
|
21167
21168
|
}, [tab.selectedId, onSelectedIdChange, useHashForState]);
|
|
21168
21169
|
(0, import_react134.useEffect)(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.63.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/react": "6.5.16",
|
|
24
24
|
"@types/react": "18.2.21",
|
|
25
25
|
"@types/react-dom": "18.2.7",
|
|
26
|
-
"@uniformdev/canvas": "^19.
|
|
27
|
-
"@uniformdev/richtext": "^19.
|
|
26
|
+
"@uniformdev/canvas": "^19.63.0",
|
|
27
|
+
"@uniformdev/richtext": "^19.63.0",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.31",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "2db8896a68c034ae5ab69fcb56a4c8c0077a8776"
|
|
69
69
|
}
|