@o3r/dynamic-content 15.3.0-prerelease.15 → 15.3.0-prerelease.18

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.
@@ -1,24 +1,22 @@
1
- import * as i0 from '@angular/core';
2
- import { Provider, EnvironmentProviders, PipeTransform, OnDestroy, ChangeDetectorRef, InjectionToken, ModuleWithProviders } from '@angular/core';
3
- import * as rxjs from 'rxjs';
4
- import { Subscription } from 'rxjs';
5
- import * as _ngrx_store from '@ngrx/store';
6
- import { ActionReducer, Action, ReducerTypes, ActionCreator } from '@ngrx/store';
7
- import { SetStateActionPayload, Serializer } from '@o3r/core';
8
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectorRef, EnvironmentProviders, InjectionToken, ModuleWithProviders, OnDestroy, PipeTransform, Provider } from "@angular/core";
3
+ import { Subscription } from "rxjs";
4
+ import { Serializer, SetStateActionPayload } from "@o3r/core";
5
+ import * as i1 from "@ngrx/store";
6
+ import { Action, ActionCreator, ActionReducer, ReducerTypes } from "@ngrx/store";
9
7
  /**
10
8
  * Function to get dynamic content from body dataset
11
9
  */
12
- declare function getDynamicContent(): string;
10
+ export declare function getDynamicContent(): string;
13
11
  /**
14
12
  * Function to get the cms assets from body dataset
15
13
  * This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
16
14
  */
17
- declare function getCmsAssets(): string;
15
+ export declare function getCmsAssets(): string;
18
16
  type DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';
19
17
  interface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {
20
- ɵkind: FeatureKind;
21
- ɵproviders: Provider[];
18
+ ɵkind: FeatureKind;
19
+ ɵproviders: Provider[];
22
20
  }
23
21
  type BasePathFeature = DynamicContentFeature<'base-path'>;
24
22
  type CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;
@@ -27,12 +25,12 @@ type DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;
27
25
  * Specify a custom base path
28
26
  * @param basePath
29
27
  */
30
- declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
28
+ export declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
31
29
  /**
32
30
  * Specify a custom CMS assets path
33
31
  * @param cmsAssetsPath
34
32
  */
35
- declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
33
+ export declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
36
34
  /**
37
35
  * Provide dynamic content default configuration.
38
36
  * To customize the location where the application will search for the base path of dynamic content
@@ -53,73 +51,69 @@ declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): Dyna
53
51
  * }
54
52
  * );
55
53
  */
56
- declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
57
-
54
+ export declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
58
55
  /**
59
56
  * Service for getting dynamic content path
60
57
  */
