@contentful/field-editor-rich-text 2.0.0-next.44 → 2.0.0-next.45

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/CHANGELOG.md CHANGED
@@ -3,6 +3,120 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.1.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.15...@contentful/field-editor-rich-text@1.1.16) (2022-06-07)
7
+
8
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
9
+
10
+ ## [1.1.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.14...@contentful/field-editor-rich-text@1.1.15) (2022-05-24)
11
+
12
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
13
+
14
+ ## [1.1.14](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.13...@contentful/field-editor-rich-text@1.1.14) (2022-05-09)
15
+
16
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
17
+
18
+ ## [1.1.13](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.12...@contentful/field-editor-rich-text@1.1.13) (2022-05-06)
19
+
20
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
21
+
22
+ ## [1.1.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.11...@contentful/field-editor-rich-text@1.1.12) (2022-05-04)
23
+
24
+ ### Bug Fixes
25
+
26
+ - reflect disabled state on fields ([#1125](https://github.com/contentful/field-editors/issues/1125)) ([01502b9](https://github.com/contentful/field-editors/commit/01502b9d785c5f782b0e5de782d092c439cb690f))
27
+
28
+ ## [1.1.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.10...@contentful/field-editor-rich-text@1.1.11) (2022-05-03)
29
+
30
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
31
+
32
+ ## [1.1.10](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.9...@contentful/field-editor-rich-text@1.1.10) (2022-04-29)
33
+
34
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
35
+
36
+ ## [1.1.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.8...@contentful/field-editor-rich-text@1.1.9) (2022-04-28)
37
+
38
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
39
+
40
+ ## [1.1.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.7...@contentful/field-editor-rich-text@1.1.8) (2022-04-28)
41
+
42
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
43
+
44
+ ## [1.1.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.6...@contentful/field-editor-rich-text@1.1.7) (2022-04-19)
45
+
46
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
47
+
48
+ ## [1.1.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.5...@contentful/field-editor-rich-text@1.1.6) (2022-03-31)
49
+
50
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
51
+
52
+ ## [1.1.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.4...@contentful/field-editor-rich-text@1.1.5) (2022-03-29)
53
+
54
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
55
+
56
+ ## [1.1.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.3...@contentful/field-editor-rich-text@1.1.4) (2022-03-02)
57
+
58
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
59
+
60
+ ## [1.1.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.2...@contentful/field-editor-rich-text@1.1.3) (2022-02-15)
61
+
62
+ ### Bug Fixes
63
+
64
+ - bump f36 packages ([#1025](https://github.com/contentful/field-editors/issues/1025)) ([ec37a40](https://github.com/contentful/field-editors/commit/ec37a4000db7cd75c66dd9621136b2272c9feeea))
65
+
66
+ ## [1.1.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.1...@contentful/field-editor-rich-text@1.1.2) (2022-02-14)
67
+
68
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
69
+
70
+ ## [1.1.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.0...@contentful/field-editor-rich-text@1.1.1) (2022-01-20)
71
+
72
+ ### Bug Fixes
73
+
74
+ - remove empty text hyperlinks ([#997](https://github.com/contentful/field-editors/issues/997)) ([d998132](https://github.com/contentful/field-editors/commit/d998132fbe948a98f6e800211a794bdd1e292233))
75
+
76
+ # [1.1.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.8...@contentful/field-editor-rich-text@1.1.0) (2022-01-11)
77
+
78
+ ### Features
79
+
80
+ - bump f36 packages to stable v4 [BAU-521] ([#988](https://github.com/contentful/field-editors/issues/988)) ([419cf56](https://github.com/contentful/field-editors/commit/419cf56692179b074fcfa2743469d5265ed98429))
81
+
82
+ ## [1.0.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.7...@contentful/field-editor-rich-text@1.0.8) (2021-12-23)
83
+
84
+ ### Bug Fixes
85
+
86
+ - markdown buttons ([#968](https://github.com/contentful/field-editors/issues/968)) ([9803b98](https://github.com/contentful/field-editors/commit/9803b98c25d92df6148686ffe2749a77f7efdbb9))
87
+
88
+ ## [1.0.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.6...@contentful/field-editor-rich-text@1.0.7) (2021-12-22)
89
+
90
+ ### Bug Fixes
91
+
92
+ - cache content types for Hyperlink ([#967](https://github.com/contentful/field-editors/issues/967)) ([07e376d](https://github.com/contentful/field-editors/commit/07e376de5157fa6477f060550aacf96af3ab5e85))
93
+
94
+ ## [1.0.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.5...@contentful/field-editor-rich-text@1.0.6) (2021-12-20)
95
+
96
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
97
+
98
+ ## [1.0.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.4...@contentful/field-editor-rich-text@1.0.5) (2021-11-27)
99
+
100
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
101
+
102
+ ## [1.0.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.3...@contentful/field-editor-rich-text@1.0.4) (2021-11-26)
103
+
104
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
105
+
106
+ ## [1.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.2...@contentful/field-editor-rich-text@1.0.3) (2021-11-17)
107
+
108
+ ### Bug Fixes
109
+
110
+ - **card-actions:** update forma 36 to fix card actions click issue ([#927](https://github.com/contentful/field-editors/issues/927)) ([3dfdef2](https://github.com/contentful/field-editors/commit/3dfdef2c2b0045f12ea94ddafca89a8e9f25e7d0))
111
+
112
+ ## [1.0.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.1...@contentful/field-editor-rich-text@1.0.2) (2021-11-08)
113
+
114
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
115
+
116
+ ## [1.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.0...@contentful/field-editor-rich-text@1.0.1) (2021-11-08)
117
+
118
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
119
+
6
120
  # [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.20.0...@contentful/field-editor-rich-text@1.0.0) (2021-11-04)
7
121
 
8
122
  **Note:** Version bump only for package @contentful/field-editor-rich-text
package/README.md CHANGED
@@ -4,15 +4,33 @@
4
4
  npm install @contentful/field-editor-rich-text
5
5
  ```
6
6
 
7
- This package contains the updated rich text editor, currently in an **ALPHA** state (i.e., not suitable for production use and subject to breaking changes).
8
-
9
- This editor app is built on top of [Slate](https://github.com/ianstormtaylor/slate), a third party framework for building highly customizable rich text editing solutions.
7
+ This package contains a React `RichTextEditor` component that is used as default for `RichText` field type in the Contentful web application.
10
8
 
11
9
  ```js
12
10
  import 'codemirror/lib/codemirror.css';
13
11
  import { RichTextEditor } from '@contentful/field-editor-rich-text';
14
12
  ```
15
13
 
14
+ ## Migrating to v2
15
+
16
+ To bring support for Rich Text Tables we rewrote most of the internals of this package to adapt the latest version of [Slate][slate]. We are releasing this change as v2.0.0.
17
+
18
+ There are two ways our users typically use the rich-text field editor:
19
+
20
+ ### 1. By embedding `@contentful/field-editor-rich-text` npm package
21
+
22
+ Since the public API exposed by the package remains the same, upgrading to v2 should be seamless as it's just a matter of installing the latest version from npm. No migration is needed.
23
+
24
+ ### 2. By forking the source code
25
+
26
+ You will need to adapt your fork to work with v2. Here is a highlight of the major changes:
27
+
28
+ 1. Using Slate >= v0.80.0. If you're upgrading from < 0.50.x please check the library [migration guide](https://docs.slatejs.org/concepts/xx-migrating)
29
+ 2. Using Plate as a plugin system. Plate is a powerful plugin system to make it easy to work with Slate. All of the existing rich text plugins were rewrote to use Plate. To learn more, please check Plate's [website][plate]
30
+
16
31
  ## Credits
17
32
 
18
- This package is based on [Slate](https://www.slatejs.org/) & [Plate](https://plate.udecode.io/) and also borrows some of their code. Without them this project would not have been possible.
33
+ This package is based on [Slate][slate] & [Plate][plate] and also borrows some of their code. Without them this project would not have been possible.
34
+
35
+ [slate]: https://www.slatejs.org/
36
+ [plate]: https://plate.udecode.io/
@@ -954,9 +954,11 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
954
954
 
955
955
 
956
956
  var IteratorPrototype = {};
957
- define(IteratorPrototype, iteratorSymbol, function () {
957
+
958
+ IteratorPrototype[iteratorSymbol] = function () {
958
959
  return this;
959
- });
960
+ };
961
+
960
962
  var getProto = Object.getPrototypeOf;
961
963
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
962
964
 
@@ -967,9 +969,8 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
967
969
  }
968
970
 
969
971
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
970
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
971
- define(Gp, "constructor", GeneratorFunctionPrototype);
972
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
972
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
973
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
973
974
  GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"); // Helper for defining the .next, .throw, and .return methods of the
974
975
  // Iterator interface in terms of a single ._invoke method.
975
976
 
@@ -1074,9 +1075,11 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1074
1075
  }
1075
1076
 
1076
1077
  defineIteratorMethods(AsyncIterator.prototype);
1077
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1078
+
1079
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
1078
1080
  return this;
1079
- });
1081
+ };
1082
+
1080
1083
  exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
1081
1084
  // AsyncIterator objects; they just return a Promise for the value of
1082
1085
  // the final result produced by the iterator.
@@ -1253,12 +1256,13 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1253
1256
  // object to not be returned from this call. This ensures that doesn't happen.
1254
1257
  // See https://github.com/facebook/regenerator/issues/274 for more details.
1255
1258
 
1256
- define(Gp, iteratorSymbol, function () {
1259
+ Gp[iteratorSymbol] = function () {
1257
1260
  return this;
1258
- });
1259
- define(Gp, "toString", function () {
1261
+ };
1262
+
1263
+ Gp.toString = function () {
1260
1264
  return "[object Generator]";
1261
- });
1265
+ };
1262
1266
 
1263
1267
  function pushTryEntry(locs) {
1264
1268
  var entry = {
@@ -1570,19 +1574,14 @@ var runtime_1 = /*#__PURE__*/createCommonjsModule(function (module) {
1570
1574
  } catch (accidentalStrictMode) {
1571
1575
  // This module should not be running in strict mode, so the above
1572
1576
  // assignment should always work unless something is misconfigured. Just
1573
- // in case runtime.js accidentally runs in strict mode, in modern engines
1574
- // we can explicitly access globalThis. In older engines we can escape
1577
+ // in case runtime.js accidentally runs in strict mode, we can escape
1575
1578
  // strict mode using a global Function call. This could conceivably fail
1576
1579
  // if a Content Security Policy forbids using Function, but in that case
1577
1580
  // the proper solution is to fix the accidental strict mode problem. If
1578
1581
  // you've misconfigured your bundler to force strict mode and applied a
1579
1582
  // CSP to forbid Function, and you're not willing to fix either of those
1580
1583
  // problems, please detail your unique predicament in a GitHub issue.
1581
- if (typeof globalThis === "object") {
1582
- globalThis.regeneratorRuntime = runtime;
1583
- } else {
1584
- Function("r", "regeneratorRuntime = r")(runtime);
1585
- }
1584
+ Function("r", "regeneratorRuntime = r")(runtime);
1586
1585
  }
1587
1586
  });
1588
1587