@iwsdk/vite-plugin-dev 0.5.0 → 0.5.2

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/types.d.ts CHANGED
@@ -128,7 +128,7 @@ export interface DevelopmentHttpsOptions {
128
128
  /**
129
129
  * Directory used to cache the generated certificate. Relative paths are
130
130
  * resolved from the Vite project root.
131
- * @default '<vite cacheDir>/iwsdk-https'
131
+ * @default '.iwsdk/https'
132
132
  */
133
133
  certDir?: string;
134
134
  /** Additional DNS names to include in the certificate. */
@@ -159,6 +159,12 @@ export interface DevPluginOptions {
159
159
  * mode.
160
160
  */
161
161
  workspace?: WorkspaceOptions;
162
+ /**
163
+ * Time to wait for the managed browser command bridge after launch or
164
+ * recovery before returning a not-ready status.
165
+ * @default 5000
166
+ */
167
+ bridgeReadyTimeoutMs?: number;
162
168
  /**
163
169
  * Configure the cached, self-signed HTTPS certificate used by the Vite dev
164
170
  * server. IWSDK enables it by default so WebXR is available on physical
@@ -216,6 +222,7 @@ export interface ProcessedDevOptions {
216
222
  height: number;
217
223
  };
218
224
  };
225
+ bridgeReadyTimeoutMs: number;
219
226
  injectOnBuild: boolean;
220
227
  activation: 'localhost' | 'always' | RegExp;
221
228
  verbose: boolean;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export interface UIKitMLValidationResult {
8
+ files: string[];
9
+ warnings: string[];
10
+ }
11
+ export declare function validateUIKitMLSource(source: string, filePath: string): void;
12
+ export declare function validateUIKitMLDirectory(publicDirectory: string): Promise<UIKitMLValidationResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iwsdk/vite-plugin-dev",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Vite plugin for IWSDK development — XR emulation, AI agent tooling, and Playwright browser",
6
6
  "main": "dist/index.js",
@@ -27,17 +27,6 @@
27
27
  "client.d.ts",
28
28
  "README.md"
29
29
  ],
30
- "scripts": {
31
- "prebuild": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
32
- "prebuild:plugin": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
33
- "build": "rollup -c rollup.injection.config.js && rollup -c rollup.config.js",
34
- "build:plugin": "rollup -c rollup.config.js",
35
- "build:injection": "rollup -c rollup.injection.config.js",
36
- "test": "corepack pnpm@10.18.3 --filter @iwsdk/scene-composition build && corepack pnpm@10.18.3 --filter @iwsdk/core build && corepack pnpm@10.18.3 --filter @iwsdk/cli build && corepack pnpm@10.18.3 run build:injection && rollup -c rollup.config.js && vitest run",
37
- "test:watch": "vitest",
38
- "dev": "rollup -c --watch",
39
- "clean": "rm -rf dist"
40
- },
41
30
  "keywords": [
42
31
  "vite",
43
32
  "plugin",
@@ -53,30 +42,43 @@
53
42
  "author": "Felix Zhang <fe1ix@meta.com>",
54
43
  "license": "MIT",
55
44
  "dependencies": {
56
- "@vitejs/plugin-basic-ssl": "^2.3.0",
45
+ "@drawcall/uikitml": "0.1.8",
57
46
  "@iwer/devui": "^2.3.0",
58
47
  "@iwer/sem": "^2.3.0",
59
- "@iwsdk/core": "workspace:*",
60
- "@iwsdk/scene-composition": "workspace:*",
61
48
  "@preact/signals-core": "^1.12.1",
49
+ "@vitejs/plugin-basic-ssl": "^2.3.0",
62
50
  "iwer": "^2.3.0",
63
51
  "lucide": "^0.468.0",
52
+ "open": "^10.2.0",
64
53
  "playwright": "^1.58.2",
65
54
  "preact": "^10.29.7",
66
55
  "sharp": "^0.35.3",
67
56
  "three": "npm:super-three@0.181.0",
68
57
  "three-viewport-gizmo": "^2.2.0",
69
- "ws": "^8.21.1"
58
+ "ws": "^8.21.1",
59
+ "@iwsdk/core": "0.5.2",
60
+ "@iwsdk/scene-composition": "0.5.2"
70
61
  },
71
62
  "devDependencies": {
72
- "@iwsdk/cli": "workspace:*",
73
63
  "@types/ws": "^8.5.13",
74
- "vitest": "^4.1.10"
64
+ "vitest": "^4.1.10",
65
+ "@iwsdk/cli": "0.5.2"
75
66
  },
76
67
  "peerDependencies": {
77
68
  "vite": "^7.0.0"
78
69
  },
79
70
  "engines": {
80
71
  "node": ">=20.19.0 <21.0.0-0 || >=22.12.0 <23.0.0-0 || >=24.0.0"
72
+ },
73
+ "scripts": {
74
+ "prebuild": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
75
+ "prebuild:plugin": "corepack pnpm@10.18.3 --filter @iwsdk/cli build",
76
+ "build": "rollup -c rollup.injection.config.js && rollup -c rollup.config.js",
77
+ "build:plugin": "rollup -c rollup.config.js",
78
+ "build:injection": "rollup -c rollup.injection.config.js",
79
+ "test": "corepack pnpm@10.18.3 --filter @iwsdk/scene-composition build && corepack pnpm@10.18.3 --filter @iwsdk/core build && corepack pnpm@10.18.3 --filter @iwsdk/cli build && corepack pnpm@10.18.3 run build:injection && rollup -c rollup.config.js && vitest run",
80
+ "test:watch": "vitest",
81
+ "dev": "rollup -c --watch",
82
+ "clean": "rm -rf dist"
81
83
  }
82
- }
84
+ }