vue-phaserjs 2.13.1 → 2.15.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.
@@ -1 +1,14 @@
1
- export declare const useCameraStore: any;
1
+ import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
2
+ export declare const useCameraStore: import('pinia').StoreDefinition<"phaser/camera", Pick<{
3
+ fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
4
+ fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
5
+ isFading: globalThis.Ref<boolean, boolean>;
6
+ }, "isFading">, Pick<{
7
+ fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
8
+ fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
9
+ isFading: globalThis.Ref<boolean, boolean>;
10
+ }, never>, Pick<{
11
+ fadeIn: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
12
+ fadeOut: (scene: SceneWithPlugins, duration?: number | undefined, red?: number | undefined, green?: number | undefined, blue?: number | undefined, callback?: Function | undefined, context?: any) => void;
13
+ isFading: globalThis.Ref<boolean, boolean>;
14
+ }, "fadeIn" | "fadeOut">>;
@@ -1 +1,30 @@
1
- export declare const usePhaserStore: any;
1
+ import { SceneWithPlugins } from '../models/scene/SceneWithPlugins';
2
+ import { Game } from 'phaser';
3
+ export declare const usePhaserStore: import('pinia').StoreDefinition<"phaser", Pick<{
4
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
5
+ isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
6
+ launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
7
+ parallelSceneKeys: globalThis.Ref<string[], string[]>;
8
+ prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
9
+ removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
10
+ rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
11
+ switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
12
+ }, "parallelSceneKeys" | "prioritizedParallelSceneKeys" | "rootSceneKey">, Pick<{
13
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
14
+ isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
15
+ launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
16
+ parallelSceneKeys: globalThis.Ref<string[], string[]>;
17
+ prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
18
+ removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
19
+ rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
20
+ switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
21
+ }, "game">, Pick<{
22
+ game: globalThis.WritableComputedRef<Game | undefined, Game | undefined>;
23
+ isSameScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => boolean;
24
+ launchParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
25
+ parallelSceneKeys: globalThis.Ref<string[], string[]>;
26
+ prioritizedParallelSceneKeys: globalThis.Ref<string[], string[]>;
27
+ removeParallelScene: (scene: SceneWithPlugins, sceneKey: SceneWithPlugins["scene"]["key"]) => void;
28
+ rootSceneKey: Ref<SceneWithPlugins["scene"]["key"]>;
29
+ switchToScene: (newSceneKey: SceneWithPlugins["scene"]["key"]) => Promise<void>;
30
+ }, "isSameScene" | "launchParallelScene" | "removeParallelScene" | "switchToScene">>;
@@ -1 +1,7 @@
1
- export declare const useInputStore: any;
1
+ export declare const useInputStore: import('pinia').StoreDefinition<"phaser/input", Pick<{
2
+ isInputActive: globalThis.Ref<boolean, boolean>;
3
+ }, "isInputActive">, Pick<{
4
+ isInputActive: globalThis.Ref<boolean, boolean>;
5
+ }, never>, Pick<{
6
+ isInputActive: globalThis.Ref<boolean, boolean>;
7
+ }, never>>;
@@ -1 +1,8 @@
1
- export declare const useTextStore: any;
1
+ import { Types } from 'phaser';
2
+ export declare const useTextStore: import('pinia').StoreDefinition<"phaser/text", Pick<{
3
+ defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
4
+ }, "defaultTextStyle">, Pick<{
5
+ defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
6
+ }, never>, Pick<{
7
+ defaultTextStyle: globalThis.Ref<Types.GameObjects.Text.TextStyle | undefined, Types.GameObjects.Text.TextStyle | undefined>;
8
+ }, never>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-phaserjs",
3
- "version": "2.13.1",
4
3
  "description": "A component library to integrate Phaser Framework with Vue.",
4
+ "version": "2.15.0",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/Esposter/Esposter/blob/main/packages/vue-phaserjs#readme",
7
7
  "license": "Apache-2.0",
@@ -27,19 +27,20 @@
27
27
  },
28
28
  "scripts": {
29
29
  "build": "pnpm export:gen && vite build",
30
+ "export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts",
30
31
  "lint": "oxlint && eslint .",
31
32
  "lint:fix": "oxlint --fix && eslint --fix .",
32
- "typecheck": "vue-tsc",
33
- "export:gen": "ctix build --config ../configuration/.ctirc-vue && ctix build --config ../configuration/.ctirc-ts"
33
+ "typecheck": "vue-tsc"
34
34
  },
35
35
  "dependencies": {
36
- "parse-tmx": "2.13.1"
36
+ "@esposter/shared": "2.15.0",
37
+ "parse-tmx": "2.15.0"
37
38
  },
38
39
  "peerDependencies": {
39
40
  "phaser": "^4.0.0-rc.5",
40
41
  "phaser3-rex-plugins": "^1.80.16",
41
42
  "pinia": "^3.0.3",
42
- "vue": "^3.5.18"
43
+ "vue": "^3.5.22"
43
44
  },
44
- "gitHead": "ccdc9fba1e2852a3a7f058c2dc73b1971c20d684"
45
+ "gitHead": "0c6005e4b29541494e5879c73ab985a94168c5c9"
45
46
  }