@nocobase/client 1.6.4 → 1.7.0-alpha.2

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.
Files changed (38) hide show
  1. package/es/acl/ACLProvider.d.ts +1 -0
  2. package/es/application/RouterManager.d.ts +3 -0
  3. package/es/application/hooks/index.d.ts +1 -0
  4. package/es/application/schema-initializer/components/SchemaInitializerItemSearchFields.d.ts +1 -1
  5. package/es/block-provider/hooks/index.d.ts +2 -0
  6. package/es/global-theme/type.d.ts +2 -0
  7. package/es/index.mjs +19513 -19040
  8. package/es/route-switch/antd/admin-layout/index.d.ts +4 -0
  9. package/es/schema-component/antd/cascader/Cascader.d.ts +20 -1
  10. package/es/schema-component/antd/date-picker/DatePicker.d.ts +6 -12
  11. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  12. package/es/schema-component/antd/page/PopupSettingsProvider.d.ts +2 -1
  13. package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  14. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  15. package/es/schema-initializer/components/DeprecatedTemplateTitle.d.ts +11 -0
  16. package/es/schema-initializer/hooks/useTemplateBlockNotifier.d.ts +14 -0
  17. package/es/schema-initializer/index.d.ts +1 -1
  18. package/es/schema-initializer/utils.d.ts +2 -22
  19. package/es/schema-settings/LinkageRules/DateScopeComponent.d.ts +10 -0
  20. package/es/schema-settings/LinkageRules/OptionsComponent.d.ts +19 -0
  21. package/es/schema-settings/LinkageRules/bindLinkageRulesToFiled.d.ts +2 -1
  22. package/es/schema-settings/LinkageRules/type.d.ts +3 -1
  23. package/es/user/CurrentUserSettingsMenuProvider.d.ts +1 -1
  24. package/lib/index.js +264 -254
  25. package/lib/locale/en-US.js +5 -1
  26. package/lib/locale/es-ES.js +5 -1
  27. package/lib/locale/fr-FR.js +5 -1
  28. package/lib/locale/it-IT.js +2 -1
  29. package/lib/locale/ja-JP.js +5 -1
  30. package/lib/locale/ko-KR.js +5 -1
  31. package/lib/locale/nl-NL.js +888 -0
  32. package/lib/locale/pt-BR.js +5 -1
  33. package/lib/locale/ru-RU.js +5 -1
  34. package/lib/locale/tr-TR.js +5 -1
  35. package/lib/locale/uk-UA.js +5 -1
  36. package/lib/locale/zh-CN.js +7 -1
  37. package/lib/locale/zh-TW.js +5 -1
  38. package/package.json +7 -7
@@ -12,6 +12,7 @@ export declare const ACLContext: React.Context<any>;
12
12
  export declare const ACLProvider: (props: any) => React.JSX.Element;
13
13
  export declare const ACLRolesCheckProvider: (props: any) => React.JSX.Element;
14
14
  export declare const useRoleRecheck: () => () => void;
15
+ export declare const useCurrentRoleMode: () => any;
15
16
  export declare const useACLContext: () => any;
16
17
  export declare const ACLActionParamsContext: React.Context<any>;
17
18
  export declare const ACLCustomContext: React.Context<any>;
@@ -25,6 +25,7 @@ export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRo
25
25
  export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
26
26
  export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
27
27
  Component?: ComponentTypeAndString;
28
+ skipAuthCheck?: boolean;
28
29
  }
29
30
  export type RenderComponentType = (Component: ComponentTypeAndString, props?: any) => React.ReactNode;
30
31
  export declare class RouterManager {
@@ -44,6 +45,8 @@ export declare class RouterManager {
44
45
  setType(type: RouterOptions['type']): void;
45
46
  getBasename(): string;
46
47
  setBasename(basename: string): void;
48
+ matchRoutes(pathname: string): import("@remix-run/router").AgnosticRouteMatch<string, RouteType>[];
49
+ isSkippedAuthCheckRoute(pathname: string): boolean;
47
50
  /**
48
51
  * @internal
49
52
  */
@@ -11,3 +11,4 @@ export * from './useAppSpin';
11
11
  export * from './usePlugin';
12
12
  export * from './useRouter';
13
13
  export * from './useGlobalVariable';
14
+ export * from './useAclSnippets';
@@ -17,4 +17,4 @@ export declare const useMenuSearch: (props: {
17
17
  showType?: boolean;
18
18
  hideSearch?: boolean;
19
19
  name?: string;
20
- }) => import("antd/es/menu/hooks/useItems").ItemType[];
20
+ }) => import("antd/es/menu/interface").ItemType[];
@@ -85,6 +85,7 @@ export declare const useDetailsPaginationProps: () => {
85
85
  current: any;
86
86
  pageSize: number;
87
87
  showSizeChanger: boolean;
88
+ align: string;
88
89
  onChange(page: any): Promise<void>;
89
90
  style: {
90
91
  marginTop: number;
@@ -102,6 +103,7 @@ export declare const useDetailsPaginationProps: () => {
102
103
  total: any;
103
104
  pageSize: number;
104
105
  showSizeChanger: boolean;
106
+ align: string;
105
107
  onChange(page: any): Promise<void>;
106
108
  style: {
107
109
  marginTop: number;
@@ -27,6 +27,8 @@ export interface CustomToken extends AliasToken {
27
27
  colorSettings: string;
28
28
  /** 鼠标悬浮时显示的背景色 */
29
29
  colorBgSettingsHover: string;
30
+ /** 鼠标悬浮模板区块时显示的背景色 */
31
+ colorTemplateBgSettingsHover: string;
30
32
  /** 鼠标悬浮时显示的边框色 */
31
33
  colorBorderSettingsHover: string;
32
34
  /** 页面左右内边距 */