@prismicio/editor-fields 0.1.0 → 0.2.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/DocumentEditor.d.ts +2 -0
- package/dist/DocumentEditorConfig.d.ts +8 -0
- package/dist/GroupEditor.d.ts +1 -1
- package/dist/NestableWidgetSwitch.d.ts +3 -3
- package/dist/domain/Document.d.ts +1 -1
- package/dist/domain/Group.d.ts +2 -2
- package/dist/domain/NestableWidget.d.ts +11 -12
- package/dist/domain/Section.d.ts +1 -1
- package/dist/domain/StaticWidget.d.ts +3 -3
- package/dist/domain/Widget.d.ts +2 -3
- package/dist/domain/fields/ImageField/ExternalImage.d.ts +1 -1
- package/dist/domain/fields/ImageField/ImageField.d.ts +1 -1
- package/dist/domain/slices/LegacySlice.d.ts +0 -2
- package/dist/domain/slices/SharedSlice.d.ts +1 -1
- package/dist/domain/zones/NonRepeatableZone.d.ts +3 -3
- package/dist/domain/zones/RepeatableZone.d.ts +2 -2
- package/dist/domain/zones/SliceZone.d.ts +5 -8
- package/dist/domain/zones/StaticZone.d.ts +2 -1
- package/dist/fields/BooleanField.d.ts +1 -1
- package/dist/fields/DateField.d.ts +11 -0
- package/dist/fields/ImageField/ImageField.d.ts +3 -3
- package/dist/fields/KeyTextField.d.ts +1 -1
- package/dist/fields/LinkField/LinkField.d.ts +12 -0
- package/dist/fields/LinkField/LinkFieldActions.d.ts +7 -0
- package/dist/fields/LinkField/index.d.ts +1 -0
- package/dist/fields/NumberField.d.ts +1 -1
- package/dist/fields/RichTextField/RichTextField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/coreExtensions/Text.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Link.d.ts +41 -2
- package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +1 -1
- package/dist/fields/RichTextField/models/EditorExtension.d.ts +2 -2
- package/dist/fields/RichTextField/models/RichTextConfig.d.ts +1 -1
- package/dist/fields/RichTextField/models/Span.d.ts +1 -1
- package/dist/fields/SelectField.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +16768 -16196
- package/dist/index.umd.js +34 -34
- package/dist/slices/CompositeSliceEditor.d.ts +1 -1
- package/dist/slices/LegacySliceEditor.d.ts +3 -3
- package/dist/slices/SharedSliceEditor.d.ts +1 -1
- package/dist/zones/RepeatableZoneEditor.d.ts +1 -1
- package/dist/zones/SliceZoneEditor.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CompositeSliceContent } from "@prismicio/types-internal/lib/content";
|
|
1
2
|
import type { CompositeSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";
|
|
2
|
-
import type { CompositeSliceContent } from "@prismicio/types-internal/lib/documents/widgets/slices";
|
|
3
3
|
import type { FC } from "react";
|
|
4
4
|
declare type CompositeSliceEditorProps = Readonly<{
|
|
5
5
|
compositeSlice: CompositeSlice;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { SimpleSliceContent } from "@prismicio/types-internal/lib/content";
|
|
1
2
|
import type { LegacySlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";
|
|
2
3
|
import type { FC } from "react";
|
|
3
|
-
import { type LegacySliceContent } from "../domain/slices/LegacySlice";
|
|
4
4
|
declare type LegacySliceEditorProps = Readonly<{
|
|
5
|
-
content:
|
|
5
|
+
content: SimpleSliceContent | undefined;
|
|
6
6
|
id: string;
|
|
7
7
|
legacySlice: LegacySlice;
|
|
8
|
-
onContentChange: (content:
|
|
8
|
+
onContentChange: (content: SimpleSliceContent | undefined) => void;
|
|
9
9
|
readOnly: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const LegacySliceEditor: FC<LegacySliceEditorProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { SharedSliceContent } from "@prismicio/types-internal/lib/content";
|
|
1
2
|
import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes/widgets/slices";
|
|
2
|
-
import type { SharedSliceContent } from "@prismicio/types-internal/lib/documents/widgets/slices";
|
|
3
3
|
import { type FC } from "react";
|
|
4
4
|
declare type SharedSliceEditorProps = Readonly<{
|
|
5
5
|
content: SharedSliceContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GroupItemContent } from "@prismicio/types-internal/lib/
|
|
1
|
+
import type { GroupItemContent } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import { type FC } from "react";
|
|
3
3
|
import { type RepeatableZone } from "../domain/zones/RepeatableZone";
|
|
4
4
|
declare type RepeatableZoneEditorProps = Readonly<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { SlicesContent as SliceZoneContent } from "@prismicio/types-internal/lib/content";
|
|
1
2
|
import type { StaticSlices as SliceZone } from "@prismicio/types-internal/lib/customtypes/widgets/slices/Slices";
|
|
2
|
-
import type { SlicesContent as SliceZoneContent } from "@prismicio/types-internal/lib/documents/widgets/slices";
|
|
3
3
|
import type { FC } from "react";
|
|
4
4
|
declare type SliceZoneEditorProps = Readonly<{
|
|
5
5
|
content: SliceZoneContent | undefined;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@floating-ui/react-dom-interactions": "0.9.3",
|
|
4
|
-
"@prismicio/editor-support": "0.
|
|
4
|
+
"@prismicio/editor-support": "0.2.0",
|
|
5
5
|
"@prismicio/richtext": "2.1.1",
|
|
6
|
-
"@prismicio/types-internal": "1.
|
|
6
|
+
"@prismicio/types-internal": "1.5.1",
|
|
7
7
|
"@tiptap/core": "2.0.0-beta.183",
|
|
8
8
|
"@tiptap/extension-bold": "2.0.0-beta.28",
|
|
9
9
|
"@tiptap/extension-bullet-list": "2.0.0-beta.29",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"module": "./dist/index.es.js",
|
|
64
64
|
"name": "@prismicio/editor-fields",
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@prismicio/editor-ui": "0.
|
|
66
|
+
"@prismicio/editor-ui": "0.2.0",
|
|
67
67
|
"react": "18",
|
|
68
68
|
"react-dom": "18"
|
|
69
69
|
},
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"stableVersion": "0.0.0",
|
|
83
83
|
"types": "./dist/index.d.ts",
|
|
84
|
-
"version": "0.
|
|
84
|
+
"version": "0.2.0"
|
|
85
85
|
}
|