From 2f291847b08440c6da63351a0cfec482682170ae Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 24 Jan 2022 14:39:27 -0300 Subject: [PATCH] fixing import to anastasis-core --- .../src/components/menu/SideBar.tsx | 2 +- .../src/hooks/use-anastasis-reducer.ts | 2 +- .../home/AddingProviderScreen.stories.tsx | 2 +- .../src/pages/home/AddingProviderScreen.tsx | 2 +- .../home/AttributeEntryScreen.stories.tsx | 2 +- .../src/pages/home/AttributeEntryScreen.tsx | 20 ++++----- .../AuthenticationEditorScreen.stories.tsx | 2 +- .../pages/home/AuthenticationEditorScreen.tsx | 8 ++-- .../home/BackupFinishedScreen.stories.tsx | 2 +- .../src/pages/home/BackupFinishedScreen.tsx | 16 ++++---- .../home/ChallengeOverviewScreen.stories.tsx | 2 +- .../pages/home/ChallengeOverviewScreen.tsx | 5 ++- .../home/ContinentSelectionScreen.stories.tsx | 2 +- .../pages/home/ContinentSelectionScreen.tsx | 2 +- .../pages/home/EditPoliciesScreen.stories.tsx | 2 +- .../src/pages/home/EditPoliciesScreen.tsx | 2 +- .../home/PoliciesPayingScreen.stories.tsx | 2 +- .../home/RecoveryFinishedScreen.stories.tsx | 2 +- .../home/ReviewPoliciesScreen.stories.tsx | 2 +- .../src/pages/home/ReviewPoliciesScreen.tsx | 2 +- .../pages/home/SecretEditorScreen.stories.tsx | 2 +- .../home/SecretSelectionScreen.stories.tsx | 2 +- .../src/pages/home/SecretSelectionScreen.tsx | 41 +++++++++++-------- .../src/pages/home/SolveScreen.stories.tsx | 2 +- .../src/pages/home/SolveScreen.tsx | 2 +- .../pages/home/TruthsPayingScreen.stories.tsx | 2 +- .../AuthMethodEmailSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodEmailSolve.tsx | 5 ++- .../AuthMethodIbanSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodIbanSolve.tsx | 5 ++- .../AuthMethodPostSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodPostSolve.tsx | 5 ++- .../AuthMethodQuestionSolve.stories.tsx | 5 ++- .../authMethod/AuthMethodQuestionSolve.tsx | 5 ++- .../authMethod/AuthMethodSmsSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodSmsSolve.tsx | 5 ++- .../AuthMethodTotpSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodTotpSolve.tsx | 5 ++- .../AuthMethodVideoSolve.stories.tsx | 5 ++- .../home/authMethod/AuthMethodVideoSolve.tsx | 5 ++- .../src/pages/home/authMethod/index.tsx | 2 +- .../anastasis-webui/src/pages/home/index.tsx | 2 +- packages/anastasis-webui/src/utils/index.tsx | 6 ++- 43 files changed, 137 insertions(+), 75 deletions(-) diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 6c8189fb9..023b2b63c 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -20,7 +20,7 @@ */ import { Fragment, h, VNode } from "preact"; -import { BackupStates, RecoveryStates } from "../../../../anastasis-core/lib"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { useAnastasisContext } from "../../context/anastasis"; import { Translate } from "../../i18n"; import { LangSelector } from "./LangSelector"; diff --git a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts index 7b101baa0..b18610427 100644 --- a/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts +++ b/packages/anastasis-webui/src/hooks/use-anastasis-reducer.ts @@ -6,7 +6,7 @@ import { RecoveryStates, reduceAction, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { useState } from "preact/hooks"; const reducerBaseUrl = "http://localhost:5000/"; diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx index 9b067127d..e26ba706f 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { AddingProviderScreen as TestedComponent } from "./AddingProviderScreen"; diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx index 96b38e92d..d85aa5974 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useEffect, useRef, useState } from "preact/hooks"; import { TextInput } from "../../components/fields/TextInput"; diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx index d48e94403..e61b13279 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { AttributeEntryScreen as TestedComponent } from "./AttributeEntryScreen"; diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx index c3c5d764b..1d5896e4d 100644 --- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx @@ -1,4 +1,4 @@ -import { UserAttributeSpec, validators } from "anastasis-core"; +import { UserAttributeSpec, validators } from "@gnu-taler/anastasis-core"; import { isAfter, parse } from "date-fns"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; @@ -47,7 +47,7 @@ export function AttributeEntryScreen(): VNode { errorMessage={error} onConfirm={() => { if (!hasErrors) { - setAskUserIfSure(true) + setAskUserIfSure(true); } }} value={value} @@ -65,7 +65,7 @@ export function AttributeEntryScreen(): VNode { isBackup ? setAskUserIfSure(true) : doConfirm() } + onNext={async () => (isBackup ? setAskUserIfSure(true) : doConfirm())} > {askUserIfSure ? ( doConfirm().then(() => setAskUserIfSure(false) )} + onConfirm={() => doConfirm().then(() => setAskUserIfSure(false))} > - You personal information is used to define the location where your - secret will be safely stored. If you forget what you have entered or + You personal information is used to define the location where your + secret will be safely stored. If you forget what you have entered or if there is a misspell you will be unable to recover your secret. ) : null} @@ -123,7 +123,7 @@ for (let i = 0; i < 100; i++) { function AttributeEntryField(props: AttributeEntryFieldProps): VNode { return (
- {props.spec.type === "date" && + {props.spec.type === "date" && ( - } - {props.spec.type === 'number' && + )} + {props.spec.type === "number" && ( - } + )} {props.spec.type === "string" && ( ); } - const errors = configuredAuthMethods.length < 2 ? "There is not enough authentication methods." : undefined; + const errors = + configuredAuthMethods.length < 2 + ? "There is not enough authentication methods." + : undefined; const handleNext = async () => { const st = reducer.currentReducerState as ReducerStateBackup; if ((st.authentication_methods ?? []).length <= 2) { @@ -243,4 +246,3 @@ function AuthMethodNotImplemented(props: AuthMethodSetupProps): VNode { ); } - diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx index c3ff7e746..bb0c3c4b6 100644 --- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { BackupFinishedScreen as TestedComponent } from "./BackupFinishedScreen"; diff --git a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx index 129f1e9e4..66473345f 100644 --- a/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/BackupFinishedScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { format } from "date-fns"; import { h, VNode } from "preact"; import { useAnastasisContext } from "../../context/anastasis"; @@ -16,7 +16,7 @@ export function BackupFinishedScreen(): VNode { return
invalid state
; } const details = reducer.currentReducerState.success_details; - const providers = reducer.currentReducerState.authentication_providers ?? {} + const providers = reducer.currentReducerState.authentication_providers ?? {}; return ( @@ -27,17 +27,19 @@ export function BackupFinishedScreen(): VNode {

The backup is stored by the following providers:

{Object.keys(details).map((url, i) => { const sd = details[url]; - const p = providers[url] as AuthenticationProviderStatusOk + const p = providers[url] as AuthenticationProviderStatusOk; return (
- {p.business_name} + + {p.business_name} +

version {sd.policy_version} {sd.policy_expiration.t_ms !== "never" ? ` expires at: ${format( - new Date(sd.policy_expiration.t_ms), - "dd-MM-yyyy", - )}` + new Date(sd.policy_expiration.t_ms), + "dd-MM-yyyy", + )}` : " without expiration date"}

diff --git a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx index 56aee8763..3bd6a0c17 100644 --- a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.stories.tsx @@ -23,7 +23,7 @@ import { ChallengeFeedbackStatus, RecoveryStates, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ChallengeOverviewScreen as TestedComponent } from "./ChallengeOverviewScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx index d0c9b2f5d..f24478d19 100644 --- a/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ChallengeOverviewScreen.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedback, ChallengeFeedbackStatus } from "anastasis-core"; +import { + ChallengeFeedback, + ChallengeFeedbackStatus, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useAnastasisContext } from "../../context/anastasis"; import { AnastasisClientFrame } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx index 0948d603e..dc1526864 100644 --- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.stories.tsx @@ -20,7 +20,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ContinentSelectionScreen as TestedComponent } from "./ContinentSelectionScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx index aafde6e8c..2a480de48 100644 --- a/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ContinentSelectionScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { BackupStates, RecoveryStates } from "anastasis-core"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { useAnastasisContext } from "../../context/anastasis"; diff --git a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx index 4cbeb8308..ed669d1c9 100644 --- a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.stories.tsx @@ -20,7 +20,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { EditPoliciesScreen as TestedComponent } from "./EditPoliciesScreen"; diff --git a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx index 198209399..4e0dc2906 100644 --- a/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/EditPoliciesScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { AuthMethod, Policy } from "anastasis-core"; +import { AuthMethod, Policy } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { useAnastasisContext } from "../../context/anastasis"; diff --git a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx index 9bebcfbc9..42ef57f39 100644 --- a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { PoliciesPayingScreen as TestedComponent } from "./PoliciesPayingScreen"; diff --git a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx index 1c05cd6e1..e005e7521 100644 --- a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.stories.tsx @@ -20,7 +20,7 @@ */ import { encodeCrock, stringToBytes } from "@gnu-taler/taler-util"; -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { RecoveryFinishedScreen as TestedComponent } from "./RecoveryFinishedScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx index 4a1cba6a8..3330f1679 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { ReviewPoliciesScreen as TestedComponent } from "./ReviewPoliciesScreen"; diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx index 0ed08e037..4253f4617 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx @@ -1,4 +1,4 @@ -import { AuthenticationProviderStatusOk } from "anastasis-core"; +import { AuthenticationProviderStatusOk } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx index 3f2c6a245..310fd8700 100644 --- a/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretEditorScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SecretEditorScreen as TestedComponent } from "./SecretEditorScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx index 01ce3f0a7..df9b38879 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SecretSelectionScreen as TestedComponent } from "./SecretSelectionScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx index 7e517abfe..076d205b6 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx @@ -1,4 +1,7 @@ -import { AuthenticationProviderStatus, AuthenticationProviderStatusOk } from "anastasis-core"; +import { + AuthenticationProviderStatus, + AuthenticationProviderStatusOk, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../components/AsyncButton"; @@ -68,15 +71,15 @@ export function SecretSelectionScreen(): VNode { return setManageProvider(false)} />; } - const provierInfo = provs[recoveryDocument.provider_url] as AuthenticationProviderStatusOk + const provierInfo = provs[ + recoveryDocument.provider_url + ] as AuthenticationProviderStatusOk; return (
-

- {provierInfo.business_name} -

+

{provierInfo.business_name}

{currentVersion === 0 ? (

Set to recover the latest version

@@ -135,11 +138,13 @@ function ChooseAnotherProviderScreen({ Choose a provider{" "} {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + + ); })}
@@ -169,7 +174,9 @@ function SelectOtherVersionProviderScreen({ const [otherVersion, setOtherVersion] = useState( version > 0 ? String(version) : "", ); - const otherProviderInfo = providers[otherProvider] as AuthenticationProviderStatusOk + const otherProviderInfo = providers[ + otherProvider + ] as AuthenticationProviderStatusOk; return ( @@ -199,11 +206,13 @@ function SelectOtherVersionProviderScreen({ Choose a provider{" "} {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + + ); })}
diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx index 76d0700db..d97bfbfbb 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.stories.tsx @@ -23,7 +23,7 @@ import { ChallengeFeedbackStatus, RecoveryStates, ReducerState, -} from "anastasis-core"; +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { SolveScreen as TestedComponent } from "./SolveScreen"; diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx index b87dad2ce..c695b9b22 100644 --- a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx @@ -3,7 +3,7 @@ import { AnastasisClientFrame } from "."; import { ChallengeFeedback, ChallengeFeedbackStatus, -} from "../../../../anastasis-core/lib"; +} from "@gnu-taler/anastasis-core"; import { Notifications } from "../../components/Notifications"; import { useAnastasisContext } from "../../context/anastasis"; import { authMethods, KnownAuthMethods } from "./authMethod"; diff --git a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx index 245ad8889..a7a85fc60 100644 --- a/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ReducerState } from "anastasis-core"; +import { ReducerState } from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../utils"; import { TruthsPayingScreen as TestedComponent } from "./TruthsPayingScreen"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx index 729fa8a1b..1e7053df5 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx index e50c3bb20..7252ca2fd 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodEmailSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx index cbbc253e9..2a0e02dce 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx index 5cff7bf01..3eea9c15f 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodIbanSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx index 3b67ee884..cbfcbb6cb 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx index 1bbbbfc03..af7a62e6a 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodPostSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx index 1fa9fd6ec..c24ab0503 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx index 2636ca47c..f54f91d92 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodQuestionSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx index e8961cccf..c33dbd785 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx index 3370c76d0..61dad3f51 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodSmsSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx index 8743c5a73..8ac146708 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx index 347f9bf03..bd31fd5bf 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx index 7c5511c5a..0e454dd73 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.stories.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { ChallengeFeedbackStatus, ReducerState } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { createExample, reducerStatesExample } from "../../../utils"; import { authMethods as TestedComponent, KnownAuthMethods } from "./index"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx index efadb9a9a..021589198 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodVideoSolve.tsx @@ -1,4 +1,7 @@ -import { ChallengeFeedbackStatus, ChallengeInfo } from "anastasis-core"; +import { + ChallengeFeedbackStatus, + ChallengeInfo, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../../components/AsyncButton"; diff --git a/packages/anastasis-webui/src/pages/home/authMethod/index.tsx b/packages/anastasis-webui/src/pages/home/authMethod/index.tsx index b4f649488..64cf07cd6 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/index.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/index.tsx @@ -1,4 +1,4 @@ -import { AuthMethod } from "anastasis-core"; +import { AuthMethod } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import postalIcon from "../../../assets/icons/auth_method/postal.svg"; import questionIcon from "../../../assets/icons/auth_method/question.svg"; diff --git a/packages/anastasis-webui/src/pages/home/index.tsx b/packages/anastasis-webui/src/pages/home/index.tsx index d83442e62..ca6da8474 100644 --- a/packages/anastasis-webui/src/pages/home/index.tsx +++ b/packages/anastasis-webui/src/pages/home/index.tsx @@ -1,4 +1,4 @@ -import { BackupStates, RecoveryStates } from "anastasis-core"; +import { BackupStates, RecoveryStates } from "@gnu-taler/anastasis-core"; import { ComponentChildren, Fragment, diff --git a/packages/anastasis-webui/src/utils/index.tsx b/packages/anastasis-webui/src/utils/index.tsx index a8f6c3101..7ddeefef4 100644 --- a/packages/anastasis-webui/src/utils/index.tsx +++ b/packages/anastasis-webui/src/utils/index.tsx @@ -1,5 +1,9 @@ /* eslint-disable @typescript-eslint/camelcase */ -import { BackupStates, RecoveryStates, ReducerState } from "anastasis-core"; +import { + BackupStates, + RecoveryStates, + ReducerState, +} from "@gnu-taler/anastasis-core"; import { FunctionalComponent, h, VNode } from "preact"; import { AnastasisProvider } from "../context/anastasis";