@nocobase/plugin-block-workbench 2.1.0-alpha.12 → 2.1.0-alpha.14

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.
@@ -11,14 +11,14 @@ module.exports = {
11
11
  "@formily/react": "2.3.7",
12
12
  "react": "18.2.0",
13
13
  "react-i18next": "11.18.6",
14
- "@nocobase/client": "2.1.0-alpha.12",
14
+ "@nocobase/client": "2.1.0-alpha.14",
15
15
  "@emotion/css": "11.13.0",
16
16
  "antd": "5.24.2",
17
17
  "antd-style": "3.7.1",
18
- "@nocobase/flow-engine": "2.1.0-alpha.12",
19
- "@nocobase/server": "2.1.0-alpha.12",
18
+ "@nocobase/server": "2.1.0-alpha.14",
19
+ "@nocobase/flow-engine": "2.1.0-alpha.14",
20
20
  "@ant-design/icons": "5.6.1",
21
- "@nocobase/plugin-mobile": "2.1.0-alpha.12",
21
+ "@nocobase/plugin-mobile": "2.1.0-alpha.14",
22
22
  "react-router-dom": "6.30.1",
23
23
  "react-dom": "18.2.0"
24
24
  };
@@ -6,11 +6,9 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
9
  import { Plugin } from '@nocobase/server';
11
10
  export declare class PluginBlockWorkbenchServer extends Plugin {
12
11
  afterAdd(): Promise<void>;
13
- getFlowSchemaContributions(): FlowSchemaContribution;
14
12
  beforeLoad(): Promise<void>;
15
13
  load(): Promise<void>;
16
14
  install(): Promise<void>;
@@ -31,13 +31,9 @@ __export(plugin_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(plugin_exports);
33
33
  var import_server = require("@nocobase/server");
34
- var import_flow_schema_contributions = require("./flow-schema-contributions");
35
34
  class PluginBlockWorkbenchServer extends import_server.Plugin {
36
35
  async afterAdd() {
37
36
  }
38
- getFlowSchemaContributions() {
39
- return import_flow_schema_contributions.flowSchemaContribution;
40
- }
41
37
  async beforeLoad() {
42
38
  }
43
39
  async load() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-block-workbench",
3
- "version": "2.1.0-alpha.12",
3
+ "version": "2.1.0-alpha.14",
4
4
  "displayName": "Block: Action panel",
5
5
  "displayName.ru-RU": "Блок: Панель действий",
6
6
  "displayName.zh-CN": "区块:操作面板",
@@ -24,5 +24,5 @@
24
24
  "Blocks"
25
25
  ],
26
26
  "license": "Apache-2.0",
27
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2"
27
+ "gitHead": "d8735b541de0ff9557bba704de49c799b4962672"
28
28
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- import type { FlowSchemaContribution } from '@nocobase/flow-engine';
10
- export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -1,173 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var flow_schema_contributions_exports = {};
28
- __export(flow_schema_contributions_exports, {
29
- flowSchemaContribution: () => flowSchemaContribution
30
- });
31
- module.exports = __toCommonJS(flow_schema_contributions_exports);
32
- const actionButtonGeneralStepParamsSchema = {
33
- type: "object",
34
- properties: {
35
- title: { type: "string" },
36
- tooltip: { type: "string" },
37
- type: {
38
- type: "string",
39
- enum: ["default", "primary", "dashed", "link", "text"]
40
- },
41
- danger: { type: "boolean" },
42
- icon: { type: ["string", "null"] },
43
- color: { type: "string" }
44
- },
45
- additionalProperties: true
46
- };
47
- const actionButtonSettingsStepParamsSchema = {
48
- type: "object",
49
- properties: {
50
- buttonSettings: {
51
- type: "object",
52
- properties: {
53
- general: actionButtonGeneralStepParamsSchema
54
- },
55
- additionalProperties: true
56
- }
57
- },
58
- additionalProperties: true
59
- };
60
- const actionPanelBlockModelSchemaContribution = {
61
- use: "ActionPanelBlockModel",
62
- title: "Action panel block",
63
- source: "plugin",
64
- strict: false,
65
- stepParamsSchema: {
66
- type: "object",
67
- properties: {
68
- actionPanelBlockSetting: {
69
- type: "object",
70
- properties: {
71
- layout: {
72
- type: "object",
73
- properties: {
74
- layout: {
75
- type: "string",
76
- enum: ["grid", "list"]
77
- }
78
- },
79
- required: ["layout"],
80
- additionalProperties: false
81
- },
82
- ellipsis: {
83
- type: "object",
84
- properties: {
85
- ellipsis: {
86
- type: "boolean"
87
- }
88
- },
89
- additionalProperties: false
90
- }
91
- },
92
- additionalProperties: true
93
- }
94
- },
95
- additionalProperties: true
96
- },
97
- subModelSlots: {
98
- actions: {
99
- type: "array",
100
- uses: ["PopupActionModel", "LinkActionModel", "JSActionModel", "ActionPanelScanActionModel"],
101
- description: "Action panel items are concrete action models rendered inside the panel."
102
- }
103
- },
104
- skeleton: {
105
- uid: "todo-action-panel-block-uid",
106
- use: "ActionPanelBlockModel",
107
- stepParams: {
108
- actionPanelBlockSetting: {
109
- layout: {
110
- layout: "grid"
111
- },
112
- ellipsis: {
113
- ellipsis: true
114
- }
115
- }
116
- },
117
- subModels: {
118
- actions: []
119
- }
120
- },
121
- docs: {
122
- minimalExample: {
123
- uid: "action-panel-tools",
124
- use: "ActionPanelBlockModel",
125
- stepParams: {
126
- actionPanelBlockSetting: {
127
- layout: {
128
- layout: "grid"
129
- }
130
- }
131
- },
132
- subModels: {
133
- actions: []
134
- }
135
- }
136
- }
137
- };
138
- const actionPanelScanActionModelSchemaContribution = {
139
- use: "ActionPanelScanActionModel",
140
- title: "Action panel scan action",
141
- source: "plugin",
142
- strict: false,
143
- exposure: "internal",
144
- suggestedUses: ["ActionPanelBlockModel"],
145
- stepParamsSchema: {
146
- ...actionButtonSettingsStepParamsSchema
147
- },
148
- skeleton: {
149
- uid: "todo-action-panel-scan-action-uid",
150
- use: "ActionPanelScanActionModel",
151
- stepParams: {
152
- buttonSettings: {
153
- general: {
154
- title: "Scan QR code",
155
- icon: "ScanOutlined"
156
- }
157
- }
158
- }
159
- }
160
- };
161
- const flowSchemaContribution = {
162
- inventory: {
163
- publicTreeRoots: ["ActionPanelBlockModel"]
164
- },
165
- models: [actionPanelScanActionModelSchemaContribution, actionPanelBlockModelSchemaContribution],
166
- defaults: {
167
- source: "plugin"
168
- }
169
- };
170
- // Annotate the CommonJS export names for ESM import in node:
171
- 0 && (module.exports = {
172
- flowSchemaContribution
173
- });