@nocobase/plugin-block-workbench 2.1.0-beta.25 → 2.1.0-beta.27
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.
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client-v2/index.d.ts +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +12 -0
- package/dist/client-v2/models/ActionPanelBlockModel.d.ts +18 -0
- package/dist/client-v2/models/actions/ActionPanelGroupAction.d.ts +11 -0
- package/dist/client-v2/models/actions/ActionPanelScanActionModel.d.ts +14 -0
- package/dist/client-v2/models/actions/components/qrcode-scanner/ScanBox.d.ts +12 -0
- package/dist/client-v2/models/actions/components/qrcode-scanner/index.d.ts +7 -0
- package/dist/client-v2/models/actions/components/qrcode-scanner/useScanner.d.ts +11 -0
- package/dist/client-v2/models/actions/index.d.ts +10 -0
- package/dist/client-v2/models/index.d.ts +16 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/externalVersion.js +5 -4
- package/package.json +3 -2
|
@@ -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
|
+
export declare const NAMESPACE = "block-workbench";
|
|
10
|
+
export declare function tExpr(key: string): string;
|
|
11
|
+
export declare function generateNTemplate(key: string): string;
|
|
12
|
+
export declare function useTranslation(): import("react-i18next").UseTranslationResponse<("block-workbench" | "client")[], undefined>;
|
|
@@ -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-v2';
|
|
11
|
+
export declare const WorkbenchLayout: {
|
|
12
|
+
Grid: string;
|
|
13
|
+
List: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class ActionPanelBlockModel extends BlockModel {
|
|
16
|
+
renderConfigureActions(): 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-v2';
|
|
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-v2';
|
|
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,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;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { Plugin } from '@nocobase/client-v2';
|
|
10
|
+
export declare class PluginBlockWorkbenchClient extends Plugin {
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export default PluginBlockWorkbenchClient;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,14 +11,15 @@ 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-beta.
|
|
14
|
+
"@nocobase/client": "2.1.0-beta.27",
|
|
15
15
|
"@emotion/css": "11.13.0",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
17
|
"antd-style": "3.7.1",
|
|
18
|
-
"@nocobase/
|
|
19
|
-
"@nocobase/
|
|
18
|
+
"@nocobase/flow-engine": "2.1.0-beta.27",
|
|
19
|
+
"@nocobase/client-v2": "2.1.0-beta.27",
|
|
20
|
+
"@nocobase/server": "2.1.0-beta.27",
|
|
20
21
|
"@ant-design/icons": "5.6.1",
|
|
21
|
-
"@nocobase/plugin-mobile": "2.1.0-beta.
|
|
22
|
+
"@nocobase/plugin-mobile": "2.1.0-beta.27",
|
|
22
23
|
"react-router-dom": "6.30.1",
|
|
23
24
|
"react-dom": "18.2.0"
|
|
24
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-block-workbench",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.27",
|
|
4
4
|
"displayName": "Block: Action panel",
|
|
5
5
|
"displayName.ru-RU": "Блок: Панель действий",
|
|
6
6
|
"displayName.zh-CN": "区块:操作面板",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"main": "dist/server/index.js",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@nocobase/client": "2.x",
|
|
13
|
+
"@nocobase/client-v2": "2.x",
|
|
13
14
|
"@nocobase/plugin-mobile": "2.x",
|
|
14
15
|
"@nocobase/server": "2.x",
|
|
15
16
|
"@nocobase/test": "2.x"
|
|
@@ -24,5 +25,5 @@
|
|
|
24
25
|
"Blocks"
|
|
25
26
|
],
|
|
26
27
|
"license": "Apache-2.0",
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6d9e2d4ac3c6bf40951c8eb252860e47aa3a3c37"
|
|
28
29
|
}
|