@viji-dev/core 0.4.2 → 0.4.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.
package/dist/index.d.ts CHANGED
@@ -2230,11 +2230,18 @@ export declare class VijiCore {
2230
2230
  */
2231
2231
  initialize(): Promise<void>;
2232
2232
  /**
2233
- * Creates canvas with retry logic to handle timing issues
2234
- */
2235
- private createCanvasWithRetry;
2236
- /**
2237
- * Sets up the interaction system for Phase 7
2233
+ * Sets up the interaction system for Phase 7.
2234
+ *
2235
+ * Under Tier 2 Lite isolation the iframe's inline-script attaches DOM
2236
+ * listeners and dual-routes each event:
2237
+ * - directly to the in-process worker (low-latency fast path), AND
2238
+ * - back to the host as an `interaction-event` envelope (this method
2239
+ * wires the bus subscribers below).
2240
+ *
2241
+ * IMPORTANT: do NOT forward to the worker from these handlers — the
2242
+ * inline-script already did. Re-posting would deliver every event twice
2243
+ * and break wasReleased/wasMoved frame-edge detection in the worker's
2244
+ * InteractionManager.
2238
2245
  */
2239
2246
  private setupInteractionSystem;
2240
2247
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, V, a, b } from "./index-G2N9Tgtd.js";
1
+ import { A, V, a, b } from "./index-BlVguPnk.js";
2
2
  export {
3
3
  A as AudioSystem,
4
4
  V as VERSION,
package/package.json CHANGED
@@ -1,98 +1,97 @@
1
- {
2
- "name": "@viji-dev/core",
3
- "version": "0.4.2",
4
- "description": "Universal execution engine for Viji Creative scenes",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
13
- },
14
- "./artist-global": {
15
- "types": "./dist/artist-global.d.ts"
16
- },
17
- "./artist-dts": {
18
- "import": "./dist/artist-dts.js",
19
- "types": "./dist/artist-dts.d.ts"
20
- },
21
- "./artist-jsdoc": {
22
- "types": "./dist/artist-jsdoc.d.ts"
23
- },
24
- "./artist-js-ambient": {
25
- "types": "./dist/artist-js-ambient.d.ts"
26
- },
27
- "./artist-dts-p5": {
28
- "import": "./dist/artist-dts-p5.js",
29
- "types": "./dist/artist-dts-p5.d.ts"
30
- },
31
- "./artist-global-p5": {
32
- "types": "./dist/artist-global-p5.d.ts"
33
- },
34
- "./shader-uniforms": {
35
- "import": "./dist/shader-uniforms.js",
36
- "types": "./dist/shader-uniforms.d.ts"
37
- },
38
- "./docs-api": {
39
- "import": "./dist/docs-api.js",
40
- "types": "./dist/docs-api.d.ts"
41
- }
42
- },
43
- "files": [
44
- "dist/*.js",
45
- "dist/*.d.ts",
46
- "dist/*.map",
47
- "dist/assets",
48
- "README.md"
49
- ],
50
- "scripts": {
51
- "prebuild": "node scripts/prebuild-clean.mjs",
52
- "build": "vite build && node scripts/copy-tasks-assets.mjs && node scripts/build-artist-types.mjs && node scripts/build-docs-api.mjs",
53
- "build:docs": "node scripts/build-docs-api.mjs",
54
- "dev": "vite build --watch",
55
- "test": "vitest",
56
- "test:coverage": "vitest --coverage",
57
- "type-check": "tsc --noEmit",
58
- "lint": "eslint src --ext .ts"
59
- },
60
- "keywords": [
61
- "viji",
62
- "creative",
63
- "webgl",
64
- "audio-reactive",
65
- "canvas",
66
- "webworker"
67
- ],
68
- "author": "Viji Team",
69
- "license": "SEE LICENSE IN LICENSE",
70
- "devDependencies": {
71
- "@types/node": "^20.0.0",
72
- "@types/p5": "^1.7.6",
73
- "@typescript-eslint/eslint-plugin": "^6.0.0",
74
- "@typescript-eslint/parser": "^6.0.0",
75
- "@vitest/coverage-v8": "^1.0.0",
76
- "dts-bundle-generator": "^9.5.1",
77
- "eslint": "^8.0.0",
78
- "github-slugger": "^2.0.0",
79
- "happy-dom": "^18.0.1",
80
- "mdast-util-to-string": "^4.0.0",
81
- "remark-parse": "^11.0.0",
82
- "typescript": "^5.0.0",
83
- "unified": "^11.0.5",
84
- "vite": "^5.0.0",
85
- "vite-plugin-dts": "^3.0.0",
86
- "vitest": "^1.0.0"
87
- },
88
- "engines": {
89
- "node": ">=18.0.0"
90
- },
91
- "dependencies": {
92
- "@mediapipe/tasks-vision": "^0.10.20",
93
- "essentia.js": "^0.1.3",
94
- "fft.js": "^4.0.4",
95
- "ml-kmeans": "^6.0.0",
96
- "sucrase": "^3.35.1"
97
- }
98
- }
1
+ {
2
+ "name": "@viji-dev/core",
3
+ "version": "0.4.3",
4
+ "description": "Universal execution engine for Viji Creative scenes",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./artist-global": {
15
+ "types": "./dist/artist-global.d.ts"
16
+ },
17
+ "./artist-dts": {
18
+ "import": "./dist/artist-dts.js",
19
+ "types": "./dist/artist-dts.d.ts"
20
+ },
21
+ "./artist-jsdoc": {
22
+ "types": "./dist/artist-jsdoc.d.ts"
23
+ },
24
+ "./artist-js-ambient": {
25
+ "types": "./dist/artist-js-ambient.d.ts"
26
+ },
27
+ "./artist-dts-p5": {
28
+ "import": "./dist/artist-dts-p5.js",
29
+ "types": "./dist/artist-dts-p5.d.ts"
30
+ },
31
+ "./artist-global-p5": {
32
+ "types": "./dist/artist-global-p5.d.ts"
33
+ },
34
+ "./shader-uniforms": {
35
+ "import": "./dist/shader-uniforms.js",
36
+ "types": "./dist/shader-uniforms.d.ts"
37
+ },
38
+ "./docs-api": {
39
+ "import": "./dist/docs-api.js",
40
+ "types": "./dist/docs-api.d.ts"
41
+ }
42
+ },
43
+ "files": [
44
+ "dist/*.js",
45
+ "dist/*.d.ts",
46
+ "dist/*.map",
47
+ "dist/assets",
48
+ "README.md"
49
+ ],
50
+ "scripts": {
51
+ "prebuild": "node scripts/prebuild-clean.mjs",
52
+ "build": "vite build && node scripts/copy-tasks-assets.mjs && node scripts/build-artist-types.mjs && node scripts/build-docs-api.mjs",
53
+ "build:docs": "node scripts/build-docs-api.mjs",
54
+ "dev": "vite build --watch",
55
+ "test": "vitest",
56
+ "test:coverage": "vitest --coverage",
57
+ "type-check": "tsc --noEmit",
58
+ "lint": "eslint src --ext .ts"
59
+ },
60
+ "keywords": [
61
+ "viji",
62
+ "creative",
63
+ "webgl",
64
+ "audio-reactive",
65
+ "canvas",
66
+ "webworker"
67
+ ],
68
+ "author": "Viji Team",
69
+ "license": "SEE LICENSE IN LICENSE",
70
+ "devDependencies": {
71
+ "@types/node": "^20.0.0",
72
+ "@types/p5": "^1.7.6",
73
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
74
+ "@typescript-eslint/parser": "^6.0.0",
75
+ "@vitest/coverage-v8": "^1.0.0",
76
+ "dts-bundle-generator": "^9.5.1",
77
+ "eslint": "^8.0.0",
78
+ "github-slugger": "^2.0.0",
79
+ "happy-dom": "^18.0.1",
80
+ "mdast-util-to-string": "^4.0.0",
81
+ "remark-parse": "^11.0.0",
82
+ "typescript": "^5.0.0",
83
+ "unified": "^11.0.5",
84
+ "vite": "^5.0.0",
85
+ "vite-plugin-dts": "^3.0.0",
86
+ "vitest": "^1.0.0"
87
+ },
88
+ "engines": {
89
+ "node": ">=18.0.0"
90
+ },
91
+ "dependencies": {
92
+ "@mediapipe/tasks-vision": "^0.10.20",
93
+ "essentia.js": "^0.1.3",
94
+ "fft.js": "^4.0.4",
95
+ "sucrase": "^3.35.1"
96
+ }
97
+ }