@regenbio/regenbio-components-react 1.3.40 → 1.3.42

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.
@@ -13,10 +13,6 @@ declare enum EventEnum {
13
13
  /**
14
14
  * 全局通知
15
15
  */
16
- NOTIFICATION = "REGENBIO_EVENT_NOTIFICATION",
17
- /**
18
- * 全局响应式状态
19
- */
20
- RESPONSIVE = "REGENBIO_EVENT_RESPONSIVE"
16
+ NOTIFICATION = "REGENBIO_EVENT_NOTIFICATION"
21
17
  }
22
18
  export default EventEnum;
@@ -22,10 +22,6 @@ declare enum StorageEnum {
22
22
  * 访问令牌
23
23
  */
24
24
  ACCESS_TOKEN = "REGENBIO_STORAGE_ACCESS_TOKEN",
25
- /**
26
- * 响应式状态
27
- */
28
- RESPONSIVE = "REGENBIO_STORAGE_RESPONSIVE",
29
25
  /**
30
26
  * 本地语言
31
27
  */
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * 响应式Hook
3
+ * @param responsiveWidth 触发响应式的宽度,默认为576
3
4
  */
4
- declare const useRbResponsive: () => {
5
+ declare const useRbResponsive: (responsiveWidth?: number) => {
5
6
  responsive: any;
7
+ width: any;
6
8
  };
7
9
  export default useRbResponsive;
@@ -4,6 +4,5 @@ declare const _default: {
4
4
  eventEmitter: EventEmitter<string | symbol, any>;
5
5
  pushMessageEvent: (level: NoticeType, content: string) => void;
6
6
  pushNotificationEvent: (level: NoticeType, config: any) => void;
7
- pushResponsiveEvent: (responsive: boolean) => void;
8
7
  };
9
8
  export default _default;
@@ -11,7 +11,5 @@ declare const _default: {
11
11
  getBeforeExternalBindPathname: () => string;
12
12
  setToken: (token: TokenDO) => void;
13
13
  getToken: () => TokenDO | undefined;
14
- setResponsive: (responsive: boolean) => void;
15
- getResponsive: () => boolean;
16
14
  };
17
15
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regenbio/regenbio-components-react",
3
- "version": "1.3.40",
3
+ "version": "1.3.42",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },