-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/trunk' into add/defer-script-loa…
…ding-strategy * origin/trunk: (59 commits) Promisify action creator return type for WP data dispatch (#52530) [RNMobile] Add WP hook for registering non-core blocks (#52791) removes check for active preview device type to enable the fixed toolbar preference (#52770) Enforce checks against redeclaration for functions and classes (#52696) update appearance tools, (#52785) Behaviors: Extend Global Styles API to read/write behaviors config. (#52370) HeaderToolbar - Update inserterMethod meta data (#52735) add options for debugging php unit tests (#52778) Docs: Interactivity API > Getting Started Guide - minor adjustments (#52786) Footnotes: Use static closures when not using '' (#52781) Improve slug generation & matching in request utils (#52414) Open "docs" folder for the Interactivity API package and Getting Started Guide (#52462) Global Styles: Don't use named arguments for 'sprintf' (#52782) E2E utils - Update locator to hide the keyboard on iOS to pick the first element, on iPad two buttons are available and the second one makes the floating keyboard to show up (#52771) Patterns: Reinstate template parts mode spec (#52780) chore(release): publish Update changelog files Patterns: Fix empty general template parts category (#52747) Add id to pattern inserted notice to stop multiple notices stacking (#52746) Site Editor: Fix site link accessibility issues (#52744) ...
- Loading branch information
Showing
397 changed files
with
8,450 additions
and
2,931 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,93 @@ | ||
# The NUX (New User Experience) Data | ||
|
||
Namespace: `core/nux`. | ||
|
||
## Selectors | ||
|
||
<!-- START TOKEN(Autogenerated selectors|../../../packages/nux/src/store/selectors.js) --> | ||
|
||
### areTipsEnabled | ||
|
||
Returns whether or not tips are globally enabled. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: Global application state. | ||
|
||
_Returns_ | ||
|
||
- `boolean`: Whether tips are globally enabled. | ||
|
||
### getAssociatedGuide | ||
|
||
Returns an object describing the guide, if any, that the given tip is a part of. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: Global application state. | ||
- _tipId_ `string`: The tip to query. | ||
|
||
_Returns_ | ||
|
||
- `?NUXGuideInfo`: Information about the associated guide. | ||
|
||
### isTipVisible | ||
|
||
Determines whether or not the given tip is showing. Tips are hidden if they are disabled, have been dismissed, or are not the current tip in any guide that they have been added to. | ||
|
||
_Parameters_ | ||
|
||
- _state_ `Object`: Global application state. | ||
- _tipId_ `string`: The tip to query. | ||
|
||
_Returns_ | ||
|
||
- `boolean`: Whether or not the given tip is showing. | ||
|
||
<!-- END TOKEN(Autogenerated selectors|../../../packages/nux/src/store/selectors.js) --> | ||
|
||
## Actions | ||
|
||
<!-- START TOKEN(Autogenerated actions|../../../packages/nux/src/store/actions.js) --> | ||
|
||
### disableTips | ||
|
||
Returns an action object that, when dispatched, prevents all tips from showing again. | ||
|
||
_Returns_ | ||
|
||
- `Object`: Action object. | ||
|
||
### dismissTip | ||
|
||
Returns an action object that, when dispatched, dismisses the given tip. A dismissed tip will not show again. | ||
|
||
_Parameters_ | ||
|
||
- _id_ `string`: The tip to dismiss. | ||
|
||
_Returns_ | ||
|
||
- `Object`: Action object. | ||
|
||
### enableTips | ||
|
||
Returns an action object that, when dispatched, makes all tips show again. | ||
|
||
_Returns_ | ||
|
||
- `Object`: Action object. | ||
|
||
### triggerGuide | ||
|
||
Returns an action object that, when dispatched, presents a guide that takes the user through a series of tips step by step. | ||
|
||
_Parameters_ | ||
|
||
- _tipIds_ `string[]`: Which tips to show in the guide. | ||
|
||
_Returns_ | ||
|
||
- `Object`: Action object. | ||
|
||
<!-- END TOKEN(Autogenerated actions|../../../packages/nux/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
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
Oops, something went wrong.