@linzjs/windows 5.0.0 → 5.1.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/README.md
CHANGED
|
@@ -11,6 +11,7 @@ import { createPortal } from 'react-dom';
|
|
|
11
11
|
import { useInterval } from 'usehooks-ts';
|
|
12
12
|
import { v4 } from 'uuid';
|
|
13
13
|
|
|
14
|
+
import { debugLog } from '../common/debug';
|
|
14
15
|
import {
|
|
15
16
|
ComponentType,
|
|
16
17
|
LuiModalAsyncContext,
|
|
@@ -111,6 +112,9 @@ export const LuiModalAsyncContextProvider = ({ children }: PropsWithChildren<unk
|
|
|
111
112
|
showModalProps?: ShowModalProps,
|
|
112
113
|
): // eslint-disable-next-line
|
|
113
114
|
PromiseWithResolve<any> => {
|
|
115
|
+
if (!('level' in args)) {
|
|
116
|
+
debugLog(`Show generic modal`, args);
|
|
117
|
+
}
|
|
114
118
|
const uuid = v4();
|
|
115
119
|
// eslint-disable-next-line
|
|
116
120
|
let extResolve: PromiseWithResolve<any>['resolve'];
|
|
@@ -137,6 +141,7 @@ export const LuiModalAsyncContextProvider = ({ children }: PropsWithChildren<unk
|
|
|
137
141
|
return;
|
|
138
142
|
}
|
|
139
143
|
}).then((result) => {
|
|
144
|
+
debugLog('Modal resolved result =', JSON.stringify(result));
|
|
140
145
|
return new Promise((resolve) => {
|
|
141
146
|
// Close modal
|
|
142
147
|
setModals((modals) => {
|
|
@@ -6,6 +6,7 @@ import { flatMap } from 'lodash';
|
|
|
6
6
|
import { omit, pick } from 'lodash-es';
|
|
7
7
|
import React, { PropsWithChildren, ReactElement, useCallback, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
|
+
import { debugLog } from '../common/debug';
|
|
9
10
|
import { LuiModalAsync, LuiModalAsyncProps } from './LuiModalAsync';
|
|
10
11
|
import { LuiModalAsyncButtonGroup } from './LuiModalAsyncButtonGroup';
|
|
11
12
|
import { LuiModalAsyncContent } from './LuiModalAsyncContent';
|
|
@@ -184,6 +185,7 @@ export const useLuiModalPrefab = () => {
|
|
|
184
185
|
|
|
185
186
|
const showPrefabModal = useCallback(
|
|
186
187
|
<RT = string,>(props: PropsWithChildren<useLuiModalPrefabProps<RT>>): PromiseWithResolve<RT> => {
|
|
188
|
+
debugLog(`Show '${props.level}' prefab-modal '${props.title}'`, props);
|
|
187
189
|
if (typeof props.children === 'string') {
|
|
188
190
|
// Convert \n to <br/>
|
|
189
191
|
const split = props.children.split('\n');
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"popout"
|
|
14
14
|
],
|
|
15
15
|
"main": "./dist/index.ts",
|
|
16
|
-
"version": "5.
|
|
16
|
+
"version": "5.1.0",
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@linzjs/lui": ">=21",
|
|
19
19
|
"lodash-es": ">=4",
|
|
@@ -61,26 +61,26 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@chromatic-com/storybook": "^3.2.4",
|
|
63
63
|
"@linzjs/lui": "^22.4.2",
|
|
64
|
-
"@linzjs/step-ag-grid": "^
|
|
64
|
+
"@linzjs/step-ag-grid": "^25.0.1",
|
|
65
65
|
"@linzjs/style": "^5.4.0",
|
|
66
66
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
67
67
|
"@rollup/plugin-json": "^6.1.0",
|
|
68
|
-
"@rollup/plugin-node-resolve": "^15.3.
|
|
69
|
-
"@storybook/addon-docs": "^8.5.
|
|
70
|
-
"@storybook/addon-essentials": "^8.5.
|
|
71
|
-
"@storybook/addon-interactions": "^8.5.
|
|
72
|
-
"@storybook/addon-links": "^8.5.
|
|
73
|
-
"@storybook/addon-mdx-gfm": "^8.5.
|
|
74
|
-
"@storybook/blocks": "^8.5.
|
|
75
|
-
"@storybook/react": "^8.5.
|
|
76
|
-
"@storybook/react-vite": "^8.5.
|
|
77
|
-
"@storybook/test": "^8.5.
|
|
68
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
69
|
+
"@storybook/addon-docs": "^8.5.3",
|
|
70
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
71
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
72
|
+
"@storybook/addon-links": "^8.5.3",
|
|
73
|
+
"@storybook/addon-mdx-gfm": "^8.5.3",
|
|
74
|
+
"@storybook/blocks": "^8.5.3",
|
|
75
|
+
"@storybook/react": "^8.5.3",
|
|
76
|
+
"@storybook/react-vite": "^8.5.3",
|
|
77
|
+
"@storybook/test": "^8.5.3",
|
|
78
78
|
"@testing-library/react": "^16.2.0",
|
|
79
79
|
"@testing-library/user-event": "^14.6.1",
|
|
80
80
|
"@types/lodash-es": "^4.17.12",
|
|
81
|
-
"@types/node": "^22.
|
|
82
|
-
"@types/react": "^18.3.
|
|
83
|
-
"@types/react-dom": "^18.3.
|
|
81
|
+
"@types/node": "^22.13.0",
|
|
82
|
+
"@types/react": "^18.3.18",
|
|
83
|
+
"@types/react-dom": "^18.3.5",
|
|
84
84
|
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
85
85
|
"@vitest/ui": "^3.0.4",
|
|
86
86
|
"ag-grid-community": "^32.3.3",
|
|
@@ -93,27 +93,28 @@
|
|
|
93
93
|
"react": "^18.3.1",
|
|
94
94
|
"react-app-polyfill": "^3.0.0",
|
|
95
95
|
"react-dom": "^18.3.1",
|
|
96
|
-
"rollup": "^4.
|
|
96
|
+
"rollup": "^4.34.0",
|
|
97
97
|
"rollup-plugin-copy": "^3.5.0",
|
|
98
98
|
"sass": "^1.83.4",
|
|
99
99
|
"sass-loader": "^16.0.4",
|
|
100
100
|
"semantic-release": "^22.0.12",
|
|
101
|
-
"storybook": "^8.5.
|
|
101
|
+
"storybook": "^8.5.3",
|
|
102
102
|
"style-loader": "^4.0.0",
|
|
103
103
|
"stylelint": "^16.14.1",
|
|
104
104
|
"stylelint-config-recommended": "^14.0.1",
|
|
105
105
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
106
106
|
"stylelint-config-standard": "^36.0.1",
|
|
107
107
|
"stylelint-prettier": "5.0.3",
|
|
108
|
-
"stylelint-scss": "6.
|
|
108
|
+
"stylelint-scss": "6.11.0",
|
|
109
109
|
"typescript": "^5.7.3",
|
|
110
|
-
"vite": "^5.4.
|
|
110
|
+
"vite": "^5.4.14",
|
|
111
111
|
"vite-plugin-html": "^3.2.2",
|
|
112
112
|
"vite-tsconfig-paths": "^5.1.4",
|
|
113
113
|
"vitest": "^3.0.4"
|
|
114
114
|
},
|
|
115
115
|
"optionalDependencies": {
|
|
116
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
116
|
+
"@rollup/rollup-linux-x64-gnu": "^4.34.0",
|
|
117
|
+
"@swc/core-linux-x64-gnu": "^1.10.12"
|
|
117
118
|
},
|
|
118
119
|
"browserslist": {
|
|
119
120
|
"production": [
|