@lomray/react-mobx-manager 1.5.2-beta.2 → 1.5.3-beta.1

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18.13.0
package/lib/context.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { FC, ReactElement } from "react";
4
- import Manager from "./manager";
4
+ import Manager from "./manager.js";
5
5
  interface IStoreManagerProvider {
6
6
  storeManager: Manager;
7
7
  shouldInit?: boolean;
package/lib/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export * from "./types-c6a5e53a";
2
- export * from "./context";
3
- export { default as Manager } from "./manager";
4
- export { default as onChangeListener } from "./on-change-listener";
5
- export { default as wakeup } from "./wakeup";
6
- export { default as withStores } from "./with-stores";
7
- export { default as MobxLocalStorage } from "./storages/local-storage";
8
- export { default as MobxAsyncStorage } from "./storages/async-storage";
9
- export { default as Events } from "./events";
1
+ export * from "./types-c6a5e53a.js";
2
+ export * from "./context.js";
3
+ export { default as Manager } from "./manager.js";
4
+ export { default as onChangeListener } from "./on-change-listener.js";
5
+ export { default as wakeup } from "./wakeup.js";
6
+ export { default as withStores } from "./with-stores.js";
7
+ export { default as MobxLocalStorage } from "./storages/local-storage.js";
8
+ export { default as MobxAsyncStorage } from "./storages/async-storage.js";
9
+ export { default as Events } from "./events.js";
package/lib/manager.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IConstructableStore, IManagerParams, IStorage, IStore, TStoreDefinition, IManagerOptions, TStores, IStoreLifecycle, TInitStore, IStoreParams } from "./types-c6a5e53a";
1
+ import { IConstructableStore, IManagerParams, IStorage, IStore, TStoreDefinition, IManagerOptions, TStores, IStoreLifecycle, TInitStore, IStoreParams } from "./types-c6a5e53a.js";
2
2
  /**
3
3
  * Mobx stores manager
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IStorePersisted } from "./types-c6a5e53a";
1
+ import { IStorePersisted } from "./types-c6a5e53a.js";
2
2
  /**
3
3
  * Listen persist store changes
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IStorage } from "../types-c6a5e53a";
1
+ import { IStorage } from "../types-c6a5e53a.js";
2
2
  interface IAsyncStorage {
3
3
  getItem: (key: string) => Promise<string | null>;
4
4
  setItem: (key: string, value: string) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { IStorage } from "../types-c6a5e53a";
1
+ import { IStorage } from "../types-c6a5e53a.js";
2
2
  /**
3
3
  * Local storage for mobx store manager
4
4
  */
@@ -1,4 +1,4 @@
1
- import Manager from "./manager";
1
+ import Manager from "./manager.js";
2
2
  interface IConstructorParams<TProps = Record<string, any>> {
3
3
  storeManager: Manager;
4
4
  getStore: <T>(store: IConstructableStore<T>, params?: Partial<IStoreParams>) => T | undefined;
package/lib/wakeup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IStorePersisted } from "./types-c6a5e53a";
1
+ import { IStorePersisted } from "./types-c6a5e53a.js";
2
2
  /**
3
3
  * Restore store state from initial state
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TMapStores } from "./types-c6a5e53a";
2
+ import { TMapStores } from "./types-c6a5e53a.js";
3
3
  /**
4
4
  * Make component observable and pass stores as props
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lomray/react-mobx-manager",
3
- "version": "1.5.2-beta.2",
3
+ "version": "1.5.3-beta.1",
4
4
  "description": "This package provides Mobx stores manager for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -39,30 +39,30 @@
39
39
  "prepare": "husky install"
40
40
  },
41
41
  "devDependencies": {
42
- "@commitlint/cli": "^17.4.2",
43
- "@commitlint/config-conventional": "^17.4.2",
44
- "@lomray/eslint-config-react": "^2.0.0",
42
+ "@commitlint/cli": "^17.6.3",
43
+ "@commitlint/config-conventional": "^17.6.3",
44
+ "@lomray/eslint-config-react": "^3.0.0",
45
45
  "@lomray/prettier-config": "^1.2.0",
46
- "@rollup/plugin-terser": "^0.3.0",
46
+ "@rollup/plugin-terser": "^0.4.3",
47
47
  "@types/hoist-non-react-statics": "^3.3.1",
48
- "@types/react": "^18.0.15",
49
- "eslint": "8.21.0",
50
- "eslint-config-prettier": "^8.5.0",
51
- "eslint-plugin-jsx-a11y": "^6.6.1",
48
+ "@types/react": "^18.2.7",
49
+ "eslint": "^8.41.0",
50
+ "eslint-config-prettier": "^8.8.0",
51
+ "eslint-plugin-jsx-a11y": "^6.7.1",
52
52
  "eslint-plugin-prettier": "^4.2.1",
53
53
  "husky": "^8.0.3",
54
- "lint-staged": "^13.1.0",
55
- "prettier": "^2.8.3",
56
- "rollup": "^2.79.1",
57
- "rollup-plugin-ts": "^3.0.2",
58
- "semantic-release": "^19.0.5",
54
+ "lint-staged": "^13.2.2",
55
+ "prettier": "^2.8.8",
56
+ "rollup": "2.79.1",
57
+ "rollup-plugin-ts": "^3.2.0",
58
+ "semantic-release": "^21.0.2",
59
59
  "ttypescript": "^1.5.15",
60
60
  "typescript": "^4.7.4"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "hoist-non-react-statics": "^3.3.2",
64
- "mobx": "^6.6.2",
65
- "mobx-react-lite": "^3.4.0",
64
+ "mobx": "^6.9.0",
65
+ "mobx-react-lite": "^3.4.3",
66
66
  "react": "^18 || ^17"
67
67
  },
68
68
  "dependencies": {