@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.
- package/dist/components/data-resolver-factory.d.ts +13 -13
- package/dist/components/date.directive.d.ts +20 -20
- package/dist/components/editframe.component.d.ts +22 -22
- package/dist/components/file.directive.d.ts +17 -17
- package/dist/components/generic-link.directive.d.ts +20 -20
- package/dist/components/guard-resolver-factory.d.ts +11 -11
- package/dist/components/hidden-rendering.component.d.ts +7 -7
- package/dist/components/image.directive.d.ts +35 -35
- package/dist/components/link.directive.d.ts +26 -26
- package/dist/components/missing-component.component.d.ts +7 -7
- package/dist/components/placeholder-loading.directive.d.ts +8 -8
- package/dist/components/placeholder.component.d.ts +59 -59
- package/dist/components/placeholder.token.d.ts +64 -64
- package/dist/components/raw.component.d.ts +12 -12
- package/dist/components/render-component.component.d.ts +33 -33
- package/dist/components/render-each.directive.d.ts +8 -8
- package/dist/components/render-empty.directive.d.ts +8 -8
- package/dist/components/rendering-field.d.ts +41 -41
- package/dist/components/rendering.d.ts +5 -5
- package/dist/components/rich-text.directive.d.ts +18 -18
- package/dist/components/router-link.directive.d.ts +19 -19
- package/dist/components/text.directive.d.ts +16 -16
- package/dist/esm2020/components/data-resolver-factory.mjs +57 -57
- package/dist/esm2020/components/date.directive.mjs +59 -59
- package/dist/esm2020/components/editframe.component.mjs +65 -65
- package/dist/esm2020/components/file.directive.mjs +44 -44
- package/dist/esm2020/components/generic-link.directive.mjs +64 -64
- package/dist/esm2020/components/guard-resolver-factory.mjs +87 -87
- package/dist/esm2020/components/hidden-rendering.component.mjs +20 -20
- package/dist/esm2020/components/image.directive.mjs +137 -137
- package/dist/esm2020/components/link.directive.mjs +117 -117
- package/dist/esm2020/components/missing-component.component.mjs +15 -15
- package/dist/esm2020/components/placeholder-loading.directive.mjs +15 -15
- package/dist/esm2020/components/placeholder.component.mjs +250 -250
- package/dist/esm2020/components/placeholder.token.mjs +23 -23
- package/dist/esm2020/components/raw.component.mjs +35 -35
- package/dist/esm2020/components/render-component.component.mjs +90 -90
- package/dist/esm2020/components/render-each.directive.mjs +15 -15
- package/dist/esm2020/components/render-empty.directive.mjs +15 -15
- package/dist/esm2020/components/rendering-field.mjs +1 -1
- package/dist/esm2020/components/rendering.mjs +7 -7
- package/dist/esm2020/components/rich-text.directive.mjs +62 -62
- package/dist/esm2020/components/router-link.directive.mjs +47 -47
- package/dist/esm2020/components/text.directive.mjs +57 -57
- package/dist/esm2020/jss-component-factory.service.mjs +83 -83
- package/dist/esm2020/lib.module.mjs +167 -167
- package/dist/esm2020/public_api.mjs +24 -24
- package/dist/esm2020/sitecore-jss-sitecore-jss-angular.mjs +4 -4
- package/dist/esm2020/utils.mjs +16 -16
- package/dist/fesm2015/sitecore-jss-sitecore-jss-angular.mjs +1415 -1415
- package/dist/fesm2020/sitecore-jss-sitecore-jss-angular.mjs +1422 -1422
- package/dist/index.d.ts +5 -5
- package/dist/jss-component-factory.service.d.ts +25 -25
- package/dist/lib.module.d.ts +46 -46
- package/dist/package.json +2 -2
- package/dist/public_api.d.ts +25 -25
- package/dist/utils.d.ts +7 -7
- 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
|
+
}
|
package/dist/lib.module.d.ts
CHANGED
|
@@ -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
|
+
"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.
|
|
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",
|
package/dist/public_api.d.ts
CHANGED
|
@@ -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
|
+
"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.
|
|
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": "
|
|
78
|
+
"gitHead": "0c4acd47e9d3bdb8adb6770d2a3fc1abfe9e441c",
|
|
79
79
|
"files": [
|
|
80
80
|
"dist",
|
|
81
81
|
"typings",
|