@squiz/formatted-text-editor 1.32.1-alpha.8 → 1.33.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/lib/Editor/Editor.d.ts +0 -1
- package/lib/EditorToolbar/FloatingToolbar.d.ts +0 -1
- package/lib/EditorToolbar/Toolbar.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Bold/BoldButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Image/ImageButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Image/ImageModal.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Italic/ItalicButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Link/LinkButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Link/LinkModal.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Link/RemoveLinkButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Redo/RedoButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextAlign/CenterAlign/CenterAlignButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextAlign/JustifyAlign/JustifyAlignButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextAlign/LeftAlign/LeftAlignButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextAlign/RightAlign/RightAlignButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextAlign/TextAlignButtons.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextType/Heading/HeadingButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextType/Paragraph/ParagraphButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextType/Preformatted/PreformattedButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/TextType/TextTypeDropdown.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Underline/UnderlineButton.d.ts +0 -1
- package/lib/EditorToolbar/Tools/Undo/UndoButton.d.ts +0 -1
- package/lib/ui/Fields/Select/Select.d.ts +0 -1
- package/lib/ui/ToolbarDropdown/ToolbarDropdown.d.ts +0 -1
- package/lib/ui/ToolbarDropdownButton/ToolbarDropdownButton.d.ts +0 -1
- package/package.json +3 -3
- package/src/EditorToolbar/Tools/Image/ImageButton.spec.tsx +6 -2
package/lib/Editor/Editor.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/formatted-text-editor",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.33.0",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"scripts": {
|
@@ -18,7 +18,7 @@
|
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"@headlessui/react": "1.7.11",
|
21
|
-
"@mui/icons-material": "5.11.
|
21
|
+
"@mui/icons-material": "5.11.16",
|
22
22
|
"@remirror/react": "2.0.25",
|
23
23
|
"@squiz/dx-json-schema-lib": "1.21.1-alpha.2",
|
24
24
|
"clsx": "1.2.1",
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"volta": {
|
75
75
|
"node": "18.15.0"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "39f24b55ea7d5077df241753f723d549a117e91d"
|
78
78
|
}
|
@@ -329,8 +329,12 @@ describe('ImageButton', () => {
|
|
329
329
|
await renderWithEditor(<ImageButton />);
|
330
330
|
|
331
331
|
await openModal();
|
332
|
-
|
333
|
-
|
332
|
+
await act(async () => {
|
333
|
+
fireEvent.change(screen.getByLabelText('Source'), { target: { value: ' ' } });
|
334
|
+
});
|
335
|
+
await act(async () => {
|
336
|
+
fireEvent.change(screen.getByLabelText('Alternative description'), { target: { value: ' ' } });
|
337
|
+
});
|
334
338
|
await act(() => fireEvent.click(screen.getByRole('button', { name: 'Apply' })));
|
335
339
|
|
336
340
|
expect(screen.getAllByText('Empty space is not allowed')).toHaveLength(2);
|