@lincyaw/addon-motion 1.0.0-rc.8 → 1.0.0-rc.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/addon-motion",
3
- "version": "1.0.0-rc.8",
3
+ "version": "1.0.0-rc.9",
4
4
  "description": "Presmium plugin: animated scenes on the step's time, with GSAP, Anime.js, Motion, Three.js, Remotion and D3",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "peerDependencies": {
43
43
  "react": "^18.3.1",
44
44
  "react-dom": "^18.3.1",
45
- "@lincyaw/host": "^1.0.0-rc.8",
46
- "@lincyaw/kernel": "^1.0.0-rc.8"
45
+ "@lincyaw/host": "^1.0.0-rc.9",
46
+ "@lincyaw/kernel": "^1.0.0-rc.9"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/d3": "7.4.3",
@@ -52,9 +52,9 @@
52
52
  "@types/three": "0.186.0",
53
53
  "react": "18.3.1",
54
54
  "react-dom": "18.3.1",
55
- "@lincyaw/cli": "1.0.0-rc.8",
56
- "@lincyaw/kernel": "1.0.0-rc.8",
57
- "@lincyaw/host": "1.0.0-rc.8"
55
+ "@lincyaw/cli": "1.0.0-rc.9",
56
+ "@lincyaw/host": "1.0.0-rc.9",
57
+ "@lincyaw/kernel": "1.0.0-rc.9"
58
58
  },
59
59
  "presmium": {
60
60
  "preview": {
@@ -15,7 +15,7 @@ import {
15
15
  useViewRole,
16
16
  } from '@lincyaw/host'
17
17
  import type { PlaybackLease } from '@lincyaw/host'
18
- import { errorMessage } from '@lincyaw/kernel'
18
+ import { errorMessage, reportStaleModule } from '@lincyaw/kernel'
19
19
  import { useEffect, useLayoutEffect, useRef, useState } from 'react'
20
20
  import type { CSSProperties } from 'react'
21
21
  import type { SceneProps } from '../../components/PmScene.tsx'
@@ -124,6 +124,7 @@ export default function SceneView(props: SceneProps) {
124
124
  setStatus('failed')
125
125
  setFailure(errorMessage(error))
126
126
  console.error(`[presmium.motion] the scene ${props.scene} failed`, error)
127
+ reportStaleModule(error)
127
128
  }
128
129
  useEffect(() => {
129
130
  const before = followedNavigation.current