@luscii-healthtech/web-ui 58.7.1 → 58.7.2
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/dist/esm/components/TextEditor/TextEditor.js +21 -2
- package/dist/esm/components/TextEditor/TextEditor.js.map +1 -1
- package/dist/index.development.js +21 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/TextEditor.stories.d.ts +15 -0
- package/package.json +1 -1
|
@@ -50,3 +50,18 @@ export declare const WithTags: {
|
|
|
50
50
|
export declare const InSideModal: {
|
|
51
51
|
render: () => import("react").JSX.Element;
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* The editor sanitises its own output on seed, on paste and on every change, so
|
|
55
|
+
* every tag the enabled `formats` can produce has to survive that pass.
|
|
56
|
+
*
|
|
57
|
+
* Two things to check. The editor above shows what survived the **seed**: a
|
|
58
|
+
* heading, two lines split by a Shift+Enter break, a quote and a code block. A
|
|
59
|
+
* stripped tag is visible there, a dropped `<br>` collapses the two lines into
|
|
60
|
+
* one. The panel below shows what the component **emits**, and stays empty
|
|
61
|
+
* until the first edit, since `onValueChange` only fires on change. Type one
|
|
62
|
+
* character to fill it, then check the seeded markup came back out intact, and
|
|
63
|
+
* press Shift+Enter to confirm a new break is emitted as `<br>`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const PreservesBreaksAndBlocks: {
|
|
66
|
+
render: () => import("react").JSX.Element;
|
|
67
|
+
};
|