@pega/custom-dx-components 25.1.22 → 25.1.24

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "25.1.22",
3
+ "version": "25.1.24",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "keywords": [
7
7
  "pega",
8
8
  "custom-components"
9
9
  ],
10
- "license": "SEE LICENSE IN LICENSE",
10
+ "license": "Cosmos 1.0",
11
11
  "author": "Custom component dev",
12
12
  "sideEffects": false,
13
13
  "type": "module",
@@ -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.22",
111
+ "@pega/custom-dx-components": "~25.1.24",
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
  }),