@mica-js/document 0.6.0 → 0.7.0
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/fused/index.d.ts +3 -3
- package/dist/fused/index.js +2 -2
- package/dist/fused/index.js.map +1 -1
- package/dist/{instance-data-CX-ElHak.js → instance-data-H002cFE_.js} +6 -6
- package/dist/instance-data-H002cFE_.js.map +1 -0
- package/dist/scene-3d/index.d.ts +2 -2
- package/dist/scene-3d/index.js +1 -1
- package/package.json +1 -1
- package/dist/instance-data-CX-ElHak.js.map +0 -1
package/dist/fused/index.d.ts
CHANGED
|
@@ -24,17 +24,17 @@ export declare function decodeStrictJson(text: string): JsonDecodeResult;
|
|
|
24
24
|
*/
|
|
25
25
|
export declare function deriveFusedTopology(document: FusedDocument, manifests: ReadonlyMap<string, UnifiedDeviceManifest>): FusedTopology;
|
|
26
26
|
|
|
27
|
-
/** `
|
|
27
|
+
/** `deviceData` directory relative POSIX file path problem, or `undefined` when well formed. */
|
|
28
28
|
export declare function deviceDataPathProblem(path: string): string | undefined;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Device data file next to the schematic (RFC 0024 / RFC 0029).
|
|
32
32
|
*
|
|
33
|
-
* `path` is a directory-root relative POSIX path inside the document's sibling `
|
|
33
|
+
* `path` is a directory-root relative POSIX path inside the document's sibling `deviceData/`
|
|
34
34
|
* directory. A `disk` property accepts only this reference for a non-null value.
|
|
35
35
|
*/
|
|
36
36
|
export declare interface DeviceDataReference {
|
|
37
|
-
readonly mode: '
|
|
37
|
+
readonly mode: 'deviceData';
|
|
38
38
|
readonly path: string;
|
|
39
39
|
}
|
|
40
40
|
|
package/dist/fused/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isUuidV4 } from "../uuid-DegOw3iI.js";
|
|
2
|
-
import { A as isNameSegment, D as isExtensionFilter, E as isEventKey, F as projectPathProblem, I as FusedDocumentError, L as report, M as isSemVer, N as normalizeColor, O as isIntegrity, P as packagePathProblem, S as isCodiconName, T as isDeviceId, _ as decodeStrictJson, a as forbidUnknownFields, b as deviceIdProblem, c as isRecord, d as readBooleanField, f as readIntegerField, g as STRICT_JSON_MAX_DEPTH, h as readStringField, i as deepFreeze, j as isPinId, k as isMemberKey, l as parseJsonInput, m as readObjectField, n as readProperties, o as hasErrors, p as readNumberField, r as compareStrings, s as hasOwn, t as readDependencies, u as readArrayField, v as parseStrictJson, w as isDesignatorPrefix, x as extensionProblem, y as deviceDataPathProblem } from "../instance-data-
|
|
2
|
+
import { A as isNameSegment, D as isExtensionFilter, E as isEventKey, F as projectPathProblem, I as FusedDocumentError, L as report, M as isSemVer, N as normalizeColor, O as isIntegrity, P as packagePathProblem, S as isCodiconName, T as isDeviceId, _ as decodeStrictJson, a as forbidUnknownFields, b as deviceIdProblem, c as isRecord, d as readBooleanField, f as readIntegerField, g as STRICT_JSON_MAX_DEPTH, h as readStringField, i as deepFreeze, j as isPinId, k as isMemberKey, l as parseJsonInput, m as readObjectField, n as readProperties, o as hasErrors, p as readNumberField, r as compareStrings, s as hasOwn, t as readDependencies, u as readArrayField, v as parseStrictJson, w as isDesignatorPrefix, x as extensionProblem, y as deviceDataPathProblem } from "../instance-data-H002cFE_.js";
|
|
3
3
|
//#region src/fused/geometry.ts
|
|
4
4
|
/** Reading and validation of device 2D geometry (RFC 0022). */
|
|
5
5
|
/**
|
|
@@ -688,7 +688,7 @@ function checkDefault(value, descriptor, path, diagnostics) {
|
|
|
688
688
|
const allowed = (descriptor.options ?? []).map((option) => option.value);
|
|
689
689
|
return typeof value === "string" && allowed.includes(value) ? { value } : fail(`Default must be one of ${allowed.map((entry) => JSON.stringify(entry)).join(", ")}.`);
|
|
690
690
|
}
|
|
691
|
-
case "disk": return fail("A disk default must be null. Bind a
|
|
691
|
+
case "disk": return fail("A disk default must be null. Bind a deviceData image on the instance.");
|
|
692
692
|
case "image":
|
|
693
693
|
case "binary": {
|
|
694
694
|
const reference = checkPackageReference(value, path, diagnostics);
|