@contentful/field-editor-rich-text 4.13.11 → 4.13.13

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.
@@ -9,8 +9,7 @@ Object.defineProperty(exports, "ButtonRedo", {
9
9
  }
10
10
  });
11
11
  const _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
- const _f36components = require("@contentful/f36-components");
13
- const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
12
+ const _f36icons = require("@contentful/f36-icons");
14
13
  const _ContentfulEditorProvider = require("../../ContentfulEditorProvider");
15
14
  const _ToolbarButton = require("../../plugins/shared/ToolbarButton");
16
15
  function _interop_require_default(obj) {
@@ -29,9 +28,5 @@ const ButtonRedo = ()=>{
29
28
  onClick: onClickHandler,
30
29
  isActive: false,
31
30
  isDisabled: editor.history.redos.length === 0
32
- }, /*#__PURE__*/ _react.default.createElement(_f36components.Icon, {
33
- color: _f36tokens.default.gray900
34
- }, /*#__PURE__*/ _react.default.createElement("path", {
35
- d: "M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z"
36
- })));
31
+ }, /*#__PURE__*/ _react.default.createElement(_f36icons.ArrowArcRightIcon, null));
37
32
  };
@@ -9,8 +9,7 @@ Object.defineProperty(exports, "ButtonUndo", {
9
9
  }
10
10
  });
11
11
  const _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
- const _f36components = require("@contentful/f36-components");
13
- const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
12
+ const _f36icons = require("@contentful/f36-icons");
14
13
  const _ContentfulEditorProvider = require("../../ContentfulEditorProvider");
15
14
  const _ToolbarButton = require("../../plugins/shared/ToolbarButton");
16
15
  function _interop_require_default(obj) {
@@ -29,9 +28,5 @@ const ButtonUndo = ()=>{
29
28
  onClick: onClickHandler,
30
29
  isActive: false,
31
30
  isDisabled: editor.history.undos.length === 0
32
- }, /*#__PURE__*/ _react.default.createElement(_f36components.Icon, {
33
- color: _f36tokens.default.gray900
34
- }, /*#__PURE__*/ _react.default.createElement("path", {
35
- d: "M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z"
36
- })));
31
+ }, /*#__PURE__*/ _react.default.createElement(_f36icons.ArrowArcLeftIcon, null));
37
32
  };
@@ -23,6 +23,7 @@ _export(exports, {
23
23
  }
24
24
  });
25
25
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
26
+ const _f36icons = require("@contentful/f36-icons");
26
27
  const _richtexttypes = require("@contentful/rich-text-types");
27
28
  const _platebasicmarks = require("@udecode/plate-basic-marks");
28
29
  const _emotion = require("emotion");
@@ -81,40 +82,7 @@ const ToolbarDropdownStrikethroughButton = (0, _MarkToolbarButton.createMarkTool
81
82
  const ToolbarStrikethroughButton = (0, _MarkToolbarButton.createMarkToolbarButton)({
82
83
  title: 'Strikethrough',
83
84
  mark: _richtexttypes.MARKS.STRIKETHROUGH,
84
- icon: /*#__PURE__*/ _react.createElement("svg", {
85
- xmlns: "http://www.w3.org/2000/svg",
86
- viewBox: "0 0 256 256",
87
- width: "18",
88
- height: "18"
89
- }, /*#__PURE__*/ _react.createElement("rect", {
90
- width: "256",
91
- height: "256",
92
- fill: "none"
93
- }), /*#__PURE__*/ _react.createElement("line", {
94
- x1: "40",
95
- y1: "128",
96
- x2: "216",
97
- y2: "128",
98
- fill: "none",
99
- stroke: "currentColor",
100
- strokeLinecap: "round",
101
- strokeLinejoin: "round",
102
- strokeWidth: "24"
103
- }), /*#__PURE__*/ _react.createElement("path", {
104
- d: "M72,168c0,22.09,25.07,40,56,40s56-17.91,56-40c0-23.77-21.62-33-45.6-40",
105
- fill: "none",
106
- stroke: "currentColor",
107
- strokeLinecap: "round",
108
- strokeLinejoin: "round",
109
- strokeWidth: "24"
110
- }), /*#__PURE__*/ _react.createElement("path", {
111
- d: "M75.11,88c0-22.09,22-40,52.89-40,23,0,40.24,9.87,48,24",
112
- fill: "none",
113
- stroke: "currentColor",
114
- strokeLinecap: "round",
115
- strokeLinejoin: "round",
116
- strokeWidth: "24"
117
- }))
85
+ icon: /*#__PURE__*/ _react.createElement(_f36icons.TextStrikethroughIcon, null)
118
86
  });
119
87
  function Strikethrough(props) {
120
88
  return /*#__PURE__*/ _react.createElement("s", {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { Icon } from '@contentful/f36-components';
3
- import tokens from '@contentful/f36-tokens';
2
+ import { ArrowArcRightIcon } from '@contentful/f36-icons';
4
3
  import { useContentfulEditor } from '../../ContentfulEditorProvider';
5
4
  import { ToolbarButton } from '../../plugins/shared/ToolbarButton';
6
5
  export const ButtonRedo = ()=>{
@@ -14,9 +13,5 @@ export const ButtonRedo = ()=>{
14
13
  onClick: onClickHandler,
15
14
  isActive: false,
16
15
  isDisabled: editor.history.redos.length === 0
17
- }, /*#__PURE__*/ React.createElement(Icon, {
18
- color: tokens.gray900
19
- }, /*#__PURE__*/ React.createElement("path", {
20
- d: "M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z"
21
- })));
16
+ }, /*#__PURE__*/ React.createElement(ArrowArcRightIcon, null));
22
17
  };
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { Icon } from '@contentful/f36-components';
3
- import tokens from '@contentful/f36-tokens';
2
+ import { ArrowArcLeftIcon } from '@contentful/f36-icons';
4
3
  import { useContentfulEditor } from '../../ContentfulEditorProvider';
5
4
  import { ToolbarButton } from '../../plugins/shared/ToolbarButton';
6
5
  export const ButtonUndo = ()=>{
@@ -14,9 +13,5 @@ export const ButtonUndo = ()=>{
14
13
  onClick: onClickHandler,
15
14
  isActive: false,
16
15
  isDisabled: editor.history.undos.length === 0
17
- }, /*#__PURE__*/ React.createElement(Icon, {
18
- color: tokens.gray900
19
- }, /*#__PURE__*/ React.createElement("path", {
20
- d: "M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z"
21
- })));
16
+ }, /*#__PURE__*/ React.createElement(ArrowArcLeftIcon, null));
22
17
  };
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { TextStrikethroughIcon } from '@contentful/f36-icons';
2
3
  import { MARKS } from '@contentful/rich-text-types';
