From a4e57e8625de2bfe06f2b93ec5c8ecb36df18a7e Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 17 Dec 2023 15:08:17 +0200 Subject: [PATCH 01/16] hoc implementation --- packages/react/package.json | 4 +- packages/react/src/SteppedUpContent.tsx | 40 +++++++++++++++ yarn.lock | 67 +++++++++++++++---------- 3 files changed, 83 insertions(+), 28 deletions(-) create mode 100644 packages/react/src/SteppedUpContent.tsx diff --git a/packages/react/package.json b/packages/react/package.json index 7d0e249af..1502b625f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.160.0", - "@frontegg/react-hooks": "6.160.0" + "@frontegg/js": "6.162.0-alpha.0", + "@frontegg/react-hooks": "6.162.0-alpha.0" }, "peerDependencies": { "react": ">16.9.0", diff --git a/packages/react/src/SteppedUpContent.tsx b/packages/react/src/SteppedUpContent.tsx new file mode 100644 index 000000000..c0103ad54 --- /dev/null +++ b/packages/react/src/SteppedUpContent.tsx @@ -0,0 +1,40 @@ +import React, { ReactNode, useEffect, useRef } from 'react'; + +import { useStepUp, useIsSteppedUp } from '@frontegg/react'; + +export interface SteppedUpProps { + maxAge?: number; + render?: (isSteppedUp: boolean) => React.ReactNode | null; + children?: ReactNode; +} + +/** + * Stepped up content component that shows the wrapped content only when the user is stepped up + * The component triggers the step up flow if the user is not stepped up + * @param maxAge maximum time in second that the login is valid + * @param render render function to be called when user is stepped up + * @param children to be shown when user is stepped up (only if render not provided) + */ +export const SteppedUpContent: React.FC = ({ maxAge, render, children }) => { + const isSteppedUp = useIsSteppedUp({ maxAge }); + const stepUp = useStepUp(); + const isStepUpCalled = useRef(false); + + useEffect(() => { + if (isSteppedUp) { + isStepUpCalled.current = false; + return; + } + + if (isStepUpCalled.current) return; + + stepUp({ maxAge }); + isStepUpCalled.current = true; + }, [isSteppedUp, maxAge, stepUp]); + + if (typeof render === 'function') { + return <>{render(isSteppedUp)}; + } + + return isSteppedUp ? <>{children} : null; +}; diff --git a/yarn.lock b/yarn.lock index 87d66ea5c..fc70dbcb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2124,13 +2124,20 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.12.13", "@babel/runtime@^7.17.2", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.12.13", "@babel/runtime@^7.9.2": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a" integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw== dependencies: regenerator-runtime "^0.13.4" +"@babel/runtime@^7.17.2": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d" + integrity sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@^7.18.6": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.19.0.tgz#22b11c037b094d27a8a2504ea4dcff00f50e2259" @@ -2378,51 +2385,54 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.160.0": - version "6.160.0" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.160.0.tgz#cb246951c6d4d6a9e3758d6f404c42b149015201" - integrity sha512-ud0X2QzRDmMoi9Vl9JBfc8n3U8KWZEcU2/nBt0U8CZRN669245n/SNI95GjiSKNX6hw4rpvJgCzwVp/5l2lehA== +"@frontegg/js@6.162.0-alpha.0": + version "6.162.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.162.0-alpha.0.tgz#7d0b228d6870925b9b64190af2dfb8f7ba681108" + integrity sha512-vsadlDpHPa/dedKJ39vPCDyJLHyfrGtWVbA4xw7mjJoK4PDafAukwh/0kQESZv7w64IQKzYFJPXe6EYV7wdmpg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.160.0" + "@frontegg/types" "6.162.0-alpha.0" -"@frontegg/react-hooks@6.160.0": - version "6.160.0" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.160.0.tgz#f77819373667696a50371414e1dbd72bf44dcdb7" - integrity sha512-QcqAexzXsrNTbKuRNkT6c1+KtxE6jqXknGT1jVEP6TGXYg17zzolUi6glRfCv4Rp/Ia0AIEgVeH/ialu8BjhlQ== +"@frontegg/react-hooks@6.162.0-alpha.0": + version "6.162.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.162.0-alpha.0.tgz#77036efed0817f157e12d1d78055b6e78d39930e" + integrity sha512-d5wReLC0FKc9tGDEgYa7Sko6t6+7oxtlhw9qz+Eqd9r+5MtPwXALm7vMpbt6ZshhupoFi+x9SkzrDuYAoSI8RA== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.160.0" - "@frontegg/types" "6.160.0" + "@frontegg/redux-store" "6.162.0-alpha.0" + "@frontegg/types" "6.162.0-alpha.0" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.160.0": - version "6.160.0" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.160.0.tgz#7dc355d018abf9928e5250a2e9b20646fcb758ad" - integrity sha512-JLdQrvXDmWbXPuieGD2hIN78G2McPMHI4RxxC8rjAVbPpPk8zQ29cm47ayRJELfvMJW5S9QaecaR75TqS+h1fw== +"@frontegg/redux-store@6.162.0-alpha.0": + version "6.162.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.162.0-alpha.0.tgz#0ee03aff5324a2e4df33e012d81a4f69302abe1d" + integrity sha512-zDhCTAmaio6nYU4HAaW+LPuqhuQB8cpz7RK7R6vGJoaG587J4hG4OBvXxQgwMQUqDvmWHWSrp2UD8OkHK3S2Ig== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" - "@frontegg/rest-api" "3.1.48" + "@frontegg/rest-api" "3.1.53" "@reduxjs/toolkit" "1.8.5" fast-deep-equal "3.1.3" redux-saga "^1.2.1" uuid "^8.3.2" -"@frontegg/rest-api@3.1.48": - version "3.1.48" - resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.48.tgz#78947faa40dca6a7aac27928e7ef3a62a8f29159" - integrity sha512-/fcBufYuGL1zOeC9q2dGvXaNPxwff4Ppol7aHZDR3cYSTli6iaOAk+h1qNBTYWR3s20oRGMRR4UR8epROGyU/g== +"@frontegg/rest-api@3.1.53": + version "3.1.53" + resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.53.tgz#c45ac6daf8fae53c2332a71abdc4e705318da075" + integrity sha512-1UY+vaqgKNbjsK1w0aCw0bBju7ACNl34LsrFqK44F10AUzM+1u03tZNQfM/3JM0y9zlEpiwhap/SddrBGu1U6g== + dependencies: + "@babel/runtime" "^7.17.2" + "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.160.0": - version "6.160.0" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.160.0.tgz#0f202ee551447b3871dafc2dda3b520bea04a766" - integrity sha512-XIPCgyBE4krkr7Wsk8bEXrzz3F/rox5q9Na9ZdXUx1948qtjLI3NU5+DCYTrX3RS5LTh6RvJck3qVSndCwPUYA== +"@frontegg/types@6.162.0-alpha.0": + version "6.162.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.162.0-alpha.0.tgz#f672d9e14d24ec4429138364f19c0f7a7a61d127" + integrity sha512-xyGoynCy1ATDLdKZ1+9UyOgHAiD13l0R/eubPoMmbQyMQvanj4ZoaCEgDvdECbS5SxqdiK/zB+vbop3ocC465A== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.160.0" + "@frontegg/redux-store" "6.162.0-alpha.0" csstype "^3.0.9" deepmerge "^4.2.2" @@ -14665,6 +14675,11 @@ regenerator-runtime@^0.13.9: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== +regenerator-runtime@^0.14.0: + version "0.14.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" + integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== + regenerator-transform@^0.15.0: version "0.15.0" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" From 5b4a6b5686153d4d6340ff5251dccf3962533e20 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 10:56:06 +0200 Subject: [PATCH 02/16] HOC --- packages/react/rollup.config.js | 1 + packages/react/src/SteppedUpContent.tsx | 5 ++++- packages/react/src/index.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js index 612ed1be2..addd9a189 100644 --- a/packages/react/rollup.config.js +++ b/packages/react/rollup.config.js @@ -53,6 +53,7 @@ const isExternal = (id) => { id !== './FronteggProvider' && id !== './AlwaysRenderInProvider' && id !== './AuthorizedContent' && + id !== './SteppedUpContent' && id !== './sdkVersion' && id !== './routerProxy' && id !== './queryKeeper' && diff --git a/packages/react/src/SteppedUpContent.tsx b/packages/react/src/SteppedUpContent.tsx index c0103ad54..ccef8e75a 100644 --- a/packages/react/src/SteppedUpContent.tsx +++ b/packages/react/src/SteppedUpContent.tsx @@ -1,6 +1,6 @@ import React, { ReactNode, useEffect, useRef } from 'react'; -import { useStepUp, useIsSteppedUp } from '@frontegg/react'; +import { useStepUp, useIsSteppedUp, useIsAuthenticated } from '@frontegg/react-hooks'; export interface SteppedUpProps { maxAge?: number; @@ -16,6 +16,9 @@ export interface SteppedUpProps { * @param children to be shown when user is stepped up (only if render not provided) */ export const SteppedUpContent: React.FC = ({ maxAge, render, children }) => { + const isAuthenticated = useIsAuthenticated(); + if (!isAuthenticated) return null; + const isSteppedUp = useIsSteppedUp({ maxAge }); const stepUp = useStepUp(); const isStepUpCalled = useRef(false); diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index afaeed70b..9ccd82589 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -1,6 +1,7 @@ export * from './FronteggProvider'; export * from './AuthorizedContent'; export * from './CheckoutDialog'; +export * from './SteppedUpContent'; export { AdminPortal, CheckoutDialog, HostedLogin } from '@frontegg/js'; export * from '@frontegg/react-hooks'; From 57b50d8ee9b94ef5d2adc8a0481830c56e4d01fe Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 12:01:50 +0200 Subject: [PATCH 03/16] pr --- packages/react/src/SteppedUpContent.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/react/src/SteppedUpContent.tsx b/packages/react/src/SteppedUpContent.tsx index ccef8e75a..dc82cd872 100644 --- a/packages/react/src/SteppedUpContent.tsx +++ b/packages/react/src/SteppedUpContent.tsx @@ -11,14 +11,18 @@ export interface SteppedUpProps { /** * Stepped up content component that shows the wrapped content only when the user is stepped up * The component triggers the step up flow if the user is not stepped up - * @param maxAge maximum time in second that the login is valid - * @param render render function to be called when user is stepped up - * @param children to be shown when user is stepped up (only if render not provided) + * @param props.maxAge maximum time in second that the login is valid + * @param props.render render function to be called when user is stepped up + * @param props.children to be shown when user is stepped up (only if render not provided) */ -export const SteppedUpContent: React.FC = ({ maxAge, render, children }) => { +export const SteppedUpContent: React.FC = (props) => { const isAuthenticated = useIsAuthenticated(); if (!isAuthenticated) return null; + return ; +}; + +const SteppedUpContentInternal: React.FC = ({ maxAge, render, children }) => { const isSteppedUp = useIsSteppedUp({ maxAge }); const stepUp = useStepUp(); const isStepUpCalled = useRef(false); From ceb9ffa3defdc9bb758b3f3ba77bc7e6f1b19065 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 12:15:15 +0200 Subject: [PATCH 04/16] pr --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 8bd710a4a..cf8b23322 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2124,7 +2124,7 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.12.13", "@babel/runtime@^7.9.2": +"@babel/runtime@^7.12.13", "@babel/runtime@^7.17.2", "@babel/runtime@^7.9.2": version "7.18.9" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.9.tgz#b4fcfce55db3d2e5e080d2490f608a3b9f407f4a" integrity sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw== From c40a1e9c83a719825ceb9814135ea3657d7c5927 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 12:16:40 +0200 Subject: [PATCH 05/16] try --- yarn.lock | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/yarn.lock b/yarn.lock index cf8b23322..66dfa2b0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2131,13 +2131,6 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/runtime@^7.17.2": - version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d" - integrity sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ== - dependencies: - regenerator-runtime "^0.14.0" - "@babel/runtime@^7.18.6": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.19.0.tgz#22b11c037b094d27a8a2504ea4dcff00f50e2259" @@ -14675,11 +14668,6 @@ regenerator-runtime@^0.13.9: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - regenerator-transform@^0.15.0: version "0.15.0" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" From 1c07106ac278a88f26d6e46575211fcd5e00113d Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 14:24:38 +0200 Subject: [PATCH 06/16] bug fix --- packages/react/src/FronteggProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/FronteggProvider.tsx b/packages/react/src/FronteggProvider.tsx index 2f382d135..55d4c5047 100644 --- a/packages/react/src/FronteggProvider.tsx +++ b/packages/react/src/FronteggProvider.tsx @@ -32,7 +32,7 @@ export const ConnectorHistory: FC> = (props) => * @returns true when should bypass react router */ function isBypassReactRoute(path: string, routes?: Partial) { - const stepUpUrl = routes?.stepUpUrl; + const stepUpUrl = routes?.stepUpUrl || '/account/step-up'; return stepUpUrl && path.startsWith(stepUpUrl); } From c3259d9f6b07e983d142ce6fd50d48232fb7d768 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 17:52:42 +0200 Subject: [PATCH 07/16] with alpha js --- packages/react/package.json | 4 +-- yarn.lock | 50 ++++++++++++++++++------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 1bd0d5d19..3ebdccf04 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.164.0", - "@frontegg/react-hooks": "6.164.0" + "@frontegg/js": "6.165.0-alpha.6", + "@frontegg/react-hooks": "6.165.0-alpha.6" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 66dfa2b0f..bc6ace6d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,54 +2378,54 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.164.0": - version "6.164.0" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.164.0.tgz#49910a65c1ec1181a74a4f20c404ddf5a777aa45" - integrity sha512-6f7aV95ig1titWjiWzKBMrElLmyWQ0WFULZrjY2v7OSe21e4PEv5sVFWE8j/QsnX5yJ+HaUF/jvwlKv4rWcGdg== +"@frontegg/js@6.165.0-alpha.6": + version "6.165.0-alpha.6" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.6.tgz#6b34bd2539a1d3cfe794f73de86ac121c7344df8" + integrity sha512-U1qIwfoj+dGZlzVP2R26BL4FRI8DiKGQ9F/S7kXG+9F2p1nktP/tX/Vcd2mT2IgCyBeKT6WXIJNXATsOpLSXJQ== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.164.0" + "@frontegg/types" "6.165.0-alpha.6" -"@frontegg/react-hooks@6.164.0": - version "6.164.0" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.164.0.tgz#816cf5045f385d1773c180cc560f613657ee6c89" - integrity sha512-SUaUQ45xnGERZzm83yhhsDgXEM/icD7SLNrDbo1T4nzK7TD5P5Usp6gHBGopA02DRil9yd0vlbl5KW4ysYX23g== +"@frontegg/react-hooks@6.165.0-alpha.6": + version "6.165.0-alpha.6" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.6.tgz#cecaaeca6bd37cdcc6715ecb38f1e962dd358bdc" + integrity sha512-BhoaD+IEZyCOG2gRBx3C6TP6lBTK6r4ulH22sUQ4D+d6kJzg1+RVcyjUOJPYZe8v7Ivj10tPDJ5tI+2vKw7IOg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.164.0" - "@frontegg/types" "6.164.0" + "@frontegg/redux-store" "6.165.0-alpha.6" + "@frontegg/types" "6.165.0-alpha.6" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.164.0": - version "6.164.0" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.164.0.tgz#daa30e11ff027c67aab277fbb9c7f7193d229ab1" - integrity sha512-L2V4+zXu0cvFYXLDKDA6KilZKnR7qy9Pb3hH5LeUdidUYfVFREnIFXKtttlqan8UnWMK34+VgRqpNYoT0AzjKA== +"@frontegg/redux-store@6.165.0-alpha.6": + version "6.165.0-alpha.6" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.6.tgz#5fea20d2c9b18427052fa662915e0d14fd4a97f7" + integrity sha512-nZp6N4X6lYmyawPM8K18J8DxMfm64LOwIaJgjd1kQfwcHDbxCQzjdxdnhk45x7Y9EhEXPIsAN4LMw6NmktZNSw== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" - "@frontegg/rest-api" "3.1.53" + "@frontegg/rest-api" "3.1.55" "@reduxjs/toolkit" "1.8.5" fast-deep-equal "3.1.3" redux-saga "^1.2.1" uuid "^8.3.2" -"@frontegg/rest-api@3.1.53": - version "3.1.53" - resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.53.tgz#c45ac6daf8fae53c2332a71abdc4e705318da075" - integrity sha512-1UY+vaqgKNbjsK1w0aCw0bBju7ACNl34LsrFqK44F10AUzM+1u03tZNQfM/3JM0y9zlEpiwhap/SddrBGu1U6g== +"@frontegg/rest-api@3.1.55": + version "3.1.55" + resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.55.tgz#82fb55e20f83179a403071935176d3ad9a63c1a2" + integrity sha512-7KQgKB+b4SkVBkQtdTptOF2KF7fKwv8oxeAQv+LZqHISK39LgKa1zV4clZtPq04jVfYil6+pZwU8Vqw+E6z3sw== dependencies: "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.164.0": - version "6.164.0" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.164.0.tgz#6f7804e6b0a3a6aae902b1818247b012faf12073" - integrity sha512-esvTosH4mpg2bm1eF7sEICnzxTLvgrtIUVSl2Pa/JSns8rpNy83b9y5fbiOUEyaaMYmobDbVdvYozGSNr/+vRg== +"@frontegg/types@6.165.0-alpha.6": + version "6.165.0-alpha.6" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.6.tgz#a872fff1afc2a236b5b91c97c4053fa794fcec1d" + integrity sha512-sbWaopAsiMONL2KVfRGY9Lu7Ly86nfxXOYwswcWU6pbM+yuVMd+U6XcNVI+Xr7D66qSkHSzRRnV8RDSToGkgIw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.164.0" + "@frontegg/redux-store" "6.165.0-alpha.6" csstype "^3.0.9" deepmerge "^4.2.2" From 443047455910c87a532b3b9ad049e311f4b21f47 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 21:54:53 +0200 Subject: [PATCH 08/16] pr --- packages/react/src/SteppedUpContent.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/react/src/SteppedUpContent.tsx b/packages/react/src/SteppedUpContent.tsx index dc82cd872..edc469ed3 100644 --- a/packages/react/src/SteppedUpContent.tsx +++ b/packages/react/src/SteppedUpContent.tsx @@ -4,6 +4,7 @@ import { useStepUp, useIsSteppedUp, useIsAuthenticated } from '@frontegg/react-h export interface SteppedUpProps { maxAge?: number; + preventSteppingUp?: boolean; render?: (isSteppedUp: boolean) => React.ReactNode | null; children?: ReactNode; } @@ -12,8 +13,11 @@ export interface SteppedUpProps { * Stepped up content component that shows the wrapped content only when the user is stepped up * The component triggers the step up flow if the user is not stepped up * @param props.maxAge maximum time in second that the login is valid + * @param props.preventSteppingUp true when the step up flow should not be triggered automatically when the user is not stepped up, default to false * @param props.render render function to be called when user is stepped up * @param props.children to be shown when user is stepped up (only if render not provided) + * + * Pay attention, when shouldTriggerStepUp is true, two instances of SteppedUpContent can be rendered in the same page on the same render cycle. */ export const SteppedUpContent: React.FC = (props) => { const isAuthenticated = useIsAuthenticated(); @@ -22,7 +26,7 @@ export const SteppedUpContent: React.FC = (props) => { return ; }; -const SteppedUpContentInternal: React.FC = ({ maxAge, render, children }) => { +const SteppedUpContentInternal: React.FC = ({ maxAge, preventSteppingUp, render, children }) => { const isSteppedUp = useIsSteppedUp({ maxAge }); const stepUp = useStepUp(); const isStepUpCalled = useRef(false); @@ -35,9 +39,12 @@ const SteppedUpContentInternal: React.FC = ({ maxAge, render, ch if (isStepUpCalled.current) return; - stepUp({ maxAge }); + if (!preventSteppingUp) { + stepUp({ maxAge }); + } + isStepUpCalled.current = true; - }, [isSteppedUp, maxAge, stepUp]); + }, [isSteppedUp, maxAge, preventSteppingUp, stepUp]); if (typeof render === 'function') { return <>{render(isSteppedUp)}; From 11e610453d3f7defe899f0aad9dc6705113cdf24 Mon Sep 17 00:00:00 2001 From: doregg Date: Sun, 24 Dec 2023 21:59:29 +0200 Subject: [PATCH 09/16] pr --- packages/react/src/FronteggProvider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/FronteggProvider.tsx b/packages/react/src/FronteggProvider.tsx index 55d4c5047..af8959ed1 100644 --- a/packages/react/src/FronteggProvider.tsx +++ b/packages/react/src/FronteggProvider.tsx @@ -5,7 +5,7 @@ import { FronteggStoreProvider } from '@frontegg/react-hooks'; import { BrowserRouter, useHistory, UseHistory } from './routerProxy'; import { ContextHolder, RedirectOptions, FronteggFrameworks } from '@frontegg/rest-api'; import { AppHolder } from '@frontegg/js/AppHolder'; -import { isAuthRoute, AuthPageRoutes } from '@frontegg/redux-store'; +import { isAuthRoute, AuthPageRoutes, defaultFronteggRoutes } from '@frontegg/redux-store'; import sdkVersion from './sdkVersion'; import ReactPkg from 'react/package.json'; import { AlwaysRenderInProvider, HistoryObject } from './AlwaysRenderInProvider'; @@ -32,7 +32,7 @@ export const ConnectorHistory: FC> = (props) => * @returns true when should bypass react router */ function isBypassReactRoute(path: string, routes?: Partial) { - const stepUpUrl = routes?.stepUpUrl || '/account/step-up'; + const stepUpUrl = routes?.stepUpUrl || defaultFronteggRoutes.stepUpUrl; return stepUpUrl && path.startsWith(stepUpUrl); } From c036f2c89f6a81c68af0c808ea9712f31ef93c90 Mon Sep 17 00:00:00 2001 From: doregg Date: Mon, 25 Dec 2023 15:45:31 +0200 Subject: [PATCH 10/16] version --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 3ebdccf04..d3086bb58 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.6", - "@frontegg/react-hooks": "6.165.0-alpha.6" + "@frontegg/js": "6.165.0-alpha.7", + "@frontegg/react-hooks": "6.165.0-alpha.7" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index bc6ace6d9..4bb6a75f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.6": - version "6.165.0-alpha.6" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.6.tgz#6b34bd2539a1d3cfe794f73de86ac121c7344df8" - integrity sha512-U1qIwfoj+dGZlzVP2R26BL4FRI8DiKGQ9F/S7kXG+9F2p1nktP/tX/Vcd2mT2IgCyBeKT6WXIJNXATsOpLSXJQ== +"@frontegg/js@6.165.0-alpha.7": + version "6.165.0-alpha.7" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.7.tgz#d78f74dd0c49625d73ee20433907941f16c38ce4" + integrity sha512-GVZEDbRJcTnQWWF0O29kZzqHk/L6ZoxAVm0BUQsSTuZJAVEU4xBtyQ1UURshSqhDbvtq+B1YKhXt9sZLvNKprg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.6" + "@frontegg/types" "6.165.0-alpha.7" -"@frontegg/react-hooks@6.165.0-alpha.6": - version "6.165.0-alpha.6" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.6.tgz#cecaaeca6bd37cdcc6715ecb38f1e962dd358bdc" - integrity sha512-BhoaD+IEZyCOG2gRBx3C6TP6lBTK6r4ulH22sUQ4D+d6kJzg1+RVcyjUOJPYZe8v7Ivj10tPDJ5tI+2vKw7IOg== +"@frontegg/react-hooks@6.165.0-alpha.7": + version "6.165.0-alpha.7" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.7.tgz#6228a5daf7960474bba5277121004ebfccd54d2b" + integrity sha512-WTr3xJzyGrZg+cEw8ixwXhA//8YFNlRfDuoCfsMgdNwJyxbzGTXAXYp5kFBfUuTdb6+uPS17ufYVJwcdDqRmbg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.6" - "@frontegg/types" "6.165.0-alpha.6" + "@frontegg/redux-store" "6.165.0-alpha.7" + "@frontegg/types" "6.165.0-alpha.7" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.6": - version "6.165.0-alpha.6" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.6.tgz#5fea20d2c9b18427052fa662915e0d14fd4a97f7" - integrity sha512-nZp6N4X6lYmyawPM8K18J8DxMfm64LOwIaJgjd1kQfwcHDbxCQzjdxdnhk45x7Y9EhEXPIsAN4LMw6NmktZNSw== +"@frontegg/redux-store@6.165.0-alpha.7": + version "6.165.0-alpha.7" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.7.tgz#5452840881d485212eaddc87ee8def417f105cd1" + integrity sha512-ANdKtA7iNcrkYJ/6W+GYS4snK4028yOdz5KSfE68w81R/K5yGTpbFaji4suxE3arVylSk1IMYlduO29Jlwwyzg== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.6": - version "6.165.0-alpha.6" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.6.tgz#a872fff1afc2a236b5b91c97c4053fa794fcec1d" - integrity sha512-sbWaopAsiMONL2KVfRGY9Lu7Ly86nfxXOYwswcWU6pbM+yuVMd+U6XcNVI+Xr7D66qSkHSzRRnV8RDSToGkgIw== +"@frontegg/types@6.165.0-alpha.7": + version "6.165.0-alpha.7" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.7.tgz#944e1e8ec49d9ccf3ed3a17ee1f501e84fa828dc" + integrity sha512-ymDereh2DIFADRB1LYalwYBQk/6aMhYSv/k5Ijno3OJXoIV3/yGes4hT2Ihfd65zF94p/gesbYWWjUQnG1DTRw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.6" + "@frontegg/redux-store" "6.165.0-alpha.7" csstype "^3.0.9" deepmerge "^4.2.2" From 8452ad3475d963080ffc70aabf2fdfe84916f213 Mon Sep 17 00:00:00 2001 From: doregg Date: Mon, 25 Dec 2023 17:47:37 +0200 Subject: [PATCH 11/16] pr --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index d3086bb58..bdfbbec1a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.7", - "@frontegg/react-hooks": "6.165.0-alpha.7" + "@frontegg/js": "6.165.0-alpha.8", + "@frontegg/react-hooks": "6.165.0-alpha.8" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 4bb6a75f2..1638adba5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.7": - version "6.165.0-alpha.7" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.7.tgz#d78f74dd0c49625d73ee20433907941f16c38ce4" - integrity sha512-GVZEDbRJcTnQWWF0O29kZzqHk/L6ZoxAVm0BUQsSTuZJAVEU4xBtyQ1UURshSqhDbvtq+B1YKhXt9sZLvNKprg== +"@frontegg/js@6.165.0-alpha.8": + version "6.165.0-alpha.8" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.8.tgz#c648e2f5f80b496183fccccbedf52aca12be3a6b" + integrity sha512-Bi2oy0fo1jV/vYAyqIHi+PPG1D0K0UkkyKWWbgL7+ozhHtHX4eV3iKnAzQBFcooA22lypAuRJI0g5XsiBJvHXg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.7" + "@frontegg/types" "6.165.0-alpha.8" -"@frontegg/react-hooks@6.165.0-alpha.7": - version "6.165.0-alpha.7" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.7.tgz#6228a5daf7960474bba5277121004ebfccd54d2b" - integrity sha512-WTr3xJzyGrZg+cEw8ixwXhA//8YFNlRfDuoCfsMgdNwJyxbzGTXAXYp5kFBfUuTdb6+uPS17ufYVJwcdDqRmbg== +"@frontegg/react-hooks@6.165.0-alpha.8": + version "6.165.0-alpha.8" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.8.tgz#72bb14f73650aacb83c49fbe7f50ad80e116fdb2" + integrity sha512-sJ+wNg2+tcRCiX2g/eF+s8PEUUqjNLUD0ONdCJNC+cXHmatyzHf8eoL+S9b3zAAG3vB8kudwVVH44gpWntUOXg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.7" - "@frontegg/types" "6.165.0-alpha.7" + "@frontegg/redux-store" "6.165.0-alpha.8" + "@frontegg/types" "6.165.0-alpha.8" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.7": - version "6.165.0-alpha.7" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.7.tgz#5452840881d485212eaddc87ee8def417f105cd1" - integrity sha512-ANdKtA7iNcrkYJ/6W+GYS4snK4028yOdz5KSfE68w81R/K5yGTpbFaji4suxE3arVylSk1IMYlduO29Jlwwyzg== +"@frontegg/redux-store@6.165.0-alpha.8": + version "6.165.0-alpha.8" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.8.tgz#ec6e07456af10ab576a7587e99d8981baa7ceb3a" + integrity sha512-b2WiZ2CpDfTW189S6nrC9FVPVwKxVXsLoN0hR2qDIUMh29oW0o+WolzaIfgOrEH9rL0EGghhVoomOEvq6+KXrw== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.7": - version "6.165.0-alpha.7" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.7.tgz#944e1e8ec49d9ccf3ed3a17ee1f501e84fa828dc" - integrity sha512-ymDereh2DIFADRB1LYalwYBQk/6aMhYSv/k5Ijno3OJXoIV3/yGes4hT2Ihfd65zF94p/gesbYWWjUQnG1DTRw== +"@frontegg/types@6.165.0-alpha.8": + version "6.165.0-alpha.8" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.8.tgz#4e02aae203258dbb9a3d8650b81495a8f4ee26db" + integrity sha512-ydLvTDaORUZ/IHz0kUy+nF/1EfccG+l/+zgn8tmFHa1ws0eF42nHrwTFoUCEXrIEIiq+nSLeKZnPRMLUUJ8ONw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.7" + "@frontegg/redux-store" "6.165.0-alpha.8" csstype "^3.0.9" deepmerge "^4.2.2" From 79c6d6ffdab12196da61395c9572a9f98a13c381 Mon Sep 17 00:00:00 2001 From: doregg Date: Wed, 27 Dec 2023 17:45:49 +0200 Subject: [PATCH 12/16] upgrade version --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index bdfbbec1a..1bb4f76ec 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.8", - "@frontegg/react-hooks": "6.165.0-alpha.8" + "@frontegg/js": "6.165.0-alpha.11", + "@frontegg/react-hooks": "6.165.0-alpha.11" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 1638adba5..82b92dd4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.8": - version "6.165.0-alpha.8" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.8.tgz#c648e2f5f80b496183fccccbedf52aca12be3a6b" - integrity sha512-Bi2oy0fo1jV/vYAyqIHi+PPG1D0K0UkkyKWWbgL7+ozhHtHX4eV3iKnAzQBFcooA22lypAuRJI0g5XsiBJvHXg== +"@frontegg/js@6.165.0-alpha.11": + version "6.165.0-alpha.11" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.11.tgz#f65f04a4091e8d1e23df12ee0ccd3450b32f4b86" + integrity sha512-S0lE5qzxedl3cCNO3wWo9ahKWXRBiv6U23Omfhl4fOBhUqZFGau0W/50slIscVnZ7mioL6yU1noRjuP+aorX/A== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.8" + "@frontegg/types" "6.165.0-alpha.11" -"@frontegg/react-hooks@6.165.0-alpha.8": - version "6.165.0-alpha.8" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.8.tgz#72bb14f73650aacb83c49fbe7f50ad80e116fdb2" - integrity sha512-sJ+wNg2+tcRCiX2g/eF+s8PEUUqjNLUD0ONdCJNC+cXHmatyzHf8eoL+S9b3zAAG3vB8kudwVVH44gpWntUOXg== +"@frontegg/react-hooks@6.165.0-alpha.11": + version "6.165.0-alpha.11" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.11.tgz#3790a0aab3cb5d4272dbebbf43b8bc780a0fa619" + integrity sha512-G6sCQ2t7ZjRMFduPI2mBwRpTBtxu2SGIK+Gq9vl2mAegVbi7RSzc60pvYh61FEveHl+8i+PO25B3oSGse0+1gg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.8" - "@frontegg/types" "6.165.0-alpha.8" + "@frontegg/redux-store" "6.165.0-alpha.11" + "@frontegg/types" "6.165.0-alpha.11" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.8": - version "6.165.0-alpha.8" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.8.tgz#ec6e07456af10ab576a7587e99d8981baa7ceb3a" - integrity sha512-b2WiZ2CpDfTW189S6nrC9FVPVwKxVXsLoN0hR2qDIUMh29oW0o+WolzaIfgOrEH9rL0EGghhVoomOEvq6+KXrw== +"@frontegg/redux-store@6.165.0-alpha.11": + version "6.165.0-alpha.11" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.11.tgz#2ce6e44324fc02ed3cb5b123ae2f4d44246888b6" + integrity sha512-ZlFp95URnhW+stjIkYZ/R/ABbIXE74mMgU7Kt4tqbXscQDszbvnbqXzTJCbMvY/E+UJ7bNJu/ZmDYsCsAtJIYA== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.8": - version "6.165.0-alpha.8" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.8.tgz#4e02aae203258dbb9a3d8650b81495a8f4ee26db" - integrity sha512-ydLvTDaORUZ/IHz0kUy+nF/1EfccG+l/+zgn8tmFHa1ws0eF42nHrwTFoUCEXrIEIiq+nSLeKZnPRMLUUJ8ONw== +"@frontegg/types@6.165.0-alpha.11": + version "6.165.0-alpha.11" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.11.tgz#d6898119330038f2ae5f2df549c1fb75f27ab873" + integrity sha512-7q6tO4mR4G+2EILhC+RFEqv3DsW7vjYLJTDnJ9laBQweSBetcNqC5c3ooGqWjHV4zxhNCpvieQ4btiGMv3f2gg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.8" + "@frontegg/redux-store" "6.165.0-alpha.11" csstype "^3.0.9" deepmerge "^4.2.2" From ab8f3ceadc7df3bb9ce88a41cc68cb472f148736 Mon Sep 17 00:00:00 2001 From: doregg Date: Wed, 27 Dec 2023 18:09:41 +0200 Subject: [PATCH 13/16] version --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 1bb4f76ec..fe28da540 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.11", - "@frontegg/react-hooks": "6.165.0-alpha.11" + "@frontegg/js": "6.165.0-alpha.12", + "@frontegg/react-hooks": "6.165.0-alpha.12" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 82b92dd4a..72d249b82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.11": - version "6.165.0-alpha.11" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.11.tgz#f65f04a4091e8d1e23df12ee0ccd3450b32f4b86" - integrity sha512-S0lE5qzxedl3cCNO3wWo9ahKWXRBiv6U23Omfhl4fOBhUqZFGau0W/50slIscVnZ7mioL6yU1noRjuP+aorX/A== +"@frontegg/js@6.165.0-alpha.12": + version "6.165.0-alpha.12" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.12.tgz#0bdeb9d85779bec49f07e15558b92118669ab87b" + integrity sha512-5DvayYbA9O53H0M6/7m5Wr9yH7k1Q1S0JuMP+iDqvdq1MtlQAwoSohzq6jsLdlo72W4scRW2bnDSEt38V/uCkA== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.11" + "@frontegg/types" "6.165.0-alpha.12" -"@frontegg/react-hooks@6.165.0-alpha.11": - version "6.165.0-alpha.11" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.11.tgz#3790a0aab3cb5d4272dbebbf43b8bc780a0fa619" - integrity sha512-G6sCQ2t7ZjRMFduPI2mBwRpTBtxu2SGIK+Gq9vl2mAegVbi7RSzc60pvYh61FEveHl+8i+PO25B3oSGse0+1gg== +"@frontegg/react-hooks@6.165.0-alpha.12": + version "6.165.0-alpha.12" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.12.tgz#4ff92dc28f920a2568e0e61bf3e19f9db90e3d4b" + integrity sha512-2Rk4zZ3QsDCEHKlKT10FUn9uZ4oIxuDhLA6Ms7k1d/RRt9HY3g/wiymIQe+02ule3iJhBT8MszXZG2I1rpR+pw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.11" - "@frontegg/types" "6.165.0-alpha.11" + "@frontegg/redux-store" "6.165.0-alpha.12" + "@frontegg/types" "6.165.0-alpha.12" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.11": - version "6.165.0-alpha.11" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.11.tgz#2ce6e44324fc02ed3cb5b123ae2f4d44246888b6" - integrity sha512-ZlFp95URnhW+stjIkYZ/R/ABbIXE74mMgU7Kt4tqbXscQDszbvnbqXzTJCbMvY/E+UJ7bNJu/ZmDYsCsAtJIYA== +"@frontegg/redux-store@6.165.0-alpha.12": + version "6.165.0-alpha.12" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.12.tgz#6ddbf520597b039e44a89ef7c44f0d66a60beeef" + integrity sha512-n+7OGhdyP4FCvHK6Y7bJif9XcbiBvE9k3vAimUFY/tOuOgjEzRkQACrrD99KWt+42YFS8TcfNyQkaTJpsth9uw== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.11": - version "6.165.0-alpha.11" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.11.tgz#d6898119330038f2ae5f2df549c1fb75f27ab873" - integrity sha512-7q6tO4mR4G+2EILhC+RFEqv3DsW7vjYLJTDnJ9laBQweSBetcNqC5c3ooGqWjHV4zxhNCpvieQ4btiGMv3f2gg== +"@frontegg/types@6.165.0-alpha.12": + version "6.165.0-alpha.12" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.12.tgz#a4eff70fb6e2dab063fd08665d524f143ac689ad" + integrity sha512-jdMpNYSbG9+u42TFWXEoAJOP0dF/cGGsR3gXvEvWt71aJaGU1u9WlRPY5QJ0o6b2HKONPhJQf5+MmxwBEppfug== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.11" + "@frontegg/redux-store" "6.165.0-alpha.12" csstype "^3.0.9" deepmerge "^4.2.2" From e16d597d4e09d8142f7ec5a01159ff96f01f4029 Mon Sep 17 00:00:00 2001 From: doregg Date: Thu, 28 Dec 2023 08:50:29 +0200 Subject: [PATCH 14/16] version --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index fe28da540..2f5109aff 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.12", - "@frontegg/react-hooks": "6.165.0-alpha.12" + "@frontegg/js": "6.165.0-alpha.13", + "@frontegg/react-hooks": "6.165.0-alpha.13" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 72d249b82..397694272 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.12": - version "6.165.0-alpha.12" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.12.tgz#0bdeb9d85779bec49f07e15558b92118669ab87b" - integrity sha512-5DvayYbA9O53H0M6/7m5Wr9yH7k1Q1S0JuMP+iDqvdq1MtlQAwoSohzq6jsLdlo72W4scRW2bnDSEt38V/uCkA== +"@frontegg/js@6.165.0-alpha.13": + version "6.165.0-alpha.13" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.13.tgz#cf1825b299528f18640eceaef2456ae650dbc1fb" + integrity sha512-8bL5aIoAHQTyKkZfhh9gQMac/znFFkcgqt3dxlEtLTaqipI4EW0OJue1Ww3b+0lxkjFx2btSJfbPJYDYXDMAiw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.12" + "@frontegg/types" "6.165.0-alpha.13" -"@frontegg/react-hooks@6.165.0-alpha.12": - version "6.165.0-alpha.12" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.12.tgz#4ff92dc28f920a2568e0e61bf3e19f9db90e3d4b" - integrity sha512-2Rk4zZ3QsDCEHKlKT10FUn9uZ4oIxuDhLA6Ms7k1d/RRt9HY3g/wiymIQe+02ule3iJhBT8MszXZG2I1rpR+pw== +"@frontegg/react-hooks@6.165.0-alpha.13": + version "6.165.0-alpha.13" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.13.tgz#c9909b19007b0d1945d0d27e8cdceac7ae4ecf43" + integrity sha512-1t7x4j0Ugm8pvzkT8DBbATDa0vJTDpCJsKOWn//23D6x8NSXM/QYe1Tt+/ipCn3PIydWmLJmmPU6SJTYaaKuXg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.12" - "@frontegg/types" "6.165.0-alpha.12" + "@frontegg/redux-store" "6.165.0-alpha.13" + "@frontegg/types" "6.165.0-alpha.13" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.12": - version "6.165.0-alpha.12" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.12.tgz#6ddbf520597b039e44a89ef7c44f0d66a60beeef" - integrity sha512-n+7OGhdyP4FCvHK6Y7bJif9XcbiBvE9k3vAimUFY/tOuOgjEzRkQACrrD99KWt+42YFS8TcfNyQkaTJpsth9uw== +"@frontegg/redux-store@6.165.0-alpha.13": + version "6.165.0-alpha.13" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.13.tgz#7809974b005762eda0a10b578cc5a591df5440bf" + integrity sha512-3ut2+rZmzG/Bi4qSwULoXN3GTQDULnFOdIoUdNesFLN75sqQW4R0PaTrqqvWUtrdoYqPADq1NfeovTkxgPAFjQ== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.12": - version "6.165.0-alpha.12" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.12.tgz#a4eff70fb6e2dab063fd08665d524f143ac689ad" - integrity sha512-jdMpNYSbG9+u42TFWXEoAJOP0dF/cGGsR3gXvEvWt71aJaGU1u9WlRPY5QJ0o6b2HKONPhJQf5+MmxwBEppfug== +"@frontegg/types@6.165.0-alpha.13": + version "6.165.0-alpha.13" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.13.tgz#9ab6ff9b9dde2518cb7f0308e59f87a22748e3b6" + integrity sha512-wTBFw0RPLufgj7x0rU2QYUkMpM9FyqyGka9YGSQCLozR25oxKUmK1Un0adIxV1yU7sXHpBpViVpzYlIgQ4yDwA== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.12" + "@frontegg/redux-store" "6.165.0-alpha.13" csstype "^3.0.9" deepmerge "^4.2.2" From df3b8e80572c5a8794151d0dae09c60624e27645 Mon Sep 17 00:00:00 2001 From: doregg Date: Thu, 28 Dec 2023 17:12:16 +0200 Subject: [PATCH 15/16] pr --- packages/react/package.json | 4 +-- yarn.lock | 50 ++++++++++++++++++------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index 2f5109aff..c9433b5fe 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.165.0-alpha.13", - "@frontegg/react-hooks": "6.165.0-alpha.13" + "@frontegg/js": "6.166.0-alpha.0", + "@frontegg/react-hooks": "6.166.0-alpha.0" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index 397694272..a1aeb7dcb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,54 +2378,54 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.165.0-alpha.13": - version "6.165.0-alpha.13" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.165.0-alpha.13.tgz#cf1825b299528f18640eceaef2456ae650dbc1fb" - integrity sha512-8bL5aIoAHQTyKkZfhh9gQMac/znFFkcgqt3dxlEtLTaqipI4EW0OJue1Ww3b+0lxkjFx2btSJfbPJYDYXDMAiw== +"@frontegg/js@6.166.0-alpha.0": + version "6.166.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.166.0-alpha.0.tgz#32e8055c54f98b4c1c1a411341da8660515e8fe7" + integrity sha512-aCKnSBsdSRLgjC/Qp8ZlnGfQTqeTdrPVmvnCPDfT5oU9UQjutw3gQfYU3+u9WlTKprCAKobsqmx+wPVK3Bi7MA== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.165.0-alpha.13" + "@frontegg/types" "6.166.0-alpha.0" -"@frontegg/react-hooks@6.165.0-alpha.13": - version "6.165.0-alpha.13" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.165.0-alpha.13.tgz#c9909b19007b0d1945d0d27e8cdceac7ae4ecf43" - integrity sha512-1t7x4j0Ugm8pvzkT8DBbATDa0vJTDpCJsKOWn//23D6x8NSXM/QYe1Tt+/ipCn3PIydWmLJmmPU6SJTYaaKuXg== +"@frontegg/react-hooks@6.166.0-alpha.0": + version "6.166.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.166.0-alpha.0.tgz#0a8b4d79c85f3aacb5f03d9b84699e2db28c0ad3" + integrity sha512-YsT/X+KfLbVEjXiF0RPl4WzzCx8wRePAYwUKywkFpPifWBxYAwomfgFrzlJPJ+/RCqBb9Lsn3KY/GJsOaIBQOA== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.13" - "@frontegg/types" "6.165.0-alpha.13" + "@frontegg/redux-store" "6.166.0-alpha.0" + "@frontegg/types" "6.166.0-alpha.0" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.165.0-alpha.13": - version "6.165.0-alpha.13" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.165.0-alpha.13.tgz#7809974b005762eda0a10b578cc5a591df5440bf" - integrity sha512-3ut2+rZmzG/Bi4qSwULoXN3GTQDULnFOdIoUdNesFLN75sqQW4R0PaTrqqvWUtrdoYqPADq1NfeovTkxgPAFjQ== +"@frontegg/redux-store@6.166.0-alpha.0": + version "6.166.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.166.0-alpha.0.tgz#c7cbb0df43373ba3ab87676675f52239f717a8ff" + integrity sha512-xraRKXBX81z502SY2jpuJqQtdEkWzNxpNKdP9a+JEQ4KUC0sLRZYIlOvZtiwX/yIs3gPk8Pwn2UFuNsWC+A3qg== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" - "@frontegg/rest-api" "3.1.55" + "@frontegg/rest-api" "3.1.56" "@reduxjs/toolkit" "1.8.5" fast-deep-equal "3.1.3" redux-saga "^1.2.1" uuid "^8.3.2" -"@frontegg/rest-api@3.1.55": - version "3.1.55" - resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.55.tgz#82fb55e20f83179a403071935176d3ad9a63c1a2" - integrity sha512-7KQgKB+b4SkVBkQtdTptOF2KF7fKwv8oxeAQv+LZqHISK39LgKa1zV4clZtPq04jVfYil6+pZwU8Vqw+E6z3sw== +"@frontegg/rest-api@3.1.56": + version "3.1.56" + resolved "https://registry.yarnpkg.com/@frontegg/rest-api/-/rest-api-3.1.56.tgz#e03a23f48d2782257595ef0544fe9281d20be06e" + integrity sha512-Nu2alTWrBPEhy80v7HPRECXlbJOY80SitGh8GrA/lvf5CQ3L+HC6aSM7Cone3XaSNJt7Uopz3hJkkBUtiA08rg== dependencies: "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.165.0-alpha.13": - version "6.165.0-alpha.13" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.165.0-alpha.13.tgz#9ab6ff9b9dde2518cb7f0308e59f87a22748e3b6" - integrity sha512-wTBFw0RPLufgj7x0rU2QYUkMpM9FyqyGka9YGSQCLozR25oxKUmK1Un0adIxV1yU7sXHpBpViVpzYlIgQ4yDwA== +"@frontegg/types@6.166.0-alpha.0": + version "6.166.0-alpha.0" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.166.0-alpha.0.tgz#a36e949a30eb79eaa95aff820d52c6bc855193de" + integrity sha512-eSeHbg8vaAKJEF4BqV52t6FO/Nr1OHVXVojnrkq9PU/GW4VSmyO1+gvgvTK6cfPXXi5x2rRGshJMQQQS2OqE9A== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.165.0-alpha.13" + "@frontegg/redux-store" "6.166.0-alpha.0" csstype "^3.0.9" deepmerge "^4.2.2" From 2d9758efb2456fcfc9e7052e7e574e8f7ea816b5 Mon Sep 17 00:00:00 2001 From: doregg Date: Thu, 28 Dec 2023 18:29:20 +0200 Subject: [PATCH 16/16] pr --- packages/react/package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/react/package.json b/packages/react/package.json index c9433b5fe..a047574ce 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,8 +10,8 @@ "build:watch": "rm -rf dist && mkdir dist && rollup -w -c ./rollup.config.js" }, "dependencies": { - "@frontegg/js": "6.166.0-alpha.0", - "@frontegg/react-hooks": "6.166.0-alpha.0" + "@frontegg/js": "6.166.0-alpha.2", + "@frontegg/react-hooks": "6.166.0-alpha.2" }, "peerDependencies": { "react": ">16.9.0", diff --git a/yarn.lock b/yarn.lock index a1aeb7dcb..a6bc1f94c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2378,30 +2378,30 @@ resolved "https://registry.yarnpkg.com/@frontegg/entitlements-javascript-commons/-/entitlements-javascript-commons-1.0.1.tgz#038a5b86166bd00cfd3afa942de361434c34ea04" integrity sha512-Ny9M9wLcA6/p9OD09plK3ETy5zyTWpgFoIorAYYYxk4J3S6ardsUOai2MlBmXqbG9J1uxD66rdFF5qr4bwqgyw== -"@frontegg/js@6.166.0-alpha.0": - version "6.166.0-alpha.0" - resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.166.0-alpha.0.tgz#32e8055c54f98b4c1c1a411341da8660515e8fe7" - integrity sha512-aCKnSBsdSRLgjC/Qp8ZlnGfQTqeTdrPVmvnCPDfT5oU9UQjutw3gQfYU3+u9WlTKprCAKobsqmx+wPVK3Bi7MA== +"@frontegg/js@6.166.0-alpha.2": + version "6.166.0-alpha.2" + resolved "https://registry.yarnpkg.com/@frontegg/js/-/js-6.166.0-alpha.2.tgz#5dbc6fe00e8ab20d8ccdaf8fe9915fed71c35f84" + integrity sha512-qozSMF3pHNU1Wv2v5sSFJTd8F3XXL1r8EIU7cfvi34mVEHIcisyxQzBfMN2gwmOX5tmcQrIbn9f+I2U1/+FAaw== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/types" "6.166.0-alpha.0" + "@frontegg/types" "6.166.0-alpha.2" -"@frontegg/react-hooks@6.166.0-alpha.0": - version "6.166.0-alpha.0" - resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.166.0-alpha.0.tgz#0a8b4d79c85f3aacb5f03d9b84699e2db28c0ad3" - integrity sha512-YsT/X+KfLbVEjXiF0RPl4WzzCx8wRePAYwUKywkFpPifWBxYAwomfgFrzlJPJ+/RCqBb9Lsn3KY/GJsOaIBQOA== +"@frontegg/react-hooks@6.166.0-alpha.2": + version "6.166.0-alpha.2" + resolved "https://registry.yarnpkg.com/@frontegg/react-hooks/-/react-hooks-6.166.0-alpha.2.tgz#dbb0811119e81cc775ea45d27bfbc5d126d2d6ca" + integrity sha512-35smKZuiMbxMJAVvxDJMFpxk7UPPMxBMMK+W2LltJ6/7F2VLkRUSuUIZkzyj77EvjofsB4fQ79aggWsyVTfW2g== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.166.0-alpha.0" - "@frontegg/types" "6.166.0-alpha.0" + "@frontegg/redux-store" "6.166.0-alpha.2" + "@frontegg/types" "6.166.0-alpha.2" "@types/react" "*" get-value "^3.0.1" react-redux "^7.x" -"@frontegg/redux-store@6.166.0-alpha.0": - version "6.166.0-alpha.0" - resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.166.0-alpha.0.tgz#c7cbb0df43373ba3ab87676675f52239f717a8ff" - integrity sha512-xraRKXBX81z502SY2jpuJqQtdEkWzNxpNKdP9a+JEQ4KUC0sLRZYIlOvZtiwX/yIs3gPk8Pwn2UFuNsWC+A3qg== +"@frontegg/redux-store@6.166.0-alpha.2": + version "6.166.0-alpha.2" + resolved "https://registry.yarnpkg.com/@frontegg/redux-store/-/redux-store-6.166.0-alpha.2.tgz#4e59fa7a0d636d32ef6cae7133387276681dcf2e" + integrity sha512-D+OLhrKyR/FuCH3/H27UcNZdA2ycidKJVZaJT/+pqgGgiJjf8QHNfLJ61fl933xKd66sardFT+278VAYkAd+FQ== dependencies: "@babel/runtime" "^7.18.6" "@frontegg/entitlements-javascript-commons" "1.0.1" @@ -2419,13 +2419,13 @@ "@babel/runtime" "^7.17.2" "@frontegg/entitlements-javascript-commons" "1.0.1" -"@frontegg/types@6.166.0-alpha.0": - version "6.166.0-alpha.0" - resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.166.0-alpha.0.tgz#a36e949a30eb79eaa95aff820d52c6bc855193de" - integrity sha512-eSeHbg8vaAKJEF4BqV52t6FO/Nr1OHVXVojnrkq9PU/GW4VSmyO1+gvgvTK6cfPXXi5x2rRGshJMQQQS2OqE9A== +"@frontegg/types@6.166.0-alpha.2": + version "6.166.0-alpha.2" + resolved "https://registry.yarnpkg.com/@frontegg/types/-/types-6.166.0-alpha.2.tgz#04f85b107a69cb9159b10eb8a6b2096ca07e5012" + integrity sha512-kQhDpJ8i1gLCpJ7UzywpM4mQQZe1oTxbPtbPRvLRK44ATw9zRjCyEEU0wRGW2u72Gv9lGoPeO7r277XgREboNg== dependencies: "@babel/runtime" "^7.18.6" - "@frontegg/redux-store" "6.166.0-alpha.0" + "@frontegg/redux-store" "6.166.0-alpha.2" csstype "^3.0.9" deepmerge "^4.2.2"