Skip to content

Commit

Permalink
Revert stan (#27196)
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGuy007 committed Nov 23, 2020
1 parent e05db20 commit d9e4eb2
Show file tree
Hide file tree
Showing 53 changed files with 609 additions and 2,243 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ playground/dist
.cache
*.tsbuildinfo

# Report generated from tests
# Report generated from jest-junit
test/native/junit.xml

# Local overrides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Returns the raw representation of all the keyboard combinations of a given short

_Parameters_

- _state_ `Object`: Global state.
- _name_ `string`: Shortcut name.

_Returns_
Expand All @@ -24,7 +25,8 @@ Returns the shortcut names list for a given category name.

_Parameters_

- _categoryName_ `string`: Category name.
- _state_ `Object`: Global state.
- _name_ `string`: Category name.

_Returns_

Expand All @@ -36,6 +38,7 @@ Returns the aliases for a given shortcut name.

_Parameters_

- _state_ `Object`: Global state.
- _name_ `string`: Shortcut name.

_Returns_
Expand All @@ -48,6 +51,7 @@ Returns the shortcut description given its name.

_Parameters_

- _state_ `Object`: Global state.
- _name_ `string`: Shortcut name.

_Returns_
Expand All @@ -60,6 +64,7 @@ Returns the main key combination for a given shortcut name.

_Parameters_

- _state_ `Object`: Global state.
- _name_ `string`: Shortcut name.

_Returns_
Expand All @@ -72,6 +77,7 @@ Returns a string representing the main key combination for a given shortcut name

_Parameters_

- _state_ `Object`: Global state.
- _name_ `string`: Shortcut name.
- _representation_ (unknown type): Type of representation (display, raw, ariaLabel).

Expand All @@ -91,19 +97,23 @@ Returns an action object used to register a new keyboard shortcut.

_Parameters_

- _get_ `Function`: Atom resover.
- _set_ `Function`: Atom updater.
- _config_ `WPShortcutConfig`: Shortcut config.

_Returns_

- `Object`: action.

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

Returns an action object used to unregister a keyboard shortcut.

_Parameters_

- _get_ `Function`: get atom value.
- _set_ `Function`: set atom value.
- _name_ `string`: Shortcut name.

_Returns_

- `Object`: action.


<!-- END TOKEN(Autogenerated actions|../../../../packages/keyboard-shortcuts/src/store/actions.js) -->
6 changes: 0 additions & 6 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1793,12 +1793,6 @@
"markdown_source": "../packages/shortcode/README.md",
"parent": "packages"
},
{
"title": "@wordpress/stan",
"slug": "packages-stan",
"markdown_source": "../packages/stan/README.md",
"parent": "packages"
},
{
"title": "@wordpress/token-list",
"slug": "packages-token-list",
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@wordpress/rich-text": "file:packages/rich-text",
"@wordpress/server-side-render": "file:packages/server-side-render",
"@wordpress/shortcode": "file:packages/shortcode",
"@wordpress/stan": "file:packages/stan",
"@wordpress/token-list": "file:packages/token-list",
"@wordpress/url": "file:packages/url",
"@wordpress/viewport": "file:packages/viewport",
Expand Down
26 changes: 12 additions & 14 deletions packages/block-directory/src/store/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ describe( 'selectors', () => {

describe( 'getNewBlockTypes', () => {
it( 'should retrieve the block types that are installed and in the post content', () => {
getNewBlockTypes.__unstableGetSelect = jest.fn( () => ( {
getBlocks: () => blockList,
} ) );
getNewBlockTypes.registry = {
select: jest.fn( () => ( { getBlocks: () => blockList } ) ),
};
const state = {
blockManagement: {
installedBlockTypes: [
Expand All @@ -106,9 +106,9 @@ describe( 'selectors', () => {
} );

it( 'should return an empty array if no blocks are used', () => {
getNewBlockTypes.__unstableGetSelect = jest.fn( () => ( {
getBlocks: () => [],
} ) );
getNewBlockTypes.registry = {
select: jest.fn( () => ( { getBlocks: () => [] } ) ),
};
const state = {
blockManagement: {
installedBlockTypes: [
Expand All @@ -124,10 +124,9 @@ describe( 'selectors', () => {

describe( 'getUnusedBlockTypes', () => {
it( 'should retrieve the block types that are installed but not used', () => {
getUnusedBlockTypes.__unstableGetSelect = jest.fn( () => ( {
getBlocks: () => blockList,
} ) );

getUnusedBlockTypes.registry = {
select: jest.fn( () => ( { getBlocks: () => blockList } ) ),
};
const state = {
blockManagement: {
installedBlockTypes: [
Expand All @@ -142,10 +141,9 @@ describe( 'selectors', () => {
} );

it( 'should return all block types if no blocks are used', () => {
getUnusedBlockTypes.__unstableGetSelect = jest.fn( () => ( {
getBlocks: () => [],
} ) );

getUnusedBlockTypes.registry = {
select: jest.fn( () => ( { getBlocks: () => [] } ) ),
};
const state = {
blockManagement: {
installedBlockTypes: [
Expand Down
1 change: 0 additions & 1 deletion packages/compose/src/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export { default as __experimentalUseDragging } from './hooks/use-dragging';
export { default as useInstanceId } from './hooks/use-instance-id';
export { default as useKeyboardShortcut } from './hooks/use-keyboard-shortcut';
export { default as useMediaQuery } from './hooks/use-media-query';
export { default as usePrevious } from './hooks/use-previous';
export { default as useReducedMotion } from './hooks/use-reduced-motion';
export { default as useViewportMatch } from './hooks/use-viewport-match';
export { default as useAsyncList } from './hooks/use-async-list';
Expand Down
1 change: 0 additions & 1 deletion packages/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"@wordpress/priority-queue": "file:../priority-queue",
"@wordpress/redux-routine": "file:../redux-routine",
"@wordpress/stan": "file:../stan",
"equivalent-key-map": "^0.2.2",
"is-promise": "^4.0.0",
"lodash": "^4.17.19",
Expand Down
108 changes: 0 additions & 108 deletions packages/data/src/atomic-store/index.js

This file was deleted.

Loading

0 comments on commit d9e4eb2

Please sign in to comment.