vue-phaserjs 1.22.0 → 1.23.0

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/index.js CHANGED
@@ -55906,19 +55906,18 @@ const Ze = {
55906
55906
  Y === -1 ? F.add(M) : F.addAt(M, Y);
55907
55907
  }
55908
55908
  })), pa = Ui("phaser", () => {
55909
- let E = null;
55909
+ let E;
55910
55910
  const F = uh({
55911
55911
  get: () => E,
55912
55912
  set: (v) => {
55913
55913
  E = v;
55914
55914
  }
55915
- }), P = qt(null), M = P, Y = (v) => v === P.value, b = async (v) => {
55915
+ }), P = qt(), M = P, Y = (v) => v === P.value, b = async (v) => {
55916
55916
  if (Y(v)) return;
55917
55917
  const a = Li(), s = P.value;
55918
55918
  P.value = v, await x1(), s && a.scene.isActive(s) && a.scene.stop(s), a.scene.start(v);
55919
55919
  }, c = qt([]), y = qt([]);
55920
55920
  return {
55921
- // @TODO: https://github.com/vuejs/pinia/issues/2767
55922
55921
  game: F,
55923
55922
  isSameScene: Y,
55924
55923
  launchParallelScene: (v, a) => {
@@ -163582,7 +163581,7 @@ const Li = () => {
163582
163581
  P,
163583
163582
  M,
163584
163583
  Y
163585
- ), { eventStopHandlers: v, initializeGameObjectEvents: a } = U1(), s = ah(Pi.ParentContainer, null), n = zi(), e = Q0(n), r = (i) => {
163584
+ ), { eventStopHandlers: v, initializeGameObjectEvents: a } = U1(), s = ah(Pi.ParentContainer), n = zi(), e = Q0(n), r = (i) => {
163586
163585
  b = E(i), t(b), a(b, P, i);
163587
163586
  }, f = () => {
163588
163587
  s && y(s.value, Fi(F), b);
@@ -168810,7 +168809,7 @@ const J2 = "tilemapTiledJSONExternal", Q2 = Rt.Loader.FileTypesManager, k2 = ()
168810
168809
  k2(), P.value = new Rt.Game({ ...E.configuration, parent: M.value }), P.value.events.on("ready", b);
168811
168810
  }), Dn(() => {
168812
168811
  const c = Li();
168813
- c.events.off("ready", b), c.destroy(!0), P.value = null;
168812
+ c.events.off("ready", b), c.destroy(!0), P.value = void 0;
168814
168813
  }), (c, y) => (y1(), E1(A1, null, [
168815
168814
  T1("div", {
168816
168815
  ref_key: "canvasRoot",
@@ -1,9 +1,9 @@
1
1
  import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
2
- export declare const useCameraStore: import('pinia').StoreDefinition<"phaser/camera", import('pinia')._UnwrapAll<Pick<{
2
+ export declare const useCameraStore: import('pinia').StoreDefinition<"phaser/camera", Pick<{
3
3
  fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
4
4
  fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
5
5
  isFading: globalThis.Ref<boolean, boolean>;
6
- }, "isFading">>, Pick<{
6
+ }, "isFading">, Pick<{
7
7
  fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
8
8
  fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
9
9
  isFading: globalThis.Ref<boolean, boolean>;
@@ -1,7 +1,7 @@
1
1
  import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
2
2
  import { Game } from 'phaser';
3
- export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", import('pinia')._UnwrapAll<Pick<{
4
- game: Ref<Game | null>;
3
+ export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", Pick<{
4
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
5
5
  isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
6
6
  launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
7
7
  parallelSceneKeys: globalThis.Ref<string[], string[]>;
@@ -9,8 +9,8 @@ export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", i
9
9
  removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
10
10
  rootSceneKey: globalThis.Ref<string, string>;
11
11
  switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
12
- }, "game" | "parallelSceneKeys" | "prioritizedParallelSceneKeys" | "rootSceneKey">>, Pick<{
13
- game: Ref<Game | null>;
12
+ }, "parallelSceneKeys" | "prioritizedParallelSceneKeys" | "rootSceneKey">, Pick<{
13
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
14
14
  isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
15
15
  launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
16
16
  parallelSceneKeys: globalThis.Ref<string[], string[]>;
@@ -18,8 +18,8 @@ export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", i
18
18
  removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
19
19
  rootSceneKey: globalThis.Ref<string, string>;
20
20
  switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
21
- }, never>, Pick<{
22
- game: Ref<Game | null>;
21
+ }, "game">, Pick<{
22
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
23
23
  isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
24
24
  launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
25
25
  parallelSceneKeys: globalThis.Ref<string[], string[]>;
@@ -1,6 +1,6 @@
1
- export declare const useInputStore: import('pinia').StoreDefinition<"phaser/input", import('pinia')._UnwrapAll<Pick<{
1
+ export declare const useInputStore: import('pinia').StoreDefinition<"phaser/input", Pick<{
2
2
  isInputActive: globalThis.Ref<boolean, boolean>;
3
- }, "isInputActive">>, Pick<{
3
+ }, "isInputActive">, Pick<{
4
4
  isInputActive: globalThis.Ref<boolean, boolean>;
5
5
  }, never>, Pick<{
6
6
  isInputActive: globalThis.Ref<boolean, boolean>;
@@ -1,7 +1,7 @@
1
1
  import { GameObjects } from 'phaser';
2
- export declare const useParentContainerStore: import('pinia').StoreDefinition<"phaser/parentContainer", import('pinia')._UnwrapAll<Pick<{
2
+ export declare const useParentContainerStore: import('pinia').StoreDefinition<"phaser/parentContainer", Pick<{
3
3
  pushGameObject: (parentContainer: GameObjects.Container, configuration: object, gameObject: GameObjects.GameObject) => void;
4
- }, never>>, Pick<{
4
+ }, never>, Pick<{
5
5
  pushGameObject: (parentContainer: GameObjects.Container, configuration: object, gameObject: GameObjects.GameObject) => void;
6
6
  }, never>, Pick<{
7
7
  pushGameObject: (parentContainer: GameObjects.Container, configuration: object, gameObject: GameObjects.GameObject) => void;
@@ -1,7 +1,7 @@
1
1
  import { Types } from 'phaser';
2
- export declare const useTextStore: import('pinia').StoreDefinition<"phaser/text", import('pinia')._UnwrapAll<Pick<{
2
+ export declare const useTextStore: import('pinia').StoreDefinition<"phaser/text", Pick<{
3
3
  defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
4
- }, "defaultTextStyle">>, Pick<{
4
+ }, "defaultTextStyle">, Pick<{
5
5
  defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
6
6
  }, never>, Pick<{
7
7
  defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "A component library to integrate Phaser Framework with Vue.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -32,17 +32,17 @@
32
32
  "export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
33
33
  },
34
34
  "dependencies": {
35
- "@esposter/shared": "1.22.0",
36
- "parse-tmx": "1.22.0"
35
+ "@esposter/shared": "1.23.0",
36
+ "parse-tmx": "1.23.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@esposter/configuration": "1.22.0"
39
+ "@esposter/configuration": "1.23.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "phaser": "^3.85.2",
43
- "phaser3-rex-plugins": "^1.80.7",
44
- "pinia": "^2.2.2",
45
- "vue": "^3.5.10"
43
+ "phaser3-rex-plugins": "^1.80.8",
44
+ "pinia": "^2.2.4",
45
+ "vue": "^3.5.11"
46
46
  },
47
- "gitHead": "a934b540b5470220b951610d89e4c318459f20c6"
47
+ "gitHead": "e5f1b8db00c530a19add9bf7d407f4640fbd2e5e"
48
48
  }