@sitecore-jss/sitecore-jss-angular 18.0.2-canary.0 → 18.0.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 (54) hide show
  1. package/dist/bundles/sitecore-jss-sitecore-jss-angular.umd.js +1421 -1421
  2. package/dist/components/date.directive.d.ts +17 -17
  3. package/dist/components/file.directive.d.ts +14 -14
  4. package/dist/components/generic-link.directive.d.ts +14 -14
  5. package/dist/components/image.directive.d.ts +28 -28
  6. package/dist/components/link.directive.d.ts +18 -18
  7. package/dist/components/missing-component.component.d.ts +3 -3
  8. package/dist/components/placeholder-loading.directive.d.ts +5 -5
  9. package/dist/components/placeholder.component.d.ts +45 -45
  10. package/dist/components/placeholder.token.d.ts +30 -30
  11. package/dist/components/raw.component.d.ts +9 -9
  12. package/dist/components/render-component.component.d.ts +29 -29
  13. package/dist/components/render-each.directive.d.ts +5 -5
  14. package/dist/components/render-empty.directive.d.ts +5 -5
  15. package/dist/components/rendering-field.d.ts +20 -20
  16. package/dist/components/rendering.d.ts +5 -5
  17. package/dist/components/rich-text.directive.d.ts +12 -12
  18. package/dist/components/router-link.directive.d.ts +12 -12
  19. package/dist/components/text.directive.d.ts +13 -13
  20. package/dist/esm2015/components/date.directive.js +52 -52
  21. package/dist/esm2015/components/file.directive.js +42 -42
  22. package/dist/esm2015/components/generic-link.directive.js +57 -57
  23. package/dist/esm2015/components/image.directive.js +122 -122
  24. package/dist/esm2015/components/link.directive.js +98 -98
  25. package/dist/esm2015/components/missing-component.component.js +12 -12
  26. package/dist/esm2015/components/placeholder-loading.directive.js +14 -14
  27. package/dist/esm2015/components/placeholder.component.js +191 -191
  28. package/dist/esm2015/components/placeholder.token.js +20 -20
  29. package/dist/esm2015/components/raw.component.js +36 -36
  30. package/dist/esm2015/components/render-component.component.js +88 -88
  31. package/dist/esm2015/components/render-each.directive.js +14 -14
  32. package/dist/esm2015/components/render-empty.directive.js +14 -14
  33. package/dist/esm2015/components/rendering-field.js +1 -1
  34. package/dist/esm2015/components/rendering.js +7 -7
  35. package/dist/esm2015/components/rich-text.directive.js +40 -40
  36. package/dist/esm2015/components/router-link.directive.js +43 -43
  37. package/dist/esm2015/components/text.directive.js +53 -53
  38. package/dist/esm2015/jss-component-factory.service.js +86 -86
  39. package/dist/esm2015/layout-service-error.js +2 -2
  40. package/dist/esm2015/layout.service.js +28 -28
  41. package/dist/esm2015/lib.module.js +111 -111
  42. package/dist/esm2015/public_api.js +16 -16
  43. package/dist/esm2015/sitecore-jss-sitecore-jss-angular.js +12 -12
  44. package/dist/esm2015/utils.js +37 -37
  45. package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.js +1079 -1079
  46. package/dist/jss-component-factory.service.d.ts +21 -21
  47. package/dist/layout-service-error.d.ts +8 -8
  48. package/dist/layout.service.d.ts +8 -8
  49. package/dist/lib.module.d.ts +24 -24
  50. package/dist/package.json +2 -2
  51. package/dist/public_api.d.ts +17 -17
  52. package/dist/sitecore-jss-sitecore-jss-angular.d.ts +12 -12
  53. package/dist/utils.d.ts +10 -10
  54. package/package.json +3 -3
