@graphysdk/react-renderer 1.9.0-beta.1789110926690 → 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.
- package/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +15 -7
- package/dist/editable.mjs +2550 -2395
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.mjs +1 -1
- package/dist/history-chords-CDNk_XQi.cjs +2 -0
- package/dist/{history-chords-BLPhwLjz.js → history-chords-y2ex4E08.js} +2330 -2264
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/index.mjs +121 -120
- package/dist/theme.contract.css +1 -0
- package/dist/theme.contract.css-CEjZ4rbL.cjs +1 -0
- package/dist/{theme.contract.css-Rb-GELRv.js → theme.contract.css-pudzI2o1.js} +1 -1
- package/package.json +2 -2
- package/dist/history-chords-SWP7j5EG.cjs +0 -2
- package/dist/theme.contract.css-BHtVczcV.cjs +0 -1
package/dist/editable.d.ts
CHANGED
|
@@ -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
|
-
|
|
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.
|