Skip to content

Commit 396add1

Browse files
authored
[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
1 parent 5c5e6ed commit 396add1

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

projects/aca-content/src/lib/store/app-store.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ import {
4040
UploadEffects,
4141
ViewerEffects
4242
} from './effects';
43-
import { INITIAL_STATE } from './initial-state';
4443
import { SearchAiEffects } from './effects/search-ai.effects';
4544

4645
@NgModule({
4746
providers: [
4847
provideStore(
4948
{ app: appReducer },
5049
{
51-
initialState: INITIAL_STATE,
5250
runtimeChecks: {
5351
strictStateImmutability: false,
5452
strictActionImmutability: false

projects/aca-content/src/lib/store/initial-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
2323
*/
2424

25-
export { INITIAL_STATE, INITIAL_APP_STATE } from '@alfresco/aca-shared/store';
25+
export { INITIAL_APP_STATE } from '@alfresco/aca-shared/store';

projects/aca-content/src/lib/testing/app-testing.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { RepositoryInfo, VersionInfo } from '@alfresco/js-api';
3030
import { provideStore } from '@ngrx/store';
3131
import { appReducer } from '../store/reducers/app.reducer';
3232
import { provideEffects } from '@ngrx/effects';
33-
import { INITIAL_STATE } from '../store/initial-state';
3433
import { BehaviorSubject, Observable, of } from 'rxjs';
3534
import { ContentManagementService } from '../services/content-management.service';
3635
import { DocumentBasePageService } from '@alfresco/aca-shared';
@@ -47,7 +46,6 @@ import { provideRouter } from '@angular/router';
4746
provideStore(
4847
{ app: appReducer },
4948
{
50-
initialState: INITIAL_STATE,
5149
runtimeChecks: {
5250
strictStateImmutability: false,
5351
strictActionImmutability: false

projects/aca-shared/store/src/states/app.state.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
import { SelectionState, ProfileState, NavigationState } from '@alfresco/adf-extensions';
2626
import { RepositoryInfo, VersionEntry } from '@alfresco/js-api';
27-
import { InjectionToken } from '@angular/core';
28-
29-
/** @deprecated no longer used */
30-
export const STORE_INITIAL_APP_DATA = new InjectionToken<AppState>('STORE_INITIAL_APP_DATA');
3127

3228
export const INITIAL_APP_STATE: AppState = {
3329
user: {
@@ -59,11 +55,6 @@ export const INITIAL_APP_STATE: AppState = {
5955
searchItemsTotalCount: null
6056
};
6157

62-
/** @deprecated no longer used */
63-
export const INITIAL_STATE: AppStore = {
64-
app: INITIAL_APP_STATE
65-
};
66-
6758
export interface AppState {
6859
currentNodeVersion: VersionEntry;
6960
selection: SelectionState;

0 commit comments

Comments
 (0)