Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 18:32
· 106 commits to main since this release
7e375f5

Major Changes

  • 43eea79: Refactored stores, including renaming 'wpgraphql-ide' to 'wpgraphql-ide/app', and adding additional stores such as 'wpgraphql-ide/editor-toolbar.

    Added registerDocumentEditorToolbarButton function to public API.

    This function allows registering a new editor toolbar button with the following parameters:

    • name (string): The name of the button to register.
    • config (Object): The configuration object for the button.
    • priority (number, optional): The priority for the button, with lower numbers meaning higher priority. Default is 10.

    Example usage:

    const { registerDocumentEditorToolbarButton } = window.WPGraphQLIDE;
    
    registerDocumentEditorToolbarButton("toggle-auth", toggleAuthButton, 1);

    Screenshot of the GraphiQL IDE highlighting the Toolbar buttons within the Document Editor region.