@functionalcms/svelte-components 5.23.1 → 5.24.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.23.1",
3
+ "version": "5.24.0",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {
@@ -25,30 +25,28 @@
25
25
  });
26
26
 
27
27
  const result = deserialize(await response.text());
28
-
29
- if (result.type === "success") {
30
- goto("/auth/login");
31
- } else {
32
- submitError = true;
33
- }
34
28
  }
35
29
  </script>
36
30
 
37
- <article>
38
- <main class="flex flex-col justify-around items-center gap-4 w-full m-auto p-4">
31
+ <article class="w-full">
32
+ <main
33
+ class="flex flex-col justify-around items-center gap-4 w-full m-auto p-4"
34
+ >
39
35
  <h1>{m.auth_setup_title()}</h1>
40
-
41
- {#if !data.code}
42
- <p>{m.auth_setup_missing_code()}</p>
43
- {:else}
44
- <Button onclick={resetPassword}>
45
- {m.auth_setup_submit()}
46
- </Button>
47
-
48
- {#if submitError}
49
- <p class="text-red-600">{m.auth_setup_error()}</p>
36
+ {#if !data.code}
37
+ <p>{m.auth_setup_missing_code()}</p>
38
+ {:else}
39
+ <div>
40
+ {@html m.auth_setup_into()}
41
+ </div>
42
+ <Button onclick={resetPassword}>
43
+ {m.auth_setup_submit()}
44
+ </Button>
45
+
46
+ {#if submitError}
47
+ <p class="text-red-600">{m.auth_setup_error()}</p>
48
+ {/if}
50
49
  {/if}
51
- {/if}
52
50
  </main>
53
51
  </article>
54
52