61
- declare class DynamicContentService {
62
- private readonly cmsOnlyAssetsPath;
63
- private readonly store;
64
- readonly basePath: string;
65
- private readonly mediaFolder;
66
- constructor();
67
- private normalizePath;
68
- private isAbsoluteUrl;
69
- private getContentPath;
70
- private getMediaPath;
71
- /**
72
- * Gets the full path of a content relative to the root
73
- * Content path doesn't consider any override, you will always get the same file
74
- * @param assetPath asset location in the root folder
75
- * @example
76
- * ```typescript
77
- * getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'
78
- * ```
79
- */
80
- getContentPathStream(assetPath?: string): rxjs.Observable<string>;
81
- /**
82
- * Gets the stream that provides the full path of a media content
83
- * A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function
84
- * If any override is applied to the content, returns the override path instead
85
- * @param assetPath asset location in the media folder (e.g imgs/my-image.png)
86
- * @example
87
- * ```typescript
88
- * getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'
89
- * ```
90
- */
91
- getMediaPathStream(assetPath?: string): rxjs.Observable<string>;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentService, never>;
93
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
58
+ export declare class DynamicContentService {
59
+ private readonly cmsOnlyAssetsPath;
60
+ private readonly store;
61
+ readonly basePath: string;
62
+ private readonly mediaFolder;
63
+ constructor();
64
+ private normalizePath;
65
+ private isAbsoluteUrl;
66
+ private getContentPath;
67
+ private getMediaPath;
68
+ /**
69
+ * Gets the full path of a content relative to the root
70
+ * Content path doesn't consider any override, you will always get the same file
71
+ * @param assetPath asset location in the root folder
72
+ * @example
73
+ * ```typescript
74
+ * getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'
75
+ * ```
76
+ */
77
+ getContentPathStream(assetPath?: string): import("rxjs").Observable<string>;
78
+ /**
79
+ * Gets the stream that provides the full path of a media content
80
+ * A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function
81
+ * If any override is applied to the content, returns the override path instead
82
+ * @param assetPath asset location in the media folder (e.g imgs/my-image.png)
83
+ * @example
84
+ * ```typescript
85
+ * getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'
86
+ * ```
87
+ */
88
+ getMediaPathStream(assetPath?: string): import("rxjs").Observable<string>;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentService, never>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
94
91
  }
95
-
96
- declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy {
97
- protected readonly service: DynamicContentService;
98
- protected readonly cd: ChangeDetectorRef;
99
- /** Last query value */
100
- protected lastQuery?: string;
101
- /** Subscription to retrieve media path */
102
- protected onMediaPathChange?: Subscription;
103
- /** Path to the media */
104
- protected mediaPath: string;
105
- /** @inheritDoc */
106
- transform(query?: string): string;
107
- /** @inheritDoc */
108
- ngOnDestroy(): void;
109
- static ɵfac: i0.ɵɵFactoryDeclaration<O3rDynamicContentPipe, never>;
110
- static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
92
+ export declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy {
93
+ protected readonly service: DynamicContentService;
94
+ protected readonly cd: ChangeDetectorRef;
95
+ /** Last query value */
96
+ protected lastQuery?: string;
97
+ /** Subscription to retrieve media path */
98
+ protected onMediaPathChange?: Subscription;
99
+ /** Path to the media */
100
+ protected mediaPath: string;
101
+ /** @inheritDoc */
102
+ transform(query?: string): string;
103
+ /** @inheritDoc */
104
+ ngOnDestroy(): void;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<O3rDynamicContentPipe, never>;
106
+ static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
111
107
  }
112
-
113
108
  /**
114
109
  * Injection token for the rootpath of dynamic content
115
110
  */
116
- declare const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string>;
111
+ export declare const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string>;
117
112
  /**
118
113
  * Injection token for the assets path injected by the cms
119
114
  * This token will be injected only in editor mode
120
115
  */
121
- declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
122
-
116
+ export declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
123
117
  /**
124
118
  * Strategies available to read / write data in the RequestParameters service.
125
119
  * Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage
@@ -127,247 +121,233 @@ declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
127
121
  * Replace: storage data will be completely replaced by the ones provided
128
122
  * ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.
129
123
  */
130
- declare enum StorageStrategy {
131
- Rehydrate = 0,
132
- Merge = 1,
133
- Replace = 2,
134
- ReplaceIfNotEmpty = 3
124
+ export declare enum StorageStrategy {
125
+ Rehydrate = 0,
126
+ Merge = 1,
127
+ Replace = 2,
128
+ ReplaceIfNotEmpty = 3
135
129
  }
136
130
  /**
137
131
  * Configuration used by a user to feed the request parameters service.
138
132
  */
139
- interface RequestParametersConfig {
140
- /**
141
- * Strategy used by the RequestParameters Service. See StorageStrategy for more info
142
- */
143
- strategy: StorageStrategy;
144
- /**
145
- * Storage used by the RequestParameters service
146
- */
147
- storage?: Storage;
148
- /**
149
- * Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)
150
- */
151
- queryParamsValue: string;
152
- /**
153
- * Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)
154
- */
155
- postParamsValue: string;
133
+ export interface RequestParametersConfig {
134
+ /**
135
+ * Strategy used by the RequestParameters Service. See StorageStrategy for more info
136
+ */
137
+ strategy: StorageStrategy;
138
+ /**
139
+ * Storage used by the RequestParameters service
140
+ */
141
+ storage?: Storage;
142
+ /**
143
+ * Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)
144
+ */
145
+ queryParamsValue: string;
146
+ /**
147
+ * Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)
148
+ */
149
+ postParamsValue: string;
156
150
  }
157
- declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
158
-
151
+ export declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
159
152
  /**
160
153
  * Empty configuration factory, used when config is not provided. It needs a separate function for AOT.
161
154
  */
162
- declare function defaultConfigFactory(): {};
155
+ export declare function defaultConfigFactory(): {};
163
156
  /**
164
157
  * Provide request parameters config
165
158
  * We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window
166
159
  * @param config
167
160
  */
168
- declare function provideRequestParameters(config?: () => Partial<RequestParametersConfig>): i0.EnvironmentProviders;
169
-
170
- type ParamsList = 'query' | 'post';
171
- type ParamsType = {
172
- [k in ParamsList]: {
173
- [key: string]: string;
174
- };
175
- };
161
+ export declare function provideRequestParameters(config?: () => Partial<RequestParametersConfig>): import("@angular/core").EnvironmentProviders;
162
+ export type ParamsList = 'query' | 'post';
163
+ export type ParamsType = { [k in ParamsList]: {
164
+ [key: string]: string;
165
+ }; };
176
166
  /**
177
167
  * Partial configuration for RequestParameters Service
178
168
  */
179
- interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {
180
- }
169
+ export interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {}
181
170
  /**
182
171
  * Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve
183
172
  * them.
184
173
  */
185
- declare class RequestParametersService implements ParamsType {
186
- private _query;
187
- private _post;
188
- private readonly config;
189
- constructor();
190
- /**
191
- * Depending on the strategy, set the internal values for the parameters.
192
- * See StorageStrategy for more info.
193
- * @param key
194
- * @param value
195
- */
196
- private setParameters;
197
- /**
198
- * Get all the query parameters in a map.
199
- */
200
- get query(): {
201
- [key: string]: any;
202
- };
203
- /**
204
- * Get all the post parameters in a map.
205
- */
206
- get post(): {
207
- [key: string]: any;
208
- };
209
- /**
210
- * Get a specific query parameter value, given the key.
211
- * @param key
212
- */
213
- getQueryParameter(key: string): string | undefined;
214
- /**
215
- * Get a specific query parameter value as boolean, given the key.
216
- * @param key
217
- */
218
- getQueryParameterAsBoolean(key: string): boolean | undefined;
219
- /**
220
- * Get a specific post parameter value, given the key.
221
- * @param key
222
- */
223
- getPostParameter(key: string): string | undefined;
224
- /**
225
- * Get a specific post parameter value as boolean, given the key.
226
- * @param key
227
- */
228
- getPostParameterAsBoolean(key: string): boolean | undefined;
229
- /**
230
- * Get a specific parameter value, given the key.
231
- * @param key
232
- */
233
- getParameter(key: string): string | undefined;
234
- /**
235
- * Get a specific parameter value as boolean, given the key.
236
- * @param key
237
- */
238
- getParameterAsBoolean(key: string): boolean | undefined;
239
- /**
240
- * Clear GET parameters from the storage
241
- * @param paramsToClear the list on key that you want to clear in get parameters
242
- */
243
- clearQueryParameters(paramsToClear?: string[]): void;
244
- /**
245
- * Clear POST parameters from the storage
246
- * @param paramsToClear the list on key that you want to clean in post parameters
247
- */
248
- clearPostParameters(paramsToClear?: string[]): void;
249
- /**
250
- * Get all the parameters in a map.
251
- * @param priority the parameter to be given priority in case same key is in get and post params.
252
- */
253
- getParams(priority?: ParamsList): {
254
- [x: string]: any;
255
- };
256
- /**
257
- * Filter Parameters(both Query/POST) from the storage
258
- * @param paramstoFilter the list on key that you want to filter from parameters
259
- * @param priority the priorty of the parameter type(POST/Query)
260
- */
261
- getFilteredParameters(paramstoFilter?: string[], priority?: ParamsList): {
262
- [x: string]: any;
263
- };
264
- static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersService, never>;
265
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
174
+ export declare class RequestParametersService implements ParamsType {
175
+ private _query;
176
+ private _post;
177
+ private readonly config;
178
+ constructor();
179
+ /**
180
+ * Depending on the strategy, set the internal values for the parameters.
181
+ * See StorageStrategy for more info.
182
+ * @param key
183
+ * @param value
184
+ */
185
+ private setParameters;
186
+ /**
187
+ * Get all the query parameters in a map.
188
+ */
189
+ get query(): {
190
+ [key: string]: any;
191
+ };
192
+ /**
193
+ * Get all the post parameters in a map.
194
+ */
195
+ get post(): {
196
+ [key: string]: any;
197
+ };
198
+ /**
199
+ * Get a specific query parameter value, given the key.
200
+ * @param key
201
+ */
202
+ getQueryParameter(key: string): string | undefined;
203
+ /**
204
+ * Get a specific query parameter value as boolean, given the key.
205
+ * @param key
206
+ */
207
+ getQueryParameterAsBoolean(key: string): boolean | undefined;
208
+ /**
209
+ * Get a specific post parameter value, given the key.
210
+ * @param key
211
+ */
212
+ getPostParameter(key: string): string | undefined;
213
+ /**
214
+ * Get a specific post parameter value as boolean, given the key.
215
+ * @param key
216
+ */
217
+ getPostParameterAsBoolean(key: string): boolean | undefined;
218
+ /**
219
+ * Get a specific parameter value, given the key.
220
+ * @param key
221
+ */
222
+ getParameter(key: string): string | undefined;
223
+ /**
224
+ * Get a specific parameter value as boolean, given the key.
225
+ * @param key
226
+ */
227
+ getParameterAsBoolean(key: string): boolean | undefined;
228
+ /**
229
+ * Clear GET parameters from the storage
230
+ * @param paramsToClear the list on key that you want to clear in get parameters
231
+ */
232
+ clearQueryParameters(paramsToClear?: string[]): void;
233
+ /**
234
+ * Clear POST parameters from the storage
235
+ * @param paramsToClear the list on key that you want to clean in post parameters
236
+ */
237
+ clearPostParameters(paramsToClear?: string[]): void;
238
+ /**
239
+ * Get all the parameters in a map.
240
+ * @param priority the parameter to be given priority in case same key is in get and post params.
241
+ */
242
+ getParams(priority?: ParamsList): {
243
+ [x: string]: any;
244
+ };
245
+ /**
246
+ * Filter Parameters(both Query/POST) from the storage
247
+ * @param paramstoFilter the list on key that you want to filter from parameters
248
+ * @param priority the priorty of the parameter type(POST/Query)
249
+ */
250
+ getFilteredParameters(paramstoFilter?: string[], priority?: ParamsList): {
251
+ [x: string]: any;
252
+ };
253
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersService, never>;
254
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
266
255
  }
267
-
268
256
  /**
269
257
  * Interface to describe a style to lazy load from a url.
270
258
  */
271
- interface StyleURL {
272
- /** url to file */
273
- href: string;
274
- /** id of the HTML element */
275
- id?: string;
276
- /** html integrity attribute to verify fetched resources */
277
- integrity?: string;
278
- /** html crossOrigin attribute for CORS support. */
279
- crossOrigin?: 'anonymous' | 'use-credentials' | '';
259
+ export interface StyleURL {
260
+ /** url to file */
261
+ href: string;
262
+ /** id of the HTML element */
263
+ id?: string;
264
+ /** html integrity attribute to verify fetched resources */
265
+ integrity?: string;
266
+ /** html crossOrigin attribute for CORS support. */
267
+ crossOrigin?: 'anonymous' | 'use-credentials' | '';
280
268
  }
281
269
  /**
282
270
  * Service to lazy load a CSS file
283
271
  */
284
- declare class StyleLazyLoader {
285
- private readonly dcService;
286
- private readonly DEFAULT_STYLE_ELEMENT_ID;
287
- /**
288
- * Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise
289
- * @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes
290
- * and the styleId id of the dynamic style in the body tag.
291
- */
292
- loadStyleFromURL(styleUrlConfig: StyleURL): HTMLLinkElement;
293
- /**
294
- * Load a new CSS File
295
- * @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes
296
- * and the styleId id of the dynamic style in the body tag
297
- */
298
- asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL): Promise<void>;
299
- static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoader, never>;
300
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
272
+ export declare class StyleLazyLoader {
273
+ private readonly dcService;
274
+ private readonly DEFAULT_STYLE_ELEMENT_ID;
275
+ /**
276
+ * Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise
277
+ * @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes
278
+ * and the styleId id of the dynamic style in the body tag.
279
+ */
280
+ loadStyleFromURL(styleUrlConfig: StyleURL): HTMLLinkElement;
281
+ /**
282
+ * Load a new CSS File
283
+ * @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes
284
+ * and the styleId id of the dynamic style in the body tag
285
+ */
286
+ asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL): Promise<void>;
287
+ static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoader, never>;
288
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
301
289
  }
302
-
303
290
  /**
304
291
  * AssetPathOverride store state
305
292
  */
306
- interface AssetPathOverrideState {
307
- /** Mapping of asset path (key) and its override (value)*/
308
- assetPathOverrides: Record<string, string>;
293
+ export interface AssetPathOverrideState {
294
+ /** Mapping of asset path (key) and its override (value)*/
295
+ assetPathOverrides: Record<string, string>;
309
296
  }
310
297
  /**
311
298
  * Name of the AssetPathOverride Store
312
299
  */
313
- declare const ASSET_PATH_OVERRIDE_STORE_NAME = "assetPathOverride";
300
+ export declare const ASSET_PATH_OVERRIDE_STORE_NAME = "assetPathOverride";
314
301
  /**
315
302
  * AssetPathOverride Store Interface
316
303
  */
317
- interface AssetPathOverrideStore {
318
- /** AssetPathOverride state */
319
- [ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;
304
+ export interface AssetPathOverrideStore {
305
+ /** AssetPathOverride state */
306
+ [ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;
320
307
  }
321
-
322
308
  /**
323
309
  * Clear all overrides and fill the store with the payload
324
310
  */
325
- declare const setAssetPathOverride: _ngrx_store.ActionCreator<"[AssetPathOverride] set entities", (props: SetStateActionPayload<AssetPathOverrideState>) => SetStateActionPayload<AssetPathOverrideState> & _ngrx_store.Action<"[AssetPathOverride] set entities">>;
326
-
311
+ export declare const setAssetPathOverride: import("@ngrx/store").ActionCreator<"[AssetPathOverride] set entities", (props: SetStateActionPayload<AssetPathOverrideState>) => SetStateActionPayload<AssetPathOverrideState> & import("@ngrx/store").Action<"[AssetPathOverride] set entities">>;
327
312
  /** Token of the AssetPathOverride reducer */
328
- declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
313
+ export declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
329
314
  /** Provide default reducer for AssetPathOverride store */
330
- declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
315
+ export declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
331
316
  /**
332
317
  * @deprecated Will be removed in v16. Use {@link provideAssetPathOverrideStore} instead.
333
318
  */
334
- declare class AssetPathOverrideStoreModule {
335
- static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule>;
336
- static ɵfac: i0.ɵɵFactoryDeclaration<AssetPathOverrideStoreModule, never>;
337
- static ɵmod: i0.ɵɵNgModuleDeclaration<AssetPathOverrideStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
338
- static ɵinj: i0.ɵɵInjectorDeclaration<AssetPathOverrideStoreModule>;
319
+ export declare class AssetPathOverrideStoreModule {
320
+ static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule>;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetPathOverrideStoreModule, never>;
322
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AssetPathOverrideStoreModule, never, [typeof i1.StoreFeatureModule], never>;
323
+ static ɵinj: i0.ɵɵInjectorDeclaration<AssetPathOverrideStoreModule>;
339
324
  }
340
325
  /**
341
326
  * Provide AssetPathOverride feature store.
342
327
  * @param reducerFactory Optional factory to override the default reducer.
343
328
  */
344
- declare function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders;
345
-
329
+ export declare function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders;
346
330
  /**
347
331
  * AssetPathOverride Store initial value
348
332
  */
349
- declare const assetPathOverrideInitialState: AssetPathOverrideState;
333
+ export declare const assetPathOverrideInitialState: AssetPathOverrideState;
350
334
  /**
351
335
  * List of basic actions for AssetPathOverride Store
352
336
  */
353
- declare const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[];
337
+ export declare const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[];
354
338
  /**
355
339
  * AssetPathOverride Store reducer
356
340
  */
357
- declare const assetPathOverrideReducer: _ngrx_store.ActionReducer<AssetPathOverrideState, _ngrx_store.Action<string>>;
358
-
341
+ export declare const assetPathOverrideReducer: import("@ngrx/store").ActionReducer<AssetPathOverrideState, import("@ngrx/store").Action<string>>;
359
342
  /** Select AssetPathOverride State */
360
- declare const selectAssetPathOverrideState: _ngrx_store.MemoizedSelector<object, AssetPathOverrideState, _ngrx_store.DefaultProjectorFn<AssetPathOverrideState>>;
343
+ export declare const selectAssetPathOverrideState: import("@ngrx/store").MemoizedSelector<object, AssetPathOverrideState, import("@ngrx/store").DefaultProjectorFn<AssetPathOverrideState>>;
361
344
  /** Select all assetPath override map */
362
- declare const selectAssetPathOverride: _ngrx_store.MemoizedSelector<object, Record<string, string>, (s1: AssetPathOverrideState) => Record<string, string>>;
363
-
345
+ export declare const selectAssetPathOverride: import("@ngrx/store").MemoizedSelector<object, Record<string, string>, (s1: AssetPathOverrideState) => Record<string, string>>;
364
346
  /**
365
347
  * Deserializer
366
348
  * @param rawObject
367
349
  */
368
- declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
369
- declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
370
-
371
- export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN, DynamicContentService, O3rDynamicContentPipe, RequestParametersService, StorageStrategy, StyleLazyLoader, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideAssetPathOverrideStore, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
372
- export type { AssetPathOverrideState, AssetPathOverrideStore, ParamsList, ParamsType, PartialRequestParametersConfig, RequestParametersConfig, StyleURL };
373
- //# sourceMappingURL=o3r-dynamic-content.d.ts.map
350
+ export declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
351
+ export declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
352
+ export {};
353
+ //# sourceMappingURL=o3r-dynamic-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"o3r-dynamic-content.d.ts","sources":["../../src/services/dynamic-content/dynamic-content-module.ts","../../src/services/dynamic-content/dynamic-content-service.ts","../../src/services/dynamic-content/dynamic-content-pipe.ts","../../src/services/dynamic-content/dynamic-content-token.ts","../../src/services/request-parameters/request-parameters-config.ts","../../src/services/request-parameters/request-parameters-module.ts","../../src/services/request-parameters/request-parameters-service.ts","../../src/services/styling/style-lazy-loader.ts","../../src/stores/asset-path-override/asset-path-override.state.ts","../../src/stores/asset-path-override/asset-path-override.actions.ts","../../src/stores/asset-path-override/asset-path-override-module.ts","../../src/stores/asset-path-override/asset-path-override.reducer.ts","../../src/stores/asset-path-override/asset-path-override.selectors.ts","../../src/stores/asset-path-override/asset-path-override.sync.ts"],"mappings":";;;;;;;;AAaA;;AAEG;AACH,iBAAgB,iBAAiB;AAIjC;;;AAGG;AACH,iBAAgB,YAAY;AAI5B,KAAK,yBAAyB;AAE9B,UAAU,qBAAqB,qBAAqB,yBAAyB;;gBAE/D,QAAQ;AACrB;AAED,KAAK,eAAe,GAAG,qBAAqB;AAC5C,KAAK,oBAAoB,GAAG,qBAAqB;AAEjD,KAAK,sBAAsB,GAAG,eAAe,GAAG,oBAAoB;AAEpE;;;AAGG;AACH,iBAAgB,YAAY,qCAAqC,eAAe;AAgBhF;;;AAGG;AACH,iBAAgB,iBAAiB,0CAA0C,qBAAqB;AAgBhG;;;;;;;;;;;;;;;;;;;AAmBG;AACH,iBAAgB,qBAAqB,cAAc,sBAAsB,KAAE,oBAAA;;ACzE3E;;AAEG;AACH,cACa,qBAAqB;AAChC;AACA;;AAIA;;AASA;AAIA;AAIA;AAQA;AAUA;;;;;;;;AAQG;AACI,8CAAuC,IAAA,CAAA,UAAA;AAI9C;;;;;;;;;AASG;AACI,4CAAqC,IAAA,CAAA,UAAA;yCAhEjC,qBAAqB;;AA4EjC;;AC7FD,cAIa,qBAAsB,YAAW,aAAa,EAAE,SAAS;AACpE,gCAA0B,qBAAA;AAC1B,2BAAqB,iBAAA;;AAGrB;;AAGA,k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
1
+ {"version":3,"file":"o3r-dynamic-content.d.ts","names":[],"sources":["../../src/services/dynamic-content/dynamic-content-module.ts","../../src/services/dynamic-content/dynamic-content-service.ts","../../src/services/dynamic-content/dynamic-content-pipe.ts","../../src/services/dynamic-content/dynamic-content-token.ts","../../src/services/request-parameters/request-parameters-config.ts","../../src/services/request-parameters/request-parameters-module.ts","../../src/services/request-parameters/request-parameters-service.ts","../../src/services/styling/style-lazy-loader.ts","../../src/stores/asset-path-override/asset-path-override.state.ts","../../src/stores/asset-path-override/asset-path-override.actions.ts","../../src/stores/asset-path-override/asset-path-override-module.ts","../../src/stores/asset-path-override/asset-path-override.reducer.ts","../../src/stores/asset-path-override/asset-path-override.selectors.ts","../../src/stores/asset-path-override/asset-path-override.sync.ts"],"mappings":";;;;;;;;;wBAgBgB;;;;;wBAQA;KAIX;UAEK,sBAAsB,oBAAoB;EAClD,OAAO;EACP,YAAY;;KAGT,kBAAkB;KAClB,uBAAuB;KAEvB,yBAAyB,kBAAkB;;;;;wBAMhC,aAAa,oCAAoC;;;;;wBAoBjD,kBAAkB,yCAAyC;;;;;;;;;;;;;;;;;;;;;wBAoC3D,yBAAyB,UAAU,2BAAwB;;;;qBCrE9D;mBACM;mBACA;WAED;mBAEC;;UAST;UAIA;UAIA;UAQA;;;;;;;;;;EAmBD,qBAAqB,oCAAkB;;;;;;;;;;;EAcvC,mBAAmB,oCAAkB;SAhEjC,MAAA,GAAA,qBAAA;;;qBCbA,iCAAiC,eAAe;qBACxC,SAAO;qBACP,IAAE;;YAGX;;YAGA,oBAAoB;;YAGpB;;EAGH,UAAU;;EAgBV;SA9BI,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;qBCXA,iCAAiC;;;;;qBAMjC,uBAAuB;;;;;;;;oBCLxB;EAEV;EAEA;EAEA;EAEA;;;;;iBAMe;;;;EAIf,UAAU;;;;EAIV,UAAU;;;;EAIV;;;;EAIA;;qBAGW,gCAAgC,SAAS;;;;wBCzBtC;;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