@atproto/oauth-provider-ui 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/authorization-page-Dhx8lvtZ.js +3 -0
  2. package/dist/authorization-page-Dhx8lvtZ.js.map +1 -0
  3. package/dist/bundle-manifest.json +630 -0
  4. package/dist/error-page-DC6Vc-cv.js +2 -0
  5. package/dist/error-page-DC6Vc-cv.js.map +1 -0
  6. package/dist/error-view-CRGNTAn2.css +1 -0
  7. package/dist/error-view-MVy7C9l0.js +59 -0
  8. package/dist/error-view-MVy7C9l0.js.map +1 -0
  9. package/dist/index-CHPoD7Rp.js +20 -0
  10. package/dist/index-CHPoD7Rp.js.map +1 -0
  11. package/dist/messages-B0mgsxS-.js +2 -0
  12. package/dist/messages-B0mgsxS-.js.map +1 -0
  13. package/dist/messages-B5g8Fkio.js +2 -0
  14. package/dist/messages-B5g8Fkio.js.map +1 -0
  15. package/dist/messages-BCMss-Kt.js +2 -0
  16. package/dist/messages-BCMss-Kt.js.map +1 -0
  17. package/dist/messages-BGUrKgyK.js +2 -0
  18. package/dist/messages-BGUrKgyK.js.map +1 -0
  19. package/dist/messages-BjxAnLDp.js +2 -0
  20. package/dist/messages-BjxAnLDp.js.map +1 -0
  21. package/dist/messages-Bjysz3rI.js +2 -0
  22. package/dist/messages-Bjysz3rI.js.map +1 -0
  23. package/dist/messages-BvvEr3UX.js +2 -0
  24. package/dist/messages-BvvEr3UX.js.map +1 -0
  25. package/dist/messages-Bz6JOhJf.js +2 -0
  26. package/dist/messages-Bz6JOhJf.js.map +1 -0
  27. package/dist/messages-BzL3D1EU.js +2 -0
  28. package/dist/messages-BzL3D1EU.js.map +1 -0
  29. package/dist/messages-CAvN5UoW.js +2 -0
  30. package/dist/messages-CAvN5UoW.js.map +1 -0
  31. package/dist/messages-CEmswT1Q.js +2 -0
  32. package/dist/messages-CEmswT1Q.js.map +1 -0
  33. package/dist/messages-CHYqz0q6.js +2 -0
  34. package/dist/messages-CHYqz0q6.js.map +1 -0
  35. package/dist/messages-CRmpdijj.js +2 -0
  36. package/dist/messages-CRmpdijj.js.map +1 -0
  37. package/dist/messages-Cdb79R6S.js +2 -0
  38. package/dist/messages-Cdb79R6S.js.map +1 -0
  39. package/dist/messages-ChkJ_0WT.js +2 -0
  40. package/dist/messages-ChkJ_0WT.js.map +1 -0
  41. package/dist/messages-CqiEX6JJ.js +2 -0
  42. package/dist/messages-CqiEX6JJ.js.map +1 -0
  43. package/dist/messages-CxkHjJSR.js +2 -0
  44. package/dist/messages-CxkHjJSR.js.map +1 -0
  45. package/dist/messages-D0-cWoJ9.js +2 -0
  46. package/dist/messages-D0-cWoJ9.js.map +1 -0
  47. package/dist/messages-D2MnAxYY.js +2 -0
  48. package/dist/messages-D2MnAxYY.js.map +1 -0
  49. package/dist/messages-D5TZVsui.js +2 -0
  50. package/dist/messages-D5TZVsui.js.map +1 -0
  51. package/dist/messages-DBdV4-iw.js +2 -0
  52. package/dist/messages-DBdV4-iw.js.map +1 -0
  53. package/dist/messages-DEK3zybC.js +2 -0
  54. package/dist/messages-DEK3zybC.js.map +1 -0
  55. package/dist/messages-DGSM5jkd.js +2 -0
  56. package/dist/messages-DGSM5jkd.js.map +1 -0
  57. package/dist/messages-DJgAnSTQ.js +2 -0
  58. package/dist/messages-DJgAnSTQ.js.map +1 -0
  59. package/dist/messages-DK7O7sb_.js +2 -0
  60. package/dist/messages-DK7O7sb_.js.map +1 -0
  61. package/dist/messages-DRp7qc3j.js +2 -0
  62. package/dist/messages-DRp7qc3j.js.map +1 -0
  63. package/dist/messages-DT6xRw0m.js +2 -0
  64. package/dist/messages-DT6xRw0m.js.map +1 -0
  65. package/dist/messages-LnzLtU0L.js +2 -0
  66. package/dist/messages-LnzLtU0L.js.map +1 -0
  67. package/dist/messages-_Nk2qNGw.js +2 -0
  68. package/dist/messages-_Nk2qNGw.js.map +1 -0
  69. package/dist/messages-eHH6nZyF.js +2 -0
  70. package/dist/messages-eHH6nZyF.js.map +1 -0
  71. package/dist/messages-iNw8zY2C.js +2 -0
  72. package/dist/messages-iNw8zY2C.js.map +1 -0
  73. package/dist/messages-ipc0L8yF.js +2 -0
  74. package/dist/messages-ipc0L8yF.js.map +1 -0
  75. package/dist/messages-j7LsWm2F.js +2 -0
  76. package/dist/messages-j7LsWm2F.js.map +1 -0
  77. package/dist/messages-mgE_5UEw.js +2 -0
  78. package/dist/messages-mgE_5UEw.js.map +1 -0
  79. package/dist/messages-oRd-J5--.js +2 -0
  80. package/dist/messages-oRd-J5--.js.map +1 -0
  81. package/package.json +10 -8
  82. package/.linguirc +0 -57
  83. package/CHANGELOG.md +0 -17
  84. package/CONTRIBUTING.md +0 -6
  85. package/authorization-page.html +0 -186
  86. package/error-page.html +0 -118
  87. package/index.html +0 -13
  88. package/src/authorization-page.tsx +0 -49
  89. package/src/components/forms/button-toggle-visibility.tsx +0 -43
  90. package/src/components/forms/button.tsx +0 -60
  91. package/src/components/forms/fieldset.tsx +0 -55
  92. package/src/components/forms/form-card-async.tsx +0 -103
  93. package/src/components/forms/form-card.tsx +0 -49
  94. package/src/components/forms/input-checkbox.tsx +0 -78
  95. package/src/components/forms/input-container.tsx +0 -107
  96. package/src/components/forms/input-email-address.tsx +0 -65
  97. package/src/components/forms/input-new-password.tsx +0 -62
  98. package/src/components/forms/input-password.tsx +0 -87
  99. package/src/components/forms/input-text.tsx +0 -82
  100. package/src/components/forms/input-token.tsx +0 -94
  101. package/src/components/forms/wizard-card.tsx +0 -116
  102. package/src/components/layouts/layout-title-page.tsx +0 -78
  103. package/src/components/layouts/layout-welcome.tsx +0 -78
  104. package/src/components/utils/account-identifier.tsx +0 -23
  105. package/src/components/utils/account-image.tsx +0 -33
  106. package/src/components/utils/admonition.tsx +0 -52
  107. package/src/components/utils/client-name.tsx +0 -71
  108. package/src/components/utils/error-card.tsx +0 -93
  109. package/src/components/utils/error-message.tsx +0 -88
  110. package/src/components/utils/help-card.tsx +0 -46
  111. package/src/components/utils/icons.tsx +0 -88
  112. package/src/components/utils/link-anchor.tsx +0 -28
  113. package/src/components/utils/link-title.tsx +0 -26
  114. package/src/components/utils/multi-lang-string.tsx +0 -62
  115. package/src/components/utils/password-strength-label.tsx +0 -37
  116. package/src/components/utils/password-strength-meter.tsx +0 -58
  117. package/src/components/utils/url-viewer.tsx +0 -73
  118. package/src/error-page.tsx +0 -23
  119. package/src/hooks/use-api.ts +0 -202
  120. package/src/hooks/use-async-action.ts +0 -120
  121. package/src/hooks/use-bound-dispatch.ts +0 -5
  122. package/src/hooks/use-browser-color-scheme.ts +0 -31
  123. package/src/hooks/use-random-string.ts +0 -37
  124. package/src/hooks/use-stepper.ts +0 -87
  125. package/src/lib/api.ts +0 -225
  126. package/src/lib/cookies.ts +0 -17
  127. package/src/lib/json-client.ts +0 -141
  128. package/src/lib/password.ts +0 -98
  129. package/src/lib/ref.ts +0 -17
  130. package/src/lib/util.ts +0 -14
  131. package/src/locales/an/messages.po +0 -494
  132. package/src/locales/ast/messages.po +0 -494
  133. package/src/locales/ca/messages.po +0 -494
  134. package/src/locales/da/messages.po +0 -494
  135. package/src/locales/de/messages.po +0 -494
  136. package/src/locales/el/messages.po +0 -494
  137. package/src/locales/en/messages.po +0 -494
  138. package/src/locales/en-GB/messages.po +0 -494
  139. package/src/locales/es/messages.po +0 -494
  140. package/src/locales/eu/messages.po +0 -494
  141. package/src/locales/fi/messages.po +0 -494
  142. package/src/locales/fr/messages.po +0 -494
  143. package/src/locales/ga/messages.po +0 -494
  144. package/src/locales/gl/messages.po +0 -494
  145. package/src/locales/hi/messages.po +0 -494
  146. package/src/locales/hu/messages.po +0 -494
  147. package/src/locales/ia/messages.po +0 -494
  148. package/src/locales/id/messages.po +0 -494
  149. package/src/locales/it/messages.po +0 -494
  150. package/src/locales/ja/messages.po +0 -494
  151. package/src/locales/km/messages.po +0 -494
  152. package/src/locales/ko/messages.po +0 -494
  153. package/src/locales/load.ts +0 -8
  154. package/src/locales/locale-provider.tsx +0 -108
  155. package/src/locales/locale-selector.tsx +0 -57
  156. package/src/locales/locales.ts +0 -183
  157. package/src/locales/ne/messages.po +0 -494
  158. package/src/locales/nl/messages.po +0 -494
  159. package/src/locales/pl/messages.po +0 -494
  160. package/src/locales/pt-BR/messages.po +0 -494
  161. package/src/locales/ro/messages.po +0 -494
  162. package/src/locales/ru/messages.po +0 -494
  163. package/src/locales/sv/messages.po +0 -494
  164. package/src/locales/th/messages.po +0 -494
  165. package/src/locales/tr/messages.po +0 -494
  166. package/src/locales/uk/messages.po +0 -494
  167. package/src/locales/vi/messages.po +0 -494
  168. package/src/locales/zh-CN/messages.po +0 -494
  169. package/src/locales/zh-HK/messages.po +0 -494
  170. package/src/locales/zh-TW/messages.po +0 -494
  171. package/src/style.css +0 -219
  172. package/src/views/authorize/accept/accept-form.tsx +0 -155
  173. package/src/views/authorize/accept/accept-view.tsx +0 -70
  174. package/src/views/authorize/authorize-view.tsx +0 -186
  175. package/src/views/authorize/reset-password/reset-password-confirm-form.tsx +0 -88
  176. package/src/views/authorize/reset-password/reset-password-request-form.tsx +0 -80
  177. package/src/views/authorize/reset-password/reset-password-view.tsx +0 -127
  178. package/src/views/authorize/sign-in/sign-in-form.tsx +0 -240
  179. package/src/views/authorize/sign-in/sign-in-picker.tsx +0 -116
  180. package/src/views/authorize/sign-in/sign-in-view.tsx +0 -145
  181. package/src/views/authorize/sign-up/sign-up-account-form.tsx +0 -142
  182. package/src/views/authorize/sign-up/sign-up-disclaimer.tsx +0 -51
  183. package/src/views/authorize/sign-up/sign-up-handle-form.tsx +0 -287
  184. package/src/views/authorize/sign-up/sign-up-hcaptcha-form.tsx +0 -108
  185. package/src/views/authorize/sign-up/sign-up-view.tsx +0 -158
  186. package/src/views/authorize/welcome/welcome-view.tsx +0 -56
  187. package/src/views/error/error-view.tsx +0 -31
  188. package/tsconfig.json +0 -7
  189. package/tsconfig.src.json +0 -13
  190. package/tsconfig.src.tsbuildinfo +0 -1
  191. package/tsconfig.tools.json +0 -8
  192. package/tsconfig.tools.tsbuildinfo +0 -1
  193. package/vite.config.mjs +0 -47
  194. /package/{src/hydration-data.d.ts → hydration-data.d.ts} +0 -0
