@common-stack/mobile-stack-react 6.0.6-alpha.17 → 6.0.6-alpha.20

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './config';
2
2
  export * from './utils';
3
+ export * from './load-context.mobile';
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc,persistConfig}from'./config/redux-config.js';export{UtilityClass,logger}from'./utils/index.js';export{default as history}from'./config/router-history.js';
1
+ export{createClientContainer}from'./config/client.service.js';export{createReduxStore,epicMiddlewareFunc,persistConfig}from'./config/redux-config.js';export{UtilityClass,logger}from'./utils/index.js';export{loadContext}from'./load-context.mobile.js';export{default as history}from'./config/router-history.js';
@@ -0,0 +1,8 @@
1
+ import 'reflect-metadata';
2
+ export declare const loadContext: () => {
3
+ modules: import("packages/common-client-react/lib").Feature;
4
+ store: import("redux").Store<any, import("redux").UnknownAction, unknown>;
5
+ container: import("inversify").Container;
6
+ apolloClient: import("@apollo/client").ApolloClient<any>;
7
+ persistor: import("redux-persist").Persistor;
8
+ };
@@ -0,0 +1,14 @@
1
+ import'reflect-metadata';import {persistStore}from'redux-persist';import features from'./modules.js';import {createReduxStore}from'./config/redux-config.js';import {createClientContainer}from'./config/client.service.js';import hist from'./config/router-history.js';/* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
3
+ const loadContext = () => {
4
+ const { apolloClient: client, container, serviceFunc } = createClientContainer();
5
+ const { store } = createReduxStore(hist, client, serviceFunc(), container);
6
+ const persistor = persistStore(store);
7
+ return {
8
+ modules: features,
9
+ store,
10
+ container,
11
+ apolloClient: client,
12
+ persistor,
13
+ };
14
+ };export{loadContext};
package/lib/modules.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import { Feature } from '@common-stack/client-react';
2
2
  declare const features: Feature;
3
- export declare const plugins: import("@common-stack/client-react").WorbenchExtension[];
4
3
  export default features;
package/lib/modules.js CHANGED
@@ -1,3 +1,2 @@
1
1
  import {Feature}from'@common-stack/client-react';// This is a sample `module.ts` that will be replaced during run time.
2
- const features = new Feature({});
3
- features.getComponentFillPlugins();export{features as default};
2
+ const features = new Feature({});export{features as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/mobile-stack-react",
3
- "version": "6.0.6-alpha.17",
3
+ "version": "6.0.6-alpha.20",
4
4
  "description": "Client Module for mobile app",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -131,5 +131,5 @@
131
131
  "typescript": {
132
132
  "definition": "lib/index.d.ts"
133
133
  },
134
- "gitHead": "1b4f4ebc9bf60f1d86ed9510e97f4cde1efab181"
134
+ "gitHead": "b0f998476a168a494f5d9ec4a91f6648cfbe4c3c"
135
135
  }