@o3r/dynamic-content 14.1.0-prerelease.4 → 14.1.0-prerelease.40
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/fesm2022/o3r-dynamic-content-rules-engine.mjs +7 -7
- package/fesm2022/o3r-dynamic-content.mjs +20 -20
- package/fixtures/jasmine/index.d.ts +2 -29
- package/fixtures/jest/index.d.ts +2 -29
- package/package.json +5 -5
- package/index.d.ts +0 -407
- package/index.d.ts.map +0 -1
- package/rules-engine/index.d.ts +0 -37
- package/rules-engine/index.d.ts.map +0 -1
|
@@ -23,21 +23,21 @@ class AssetRulesEngineActionHandler {
|
|
|
23
23
|
}, {});
|
|
24
24
|
this.store.dispatch(setAssetPathOverride({ state: { assetPathOverrides } }));
|
|
25
25
|
}
|
|
26
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
27
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
26
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionHandler }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionHandler, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
|
|
33
33
|
class AssetRulesEngineActionModule {
|
|
34
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
35
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
36
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
34
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
35
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionModule, imports: [AssetPathOverrideStoreModule] }); }
|
|
36
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionModule, providers: [
|
|
37
37
|
AssetRulesEngineActionHandler
|
|
38
38
|
], imports: [AssetPathOverrideStoreModule] }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetRulesEngineActionModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
imports: [
|
|
@@ -47,13 +47,13 @@ class AssetPathOverrideStoreModule {
|
|
|
47
47
|
]
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
51
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
52
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetPathOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: AssetPathOverrideStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
52
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetPathOverrideStoreModule, providers: [
|
|
53
53
|
{ provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultAssetPathOverrideReducer }
|
|
54
54
|
], imports: [StoreModule.forFeature(ASSET_PATH_OVERRIDE_STORE_NAME, ASSET_PATH_OVERRIDE_REDUCER_TOKEN)] }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: AssetPathOverrideStoreModule, decorators: [{
|
|
57
57
|
type: NgModule,
|
|
58
58
|
args: [{
|
|
59
59
|
imports: [
|
|
@@ -147,10 +147,10 @@ class DynamicContentService {
|
|
|
147
147
|
}
|
|
148
148
|
return this.store.pipe(select(selectAssetPathOverride), map((entities) => assetPath && entities && entities[assetPath] ? entities[assetPath] : assetPath), map((finalAssetPath) => this.getMediaPath(finalAssetPath)), distinctUntilChanged(), shareReplay({ bufferSize: 1, refCount: true }));
|
|
149
149
|
}
|
|
150
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
151
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
150
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: DynamicContentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
151
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: DynamicContentService }); }
|
|
152
152
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: DynamicContentService, decorators: [{
|
|
154
154
|
type: Injectable
|
|
155
155
|
}], ctorParameters: () => [] });
|
|
156
156
|
|
|
@@ -259,10 +259,10 @@ class O3rDynamicContentPipe {
|
|
|
259
259
|
this.onMediaPathChange.unsubscribe();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
263
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
262
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: O3rDynamicContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
263
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: O3rDynamicContentPipe, isStandalone: true, name: "o3rDynamicContent", pure: false }); }
|
|
264
264
|
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: O3rDynamicContentPipe, decorators: [{
|
|
266
266
|
type: Pipe,
|
|
267
267
|
args: [{
|
|
268
268
|
name: 'o3rDynamicContent',
|
|
@@ -471,10 +471,10 @@ class RequestParametersService {
|
|
|
471
471
|
return acc;
|
|
472
472
|
}, {});
|
|
473
473
|
}
|
|
474
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
475
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
474
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: RequestParametersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
475
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: RequestParametersService }); }
|
|
476
476
|
}
|
|
477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: RequestParametersService, decorators: [{
|
|
478
478
|
type: Injectable
|
|
479
479
|
}], ctorParameters: () => [] });
|
|
480
480
|
|
|
@@ -503,11 +503,11 @@ function provideRequestParameters(config = defaultConfigFactory) {
|
|
|
503
503
|
* @deprecated Will be removed in v15
|
|
504
504
|
*/
|
|
505
505
|
class StyleLazyLoaderModule {
|
|
506
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
507
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
508
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
506
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
507
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
508
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
509
509
|
}
|
|
510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoaderModule, decorators: [{
|
|
511
511
|
type: NgModule,
|
|
512
512
|
args: [{}]
|
|
513
513
|
}] });
|
|
@@ -554,10 +554,10 @@ class StyleLazyLoader {
|
|
|
554
554
|
styleUrlConfig.href = dynamicContentPath;
|
|
555
555
|
this.loadStyleFromURL(styleUrlConfig);
|
|
556
556
|
}
|
|
557
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
558
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
557
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
558
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoader, providedIn: 'root' }); }
|
|
559
559
|
}
|
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: StyleLazyLoader, decorators: [{
|
|
561
561
|
type: Injectable,
|
|
562
562
|
args: [{
|
|
563
563
|
providedIn: 'root'
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Fixture file for requestParameters service
|
|
6
|
-
*/
|
|
7
|
-
declare class RequestParametersServiceFixture implements InterfaceOf<RequestParametersService> {
|
|
8
|
-
query: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
post: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
config: RequestParametersConfig;
|
|
15
|
-
getQueryParameter: jasmine.Spy;
|
|
16
|
-
getQueryParameterAsBoolean: jasmine.Spy;
|
|
17
|
-
getPostParameter: jasmine.Spy;
|
|
18
|
-
getPostParameterAsBoolean: jasmine.Spy;
|
|
19
|
-
getParameter: jasmine.Spy;
|
|
20
|
-
getParameterAsBoolean: jasmine.Spy;
|
|
21
|
-
clearQueryParameters: jasmine.Spy;
|
|
22
|
-
clearPostParameters: jasmine.Spy;
|
|
23
|
-
getFilteredParameters: jasmine.Spy;
|
|
24
|
-
getParams: jasmine.Spy;
|
|
25
|
-
constructor();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { RequestParametersServiceFixture };
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './request-parameters-service-fixture-jasmine';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/fixtures/jest/index.d.ts
CHANGED
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Fixture file for requestParameters service
|
|
6
|
-
*/
|
|
7
|
-
declare class RequestParametersServiceFixture implements InterfaceOf<RequestParametersService> {
|
|
8
|
-
query: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
post: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
config: RequestParametersConfig;
|
|
15
|
-
getQueryParameter: jest.Mock<any, any>;
|
|
16
|
-
getQueryParameterAsBoolean: jest.Mock<any, any>;
|
|
17
|
-
getPostParameter: jest.Mock<any, any>;
|
|
18
|
-
getPostParameterAsBoolean: jest.Mock<any, any>;
|
|
19
|
-
getParameter: jest.Mock<any, any>;
|
|
20
|
-
getParameterAsBoolean: jest.Mock<any, any>;
|
|
21
|
-
clearQueryParameters: jest.Mock<any, any>;
|
|
22
|
-
clearPostParameters: jest.Mock<any, any>;
|
|
23
|
-
getFilteredParameters: jest.Mock<any, any>;
|
|
24
|
-
getParams: jest.Mock<any, any>;
|
|
25
|
-
constructor();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { RequestParametersServiceFixture };
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './request-parameters-service-fixture-jest';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/dynamic-content",
|
|
3
|
-
"version": "14.1.0-prerelease.
|
|
3
|
+
"version": "14.1.0-prerelease.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@angular/core": "^21.0.0",
|
|
43
43
|
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
44
44
|
"@ngrx/store": "^21.0.0",
|
|
45
|
-
"@o3r/core": "~14.1.0-prerelease.
|
|
46
|
-
"@o3r/schematics": "~14.1.0-prerelease.
|
|
45
|
+
"@o3r/core": "~14.1.0-prerelease.40",
|
|
46
|
+
"@o3r/schematics": "~14.1.0-prerelease.40",
|
|
47
47
|
"@schematics/angular": "^21.0.0",
|
|
48
48
|
"cheerio": "^1.1.2",
|
|
49
49
|
"express-interceptor": "^1.2.0",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@o3r/schematics": "~14.1.0-prerelease.
|
|
79
|
+
"@o3r/schematics": "~14.1.0-prerelease.40",
|
|
80
80
|
"tslib": "^2.6.2"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
|
-
"node": "^
|
|
83
|
+
"node": "^22.17.0 || ^24.0.0"
|
|
84
84
|
},
|
|
85
85
|
"schematics": "./collection.json",
|
|
86
86
|
"ng-update": {
|
package/index.d.ts
DELETED
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, OnDestroy, ChangeDetectorRef, ModuleWithProviders, Provider, EnvironmentProviders, InjectionToken } 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
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Service for getting dynamic content path
|
|
11
|
-
*/
|
|
12
|
-
declare class DynamicContentService {
|
|
13
|
-
private readonly cmsOnlyAssetsPath;
|
|
14
|
-
private readonly store;
|
|
15
|
-
readonly basePath: string;
|
|
16
|
-
private readonly mediaFolder;
|
|
17
|
-
constructor();
|
|
18
|
-
private normalizePath;
|
|
19
|
-
private getContentPath;
|
|
20
|
-
private getMediaPath;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the full path of a content relative to the root
|
|
23
|
-
* Content path doesn't consider any override, you will always get the same file
|
|
24
|
-
* @param assetPath asset location in the root folder
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
getContentPathStream(assetPath?: string): rxjs.Observable<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the stream that provides the full path of a media content
|
|
33
|
-
* A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function
|
|
34
|
-
* If any override is applied to the content, returns the override path instead
|
|
35
|
-
* @param assetPath asset location in the media folder (e.g imgs/my-image.png)
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
getMediaPathStream(assetPath?: string): rxjs.Observable<string>;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentService, never>;
|
|
43
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicContentService>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy {
|
|
47
|
-
protected readonly service: DynamicContentService;
|
|
48
|
-
protected readonly cd: ChangeDetectorRef;
|
|
49
|
-
/** Last query value */
|
|
50
|
-
protected lastQuery?: string;
|
|
51
|
-
/** Subscription to retrieve media path */
|
|
52
|
-
protected onMediaPathChange?: Subscription;
|
|
53
|
-
/** Path to the media */
|
|
54
|
-
protected mediaPath: string;
|
|
55
|
-
/** @inheritDoc */
|
|
56
|
-
transform(query?: string): string;
|
|
57
|
-
/** @inheritDoc */
|
|
58
|
-
ngOnDestroy(): void;
|
|
59
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<O3rDynamicContentPipe, never>;
|
|
60
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Function to get dynamic content from body dataset
|
|
65
|
-
*/
|
|
66
|
-
declare function getDynamicContent(): string;
|
|
67
|
-
/**
|
|
68
|
-
* Function to get the cms assets from body dataset
|
|
69
|
-
* This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
|
|
70
|
-
*/
|
|
71
|
-
declare function getCmsAssets(): string;
|
|
72
|
-
/**
|
|
73
|
-
* DynamicContent module
|
|
74
|
-
* @deprecated Will be removed in v14.
|
|
75
|
-
*/
|
|
76
|
-
declare class DynamicContentModule {
|
|
77
|
-
/**
|
|
78
|
-
* Customize the location where the application will search for the base path of dynamic content
|
|
79
|
-
* @param dynamicPath Configuration for dynamic content path
|
|
80
|
-
* @param dynamicPath.content The string will be used as base path of dynamic content
|
|
81
|
-
* @param dynamicPath.cmsAssets The string will be used for the the base path of cms assets
|
|
82
|
-
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
83
|
-
* @deprecated Please use {@link provideDynamicContent} instead. Will be removed in v14.
|
|
84
|
-
*/
|
|
85
|
-
static forRoot(dynamicPath: {
|
|
86
|
-
content: string;
|
|
87
|
-
} | {
|
|
88
|
-
cmsAssets: string;
|
|
89
|
-
}): ModuleWithProviders<DynamicContentModule>;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentModule, never>;
|
|
91
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicContentModule, never, [typeof O3rDynamicContentPipe], [typeof O3rDynamicContentPipe]>;
|
|
92
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicContentModule>;
|
|
93
|
-
}
|
|
94
|
-
type DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';
|
|
95
|
-
interface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {
|
|
96
|
-
ɵkind: FeatureKind;
|
|
97
|
-
ɵproviders: Provider[];
|
|
98
|
-
}
|
|
99
|
-
type BasePathFeature = DynamicContentFeature<'base-path'>;
|
|
100
|
-
type CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;
|
|
101
|
-
type DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;
|
|
102
|
-
/**
|
|
103
|
-
* Specify a custom base path
|
|
104
|
-
* @param basePath
|
|
105
|
-
*/
|
|
106
|
-
declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
|
|
107
|
-
/**
|
|
108
|
-
* Specify a custom CMS assets path
|
|
109
|
-
* @param cmsAssetsPath
|
|
110
|
-
*/
|
|
111
|
-
declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
|
|
112
|
-
/**
|
|
113
|
-
* Provide dynamic content default configuration.
|
|
114
|
-
* To customize the location where the application will search for the base path of dynamic content
|
|
115
|
-
* @see {@link withBasePath}
|
|
116
|
-
* @see {@link withCmsAssetsPath}
|
|
117
|
-
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
118
|
-
* @param features
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* bootstrapApplication(App,
|
|
122
|
-
* {
|
|
123
|
-
* providers: [
|
|
124
|
-
* provideDynamicContent(
|
|
125
|
-
* withBasePath('custom/base/path'),
|
|
126
|
-
* withCmsAssetsPath('custom/cms/assets/path'),
|
|
127
|
-
* )
|
|
128
|
-
* ]
|
|
129
|
-
* }
|
|
130
|
-
* );
|
|
131
|
-
*/
|
|
132
|
-
declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Injection token for the rootpath of dynamic content
|
|
136
|
-
*/
|
|
137
|
-
declare const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string>;
|
|
138
|
-
/**
|
|
139
|
-
* Injection token for the assets path injected by the cms
|
|
140
|
-
* This token will be injected only in editor mode
|
|
141
|
-
*/
|
|
142
|
-
declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Strategies available to read / write data in the RequestParameters service.
|
|
146
|
-
* Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage
|
|
147
|
-
* Merge: storage data will be merged with the ones provided. (provided data has priority)
|
|
148
|
-
* Replace: storage data will be completely replaced by the ones provided
|
|
149
|
-
* ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.
|
|
150
|
-
*/
|
|
151
|
-
declare enum StorageStrategy {
|
|
152
|
-
Rehydrate = 0,
|
|
153
|
-
Merge = 1,
|
|
154
|
-
Replace = 2,
|
|
155
|
-
ReplaceIfNotEmpty = 3
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Configuration used by a user to feed the request parameters service.
|
|
159
|
-
*/
|
|
160
|
-
interface RequestParametersConfig {
|
|
161
|
-
/**
|
|
162
|
-
* Strategy used by the RequestParameters Service. See StorageStrategy for more info
|
|
163
|
-
*/
|
|
164
|
-
strategy: StorageStrategy;
|
|
165
|
-
/**
|
|
166
|
-
* Storage used by the RequestParameters service
|
|
167
|
-
*/
|
|
168
|
-
storage?: Storage;
|
|
169
|
-
/**
|
|
170
|
-
* Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)
|
|
171
|
-
*/
|
|
172
|
-
queryParamsValue: string;
|
|
173
|
-
/**
|
|
174
|
-
* Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)
|
|
175
|
-
*/
|
|
176
|
-
postParamsValue: string;
|
|
177
|
-
}
|
|
178
|
-
declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Empty configuration factory, used when config is not provided. It needs a separate function for AOT.
|
|
182
|
-
*/
|
|
183
|
-
declare function defaultConfigFactory(): {};
|
|
184
|
-
/**
|
|
185
|
-
* RequestParametersService Module
|
|
186
|
-
* @deprecated Will be removed in v14.
|
|
187
|
-
*/
|
|
188
|
-
declare class RequestParametersModule {
|
|
189
|
-
/**
|
|
190
|
-
* Provide request parameters config
|
|
191
|
-
* @param config
|
|
192
|
-
* @deprecated Please use {@link provideRequestParameters} instead. Will be removed in v14.
|
|
193
|
-
*/
|
|
194
|
-
static forRoot(config?: () => Partial<RequestParametersConfig>): ModuleWithProviders<RequestParametersModule>;
|
|
195
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersModule, never>;
|
|
196
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RequestParametersModule, never, never, never>;
|
|
197
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<RequestParametersModule>;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Provide request parameters config
|
|
201
|
-
* We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window
|
|
202
|
-
* @param config
|
|
203
|
-
*/
|
|
204
|
-
declare function provideRequestParameters(config?: () => Partial<RequestParametersConfig>): i0.EnvironmentProviders;
|
|
205
|
-
|
|
206
|
-
type ParamsList = 'query' | 'post';
|
|
207
|
-
type ParamsType = {
|
|
208
|
-
[k in ParamsList]: {
|
|
209
|
-
[key: string]: string;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Partial configuration for RequestParameters Service
|
|
214
|
-
*/
|
|
215
|
-
interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve
|
|
219
|
-
* them.
|
|
220
|
-
*/
|
|
221
|
-
declare class RequestParametersService implements ParamsType {
|
|
222
|
-
private _query;
|
|
223
|
-
private _post;
|
|
224
|
-
private readonly config;
|
|
225
|
-
constructor();
|
|
226
|
-
/**
|
|
227
|
-
* Depending on the strategy, set the internal values for the parameters.
|
|
228
|
-
* See StorageStrategy for more info.
|
|
229
|
-
* @param key
|
|
230
|
-
* @param value
|
|
231
|
-
*/
|
|
232
|
-
private setParameters;
|
|
233
|
-
/**
|
|
234
|
-
* Get all the query parameters in a map.
|
|
235
|
-
*/
|
|
236
|
-
get query(): {
|
|
237
|
-
[key: string]: any;
|
|
238
|
-
};
|
|
239
|
-
/**
|
|
240
|
-
* Get all the post parameters in a map.
|
|
241
|
-
*/
|
|
242
|
-
get post(): {
|
|
243
|
-
[key: string]: any;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Get a specific query parameter value, given the key.
|
|
247
|
-
* @param key
|
|
248
|
-
*/
|
|
249
|
-
getQueryParameter(key: string): string | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Get a specific query parameter value as boolean, given the key.
|
|
252
|
-
* @param key
|
|
253
|
-
*/
|
|
254
|
-
getQueryParameterAsBoolean(key: string): boolean | undefined;
|
|
255
|
-
/**
|
|
256
|
-
* Get a specific post parameter value, given the key.
|
|
257
|
-
* @param key
|
|
258
|
-
*/
|
|
259
|
-
getPostParameter(key: string): string | undefined;
|
|
260
|
-
/**
|
|
261
|
-
* Get a specific post parameter value as boolean, given the key.
|
|
262
|
-
* @param key
|
|
263
|
-
*/
|
|
264
|
-
getPostParameterAsBoolean(key: string): boolean | undefined;
|
|
265
|
-
/**
|
|
266
|
-
* Get a specific parameter value, given the key.
|
|
267
|
-
* @param key
|
|
268
|
-
*/
|
|
269
|
-
getParameter(key: string): string | undefined;
|
|
270
|
-
/**
|
|
271
|
-
* Get a specific parameter value as boolean, given the key.
|
|
272
|
-
* @param key
|
|
273
|
-
*/
|
|
274
|
-
getParameterAsBoolean(key: string): boolean | undefined;
|
|
275
|
-
/**
|
|
276
|
-
* Clear GET parameters from the storage
|
|
277
|
-
* @param paramsToClear the list on key that you want to clear in get parameters
|
|
278
|
-
*/
|
|
279
|
-
clearQueryParameters(paramsToClear?: string[]): void;
|
|
280
|
-
/**
|
|
281
|
-
* Clear POST parameters from the storage
|
|
282
|
-
* @param paramsToClear the list on key that you want to clean in post parameters
|
|
283
|
-
*/
|
|
284
|
-
clearPostParameters(paramsToClear?: string[]): void;
|
|
285
|
-
/**
|
|
286
|
-
* Get all the parameters in a map.
|
|
287
|
-
* @param priority the parameter to be given priority in case same key is in get and post params.
|
|
288
|
-
*/
|
|
289
|
-
getParams(priority?: ParamsList): {
|
|
290
|
-
[x: string]: any;
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Filter Parameters(both Query/POST) from the storage
|
|
294
|
-
* @param paramstoFilter the list on key that you want to filter from parameters
|
|
295
|
-
* @param priority the priorty of the parameter type(POST/Query)
|
|
296
|
-
*/
|
|
297
|
-
getFilteredParameters(paramstoFilter?: string[], priority?: ParamsList): {
|
|
298
|
-
[x: string]: any;
|
|
299
|
-
};
|
|
300
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersService, never>;
|
|
301
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestParametersService>;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
declare class StyleLazyLoaderModule {
|
|
305
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoaderModule, never>;
|
|
306
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StyleLazyLoaderModule, never, [typeof DynamicContentModule], never>;
|
|
307
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StyleLazyLoaderModule>;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Interface to describe a style to lazy load from a url.
|
|
312
|
-
*/
|
|
313
|
-
interface StyleURL {
|
|
314
|
-
/** url to file */
|
|
315
|
-
href: string;
|
|
316
|
-
/** id of the HTML element */
|
|
317
|
-
id?: string;
|
|
318
|
-
/** html integrity attribute to verify fetched resources */
|
|
319
|
-
integrity?: string;
|
|
320
|
-
/** html crossOrigin attribute for CORS support. */
|
|
321
|
-
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Service to lazy load a CSS file
|
|
325
|
-
*/
|
|
326
|
-
declare class StyleLazyLoader {
|
|
327
|
-
private readonly dcService;
|
|
328
|
-
private readonly DEFAULT_STYLE_ELEMENT_ID;
|
|
329
|
-
/**
|
|
330
|
-
* Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise
|
|
331
|
-
* @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes
|
|
332
|
-
* and the styleId id of the dynamic style in the body tag.
|
|
333
|
-
*/
|
|
334
|
-
loadStyleFromURL(styleUrlConfig: StyleURL): HTMLLinkElement;
|
|
335
|
-
/**
|
|
336
|
-
* Load a new CSS File
|
|
337
|
-
* @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes
|
|
338
|
-
* and the styleId id of the dynamic style in the body tag
|
|
339
|
-
*/
|
|
340
|
-
asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL): Promise<void>;
|
|
341
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoader, never>;
|
|
342
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StyleLazyLoader>;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* AssetPathOverride store state
|
|
347
|
-
*/
|
|
348
|
-
interface AssetPathOverrideState {
|
|
349
|
-
/** Mapping of asset path (key) and its override (value)*/
|
|
350
|
-
assetPathOverrides: Record<string, string>;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Name of the AssetPathOverride Store
|
|
354
|
-
*/
|
|
355
|
-
declare const ASSET_PATH_OVERRIDE_STORE_NAME = "assetPathOverride";
|
|
356
|
-
/**
|
|
357
|
-
* AssetPathOverride Store Interface
|
|
358
|
-
*/
|
|
359
|
-
interface AssetPathOverrideStore {
|
|
360
|
-
/** AssetPathOverride state */
|
|
361
|
-
[ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* Clear all overrides and fill the store with the payload
|
|
366
|
-
*/
|
|
367
|
-
declare const setAssetPathOverride: _ngrx_store.ActionCreator<"[AssetPathOverride] set entities", (props: SetStateActionPayload<AssetPathOverrideState>) => SetStateActionPayload<AssetPathOverrideState> & _ngrx_store.Action<"[AssetPathOverride] set entities">>;
|
|
368
|
-
|
|
369
|
-
/** Token of the AssetPathOverride reducer */
|
|
370
|
-
declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
|
|
371
|
-
/** Provide default reducer for AssetPathOverride store */
|
|
372
|
-
declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
|
|
373
|
-
declare class AssetPathOverrideStoreModule {
|
|
374
|
-
static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule>;
|
|
375
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPathOverrideStoreModule, never>;
|
|
376
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetPathOverrideStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
|
|
377
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AssetPathOverrideStoreModule>;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* AssetPathOverride Store initial value
|
|
382
|
-
*/
|
|
383
|
-
declare const assetPathOverrideInitialState: AssetPathOverrideState;
|
|
384
|
-
/**
|
|
385
|
-
* List of basic actions for AssetPathOverride Store
|
|
386
|
-
*/
|
|
387
|
-
declare const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[];
|
|
388
|
-
/**
|
|
389
|
-
* AssetPathOverride Store reducer
|
|
390
|
-
*/
|
|
391
|
-
declare const assetPathOverrideReducer: _ngrx_store.ActionReducer<AssetPathOverrideState, _ngrx_store.Action<string>>;
|
|
392
|
-
|
|
393
|
-
/** Select AssetPathOverride State */
|
|
394
|
-
declare const selectAssetPathOverrideState: _ngrx_store.MemoizedSelector<object, AssetPathOverrideState, _ngrx_store.DefaultProjectorFn<AssetPathOverrideState>>;
|
|
395
|
-
/** Select all assetPath override map */
|
|
396
|
-
declare const selectAssetPathOverride: _ngrx_store.MemoizedSelector<object, Record<string, string>, (s1: AssetPathOverrideState) => Record<string, string>>;
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Deserializer
|
|
400
|
-
* @param rawObject
|
|
401
|
-
*/
|
|
402
|
-
declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
|
|
403
|
-
declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
|
|
404
|
-
|
|
405
|
-
export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN, DynamicContentModule, DynamicContentService, O3rDynamicContentPipe, RequestParametersModule, RequestParametersService, StorageStrategy, StyleLazyLoader, StyleLazyLoaderModule, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
|
|
406
|
-
export type { AssetPathOverrideState, AssetPathOverrideStore, ParamsList, ParamsType, PartialRequestParametersConfig, RequestParametersConfig, StyleURL };
|
|
407
|
-
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../src/services/dynamic-content/dynamic-content-service.ts","../src/services/dynamic-content/dynamic-content-pipe.ts","../src/services/dynamic-content/dynamic-content-module.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-module.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"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":"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"}
|
package/rules-engine/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { RulesEngineAction, RulesEngineActionHandler } from '@o3r/core';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import * as i1 from '@o3r/dynamic-content';
|
|
4
|
-
|
|
5
|
-
/** ActionUpdateAssetBlock */
|
|
6
|
-
declare const RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE = "UPDATE_ASSET";
|
|
7
|
-
/**
|
|
8
|
-
* Content of action that updates asset
|
|
9
|
-
*/
|
|
10
|
-
interface ActionUpdateAssetBlock extends RulesEngineAction {
|
|
11
|
-
actionType: typeof RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE;
|
|
12
|
-
asset: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Service to handle async Asset actions
|
|
18
|
-
*/
|
|
19
|
-
declare class AssetRulesEngineActionHandler implements RulesEngineActionHandler<ActionUpdateAssetBlock> {
|
|
20
|
-
private readonly store;
|
|
21
|
-
/** @inheritdoc */
|
|
22
|
-
readonly supportingActions: readonly ["UPDATE_ASSET"];
|
|
23
|
-
/** @inheritdoc */
|
|
24
|
-
executeActions(actions: ActionUpdateAssetBlock[]): void | Promise<void>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AssetRulesEngineActionHandler, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AssetRulesEngineActionHandler>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare class AssetRulesEngineActionModule {
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AssetRulesEngineActionModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetRulesEngineActionModule, never, [typeof i1.AssetPathOverrideStoreModule], never>;
|
|
32
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AssetRulesEngineActionModule>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { AssetRulesEngineActionHandler, AssetRulesEngineActionModule, RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE };
|
|
36
|
-
export type { ActionUpdateAssetBlock };
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../src/rules-engine/asset-interfaces.ts","../../src/rules-engine/asset-rules-engine-action-handler.ts","../../src/rules-engine/asset-rules-engine-action-module.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;AAIA;AACA,cAAA,qCAAA;AAEA;;AAEG;AACG,UAAA,sBAAA,SAAA,iBAAA;;;;AAIL;;ACKD;;AAEG;AACH,cAAA,6BAAA,YAAA,wBAAA,CAAA,sBAAA;AAEE;;AAGA;;;;;AAWD;;AC5BD,cAAA,4BAAA;;;;AAQ4C;;;;"}
|