@nocobase/client 2.0.0-beta.11 → 2.0.0-beta.13

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,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
+ /// <reference types="react" />
10
+ export declare const TableUidContext: import("react").Context<string>;
@@ -13,9 +13,11 @@ export type RunLog = {
13
13
  line?: number;
14
14
  column?: number;
15
15
  };
16
+ type RunResult = Awaited<ReturnType<JSRunner['run']>>;
16
17
  export declare function useCodeRunner(hostCtx: FlowModelContext, version?: string): {
17
- run: (code: string) => Promise<Awaited<ReturnType<JSRunner['run']>> | undefined>;
18
+ run: (code: string) => Promise<RunResult | undefined>;
18
19
  logs: RunLog[];
19
20
  clearLogs: () => void;
20
21
  running: boolean;
21
22
  };
23
+ export {};
@@ -28,6 +28,7 @@ export declare class QuickEditFormModel extends FlowModel {
28
28
  record: any;
29
29
  onSuccess?: (values: any) => void;
30
30
  fieldProps?: any;
31
+ sourceFieldModelUid?: string;
31
32
  }): Promise<void>;
32
33
  onInit(options: any): void;
33
34
  addAppends(fieldPath: string, refresh?: boolean): void;
@@ -6,6 +6,7 @@
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 { type FlowRuntimeContext } from '@nocobase/flow-engine';
9
10
  import type { SelectProps } from 'antd';
10
11
  import React from 'react';
11
12
  export interface AssociationFieldNames {
@@ -14,6 +15,7 @@ export interface AssociationFieldNames {
14
15
  }
15
16
  export type AssociationOption = Record<string, any>;
16
17
  export type PopupScrollEvent = Parameters<NonNullable<SelectProps<any>['onPopupScroll']>>[0];
18
+ export declare function buildOpenerUids(ctx: FlowRuntimeContext, inputArgs?: Record<string, unknown>): string[];
17
19
  export interface LazySelectProps extends Omit<SelectProps<any>, 'mode' | 'options' | 'value' | 'onChange'> {
18
20
  fieldNames: AssociationFieldNames;
19
21
  value?: AssociationOption | AssociationOption[];