@jay-framework/runtime 0.12.0 → 0.13.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/index.d.ts CHANGED
@@ -569,6 +569,8 @@ declare class ConstructContext<ViewState> {
569
569
  private readonly coordinateBase;
570
570
  constructor(data: ViewState, forStaticElements?: boolean, coordinateBase?: Coordinate);
571
571
  get currData(): ViewState;
572
+ /** The accumulated coordinate base (trackBy values from ancestor forEach loops) */
573
+ get dataIds(): Coordinate;
572
574
  coordinate: (refName: string) => Coordinate;
573
575
  forItem<ChildViewState>(childViewState: ChildViewState, id: string): ConstructContext<ChildViewState>;
574
576
  forAsync<ChildViewState>(childViewState: ChildViewState): ConstructContext<ChildViewState>;
package/dist/index.js CHANGED
@@ -179,6 +179,10 @@ class ConstructContext {
179
179
  get currData() {
180
180
  return this.data;
181
181
  }
182
+ /** The accumulated coordinate base (trackBy values from ancestor forEach loops) */
183
+ get dataIds() {
184
+ return this.coordinateBase;
185
+ }
182
186
  forItem(childViewState, id) {
183
187
  return new ConstructContext(childViewState, false, [...this.coordinateBase, id]);
184
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/runtime",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -23,11 +23,11 @@
23
23
  "test:watch": "vitest"
24
24
  },
25
25
  "dependencies": {
26
- "@jay-framework/list-compare": "^0.12.0",
27
- "@jay-framework/reactive": "^0.12.0"
26
+ "@jay-framework/list-compare": "^0.13.0",
27
+ "@jay-framework/reactive": "^0.13.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@jay-framework/dev-environment": "^0.12.0",
30
+ "@jay-framework/dev-environment": "^0.13.0",
31
31
  "@testing-library/jest-dom": "^6.2.0",
32
32
  "@types/jsdom": "^21.1.6",
33
33
  "@types/node": "^20.11.5",