@sitecore-jss/sitecore-jss-angular 21.2.3 → 21.2.4-canary.2

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.
Files changed (58) hide show
  1. package/dist/components/data-resolver-factory.d.ts +13 -13
  2. package/dist/components/date.directive.d.ts +20 -20
  3. package/dist/components/editframe.component.d.ts +22 -22
  4. package/dist/components/file.directive.d.ts +17 -17
  5. package/dist/components/generic-link.directive.d.ts +20 -20
  6. package/dist/components/guard-resolver-factory.d.ts +11 -11
  7. package/dist/components/hidden-rendering.component.d.ts +7 -7
  8. package/dist/components/image.directive.d.ts +35 -35
  9. package/dist/components/link.directive.d.ts +26 -26
  10. package/dist/components/missing-component.component.d.ts +7 -7
  11. package/dist/components/placeholder-loading.directive.d.ts +8 -8
  12. package/dist/components/placeholder.component.d.ts +59 -59
  13. package/dist/components/placeholder.token.d.ts +64 -64
  14. package/dist/components/raw.component.d.ts +12 -12
  15. package/dist/components/render-component.component.d.ts +33 -33
  16. package/dist/components/render-each.directive.d.ts +8 -8
  17. package/dist/components/render-empty.directive.d.ts +8 -8
  18. package/dist/components/rendering-field.d.ts +41 -41
  19. package/dist/components/rendering.d.ts +5 -5
  20. package/dist/components/rich-text.directive.d.ts +18 -18
  21. package/dist/components/router-link.directive.d.ts +19 -19
  22. package/dist/components/text.directive.d.ts +16 -16
  23. package/dist/esm2020/components/data-resolver-factory.mjs +57 -57
  24. package/dist/esm2020/components/date.directive.mjs +59 -59
  25. package/dist/esm2020/components/editframe.component.mjs +65 -65
  26. package/dist/esm2020/components/file.directive.mjs +44 -44
  27. package/dist/esm2020/components/generic-link.directive.mjs +64 -64
  28. package/dist/esm2020/components/guard-resolver-factory.mjs +87 -87
  29. package/dist/esm2020/components/hidden-rendering.component.mjs +20 -20
  30. package/dist/esm2020/components/image.directive.mjs +137 -137
  31. package/dist/esm2020/components/link.directive.mjs +117 -117
  32. package/dist/esm2020/components/missing-component.component.mjs +15 -15
  33. package/dist/esm2020/components/placeholder-loading.directive.mjs +15 -15
  34. package/dist/esm2020/components/placeholder.component.mjs +250 -250
  35. package/dist/esm2020/components/placeholder.token.mjs +23 -23
  36. package/dist/esm2020/components/raw.component.mjs +35 -35
  37. package/dist/esm2020/components/render-component.component.mjs +90 -90
  38. package/dist/esm2020/components/render-each.directive.mjs +15 -15
  39. package/dist/esm2020/components/render-empty.directive.mjs +15 -15
  40. package/dist/esm2020/components/rendering-field.mjs +1 -1
  41. package/dist/esm2020/components/rendering.mjs +7 -7
  42. package/dist/esm2020/components/rich-text.directive.mjs +62 -62
  43. package/dist/esm2020/components/router-link.directive.mjs +47 -47
  44. package/dist/esm2020/components/text.directive.mjs +57 -57
  45. package/dist/esm2020/jss-component-factory.service.mjs +83 -83
  46. package/dist/esm2020/lib.module.mjs +167 -167
  47. package/dist/esm2020/public_api.mjs +24 -24
  48. package/dist/esm2020/sitecore-jss-sitecore-jss-angular.mjs +4 -4
  49. package/dist/esm2020/utils.mjs +16 -16
  50. package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.mjs +1415 -1415
  51. package/dist/fesm2020/sitecore-jss-sitecore-jss-angular.mjs +1422 -1422
  52. package/dist/index.d.ts +5 -5
  53. package/dist/jss-component-factory.service.d.ts +25 -25
  54. package/dist/lib.module.d.ts +46 -46
  55. package/dist/package.json +2 -2
  56. package/dist/public_api.d.ts +25 -25
  57. package/dist/utils.d.ts +7 -7
  58. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@sitecore-jss/sitecore-jss-angular" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sitecore-jss/sitecore-jss-angular" />
