From 8c5e52c903a07fb8791e8e5fdc71669538db141f Mon Sep 17 00:00:00 2001 From: DilshanSenarath <74205483+DilshanSenarath@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:35:24 +0530 Subject: [PATCH] use myaccount primary domain constant --- apps/myaccount/package.json | 3 +-- apps/myaccount/src/configs/app.ts | 4 ++-- pnpm-lock.yaml | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/myaccount/package.json b/apps/myaccount/package.json index 23f3128a72d..7a4091fbc02 100644 --- a/apps/myaccount/package.json +++ b/apps/myaccount/package.json @@ -73,8 +73,7 @@ "regenerator-runtime": "^0.13.9", "semantic-ui-react": "^2.1.3", "swr": "^2.0.0", - "uuid": "^8.3.0", - "@wso2is/admin.userstores.v1": "^2.26.23" + "uuid": "^8.3.0" }, "devDependencies": { "@testing-library/jest-dom": "^6.4.2", diff --git a/apps/myaccount/src/configs/app.ts b/apps/myaccount/src/configs/app.ts index 81cda0fd070..bc5e7b54367 100644 --- a/apps/myaccount/src/configs/app.ts +++ b/apps/myaccount/src/configs/app.ts @@ -16,9 +16,9 @@ * under the License. */ -import { PRIMARY_USERSTORE } from "@wso2is/admin.userstores.v1/constants"; import { I18nModuleInitOptions, I18nModuleOptionsInterface, MetaI18N, generateBackendPaths } from "@wso2is/i18n"; import { I18nConstants } from "../constants"; +import { AppConstants } from "../constants/app-constants"; // Keep statement as this to avoid cyclic dependency. Do not import from config index. import { SCIMConfigs } from "../extensions/configs/scim"; import { AppUtils } from "../init/app-utils"; @@ -165,7 +165,7 @@ export class Config { isPasswordInputValidationEnabled: window["AppUtils"]?.getConfig()?.ui?.isPasswordInputValidationEnabled, isProfileUsernameReadonly: window["AppUtils"]?.getConfig()?.ui?.isProfileUsernameReadonly, primaryUserStoreDomainName: window[ "AppUtils" ]?.getConfig()?.ui?.primaryUserStoreDomainName?.toUpperCase() - ?? PRIMARY_USERSTORE, + ?? AppConstants.PRIMARY_USER_STORE_IDENTIFIER, privacyPolicyConfigs: window["AppUtils"]?.getConfig()?.ui?.privacyPolicyConfigs, productName: window["AppUtils"]?.getConfig()?.ui?.productName, productVersionConfig: window["AppUtils"]?.getConfig()?.ui?.productVersionConfig, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b4a2d8252d..831962c4fbf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -957,9 +957,6 @@ importers: '@wso2is/admin.organizations.v1': specifier: ^2.26.64 version: link:../../features/admin.organizations.v1 - '@wso2is/admin.userstores.v1': - specifier: ^2.26.23 - version: link:../../features/admin.userstores.v1 '@wso2is/common.branding.v1': specifier: ^2.25.37 version: link:../../features/common.branding.v1