@common-stack/frontend-stack-react 6.0.8-alpha.8 → 8.0.1-alpha.0
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/lib/backend/middlewares/container.d.ts +1 -1
- package/lib/backend/middlewares/container.js +22 -20
- package/lib/backend/middlewares/error.js +4 -4
- package/lib/config/base-apollo-client.js +22 -11
- package/lib/config/base-redux-config.js +11 -3
- package/lib/config/client.service.js +3 -3
- package/lib/config/env-config.server.d.ts +1 -0
- package/lib/config/env-config.server.js +9 -7
- package/lib/config/redis-config.server.d.ts +2 -1
- package/lib/config/redis-config.server.js +13 -3
- package/lib/config/redux-config.d.ts +0 -2
- package/lib/config/redux-config.js +17 -11
- package/lib/entries/chakraui/root.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +14 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {v4}from'uuid';import {ClientTypes}from'@common-stack/core';import {merge}from'lodash-es';import {ScopedContainer}from'@common-stack/client-core/lib/connector/ScopedContainer.js';import {createReduxStore}from'../../config/redux-config.js';import {logger}from'@cdm-logger/server';import {UtilityClass}from'../../utils/index.js';import features from'../../modules.js';import {createApolloClient}from'../../config/base-apollo-client.js';import {config}from'../../config/env-config.server.js';const TYPES = {
|
|
1
|
+
import {v4}from'uuid';import {ClientTypes,getGlobalVariable}from'@common-stack/core';import {merge}from'lodash-es';import {ScopedContainer}from'@common-stack/client-core/lib/connector/ScopedContainer.js';import {createReduxStore}from'../../config/redux-config.js';import {logger}from'@cdm-logger/server';import {UtilityClass}from'../../utils/index.js';import features from'../../modules.js';import {createApolloClient}from'../../config/base-apollo-client.js';import {config}from'../../config/env-config.server.js';const TYPES = {
|
|
2
2
|
HttpRequest: Symbol.for('HttpRequest'),
|
|
3
3
|
};
|
|
4
4
|
const utility = new UtilityClass(features);
|
|
@@ -25,8 +25,8 @@ const containerMiddleware = async (req, res, next) => {
|
|
|
25
25
|
httpGraphqlURL: config.GRAPHQL_URL,
|
|
26
26
|
httpLocalGraphqlURL: config.LOCAL_GRAPHQL_URL,
|
|
27
27
|
isDev: process.env.NODE_ENV === 'development',
|
|
28
|
-
isDebug: __DEBUGGING__,
|
|
29
|
-
isSSR: __SSR__,
|
|
28
|
+
isDebug: getGlobalVariable('__DEBUGGING__'),
|
|
29
|
+
isSSR: getGlobalVariable('__SSR__'),
|
|
30
30
|
scope: typeof window !== 'undefined' ? 'browser' : 'server',
|
|
31
31
|
clientState,
|
|
32
32
|
getDataIdFromObject: (result) => features.getDataIdFromObject(result),
|
|
@@ -52,25 +52,27 @@ const containerMiddleware = async (req, res, next) => {
|
|
|
52
52
|
req.logger = logger;
|
|
53
53
|
req.store = store;
|
|
54
54
|
req.services = services;
|
|
55
|
-
res.on
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
if (typeof res.on === 'function') {
|
|
56
|
+
res.on('finish', () => {
|
|
57
|
+
logger.debug(`Express req Finished! - ID: ${requestId}`); // Log when request finishes with unique ID
|
|
58
|
+
if (config.LOG_LEVEL === 'debug' || config.LOG_LEVEL === 'trace') {
|
|
59
|
+
console.timeEnd(`Request ${requestId} Duration`); // End timing and log the duration
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
ScopedContainer.remove(requestId);
|
|
63
|
+
req.apollClient = null;
|
|
64
|
+
req.services = null;
|
|
65
|
+
logger.debug(`Successfully cleaned up - ID: ${requestId}`);
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
logger.error(error, 'Error during container cleanup - ID: [%s]', requestId);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return await next();
|
|
71
73
|
}
|
|
72
74
|
catch (error) {
|
|
73
75
|
logger.error(`Error processing request - ID: ${requestId}`, error);
|
|
74
|
-
next(error);
|
|
76
|
+
return await next(error);
|
|
75
77
|
}
|
|
76
78
|
};export{TYPES,containerMiddleware};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as path from'path';import*as fs from'fs';import*as url from'url';import {logger}from'@cdm-logger/server';/// <reference path='../../../../../typings/index.d.ts' />
|
|
1
|
+
import*as path from'path';import*as fs from'fs';import*as url from'url';import {logger}from'@cdm-logger/server';import {getGlobalVariable}from'@common-stack/core';/// <reference path='../../../../../typings/index.d.ts' />
|
|
2
2
|
let assetMap;
|
|
3
3
|
const stripCircular = (from, seen) => {
|
|
4
4
|
const to = Array.isArray(from) ? [] : {};
|
|
@@ -17,7 +17,7 @@ const stripCircular = (from, seen) => {
|
|
|
17
17
|
});
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
const { pathname } = url.parse(__BACKEND_URL__);
|
|
20
|
+
const { pathname } = url.parse(getGlobalVariable('__BACKEND_URL__'));
|
|
21
21
|
const errorMiddleware = (e, req, res, next) => {
|
|
22
22
|
if (req.path === pathname) {
|
|
23
23
|
const stack = e.stack.toString().replace(/[\n]/g, '\\n');
|
|
@@ -25,8 +25,8 @@ const errorMiddleware = (e, req, res, next) => {
|
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
logger.error(e);
|
|
28
|
-
if (__DEV__ || !assetMap) {
|
|
29
|
-
assetMap = JSON.parse(fs.readFileSync(path.join(__FRONTEND_BUILD_DIR__, 'assets.json')).toString());
|
|
28
|
+
if (getGlobalVariable('__DEV__') || !assetMap) {
|
|
29
|
+
assetMap = JSON.parse(fs.readFileSync(path.join(getGlobalVariable('__FRONTEND_BUILD_DIR__'), 'assets.json')).toString());
|
|
30
30
|
}
|
|
31
31
|
const serverErrorScript = `<script charset="UTF-8">window.__SERVER_ERROR__=${JSON.stringify(stripCircular(e))};</script>`;
|
|
32
32
|
const vendorScript = assetMap['vendor.js']
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {isBoolean,merge}from'lodash-es';import {ApolloLink,ApolloClient}from'@apollo/client/index.js';import {HttpLink}from'@apollo/client/link/http/index.js';import {BatchHttpLink}from'@apollo/client/link/batch-http/index.js';import {onError}from'@apollo/client/link/error/index.js';import {GraphQLWsLink}from'@apollo/client/link/subscriptions/index.js';import {getOperationAST}from'graphql';import {invariant}from'ts-invariant';import {RetryLink}from'@apollo/client/link/retry/index.js';import {createClient}from'graphql-ws';import fetch from'cross-fetch';import {createCache,initializeCache}from'./base-apollo-cache.js';// apolloClient.ts
|
|
1
|
+
import {isBoolean,merge}from'lodash-es';import {ApolloLink,ApolloClient}from'@apollo/client/index.js';import {HttpLink}from'@apollo/client/link/http/index.js';import {BatchHttpLink}from'@apollo/client/link/batch-http/index.js';import {onError}from'@apollo/client/link/error/index.js';import {GraphQLWsLink}from'@apollo/client/link/subscriptions/index.js';import {getOperationAST}from'graphql';import {invariant}from'ts-invariant';import {RetryLink}from'@apollo/client/link/retry/index.js';import {createClient}from'graphql-ws';import fetch from'cross-fetch';import {createCache,initializeCache}from'./base-apollo-cache.js';import {getGlobalVariable}from'@common-stack/core';// apolloClient.ts
|
|
2
2
|
const schema = `
|
|
3
3
|
# Add your schema here
|
|
4
4
|
`;
|
|
@@ -82,14 +82,25 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
82
82
|
}, wsLink, new HttpLink({ uri: httpGraphqlURL, credentials: 'include', fetch }));
|
|
83
83
|
}
|
|
84
84
|
else if (isServer) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
if (process.env.SERVER_ENV === 'cloudflare') {
|
|
86
|
+
logger.debug('Creating BatchHttpLink for cloudflare');
|
|
87
|
+
link = new BatchHttpLink({
|
|
88
|
+
uri: httpGraphqlURL,
|
|
89
|
+
fetch,
|
|
90
|
+
batchInterval: 200,
|
|
91
|
+
batchMax: 100,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
logger.debug('Creating BatchHttpLink for server');
|
|
96
|
+
link = new BatchHttpLink({
|
|
97
|
+
uri: httpLocalGraphqlURL,
|
|
98
|
+
fetch,
|
|
99
|
+
batchInterval: 200,
|
|
100
|
+
batchMax: 100,
|
|
101
|
+
credentials: 'include',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
93
104
|
}
|
|
94
105
|
else {
|
|
95
106
|
logger.debug('Creating HttpLink for native');
|
|
@@ -118,9 +129,9 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
118
129
|
initializeCache({ cache, initialState, clientState, logger });
|
|
119
130
|
return { apolloClient, cache };
|
|
120
131
|
};
|
|
121
|
-
if (__DEV__) {
|
|
132
|
+
if (getGlobalVariable('__DEV__')) {
|
|
122
133
|
// Dynamically import dev messages only in a non-production environment
|
|
123
|
-
import('@apollo/client/dev')
|
|
134
|
+
import('@apollo/client/dev/index.js')
|
|
124
135
|
.then(({ loadErrorMessages, loadDevMessages }) => {
|
|
125
136
|
loadDevMessages();
|
|
126
137
|
loadErrorMessages();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {persistReducer,FLUSH,REHYDRATE,PAUSE,PERSIST,PURGE,REGISTER}from'redux-persist';// version 11/12/2021
|
|
1
|
+
import {combineReducers,configureStore}from'@reduxjs/toolkit';import {persistReducer,FLUSH,REHYDRATE,PAUSE,PERSIST,PURGE,REGISTER}from'redux-persist';import {getGlobalVariable}from'@common-stack/core';// version 11/12/2021
|
|
2
2
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
@@ -27,14 +27,22 @@ const createReduxStore = ({ scope, isDebug, isDev, reducers, rootEpic, enhancers
|
|
|
27
27
|
reducer: persistedReducer,
|
|
28
28
|
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
|
29
29
|
serializableCheck: {
|
|
30
|
-
ignoredActions: [
|
|
30
|
+
ignoredActions: [
|
|
31
|
+
FLUSH,
|
|
32
|
+
REHYDRATE,
|
|
33
|
+
PAUSE,
|
|
34
|
+
PERSIST,
|
|
35
|
+
PURGE,
|
|
36
|
+
REGISTER,
|
|
37
|
+
...(reduxConfig?.ignoredActions || []),
|
|
38
|
+
],
|
|
31
39
|
},
|
|
32
40
|
}).concat(...middlewares),
|
|
33
41
|
devTools: isDev || isDebug,
|
|
34
42
|
preloadedState: initialState,
|
|
35
43
|
enhancers: (getDefaultEnhancers) => getDefaultEnhancers().concat(...enhancers),
|
|
36
44
|
});
|
|
37
|
-
if ((isBrowser || isElectronMain || __SSR__) && epicMiddleware && rootEpic) {
|
|
45
|
+
if ((isBrowser || isElectronMain || getGlobalVariable('__SSR__')) && epicMiddleware && rootEpic) {
|
|
38
46
|
epicMiddleware.run(rootEpic);
|
|
39
47
|
}
|
|
40
48
|
return store;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'reflect-metadata';import {ClientTypes}from'@common-stack/client-core';import {ScopedContainer}from'@common-stack/client-core/lib/connector/ScopedContainer.js';import {merge}from'lodash-es';import features from'../modules.js';import {UtilityClass,logger}from'../utils/index.js';import {createApolloClient}from'./base-apollo-client.js';import {config}from'./browser-env-config.js';const utility = new UtilityClass(features);
|
|
1
|
+
import'reflect-metadata';import {ClientTypes}from'@common-stack/client-core';import {ScopedContainer}from'@common-stack/client-core/lib/connector/ScopedContainer.js';import {merge}from'lodash-es';import features from'../modules.js';import {UtilityClass,logger}from'../utils/index.js';import {createApolloClient}from'./base-apollo-client.js';import {config}from'./browser-env-config.js';import {getGlobalVariable}from'@common-stack/core';const utility = new UtilityClass(features);
|
|
2
2
|
ScopedContainer.registerGlobalDependencies((container) => {
|
|
3
3
|
container.bind(ClientTypes.Logger).toConstantValue(logger);
|
|
4
4
|
container.bind(ClientTypes.UtilityClass).toConstantValue(utility);
|
|
@@ -29,8 +29,8 @@ const createClientContainer = (req, res) => {
|
|
|
29
29
|
httpGraphqlURL: config.GRAPHQL_URL,
|
|
30
30
|
httpLocalGraphqlURL: config.LOCAL_GRAPHQL_URL,
|
|
31
31
|
isDev: process.env.NODE_ENV === 'development',
|
|
32
|
-
isDebug: __DEBUGGING__,
|
|
33
|
-
isSSR: __SSR__,
|
|
32
|
+
isDebug: getGlobalVariable('__DEBUGGING__'),
|
|
33
|
+
isSSR: getGlobalVariable('__SSR__'),
|
|
34
34
|
scope: typeof window !== 'undefined' ? 'browser' : 'server',
|
|
35
35
|
clientState,
|
|
36
36
|
getDataIdFromObject: (result) => features.getDataIdFromObject(result),
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import'reflect-metadata';import {cleanEnv,str,json,bool}from'envalid'
|
|
1
|
+
import'reflect-metadata';import {cleanEnv,str,json,bool}from'envalid';import {getEnvironment,getGlobalVariable}from'@common-stack/core';const env = getEnvironment();
|
|
2
|
+
/**
|
|
2
3
|
* This is for backend only
|
|
3
4
|
*/
|
|
4
|
-
const config = cleanEnv(
|
|
5
|
+
const config = cleanEnv(env, {
|
|
5
6
|
SENTRY_DSN_FRONTEND: str({ default: 'https://64defc5ee0bd467aa28888f9860f18ee@sentry.io/2158332' }),
|
|
6
7
|
NODE_ENV: str({ default: 'production', choices: ['production', 'staging', 'development', 'test'] }),
|
|
7
|
-
BACKEND_URL: str({ devDefault: __BACKEND_URL__ }),
|
|
8
|
-
LOCAL_BACKEND_URL: str({ devDefault: __BACKEND_URL__ }),
|
|
9
|
-
LOCAL_GRAPHQL_URL: str({ default: __GRAPHQL_URL__, desc: 'Graphql Server URL within LAN' }),
|
|
10
|
-
GRAPHQL_URL: str({ devDefault: __GRAPHQL_URL__, desc: 'Graphql Server Public URL' }),
|
|
8
|
+
BACKEND_URL: str({ devDefault: getGlobalVariable('__BACKEND_URL__') }),
|
|
9
|
+
LOCAL_BACKEND_URL: str({ devDefault: getGlobalVariable('__BACKEND_URL__') }),
|
|
10
|
+
LOCAL_GRAPHQL_URL: str({ default: getGlobalVariable('__GRAPHQL_URL__'), desc: 'Graphql Server URL within LAN' }),
|
|
11
|
+
GRAPHQL_URL: str({ devDefault: getGlobalVariable('__GRAPHQL_URL__'), desc: 'Graphql Server Public URL' }),
|
|
11
12
|
LOG_LEVEL: str({ devDefault: 'trace' }),
|
|
12
13
|
REDIS_CLUSTER_URL: json({
|
|
13
14
|
devDefault: '[{"port":6379,"host":"localhost"}]',
|
|
@@ -16,8 +17,9 @@ const config = cleanEnv(process.env, {
|
|
|
16
17
|
REDIS_URL: str({ devDefault: 'localhost' }),
|
|
17
18
|
REDIS_CLUSTER_ENABLED: bool({ devDefault: false }),
|
|
18
19
|
REDIS_SENTINEL_ENABLED: bool({ devDefault: true }),
|
|
20
|
+
REDIS_UPSTASH_TOKEN: str({ default: '' }),
|
|
19
21
|
APP_NAME: str({ devDefault: 'AdminiIde' }),
|
|
20
|
-
CLIENT_URL: str({ devDefault: __BACKEND_URL__ }),
|
|
22
|
+
CLIENT_URL: str({ devDefault: getGlobalVariable('__BACKEND_URL__') }),
|
|
21
23
|
CONNECTION_ID: str({ devDefault: 'CONNECTION_ID' }),
|
|
22
24
|
NAMESPACE: str({ default: 'default' }),
|
|
23
25
|
ZIPKIN_URL: str(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Cluster
|
|
1
|
+
import {Cluster}from'ioredis';import {UpstashRedisClient,IORedisClient}from'@common-stack/core/lib/redis-client/index.js';import {config}from'./env-config.server.js';let redisClient;
|
|
2
2
|
function getRedisClient(logger) {
|
|
3
3
|
if (!redisClient) {
|
|
4
4
|
// Initialize Redis client if it doesn't exist
|
|
@@ -10,8 +10,18 @@ function getRedisClient(logger) {
|
|
|
10
10
|
redisClient = new Cluster(config.REDIS_CLUSTER_URL);
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// eslint-disable-next-line no-lonely-if
|
|
14
|
+
if (process.env.SERVER_ENV === 'cloudflare') {
|
|
15
|
+
logger?.info('Setting Upstash Redis connection');
|
|
16
|
+
redisClient = new UpstashRedisClient({
|
|
17
|
+
url: config.REDIS_URL,
|
|
18
|
+
token: config.REDIS_UPSTASH_TOKEN,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
logger?.info('Setting IO Redis connection');
|
|
23
|
+
redisClient = new IORedisClient({ url: config.REDIS_URL });
|
|
24
|
+
}
|
|
15
25
|
}
|
|
16
26
|
return redisClient;
|
|
17
27
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import { EpicMiddleware } from 'redux-observable';
|
|
3
|
-
import { PersistConfig } from 'redux-persist';
|
|
4
3
|
import { logger } from '../utils';
|
|
5
4
|
import modules from '../modules';
|
|
6
5
|
interface Dependencies {
|
|
@@ -12,7 +11,6 @@ interface Dependencies {
|
|
|
12
11
|
config?: any;
|
|
13
12
|
}
|
|
14
13
|
export declare const epicMiddlewareFunc: (apolloClient: any, services: any, container: any) => EpicMiddleware<any, any, any, Dependencies>;
|
|
15
|
-
export declare const persistConfig: PersistConfig<any>;
|
|
16
14
|
export declare const createReduxStore: (apolloClient: any, services: any, container: any) => {
|
|
17
15
|
store: any;
|
|
18
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'reflect-metadata';import
|
|
1
|
+
import'reflect-metadata';import createWebStorage from'redux-persist/lib/storage/createWebStorage.js';import {combineReducers}from'@reduxjs/toolkit';import autoMergeLevel2 from'redux-persist/lib/stateReconciler/autoMergeLevel2.js';import {createEpicMiddleware}from'redux-observable';import {createRouterReducer}from'@common-stack/remix-router-redux';import {persistReducer}from'redux-persist';import {REDUX_PERSIST_KEY,ClientTypes}from'@common-stack/client-core';import {createReduxStore as createReduxStore$1}from'./base-redux-config.js';import {logger}from'../utils/index.js';import features from'../modules.js';import {rootEpic}from'./epic-config.js';const epicMiddlewareFunc = (apolloClient, services, container) => createEpicMiddleware({
|
|
2
2
|
dependencies: {
|
|
3
3
|
apolloClient,
|
|
4
4
|
routes: features.getConfiguredRoutes(),
|
|
@@ -7,14 +7,14 @@ import'reflect-metadata';import storage from'redux-persist/lib/storage/index.js'
|
|
|
7
7
|
logger,
|
|
8
8
|
},
|
|
9
9
|
});
|
|
10
|
-
const persistConfig = {
|
|
11
|
-
key: REDUX_PERSIST_KEY,
|
|
12
|
-
storage,
|
|
13
|
-
stateReconciler: autoMergeLevel2,
|
|
14
|
-
transforms: features.reduxPersistStateTransformers,
|
|
15
|
-
blacklist: ['router']
|
|
16
|
-
};
|
|
17
10
|
const createReduxStore = (apolloClient, services, container) => {
|
|
11
|
+
const persistConfig = {
|
|
12
|
+
key: REDUX_PERSIST_KEY,
|
|
13
|
+
storage: typeof window !== 'undefined' ? createWebStorage('local') : null,
|
|
14
|
+
stateReconciler: autoMergeLevel2,
|
|
15
|
+
transforms: features.reduxPersistStateTransformers,
|
|
16
|
+
blacklist: ['router'],
|
|
17
|
+
};
|
|
18
18
|
const reducers = {
|
|
19
19
|
router: createRouterReducer({}),
|
|
20
20
|
...features.reducers,
|
|
@@ -48,12 +48,18 @@ const createReduxStore = (apolloClient, services, container) => {
|
|
|
48
48
|
logger.debug('Created new Redux store');
|
|
49
49
|
}
|
|
50
50
|
if (container.isBound(ClientTypes.ReduxStore)) {
|
|
51
|
-
container
|
|
51
|
+
container
|
|
52
|
+
.rebind(ClientTypes.ReduxStore)
|
|
53
|
+
.toDynamicValue(() => store)
|
|
54
|
+
.inRequestScope();
|
|
52
55
|
logger.debug('Rebound ReduxStore in container');
|
|
53
56
|
}
|
|
54
57
|
else {
|
|
55
|
-
container
|
|
58
|
+
container
|
|
59
|
+
.bind(ClientTypes.ReduxStore)
|
|
60
|
+
.toDynamicValue(() => store)
|
|
61
|
+
.inRequestScope();
|
|
56
62
|
logger.debug('Bound ReduxStore in container');
|
|
57
63
|
}
|
|
58
64
|
return { store };
|
|
59
|
-
};export{createReduxStore,epicMiddlewareFunc
|
|
65
|
+
};export{createReduxStore,epicMiddlewareFunc};
|
|
@@ -8,7 +8,7 @@ export declare const Head: React.ComponentType<{
|
|
|
8
8
|
}> & {
|
|
9
9
|
__remix_island_id?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const Document: React.FC<DocumentProps & React.
|
|
11
|
+
export declare const Document: React.FC<DocumentProps & React.RefAttributes<any>> | React.ForwardRefExoticComponent<DocumentProps & React.RefAttributes<any>>;
|
|
12
12
|
export declare let loader: ({ request }: {
|
|
13
13
|
request: any;
|
|
14
14
|
}) => Promise<import("@remix-run/node").TypedResponse<{
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{UtilityClass,logger}from'./utils/index.js';export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc
|
|
1
|
+
export{UtilityClass,logger}from'./utils/index.js';export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc}from'./config/redux-config.js';export{clientLoaderWithMiddleware}from'./tools/clientLoaderWithMiddleware.js';export{loaderWithMiddleware}from'./tools/loaderWithMiddleware.js';export{corsMiddleware}from'./backend/middlewares/cors.js';export{TYPES,containerMiddleware}from'./backend/middlewares/container.js';export{errorMiddleware}from'./backend/middlewares/error.js';export{loadContext}from'./load-context.server.js';import*as entry_client from'./entries/antui/entry.client.js';export{entry_client as ac };import*as entry_server from'./entries/antui/entry.server.js';export{entry_server as as };import*as root from'./entries/antui/root.js';export{root as ar };import*as entry_client$1 from'./entries/chakraui/entry.client.js';export{entry_client$1 as cc };import*as entry_server$1 from'./entries/chakraui/entry.server.js';export{entry_server$1 as cs };import*as root$1 from'./entries/chakraui/root.js';export{root$1 as cr };import*as index$2 from'./entries/common/index.js';export{index$2 as common };export{i18nextInstance}from'./i18n-localization/i18next.server.js';import*as index from'./entries/antui/components/index.js';export{index as au };import*as index$1 from'./entries/chakraui/components/index.js';export{index$1 as cu };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1-alpha.0",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
"@apollo/client": "^3.9.0",
|
|
33
33
|
"@cdm-logger/client": "^9.0.3",
|
|
34
34
|
"@cdm-logger/server": "^9.0.3",
|
|
35
|
-
"@common-stack/cache-api-server": "
|
|
36
|
-
"@common-stack/client-core": "
|
|
37
|
-
"@common-stack/client-react": "
|
|
38
|
-
"@common-stack/components-pro": "
|
|
39
|
-
"@common-stack/core": "
|
|
40
|
-
"@common-stack/remix-router-redux": "
|
|
41
|
-
"@common-stack/server-core": "
|
|
35
|
+
"@common-stack/cache-api-server": "8.0.1-alpha.0",
|
|
36
|
+
"@common-stack/client-core": "8.0.1-alpha.0",
|
|
37
|
+
"@common-stack/client-react": "8.0.1-alpha.0",
|
|
38
|
+
"@common-stack/components-pro": "8.0.1-alpha.0",
|
|
39
|
+
"@common-stack/core": "8.0.1-alpha.0",
|
|
40
|
+
"@common-stack/remix-router-redux": "8.0.1-alpha.0",
|
|
41
|
+
"@common-stack/server-core": "8.0.1-alpha.0",
|
|
42
42
|
"@reduxjs/toolkit": "^2.2.6",
|
|
43
|
-
"@remix-run/express": "~2.
|
|
44
|
-
"@remix-run/node": "~2.
|
|
45
|
-
"@remix-run/react": "~2.
|
|
43
|
+
"@remix-run/express": "~2.15.3",
|
|
44
|
+
"@remix-run/node": "~2.15.3",
|
|
45
|
+
"@remix-run/react": "~2.15.3",
|
|
46
46
|
"@sentry/browser": "~5.11.2",
|
|
47
|
+
"@upstash/redis": "^1.34.3",
|
|
47
48
|
"@xstate/react": "^5.0.0",
|
|
48
49
|
"cors": "^2.8.5",
|
|
49
50
|
"cross-fetch": "^4.0.0",
|
|
@@ -97,8 +98,8 @@
|
|
|
97
98
|
"publishConfig": {
|
|
98
99
|
"access": "public"
|
|
99
100
|
},
|
|
100
|
-
"gitHead": "a81bd4f20784a62264ed61f94dca20169e9bb1f7",
|
|
101
101
|
"typescript": {
|
|
102
102
|
"definition": "lib/index.d.ts"
|
|
103
|
-
}
|
|
103
|
+
},
|
|
104
|
+
"gitHead": "73d9088ae254fbc43425eed5c9f5cd95bd66e921"
|
|
104
105
|
}
|