@mccaskie-labs/workbench-accounts 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mccaskie-labs/workbench-accounts
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [45fd319]
8
+ - @mccaskie-labs/workbench-forms@0.12.0
9
+ - @mccaskie-labs/workbench-supabase@0.6.1
10
+
11
+ ## 0.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - The sign-in, join and name forms say what to do beside each field ("Enter your email address", "Enter your name", "Tick the box to confirm you are 18 or over"), with workbench-forms 0.11.8; the old "Please fill this in." fallbacks are gone.
16
+
3
17
  ## 0.1.0
4
18
 
5
19
  ### Minor Changes
package/dist/words.d.ts CHANGED
@@ -46,13 +46,11 @@ export declare const ACCOUNTS_WORDS: {
46
46
  readonly "ui.wbaccounts.problem.cross_site": "This has to be sent from this site's own pages.";
47
47
  readonly "ui.wbaccounts.problem.not_set_up": "Sign-in isn't set up on this site yet.";
48
48
  readonly "ui.wbaccounts.problem.save_failed": "That didn't save. Try again in a few minutes.";
49
- readonly "validation.summary": "{count} answers need a look before this can be sent.";
50
- readonly "validation.required": "Please fill this in.";
51
- readonly "validation.not_text": "Please type this as text.";
52
- readonly "validation.too_short": "Please use at least {min} characters.";
53
- readonly "validation.too_long": "Please keep this to {max} characters or fewer.";
54
- readonly "validation.not_email": "Please check the email address. It should look like name@example.com.";
55
- readonly "validation.rejected": "We can't accept this. Please check it and try again.";
49
+ readonly "validation.accounts_sign_in.email.required": "Enter your email address";
50
+ readonly "validation.accounts_join.email.required": "Enter your email address";
51
+ readonly "validation.accounts_join.name.required": "Enter your name";
52
+ readonly "validation.accounts_join.adult.required": "Tick the box to confirm you are 18 or over";
53
+ readonly "validation.accounts_name.name.required": "Enter your name";
56
54
  readonly "ui.form.optional": "(optional)";
57
55
  };
58
56
  export type AccountsWordKey = keyof typeof ACCOUNTS_WORDS;
package/dist/words.js CHANGED
@@ -58,14 +58,12 @@ export const ACCOUNTS_WORDS = {
58
58
  "ui.wbaccounts.problem.cross_site": "This has to be sent from this site's own pages.",
59
59
  "ui.wbaccounts.problem.not_set_up": "Sign-in isn't set up on this site yet.",
60
60
  "ui.wbaccounts.problem.save_failed": "That didn't save. Try again in a few minutes.",
61
- // workbench-forms' messages, for a project whose catalogue lacks them
62
- "validation.summary": "{count} answers need a look before this can be sent.",
63
- "validation.required": "Please fill this in.",
64
- "validation.not_text": "Please type this as text.",
65
- "validation.too_short": "Please use at least {min} characters.",
66
- "validation.too_long": "Please keep this to {max} characters or fewer.",
67
- "validation.not_email": "Please check the email address. It should look like name@example.com.",
68
- "validation.rejected": "We can't accept this. Please check it and try again.",
61
+ // What each account form's problems say (workbench-forms shows these beside the field; a project's own catalogue wins).
62
+ "validation.accounts_sign_in.email.required": "Enter your email address",
63
+ "validation.accounts_join.email.required": "Enter your email address",
64
+ "validation.accounts_join.name.required": "Enter your name",
65
+ "validation.accounts_join.adult.required": "Tick the box to confirm you are 18 or over",
66
+ "validation.accounts_name.name.required": "Enter your name",
69
67
  "ui.form.optional": "(optional)",
70
68
  };
71
69
  /** Fills {name} placeholders. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-accounts",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The ways people sign in to a Workbench app and the account features that go with them: an emailed six-digit code (on in every project), Join, and Your account with the person's name. The Worker makes every Supabase Auth call, the session is one sealed cookie, and codes are sent only after a Turnstile check and per-IP and per-address limits. Passwords, Google and two-step sign-in come later. No Gateway call of its own.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -43,8 +43,8 @@
43
43
  "prepack": "node scripts/build.mjs"
44
44
  },
45
45
  "dependencies": {
46
- "@mccaskie-labs/workbench-forms": "^0.11.4",
47
- "@mccaskie-labs/workbench-supabase": "^0.6.0"
46
+ "@mccaskie-labs/workbench-forms": "^0.12.0",
47
+ "@mccaskie-labs/workbench-supabase": "^0.6.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "24.19.2",