"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports["default"] = exports.codePaneRegistry = void 0;

var _lowcodePluginSourceEditor = _interopRequireDefault(require("@ali/lowcode-plugin-source-editor"));

var codePaneRegistry = function codePaneRegistry(ctx) {
  return {
    name: "code-pane-registry",
    init: function init() {
      // 注册 JS / CSS 面板
      ctx.skeleton.add({
        area: "leftArea",
        type: "PanelDock",
        name: "sourceEditor",
        content: _lowcodePluginSourceEditor["default"],
        props: {
          align: "top",
          icon: "edit",
          description: "JS面板"
        },
        panelProps: {
          enableDrag: true,
          floatable: true,
          height: 300,
          hideTitleBar: false,
          maxHeight: 800,
          maxWidth: 1200,
          title: "JS面板",
          width: 600
        }
      });
    }
  };
};

exports.codePaneRegistry = codePaneRegistry;
codePaneRegistry.pluginName = 'codePaneRegistry';
var _default = codePaneRegistry;
exports["default"] = _default;