@octane-xplat/canvas 0.7.3 → 0.8.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,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "52898de3-47ca-49b9-afa9-cd2f6663022d",
3
+ "buildId": "5e0f5c59-ea8a-4253-90b4-f17f9d7f30d5",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "708787e6-81a1-49bc-a39c-d2481b54b95c",
3
+ "buildId": "a5853361-5a4d-40e8-8fab-5c4ecf162294",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octane-xplat/canvas",
3
- "version": "0.7.3",
3
+ "version": "0.8.0",
4
4
  "description": "Canvas/GPU surface for Octane xplat — web <canvas> + @nativescript/canvas (2D, WebGL/WebGL2, WebGPU/WGSL)",
5
5
  "keywords": [
6
6
  "octane",
@@ -43,10 +43,11 @@
43
43
  "@nativescript/canvas": "3.0.0-alpha.15"
44
44
  },
45
45
  "devDependencies": {
46
- "@nativescript-community/octane": "0.2.1",
46
+ "@nativescript-community/octane": "0.2.4",
47
47
  "@nativescript/core": "9.1.2",
48
48
  "@octanejs/vite-plugin": "0.1.61",
49
49
  "octane": "0.6.3",
50
+ "tsrx-typegen": "0.2.0",
50
51
  "typescript": "5.9.3",
51
52
  "vite": "8.3.0"
52
53
  },
@@ -64,6 +65,9 @@
64
65
  }
65
66
  },
66
67
  "scripts": {
67
- "build": "vite build && vite build --mode native && tsc -p tsconfig.types.json && node ../../scripts/check-native-dist.mjs"
68
+ "build": "vite build && vite build --mode native && pnpm typegen && node ../../scripts/check-native-dist.mjs",
69
+ "typegen": "tsc -p tsconfig.types.json",
70
+ "test:packed": "node tests/packed-consumer.mjs",
71
+ "pack:check": "tsrx-typegen --pack-check"
68
72
  }
69
73
  }
package/types/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // props.ts (tsrx-tsc can't emit .tsrx declarations; see ui/types/index.d.ts
3
3
  // for the same pattern).
4
4
  import type { UniversalComponent } from 'octane/universal'
5
- import type { CanvasProps } from './props'
5
+ import type { CanvasProps } from './props.js'
6
6
 
7
7
  export declare const Canvas: UniversalComponent<CanvasProps>
8
8
 
@@ -10,4 +10,4 @@ export declare const Canvas: UniversalComponent<CanvasProps>
10
10
  * GPU shim on native — or null where WebGPU is unavailable. */
11
11
  export declare function getGPU(): any
12
12
 
13
- export type { CanvasProps, CanvasContextKind, CanvasReady } from './props'
13
+ export type { CanvasProps, CanvasContextKind, CanvasReady } from './props.js'