@prismicio/editor-fields 0.4.84 → 0.4.86-alpha.jp-fix-navigation-icon.1
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/DocumentEditor.d.ts +0 -1
- package/dist/EditorConfig.d.ts +15 -3
- package/dist/GroupAndNestableWidgetSwitch.d.ts +0 -1
- package/dist/GroupEditor.d.ts +0 -1
- package/dist/NestableWidgetSwitch.d.ts +0 -1
- package/dist/SectionEditor.d.ts +0 -1
- package/dist/SliceSelection.d.ts +0 -1
- package/dist/core/APIExplorer/APIExplorer.d.ts +0 -1
- package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +0 -1
- package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +0 -1
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +0 -1
- package/dist/core/EditorErrorBoundary.d.ts +0 -1
- package/dist/core/MediaLibrary/MediaLibrary.d.ts +0 -1
- package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +0 -1
- package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +0 -1
- package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +0 -1
- package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +0 -1
- package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +0 -1
- package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +0 -1
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +0 -1
- package/dist/core/SelectionManager/SelectionManager.d.ts +0 -1
- package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +0 -1
- package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +0 -1
- package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +0 -1
- package/dist/core/service/onboarding.d.ts +0 -1
- package/dist/fields/BooleanField.d.ts +0 -1
- package/dist/fields/ColorField/ColorField.d.ts +0 -1
- package/dist/fields/DateField.d.ts +0 -1
- package/dist/fields/EmbedField/EmbedField.d.ts +0 -1
- package/dist/fields/EmbedField/EmbedFooter.d.ts +4 -1
- package/dist/fields/FieldTextInput.d.ts +0 -1
- package/dist/fields/GeoPointField/GeoPointField.d.ts +2 -5
- package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +0 -1
- package/dist/fields/ImageField/Components/ImageAltControl.d.ts +0 -1
- package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +0 -1
- package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +0 -1
- package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +0 -1
- package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +0 -1
- package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -2
- package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +1 -1
- package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +1 -27
- package/dist/fields/ImageField/ImageField.d.ts +0 -1
- package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +0 -1
- package/dist/fields/IntegrationField/IntegrationDialog.d.ts +0 -1
- package/dist/fields/IntegrationField/IntegrationField.d.ts +0 -1
- package/dist/fields/IntegrationField/IntegrationInput.d.ts +0 -1
- package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +0 -1
- package/dist/fields/KeyTextField.d.ts +0 -1
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +0 -1
- package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +0 -1
- package/dist/fields/LinkField/Documents/Filters.d.ts +0 -1
- package/dist/fields/LinkField/Documents/useFilters.d.ts +0 -1
- package/dist/fields/LinkField/LinkDescriptionCard.d.ts +0 -1
- package/dist/fields/LinkField/LinkField.d.ts +0 -1
- package/dist/fields/LinkField/LinkFieldActions.d.ts +0 -1
- package/dist/fields/LinkField/LinkImageCard.d.ts +0 -1
- package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +0 -1
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +0 -1
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +0 -1
- package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +0 -1
- package/dist/fields/LinkField/useLinkField.d.ts +0 -1
- package/dist/fields/MetadataTextField.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +0 -1
- package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +0 -1
- package/dist/fields/RichTextField/RichTextField.d.ts +3 -2
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/Text.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +0 -1
- package/dist/fields/RichTextField/extensions/Embed/useEmbedView.d.ts +10 -2
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +0 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +0 -1
- package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +0 -1
- package/dist/fields/RichTextField/extensions/Table/plugins/tableCellFocusPlugin.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/plugins/tableHandles/utils.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/utils.d.ts +1 -1
- package/dist/fields/RichTextField/models/EditorExtension.d.ts +1 -1
- package/dist/fields/SelectField.d.ts +0 -1
- package/dist/fields/TableField/TableField.d.ts +0 -1
- package/dist/fields/TimestampField.d.ts +0 -1
- package/dist/fields/UIDField.d.ts +0 -1
- package/dist/index.cjs.js +50 -43
- package/dist/index.es.js +33693 -25601
- package/dist/slices/SharedSliceEditor.d.ts +0 -1
- package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +0 -1
- package/dist/zones/NonRepeatableZoneEditor.d.ts +0 -1
- package/dist/zones/RepeatableZoneEditor.d.ts +0 -1
- package/dist/zones/SlicePrimaryZoneEditor.d.ts +0 -1
- package/dist/zones/SliceZoneEditor.d.ts +0 -1
- package/dist/zones/StaticZoneEditor.d.ts +0 -1
- package/package.json +11 -65
- package/dist/core/Collaboration/CollaborationPresence.d.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type IconName } from "@prismicio/editor-ui";
|
|
3
2
|
import type { RichText } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
+
import { Transaction } from "@tiptap/pm/state";
|
|
4
4
|
import type { ExtendedRichTextContent } from "./types";
|
|
5
5
|
interface Props<TContent extends ExtendedRichTextContent> {
|
|
6
6
|
id: string;
|
|
@@ -19,5 +19,6 @@ interface Props<TContent extends ExtendedRichTextContent> {
|
|
|
19
19
|
shouldReturnEmptyContent?: boolean;
|
|
20
20
|
icon?: IconName;
|
|
21
21
|
}
|
|
22
|
-
export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element
|
|
22
|
+
export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element;
|
|
23
|
+
export declare function isTransactionFromExternalUpdate(transaction: Transaction): boolean;
|
|
23
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import type { TextBlock } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
|
|
4
4
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ErrorBoundary } from "@prismicio/editor-ui";
|
|
1
2
|
import type { EmbedContent } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import { type KeyboardEvent, type RefObject } from "react";
|
|
3
4
|
import type { EmbedViewProps } from "./EmbedView";
|
|
@@ -5,10 +6,13 @@ export declare function useEmbedView(props: EmbedViewProps, inputRef: RefObject<
|
|
|
5
6
|
inputRef: RefObject<HTMLInputElement>;
|
|
6
7
|
containerRef: RefObject<HTMLDivElement>;
|
|
7
8
|
onKeyDown: (event: KeyboardEvent<Element>) => void;
|
|
8
|
-
url:
|
|
9
|
+
url: {
|
|
10
|
+
debouncedValue: string;
|
|
11
|
+
set: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
9
14
|
urlChanged: (newUrl: string) => void;
|
|
10
15
|
onContentChange: (content?: EmbedContent) => void;
|
|
11
|
-
debouncedUrl: string;
|
|
12
16
|
content: ({
|
|
13
17
|
embed_url: string;
|
|
14
18
|
type: string;
|
|
@@ -28,4 +32,8 @@ export declare function useEmbedView(props: EmbedViewProps, inputRef: RefObject<
|
|
|
28
32
|
__TYPE__: "EmbedContent";
|
|
29
33
|
all: unknown;
|
|
30
34
|
}) | undefined;
|
|
35
|
+
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
36
|
+
errorBoundary: RefObject<ErrorBoundary>;
|
|
37
|
+
onError: () => void;
|
|
38
|
+
clearField: () => void;
|
|
31
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import { Node as ProseMirrorNode, type Schema } from "@tiptap/pm/model";
|
|
4
4
|
type TableRowBlock = TableContent["content"][number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
4
4
|
type TableRowBlock = TableContent["content"][number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import type { Block } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
4
4
|
export declare function mapTableCellToParagraph(id: string, schema: Schema, block: Block, threads?: ThreadData<BaseMetadata>[]): ProseMirrorNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
4
4
|
type TableRowBlock = TableContent["content"][number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Editor } from "@tiptap/core";
|
|
1
|
+
import { type Editor } from "@tiptap/core";
|
|
2
2
|
import { type Schema } from "@tiptap/pm/model";
|
|
3
3
|
import type { EditorState, Selection, Transaction } from "@tiptap/pm/state";
|
|
4
4
|
export declare function getNodeFromSchema(schema: Schema, name: string): import("prosemirror-model").NodeType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseMetadata, ThreadData } from "@liveblocks/
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/client";
|
|
2
2
|
import type { EmbedBlock, ImageBlock, TextBlock } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { Node } from "@tiptap/core";
|
|
4
4
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|