@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
|
@@ -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
|
|
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
|
|
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.
|
|
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",
|
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
|
|
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()) {
|