@manifest-editor/creators 1.3.0 → 1.3.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/chunk-KLSWX2QF.js +38 -0
- package/dist/iiif-browser-form.lazy-4NX7YPGK.js +57 -0
- package/dist/iiif-browser-form.lazy-4X5LD2U4.js +51 -0
- package/dist/iiif-browser-form.lazy-C72INDSJ.js +57 -0
- package/dist/iiif-browser-form.lazy-HZ3M2DXT.js +57 -0
- package/dist/iiif-browser-form.lazy-I7KTYV3O.js +57 -0
- package/dist/iiif-browser-form.lazy-JX4S6NGX.js +48 -0
- package/dist/iiif-browser-form.lazy-OMDV43NQ.js +51 -0
- package/dist/index.cjs +311 -121
- package/dist/index.d.cts +246 -35
- package/dist/index.d.ts +246 -35
- package/dist/index.js +327 -113
- package/dist/manifest-browser-form.lazy-MYI26AX4.js +6 -0
- package/package.json +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,42 +1,253 @@
|
|
|
1
|
+
import * as _iiif_presentation_3 from '@iiif/presentation-3';
|
|
2
|
+
import { InternationalString, ImageService } from '@iiif/presentation-3';
|
|
1
3
|
import * as _manifest_editor_creator_api from '@manifest-editor/creator-api';
|
|
2
|
-
import { CreatorDefinition } from '@manifest-editor/creator-api';
|
|
4
|
+
import { CreatorDefinition, CreatorFunctionContext, CreatorContext, CreatorResource } from '@manifest-editor/creator-api';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { SizeParameter, RegionParameter } from '@iiif/parser/image-3';
|
|
7
|
+
import * as react from 'react';
|
|
8
|
+
import { ContentState } from '@iiif/helpers';
|
|
3
9
|
|
|
4
10
|
declare const audioAnnotation: CreatorDefinition;
|
|
5
11
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
interface CreateCaptionedImageAnnotationPayload {
|
|
13
|
+
label?: InternationalString;
|
|
14
|
+
body: InternationalString;
|
|
15
|
+
imageUrl: string;
|
|
16
|
+
motivation?: string;
|
|
17
|
+
height?: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function createCaptionedImageAnnotation(data: CreateCaptionedImageAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
21
|
+
declare function CreateCaptionedImageAnnotation(props: CreatorContext<CreateCaptionedImageAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare const captionedImageAnnotation: CreatorDefinition<CreateCaptionedImageAnnotationPayload>;
|
|
24
|
+
|
|
25
|
+
interface CreateHTMLAnnotationPayload {
|
|
26
|
+
label?: InternationalString;
|
|
27
|
+
body: InternationalString;
|
|
28
|
+
motivation?: string;
|
|
29
|
+
height?: number;
|
|
30
|
+
width?: number;
|
|
31
|
+
}
|
|
32
|
+
declare function createHtmlAnnotation(data: CreateHTMLAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
33
|
+
declare function CreateHTMLAnnotation(props: CreatorContext<CreateHTMLAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare const htmlAnnotation: CreatorDefinition<CreateHTMLAnnotationPayload>;
|
|
36
|
+
|
|
37
|
+
interface CreateImageServicePayload {
|
|
38
|
+
url: string;
|
|
39
|
+
height?: number;
|
|
40
|
+
width?: number;
|
|
41
|
+
format?: string;
|
|
42
|
+
service: ImageService;
|
|
43
|
+
size?: SizeParameter;
|
|
44
|
+
embedService?: boolean;
|
|
45
|
+
selector?: RegionParameter;
|
|
46
|
+
}
|
|
47
|
+
declare function createImageServer(data: CreateImageServicePayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
48
|
+
declare function CreateImageServerForm(props: CreatorContext<CreateImageServicePayload>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
interface CreateImageServiceAnnotationPayload extends CreateImageServicePayload {
|
|
51
|
+
label?: InternationalString;
|
|
52
|
+
motivation?: string;
|
|
53
|
+
}
|
|
54
|
+
declare function createImageServiceAnnotation(data: CreateImageServiceAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | {
|
|
55
|
+
body: _manifest_editor_creator_api.CreatorResource[];
|
|
56
|
+
motivation: string;
|
|
57
|
+
target: {
|
|
58
|
+
created?: string | undefined;
|
|
59
|
+
generated?: string | undefined;
|
|
60
|
+
modified?: string | undefined;
|
|
61
|
+
creator?: _iiif_presentation_3.Creator | undefined;
|
|
62
|
+
generator?: _iiif_presentation_3.Creator | undefined;
|
|
63
|
+
audience?: (_iiif_presentation_3.Audience | _iiif_presentation_3.Audience[]) | undefined;
|
|
64
|
+
accessibility?: string | string[] | undefined;
|
|
65
|
+
motivation?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
66
|
+
rights?: string | string[] | undefined;
|
|
67
|
+
canonical?: string | undefined;
|
|
68
|
+
via?: string | string[] | undefined;
|
|
69
|
+
role?: string | undefined;
|
|
70
|
+
id?: string | undefined;
|
|
71
|
+
type: "SpecificResource";
|
|
72
|
+
state?: (_iiif_presentation_3.State | _iiif_presentation_3.State[]) | undefined;
|
|
73
|
+
purpose?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
74
|
+
source?: any;
|
|
75
|
+
selector?: (_iiif_presentation_3.Selector | _iiif_presentation_3.Selector[]) | undefined;
|
|
76
|
+
styleClass?: string | undefined;
|
|
77
|
+
renderedVia?: (_iiif_presentation_3.Agent | _iiif_presentation_3.Agent[]) | undefined;
|
|
78
|
+
scope?: _iiif_presentation_3.LinkedResource;
|
|
79
|
+
} | {
|
|
80
|
+
type: string;
|
|
81
|
+
id: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
id: string;
|
|
84
|
+
type: string;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
declare function CreateImageServiceAnnotationForm(props: CreatorContext<CreateImageServicePayload>): react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
declare const imageServiceAnnotation: CreatorDefinition<CreateImageServiceAnnotationPayload>;
|
|
89
|
+
|
|
90
|
+
interface CreateImageUrlPayload {
|
|
91
|
+
url: string;
|
|
92
|
+
format?: string;
|
|
93
|
+
height?: number;
|
|
94
|
+
width?: number;
|
|
95
|
+
service?: ImageService | ImageService[];
|
|
96
|
+
}
|
|
97
|
+
declare function createImageUrl(data: CreateImageUrlPayload, ctx: CreatorFunctionContext): Promise<CreatorResource>;
|
|
98
|
+
declare function CreateImageUrlForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface CreateImageUrlAnnotationPayload extends CreateImageUrlPayload {
|
|
101
|
+
label?: InternationalString;
|
|
102
|
+
motivation?: string;
|
|
103
|
+
}
|
|
104
|
+
declare function createImageUrlAnnotation(data: CreateImageUrlAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | {
|
|
105
|
+
body: _manifest_editor_creator_api.CreatorResource[];
|
|
106
|
+
motivation: string;
|
|
107
|
+
target: {
|
|
108
|
+
created?: string | undefined;
|
|
109
|
+
generated?: string | undefined;
|
|
110
|
+
modified?: string | undefined;
|
|
111
|
+
creator?: _iiif_presentation_3.Creator | undefined;
|
|
112
|
+
generator?: _iiif_presentation_3.Creator | undefined;
|
|
113
|
+
audience?: (_iiif_presentation_3.Audience | _iiif_presentation_3.Audience[]) | undefined;
|
|
114
|
+
accessibility?: string | string[] | undefined;
|
|
115
|
+
motivation?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
116
|
+
rights?: string | string[] | undefined;
|
|
117
|
+
canonical?: string | undefined;
|
|
118
|
+
via?: string | string[] | undefined;
|
|
119
|
+
role?: string | undefined;
|
|
120
|
+
id?: string | undefined;
|
|
121
|
+
type: "SpecificResource";
|
|
122
|
+
state?: (_iiif_presentation_3.State | _iiif_presentation_3.State[]) | undefined;
|
|
123
|
+
purpose?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
124
|
+
source?: any;
|
|
125
|
+
selector?: (_iiif_presentation_3.Selector | _iiif_presentation_3.Selector[]) | undefined;
|
|
126
|
+
styleClass?: string | undefined;
|
|
127
|
+
renderedVia?: (_iiif_presentation_3.Agent | _iiif_presentation_3.Agent[]) | undefined;
|
|
128
|
+
scope?: _iiif_presentation_3.LinkedResource;
|
|
129
|
+
} | {
|
|
130
|
+
type: string;
|
|
131
|
+
id: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
id: string;
|
|
134
|
+
type: string;
|
|
135
|
+
} | undefined>;
|
|
136
|
+
declare function CreateImageUrlAnnotationForm(props: CreatorContext<CreateImageUrlPayload>): react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare const imageUrlAnnotation: CreatorDefinition<CreateImageUrlAnnotationPayload>;
|
|
139
|
+
|
|
140
|
+
interface CreateVideoAnnotationPayload {
|
|
141
|
+
label?: InternationalString;
|
|
142
|
+
motivation?: string;
|
|
143
|
+
duration?: number;
|
|
144
|
+
url: string;
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
}
|
|
148
|
+
declare function createVideoAnnotation(data: CreateVideoAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
149
|
+
declare function CreateVideoAnnotationForm(props: CreatorContext<CreateVideoAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
declare const videoAnnotation: CreatorDefinition<CreateVideoAnnotationPayload>;
|
|
152
|
+
|
|
153
|
+
declare const emptyAnnotationPage: CreatorDefinition<{
|
|
154
|
+
label?: InternationalString;
|
|
155
|
+
}>;
|
|
156
|
+
|
|
157
|
+
declare const emptyCanvas: CreatorDefinition<{
|
|
158
|
+
label?: InternationalString;
|
|
159
|
+
width?: number;
|
|
160
|
+
height?: number;
|
|
161
|
+
}>;
|
|
162
|
+
|
|
163
|
+
interface CreateHTMLBodyPayload {
|
|
164
|
+
language?: string;
|
|
165
|
+
body: string;
|
|
166
|
+
}
|
|
167
|
+
declare function createHtmlBody(data: CreateHTMLBodyPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
168
|
+
declare function CreateHTMLBodyForm(props: CreatorContext<CreateHTMLBodyPayload>): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
declare const htmlBodyCreator: CreatorDefinition<CreateHTMLBodyPayload>;
|
|
171
|
+
|
|
172
|
+
declare function IIIFBrowserCreatorForm$1(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface IIIFBrowserCreatorPayload {
|
|
175
|
+
output: string | ContentState | ContentState[];
|
|
176
|
+
trackSize?: (dimensions: {
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
}) => void;
|
|
180
|
+
}
|
|
181
|
+
declare function createFromIIIFBrowserOutput(data: IIIFBrowserCreatorPayload, ctx: CreatorFunctionContext): Promise<any>;
|
|
182
|
+
declare const IIIFBrowserCreatorForm: react.LazyExoticComponent<typeof IIIFBrowserCreatorForm$1>;
|
|
183
|
+
|
|
184
|
+
declare const iiifBrowserCreator: CreatorDefinition<IIIFBrowserCreatorPayload>;
|
|
185
|
+
|
|
186
|
+
declare const imageServiceCreator: CreatorDefinition<CreateImageServicePayload>;
|
|
187
|
+
|
|
188
|
+
declare const imageUrlCreator: CreatorDefinition<CreateImageUrlPayload>;
|
|
189
|
+
|
|
190
|
+
interface CreatePlaintextPayload {
|
|
191
|
+
url: string;
|
|
192
|
+
label?: InternationalString;
|
|
193
|
+
}
|
|
194
|
+
declare function createPlaintext(data: CreatePlaintextPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
195
|
+
declare function CreatePlaintextForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
196
|
+
|
|
197
|
+
declare const plaintextCreator: CreatorDefinition<CreatePlaintextPayload>;
|
|
198
|
+
|
|
199
|
+
interface CreateWebpagePayload {
|
|
200
|
+
url: string;
|
|
201
|
+
label?: InternationalString;
|
|
202
|
+
}
|
|
203
|
+
declare function createWebPage(data: CreateWebpagePayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
204
|
+
declare function CreateWebPageForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare const webPageCreator: CreatorDefinition<CreateWebpagePayload>;
|
|
207
|
+
|
|
208
|
+
interface CreateYouTubeBodyPayload {
|
|
209
|
+
youtubeUrl: string;
|
|
210
|
+
label?: InternationalString;
|
|
211
|
+
height?: number;
|
|
212
|
+
width?: number;
|
|
213
|
+
duration: number;
|
|
214
|
+
}
|
|
215
|
+
declare function getYouTubeId(url: string): string | null | undefined;
|
|
216
|
+
declare function validateYouTube(data: CreateYouTubeBodyPayload): boolean;
|
|
217
|
+
declare function createYoutubeBody(data: CreateYouTubeBodyPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
218
|
+
declare function YouTubeForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
219
|
+
|
|
220
|
+
declare const youTubeBodyCreator: CreatorDefinition<CreateYouTubeBodyPayload>;
|
|
37
221
|
|
|
38
222
|
declare const manifestBrowserCreator: CreatorDefinition;
|
|
39
223
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
224
|
+
interface CreateAudioAnnotationPayload {
|
|
225
|
+
label?: InternationalString;
|
|
226
|
+
motivation?: string;
|
|
227
|
+
duration?: number;
|
|
228
|
+
url: string;
|
|
229
|
+
}
|
|
230
|
+
declare function createAudioAnnotation(data: CreateAudioAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
231
|
+
declare function CreateAudioAnnotationForm(props: CreatorContext<CreateAudioAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
233
|
+
interface NoBodyAnnotationPayload {
|
|
234
|
+
label?: InternationalString;
|
|
235
|
+
motivation?: string;
|
|
236
|
+
}
|
|
237
|
+
declare const noBodyAnnotation: CreatorDefinition<NoBodyAnnotationPayload>;
|
|
238
|
+
declare function createNoBodyAnnotation(data: NoBodyAnnotationPayload, ctx: CreatorFunctionContext): _manifest_editor_creator_api.CreatorResource;
|
|
239
|
+
|
|
240
|
+
declare const internalCanvas: CreatorDefinition<InternalCanvasPayload>;
|
|
241
|
+
interface InternalCanvasPayload {
|
|
242
|
+
id: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare const allCreators: (_manifest_editor_creator_api.CreatorDefinition<CreateImageServicePayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageServiceAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageUrlPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageUrlAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateVideoAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<any> | _manifest_editor_creator_api.CreatorDefinition<CreateHTMLBodyPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateHTMLAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateYouTubeBodyPayload> | _manifest_editor_creator_api.CreatorDefinition<IIIFBrowserCreatorPayload> | _manifest_editor_creator_api.CreatorDefinition<{
|
|
246
|
+
label?: _iiif_presentation_3.InternationalString;
|
|
247
|
+
width?: number;
|
|
248
|
+
height?: number;
|
|
249
|
+
}> | _manifest_editor_creator_api.CreatorDefinition<CreatePlaintextPayload> | _manifest_editor_creator_api.CreatorDefinition<{
|
|
250
|
+
label?: _iiif_presentation_3.InternationalString;
|
|
251
|
+
}> | _manifest_editor_creator_api.CreatorDefinition<NoBodyAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<InternalCanvasPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateCaptionedImageAnnotationPayload>)[];
|
|
252
|
+
|
|
253
|
+
export { CreateAudioAnnotationForm, type CreateAudioAnnotationPayload, CreateCaptionedImageAnnotation, type CreateCaptionedImageAnnotationPayload, CreateHTMLAnnotation, type CreateHTMLAnnotationPayload, CreateHTMLBodyForm, type CreateHTMLBodyPayload, CreateImageServerForm, CreateImageServiceAnnotationForm, type CreateImageServiceAnnotationPayload, type CreateImageServicePayload, CreateImageUrlAnnotationForm, type CreateImageUrlAnnotationPayload, CreateImageUrlForm, type CreateImageUrlPayload, CreatePlaintextForm, type CreatePlaintextPayload, CreateVideoAnnotationForm, type CreateVideoAnnotationPayload, CreateWebPageForm, type CreateWebpagePayload, type CreateYouTubeBodyPayload, IIIFBrowserCreatorForm, type IIIFBrowserCreatorPayload, type InternalCanvasPayload, type NoBodyAnnotationPayload, YouTubeForm, allCreators, audioAnnotation, captionedImageAnnotation, createAudioAnnotation, createCaptionedImageAnnotation, createFromIIIFBrowserOutput, createHtmlAnnotation, createHtmlBody, createImageServer, createImageServiceAnnotation, createImageUrl, createImageUrlAnnotation, createNoBodyAnnotation, createPlaintext, createVideoAnnotation, createWebPage, createYoutubeBody, emptyAnnotationPage, emptyCanvas, getYouTubeId, htmlAnnotation, htmlBodyCreator, iiifBrowserCreator, imageServiceAnnotation, imageServiceCreator, imageUrlAnnotation, imageUrlCreator, internalCanvas, manifestBrowserCreator, noBodyAnnotation, plaintextCreator, validateYouTube, videoAnnotation, webPageCreator, youTubeBodyCreator };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1,253 @@
|
|
|
1
|
+
import * as _iiif_presentation_3 from '@iiif/presentation-3';
|
|
2
|
+
import { InternationalString, ImageService } from '@iiif/presentation-3';
|
|
1
3
|
import * as _manifest_editor_creator_api from '@manifest-editor/creator-api';
|
|
2
|
-
import { CreatorDefinition } from '@manifest-editor/creator-api';
|
|
4
|
+
import { CreatorDefinition, CreatorFunctionContext, CreatorContext, CreatorResource } from '@manifest-editor/creator-api';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import { SizeParameter, RegionParameter } from '@iiif/parser/image-3';
|
|
7
|
+
import * as react from 'react';
|
|
8
|
+
import { ContentState } from '@iiif/helpers';
|
|
3
9
|
|
|
4
10
|
declare const audioAnnotation: CreatorDefinition;
|
|
5
11
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
12
|
+
interface CreateCaptionedImageAnnotationPayload {
|
|
13
|
+
label?: InternationalString;
|
|
14
|
+
body: InternationalString;
|
|
15
|
+
imageUrl: string;
|
|
16
|
+
motivation?: string;
|
|
17
|
+
height?: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function createCaptionedImageAnnotation(data: CreateCaptionedImageAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
21
|
+
declare function CreateCaptionedImageAnnotation(props: CreatorContext<CreateCaptionedImageAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare const captionedImageAnnotation: CreatorDefinition<CreateCaptionedImageAnnotationPayload>;
|
|
24
|
+
|
|
25
|
+
interface CreateHTMLAnnotationPayload {
|
|
26
|
+
label?: InternationalString;
|
|
27
|
+
body: InternationalString;
|
|
28
|
+
motivation?: string;
|
|
29
|
+
height?: number;
|
|
30
|
+
width?: number;
|
|
31
|
+
}
|
|
32
|
+
declare function createHtmlAnnotation(data: CreateHTMLAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
33
|
+
declare function CreateHTMLAnnotation(props: CreatorContext<CreateHTMLAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare const htmlAnnotation: CreatorDefinition<CreateHTMLAnnotationPayload>;
|
|
36
|
+
|
|
37
|
+
interface CreateImageServicePayload {
|
|
38
|
+
url: string;
|
|
39
|
+
height?: number;
|
|
40
|
+
width?: number;
|
|
41
|
+
format?: string;
|
|
42
|
+
service: ImageService;
|
|
43
|
+
size?: SizeParameter;
|
|
44
|
+
embedService?: boolean;
|
|
45
|
+
selector?: RegionParameter;
|
|
46
|
+
}
|
|
47
|
+
declare function createImageServer(data: CreateImageServicePayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
48
|
+
declare function CreateImageServerForm(props: CreatorContext<CreateImageServicePayload>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
|
|
50
|
+
interface CreateImageServiceAnnotationPayload extends CreateImageServicePayload {
|
|
51
|
+
label?: InternationalString;
|
|
52
|
+
motivation?: string;
|
|
53
|
+
}
|
|
54
|
+
declare function createImageServiceAnnotation(data: CreateImageServiceAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | {
|
|
55
|
+
body: _manifest_editor_creator_api.CreatorResource[];
|
|
56
|
+
motivation: string;
|
|
57
|
+
target: {
|
|
58
|
+
created?: string | undefined;
|
|
59
|
+
generated?: string | undefined;
|
|
60
|
+
modified?: string | undefined;
|
|
61
|
+
creator?: _iiif_presentation_3.Creator | undefined;
|
|
62
|
+
generator?: _iiif_presentation_3.Creator | undefined;
|
|
63
|
+
audience?: (_iiif_presentation_3.Audience | _iiif_presentation_3.Audience[]) | undefined;
|
|
64
|
+
accessibility?: string | string[] | undefined;
|
|
65
|
+
motivation?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
66
|
+
rights?: string | string[] | undefined;
|
|
67
|
+
canonical?: string | undefined;
|
|
68
|
+
via?: string | string[] | undefined;
|
|
69
|
+
role?: string | undefined;
|
|
70
|
+
id?: string | undefined;
|
|
71
|
+
type: "SpecificResource";
|
|
72
|
+
state?: (_iiif_presentation_3.State | _iiif_presentation_3.State[]) | undefined;
|
|
73
|
+
purpose?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
74
|
+
source?: any;
|
|
75
|
+
selector?: (_iiif_presentation_3.Selector | _iiif_presentation_3.Selector[]) | undefined;
|
|
76
|
+
styleClass?: string | undefined;
|
|
77
|
+
renderedVia?: (_iiif_presentation_3.Agent | _iiif_presentation_3.Agent[]) | undefined;
|
|
78
|
+
scope?: _iiif_presentation_3.LinkedResource;
|
|
79
|
+
} | {
|
|
80
|
+
type: string;
|
|
81
|
+
id: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
id: string;
|
|
84
|
+
type: string;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
declare function CreateImageServiceAnnotationForm(props: CreatorContext<CreateImageServicePayload>): react_jsx_runtime.JSX.Element;
|
|
87
|
+
|
|
88
|
+
declare const imageServiceAnnotation: CreatorDefinition<CreateImageServiceAnnotationPayload>;
|
|
89
|
+
|
|
90
|
+
interface CreateImageUrlPayload {
|
|
91
|
+
url: string;
|
|
92
|
+
format?: string;
|
|
93
|
+
height?: number;
|
|
94
|
+
width?: number;
|
|
95
|
+
service?: ImageService | ImageService[];
|
|
96
|
+
}
|
|
97
|
+
declare function createImageUrl(data: CreateImageUrlPayload, ctx: CreatorFunctionContext): Promise<CreatorResource>;
|
|
98
|
+
declare function CreateImageUrlForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface CreateImageUrlAnnotationPayload extends CreateImageUrlPayload {
|
|
101
|
+
label?: InternationalString;
|
|
102
|
+
motivation?: string;
|
|
103
|
+
}
|
|
104
|
+
declare function createImageUrlAnnotation(data: CreateImageUrlAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | {
|
|
105
|
+
body: _manifest_editor_creator_api.CreatorResource[];
|
|
106
|
+
motivation: string;
|
|
107
|
+
target: {
|
|
108
|
+
created?: string | undefined;
|
|
109
|
+
generated?: string | undefined;
|
|
110
|
+
modified?: string | undefined;
|
|
111
|
+
creator?: _iiif_presentation_3.Creator | undefined;
|
|
112
|
+
generator?: _iiif_presentation_3.Creator | undefined;
|
|
113
|
+
audience?: (_iiif_presentation_3.Audience | _iiif_presentation_3.Audience[]) | undefined;
|
|
114
|
+
accessibility?: string | string[] | undefined;
|
|
115
|
+
motivation?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
116
|
+
rights?: string | string[] | undefined;
|
|
117
|
+
canonical?: string | undefined;
|
|
118
|
+
via?: string | string[] | undefined;
|
|
119
|
+
role?: string | undefined;
|
|
120
|
+
id?: string | undefined;
|
|
121
|
+
type: "SpecificResource";
|
|
122
|
+
state?: (_iiif_presentation_3.State | _iiif_presentation_3.State[]) | undefined;
|
|
123
|
+
purpose?: (_iiif_presentation_3.AnyMotivation | _iiif_presentation_3.AnyMotivation[]) | undefined;
|
|
124
|
+
source?: any;
|
|
125
|
+
selector?: (_iiif_presentation_3.Selector | _iiif_presentation_3.Selector[]) | undefined;
|
|
126
|
+
styleClass?: string | undefined;
|
|
127
|
+
renderedVia?: (_iiif_presentation_3.Agent | _iiif_presentation_3.Agent[]) | undefined;
|
|
128
|
+
scope?: _iiif_presentation_3.LinkedResource;
|
|
129
|
+
} | {
|
|
130
|
+
type: string;
|
|
131
|
+
id: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
id: string;
|
|
134
|
+
type: string;
|
|
135
|
+
} | undefined>;
|
|
136
|
+
declare function CreateImageUrlAnnotationForm(props: CreatorContext<CreateImageUrlPayload>): react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare const imageUrlAnnotation: CreatorDefinition<CreateImageUrlAnnotationPayload>;
|
|
139
|
+
|
|
140
|
+
interface CreateVideoAnnotationPayload {
|
|
141
|
+
label?: InternationalString;
|
|
142
|
+
motivation?: string;
|
|
143
|
+
duration?: number;
|
|
144
|
+
url: string;
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
}
|
|
148
|
+
declare function createVideoAnnotation(data: CreateVideoAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
149
|
+
declare function CreateVideoAnnotationForm(props: CreatorContext<CreateVideoAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
declare const videoAnnotation: CreatorDefinition<CreateVideoAnnotationPayload>;
|
|
152
|
+
|
|
153
|
+
declare const emptyAnnotationPage: CreatorDefinition<{
|
|
154
|
+
label?: InternationalString;
|
|
155
|
+
}>;
|
|
156
|
+
|
|
157
|
+
declare const emptyCanvas: CreatorDefinition<{
|
|
158
|
+
label?: InternationalString;
|
|
159
|
+
width?: number;
|
|
160
|
+
height?: number;
|
|
161
|
+
}>;
|
|
162
|
+
|
|
163
|
+
interface CreateHTMLBodyPayload {
|
|
164
|
+
language?: string;
|
|
165
|
+
body: string;
|
|
166
|
+
}
|
|
167
|
+
declare function createHtmlBody(data: CreateHTMLBodyPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
168
|
+
declare function CreateHTMLBodyForm(props: CreatorContext<CreateHTMLBodyPayload>): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
declare const htmlBodyCreator: CreatorDefinition<CreateHTMLBodyPayload>;
|
|
171
|
+
|
|
172
|
+
declare function IIIFBrowserCreatorForm$1(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface IIIFBrowserCreatorPayload {
|
|
175
|
+
output: string | ContentState | ContentState[];
|
|
176
|
+
trackSize?: (dimensions: {
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
}) => void;
|
|
180
|
+
}
|
|
181
|
+
declare function createFromIIIFBrowserOutput(data: IIIFBrowserCreatorPayload, ctx: CreatorFunctionContext): Promise<any>;
|
|
182
|
+
declare const IIIFBrowserCreatorForm: react.LazyExoticComponent<typeof IIIFBrowserCreatorForm$1>;
|
|
183
|
+
|
|
184
|
+
declare const iiifBrowserCreator: CreatorDefinition<IIIFBrowserCreatorPayload>;
|
|
185
|
+
|
|
186
|
+
declare const imageServiceCreator: CreatorDefinition<CreateImageServicePayload>;
|
|
187
|
+
|
|
188
|
+
declare const imageUrlCreator: CreatorDefinition<CreateImageUrlPayload>;
|
|
189
|
+
|
|
190
|
+
interface CreatePlaintextPayload {
|
|
191
|
+
url: string;
|
|
192
|
+
label?: InternationalString;
|
|
193
|
+
}
|
|
194
|
+
declare function createPlaintext(data: CreatePlaintextPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
195
|
+
declare function CreatePlaintextForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
196
|
+
|
|
197
|
+
declare const plaintextCreator: CreatorDefinition<CreatePlaintextPayload>;
|
|
198
|
+
|
|
199
|
+
interface CreateWebpagePayload {
|
|
200
|
+
url: string;
|
|
201
|
+
label?: InternationalString;
|
|
202
|
+
}
|
|
203
|
+
declare function createWebPage(data: CreateWebpagePayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
204
|
+
declare function CreateWebPageForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare const webPageCreator: CreatorDefinition<CreateWebpagePayload>;
|
|
207
|
+
|
|
208
|
+
interface CreateYouTubeBodyPayload {
|
|
209
|
+
youtubeUrl: string;
|
|
210
|
+
label?: InternationalString;
|
|
211
|
+
height?: number;
|
|
212
|
+
width?: number;
|
|
213
|
+
duration: number;
|
|
214
|
+
}
|
|
215
|
+
declare function getYouTubeId(url: string): string | null | undefined;
|
|
216
|
+
declare function validateYouTube(data: CreateYouTubeBodyPayload): boolean;
|
|
217
|
+
declare function createYoutubeBody(data: CreateYouTubeBodyPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource>;
|
|
218
|
+
declare function YouTubeForm(props: CreatorContext): react_jsx_runtime.JSX.Element;
|
|
219
|
+
|
|
220
|
+
declare const youTubeBodyCreator: CreatorDefinition<CreateYouTubeBodyPayload>;
|
|
37
221
|
|
|
38
222
|
declare const manifestBrowserCreator: CreatorDefinition;
|
|
39
223
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
224
|
+
interface CreateAudioAnnotationPayload {
|
|
225
|
+
label?: InternationalString;
|
|
226
|
+
motivation?: string;
|
|
227
|
+
duration?: number;
|
|
228
|
+
url: string;
|
|
229
|
+
}
|
|
230
|
+
declare function createAudioAnnotation(data: CreateAudioAnnotationPayload, ctx: CreatorFunctionContext): Promise<_manifest_editor_creator_api.CreatorResource | undefined>;
|
|
231
|
+
declare function CreateAudioAnnotationForm(props: CreatorContext<CreateAudioAnnotationPayload>): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
233
|
+
interface NoBodyAnnotationPayload {
|
|
234
|
+
label?: InternationalString;
|
|
235
|
+
motivation?: string;
|
|
236
|
+
}
|
|
237
|
+
declare const noBodyAnnotation: CreatorDefinition<NoBodyAnnotationPayload>;
|
|
238
|
+
declare function createNoBodyAnnotation(data: NoBodyAnnotationPayload, ctx: CreatorFunctionContext): _manifest_editor_creator_api.CreatorResource;
|
|
239
|
+
|
|
240
|
+
declare const internalCanvas: CreatorDefinition<InternalCanvasPayload>;
|
|
241
|
+
interface InternalCanvasPayload {
|
|
242
|
+
id: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare const allCreators: (_manifest_editor_creator_api.CreatorDefinition<CreateImageServicePayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageServiceAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageUrlPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateImageUrlAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateVideoAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<any> | _manifest_editor_creator_api.CreatorDefinition<CreateHTMLBodyPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateHTMLAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateYouTubeBodyPayload> | _manifest_editor_creator_api.CreatorDefinition<IIIFBrowserCreatorPayload> | _manifest_editor_creator_api.CreatorDefinition<{
|
|
246
|
+
label?: _iiif_presentation_3.InternationalString;
|
|
247
|
+
width?: number;
|
|
248
|
+
height?: number;
|
|
249
|
+
}> | _manifest_editor_creator_api.CreatorDefinition<CreatePlaintextPayload> | _manifest_editor_creator_api.CreatorDefinition<{
|
|
250
|
+
label?: _iiif_presentation_3.InternationalString;
|
|
251
|
+
}> | _manifest_editor_creator_api.CreatorDefinition<NoBodyAnnotationPayload> | _manifest_editor_creator_api.CreatorDefinition<InternalCanvasPayload> | _manifest_editor_creator_api.CreatorDefinition<CreateCaptionedImageAnnotationPayload>)[];
|
|
252
|
+
|
|
253
|
+
export { CreateAudioAnnotationForm, type CreateAudioAnnotationPayload, CreateCaptionedImageAnnotation, type CreateCaptionedImageAnnotationPayload, CreateHTMLAnnotation, type CreateHTMLAnnotationPayload, CreateHTMLBodyForm, type CreateHTMLBodyPayload, CreateImageServerForm, CreateImageServiceAnnotationForm, type CreateImageServiceAnnotationPayload, type CreateImageServicePayload, CreateImageUrlAnnotationForm, type CreateImageUrlAnnotationPayload, CreateImageUrlForm, type CreateImageUrlPayload, CreatePlaintextForm, type CreatePlaintextPayload, CreateVideoAnnotationForm, type CreateVideoAnnotationPayload, CreateWebPageForm, type CreateWebpagePayload, type CreateYouTubeBodyPayload, IIIFBrowserCreatorForm, type IIIFBrowserCreatorPayload, type InternalCanvasPayload, type NoBodyAnnotationPayload, YouTubeForm, allCreators, audioAnnotation, captionedImageAnnotation, createAudioAnnotation, createCaptionedImageAnnotation, createFromIIIFBrowserOutput, createHtmlAnnotation, createHtmlBody, createImageServer, createImageServiceAnnotation, createImageUrl, createImageUrlAnnotation, createNoBodyAnnotation, createPlaintext, createVideoAnnotation, createWebPage, createYoutubeBody, emptyAnnotationPage, emptyCanvas, getYouTubeId, htmlAnnotation, htmlBodyCreator, iiifBrowserCreator, imageServiceAnnotation, imageServiceCreator, imageUrlAnnotation, imageUrlCreator, internalCanvas, manifestBrowserCreator, noBodyAnnotation, plaintextCreator, validateYouTube, videoAnnotation, webPageCreator, youTubeBodyCreator };
|