@nocobase/plugin-block-workbench 2.0.0-alpha.2 → 2.0.0-alpha.20

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.
@@ -0,0 +1,18 @@
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 React from 'react';
10
+ import { BlockModel } from '@nocobase/client';
11
+ export declare const WorkbenchLayout: {
12
+ Grid: string;
13
+ List: string;
14
+ };
15
+ export declare class ActionPanelBlockModel extends BlockModel {
16
+ renderConfiguireActions(): React.JSX.Element;
17
+ renderComponent(): React.JSX.Element;
18
+ }
@@ -0,0 +1,11 @@
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 { ActionGroupModel } from '@nocobase/client';
10
+ export declare class ActionPanelGroupActionModel extends ActionGroupModel {
11
+ }
@@ -0,0 +1,14 @@
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 { ButtonProps } from 'antd/es/button';
10
+ import { ActionModel } from '@nocobase/client';
11
+ export declare class ActionPanelScanActionModel extends ActionModel {
12
+ onClick(event: any): void;
13
+ defaultProps: ButtonProps;
14
+ }
@@ -0,0 +1,12 @@
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 React from 'react';
10
+ export declare function ScanBox({ style }: {
11
+ style: React.CSSProperties;
12
+ }): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const QRCodeScannerInner: ({ setVisible, app, navigate, onClose }: {
3
+ setVisible: any;
4
+ app: any;
5
+ navigate: any;
6
+ onClose: any;
7
+ }) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Html5Qrcode } from 'html5-qrcode';
2
+ export declare function useScanner({ onScannerSizeChanged, elementId, onScanSuccess, app: appCtx, navigate }: {
3
+ onScannerSizeChanged: any;
4
+ elementId: any;
5
+ onScanSuccess: any;
6
+ app: any;
7
+ navigate: any;
8
+ }): {
9
+ startScanCamera: (scanner: Html5Qrcode) => Promise<null>;
10
+ startScanFile: (file: File) => Promise<void>;
11
+ };
@@ -0,0 +1,10 @@
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
+ export * from './ActionPanelGroupAction';
10
+ export * from './ActionPanelScanActionModel';
@@ -0,0 +1,16 @@
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 { ActionPanelBlockModel } from './ActionPanelBlockModel';
10
+ import * as actions from './actions';
11
+ declare const _default: {
12
+ ActionPanelGroupActionModel: typeof actions.ActionPanelGroupActionModel;
13
+ ActionPanelScanActionModel: typeof actions.ActionPanelScanActionModel;
14
+ ActionPanelBlockModel: typeof ActionPanelBlockModel;
15
+ };
16
+ export default _default;
@@ -11,11 +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.0.0-alpha.2",
14
+ "@nocobase/client": "2.0.0-alpha.20",
15
+ "@emotion/css": "11.13.0",
15
16
  "antd": "5.24.2",
16
17
  "antd-style": "3.7.1",
17
- "@nocobase/server": "2.0.0-alpha.2",
18
+ "@nocobase/server": "2.0.0-alpha.20",
19
+ "@nocobase/flow-engine": "2.0.0-alpha.20",
18
20
  "@ant-design/icons": "5.6.1",
19
- "@nocobase/plugin-mobile": "2.0.0-alpha.2",
20
- "react-router-dom": "6.30.1"
21
+ "@nocobase/plugin-mobile": "2.0.0-alpha.20",
22
+ "react-router-dom": "6.30.1",
23
+ "react-dom": "18.2.0"
21
24
  };
@@ -14,5 +14,11 @@
14
14
  "Add custom request": "添加自定义请求",
15
15
  "At least 1, up to 6": "最多6个,最少一个",
16
16
  "Items per row": "每行显示个数",
17
- "Ellipsis action title": "省略超出长度的操作标题"
17
+ "Ellipsis action title": "省略超出长度的操作标题",
18
+ "Action panel settings": "操作面板设置",
19
+ "Popup action settings":"弹窗按钮设置",
20
+ "Scan QR code action settings":"扫码按钮设置",
21
+ "Link action settings":"链接按钮设置",
22
+ "Action setting":"按钮设置",
23
+ "General settings":"通用设置"
18
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-block-workbench",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.20",
4
4
  "displayName": "Block: Action panel",
5
5
  "displayName.zh-CN": "区块:操作面板",
6
6
  "description": "Centrally manages and displays various actions, allowing users to efficiently perform tasks. It supports extensibility, with current action types including pop-ups, links, scanning, and custom requests.",
@@ -21,5 +21,5 @@
21
21
  "keywords": [
22
22
  "Blocks"
23
23
  ],
24
- "gitHead": "1322f486b248bef53ed8c8f42f0a39dfd02125fd"
24
+ "gitHead": "af5ff4eaa490349420135405128da466d72ac74c"
25
25
  }