@stytch/react 0.4.4 → 0.4.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stytch/react
2
2
 
3
+ ## 0.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Reset Password component doc fixes
8
+
3
9
  ## 0.4.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -113,7 +113,32 @@ interface StytchResetPasswordProps extends StytchProps {
113
113
  * and {@link https://storybook.stytch.com interactive examples} for more.
114
114
  *
115
115
  * @example
116
- * TODO
116
+ * <StytchPasswordReset
117
+ * config={{
118
+ * products: ['emailMagicLinks', 'oauth'],
119
+ * emailMagicLinksOptions: {
120
+ * loginRedirectURL: 'https://example.com/authenticate',
121
+ * signupRedirectURL: 'https://example.com/authenticate',
122
+ * },
123
+ * oauthOptions: {
124
+ * providers: [{ type: OAuthProviders.Google }, { type: OAuthProviders.Microsoft }],
125
+ * },
126
+ * }}
127
+ * passwordResetToken="PvC5UudZ7TPZbELt95yXAQ-8MeEUCRob8bUQ-g52fIJs"
128
+ * styles={{
129
+ * fontFamily: '"Helvetica New", Helvetica, sans-serif',
130
+ * primaryColor: '#0577CA',
131
+ * width: '321px',
132
+ * }}
133
+ * callbacks={{
134
+ * onEvent: (event) => console.log(event)
135
+ * }}
136
+ * />
137
+ *
138
+ * @param config - A {@link StytchLoginConfig} object
139
+ * @param passwordResetToken - A Stytch password reset token
140
+ * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
141
+ * @param callbacks - An optional {@link Callbacks} object
117
142
  */
118
143
  declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => JSX.Element;
119
144
  /**
@@ -113,7 +113,32 @@ interface StytchResetPasswordProps extends StytchProps {
113
113
  * and {@link https://storybook.stytch.com interactive examples} for more.
114
114
  *
115
115
  * @example
116
- * TODO
116
+ * <StytchPasswordReset
117
+ * config={{
118
+ * products: ['emailMagicLinks', 'oauth'],
119
+ * emailMagicLinksOptions: {
120
+ * loginRedirectURL: 'https://example.com/authenticate',
121
+ * signupRedirectURL: 'https://example.com/authenticate',
122
+ * },
123
+ * oauthOptions: {
124
+ * providers: [{ type: OAuthProviders.Google }, { type: OAuthProviders.Microsoft }],
125
+ * },
126
+ * }}
127
+ * passwordResetToken="PvC5UudZ7TPZbELt95yXAQ-8MeEUCRob8bUQ-g52fIJs"
128
+ * styles={{
129
+ * fontFamily: '"Helvetica New", Helvetica, sans-serif',
130
+ * primaryColor: '#0577CA',
131
+ * width: '321px',
132
+ * }}
133
+ * callbacks={{
134
+ * onEvent: (event) => console.log(event)
135
+ * }}
136
+ * />
137
+ *
138
+ * @param config - A {@link StytchLoginConfig} object
139
+ * @param passwordResetToken - A Stytch password reset token
140
+ * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
141
+ * @param callbacks - An optional {@link Callbacks} object
117
142
  */
118
143
  declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => JSX.Element;
119
144
  /**
package/dist/index.esm.js CHANGED
@@ -225,7 +225,32 @@ const StytchLogin = ({ config, styles, callbacks }) => {
225
225
  * and {@link https://storybook.stytch.com interactive examples} for more.
226
226
  *
227
227
  * @example
228
- * TODO
228
+ * <StytchPasswordReset
229
+ * config={{
230
+ * products: ['emailMagicLinks', 'oauth'],
231
+ * emailMagicLinksOptions: {
232
+ * loginRedirectURL: 'https://example.com/authenticate',
233
+ * signupRedirectURL: 'https://example.com/authenticate',
234
+ * },
235
+ * oauthOptions: {
236
+ * providers: [{ type: OAuthProviders.Google }, { type: OAuthProviders.Microsoft }],
237
+ * },
238
+ * }}
239
+ * passwordResetToken="PvC5UudZ7TPZbELt95yXAQ-8MeEUCRob8bUQ-g52fIJs"
240
+ * styles={{
241
+ * fontFamily: '"Helvetica New", Helvetica, sans-serif',
242
+ * primaryColor: '#0577CA',
243
+ * width: '321px',
244
+ * }}
245
+ * callbacks={{
246
+ * onEvent: (event) => console.log(event)
247
+ * }}
248
+ * />
249
+ *
250
+ * @param config - A {@link StytchLoginConfig} object
251
+ * @param passwordResetToken - A Stytch password reset token
252
+ * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
253
+ * @param callbacks - An optional {@link Callbacks} object
229
254
  */
230
255
  const StytchPasswordReset = ({ config, styles, callbacks, passwordResetToken }) => {
231
256
  invariant(useIsMounted__INTERNAL(), noProviderError('<StytchResetPassword />'));
package/dist/index.js CHANGED
@@ -233,7 +233,32 @@ const StytchLogin = ({ config, styles, callbacks }) => {
233
233
  * and {@link https://storybook.stytch.com interactive examples} for more.
234
234
  *
235
235
  * @example
236
- * TODO
236
+ * <StytchPasswordReset
237
+ * config={{
238
+ * products: ['emailMagicLinks', 'oauth'],
239
+ * emailMagicLinksOptions: {
240
+ * loginRedirectURL: 'https://example.com/authenticate',
241
+ * signupRedirectURL: 'https://example.com/authenticate',
242
+ * },
243
+ * oauthOptions: {
244
+ * providers: [{ type: OAuthProviders.Google }, { type: OAuthProviders.Microsoft }],
245
+ * },
246
+ * }}
247
+ * passwordResetToken="PvC5UudZ7TPZbELt95yXAQ-8MeEUCRob8bUQ-g52fIJs"
248
+ * styles={{
249
+ * fontFamily: '"Helvetica New", Helvetica, sans-serif',
250
+ * primaryColor: '#0577CA',
251
+ * width: '321px',
252
+ * }}
253
+ * callbacks={{
254
+ * onEvent: (event) => console.log(event)
255
+ * }}
256
+ * />
257
+ *
258
+ * @param config - A {@link StytchLoginConfig} object
259
+ * @param passwordResetToken - A Stytch password reset token
260
+ * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
261
+ * @param callbacks - An optional {@link Callbacks} object
237
262
  */
238
263
  const StytchPasswordReset = ({ config, styles, callbacks, passwordResetToken }) => {
239
264
  invariant(useIsMounted__INTERNAL(), noProviderError('<StytchResetPassword />'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/react",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Stytch's official React Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",