@stytch/react 4.0.0 → 5.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @stytch/react
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f9c36c9]
8
+ - @stytch/vanilla-js@1.0.0
9
+
3
10
  ## 4.0.0
4
11
 
5
12
  ### Minor Changes
@@ -191,6 +191,6 @@ interface StytchB2BProps {
191
191
  * />
192
192
  * @param props {@link StytchB2BProps}
193
193
  */
194
- declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => JSX.Element;
194
+ declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => React.JSX.Element;
195
195
  export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, withStytchB2BClient, withStytchMemberSession, withStytchMember, StytchB2B };
196
196
  export type { StytchB2BProviderProps };
@@ -191,6 +191,6 @@ interface StytchB2BProps {
191
191
  * />
192
192
  * @param props {@link StytchB2BProps}
193
193
  */
194
- declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => JSX.Element;
194
+ declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => React.JSX.Element;
195
195
  export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, withStytchB2BClient, withStytchMemberSession, withStytchMember, StytchB2B };
196
196
  export type { StytchB2BProviderProps };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import React from "react";
3
+ import { ReactNode } from "react";
2
4
  // We need to import the StytchUIClient type to give the TSDoc parser a hint as to where it is from
3
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
6
  import { Callbacks, StytchLoginConfig, StyleConfig, User, Session, StytchUIClient } from "@stytch/vanilla-js";
5
- import React from "react";
6
- import { ReactNode } from "react";
7
7
  import { StytchHeadlessClient } from "@stytch/vanilla-js/headless";
8
8
  interface StytchProps {
9
9
  /**
@@ -100,7 +100,7 @@ interface StytchProps {
100
100
  * />
101
101
  * @param props {@link StytchProps}
102
102
  */
103
- declare const StytchLogin: ({ config, styles, callbacks }: StytchProps) => JSX.Element;
103
+ declare const StytchLogin: ({ config, styles, callbacks }: StytchProps) => React.JSX.Element;
104
104
  interface StytchResetPasswordProps extends StytchProps {
105
105
  passwordResetToken: string;
106
106
  }
@@ -140,7 +140,7 @@ interface StytchResetPasswordProps extends StytchProps {
140
140
  * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
141
141
  * @param callbacks - An optional {@link Callbacks} object
142
142
  */
143
- declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => JSX.Element;
143
+ declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => React.JSX.Element;
144
144
  /**
145
145
  * The Stytch Client object passed in to <StytchProvider /> in your application root.
146
146
  * Either a StytchUIClient or StytchHeadlessClient.
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
+ import React from "react";
3
+ import { ReactNode } from "react";
2
4
  // We need to import the StytchUIClient type to give the TSDoc parser a hint as to where it is from
3
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
6
  import { Callbacks, StytchLoginConfig, StyleConfig, User, Session, StytchUIClient } from "@stytch/vanilla-js";
5
- import React from "react";
6
- import { ReactNode } from "react";
7
7
  import { StytchHeadlessClient } from "@stytch/vanilla-js/headless";
8
8
  interface StytchProps {
9
9
  /**
@@ -100,7 +100,7 @@ interface StytchProps {
100
100
  * />
101
101
  * @param props {@link StytchProps}
102
102
  */
103
- declare const StytchLogin: ({ config, styles, callbacks }: StytchProps) => JSX.Element;
103
+ declare const StytchLogin: ({ config, styles, callbacks }: StytchProps) => React.JSX.Element;
104
104
  interface StytchResetPasswordProps extends StytchProps {
105
105
  passwordResetToken: string;
106
106
  }
@@ -140,7 +140,7 @@ interface StytchResetPasswordProps extends StytchProps {
140
140
  * @param styles - An optional {@link StyleConfig} to customize the look and feel of the screen.
141
141
  * @param callbacks - An optional {@link Callbacks} object
142
142
  */
143
- declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => JSX.Element;
143
+ declare const StytchPasswordReset: ({ config, styles, callbacks, passwordResetToken }: StytchResetPasswordProps) => React.JSX.Element;
144
144
  /**
145
145
  * The Stytch Client object passed in to <StytchProvider /> in your application root.
146
146
  * Either a StytchUIClient or StytchHeadlessClient.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/react",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "Stytch's official React Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "devDependencies": {
34
34
  "@babel/runtime": "7.18.6",
35
- "@stytch/vanilla-js": "0.14.0",
35
+ "@stytch/vanilla-js": "1.0.0",
36
36
  "@testing-library/react": "14.0.0",
37
37
  "eslint-config-custom": "0.0.1",
38
38
  "react-test-renderer": "18.0.0",
@@ -40,7 +40,7 @@
40
40
  "typescript": "4.7.4"
41
41
  },
42
42
  "peerDependencies": {
43
- "@stytch/vanilla-js": "^0.14.0",
43
+ "@stytch/vanilla-js": "^1.0.0",
44
44
  "react": ">= 17.0.2",
45
45
  "react-dom": ">= 17.0.2"
46
46
  }