@pega/custom-dx-components 2.0.20 → 2.0.21

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": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@ import { Input, FieldValueList, Text } from "@pega/cosmos-react-core";
3
3
  import PropTypes from "prop-types";
4
4
 
5
5
  // includes in bundle
6
- import {formatExists,textFormatter, urlFormatter, suggestionHandler} from "./text-url";
6
+ import {formatExists,textFormatter, urlFormatter} from "./text-url.jsx";
7
7
  import handleEvent from "./event-utils";
8
8
  import { suggestionsHandler } from './suggestions-handler';
9
9
 
@@ -1,4 +1,5 @@
1
- import {EmailDisplay, PhoneDisplay, URLDisplay } from "@pega/cosmos-react-core";
1
+ import { useState, useRef, React} from "react";
2
+ import { EmailDisplay, PhoneDisplay, URLDisplay, Image, Button, Lightbox } from '@pega/cosmos-react-core';
2
3
 
3
4
  export const formatExists = (formatterVal) => {
4
5
  const formatterValues = [
@@ -140,7 +140,7 @@ export default async options => {
140
140
  '\n',
141
141
  `Inside that directory, you can run several commands:`,
142
142
  '\n\n',
143
- `${chalk.blueBright('npm start')}`,
143
+ `${chalk.blueBright('npm run start-storybook')}`,
144
144
  `\n Start Storybook in development mode`,
145
145
  '\n\n',
146
146
  `${chalk.blueBright('npm run create')}`,
@@ -158,7 +158,7 @@ export default async options => {
158
158
  '\n\n',
159
159
  `${chalk.blueBright('cd')} ${chalk.bold(projectName)}`,
160
160
  '\n',
161
- `${chalk.blueBright('npm start')}`,
161
+ `${chalk.blueBright('npm run start-storybook')}`,
162
162
  '\n'
163
163
  );
164
164
  return true;
@@ -5,7 +5,7 @@
5
5
  "organization": "{{organization}}",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
8
- "start": "start-storybook --port 6040 --quiet",
8
+ "start-storybook": "start-storybook --port 6040 --quiet",
9
9
  "build": "tsc -b tsconfig.build.json",
10
10
  "lint": "run-p -cl lint:*",
11
11
  "fix": "run-p -cl fix:*",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@pega/configs": "^0.3.4",
57
- "@pega/custom-dx-components": "^2.0.20",
57
+ "@pega/custom-dx-components": "^2.0.21",
58
58
  "@pega/eslint-config": "^0.3.2",
59
59
  "@storybook/addon-actions": "^6.5.12",
60
60
  "@storybook/addon-essentials": "^6.5.12",