From 21bbbfe71688fcf6ddc4e3c7242e0b89fe9e56a6 Mon Sep 17 00:00:00 2001 From: garronej Date: Sat, 4 Mar 2023 17:58:09 +0100 Subject: [PATCH] Acutally implement a login in the demo app --- package.json | 10 +- public/silent-sso.html | 7 + src/App/App.tsx | 52 +++++ src/App/oidc.tsx | 206 ++++++++++++++++++ src/keycloak-theme/KcApp.tsx | 3 + .../valuesTransferredOverUrl.ts | 123 +++++++++++ yarn.lock | 146 +++++++++++++ 7 files changed, 545 insertions(+), 2 deletions(-) create mode 100644 public/silent-sso.html create mode 100644 src/App/oidc.tsx create mode 100644 src/keycloak-theme/valuesTransferredOverUrl.ts diff --git a/package.json b/package.json index 8855b1f..51be40f 100755 --- a/package.json +++ b/package.json @@ -23,10 +23,14 @@ "license": "MIT", "keywords": [], "dependencies": { + "evt": "^2.4.1", + "jwt-decode": "^3.1.2", + "keycloak-js": "^21.0.1", "keycloakify": "^6.12.1", + "powerhooks": "^0.26.2", "react": "18.1.0", "react-dom": "18.1.0", - "evt": "^2.4.1" + "tsafe": "^1.4.3" }, "devDependencies": { "@types/node": "^15.3.1", @@ -41,7 +45,9 @@ "react-app/jest" ], "rules": { - "react-hooks/exhaustive-deps": "off" + "react-hooks/exhaustive-deps": "off", + "@typescript-eslint/no-redeclare": "off", + "no-labels": "off" } }, "browserslist": { diff --git a/public/silent-sso.html b/public/silent-sso.html new file mode 100644 index 0000000..2bf0c57 --- /dev/null +++ b/public/silent-sso.html @@ -0,0 +1,7 @@ + + + + + diff --git a/src/App/App.tsx b/src/App/App.tsx index 0d3ecfe..08b165f 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -1,11 +1,63 @@ import "./App.css"; import logo from "./logo.svg"; import myimg from "./myimg.png"; +import { createOidcClientProvider, useOidcClient } from "./oidc"; +import { addFooToQueryParams, addBarToQueryParams } from "../keycloak-theme/valuesTransferredOverUrl"; +import { Evt } from "evt"; +import { id } from "tsafe/id"; +import jwt_decode from "jwt-decode"; + +const { OidcClientProvider } = createOidcClientProvider({ + url: "https://auth.code.gouv.fr/auth", + realm: "keycloakify", + clientId: "starter", + log: console.log, + //The login pages will be in english. + getUiLocales: () => "en", + transformUrlBeforeRedirect: url => + [url] + //Instead of foo and bar you could have isDark for example or any other state that you wish to + //transfer from the main app to the login pages. + .map(url => addFooToQueryParams({ url, value: { foo: 42 } })) + .map(url => addBarToQueryParams({ url, "value": "value of bar transferred to login page" })) + [0], + // An event emitter that posts whenever the user interacts with the app + // This is to tell if we should allow the token to expires. + evtUserActivity: + Evt.merge([ + Evt.from(document, "mousemove"), + Evt.from(document, "keydown") + ]).pipe(() => [id(undefined)]), +}); export default function App() { + return ( + + + + ); + +} + +function ContextualizedApp() { + + const { oidcClient } = useOidcClient(); + return (
+ { + oidcClient.isUserLoggedIn ? + <> +

You are authenticated

+
{JSON.stringify(jwt_decode(oidcClient.accessToken))}
+ + + : + <> + + + } logo test_image

Hello world

diff --git a/src/App/oidc.tsx b/src/App/oidc.tsx new file mode 100644 index 0000000..036437e --- /dev/null +++ b/src/App/oidc.tsx @@ -0,0 +1,206 @@ +import { useState, useContext, createContext, useEffect } from "react"; +import keycloak_js from "keycloak-js"; +import { id } from "tsafe/id"; +import { addParamToUrl } from "powerhooks/tools/urlSearchParams"; +import type { ReturnType } from "tsafe/ReturnType"; +import type { Param0 } from "tsafe/Param0"; +import { assert } from "tsafe/assert"; +import { createKeycloakAdapter } from "keycloakify"; +import type { NonPostableEvt } from "evt"; +import jwt_decode from "jwt-decode"; + +export declare type OidcClient = OidcClient.LoggedIn | OidcClient.NotLoggedIn; + +export declare namespace OidcClient { + export type NotLoggedIn = { + isUserLoggedIn: false; + login: (params: { + //To prevent infinite loop if the user click login then cancel. + doesCurrentHrefRequiresAuth: boolean; + }) => Promise; + }; + + export type LoggedIn = { + isUserLoggedIn: true; + //NOTE: It changes when renewed, don't store it. + accessToken: string; + logout: (params: { redirectTo: "home" | "current page" }) => Promise; + updateTokenInfo: () => Promise; + }; +} + +type Params = { + url: string; + realm: string; + clientId: string; + transformUrlBeforeRedirect: (url: string) => string; + evtUserActivity: NonPostableEvt; + getUiLocales: () => string; + log?: typeof console.log; +}; + +async function createKeycloakOidcClient(params: Params): Promise { + const { + url, + realm, + clientId, + transformUrlBeforeRedirect, + evtUserActivity, + getUiLocales, + log + } = params; + + const keycloakInstance = keycloak_js({ url, realm, clientId }); + + let redirectMethod: ReturnType< + Param0["getRedirectMethod"] + > = "overwrite location.href"; + + const isAuthenticated = await keycloakInstance + .init({ + "onLoad": "check-sso", + "silentCheckSsoRedirectUri": `${window.location.origin}/silent-sso.html`, + "responseMode": "query", + "checkLoginIframe": false, + "adapter": createKeycloakAdapter({ + "transformUrlBeforeRedirect": url => + [url].map(transformUrlBeforeRedirect).map( + url => + addParamToUrl({ + url, + "name": "ui_locales", + "value": getUiLocales() + }).newUrl + )[0], + keycloakInstance, + "getRedirectMethod": () => redirectMethod + }) + }) + .catch((error: Error) => error); + + //TODO: Make sure that result is always an object. + if (isAuthenticated instanceof Error) { + throw isAuthenticated; + } + + const login: OidcClient.NotLoggedIn["login"] = async ({ + doesCurrentHrefRequiresAuth + }) => { + if (doesCurrentHrefRequiresAuth) { + redirectMethod = "location.replace"; + } + + await keycloakInstance.login({ "redirectUri": window.location.href }); + + return new Promise(() => { }); + }; + + if (!isAuthenticated) { + return id({ + "isUserLoggedIn": false, + login + }); + } + + const oidcClient = id({ + "isUserLoggedIn": true, + "accessToken": keycloakInstance.token!, + "logout": async ({ redirectTo }) => { + await keycloakInstance.logout({ + "redirectUri": (() => { + switch (redirectTo) { + case "current page": + return window.location.href; + case "home": + return window.location.origin; + } + })() + }); + + return new Promise(() => { }); + }, + "updateTokenInfo": async () => { + await keycloakInstance.updateToken(-1); + + oidcClient.accessToken = keycloakInstance.token!; + } + }); + + (function callee() { + const msBeforeExpiration = + jwt_decode<{ exp: number }>(oidcClient.accessToken)["exp"] * 1000 - Date.now(); + + setTimeout(async () => { + log?.( + `OIDC access token will expire in ${minValiditySecond} seconds, waiting for user activity before renewing` + ); + + await evtUserActivity.waitFor(); + + log?.("User activity detected. Refreshing access token now"); + + const error = await keycloakInstance.updateToken(-1).then( + () => undefined, + (error: Error) => error + ); + + if (error) { + log?.("Can't refresh OIDC access token, getting a new one"); + //NOTE: Never resolves + await login({ "doesCurrentHrefRequiresAuth": true }); + } + + oidcClient.accessToken = keycloakInstance.token!; + + callee(); + }, msBeforeExpiration - minValiditySecond * 1000); + })(); + + return oidcClient; +} + +const minValiditySecond = 25; + + +const oidcClientContext = createContext(undefined); + +export function createOidcClientProvider(params: Params) { + + + const prOidcClient = createKeycloakOidcClient(params); + + function OidcClientProvider(props: { children: React.ReactNode; }) { + + const { children } = props; + + const [oidcClient, setOidcClient] = useState(undefined); + + useEffect(() => { + + prOidcClient.then(setOidcClient); + + }, []); + + if (oidcClient === undefined) { + return null; + } + + return ( + + {children} + + ); + + } + + + + return { OidcClientProvider }; + +} + +export function useOidcClient() { + const oidcClient = useContext(oidcClientContext); + assert(oidcClient !== undefined); + return { oidcClient }; +} diff --git a/src/keycloak-theme/KcApp.tsx b/src/keycloak-theme/KcApp.tsx index de1f801..9bf5323 100644 --- a/src/keycloak-theme/KcApp.tsx +++ b/src/keycloak-theme/KcApp.tsx @@ -5,6 +5,9 @@ import { useI18n } from "./i18n"; import Fallback, { defaultKcProps, type KcProps, type PageProps } from "keycloakify"; import Template from "./Template"; import DefaultTemplate from "keycloakify/lib/Template"; +import { foo, bar } from "./valuesTransferredOverUrl"; + +console.log(`Values passed by the main app in the URL parameter:`, { foo, bar }); const Login = lazy(()=> import("./pages/Login")); // If you can, favor register-user-profile.ftl over register.ftl, see: https://docs.keycloakify.dev/realtime-input-validation diff --git a/src/keycloak-theme/valuesTransferredOverUrl.ts b/src/keycloak-theme/valuesTransferredOverUrl.ts new file mode 100644 index 0000000..18dd4f9 --- /dev/null +++ b/src/keycloak-theme/valuesTransferredOverUrl.ts @@ -0,0 +1,123 @@ +import { kcContext } from "./kcContext"; +import { + retrieveParamFromUrl, + addParamToUrl, + updateSearchBarUrl +} from "powerhooks/tools/urlSearchParams"; +import { capitalize } from "tsafe/capitalize"; + +export const { foo, addFooToQueryParams } = (() => { + const queryParamName = "foo"; + + type Type = { foo: number; }; + + const value = (()=> { + + const unparsedValue = read({ queryParamName }); + + if( unparsedValue === undefined ){ + return undefined; + } + + return JSON.parse(unparsedValue) as Type; + + })(); + + function addToUrlQueryParams(params: { + url: string; + value: Type; + }): string { + const { url, value } = params; + + return addParamToUrl({ + url, + "name": queryParamName, + "value": JSON.stringify(value) + }).newUrl; + } + + const out = { + [queryParamName]: value, + [`add${capitalize(queryParamName)}ToQueryParams` as const]: addToUrlQueryParams + } as const; + + return out; +})(); + +export const { bar, addBarToQueryParams } = (() => { + const queryParamName = "bar"; + + type Type = string; + + const value = (()=> { + + const unparsedValue = read({ queryParamName }); + + if( unparsedValue === undefined ){ + return undefined; + } + + return JSON.parse(unparsedValue) as Type; + + })(); + + function addToUrlQueryParams(params: { + url: string; + value: Type; + }): string { + const { url, value } = params; + + return addParamToUrl({ + url, + "name": queryParamName, + "value": JSON.stringify(value) + }).newUrl; + } + + const out = { + [queryParamName]: value, + [`add${capitalize(queryParamName)}ToQueryParams` as const]: addToUrlQueryParams + } as const; + + return out; +})(); + + +function read(params: { queryParamName: string }): string | undefined { + if (kcContext === undefined || process.env.NODE_ENV !== "production") { + //NOTE: We do something only if we are really in Keycloak + return undefined; + } + + const { queryParamName } = params; + + read_from_url: { + const result = retrieveParamFromUrl({ + "url": window.location.href, + "name": queryParamName + }); + + if (!result.wasPresent) { + break read_from_url; + } + + const { newUrl, value: serializedValue } = result; + + updateSearchBarUrl(newUrl); + + localStorage.setItem(queryParamName, serializedValue); + + return serializedValue; + } + + //Reading from local storage + const serializedValue = localStorage.getItem(queryParamName); + + if (serializedValue === null) { + throw new Error( + `Missing ${queryParamName} in URL when redirecting to login page` + ); + } + + return serializedValue; +} diff --git a/yarn.lock b/yarn.lock index 2f5cd0b..c3f8fcf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2793,6 +2793,11 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== +base64-js@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + batch@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" @@ -3520,6 +3525,14 @@ csstype@^3.0.2: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.0.tgz#4ddcac3718d787cf9df0d1b7d15033925c8f29f2" integrity sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA== +d@1, d@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a" + integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA== + dependencies: + es5-ext "^0.10.50" + type "^1.0.1" + damerau-levenshtein@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" @@ -3947,6 +3960,42 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +es5-ext@^0.10.35, es5-ext@^0.10.46, es5-ext@^0.10.50, es5-ext@^0.10.53, es5-ext@~0.10.14, es5-ext@~0.10.2, es5-ext@~0.10.46: + version "0.10.62" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.62.tgz#5e6adc19a6da524bf3d1e02bbc8960e5eb49a9a5" + integrity sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA== + dependencies: + es6-iterator "^2.0.3" + es6-symbol "^3.1.3" + next-tick "^1.1.0" + +es6-iterator@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7" + integrity sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g== + dependencies: + d "1" + es5-ext "^0.10.35" + es6-symbol "^3.1.1" + +es6-symbol@^3.1.1, es6-symbol@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18" + integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA== + dependencies: + d "^1.0.1" + ext "^1.1.2" + +es6-weak-map@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.3.tgz#b6da1f16cc2cc0d9be43e6bdbfc5e7dfcdf31d53" + integrity sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA== + dependencies: + d "1" + es5-ext "^0.10.46" + es6-iterator "^2.0.3" + es6-symbol "^3.1.1" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -4247,6 +4296,14 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== +event-emitter@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + integrity sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA== + dependencies: + d "1" + es5-ext "~0.10.14" + eventemitter3@^4.0.0: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" @@ -4342,6 +4399,13 @@ express@^4.17.3: utils-merge "1.0.1" vary "~1.1.2" +ext@^1.1.2: + version "1.7.0" + resolved "https://registry.yarnpkg.com/ext/-/ext-1.7.0.tgz#0ea4383c0103d60e70be99e9a7f11027a33c4f5f" + integrity sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw== + dependencies: + type "^2.7.2" + extend@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" @@ -5196,6 +5260,11 @@ is-potential-custom-element-name@^1.0.1: resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== +is-promise@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1" + integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ== + is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -5803,6 +5872,11 @@ jest@^27.4.3: import-local "^3.0.2" jest-cli "^27.5.1" +js-sha256@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.9.0.tgz#0b89ac166583e91ef9123644bd3c5334ce9d0966" + integrity sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -5925,6 +5999,19 @@ jsonpointer@^5.0.0: array-includes "^3.1.5" object.assign "^4.1.2" +jwt-decode@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59" + integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A== + +keycloak-js@^21.0.1: + version "21.0.1" + resolved "https://registry.yarnpkg.com/keycloak-js/-/keycloak-js-21.0.1.tgz#4893d43597b5b6e36b80dc4f7ef4119e64967221" + integrity sha512-ot0KW4qyDHl5AyDZNV0CkEkuvIZi+37y3BReNvqqfag7wqJeV13R/PcgECvbbd05+0NSOQjhBL8S+a4A++vNQw== + dependencies: + base64-js "^1.5.1" + js-sha256 "^0.9.0" + keycloakify@^6.12.1: version "6.12.1" resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-6.12.1.tgz#50b5a0d75dc0d31d8dddcba9b695a5afdb9a6a9e" @@ -6105,6 +6192,13 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" +lru-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/lru-queue/-/lru-queue-0.1.0.tgz#2738bd9f0d3cf4f84490c5736c48699ac632cda3" + integrity sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ== + dependencies: + es5-ext "~0.10.2" + magic-string@^0.25.0, magic-string@^0.25.7: version "0.25.9" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" @@ -6171,6 +6265,20 @@ memfs@^3.1.2, memfs@^3.4.3: dependencies: fs-monkey "^1.0.3" +memoizee@^0.4.15: + version "0.4.15" + resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.15.tgz#e6f3d2da863f318d02225391829a6c5956555b72" + integrity sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ== + dependencies: + d "^1.0.1" + es5-ext "^0.10.53" + es6-weak-map "^2.0.3" + event-emitter "^0.3.5" + is-promise "^2.2.2" + lru-queue "^0.1.0" + next-tick "^1.1.0" + timers-ext "^0.1.7" + merge-descriptors@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" @@ -6327,6 +6435,11 @@ neo-async@^2.6.2: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== +next-tick@1, next-tick@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb" + integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== + no-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" @@ -7308,6 +7421,16 @@ postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.4, postcss@^8.4.7: picocolors "^1.0.0" source-map-js "^1.0.2" +powerhooks@^0.26.2: + version "0.26.2" + resolved "https://registry.yarnpkg.com/powerhooks/-/powerhooks-0.26.2.tgz#020056e8b35c5959bf7b28c47a1015cfafd81412" + integrity sha512-NOHpRXMCnPxjvQMt0rEtPjHrid+wEh567+xY6OR3sdy+XKA2TI0T3o+KlDcFxtixTvz/kO4/Ok430Dip9D/5TQ== + dependencies: + evt "^2.4.13" + memoizee "^0.4.15" + resize-observer-polyfill "^1.5.1" + tsafe "^1.4.3" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -7749,6 +7872,11 @@ requires-port@^1.0.0: resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== +resize-observer-polyfill@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" + integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== + resolve-cwd@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" @@ -8517,6 +8645,14 @@ thunky@^1.0.2: resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== +timers-ext@^0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.7.tgz#6f57ad8578e07a3fb9f91d9387d65647555e25c6" + integrity sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ== + dependencies: + es5-ext "~0.10.46" + next-tick "1" + tmpl@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" @@ -8661,6 +8797,16 @@ type-is@~1.6.18: media-typer "0.3.0" mime-types "~2.1.24" +type@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0" + integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg== + +type@^2.7.2: + version "2.7.2" + resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" + integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== + typedarray-to-buffer@^3.1.5: version "3.1.5" resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"