@sitecore-jss/sitecore-jss-angular 22.10.0-canary.9 → 22.10.0
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/LICENSE.txt +202 -202
- package/README.md +10 -10
- package/angular.json +47 -48
- package/dist/README.md +10 -10
- package/dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs +228 -393
- package/dist/fesm2022/sitecore-jss-sitecore-jss-angular.mjs.map +1 -1
- package/dist/index.d.ts +640 -3
- package/ng-package.json +13 -13
- package/package.json +22 -22
- package/tsconfig.json +10 -10
- package/tsconfig.spec.json +18 -18
- package/typings/README.md +2 -2
- package/dist/components/base-field.directive.d.ts +0 -39
- package/dist/components/date.directive.d.ts +0 -27
- package/dist/components/default-empty-image-field-editing-placeholder.component.d.ts +0 -8
- package/dist/components/default-empty-text-field-editing-placeholder.component.d.ts +0 -8
- package/dist/components/editframe.component.d.ts +0 -22
- package/dist/components/editing-scripts.component.d.ts +0 -16
- package/dist/components/field-metadata-marker.component.d.ts +0 -12
- package/dist/components/file.directive.d.ts +0 -17
- package/dist/components/form.component.d.ts +0 -48
- package/dist/components/generic-link.directive.d.ts +0 -24
- package/dist/components/hidden-rendering.component.d.ts +0 -6
- package/dist/components/image.directive.d.ts +0 -43
- package/dist/components/link.directive.d.ts +0 -41
- package/dist/components/missing-component.component.d.ts +0 -7
- package/dist/components/placeholder-loading.directive.d.ts +0 -8
- package/dist/components/placeholder.component.d.ts +0 -82
- package/dist/components/raw.component.d.ts +0 -12
- package/dist/components/render-component.component.d.ts +0 -33
- package/dist/components/render-each.directive.d.ts +0 -8
- package/dist/components/render-empty.directive.d.ts +0 -8
- package/dist/components/rendering-field-sxa.d.ts +0 -40
- package/dist/components/rendering-field.d.ts +0 -39
- package/dist/components/rendering.d.ts +0 -5
- package/dist/components/rich-text.directive.d.ts +0 -25
- package/dist/components/router-link.directive.d.ts +0 -23
- package/dist/components/text.directive.d.ts +0 -23
- package/dist/esm2022/components/base-field.directive.mjs +0 -56
- package/dist/esm2022/components/date.directive.mjs +0 -82
- package/dist/esm2022/components/default-empty-image-field-editing-placeholder.component.mjs +0 -26
- package/dist/esm2022/components/default-empty-text-field-editing-placeholder.component.mjs +0 -17
- package/dist/esm2022/components/editframe.component.mjs +0 -101
- package/dist/esm2022/components/editing-scripts.component.mjs +0 -59
- package/dist/esm2022/components/field-metadata-marker.component.mjs +0 -36
- package/dist/esm2022/components/file.directive.mjs +0 -49
- package/dist/esm2022/components/form.component.mjs +0 -125
- package/dist/esm2022/components/generic-link.directive.mjs +0 -75
- package/dist/esm2022/components/hidden-rendering.component.mjs +0 -20
- package/dist/esm2022/components/image.directive.mjs +0 -173
- package/dist/esm2022/components/link.directive.mjs +0 -153
- package/dist/esm2022/components/missing-component.component.mjs +0 -31
- package/dist/esm2022/components/placeholder-loading.directive.mjs +0 -17
- package/dist/esm2022/components/placeholder.component.mjs +0 -459
- package/dist/esm2022/components/raw.component.mjs +0 -39
- package/dist/esm2022/components/render-component.component.mjs +0 -106
- package/dist/esm2022/components/render-each.directive.mjs +0 -17
- package/dist/esm2022/components/render-empty.directive.mjs +0 -17
- package/dist/esm2022/components/rendering-field-sxa.mjs +0 -2
- package/dist/esm2022/components/rendering-field.mjs +0 -2
- package/dist/esm2022/components/rendering.mjs +0 -8
- package/dist/esm2022/components/rich-text.directive.mjs +0 -83
- package/dist/esm2022/components/router-link.directive.mjs +0 -57
- package/dist/esm2022/components/text.directive.mjs +0 -76
- package/dist/esm2022/lib.module.mjs +0 -173
- package/dist/esm2022/public_api.mjs +0 -32
- package/dist/esm2022/services/data-resolver-factory.mjs +0 -60
- package/dist/esm2022/services/guard-resolver-factory.mjs +0 -98
- package/dist/esm2022/services/jss-can-activate-error.mjs +0 -15
- package/dist/esm2022/services/jss-component-factory.service.mjs +0 -103
- package/dist/esm2022/services/jss-state.service.mjs +0 -44
- package/dist/esm2022/services/placeholder.token.mjs +0 -28
- package/dist/esm2022/services/shared.token.mjs +0 -6
- package/dist/esm2022/sitecore-jss-sitecore-jss-angular.mjs +0 -5
- package/dist/esm2022/utils.mjs +0 -17
- package/dist/lib.module.d.ts +0 -50
- package/dist/public_api.d.ts +0 -33
- package/dist/services/data-resolver-factory.d.ts +0 -13
- package/dist/services/guard-resolver-factory.d.ts +0 -11
- package/dist/services/jss-can-activate-error.d.ts +0 -10
- package/dist/services/jss-component-factory.service.d.ts +0 -27
- package/dist/services/jss-state.service.d.ts +0 -36
- package/dist/services/placeholder.token.d.ts +0 -65
- package/dist/services/shared.token.d.ts +0 -12
- package/dist/utils.d.ts +0 -6
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/** Registers a statically loaded component */
|
|
3
|
-
export class ComponentNameAndType {
|
|
4
|
-
name;
|
|
5
|
-
type;
|
|
6
|
-
canActivate;
|
|
7
|
-
resolve;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @param {unknown} object
|
|
11
|
-
*/
|
|
12
|
-
export function instanceOfComponentNameAndType(object) {
|
|
13
|
-
return typeof object === 'object' && object !== null && 'type' in object;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @param {unknown} object
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfComponentNameAndModule(object) {
|
|
19
|
-
return typeof object === 'object' && object !== null && 'module' in object;
|
|
20
|
-
}
|
|
21
|
-
export const PLACEHOLDER_COMPONENTS = new InjectionToken('Sc.placeholder.components');
|
|
22
|
-
export const PLACEHOLDER_LAZY_COMPONENTS = new InjectionToken('Sc.placeholder.lazyComponents');
|
|
23
|
-
export const PLACEHOLDER_MISSING_COMPONENT_COMPONENT = new InjectionToken('Sc.placeholder.missingComponentComponent');
|
|
24
|
-
export const PLACEHOLDER_HIDDEN_RENDERING_COMPONENT = new InjectionToken('Sc.placeholder.hiddenRenderingComponent');
|
|
25
|
-
export const DYNAMIC_COMPONENT = new InjectionToken('Sc.placeholder.dynamicComponent');
|
|
26
|
-
export const GUARD_RESOLVER = new InjectionToken('Sc.placeholder.guardResolver');
|
|
27
|
-
export const DATA_RESOLVER = new InjectionToken('Sc.placeholder.dataResolver');
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhY2Vob2xkZXIudG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvcGxhY2Vob2xkZXIudG9rZW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQWFyRCw4Q0FBOEM7QUFDOUMsTUFBTSxPQUFPLG9CQUFvQjtJQUMvQixJQUFJLENBQVM7SUFDYixJQUFJLENBQWdCO0lBRXBCLFdBQVcsQ0FJeUQ7SUFDcEUsT0FBTyxDQUFzRTtDQUM5RTtBQW1CRDs7R0FFRztBQUNILE1BQU0sVUFBVSw4QkFBOEIsQ0FBQyxNQUFlO0lBQzVELE9BQU8sT0FBTyxNQUFNLEtBQUssUUFBUSxJQUFJLE1BQU0sS0FBSyxJQUFJLElBQUksTUFBTSxJQUFJLE1BQU0sQ0FBQztBQUMzRSxDQUFDO0FBRUQ7O0dBRUc7QUFDSCxNQUFNLFVBQVUsZ0NBQWdDLENBQzlDLE1BQWU7SUFFZixPQUFPLE9BQU8sTUFBTSxLQUFLLFFBQVEsSUFBSSxNQUFNLEtBQUssSUFBSSxJQUFJLFFBQVEsSUFBSSxNQUFNLENBQUM7QUFDN0UsQ0FBQztBQUVELE1BQU0sQ0FBQyxNQUFNLHNCQUFzQixHQUFHLElBQUksY0FBYyxDQUN0RCwyQkFBMkIsQ0FDNUIsQ0FBQztBQUNGLE1BQU0sQ0FBQyxNQUFNLDJCQUEyQixHQUFHLElBQUksY0FBYyxDQUMzRCwrQkFBK0IsQ0FDaEMsQ0FBQztBQUNGLE1BQU0sQ0FBQ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Vzb2x2ZShpbnB1dDogR3VhcmRJbnB1dCk6IE9ic2VydmFibGU8VD4gfCBQcm9taXNlPFQ+IHwgVDtcclxufVxyXG4iXX0=
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Injection token for the Sitecore Edge configuration.
|
|
4
|
-
*/
|
|
5
|
-
export const EDGE_CONFIG = new InjectionToken('Sc.edgeConfig');
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLnRva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NlcnZpY2VzL3NoYXJlZC50b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBVS9DOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHLElBQUksY0FBYyxDQUFrQixlQUFlLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG4vKipcclxuICogU2hhcGUgb2YgdGhlIFNpdGVjb3JlIEVkZ2UgY29uZmlndXJhdGlvbi5cclxuICovXHJcbmV4cG9ydCB0eXBlIEVkZ2VDb25maWdUb2tlbiA9IHtcclxuICBzaXRlY29yZUVkZ2VVcmw/OiBzdHJpbmc7XHJcbiAgc2l0ZWNvcmVFZGdlQ29udGV4dElkOiBzdHJpbmc7XHJcbn07XHJcblxyXG4vKipcclxuICogSW5qZWN0aW9uIHRva2VuIGZvciB0aGUgU2l0ZWNvcmUgRWRnZSBjb25maWd1cmF0aW9uLlxyXG4gKi9cclxuZXhwb3J0IGNvbnN0IEVER0VfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPEVkZ2VDb25maWdUb2tlbj4oJ1NjLmVkZ2VDb25maWcnKTtcclxuIl19
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2l0ZWNvcmUtanNzLXNpdGVjb3JlLWpzcy1hbmd1bGFyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NpdGVjb3JlLWpzcy1zaXRlY29yZS1qc3MtYW5ndWxhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
package/dist/esm2022/utils.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ɵisPromise as isPromise } from '@angular/core';
|
|
2
|
-
import { from, isObservable, of } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* @param {T} value
|
|
5
|
-
* @returns {Promise | Observable | any} resolved value
|
|
6
|
-
*/
|
|
7
|
-
export function wrapIntoObservable(value) {
|
|
8
|
-
if (isObservable(value)) {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
if (isPromise(value)) {
|
|
12
|
-
return from(Promise.resolve(value));
|
|
13
|
-
}
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
return of(value);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb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+IHtcclxuICBpZiAoaXNPYnNlcnZhYmxlKHZhbHVlKSkge1xyXG4gICAgcmV0dXJuIHZhbHVlO1xyXG4gIH1cclxuXHJcbiAgaWYgKGlzUHJvbWlzZSh2YWx1ZSkpIHtcclxuICAgIHJldHVybiBmcm9tKFByb21pc2UucmVzb2x2ZSh2YWx1ZSkpO1xyXG4gIH1cclxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxyXG4gIHJldHVybiBvZih2YWx1ZSkgYXMgYW55O1xyXG59XHJcbiJdfQ==
|
package/dist/lib.module.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, Type } from '@angular/core';
|
|
2
|
-
import { ComponentNameAndModule, ComponentNameAndType } from './services/placeholder.token';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./components/file.directive";
|
|
5
|
-
import * as i2 from "./components/image.directive";
|
|
6
|
-
import * as i3 from "./components/link.directive";
|
|
7
|
-
import * as i4 from "./components/router-link.directive";
|
|
8
|
-
import * as i5 from "./components/generic-link.directive";
|
|
9
|
-
import * as i6 from "./components/date.directive";
|
|
10
|
-
import * as i7 from "./components/render-each.directive";
|
|
11
|
-
import * as i8 from "./components/render-empty.directive";
|
|
12
|
-
import * as i9 from "./components/placeholder-loading.directive";
|
|
13
|
-
import * as i10 from "./components/render-component.component";
|
|
14
|
-
import * as i11 from "./components/placeholder.component";
|
|
15
|
-
import * as i12 from "./components/raw.component";
|
|
16
|
-
import * as i13 from "./components/rich-text.directive";
|
|
17
|
-
import * as i14 from "./components/text.directive";
|
|
18
|
-
import * as i15 from "./components/missing-component.component";
|
|
19
|
-
import * as i16 from "./components/hidden-rendering.component";
|
|
20
|
-
import * as i17 from "./components/editframe.component";
|
|
21
|
-
import * as i18 from "./components/editing-scripts.component";
|
|
22
|
-
import * as i19 from "./components/form.component";
|
|
23
|
-
import * as i20 from "@angular/common";
|
|
24
|
-
export declare class JssModule {
|
|
25
|
-
/**
|
|
26
|
-
* Instantiates the JSS module with no component factory.
|
|
27
|
-
* Useful for using it from libraries. Most of the time you'd want withComponents()
|
|
28
|
-
* @returns {ModuleWithProviders<JssModule>} module
|
|
29
|
-
*/
|
|
30
|
-
static forRoot(): ModuleWithProviders<JssModule>;
|
|
31
|
-
/**
|
|
32
|
-
* Instantiates a module for a lazy-loaded JSS component(s)
|
|
33
|
-
* @param {Type<unknown> | Record<string, Type<unknown>> } value - component or map of components
|
|
34
|
-
* @returns {ModuleWithProviders<JssModule>} module
|
|
35
|
-
*/
|
|
36
|
-
static forChild(value: Type<unknown> | {
|
|
37
|
-
[key: string]: Type<unknown>;
|
|
38
|
-
}): ModuleWithProviders<JssModule>;
|
|
39
|
-
/**
|
|
40
|
-
* Instantiates the JSS module and specifies the mapping from component name to component implementation.
|
|
41
|
-
* Appropriate when defining the set of JSS components that your app is aware of.
|
|
42
|
-
* @param {ComponentNameAndType[]} components
|
|
43
|
-
* @param {ComponentNameAndModule[]} [lazyComponents]
|
|
44
|
-
* @returns {ModuleWithProviders<JssModule>} module
|
|
45
|
-
*/
|
|
46
|
-
static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JssModule, never>;
|
|
48
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<JssModule, [typeof i1.FileDirective, typeof i2.ImageDirective, typeof i3.LinkDirective, typeof i4.RouterLinkDirective, typeof i5.GenericLinkDirective, typeof i6.DateDirective, typeof i7.RenderEachDirective, typeof i8.RenderEmptyDirective, typeof i9.PlaceholderLoadingDirective, typeof i10.RenderComponentComponent, typeof i11.PlaceholderComponent, typeof i12.RawComponent, typeof i13.RichTextDirective, typeof i14.TextDirective, typeof i15.MissingComponentComponent, typeof i16.HiddenRenderingComponent, typeof i17.EditFrameComponent, typeof i18.EditingScriptsComponent, typeof i19.FormComponent], [typeof i20.CommonModule], [typeof i1.FileDirective, typeof i2.ImageDirective, typeof i6.DateDirective, typeof i3.LinkDirective, typeof i4.RouterLinkDirective, typeof i5.GenericLinkDirective, typeof i7.RenderEachDirective, typeof i8.RenderEmptyDirective, typeof i10.RenderComponentComponent, typeof i11.PlaceholderComponent, typeof i16.HiddenRenderingComponent, typeof i9.PlaceholderLoadingDirective, typeof i13.RichTextDirective, typeof i14.TextDirective, typeof i17.EditFrameComponent, typeof i18.EditingScriptsComponent, typeof i19.FormComponent]>;
|
|
49
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<JssModule>;
|
|
50
|
-
}
|
package/dist/public_api.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { FileDirective } from './components/file.directive';
|
|
2
|
-
export { ImageDirective } from './components/image.directive';
|
|
3
|
-
export { LinkDirective } from './components/link.directive';
|
|
4
|
-
export { RouterLinkDirective } from './components/router-link.directive';
|
|
5
|
-
export { GenericLinkDirective } from './components/generic-link.directive';
|
|
6
|
-
export { PlaceholderComponent } from './components/placeholder.component';
|
|
7
|
-
export { HiddenRenderingComponent } from './components/hidden-rendering.component';
|
|
8
|
-
export { RenderEachDirective } from './components/render-each.directive';
|
|
9
|
-
export { RenderEmptyDirective } from './components/render-empty.directive';
|
|
10
|
-
export { RenderComponentComponent } from './components/render-component.component';
|
|
11
|
-
export { DateDirective } from './components/date.directive';
|
|
12
|
-
export { EditFrameComponent } from './components/editframe.component';
|
|
13
|
-
export { EditingScriptsComponent } from './components/editing-scripts.component';
|
|
14
|
-
export { FormComponent } from './components/form.component';
|
|
15
|
-
export { ComponentNameAndType, DYNAMIC_COMPONENT, ComponentNameAndModule, JssResolve, JssCanActivate, JssCanActivateFn, GuardInput, } from './services/placeholder.token';
|
|
16
|
-
export { EDGE_CONFIG } from './services/shared.token';
|
|
17
|
-
export { JssStateService, BaseJssState } from './services/jss-state.service';
|
|
18
|
-
export { PlaceholderLoadingDirective } from './components/placeholder-loading.directive';
|
|
19
|
-
export { isRawRendering } from './components/rendering';
|
|
20
|
-
export { FileField, ImageField, ImageFieldValue, LinkField, LinkFieldValue, RenderingField, RichTextField, TextField, } from './components/rendering-field';
|
|
21
|
-
export { SxaLinkListFields, SxaTitleFields } from './components/rendering-field-sxa';
|
|
22
|
-
export { RichTextDirective } from './components/rich-text.directive';
|
|
23
|
-
export { TextDirective } from './components/text.directive';
|
|
24
|
-
export { JssModule } from './lib.module';
|
|
25
|
-
export { mediaApi } from '@sitecore-jss/sitecore-jss/media';
|
|
26
|
-
export { DictionaryService, GraphQLDictionaryService, RestDictionaryService, DictionaryPhrases, } from '@sitecore-jss/sitecore-jss/i18n';
|
|
27
|
-
export { LayoutService, LayoutServiceData, LayoutServiceContextData, LayoutServicePageState, GraphQLLayoutService, RestLayoutService, PlaceholdersData, RouteData, Field, HtmlElementRendering, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, getContentStylesheetLink, EditMode, LayoutServiceContext, } from '@sitecore-jss/sitecore-jss/layout';
|
|
28
|
-
export { RetryStrategy, DefaultRetryStrategy, GraphQLClientError, GraphQLRequestClientFactoryConfig, GraphQLRequestClient, getEdgeProxyContentUrl, } from '@sitecore-jss/sitecore-jss/graphql';
|
|
29
|
-
export { constants, HttpDataFetcher, NativeDataFetcher, NativeDataFetcherConfig, NativeDataFetcherResponse, NativeDataFetcherError, HttpResponse, enableDebug, ClientError, HTMLLink, debug, CacheClient, CacheOptions, MemoryCacheClient, } from '@sitecore-jss/sitecore-jss';
|
|
30
|
-
export { GraphQLPersonalizeService, GraphQLPersonalizeServiceConfig, PersonalizeInfo, CdpHelper, DEFAULT_VARIANT, getGroomedVariantIds, personalizeLayout, } from '@sitecore-jss/sitecore-jss/personalize';
|
|
31
|
-
export { isServer } from '@sitecore-jss/sitecore-jss/utils';
|
|
32
|
-
export { isEditorActive, resetEditorChromes, handleEditorAnchors, DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, } from '@sitecore-jss/sitecore-jss/editing';
|
|
33
|
-
export { trackingApi, TrackingRequestOptions, CampaignInstance, GoalInstance, OutcomeInstance, EventInstance, PageViewInstance, } from '@sitecore-jss/sitecore-jss/tracking';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ComponentFactoryResult } from './jss-component-factory.service';
|
|
4
|
-
/**
|
|
5
|
-
* @param {Injector} injector
|
|
6
|
-
* @param {ActivatedRoute} activatedRoute
|
|
7
|
-
* @param {Router} router
|
|
8
|
-
* @returns resolved data
|
|
9
|
-
*/
|
|
10
|
-
export declare function dataResolverFactory(injector: Injector, activatedRoute: ActivatedRoute, router: Router): (factories: ComponentFactoryResult[]) => Promise<{
|
|
11
|
-
factory: ComponentFactoryResult;
|
|
12
|
-
data: Record<string, any>;
|
|
13
|
-
}[]>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ComponentFactoryResult } from './jss-component-factory.service';
|
|
4
|
-
/**
|
|
5
|
-
* Resolves components based on provided guards
|
|
6
|
-
* @param {Injector} injector
|
|
7
|
-
* @param {ActivatedRoute} activatedRoute
|
|
8
|
-
* @param {Router} router
|
|
9
|
-
* @returns {(factories: ComponentFactoryResult[]) => Promise<ComponentFactoryResult[]>} factory
|
|
10
|
-
*/
|
|
11
|
-
export declare function guardResolverFactory(injector: Injector, activatedRoute: ActivatedRoute, router: Router): (factories: ComponentFactoryResult[]) => Promise<ComponentFactoryResult[]>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RedirectCommand, UrlTree } from '@angular/router';
|
|
2
|
-
/**
|
|
3
|
-
* Error thrown when a JssCanActivate guard returns a redirect value.
|
|
4
|
-
* The redirect value will be used to redirect the user to a different route.
|
|
5
|
-
*/
|
|
6
|
-
export declare class JssCanActivateRedirectError extends Error {
|
|
7
|
-
message: string;
|
|
8
|
-
redirectValue: string | string[] | UrlTree | RedirectCommand;
|
|
9
|
-
constructor(message: string, redirectValue: string | string[] | UrlTree | RedirectCommand);
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Injector, NgModuleRef, Type } from '@angular/core';
|
|
2
|
-
import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss/layout';
|
|
3
|
-
import { ComponentNameAndModule, ComponentNameAndType, JssCanActivate, JssCanActivateFn, JssResolve } from './placeholder.token';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface ComponentFactoryResult {
|
|
6
|
-
componentImplementation?: Type<any>;
|
|
7
|
-
componentDefinition: ComponentRendering | HtmlElementRendering;
|
|
8
|
-
componentModuleRef?: NgModuleRef<unknown>;
|
|
9
|
-
canActivate?: JssCanActivate | Type<JssCanActivate> | JssCanActivateFn | Array<JssCanActivate | JssCanActivateFn | Type<JssCanActivate>>;
|
|
10
|
-
resolve?: {
|
|
11
|
-
[key: string]: JssResolve<any> | Type<JssResolve<any>>;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare class JssComponentFactoryService {
|
|
15
|
-
private injector;
|
|
16
|
-
private components;
|
|
17
|
-
private lazyComponents;
|
|
18
|
-
private componentMap;
|
|
19
|
-
private lazyComponentMap;
|
|
20
|
-
constructor(injector: Injector, components: ComponentNameAndType[], lazyComponents: ComponentNameAndModule[]);
|
|
21
|
-
getComponent(component: ComponentRendering): Promise<ComponentFactoryResult>;
|
|
22
|
-
getComponents(components: Array<ComponentRendering | HtmlElementRendering>): Promise<ComponentFactoryResult[]>;
|
|
23
|
-
private getRawComponent;
|
|
24
|
-
private applySXAParams;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JssComponentFactoryService, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<JssComponentFactoryService>;
|
|
27
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TransferState } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { LayoutServiceContextData, RouteData } from '../public_api';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BaseJssState {
|
|
6
|
-
sitecore?: LayoutServiceContextData & {
|
|
7
|
-
route: RouteData | null;
|
|
8
|
-
};
|
|
9
|
-
viewBag?: {
|
|
10
|
-
[key: string]: unknown;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* The service that is used to store and retrieve the current state of the app.
|
|
15
|
-
* Referenced by the SDK to get the current state of the app.
|
|
16
|
-
*/
|
|
17
|
-
export declare class JssStateService<State extends BaseJssState = BaseJssState> {
|
|
18
|
-
protected transferState: TransferState;
|
|
19
|
-
private _state;
|
|
20
|
-
constructor(transferState: TransferState);
|
|
21
|
-
/**
|
|
22
|
-
* Observable JSS state to subscribe to
|
|
23
|
-
*/
|
|
24
|
-
get state(): Observable<State>;
|
|
25
|
-
/**
|
|
26
|
-
* The 'here and now' state value, usable without subscribing
|
|
27
|
-
*/
|
|
28
|
-
get stateValue(): State;
|
|
29
|
-
/**
|
|
30
|
-
* Set new JSS state
|
|
31
|
-
* @param {JssState} newState new state
|
|
32
|
-
*/
|
|
33
|
-
setState(newState: State): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JssStateService<any>, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<JssStateService<any>>;
|
|
36
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Type } from '@angular/core';
|
|
2
|
-
import { ActivatedRouteSnapshot, Data, RouterStateSnapshot, UrlTree, RedirectCommand, Router } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ComponentFactoryResult } from './jss-component-factory.service';
|
|
5
|
-
import { ComponentRendering } from '../public_api';
|
|
6
|
-
/** Registers a statically loaded component */
|
|
7
|
-
export declare class ComponentNameAndType {
|
|
8
|
-
name: string;
|
|
9
|
-
type: Type<unknown>;
|
|
10
|
-
canActivate?: JssCanActivate | Type<JssCanActivate> | JssCanActivateFn | Array<JssCanActivate | JssCanActivateFn | Type<JssCanActivate>>;
|
|
11
|
-
resolve?: {
|
|
12
|
-
[key: string]: JssResolve<unknown> | Type<JssResolve<unknown>>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
/** Registers a lazily loaded component by name and module to lazy load when it's needed */
|
|
16
|
-
export interface ComponentNameAndModule {
|
|
17
|
-
/** Name of the component */
|
|
18
|
-
path: string;
|
|
19
|
-
/**
|
|
20
|
-
* Dynamic import of the component,
|
|
21
|
-
* e.g. () => import('./path/to/lazyloadedcomponent.module').then(m => m.LazyLoadedComponentModuleExportName)
|
|
22
|
-
*/
|
|
23
|
-
loadChildren: () => Promise<Type<unknown>>;
|
|
24
|
-
canActivate?: JssCanActivate | JssCanActivateFn | Type<JssCanActivate> | Array<JssCanActivate | JssCanActivateFn | Type<JssCanActivate>>;
|
|
25
|
-
resolve?: {
|
|
26
|
-
[key: string]: JssResolve<unknown> | Type<JssResolve<unknown>>;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @param {unknown} object
|
|
31
|
-
*/
|
|
32
|
-
export declare function instanceOfComponentNameAndType(object: unknown): object is ComponentNameAndType;
|
|
33
|
-
/**
|
|
34
|
-
* @param {unknown} object
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfComponentNameAndModule(object: unknown): object is ComponentNameAndModule;
|
|
37
|
-
export declare const PLACEHOLDER_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
38
|
-
export declare const PLACEHOLDER_LAZY_COMPONENTS: InjectionToken<ComponentNameAndType[]>;
|
|
39
|
-
export declare const PLACEHOLDER_MISSING_COMPONENT_COMPONENT: InjectionToken<Type<unknown>>;
|
|
40
|
-
export declare const PLACEHOLDER_HIDDEN_RENDERING_COMPONENT: InjectionToken<Type<unknown>>;
|
|
41
|
-
export declare const DYNAMIC_COMPONENT: InjectionToken<Type<unknown> | {
|
|
42
|
-
[s: string]: unknown;
|
|
43
|
-
}>;
|
|
44
|
-
export type GuardResolver = (result: ComponentFactoryResult[]) => Promise<ComponentFactoryResult[]>;
|
|
45
|
-
export declare const GUARD_RESOLVER: InjectionToken<GuardResolver>;
|
|
46
|
-
export type DataResolver = (result: ComponentFactoryResult[]) => Promise<Array<{
|
|
47
|
-
factory: ComponentFactoryResult;
|
|
48
|
-
data: Data;
|
|
49
|
-
}>>;
|
|
50
|
-
export declare const DATA_RESOLVER: InjectionToken<DataResolver>;
|
|
51
|
-
export interface GuardInput {
|
|
52
|
-
activatedRoute: ActivatedRouteSnapshot;
|
|
53
|
-
routerState: RouterStateSnapshot;
|
|
54
|
-
rendering: ComponentRendering;
|
|
55
|
-
router: Router;
|
|
56
|
-
}
|
|
57
|
-
export interface JssCanActivateFn {
|
|
58
|
-
(input: GuardInput): Observable<boolean | UrlTree | RedirectCommand | string | string[]> | Promise<boolean | UrlTree | RedirectCommand | string | string[]> | boolean | UrlTree | RedirectCommand | string | string[];
|
|
59
|
-
}
|
|
60
|
-
export interface JssCanActivate {
|
|
61
|
-
canActivate: JssCanActivateFn;
|
|
62
|
-
}
|
|
63
|
-
export interface JssResolve<T> {
|
|
64
|
-
resolve(input: GuardInput): Observable<T> | Promise<T> | T;
|
|
65
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Shape of the Sitecore Edge configuration.
|
|
4
|
-
*/
|
|
5
|
-
export type EdgeConfigToken = {
|
|
6
|
-
sitecoreEdgeUrl?: string;
|
|
7
|
-
sitecoreEdgeContextId: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Injection token for the Sitecore Edge configuration.
|
|
11
|
-
*/
|
|
12
|
-
export declare const EDGE_CONFIG: InjectionToken<EdgeConfigToken>;
|