@remit/ui 0.0.126 → 0.0.127
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
|
@@ -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
|
|
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
|
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,
|