@adea-ai/asset-manifests 0.12.0 → 0.12.1

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
@@ -1,4 +1,4 @@
1
- export type SceneAvailability = "ready" | "planned";
1
+ export type SceneAvailability = 'ready' | 'planned';
2
2
  export type SceneZone = {
3
3
  id: string;
4
4
  assetUrl: string;
@@ -42,7 +42,7 @@ export type AssignedPropManifestAsset = {
42
42
  assetUrl: string;
43
43
  defaultScale: number;
44
44
  footprint?: readonly [number, number];
45
- placementSurface?: "floor" | "wall";
45
+ placementSurface?: 'floor' | 'wall';
46
46
  wallMountHeight?: number;
47
47
  floorLift?: number;
48
48
  placeableOnTop?: boolean;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@adea-ai/asset-manifests",
3
- "version": "0.12.0",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "0.12.1",
7
4
  "files": [
8
5
  "dist",
9
6
  "src",
10
7
  "tsconfig.json",
11
8
  "README.md"
12
9
  ],
10
+ "type": "module",
11
+ "main": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
15
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  }
19
19
  },
20
20
  "scripts": {
21
- "lint": "eslint .",
21
+ "lint": "oxlint",
22
22
  "build": "tsc -p tsconfig.json",
23
23
  "dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
24
24
  "typecheck": "tsc -p tsconfig.json --noEmit"
package/src/index.ts CHANGED
@@ -1,95 +1,95 @@
1
- export type SceneAvailability = "ready" | "planned";
1
+ export type SceneAvailability = 'ready' | 'planned'
2
2
 
3
3
  export type SceneZone = {
4
- id: string;
5
- assetUrl: string;
4
+ id: string
5
+ assetUrl: string
6
6
  /** Optional collision layer that follows this visual zone. */
7
- collisionAssetUrl?: string;
7
+ collisionAssetUrl?: string
8
8
  /** Additional visual layers that load and unload with this zone. */
9
- assetUrls?: readonly string[];
9
+ assetUrls?: readonly string[]
10
10
  /** Exact-triangle field colliders that load and unload with this zone. */
11
- collisionAssetUrls?: readonly string[];
12
- preload?: boolean;
11
+ collisionAssetUrls?: readonly string[]
12
+ preload?: boolean
13
13
  /** Load the zone automatically when the player enters this radius. */
14
- preloadDistance?: number;
14
+ preloadDistance?: number
15
15
  /** Optional transform for a model authored in local building space. */
16
16
  transform?: {
17
- position?: readonly [number, number, number];
18
- quaternion?: readonly [number, number, number, number];
19
- scale?: readonly [number, number, number];
20
- };
21
- };
17
+ position?: readonly [number, number, number]
18
+ quaternion?: readonly [number, number, number, number]
19
+ scale?: readonly [number, number, number]
20
+ }
21
+ }
22
22
 
23
23
  export type SceneStartPosition = {
24
- x: number;
25
- y: number;
26
- z: number;
27
- yaw?: number;
28
- pitch?: number;
24
+ x: number
25
+ y: number
26
+ z: number
27
+ yaw?: number
28
+ pitch?: number
29
29
  /** Keep an authored start height instead of snapping to the first ray hit. */
30
- snapToGround?: boolean;
31
- };
30
+ snapToGround?: boolean
31
+ }
32
32
 
33
33
  export type StaticFieldAssetUrls = {
34
- foliage?: string;
35
- props?: string;
36
- };
34
+ foliage?: string
35
+ props?: string
36
+ }
37
37
 
38
38
  export type AssignedPropManifestPlacement = {
39
- id?: string;
40
- p?: readonly [number, number, number];
41
- q?: readonly [number, number, number, number];
42
- s?: readonly [number, number, number];
43
- footprint?: readonly [number, number];
44
- };
39
+ id?: string
40
+ p?: readonly [number, number, number]
41
+ q?: readonly [number, number, number, number]
42
+ s?: readonly [number, number, number]
43
+ footprint?: readonly [number, number]
44
+ }
45
45
 
