@stytch/react 0.3.2 → 0.4.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # @stytch/react
2
+
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Send methods in the SDK
8
+ - Updated dependencies
9
+ - @stytch/vanilla-js@0.4.4
package/dist/index.js CHANGED
@@ -100,7 +100,7 @@ const useStytch = () => {
100
100
  const withStytch = (Component) => {
101
101
  const WithStytch = (props) => {
102
102
  invariant(useIsMounted__INTERNAL(), noProviderError('withStytch'));
103
- return React__default["default"].createElement(Component, Object.assign({}, props, { stytch: useStytch() }));
103
+ return React__default['default'].createElement(Component, Object.assign({}, props, { stytch: useStytch() }));
104
104
  };
105
105
  WithStytch.displayName = `withStytch(${Component.displayName || Component.name || 'Component'})`;
106
106
  return WithStytch;
@@ -109,7 +109,7 @@ const withStytchUser = (Component) => {
109
109
  const WithStytchUser = (props) => {
110
110
  invariant(useIsMounted__INTERNAL(), noProviderError('withStytchUser'));
111
111
  const { user, fromCache } = useStytchUser();
112
- return React__default["default"].createElement(Component, Object.assign({}, props, { stytchUser: user, stytchUserIsFromCache: fromCache }));
112
+ return React__default['default'].createElement(Component, Object.assign({}, props, { stytchUser: user, stytchUserIsFromCache: fromCache }));
113
113
  };
114
114
  WithStytchUser.displayName = `withStytchUser(${Component.displayName || Component.name || 'Component'})`;
115
115
  return WithStytchUser;
@@ -118,7 +118,7 @@ const withStytchSession = (Component) => {
118
118
  const WithStytchSession = (props) => {
119
119
  invariant(useIsMounted__INTERNAL(), noProviderError('withStytchSession'));
120
120
  const { session, fromCache } = useStytchSession();
121
- return React__default["default"].createElement(Component, Object.assign({}, props, { stytchSession: session, stytchSessionIsFromCache: fromCache }));
121
+ return React__default['default'].createElement(Component, Object.assign({}, props, { stytchSession: session, stytchSessionIsFromCache: fromCache }));
122
122
  };
123
123
  WithStytchSession.displayName = `withStytchSession(${Component.displayName || Component.name || 'Component'})`;
124
124
  return WithStytchSession;
@@ -164,9 +164,9 @@ const StytchProvider = ({ stytch, children }) => {
164
164
  }, [stytch, setUser, setSession]);
165
165
  const finalSess = !!session.session === !!user.user ? session : initialSession;
166
166
  const finalUser = !!session.session === !!user.user ? user : initialUser;
167
- return (React__default["default"].createElement(StytchContext.Provider, { value: ctx },
168
- React__default["default"].createElement(StytchUserContext.Provider, { value: finalUser },
169
- React__default["default"].createElement(StytchSessionContext.Provider, { value: finalSess }, children))));
167
+ return (React__default['default'].createElement(StytchContext.Provider, { value: ctx },
168
+ React__default['default'].createElement(StytchUserContext.Provider, { value: finalUser },
169
+ React__default['default'].createElement(StytchSessionContext.Provider, { value: finalSess }, children))));
170
170
  };
171
171
 
172
172
  /**
@@ -222,7 +222,7 @@ const StytchLogin = ({ config, styles, callbacks }) => {
222
222
  styles,
223
223
  });
224
224
  }, [stytchClient, config, styles, callbacks]);
225
- return React__default["default"].createElement("div", { ref: containerEl });
225
+ return React__default['default'].createElement("div", { ref: containerEl });
226
226
  };
227
227
  /**
228
228
  * The Stytch Reset Password component.
@@ -260,7 +260,7 @@ const StytchPasswordReset = ({ config, styles, callbacks, passwordResetToken })
260
260
  });
261
261
  }
262
262
  }, [stytchClient, config, styles, callbacks, passwordResetToken]);
263
- return React__default["default"].createElement("div", { ref: containerEl });
263
+ return React__default['default'].createElement("div", { ref: containerEl });
264
264
  };
265
265
 
266
266
  exports.StytchLogin = StytchLogin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/react",
3
- "version": "0.3.2",
3
+ "version": "0.4.4",
4
4
  "description": "Stytch's official React Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -30,15 +30,15 @@
30
30
  "user"
31
31
  ],
32
32
  "devDependencies": {
33
- "@babel/runtime": "^7.18.6",
34
- "@stytch/vanilla-js": "0.3.2",
33
+ "@babel/runtime": "7.18.6",
34
+ "@stytch/vanilla-js": "0.4.4",
35
35
  "eslint-config-custom": "0.0.0",
36
- "rollup": "^2.56.3",
36
+ "rollup": "2.56.3",
37
37
  "typescript": "4.7.4"
38
38
  },
39
39
  "peerDependencies": {
40
- "@stytch/vanilla-js": "^0.3.2",
40
+ "@stytch/vanilla-js": "^0.4.4",
41
41
  "react": ">= 17.0.2",
42
42
  "react-dom": ">= 17.0.2"
43
43
  }
44
- }
44
+ }