@times-components/user-state 0.1.61 → 0.1.65

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +9 -17
  3. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.65](https://github.com/newsuk/times-components/compare/@times-components/user-state@0.1.64...@times-components/user-state@0.1.65) (2021-12-02)
7
+
8
+ **Note:** Version bump only for package @times-components/user-state
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.64](https://github.com/newsuk/times-components/compare/@times-components/user-state@0.1.63...@times-components/user-state@0.1.64) (2021-11-25)
15
+
16
+ **Note:** Version bump only for package @times-components/user-state
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.1.63](https://github.com/newsuk/times-components/compare/@times-components/user-state@0.1.62...@times-components/user-state@0.1.63) (2021-08-09)
23
+
24
+ **Note:** Version bump only for package @times-components/user-state
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.1.62](https://github.com/newsuk/times-components/compare/@times-components/user-state@0.1.61...@times-components/user-state@0.1.62) (2021-07-05)
31
+
32
+ **Note:** Version bump only for package @times-components/user-state
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.1.61](https://github.com/newsuk/times-components/compare/@times-components/user-state@0.1.60...@times-components/user-state@0.1.61) (2021-07-02)
7
39
 
8
40
  **Note:** Version bump only for package @times-components/user-state
package/README.md CHANGED
@@ -22,13 +22,15 @@ You can use it as follows.
22
22
  import UserState from "@times-components/user-state";
23
23
 
24
24
  <UserState
25
- state={UserState.subscriber}
26
- fallback={<div>Will only render for non-subscribers</div>}
27
- serverRender={/* Control whether you want this to render on the server at all */}
25
+ state={UserState.subscriber}
26
+ fallback={<div>Will only render for non-subscribers</div>}
27
+ serverRender={
28
+ /* Control whether you want this to render on the server at all */
29
+ }
28
30
  >
29
- // Anything you only want to render for subscribers
30
- <div>Will only render for subscribers</div>
31
- </UserState>
31
+ // Anything you only want to render for subscribers
32
+ <div>Will only render for subscribers</div>
33
+ </UserState>;
32
34
  ```
33
35
 
34
36
  The `state` property is simply a matcher function that gets passed the current user
@@ -63,9 +65,7 @@ UserState.mockStates = [
63
65
  // Use UseState as usual in your production code
64
66
  import UserState from "@times-components/user-state";
65
67
 
66
- <UserState state={/*...*/}>
67
- // ...
68
- </UserState>
68
+ <UserState state={/*...*/}>// ...</UserState>;
69
69
  ```
70
70
 
71
71
  ## Storybook
@@ -107,17 +107,9 @@ yarn lint
107
107
  Testing can be done on each platform individually
108
108
 
109
109
  ```
110
- yarn test:android
111
- yarn test:ios
112
110
  yarn test:web
113
111
  ```
114
112
 
115
- Or the tests for all platforms can be run
116
-
117
- ```
118
- yarn test:all
119
- ```
120
-
121
113
  Visit the official
122
114
 
123
115
  <!-- Add the storybook link here. -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@times-components/user-state",
3
- "version": "0.1.61",
3
+ "version": "0.1.65",
4
4
  "description": "Selectively render react components based on current user state",
5
5
  "main": "dist/user-state",
6
6
  "dev": "src/user-state",
@@ -35,16 +35,16 @@
35
35
  "homepage": "https://github.com/newsuk/times-components#readme",
36
36
  "dependencies": {
37
37
  "@storybook/addon-knobs": "5.3.18",
38
- "@times-components/context": "1.2.24",
39
- "@times-components/utils": "6.5.4",
38
+ "@times-components/context": "1.2.28",
39
+ "@times-components/utils": "6.5.8",
40
40
  "prop-types": "15.7.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/core": "7.4.4",
44
- "@times-components/eslint-config-thetimes": "0.8.16",
45
- "@times-components/jest-configurator": "2.7.1",
46
- "@times-components/jest-serializer": "3.2.25",
47
- "@times-components/webpack-configurator": "2.0.27",
44
+ "@times-components/eslint-config-thetimes": "0.8.18",
45
+ "@times-components/jest-configurator": "2.7.4",
46
+ "@times-components/jest-serializer": "3.2.28",
47
+ "@times-components/webpack-configurator": "2.0.29",
48
48
  "babel-jest": "24.8.0",
49
49
  "babel-loader": "8.0.5",
50
50
  "eslint": "5.9.0",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "912dbc3e6c0049241dd756f5829fdbd324f5ae5f"
73
+ "gitHead": "eec604346ec793e27892f0522ab81cafde40fd9e"
74
74
  }