Skip to content

Commit b0988dc

Browse files
committed
direct imports
1 parent 150cb61 commit b0988dc

File tree

12 files changed

+22
-23
lines changed

12 files changed

+22
-23
lines changed

packages/react/src/components/dynamic-flow/dynamic-flow.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createTestUser, inputEmail } from "../test-utils";
66

77
import { TestSlashIDProvider } from "../../context/test-providers";
88
import { DynamicFlow } from ".";
9-
import { ConfigurationProvider } from "../../entry.npm";
9+
import { ConfigurationProvider } from "../../context/config-context";
1010

1111
describe("#DynamicFlow", () => {
1212
test("should render in the initial state", () => {

packages/react/src/components/form/authenticating/otp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { OtpInput, Delayed } from "@slashid/react-primitives";
1111

1212
import { useConfiguration } from "../../../hooks/use-configuration";
1313
import { useForm } from "../../../hooks/use-form";
14-
import { useSlashID } from "../../../entry.npm";
1514
import { Props } from "./authenticating.types";
1615
import { getAuthenticatingMessage } from "./messages";
1716
import { OTP_CODE_LENGTH, isValidOTPCode } from "./validation";
@@ -22,6 +21,7 @@ import * as styles from "./authenticating.css";
2221
import { isFactorOTPEmail, isFactorOTPSms } from "../../../domain/handles";
2322
import { EmailIcon, SmsIcon, Loader } from "./icons";
2423
import { BackButton, RetryPrompt } from "./authenticating.components";
24+
import { useSlashID } from "../../../hooks/use-slash-id";
2525

2626
const FactorIcon = ({ factor }: { factor: Factor }) => {
2727
if (isFactorOTPEmail(factor)) {

packages/react/src/components/form/authenticating/password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { FormEventHandler, useCallback, useEffect, useState } from "react";
22

33
import { useForm } from "../../../hooks/use-form";
4-
import { useSlashID } from "../../../entry.npm";
54
import { Props } from "./authenticating.types";
65
import { ErrorMessage } from "../error-message";
76
import { Text } from "../../text";
@@ -25,6 +24,7 @@ import {
2524
getValidationMessageKey,
2625
getValidationInterpolationTokens,
2726
} from "./validation";
27+
import { useSlashID } from "../../../hooks/use-slash-id";
2828

2929
const PasswordRecoveryPrompt = ({
3030
onRecoverClick,

packages/react/src/components/form/form-customisation.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { TestSlashIDProvider } from "../../context/test-providers";
44
import { createTestUser, inputEmail } from "../test-utils";
55
import { Slot } from "../slot";
66
import userEvent from "@testing-library/user-event";
7-
import { ConfigurationProvider } from "../../entry.npm";
87
import { useState } from "react";
98
import { Factor } from "@slashid/slashid";
109
import { Handle } from "../../domain/types";
1110
import { TEXT } from "../text/constants";
11+
import { ConfigurationProvider } from "../../context/config-context";
1212

1313
describe("#Form - customisation", () => {
1414
test(`should not render any components that are not a <Slot name="initial | authenticating | success | error | footer">`, () => {

packages/react/src/components/groups/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode, useMemo } from "react";
2-
import { useSlashID } from "../../entry.npm";
2+
import { useSlashID } from "../../hooks/use-slash-id";
33

44
type Props = {
55
belongsTo: string | ((groups: string[]) => boolean);

packages/react/src/components/logged-out/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from "react";
2-
import { useSlashID } from "../../entry.npm";
2+
import { useSlashID } from "../../hooks/use-slash-id";
33

44
type Props = {
55
children: ReactNode;

packages/react/src/components/slashid-loaded/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ReactNode } from "react";
2-
import { useSlashID } from "../../entry.npm";
2+
import { useSlashID } from "../../hooks/use-slash-id";
33

44
interface Props {
55
fallback?: ReactNode;

packages/react/src/dev.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,18 @@ import ReactDOM from "react-dom/client";
55
import { GDPRConsentDialog } from "./components/gdpr-consent-dialog";
66
import "./dev.css";
77
import { FactorConfiguration, Handle } from "./domain/types";
8-
import {
9-
ConfigurationProvider,
10-
DynamicFlow,
11-
Form,
12-
LoggedIn,
13-
LoggedOut,
14-
OrganizationSwitcher,
15-
SlashIDLoaded,
16-
SlashIDProvider,
17-
useOrganizations,
18-
useSlashID,
19-
} from "./entry.npm";
208
import { defaultOrganization } from "./middleware/default-organization";
219
import { Slot } from "./components/slot";
10+
import { ConfigurationProvider } from "./context/config-context";
11+
import { LoggedOut } from "./components/logged-out";
12+
import { Form } from "./components/form";
13+
import { LoggedIn } from "./components/logged-in";
14+
import { OrganizationSwitcher } from "./components/organization-switcher";
15+
import { SlashIDLoaded } from "./components/slashid-loaded";
16+
import { useSlashID } from "./hooks/use-slash-id";
17+
import { SlashIDProvider } from "./context/slash-id-context";
18+
import { DynamicFlow } from "./components/dynamic-flow";
19+
import { useOrganizations } from "./hooks/use-organizations";
2220

2321
const rootOid = "b6f94b67-d20f-7fc3-51df-bf6e3b82683e";
2422

packages/react/src/entry.web-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import {
99
} from "./context/slash-id-context";
1010
import "./dev.css";
1111
import r2wc from "@r2wc/react-to-web-component";
12-
import { Slot } from "./entry.npm";
1312
import { Text } from "./components/text";
1413
import { Loader } from "./components/form/authenticating/icons";
14+
import { Slot } from "./components/slot";
1515

1616
type SlashIDFormInternalProps = Pick<
1717
SlashIDProviderProps,

packages/react/src/hooks/use-organizations.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { act, render, screen, waitFor } from "@testing-library/react";
2-
import { useOrganizations } from "../entry.npm";
32
import { faker } from "@faker-js/faker";
43
import { OrganizationDetails } from "@slashid/slashid";
54
import { TestSlashIDProvider } from "../context/test-providers";
65
import {
76
createTestOrganization,
87
createTestUser,
98
} from "../components/test-utils";
9+
import { useOrganizations } from "./use-organizations";
1010

1111
interface Props {
1212
content?: (orgs: ReturnType<typeof useOrganizations>) => React.ReactNode;

0 commit comments

Comments
 (0)