@micromag/viewer 0.3.831 → 0.4.4

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/es/index.d.ts ADDED
@@ -0,0 +1,95 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Story, Visitor, TrackingVariables, ViewerTheme, DeviceScreen, RenderContext, Ref } from '@micromag/core';
3
+ import React from 'react';
4
+
5
+ interface ViewerContainerProps {
6
+ story?: Story | null;
7
+ paused?: boolean;
8
+ muted?: boolean;
9
+ screen?: string;
10
+ screenComponents?: Record<string, unknown> | null;
11
+ memoryRouter?: boolean;
12
+ basePath?: string | null;
13
+ routes?: unknown;
14
+ withoutRouter?: boolean;
15
+ googleApiKey?: string | null;
16
+ visitor?: Visitor | null;
17
+ locale?: string;
18
+ locales?: string[];
19
+ translations?: Record<string, string> | null;
20
+ pathWithIndex?: boolean;
21
+ trackingVariables?: TrackingVariables | null;
22
+ trackingDisabled?: boolean;
23
+ trackingPaused?: boolean;
24
+ settings?: Record<string, unknown> | null;
25
+ children?: (...args: unknown[]) => void;
26
+ }
27
+ declare function ViewerContainer({ story, paused, muted, screenComponents, memoryRouter, basePath, routes, withoutRouter, googleApiKey, visitor, locale, locales, translations, pathWithIndex, trackingVariables, trackingDisabled, trackingPaused, settings, ...otherProps }: ViewerContainerProps): react_jsx_runtime.JSX.Element;
28
+
29
+ interface ViewerProps {
30
+ story?: Story | null;
31
+ basePath?: string | null;
32
+ theme?: ViewerTheme | null;
33
+ width?: number | null;
34
+ height?: number | null;
35
+ screen?: string | null;
36
+ screenState?: string | null;
37
+ deviceScreens?: DeviceScreen[];
38
+ renderContext?: RenderContext;
39
+ onScreenChange?: ((...args: unknown[]) => void) | null;
40
+ tapNextScreenWidthPercent?: number;
41
+ tapMaximumDuration?: number;
42
+ longPressPauseDelay?: number;
43
+ storyIsParsed?: boolean;
44
+ neighborScreensActive?: number;
45
+ neighborScreenOffset?: number;
46
+ neighborScreenScale?: number;
47
+ neighborPreloadDelay?: number;
48
+ neighborPreloadBackward?: number;
49
+ neighborPreloadScreens?: number | null;
50
+ topSafezoneHeight?: number | null;
51
+ bottomSafezoneHeight?: number | null;
52
+ menuDotsButtons?: React.ReactNode | null;
53
+ menuIsScreenWidth?: boolean;
54
+ menuHeader?: React.ReactNode | null;
55
+ menuFooter?: React.ReactNode | null;
56
+ menuItems?: (string | React.ReactNode)[];
57
+ shareBasePath?: string | null;
58
+ shareOptions?: string[] | null;
59
+ afterShareMenuButton?: React.ReactNode | null;
60
+ beforeScreensMenuButton?: React.ReactNode | null;
61
+ backToFirstScreenTimeout?: number | null;
62
+ closeable?: boolean;
63
+ readyWithoutSize?: boolean;
64
+ withMetadata?: boolean;
65
+ withMicromagBranding?: boolean;
66
+ withoutGestures?: boolean;
67
+ withoutMenu?: boolean;
68
+ withoutScreensMenu?: boolean;
69
+ withoutShareMenu?: boolean;
70
+ withoutMenuShadow?: boolean;
71
+ withoutFullscreen?: boolean;
72
+ withoutNavigationArrow?: boolean;
73
+ withoutTransitions?: boolean;
74
+ withNeighborScreens?: boolean;
75
+ withFullscreenWebView?: boolean;
76
+ withNavigationHint?: boolean | string;
77
+ withoutPlaybackControls?: boolean;
78
+ withoutAutoUnmute?: boolean;
79
+ onClose?: ((...args: unknown[]) => void) | null;
80
+ onInteraction?: ((...args: unknown[]) => void) | null;
81
+ onEnd?: ((...args: unknown[]) => void) | null;
82
+ onViewModeChange?: ((...args: unknown[]) => void) | null;
83
+ onMenuChange?: ((...args: unknown[]) => void) | null;
84
+ currentScreenMedia?: Ref | null;
85
+ screensMedias?: Ref | null;
86
+ screenSizeOptions?: {
87
+ withoutMaxSize?: boolean;
88
+ desktopHeightRatio?: number;
89
+ screenRatio?: number;
90
+ } | null;
91
+ className?: string | null;
92
+ }
93
+ declare function Viewer({ story, basePath, theme: viewerTheme, width, height, screen: screenId, screenState, deviceScreens, renderContext, tapNextScreenWidthPercent, tapMaximumDuration, longPressPauseDelay, storyIsParsed, neighborScreensActive, neighborScreenOffset, neighborScreenScale, neighborPreloadDelay, neighborPreloadBackward, neighborPreloadScreens, topSafezoneHeight, bottomSafezoneHeight, menuIsScreenWidth, menuHeader, menuFooter, menuItems, shareBasePath, shareOptions, afterShareMenuButton, beforeScreensMenuButton, backToFirstScreenTimeout, menuDotsButtons, closeable, readyWithoutSize, withMetadata, withMicromagBranding, withoutGestures, withoutMenu, withoutScreensMenu, withoutShareMenu, withoutMenuShadow, withoutFullscreen, withoutNavigationArrow, withoutTransitions, withNeighborScreens, withFullscreenWebView, withNavigationHint, withoutPlaybackControls, withoutAutoUnmute, onClose: onCloseViewer, onInteraction, onEnd, onScreenChange, onViewModeChange, onMenuChange, currentScreenMedia, screensMedias, screenSizeOptions, className, }: ViewerProps): react_jsx_runtime.JSX.Element;
94
+
95
+ export { Viewer, ViewerContainer as default };