-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
335 changed files
with
5,932 additions
and
3,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# The Commands Data | ||
|
||
Namespace: `core/commands`. | ||
|
||
## Selectors | ||
|
||
<!-- START TOKEN(Autogenerated selectors|../../../packages/commands/src/store/selectors.js) --> | ||
|
||
### getCommandLoaders | ||
|
||
Returns the registered command loaders. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: State tree. | ||
- _contextual_ `boolean`: Whether to return only contextual command loaders. | ||
|
||
_Returns_ | ||
|
||
- `import('./actions').WPCommandLoaderConfig[]`: The list of registered command loaders. | ||
|
||
### getCommands | ||
|
||
Returns the registered static commands. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: State tree. | ||
- _contextual_ `boolean`: Whether to return only contextual commands. | ||
|
||
_Returns_ | ||
|
||
- `import('./actions').WPCommandConfig[]`: The list of registered commands. | ||
|
||
### getContext | ||
|
||
Returns whether the active context. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: State tree. | ||
|
||
_Returns_ | ||
|
||
- `string`: Context. | ||
|
||
### isOpen | ||
|
||
Returns whether the command palette is open. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: State tree. | ||
|
||
_Returns_ | ||
|
||
- `boolean`: Returns whether the command palette is open. | ||
|
||
<!-- END TOKEN(Autogenerated selectors|../../../packages/commands/src/store/selectors.js) --> | ||
|
||
## Actions | ||
|
||
<!-- START TOKEN(Autogenerated actions|../../../packages/commands/src/store/actions.js) --> | ||
|
||
### close | ||
|
||
Closes the command palette. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
### open | ||
|
||
Opens the command palette. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
### registerCommand | ||
|
||
Returns an action object used to register a new command. | ||
|
||
_Parameters_ | ||
|
||
- _config_ `WPCommandConfig`: Command config. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
### registerCommandLoader | ||
|
||
Register command loader. | ||
|
||
_Parameters_ | ||
|
||
- _config_ `WPCommandLoaderConfig`: Command loader config. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
### unregisterCommand | ||
|
||
Returns an action object used to unregister a command. | ||
|
||
_Parameters_ | ||
|
||
- _name_ `string`: Command name. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
### unregisterCommandLoader | ||
|
||
Unregister command loader hook. | ||
|
||
_Parameters_ | ||
|
||
- _name_ `string`: Command loader name. | ||
|
||
_Returns_ | ||
|
||
- `Object`: action. | ||
|
||
<!-- END TOKEN(Autogenerated actions|../../../packages/commands/src/store/actions.js) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.