@nocobase/plugin-block-workbench 2.1.0-beta.33 → 2.1.0-beta.34
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/dist/client/index.js +1 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/client-v2/locale.d.ts +1 -2
- package/dist/client-v2/models/actions/components/qrcode-scanner/index.d.ts +9 -6
- package/dist/client-v2/models/actions/components/qrcode-scanner/useScanner.d.ts +10 -1
- package/dist/externalVersion.js +5 -5
- package/package.json +2 -2
- package/dist/client/models/ActionPanelBlockModel.d.ts +0 -18
- package/dist/client/models/actions/ActionPanelGroupAction.d.ts +0 -11
- package/dist/client/models/actions/ActionPanelScanActionModel.d.ts +0 -14
- package/dist/client/models/actions/components/qrcode-scanner/ScanBox.d.ts +0 -12
- package/dist/client/models/actions/components/qrcode-scanner/index.d.ts +0 -7
- package/dist/client/models/actions/components/qrcode-scanner/useScanner.d.ts +0 -11
- package/dist/client/models/actions/index.d.ts +0 -10
- package/dist/client/models/index.d.ts +0 -16
|
@@ -8,5 +8,4 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const NAMESPACE = "block-workbench";
|
|
10
10
|
export declare function tExpr(key: string): string;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function useTranslation(): import("react-i18next").UseTranslationResponse<("block-workbench" | "client")[], undefined>;
|
|
11
|
+
export declare function useT(): (key: string, options?: Record<string, any>) => string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
setVisible:
|
|
4
|
-
app
|
|
5
|
-
navigate:
|
|
6
|
-
onClose
|
|
7
|
-
|
|
2
|
+
type QRCodeScannerInnerProps = {
|
|
3
|
+
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
4
|
+
app?: any;
|
|
5
|
+
navigate: (path: string) => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
t: (key: string, options?: Record<string, any>) => string;
|
|
8
|
+
};
|
|
9
|
+
export declare const QRCodeScannerInner: ({ setVisible, app, navigate, onClose, t }: QRCodeScannerInnerProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +1,19 @@
|
|
|
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
|
+
*/
|
|
1
9
|
import { Html5Qrcode } from 'html5-qrcode';
|
|
2
|
-
export declare function useScanner({ onScannerSizeChanged, elementId, onScanSuccess, app: appCtx, navigate }: {
|
|
10
|
+
export declare function useScanner({ onScannerSizeChanged, elementId, onScanSuccess, app: appCtx, navigate, t }: {
|
|
3
11
|
onScannerSizeChanged: any;
|
|
4
12
|
elementId: any;
|
|
5
13
|
onScanSuccess: any;
|
|
6
14
|
app: any;
|
|
7
15
|
navigate: any;
|
|
16
|
+
t: any;
|
|
8
17
|
}): {
|
|
9
18
|
startScanCamera: (scanner: Html5Qrcode) => Promise<null>;
|
|
10
19
|
startScanFile: (file: File) => Promise<void>;
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,15 +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.34",
|
|
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-beta.
|
|
19
|
-
"@nocobase/client-v2": "2.1.0-beta.
|
|
20
|
-
"@nocobase/server": "2.1.0-beta.
|
|
18
|
+
"@nocobase/flow-engine": "2.1.0-beta.34",
|
|
19
|
+
"@nocobase/client-v2": "2.1.0-beta.34",
|
|
20
|
+
"@nocobase/server": "2.1.0-beta.34",
|
|
21
21
|
"@ant-design/icons": "5.6.1",
|
|
22
|
-
"@nocobase/plugin-mobile": "2.1.0-beta.
|
|
22
|
+
"@nocobase/plugin-mobile": "2.1.0-beta.34",
|
|
23
23
|
"react-router-dom": "6.30.1",
|
|
24
24
|
"react-dom": "18.2.0"
|
|
25
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.34",
|
|
4
4
|
"displayName": "Block: Action panel",
|
|
5
5
|
"displayName.ru-RU": "Блок: Панель действий",
|
|
6
6
|
"displayName.zh-CN": "区块:操作面板",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"Blocks"
|
|
26
26
|
],
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ca804833299c547f8d49f8d58f73273a4bfcd03c"
|
|
29
29
|
}
|
|
@@ -1,18 +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 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
|
-
renderConfigureActions(): React.JSX.Element;
|
|
17
|
-
renderComponent(): React.JSX.Element;
|
|
18
|
-
}
|
|
@@ -1,11 +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 { ActionGroupModel } from '@nocobase/client';
|
|
10
|
-
export declare class ActionPanelGroupActionModel extends ActionGroupModel {
|
|
11
|
-
}
|
|
@@ -1,14 +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 { 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
|
-
}
|
|
@@ -1,12 +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 React from 'react';
|
|
10
|
-
export declare function ScanBox({ style }: {
|
|
11
|
-
style: React.CSSProperties;
|
|
12
|
-
}): React.JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -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
|
-
export * from './ActionPanelGroupAction';
|
|
10
|
-
export * from './ActionPanelScanActionModel';
|
|
@@ -1,16 +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 { 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;
|