"use strict";

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

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

var _lowcodePluginDatasourcePane = _interopRequireDefault(require("@ali/lowcode-plugin-datasource-pane"));

var dataSourcePaneRegistry = function dataSourcePaneRegistry(ctx) {
  return {
    name: "data-source-registry",
    init: function init() {
      // 注册 JS / CSS 面板
      ctx.skeleton.add({
        area: 'leftArea',
        name: 'dataSourcePane',
        type: 'PanelDock',
        props: {
          align: 'top',
          icon: 'shujuyuan',
          description: '数据源'
        },
        content: _lowcodePluginDatasourcePane["default"],
        contentProps: {
          importPlugins: [],
          dataSourceTypes: [{
            type: 'fetch'
          }, {
            type: 'jsonp'
          }]
        }
      });
    }
  };
};

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