@contentful/field-editor-reference 5.30.8 → 5.30.10
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/assets/MultipleMediaEditor.d.ts +2 -2
- package/dist/types/assets/SingleMediaEditor.d.ts +2 -2
- package/dist/types/assets/WrappedAssetCard/AssetCardActions.d.ts +3 -3
- package/dist/types/assets/WrappedAssetCard/FetchingWrappedAssetCard.d.ts +2 -2
- package/dist/types/assets/WrappedAssetCard/WrappedAssetCard.d.ts +2 -2
- package/dist/types/assets/WrappedAssetCard/WrappedAssetLink.d.ts +2 -2
- package/dist/types/common/EntityStore.d.ts +1 -1
- package/dist/types/common/MultipleReferenceEditor.d.ts +1 -1
- package/dist/types/common/ReferenceEditor.d.ts +1 -1
- package/dist/types/common/SingleReferenceEditor.d.ts +1 -1
- package/dist/types/common/SortableLinkList.d.ts +1 -1
- package/dist/types/common/queryClient.d.ts +1 -1
- package/dist/types/components/AssetThumbnail/AssetThumbnail.d.ts +2 -2
- package/dist/types/components/CreateEntryLinkButton/CreateEntryLinkButton.d.ts +1 -1
- package/dist/types/components/CreateEntryLinkButton/CreateEntryMenuTrigger.d.ts +1 -1
- package/dist/types/components/EntityStatusBadge/EntityStatusBadge.d.ts +2 -2
- package/dist/types/components/LinkActions/CombinedLinkActions.d.ts +2 -2
- package/dist/types/components/LinkActions/LinkActions.d.ts +1 -1
- package/dist/types/components/LinkActions/LinkEntityActions.d.ts +2 -2
- package/dist/types/components/LinkActions/NoLinkPermissionsInfo.d.ts +2 -2
- package/dist/types/components/MissingAssetCard/MissingAssetCard.d.ts +2 -2
- package/dist/types/components/MissingEntityCard/MissingEntityCard.d.ts +2 -2
- package/dist/types/components/ResourceEntityErrorCard/ResourceEntityErrorCard.d.ts +2 -2
- package/dist/types/components/ResourceEntityErrorCard/UnsupportedEntityCard.d.ts +2 -2
- package/dist/types/components/ScheduledIconWithTooltip/ScheduleTooltip.d.ts +1 -1
- package/dist/types/components/ScheduledIconWithTooltip/ScheduledIconWithTooltip.d.ts +1 -1
- package/dist/types/components/SpaceName/SpaceName.d.ts +2 -2
- package/dist/types/entries/MultipleEntryReferenceEditor.d.ts +2 -2
- package/dist/types/entries/SingleEntryReferenceEditor.d.ts +2 -2
- package/dist/types/entries/WrappedEntryCard/FetchingWrappedEntryCard.d.ts +2 -2
- package/dist/types/entries/WrappedEntryCard/WrappedEntryCard.d.ts +1 -1
- package/dist/types/resources/Cards/ContentfulEntryCard.d.ts +2 -2
- package/dist/types/resources/Cards/ExternalEntryCard.d.ts +2 -2
- package/dist/types/resources/Cards/ResourceCard.d.ts +2 -2
- package/dist/types/resources/ExternalResourceCard/ExternalResourceCard.d.ts +1 -1
- package/dist/types/resources/MultipleResourceReferenceEditor.d.ts +2 -2
- package/dist/types/resources/SingleResourceReferenceEditor.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
3
|
type EditorProps = Pick<ReferenceEditorProps, Exclude<keyof ReferenceEditorProps, 'hasCardEditActions'>>;
|
|
4
|
-
export declare function MultipleMediaEditor(props: EditorProps): JSX.Element;
|
|
4
|
+
export declare function MultipleMediaEditor(props: EditorProps): React.JSX.Element;
|
|
5
5
|
export declare namespace MultipleMediaEditor {
|
|
6
6
|
var defaultProps: {
|
|
7
7
|
isInitiallyDisabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
3
|
type EditorProps = Pick<ReferenceEditorProps, Exclude<keyof ReferenceEditorProps, 'hasCardEditActions'>>;
|
|
4
|
-
export declare function SingleMediaEditor(props: EditorProps): JSX.Element;
|
|
4
|
+
export declare function SingleMediaEditor(props: EditorProps): React.JSX.Element;
|
|
5
5
|
export declare namespace SingleMediaEditor {
|
|
6
6
|
var defaultProps: {
|
|
7
7
|
isInitiallyDisabled: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { File } from '../../types';
|
|
3
3
|
export declare function renderAssetInfo(props: {
|
|
4
4
|
entityFile: File;
|
|
5
|
-
}): JSX.Element[];
|
|
5
|
+
}): React.JSX.Element[];
|
|
6
6
|
export declare function renderActions(props: {
|
|
7
7
|
onEdit?: () => void;
|
|
8
8
|
onRemove?: () => void;
|
|
9
9
|
isDisabled: boolean;
|
|
10
10
|
entityFile?: File;
|
|
11
|
-
}): (JSX.Element | null)[];
|
|
11
|
+
}): (React.JSX.Element | null)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { CustomCardRenderer, RenderCustomMissingEntityCard } from '../../common/customCardTypes';
|
|
3
3
|
import { Action, FieldAppSDK, ViewType, RenderDragFn } from '../../types';
|
|
4
4
|
type FetchingWrappedAssetCardProps = {
|
|
@@ -13,5 +13,5 @@ type FetchingWrappedAssetCardProps = {
|
|
|
13
13
|
renderCustomCard?: CustomCardRenderer;
|
|
14
14
|
renderCustomMissingEntityCard?: RenderCustomMissingEntityCard;
|
|
15
15
|
};
|
|
16
|
-
export declare function FetchingWrappedAssetCard(props: FetchingWrappedAssetCardProps): JSX.Element;
|
|
16
|
+
export declare function FetchingWrappedAssetCard(props: FetchingWrappedAssetCardProps): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SpaceAPI } from '@contentful/app-sdk';
|
|
3
3
|
import { Asset, RenderDragFn } from '../../types';
|
|
4
4
|
export interface WrappedAssetCardProps {
|
|
@@ -19,7 +19,7 @@ export interface WrappedAssetCardProps {
|
|
|
19
19
|
isLocalized?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare const WrappedAssetCard: {
|
|
22
|
-
(props: WrappedAssetCardProps): JSX.Element;
|
|
22
|
+
(props: WrappedAssetCardProps): React.JSX.Element;
|
|
23
23
|
defaultProps: {
|
|
24
24
|
isClickable: boolean;
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SpaceAPI } from '@contentful/field-editor-shared';
|
|
3
3
|
import { Asset, RenderDragFn } from '../../types';
|
|
4
4
|
export interface WrappedAssetLinkProps {
|
|
@@ -14,4 +14,4 @@ export interface WrappedAssetLinkProps {
|
|
|
14
14
|
renderDragHandle?: RenderDragFn;
|
|
15
15
|
useLocalizedEntityStatus?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const WrappedAssetLink: (props: WrappedAssetLinkProps) => JSX.Element;
|
|
17
|
+
export declare const WrappedAssetLink: (props: WrappedAssetLinkProps) => React.JSX.Element;
|
|
@@ -66,5 +66,5 @@ export declare function useResource<R extends Resource = Resource>(resourceType:
|
|
|
66
66
|
data: ResourceInfo<R> | undefined;
|
|
67
67
|
error: unknown;
|
|
68
68
|
};
|
|
69
|
-
declare function EntityProvider({ children, ...props }: React.PropsWithChildren<EntityStoreProps>): JSX.Element;
|
|
69
|
+
declare function EntityProvider({ children, ...props }: React.PropsWithChildren<EntityStoreProps>): React.JSX.Element;
|
|
70
70
|
export { EntityProvider, useEntityLoader };
|
|
@@ -19,7 +19,7 @@ export declare function MultipleReferenceEditor(props: ReferenceEditorProps & {
|
|
|
19
19
|
entityType: ContentEntityType;
|
|
20
20
|
children: (props: ReferenceEditorProps & ChildProps) => React.ReactElement;
|
|
21
21
|
setIndexToUpdate?: React.Dispatch<React.SetStateAction<number | undefined>>;
|
|
22
|
-
}): JSX.Element;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
23
|
export declare namespace MultipleReferenceEditor {
|
|
24
24
|
var defaultProps: {
|
|
25
25
|
hasCardEditActions: boolean;
|
|
@@ -37,7 +37,7 @@ export interface ReferenceEditorProps {
|
|
|
37
37
|
export type CustomActionProps = LinkActionsProps;
|
|
38
38
|
export declare function ReferenceEditor<T>(props: ReferenceEditorProps & {
|
|
39
39
|
children: FieldConnector<T>['props']['children'];
|
|
40
|
-
}): JSX.Element;
|
|
40
|
+
}): React.JSX.Element;
|
|
41
41
|
export declare namespace ReferenceEditor {
|
|
42
42
|
var defaultProps: {
|
|
43
43
|
isInitiallyDisabled: boolean;
|
|
@@ -14,7 +14,7 @@ type ChildProps = {
|
|
|
14
14
|
export declare function SingleReferenceEditor(props: ReferenceEditorProps & {
|
|
15
15
|
entityType: ContentEntityType;
|
|
16
16
|
children: (props: ChildProps) => React.ReactElement;
|
|
17
|
-
}): JSX.Element;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
18
|
export declare namespace SingleReferenceEditor {
|
|
19
19
|
var defaultProps: {
|
|
20
20
|
hasCardEditActions: boolean;
|
|
@@ -23,5 +23,5 @@ type SortableLinkListProps<T> = ReferenceEditorProps & {
|
|
|
23
23
|
};
|
|
24
24
|
export declare const SortableLinkList: <T extends {
|
|
25
25
|
sys: any;
|
|
26
|
-
}>({ items, isDisabled, className, children, onSortStart, onSortEnd, updateBeforeSortStart, sortingStrategy, }: SortableLinkListProps<T>) => JSX.Element;
|
|
26
|
+
}>({ items, isDisabled, className, children, onSortStart, onSortEnd, updateBeforeSortStart, sortingStrategy, }: SortableLinkListProps<T>) => React.JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -6,4 +6,4 @@ export declare const useQuery: typeof useRQ;
|
|
|
6
6
|
* Provides access to a query client either by sharing an existing client or
|
|
7
7
|
* creating a new one.
|
|
8
8
|
*/
|
|
9
|
-
export declare function SharedQueryClientProvider({ children }: React.PropsWithChildren<{}>): JSX.Element;
|
|
9
|
+
export declare function SharedQueryClientProvider({ children }: React.PropsWithChildren<{}>): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { File } from '../../types';
|
|
3
3
|
interface AssetThumbnailProps {
|
|
4
4
|
file: File;
|
|
5
5
|
}
|
|
6
|
-
export declare function AssetThumbnail(props: AssetThumbnailProps): JSX.Element;
|
|
6
|
+
export declare function AssetThumbnail(props: AssetThumbnailProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -15,5 +15,5 @@ interface CreateEntryLinkButtonProps {
|
|
|
15
15
|
position: 'bottom-left' | 'bottom-right';
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
export declare const CreateEntryLinkButton: ({ contentTypes, onSelect, customDropdownItems, text, testId, hasPlusIcon, useExperimentalStyles, suggestedContentTypeId, dropdownSettings, disabled, }: CreateEntryLinkButtonProps) => JSX.Element;
|
|
18
|
+
export declare const CreateEntryLinkButton: ({ contentTypes, onSelect, customDropdownItems, text, testId, hasPlusIcon, useExperimentalStyles, suggestedContentTypeId, dropdownSettings, disabled, }: CreateEntryLinkButtonProps) => React.JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -24,7 +24,7 @@ interface CreateEntryMenuTrigger {
|
|
|
24
24
|
menuProps?: Omit<MenuProps, 'children'>;
|
|
25
25
|
}
|
|
26
26
|
export declare const CreateEntryMenuTrigger: {
|
|
27
|
-
({ contentTypes, suggestedContentTypeId, contentTypesLabel, onSelect, testId, dropdownSettings, customDropdownItems, children, menuProps, }: CreateEntryMenuTrigger): JSX.Element;
|
|
27
|
+
({ contentTypes, suggestedContentTypeId, contentTypesLabel, onSelect, testId, dropdownSettings, customDropdownItems, children, menuProps, }: CreateEntryMenuTrigger): React.JSX.Element;
|
|
28
28
|
defaultProps: {
|
|
29
29
|
testId: string;
|
|
30
30
|
contentTypesLabel: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type EntityStatus } from '@contentful/f36-components';
|
|
3
3
|
import { type UseScheduledActionsProps } from '../ScheduledIconWithTooltip/ScheduledIconWithTooltip';
|
|
4
4
|
type EntityStatusBadgeProps = UseScheduledActionsProps & {
|
|
5
5
|
status: EntityStatus;
|
|
6
6
|
};
|
|
7
|
-
export declare function EntityStatusBadge({ entityId, entityType, getEntityScheduledActions, status, ...props }: EntityStatusBadgeProps): JSX.Element;
|
|
7
|
+
export declare function EntityStatusBadge({ entityId, entityType, getEntityScheduledActions, status, ...props }: EntityStatusBadgeProps): React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { LinkActionsProps } from './LinkActions';
|
|
3
3
|
/**
|
|
4
4
|
* Alternative, experimental alternative to <LinkActions /> that is planned to
|
|
@@ -7,4 +7,4 @@ import { LinkActionsProps } from './LinkActions';
|
|
|
7
7
|
* Places both actions to create and link new, as well as link existing, behind
|
|
8
8
|
* one action dropdown and introduces new copy for action labels.
|
|
9
9
|
*/
|
|
10
|
-
export declare function CombinedLinkActions(props: LinkActionsProps): JSX.Element | null;
|
|
10
|
+
export declare function CombinedLinkActions(props: LinkActionsProps): React.JSX.Element | null;
|
|
@@ -23,4 +23,4 @@ export declare const testIds: {
|
|
|
23
23
|
createAndLinkWrapper: string;
|
|
24
24
|
linkExisting: string;
|
|
25
25
|
};
|
|
26
|
-
export declare function LinkActions(props: LinkActionsProps): JSX.Element | null;
|
|
26
|
+
export declare function LinkActions(props: LinkActionsProps): React.JSX.Element | null;
|
|
@@ -17,8 +17,8 @@ type LinkEntityActionsProps = {
|
|
|
17
17
|
export declare function useLinkActionsProps(props: LinkEntityActionsProps): LinkActionsProps;
|
|
18
18
|
export declare function LinkEntityActions({ renderCustomActions, ...props }: LinkActionsProps & {
|
|
19
19
|
renderCustomActions?: (props: LinkActionsProps) => React.ReactElement;
|
|
20
|
-
}): JSX.Element;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
21
|
export declare function CombinedLinkEntityActions({ renderCustomActions, ...props }: LinkActionsProps & {
|
|
22
22
|
renderCustomActions?: (props: LinkActionsProps) => React.ReactElement;
|
|
23
|
-
}): JSX.Element;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function NoLinkPermissionsInfo(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function NoLinkPermissionsInfo(): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
type MissingEntityCardProps = {
|
|
3
3
|
customMessage?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -6,5 +6,5 @@ type MissingEntityCardProps = {
|
|
|
6
6
|
onRemove?: Function;
|
|
7
7
|
providerName?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare function MissingEntityCard(props: MissingEntityCardProps): JSX.Element;
|
|
9
|
+
export declare function MissingEntityCard(props: MissingEntityCardProps): React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type ResourceEntityErrorCardProps = {
|
|
3
3
|
linkType: string;
|
|
4
4
|
error: unknown;
|
|
@@ -6,5 +6,5 @@ type ResourceEntityErrorCardProps = {
|
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
onRemove?: Function;
|
|
8
8
|
};
|
|
9
|
-
export declare function ResourceEntityErrorCard(props: ResourceEntityErrorCardProps): JSX.Element;
|
|
9
|
+
export declare function ResourceEntityErrorCard(props: ResourceEntityErrorCardProps): React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type UnsupportedEntityCardProps = {
|
|
3
3
|
isSelected?: boolean;
|
|
4
4
|
onRemove?: Function;
|
|
5
5
|
};
|
|
6
|
-
export declare function UnsupportedEntityCard(props: UnsupportedEntityCardProps): JSX.Element;
|
|
6
|
+
export declare function UnsupportedEntityCard(props: UnsupportedEntityCardProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -12,5 +12,5 @@ type ScheduledIconWithTooltipProps = {
|
|
|
12
12
|
entityId: string;
|
|
13
13
|
children: React.ReactElement;
|
|
14
14
|
};
|
|
15
|
-
export declare const ScheduledIconWithTooltip: ({ entityType, entityId, getEntityScheduledActions, children, }: ScheduledIconWithTooltipProps) => JSX.Element | null;
|
|
15
|
+
export declare const ScheduledIconWithTooltip: ({ entityType, entityId, getEntityScheduledActions, children, }: ScheduledIconWithTooltipProps) => React.JSX.Element | null;
|
|
16
16
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface SourceProps {
|
|
3
3
|
spaceName: string;
|
|
4
4
|
environmentName?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function SpaceName(props: SourceProps): JSX.Element;
|
|
6
|
+
export declare function SpaceName(props: SourceProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
|
-
export declare function MultipleEntryReferenceEditor(props: ReferenceEditorProps): JSX.Element;
|
|
3
|
+
export declare function MultipleEntryReferenceEditor(props: ReferenceEditorProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
|
-
export declare function SingleEntryReferenceEditor(props: ReferenceEditorProps): JSX.Element;
|
|
3
|
+
export declare function SingleEntryReferenceEditor(props: ReferenceEditorProps): React.JSX.Element;
|
|
4
4
|
export declare namespace SingleEntryReferenceEditor {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
isInitiallyDisabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { RenderCustomMissingEntityCard } from '../../common/customCardTypes';
|
|
3
3
|
import { ReferenceEditorProps } from '../../common/ReferenceEditor';
|
|
4
4
|
import { ContentType, RenderDragFn } from '../../types';
|
|
@@ -15,4 +15,4 @@ export type EntryCardReferenceEditorProps = ReferenceEditorProps & {
|
|
|
15
15
|
renderCustomMissingEntityCard?: RenderCustomMissingEntityCard;
|
|
16
16
|
isBeingDragged?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare function FetchingWrappedEntryCard(props: EntryCardReferenceEditorProps): JSX.Element;
|
|
18
|
+
export declare function FetchingWrappedEntryCard(props: EntryCardReferenceEditorProps): React.JSX.Element;
|
|
@@ -26,7 +26,7 @@ export interface WrappedEntryCardProps {
|
|
|
26
26
|
isLocalized?: boolean;
|
|
27
27
|
useLocalizedEntityStatus?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare function WrappedEntryCard(props: WrappedEntryCardProps): JSX.Element;
|
|
29
|
+
export declare function WrappedEntryCard(props: WrappedEntryCardProps): React.JSX.Element;
|
|
30
30
|
export declare namespace WrappedEntryCard {
|
|
31
31
|
var defaultProps: {
|
|
32
32
|
isClickable: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Entry } from '@contentful/field-editor-shared';
|
|
3
3
|
import { RenderDragFn, ResourceInfo } from '../../types';
|
|
4
4
|
export type CardActionsHandlers = {
|
|
@@ -17,5 +17,5 @@ type ContentfulEntryCardProps = {
|
|
|
17
17
|
renderDragHandle?: RenderDragFn;
|
|
18
18
|
getEntryRouteHref: (entryRoute: EntryRoute) => string;
|
|
19
19
|
} & CardActionsHandlers;
|
|
20
|
-
export declare function ContentfulEntryCard({ info, isDisabled, renderDragHandle, onRemove, onMoveTop, onMoveBottom, getEntryRouteHref, }: ContentfulEntryCardProps): JSX.Element;
|
|
20
|
+
export declare function ContentfulEntryCard({ info, isDisabled, renderDragHandle, onRemove, onMoveTop, onMoveBottom, getEntryRouteHref, }: ContentfulEntryCardProps): React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { type ExternalResourceCardProps } from '../ExternalResourceCard/ExternalResourceCard';
|
|
3
3
|
type ExternalEntryCardProps = ExternalResourceCardProps;
|
|
4
|
-
export declare function ExternalEntryCard(props: ExternalEntryCardProps): JSX.Element;
|
|
4
|
+
export declare function ExternalEntryCard(props: ExternalEntryCardProps): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { RenderDragFn, ResourceLink } from '../../types';
|
|
3
3
|
import { CardActionsHandlers, EntryRoute } from './ContentfulEntryCard';
|
|
4
4
|
type ResourceCardProps = {
|
|
@@ -8,5 +8,5 @@ type ResourceCardProps = {
|
|
|
8
8
|
renderDragHandle?: RenderDragFn;
|
|
9
9
|
getEntryRouteHref: (entryRoute: EntryRoute) => string;
|
|
10
10
|
} & CardActionsHandlers;
|
|
11
|
-
export declare function ResourceCard(props: ResourceCardProps): JSX.Element;
|
|
11
|
+
export declare function ResourceCard(props: ResourceCardProps): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -16,7 +16,7 @@ export interface ExternalResourceCardProps {
|
|
|
16
16
|
hasCardMoveActions?: boolean;
|
|
17
17
|
hasCardRemoveActions?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, isSelected, }: ExternalResourceCardProps): JSX.Element;
|
|
19
|
+
export declare function ExternalResourceCard({ info, isClickable, onEdit, onRemove, onMoveTop, onMoveBottom, hasCardEditActions, hasCardMoveActions, hasCardRemoveActions, renderDragHandle, onClick, isSelected, }: ExternalResourceCardProps): React.JSX.Element;
|
|
20
20
|
export declare namespace ExternalResourceCard {
|
|
21
21
|
var defaultProps: {
|
|
22
22
|
isClickable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
3
|
import { EntryRoute } from './Cards/ContentfulEntryCard';
|
|
4
4
|
export declare function MultipleResourceReferenceEditor(props: ReferenceEditorProps & {
|
|
5
5
|
apiUrl: string;
|
|
6
6
|
getEntryRouteHref: (entryRoute: EntryRoute) => string;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReferenceEditorProps } from '../common/ReferenceEditor';
|
|
3
3
|
import { EntryRoute } from './Cards/ContentfulEntryCard';
|
|
4
4
|
export declare function SingleResourceReferenceEditor(props: ReferenceEditorProps & {
|
|
5
5
|
getEntryRouteHref: (entryRoute: EntryRoute) => string;
|
|
6
6
|
apiUrl: string;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.10",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"tsc": "tsc -p ./ --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@contentful/f36-components": "^4.
|
|
39
|
-
"@contentful/f36-icons": "^4.
|
|
38
|
+
"@contentful/f36-components": "^4.70.0",
|
|
39
|
+
"@contentful/f36-icons": "^4.29.0",
|
|
40
40
|
"@contentful/f36-tokens": "^4.0.5",
|
|
41
|
-
"@contentful/field-editor-shared": "^1.6.
|
|
41
|
+
"@contentful/field-editor-shared": "^1.6.3",
|
|
42
42
|
"@contentful/mimetype": "^2.2.29",
|
|
43
43
|
"@dnd-kit/core": "^6.0.8",
|
|
44
44
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@contentful/app-sdk": "^4.29.0",
|
|
57
|
-
"@contentful/field-editor-test-utils": "^1.5.
|
|
57
|
+
"@contentful/field-editor-test-utils": "^1.5.2",
|
|
58
58
|
"@testing-library/react-hooks": "^8.0.1"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"registry": "https://npm.pkg.github.com/"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d717a9230fac05999c0f4804087740b5666efb4a"
|
|
68
68
|
}
|