@linzjs/windows 3.2.3 → 3.2.4

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 @@ dialog.LuiModalAsync, div.LuiModalAsync {
9
9
  border: none;
10
10
  display: flex;
11
11
  flex-direction: column;
12
- border-radius: lui.$unit-xs;
12
+ border-radius: 9px;
13
13
  padding: lui.$unit-md;
14
14
  min-width: 400px;
15
15
  max-width: 80vw;
@@ -29,7 +29,7 @@ dialog.LuiModalAsync, div.LuiModalAsync {
29
29
  }
30
30
 
31
31
  &.LuiModalPrefab-error {
32
- border-left: lui.$unit-xs solid lui.$error;
32
+ border-left: lui.$unit-sm solid lui.$error;
33
33
  }
34
34
 
35
35
  h4 {
@@ -134,9 +134,7 @@ export const LuiModalAsyncContextProvider = ({ children }: PropsWithChildren<unk
134
134
  */
135
135
  const modalHasView = useCallback(
136
136
  (modalInstance: LuiModalAsyncInstance): boolean =>
137
- modalInstance.ownerRef === openModalOnAllWindows ||
138
- modalInstance.ownerRef.current === null || // document.body
139
- !!modalInstance.ownerRef.current.ownerDocument?.defaultView,
137
+ modalInstance.ownerRef === openModalOnAllWindows || !!modalInstance.ownerRef.current?.ownerDocument.defaultView,
140
138
  [],
141
139
  );
142
140
 
@@ -9,7 +9,7 @@ export interface ShowModalProps {
9
9
  export const useShowAsyncModal = () => {
10
10
  const { showModal } = useContext(LuiModalAsyncContext);
11
11
 
12
- const modalOwnerRef = useRef<any>(null);
12
+ const modalOwnerRef = useRef<any>(document.body);
13
13
 
14
14
  const showModalAsync = useCallback(
15
15
  <CT extends ComponentType>(
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "3.2.3",
16
+ "version": "3.2.4",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": "^21",
19
19
  "lodash-es": ">=4",
@@ -46,7 +46,7 @@
46
46
  "semantic-release": "semantic-release"
47
47
  },
48
48
  "dependencies": {
49
- "@emotion/cache": "^11.13.0",
49
+ "@emotion/cache": "^11.13.1",
50
50
  "@emotion/react": "^11.13.0",
51
51
  "@emotion/styled": "^11.13.0",
52
52
  "lodash-es": ">=4",
@@ -58,21 +58,21 @@
58
58
  "@chromatic-com/storybook": "^1.6.1",
59
59
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
60
60
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
61
- "@linzjs/lui": "^21.40.5",
61
+ "@linzjs/lui": "^21.42.0",
62
62
  "@linzjs/step-ag-grid": "^21.2.1",
63
63
  "@rollup/plugin-commonjs": "^26.0.1",
64
64
  "@rollup/plugin-json": "^6.1.0",
65
65
  "@rollup/plugin-node-resolve": "^15.2.3",
66
- "@storybook/addon-docs": "^8.1.11",
67
- "@storybook/addon-essentials": "^8.1.11",
68
- "@storybook/addon-interactions": "^8.1.11",
69
- "@storybook/addon-links": "^8.1.11",
70
- "@storybook/addon-mdx-gfm": "^8.1.11",
71
- "@storybook/blocks": "^8.1.11",
72
- "@storybook/react": "^8.1.11",
73
- "@storybook/react-vite": "^8.1.11",
74
- "@storybook/test": "^8.1.11",
75
- "@storybook/test-runner": "^0.19.0",
66
+ "@storybook/addon-docs": "^8.2.6",
67
+ "@storybook/addon-essentials": "^8.2.6",
68
+ "@storybook/addon-interactions": "^8.2.6",
69
+ "@storybook/addon-links": "^8.2.6",
70
+ "@storybook/addon-mdx-gfm": "^8.2.6",
71
+ "@storybook/blocks": "^8.2.6",
72
+ "@storybook/react": "^8.2.6",
73
+ "@storybook/react-vite": "^8.2.6",
74
+ "@storybook/test": "^8.2.6",
75
+ "@storybook/test-runner": "^0.19.1",
76
76
  "@testing-library/jest-dom": "^6.4.7",
77
77
  "@testing-library/react": "^16.0.0",
78
78
  "@testing-library/user-event": "^14.5.2",
@@ -110,12 +110,12 @@
110
110
  "react": "^18.3.1",
111
111
  "react-app-polyfill": "^3.0.0",
112
112
  "react-dom": "^18.3.1",
113
- "rollup": "^4.19.0",
113
+ "rollup": "^4.19.1",
114
114
  "rollup-plugin-copy": "^3.5.0",
115
115
  "sass": "^1.77.8",
116
116
  "sass-loader": "^14.2.1",
117
117
  "semantic-release": "^22.0.12",
118
- "storybook": "^8.1.11",
118
+ "storybook": "^8.2.6",
119
119
  "style-loader": "^4.0.0",
120
120
  "stylelint": "^16.7.0",
121
121
  "stylelint-config-recommended": "^14.0.1",
@@ -124,7 +124,7 @@
124
124
  "stylelint-prettier": "5.0.2",
125
125
  "stylelint-scss": "6.4.1",
126
126
  "typescript": "^5.4.5",
127
- "vite": "^5.3.4"
127
+ "vite": "^5.3.5"
128
128
  },
129
129
  "eslintConfig": {
130
130
  "extends": [