@commercetools-uikit/rich-text-utils 15.9.0 → 15.10.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/dist/commercetools-uikit-rich-text-utils.cjs.dev.js +13 -13
- package/dist/commercetools-uikit-rich-text-utils.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-rich-text-utils.esm.js +13 -13
- package/dist/declarations/src/html/html.d.ts +5 -5
- package/dist/declarations/src/localized/localized.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/dropdown.d.ts +3 -3
- package/dist/declarations/src/rich-text-body/dropdown.styles.d.ts +1 -1
- package/dist/declarations/src/rich-text-body/hidden-input.d.ts +1 -1
- package/dist/declarations/src/rich-text-body/icons/generated/BoldReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/ExpandFullReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/ItalicReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/MoreStylesReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/OrderedListReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/RedoReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/StrikethroughReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/SubscriptReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/SuperscriptReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/UnderlineReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/UndoReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/icons/generated/UnorderedListReact.d.ts +2 -2
- package/dist/declarations/src/rich-text-body/rich-text-body-button.d.ts +1 -1
- package/dist/declarations/src/rich-text-body/rich-text-body.d.ts +3 -3
- package/dist/declarations/src/rich-text-body/rich-text-body.styles.d.ts +1 -1
- package/dist/declarations/src/rich-text-body/slate-buttons.d.ts +1 -1
- package/package.json +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Props = {
|
|
2
2
|
color?: 'solid' | 'neutral60' | 'surface' | 'info' | 'primary' | 'primary40' | 'warning' | 'error';
|
|
3
3
|
size?: 'small' | 'medium' | 'big' | 'scale';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SVGProps = Props & {
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Props = {
|
|
2
2
|
color?: 'solid' | 'neutral60' | 'surface' | 'info' | 'primary' | 'primary40' | 'warning' | 'error';
|
|
3
3
|
size?: 'small' | 'medium' | 'big' | 'scale';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SVGProps = Props & {
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Props = {
|
|
2
2
|
color?: 'solid' | 'neutral60' | 'surface' | 'info' | 'primary' | 'primary40' | 'warning' | 'error';
|
|
3
3
|
size?: 'small' | 'medium' | 'big' | 'scale';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SVGProps = Props & {
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Props = {
|
|
2
2
|
color?: 'solid' | 'neutral60' | 'surface' | 'info' | 'primary' | 'primary40' | 'warning' | 'error';
|
|
3
3
|
size?: 'small' | 'medium' | 'big' | 'scale';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SVGProps = Props & {
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Props = {
|
|
2
2
|
color?: 'solid' | 'neutral60' | 'surface' | 'info' | 'primary' | 'primary40' | 'warning' | 'error';
|
|
3
3
|
size?: 'small' | 'medium' | 'big' | 'scale';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SVGProps = Props & {
|
|
6
6
|
className: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ReactNode, type LegacyRef, type CSSProperties } from 'react';
|
|
2
2
|
import { type SerializedStyles } from '@emotion/react';
|
|
3
|
-
|
|
3
|
+
type TNodeRefObject = {
|
|
4
4
|
clientHeight: number;
|
|
5
5
|
} & LegacyRef<HTMLDivElement>;
|
|
6
|
-
export
|
|
6
|
+
export type TRichtTextEditorBodyRef = {
|
|
7
7
|
registerContentNode: TNodeRefObject;
|
|
8
8
|
containerRef?: LegacyRef<HTMLDivElement>;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type TRichTextEditorBody = {
|
|
11
11
|
styles?: {
|
|
12
12
|
container?: SerializedStyles;
|
|
13
13
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TRichTextEditorBody } from './rich-text-body';
|
|
3
|
-
|
|
3
|
+
type TRichTextBodyStylesProps = Pick<TRichTextEditorBody, 'hasError' | 'isReadOnly' | 'hasWarning' | 'isDisabled'>;
|
|
4
4
|
export declare const ToolbarMainControls: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
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": "15.
|
|
4
|
+
"version": "15.10.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.19.0",
|
|
26
26
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
27
|
-
"@commercetools-uikit/design-system": "15.
|
|
28
|
-
"@commercetools-uikit/icons": "15.
|
|
29
|
-
"@commercetools-uikit/input-utils": "15.
|
|
30
|
-
"@commercetools-uikit/spacings-inline": "15.
|
|
31
|
-
"@commercetools-uikit/tooltip": "15.
|
|
32
|
-
"@commercetools-uikit/utils": "15.
|
|
27
|
+
"@commercetools-uikit/design-system": "15.10.0",
|
|
28
|
+
"@commercetools-uikit/icons": "15.10.0",
|
|
29
|
+
"@commercetools-uikit/input-utils": "15.10.0",
|
|
30
|
+
"@commercetools-uikit/spacings-inline": "15.10.0",
|
|
31
|
+
"@commercetools-uikit/tooltip": "15.10.0",
|
|
32
|
+
"@commercetools-uikit/utils": "15.10.0",
|
|
33
33
|
"@emotion/react": "^11.4.0",
|
|
34
34
|
"@emotion/styled": "^11.3.0",
|
|
35
35
|
"@types/escape-html": "1.0.2",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"lodash": "4.17.21",
|
|
40
40
|
"prop-types": "15.8.1",
|
|
41
41
|
"slate": "0.75.0",
|
|
42
|
-
"slate-history": "0.
|
|
42
|
+
"slate-history": "0.86.0",
|
|
43
43
|
"slate-hyperscript": "0.77.0",
|
|
44
44
|
"slate-react": "0.75.0",
|
|
45
|
-
"style-to-object": "0.
|
|
45
|
+
"style-to-object": "0.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"react": "17.0.2",
|