@pega/custom-dx-components 1.0.10 → 1.0.11

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": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "repository": {},
@@ -60,7 +60,7 @@
60
60
  "custom-components"
61
61
  ],
62
62
  "devDependencies": {
63
- "@pega/configs": "^0.3.3",
63
+ "@pega/configs": "^0.3.4",
64
64
  "cspell": "^6.9.0",
65
65
  "eslint": "^8.23.1",
66
66
  "prettier": "2.7.1"
package/src/constants.js CHANGED
@@ -25,10 +25,6 @@ export const COMPONENT_SCHEMA = {
25
25
  {
26
26
  name: 'Widget',
27
27
  value: 'Widget'
28
- },
29
- {
30
- name: 'Table',
31
- value: 'Table'
32
28
  }
33
29
  ],
34
30
  subtype: {
@@ -104,12 +100,6 @@ export const COMPONENT_SCHEMA = {
104
100
  name: 'PAGE & CASE',
105
101
  value: ['PAGE', 'CASE']
106
102
  }
107
- ],
108
- table: [
109
- {
110
- name: 'Cell',
111
- value: 'Cell'
112
- }
113
103
  ]
114
104
  }
115
105
  };
@@ -269,23 +269,6 @@ export default async options => {
269
269
  return 'Please select subtype';
270
270
  }
271
271
  },
272
- {
273
- name: 'subtype',
274
- type: 'rawlist',
275
- message: 'Enter subtype of component',
276
- default: [componentDefaults.subtype || COMPONENT_SCHEMA.subtype.table[0]],
277
- choices: COMPONENT_SCHEMA.subtype.table,
278
- when(answers) {
279
- return answers.type === 'Table';
280
- },
281
- validate: value => {
282
- /* value should not be empty */
283
- if (Array.isArray(value) && value.length) {
284
- return true;
285
- }
286
- return 'Please select subtype';
287
- }
288
- },
289
272
  {
290
273
  name: 'description',
291
274
  message: 'Enter description for the component',
@@ -46,8 +46,8 @@
46
46
  "styled-components": "^5.3.5"
47
47
  },
48
48
  "devDependencies": {
49
- "@pega/configs": "^0.3.3",
50
- "@pega/custom-dx-components": "^1.0.10",
49
+ "@pega/configs": "^0.3.4",
50
+ "@pega/custom-dx-components": "^1.0.11",
51
51
  "@storybook/addon-actions": "^6.5.12",
52
52
  "@storybook/addon-essentials": "^6.5.12",
53
53
  "@storybook/addon-links": "^6.5.12",