narrat 2.9.1 → 2.9.3

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.
@@ -15,6 +15,7 @@ export interface SpriteState {
15
15
  layer: number;
16
16
  cssClass?: string;
17
17
  onClick?: string;
18
+ clickMethod?: 'jump' | 'run';
18
19
  }
19
20
  export interface SpriteStoreState {
20
21
  sprites: SpriteState[];
@@ -43,6 +44,7 @@ export declare const useSprites: import("pinia").StoreDefinition<"sprites", Spri
43
44
  layer: number;
44
45
  cssClass?: string | undefined;
45
46
  onClick?: string | undefined;
47
+ clickMethod?: "jump" | "run" | undefined;
46
48
  } | undefined;
47
49
  deleteSprite(sprite: SpriteState): void;
48
50
  clickSprite(sprite: SpriteState): void;
@@ -36,3 +36,7 @@ export declare const spliceCommand: CommandPlugin<{
36
36
  start: number;
37
37
  end?: number | undefined;
38
38
  }, {}>;
39
+ export declare const arrayFindIndexCommand: CommandPlugin<{
40
+ array: any[];
41
+ predicateLabel: string;
42
+ }, {}>;
@@ -0,0 +1,16 @@
1
+ import { CommandPlugin } from './command-plugin';
2
+ export declare const nowPlugin: CommandPlugin<{}, {}>;
3
+ export declare const totalPlaytimePlugin: CommandPlugin<{}, {}>;
4
+ export declare const sessionPlaytimePlugin: CommandPlugin<{}, {}>;
5
+ export declare const toDaysPlugin: CommandPlugin<{
6
+ time: number;
7
+ }, {}>;
8
+ export declare const toHoursPlugin: CommandPlugin<{
9
+ time: number;
10
+ }, {}>;
11
+ export declare const toMinutesPlugin: CommandPlugin<{
12
+ time: number;
13
+ }, {}>;
14
+ export declare const toSecondsPlugin: CommandPlugin<{
15
+ time: number;
16
+ }, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narrat",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "narrat narrative engine",
5
5
  "main": "dist/narrat.umd.js",
6
6
  "module": "dist/narrat.es.js",