@prismicio/editor-fields 0.4.58-alpha.repeatable-link-base.0 → 0.4.58-alpha.repeatable-link-base.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/EditorConfig.d.ts +1 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +53 -53
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/repeatable.d.ts +3 -0
- package/dist/core/service/customType.d.ts +25 -0
- package/dist/core/service/document.d.ts +19 -18
- package/dist/core/service/documentSearch.d.ts +221 -20
- package/dist/core/service/index.d.ts +1 -1
- package/dist/core/service/repository.d.ts +129 -0
- package/dist/core/service/role.d.ts +141 -0
- package/dist/core/service/user.d.ts +1 -101
- package/dist/fields/ImageField/useImageField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/Image/ImageLinkControl.d.ts +0 -0
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +35 -35
- package/dist/index.d.ts +8 -8
- package/dist/index.es.js +9877 -9848
- package/package.json +5 -5
|
@@ -57,100 +57,7 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
57
57
|
}[];
|
|
58
58
|
}>;
|
|
59
59
|
export type Profile = z.infer<typeof profileResponse>;
|
|
60
|
-
export declare
|
|
61
|
-
shortId: z.ZodString;
|
|
62
|
-
intercomHash: z.ZodString;
|
|
63
|
-
email: z.ZodString;
|
|
64
|
-
firstName: z.ZodString;
|
|
65
|
-
lastName: z.ZodString;
|
|
66
|
-
superPower: z.ZodBoolean;
|
|
67
|
-
repositories: z.ZodArray<z.ZodObject<{
|
|
68
|
-
domain: z.ZodString;
|
|
69
|
-
name: z.ZodOptional<z.ZodString>;
|
|
70
|
-
role: z.ZodUnion<[z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>>>]>;
|
|
71
|
-
teamSpaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
-
id: z.ZodString;
|
|
73
|
-
name: z.ZodString;
|
|
74
|
-
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
75
|
-
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
76
|
-
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
customTypes: string[];
|
|
81
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
82
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
id: string;
|
|
85
|
-
name: string;
|
|
86
|
-
customTypes: string[];
|
|
87
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
88
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
89
|
-
}>, "many">>;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
domain: string;
|
|
92
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
teamSpaces?: {
|
|
95
|
-
id: string;
|
|
96
|
-
name: string;
|
|
97
|
-
customTypes: string[];
|
|
98
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
99
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
100
|
-
}[] | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
domain: string;
|
|
103
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
104
|
-
name?: string | undefined;
|
|
105
|
-
teamSpaces?: {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
customTypes: string[];
|
|
109
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
110
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
111
|
-
}[] | undefined;
|
|
112
|
-
}>, "many">;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
email: string;
|
|
115
|
-
shortId: string;
|
|
116
|
-
intercomHash: string;
|
|
117
|
-
firstName: string;
|
|
118
|
-
lastName: string;
|
|
119
|
-
superPower: boolean;
|
|
120
|
-
repositories: {
|
|
121
|
-
domain: string;
|
|
122
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
123
|
-
name?: string | undefined;
|
|
124
|
-
teamSpaces?: {
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
customTypes: string[];
|
|
128
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
129
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
130
|
-
}[] | undefined;
|
|
131
|
-
}[];
|
|
132
|
-
}, {
|
|
133
|
-
email: string;
|
|
134
|
-
shortId: string;
|
|
135
|
-
intercomHash: string;
|
|
136
|
-
firstName: string;
|
|
137
|
-
lastName: string;
|
|
138
|
-
superPower: boolean;
|
|
139
|
-
repositories: {
|
|
140
|
-
domain: string;
|
|
141
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
142
|
-
name?: string | undefined;
|
|
143
|
-
teamSpaces?: {
|
|
144
|
-
id: string;
|
|
145
|
-
name: string;
|
|
146
|
-
customTypes: string[];
|
|
147
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
148
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
149
|
-
}[] | undefined;
|
|
150
|
-
}[];
|
|
151
|
-
}>;
|
|
152
|
-
export type ProfileWithTeamSpaces = z.infer<typeof profileWithTeamSpacesResponse>;
|
|
153
|
-
export declare function getProfile(userServiceBaseUrl: URL, authStrategy: AuthStrategy): Promise<ProfileWithTeamSpaces>;
|
|
60
|
+
export declare function getProfile(userServiceBaseUrl: URL, authStrategy: AuthStrategy): Promise<Profile>;
|
|
154
61
|
export declare function useProfile(): {
|
|
155
62
|
email: string;
|
|
156
63
|
shortId: string;
|
|
@@ -162,13 +69,6 @@ export declare function useProfile(): {
|
|
|
162
69
|
domain: string;
|
|
163
70
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
164
71
|
name?: string | undefined;
|
|
165
|
-
teamSpaces?: {
|
|
166
|
-
id: string;
|
|
167
|
-
name: string;
|
|
168
|
-
customTypes: string[];
|
|
169
|
-
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
170
|
-
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
171
|
-
}[] | undefined;
|
|
172
72
|
}[];
|
|
173
73
|
};
|
|
174
74
|
export {};
|
|
@@ -8,7 +8,7 @@ interface useImageFieldProps {
|
|
|
8
8
|
onContentChange: (content: ImageContent | undefined) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare function useImageField(props: useImageFieldProps): {
|
|
11
|
-
onCropperDialogClose: ({ option, croppedImages }: {
|
|
11
|
+
onCropperDialogClose: ({ option, croppedImages, }: {
|
|
12
12
|
option: number;
|
|
13
13
|
croppedImages: CroppedImages;
|
|
14
14
|
}) => void;
|
|
@@ -10,7 +10,7 @@ interface useLinkFieldParams {
|
|
|
10
10
|
onContentChange: (content: LinkContent | undefined) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare function useLinkField(params: useLinkFieldParams): {
|
|
13
|
-
contentType: "
|
|
13
|
+
contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
|
|
14
14
|
selectType: "document" | "web" | "media" | "any" | undefined;
|
|
15
15
|
fieldValue: string;
|
|
16
16
|
onDisplayTextChange: (displayText: string) => void;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
|
|
4
4
|
converter: {
|
|
5
5
|
fromPrismic(schema: Schema<any, any>): (list: {
|
|
6
|
-
type: "image" | "em" | "embed" | "strong" | "
|
|
6
|
+
type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
7
7
|
content: {
|
|
8
8
|
text: string;
|
|
9
9
|
} & {
|
|
@@ -64,7 +64,7 @@ declare const _default: {
|
|
|
64
64
|
direction?: string | undefined;
|
|
65
65
|
}) => ProsemirrorNode | undefined;
|
|
66
66
|
toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
|
|
67
|
-
type: "image" | "em" | "embed" | "strong" | "
|
|
67
|
+
type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
68
68
|
content: {
|
|
69
69
|
text: string;
|
|
70
70
|
} & {
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ interface useImageViewProps {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function useImageView(props: useImageViewProps): {
|
|
15
15
|
onMediaSelected: (media: MediaAssetOrExternalImage) => void;
|
|
16
|
-
onCropperDialogClose: ({ croppedImages }: {
|
|
16
|
+
onCropperDialogClose: ({ croppedImages, }: {
|
|
17
17
|
croppedImages: CroppedImages;
|
|
18
18
|
}) => void;
|
|
19
19
|
isUpdating: boolean;
|
|
@@ -14,4 +14,4 @@ import { default as Paragraph } from "./Paragraph/Paragraph";
|
|
|
14
14
|
export declare const MarkExtensions: (import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Link/LinkModel").LinkExtension | import("./Label/LabelModel").LabelExtension)[];
|
|
15
15
|
export type MarkExtensionName = typeof MarkExtensions[number]["name"];
|
|
16
16
|
export declare function getAllExtensions(nodeTypes?: Set<RichTextNodeType>): WidgetExtension[];
|
|
17
|
-
export { Bold, BulletList, CodeBlock, Embed, Heading, Image, Italic, Label, Link, OrderedList, Paragraph };
|
|
17
|
+
export { Bold, BulletList, CodeBlock, Embed, Heading, Image, Italic, Label, Link, OrderedList, Paragraph, };
|