@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/dx-component-builder-sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
- /* eslint-disable react/no-unused-prop-types */
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/fields/TextInput';
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
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from 'react';
3
3
  import { makeStyles } from '@material-ui/core/styles';
4
4
  import { TextField } from '@material-ui/core';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from 'react';
3
3
  import { TextField } from '@material-ui/core';
4
4
  import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from 'react';
3
3
  import { TextField, InputAdornment } from '@material-ui/core';
4
4
  import MailOutlineIcon from '@material-ui/icons/MailOutline';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from 'react';
3
3
  import { TextField } from '@material-ui/core';
4
4
  import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from "react";
3
3
  // import PropTypes from "prop-types";
4
4
  import Grid from '@material-ui/core/Grid';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from "react";
3
3
  // import PropTypes from "prop-types";
4
4
  import Grid from '@material-ui/core/Grid';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React, { createElement } from "react";
3
3
  import PropTypes from 'prop-types';
4
4
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { Grid, GridSize } from "@material-ui/core";
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from "react";
3
3
  import PropTypes from 'prop-types';
4
4
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React, { useState, useRef, useEffect } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { withStyles, Theme, createStyles } from '@material-ui/core/styles';
@@ -1,4 +1,4 @@
1
- /* eslint-disable react/no-unused-prop-types */
1
+
2
2
  import React from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { Card, CardContent, CardHeader, Typography, CardActions, Button } from "@material-ui/core";
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/prefer-default-export
1
+
2
2
  export const configProps = {
3
3
  label: 'Create operator',
4
4
  createLabel: 'Created',
@@ -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
- availList.push(new inquirer.Separator("** " + fullList[el].name));
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 Component',
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 Component Map',
122
+ title: 'Update component map',
123
123
  task: async () => {
124
124
  await updateComponentMap(componentKey, category);
125
125
  }
126
126
  },
127
127
  {
128
- title: 'Zip Component',
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
  }