@commercetools-uikit/rich-text-utils 19.7.0 → 19.9.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.
@@ -3,4 +3,4 @@ export { default as html } from "./html/index.js";
3
3
  export { default as isEmpty } from "./is-empty/index.js";
4
4
  export { HiddenInput, RichTextBody } from "./rich-text-body/index.js";
5
5
  export { default as version } from "./version.js";
6
- export { Element, Leaf, isMarkActive, isBlockActive, toggleMark, toggleBlock, validSlateStateAdapter, resetEditor, focusEditor, } from "./slate-helpers.js";
6
+ export { Element, Leaf, Softbreaker, isMarkActive, isBlockActive, toggleMark, toggleBlock, validSlateStateAdapter, resetEditor, focusEditor, } from "./slate-helpers.js";
@@ -10,4 +10,12 @@ declare const toggleBlock: (editor: TEditor, format: Format) => void;
10
10
  declare const validSlateStateAdapter: (value: Deserialized | Deserialized[]) => Descendant[];
11
11
  declare const resetEditor: (editor: Editor, resetValue?: string) => void;
12
12
  declare const focusEditor: (editor: Editor) => void;
13
- export { Element, Leaf, isMarkActive, isBlockActive, toggleMark, toggleBlock, validSlateStateAdapter, resetEditor, focusEditor, };
13
+ declare const Softbreaker: {
14
+ placeholderCharacter: string;
15
+ getSlatePlaceholder(): {
16
+ text: string;
17
+ };
18
+ serialize(str: string): string;
19
+ cleanHtml(html: string): string;
20
+ };
21
+ export { Element, Leaf, Softbreaker, isMarkActive, isBlockActive, toggleMark, toggleBlock, validSlateStateAdapter, resetEditor, focusEditor, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/rich-text-utils",
3
3
  "description": "Utilities for working with rich-text components.",
4
- "version": "19.7.0",
4
+ "version": "19.9.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,12 +24,12 @@
24
24
  "dependencies": {
25
25
  "@babel/runtime": "^7.20.13",
26
26
  "@babel/runtime-corejs3": "^7.20.13",
27
- "@commercetools-uikit/design-system": "19.7.0",
28
- "@commercetools-uikit/icons": "19.7.0",
29
- "@commercetools-uikit/input-utils": "19.7.0",
30
- "@commercetools-uikit/spacings-inline": "19.7.0",
31
- "@commercetools-uikit/tooltip": "19.7.0",
32
- "@commercetools-uikit/utils": "19.7.0",
27
+ "@commercetools-uikit/design-system": "19.9.0",
28
+ "@commercetools-uikit/icons": "19.9.0",
29
+ "@commercetools-uikit/input-utils": "19.9.0",
30
+ "@commercetools-uikit/spacings-inline": "19.9.0",
31
+ "@commercetools-uikit/tooltip": "19.9.0",
32
+ "@commercetools-uikit/utils": "19.9.0",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
35
35
  "@types/escape-html": "1.0.4",