@autobusal/account-password 1.1.0 → 1.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0 (2026-08-29)
4
+
5
+ - Editors offer Save & Close alongside Save & Stay, so correcting a record no longer bounces you back to its list every time (opt-in per page, editing only).
6
+
7
+ All notable changes to `@autobusal/account-password` are documented here. This
8
+ project adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
9
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
10
+
11
+ ## [1.1.0] - 2026-07-25
12
+
13
+ ### Fixed
14
+
15
+ - **Recovered as canonical source.** This package was published to npm and
16
+ in active use, but had no source anywhere in this monorepo (no
17
+ `packages/account-password` directory, no git history) - the only copy of its
18
+ code existed as the published npm artifact. Recreated here,
19
+ byte-for-byte identical to the published 1.1.0 tarball (verified via
20
+ `diff` against the installed `node_modules/@autobusal/account-password`), so it
21
+ can be edited and republished like every other package instead of
22
+ requiring reverse-engineering from `node_modules` or the npm tarball.
23
+ History prior to this point is not recoverable - no git log,
24
+ changelog, or other record of it exists.
25
+
26
+ Authored by Ferjolt Ozuni.
package/Change.tsx CHANGED
@@ -19,12 +19,14 @@ const Change = ({ t }: Props): JSX.Element => {
19
19
 
20
20
  const { mutate: Update, isPending } = usePostPassword();
21
21
 
22
- const onSave = (data: PasswordData): void => {
22
+ const onSave = (data: PasswordData, stay?: boolean): void => {
23
23
  Update(data, {
24
24
  onSuccess: () => {
25
25
  success(t('account_password.messages.changed', { ns: 'common' }));
26
26
 
27
- navigate('/account');
27
+ if (!stay) {
28
+ navigate('/account');
29
+ }
28
30
  }
29
31
  });
30
32
  };
@@ -51,7 +53,7 @@ const Change = ({ t }: Props): JSX.Element => {
51
53
  pending={ isPending }
52
54
  t={ t }
53
55
  actions={ [
54
- 'update'
56
+ 'update', 'save_stay'
55
57
  ]}
56
58
  onSave={ onSave }
57
59
  />
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@autobusal/account-password",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
+ "author": "Ferjolt Ozuni",
4
5
  "type": "module",
5
6
  "main": "index.ts"
6
7
  }