@graphysdk/react-renderer 1.9.0-beta.1790362479393 → 1.9.0-beta.1790581499752

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.
@@ -215,6 +215,23 @@ export declare interface ControlRegistry {
215
215
  Select?: ComponentType<SelectControlProps>;
216
216
  }
217
217
 
218
+ /**
219
+ * Swaps in a host's own controls, laid over the provider above it rather than over ours, so one provider reaches
220
+ * every editor panel in its React tree and an editor panel's own `controls` win inside it.
221
+ */
222
+ export declare const ControlRegistryProvider: ({ controls, children }: ControlRegistryProviderProps) => JSX.Element;
223
+
224
+ /** What a `ControlRegistryProvider` takes: the controls it swaps and the tree they reach. */
225
+ export declare interface ControlRegistryProviderProps {
226
+ /**
227
+ * Replacements for individual controls, each defined outside render; an omitted or `undefined` member keeps
228
+ * the provider above's, or ours where none swapped it.
229
+ */
230
+ controls?: ControlRegistry;
231
+ /** The tree whose editor panels draw these controls. */
232
+ children: ReactNode;
233
+ }
234
+
218
235
  declare type DeepValue<T, Path extends string> = Path extends `${infer First}.${infer Rest}` ? First extends keyof T ? DeepValue<T[First], Rest> : never : Path extends keyof T ? T[Path] : never;
219
236
 
220
237
  declare const dictionaries: {
@@ -1429,7 +1446,7 @@ declare interface TooltipSlotProps {
1429
1446
 
1430
1447
  export declare const TrendsAndAveragesSection: ({ title, layout, preview }: OverridableSectionProps) => JSX.Element | null;
1431
1448
 
1432
- /** The resolved controls for the surrounding panel. */
1449
+ /** The controls the nearest provider resolves, or ours outside any. */
1433
1450
  export declare const useControls: () => ResolvedControlRegistry;
1434
1451
 
1435
1452
  /**