@input/pen-types 0.1.1 → 0.1.3

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.cts CHANGED
@@ -1569,6 +1569,15 @@ interface DocumentState {
1569
1569
  blockAt(index: number): string | null;
1570
1570
  indexOf(blockId: string): number;
1571
1571
  parentOf(blockId: string): string | null;
1572
+ /**
1573
+ * Ordered child ids, covering both nesting routes: a block's `children`
1574
+ * array and the `parentId` convention. Children-array order is authoritative
1575
+ * for that route; `parentId` children follow `blockOrder`.
1576
+ *
1577
+ * The inverse of {@link parentOf}. Prefer this over filtering `blockOrder`,
1578
+ * which cannot see children-array children — they are not in `blockOrder`.
1579
+ */
1580
+ childrenOf(blockId: string): readonly string[];
1572
1581
  }
1573
1582
  interface UndoManager {
1574
1583
  undo(): boolean;
package/dist/index.d.ts CHANGED
@@ -1569,6 +1569,15 @@ interface DocumentState {
1569
1569
  blockAt(index: number): string | null;
1570
1570
  indexOf(blockId: string): number;
1571
1571
  parentOf(blockId: string): string | null;
1572
+ /**
1573
+ * Ordered child ids, covering both nesting routes: a block's `children`
1574
+ * array and the `parentId` convention. Children-array order is authoritative
1575
+ * for that route; `parentId` children follow `blockOrder`.
1576
+ *
1577
+ * The inverse of {@link parentOf}. Prefer this over filtering `blockOrder`,
1578
+ * which cannot see children-array children — they are not in `blockOrder`.
1579
+ */
1580
+ childrenOf(blockId: string): readonly string[];
1572
1581
  }
1573
1582
  interface UndoManager {
1574
1583
  undo(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@input/pen-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Type definitions and lightweight runtime helpers for Pen",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/input-systems/pen#readme",