@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.
- package/dist/Player.js +3 -1
- 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
|
-
|
|
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(() => {
|