@commercetools-uikit/rich-text-utils 16.1.0 → 16.2.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.
Files changed (19) hide show
  1. package/dist/commercetools-uikit-rich-text-utils.cjs.dev.js +645 -424
  2. package/dist/commercetools-uikit-rich-text-utils.cjs.prod.js +508 -394
  3. package/dist/commercetools-uikit-rich-text-utils.esm.js +648 -427
  4. package/dist/declarations/src/rich-text-body/icons/generated/BoldReact.d.ts +2 -0
  5. package/dist/declarations/src/rich-text-body/icons/generated/ExpandFullReact.d.ts +2 -0
  6. package/dist/declarations/src/rich-text-body/icons/generated/ExpandReact.d.ts +2 -0
  7. package/dist/declarations/src/rich-text-body/icons/generated/ItalicReact.d.ts +2 -0
  8. package/dist/declarations/src/rich-text-body/icons/generated/MoreStylesReact.d.ts +2 -0
  9. package/dist/declarations/src/rich-text-body/icons/generated/OrderedListReact.d.ts +2 -0
  10. package/dist/declarations/src/rich-text-body/icons/generated/RedoReact.d.ts +2 -0
  11. package/dist/declarations/src/rich-text-body/icons/generated/StrikethroughReact.d.ts +2 -0
  12. package/dist/declarations/src/rich-text-body/icons/generated/SubscriptReact.d.ts +2 -0
  13. package/dist/declarations/src/rich-text-body/icons/generated/SuperscriptReact.d.ts +2 -0
  14. package/dist/declarations/src/rich-text-body/icons/generated/UnderlineReact.d.ts +2 -0
  15. package/dist/declarations/src/rich-text-body/icons/generated/UndoReact.d.ts +2 -0
  16. package/dist/declarations/src/rich-text-body/icons/generated/UnorderedListReact.d.ts +2 -0
  17. package/dist/declarations/src/rich-text-body/rich-text-body.d.ts +0 -1
  18. package/dist/declarations/src/rich-text-body/rich-text-body.styles.d.ts +1 -1
  19. package/package.json +7 -7
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const BoldIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const ExpandFullIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const ExpandIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const ItalicIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const MoreStylesIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const OrderedListIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const RedoIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const StrikethroughIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const SubscriptIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const SuperscriptIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const UnderlineIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const UndoIcon: {
@@ -4,6 +4,8 @@ export type Props = {
4
4
  };
5
5
  export type SVGProps = Props & {
6
6
  className: string;
7
+ titleId: string;
8
+ title?: string;
7
9
  };
8
10
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
9
11
  declare const UnorderedListIcon: {
@@ -19,7 +19,6 @@ export type TRichTextEditorBody = {
19
19
  onClickExpand?: () => boolean;
20
20
  containerStyles: CSSProperties;
21
21
  children: ReactNode;
22
- isNewTheme?: boolean;
23
22
  };
24
23
  declare const RichTextEditorBody: import("react").ForwardRefExoticComponent<TRichTextEditorBody & import("react").RefAttributes<TRichtTextEditorBodyRef>>;
25
24
  export default RichTextEditorBody;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { TRichTextEditorBody } from './rich-text-body';
3
- type TRichTextBodyStylesProps = Pick<TRichTextEditorBody, 'hasError' | 'isReadOnly' | 'hasWarning' | 'isDisabled' | 'isNewTheme'>;
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": "16.1.0",
4
+ "version": "16.2.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": "16.1.0",
28
- "@commercetools-uikit/icons": "16.1.0",
29
- "@commercetools-uikit/input-utils": "16.1.0",
30
- "@commercetools-uikit/spacings-inline": "16.1.0",
31
- "@commercetools-uikit/tooltip": "16.1.0",
32
- "@commercetools-uikit/utils": "16.1.0",
27
+ "@commercetools-uikit/design-system": "16.2.0",
28
+ "@commercetools-uikit/icons": "16.2.0",
29
+ "@commercetools-uikit/input-utils": "16.2.0",
30
+ "@commercetools-uikit/spacings-inline": "16.2.0",
31
+ "@commercetools-uikit/tooltip": "16.2.0",
32
+ "@commercetools-uikit/utils": "16.2.0",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
35
35
  "@types/escape-html": "1.0.2",