@contentful/field-editor-rich-text 2.0.1 → 2.0.2
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 +4 -0
- package/dist/field-editor-rich-text.cjs.development.js +8 -8
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +8 -8
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/plugins/CommandPalette/CommandPanel/InViewport/InViewport.d.ts +37 -0
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedAssetCard.d.ts +15 -0
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedEntryCard.d.ts +15 -0
- package/dist/plugins/EmbeddedEntryInline/FetchingWrappedInlineEntryCard.d.ts +14 -0
- package/dist/plugins/Hyperlink/Hyperlink.d.ts +13 -0
- package/package.json +5 -5
|
@@ -613,7 +613,7 @@ function useSdk(_ref) {
|
|
|
613
613
|
var sdk = _ref.sdk;
|
|
614
614
|
var sdkMemo = useMemo(function () {
|
|
615
615
|
return sdk;
|
|
616
|
-
}, []); // eslint-disable-line
|
|
616
|
+
}, []); // eslint-disable-line -- TODO: explain this disable
|
|
617
617
|
|
|
618
618
|
return sdkMemo;
|
|
619
619
|
}
|
|
@@ -653,7 +653,7 @@ function useFetchedEntity(_ref) {
|
|
|
653
653
|
// entity store update causing page lag on initial load
|
|
654
654
|
// TODO: consider rewriting useEntities() hook to avoid that happening in
|
|
655
655
|
// first place.
|
|
656
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
656
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- TODO: explain this disable
|
|
657
657
|
}, [type, id]);
|
|
658
658
|
useEffect(function () {
|
|
659
659
|
if (entity) {
|
|
@@ -1966,7 +1966,7 @@ function FetchingWrappedInlineEntryCard(props) {
|
|
|
1966
1966
|
if (!props.entryId) return;
|
|
1967
1967
|
getOrLoadEntry(props.entryId); // We don't include getOrLoadEntry below because it's part of the constate-derived
|
|
1968
1968
|
// useEntities(), not props.
|
|
1969
|
-
// eslint-disable-next-line
|
|
1969
|
+
// eslint-disable-next-line -- TODO: explain this disable
|
|
1970
1970
|
}, [props.entryId]);
|
|
1971
1971
|
|
|
1972
1972
|
if (entry === 'failed') {
|
|
@@ -2309,7 +2309,7 @@ function ToolbarHeadingButton(props) {
|
|
|
2309
2309
|
|
|
2310
2310
|
var type = element.type;
|
|
2311
2311
|
setSelected(LABELS[type] ? type : BLOCKS.PARAGRAPH);
|
|
2312
|
-
}, [editor == null ? void 0 : editor.operations, editor == null ? void 0 : editor.selection]); // eslint-disable-line
|
|
2312
|
+
}, [editor == null ? void 0 : editor.operations, editor == null ? void 0 : editor.selection]); // eslint-disable-line -- TODO: explain this disable
|
|
2313
2313
|
|
|
2314
2314
|
var _React$useMemo = useMemo(function () {
|
|
2315
2315
|
var nodeTypesByEnablement = Object.fromEntries(Object.keys(LABELS).map(function (nodeType) {
|
|
@@ -2455,7 +2455,7 @@ var styles$5 = {
|
|
|
2455
2455
|
headings: (_headings = {
|
|
2456
2456
|
root: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-weight: ", ";\n line-height: 1.3;\n margin: 0 0 ", ";\n "])), tokens.fontWeightMedium, tokens.spacingS)
|
|
2457
2457
|
}, _headings[BLOCKS.HEADING_1] = /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.875rem;\n "]))), _headings[BLOCKS.HEADING_2] = /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.5625rem;\n "]))), _headings[BLOCKS.HEADING_3] = /*#__PURE__*/css(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.375rem;\n "]))), _headings[BLOCKS.HEADING_4] = /*#__PURE__*/css(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n "]))), _headings[BLOCKS.HEADING_5] = /*#__PURE__*/css(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.125rem;\n "]))), _headings[BLOCKS.HEADING_6] = /*#__PURE__*/css(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1rem;\n "]))), _headings)
|
|
2458
|
-
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2458
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO: explain this disable
|
|
2459
2459
|
|
|
2460
2460
|
function createHeading(Tag, block) {
|
|
2461
2461
|
return function Heading(props) {
|
|
@@ -4878,7 +4878,7 @@ var sanitizeSheets = function sanitizeSheets(doc) {
|
|
|
4878
4878
|
});
|
|
4879
4879
|
var rows = Array.from(table.querySelectorAll('tr')); // CSS :nth-of-type index starts from 1
|
|
4880
4880
|
|
|
4881
|
-
var colIndex = 1; // eslint-disable-next-line
|
|
4881
|
+
var colIndex = 1; // eslint-disable-next-line -- TODO: explain this disable
|
|
4882
4882
|
|
|
4883
4883
|
while (true) {
|
|
4884
4884
|
var cells = rows.map(function (row) {
|
|
@@ -7238,7 +7238,7 @@ var HyperlinkDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
7238
7238
|
return _this3.setState({
|
|
7239
7239
|
text: e.target.value
|
|
7240
7240
|
});
|
|
7241
|
-
} // eslint-disable-next-line jsx-a11y/no-autofocus
|
|
7241
|
+
} // eslint-disable-next-line -- TODO: describe this disable jsx-a11y/no-autofocus
|
|
7242
7242
|
,
|
|
7243
7243
|
autoFocus: !isUriInputAutoFocused
|
|
7244
7244
|
})), isFeaturingEntitySelector(entitySelectorConfigs) && /*#__PURE__*/React__default.createElement(FormControl, {
|
|
@@ -7270,7 +7270,7 @@ var HyperlinkDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
7270
7270
|
return _this3.setState({
|
|
7271
7271
|
uri: e.target.value
|
|
7272
7272
|
});
|
|
7273
|
-
} // eslint-disable-next-line jsx-a11y/no-autofocus
|
|
7273
|
+
} // eslint-disable-next-line -- TODO: describe this disable jsx-a11y/no-autofocus
|
|
7274
7274
|
,
|
|
7275
7275
|
autoFocus: isUriInputAutoFocused
|
|
7276
7276
|
}), /*#__PURE__*/React__default.createElement(FormControl.HelpText, null, "A protocol may be required, e.g. https://")) : this.renderEntityField());
|