@contentful/field-editor-rich-text 2.0.1 → 2.0.4

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,18 @@
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
+ ## [2.0.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.0.3...@contentful/field-editor-rich-text@2.0.4) (2022-06-30)
7
+
8
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
9
+
10
+ ## [2.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.0.2...@contentful/field-editor-rich-text@2.0.3) (2022-06-22)
11
+
12
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
13
+
14
+ ## [2.0.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@2.0.1...@contentful/field-editor-rich-text@2.0.2) (2022-06-22)
15
+
16
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
17
+
6
18
  ## [2.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.17...@contentful/field-editor-rich-text@2.0.1) (2022-06-21)
7
19
 
8
20
  **Note:** Version bump only for package @contentful/field-editor-rich-text
@@ -620,7 +620,7 @@ function useSdk(_ref) {
620
620
  var sdk = _ref.sdk;
621
621
  var sdkMemo = React.useMemo(function () {
622
622
  return sdk;
623
- }, []); // eslint-disable-line
623
+ }, []); // eslint-disable-line -- TODO: explain this disable
624
624
 
625
625
  return sdkMemo;
626
626
  }
@@ -660,7 +660,7 @@ function useFetchedEntity(_ref) {
660
660
  // entity store update causing page lag on initial load
661
661
  // TODO: consider rewriting useEntities() hook to avoid that happening in
662
662
  // first place.
663
- // eslint-disable-next-line react-hooks/exhaustive-deps
663
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: explain this disable
664
664
  }, [type, id]);
665
665
  React.useEffect(function () {
666
666
  if (entity) {
@@ -1973,7 +1973,7 @@ function FetchingWrappedInlineEntryCard(props) {
1973
1973
  if (!props.entryId) return;
1974
1974
  getOrLoadEntry(props.entryId); // We don't include getOrLoadEntry below because it's part of the constate-derived
1975
1975
  // useEntities(), not props.
1976
- // eslint-disable-next-line
1976
+ // eslint-disable-next-line -- TODO: explain this disable
1977
1977
  }, [props.entryId]);
1978
1978
 
1979
1979
  if (entry === 'failed') {
@@ -2316,7 +2316,7 @@ function ToolbarHeadingButton(props) {
2316
2316
 
2317
2317
  var type = element.type;
2318
2318
  setSelected(LABELS[type] ? type : Contentful.BLOCKS.PARAGRAPH);
2319
- }, [editor == null ? void 0 : editor.operations, editor == null ? void 0 : editor.selection]); // eslint-disable-line
2319
+ }, [editor == null ? void 0 : editor.operations, editor == null ? void 0 : editor.selection]); // eslint-disable-line -- TODO: explain this disable
2320
2320
 
2321
2321
  var _React$useMemo = React.useMemo(function () {
2322
2322
  var nodeTypesByEnablement = Object.fromEntries(Object.keys(LABELS).map(function (nodeType) {
@@ -2462,7 +2462,7 @@ var styles$5 = {
2462
2462
  headings: (_headings = {
2463
2463
  root: /*#__PURE__*/emotion.css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: ", ";\n line-height: 1.3;\n margin: 0 0 ", ";\n "])), tokens.fontWeightMedium, tokens.spacingS)
2464
2464
  }, _headings[Contentful.BLOCKS.HEADING_1] = /*#__PURE__*/emotion.css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.875rem;\n "]))), _headings[Contentful.BLOCKS.HEADING_2] = /*#__PURE__*/emotion.css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.5625rem;\n "]))), _headings[Contentful.BLOCKS.HEADING_3] = /*#__PURE__*/emotion.css(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.375rem;\n "]))), _headings[Contentful.BLOCKS.HEADING_4] = /*#__PURE__*/emotion.css(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n "]))), _headings[Contentful.BLOCKS.HEADING_5] = /*#__PURE__*/emotion.css(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.125rem;\n "]))), _headings[Contentful.BLOCKS.HEADING_6] = /*#__PURE__*/emotion.css(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1rem;\n "]))), _headings)
2465
- }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
2465
+ }; // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO: explain this disable
2466
2466
 
2467
2467
  function createHeading(Tag, block) {
2468
2468
  return function Heading(props) {
@@ -4885,7 +4885,7 @@ var sanitizeSheets = function sanitizeSheets(doc) {
4885
4885
  });
4886
4886
  var rows = Array.from(table.querySelectorAll('tr')); // CSS :nth-of-type index starts from 1
4887
4887
 
4888
- var colIndex = 1; // eslint-disable-next-line
4888
+ var colIndex = 1; // eslint-disable-next-line -- TODO: explain this disable
4889
4889
 
4890
4890
  while (true) {
4891
4891
  var cells = rows.map(function (row) {
@@ -7245,7 +7245,7 @@ var HyperlinkDialog = /*#__PURE__*/function (_React$Component) {
7245
7245
  return _this3.setState({
7246
7246
  text: e.target.value
7247
7247
  });
7248
- } // eslint-disable-next-line jsx-a11y/no-autofocus
7248
+ } // eslint-disable-next-line -- TODO: describe this disable jsx-a11y/no-autofocus
7249
7249
  ,
7250
7250
  autoFocus: !isUriInputAutoFocused
7251
7251
  })), isFeaturingEntitySelector(entitySelectorConfigs) && /*#__PURE__*/React__default.createElement(f36Components.FormControl, {
@@ -7277,7 +7277,7 @@ var HyperlinkDialog = /*#__PURE__*/function (_React$Component) {
7277
7277
  return _this3.setState({
7278
7278
  uri: e.target.value
7279
7279
  });
7280
- } // eslint-disable-next-line jsx-a11y/no-autofocus
7280
+ } // eslint-disable-next-line -- TODO: describe this disable jsx-a11y/no-autofocus
7281
7281
  ,
7282
7282
  autoFocus: isUriInputAutoFocused
7283
7283
  }), /*#__PURE__*/React__default.createElement(f36Components.FormControl.HelpText, null, "A protocol may be required, e.g. https://")) : this.renderEntityField());