@magicvr/schema-ui-protocol 0.2.3 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicvr/schema-ui-protocol",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "schema-ui-core 包面(protocol)",
6
6
  "main": "protocol/index.js",
@@ -8,7 +8,7 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "protocol/index.d.ts",
11
- "import": "./index.js"
11
+ "import": "protocol/index.js"
12
12
  },
13
13
  "./*": "./*"
14
14
  },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @schema-ui/protocol 聚合导出(试点 v0.1.0 · GOAL-004 S2)。
2
+ * @magicvr/schema-ui-protocol 聚合导出(试点 v0.1.0 · GOAL-004 S2)。
3
3
  *
4
4
  * 协议面:app-manifest 协商/校验/路由 + 页面文档加载/校验管线。
5
5
  * 打包:apps/web Vite lib mode(vite.lib.config.ts)+ tsc declaration。
@@ -8,7 +8,7 @@
8
8
  * parse, and validation failure paths without a server. This module does NOT
9
9
  * switch the app's default render branch (that is GOAL-003).
10
10
  */
11
- import type { PageEntry } from "@schema-ui/protocol/app-manifest";
11
+ import type { PageEntry } from "@magicvr/schema-ui-protocol/app-manifest.js";
12
12
  export type PageSchemaErrorCode = "PAGE_LOAD_FAILED" | "PAGE_NOT_FOUND" | "PAGE_PARSE_FAILED" | "PAGE_SCHEMA_INVALID" | "PAGE_ID_MISMATCH";
13
13
  export interface PageSchemaValidationIssue {
14
14
  path: string;
@@ -8,9 +8,9 @@
8
8
  * parse, and validation failure paths without a server. This module does NOT
9
9
  * switch the app's default render branch (that is GOAL-003).
10
10
  */
11
- import { resolveSchemaUrl } from "@magicvr/schema-ui-protocol/app-manifest";
12
- import { validatePageDocument } from "@magicvr/schema-ui-protocol/conformance/runtime-schema-validate";
13
- import { withTimeout } from "@magicvr/schema-ui-lib/lib/fetch-timeout";
11
+ import { resolveSchemaUrl } from "@magicvr/schema-ui-protocol/app-manifest.js";
12
+ import { validatePageDocument } from "@magicvr/schema-ui-protocol/conformance/runtime-schema-validate.js";
13
+ import { withTimeout } from "@magicvr/schema-ui-lib/lib/fetch-timeout.js";
14
14
  /** Unified, observable error for the schema loading + validation pipeline. */
15
15
  export class PageSchemaError extends Error {
16
16
  code;