@pega/custom-dx-components 0.242.39 → 0.242.40

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": " 0.242.39",
3
+ "version": "0.242.40",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -0,0 +1,47 @@
1
+ import type { Preview } from '@storybook/react';
2
+ import {
3
+ Configuration,
4
+ LiveLog,
5
+ ModalManager,
6
+ PopoverManager,
7
+ ShortcutManager,
8
+ Toaster
9
+ } from '@pega/cosmos-react-core';
10
+
11
+ const preview: Preview = {
12
+ parameters: {
13
+ actions: { argTypesRegex: '^on[A-Z].*' },
14
+ controls: {
15
+ matchers: {
16
+ color: /(background|color)$/i,
17
+ date: /Date$/i
18
+ }
19
+ },
20
+ docs: {
21
+ source: { type: 'code' }
22
+ }
23
+ },
24
+
25
+ decorators: [
26
+ // Sets up contexts
27
+ (Story, context) => {
28
+ return (
29
+ <Configuration disableDefaultFontLoading id='Preview'>
30
+ <ShortcutManager>
31
+ <LiveLog maxLength={context.args.liveLogMaxLength || 50}>
32
+ <PopoverManager>
33
+ <Toaster dismissAfter={5000}>
34
+ <ModalManager>
35
+ <Story {...context} />
36
+ </ModalManager>
37
+ </Toaster>
38
+ </PopoverManager>
39
+ </LiveLog>
40
+ </ShortcutManager>
41
+ </Configuration>
42
+ );
43
+ }
44
+ ]
45
+ };
46
+
47
+ export default preview;
@@ -75,9 +75,9 @@
75
75
  "author": "",
76
76
  "license": "Enter License",
77
77
  "dependencies": {
78
- "@pega/cosmos-react-condition-builder": "7.0.0-rc.2",
79
- "@pega/cosmos-react-core": "7.0.0-rc.2",
80
- "@pega/cosmos-react-work": "7.0.0-rc.2",
78
+ "@pega/cosmos-react-condition-builder": "7.0.3",
79
+ "@pega/cosmos-react-core": "7.0.3",
80
+ "@pega/cosmos-react-work": "7.0.3",
81
81
  "@pega/eslint-config": "^0.10.2",
82
82
  "@pega/tsconfig": "^0.10.2",
83
83
  "babel-loader": "^9.1.3",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "devDependencies": {
102
102
  "@pega/configs": "^0.6.0",
103
- "@pega/custom-dx-components": "0.242.39",
103
+ "@pega/custom-dx-components": "0.242.40",
104
104
  "@pega/pcore-pconnect-typedefs": "~3.0.0",
105
105
  "@storybook/addon-actions": "^7.6.7",
106
106
  "@storybook/addon-essentials": "^7.6.19",
@@ -114,7 +114,7 @@ describe(`create publish delete local: ${serverDir} - ${compType}`, () => {
114
114
  // done();
115
115
 
116
116
 
117
- }, 30000);
117
+ }, 50000);
118
118
 
119
119
  it('npm run delete Local', async () => {
120
120
  const fileName = 'MyTestText';
@@ -1,17 +0,0 @@
1
- /** @type { import('@storybook/react').Preview } */
2
- const preview = {
3
- parameters: {
4
- actions: { argTypesRegex: '^on[A-Z].*' },
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/i
9
- }
10
- },
11
- docs: {
12
- source: { type: 'code' }
13
- }
14
- }
15
- };
16
-
17
- export default preview;