@pega/custom-dx-components 0.26.1 → 0.26.3
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/eslint.config.mjs
CHANGED
|
@@ -8,9 +8,12 @@ import sonarjs from 'eslint-plugin-sonarjs';
|
|
|
8
8
|
import importPlugin from 'eslint-plugin-import';
|
|
9
9
|
import react from 'eslint-plugin-react';
|
|
10
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
11
|
+
// eslint.config.js
|
|
12
|
+
import { defineConfig } from 'eslint/config';
|
|
11
13
|
|
|
12
14
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
15
|
const __dirname = path.dirname(__filename);
|
|
16
|
+
|
|
14
17
|
const compat = new FlatCompat({
|
|
15
18
|
baseDirectory: __dirname,
|
|
16
19
|
recommendedConfig: js.configs.recommended,
|
|
@@ -21,7 +24,7 @@ const compat = new FlatCompat({
|
|
|
21
24
|
allConfig: js.configs.all
|
|
22
25
|
});
|
|
23
26
|
|
|
24
|
-
export default
|
|
27
|
+
export default defineConfig([
|
|
25
28
|
tseslint.configs.recommended,
|
|
26
29
|
globalIgnores([
|
|
27
30
|
'**/node_modules',
|
|
@@ -32,6 +35,7 @@ export default tseslint.config(
|
|
|
32
35
|
'**/mock.stories.js',
|
|
33
36
|
'**/demo.stories.tsx',
|
|
34
37
|
'**/demo.test.tsx',
|
|
38
|
+
'**/*.test.tsx',
|
|
35
39
|
'**/mock.stories.ts',
|
|
36
40
|
'**/*.mdx',
|
|
37
41
|
'**/webpack.config.js',
|
|
@@ -131,7 +135,6 @@ export default tseslint.config(
|
|
|
131
135
|
'no-alert': 'off',
|
|
132
136
|
'no-console': 'error',
|
|
133
137
|
'no-fallthrough': 'error',
|
|
134
|
-
'no-undef': 'error',
|
|
135
138
|
'no-unused-vars': 'off',
|
|
136
139
|
'no-var': 'off',
|
|
137
140
|
yoda: 'error',
|
|
@@ -155,7 +158,6 @@ export default tseslint.config(
|
|
|
155
158
|
'react/no-unused-prop-types': 'error',
|
|
156
159
|
'react/static-property-placement': 'error',
|
|
157
160
|
'array-callback-return': 'error',
|
|
158
|
-
camelcase: 'error',
|
|
159
161
|
'func-names': 'error',
|
|
160
162
|
'no-case-declarations': 'error',
|
|
161
163
|
'no-lonely-if': 'error',
|
|
@@ -208,7 +210,6 @@ export default tseslint.config(
|
|
|
208
210
|
{
|
|
209
211
|
files: ['**/*.@(ts|tsx)'],
|
|
210
212
|
rules: {
|
|
211
|
-
'no-undef': 'error',
|
|
212
213
|
'no-console': 'off',
|
|
213
214
|
'import/prefer-default-export': 'off',
|
|
214
215
|
'import/no-relative-packages': 'off',
|
|
@@ -230,4 +231,4 @@ export default tseslint.config(
|
|
|
230
231
|
'import/prefer-default-export': ['off']
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
|
-
);
|
|
234
|
+
]);
|
package/package.json
CHANGED
|
@@ -8,9 +8,12 @@ import sonarjs from 'eslint-plugin-sonarjs';
|
|
|
8
8
|
import importPlugin from 'eslint-plugin-import';
|
|
9
9
|
import react from 'eslint-plugin-react';
|
|
10
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
11
|
+
// eslint.config.js
|
|
12
|
+
import { defineConfig } from 'eslint/config';
|
|
11
13
|
|
|
12
14
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
15
|
const __dirname = path.dirname(__filename);
|
|
16
|
+
|
|
14
17
|
const compat = new FlatCompat({
|
|
15
18
|
baseDirectory: __dirname,
|
|
16
19
|
recommendedConfig: js.configs.recommended,
|
|
@@ -21,7 +24,7 @@ const compat = new FlatCompat({
|
|
|
21
24
|
allConfig: js.configs.all
|
|
22
25
|
});
|
|
23
26
|
|
|
24
|
-
export default
|
|
27
|
+
export default defineConfig([
|
|
25
28
|
tseslint.configs.recommended,
|
|
26
29
|
globalIgnores([
|
|
27
30
|
'**/node_modules',
|
|
@@ -228,4 +231,4 @@ export default tseslint.config(
|
|
|
228
231
|
'import/prefer-default-export': ['off']
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
|
-
);
|
|
234
|
+
]);
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"pega"
|
|
83
83
|
],
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@pega/cosmos-react-condition-builder": "^
|
|
86
|
-
"@pega/cosmos-react-core": "^
|
|
87
|
-
"@pega/cosmos-react-work": "^
|
|
85
|
+
"@pega/cosmos-react-condition-builder": "^9.0.0-build.6.5",
|
|
86
|
+
"@pega/cosmos-react-core": "^9.0.0-build.6.5",
|
|
87
|
+
"@pega/cosmos-react-work": "^9.0.0-build.6.5",
|
|
88
88
|
"@pega/eslint-config": "^0.16.3",
|
|
89
89
|
"@pega/tsconfig": "^0.16.3",
|
|
90
90
|
"babel-loader": "^10.0.0",
|
|
@@ -107,19 +107,19 @@
|
|
|
107
107
|
"@babel/preset-react": "^7.27.1",
|
|
108
108
|
"@babel/preset-typescript": "^7.27.1",
|
|
109
109
|
"@pega/configs": "^0.16.3",
|
|
110
|
-
"@pega/custom-dx-components": "~0.26.
|
|
110
|
+
"@pega/custom-dx-components": "~0.26.3",
|
|
111
111
|
"@pega/pcore-pconnect-typedefs": "^4.1.0",
|
|
112
|
-
"@storybook/addon-
|
|
113
|
-
"@storybook/addon-essentials": "^
|
|
114
|
-
"@storybook/addon-links": "^
|
|
115
|
-
"@storybook/addon-storysource": "^
|
|
116
|
-
"@storybook/manager-api": "^
|
|
117
|
-
"@storybook/react": "^
|
|
118
|
-
"@storybook/react-vite": "^
|
|
119
|
-
"@storybook/react-webpack5": "^
|
|
120
|
-
"@storybook/test": "^
|
|
112
|
+
"@storybook/addon-docs": "^9.1.7",
|
|
113
|
+
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|
|
114
|
+
"@storybook/addon-links": "^9.1.7",
|
|
115
|
+
"@storybook/addon-storysource": "^9.0.0-alpha.14",
|
|
116
|
+
"@storybook/manager-api": "^9.0.0-alpha.1",
|
|
117
|
+
"@storybook/react": "^9.1.7",
|
|
118
|
+
"@storybook/react-vite": "^9.1.7",
|
|
119
|
+
"@storybook/react-webpack5": "^9.1.7",
|
|
120
|
+
"@storybook/test": "^9.0.0-alpha.2",
|
|
121
121
|
"@storybook/test-runner": "^0.22.0",
|
|
122
|
-
"@storybook/theming": "^
|
|
122
|
+
"@storybook/theming": "^9.0.0-alpha.1",
|
|
123
123
|
"@testing-library/dom": "^10.4.0",
|
|
124
124
|
"@testing-library/jest-dom": "^6.6.3",
|
|
125
125
|
"@testing-library/react": "^16.3.0",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"node-stream-zip": "^1.15.0",
|
|
152
152
|
"npm-run-all": "^4.1.5",
|
|
153
153
|
"prettier": "3.5.3",
|
|
154
|
-
"storybook": "^
|
|
154
|
+
"storybook": "^9.1.7",
|
|
155
155
|
"stylelint": "^16.19.1",
|
|
156
156
|
"ts-jest": "^29.3.2",
|
|
157
157
|
"typescript": "~5.5.4",
|
package/src/util.js
CHANGED
|
@@ -2651,10 +2651,14 @@ if (showDebug) addDebugLog("deleteArchives", ``, "");
|
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
2653
|
|
|
2654
|
-
export const checkLibraryAndArchives = async () => {
|
|
2654
|
+
export const checkLibraryAndArchives = async (checkArch = true) => {
|
|
2655
2655
|
if (showDebug) addDebugLog("checkLibraryAndArchives", ``, "");
|
|
2656
2656
|
const isLibraryBased = getLibraryBased();
|
|
2657
|
-
|
|
2657
|
+
let hasArch = true;
|
|
2658
|
+
if (checkArch) {
|
|
2659
|
+
hasArch = await hasArchives();
|
|
2660
|
+
|
|
2661
|
+
}
|
|
2658
2662
|
|
|
2659
2663
|
if (isLibraryBased && !hasArch) {
|
|
2660
2664
|
console.log(chalk.yellow('\nPlease create/import a library before proceeding.'));
|