46
46
  export type AssignedPropManifestAsset = {
47
- assetUrl: string;
48
- defaultScale: number;
49
- footprint?: readonly [number, number];
50
- placementSurface?: "floor" | "wall";
51
- wallMountHeight?: number;
52
- floorLift?: number;
53
- placeableOnTop?: boolean;
54
- };
47
+ assetUrl: string
48
+ defaultScale: number
49
+ footprint?: readonly [number, number]
50
+ placementSurface?: 'floor' | 'wall'
51
+ wallMountHeight?: number
52
+ floorLift?: number
53
+ placeableOnTop?: boolean
54
+ }
55
55
 
56
56
  /** Runtime-only room content for props already assigned to a scene. */
57
57
  export type AssignedPropsManifest = {
58
- version?: number;
59
- scene?: string;
60
- assets: Record<string, AssignedPropManifestAsset>;
61
- placements: Record<string, AssignedPropManifestPlacement[]>;
62
- };
58
+ version?: number
59
+ scene?: string
60
+ assets: Record<string, AssignedPropManifestAsset>
61
+ placements: Record<string, AssignedPropManifestPlacement[]>
62
+ }
63
63
 
64
64
  export type SceneManifest = {
65
- id: string;
66
- label: string;
67
- availability?: SceneAvailability;
68
- entryAssetUrl: string;
65
+ id: string
66
+ label: string
67
+ availability?: SceneAvailability
68
+ entryAssetUrl: string
69
69
  /** Optional id for making the initially loaded asset unloadable as a zone. */
70
- entryZoneId?: string;
70
+ entryZoneId?: string
71
71
  /** Keep the entry collision layer active while visual zones transition. */
72
- preserveEntryCollision?: boolean;
73
- collisionAssetUrl?: string;
72
+ preserveEntryCollision?: boolean
73
+ collisionAssetUrl?: string
74
74
  /** Additional collision layers kept active for multi-level scenes. */
75
- additionalCollisionAssetUrls?: readonly string[];
76
- additionalAssetUrls?: readonly string[];
77
- zones?: SceneZone[];
78
- startPosition?: SceneStartPosition;
75
+ additionalCollisionAssetUrls?: readonly string[]
76
+ additionalAssetUrls?: readonly string[]
77
+ zones?: SceneZone[]
78
+ startPosition?: SceneStartPosition
79
79
  /** Build-generated instanced fields for static scenes (preferred over runtime manifests). */
80
- staticFieldAssetUrls?: StaticFieldAssetUrls;
80
+ staticFieldAssetUrls?: StaticFieldAssetUrls
81
81
  /** Render-free exact-triangle companions for the generated static fields. */
82
- staticFieldCollisionAssetUrls?: StaticFieldAssetUrls;
82
+ staticFieldCollisionAssetUrls?: StaticFieldAssetUrls
83
83
  /** Optional foliage placement manifest (instanced from the foliage catalog at runtime). */
84
- foliageManifestUrl?: string;
84
+ foliageManifestUrl?: string
85
85
  /** Optional props placement manifest (instanced from the props catalog at runtime). */
86
- propsManifestUrl?: string;
86
+ propsManifestUrl?: string
87
87
  /** Runtime-only manifest for props explicitly assigned to this workspace. */
88
- assignedPropsManifestUrl?: string;
88
+ assignedPropsManifestUrl?: string
89
89
  /** Public URL for persisted authored-object editor overrides. */
90
- editorOverridesUrl?: string;
90
+ editorOverridesUrl?: string
91
91
  /** Optional repository-relative source path for persisted overrides. */
92
- editorOverridesSourcePath?: string;
92
+ editorOverridesSourcePath?: string
93
93
  /** Optional repository-relative public copy path for persisted overrides. */
94
- editorOverridesPublicPath?: string;
95
- };
94
+ editorOverridesPublicPath?: string
95
+ }