Skip to content

Commit

Permalink
Publish build types for notices (#49650)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen authored Apr 20, 2023
1 parent dc83cf6 commit 092039b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/data/data-core-notices.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const ExampleComponent = () => {

_Parameters_

- _status_ `[string]`: Notice status.
- _status_ `string|undefined`: Notice status ("info" if undefined is passed).
- _content_ `string`: Notice message.
- _options_ `[Object]`: Notice options.
- _options.context_ `[string]`: Context under which to group notice.
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
{ "path": "../icons" },
{ "path": "../is-shallow-equal" },
{ "path": "../keycodes" },
{ "path": "../notices" },
{ "path": "../style-engine" },
{ "path": "../token-list" },
{ "path": "../url" },
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
{ "path": "../html-entities" },
{ "path": "../i18n" },
{ "path": "../icons" },
{ "path": "../notices" },
{ "path": "../keycodes" },
{ "path": "../primitives" },
{ "path": "../url" },
Expand Down
4 changes: 4 additions & 0 deletions packages/notices/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Change

- Publish Typescript build types to npm. ([#49650](https://github.com/WordPress/gutenberg/pull/49650))

## 3.31.0 (2023-04-12)

## 3.30.0 (2023-03-29)
Expand Down
1 change: 1 addition & 0 deletions packages/notices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"react-native": "src/index",
"types": "build-types",
"dependencies": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "file:../a11y",
Expand Down
2 changes: 1 addition & 1 deletion packages/notices/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let uniqueId = 0;
/**
* Returns an action object used in signalling that a notice is to be created.
*
* @param {string} [status='info'] Notice status.
* @param {string|undefined} status Notice status ("info" if undefined is passed).
* @param {string} content Notice message.
* @param {Object} [options] Notice options.
* @param {string} [options.context='global'] Context under which to
Expand Down
2 changes: 0 additions & 2 deletions packages/notices/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import * as selectors from './selectors';
* Store definition for the notices namespace.
*
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
*
* @type {Object}
*/
export const store = createReduxStore( 'core/notices', {
reducer,
Expand Down
11 changes: 11 additions & 0 deletions packages/notices/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"declarationDir": "build-types",
"types": [ "gutenberg-env" ],
"checkJs": false
},
"references": [ { "path": "../a11y" }, { "path": "../data" } ],
"include": [ "src/**/*" ]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
{ "path": "packages/is-shallow-equal" },
{ "path": "packages/keycodes" },
{ "path": "packages/lazy-import" },
{ "path": "packages/notices" },
{ "path": "packages/plugins" },
{ "path": "packages/prettier-config" },
{ "path": "packages/primitives" },
Expand Down

0 comments on commit 092039b

Please sign in to comment.