rwr-redux 0.3.0 → 0.4.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.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/rails-redux-router.md +2 -0
- data/js/src/index.js +11 -0
- data/js/src/integrations/redux-container.js +6 -0
- data/js/src/integrations/redux-router.js +5 -0
- data/js/src/version.js +1 -1
- data/lib/react_webpack_rails/redux_integration/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be4eca4b78faa9b282e09216f8ec630c6f0a7d8a
|
4
|
+
data.tar.gz: 29de0a81deca613280206c60bc132a4fe1f98209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 737588a1d5ed71c6b5fb27a134ca725bbde6675dd514d8e5225e8d25a3a78f4ded25b4d568cab6635ae25bff9f242358654de8cb3b24040dc0c1923e5afcdafd
|
7
|
+
data.tar.gz: 30d26a731a95b6cf4dcc4e22db9f51d2068f734ff18e03c44f8a49bd7c2a404e6d04c576a51975d2bd25755d281cefa574cc6feff2f972ab8c5fae9b1cf3f7b3
|
data/README.md
CHANGED
@@ -32,6 +32,8 @@ When a page is loaded, your container component is wrapped with [`<Provider>`](h
|
|
32
32
|
|
33
33
|
Register integrations:
|
34
34
|
```js
|
35
|
+
import RWR, { integrationsManager } from 'react-webpack-rails';
|
36
|
+
|
35
37
|
integrationsManager.register('redux-store', RWRRedux.storeIntegrationWrapper);
|
36
38
|
integrationsManager.register('redux-container', RWRRedux.containerIntegrationWrapper);
|
37
39
|
```
|
data/docs/rails-redux-router.md
CHANGED
@@ -83,6 +83,8 @@ this.props.dispatch(push(path));
|
|
83
83
|
|
84
84
|
Register integrations:
|
85
85
|
```js
|
86
|
+
import RWR, { integrationsManager } from 'react-webpack-rails';
|
87
|
+
|
86
88
|
integrationsManager.register('redux-store', RWRRedux.storeIntegrationWrapper);
|
87
89
|
integrationsManager.register('redux-container', RWRRedux.containerIntegrationWrapper);
|
88
90
|
integrationsManager.register('redux-router', RWRRedux.routerIntegrationWrapper);
|
data/js/src/index.js
CHANGED
@@ -13,9 +13,20 @@ class RWRRedux {
|
|
13
13
|
this.storeIntegrationWrapper = ReduxStore.integrationWrapper;
|
14
14
|
|
15
15
|
this.registerContainer = ReduxContainer.registerContainer;
|
16
|
+
this.getContainer = ReduxContainer.getContainer;
|
17
|
+
this.createContainer = ReduxContainer.createContainer;
|
18
|
+
this.createRootComponent = ReduxContainer.createRootComponent;
|
19
|
+
this.renderContainer = ReduxContainer.renderContainer;
|
20
|
+
this.unmountContainer = ReduxContainer.unmountContainer;
|
21
|
+
this.renderContainerToString = ReduxContainer.renderContainerToString;
|
16
22
|
this.containerIntegrationWrapper = ReduxContainer.integrationWrapper;
|
17
23
|
|
18
24
|
this.registerRoutes = ReduxRouter.registerRoutes;
|
25
|
+
this.getRoutes = ReduxRouter.getRoutes;
|
26
|
+
this.createRootRouter = ReduxRouter.createRootRouter;
|
27
|
+
this.unmountRouter = ReduxRouter.unmountRouter;
|
28
|
+
this.renderRouter = ReduxRouter.renderRouter;
|
29
|
+
this.renderRouterToString = ReduxRouter.renderRouterToString;
|
19
30
|
this.routerIntegrationWrapper = ReduxRouter.integrationWrapper;
|
20
31
|
}
|
21
32
|
}
|
@@ -10,6 +10,12 @@ class ReduxContainer {
|
|
10
10
|
this.containers = {};
|
11
11
|
|
12
12
|
this.registerContainer = this.registerContainer.bind(this);
|
13
|
+
this.getContainer = this.getContainer.bind(this);
|
14
|
+
this.createContainer = this.createContainer.bind(this);
|
15
|
+
this.createRootComponent = this.createRootComponent.bind(this);
|
16
|
+
this.renderContainer = this.renderContainer.bind(this);
|
17
|
+
this.unmountContainer = this.unmountContainer.bind(this);
|
18
|
+
this.renderContainerToString = this.renderContainerToString.bind(this);
|
13
19
|
}
|
14
20
|
|
15
21
|
registerContainer(name, container) {
|
@@ -13,6 +13,11 @@ class ReduxRouter {
|
|
13
13
|
this.routes = {};
|
14
14
|
|
15
15
|
this.registerRoutes = this.registerRoutes.bind(this);
|
16
|
+
this.getRoutes = this.getRoutes.bind(this);
|
17
|
+
this.createRootRouter = this.createRootRouter.bind(this);
|
18
|
+
this.unmountRouter = this.unmountRouter.bind(this);
|
19
|
+
this.renderRouter = this.renderRouter.bind(this);
|
20
|
+
this.renderRouterToString = this.renderRouterToString.bind(this);
|
16
21
|
}
|
17
22
|
|
18
23
|
registerRoutes(name, routes) {
|
data/js/src/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default '0.
|
1
|
+
export default '0.4.0';
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rwr-redux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kacper Goliński
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|