@o3r/dynamic-content
Version:
This module provides a mechanism to retrieve media and data depending on the host or a server specific url.
30 lines • 1.48 kB
TypeScript
import { ModuleWithProviders } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "./dynamic-content.pipe";
/**
* Function to get dynamic content from body dataset
*/
export declare function getDynamicContent(): string;
/**
* Function to get the cms assets from body dataset
* This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
*/
export declare function getCmsAssets(): string;
export declare class DynamicContentModule {
/**
* Customize the location where the application will search for the base path of dynamic content
* @param dynamicPath Configuration for dynamic content path
* @param dynamicPath.content The string will be used as base path of dynamic content
* @param dynamicPath.cmsAssets The string will be used for the the base path of cms assets
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
*/
static forRoot(dynamicPath: {
content: string;
} | {
cmsAssets: string;
}): ModuleWithProviders<DynamicContentModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicContentModule, [typeof i1.O3rDynamicContentPipe], never, [typeof i1.O3rDynamicContentPipe]>;
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicContentModule>;
}
//# sourceMappingURL=dynamic-content.module.d.ts.map