@nocobase/plugin-graph-collection-manager 0.9.4-alpha.2 → 0.10.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,9 +50,7 @@ const GraphCollectionProvider = _react().default.memo(props => {
50
50
  settings: items
51
51
  }, _react().default.createElement(_client().PluginManagerContext.Provider, {
52
52
  value: {
53
- components: _objectSpread(_objectSpread({}, ctx === null || ctx === void 0 ? void 0 : ctx.components), {}, {
54
- GraphCollectionShortcut: _GraphCollectionShortcut.GraphCollectionShortcut
55
- })
53
+ components: _objectSpread({}, ctx === null || ctx === void 0 ? void 0 : ctx.components)
56
54
  }
57
55
  }, _react().default.createElement(_client().RouteSwitchContext.Provider, {
58
56
  value: _objectSpread(_objectSpread({
@@ -62,4 +60,5 @@ const GraphCollectionProvider = _react().default.memo(props => {
62
60
  })
63
61
  }, props.children)));
64
62
  });
65
- exports.GraphCollectionProvider = GraphCollectionProvider;
63
+ exports.GraphCollectionProvider = GraphCollectionProvider;
64
+ GraphCollectionProvider.displayName = 'GraphCollectionProvider';
@@ -1,2 +1,2 @@
1
- export declare const GraphCollectionPane: () => JSX.Element;
2
- export declare const GraphCollectionShortcut: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const GraphCollectionPane: () => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.GraphCollectionShortcut = exports.GraphCollectionPane = void 0;
6
+ exports.GraphCollectionPane = void 0;
7
7
  function _icons() {
8
8
  const data = require("@ant-design/icons");
9
9
  _icons = function _icons() {
@@ -39,16 +39,8 @@ function _react() {
39
39
  };
40
40
  return data;
41
41
  }
42
- function _reactRouterDom() {
43
- const data = require("react-router-dom");
44
- _reactRouterDom = function _reactRouterDom() {
45
- return data;
46
- };
47
- return data;
48
- }
49
- var _actionHooks = require("./action-hooks");
50
42
  var _GraphDrawPage = require("./GraphDrawPage");
51
- var _utils = require("./utils");
43
+ var _actionHooks = require("./action-hooks");
52
44
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
53
45
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
54
46
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -181,17 +173,4 @@ const GraphCollectionPane = () => {
181
173
  }
182
174
  }));
183
175
  };
184
- exports.GraphCollectionPane = GraphCollectionPane;
185
- const GraphCollectionShortcut = () => {
186
- const _useGCMTranslation = (0, _utils.useGCMTranslation)(),
187
- t = _useGCMTranslation.t;
188
- const history = (0, _reactRouterDom().useHistory)();
189
- return _react().default.createElement(_client().PluginManager.Toolbar.Item, {
190
- icon: _react().default.createElement(_icons().PartitionOutlined, null),
191
- title: t('Graph Collection'),
192
- onClick: () => {
193
- history.push('/admin/settings/graph/collections');
194
- }
195
- });
196
- };
197
- exports.GraphCollectionShortcut = GraphCollectionShortcut;
176
+ exports.GraphCollectionPane = GraphCollectionPane;
@@ -10,4 +10,4 @@ export declare enum ConnectionType {
10
10
  Inherit = "inherited",
11
11
  Entity = "entity"
12
12
  }
13
- export declare const GraphDrawPage: React.MemoExoticComponent<() => JSX.Element>;
13
+ export declare const GraphDrawPage: React.MemoExoticComponent<() => React.JSX.Element>;
@@ -1527,4 +1527,5 @@ const GraphDrawPage = _react2().default.memo(() => {
1527
1527
  }
1528
1528
  })));
1529
1529
  });
1530
- exports.GraphDrawPage = GraphDrawPage;
1530
+ exports.GraphDrawPage = GraphDrawPage;
1531
+ GraphDrawPage.displayName = 'GraphDrawPage';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const useValuesFromRecord: (options: any, data: any) => any;
3
- export declare const SourceCollection: React.MemoExoticComponent<React.FunctionComponent<unknown>>;
3
+ export declare const SourceCollection: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
4
4
  export declare const useCancelAction: () => {
5
5
  run(): Promise<void>;
6
6
  };
@@ -91,6 +91,8 @@ const SourceCollection = (0, _react().observer)(() => {
91
91
  label: compile(record.title)
92
92
  }]
93
93
  }));
94
+ }, {
95
+ displayName: 'SourceCollection'
94
96
  });
95
97
  exports.SourceCollection = SourceCollection;
96
98
  const useCancelAction = () => {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const AddCollectionAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const AddFieldAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const EditCollectionAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const EditFieldAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const FieldSummary: React.MemoExoticComponent<React.FunctionComponent<Pick<any, string | number | symbol>>>;
2
+ export declare const FieldSummary: React.MemoExoticComponent<import("@formily/react").ReactFC<Pick<any, string | number | symbol>>>;
@@ -58,17 +58,19 @@ const FieldSummary = (0, _react().observer)(props => {
58
58
  if (!schema) return null;
59
59
  return _react2().default.createElement("div", {
60
60
  className: (0, _css().css)`
61
- background: #f6f6f6;
62
- margin-bottom: 24px;
63
- padding: 16px;
64
- `
61
+ background: #f6f6f6;
62
+ margin-bottom: 24px;
63
+ padding: 16px;
64
+ `
65
65
  }, _react2().default.createElement("div", {
66
66
  className: (0, _css().css)``
67
67
  }, t('Field interface'), ": ", _react2().default.createElement(_antd().Tag, null, compile(schema.title))), schema.description ? _react2().default.createElement("div", {
68
68
  className: (0, _css().css)`
69
- margin-top: 8px;
70
- color: rgba(0, 0, 0, 0.45);
71
- `
69
+ margin-top: 8px;
70
+ color: rgba(0, 0, 0, 0.45);
71
+ `
72
72
  }, compile(schema.description)) : null);
73
+ }, {
74
+ displayName: 'FieldSummary'
73
75
  });
74
76
  exports.FieldSummary = FieldSummary;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const OverrideFieldAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export declare const ViewFieldAction: ({ item: record }: {
2
3
  item: any;
3
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-graph-collection-manager",
3
- "version": "0.9.4-alpha.2",
4
- "description": "",
3
+ "displayName": "graph collection manager",
4
+ "displayName.zh-CN": "数据库可视化管理",
5
+ "description": "database collection manage",
6
+ "description.zh-CN": "数据库管理。",
7
+ "version": "0.10.0-alpha.2",
5
8
  "license": "AGPL-3.0",
6
9
  "main": "./lib/index.js",
7
10
  "types": "./lib/index.d.ts",
@@ -11,8 +14,8 @@
11
14
  "dagre": "^0.8.5"
12
15
  },
13
16
  "devDependencies": {
14
- "@nocobase/client": "0.9.4-alpha.2",
15
- "@nocobase/test": "0.9.4-alpha.2"
17
+ "@nocobase/client": "0.10.0-alpha.2",
18
+ "@nocobase/test": "0.10.0-alpha.2"
16
19
  },
17
- "gitHead": "2bc19a85bf9425aa220b6c467315c8087f333a7e"
20
+ "gitHead": "85028ae1733fcbd46ecd5d291dacbdc175f7f073"
18
21
  }