import SourceEditor from "@ali/lowcode-plugin-source-editor";
export 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: SourceEditor,
        props: {
          align: "top",
          icon: "edit",
          description: "JS面板"
        },
        panelProps: {
          enableDrag: true,
          floatable: true,
          height: 300,
          hideTitleBar: false,
          maxHeight: 800,
          maxWidth: 1200,
          title: "JS面板",
          width: 600
        }
      });
    }
  };
};
codePaneRegistry.pluginName = 'codePaneRegistry';
export default codePaneRegistry;