@nocobase/client 1.4.0-alpha → 1.4.0-alpha.0

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.
@@ -36,7 +36,7 @@ export declare const useRecordPkValue: () => any;
36
36
  export declare const ACLActionProvider: (props: any) => React.JSX.Element;
37
37
  export declare const useACLFieldWhitelist: () => {
38
38
  whitelist: any[];
39
- schemaInWhitelist: (fieldSchema: Schema, isSkip?: any) => boolean;
39
+ schemaInWhitelist: (fieldSchema: Schema | any, isSkip?: any) => boolean;
40
40
  };
41
41
  export declare const ACLCollectionFieldProvider: (props: any) => React.JSX.Element;
42
42
  export declare const ACLMenuItemProvider: (props: any) => React.JSX.Element;
@@ -15,10 +15,11 @@ export declare class APIClient extends APIClientSDK {
15
15
  app: Application;
16
16
  /** 该值会在 AntdAppProvider 中被重新赋值 */
17
17
  notification: any;
18
+ cloneInstance(): APIClient;
18
19
  getHeaders(): {};
19
20
  service(uid: string): Result<any, any>;
20
21
  interceptors(): void;
21
22
  toErrMessages(error: any): any;
22
23
  useNotificationMiddleware(): void;
23
- silent(): this;
24
+ silent(): APIClient;
24
25
  }
@@ -0,0 +1,20 @@
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 const SearchFields: ({ value: outValue, onChange, name }: {
11
+ value: any;
12
+ onChange: any;
13
+ name: any;
14
+ }) => React.JSX.Element;
15
+ export declare const useMenuSearch: (props: {
16
+ children: any[];
17
+ showType?: boolean;
18
+ hideSearch?: boolean;
19
+ name?: string;
20
+ }) => any;
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { ChangeEvent } from 'react';
10
10
  import { NavigateFunction } from 'react-router-dom';
11
+ import { CollectionOptions } from '../../collection-manager';
11
12
  import { VariableOption, VariablesContextType } from '../../variables/types';
12
13
  export * from './useBlockHeightProps';
13
14
  export * from './useDataBlockParentRecord';
@@ -144,6 +145,15 @@ export declare const useAssociationFilterBlockProps: () => {
144
145
  labelKey: any;
145
146
  };
146
147
  export declare function getAssociationPath(str: any): any;
148
+ export declare const getAppends: ({ schema, prefix: defaultPrefix, updateAssociationValues, appends, getCollectionJoinField, getCollection, dataSource, }: {
149
+ schema: any;
150
+ prefix: string;
151
+ updateAssociationValues: Set<string>;
152
+ appends: Set<string>;
153
+ getCollectionJoinField: (name: string, dataSource: string) => any;
154
+ getCollection: (name: any, customDataSource?: string) => CollectionOptions;
155
+ dataSource: string;
156
+ }) => void;
147
157
  export declare const useAssociationNames: (dataSource?: string) => {
148
158
  getAssociationAppends: () => {
149
159
  appends: any[];
@@ -47,3 +47,4 @@ export * from './nanoid';
47
47
  export * from './unixTimestamp';
48
48
  export * from './dateOnly';
49
49
  export * from './datetimeNoTz';
50
+ export { getUniqueKeyFromCollection } from './utils';