UNPKG

@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.

39 lines (38 loc) 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EDITING_COMPONENT_ID = exports.EDITING_COMPONENT_PLACEHOLDER = exports.RenderingType = exports.EditMode = exports.LayoutServicePageState = void 0; /** * Layout Service page state enum * library mode would render a single component */ var LayoutServicePageState; (function (LayoutServicePageState) { LayoutServicePageState["Preview"] = "preview"; LayoutServicePageState["Edit"] = "edit"; LayoutServicePageState["Normal"] = "normal"; })(LayoutServicePageState || (exports.LayoutServicePageState = LayoutServicePageState = {})); /** * Represents the possible modes for rendering content in Sitecore Editor * - chromes - supported by Sitecore Experience Editor / Pages * - metadata - supported by Sitecore Pages */ var EditMode; (function (EditMode) { EditMode["Chromes"] = "chromes"; EditMode["Metadata"] = "metadata"; })(EditMode || (exports.EditMode = EditMode = {})); /** * Editing rendering type */ var RenderingType; (function (RenderingType) { RenderingType["Component"] = "component"; })(RenderingType || (exports.RenderingType = RenderingType = {})); /** * Static placeholder name used for component rendering */ exports.EDITING_COMPONENT_PLACEHOLDER = 'editing-componentmode-placeholder'; /** * Id of wrapper for component rendering */ exports.EDITING_COMPONENT_ID = 'editing-component';