@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.
Files changed (25) hide show
  1. package/dist/commercetools-uikit-rich-text-utils.cjs.dev.js +13 -13
  2. package/dist/commercetools-uikit-rich-text-utils.cjs.prod.js +1 -1
  3. package/dist/commercetools-uikit-rich-text-utils.esm.js +13 -13
  4. package/dist/declarations/src/html/html.d.ts +5 -5
  5. package/dist/declarations/src/localized/localized.d.ts +2 -2
  6. package/dist/declarations/src/rich-text-body/dropdown.d.ts +3 -3
  7. package/dist/declarations/src/rich-text-body/dropdown.styles.d.ts +1 -1
  8. package/dist/declarations/src/rich-text-body/hidden-input.d.ts +1 -1
  9. package/dist/declarations/src/rich-text-body/icons/generated/BoldReact.d.ts +2 -2
  10. package/dist/declarations/src/rich-text-body/icons/generated/ExpandFullReact.d.ts +2 -2
  11. package/dist/declarations/src/rich-text-body/icons/generated/ItalicReact.d.ts +2 -2
  12. package/dist/declarations/src/rich-text-body/icons/generated/MoreStylesReact.d.ts +2 -2
  13. package/dist/declarations/src/rich-text-body/icons/generated/OrderedListReact.d.ts +2 -2
  14. package/dist/declarations/src/rich-text-body/icons/generated/RedoReact.d.ts +2 -2
  15. package/dist/declarations/src/rich-text-body/icons/generated/StrikethroughReact.d.ts +2 -2
  16. package/dist/declarations/src/rich-text-body/icons/generated/SubscriptReact.d.ts +2 -2
  17. package/dist/declarations/src/rich-text-body/icons/generated/SuperscriptReact.d.ts +2 -2
  18. package/dist/declarations/src/rich-text-body/icons/generated/UnderlineReact.d.ts +2 -2
  19. package/dist/declarations/src/rich-text-body/icons/generated/UndoReact.d.ts +2 -2
  20. package/dist/declarations/src/rich-text-body/icons/generated/UnorderedListReact.d.ts +2 -2
  21. package/dist/declarations/src/rich-text-body/rich-text-body-button.d.ts +1 -1
  22. package/dist/declarations/src/rich-text-body/rich-text-body.d.ts +3 -3
  23. package/dist/declarations/src/rich-text-body/rich-text-body.styles.d.ts +1 -1
  24. package/dist/declarations/src/rich-text-body/slate-buttons.d.ts +1 -1
  25. package/package.json +9 -9
@@ -1,8 +1,8 @@
1
- export declare type Props = {
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 declare type SVGProps = Props & {
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 declare type Props = {
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 declare type SVGProps = Props & {
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 declare type Props = {
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 declare type SVGProps = Props & {
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 declare type Props = {
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 declare type SVGProps = Props & {
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 declare type Props = {
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 declare type SVGProps = Props & {
5
+ export type SVGProps = Props & {
6
6
  className: string;
7
7
  };
8
8
  export declare const getIconStyles: (props: Props) => import("@emotion/utils").SerializedStyles;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode, MouseEvent, KeyboardEvent } from 'react';
2
- declare type TRichTextBodyButtonProps = {
2
+ type TRichTextBodyButtonProps = {
3
3
  isDisabled?: boolean;
4
4
  label: string;
5
5
  isActive?: boolean;
@@ -1,13 +1,13 @@
1
1
  import { type ReactNode, type LegacyRef, type CSSProperties } from 'react';
2
2
  import { type SerializedStyles } from '@emotion/react';
3
- declare type TNodeRefObject = {
3
+ type TNodeRefObject = {
4
4
  clientHeight: number;
5
5
  } & LegacyRef<HTMLDivElement>;
6
- export declare type TRichtTextEditorBodyRef = {
6
+ export type TRichtTextEditorBodyRef = {
7
7
  registerContentNode: TNodeRefObject;
8
8
  containerRef?: LegacyRef<HTMLDivElement>;
9
9
  };
10
- export declare type TRichTextEditorBody = {
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
- declare type TRichTextBodyStylesProps = Pick<TRichTextEditorBody, 'hasError' | 'isReadOnly' | 'hasWarning' | 'isDisabled'>;
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;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- declare type TButtonProps = {
2
+ type TButtonProps = {
3
3
  format: string;
4
4
  isDisabled?: boolean;
5
5
  label: string;
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.9.0",
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.9.0",
28
- "@commercetools-uikit/icons": "15.9.0",
29
- "@commercetools-uikit/input-utils": "15.9.0",
30
- "@commercetools-uikit/spacings-inline": "15.9.0",
31
- "@commercetools-uikit/tooltip": "15.9.0",
32
- "@commercetools-uikit/utils": "15.9.0",
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.66.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.3.0"
45
+ "style-to-object": "0.4.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "react": "17.0.2",