@common-stack/frontend-stack-react 4.0.2-alpha.1 → 4.0.2-alpha.4

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.
@@ -9,9 +9,7 @@ interface Dependencies {
9
9
  services: any;
10
10
  container: any;
11
11
  logger: typeof logger;
12
- config: {
13
- loadRoot: boolean;
14
- };
12
+ config?: any;
15
13
  }
16
14
  export declare const epicMiddlewareFunc: (apolloClient: any, services: any, container: any) => EpicMiddleware<any, any, any, Dependencies>;
17
15
  export declare const persistConfig: PersistConfig<any>;
@@ -5,9 +5,6 @@ import'reflect-metadata';import storage from'redux-persist/lib/storage/index.js'
5
5
  services,
6
6
  container,
7
7
  logger,
8
- config: {
9
- loadRoot: false,
10
- }
11
8
  },
12
9
  });
13
10
  const persistConfig = {
package/lib/index.d.ts CHANGED
@@ -5,4 +5,3 @@ export * from './backend/middlewares/cors';
5
5
  export * from './backend/middlewares/container';
6
6
  export * from './backend/middlewares/error';
7
7
  export * from './load-context.server';
8
- export * from './i18n-localization';
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,persistConfig}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'./i18n-localization/i18next.server.js';
1
+ export{UtilityClass,logger}from'./utils/index.js';export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc,persistConfig}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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/frontend-stack-react",
3
- "version": "4.0.2-alpha.1",
3
+ "version": "4.0.2-alpha.4",
4
4
  "description": "Client Module for react app",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -29,7 +29,7 @@
29
29
  "watch": "npm run build:lib:watch"
30
30
  },
31
31
  "dependencies": {
32
- "@common-stack/client-react": "4.0.2-alpha.1",
32
+ "@common-stack/client-react": "4.0.2-alpha.4",
33
33
  "@common-stack/core": "4.0.2-alpha.1",
34
34
  "i18next-fs-backend": "^2.3.1",
35
35
  "i18next-http-backend": "^2.5.2",
@@ -52,5 +52,5 @@
52
52
  "typescript": {
53
53
  "definition": "lib/index.d.ts"
54
54
  },
55
- "gitHead": "2265754b0b7a930ce3654abb3138170d20362c77"
55
+ "gitHead": "0bc587391ce1a1973d13d8b60557802b9ca8af43"
56
56
  }
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- supportedLngs: string[];
3
- fallbackLng: string;
4
- defaultNS: string;
5
- };
6
- export default _default;
@@ -1,9 +0,0 @@
1
- var i18n = {
2
- // This is the list of languages your application supports
3
- supportedLngs: ["en", "es"],
4
- // This is the language you want to use in case
5
- // if the user language is not in the supportedLngs
6
- fallbackLng: "en",
7
- // The default namespace of i18next is "translation", but you can customize it here
8
- defaultNS: "common",
9
- };export{i18n as default};
@@ -1,2 +0,0 @@
1
- declare let i18next: any;
2
- export default i18next;
@@ -1,18 +0,0 @@
1
- import Backend from'i18next-fs-backend';import {resolve}from'node:path';import {RemixI18Next}from'remix-i18next/server';import i18n from'./i18n.js';new RemixI18Next({
2
- detection: {
3
- supportedLanguages: i18n.supportedLngs,
4
- fallbackLanguage: i18n.fallbackLng,
5
- },
6
- // This is the configuration for i18next used
7
- // when translating messages server-side only
8
- i18next: {
9
- ...i18n,
10
- backend: {
11
- loadPath: resolve('./public/cdm-locales/{{lng}}/{{ns}}.json'),
12
- },
13
- },
14
- // The i18next plugins you want RemixI18next to use for `i18n.getFixedT` inside loaders and actions.
15
- // E.g. The Backend plugin for loading translations from the file system
16
- // Tip: You could pass `resources` to the `i18next` configuration and avoid a backend here
17
- plugins: [Backend],
18
- });
@@ -1,2 +0,0 @@
1
- export * from './i18next.server';
2
- export * from './i18n';