hudini 0.18.0 → 0.19.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/README.md +57 -0
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +2 -1
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/flat-icon-button/flat-icon-button.js +3 -3
- package/dist/components/flat-section-header/flat-section-header.js +1 -1
- package/dist/components/flat-text-button/flat-text-button.d.ts.map +1 -1
- package/dist/components/flat-text-button/flat-text-button.js +3 -3
- package/dist/components/flat-text-button/flat-text-button.js.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +3 -2
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/text-button/text-button.d.ts.map +1 -1
- package/dist/components/text-button/text-button.js +3 -3
- package/dist/components/text-button/text-button.js.map +1 -1
- package/dist/components/text-button/text-button.spec.js +10 -1
- package/dist/components/text-button/text-button.spec.js.map +1 -1
- package/dist/hudini.js +270 -42
- package/dist/hudini.min.js +1 -1
- package/dist/scene/index.d.ts +1 -0
- package/dist/scene/index.d.ts.map +1 -1
- package/dist/scene/index.js +1 -0
- package/dist/scene/index.js.map +1 -1
- package/dist/scene/scene-with-hudini.d.ts +24 -1
- package/dist/scene/scene-with-hudini.d.ts.map +1 -1
- package/dist/scene/scene-with-hudini.js +24 -1
- package/dist/scene/scene-with-hudini.js.map +1 -1
- package/dist/scene/with-hudini.d.ts +35 -0
- package/dist/scene/with-hudini.d.ts.map +1 -0
- package/dist/scene/with-hudini.js +33 -0
- package/dist/scene/with-hudini.js.map +1 -0
- package/dist/utils/color-variants.d.ts +6 -1
- package/dist/utils/color-variants.d.ts.map +1 -1
- package/dist/utils/color-variants.js +18 -5
- package/dist/utils/color-variants.js.map +1 -1
- package/package.json +2 -2
package/dist/scene/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scene/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scene/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
package/dist/scene/index.js
CHANGED
package/dist/scene/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scene/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scene/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { BaseThemeConfig, SceneWithPhaserWind } from 'phaser-wind';
|
|
2
2
|
import { HudiniPlugin } from '../plugin/plugin';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use {@link withHudini} instead.
|
|
5
|
+
*
|
|
6
|
+
* Forces single inheritance, which conflicts with any user-defined `BaseScene`
|
|
7
|
+
* or other libraries that ship their own scene base class. It also relies on a
|
|
8
|
+
* non-null assertion (`hudini!`) that lies to TypeScript about when the plugin
|
|
9
|
+
* is available — touching `this.hudini` before the plugin mounts throws at
|
|
10
|
+
* runtime.
|
|
11
|
+
*
|
|
12
|
+
* Prefer the `withHudini(scene)` accessor:
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { withHudini } from 'hudini';
|
|
16
|
+
* import type { ThemeType } from './theme';
|
|
17
|
+
*
|
|
18
|
+
* class MyScene extends Phaser.Scene {
|
|
19
|
+
* create() {
|
|
20
|
+
* const hudini = withHudini<ThemeType>(this);
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* Kept exported to avoid breaking existing consumers.
|
|
26
|
+
*/
|
|
3
27
|
export declare abstract class SceneWithHudini<T extends BaseThemeConfig = BaseThemeConfig> extends SceneWithPhaserWind<T> {
|
|
4
28
|
/**
|
|
5
|
-
*
|
|
6
29
|
* @param config The scene key or scene specific configuration settings.
|
|
7
30
|
*/
|
|
8
31
|
constructor(config?: string | Phaser.Types.Scenes.SettingsConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-with-hudini.d.ts","sourceRoot":"","sources":["../../src/scene/scene-with-hudini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,8BAAsB,eAAe,CACnC,CAAC,SAAS,eAAe,GAAG,eAAe,CAC3C,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B
|
|
1
|
+
{"version":3,"file":"scene-with-hudini.d.ts","sourceRoot":"","sources":["../../src/scene/scene-with-hudini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,8BAAsB,eAAe,CACnC,CAAC,SAAS,eAAe,GAAG,eAAe,CAC3C,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC9B;;OAEG;gBACS,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc;IAIzD,MAAM,EAAG,YAAY,CAAC,CAAC,CAAC,CAAC;CACjC"}
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
import { SceneWithPhaserWind } from 'phaser-wind';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use {@link withHudini} instead.
|
|
4
|
+
*
|
|
5
|
+
* Forces single inheritance, which conflicts with any user-defined `BaseScene`
|
|
6
|
+
* or other libraries that ship their own scene base class. It also relies on a
|
|
7
|
+
* non-null assertion (`hudini!`) that lies to TypeScript about when the plugin
|
|
8
|
+
* is available — touching `this.hudini` before the plugin mounts throws at
|
|
9
|
+
* runtime.
|
|
10
|
+
*
|
|
11
|
+
* Prefer the `withHudini(scene)` accessor:
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { withHudini } from 'hudini';
|
|
15
|
+
* import type { ThemeType } from './theme';
|
|
16
|
+
*
|
|
17
|
+
* class MyScene extends Phaser.Scene {
|
|
18
|
+
* create() {
|
|
19
|
+
* const hudini = withHudini<ThemeType>(this);
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Kept exported to avoid breaking existing consumers.
|
|
25
|
+
*/
|
|
2
26
|
export class SceneWithHudini extends SceneWithPhaserWind {
|
|
3
27
|
/**
|
|
4
|
-
*
|
|
5
28
|
* @param config The scene key or scene specific configuration settings.
|
|
6
29
|
*/
|
|
7
30
|
constructor(config) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-with-hudini.js","sourceRoot":"","sources":["../../src/scene/scene-with-hudini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAInE,MAAM,OAAgB,eAEpB,SAAQ,mBAAsB;IAC9B
|
|
1
|
+
{"version":3,"file":"scene-with-hudini.js","sourceRoot":"","sources":["../../src/scene/scene-with-hudini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAInE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAgB,eAEpB,SAAQ,mBAAsB;IAC9B;;OAEG;IACH,YAAY,MAAoD;QAC9D,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEM,MAAM,CAAmB;CACjC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Scene } from 'phaser';
|
|
2
|
+
import type { BaseThemeConfig } from 'phaser-wind';
|
|
3
|
+
import { HudiniPlugin } from '../plugin/plugin';
|
|
4
|
+
/**
|
|
5
|
+
* Accessor for the Hudini plugin from within a Phaser scene.
|
|
6
|
+
*
|
|
7
|
+
* Preferred over {@link SceneWithHudini} (inheritance) and over module
|
|
8
|
+
* augmentation of `Phaser.Scene`, because it:
|
|
9
|
+
* - Composes with any existing base scene (no forced inheritance).
|
|
10
|
+
* - Keeps the theme type explicit at the call site (no silent `any`).
|
|
11
|
+
* - Doesn't rely on non-null assertions that lie about lifecycle.
|
|
12
|
+
*
|
|
13
|
+
* Call it inside `create()` / `update()` (after the plugin has been installed).
|
|
14
|
+
*
|
|
15
|
+
* @typeParam T - The theme config type. Pass your `ThemeType` to get
|
|
16
|
+
* type-narrowed access to your custom tokens (through `hudini.pw`).
|
|
17
|
+
* @param scene - The Phaser scene instance.
|
|
18
|
+
* @returns The Hudini plugin instance bound to the given theme type.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { withHudini } from 'hudini';
|
|
23
|
+
* import type { ThemeType } from './theme';
|
|
24
|
+
*
|
|
25
|
+
* class MyScene extends Phaser.Scene {
|
|
26
|
+
* create() {
|
|
27
|
+
* const hudini = withHudini<ThemeType>(this);
|
|
28
|
+
* const pw = hudini.pw;
|
|
29
|
+
* this.cameras.main.setBackgroundColor(pw.color.rgb('background'));
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const withHudini: <T extends BaseThemeConfig = BaseThemeConfig>(scene: Scene) => HudiniPlugin<T>;
|
|
35
|
+
//# sourceMappingURL=with-hudini.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-hudini.d.ts","sourceRoot":"","sources":["../../src/scene/with-hudini.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAc,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,eAAe,GAAG,eAAe,EACpE,OAAO,KAAK,KACX,YAAY,CAAC,CAAC,CAC4C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HUDINI_KEY } from '../plugin/plugin';
|
|
2
|
+
/**
|
|
3
|
+
* Accessor for the Hudini plugin from within a Phaser scene.
|
|
4
|
+
*
|
|
5
|
+
* Preferred over {@link SceneWithHudini} (inheritance) and over module
|
|
6
|
+
* augmentation of `Phaser.Scene`, because it:
|
|
7
|
+
* - Composes with any existing base scene (no forced inheritance).
|
|
8
|
+
* - Keeps the theme type explicit at the call site (no silent `any`).
|
|
9
|
+
* - Doesn't rely on non-null assertions that lie about lifecycle.
|
|
10
|
+
*
|
|
11
|
+
* Call it inside `create()` / `update()` (after the plugin has been installed).
|
|
12
|
+
*
|
|
13
|
+
* @typeParam T - The theme config type. Pass your `ThemeType` to get
|
|
14
|
+
* type-narrowed access to your custom tokens (through `hudini.pw`).
|
|
15
|
+
* @param scene - The Phaser scene instance.
|
|
16
|
+
* @returns The Hudini plugin instance bound to the given theme type.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { withHudini } from 'hudini';
|
|
21
|
+
* import type { ThemeType } from './theme';
|
|
22
|
+
*
|
|
23
|
+
* class MyScene extends Phaser.Scene {
|
|
24
|
+
* create() {
|
|
25
|
+
* const hudini = withHudini<ThemeType>(this);
|
|
26
|
+
* const pw = hudini.pw;
|
|
27
|
+
* this.cameras.main.setBackgroundColor(pw.color.rgb('background'));
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export const withHudini = (scene) => scene.plugins.get(HUDINI_KEY);
|
|
33
|
+
//# sourceMappingURL=with-hudini.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-hudini.js","sourceRoot":"","sources":["../../src/scene/with-hudini.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAY,EACK,EAAE,CACnB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAA+B,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type ColorKey } from 'phaser-wind';
|
|
|
2
2
|
/**
|
|
3
3
|
* Calculates a color variant by adjusting brightness.
|
|
4
4
|
*
|
|
5
|
-
* @param color - The base color (can be a Phaser Wind token like "blue-500" or a CSS color like "#3B82F6")
|
|
5
|
+
* @param color - The base color (can be a Phaser Wind token like "blue-500", a color name like "red", or a CSS color like "#3B82F6")
|
|
6
6
|
* @param tokenDiff - Amount to adjust the shade for color tokens. Positive values make it darker, negative lighter.
|
|
7
7
|
* For example: -400 for lighter (blue-500 → blue-100), +400 for darker (blue-500 → blue-900)
|
|
8
8
|
* @param colorDiff - Amount to lighten/darken CSS colors. Positive values lighten, negative values darken.
|
|
@@ -10,6 +10,7 @@ import { type ColorKey } from 'phaser-wind';
|
|
|
10
10
|
* @returns The adjusted color as a number
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
+
* - If only a color name is provided without a shade (e.g., "red"), it automatically adds "-500" as the default shade
|
|
13
14
|
* - If a color token is provided (e.g., "blue-500"), it uses the token system to calculate variants
|
|
14
15
|
* by adjusting the shade value with tokenDiff (clamped between 100-900)
|
|
15
16
|
* - If a CSS color is provided (hex or rgb), it uses Phaser's lighten/darken methods
|
|
@@ -17,6 +18,10 @@ import { type ColorKey } from 'phaser-wind';
|
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```typescript
|
|
21
|
+
* // Using color name only - defaults to -500
|
|
22
|
+
* const defaultRed = getColorVariant('red', 0, 0);
|
|
23
|
+
* // Returns red-500 color value
|
|
24
|
+
*
|
|
20
25
|
* // Using color token - lighter variant
|
|
21
26
|
* const lightBlue = getColorVariant('blue-500', -400, 0);
|
|
22
27
|
* // Returns blue-100 color value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-variants.d.ts","sourceRoot":"","sources":["../../src/utils/color-variants.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"color-variants.d.ts","sourceRoot":"","sources":["../../src/utils/color-variants.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,QAAQ,EAAiB,MAAM,aAAa,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,QAAQ,GAAG,MAAM,EACxB,WAAW,MAAM,EACjB,WAAW,MAAM,KAChB,MAsCF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Phaser from 'phaser';
|
|
2
|
-
import { Color } from 'phaser-wind';
|
|
2
|
+
import { Color, palette } from 'phaser-wind';
|
|
3
3
|
/**
|
|
4
4
|
* Calculates a color variant by adjusting brightness.
|
|
5
5
|
*
|
|
6
|
-
* @param color - The base color (can be a Phaser Wind token like "blue-500" or a CSS color like "#3B82F6")
|
|
6
|
+
* @param color - The base color (can be a Phaser Wind token like "blue-500", a color name like "red", or a CSS color like "#3B82F6")
|
|
7
7
|
* @param tokenDiff - Amount to adjust the shade for color tokens. Positive values make it darker, negative lighter.
|
|
8
8
|
* For example: -400 for lighter (blue-500 → blue-100), +400 for darker (blue-500 → blue-900)
|
|
9
9
|
* @param colorDiff - Amount to lighten/darken CSS colors. Positive values lighten, negative values darken.
|
|
@@ -11,6 +11,7 @@ import { Color } from 'phaser-wind';
|
|
|
11
11
|
* @returns The adjusted color as a number
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
+
* - If only a color name is provided without a shade (e.g., "red"), it automatically adds "-500" as the default shade
|
|
14
15
|
* - If a color token is provided (e.g., "blue-500"), it uses the token system to calculate variants
|
|
15
16
|
* by adjusting the shade value with tokenDiff (clamped between 100-900)
|
|
16
17
|
* - If a CSS color is provided (hex or rgb), it uses Phaser's lighten/darken methods
|
|
@@ -18,6 +19,10 @@ import { Color } from 'phaser-wind';
|
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
21
|
* ```typescript
|
|
22
|
+
* // Using color name only - defaults to -500
|
|
23
|
+
* const defaultRed = getColorVariant('red', 0, 0);
|
|
24
|
+
* // Returns red-500 color value
|
|
25
|
+
*
|
|
21
26
|
* // Using color token - lighter variant
|
|
22
27
|
* const lightBlue = getColorVariant('blue-500', -400, 0);
|
|
23
28
|
* // Returns blue-100 color value
|
|
@@ -36,10 +41,18 @@ import { Color } from 'phaser-wind';
|
|
|
36
41
|
* ```
|
|
37
42
|
*/
|
|
38
43
|
export const getColorVariant = (color, tokenDiff, colorDiff) => {
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
// If only the color name is provided (without shade), validate and add -500 as default
|
|
45
|
+
let normalizedColor = color;
|
|
46
|
+
if (typeof color === 'string' && !color.includes('-') && !Color.isValidColorToken(color)) {
|
|
47
|
+
// Check if the color exists in the palette
|
|
48
|
+
if (color in palette && color !== 'black' && color !== 'white') {
|
|
49
|
+
normalizedColor = `${color}-500`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const colorRgb = Color.rgb(normalizedColor);
|
|
53
|
+
if (Color.isValidColorToken(normalizedColor)) {
|
|
41
54
|
// Token-based calculation
|
|
42
|
-
const parts =
|
|
55
|
+
const parts = normalizedColor.split('-');
|
|
43
56
|
const colorShade = parseInt(parts[1].toString(), 10);
|
|
44
57
|
const shadeMin = 100;
|
|
45
58
|
const shadeMax = 900;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-variants.js","sourceRoot":"","sources":["../../src/utils/color-variants.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAgC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"color-variants.js","sourceRoot":"","sources":["../../src/utils/color-variants.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAgC,MAAM,aAAa,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAwB,EACxB,SAAiB,EACjB,SAAiB,EACT,EAAE;IACV,uFAAuF;IACvF,IAAI,eAAe,GAAG,KAAK,CAAC;IAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;QACzF,2CAA2C;QAC3C,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;YAC/D,eAAe,GAAG,GAAG,KAAK,MAAM,CAAC;QACnC,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,eAA2B,CAAC,CAAC;IAExD,IAAI,KAAK,CAAC,iBAAiB,CAAC,eAAyB,CAAC,EAAE,CAAC;QACvD,0BAA0B;QAC1B,MAAM,KAAK,GAAqB,eAAe,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;QAC/E,MAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;QACrD,MAAM,QAAQ,GAAG,GAAG,CAAC;QACrB,MAAM,QAAQ,GAAG,GAAG,CAAC;QACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CACvB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,SAAS,EAAE,QAAQ,CAAC,EAC1C,QAAQ,CACT,CAAC,QAAQ,EAAc,CAAC;QAEzB,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,wBAAwB;IACxB,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAE9D,IAAI,SAAS,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,IAAI,SAAS,GAAG,CAAC,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC;IACpD,CAAC;IAED,OAAO,SAAS,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AAC7D,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hudini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "🎩 Magical Phaser UI components - Reusable HUD elements for game development. Is magic, like a wizard",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"phaser-wind": "0.
|
|
65
|
+
"phaser-wind": "0.10.0",
|
|
66
66
|
"font-awesome-for-phaser": "0.10.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|