3
4
  import { createStrikethroughPlugin as createDefaultStrikethroughPlugin } from '@udecode/plate-basic-marks';
4
5
  import { css } from 'emotion';
@@ -16,40 +17,7 @@ export const ToolbarDropdownStrikethroughButton = createMarkToolbarButton({
16
17
  export const ToolbarStrikethroughButton = createMarkToolbarButton({
17
18
  title: 'Strikethrough',
18
19
  mark: MARKS.STRIKETHROUGH,
19
- icon: /*#__PURE__*/ React.createElement("svg", {
20
- xmlns: "http://www.w3.org/2000/svg",
21
- viewBox: "0 0 256 256",
22
- width: "18",
23
- height: "18"
24
- }, /*#__PURE__*/ React.createElement("rect", {
25
- width: "256",
26
- height: "256",
27
- fill: "none"
28
- }), /*#__PURE__*/ React.createElement("line", {
29
- x1: "40",
30
- y1: "128",
31
- x2: "216",
32
- y2: "128",
33
- fill: "none",
34
- stroke: "currentColor",
35
- strokeLinecap: "round",
36
- strokeLinejoin: "round",
37
- strokeWidth: "24"
38
- }), /*#__PURE__*/ React.createElement("path", {
39
- d: "M72,168c0,22.09,25.07,40,56,40s56-17.91,56-40c0-23.77-21.62-33-45.6-40",
40
- fill: "none",
41
- stroke: "currentColor",
42
- strokeLinecap: "round",
43
- strokeLinejoin: "round",
44
- strokeWidth: "24"
45
- }), /*#__PURE__*/ React.createElement("path", {
46
- d: "M75.11,88c0-22.09,22-40,52.89-40,23,0,40.24,9.87,48,24",
47
- fill: "none",
48
- stroke: "currentColor",
49
- strokeLinecap: "round",
50
- strokeLinejoin: "round",
51
- strokeWidth: "24"
52
- }))
20
+ icon: /*#__PURE__*/ React.createElement(TextStrikethroughIcon, null)
53
21
  });
54
22
  export function Strikethrough(props) {
55
23
  return /*#__PURE__*/ React.createElement("s", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "4.13.11",
3
+ "version": "4.13.13",
4
4
  "source": "./src/index.tsx",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -44,8 +44,8 @@
44
44
  "@contentful/f36-icons": "^5.4.1",
45
45
  "@contentful/f36-tokens": "^5.1.0",
46
46
  "@contentful/f36-utils": "^5.1.0",
47
- "@contentful/field-editor-reference": "^6.13.11",
48
- "@contentful/field-editor-shared": "^2.13.9",
47
+ "@contentful/field-editor-reference": "^6.13.12",
48
+ "@contentful/field-editor-shared": "^2.13.10",
49
49
  "@contentful/rich-text-plain-text-renderer": "^17.0.0",
50
50
  "@contentful/rich-text-types": "^17.0.0",
51
51
  "@popperjs/core": "^2.11.5",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "registry": "https://npm.pkg.github.com/"
90
90
  },
91
- "gitHead": "079953700877edc82c587553a9ffe6460874ac48"
91
+ "gitHead": "d3e3ab5dad23b52f77e7f4241508f0ec032fbc63"
92
92
  }