@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.
@@ -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
- /** `device-data` directory relative POSIX file path problem, or `undefined` when well formed. */
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 `device-data/`
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: 'device-data';
37
+ readonly mode: 'deviceData';
38
38
  readonly path: string;
39
39
  }
40
40
 
@@ -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-CX-ElHak.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-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 device-data image on the instance.");
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);