Skip to content

Commit

Permalink
Fixes for 15.5.0 (#221)
Browse files Browse the repository at this point in the history
* Styles needs to be an array

* Update visual editor

* Sync outline view up to Gutenberg

* Remove TOC setting

It’s now in the list view

* First package bump

* Fix jest build error

* Fix lint errors

* Update eslint

* Update storybook

* Bump all WP packages

* Bundle

* Bump minimum node version in tests

* Further jest fixes

* Lint fix

* More updates

* Use custom complimentary area

Until I can figure out why the core one doesn’t work this is a workaround

* Lint fixes

* Update packages

* Rebundle

* Block another request

* Fix e2e tests

* Update builds

* Update storybook

* Fix linting

* Rebundle
  • Loading branch information
johngodley committed Apr 25, 2023
1 parent eb0ba38 commit 60228c6
Show file tree
Hide file tree
Showing 332 changed files with 8,142 additions and 7,818 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
7 changes: 7 additions & 0 deletions .jest/jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import '@testing-library/jest-dom';

// Polyfill for window.requestIdleCallback, used in `@wordpress/priority-queue`
import '@shopify/polyfills/idle-callback.jest';
import crypto from 'crypto'

Object.defineProperty( global, 'crypto', {
value: {
getRandomValues: ( arr ) => crypto.randomBytes( arr.length )
}
} );

global.ResizeObserver = require( 'resize-observer-polyfill' );

Expand Down
30 changes: 23 additions & 7 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
const path = require( 'path' );

module.exports = {
core: {
builder: 'webpack5',
},
stories: [ '../src/**/*.stories.*', '../stories/**/*.stories.*' ],
addons: [ '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/preset-scss' ],
};
stories: [ '../src/**/*.stories.*', '../stories/**/*.stories.*' ],
addons: [ '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-mdx-gfm', '@storybook/preset-typescript'
],
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: ( prop ) => ( prop.parent ? !/node_modules/.test( prop.parent.fileName ) : true ),
},
},
framework: {
name: '@storybook/react-webpack5',
options: {}
},
docs: {
autodocs: true
},
core: {
disableTelemetry: true, // 👈 Disables telemetry
}
};
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.24.0] - 2023-04-24

### Update
- Get working with Gutenberg 15.5.0+

## [2.23.1] - 2023-01-09

### Update
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ The following function is also provided:
- _iso.toolbar.inserter_ `[boolean]` - Enable or disable the toolbar block inserter, defaults to `true`
- _iso.toolbar.inspector_ `[boolean]` - Enable or disable the toolbar block inspector, defaults to `false`
- _iso.toolbar.navigation_ `[boolean]` - Enable or disable the toolbar navigation button, defaults to `false`
- _iso.toolbar.toc_ `[boolean]` - Enable or disable the toolbar table of contents button, defaults to `false`
- _iso.toolbar.undo_ `[boolean]` - Enable or disable the toolbar undo/redo buttons, defaults to `true`
- _iso.toolbar.documentInspector_ `[string|null]` - Set to a string to show as a new tab in the inspector and filled with `DocumentSection`, otherwise defaults to no new tab
- _iso.moreMenu_ `[Object]` - More menu settings
Expand Down
Loading

0 comments on commit 60228c6

Please sign in to comment.