5
+ export * from './public_api';
@@ -1,25 +1,25 @@
1
- import { Injector, Type } from '@angular/core';
2
- import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss/layout';
3
- import { ComponentNameAndModule, ComponentNameAndType, JssCanActivate, JssCanActivateFn, JssResolve } from './components/placeholder.token';
4
- import * as i0 from "@angular/core";
5
- export interface ComponentFactoryResult {
6
- componentImplementation?: Type<any>;
7
- componentDefinition: ComponentRendering | HtmlElementRendering;
8
- canActivate?: JssCanActivate | Type<JssCanActivate> | JssCanActivateFn | Array<JssCanActivate | JssCanActivateFn | Type<JssCanActivate>>;
9
- resolve?: {
10
- [key: string]: JssResolve<any> | Type<JssResolve<any>>;
11
- };
12
- }
13
- export declare class JssComponentFactoryService {
14
- private injector;
15
- private components;
16
- private lazyComponents;
17
- private componentMap;
18
- private lazyComponentMap;
19
- constructor(injector: Injector, components: ComponentNameAndType[], lazyComponents: ComponentNameAndModule[]);
20
- getComponent(component: ComponentRendering): Promise<ComponentFactoryResult>;
21
- getComponents(components: Array<ComponentRendering | HtmlElementRendering>): Promise<ComponentFactoryResult[]>;
22
- private getRawComponent;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<JssComponentFactoryService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<JssComponentFactoryService>;
25
- }
1
+ import { Injector, Type } from '@angular/core';
2
+ import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss/layout';
3
+ import { ComponentNameAndModule, ComponentNameAndType, JssCanActivate, JssCanActivateFn, JssResolve } from './components/placeholder.token';
4
+ import * as i0 from "@angular/core";
5
+ export interface ComponentFactoryResult {
6
+ componentImplementation?: Type<any>;
7
+ componentDefinition: ComponentRendering | HtmlElementRendering;
8
+ canActivate?: JssCanActivate | Type<JssCanActivate> | JssCanActivateFn | Array<JssCanActivate | JssCanActivateFn | Type<JssCanActivate>>;
9
+ resolve?: {
10
+ [key: string]: JssResolve<any> | Type<JssResolve<any>>;
11
+ };
12
+ }
13
+ export declare class JssComponentFactoryService {
14
+ private injector;
15
+ private components;
16
+ private lazyComponents;
17
+ private componentMap;
18
+ private lazyComponentMap;
19
+ constructor(injector: Injector, components: ComponentNameAndType[], lazyComponents: ComponentNameAndModule[]);
20
+ getComponent(component: ComponentRendering): Promise<ComponentFactoryResult>;
21
+ getComponents(components: Array<ComponentRendering | HtmlElementRendering>): Promise<ComponentFactoryResult[]>;
22
+ private getRawComponent;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<JssComponentFactoryService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<JssComponentFactoryService>;
25
+ }
@@ -1,46 +1,46 @@
1
- import { ModuleWithProviders, Type } from '@angular/core';
2
- import { ComponentNameAndModule, ComponentNameAndType } from './components/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 "@angular/common";
22
- export declare class JssModule {
23
- /**
24
- * Instantiates the JSS module with no component factory.
25
- * Useful for using it from libraries. Most of the time you'd want withComponents()
26
- * @returns {ModuleWithProviders<JssModule>} module
27
- */
28
- static forRoot(): ModuleWithProviders<JssModule>;
29
- /**
30
- * Instantiates a module for a lazy-loaded JSS component
31
- * @param {Type<unknown>} component
32
- * @returns {ModuleWithProviders<JssModule>} module
33
- */
34
- static forChild(component: Type<unknown>): ModuleWithProviders<JssModule>;
35
- /**
36
- * Instantiates the JSS module and specifies the mapping from component name to component implementation.
37
- * Appropriate when defining the set of JSS components that your app is aware of.
38
- * @param {ComponentNameAndType[]} components
39
- * @param {ComponentNameAndModule[]} [lazyComponents]
40
- * @returns {ModuleWithProviders<JssModule>} module
41
- */
42
- static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<JssModule, never>;
44
- 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.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]>;
45
- static ɵinj: i0.ɵɵInjectorDeclaration<JssModule>;
46
- }
1
+ import { ModuleWithProviders, Type } from '@angular/core';
2
+ import { ComponentNameAndModule, ComponentNameAndType } from './components/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 "@angular/common";
22
+ export declare class JssModule {
23
+ /**
24
+ * Instantiates the JSS module with no component factory.
25
+ * Useful for using it from libraries. Most of the time you'd want withComponents()
26
+ * @returns {ModuleWithProviders<JssModule>} module
27
+ */
28
+ static forRoot(): ModuleWithProviders<JssModule>;
29
+ /**
30
+ * Instantiates a module for a lazy-loaded JSS component
31
+ * @param {Type<unknown>} component
32
+ * @returns {ModuleWithProviders<JssModule>} module
33
+ */
34
+ static forChild(component: Type<unknown>): ModuleWithProviders<JssModule>;
35
+ /**
36
+ * Instantiates the JSS module and specifies the mapping from component name to component implementation.
37
+ * Appropriate when defining the set of JSS components that your app is aware of.
38
+ * @param {ComponentNameAndType[]} components
39
+ * @param {ComponentNameAndModule[]} [lazyComponents]
40
+ * @returns {ModuleWithProviders<JssModule>} module
41
+ */
42
+ static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<JssModule, never>;
44
+ 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.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]>;
45
+ static ɵinj: i0.ɵɵInjectorDeclaration<JssModule>;
46
+ }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-angular",
3
- "version": "21.2.3-canary.1",
3
+ "version": "21.2.4-canary.1",
4
4
  "description": "",
