@regenbio/regenbio-components-react 1.3.52 → 1.3.54

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
+ import { RbContainerStateProps } from "./type";
2
+ import { Context } from "react";
3
+ /**
4
+ * 容器状态上下文
5
+ */
6
+ export declare const RbContainerContext: Context<RbContainerStateProps>;
7
+ /**
8
+ * 容器状态Hook
9
+ */
10
+ export declare const useContainerState: () => RbContainerStateProps;
@@ -1,13 +1,5 @@
1
- import React, { Context } from 'react';
2
- import { RbContainerStateProps, RbPageContainerProps } from "./type";
3
- /**
4
- * 容器状态上下文
5
- */
6
- declare const RbContainerContext: Context<RbContainerStateProps>;
7
- /**
8
- * 容器状态Hook
9
- */
10
- declare const useContainerState: () => RbContainerStateProps;
1
+ import React from 'react';
2
+ import { RbPageContainerProps } from "./type";
11
3
  /**
12
4
  * RB 页面容器
13
5
  *
@@ -15,4 +7,4 @@ declare const useContainerState: () => RbContainerStateProps;
15
7
  * @constructor
16
8
  */
17
9
  declare const RbPageContainer: React.FC<RbPageContainerProps>;
18
- export { RbPageContainer, useContainerState, RbContainerContext };
10
+ export default RbPageContainer;
package/build/index.d.ts CHANGED
@@ -19,7 +19,8 @@ import RbUserSelector from "./components/DataEntry/UserSelector";
19
19
  import { RbUserSelectorProps } from "./components/DataEntry/UserSelector/type";
20
20
  import RbAttachmentText from "./components/DataEntry/AttachmentText";
21
21
  import { RbAttachmentTextProps } from "./components/DataEntry/AttachmentText/type";
22
- import { RbPageContainer, RbContainerContext } from "./components/PageLayout/PageContainer";
22
+ import RbPageContainer from "./components/PageLayout/PageContainer";
23
+ import { useContainerState } from "./components/PageLayout/PageContainer/context";
23
24
  import { RbPageContainerProps, RbContainerStateProps } from "./components/PageLayout/PageContainer/type";
24
25
  import RbHomePage from "./components/PageLayout/HomePage";
25
26
  import { RbHomePageProps } from "./components/PageLayout/HomePage/type";
@@ -83,7 +84,7 @@ export { RbMarkdownConverter, RbMarkdownEditor };
83
84
  export type { RbMarkdownEditorProps };
84
85
  export { RbSingleImageUploader };
85
86
  export type { RbSingleImageUploaderProps };
86
- export { RbPageContainer, RbContainerContext };
87
+ export { RbPageContainer, useContainerState };
87
88
  export type { RbPageContainerProps, RbContainerStateProps };
88
89
  export { RbHomePage };
89
90
  export type { RbHomePageProps };
@@ -126,6 +127,5 @@ declare const _default: {
126
127
  RbAuthFrame: import("react").FC<RbAuthFrameProps>;
127
128
  RbBindFrame: import("react").FC<RbBindFrameProps>;
128
129
  RbGlobalContext: import("react").Context<RbGlobalStateType>;
129
- RbContainerContext: import("react").Context<RbContainerStateProps>;
130
130
  };
131
131
  export default _default;