@atlasauth/svelte 0.16.0 → 0.16.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlasauth/svelte changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.2 — 2026-11-06
|
|
4
|
+
|
|
5
|
+
- A username taken while the sign-up waited no longer shows a sign-in link beside the error. Picks up passkey promotion from `@atlasauth/js` 0.34.1.
|
|
6
|
+
|
|
7
|
+
## 0.16.1 — 2026-11-06
|
|
8
|
+
|
|
9
|
+
- The sign-up code step shows a sign-in link beside the taken-address error.
|
|
10
|
+
|
|
3
11
|
## 0.16.0 — 2026-11-06
|
|
4
12
|
|
|
5
13
|
- Uses `@atlasauth/js` 0.34.0. Emailed links now need the browser that started the flow or the code shown on the starting tab; the components show the code, ask for it on the link page, and offer every factor the instance has on at enrolment.
|
|
@@ -19,6 +19,7 @@ export let errors = [];
|
|
|
19
19
|
export let sessionKept = void 0;
|
|
20
20
|
export let titleKey;
|
|
21
21
|
export let onSubmit;
|
|
22
|
+
export let signInHref = null;
|
|
22
23
|
export let captcha = null;
|
|
23
24
|
export let emailDelivery = null;
|
|
24
25
|
export let onPrepare = null;
|
|
@@ -170,7 +171,7 @@ function handleSubmit(event) {
|
|
|
170
171
|
<h1 class={cls('headerTitle', 'atlas-title')}>{t(titleKey)}</h1>
|
|
171
172
|
|
|
172
173
|
{#each errors.filter((e) => !e.param) as error (error.code)}
|
|
173
|
-
<p class={cls('formFieldError', 'atlas-error')} role="alert">{errorText(error)}</p>
|
|
174
|
+
<p class={cls('formFieldError', 'atlas-error')} role="alert">{errorText(error)}{#if signInHref && step.kind === 'collect_email_code' && error.code === 'IDENTIFIER_EXISTS' && error.meta?.['identifier'] !== 'username'}{' '}<a class="atlas-link" href={signInHref}>{t('signIn.title')}</a>{/if}</p>
|
|
174
175
|
{/each}
|
|
175
176
|
|
|
176
177
|
<form on:submit={handleSubmit}>
|
|
@@ -15,6 +15,7 @@ declare const __propDef: {
|
|
|
15
15
|
/** `FlowState.sessionKept`: whether this browser kept the session the sign-in created. */ sessionKept?: boolean | undefined;
|
|
16
16
|
titleKey: string;
|
|
17
17
|
onSubmit: (values: Record<string, string>) => void;
|
|
18
|
+
/** Sign-up only: the sign-in link beside the code step's "an account already uses this email". */ signInHref?: string | null;
|
|
18
19
|
/**
|
|
19
20
|
* The sign-in captcha, drawn above the submit button on the identifier step
|
|
20
21
|
* (an always-on sign-in captcha) and on the challenge step the server demands
|
|
@@ -85,6 +85,7 @@ onMount(() => {
|
|
|
85
85
|
enrollment={flow.enrollment}
|
|
86
86
|
enrollmentState={$enrollmentState}
|
|
87
87
|
onPolicyDecline={flow.declinePolicy}
|
|
88
|
+
signInHref={signInAfterProofUrl({ url: signInUrl, frontendApi: atlas.frontendApi, redirectUrl: afterUrl })}
|
|
88
89
|
/>
|
|
89
90
|
{:else}
|
|
90
91
|
<SignUpForm
|
package/dist/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AtlasSdkInfo } from '@atlasauth/js';
|
|
2
2
|
/** This package's version, sent as `X-Atlas-SDK` (kept in step with package.json by a test). */
|
|
3
|
-
export declare const ATLAS_SVELTE_VERSION = "0.16.
|
|
3
|
+
export declare const ATLAS_SVELTE_VERSION = "0.16.2";
|
|
4
4
|
export declare const ATLAS_SVELTE_SDK: AtlasSdkInfo;
|
package/dist/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** This package's version, sent as `X-Atlas-SDK` (kept in step with package.json by a test). */
|
|
2
|
-
export const ATLAS_SVELTE_VERSION = '0.16.
|
|
2
|
+
export const ATLAS_SVELTE_VERSION = '0.16.2';
|
|
3
3
|
export const ATLAS_SVELTE_SDK = { name: '@atlasauth/svelte', version: ATLAS_SVELTE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/svelte",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"svelte": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@atlasauth/design": "0.3.0",
|
|
26
|
+
"@atlasauth/js": "0.34.1",
|
|
26
27
|
"@atlasauth/authz": "0.3.0",
|
|
27
|
-
"@atlasauth/js": "0.34.0",
|
|
28
28
|
"@atlasauth/backend": "0.39.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|