@graphysdk/react 1.9.0-beta.1792407460425 → 1.9.0-beta.1792410301640

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/README.md CHANGED
@@ -48,6 +48,16 @@ export function EditableChart({ data, spec, isEditing }) {
48
48
  }
49
49
  ```
50
50
 
51
+ Import commands from the same entry to edit charts from code:
52
+
53
+ ```tsx
54
+ import { useGraphCommands } from '@graphysdk/react';
55
+ import { SetContentTitleCommand } from '@graphysdk/react/editable';
56
+
57
+ const { dispatch } = useGraphCommands();
58
+ dispatch(new SetContentTitleCommand({ title: 'Revenue by quarter' }));
59
+ ```
60
+
51
61
  ## Hiding the mark
52
62
 
53
63
  ```tsx