@stratakit/mui 0.2.0 → 0.2.1
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/CHANGELOG.md +6 -0
- package/dist/DEV/Root.js +2 -2
- package/dist/Root.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- [#1188](https://github.com/iTwin/design-system/pull/1188): Fixed a race condition where stylesheets could be prematurely removed in cases where multiple components that use the same styles were conditionally rendered.
|
|
6
|
+
- Updated dependencies:
|
|
7
|
+
- @stratakit/foundations@0.4.6
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Potentially breaking changes
|
package/dist/DEV/Root.js
CHANGED
|
@@ -15,7 +15,7 @@ import { createTheme } from "./createTheme.js";
|
|
|
15
15
|
import css from "./styles.css.js";
|
|
16
16
|
const theme = createTheme();
|
|
17
17
|
const packageName = "@stratakit/mui";
|
|
18
|
-
const key = `${packageName}@${"0.2.
|
|
18
|
+
const key = `${packageName}@${"0.2.1"}`;
|
|
19
19
|
const Root = React.forwardRef(
|
|
20
20
|
(props, forwardedRef) => {
|
|
21
21
|
const { children, colorScheme, ...rest } = props;
|
|
@@ -57,7 +57,7 @@ DEV: ColorScheme.displayName = "ColorScheme";
|
|
|
57
57
|
function Styles() {
|
|
58
58
|
const rootContext = useSafeContext(RootContext);
|
|
59
59
|
if (!rootContext.versions?.has(packageName))
|
|
60
|
-
rootContext.versions?.set(packageName, "0.2.
|
|
60
|
+
rootContext.versions?.set(packageName, "0.2.1");
|
|
61
61
|
const { rootNode, loadStyles } = rootContext;
|
|
62
62
|
React.useInsertionEffect(() => {
|
|
63
63
|
if (!rootNode || !loadStyles) return;
|
package/dist/Root.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createTheme } from "./createTheme.js";
|
|
|
9
9
|
import css from "./styles.css.js";
|
|
10
10
|
const theme = createTheme();
|
|
11
11
|
const packageName = "@stratakit/mui";
|
|
12
|
-
const key = `${packageName}@${"0.2.
|
|
12
|
+
const key = `${packageName}@${"0.2.1"}`;
|
|
13
13
|
const Root = React.forwardRef((props, forwardedRef) => {
|
|
14
14
|
const {
|
|
15
15
|
children,
|
|
@@ -77,7 +77,7 @@ function Styles() {
|
|
|
77
77
|
const $ = _c(4);
|
|
78
78
|
const rootContext = useSafeContext(RootContext);
|
|
79
79
|
if (!rootContext.versions?.has(packageName)) {
|
|
80
|
-
rootContext.versions?.set(packageName, "0.2.
|
|
80
|
+
rootContext.versions?.set(packageName, "0.2.1");
|
|
81
81
|
}
|
|
82
82
|
const {
|
|
83
83
|
rootNode,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratakit/mui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"design system"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@stratakit/foundations": "^0.4.
|
|
48
|
+
"@stratakit/foundations": "^0.4.6",
|
|
49
49
|
"@stratakit/icons": "^0.3.0",
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"react-compiler-runtime": "^1.0.0"
|