UNPKG

@atlaskit/renderer

Version:
15 lines (14 loc) 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationContextProvider = exports.ValidationContext = void 0; var _react = require("react"); /** * The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer * to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer * to bypass the ADF schema validation when necessary. * It also allows validation overrides to be passed to nested renderers. For example renderers nested inside bodiedExtension */ var ValidationContext = exports.ValidationContext = /*#__PURE__*/(0, _react.createContext)(null); var ValidationContextProvider = exports.ValidationContextProvider = ValidationContext.Provider;