@pega/custom-dx-components 25.1.23 → 25.1.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/custom-dx-components",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.25",
|
|
4
4
|
"description": "Utility for building custom UI components",
|
|
5
5
|
"bin": "./bin/index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
26
26
|
"@babel/preset-react": "^7.27.1",
|
|
27
27
|
"@pega/auth": "^0.2.31",
|
|
28
|
-
"@pega/constellation-dx-components-build-utils": "^2.0.
|
|
28
|
+
"@pega/constellation-dx-components-build-utils": "^2.0.14",
|
|
29
29
|
"@pega/inquirer-fuzzy-path": "^3.0.0",
|
|
30
30
|
"ajv": "^8.17.1",
|
|
31
31
|
"ajv-keywords": "^5.1.0",
|
|
@@ -342,6 +342,22 @@ export default (
|
|
|
342
342
|
contextRegExp: /@pega\\cosmos-react-core\\lib\\components\\Icon$/
|
|
343
343
|
}),
|
|
344
344
|
|
|
345
|
+
/* cosmos 9 and above */
|
|
346
|
+
// This configuration works on both Windows and Unix-like systems (Linux, macOS).
|
|
347
|
+
//
|
|
348
|
+
// The regular expressions use the character class `[\\\/]` to match either a
|
|
349
|
+
// forward slash `/` or a backslash `\` as the path separator. This ensures that
|
|
350
|
+
// the correct directories are targeted regardless of the operating system.
|
|
351
|
+
//
|
|
352
|
+
// This prevents the entire Pega Cosmos icon sets from being bundled, reducing
|
|
353
|
+
// the final application size.
|
|
354
|
+
new webpack.ContextReplacementPlugin(new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon[\\\\/]icons$'), /^$/),
|
|
355
|
+
new webpack.ContextReplacementPlugin(new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon$'), /^$/),
|
|
356
|
+
new webpack.ContextReplacementPlugin(
|
|
357
|
+
new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon[\\\\/]streamline-icons$'),
|
|
358
|
+
/^$/
|
|
359
|
+
),
|
|
360
|
+
|
|
345
361
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
346
362
|
maxChunks: 1
|
|
347
363
|
}),
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@babel/preset-react": "^7.27.1",
|
|
109
109
|
"@babel/preset-typescript": "^7.27.1",
|
|
110
110
|
"@pega/configs": "^0.16.3",
|
|
111
|
-
"@pega/custom-dx-components": "~25.1.
|
|
111
|
+
"@pega/custom-dx-components": "~25.1.25",
|
|
112
112
|
"@pega/pcore-pconnect-typedefs": "^4.1.0",
|
|
113
113
|
"@storybook/addon-actions": "^8.6.14",
|
|
114
114
|
"@storybook/addon-essentials": "^8.6.14",
|
|
@@ -383,6 +383,22 @@ module.exports = (
|
|
|
383
383
|
contextRegExp: /@pega\\cosmos-react-core\\lib\\components\\Icon$/
|
|
384
384
|
}),
|
|
385
385
|
|
|
386
|
+
/* cosmos 9 and above */
|
|
387
|
+
// This configuration works on both Windows and Unix-like systems (Linux, macOS).
|
|
388
|
+
//
|
|
389
|
+
// The regular expressions use the character class `[\\\/]` to match either a
|
|
390
|
+
// forward slash `/` or a backslash `\` as the path separator. This ensures that
|
|
391
|
+
// the correct directories are targeted regardless of the operating system.
|
|
392
|
+
//
|
|
393
|
+
// This prevents the entire Pega Cosmos icon sets from being bundled, reducing
|
|
394
|
+
// the final application size.
|
|
395
|
+
new webpack.ContextReplacementPlugin(new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon[\\\\/]icons$'), /^$/),
|
|
396
|
+
new webpack.ContextReplacementPlugin(new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon$'), /^$/),
|
|
397
|
+
new webpack.ContextReplacementPlugin(
|
|
398
|
+
new RegExp('@pega[\\\\/]cosmos-react-core[\\\\/]lib[\\\\/]components[\\\\/]Icon[\\\\/]streamline-icons$'),
|
|
399
|
+
/^$/
|
|
400
|
+
),
|
|
401
|
+
|
|
386
402
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
387
403
|
maxChunks: 1
|
|
388
404
|
}),
|