@micromag/viewer 0.4.77 → 0.4.79

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.js +178 -168
  2. package/package.json +10 -10
package/es/index.js CHANGED
@@ -5234,7 +5234,7 @@ function updateMediaPlaying(currentMedia, lastMedia, playing) {
5234
5234
  const defaultMenuItems = ['share', 'main'];
5235
5235
  const defaultDeviceScreens = getDeviceScreens();
5236
5236
  function Viewer(t0) {
5237
- const $ = c(127);
5237
+ const $ = c(128);
5238
5238
  const {
5239
5239
  story: t1,
5240
5240
  basePath: t2,
@@ -5623,10 +5623,14 @@ function Viewer(t0) {
5623
5623
  });
5624
5624
  const [pointerDownTime, setPointerDownTime] = useState(null);
5625
5625
  const [longPressPaused, setLongPressPaused] = useState(false);
5626
- const [longPressScreenIndex, setLongPressScreenIndex] = useState(null);
5626
+ const [longPressScreenIndex, setLongPressScreenIndex] = useState(screenIndex);
5627
5627
  if (screenIndex !== longPressScreenIndex && (longPressPaused || pointerDownTime !== null)) {
5628
5628
  setLongPressPaused(false);
5629
5629
  setPointerDownTime(null);
5630
+ } else {
5631
+ if (longPressPaused && pointerDownTime !== null) {
5632
+ setPointerDownTime(null);
5633
+ }
5630
5634
  }
5631
5635
  let t87;
5632
5636
  let t88;
@@ -5661,17 +5665,22 @@ function Viewer(t0) {
5661
5665
  }
5662
5666
  useEffect(t87, t88);
5663
5667
  let t89;
5664
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
5665
- t89 = () => {
5668
+ if ($[26] !== screenIndex) {
5669
+ t89 = e => {
5670
+ if (checkClickable(e.target)) {
5671
+ return;
5672
+ }
5666
5673
  setPointerDownTime(Date.now());
5674
+ setLongPressScreenIndex(screenIndex);
5667
5675
  };
5668
- $[26] = t89;
5676
+ $[26] = screenIndex;
5677
+ $[27] = t89;
5669
5678
  } else {
5670
- t89 = $[26];
5679
+ t89 = $[27];
5671
5680
  }
5672
5681
  const onPointerDown = t89;
5673
5682
  let t90;
5674
- if ($[27] !== interactWithScreen || $[28] !== screenIndex || $[29] !== setPlaying || $[30] !== tapMaximumDuration) {
5683
+ if ($[28] !== interactWithScreen || $[29] !== screenIndex || $[30] !== setPlaying || $[31] !== tapMaximumDuration) {
5675
5684
  t90 = t91 => {
5676
5685
  const {
5677
5686
  currentTarget,
@@ -5693,6 +5702,7 @@ function Viewer(t0) {
5693
5702
  if (!currentPlaying && currentLongPressPaused) {
5694
5703
  setPlaying(true);
5695
5704
  setLongPressPaused(false);
5705
+ setPointerDownTime(null);
5696
5706
  return;
5697
5707
  }
5698
5708
  if (tapMaximumDuration !== null && elapsedTime > tapMaximumDuration) {
@@ -5707,13 +5717,13 @@ function Viewer(t0) {
5707
5717
  y
5708
5718
  });
5709
5719
  };
5710
- $[27] = interactWithScreen;
5711
- $[28] = screenIndex;
5712
- $[29] = setPlaying;
5713
- $[30] = tapMaximumDuration;
5714
- $[31] = t90;
5720
+ $[28] = interactWithScreen;
5721
+ $[29] = screenIndex;
5722
+ $[30] = setPlaying;
5723
+ $[31] = tapMaximumDuration;
5724
+ $[32] = t90;
5715
5725
  } else {
5716
- t90 = $[31];
5726
+ t90 = $[32];
5717
5727
  }
5718
5728
  const onTap = t90;
5719
5729
  const computeScreenProgress = t91 => {
@@ -5791,38 +5801,38 @@ function Viewer(t0) {
5791
5801
  }
5792
5802
  });
5793
5803
  let t98;
5794
- if ($[32] !== dragContentBind || $[33] !== longPressPaused || $[34] !== playing) {
5804
+ if ($[33] !== dragContentBind || $[34] !== longPressPaused || $[35] !== playing) {
5795
5805
  t98 = dragContentBind({
5796
5806
  playing,
5797
5807
  longPressPaused
5798
5808
  });
5799
- $[32] = dragContentBind;
5800
- $[33] = longPressPaused;
5801
- $[34] = playing;
5802
- $[35] = t98;
5809
+ $[33] = dragContentBind;
5810
+ $[34] = longPressPaused;
5811
+ $[35] = playing;
5812
+ $[36] = t98;
5803
5813
  } else {
5804
- t98 = $[35];
5814
+ t98 = $[36];
5805
5815
  }
5806
5816
  const originalDragBindings = t98;
5807
5817
  let t99;
5808
- if ($[36] !== originalDragBindings) {
5818
+ if ($[37] !== originalDragBindings) {
5809
5819
  t99 = {
5810
- onClickCapture: e => !checkClickable(e.target) ? originalDragBindings?.onClickCapture?.(e) : null,
5811
- onLostPointerCapture: e_0 => !checkClickable(e_0.target) ? originalDragBindings?.onLostPointerCapture?.(e_0) : null,
5812
- onPointerCancel: e_1 => !checkClickable(e_1.target) ? originalDragBindings?.onPointerCancel?.(e_1) : null,
5813
- onPointerDown: e_2 => !checkClickable(e_2.target) ? originalDragBindings?.onPointerDown?.(e_2) : null,
5814
- onPointerMove: e_3 => !checkClickable(e_3.target) ? originalDragBindings?.onPointerMove?.(e_3) : null,
5815
- onPointerUp: e_4 => !checkClickable(e_4.target) ? originalDragBindings?.onPointerUp?.(e_4) : null,
5816
- onScroll: e_5 => !checkClickable(e_5.target) ? originalDragBindings?.onScroll?.(e_5) : null
5820
+ onClickCapture: e_0 => !checkClickable(e_0.target) ? originalDragBindings?.onClickCapture?.(e_0) : null,
5821
+ onLostPointerCapture: e_1 => !checkClickable(e_1.target) ? originalDragBindings?.onLostPointerCapture?.(e_1) : null,
5822
+ onPointerCancel: e_2 => !checkClickable(e_2.target) ? originalDragBindings?.onPointerCancel?.(e_2) : null,
5823
+ onPointerDown: e_3 => !checkClickable(e_3.target) ? originalDragBindings?.onPointerDown?.(e_3) : null,
5824
+ onPointerMove: e_4 => !checkClickable(e_4.target) ? originalDragBindings?.onPointerMove?.(e_4) : null,
5825
+ onPointerUp: e_5 => !checkClickable(e_5.target) ? originalDragBindings?.onPointerUp?.(e_5) : null,
5826
+ onScroll: e_6 => !checkClickable(e_6.target) ? originalDragBindings?.onScroll?.(e_6) : null
5817
5827
  };
5818
- $[36] = originalDragBindings;
5819
- $[37] = t99;
5828
+ $[37] = originalDragBindings;
5829
+ $[38] = t99;
5820
5830
  } else {
5821
- t99 = $[37];
5831
+ t99 = $[38];
5822
5832
  }
5823
5833
  const dragBindings = t99;
5824
5834
  let t100;
5825
- if ($[38] !== neighborScreenOffset || $[39] !== neighborScreenScale || $[40] !== neighborScreensActive || $[41] !== screensCount || $[42] !== transitionType) {
5835
+ if ($[39] !== neighborScreenOffset || $[40] !== neighborScreenScale || $[41] !== neighborScreensActive || $[42] !== screensCount || $[43] !== transitionType) {
5826
5836
  t100 = (index_1, spring) => {
5827
5837
  if (transitionType === "stack") {
5828
5838
  return {
@@ -5874,14 +5884,14 @@ function Viewer(t0) {
5874
5884
  zIndex: screensCount - index_1
5875
5885
  };
5876
5886
  };
5877
- $[38] = neighborScreenOffset;
5878
- $[39] = neighborScreenScale;
5879
- $[40] = neighborScreensActive;
5880
- $[41] = screensCount;
5881
- $[42] = transitionType;
5882
- $[43] = t100;
5887
+ $[39] = neighborScreenOffset;
5888
+ $[40] = neighborScreenScale;
5889
+ $[41] = neighborScreensActive;
5890
+ $[42] = screensCount;
5891
+ $[43] = transitionType;
5892
+ $[44] = t100;
5883
5893
  } else {
5884
- t100 = $[43];
5894
+ t100 = $[44];
5885
5895
  }
5886
5896
  const getScreenStylesByIndex = t100;
5887
5897
  const {
@@ -5908,15 +5918,15 @@ function Viewer(t0) {
5908
5918
  });
5909
5919
  changeIndex(index_2);
5910
5920
  };
5911
- const onContextMenu = e_6 => {
5921
+ const onContextMenu = e_7 => {
5912
5922
  if (!landscape) {
5913
- e_6.preventDefault();
5923
+ e_7.preventDefault();
5914
5924
  return false;
5915
5925
  }
5916
5926
  return true;
5917
5927
  };
5918
5928
  let t104;
5919
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
5929
+ if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
5920
5930
  t104 = /*#__PURE__*/jsx("style", {
5921
5931
  type: "text/css",
5922
5932
  href: "data-viewer-overscroll",
@@ -5925,29 +5935,29 @@ function Viewer(t0) {
5925
5935
  __html: "body { overscroll-behavior: contain; }"
5926
5936
  }
5927
5937
  });
5928
- $[44] = t104;
5938
+ $[45] = t104;
5929
5939
  } else {
5930
- t104 = $[44];
5940
+ t104 = $[45];
5931
5941
  }
5932
5942
  const overscrollStyle = t104;
5933
5943
  let t105;
5934
- if ($[45] !== toggleFullscreen) {
5944
+ if ($[46] !== toggleFullscreen) {
5935
5945
  t105 = () => toggleFullscreen();
5936
- $[45] = toggleFullscreen;
5937
- $[46] = t105;
5946
+ $[46] = toggleFullscreen;
5947
+ $[47] = t105;
5938
5948
  } else {
5939
- t105 = $[46];
5949
+ t105 = $[47];
5940
5950
  }
5941
5951
  const t106 = renderContext !== "view";
5942
5952
  let t107;
5943
- if ($[47] !== t106) {
5953
+ if ($[48] !== t106) {
5944
5954
  t107 = {
5945
5955
  disabled: t106
5946
5956
  };
5947
- $[47] = t106;
5948
- $[48] = t107;
5957
+ $[48] = t106;
5958
+ $[49] = t107;
5949
5959
  } else {
5950
- t107 = $[48];
5960
+ t107 = $[49];
5951
5961
  }
5952
5962
  useKeyboardShortcuts({
5953
5963
  f: t105,
@@ -5997,7 +6007,7 @@ function Viewer(t0) {
5997
6007
  }
5998
6008
  let t115;
5999
6009
  let t116;
6000
- if ($[49] !== isView || $[50] !== shareIncentiveVisible) {
6010
+ if ($[50] !== isView || $[51] !== shareIncentiveVisible) {
6001
6011
  t115 = () => {
6002
6012
  if (!shareIncentiveVisible || !isView) {
6003
6013
  return _temp6;
@@ -6010,18 +6020,18 @@ function Viewer(t0) {
6010
6020
  };
6011
6021
  };
6012
6022
  t116 = [shareIncentiveVisible, isView];
6013
- $[49] = isView;
6014
- $[50] = shareIncentiveVisible;
6015
- $[51] = t115;
6016
- $[52] = t116;
6023
+ $[50] = isView;
6024
+ $[51] = shareIncentiveVisible;
6025
+ $[52] = t115;
6026
+ $[53] = t116;
6017
6027
  } else {
6018
- t115 = $[51];
6019
- t116 = $[52];
6028
+ t115 = $[52];
6029
+ t116 = $[53];
6020
6030
  }
6021
6031
  useEffect(t115, t116);
6022
6032
  let t117;
6023
6033
  let t118;
6024
- if ($[53] !== neighborPreloadDelay || $[54] !== preloadNeighbors) {
6034
+ if ($[54] !== neighborPreloadDelay || $[55] !== preloadNeighbors) {
6025
6035
  t117 = () => {
6026
6036
  if (preloadNeighbors) {
6027
6037
  return _temp7;
@@ -6034,13 +6044,13 @@ function Viewer(t0) {
6034
6044
  };
6035
6045
  };
6036
6046
  t118 = [preloadNeighbors, neighborPreloadDelay];
6037
- $[53] = neighborPreloadDelay;
6038
- $[54] = preloadNeighbors;
6039
- $[55] = t117;
6040
- $[56] = t118;
6047
+ $[54] = neighborPreloadDelay;
6048
+ $[55] = preloadNeighbors;
6049
+ $[56] = t117;
6050
+ $[57] = t118;
6041
6051
  } else {
6042
- t117 = $[55];
6043
- t118 = $[56];
6052
+ t117 = $[56];
6053
+ t118 = $[57];
6044
6054
  }
6045
6055
  useEffect(t117, t118);
6046
6056
  let topHeight = 0;
@@ -6062,15 +6072,15 @@ function Viewer(t0) {
6062
6072
  const NavigationHint = withNavigationHint === "hand" ? HandTap : ArrowHint;
6063
6073
  const t119 = !isView;
6064
6074
  let t120;
6065
- if ($[57] !== t119) {
6075
+ if ($[58] !== t119) {
6066
6076
  t120 = {
6067
6077
  disabled: t119,
6068
6078
  timeout: 2000
6069
6079
  };
6070
- $[57] = t119;
6071
- $[58] = t120;
6080
+ $[58] = t119;
6081
+ $[59] = t120;
6072
6082
  } else {
6073
- t120 = $[58];
6083
+ t120 = $[59];
6074
6084
  }
6075
6085
  const {
6076
6086
  ref: activityRef,
@@ -6101,14 +6111,14 @@ function Viewer(t0) {
6101
6111
  children: overscrollStyle
6102
6112
  }) : overscrollStyle;
6103
6113
  let t125;
6104
- if ($[59] !== finalFonts) {
6114
+ if ($[60] !== finalFonts) {
6105
6115
  t125 = /*#__PURE__*/jsx(FontFaces, {
6106
6116
  fonts: finalFonts
6107
6117
  });
6108
- $[59] = finalFonts;
6109
- $[60] = t125;
6118
+ $[60] = finalFonts;
6119
+ $[61] = t125;
6110
6120
  } else {
6111
- t125 = $[60];
6121
+ t125 = $[61];
6112
6122
  }
6113
6123
  const t126 = classNames([styles$7.container, screenSize.screens.map(_temp9), className, {
6114
6124
  [styles$7.landscape]: landscape,
@@ -6121,19 +6131,19 @@ function Viewer(t0) {
6121
6131
  [styles$7.isDragging]: isDragging
6122
6132
  }]);
6123
6133
  let t127;
6124
- if ($[61] !== activityRef || $[62] !== containerRef || $[63] !== fullscreenRef || $[64] !== screenSizeRef) {
6134
+ if ($[62] !== activityRef || $[63] !== containerRef || $[64] !== fullscreenRef || $[65] !== screenSizeRef) {
6125
6135
  t127 = mergeRefs(containerRef, fullscreenRef, activityRef, screenSizeRef);
6126
- $[61] = activityRef;
6127
- $[62] = containerRef;
6128
- $[63] = fullscreenRef;
6129
- $[64] = screenSizeRef;
6130
- $[65] = t127;
6136
+ $[62] = activityRef;
6137
+ $[63] = containerRef;
6138
+ $[64] = fullscreenRef;
6139
+ $[65] = screenSizeRef;
6140
+ $[66] = t127;
6131
6141
  } else {
6132
- t127 = $[65];
6142
+ t127 = $[66];
6133
6143
  }
6134
6144
  const t128 = screenIndex + 1;
6135
6145
  let t129;
6136
- if ($[66] !== screens || $[67] !== t128) {
6146
+ if ($[67] !== screens || $[68] !== t128) {
6137
6147
  t129 = /*#__PURE__*/jsx("div", {
6138
6148
  className: styles$7.ariaAnnouncement,
6139
6149
  id: "announce",
@@ -6147,25 +6157,25 @@ function Viewer(t0) {
6147
6157
  }
6148
6158
  })
6149
6159
  });
6150
- $[66] = screens;
6151
- $[67] = t128;
6152
- $[68] = t129;
6160
+ $[67] = screens;
6161
+ $[68] = t128;
6162
+ $[69] = t129;
6153
6163
  } else {
6154
- t129 = $[68];
6164
+ t129 = $[69];
6155
6165
  }
6156
6166
  let t130;
6157
- if ($[69] !== intl) {
6167
+ if ($[70] !== intl) {
6158
6168
  t130 = intl.formatMessage({
6159
6169
  id: "gfZs4J",
6160
6170
  defaultMessage: "Skip Links"
6161
6171
  });
6162
- $[69] = intl;
6163
- $[70] = t130;
6172
+ $[70] = intl;
6173
+ $[71] = t130;
6164
6174
  } else {
6165
- t130 = $[70];
6175
+ t130 = $[71];
6166
6176
  }
6167
6177
  let t131;
6168
- if ($[71] !== playbackControlsVisible || $[72] !== playbackHelpVisible || $[73] !== withoutPlaybackControls) {
6178
+ if ($[72] !== playbackControlsVisible || $[73] !== playbackHelpVisible || $[74] !== withoutPlaybackControls) {
6169
6179
  t131 = playbackHelpVisible ? /*#__PURE__*/jsxs(Fragment, {
6170
6180
  children: [/*#__PURE__*/jsx(Button, {
6171
6181
  onClick: onClickSkipToPlaybackControls,
@@ -6191,25 +6201,25 @@ function Viewer(t0) {
6191
6201
  })
6192
6202
  }) : null]
6193
6203
  }) : null;
6194
- $[71] = playbackControlsVisible;
6195
- $[72] = playbackHelpVisible;
6196
- $[73] = withoutPlaybackControls;
6197
- $[74] = t131;
6204
+ $[72] = playbackControlsVisible;
6205
+ $[73] = playbackHelpVisible;
6206
+ $[74] = withoutPlaybackControls;
6207
+ $[75] = t131;
6198
6208
  } else {
6199
- t131 = $[74];
6209
+ t131 = $[75];
6200
6210
  }
6201
6211
  let t132;
6202
- if ($[75] !== t130 || $[76] !== t131) {
6212
+ if ($[76] !== t130 || $[77] !== t131) {
6203
6213
  t132 = /*#__PURE__*/jsx("nav", {
6204
6214
  "aria-label": t130,
6205
6215
  className: styles$7.accessibilityLinks,
6206
6216
  children: t131
6207
6217
  });
6208
- $[75] = t130;
6209
- $[76] = t131;
6210
- $[77] = t132;
6218
+ $[76] = t130;
6219
+ $[77] = t131;
6220
+ $[78] = t132;
6211
6221
  } else {
6212
- t132 = $[77];
6222
+ t132 = $[78];
6213
6223
  }
6214
6224
  const t133 = !withoutMenu ? /*#__PURE__*/jsx(ViewerMenu, {
6215
6225
  story: parsedStory,
@@ -6327,87 +6337,87 @@ function Viewer(t0) {
6327
6337
  }]);
6328
6338
  const t136 = isEditor ? 10 : menuDotsContainerHeight - 10;
6329
6339
  let t137;
6330
- if ($[78] !== t136) {
6340
+ if ($[79] !== t136) {
6331
6341
  t137 = {
6332
6342
  top: t136
6333
6343
  };
6334
- $[78] = t136;
6335
- $[79] = t137;
6344
+ $[79] = t136;
6345
+ $[80] = t137;
6336
6346
  } else {
6337
- t137 = $[79];
6347
+ t137 = $[80];
6338
6348
  }
6339
6349
  let t138;
6340
- if ($[80] !== currentShareIncentive) {
6350
+ if ($[81] !== currentShareIncentive) {
6341
6351
  t138 = /*#__PURE__*/jsx(ShareIncentive, {
6342
6352
  className: styles$7.shareIncentive,
6343
6353
  ...currentShareIncentive
6344
6354
  });
6345
- $[80] = currentShareIncentive;
6346
- $[81] = t138;
6355
+ $[81] = currentShareIncentive;
6356
+ $[82] = t138;
6347
6357
  } else {
6348
- t138 = $[81];
6358
+ t138 = $[82];
6349
6359
  }
6350
6360
  let t139;
6351
- if ($[82] !== t135 || $[83] !== t137 || $[84] !== t138) {
6361
+ if ($[83] !== t135 || $[84] !== t137 || $[85] !== t138) {
6352
6362
  t139 = /*#__PURE__*/jsx("div", {
6353
6363
  className: t135,
6354
6364
  style: t137,
6355
6365
  children: t138
6356
6366
  });
6357
- $[82] = t135;
6358
- $[83] = t137;
6359
- $[84] = t138;
6360
- $[85] = t139;
6367
+ $[83] = t135;
6368
+ $[84] = t137;
6369
+ $[85] = t138;
6370
+ $[86] = t139;
6361
6371
  } else {
6362
- t139 = $[85];
6372
+ t139 = $[86];
6363
6373
  }
6364
6374
  const t140 = withFullscreenWebView ? null : Math.max(screenContainerWidth, 600);
6365
6375
  let t141;
6366
- if ($[86] !== t140) {
6376
+ if ($[87] !== t140) {
6367
6377
  t141 = {
6368
6378
  maxWidth: t140
6369
6379
  };
6370
- $[86] = t140;
6371
- $[87] = t141;
6380
+ $[87] = t140;
6381
+ $[88] = t141;
6372
6382
  } else {
6373
- t141 = $[87];
6383
+ t141 = $[88];
6374
6384
  }
6375
6385
  let t142;
6376
- if ($[88] !== t141 || $[89] !== trackingEnabled) {
6386
+ if ($[89] !== t141 || $[90] !== trackingEnabled) {
6377
6387
  t142 = /*#__PURE__*/jsx(WebViewContainer, {
6378
6388
  className: styles$7.webView,
6379
6389
  trackingEnabled: trackingEnabled,
6380
6390
  style: t141
6381
6391
  });
6382
- $[88] = t141;
6383
- $[89] = trackingEnabled;
6384
- $[90] = t142;
6392
+ $[89] = t141;
6393
+ $[90] = trackingEnabled;
6394
+ $[91] = t142;
6385
6395
  } else {
6386
- t142 = $[90];
6396
+ t142 = $[91];
6387
6397
  }
6388
6398
  let t143;
6389
- if ($[91] !== onContextMenu || $[92] !== t126 || $[93] !== t127 || $[94] !== t129 || $[95] !== t132 || $[96] !== t133 || $[97] !== t134 || $[98] !== t139 || $[99] !== t142) {
6399
+ if ($[92] !== onContextMenu || $[93] !== t126 || $[94] !== t127 || $[95] !== t129 || $[96] !== t132 || $[97] !== t133 || $[98] !== t134 || $[99] !== t139 || $[100] !== t142) {
6390
6400
  t143 = /*#__PURE__*/jsxs("div", {
6391
6401
  className: t126,
6392
6402
  ref: t127,
6393
6403
  onContextMenu: onContextMenu,
6394
6404
  children: [t129, t132, t133, t134, t139, t142]
6395
6405
  });
6396
- $[91] = onContextMenu;
6397
- $[92] = t126;
6398
- $[93] = t127;
6399
- $[94] = t129;
6400
- $[95] = t132;
6401
- $[96] = t133;
6402
- $[97] = t134;
6403
- $[98] = t139;
6404
- $[99] = t142;
6405
- $[100] = t143;
6406
+ $[92] = onContextMenu;
6407
+ $[93] = t126;
6408
+ $[94] = t127;
6409
+ $[95] = t129;
6410
+ $[96] = t132;
6411
+ $[97] = t133;
6412
+ $[98] = t134;
6413
+ $[99] = t139;
6414
+ $[100] = t142;
6415
+ $[101] = t143;
6406
6416
  } else {
6407
- t143 = $[100];
6417
+ t143 = $[101];
6408
6418
  }
6409
6419
  let t144;
6410
- if ($[101] !== T2 || $[102] !== activityDetected || $[103] !== bottomHeight || $[104] !== disableInteraction || $[105] !== enableInteraction || $[106] !== eventsManager || $[107] !== gotoNextScreen || $[108] !== gotoPreviousScreen || $[109] !== menuOverScreen || $[110] !== menuVisible || $[111] !== t123 || $[112] !== t124 || $[113] !== t125 || $[114] !== t143 || $[115] !== topHeight || $[116] !== viewerHeight || $[117] !== viewerWidth) {
6420
+ if ($[102] !== T2 || $[103] !== activityDetected || $[104] !== bottomHeight || $[105] !== disableInteraction || $[106] !== enableInteraction || $[107] !== eventsManager || $[108] !== gotoNextScreen || $[109] !== gotoPreviousScreen || $[110] !== menuOverScreen || $[111] !== menuVisible || $[112] !== t123 || $[113] !== t124 || $[114] !== t125 || $[115] !== t143 || $[116] !== topHeight || $[117] !== viewerHeight || $[118] !== viewerWidth) {
6411
6421
  t144 = /*#__PURE__*/jsxs(T2, {
6412
6422
  events: eventsManager,
6413
6423
  menuVisible: menuVisible,
@@ -6424,52 +6434,52 @@ function Viewer(t0) {
6424
6434
  enableInteraction: enableInteraction,
6425
6435
  children: [t124, t125, t143]
6426
6436
  });
6427
- $[101] = T2;
6428
- $[102] = activityDetected;
6429
- $[103] = bottomHeight;
6430
- $[104] = disableInteraction;
6431
- $[105] = enableInteraction;
6432
- $[106] = eventsManager;
6433
- $[107] = gotoNextScreen;
6434
- $[108] = gotoPreviousScreen;
6435
- $[109] = menuOverScreen;
6436
- $[110] = menuVisible;
6437
- $[111] = t123;
6438
- $[112] = t124;
6439
- $[113] = t125;
6440
- $[114] = t143;
6441
- $[115] = topHeight;
6442
- $[116] = viewerHeight;
6443
- $[117] = viewerWidth;
6444
- $[118] = t144;
6445
- } else {
6446
- t144 = $[118];
6437
+ $[102] = T2;
6438
+ $[103] = activityDetected;
6439
+ $[104] = bottomHeight;
6440
+ $[105] = disableInteraction;
6441
+ $[106] = enableInteraction;
6442
+ $[107] = eventsManager;
6443
+ $[108] = gotoNextScreen;
6444
+ $[109] = gotoPreviousScreen;
6445
+ $[110] = menuOverScreen;
6446
+ $[111] = menuVisible;
6447
+ $[112] = t123;
6448
+ $[113] = t124;
6449
+ $[114] = t125;
6450
+ $[115] = t143;
6451
+ $[116] = topHeight;
6452
+ $[117] = viewerHeight;
6453
+ $[118] = viewerWidth;
6454
+ $[119] = t144;
6455
+ } else {
6456
+ t144 = $[119];
6447
6457
  }
6448
6458
  let t145;
6449
- if ($[119] !== T1 || $[120] !== screenSize || $[121] !== t144) {
6459
+ if ($[120] !== T1 || $[121] !== screenSize || $[122] !== t144) {
6450
6460
  t145 = /*#__PURE__*/jsx(T1, {
6451
6461
  size: screenSize,
6452
6462
  children: t144
6453
6463
  });
6454
- $[119] = T1;
6455
- $[120] = screenSize;
6456
- $[121] = t144;
6457
- $[122] = t145;
6464
+ $[120] = T1;
6465
+ $[121] = screenSize;
6466
+ $[122] = t144;
6467
+ $[123] = t145;
6458
6468
  } else {
6459
- t145 = $[122];
6469
+ t145 = $[123];
6460
6470
  }
6461
6471
  let t146;
6462
- if ($[123] !== T0 || $[124] !== parsedStory || $[125] !== t145) {
6472
+ if ($[124] !== T0 || $[125] !== parsedStory || $[126] !== t145) {
6463
6473
  t146 = /*#__PURE__*/jsx(T0, {
6464
6474
  story: parsedStory,
6465
6475
  children: t145
6466
6476
  });
6467
- $[123] = T0;
6468
- $[124] = parsedStory;
6469
- $[125] = t145;
6470
- $[126] = t146;
6477
+ $[124] = T0;
6478
+ $[125] = parsedStory;
6479
+ $[126] = t145;
6480
+ $[127] = t146;
6471
6481
  } else {
6472
- t146 = $[126];
6482
+ t146 = $[127];
6473
6483
  }
6474
6484
  return t146;
6475
6485
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/viewer",
3
- "version": "0.4.77",
3
+ "version": "0.4.79",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -64,14 +64,14 @@
64
64
  "dependencies": {
65
65
  "@babel/runtime": "^7.28.6",
66
66
  "@folklore/routes": "^0.4.4",
67
- "@micromag/core": "^0.4.77",
68
- "@micromag/element-badge": "^0.4.77",
69
- "@micromag/element-scroll": "^0.4.77",
70
- "@micromag/element-share-options": "^0.4.77",
71
- "@micromag/element-webview": "^0.4.77",
72
- "@micromag/elements": "^0.4.77",
73
- "@micromag/intl": "^0.4.77",
74
- "@micromag/screens": "^0.4.77",
67
+ "@micromag/core": "^0.4.79",
68
+ "@micromag/element-badge": "^0.4.79",
69
+ "@micromag/element-scroll": "^0.4.79",
70
+ "@micromag/element-share-options": "^0.4.79",
71
+ "@micromag/element-webview": "^0.4.79",
72
+ "@micromag/elements": "^0.4.79",
73
+ "@micromag/intl": "^0.4.79",
74
+ "@micromag/screens": "^0.4.79",
75
75
  "@react-spring/core": "^10.0.3",
76
76
  "@react-spring/web": "^10.0.3",
77
77
  "@use-gesture/react": "^10.3.0",
@@ -90,6 +90,6 @@
90
90
  "access": "public",
91
91
  "registry": "https://registry.npmjs.org/"
92
92
  },
93
- "gitHead": "b55c2c748383d30c8ff0ca7594e499dbdc8d1c10",
93
+ "gitHead": "9390fd82c9dbf9c0eeaa15697e34bbc79625383c",
94
94
  "types": "es/index.d.ts"
95
95
  }