@pega/custom-dx-components 0.25.63 → 0.26.2
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 +1 -1
- package/eslint.config.mjs +19 -8
- package/package.json +1 -1
- package/src/tasks/init/template/README.md +1 -1
- package/src/tasks/init/template/eslint.config.mjs +16 -7
- package/src/tasks/init/template/package.json.mustache +17 -18
- package/src/tasks/list-pub/index.js +1 -1
- package/src/util.js +6 -2
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ For more info [here](https://pega-dev.zoominsoftware.io/bundle/constellation-dx-
|
|
|
33
33
|
|
|
34
34
|
Ensure you have access to the following in your system:
|
|
35
35
|
|
|
36
|
-
- Pega Infinity Server version
|
|
36
|
+
- Pega Infinity Server version 26.1 or later
|
|
37
37
|
|
|
38
38
|
- Git version 2.30 or later
|
|
39
39
|
|
package/eslint.config.mjs
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { globalIgnores } from 'eslint/config';
|
|
2
|
+
import path from 'node:path';
|
|
2
3
|
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import
|
|
4
|
+
import js from '@eslint/js';
|
|
5
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
4
6
|
import tseslint from 'typescript-eslint';
|
|
5
7
|
import sonarjs from 'eslint-plugin-sonarjs';
|
|
6
8
|
import importPlugin from 'eslint-plugin-import';
|
|
7
9
|
import react from 'eslint-plugin-react';
|
|
8
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
9
|
-
// eslint.config.js
|
|
10
|
-
import { defineConfig } from 'eslint/config';
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = path.dirname(__filename);
|
|
14
|
+
const compat = new FlatCompat({
|
|
15
|
+
baseDirectory: __dirname,
|
|
16
|
+
recommendedConfig: js.configs.recommended,
|
|
17
|
+
sonarjs: sonarjs.configs.recommended,
|
|
18
|
+
importPlugin: importPlugin.configs.recommended,
|
|
19
|
+
react: react.configs.recommended,
|
|
20
|
+
reactHooks: reactHooks.configs.recommended,
|
|
21
|
+
allConfig: js.configs.all
|
|
22
|
+
});
|
|
13
23
|
|
|
14
|
-
export default
|
|
15
|
-
|
|
16
|
-
...tseslint.configs.recommended,
|
|
24
|
+
export default tseslint.config(
|
|
25
|
+
tseslint.configs.recommended,
|
|
17
26
|
globalIgnores([
|
|
18
27
|
'**/node_modules',
|
|
19
28
|
'packages/*/lib',
|
|
@@ -23,7 +32,6 @@ export default defineConfig([
|
|
|
23
32
|
'**/mock.stories.js',
|
|
24
33
|
'**/demo.stories.tsx',
|
|
25
34
|
'**/demo.test.tsx',
|
|
26
|
-
'**/*.test.tsx',
|
|
27
35
|
'**/mock.stories.ts',
|
|
28
36
|
'**/*.mdx',
|
|
29
37
|
'**/webpack.config.js',
|
|
@@ -123,6 +131,7 @@ export default defineConfig([
|
|
|
123
131
|
'no-alert': 'off',
|
|
124
132
|
'no-console': 'error',
|
|
125
133
|
'no-fallthrough': 'error',
|
|
134
|
+
'no-undef': 'error',
|
|
126
135
|
'no-unused-vars': 'off',
|
|
127
136
|
'no-var': 'off',
|
|
128
137
|
yoda: 'error',
|
|
@@ -146,6 +155,7 @@ export default defineConfig([
|
|
|
146
155
|
'react/no-unused-prop-types': 'error',
|
|
147
156
|
'react/static-property-placement': 'error',
|
|
148
157
|
'array-callback-return': 'error',
|
|
158
|
+
camelcase: 'error',
|
|
149
159
|
'func-names': 'error',
|
|
150
160
|
'no-case-declarations': 'error',
|
|
151
161
|
'no-lonely-if': 'error',
|
|
@@ -198,6 +208,7 @@ export default defineConfig([
|
|
|
198
208
|
{
|
|
199
209
|
files: ['**/*.@(ts|tsx)'],
|
|
200
210
|
rules: {
|
|
211
|
+
'no-undef': 'error',
|
|
201
212
|
'no-console': 'off',
|
|
202
213
|
'import/prefer-default-export': 'off',
|
|
203
214
|
'import/no-relative-packages': 'off',
|
|
@@ -219,4 +230,4 @@ export default defineConfig([
|
|
|
219
230
|
'import/prefer-default-export': ['off']
|
|
220
231
|
}
|
|
221
232
|
}
|
|
222
|
-
|
|
233
|
+
);
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ For more info [here](https://pega-dev.zoominsoftware.io/bundle/constellation-dx-
|
|
|
33
33
|
|
|
34
34
|
Ensure you have access to the following in your system:
|
|
35
35
|
|
|
36
|
-
- Pega Infinity Server version
|
|
36
|
+
- Pega Infinity Server version 26.1 or later
|
|
37
37
|
|
|
38
38
|
- Git version 2.30 or later
|
|
39
39
|
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { globalIgnores } from 'eslint/config';
|
|
2
|
+
import path from 'node:path';
|
|
2
3
|
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import
|
|
4
|
+
import js from '@eslint/js';
|
|
5
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
4
6
|
import tseslint from 'typescript-eslint';
|
|
5
7
|
import sonarjs from 'eslint-plugin-sonarjs';
|
|
6
8
|
import importPlugin from 'eslint-plugin-import';
|
|
7
9
|
import react from 'eslint-plugin-react';
|
|
8
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
9
|
-
// eslint.config.js
|
|
10
|
-
import { defineConfig } from 'eslint/config';
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = path.dirname(__filename);
|
|
14
|
+
const compat = new FlatCompat({
|
|
15
|
+
baseDirectory: __dirname,
|
|
16
|
+
recommendedConfig: js.configs.recommended,
|
|
17
|
+
sonarjs: sonarjs.configs.recommended,
|
|
18
|
+
importPlugin: importPlugin.configs.recommended,
|
|
19
|
+
react: react.configs.recommended,
|
|
20
|
+
reactHooks: reactHooks.configs.recommended,
|
|
21
|
+
allConfig: js.configs.all
|
|
22
|
+
});
|
|
13
23
|
|
|
14
|
-
export default
|
|
15
|
-
|
|
16
|
-
...tseslint.configs.recommended,
|
|
24
|
+
export default tseslint.config(
|
|
25
|
+
tseslint.configs.recommended,
|
|
17
26
|
globalIgnores([
|
|
18
27
|
'**/node_modules',
|
|
19
28
|
'packages/*/lib',
|
|
@@ -219,4 +228,4 @@ export default defineConfig([
|
|
|
219
228
|
'import/prefer-default-export': ['off']
|
|
220
229
|
}
|
|
221
230
|
}
|
|
222
|
-
|
|
231
|
+
);
|
|
@@ -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.
|
|
110
|
+
"@pega/custom-dx-components": "~0.26.2",
|
|
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",
|
|
@@ -130,8 +130,7 @@
|
|
|
130
130
|
"@types/react-color": "^3.0.13",
|
|
131
131
|
"@types/react-dom": "^18.3.7",
|
|
132
132
|
"@types/styled-components": "^5.1.34",
|
|
133
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
134
|
-
"@typescript-eslint/parser": "^8.44.1",
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
135
134
|
"core-js": "^3.42.0",
|
|
136
135
|
"eslint": "^9.27.0",
|
|
137
136
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -152,11 +151,11 @@
|
|
|
152
151
|
"node-stream-zip": "^1.15.0",
|
|
153
152
|
"npm-run-all": "^4.1.5",
|
|
154
153
|
"prettier": "3.5.3",
|
|
155
|
-
"storybook": "^
|
|
154
|
+
"storybook": "^9.1.7",
|
|
156
155
|
"stylelint": "^16.19.1",
|
|
157
156
|
"ts-jest": "^29.3.2",
|
|
158
157
|
"typescript": "~5.5.4",
|
|
159
|
-
"typescript-eslint": "^8.
|
|
158
|
+
"typescript-eslint": "^8.32.1",
|
|
160
159
|
"vite": "^6.3.5"
|
|
161
160
|
}
|
|
162
161
|
}
|
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.'));
|