@prismicio/editor-fields 0.4.48 → 0.4.49-alpha.feat-onboarding-guide.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/Selection.d.ts +1 -1
- package/dist/core/OnboardingGuide/OnboardingGuide.d.ts +22 -0
- package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +9 -0
- package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +7 -0
- package/dist/core/OnboardingGuide/components/OnboardingProvider.d.ts +20 -0
- package/dist/core/OnboardingGuide/components/OnboardingStepDialog.d.ts +12 -0
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +8 -0
- package/dist/core/OnboardingGuide/content.d.ts +3 -0
- package/dist/core/OnboardingGuide/index.d.ts +1 -0
- package/dist/core/OnboardingGuide/types.d.ts +39 -0
- package/dist/fields/FieldTextInput.d.ts +1 -1
- package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -2
- package/dist/fields/ImageField/Components/ImageFieldCard.d.ts +2 -2
- package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +4 -5
- package/dist/fields/ImageField/ImageField.d.ts +1 -2
- package/dist/fields/ImageField/useImageField.d.ts +2 -3
- package/dist/fields/RichTextField/coreExtensions/Placeholder.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +6 -4
- package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +1 -1
- package/dist/index.cjs.js +62 -30
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +17449 -16486
- package/package.json +19 -18
- package/dist/fields/ImageField/imageFieldUtils.d.ts +0 -30
package/package.json
CHANGED
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
"@prismicio/editor-support": "0.4.48",
|
|
5
5
|
"@prismicio/richtext": "2.1.1",
|
|
6
6
|
"@prismicio/types-internal": "2.6.0",
|
|
7
|
-
"@tiptap/core": "2.
|
|
8
|
-
"@tiptap/extension-bold": "2.
|
|
9
|
-
"@tiptap/extension-bullet-list": "2.
|
|
10
|
-
"@tiptap/extension-code-block": "2.
|
|
11
|
-
"@tiptap/extension-document": "2.
|
|
12
|
-
"@tiptap/extension-hard-break": "2.
|
|
13
|
-
"@tiptap/extension-heading": "2.
|
|
14
|
-
"@tiptap/extension-history": "2.
|
|
15
|
-
"@tiptap/extension-italic": "2.
|
|
16
|
-
"@tiptap/extension-list-item": "2.
|
|
17
|
-
"@tiptap/extension-ordered-list": "2.
|
|
18
|
-
"@tiptap/extension-paragraph": "2.
|
|
19
|
-
"@tiptap/extension-placeholder": "2.
|
|
20
|
-
"@tiptap/extension-text": "2.
|
|
21
|
-
"@tiptap/pm": "2.
|
|
22
|
-
"@tiptap/react": "2.
|
|
23
|
-
"@tiptap/suggestion": "2.
|
|
7
|
+
"@tiptap/core": "2.6.6",
|
|
8
|
+
"@tiptap/extension-bold": "2.6.6",
|
|
9
|
+
"@tiptap/extension-bullet-list": "2.6.6",
|
|
10
|
+
"@tiptap/extension-code-block": "2.6.6",
|
|
11
|
+
"@tiptap/extension-document": "2.6.6",
|
|
12
|
+
"@tiptap/extension-hard-break": "2.6.6",
|
|
13
|
+
"@tiptap/extension-heading": "2.6.6",
|
|
14
|
+
"@tiptap/extension-history": "2.6.6",
|
|
15
|
+
"@tiptap/extension-italic": "2.6.6",
|
|
16
|
+
"@tiptap/extension-list-item": "2.6.6",
|
|
17
|
+
"@tiptap/extension-ordered-list": "2.6.6",
|
|
18
|
+
"@tiptap/extension-paragraph": "2.6.6",
|
|
19
|
+
"@tiptap/extension-placeholder": "2.6.6",
|
|
20
|
+
"@tiptap/extension-text": "2.6.6",
|
|
21
|
+
"@tiptap/pm": "2.6.6",
|
|
22
|
+
"@tiptap/react": "2.6.6",
|
|
23
|
+
"@tiptap/suggestion": "2.6.6",
|
|
24
24
|
"clsx": "1.2.1",
|
|
25
25
|
"fp-ts": "2.12.3",
|
|
26
26
|
"io-ts": "2.2.18",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@types/react-dom": "18.3.0",
|
|
40
40
|
"@types/uuid": "9.0.8",
|
|
41
41
|
"@vitejs/plugin-react": "4.0.3",
|
|
42
|
+
"dom-confetti": "0.2.2",
|
|
42
43
|
"eslint": "8.50.0",
|
|
43
44
|
"eslint-config-prettier": "8.5.0",
|
|
44
45
|
"eslint-plugin-import": "2.28.0",
|
|
@@ -85,5 +86,5 @@
|
|
|
85
86
|
"sideEffects": false,
|
|
86
87
|
"stableVersion": "0.0.0",
|
|
87
88
|
"types": "./dist/index.d.ts",
|
|
88
|
-
"version": "0.4.
|
|
89
|
+
"version": "0.4.49-alpha.feat-onboarding-guide.0"
|
|
89
90
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ImageContent, ImageContentView } from "@prismicio/types-internal/lib/content";
|
|
2
|
-
import type { Image, ImageConstraint } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
export type Thumbnail = Readonly<ImageConstraint & {
|
|
4
|
-
name: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const MAIN_THUMBNAIL_NAME = "__MAIN_THUMBNAIL__";
|
|
7
|
-
export interface CropperImage {
|
|
8
|
-
thumbnail: Thumbnail;
|
|
9
|
-
contentView?: ImageContentView;
|
|
10
|
-
labels: ImageLabel;
|
|
11
|
-
}
|
|
12
|
-
type ImageLabel = [thumbnailName: string | undefined, size: string | undefined];
|
|
13
|
-
export declare function getImageLabel(thumbnail: Thumbnail, content: ImageContent | undefined, contentView: ImageContentView | undefined): ImageLabel;
|
|
14
|
-
export declare function getImageThumbnails(field: Image): readonly Thumbnail[];
|
|
15
|
-
export declare function getImageContentViews(field: Image, content: ImageContent): readonly [ImageContentView, ...(ImageContentView | undefined)[]];
|
|
16
|
-
export declare function updateImageContentAlt(thumbnailName: string, content: ImageContent, contentView: ImageContentView, value: string): ImageContent;
|
|
17
|
-
export declare function getConstraints(extImage: {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
}, constraints?: ImageConstraint): [number, number];
|
|
21
|
-
export declare function buildImageUrl(originUrl: string, rect: {
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
}, outputWidth: number, outputHeight: number, hasConstraints: boolean): string;
|
|
27
|
-
export declare function getPreviewImage(fromUrl: string): string;
|
|
28
|
-
export declare function getSearchTileImage(fromUrl: string): string;
|
|
29
|
-
export declare function getCarouselItemSource(view: ImageContentView | undefined): string | undefined;
|
|
30
|
-
export {};
|