@sitecore-jss/sitecore-jss
Version:
This module is provided as a part of Sitecore JavaScript Rendering SDK. It contains the core JSS APIs (layout service) and utilities.
36 lines (35 loc) • 1.14 kB
JavaScript
/**
* Layout Service page state enum
* library mode would render a single component
*/
export var LayoutServicePageState;
(function (LayoutServicePageState) {
LayoutServicePageState["Preview"] = "preview";
LayoutServicePageState["Edit"] = "edit";
LayoutServicePageState["Normal"] = "normal";
})(LayoutServicePageState || (LayoutServicePageState = {}));
/**
* Represents the possible modes for rendering content in Sitecore Editor
* - chromes - supported by Sitecore Experience Editor / Pages
* - metadata - supported by Sitecore Pages
*/
export var EditMode;
(function (EditMode) {
EditMode["Chromes"] = "chromes";
EditMode["Metadata"] = "metadata";
})(EditMode || (EditMode = {}));
/**
* Editing rendering type
*/
export var RenderingType;
(function (RenderingType) {
RenderingType["Component"] = "component";
})(RenderingType || (RenderingType = {}));
/**
* Static placeholder name used for component rendering
*/
export const EDITING_COMPONENT_PLACEHOLDER = 'editing-componentmode-placeholder';
/**
* Id of wrapper for component rendering
*/
export const EDITING_COMPONENT_ID = 'editing-component';