@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export class InViewport extends React.Component<any, any, any> {
|
|
2
|
+
static defaultProps: {
|
|
3
|
+
testId: string;
|
|
4
|
+
offset: number;
|
|
5
|
+
};
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
constructor(props: any, context: any);
|
|
8
|
+
tGetDomPosition: any;
|
|
9
|
+
nodeRef: any;
|
|
10
|
+
lastOverflowAt: any;
|
|
11
|
+
tOnOverflowTop: (...args: any[]) => any;
|
|
12
|
+
tOnOverflowBottom: (...args: any[]) => any;
|
|
13
|
+
tOnOverflowRight: (...args: any[]) => any;
|
|
14
|
+
tOnOverflowLeft: (...args: any[]) => any;
|
|
15
|
+
getDomPosition: () => void;
|
|
16
|
+
bindEventListeners: () => void;
|
|
17
|
+
handleOverflow: ({ top, left, bottom, right }: {
|
|
18
|
+
top: any;
|
|
19
|
+
left: any;
|
|
20
|
+
bottom: any;
|
|
21
|
+
right: any;
|
|
22
|
+
}, windowWidth: any, windowHeight: any) => void;
|
|
23
|
+
}
|
|
24
|
+
export namespace InViewport {
|
|
25
|
+
export namespace propTypes {
|
|
26
|
+
export const offset: PropTypes.Requireable<number>;
|
|
27
|
+
export const onOverflowTop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
+
export const onOverflowRight: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
export const onOverflowBottom: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
export const onOverflowLeft: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
export const className: PropTypes.Requireable<string>;
|
|
32
|
+
export const children: PropTypes.Requireable<any>;
|
|
33
|
+
export const testId: PropTypes.Requireable<string>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import React from "react";
|
|
37
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function FetchingWrappedAssetCard(props: any): JSX.Element;
|
|
2
|
+
export namespace FetchingWrappedAssetCard {
|
|
3
|
+
export namespace propTypes {
|
|
4
|
+
export const sdk: PropTypes.Validator<object>;
|
|
5
|
+
export const locale: PropTypes.Validator<string>;
|
|
6
|
+
export const assetId: PropTypes.Validator<string>;
|
|
7
|
+
export const isDisabled: PropTypes.Validator<boolean>;
|
|
8
|
+
export const isSelected: PropTypes.Validator<boolean>;
|
|
9
|
+
export const onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
export const getAssetUrl: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function FetchingWrappedEntryCard(props: any): JSX.Element;
|
|
2
|
+
export namespace FetchingWrappedEntryCard {
|
|
3
|
+
export namespace propTypes {
|
|
4
|
+
export const sdk: PropTypes.Validator<object>;
|
|
5
|
+
export const entryId: PropTypes.Validator<string>;
|
|
6
|
+
export const locale: PropTypes.Validator<string>;
|
|
7
|
+
export const isDisabled: PropTypes.Validator<boolean>;
|
|
8
|
+
export const isSelected: PropTypes.Validator<boolean>;
|
|
9
|
+
export const onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
export const getEntryUrl: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function FetchingWrappedInlineEntryCard(props: any): JSX.Element;
|
|
2
|
+
export namespace FetchingWrappedInlineEntryCard {
|
|
3
|
+
export namespace propTypes {
|
|
4
|
+
export const sdk: PropTypes.Validator<object>;
|
|
5
|
+
export const entryId: PropTypes.Validator<string>;
|
|
6
|
+
export const isDisabled: PropTypes.Validator<boolean>;
|
|
7
|
+
export const isSelected: PropTypes.Validator<boolean>;
|
|
8
|
+
export const isReadOnly: PropTypes.Validator<boolean>;
|
|
9
|
+
export const onRemove: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
+
export const onEdit: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare function Hyperlink(props: any): JSX.Element;
|
|
2
|
+
declare namespace Hyperlink {
|
|
3
|
+
export namespace propTypes {
|
|
4
|
+
export const attributes: PropTypes.Validator<object>;
|
|
5
|
+
export const node: PropTypes.Validator<object>;
|
|
6
|
+
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
+
export const editor: PropTypes.Requireable<object>;
|
|
8
|
+
export const richTextAPI: PropTypes.Validator<object>;
|
|
9
|
+
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default Hyperlink;
|
|
13
|
+
import PropTypes from "prop-types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "dist/field-editor-rich-text.esm.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@contentful/f36-components": "^4.0.33",
|
|
30
30
|
"@contentful/f36-icons": "^4.1.1",
|
|
31
31
|
"@contentful/f36-tokens": "^4.0.0",
|
|
32
|
-
"@contentful/field-editor-reference": "^4.3.
|
|
33
|
-
"@contentful/field-editor-shared": "^1.
|
|
32
|
+
"@contentful/field-editor-reference": "^4.3.10",
|
|
33
|
+
"@contentful/field-editor-shared": "^1.1.3",
|
|
34
34
|
"@contentful/rich-text-plain-text-renderer": "^15.12.1",
|
|
35
35
|
"@contentful/rich-text-types": "^15.12.1",
|
|
36
36
|
"@udecode/plate-basic-marks": "^10.4.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.9.6",
|
|
65
65
|
"@babel/preset-env": "7.12.11",
|
|
66
66
|
"@babel/preset-react": "7.13.13",
|
|
67
|
-
"@contentful/field-editor-test-utils": "^1.
|
|
67
|
+
"@contentful/field-editor-test-utils": "^1.1.3",
|
|
68
68
|
"@contentful/rich-text-react-renderer": "^15.11.0",
|
|
69
69
|
"@types/is-hotkey": "^0.1.6",
|
|
70
70
|
"@udecode/plate-test-utils": "^3.2.0",
|
|
71
71
|
"react": ">=16.14.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "1d89ccc17095a0d9deffe66b1992d14e248fdaf6"
|
|
74
74
|
}
|