@@ -1,21 +1,21 @@
1
- import { ComponentFactory, Injector, Type, Compiler } from '@angular/core';
2
- import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
3
- import { ComponentNameAndModule, ComponentNameAndType } from './components/placeholder.token';
4
- export interface ComponentFactoryResult {
5
- componentImplementation?: Type<any>;
6
- componentDefinition: ComponentRendering | HtmlElementRendering;
7
- componentFactory?: ComponentFactory<any>;
8
- }
9
- export declare class JssComponentFactoryService {
10
- private injector;
11
- private compiler;
12
- private components;
13
- private lazyComponents;
14
- private componentMap;
15
- private lazyComponentMap;
16
- constructor(injector: Injector, compiler: Compiler, components: ComponentNameAndType[], lazyComponents: ComponentNameAndModule[]);
17
- private loadModuleFactory;
18
- getComponent(component: ComponentRendering): Promise<ComponentFactoryResult>;
19
- getComponents(components: Array<ComponentRendering | HtmlElementRendering>): Promise<ComponentFactoryResult[]>;
20
- private getRawComponent;
21
- }
1
+ import { ComponentFactory, Injector, Type, Compiler } from '@angular/core';
2
+ import { ComponentRendering, HtmlElementRendering } from '@sitecore-jss/sitecore-jss';
3
+ import { ComponentNameAndModule, ComponentNameAndType } from './components/placeholder.token';
4
+ export interface ComponentFactoryResult {
5
+ componentImplementation?: Type<any>;
6
+ componentDefinition: ComponentRendering | HtmlElementRendering;
7
+ componentFactory?: ComponentFactory<any>;
8
+ }
9
+ export declare class JssComponentFactoryService {
10
+ private injector;
11
+ private compiler;
12
+ private components;
13
+ private lazyComponents;
14
+ private componentMap;
15
+ private lazyComponentMap;
16
+ constructor(injector: Injector, compiler: Compiler, components: ComponentNameAndType[], lazyComponents: ComponentNameAndModule[]);
17
+ private loadModuleFactory;
18
+ getComponent(component: ComponentRendering): Promise<ComponentFactoryResult>;
19
+ getComponents(components: Array<ComponentRendering | HtmlElementRendering>): Promise<ComponentFactoryResult[]>;
20
+ private getRawComponent;
21
+ }
@@ -1,8 +1,8 @@
1
- import { LayoutServiceContextData } from '@sitecore-jss/sitecore-jss';
2
- export declare class LayoutServiceError {
3
- status: number;
4
- statusText: string;
5
- data?: {
6
- sitecore?: LayoutServiceContextData;
7
- };
8
- }
1
+ import { LayoutServiceContextData } from '@sitecore-jss/sitecore-jss';
2
+ export declare class LayoutServiceError {
3
+ status: number;
4
+ statusText: string;
5
+ data?: {
6
+ sitecore?: LayoutServiceContextData;
7
+ };
8
+ }
@@ -1,8 +1,8 @@
1
- import { LayoutServiceData, LayoutServiceRequestOptions, PlaceholderData } from '@sitecore-jss/sitecore-jss';
2
- import { Observable } from 'rxjs';
3
- import { LayoutServiceError } from './layout-service-error';
4
- export declare class LayoutService {
5
- private static getLayoutServiceError;
6
- getRouteData(route: string, options: LayoutServiceRequestOptions<LayoutServiceData>): Observable<LayoutServiceData | LayoutServiceError>;
7
- getPlaceholderData(route: string, placeholderName: string, options: LayoutServiceRequestOptions<PlaceholderData>): Observable<PlaceholderData | LayoutServiceError>;
8
- }
1
+ import { LayoutServiceData, LayoutServiceRequestOptions, PlaceholderData } from '@sitecore-jss/sitecore-jss';
2
+ import { Observable } from 'rxjs';
3
+ import { LayoutServiceError } from './layout-service-error';
4
+ export declare class LayoutService {
5
+ private static getLayoutServiceError;
6
+ getRouteData(route: string, options: LayoutServiceRequestOptions<LayoutServiceData>): Observable<LayoutServiceData | LayoutServiceError>;
7
+ getPlaceholderData(route: string, placeholderName: string, options: LayoutServiceRequestOptions<PlaceholderData>): Observable<PlaceholderData | LayoutServiceError>;
8
+ }
@@ -1,24 +1,24 @@
1
- import { ModuleWithProviders, Type } from '@angular/core';
2
- import { ComponentNameAndModule, ComponentNameAndType } from './components/placeholder.token';
3
- export declare class JssModule {
4
- /**
5
- * Instantiates the JSS module with no component factory.
6
- * Useful for using it from libraries. Most of the time you'd want withComponents()
7
- * @returns {ModuleWithProviders<JssModule>} module
8
- */
9
- static forRoot(): ModuleWithProviders<JssModule>;
10
- /**
11
- * Instantiates a module for a lazy-loaded JSS component
12
- * @param {Type<any>} component
13
- * @returns {ModuleWithProviders<JssModule>} module
14
- */
15
- static forChild(component: Type<any>): ModuleWithProviders<JssModule>;
16
- /**
17
- * Instantiates the JSS module and specifies the mapping from component name to component implementation.
18
- * Appropriate when defining the set of JSS components that your app is aware of.
19
- * @param {ComponentNameAndType[]} components
20
- * @param {ComponentNameAndModule[]} [lazyComponents]
21
- * @returns {ModuleWithProviders<JssModule>} module
22
- */
23
- static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
24
- }
1
+ import { ModuleWithProviders, Type } from '@angular/core';
2
+ import { ComponentNameAndModule, ComponentNameAndType } from './components/placeholder.token';
3
+ export declare class JssModule {
4
+ /**
5
+ * Instantiates the JSS module with no component factory.
6
+ * Useful for using it from libraries. Most of the time you'd want withComponents()
7
+ * @returns {ModuleWithProviders<JssModule>} module
8
+ */
9
+ static forRoot(): ModuleWithProviders<JssModule>;
10
+ /**
11
+ * Instantiates a module for a lazy-loaded JSS component
12
+ * @param {Type<any>} component
13
+ * @returns {ModuleWithProviders<JssModule>} module
14
+ */
15
+ static forChild(component: Type<any>): ModuleWithProviders<JssModule>;
16
+ /**
17
+ * Instantiates the JSS module and specifies the mapping from component name to component implementation.
18
+ * Appropriate when defining the set of JSS components that your app is aware of.
19
+ * @param {ComponentNameAndType[]} components
20
+ * @param {ComponentNameAndModule[]} [lazyComponents]
21
+ * @returns {ModuleWithProviders<JssModule>} module
22
+ */
23
+ static withComponents(components: ComponentNameAndType[], lazyComponents?: ComponentNameAndModule[]): ModuleWithProviders<JssModule>;
24
+ }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-angular",
3
- "version": "18.0.1",
3
+ "version": "18.0.2-canary.0",
4
4
  "description": "",
