@pega/dx-component-builder-sdk 0.1.17 → 0.1.18
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 +1 -1
- package/src/tasks/create/templates/SDK-React/Field/Decimal/index.tsx.mustache +2 -2
- package/src/tasks/create/templates/SDK-React/Field/Decimal-Percentage/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Field/Integer/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Field/Text-Email/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Field/Text-URL/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Template/DETAILS/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Template/DETAILS-region/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Template/FORM/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Template/FORM-region/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Template/PAGE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Widget/CASE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Widget/PAGE/index.tsx.mustache +1 -1
- package/src/tasks/create/templates/SDK-React/Widget/PAGE-CASE/mock.stories.js.mustache +1 -1
- package/src/tasks/override/index.js +3 -1
- package/src/tasks/publish/index.js +2 -2
- package/src/tasks/publish-all/index.js +5 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TextField } from '@material-ui/core';
|
|
4
|
-
import TextInput from '@pega/react-sdk-components/lib/components/
|
|
4
|
+
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
5
5
|
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
|
|
@@ -83,13 +83,15 @@ const getListAvailableComponents = async (type) => {
|
|
|
83
83
|
for (var el in fullList) {
|
|
84
84
|
|
|
85
85
|
let listEl = fullList[el].value;
|
|
86
|
+
|
|
86
87
|
if (listEl.indexOf("/") >=0) {
|
|
87
88
|
const arKey = listEl.split("/");
|
|
88
89
|
listEl = arKey[arKey.length - 1];
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
if (components.includes(listEl)) {
|
|
92
|
-
|
|
93
|
+
// currently don't show, because too many separators inquirer flaky
|
|
94
|
+
//availList.push(new inquirer.Separator("** " + fullList[el].name));
|
|
93
95
|
}
|
|
94
96
|
else {
|
|
95
97
|
availList.push(fullList[el]);
|
|
@@ -126,14 +126,14 @@ export default async options => {
|
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
title: 'Zip component',
|
|
129
|
+
title: 'Zip component config',
|
|
130
130
|
task: async () => {
|
|
131
131
|
const output = await zipComponent(componentKey, category);
|
|
132
132
|
content = { ...content, ...output };
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
title: 'Publish component',
|
|
136
|
+
title: 'Publish component config',
|
|
137
137
|
task: async () => {
|
|
138
138
|
await publishComponentToServer(content);
|
|
139
139
|
}
|
|
@@ -82,7 +82,7 @@ export default async options => {
|
|
|
82
82
|
title: 'Zip companion component',
|
|
83
83
|
task: async () => {
|
|
84
84
|
const output = await zipComponent(componentKey, CATEGORY_CONSTELLATION);
|
|
85
|
-
content = { ...content, ...output };
|
|
85
|
+
content = { ...content, ...output, componentKey };
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
@@ -114,25 +114,25 @@ export default async options => {
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
title: 'Bundle
|
|
117
|
+
title: 'Bundle component',
|
|
118
118
|
task: async () => await bundleComponent(componentKey, sourceMap, devBuild, category),
|
|
119
119
|
skip: () => (options.skipBundle ? 'Skipped bundling component' : undefined)
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
title: 'Update
|
|
122
|
+
title: 'Update component map',
|
|
123
123
|
task: async () => {
|
|
124
124
|
await updateComponentMap(componentKey, category);
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
title: 'Zip
|
|
128
|
+
title: 'Zip component config',
|
|
129
129
|
task: async () => {
|
|
130
130
|
const output = await zipComponent(componentKey, category);
|
|
131
131
|
content = { ...content, ...output, componentKey };
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
title: 'Publish component',
|
|
135
|
+
title: 'Publish component config',
|
|
136
136
|
task: async () => {
|
|
137
137
|
await publishComponentToServer(content);
|
|
138
138
|
}
|