@vit-foundation/ui 0.2.0 → 0.2.1

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.
@@ -2,15 +2,15 @@
2
2
  import type { FormResultOf, RemoteField, RemoteFormInstance } from '../../forms/types.js';
3
3
 
4
4
  /** The preflighted display-name form. */
5
- export type UpdateNameFormInstance = RemoteFormInstance<{
6
- displayName: RemoteField;
7
- locale: RemoteField;
8
- }>;
5
+ export type UpdateNameFormInstance = RemoteFormInstance<{ displayName: RemoteField }>;
9
6
 
10
- /** The newsletter toggle; its success names which way it toggled. */
7
+ /**
8
+ * The newsletter toggle; a success names which way it toggled. The reason
9
+ * is typed open — the host's result union may carry other successes.
10
+ */
11
11
  export type NewsletterToggleFormInstance = RemoteFormInstance<
12
12
  { action: RemoteField; locale: RemoteField },
13
- FormResultOf<{ reason: 'subscribed' | 'unsubscribed' }>
13
+ FormResultOf<{ reason: string }>
14
14
  >;
15
15
 
16
16
  export type DeleteAccountFormInstance = RemoteFormInstance<{
@@ -2,14 +2,16 @@ import type { FormResultOf, RemoteField, RemoteFormInstance } from '../../forms/
2
2
  /** The preflighted display-name form. */
3
3
  export type UpdateNameFormInstance = RemoteFormInstance<{
4
4
  displayName: RemoteField;
5
- locale: RemoteField;
6
5
  }>;
7
- /** The newsletter toggle; its success names which way it toggled. */
6
+ /**
7
+ * The newsletter toggle; a success names which way it toggled. The reason
8
+ * is typed open — the host's result union may carry other successes.
9
+ */
8
10
  export type NewsletterToggleFormInstance = RemoteFormInstance<{
9
11
  action: RemoteField;
10
12
  locale: RemoteField;
11
13
  }, FormResultOf<{
12
- reason: 'subscribed' | 'unsubscribed';
14
+ reason: string;
13
15
  }>>;
14
16
  export type DeleteAccountFormInstance = RemoteFormInstance<{
15
17
  confirm: RemoteField;
@@ -3,7 +3,7 @@
3
3
 
4
4
  /** One preflighted comment form (the main box, or one reply box). */
5
5
  export type CommentFormInstance = RemoteFormInstance<
6
- { body: RemoteField; weeklySlug: RemoteField; parentId: RemoteField; locale: RemoteField },
6
+ { body: RemoteField; weeklySlug: RemoteField; parentId: RemoteField },
7
7
  FormResultOf
8
8
  >;
9
9
  </script>
@@ -4,7 +4,6 @@ export type CommentFormInstance = RemoteFormInstance<{
4
4
  body: RemoteField;
5
5
  weeklySlug: RemoteField;
6
6
  parentId: RemoteField;
7
- locale: RemoteField;
8
7
  }, FormResultOf>;
9
8
  import type { CommentThreadData } from '../../content/types.js';
10
9
  import { type ReactionBarForms } from './ReactionBar.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vit-foundation/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -152,7 +152,7 @@
152
152
  "svelte"
153
153
  ],
154
154
  "license": "MIT",
155
- "description": "Fundaci\u00f3 VIT's shared Svelte 5 component library with pluggable edit mode",
155
+ "description": "Fundació VIT's shared Svelte 5 component library with pluggable edit mode",
156
156
  "repository": {
157
157
  "type": "git",
158
158
  "url": "git+https://github.com/fndvit/VizVit-UI.git"