@luna-editor/engine 0.4.1 → 0.4.2

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/dist/Player.js +3 -1
  2. package/package.json +1 -1
package/dist/Player.js CHANGED
@@ -39,7 +39,9 @@ import { ComponentType } from "./sdk";
39
39
  import { convertBranchBlockToScenarioBlock } from "./utils/branchBlockConverter";
40
40
  import { BranchNavigator } from "./utils/branchNavigator";
41
41
  import { VariableManager } from "./utils/variableManager";
42
- export const Player = ({ scenario: scenarioProp, settings, plugins = [], sounds = [], onEnd, onScenarioEnd, onScenarioStart, onScenarioCancelled, onSettingsChange, className, autoplay = false, preventDefaultScroll = true, screenSize: screenSizeProp, disableKeyboardNavigation = false, }) => {
42
+ const EMPTY_PLUGINS = [];
43
+ const EMPTY_SOUNDS = [];
44
+ export const Player = ({ scenario: scenarioProp, settings, plugins = EMPTY_PLUGINS, sounds = EMPTY_SOUNDS, onEnd, onScenarioEnd, onScenarioStart, onScenarioCancelled, onSettingsChange, className, autoplay = false, preventDefaultScroll = true, screenSize: screenSizeProp, disableKeyboardNavigation = false, }) => {
43
45
  var _a, _b, _c, _d;
44
46
  // scenario.blocks が存在しない場合は空の配列を使用
45
47
  const scenario = useMemo(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luna-editor/engine",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Luna Editor scenario playback engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",