@nocobase/client-v2 2.1.22 → 2.1.24

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.
@@ -141,7 +141,7 @@ export declare abstract class BaseApplication<TOptions extends BaseApplicationOp
141
141
  setMaintaining(maintaining: boolean): void;
142
142
  getOptions(): TOptions;
143
143
  getName(): string;
144
- getCdnUrl(): any;
144
+ getCdnUrl(): string;
145
145
  getPublicPath(): string;
146
146
  getApiUrl(pathname?: string): string;
147
147
  getRouteUrl(pathname: string): string;
@@ -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";