UNPKG

@prisma-cms/front-editor

Version:
28 lines 1.43 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultValue = void 0; const react_1 = __importDefault(require("react")); const EditorComponent_1 = __importDefault(require("../../../../../../EditorComponent")); const __1 = __importDefault(require("..")); const ObjectView_1 = __importDefault(require("../../../../ObjectConnector/ObjectView")); const ListView_1 = __importDefault(require("../../../ListView")); const CurrentUser_1 = __importDefault(require("../../../../../CurrentUser")); class DefaultValue extends EditorComponent_1.default { renderPanelView(content) { return super.renderPanelView(content || (react_1.default.createElement("div", { className: "editor-component--panel-icon" }, "DefaultValue"))); } canBeParent(parent) { return (parent instanceof __1.default || parent instanceof ObjectView_1.default || parent instanceof ListView_1.default || parent instanceof CurrentUser_1.default); } } exports.DefaultValue = DefaultValue; DefaultValue.Name = 'DefaultValue'; DefaultValue.defaultProps = Object.assign(Object.assign({}, EditorComponent_1.default.defaultProps), { hide_wrapper_in_default_mode: true }); exports.default = DefaultValue; //# sourceMappingURL=index.js.map