@yahoo/uds-create-config 5.91.8 → 5.92.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.
@@ -81,7 +81,7 @@ export declare function yosNative(): import("..").ConfigInstance<{
81
81
  output: import("zod").ZodOptional<import("zod").ZodBoolean>;
82
82
  }, import("zod/v4/core").$strict>]>>;
83
83
  }, import("zod/v4/core").$strict>>;
84
- }, "css" | "playground" | "canvas"> & {
84
+ }, "canvas" | "css" | "playground"> & {
85
85
  canvas: import("zod").ZodOptional<import("zod").ZodObject<{
86
86
  packageAliases: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
87
87
  }, import("zod/v4/core").$strict>>;
@@ -195,10 +195,11 @@ export declare function yosNative(): import("..").ConfigInstance<{
195
195
  responsive: import("zod").ZodDefault<import("zod").ZodBoolean>;
196
196
  classPrefix: import("zod").ZodOptional<import("zod").ZodString>;
197
197
  arbitrary: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodEnum<{
198
+ em: "em";
199
+ s: "s";
198
200
  ch: "ch";
199
201
  dvh: "dvh";
200
202
  dvw: "dvw";
201
- em: "em";
202
203
  ex: "ex";
203
204
  lvh: "lvh";
204
205
  lvw: "lvw";
@@ -214,7 +215,6 @@ export declare function yosNative(): import("..").ConfigInstance<{
214
215
  deg: "deg";
215
216
  rad: "rad";
216
217
  turn: "turn";
217
- s: "s";
218
218
  ms: "ms";
219
219
  unitless: "unitless";
220
220
  lh: "lh";
@@ -234,8 +234,8 @@ export declare function yosNative(): import("..").ConfigInstance<{
234
234
  opacityOf: import("zod").ZodOptional<import("zod").ZodLazy<import("zod").ZodType<import("..").Ref, unknown, import("zod/v4/core").$ZodTypeInternals<import("..").Ref, unknown>>>>;
235
235
  }, "values" | "alpha" | "properties" | "selector" | "classPrefix" | "declarations"> & {
236
236
  properties: import("zod").ZodArray<import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>, import("zod").ZodEnum<{
237
- transform: "transform";
238
237
  filter: "filter";
238
+ transform: "transform";
239
239
  color: "color";
240
240
  inset: "inset";
241
241
  position: "position";
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+
3
+ //#region src/authoring/intersperse.d.ts
4
+ /** A separator, or a function of the index of the item it comes before (from 1). */
5
+ type IntersperseSeparator = ReactNode | ((index: number) => ReactNode);
6
+ /** The children with the separator between each pair of them, each copy keyed by its position. */
7
+ declare function intersperse(children: ReactNode, separator: IntersperseSeparator | null | undefined): ReactNode;
8
+ //#endregion
9
+ export { IntersperseSeparator, intersperse };
@@ -0,0 +1,41 @@
1
+ import { Children, Fragment, cloneElement, isValidElement } from "react";
2
+ //#region src/authoring/intersperse.ts
3
+ /**
4
+ * Places a separator between a render's children: `<Box>{intersperse(children, separator)}</Box>`.
5
+ * The anatomy reader recognises the call by its import, so the component editor paints a copy of the
6
+ * separator between the items, as the module does. With no separator the children render as given.
7
+ */
8
+ /**
9
+ * The children as a list, a fragment's children spread in its place. A design-file canvas hands a
10
+ * container its empty-slot placeholder (an element whose `element` prop is a `Slot`) among the
11
+ * children, which is a drop target rather than an item, so it gets no separator.
12
+ */
13
+ function itemsOf(children, parentKey = "") {
14
+ const items = [];
15
+ for (const child of Children.toArray(children)) {
16
+ if (isValidElement(child)) {
17
+ const props = child.props;
18
+ if (props.element?.type === "Slot") continue;
19
+ if (child.type === Fragment) {
20
+ items.push(...itemsOf(props.children, `${parentKey}${child.key}/`));
21
+ continue;
22
+ }
23
+ items.push(parentKey ? cloneElement(child, { key: `${parentKey}${child.key}` }) : child);
24
+ continue;
25
+ }
26
+ items.push(child);
27
+ }
28
+ return items;
29
+ }
30
+ /** The children with the separator between each pair of them, each copy keyed by its position. */
31
+ function intersperse(children, separator) {
32
+ if (separator == null || separator === false) return children;
33
+ return itemsOf(children).flatMap((item, index) => {
34
+ if (index === 0) return [item];
35
+ const node = typeof separator === "function" ? separator(index) : separator;
36
+ if (node == null || typeof node === "boolean") return [item];
37
+ return [isValidElement(node) ? cloneElement(node, { key: `separator-${index}` }) : node, item];
38
+ });
39
+ }
40
+ //#endregion
41
+ export { intersperse };
@@ -99,7 +99,7 @@ declare const ReactNativeSystemDefinition: ConfigClass<{
99
99
  output: _$zod.ZodOptional<_$zod.ZodBoolean>;
100
100
  }, _$zod_v4_core0.$strict>]>>;
101
101
  }, _$zod_v4_core0.$strict>>;
102
- }, "css" | "playground" | "canvas"> & {
102
+ }, "canvas" | "css" | "playground"> & {
103
103
  canvas: _$zod.ZodOptional<_$zod.ZodObject<{
104
104
  packageAliases: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
105
105
  }, _$zod_v4_core0.$strict>>;
@@ -216,10 +216,11 @@ declare const ReactNativeSystemDefinition: ConfigClass<{
216
216
  responsive: _$zod.ZodDefault<_$zod.ZodBoolean>;
217
217
  classPrefix: _$zod.ZodOptional<_$zod.ZodString>;
218
218
  arbitrary: _$zod.ZodDefault<_$zod.ZodUnion<readonly [_$zod.ZodBoolean, _$zod.ZodEnum<{
219
+ em: "em";
220
+ s: "s";
219
221
  ch: "ch";
220
222
  dvh: "dvh";
221
223
  dvw: "dvw";
222
- em: "em";
223
224
  ex: "ex";
224
225
  lvh: "lvh";
225
226
  lvw: "lvw";
@@ -235,7 +236,6 @@ declare const ReactNativeSystemDefinition: ConfigClass<{
235
236
  deg: "deg";
236
237
  rad: "rad";
237
238
  turn: "turn";
238
- s: "s";
239
239
  ms: "ms";
240
240
  unitless: "unitless";
241
241
  lh: "lh";
@@ -255,8 +255,8 @@ declare const ReactNativeSystemDefinition: ConfigClass<{
255
255
  opacityOf: _$zod.ZodOptional<_$zod.ZodLazy<_$zod.ZodType<Ref, unknown, _$zod_v4_core0.$ZodTypeInternals<Ref, unknown>>>>;
256
256
  }, "values" | "alpha" | "properties" | "selector" | "classPrefix" | "declarations"> & {
257
257
  properties: _$zod.ZodArray<_$zod.ZodPipe<_$zod.ZodPipe<_$zod.ZodString, _$zod.ZodTransform<string, string>>, _$zod.ZodEnum<{
258
- transform: "transform";
259
258
  filter: "filter";
259
+ transform: "transform";
260
260
  color: "color";
261
261
  inset: "inset";
262
262
  position: "position";
@@ -48,6 +48,7 @@ import { lintRulesByGroupMigration } from "../migrations/20261109144822_lint_rul
48
48
  import { stringPropUniqueIdsMigration } from "../migrations/20261109205852_string_prop_unique_ids.js";
49
49
  import { anatomyNodeOverridesMigration } from "../migrations/20261109214535_anatomy_node_overrides.js";
50
50
  import { computedVisibilityMigration } from "../migrations/20261110145811_computed_visibility.js";
51
+ import { anatomyNodeStatesMigration } from "../migrations/20261110171151_anatomy_node_states.js";
51
52
  import { CanvasRole } from "../entities/system/CanvasRole.js";
52
53
  import { GlobalStyle } from "../entities/system/GlobalStyle.js";
53
54
  import { Guidance } from "../entities/system/Guidance.js";
@@ -232,5 +233,6 @@ if (!registeredSchemaMigrations().has(20261109144822)) registerSchemaMigrations(
232
233
  if (!registeredSchemaMigrations().has(20261109205852)) registerSchemaMigrations(stringPropUniqueIdsMigration);
233
234
  if (!registeredSchemaMigrations().has(20261109214535)) registerSchemaMigrations(anatomyNodeOverridesMigration);
234
235
  if (!registeredSchemaMigrations().has(20261110145811)) registerSchemaMigrations(computedVisibilityMigration);
236
+ if (!registeredSchemaMigrations().has(20261110171151)) registerSchemaMigrations(anatomyNodeStatesMigration);
235
237
  //#endregion
236
238
  export { System };
@@ -88,7 +88,7 @@ declare const NativeSettings: EntityClass<z.ZodObject<Omit<{
88
88
  output: z.ZodOptional<z.ZodBoolean>;
89
89
  }, z.core.$strict>]>>;
90
90
  }, z.core.$strict>>;
91
- }, "css" | "playground" | "canvas"> & {
91
+ }, "canvas" | "css" | "playground"> & {
92
92
  canvas: z.ZodOptional<z.ZodObject<{
93
93
  packageAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
94
94
  }, z.core.$strict>>;
@@ -6,8 +6,8 @@ import { z } from "zod";
6
6
  //#region src/entities/native/NativeStyleProperty.d.ts
7
7
  /** One React Native style key, as RN's own types declare them. */
8
8
  declare const rnStyleKey: z.ZodEnum<{
9
- transform: "transform";
10
9
  filter: "filter";
10
+ transform: "transform";
11
11
  color: "color";
12
12
  inset: "inset";
13
13
  position: "position";
@@ -169,10 +169,11 @@ declare const NativeStyleProperty: EntityClass<z.ZodObject<Omit<{
169
169
  responsive: z.ZodDefault<z.ZodBoolean>;
170
170
  classPrefix: z.ZodOptional<z.ZodString>;
171
171
  arbitrary: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
172
+ em: "em";
173
+ s: "s";
172
174
  ch: "ch";
173
175
  dvh: "dvh";
174
176
  dvw: "dvw";
175
- em: "em";
176
177
  ex: "ex";
177
178
  lvh: "lvh";
178
179
  lvw: "lvw";
@@ -188,7 +189,6 @@ declare const NativeStyleProperty: EntityClass<z.ZodObject<Omit<{
188
189
  deg: "deg";
189
190
  rad: "rad";
190
191
  turn: "turn";
191
- s: "s";
192
192
  ms: "ms";
193
193
  unitless: "unitless";
194
194
  lh: "lh";
@@ -208,8 +208,8 @@ declare const NativeStyleProperty: EntityClass<z.ZodObject<Omit<{
208
208
  opacityOf: z.ZodOptional<z.ZodLazy<z.ZodType<Ref, unknown, z.core.$ZodTypeInternals<Ref, unknown>>>>;
209
209
  }, "values" | "alpha" | "properties" | "selector" | "classPrefix" | "declarations"> & {
210
210
  properties: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
211
- transform: "transform";
212
211
  filter: "filter";
212
+ transform: "transform";
213
213
  color: "color";
214
214
  inset: "inset";
215
215
  position: "position";
@@ -724,6 +724,9 @@ interface ComponentElementBody {
724
724
  /** The keys of `props` the render writes after the layer's own spread, which win over the
725
725
  * layer's style rules. */
726
726
  overrides?: string[];
727
+ /** What the render's `states(…)` call sets each state to, as values over the props (and the row,
728
+ * on a repeated node). */
729
+ states?: Record<string, unknown>;
727
730
  text?: string;
728
731
  /** Event name → the state actions it runs, in json-render's `on` grammar. */
729
732
  on?: Record<string, {
@@ -1662,6 +1662,7 @@ const AnatomyNode = defineSubEntity({
1662
1662
  values: anatomyPropValue
1663
1663
  }) : z.record(z.string(), anatomyPropValue)).optional().describe("Props passed to what the node renders, keyed by prop or style-property name, as literal values. Content is not set here: a `slot` prop's content lands where a `{ \"element\": \"Slot\", \"props\": { \"name\": \"<prop>\" } }` node sits among a parent's `children` (on the root when there is none), and a `forward` prop (`{ \"type\": \"forward\", \"target\": \"label/children\" }`) routes it into that layer with no node entry. `$state` belongs to `visible` and to an `element` a prop chooses."),
1664
1664
  overrides: z.array(z.string()).optional().describe("Keys of `props` the render writes after the layer's spread, so they win over its style rules."),
1665
+ states: z.record(z.string(), anatomyPropValue).optional().describe("What the render's `states(…)` call sets each state to, as a value over the props (`$item` on a repeated node). A state left out takes its rest value."),
1665
1666
  text: z.string().optional().describe("Literal text content, for a node that renders a fixed string."),
1666
1667
  repeat: z.strictObject({
1667
1668
  source: z.unknown(),
@@ -1752,7 +1753,7 @@ const AnatomyNode = defineSubEntity({
1752
1753
  }
1753
1754
  });
1754
1755
  if (slotAnatomyProp !== void 0) {
1755
- if (node.children?.length || node.slots || node.text !== void 0 || node.visible !== void 0 || Object.keys(node.props ?? {}).some((prop) => prop !== "name")) ctx.issues.push({
1756
+ if (node.children?.length || node.slots || node.text !== void 0 || node.visible !== void 0 || Object.keys(node.props ?? {}).some((prop) => prop !== "name" && prop !== "separator")) ctx.issues.push({
1756
1757
  code: "custom",
1757
1758
  input: node,
1758
1759
  message: "a Slot node carries nothing of its own — its content arrives from the instance"
@@ -1763,6 +1764,18 @@ const AnatomyNode = defineSubEntity({
1763
1764
  input: node,
1764
1765
  message: `a Slot node must name a slot prop — "${slotAnatomyProp}" routes no content`
1765
1766
  });
1767
+ const separator = {
1768
+ ...current?.props,
1769
+ ...node.props
1770
+ }.separator;
1771
+ if (separator !== void 0) {
1772
+ const separatorDecl = body.props?.[separator];
1773
+ if (typeof separator !== "string" || separator === slotAnatomyProp || separatorDecl && separatorDecl.type !== "slot") ctx.issues.push({
1774
+ code: "custom",
1775
+ input: node,
1776
+ message: `a Slot node's \`separator\` must name another slot prop — "${String(separator)}" is not one`
1777
+ });
1778
+ }
1766
1779
  for (const [sibling, member] of Object.entries(body.anatomy ?? {})) {
1767
1780
  if (sibling === key) continue;
1768
1781
  if (slotAnatomyPropOf(member) === slotAnatomyProp) {
@@ -37,8 +37,8 @@ declare const MotionEntity: EntityClass<z.ZodDiscriminatedUnion<[z.ZodObject<{
37
37
  type: z.ZodLiteral<"react-native-reanimated">;
38
38
  value: z.ZodUnion<readonly [z.ZodObject<{
39
39
  transitionProperty: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
40
- transform: "transform";
41
40
  filter: "filter";
41
+ transform: "transform";
42
42
  color: "color";
43
43
  none: "none";
44
44
  inset: "inset";
@@ -196,8 +196,8 @@ declare const MotionEntity: EntityClass<z.ZodDiscriminatedUnion<[z.ZodObject<{
196
196
  zIndex: "zIndex";
197
197
  all: "all";
198
198
  }>, z.ZodArray<z.ZodEnum<{
199
- transform: "transform";
200
199
  filter: "filter";
200
+ transform: "transform";
201
201
  color: "color";
202
202
  inset: "inset";
203
203
  position: "position";
@@ -393,8 +393,8 @@ declare const MotionEntity: EntityClass<z.ZodDiscriminatedUnion<[z.ZodObject<{
393
393
  "allow-discrete": "allow-discrete";
394
394
  }>>]>>;
395
395
  animationName: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
396
- transform: "transform";
397
396
  filter: "filter";
397
+ transform: "transform";
398
398
  color: "color";
399
399
  inset: "inset";
400
400
  position: "position";
@@ -569,8 +569,8 @@ declare const MotionEntity: EntityClass<z.ZodDiscriminatedUnion<[z.ZodObject<{
569
569
  }>, z.ZodObject<{
570
570
  cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
571
571
  }, z.core.$strict>]>]>>>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
572
- transform: "transform";
573
572
  filter: "filter";
573
+ transform: "transform";
574
574
  color: "color";
575
575
  inset: "inset";
576
576
  position: "position";
@@ -148,10 +148,11 @@ declare const StylePropertyEntity: EntityClass<z.ZodObject<{
148
148
  responsive: z.ZodDefault<z.ZodBoolean>;
149
149
  classPrefix: z.ZodOptional<z.ZodString>;
150
150
  arbitrary: z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
151
+ em: "em";
152
+ s: "s";
151
153
  ch: "ch";
152
154
  dvh: "dvh";
153
155
  dvw: "dvw";
154
- em: "em";
155
156
  ex: "ex";
156
157
  lvh: "lvh";
157
158
  lvw: "lvw";
@@ -167,7 +168,6 @@ declare const StylePropertyEntity: EntityClass<z.ZodObject<{
167
168
  deg: "deg";
168
169
  rad: "rad";
169
170
  turn: "turn";
170
- s: "s";
171
171
  ms: "ms";
172
172
  unitless: "unitless";
173
173
  lh: "lh";
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const reanimatedStyle: z.ZodObject<{
3
3
  transitionProperty: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4
- transform: "transform";
5
4
  filter: "filter";
5
+ transform: "transform";
6
6
  color: "color";
7
7
  none: "none";
8
8
  inset: "inset";
@@ -160,8 +160,8 @@ export declare const reanimatedStyle: z.ZodObject<{
160
160
  zIndex: "zIndex";
161
161
  all: "all";
162
162
  }>, z.ZodArray<z.ZodEnum<{
163
- transform: "transform";
164
163
  filter: "filter";
164
+ transform: "transform";
165
165
  color: "color";
166
166
  inset: "inset";
167
167
  position: "position";
@@ -357,8 +357,8 @@ export declare const reanimatedStyle: z.ZodObject<{
357
357
  "allow-discrete": "allow-discrete";
358
358
  }>>]>>;
359
359
  animationName: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
360
- transform: "transform";
361
360
  filter: "filter";
361
+ transform: "transform";
362
362
  color: "color";
363
363
  inset: "inset";
364
364
  position: "position";
@@ -533,8 +533,8 @@ export declare const reanimatedStyle: z.ZodObject<{
533
533
  }>, z.ZodObject<{
534
534
  cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
535
535
  }, z.core.$strict>]>]>>>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
536
- transform: "transform";
537
536
  filter: "filter";
537
+ transform: "transform";
538
538
  color: "color";
539
539
  inset: "inset";
540
540
  position: "position";
@@ -74,7 +74,7 @@ interface RecordedSource {
74
74
  * The dense-counter `2` a short-lived scheme stamped before the chain existed reads as the mint
75
75
  * that replaced it (see `detectedWireVersion`).
76
76
  */
77
- declare const SERIALIZED_CONFIG_VERSION = 20261110145811;
77
+ declare const SERIALIZED_CONFIG_VERSION = 20261110171151;
78
78
  interface SerializedConfig {
79
79
  /** See {@link SERIALIZED_CONFIG_VERSION}. Always written; a stored artifact may lack it. */
80
80
  readonly version: number;
@@ -6583,7 +6583,7 @@ var Config = class Config {
6583
6583
  * links from the provided sources. A declared `linkedKind` with no provided source throws. */
6584
6584
  hydrateFrom(stored, options) {
6585
6585
  const claimed = schemaVersionOf(stored);
6586
- if (claimed > 20261110145811) throw new SchemaVersionTooNew(claimed);
6586
+ if (claimed > 20261110171151) throw new SchemaVersionTooNew(claimed);
6587
6587
  const wire = upgradeSerializedConfig(stored);
6588
6588
  if (!Array.isArray(wire.ownedKinds) || typeof wire.items !== "object" || wire.items === null) throw new ConfigFormatError(`Config "${stored.name ?? "system-config"}" cannot be hydrated: this is not a serialized config-v2 config (no "ownedKinds"/"items"). A pre-cutover build artifact converts through the registered cutover migration — import the config type's module (e.g. \`configs/system\`) before hydrating.`);
6589
6589
  const leftover = wire.options;
@@ -82,6 +82,15 @@ interface MeasuredValue {
82
82
  readonly value: unknown;
83
83
  readonly initial?: unknown;
84
84
  }
85
+ /**
86
+ * One of the component's own layer bags, handed to an element its render composes: `label:
87
+ * props.text` inside `<Divider layerProps={{ … }}>`. The expansion settles it to what the module's
88
+ * `props.<layer>` holds there, the owner's markers and classes included, so the composed element
89
+ * paints and selects as the owner's layer.
90
+ */
91
+ interface LayerBagValue {
92
+ readonly $layer: string;
93
+ }
85
94
  /** One read off a layer's painted element: a size in pixels, or a computed style property. */
86
95
  type MeasureRead = {
87
96
  readonly $layout: MeasureLayout;
@@ -107,6 +116,8 @@ interface MeasureRequest {
107
116
  interface RepeatRow {
108
117
  readonly item: unknown;
109
118
  readonly index: number;
119
+ /** The states a per-row `states(…)` call set for this row, in effect beneath it. */
120
+ readonly states?: Readonly<Record<string, unknown>>;
110
121
  }
111
122
  /** What settling a value needs beyond the prop bag: the functions `$computed` may call and, inside
112
123
  * a repeated node, the current row. */
@@ -478,6 +489,11 @@ interface SlotTarget {
478
489
  * root when the anatomy records no position for it, which is where the expansion renders it.
479
490
  */
480
491
  declare function slotTargetsOf(config: Config, path: string): SlotTarget[];
492
+ /**
493
+ * The slots whose items a render places with a separator between them
494
+ * (`intersperse(children, separator)`), each mapped to the slot that holds the separator.
495
+ */
496
+ declare function slotSeparatorsOf(config: Config, path: string): ReadonlyMap<string, string>;
481
497
  /**
482
498
  * Layer → the forwards that hand a VALUE to one of its props.
483
499
  *
@@ -540,6 +556,29 @@ declare function propsIntoLayer({
540
556
  path: string;
541
557
  layer: string;
542
558
  }): string[];
559
+ /**
560
+ * What a component's render reports for its states through its `states(…)` call, settled against
561
+ * the props an instance is given over the component's defaults. A state the props pin, by name or
562
+ * under {@link UDS_FORCE_STATES}, is left to the pin, and one whose value doesn't settle is left out,
563
+ * so it takes its rest value. A value the render sets per row is not included, since it holds only
564
+ * inside its row.
565
+ *
566
+ * `pinned`, when given, is the bag whose states count as pins in place of `props`, for a caller whose
567
+ * `props` already lay each state's rest value under what is pinned.
568
+ */
569
+ declare function reportedStates({
570
+ config,
571
+ path,
572
+ props,
573
+ pinned,
574
+ functions
575
+ }: {
576
+ config: Config;
577
+ path: string;
578
+ props: Readonly<Record<string, unknown>>;
579
+ pinned?: Readonly<Record<string, unknown>>;
580
+ functions?: ComputedFunctions;
581
+ }): Record<string, unknown>;
543
582
  /**
544
583
  * Expand every component element the renderer can't name into the tree it is made of.
545
584
  *
@@ -558,4 +597,4 @@ declare function expandSpec(config: Config, spec: RenderSpec, options?: ExpandOp
558
597
  */
559
598
  declare function expandComponent(config: Config, path: string, props?: Record<string, unknown>, options?: ExpandOptions): ExpansionResult;
560
599
  //#endregion
561
- export { ANATOMY_MARKER, ComponentSpec, ComponentSpecs, ComputedFunctions, ComputedValue, ExpandOptions, ExpansionResult, MEASURE_LAYOUTS, MOTION_FACTORY, MeasureLayout, MeasureRead, MeasureReader, MeasureRequest, MeasuredValue, RenderElement, RenderSpec, RepeatRow, RepeatSpec, ResolveContext, SlotTarget, VisibilityOperator, VisibilityTerm, anatomyElementComponent, anatomyTextProp, boundElementType, componentSpec, deriveSpec, entryKeyOf, expandComponent, expandSpec, instanceSpec, layerTextProp, liveStateProps, previewSpec, propInto, propsIntoLayer, readStatePointer, resolveValue, resolveVisibility, routeOf, routesOf, slotTargetsOf, specWithResolvedVisibility, statePointerProp, unrollRows, valueForwardsOf, visibilityStateProps, visibilityTerms, withoutTruthyTerm, wrappedElementKey };
600
+ export { ANATOMY_MARKER, ComponentSpec, ComponentSpecs, ComputedFunctions, ComputedValue, ExpandOptions, ExpansionResult, LayerBagValue, MEASURE_LAYOUTS, MOTION_FACTORY, MeasureLayout, MeasureRead, MeasureReader, MeasureRequest, MeasuredValue, RenderElement, RenderSpec, RepeatRow, RepeatSpec, ResolveContext, SlotTarget, VisibilityOperator, VisibilityTerm, anatomyElementComponent, anatomyTextProp, boundElementType, componentSpec, deriveSpec, entryKeyOf, expandComponent, expandSpec, instanceSpec, layerTextProp, liveStateProps, previewSpec, propInto, propsIntoLayer, readStatePointer, reportedStates, resolveValue, resolveVisibility, routeOf, routesOf, slotSeparatorsOf, slotTargetsOf, specWithResolvedVisibility, statePointerProp, unrollRows, valueForwardsOf, visibilityStateProps, visibilityTerms, withoutTruthyTerm, wrappedElementKey };