@stackables/bridge 1.6.1 → 1.8.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.
@@ -1,4 +1,4 @@
1
- import { parsePath } from "./bridge-format.js";
1
+ import { parsePath } from "./utils.js";
2
2
  import { SELF_MODULE } from "./types.js";
3
3
  /** Stable string key for the state map */
4
4
  function trunkKey(ref) {
@@ -1,15 +1,8 @@
1
1
  import type { Instruction } from "./types.js";
2
- export declare function parseBridge(text: string): Instruction[];
3
- /**
4
- * Parse a dot-separated path with optional array indices.
5
- *
6
- * "items[0].position.lat" → ["items", "0", "position", "lat"]
7
- * "properties[]" → ["properties"] ([] is stripped, signals array)
8
- * "x-message-id" → ["x-message-id"]
9
- */
10
- export declare function parsePath(text: string): string[];
2
+ export { parsePath } from "./utils.js";
11
3
  /**
12
- * Serialize structured instructions back to .bridge text format.
4
+ * Parse .bridge text delegates to the Chevrotain parser.
13
5
  */
6
+ export declare function parseBridge(text: string): Instruction[];
14
7
  export declare function serializeBridge(instructions: Instruction[]): string;
15
8
  //# sourceMappingURL=bridge-format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-format.d.ts","sourceRoot":"","sources":["../src/bridge-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAKR,WAAW,EAMd,MAAM,YAAY,CAAC;AA8CpB,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CA0FvD;AAmxCD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAchD;AAID;;GAEG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CA8BnE"}
1
+ {"version":3,"file":"bridge-format.d.ts","sourceRoot":"","sources":["../src/bridge-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIR,WAAW,EAKd,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAEvD;AAMD,wBAAgB,eAAe,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CA8BnE"}