@gxpl/sdk 0.0.41 → 0.0.43

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.
@@ -17,7 +17,10 @@ const Preview = ({ children, relations, startScene }) => {
17
17
  const [iframeRef, setIframeRef] = (0, react_1.useState)(null);
18
18
  const [isTransitioning, setIsTransitioning] = (0, react_1.useState)(false);
19
19
  const [activeScene, setActiveScene] = (0, react_1.useState)(startScene);
20
+ console.log('startScene', startScene);
21
+ console.log('relations', relations);
20
22
  const [activeSides, setActiveSides] = (0, react_1.useState)((0, getAvailableTransitions_1.getAvailableTransitions)(startScene, relations));
23
+ console.log('activeScene', activeScene);
21
24
  const handleSwipeToScene = (direction) => {
22
25
  if (!iframeRef || !iframeRef.contentWindow || !iframeRef.contentDocument)
23
26
  return;
@@ -157,7 +157,9 @@ const Scene = ({ children, id, styles: sceneStyles, elRef }) => {
157
157
  interactionsRegistry.notifySceneOutTransition();
158
158
  }
159
159
  if (to === id) {
160
- interactionsRegistry.notifySceneInTransition();
160
+ setTimeout(() => {
161
+ interactionsRegistry.notifySceneInTransition();
162
+ }, 0);
161
163
  }
162
164
  }, [interactionsRegistry, id, isTransitioning, actorRef]);
163
165
  (0, react_1.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxpl/sdk",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",