5
5
  "engines": {
6
6
  "node": ">=12",
@@ -23,7 +23,7 @@
23
23
  "rxjs": "~6.6.6"
24
24
  },
25
25
  "dependencies": {
26
- "@sitecore-jss/sitecore-jss": "^21.2.3-canary.1",
26
+ "@sitecore-jss/sitecore-jss": "^21.2.4-canary.1",
27
27
  "tslib": "^2.3.0"
28
28
  },
29
29
  "main": "dist/esm2020/sitecore-jss-sitecore-jss-angular.mjs",
@@ -1,25 +1,25 @@
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 { ComponentNameAndType, DYNAMIC_COMPONENT, ComponentNameAndModule, JssResolve, JssCanActivate, JssCanActivateFn, GuardInput, } from './components/placeholder.token';
14
- export { PlaceholderLoadingDirective } from './components/placeholder-loading.directive';
15
- export { isRawRendering } from './components/rendering';
16
- export { FileField, ImageField, LinkField, RenderingField, RichTextField, TextField, } from './components/rendering-field';
17
- export { RichTextDirective } from './components/rich-text.directive';
18
- export { TextDirective } from './components/text.directive';
19
- export { JssModule } from './lib.module';
20
- export { mediaApi } from '@sitecore-jss/sitecore-jss/media';
21
- export { DictionaryService, GraphQLDictionaryService, RestDictionaryService, } from '@sitecore-jss/sitecore-jss/i18n';
22
- export { LayoutService, LayoutServiceData, LayoutServiceContextData, GraphQLLayoutService, RestLayoutService, PlaceholdersData, RouteData, Field, HtmlElementRendering, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, } from '@sitecore-jss/sitecore-jss/layout';
23
- export { constants, HttpDataFetcher, HttpResponse, enableDebug } from '@sitecore-jss/sitecore-jss';
24
- export { isServer, isEditorActive, resetEditorChromes, handleEditorAnchors, DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, } from '@sitecore-jss/sitecore-jss/utils';
25
- export { trackingApi, TrackingRequestOptions, CampaignInstance, GoalInstance, OutcomeInstance, EventInstance, PageViewInstance, } from '@sitecore-jss/sitecore-jss/tracking';
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 { ComponentNameAndType, DYNAMIC_COMPONENT, ComponentNameAndModule, JssResolve, JssCanActivate, JssCanActivateFn, GuardInput, } from './components/placeholder.token';
14
+ export { PlaceholderLoadingDirective } from './components/placeholder-loading.directive';
15
+ export { isRawRendering } from './components/rendering';
16
+ export { FileField, ImageField, LinkField, RenderingField, RichTextField, TextField, } from './components/rendering-field';
17
+ export { RichTextDirective } from './components/rich-text.directive';
18
+ export { TextDirective } from './components/text.directive';
19
+ export { JssModule } from './lib.module';
20
+ export { mediaApi } from '@sitecore-jss/sitecore-jss/media';
21
+ export { DictionaryService, GraphQLDictionaryService, RestDictionaryService, } from '@sitecore-jss/sitecore-jss/i18n';
22
+ export { LayoutService, LayoutServiceData, LayoutServiceContextData, GraphQLLayoutService, RestLayoutService, PlaceholdersData, RouteData, Field, HtmlElementRendering, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, } from '@sitecore-jss/sitecore-jss/layout';
23
+ export { constants, HttpDataFetcher, HttpResponse, enableDebug } from '@sitecore-jss/sitecore-jss';
24
+ export { isServer, isEditorActive, resetEditorChromes, handleEditorAnchors, DefaultEditFrameButton, DefaultEditFrameButtons, EditFrameDataSource, FieldEditButton, WebEditButton, } from '@sitecore-jss/sitecore-jss/utils';
25
+ export { trackingApi, TrackingRequestOptions, CampaignInstance, GoalInstance, OutcomeInstance, EventInstance, PageViewInstance, } from '@sitecore-jss/sitecore-jss/tracking';
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Observable } from 'rxjs';
2
- export declare type InnerType<T> = T extends Promise<infer P> ? P : T extends Observable<infer O> ? O : T;
3
- /**
4
- * @param {T} value
5
- * @returns {Promise | Observable | any} resolved value
6
- */
7
- export declare function wrapIntoObservable<T>(value: T): Observable<InnerType<T>>;
1
+ import { Observable } from 'rxjs';
2
+ export declare type InnerType<T> = T extends Promise<infer P> ? P : T extends Observable<infer O> ? O : T;
3
+ /**
4
+ * @param {T} value
5
+ * @returns {Promise | Observable | any} resolved value
6
+ */
7
+ export declare function wrapIntoObservable<T>(value: T): Observable<InnerType<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-angular",
3
- "version": "21.2.3",
3
+ "version": "21.2.4-canary.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "ng-packagr -p ng-package.json",
@@ -62,7 +62,7 @@
62
62
  "rxjs": "~6.6.6"
63
63
  },
64
64
  "dependencies": {
65
- "@sitecore-jss/sitecore-jss": "21.2.3"
65
+ "@sitecore-jss/sitecore-jss": "^21.2.4-canary.2"
66
66
  },
67
67
  "main": "dist/esm2020/sitecore-jss-sitecore-jss-angular.mjs",
68
68
  "module": "dist/esm2020/sitecore-jss-sitecore-jss-angular.js",
@@ -75,7 +75,7 @@
75
75
  "es2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js",
76
76
  "fesm2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js",
77
77
  "sideEffects": false,
78
- "gitHead": "72dd7d6ae1e7d4566fd269b9505a17ed0e0aae07",
78
+ "gitHead": "0c4acd47e9d3bdb8adb6770d2a3fc1abfe9e441c",
79
79
  "files": [
80
80
  "dist",
81
81
  "typings",