@nocobase/client-v2 2.2.0-beta.12 → 2.2.0-beta.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.
package/es/APIClient.d.ts CHANGED
@@ -6,10 +6,8 @@
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 { APIClient as APIClientSDK, type APIClientOptions } from '@nocobase/sdk';
9
+ import { APIClient as APIClientSDK } from '@nocobase/sdk';
10
10
  export declare class APIClient extends APIClientSDK {
11
- appName?: string;
12
- constructor(options?: APIClientOptions);
13
11
  getHostname(): string;
14
12
  getHeaders(): {};
15
13
  interceptors(): void;
@@ -19,13 +19,14 @@ type UseCodeScannerOptions = {
19
19
  onScannerSizeChanged?: (size: ScannerSize) => void;
20
20
  onScanSuccess: (text: string) => void;
21
21
  onScanFailure?: () => void;
22
+ onCameraStartFailure?: (error: unknown) => void;
22
23
  };
23
24
  export declare const DEFAULT_CODE_FORMATS: CodeFormatsToSupport;
24
25
  export declare function getCodeScanBoxSize(width: number, height: number): {
25
26
  width: number;
26
27
  height: number;
27
28
  };
28
- export declare function useCodeScanner({ enabled, elementId, formatsToSupport, scanBoxSize, onScannerSizeChanged, onScanSuccess, onScanFailure, }: UseCodeScannerOptions): {
29
+ export declare function useCodeScanner({ enabled, elementId, formatsToSupport, scanBoxSize, onScannerSizeChanged, onScanSuccess, onScanFailure, onCameraStartFailure, }: UseCodeScannerOptions): {
29
30
  startScanFile: (file: File) => Promise<void>;
30
31
  };
31
32
  export {};
@@ -277,7 +277,7 @@ export declare const FIELDS_VALIDATION_OPTIONS: {
277
277
  }];
278
278
  }, {
279
279
  readonly key: "multiple";
280
- readonly label: "Multiple";
280
+ readonly label: "Multiple of";
281
281
  readonly hasValue: true;
282
282
  readonly params: readonly [{
283
283
  readonly key: "base";