@thewhateverapp/tile-sdk 0.13.36 → 0.13.37
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/pixi/index.d.ts +22 -0
- package/dist/pixi/index.d.ts.map +1 -0
- package/dist/pixi/index.js +25 -0
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +3 -6
- package/package.json +5 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pixi.js game components for tile-sdk
|
|
3
|
+
*
|
|
4
|
+
* Import from '@thewhateverapp/tile-sdk/pixi' to use pixi.js features.
|
|
5
|
+
* This is a separate entry point to avoid loading pixi.js when not needed.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { PixiGame, useGameLoop, Container, Graphics } from '@thewhateverapp/tile-sdk/pixi';
|
|
10
|
+
*
|
|
11
|
+
* function MyGame() {
|
|
12
|
+
* return (
|
|
13
|
+
* <PixiGame>
|
|
14
|
+
* <GameContent />
|
|
15
|
+
* </PixiGame>
|
|
16
|
+
* );
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export { PixiGame, useGameLoop, useGameState, useGameInput, Container, Sprite, Graphics, Text, AnimatedSprite, TilingSprite, NineSlicePlane, useApp, TILE_WIDTH, TILE_HEIGHT, } from '../react/PixiGame';
|
|
21
|
+
export type { PixiGameProps } from '../react/PixiGame';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pixi/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,YAAY,EAEZ,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,cAAc,EACd,MAAM,EAEN,UAAU,EACV,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
/**
|
|
3
|
+
* Pixi.js game components for tile-sdk
|
|
4
|
+
*
|
|
5
|
+
* Import from '@thewhateverapp/tile-sdk/pixi' to use pixi.js features.
|
|
6
|
+
* This is a separate entry point to avoid loading pixi.js when not needed.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { PixiGame, useGameLoop, Container, Graphics } from '@thewhateverapp/tile-sdk/pixi';
|
|
11
|
+
*
|
|
12
|
+
* function MyGame() {
|
|
13
|
+
* return (
|
|
14
|
+
* <PixiGame>
|
|
15
|
+
* <GameContent />
|
|
16
|
+
* </PixiGame>
|
|
17
|
+
* );
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export { PixiGame, useGameLoop, useGameState, useGameInput,
|
|
22
|
+
// Re-exported @pixi/react components
|
|
23
|
+
Container, Sprite, Graphics, Text, AnimatedSprite, TilingSprite, NineSlicePlane, useApp,
|
|
24
|
+
// Constants
|
|
25
|
+
TILE_WIDTH, TILE_HEIGHT, } from '../react/PixiGame';
|
package/dist/react/index.d.ts
CHANGED
|
@@ -4,7 +4,5 @@ export { useTile } from './useTile';
|
|
|
4
4
|
export { useKeyboard } from './useKeyboard';
|
|
5
5
|
export { TileContainer } from './TileContainer';
|
|
6
6
|
export { withTile } from './withTile';
|
|
7
|
-
export { PixiGame, useGameLoop, useGameState, useGameInput, Container, Sprite, Graphics, Text, AnimatedSprite, TilingSprite, NineSlicePlane, useApp, TILE_WIDTH, TILE_HEIGHT, } from './PixiGame';
|
|
8
|
-
export type { PixiGameProps } from './PixiGame';
|
|
9
7
|
export * from './overlay';
|
|
10
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,cAAc,WAAW,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -5,11 +5,8 @@ export { useKeyboard } from './useKeyboard';
|
|
|
5
5
|
export { TileContainer } from './TileContainer';
|
|
6
6
|
export { withTile } from './withTile';
|
|
7
7
|
// TileInitializer removed - router should be injected directly into TileProvider
|
|
8
|
-
// PixiGame
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
Container, Sprite, Graphics, Text, AnimatedSprite, TilingSprite, NineSlicePlane, useApp,
|
|
12
|
-
// Constants
|
|
13
|
-
TILE_WIDTH, TILE_HEIGHT, } from './PixiGame';
|
|
8
|
+
// NOTE: PixiGame and pixi-related exports are in a SEPARATE entry point
|
|
9
|
+
// to avoid loading pixi.js when not needed. Import from:
|
|
10
|
+
// import { PixiGame, useGameLoop, ... } from '@thewhateverapp/tile-sdk/pixi'
|
|
14
11
|
// Overlay components for hybrid tiles (video/image with interactive overlays)
|
|
15
12
|
export * from './overlay';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thewhateverapp/tile-sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.37",
|
|
4
4
|
"description": "SDK for building interactive tiles on The Whatever App platform",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"types": "./dist/react/index.d.ts",
|
|
14
14
|
"import": "./dist/react/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./pixi": {
|
|
17
|
+
"types": "./dist/pixi/index.d.ts",
|
|
18
|
+
"import": "./dist/pixi/index.js"
|
|
19
|
+
},
|
|
16
20
|
"./spec": {
|
|
17
21
|
"types": "./dist/spec/index.d.ts",
|
|
18
22
|
"import": "./dist/spec/index.js"
|