Skip to content

Commit

Permalink
build 12/19
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Dec 19, 2020
2 parents 8889e48 + b6d6d4c commit 8e58232
Show file tree
Hide file tree
Showing 296 changed files with 6,271 additions and 10,146 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ node_modules
packages/block-serialization-spec-parser/parser.js
packages/e2e-tests/plugins
packages/react-native-editor/bundle
playground/dist
vendor
wordpress
!.*.js
2 changes: 1 addition & 1 deletion .github/workflows/storybook-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/dist
publish_dir: ./storybook/build
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ yarn.lock
/wordpress
/artifacts

playground/dist
.cache
*.tsbuildinfo

Expand Down
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"plugins": [
"."
],
"themes": [ "WordPress/theme-experiments/twentytwentyone-blocks" ],
"themes": [ "WordPress/theme-experiments/tt1-blocks" ],
"env": {
"tests": {
"mappings": {
Expand Down
3 changes: 1 addition & 2 deletions docs/contributors/testing-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,8 @@ It's tempting to snapshot deep renders, but that makes for huge snapshots. Addit
Sometimes we need to mock refs for some stories which use them. Check the following documents to learn more:

- Why we need to use [Mocking Refs for Snapshot Testing](https://reactjs.org/blog/2016/11/16/react-v15.4.0.html#mocking-refs-for-snapshot-testing) with React.
- [Using createNodeMock to mock refs](https://github.com/storybookjs/storybook/tree/master/addons/storyshots/storyshots-core#using-createnodemock-to-mock-refs) with StoryShots.

In that case, you might see test failures and `TypeError` reported by Jest in the lines which try to access a property from `ref.current`. If this happens, search for `initStoryshots` method call, which contains all necessary configurations to adjust.
In that case, you might see test failures and `TypeError` reported by Jest in the lines which try to access a property from `ref.current`.

### Debugging Jest unit tests

Expand Down
22 changes: 2 additions & 20 deletions docs/designers-developers/developers/block-api/block-supports.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,24 +338,6 @@ supports: {
}
```

When the block declares support for a specific spacing property, the attributes definition is extended to include some attributes.
When the block declares support for a specific spacing property, the attributes definition is extended to include the `style` attribute.

- `style`: attribute of `object` type with no default assigned. This is added when `padding` support is declared. It stores the custom values set by the user. The block can apply a default style by specifying its own `style` attribute with a default e.g.:

```js
attributes: {
style: {
type: 'object',
default: {
spacing: {
padding: {
top: 'value',
right: 'value',
bottom: 'value',
left: 'value'
}
}
}
}
}
```
- `style`: attribute of `object` type with no default assigned. This is added when `padding` support is declared. It stores the custom values set by the user.
28 changes: 6 additions & 22 deletions docs/designers-developers/developers/data/data-core-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,18 +568,11 @@ _Related_

<a name="getStateBeforeOptimisticTransaction" href="#getStateBeforeOptimisticTransaction">#</a> **getStateBeforeOptimisticTransaction**

> **Deprecated** since Gutenberg 9.7.0.
Returns state object prior to a specified optimist transaction ID, or `null`
if the transaction corresponding to the given ID cannot be found.

_Parameters_

- _state_ `Object`: Current global application state.
- _transactionId_ `Object`: Optimist transaction ID.

_Returns_

- `Object`: Global application state prior to transaction.

<a name="getSuggestedPostFormat" href="#getSuggestedPostFormat">#</a> **getSuggestedPostFormat**

Returns a suggested post format for the current post, inferred only if there
Expand Down Expand Up @@ -696,18 +689,11 @@ _Related_

<a name="inSomeHistory" href="#inSomeHistory">#</a> **inSomeHistory**

> **Deprecated** since Gutenberg 9.7.0.
Returns true if an optimistic transaction is pending commit, for which the
before state satisfies the given predicate function.

_Parameters_

- _state_ `Object`: Editor state.
- _predicate_ `Function`: Function given state, returning true if match.

_Returns_

- `boolean`: Whether predicate matches for some history.

<a name="isAncestorMultiSelected" href="#isAncestorMultiSelected">#</a> **isAncestorMultiSelected**

_Related_
Expand Down Expand Up @@ -1490,13 +1476,11 @@ Undocumented declaration.

<a name="updatePost" href="#updatePost">#</a> **updatePost**

> **Deprecated** since Gutenberg 9.7.0.
Returns an action object used in signalling that a patch of updates for the
latest version of the post have been received.

_Parameters_

- _edits_ `Object`: Updated post fields.

_Returns_

- `Object`: Action object.
Expand Down
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,12 @@
"markdown_source": "../packages/shortcode/README.md",
"parent": "packages"
},
{
"title": "@wordpress/stylelint-config",
"slug": "packages-stylelint-config",
"markdown_source": "../packages/stylelint-config/README.md",
"parent": "packages"
},
{
"title": "@wordpress/token-list",
"slug": "packages-token-list",
Expand Down
54 changes: 0 additions & 54 deletions lib/block-directory.php

This file was deleted.

66 changes: 0 additions & 66 deletions lib/block-patterns.php

This file was deleted.

Loading

0 comments on commit 8e58232

Please sign in to comment.