@uniformdev/design-system 19.62.0 → 19.62.1-alpha.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.
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
- window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
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
- window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
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.62.0",
3
+ "version": "19.62.1-alpha.9+0d26126b8",
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.62.0",
27
- "@uniformdev/richtext": "^19.62.0",
26
+ "@uniformdev/canvas": "^19.62.1-alpha.9+0d26126b8",
27
+ "@uniformdev/richtext": "^19.62.1-alpha.9+0d26126b8",
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": "dcaa272276caccfec3318d2a028cf4efa8a569a8"
68
+ "gitHead": "0d26126b85eaff4639e87677b802bd8cb5e4a1c4"
69
69
  }