From 396add1e883e144b37fa07ff802dd4e4f3d6f036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Ja=C5=9Bkowski?= <138671284+g-jaskowski@users.noreply.github.com> Date: Wed, 27 Aug 2025 09:24:24 +0200 Subject: [PATCH] [ACS-9859] replace deprecated APIs and modules (#4687) * [ACS-9859] replace deprecated APIs and modules * [ACS-9859] delete deprecated code * [ACS-9859] fix rebase errors * [ACS-9859] revert wrong code deletion * [ACS-9859] fix after rebase --- projects/aca-content/src/lib/store/app-store.module.ts | 2 -- projects/aca-content/src/lib/store/initial-state.ts | 2 +- .../aca-content/src/lib/testing/app-testing.module.ts | 2 -- projects/aca-shared/store/src/states/app.state.ts | 9 --------- 4 files changed, 1 insertion(+), 14 deletions(-) diff --git a/projects/aca-content/src/lib/store/app-store.module.ts b/projects/aca-content/src/lib/store/app-store.module.ts index 6de5b1db8..af9ff00fe 100644 --- a/projects/aca-content/src/lib/store/app-store.module.ts +++ b/projects/aca-content/src/lib/store/app-store.module.ts @@ -40,7 +40,6 @@ import { UploadEffects, ViewerEffects } from './effects'; -import { INITIAL_STATE } from './initial-state'; import { SearchAiEffects } from './effects/search-ai.effects'; @NgModule({ @@ -48,7 +47,6 @@ import { SearchAiEffects } from './effects/search-ai.effects'; provideStore( { app: appReducer }, { - initialState: INITIAL_STATE, runtimeChecks: { strictStateImmutability: false, strictActionImmutability: false diff --git a/projects/aca-content/src/lib/store/initial-state.ts b/projects/aca-content/src/lib/store/initial-state.ts index 45d1f8de3..4f1ab6bae 100644 --- a/projects/aca-content/src/lib/store/initial-state.ts +++ b/projects/aca-content/src/lib/store/initial-state.ts @@ -22,4 +22,4 @@ * from Hyland Software. If not, see . */ -export { INITIAL_STATE, INITIAL_APP_STATE } from '@alfresco/aca-shared/store'; +export { INITIAL_APP_STATE } from '@alfresco/aca-shared/store'; diff --git a/projects/aca-content/src/lib/testing/app-testing.module.ts b/projects/aca-content/src/lib/testing/app-testing.module.ts index 57ef82beb..a9053e035 100644 --- a/projects/aca-content/src/lib/testing/app-testing.module.ts +++ b/projects/aca-content/src/lib/testing/app-testing.module.ts @@ -30,7 +30,6 @@ import { RepositoryInfo, VersionInfo } from '@alfresco/js-api'; import { provideStore } from '@ngrx/store'; import { appReducer } from '../store/reducers/app.reducer'; import { provideEffects } from '@ngrx/effects'; -import { INITIAL_STATE } from '../store/initial-state'; import { BehaviorSubject, Observable, of } from 'rxjs'; import { ContentManagementService } from '../services/content-management.service'; import { DocumentBasePageService } from '@alfresco/aca-shared'; @@ -47,7 +46,6 @@ import { provideRouter } from '@angular/router'; provideStore( { app: appReducer }, { - initialState: INITIAL_STATE, runtimeChecks: { strictStateImmutability: false, strictActionImmutability: false diff --git a/projects/aca-shared/store/src/states/app.state.ts b/projects/aca-shared/store/src/states/app.state.ts index da049c362..8263e68db 100644 --- a/projects/aca-shared/store/src/states/app.state.ts +++ b/projects/aca-shared/store/src/states/app.state.ts @@ -24,10 +24,6 @@ import { SelectionState, ProfileState, NavigationState } from '@alfresco/adf-extensions'; import { RepositoryInfo, VersionEntry } from '@alfresco/js-api'; -import { InjectionToken } from '@angular/core'; - -/** @deprecated no longer used */ -export const STORE_INITIAL_APP_DATA = new InjectionToken('STORE_INITIAL_APP_DATA'); export const INITIAL_APP_STATE: AppState = { user: { @@ -59,11 +55,6 @@ export const INITIAL_APP_STATE: AppState = { searchItemsTotalCount: null }; -/** @deprecated no longer used */ -export const INITIAL_STATE: AppStore = { - app: INITIAL_APP_STATE -}; - export interface AppState { currentNodeVersion: VersionEntry; selection: SelectionState;