@contentful/field-editor-rich-text 3.18.1 → 3.19.0
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/dist/types/plugins/EmbeddedResourceInline/FetchingWrappedResourceInlineCard.d.ts +1 -1
- package/dist/types/plugins/EmbeddedResourceInline/LinkedResourceInline.d.ts +1 -1
- package/dist/types/plugins/shared/LinkedBlockWrapper.d.ts +1 -1
- package/dist/types/plugins/shared/LinkedInlineWrapper.d.ts +1 -1
- package/dist/types/plugins/shared/utils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ResourceLink } from '@contentful/field-editor-reference';
|
|
3
3
|
import { FieldAppSDK } from '@contentful/field-editor-shared';
|
|
4
4
|
interface FetchingWrappedResourceInlineCardProps {
|
|
5
|
-
link: ResourceLink['sys'];
|
|
5
|
+
link: ResourceLink<'Contentful:Entry'>['sys'];
|
|
6
6
|
sdk: FieldAppSDK;
|
|
7
7
|
isSelected: boolean;
|
|
8
8
|
isDisabled: boolean;
|
|
@@ -3,7 +3,7 @@ import { Element, RenderElementProps } from '../../internal';
|
|
|
3
3
|
export type LinkedResourceInlineProps = {
|
|
4
4
|
element: Element & {
|
|
5
5
|
data: {
|
|
6
|
-
target: ResourceLink
|
|
6
|
+
target: ResourceLink<'Contentful:Entry'>;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
attributes: Pick<RenderElementProps, 'attributes'>;
|
|
@@ -4,7 +4,7 @@ import { RenderElementProps } from '../../internal';
|
|
|
4
4
|
type LinkedBlockWrapperProps = React.PropsWithChildren<{
|
|
5
5
|
attributes: Pick<RenderElementProps, 'attributes'>;
|
|
6
6
|
card: JSX.Element;
|
|
7
|
-
link: ResourceLink | EntityLink;
|
|
7
|
+
link: ResourceLink<'Contentful:Entry'> | EntityLink;
|
|
8
8
|
}>;
|
|
9
9
|
export declare function LinkedBlockWrapper({ attributes, card, children, link }: LinkedBlockWrapperProps): JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -4,7 +4,7 @@ import { RenderElementProps } from '../../internal/types';
|
|
|
4
4
|
type LinkedInlineWrapperProps = React.PropsWithChildren<{
|
|
5
5
|
attributes: Pick<RenderElementProps, 'attributes'>;
|
|
6
6
|
card: JSX.Element;
|
|
7
|
-
link: ResourceLink | EntryLink;
|
|
7
|
+
link: ResourceLink<'Contentful:Entry'> | EntryLink;
|
|
8
8
|
}>;
|
|
9
9
|
export declare function LinkedInlineWrapper({ attributes, card, children, link, }: LinkedInlineWrapperProps): JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EntityLink, ResourceLink } from '@contentful/field-editor-reference';
|
|
2
|
-
export declare const getLinkEntityId: (link: EntityLink | ResourceLink) => string;
|
|
2
|
+
export declare const getLinkEntityId: (link: EntityLink | ResourceLink<'Contentful:Entry'>) => string;
|
|
3
3
|
export declare function truncateTitle(str: string, length: number): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rich-text",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"source": "./src/index.tsx",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@contentful/f36-icons": "^4.1.1",
|
|
45
45
|
"@contentful/f36-tokens": "^4.0.0",
|
|
46
46
|
"@contentful/f36-utils": "^4.19.0",
|
|
47
|
-
"@contentful/field-editor-reference": "^5.
|
|
47
|
+
"@contentful/field-editor-reference": "^5.23.0",
|
|
48
48
|
"@contentful/field-editor-shared": "^1.4.6",
|
|
49
49
|
"@contentful/rich-text-plain-text-renderer": "^16.0.4",
|
|
50
50
|
"@contentful/rich-text-types": "16.3.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"registry": "https://npm.pkg.github.com/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "7018fb86df27fcb2e0d4bdb475549367fe6ee87d"
|
|
90
90
|
}
|