UNPKG

@atlaskit/editor-plugin-block-controls

Version:

Block controls plugin for @atlaskit/editor-core

12 lines (11 loc) 548 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useSurfaceEditorView = exports.SurfaceEditorViewContext = void 0; var _react = require("react"); /** Provides registered block-control surface contributors with their owning editor view. */ var SurfaceEditorViewContext = exports.SurfaceEditorViewContext = /*#__PURE__*/(0, _react.createContext)(undefined); var useSurfaceEditorView = exports.useSurfaceEditorView = function useSurfaceEditorView() { return (0, _react.useContext)(SurfaceEditorViewContext); };