@dr.pogodin/react-utils 1.26.2 → 1.26.3

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.
@@ -4,7 +4,7 @@ declare const server: typeof ServerT | null;
4
4
  declare const client: any;
5
5
  export { default as api } from 'axios';
6
6
  export * as PT from 'prop-types';
7
- export { default as Rgs, type API as RgsApi, getGlobalState, GlobalStateProvider, useAsyncCollection, useAsyncData, useGlobalState, } from '@dr.pogodin/react-global-state';
7
+ export { type AsyncCollectionLoaderT, type AsyncDataEnvelopeT, type AsyncDataLoaderT, type ForceT, type UseAsyncDataOptionsT, type UseAsyncDataResT, type UseGlobalStateResT, type ValueOrInitializerT, getGlobalState, GlobalStateProvider, useAsyncCollection, useAsyncData, useGlobalState, withGlobalStateType, } from '@dr.pogodin/react-global-state';
8
8
  export { BaseModal, Button, Checkbox, Dropdown, Input, Link, PageLayout, MetaTags, Modal, NavLink, ScalableRect, Throbber, WithTooltip, YouTubeVideo, } from './shared/components';
9
9
  export { type Theme, config, Barrier, Emitter, isomorphy, getSsrContext, JU, Semaphore, splitComponent, themed, ThemeProvider, time, webpack, withRetries, } from './shared/utils';
10
10
  export { client, server };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.26.2",
2
+ "version": "1.26.3",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"
@@ -12,7 +12,7 @@
12
12
  "@dr.pogodin/babel-plugin-react-css-modules": "^6.12.0",
13
13
  "@dr.pogodin/csurf": "^1.13.0",
14
14
  "@dr.pogodin/js-utils": "^0.0.6",
15
- "@dr.pogodin/react-global-state": "^0.10.0-alpha.4",
15
+ "@dr.pogodin/react-global-state": "^0.10.0-alpha.5",
16
16
  "@dr.pogodin/react-themes": "^1.5.1",
17
17
  "@jest/environment": "^29.7.0",
18
18
  "axios": "^1.5.1",
package/src/index.ts CHANGED
@@ -12,13 +12,20 @@ export { default as api } from 'axios';
12
12
  export * as PT from 'prop-types';
13
13
 
14
14
  export {
15
- default as Rgs,
16
- type API as RgsApi,
15
+ type AsyncCollectionLoaderT,
16
+ type AsyncDataEnvelopeT,
17
+ type AsyncDataLoaderT,
18
+ type ForceT,
19
+ type UseAsyncDataOptionsT,
20
+ type UseAsyncDataResT,
21
+ type UseGlobalStateResT,
22
+ type ValueOrInitializerT,
17
23
  getGlobalState,
18
24
  GlobalStateProvider,
19
25
  useAsyncCollection,
20
26
  useAsyncData,
21
27
  useGlobalState,
28
+ withGlobalStateType,
22
29
  } from '@dr.pogodin/react-global-state';
23
30
 
24
31
  export {
@@ -31,6 +31,7 @@ const ThemedThrobber = themed(
31
31
  Throbber,
32
32
  'Throbber',
33
33
  [
34
+ 'bouncing',
34
35
  'circle',
35
36
  'container',
36
37
  ],
@@ -1,6 +1,6 @@
1
1
  import type { Request } from 'express';
2
2
 
3
- import RGS, { type API, type SsrContext } from '@dr.pogodin/react-global-state';
3
+ import { type SsrContext, withGlobalStateType } from '@dr.pogodin/react-global-state';
4
4
 
5
5
  export type ChunkGroupsT = {
6
6
  [chunkName: string]: string[];
@@ -22,7 +22,7 @@ export interface SsrContextT<StateT> extends SsrContext<StateT> {
22
22
 
23
23
  const {
24
24
  getSsrContext,
25
- } = (RGS as unknown) as API<unknown, SsrContextT<unknown>>;
25
+ } = withGlobalStateType<unknown, SsrContextT<unknown>>();
26
26
 
27
27
  export {
28
28
  getSsrContext,