Skip to content

Commit

Permalink
Merge pull request #147 from wp-graphql/changeset-release/main
Browse files Browse the repository at this point in the history
release: 📦 Release Plugin
  • Loading branch information
josephfusco committed May 20, 2024
2 parents c24ffe0 + 1836c6b commit 7e375f5
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 80 deletions.
23 changes: 0 additions & 23 deletions .changeset/few-coins-design.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
version: npm run version
title: "Release Plugin"
commit: "Release Plugin"
title: "release: 📦 Release Plugin"
commit: "release: 📦 Release Plugin"

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 2.0.0

### 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:

```js
const { registerDocumentEditorToolbarButton } = window.WPGraphQLIDE;

registerDocumentEditorToolbarButton("toggle-auth", toggleAuthButton, 1);
```

![Screenshot of the GraphiQL IDE highlighting the Toolbar buttons within the Document Editor region.](https://github.com/wp-graphql/wpgraphql-ide/assets/1260765/2395c3c8-1915-4a24-b64e-35ebe16e674f)

## 1.1.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wpgraphql-ide",
"version": "1.1.9",
"version": "2.0.0",
"private": true,
"repository": {
"type": "git",
Expand Down
112 changes: 65 additions & 47 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,47 +1,65 @@
=== WPGraphQL IDE ===
Contributors: jasonbahl, joefusco
Tags: headless, decoupled, graphql, devtools
Requires at least: 5.7
Tested up to: 6.5
Stable tag: 1.1.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

GraphQL IDE for WPGraphQL

== Description ==

GraphQL IDE for WPGraphQL

== Installation ==

== Frequently Asked Questions ==

== Screenshots ==

== Changelog ==

= 1.1.9 =

### Patch Changes

- 194821c: - fix: The IDE no longer waits on `DOMContentLoaded` in order to help client side performance with heavier pages.
- add: New PHP filters for updating the drawer label:
- `wpgraphqlide_drawer_button_label`
- `wpgraphqlide_drawer_button_loading_label`
- f5130d9: docs: Remove link to community Slack on "Help Page" in favor of link community Discord (recently migrated)

= 1.1.8 =

### Patch Changes

- b005b0e: update tested up to version to WordPress 6.5

= 1.1.7 =

### Patch Changes

- 195dba9: fix: update z-index of the CodeMirror-info tooltip to show above the drawer

[View the full changelog](https://github.com/wp-graphql/wpgraphql-ide/blob/main/CHANGELOG.md)
=== WPGraphQL IDE ===
Contributors: jasonbahl, joefusco
Tags: headless, decoupled, graphql, devtools
Requires at least: 5.7
Tested up to: 6.5
Stable tag: 2.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

GraphQL IDE for WPGraphQL

== Description ==

GraphQL IDE for WPGraphQL

== Installation ==

== Frequently Asked Questions ==

== Screenshots ==

== Changelog ==

= 2.0.0 =

### 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:

```js
const { registerDocumentEditorToolbarButton } = window.WPGraphQLIDE;

registerDocumentEditorToolbarButton("toggle-auth", toggleAuthButton, 1);
```

![Screenshot of the GraphiQL IDE highlighting the Toolbar buttons within the Document Editor region.](https://github.com/wp-graphql/wpgraphql-ide/assets/1260765/2395c3c8-1915-4a24-b64e-35ebe16e674f)

= 1.1.9 =

### Patch Changes

- 194821c: - fix: The IDE no longer waits on `DOMContentLoaded` in order to help client side performance with heavier pages.
- add: New PHP filters for updating the drawer label:
- `wpgraphqlide_drawer_button_label`
- `wpgraphqlide_drawer_button_loading_label`
- f5130d9: docs: Remove link to community Slack on "Help Page" in favor of link community Discord (recently migrated)

= 1.1.8 =

### Patch Changes

- b005b0e: update tested up to version to WordPress 6.5

[View the full changelog](https://github.com/wp-graphql/wpgraphql-ide/blob/main/CHANGELOG.md)
14 changes: 7 additions & 7 deletions wpgraphql-ide.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* GitHub Plugin URI: https://github.com/wp-graphql/wpgraphql-ide
* License: GPLv3 or later
* Text Domain: wpgraphql-ide
* Version: 1.1.9
* Version: 2.0.0
* Requires PHP: 7.4
* Tested up to: 6.5
*
Expand All @@ -20,7 +20,7 @@
exit;
}

define( 'WPGRAPHQL_IDE_VERSION', '1.1.9' );
define( 'WPGRAPHQL_IDE_VERSION', '2.0.0' );
define( 'WPGRAPHQL_IDE_ROOT_ELEMENT_ID', 'wpgraphql-ide-root' );
define( 'WPGRAPHQL_IDE_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
define( 'WPGRAPHQL_IDE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Expand Down Expand Up @@ -350,7 +350,7 @@ static function ( array $notices ) {
';
},
10,
1
1
);

/**
Expand All @@ -374,7 +374,7 @@ static function ( string $notice_slug, array $notice, bool $is_dismissable, int
';
},
10,
4
4
);

/**
Expand All @@ -396,14 +396,14 @@ static function ( bool $is_plugin_scoped_page, string $current_page_id, array $a
return $is_plugin_scoped_page;
},
10,
3
3
);

/**
* Modifies the script tag for specific scripts to add the 'defer' attribute.
*
* This function checks if the script handle matches 'wpgraphql-ide' and, if so,
* adds the 'defer' attribute to the script tag. This allows the script to be executed
* This function checks if the script handle matches 'wpgraphql-ide' and, if so,
* adds the 'defer' attribute to the script tag. This allows the script to be executed
* after the HTML document is parsed but before the DOMContentLoaded event.
*
* @param string $tag The HTML `<script>` tag of the enqueued script.
Expand Down

0 comments on commit 7e375f5

Please sign in to comment.