@pega/custom-dx-components 26.1.11-alpha-0.1 → 26.1.11-alpha-0.2

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": "26.1.11-alpha-0.1",
3
+ "version": "26.1.11-alpha-0.2",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": {
6
6
  "custom-dx-components": "./bin/index.js"
@@ -105,7 +105,7 @@ export const getAuthQuestions = async dxcbConfig => {
105
105
  default: defaultPegaConfig.authUrl,
106
106
  validate: value => isCompleteHttpUrl(value) || 'Authorization URL must be a complete HTTP(S) URL',
107
107
  when: answers =>
108
- answers.serverType === 'launchpad' && answers.isVanity === true && answers.grantType === 'authCode' && fnStandardWhen('authUrl', answers)
108
+ answers.serverType === 'launchpad' && answers.isVanity !== false && answers.grantType === 'authCode' && fnStandardWhen('authUrl', answers)
109
109
  },
110
110
  {
111
111
  name: 'accessTokenUrl',
@@ -113,7 +113,7 @@ export const getAuthQuestions = async dxcbConfig => {
113
113
  message: 'Enter complete access token URL',
114
114
  default: defaultPegaConfig.accessTokenUrl,
115
115
  validate: value => isCompleteHttpUrl(value) || 'Access token URL must be a complete HTTP(S) URL',
116
- when: answers => answers.serverType === 'launchpad' && answers.isVanity === true && fnStandardWhen('accessTokenUrl', answers)
116
+ when: answers => answers.serverType === 'launchpad' && answers.isVanity !== false && fnStandardWhen('accessTokenUrl', answers)
117
117
  },
118
118
  {
119
119
  name: 'authService',
@@ -109,7 +109,7 @@
109
109
  "@babel/preset-react": "^7.27.1",
110
110
  "@babel/preset-typescript": "^7.27.1",
111
111
  "@pega/configs": "^0.16.3",
112
- "@pega/custom-dx-components": "~26.1.11-alpha-0.1",
112
+ "@pega/custom-dx-components": "~26.1.11-alpha-0.2",
113
113
  "@pega/pcore-pconnect-typedefs": "^5.1.0",
114
114
  "@storybook/addon-docs": "^9.1.7",
115
115
  "@storybook/addon-essentials": "^9.0.0-alpha.12",
@@ -9,7 +9,6 @@
9
9
  "devBuild": true,
10
10
  "devServerPort": "3030",
11
11
  "serverType": "infinity",
12
- "isVanity": true,
13
12
  "server": "https://localhost:1080/prweb",
14
13
  "authUrl": "",
15
14
  "authUrlComment": "Authorization URL for the OAuth2 authentication",
package/src/util.js CHANGED
@@ -1210,7 +1210,7 @@ export const constructCompleteUrl = (baseServer, endPoint) => {
1210
1210
  return baseServer.endsWith('/') ? `${baseServer}${endPoint}` : `${baseServer}/${endPoint}`;
1211
1211
  };
1212
1212
 
1213
- export const isLaunchpadVanity = config => config?.serverType === 'launchpad' && config?.isVanity === true;
1213
+ export const isLaunchpadVanity = config => config?.serverType === 'launchpad' && config?.isVanity !== false;
1214
1214
 
1215
1215
  export const isCompleteHttpUrl = value => {
1216
1216
  if (typeof value !== 'string' || !value.trim()) {