5
5
  "author": {
6
6
  "name": "Sitecore Corporation",
@@ -18,7 +18,7 @@
18
18
  "rxjs": "~6.6.6"
19
19
  },
20
20
  "dependencies": {
21
- "@sitecore-jss/sitecore-jss": "^18.0.1",
21
+ "@sitecore-jss/sitecore-jss": "^18.0.2-canary.0",
22
22
  "tslib": "^2.0.0"
23
23
  },
24
24
  "main": "bundles/sitecore-jss-sitecore-jss-angular.umd.js",
@@ -1,17 +1,17 @@
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 { PlaceholderLoadingDirective } from './components/placeholder-loading.directive';
8
- export { ComponentNameAndType, DYNAMIC_COMPONENT } from './components/placeholder.token';
9
- export { isRawRendering } from './components/rendering';
10
- export { FileField, ImageField, LinkField, RenderingField, RichTextField, TextField, } from './components/rendering-field';
11
- export { RichTextDirective } from './components/rich-text.directive';
12
- export { TextDirective } from './components/text.directive';
13
- export { LayoutService } from './layout.service';
14
- export { LayoutServiceError } from './layout-service-error';
15
- export { JssModule } from './lib.module';
16
- export { handleEditorAnchors } from './utils';
17
- export { dataApi, mediaApi, isExperienceEditorActive, resetExperienceEditorChromes, LayoutServiceData, LayoutServiceContextData, RouteData, Field, HtmlElementRendering, LayoutServiceRequestOptions, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, HttpDataFetcher, HttpResponse, isServer, } from '@sitecore-jss/sitecore-jss';
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 { PlaceholderLoadingDirective } from './components/placeholder-loading.directive';
8
+ export { ComponentNameAndType, DYNAMIC_COMPONENT } from './components/placeholder.token';
9
+ export { isRawRendering } from './components/rendering';
10
+ export { FileField, ImageField, LinkField, RenderingField, RichTextField, TextField, } from './components/rendering-field';
11
+ export { RichTextDirective } from './components/rich-text.directive';
12
+ export { TextDirective } from './components/text.directive';
13
+ export { LayoutService } from './layout.service';
14
+ export { LayoutServiceError } from './layout-service-error';
15
+ export { JssModule } from './lib.module';
16
+ export { handleEditorAnchors } from './utils';
17
+ export { dataApi, mediaApi, isExperienceEditorActive, resetExperienceEditorChromes, LayoutServiceData, LayoutServiceContextData, RouteData, Field, HtmlElementRendering, LayoutServiceRequestOptions, getChildPlaceholder, getFieldValue, ComponentRendering, ComponentFields, ComponentParams, HttpDataFetcher, HttpResponse, isServer, } from '@sitecore-jss/sitecore-jss';
@@ -1,12 +1,12 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
5
- export { DateDirective as ɵh } from './components/date.directive';
6
- export { MissingComponentComponent as ɵk } from './components/missing-component.component';
7
- export { ComponentNameAndModule as ɵa, PLACEHOLDER_COMPONENTS as ɵb, PLACEHOLDER_LAZY_COMPONENTS as ɵc, PLACEHOLDER_MISSING_COMPONENT_COMPONENT as ɵd } from './components/placeholder.token';
8
- export { RawComponent as ɵj } from './components/raw.component';
9
- export { RenderComponentComponent as ɵi } from './components/render-component.component';
10
- export { RenderEachDirective as ɵe } from './components/render-each.directive';
11
- export { RenderEmptyDirective as ɵf } from './components/render-empty.directive';
12
- export { JssComponentFactoryService as ɵg } from './jss-component-factory.service';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ export { DateDirective as ɵh } from './components/date.directive';
6
+ export { MissingComponentComponent as ɵk } from './components/missing-component.component';
7
+ export { ComponentNameAndModule as ɵa, PLACEHOLDER_COMPONENTS as ɵb, PLACEHOLDER_LAZY_COMPONENTS as ɵc, PLACEHOLDER_MISSING_COMPONENT_COMPONENT as ɵd } from './components/placeholder.token';
8
+ export { RawComponent as ɵj } from './components/raw.component';
9
+ export { RenderComponentComponent as ɵi } from './components/render-component.component';
10
+ export { RenderEachDirective as ɵe } from './components/render-each.directive';
11
+ export { RenderEmptyDirective as ɵf } from './components/render-empty.directive';
12
+ export { JssComponentFactoryService as ɵg } from './jss-component-factory.service';
package/dist/utils.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- /**
2
- * @description in Experience Editor with an Angular sample app, anchor tags
3
- * with both onclick and href attributes will use the href, blocking the onclick from firing.
4
- * This function makes it so the anchor tags function as intended in an Angular sample when using Experience Editor
5
- *
6
- * The Mutation Observer API is used to observe changes to the body, then select all elements with href="#" and an onclick,
7
- * and replaces the # value with javascript:void(0); which prevents the anchor tag from blocking the onclick event handler.
8
- * @see Mutation Observer API: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver
9
- */
10
- export declare const handleEditorAnchors: () => void;
1
+ /**
2
+ * @description in Experience Editor with an Angular sample app, anchor tags
3
+ * with both onclick and href attributes will use the href, blocking the onclick from firing.
4
+ * This function makes it so the anchor tags function as intended in an Angular sample when using Experience Editor
5
+ *
6
+ * The Mutation Observer API is used to observe changes to the body, then select all elements with href="#" and an onclick,
7
+ * and replaces the # value with javascript:void(0); which prevents the anchor tag from blocking the onclick event handler.
8
+ * @see Mutation Observer API: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver
9
+ */
10
+ export declare const handleEditorAnchors: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-angular",
3
- "version": "18.0.2-canary.0",
3
+ "version": "18.0.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "ng-packagr -p ng-package.json",
@@ -52,7 +52,7 @@
52
52
  "rxjs": "~6.6.6"
53
53
  },
54
54
  "dependencies": {
55
- "@sitecore-jss/sitecore-jss": "^18.0.2-canary.0"
55
+ "@sitecore-jss/sitecore-jss": "^18.0.2"
56
56
  },
57
57
  "main": "dist/bundles/sitecore-jss-sitecore-jss-angular.umd.js",
58
58
  "module": "dist/fesm2015/sitecore-jss-sitecore-jss-angular.js",
@@ -65,5 +65,5 @@
65
65
  "es2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js",
66
66
  "fesm2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js",
67
67
  "sideEffects": false,
68
- "gitHead": "5b42cfc872a84ccdcf1d34809286e5f3f33bbe1b"
68
+ "gitHead": "d248cbf9ca65ca3574ba0c86cfc34b36ce70770b"
69
69
  }