@micromag/viewer 0.4.100 → 0.4.101

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.
Files changed (2) hide show
  1. package/es/index.d.ts +10 -10
  2. package/package.json +3 -3
package/es/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as React from 'react';
2
+ import React__default, { RefObject } from 'react';
2
3
  import { Story, Visitor, TrackingVariables, ViewerTheme, DeviceScreen, RenderContext, ScreenComponent, MediaElement } from '@micromag/core';
3
- import React, { RefObject } from 'react';
4
4
 
5
5
  interface ViewerContainerProps {
6
6
  story?: Story | null;
@@ -24,7 +24,7 @@ interface ViewerContainerProps {
24
24
  settings?: Record<string, unknown> | null;
25
25
  children?: (...args: unknown[]) => void;
26
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;
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.Element;
28
28
 
29
29
  interface ViewerProps {
30
30
  story?: Story | null;
@@ -49,15 +49,15 @@ interface ViewerProps {
49
49
  neighborPreloadScreens?: number | null;
50
50
  topSafezoneHeight?: number | null;
51
51
  bottomSafezoneHeight?: number | null;
52
- menuDotsButtons?: React.ReactNode | null;
52
+ menuDotsButtons?: React__default.ReactNode | null;
53
53
  menuIsScreenWidth?: boolean;
54
- menuHeader?: React.ReactNode | null;
55
- menuFooter?: React.ReactNode | null;
56
- menuItems?: (string | React.ReactNode)[];
54
+ menuHeader?: React__default.ReactNode | null;
55
+ menuFooter?: React__default.ReactNode | null;
56
+ menuItems?: (string | React__default.ReactNode)[];
57
57
  shareBasePath?: string | null;
58
58
  shareOptions?: string[] | null;
59
- afterShareMenuButton?: React.ReactNode | null;
60
- beforeScreensMenuButton?: React.ReactNode | null;
59
+ afterShareMenuButton?: React__default.ReactNode | null;
60
+ beforeScreensMenuButton?: React__default.ReactNode | null;
61
61
  backToFirstScreenTimeout?: number | null;
62
62
  closeable?: boolean;
63
63
  readyWithoutSize?: boolean;
@@ -90,6 +90,6 @@ interface ViewerProps {
90
90
  } | null;
91
91
  className?: string | null;
92
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, withoutNavigationArrow, withoutTransitions, withNeighborScreens, withFullscreenWebView, withNavigationHint, withoutPlaybackControls, withoutAutoUnmute, onClose: onCloseViewer, onInteraction, onEnd, onScreenChange, onViewModeChange, onMenuChange, currentScreenMedia, screensMedias, screenSizeOptions, className, }: ViewerProps): react_jsx_runtime.JSX.Element;
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, withoutNavigationArrow, withoutTransitions, withNeighborScreens, withFullscreenWebView, withNavigationHint, withoutPlaybackControls, withoutAutoUnmute, onClose: onCloseViewer, onInteraction, onEnd, onScreenChange, onViewModeChange, onMenuChange, currentScreenMedia, screensMedias, screenSizeOptions, className, }: ViewerProps): React__default.JSX.Element;
94
94
 
95
95
  export { Viewer, ViewerContainer as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.4.100",
3
+ "version": "0.4.101",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -67,7 +67,7 @@
67
67
  "@micromag/element-webview": "^0.4.100",
68
68
  "@micromag/elements": "^0.4.100",
69
69
  "@micromag/intl": "^0.4.100",
70
- "@micromag/screens": "^0.4.100",
70
+ "@micromag/screens": "^0.4.101",
71
71
  "@react-spring/core": "^10.0.3",
72
72
  "@react-spring/web": "^10.0.3",
73
73
  "@use-gesture/react": "^10.3.0",
@@ -94,5 +94,5 @@
94
94
  "access": "public",
95
95
  "registry": "https://registry.npmjs.org/"
96
96
  },
97
- "gitHead": "724328f428f29f4950850cf34adb68ef5f46669a"
97
+ "gitHead": "88aec42cff116b686d2331bf397ba2ada2fa393d"
98
98
  }