@@ -1,108 +0,0 @@
1
- import type HCaptcha from '@hcaptcha/react-hcaptcha'
2
- import {
3
- ForwardedRef,
4
- ReactNode,
5
- lazy,
6
- useCallback,
7
- useRef,
8
- useState,
9
- } from 'react'
10
- import {
11
- FormCardAsync,
12
- FormCardAsyncProps,
13
- } from '../../../components/forms/form-card-async.tsx'
14
- import { useBrowserColorScheme } from '../../../hooks/use-browser-color-scheme.ts'
15
- import { mergeRefs } from '../../../lib/ref.ts'
16
- import { Override } from '../../../lib/util.ts'
17
-
18
- export type SignUpHcaptchaFormProps = Override<
19
- Omit<
20
- FormCardAsyncProps,
21
- 'append' | 'onSubmit' | 'submitLabel' | 'onCancel' | 'cancelLabel'
22
- >,
23
- {
24
- siteKey: string
25
-
26
- token?: string
27
- onToken: (token: string, ekey: string) => void
28
-
29
- prevLabel?: ReactNode
30
- onPrev?: () => void
31
-
32
- nextLabel?: ReactNode
33
- onNext: (signal: AbortSignal) => void | PromiseLike<void>
34
-
35
- ref?: ForwardedRef<HCaptcha>
36
- }
37
- >
38
-
39
- const HCaptchaLazy = lazy(() => import('@hcaptcha/react-hcaptcha'))
40
-
41
- export function SignUpHcaptchaForm({
42
- siteKey,
43
-
44
- token: tokenInit,
45
- onToken,
46
-
47
- prevLabel,
48
- onPrev,
49
-
50
- nextLabel,
51
- onNext,
52
-
53
- ref,
54
-
55
- // FormCardProps
56
- invalid,
57
- children,
58
- ...props
59
- }: SignUpHcaptchaFormProps) {
60
- const captchaRef = useRef<HCaptcha>(null)
61
- const theme = useBrowserColorScheme()
62
- const [token, setToken] = useState<string | undefined>(tokenInit)
63
-
64
- const onLoad = useCallback(() => {
65
- // this reaches out to the hCaptcha JS API and runs the
66
- // execute function on it. you can use other functions as
67
- // documented here:
68
- // https://docs.hcaptcha.com/configuration#jsapi
69
- captchaRef.current?.execute()
70
- }, [])
71
-
72
- const onVerify = useCallback(
73
- (token: string, ekey: string) => {
74
- setToken(token)
75
- onToken(token, ekey)
76
- },
77
- [onToken],
78
- )
79
-
80
- const doSubmit = useCallback(
81
- (signal: AbortSignal) => {
82
- if (token) return onNext(signal)
83
- else if (captchaRef.current) captchaRef.current.execute()
84
- else throw new Error('Unable to load hCaptcha')
85
- },
86
- [token, onNext],
87
- )
88
-
89
- return (
90
- <FormCardAsync
91
- {...props}
92
- cancelLabel={prevLabel}
93
- onCancel={onPrev}
94
- submitLabel={nextLabel}
95
- onSubmit={doSubmit}
96
- append={children}
97
- invalid={invalid || !token}
98
- >
99
- <HCaptchaLazy
100
- theme={theme}
101
- sitekey={siteKey}
102
- onLoad={onLoad}
103
- onVerify={onVerify}
104
- ref={mergeRefs([ref, captchaRef])}
105
- />
106
- </FormCardAsync>
107
- )
108
- }
@@ -1,158 +0,0 @@
1
- import { Trans, useLingui } from '@lingui/react/macro'
2
- import { useCallback, useState } from 'react'
3
- import type { CustomizationData } from '@atproto/oauth-provider-api'
4
- import { WizardCard } from '../../../components/forms/wizard-card.tsx'
5
- import {
6
- LayoutTitlePage,
7
- LayoutTitlePageProps,
8
- } from '../../../components/layouts/layout-title-page.tsx'
9
- import { HelpCard } from '../../../components/utils/help-card.tsx'
10
- import { Override } from '../../../lib/util.ts'
11
- import {
12
- SignUpAccountForm,
13
- SignUpAccountFormOutput,
14
- } from './sign-up-account-form.tsx'
15
- import { SignUpDisclaimer } from './sign-up-disclaimer.tsx'
16
- import { SignUpHandleForm } from './sign-up-handle-form.tsx'
17
- import { SignUpHcaptchaForm } from './sign-up-hcaptcha-form.tsx'
18
-
19
- export type SignUpViewProps = Override<
20
- LayoutTitlePageProps,
21
- {
22
- customizationData?: CustomizationData
23
-
24
- onBack?: () => void
25
- onValidateNewHandle: (
26
- data: { handle: string },
27
- signal?: AbortSignal,
28
- ) => void | PromiseLike<void>
29
- onDone: (
30
- data: SignUpAccountFormOutput & {
31
- handle: string
32
- hcaptchaToken?: string
33
- },
34
- signal?: AbortSignal,
35
- ) => void | PromiseLike<void>
36
- }
37
- >
38
-
39
- export function SignUpView({
40
- customizationData: {
41
- availableUserDomains = [],
42
- hcaptchaSiteKey = undefined,
43
- inviteCodeRequired = true,
44
- links,
45
- } = {},
46
-
47
- onValidateNewHandle,
48
- onDone,
49
- onBack,
50
-
51
- // LayoutTitlePage
52
- ...props
53
- }: SignUpViewProps) {
54
- const { t } = useLingui()
55
- const [credentials, setCredentials] = useState<
56
- undefined | SignUpAccountFormOutput
57
- >(undefined)
58
- const [handle, setHandle] = useState<undefined | string>(undefined)
59
- const [hcaptcha, setHcaptcha] = useState<undefined | string>(undefined)
60
-
61
- /**
62
- * "false" indicates that the hcaptcha token is invalid (required but not provided)
63
- */
64
- const hcaptchaToken = hcaptchaSiteKey == null ? undefined : hcaptcha || false
65
-
66
- const doDone = useCallback(
67
- (signal: AbortSignal) => {
68
- if (credentials && handle && hcaptchaToken !== false) {
69
- return onDone({ ...credentials, handle, hcaptchaToken }, signal)
70
- }
71
- },
72
- [credentials, handle, hcaptchaToken, onDone],
73
- )
74
-
75
- return (
76
- <LayoutTitlePage
77
- {...props}
78
- title={props.title ?? t`Create Account`}
79
- subtitle={
80
- props.subtitle ?? <Trans>We're so excited to have you join us!</Trans>
81
- }
82
- >
83
- <WizardCard
84
- doneLabel={<Trans>Sign up</Trans>}
85
- onBack={onBack}
86
- onDone={doDone}
87
- steps={[
88
- // We use the handle input first since the "onValidateNewHandle" check
89
- // will make it less likely that the actual signup call will fail, and
90
- // will result in a better user experience, especially if there is an
91
- // issue with the email address (e.g. already in use).
92
- {
93
- invalid: !handle,
94
- titleRender: () => <Trans>Choose a username</Trans>,
95
- contentRender: ({ prev, prevLabel, next, nextLabel, invalid }) => (
96
- <SignUpHandleForm
97
- className="grow"
98
- invalid={invalid}
99
- domains={availableUserDomains}
100
- handle={handle}
101
- onHandle={setHandle}
102
- prevLabel={prevLabel}
103
- onPrev={prev}
104
- nextLabel={nextLabel}
105
- onNext={async (signal) => {
106
- if (handle) await onValidateNewHandle({ handle }, signal)
107
- if (!signal.aborted) return next(signal)
108
- }}
109
- >
110
- <SignUpDisclaimer links={links} />
111
- </SignUpHandleForm>
112
- ),
113
- },
114
- {
115
- invalid: !credentials,
116
- titleRender: () => <Trans>Your account</Trans>,
117
- contentRender: ({ prev, prevLabel, next, nextLabel, invalid }) => (
118
- <SignUpAccountForm
119
- className="grow"
120
- invalid={invalid}
121
- prevLabel={prevLabel}
122
- onPrev={prev}
123
- nextLabel={nextLabel}
124
- onNext={next}
125
- inviteCodeRequired={inviteCodeRequired}
126
- credentials={credentials}
127
- onCredentials={setCredentials}
128
- >
129
- <SignUpDisclaimer links={links} />
130
- </SignUpAccountForm>
131
- ),
132
- },
133
- hcaptchaSiteKey != null && {
134
- invalid: hcaptchaToken === false,
135
- titleRender: () => <Trans>Verify you are human</Trans>,
136
- contentRender: ({ prev, prevLabel, next, nextLabel, invalid }) => (
137
- <SignUpHcaptchaForm
138
- className="grow"
139
- invalid={invalid}
140
- siteKey={hcaptchaSiteKey}
141
- token={hcaptcha}
142
- onToken={setHcaptcha}
143
- prevLabel={prevLabel}
144
- onPrev={prev}
145
- nextLabel={nextLabel}
146
- onNext={next}
147
- >
148
- <SignUpDisclaimer links={links} />
149
- </SignUpHcaptchaForm>
150
- ),
151
- },
152
- ]}
153
- />
154
-
155
- <HelpCard className="mt-4" links={links} />
156
- </LayoutTitlePage>
157
- )
158
- }
@@ -1,56 +0,0 @@
1
- import { Trans, useLingui } from '@lingui/react/macro'
2
- import { Button } from '../../../components/forms/button.tsx'
3
- import {
4
- LayoutWelcome,
5
- LayoutWelcomeProps,
6
- } from '../../../components/layouts/layout-welcome.tsx'
7
- import { Override } from '../../../lib/util.ts'
8
-
9
- export type WelcomeViewParams = Override<
10
- LayoutWelcomeProps,
11
- {
12
- onSignIn?: () => void
13
- onSignUp?: () => void
14
- onCancel?: () => void
15
- }
16
- >
17
-
18
- export function WelcomeView({
19
- onSignUp,
20
- onSignIn,
21
- onCancel,
22
-
23
- // LayoutWelcome
24
- ...props
25
- }: WelcomeViewParams) {
26
- const { t } = useLingui()
27
- return (
28
- <LayoutWelcome {...props} title={props.title ?? t`Authenticate`}>
29
- {onSignUp && (
30
- <Button
31
- className={'m-1 w-60 min-w-min max-w-full'}
32
- color={onSignIn ? 'primary' : undefined}
33
- onClick={onSignUp}
34
- >
35
- <Trans>Create a new account</Trans>
36
- </Button>
37
- )}
38
-
39
- {onSignIn && (
40
- <Button
41
- className={'m-1 w-60 min-w-min max-w-full'}
42
- color={onSignUp ? undefined : 'primary'}
43
- onClick={onSignIn}
44
- >
45
- <Trans>Sign in</Trans>
46
- </Button>
47
- )}
48
-
49
- {onCancel && (
50
- <Button className="m-1 w-60 min-w-min max-w-full" onClick={onCancel}>
51
- <Trans>Cancel</Trans>
52
- </Button>
53
- )}
54
- </LayoutWelcome>
55
- )
56
- }
@@ -1,31 +0,0 @@
1
- import { useLingui } from '@lingui/react/macro'
2
- import { memo } from 'react'
3
- import {
4
- LayoutWelcome,
5
- LayoutWelcomeProps,
6
- } from '../../components/layouts/layout-welcome.tsx'
7
- import { ErrorCard } from '../../components/utils/error-card.tsx'
8
- import { Override } from '../../lib/util.ts'
9
-
10
- export type ErrorViewProps = Override<
11
- LayoutWelcomeProps,
12
- {
13
- error: unknown
14
- }
15
- >
16
-
17
- export const ErrorView = memo(function ErrorView({
18
- error,
19
-
20
- // LayoutWelcome
21
- title,
22
- ...props
23
- }: ErrorViewProps) {
24
- const { t } = useLingui()
25
-
26
- return (
27
- <LayoutWelcome {...props} title={title ?? t`Error`}>
28
- <ErrorCard error={error} />
29
- </LayoutWelcome>
30
- )
31
- })
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "include": [],
3
- "references": [
4
- { "path": "./tsconfig.src.json" },
5
- { "path": "./tsconfig.tools.json" }
6
- ]
7
- }
package/tsconfig.src.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": [
3
- "../../../tsconfig/browser.json",
4
- "../../../tsconfig/bundler.json"
5
- ],
6
- "compilerOptions": {
7
- "rootDir": "src",
8
- "paths": {
9
- "#/*": ["./src/*"]
10
- }
11
- },
12
- "include": ["src/**/*.ts", "src/**/*.tsx"]
13
- }
@@ -1 +0,0 @@
1
- {"root":["./src/hydration-data.d.ts","./src/hooks/use-api.ts","./src/hooks/use-async-action.ts","./src/hooks/use-bound-dispatch.ts","./src/hooks/use-browser-color-scheme.ts","./src/hooks/use-random-string.ts","./src/hooks/use-stepper.ts","./src/lib/api.ts","./src/lib/cookies.ts","./src/lib/json-client.ts","./src/lib/password.ts","./src/lib/ref.ts","./src/lib/util.ts","./src/locales/load.ts","./src/locales/locales.ts","./src/locales/an/messages.ts","./src/locales/ast/messages.ts","./src/locales/ca/messages.ts","./src/locales/da/messages.ts","./src/locales/de/messages.ts","./src/locales/el/messages.ts","./src/locales/en/messages.ts","./src/locales/en-GB/messages.ts","./src/locales/es/messages.ts","./src/locales/eu/messages.ts","./src/locales/fi/messages.ts","./src/locales/fr/messages.ts","./src/locales/ga/messages.ts","./src/locales/gl/messages.ts","./src/locales/hi/messages.ts","./src/locales/hu/messages.ts","./src/locales/ia/messages.ts","./src/locales/id/messages.ts","./src/locales/it/messages.ts","./src/locales/ja/messages.ts","./src/locales/km/messages.ts","./src/locales/ko/messages.ts","./src/locales/ne/messages.ts","./src/locales/nl/messages.ts","./src/locales/pl/messages.ts","./src/locales/pt-BR/messages.ts","./src/locales/ro/messages.ts","./src/locales/ru/messages.ts","./src/locales/sv/messages.ts","./src/locales/th/messages.ts","./src/locales/tr/messages.ts","./src/locales/uk/messages.ts","./src/locales/vi/messages.ts","./src/locales/zh-CN/messages.ts","./src/locales/zh-HK/messages.ts","./src/locales/zh-TW/messages.ts","./src/authorization-page.tsx","./src/error-page.tsx","./src/components/forms/button-toggle-visibility.tsx","./src/components/forms/button.tsx","./src/components/forms/fieldset.tsx","./src/components/forms/form-card-async.tsx","./src/components/forms/form-card.tsx","./src/components/forms/input-checkbox.tsx","./src/components/forms/input-container.tsx","./src/components/forms/input-email-address.tsx","./src/components/forms/input-new-password.tsx","./src/components/forms/input-password.tsx","./src/components/forms/input-text.tsx","./src/components/forms/input-token.tsx","./src/components/forms/wizard-card.tsx","./src/components/layouts/layout-title-page.tsx","./src/components/layouts/layout-welcome.tsx","./src/components/utils/account-identifier.tsx","./src/components/utils/account-image.tsx","./src/components/utils/admonition.tsx","./src/components/utils/client-name.tsx","./src/components/utils/error-card.tsx","./src/components/utils/error-message.tsx","./src/components/utils/help-card.tsx","./src/components/utils/icons.tsx","./src/components/utils/link-anchor.tsx","./src/components/utils/link-title.tsx","./src/components/utils/multi-lang-string.tsx","./src/components/utils/password-strength-label.tsx","./src/components/utils/password-strength-meter.tsx","./src/components/utils/url-viewer.tsx","./src/locales/locale-provider.tsx","./src/locales/locale-selector.tsx","./src/views/authorize/authorize-view.tsx","./src/views/authorize/accept/accept-form.tsx","./src/views/authorize/accept/accept-view.tsx","./src/views/authorize/reset-password/reset-password-confirm-form.tsx","./src/views/authorize/reset-password/reset-password-request-form.tsx","./src/views/authorize/reset-password/reset-password-view.tsx","./src/views/authorize/sign-in/sign-in-form.tsx","./src/views/authorize/sign-in/sign-in-picker.tsx","./src/views/authorize/sign-in/sign-in-view.tsx","./src/views/authorize/sign-up/sign-up-account-form.tsx","./src/views/authorize/sign-up/sign-up-disclaimer.tsx","./src/views/authorize/sign-up/sign-up-handle-form.tsx","./src/views/authorize/sign-up/sign-up-hcaptcha-form.tsx","./src/views/authorize/sign-up/sign-up-view.tsx","./src/views/authorize/welcome/welcome-view.tsx","./src/views/error/error-view.tsx"],"version":"5.8.2"}
@@ -1,8 +0,0 @@
1
- {
2
- "extends": ["../../../tsconfig/nodenext.json"],
3
- "compilerOptions": {
4
- "rootDir": ".",
5
- "noEmit": true
6
- },
7
- "include": ["./*.js", "./*.cjs", "./*.mjs", "./*.ts", "./*.cts", "./*.mts"]
8
- }
@@ -1 +0,0 @@
1
- {"root":["./vite.config.mjs"],"version":"5.8.2"}
package/vite.config.mjs DELETED
@@ -1,47 +0,0 @@
1
- import { dirname, resolve } from 'node:path'
2
- import { fileURLToPath } from 'node:url'
3
- import { lingui } from '@lingui/vite-plugin'
4
- import tailwindcss from '@tailwindcss/vite'
5
- import react from '@vitejs/plugin-react-swc'
6
- import { defineConfig } from 'vite'
7
- import { bundleManifest } from '@atproto-labs/rollup-plugin-bundle-manifest'
8
-
9
- const __dirname = dirname(fileURLToPath(import.meta.url))
10
-
11
- export default defineConfig({
12
- resolve: {
13
- alias: {
14
- '#': resolve(__dirname, './src'),
15
- },
16
- },
17
- plugins: [
18
- react({
19
- plugins: [['@lingui/swc-plugin', {}]],
20
- }),
21
- lingui(),
22
- tailwindcss(),
23
- ],
24
- build: {
25
- emptyOutDir: false,
26
- outDir: './dist',
27
- sourcemap: true,
28
- rollupOptions: {
29
- input: ['./src/authorization-page.tsx', './src/error-page.tsx'],
30
- output: {
31
- manualChunks: undefined,
32
- format: 'module',
33
- entryFileNames: '[name]-[hash].js',
34
- chunkFileNames: '[name]-[hash].js',
35
- assetFileNames: '[name]-[hash][extname]',
36
- },
37
- plugins: [bundleManifest()],
38
- },
39
- commonjsOptions: {
40
- include: [/node_modules/, /oauth-provider-api/],
41
- },
42
- },
43
- optimizeDeps: {
44
- // Needed because this is a monorepo and it exposes CommonJS
45
- include: ['@atproto/oauth-provider-api'],
46
- },
47
- })