@remit/ui 0.0.126 → 0.0.128

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": "@remit/ui",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
@@ -98,6 +98,8 @@ export interface EventSuggestion {
98
98
  threadId: string;
99
99
  threadSubject: string;
100
100
  sender: string;
101
+ /** The address a rule about this sender is written against. */
102
+ senderAddress: string;
101
103
  /** 0–1. The component derives its own wording; the seam carries the value. */
102
104
  confidence: number;
103
105
  /** What the parse could not settle, empty when nothing. */
@@ -2,7 +2,7 @@ import assert from "node:assert/strict";
2
2
  import { describe, it } from "node:test";
3
3
  import { createElement } from "react";
4
4
  import { renderToString } from "react-dom/server";
5
- import { ComposeFormShell, composeModeLabels } from "./compose-form-shell.js";
5
+ import { ComposeFormShell } from "./compose-form-shell.js";
6
6
 
7
7
  describe("ComposeFormShell", () => {
8
8
  it("renders header, body and action bar slots in order", () => {
@@ -103,11 +103,4 @@ describe("ComposeFormShell", () => {
103
103
  );
104
104
  assert.doesNotMatch(html, /sticky/);
105
105
  });
106
-
107
- it("exposes mode labels for every compose mode", () => {
108
- assert.equal(composeModeLabels.new, "New Message");
109
- assert.equal(composeModeLabels.reply, "Reply");
110
- assert.equal(composeModeLabels.reply_all, "Reply All");
111
- assert.equal(composeModeLabels.forward, "Forward");
112
- });
113
106
  });
@@ -1,14 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
2
 
3
- export type ComposeMode = "new" | "reply" | "reply_all" | "forward";
4
-
5
- export const composeModeLabels: Record<ComposeMode, string> = {
6
- new: "New Message",
7
- reply: "Reply",
8
- reply_all: "Reply All",
9
- forward: "Forward",
10
- };
11
-
12
3
  /**
13
4
  * How the surface gets its height. `fill` takes the one its container hands it
14
5
  * and scrolls the body inside that, so the action bar is pinned to the bottom
@@ -15,6 +15,7 @@ const suggestion: EventSuggestion = {
15
15
  threadId: "thr_airbnb",
16
16
  threadSubject: "Your reservation in Lisbon is confirmed",
17
17
  sender: "Airbnb",
18
+ senderAddress: "automated@airbnb.example",
18
19
  confidence: 0.94,
19
20
  ambiguity: "",
20
21
  suggestedCalendarId: "c5",
@@ -33,6 +33,7 @@ const base: EventSuggestion = {
33
33
  threadId: "thr_airbnb",
34
34
  threadSubject: "Your reservation in Lisbon is confirmed",
35
35
  sender: "Airbnb",
36
+ senderAddress: "automated@airbnb.example",
36
37
  confidence: 0.94,
37
38
  ambiguity: "",
38
39
  suggestedCalendarId: "c5",
package/src/index.ts CHANGED
@@ -178,9 +178,7 @@ export { ComposeBodySkeleton } from "./components/compose-body-skeleton.js";
178
178
  export {
179
179
  ComposeFormShell,
180
180
  type ComposeFormShellProps,
181
- type ComposeMode,
182
181
  type ComposeShellLayout,
183
- composeModeLabels,
184
182
  } from "./components/compose-form-shell.js";
185
183
  export {
186
184
  ComposeHeader,