@manifest-editor/components 1.1.0 → 1.3.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/index.cjs +753 -272
- package/dist/index.css +275 -6
- package/dist/index.d.cts +80 -13
- package/dist/index.d.ts +80 -13
- package/dist/index.js +803 -275
- package/package.json +19 -8
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { ButtonProps, TabsProps, TabListProps, TabProps, TabPanelProps, LabelProps } from 'react-aria-components';
|
|
3
3
|
import * as _floating_ui_react_dom from '@floating-ui/react-dom';
|
|
4
4
|
import { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
5
|
-
import * as _floating_ui_react from '@floating-ui/react';
|
|
6
|
-
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
7
5
|
import * as React$1 from 'react';
|
|
8
|
-
import { ReactNode, SVGProps } from 'react';
|
|
6
|
+
import React__default, { ReactNode, SVGProps, ForwardedRef } from 'react';
|
|
7
|
+
import { UseInteractionsReturn, Placement } from '@floating-ui/react';
|
|
9
8
|
import { createHelper } from 'polygon-editor';
|
|
10
9
|
import { InternationalString } from '@iiif/presentation-3';
|
|
10
|
+
import { MDXEditorMethods, MDXEditorProps } from '@mdxeditor/editor';
|
|
11
|
+
import { TextualContentStrategy } from 'react-iiif-vault';
|
|
11
12
|
|
|
12
13
|
declare function ActionButton({ className, primary, center, children, ...props }: {
|
|
13
14
|
primary?: boolean;
|
|
@@ -62,8 +63,8 @@ declare const useTooltipContext: () => {
|
|
|
62
63
|
setOpen: (open: boolean) => void;
|
|
63
64
|
} & {
|
|
64
65
|
placement: Placement;
|
|
65
|
-
strategy:
|
|
66
|
-
middlewareData:
|
|
66
|
+
strategy: _floating_ui_react_dom.Strategy;
|
|
67
|
+
middlewareData: _floating_ui_react_dom.MiddlewareData;
|
|
67
68
|
x: number;
|
|
68
69
|
y: number;
|
|
69
70
|
isPositioned: boolean;
|
|
@@ -84,11 +85,12 @@ declare function Tooltip({ children, ...options }: {
|
|
|
84
85
|
children: React$1.ReactNode;
|
|
85
86
|
} & TooltipOptions): react_jsx_runtime.JSX.Element;
|
|
86
87
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLElement> & {
|
|
87
|
-
asChild?: boolean
|
|
88
|
+
asChild?: boolean;
|
|
88
89
|
onPress?: any;
|
|
89
90
|
}, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
90
91
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLProps<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
91
92
|
declare function DefaultTooltipContent(props: {
|
|
93
|
+
className?: string;
|
|
92
94
|
children: React$1.ReactNode;
|
|
93
95
|
}): react_jsx_runtime.JSX.Element;
|
|
94
96
|
|
|
@@ -97,13 +99,18 @@ declare function ThumbnailGridContainer(props: {
|
|
|
97
99
|
wide?: boolean;
|
|
98
100
|
}): react_jsx_runtime.JSX.Element;
|
|
99
101
|
|
|
100
|
-
declare function LazyThumbnail(
|
|
102
|
+
declare function LazyThumbnail({ cover, fade, }: {
|
|
103
|
+
cover?: boolean;
|
|
104
|
+
fade?: boolean;
|
|
105
|
+
}): react_jsx_runtime.JSX.Element;
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
interface CanvasThumbnailGridItemProps {
|
|
108
|
+
onClick?: () => void;
|
|
103
109
|
id: string;
|
|
104
110
|
selected?: boolean;
|
|
105
|
-
|
|
106
|
-
}
|
|
111
|
+
active?: boolean;
|
|
112
|
+
}
|
|
113
|
+
declare function CanvasThumbnailGridItem(props: CanvasThumbnailGridItemProps): react_jsx_runtime.JSX.Element;
|
|
107
114
|
|
|
108
115
|
interface ModalProps {
|
|
109
116
|
id?: string;
|
|
@@ -115,7 +122,7 @@ interface ModalProps {
|
|
|
115
122
|
children: React.ReactNode;
|
|
116
123
|
actions?: React.ReactNode;
|
|
117
124
|
}
|
|
118
|
-
declare function Modal({ id, title, open, onClose, actions, children }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function Modal({ id, title, open, onClose, actions, children, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
119
126
|
|
|
120
127
|
declare function ControlButton({ children, className, ...props }: React.PropsWithChildren<React.ButtonHTMLAttributes<HTMLButtonElement>>): react_jsx_runtime.JSX.Element;
|
|
121
128
|
|
|
@@ -186,7 +193,7 @@ interface SidebarTabsProps {
|
|
|
186
193
|
selectedKey?: string;
|
|
187
194
|
onSelectionChange?: (key: string) => void;
|
|
188
195
|
}
|
|
189
|
-
declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange }: SidebarTabsProps): react_jsx_runtime.JSX.Element;
|
|
196
|
+
declare function SidebarTabs({ menu, menuId, selectedKey, onSelectionChange, }: SidebarTabsProps): react_jsx_runtime.JSX.Element;
|
|
190
197
|
|
|
191
198
|
declare function MetadataContainer({ className, label, children, ...props }: {
|
|
192
199
|
label: InternationalString | null;
|
|
@@ -217,6 +224,33 @@ declare const Form: {
|
|
|
217
224
|
Radio: typeof MeRadio;
|
|
218
225
|
};
|
|
219
226
|
|
|
227
|
+
declare function HTMLEditor({ value, onChange, disabled, }: {
|
|
228
|
+
value: string;
|
|
229
|
+
disabled?: boolean;
|
|
230
|
+
onChange: (text: string) => void;
|
|
231
|
+
}): react_jsx_runtime.JSX.Element;
|
|
232
|
+
|
|
233
|
+
declare function MDXEditor({ editorRef, ...props }: {
|
|
234
|
+
editorRef?: ForwardedRef<MDXEditorMethods> | null;
|
|
235
|
+
} & MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
236
|
+
|
|
237
|
+
declare function IconButton({ children, active, label, disabled, onPress, }: {
|
|
238
|
+
children: React.ReactNode;
|
|
239
|
+
onPress?: () => void;
|
|
240
|
+
active?: boolean;
|
|
241
|
+
disabled?: boolean;
|
|
242
|
+
label: string;
|
|
243
|
+
}): react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
245
|
+
declare function ItemWithHandle({ children, handle, actions, grid, }: {
|
|
246
|
+
grid?: boolean;
|
|
247
|
+
children: React.ReactNode;
|
|
248
|
+
handle: React.ReactNode;
|
|
249
|
+
actions?: React.ReactNode;
|
|
250
|
+
}): react_jsx_runtime.JSX.Element;
|
|
251
|
+
|
|
252
|
+
declare const HandleContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
253
|
+
|
|
220
254
|
declare function CreateCanvasIcon(): react_jsx_runtime.JSX.Element;
|
|
221
255
|
|
|
222
256
|
declare const AddImageIcon: (props: SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -246,6 +280,39 @@ declare function AddIcon({ className, inline, height, color, }: {
|
|
|
246
280
|
color?: string;
|
|
247
281
|
}): react_jsx_runtime.JSX.Element;
|
|
248
282
|
|
|
283
|
+
declare function DeleteForeverIcon(props: React$1.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
284
|
+
|
|
285
|
+
declare function TextIcon(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
286
|
+
|
|
287
|
+
declare function MoreMenu(): react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
289
|
+
interface ErrorMessageProps {
|
|
290
|
+
children: React__default.ReactNode;
|
|
291
|
+
small?: boolean;
|
|
292
|
+
className?: string;
|
|
293
|
+
}
|
|
294
|
+
declare function ErrorMessage({ children, small, className }: ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
295
|
+
|
|
249
296
|
declare function useFastList<T>(list: undefined | T[], firstRender?: number): T[];
|
|
250
297
|
|
|
251
|
-
|
|
298
|
+
declare function RenderTextualContent(props: {
|
|
299
|
+
strategy: TextualContentStrategy;
|
|
300
|
+
}): react_jsx_runtime.JSX.Element;
|
|
301
|
+
|
|
302
|
+
interface IIIFMediaPlayerProps {
|
|
303
|
+
canvas: {
|
|
304
|
+
id: string;
|
|
305
|
+
};
|
|
306
|
+
media: {
|
|
307
|
+
duration: number;
|
|
308
|
+
format: string;
|
|
309
|
+
url: string;
|
|
310
|
+
};
|
|
311
|
+
captions?: any[];
|
|
312
|
+
poster?: string;
|
|
313
|
+
startTime?: number;
|
|
314
|
+
language?: string;
|
|
315
|
+
}
|
|
316
|
+
declare function IIIFMediaPlayer(props: IIIFMediaPlayerProps): react_jsx_runtime.JSX.Element;
|
|
317
|
+
|
|
318
|
+
export { ActionButton, AddIcon, AddImageIcon, AtlasBanner, AudioIcon, CanvasThumbnailGridItem, Card3D, ConfirmSelectionButton, ControlButton, CreateCanvasIcon, CreatorGrid, type CreatorGridItemProps, DefaultTooltipContent, DeleteForeverIcon, DownloadButton, DownloadIcon, EmptyCanvasIcon, EmptyState, ErrorMessage, Form, HTMLEditor, HTMLIcon, HandleContainer, IIIFBrowserIcon, IIIFLogo, IIIFMediaPlayer, type IIIFMediaPlayerProps, IconButton, ItemWithHandle, LazyThumbnail, MDXEditor, ManifestEditorLogo, ManifestOverviewEmptyState, MetadataContainer, Modal, type ModalProps, MoreMenu, OpaqueControls, PanelSideMenu, RenderTextualContent, Sidebar, SidebarContent, SidebarHeader, SidebarTabs, SvgControlBar, Tab, TabList, TabPanel, Tabs, TextIcon, ThumbnailGridContainer, Tooltip, TooltipContent, TooltipTrigger, VideoIcon, YouTubeIcon, createDownload, useFastList, useTooltip, useTooltipContext };
|