@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.
- package/build/development/index.js +7 -7
- package/build/development/index.js.map +1 -1
- package/build/development/shared/components/Throbber/index.js +1 -1
- package/build/development/shared/components/Throbber/index.js.map +1 -1
- package/build/development/shared/utils/globalState.js +2 -3
- package/build/development/shared/utils/globalState.js.map +1 -1
- package/build/development/web.bundle.js +3 -3
- package/build/production/index.js +1 -1
- package/build/production/index.js.map +1 -1
- package/build/production/shared/components/Throbber/index.js +1 -1
- package/build/production/shared/components/Throbber/index.js.map +1 -1
- package/build/production/shared/utils/globalState.js +2 -2
- package/build/production/shared/utils/globalState.js.map +1 -1
- package/build/production/web.bundle.js +1 -1
- package/build/production/web.bundle.js.map +1 -1
- package/build/types-code/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/index.ts +9 -2
- package/src/shared/components/Throbber/index.tsx +1 -0
- package/src/shared/utils/globalState.ts +2 -2
|
@@ -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 {
|
|
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
|
+
"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.
|
|
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
|
-
|
|
16
|
-
type
|
|
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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Request } from 'express';
|
|
2
2
|
|
|
3
|
-
import
|
|
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
|
-
} =
|
|
25
|
+
} = withGlobalStateType<unknown, SsrContextT<unknown>>();
|
|
26
26
|
|
|
27
27
|
export {
|
|
28
28
|
getSsrContext,
|