@prismicio/editor-fields 0.4.58 → 0.4.59-alpha.feat-track-onboarding-tutorial.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/EditorConfig.d.ts +16 -1
- package/dist/SectionEditor.d.ts +5 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +53 -53
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +2 -0
- package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +8 -0
- package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +7 -0
- package/dist/core/SeoMetadata/index.d.ts +2 -0
- package/dist/core/document.d.ts +2 -6
- package/dist/core/service/aiSeoMetadata.d.ts +30 -0
- package/dist/core/service/customType.d.ts +15 -8
- package/dist/core/service/document.d.ts +98 -98
- package/dist/core/service/documentSearch.d.ts +34 -34
- package/dist/core/service/index.d.ts +1 -0
- package/dist/core/service/onboarding.d.ts +3 -0
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +18 -10
- package/dist/core/service/user.d.ts +1 -1
- package/dist/fields/KeyTextField.d.ts +3 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +10 -10
- package/dist/fields/LinkField/RepeatableLinkField/useRepeatableLinkField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/MetadataTextField.d.ts +18 -0
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +92 -39
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +27160 -20473
- package/dist/slices/utils.d.ts +2 -2
- package/dist/zones/StaticZoneEditor.d.ts +6 -0
- package/package.json +4 -3
- package/dist/core/service/teamSpace.d.ts +0 -48
package/dist/slices/utils.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ export declare function maybeResetSliceWidget(args: MaybeResetSliceWidgetArgs):
|
|
|
285
285
|
label?: string | null | undefined;
|
|
286
286
|
direction?: string | null | undefined;
|
|
287
287
|
}) | ({
|
|
288
|
-
type: "image" | "
|
|
288
|
+
type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
289
289
|
content: {
|
|
290
290
|
text: string;
|
|
291
291
|
} & {
|
|
@@ -338,7 +338,7 @@ export declare function maybeResetSliceWidget(args: MaybeResetSliceWidgetArgs):
|
|
|
338
338
|
} | {
|
|
339
339
|
start: number;
|
|
340
340
|
end: number;
|
|
341
|
-
type: "
|
|
341
|
+
type: "strong" | "em" | "list-item";
|
|
342
342
|
})[] | undefined;
|
|
343
343
|
};
|
|
344
344
|
} & {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Document } from "@prismicio/types-internal/lib/content";
|
|
3
|
+
import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
|
|
2
4
|
import type { StaticZone, StaticZoneContent } from "./StaticZone";
|
|
3
5
|
interface StaticZoneEditorProps {
|
|
4
6
|
id: string;
|
|
@@ -6,6 +8,10 @@ interface StaticZoneEditorProps {
|
|
|
6
8
|
staticZone: StaticZone;
|
|
7
9
|
content: StaticZoneContent;
|
|
8
10
|
onContentChange: (content: StaticZoneContent) => void;
|
|
11
|
+
documentId: string;
|
|
12
|
+
documentContent: Document;
|
|
13
|
+
documentCustomType: StaticCustomType;
|
|
14
|
+
documentLocale: string;
|
|
9
15
|
}
|
|
10
16
|
export declare function StaticZoneEditor(props: StaticZoneEditorProps): JSX.Element | null;
|
|
11
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
+
"@aws-sdk/client-bedrock-runtime": "3.709.0",
|
|
3
4
|
"@floating-ui/react-dom-interactions": "0.9.3",
|
|
4
5
|
"@prismicio/editor-support": "0.4.58",
|
|
5
6
|
"@prismicio/richtext": "2.1.1",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"zod": "3.23.8"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@prismicio/editor-ui": "^0.4.
|
|
38
|
+
"@prismicio/editor-ui": "^0.4.59-alpha.feat-track-onboarding-tutorial.0",
|
|
38
39
|
"@testing-library/react": "15.0.7",
|
|
39
40
|
"@types/react": "18.0.18",
|
|
40
41
|
"@types/react-dom": "18.3.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"module": "./dist/index.es.js",
|
|
69
70
|
"name": "@prismicio/editor-fields",
|
|
70
71
|
"peerDependencies": {
|
|
71
|
-
"@prismicio/editor-ui": "^0.4.
|
|
72
|
+
"@prismicio/editor-ui": "^0.4.59-alpha.feat-track-onboarding-tutorial.0",
|
|
72
73
|
"react": "18",
|
|
73
74
|
"react-dom": "18"
|
|
74
75
|
},
|
|
@@ -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.59-alpha.feat-track-onboarding-tutorial.0"
|
|
89
90
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
|
-
export declare const LocaleId: z.ZodString;
|
|
4
|
-
export declare const BasicRole: z.ZodEnum<["Manager", "Writer", "Readonly"]>;
|
|
5
|
-
export declare const RolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>;
|
|
6
|
-
export type RolesPerLocale = z.infer<typeof RolesPerLocale>;
|
|
7
|
-
export declare const RolesPerLocaleByUser: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
8
|
-
export type RolesPerLocaleByUser = z.infer<typeof RolesPerLocaleByUser>;
|
|
9
|
-
export declare const TeamSpace: z.ZodObject<{
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
13
|
-
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
14
|
-
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
customTypes: string[];
|
|
19
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
20
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
customTypes: string[];
|
|
25
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
26
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
export type TeamSpace = z.infer<typeof TeamSpace>;
|
|
29
|
-
declare const TeamSpaceUpsert: z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
32
|
-
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
33
|
-
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
name: string;
|
|
36
|
-
customTypes: string[];
|
|
37
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
38
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
name: string;
|
|
41
|
-
customTypes: string[];
|
|
42
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
43
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
export type TeamSpaceUpsert = z.infer<typeof TeamSpaceUpsert>;
|
|
46
|
-
export declare function createTeamSpace(baseUrl: URL, repository: string, authStrategy: AuthStrategy, payload: TeamSpaceUpsert): Promise<TeamSpace>;
|
|
47
|
-
export declare function updateTeamSpace(baseUrl: URL, repository: string, authStrategy: AuthStrategy, payload: TeamSpaceUpsert, teamSpaceId: string): Promise<TeamSpace>;
|
|
48
|
-
export {};
|