@quantumart/qa-engine-page-structure-angular
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,3 +5,6 @@ import { InjectionToken, Type } from '@angular/core'; | ||
export declare const WINDOW: InjectionToken<(Window & typeof globalThis) | null>; | ||
export declare const WIDGET_PLATFORM_API_URL: InjectionToken<string>; | ||
export type WidgetPlatformApiUrl = string | { | ||
(): string; | ||
}; | ||
export declare const WIDGET_PLATFORM_API_URL: InjectionToken<WidgetPlatformApiUrl>; | ||
export declare const WIDGET_PLATFORM_STARTUP_AWAITER: InjectionToken<() => Observable<boolean>>; | ||
@@ -8,0 +11,0 @@ export declare const WIDGET_PLATFORM_TARGETING_FILTERS: InjectionToken<() => Map<string, string>>; |
import { ModuleWithProviders, Type } from '@angular/core'; | ||
import { WidgetPlatformApiUrl } from './public-api'; | ||
import { WidgetComponent } from './widgets'; | ||
@@ -11,3 +12,3 @@ import * as i0 from "@angular/core"; | ||
export interface QaEnginePageStructureModuleOptions { | ||
widgetPlatformApiUrl?: string; | ||
widgetPlatformApiUrl?: WidgetPlatformApiUrl; | ||
widgetMapping?: Map<string, Type<WidgetComponent>>; | ||
@@ -14,0 +15,0 @@ layoutWidgetZones?: string[]; |
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { WidgetPlatformApiUrl } from '../public-api'; | ||
import { NodeDetails, WidgetsDetailsMap } from '../widgets'; | ||
@@ -24,3 +25,3 @@ import { WidgetPlatformBaseService } from './widget-platform-base.service'; | ||
private readonly httpClient; | ||
constructor(httpClient: HttpClient, widgetPlatformApiUrl: string, targetingFilters?: () => Map<string, string>); | ||
constructor(httpClient: HttpClient, widgetPlatformApiUrl: WidgetPlatformApiUrl, targetingFilters?: () => Map<string, string>); | ||
getDetails(nodeId: number): Observable<NodeDetails>; | ||
@@ -27,0 +28,0 @@ getWidgets(nodeId: number, path: string, zones: string[]): Observable<WidgetsDetailsMap>; |
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { WidgetPlatformApiUrl } from '../public-api'; | ||
import { SiteNodeDetails } from './site-node.service'; | ||
@@ -31,3 +32,3 @@ import { BaseUrlService } from './base-url.service'; | ||
private readonly siteStructure$; | ||
constructor(httpClient: HttpClient, baseUrlService: BaseUrlService, redirectService: RedirectService, widgetPlatformApiUrl: string, targetingFilters?: () => Map<string, string>); | ||
constructor(httpClient: HttpClient, baseUrlService: BaseUrlService, redirectService: RedirectService, widgetPlatformApiUrl: WidgetPlatformApiUrl, targetingFilters?: () => Map<string, string>); | ||
getSiteStructure(): Observable<SiteStructure>; | ||
@@ -34,0 +35,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<SiteStructureService, [null, null, null, null, { optional: true; }]>; |
import { HttpParams } from '@angular/common/http'; | ||
import { WidgetPlatformApiUrl } from '../public-api'; | ||
export declare abstract class WidgetPlatformBaseService { | ||
private readonly widgetPlatformApiUrl; | ||
private readonly targetingFilters?; | ||
protected constructor(widgetPlatformApiUrl: string, targetingFilters?: (() => Map<string, string>) | undefined); | ||
protected constructor(widgetPlatformApiUrl: WidgetPlatformApiUrl, targetingFilters?: (() => Map<string, string>) | undefined); | ||
protected getUrl(action: string): string; | ||
protected appendTargetingFilters(httpParams: HttpParams): HttpParams; | ||
} |
{ | ||
"name": "@quantumart/qa-engine-page-structure-angular", | ||
"author": "Quantum Art", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "peerDependencies": { |
@@ -5,2 +5,2 @@ export { QaEnginePageStructureModule } from './lib/qa-engine-page-structure.module'; | ||
export { WidgetComponent, WidgetZoneModule, WidgetZoneComponent, NodeDetails, WidgetDetails, } from './lib/widgets'; | ||
export { WIDGET_PLATFORM_API_URL, WIDGET_PLATFORM_STARTUP_AWAITER, WIDGET_PLATFORM_TARGETING_FILTERS, } from './lib/public-api'; | ||
export { WidgetPlatformApiUrl, WIDGET_PLATFORM_API_URL, WIDGET_PLATFORM_STARTUP_AWAITER, WIDGET_PLATFORM_TARGETING_FILTERS, } from './lib/public-api'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386695
3042