@sovereignfs/ui 0.99.0 → 0.104.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 CHANGED
@@ -5,6 +5,52 @@ versions follow [semver](https://semver.org/). A version's section is written in
5
5
  and becomes the release notes when the version is published. This file starts at 0.96.0; earlier versions are in the repository's
6
6
  history and tags.
7
7
 
8
+ ## [0.104.0] - 2026-11-20
9
+
10
+ ### Added
11
+
12
+ - `PushControl`: "Notifications on this device", for an app's settings
13
+ ([RFC 0009](https://github.com/sovereignfs/sovereign/blob/main/docs/rfcs/0009-web-push.md) §3). It says why a device can't have
14
+ notifications (a browser without them, a page off https, an iPhone where the app must be added to the Home Screen first, a blocked
15
+ permission) or offers one `Toggle`, busy while working and with the reason beside it when it fails; nothing while checking or when
16
+ the app sends none. The state and actions come from `usePush` in `@sovereignfs/pwa/client`. `IOS_INSTALL_STEPS` is the one sentence
17
+ it shares with `InstallPrompt`.
18
+
19
+ ## [0.103.0] - 2026-11-20
20
+
21
+ ### Added
22
+
23
+ - `ExportPanel` (experimental): taking an export after the password and downloading it once, for an operator's export or a person's,
24
+ in core or in an app with no core. The consumer gives `onStart`, `downloadAction` and `onRefresh`; it knows no framework.
25
+
26
+ ## [0.102.0] - 2026-11-19
27
+
28
+ ### Added
29
+
30
+ - The sign-in forms of core and every app ([RFC 0007](https://github.com/sovereignfs/sovereign/blob/main/docs/rfcs/0007-one-sign-in.md)):
31
+ `SignInForm`, `SignUpForm`, `ForgotPasswordForm`, `ResetPasswordForm` and `TwoFactorForm`, and on the account pages `SessionsPanel`
32
+ and `ChangePasswordForm`, with `ActionResult` for what a panel's server action answers and `AuthLinkRenderer` for the consumer's
33
+ links. Each draws and collects, and sends nothing itself. Experimental.
34
+ - `SignInForm` takes `otherWays` ("Continue with Sovereign") and needs no reset link where an app cannot send one.
35
+
36
+ ## [0.101.0] - 2026-11-18
37
+
38
+ ### Added
39
+
40
+ - `AppTile` takes `onClick`, called before the browser follows the link, so the consumer can decide how it opens (a new window when the
41
+ page runs as an installed app, for example) and call `preventDefault()` when it opens it itself. Without it, nothing changes.
42
+
43
+ ## [0.100.0] - 2026-11-18
44
+
45
+ ### Added
46
+
47
+ - `InstallPrompt`: offers to install the site as an app where the device allows it, and renders nothing anywhere else. Where the
48
+ browser fires `beforeinstallprompt` it shows **Install**, which opens the browser's own prompt; on an iPhone or iPad it says how
49
+ (Share, then Add to Home Screen). Nothing shows in an installed window, and **Not now** is remembered on the device. With it,
50
+ `InstallHint` (what it shows), `useInstallPrompt` and `isInstalledDisplay`.
51
+ - `UpdateNotice`: a quiet notice, fixed at the bottom of the window, that a new version of the app is ready, with **Reload** and,
52
+ optionally, **Later**. The consumer shows it while a service worker waits and decides what Reload does.
53
+
8
54
  ## [0.99.0] - 2026-11-17
9
55
 
10
56
  ### Added
@@ -0,0 +1,122 @@
1
+ /* The panels of a person's own account (the security and profile pages), the same in core and every app. */
2
+
3
+ .form {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: var(--sv-space-4);
7
+ }
8
+
9
+ .row {
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ gap: var(--sv-space-2);
13
+ }
14
+
15
+ .footer {
16
+ margin: 0;
17
+ color: var(--sv-color-text-muted);
18
+ font-size: var(--sv-font-size-sm);
19
+ }
20
+
21
+ .list {
22
+ margin: 0;
23
+ padding: 0;
24
+ list-style: none;
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--sv-space-3);
28
+ }
29
+
30
+ .item {
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: var(--sv-space-3);
34
+ padding: var(--sv-space-3);
35
+ border-radius: var(--sv-radius-md);
36
+ background: var(--sv-color-surface-sunken);
37
+ }
38
+
39
+ .itemName {
40
+ margin: 0;
41
+ font-weight: var(--sv-font-weight-semibold);
42
+ }
43
+
44
+ .heading {
45
+ margin: 0;
46
+ font-size: var(--sv-font-size-lg);
47
+ font-weight: var(--sv-font-weight-semibold);
48
+ }
49
+
50
+ .text {
51
+ margin: 0;
52
+ color: var(--sv-color-text-muted);
53
+ font-size: var(--sv-font-size-md);
54
+ line-height: 1.5;
55
+ }
56
+
57
+ .steps {
58
+ margin: 0;
59
+ padding-left: var(--sv-space-5);
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: var(--sv-space-3);
63
+ color: var(--sv-color-text-muted);
64
+ font-size: var(--sv-font-size-md);
65
+ line-height: 1.5;
66
+ }
67
+
68
+ .key {
69
+ margin: 0;
70
+ font-family: var(--sv-font-family-mono);
71
+ font-size: var(--sv-font-size-md);
72
+ letter-spacing: 0.08em;
73
+ overflow-wrap: anywhere;
74
+ user-select: all;
75
+ }
76
+
77
+ .codes {
78
+ margin: 0;
79
+ padding: var(--sv-space-3);
80
+ border-radius: var(--sv-radius-md);
81
+ background: var(--sv-color-surface-sunken);
82
+ display: grid;
83
+ grid-template-columns: repeat(2, minmax(0, 1fr));
84
+ gap: var(--sv-space-2);
85
+ list-style: none;
86
+ font-family: var(--sv-font-family-mono);
87
+ font-size: var(--sv-font-size-md);
88
+ user-select: all;
89
+ }
90
+
91
+ .avatarRow {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--sv-space-4);
95
+ }
96
+
97
+ .avatar {
98
+ flex: none;
99
+ width: 6rem;
100
+ height: 6rem;
101
+ border-radius: 50%;
102
+ object-fit: cover;
103
+ background: var(--sv-color-surface-sunken);
104
+ color: var(--sv-color-text-muted);
105
+ display: inline-flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ font-size: var(--sv-font-size-2xl);
109
+ font-weight: var(--sv-font-weight-semibold);
110
+ }
111
+
112
+ .visuallyHidden {
113
+ position: absolute;
114
+ width: 1px;
115
+ height: 1px;
116
+ margin: -1px;
117
+ padding: 0;
118
+ overflow: hidden;
119
+ clip: rect(0 0 0 0);
120
+ white-space: nowrap;
121
+ border: 0;
122
+ }
@@ -251,3 +251,41 @@
251
251
  padding: var(--sv-space-6);
252
252
  }
253
253
  }
254
+
255
+ /* ── Sign-up: the terms to accept, and an invitation ─────────────────────── */
256
+
257
+ .terms {
258
+ display: flex;
259
+ gap: var(--sv-space-2);
260
+ align-items: flex-start;
261
+ font-size: var(--sv-font-size-sm);
262
+ color: var(--sv-color-text-primary);
263
+ }
264
+
265
+ .terms input {
266
+ margin-top: 3px;
267
+ }
268
+
269
+ .inviteTitle {
270
+ margin: 0;
271
+ font-size: var(--sv-font-size-sm);
272
+ font-weight: var(--sv-font-weight-medium);
273
+ color: var(--sv-color-text-primary);
274
+ line-height: 1.4;
275
+ }
276
+
277
+ .fromInvite {
278
+ font-family: var(--sv-font-family-mono);
279
+ font-size: 10px;
280
+ color: var(--sv-color-text-muted);
281
+ background-color: var(--sv-color-surface-sunken);
282
+ border-radius: var(--sv-radius-sm);
283
+ padding: 2px 7px;
284
+ }
285
+
286
+ /* ── The second step: a backup code ──────────────────────────────────────── */
287
+
288
+ .backupInput {
289
+ font-family: var(--sv-font-family-mono);
290
+ letter-spacing: 0.08em;
291
+ }
@@ -0,0 +1,18 @@
1
+ .panel {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--sv-space-3);
5
+ }
6
+
7
+ .form,
8
+ .ready {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: var(--sv-space-3);
12
+ }
13
+
14
+ .hint {
15
+ margin: 0;
16
+ color: var(--sv-color-text-muted);
17
+ font-size: var(--sv-font-size-sm);
18
+ }
@@ -0,0 +1,44 @@
1
+ .hint {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ align-items: center;
5
+ gap: var(--sv-space-3) var(--sv-space-4);
6
+ padding: var(--sv-space-4);
7
+ background: var(--sv-color-surface-raised);
8
+ border: var(--sv-border-width-hairline) solid var(--sv-color-border);
9
+ border-radius: var(--sv-radius-lg);
10
+ font-family: var(--sv-font-family);
11
+ }
12
+
13
+ .icon {
14
+ display: inline-flex;
15
+ flex-shrink: 0;
16
+ /* Beside the title, not centred on a hint whose buttons have wrapped below it. */
17
+ align-self: flex-start;
18
+ margin-top: var(--sv-space-1);
19
+ color: var(--sv-color-text-muted);
20
+ }
21
+
22
+ .body {
23
+ flex: 1 1 14rem;
24
+ min-width: 0;
25
+ }
26
+
27
+ .title {
28
+ margin: 0;
29
+ font-size: var(--sv-font-size-sm);
30
+ font-weight: var(--sv-font-weight-semibold);
31
+ color: var(--sv-color-text-primary);
32
+ }
33
+
34
+ .text {
35
+ margin: var(--sv-space-1) 0 0;
36
+ font-size: var(--sv-font-size-sm);
37
+ color: var(--sv-color-text-muted);
38
+ }
39
+
40
+ .actions {
41
+ display: flex;
42
+ gap: var(--sv-space-2);
43
+ margin-left: auto;
44
+ }
@@ -0,0 +1,52 @@
1
+ .control {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--sv-space-2);
5
+ font-family: var(--sv-font-family);
6
+ }
7
+
8
+ .title {
9
+ margin: 0;
10
+ font-size: var(--sv-font-size-sm);
11
+ font-weight: var(--sv-font-weight-semibold);
12
+ color: var(--sv-color-text-primary);
13
+ }
14
+
15
+ .row {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: space-between;
19
+ gap: var(--sv-space-4);
20
+ min-height: var(--sv-touch-target-min);
21
+ }
22
+
23
+ .text,
24
+ .note {
25
+ margin: 0;
26
+ font-size: var(--sv-font-size-sm);
27
+ color: var(--sv-color-text-muted);
28
+ }
29
+
30
+ .note {
31
+ display: flex;
32
+ align-items: flex-start;
33
+ gap: var(--sv-space-2);
34
+ }
35
+
36
+ .icon {
37
+ display: inline-flex;
38
+ flex-shrink: 0;
39
+ margin-top: var(--sv-space-1);
40
+ }
41
+
42
+ .error {
43
+ margin: 0;
44
+ font-size: var(--sv-font-size-sm);
45
+ color: var(--sv-color-error-text);
46
+ }
47
+
48
+ .extra {
49
+ display: flex;
50
+ flex-wrap: wrap;
51
+ gap: var(--sv-space-2);
52
+ }
@@ -0,0 +1,31 @@
1
+ .notice {
2
+ position: fixed;
3
+ left: 50%;
4
+ bottom: calc(env(safe-area-inset-bottom, 0px) + var(--sv-space-4));
5
+ transform: translateX(-50%);
6
+ /* Above the page and its sticky bars, below dialogs and toasts. */
7
+ z-index: 150;
8
+ display: flex;
9
+ align-items: center;
10
+ gap: var(--sv-space-3);
11
+ width: max-content;
12
+ max-width: calc(100vw - 2 * var(--sv-space-4));
13
+ padding: var(--sv-space-2) var(--sv-space-2) var(--sv-space-2) var(--sv-space-4);
14
+ background: var(--sv-color-surface-raised);
15
+ border: var(--sv-border-width-hairline) solid var(--sv-color-border);
16
+ border-radius: var(--sv-radius-lg);
17
+ box-shadow: var(--sv-shadow-overlay);
18
+ font-family: var(--sv-font-family);
19
+ }
20
+
21
+ .text {
22
+ margin: 0;
23
+ font-size: var(--sv-font-size-sm);
24
+ color: var(--sv-color-text-primary);
25
+ }
26
+
27
+ .actions {
28
+ display: flex;
29
+ flex-shrink: 0;
30
+ gap: var(--sv-space-1);
31
+ }