@linzjs/windows 3.3.0 → 3.3.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.
|
@@ -118,9 +118,15 @@ export const LuiModalAsyncContextProvider = ({ children }: PropsWithChildren<unk
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
}).then((result) => {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
return new Promise((resolve) => {
|
|
122
|
+
// Close modal
|
|
123
|
+
setModals((modals) => {
|
|
124
|
+
// Defer resolving to give react a chance to update the view allowing the async event model to run.
|
|
125
|
+
// Just in case the task following this is long-running with non IO code, which will block the event queue.
|
|
126
|
+
setTimeout(() => resolve(result), 10);
|
|
127
|
+
return modals.filter((e) => e.uuid !== uuid);
|
|
128
|
+
});
|
|
129
|
+
});
|
|
124
130
|
}) as PromiseWithResolve<any>;
|
|
125
131
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
126
132
|
promise.resolve = extResolve!;
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"popout"
|
|
14
14
|
],
|
|
15
15
|
"main": "./dist/index.ts",
|
|
16
|
-
"version": "3.3.
|
|
16
|
+
"version": "3.3.1",
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@linzjs/lui": "^21",
|
|
19
19
|
"lodash-es": ">=4",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/react": "^11.13.3",
|
|
51
51
|
"@emotion/styled": "^11.13.0",
|
|
52
52
|
"lodash-es": ">=4",
|
|
53
|
-
"react-rnd": "^10.4.
|
|
53
|
+
"react-rnd": "^10.4.13",
|
|
54
54
|
"usehooks-ts": "^3.1.0",
|
|
55
55
|
"uuid": "^10.0.0"
|
|
56
56
|
},
|
|
@@ -58,48 +58,48 @@
|
|
|
58
58
|
"@chromatic-com/storybook": "^2.0.2",
|
|
59
59
|
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
|
60
60
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
|
61
|
-
"@linzjs/lui": "^21.
|
|
62
|
-
"@linzjs/step-ag-grid": "^
|
|
63
|
-
"@rollup/plugin-commonjs": "^
|
|
61
|
+
"@linzjs/lui": "^21.49.0",
|
|
62
|
+
"@linzjs/step-ag-grid": "^22.2.3",
|
|
63
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
64
64
|
"@rollup/plugin-json": "^6.1.0",
|
|
65
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
66
|
-
"@storybook/addon-docs": "^8.3.
|
|
67
|
-
"@storybook/addon-essentials": "^8.3.
|
|
68
|
-
"@storybook/addon-interactions": "^8.3.
|
|
69
|
-
"@storybook/addon-links": "^8.3.
|
|
70
|
-
"@storybook/addon-mdx-gfm": "^8.3.
|
|
71
|
-
"@storybook/blocks": "^8.3.
|
|
72
|
-
"@storybook/react": "^8.3.
|
|
73
|
-
"@storybook/react-vite": "^8.3.
|
|
74
|
-
"@storybook/test": "^8.3.
|
|
65
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
66
|
+
"@storybook/addon-docs": "^8.3.5",
|
|
67
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
68
|
+
"@storybook/addon-interactions": "^8.3.5",
|
|
69
|
+
"@storybook/addon-links": "^8.3.5",
|
|
70
|
+
"@storybook/addon-mdx-gfm": "^8.3.5",
|
|
71
|
+
"@storybook/blocks": "^8.3.5",
|
|
72
|
+
"@storybook/react": "^8.3.5",
|
|
73
|
+
"@storybook/react-vite": "^8.3.5",
|
|
74
|
+
"@storybook/test": "^8.3.5",
|
|
75
75
|
"@storybook/test-runner": "^0.19.1",
|
|
76
|
-
"@testing-library/jest-dom": "^6.
|
|
76
|
+
"@testing-library/jest-dom": "^6.6.1",
|
|
77
77
|
"@testing-library/react": "^16.0.1",
|
|
78
78
|
"@testing-library/user-event": "^14.5.2",
|
|
79
79
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
80
80
|
"@types/jest": "^29.5.13",
|
|
81
81
|
"@types/lodash-es": "^4.17.12",
|
|
82
|
-
"@types/node": "^22.
|
|
83
|
-
"@types/react": "^18.3.
|
|
84
|
-
"@types/react-dom": "^18.3.
|
|
82
|
+
"@types/node": "^22.7.6",
|
|
83
|
+
"@types/react": "^18.3.11",
|
|
84
|
+
"@types/react-dom": "^18.3.1",
|
|
85
85
|
"@types/uuid": "^10.0.0",
|
|
86
86
|
"@typescript-eslint/eslint-plugin": "^7.17.0",
|
|
87
87
|
"@typescript-eslint/parser": "^7.17.0",
|
|
88
|
-
"ag-grid-community": "^
|
|
89
|
-
"ag-grid-react": "^
|
|
90
|
-
"esbuild": "^0.
|
|
88
|
+
"ag-grid-community": "^32.2.2",
|
|
89
|
+
"ag-grid-react": "^32.2.2",
|
|
90
|
+
"esbuild": "^0.24.0",
|
|
91
91
|
"eslint": "^8.57.0",
|
|
92
92
|
"eslint-config-prettier": "^9.1.0",
|
|
93
93
|
"eslint-config-react-app": "^7.0.1",
|
|
94
94
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
95
|
-
"eslint-plugin-import": "^2.
|
|
96
|
-
"eslint-plugin-jest": "^28.
|
|
97
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
98
|
-
"eslint-plugin-prettier": "^5.1
|
|
99
|
-
"eslint-plugin-react": "^7.
|
|
95
|
+
"eslint-plugin-import": "^2.31.0",
|
|
96
|
+
"eslint-plugin-jest": "^28.8.3",
|
|
97
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
98
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
99
|
+
"eslint-plugin-react": "^7.37.1",
|
|
100
100
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
101
101
|
"eslint-plugin-storybook": "^0.8.0",
|
|
102
|
-
"eslint-plugin-testing-library": "^6.
|
|
102
|
+
"eslint-plugin-testing-library": "^6.3.0",
|
|
103
103
|
"jest": "^29.7.0",
|
|
104
104
|
"jest-canvas-mock": "^2.5.2",
|
|
105
105
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -110,21 +110,21 @@
|
|
|
110
110
|
"react": "^18.3.1",
|
|
111
111
|
"react-app-polyfill": "^3.0.0",
|
|
112
112
|
"react-dom": "^18.3.1",
|
|
113
|
-
"rollup": "^4.
|
|
113
|
+
"rollup": "^4.24.0",
|
|
114
114
|
"rollup-plugin-copy": "^3.5.0",
|
|
115
|
-
"sass": "^1.
|
|
115
|
+
"sass": "^1.80.0",
|
|
116
116
|
"sass-loader": "^14.2.1",
|
|
117
117
|
"semantic-release": "^22.0.12",
|
|
118
|
-
"storybook": "^8.3.
|
|
118
|
+
"storybook": "^8.3.5",
|
|
119
119
|
"style-loader": "^4.0.0",
|
|
120
|
-
"stylelint": "^16.
|
|
120
|
+
"stylelint": "^16.10.0",
|
|
121
121
|
"stylelint-config-recommended": "^14.0.1",
|
|
122
122
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
123
123
|
"stylelint-config-standard": "^36.0.1",
|
|
124
124
|
"stylelint-prettier": "5.0.2",
|
|
125
|
-
"stylelint-scss": "6.
|
|
126
|
-
"typescript": "^5.6.
|
|
127
|
-
"vite": "^5.4.
|
|
125
|
+
"stylelint-scss": "6.8.0",
|
|
126
|
+
"typescript": "^5.6.3",
|
|
127
|
+
"vite": "^5.4.9"
|
|
128
128
|
},
|
|
129
129
|
"eslintConfig": {
|
|
130
130
|
"extends": [
|