Skip to content

Commit 4f1f0e9

Browse files
committed
Version 0.4.0
1 parent 535c371 commit 4f1f0e9

5 files changed

Lines changed: 10 additions & 14 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-elements/ui",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Shared UI component library for Open Elements applications",
55
"license": "Apache-2.0",
66
"repository": {

src/components/__tests__/markdown-editor.test.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ afterEach(cleanup);
1717

1818
describe("MarkdownEditor", () => {
1919
it("mounts without error", () => {
20-
const { container } = render(
21-
<MarkdownEditor value="" onChange={() => {}} />,
22-
);
20+
const { container } = render(<MarkdownEditor value="" onChange={() => {}} />);
2321
expect(container).toBeTruthy();
2422
});
2523

2624
it("renders editor content area", () => {
27-
const { container } = render(
28-
<MarkdownEditor value="" onChange={() => {}} />,
29-
);
25+
const { container } = render(<MarkdownEditor value="" onChange={() => {}} />);
3026
expect(container.querySelector("[data-testid='editor-content']")).toBeTruthy();
3127
});
3228

src/components/__tests__/markdown-view.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ describe("MarkdownView", () => {
2626
});
2727

2828
it("accepts markdown content without error", () => {
29-
const { container } = render(
30-
<MarkdownView content="Hello **bold** and *italic*" />,
31-
);
29+
const { container } = render(<MarkdownView content="Hello **bold** and *italic*" />);
3230
expect(container).toBeTruthy();
3331
});
3432
});

src/components/markdown-view.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export function MarkdownView({ content }: MarkdownViewProps) {
2121
}),
2222
Link.configure({
2323
openOnClick: true,
24-
HTMLAttributes: { class: "text-blue-600 underline", target: "_blank", rel: "noopener noreferrer" },
24+
HTMLAttributes: {
25+
class: "text-blue-600 underline",
26+
target: "_blank",
27+
rel: "noopener noreferrer",
28+
},
2529
}),
2630
Markdown,
2731
],

src/components/user-multi-select.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ export function UserMultiSelect({
125125
);
126126
})}
127127
{filteredUsers.length === 0 && (
128-
<p className="text-muted-foreground py-4 text-center text-sm">
129-
{translations.empty}
130-
</p>
128+
<p className="text-muted-foreground py-4 text-center text-sm">{translations.empty}</p>
131129
)}
132130
</div>
133131
</PopoverContent>

0 commit comments

Comments
 (0)