@viji-dev/core 0.2.6 → 0.2.7

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,3 +1,7 @@
1
+ // JavaScript IntelliSense Support - Auto-generated
2
+ // This file provides type hints for JavaScript without requiring @ts-check
3
+
4
+ // Global Viji API available in all scenes
1
5
  /**
2
6
  * @fileoverview Viji Artist API - JavaScript IntelliSense Support
3
7
  * Auto-generated from TypeScript definitions - DO NOT EDIT MANUALLY
@@ -226,10 +230,7 @@
226
230
  * Global viji object available in artist code
227
231
  * @type {VijiAPI}
228
232
  */
229
- // @ts-check
230
-
231
- // Global declarations:
232
- // const viji;
233
+ declare const viji;
233
234
 
234
235
  /**
235
236
  * Artist render function - called every frame
@@ -238,5 +239,10 @@
238
239
  declare function render(viji) { }
239
240
 
240
241
 
241
- // This file provides JSDoc type definitions for JavaScript development
242
- // No runtime code is executed from this file
242
+ // Additional JavaScript-specific declarations for better VS Code support
243
+ if (typeof globalThis !== 'undefined') {
244
+ // @ts-ignore
245
+ globalThis.viji = globalThis.viji || {};
246
+ // @ts-ignore
247
+ globalThis.render = globalThis.render || function(viji) {};
248
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,8 +21,8 @@
21
21
  "./artist-jsdoc": {
22
22
  "types": "./dist/artist-jsdoc.d.ts"
23
23
  },
24
- "./artist-jsdoc-js": {
25
- "import": "./dist/artist-jsdoc.js"
24
+ "./artist-js-ambient": {
25
+ "types": "./dist/artist-js-ambient.d.ts"
26
26
  }
27
27
  },
28
28
  "files": [