@nocobase/client-v2 2.1.31 → 2.1.32

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.
@@ -7,6 +7,7 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { FlowContext, FlowModel } from '@nocobase/flow-engine';
10
+ export declare function updateLinkageRules<T>(rules: T[], updater: (nextRules: T[]) => void): T[];
10
11
  export declare const linkageSetBlockProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
11
12
  export declare const linkageSetActionProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
12
13
  export declare const linkageSetMenuItemProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
@@ -6,7 +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 { DefaultStructure, FlowModel } from '@nocobase/flow-engine';
9
+ import { FlowModel } from '@nocobase/flow-engine';
10
+ import type { DefaultStructure, FlowModelOptions } from '@nocobase/flow-engine';
10
11
  import type { ButtonProps } from 'antd/es/button';
11
12
  import React from 'react';
12
13
  export declare function ActionWithoutPermission(props: any): React.JSX.Element;
@@ -40,7 +41,8 @@ export declare class ActionModel<T extends DefaultStructure = DefaultStructure>
40
41
  static _getScene(): any[];
41
42
  static _isScene(scene: ActionSceneType): boolean;
42
43
  getAclActionName(): any;
43
- onInit(options: any): void;
44
+ onInit(options: FlowModelOptions<T>): void;
45
+ serialize(): Record<string, any>;
44
46
  getInputArgs(): Record<string, any>;
45
47
  onClick(event: any): void;
46
48
  getTitle(): string;