@graphysdk/react-renderer 1.9.0-beta.1789123116058 → 1.9.0-beta.1789367356750

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.
@@ -556,7 +556,7 @@ declare type DotNotation<T> = T extends object ? {
556
556
  * </GraphProvider>
557
557
  * ```
558
558
  */
559
- export declare const EditableGraphRenderer: ({ slots, ...rest }: GraphRendererProps) => JSX.Element;
559
+ export declare const EditableGraphRenderer: ({ slots, mode, ...rest }: GraphRendererProps) => JSX.Element;
560
560
 
561
561
  export { EditorPanel }
562
562
 
@@ -703,6 +703,18 @@ export declare const GoalSection: ({ title, preview }: GoalSectionProps) => JSX.
703
703
  /** No `layout`: a toggled section is always collapsible. */
704
704
  declare type GoalSectionProps = Omit<OverridableSectionProps, 'layout'>;
705
705
 
706
+ /**
707
+ * Chart display and interaction mode.
708
+ * - 'readonly': Normal chart display with full interactivity but no editing (default)
709
+ * - 'editable': Chart with inline editing capabilities for labels, titles, etc.
710
+ * - 'point-and-edit': A press on the chart selects what it hit: an observation, its band, or the chart
711
+ */
712
+ declare const GRAPH_MODES: {
713
+ readonly readonly: "readonly";
714
+ readonly editable: "editable";
715
+ readonly pointAndEdit: "point-and-edit";
716
+ };
717
+
706
718
  /**
707
719
  * Animation settings for a graph. `false` disables every animation. A viewer who prefers reduced
708
720
  * motion gets no animation whatever this asks for.
@@ -764,12 +776,8 @@ declare interface GraphHandle {
764
776
  subscribeSelection: (onSelectionChange: () => void) => () => void;
765
777
  }
766
778
 
767
- /**
768
- * Chart display and interaction mode.
769
- * - 'readonly': Normal chart display with full interactivity but no editing (default)
770
- * - 'editable': Chart with inline editing capabilities for labels, titles, etc.
771
- */
772
- declare type GraphMode = 'readonly' | 'editable';
779
+ /** The mode a chart runs in, which `GraphRenderer` takes as a prop and every row of `MODE_SURFACES` is keyed by. */
780
+ declare type GraphMode = (typeof GRAPH_MODES)[keyof typeof GRAPH_MODES];
773
781
 
774
782
  /**
775
783
  * What a chart writes on its own marks. The grid is chrome behind them, and has its own section.