From 68672e80f48320795b2f63fb1b4f36c20abd0d1d Mon Sep 17 00:00:00 2001 From: Timmy Crawford Date: Wed, 27 Feb 2019 16:43:39 -0800 Subject: [PATCH] Release/v0.8.0 (#1710) * Update version number and docs. * Updates after release. --- docs/components/analytics/report-chart.md | 15 +++++++ docs/components/analytics/report-summary.md | 15 +++++++ docs/components/packages/chart.md | 9 ++++- docs/components/packages/ellipsis-menu.md | 14 +++++++ package-lock.json | 43 ++++++--------------- package.json | 2 +- wc-admin.php | 2 +- 7 files changed, 66 insertions(+), 34 deletions(-) diff --git a/docs/components/analytics/report-chart.md b/docs/components/analytics/report-chart.md index 5184f564cba..e9f0450e910 100644 --- a/docs/components/analytics/report-chart.md +++ b/docs/components/analytics/report-chart.md @@ -13,6 +13,13 @@ Props Filters available for that report. +### `isRequesting` + +- Type: Boolean +- Default: `false` + +Whether there is an API call running. + ### `itemsLabel` - Type: String @@ -20,6 +27,14 @@ Filters available for that report. Label describing the legend items. +### `limitProperty` + +- Type: String +- Default: null + +Allows specifying a property different from the `endpoint` that will be used +to limit the items when there is an active search. + ### `mode` - Type: String diff --git a/docs/components/analytics/report-summary.md b/docs/components/analytics/report-summary.md index 98a1e587462..169691a6462 100644 --- a/docs/components/analytics/report-summary.md +++ b/docs/components/analytics/report-summary.md @@ -25,6 +25,14 @@ For example, if `taxes` is provided, data will be fetched from the report `taxes` endpoint (ie: `/wc/v4/reports/taxes/stats`). If the provided endpoint doesn't exist, an error will be shown to the user with `ReportError`. +### `limitProperty` + +- Type: String +- Default: null + +Allows specifying a property different from the `endpoint` that will be used +to limit the items when there is an active search. + ### `query` - **Required** @@ -33,6 +41,13 @@ doesn't exist, an error will be shown to the user with `ReportError`. The query string represented in object form. +### `isRequesting` + +- Type: Boolean +- Default: null + +Whether there is an API call running. + ### `selectedChart` - **Required** diff --git a/docs/components/packages/chart.md b/docs/components/packages/chart.md index 2274ab5755d..ee8584933af 100644 --- a/docs/components/packages/chart.md +++ b/docs/components/packages/chart.md @@ -115,6 +115,13 @@ Render a chart placeholder to signify an in-flight data request. Position the legend must be displayed in. If it's not defined, it's calculated depending on the viewport width and the mode. +### `screenReaderFormat` + +- Type: One of type: string, func +- Default: `'%B %-d, %Y'` + +A datetime formatting string or overriding function to format the screen reader labels. + ### `showHeaderControls` - Type: Boolean @@ -132,7 +139,7 @@ A title describing this chart. ### `tooltipLabelFormat` - Type: One of type: string, func -- Default: `'%B %d, %Y'` +- Default: `'%B %-d, %Y'` A datetime formatting string or overriding function to format the tooltip label. diff --git a/docs/components/packages/ellipsis-menu.md b/docs/components/packages/ellipsis-menu.md index 3e62cd67d9e..4885a060bdb 100644 --- a/docs/components/packages/ellipsis-menu.md +++ b/docs/components/packages/ellipsis-menu.md @@ -31,6 +31,13 @@ the click event. Props ----- +### `checked` + +- Type: Boolean +- Default: null + +Whether the menu item is checked or not. Only relevant for menu items with `isCheckbox`. + ### `children` - Type: ReactNode @@ -38,6 +45,13 @@ Props A renderable component (or string) which will be displayed as the content of this item. Generally a `ToggleControl`. +### `isCheckbox` + +- Type: Boolean +- Default: `false` + +Whether the menu item is a checkbox (will render a FormToggle and use the `menuitemcheckbox` role). + ### `isClickable` - Type: Boolean diff --git a/package-lock.json b/package-lock.json index 6b48885f0e1..839a54a89e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wc-admin", - "version": "0.7.0", + "version": "0.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -9112,8 +9112,7 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "optional": true + "bundled": true }, "aproba": { "version": "1.2.0", @@ -9131,13 +9130,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -9150,18 +9147,15 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", @@ -9264,8 +9258,7 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -9275,7 +9268,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -9288,20 +9280,17 @@ "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "optional": true + "bundled": true }, "minipass": { "version": "2.3.5", "bundled": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -9318,7 +9307,6 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -9391,8 +9379,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -9402,7 +9389,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -9478,8 +9464,7 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "optional": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", @@ -9509,7 +9494,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -9527,7 +9511,6 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -9566,13 +9549,11 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "yallist": { "version": "3.0.3", - "bundled": true, - "optional": true + "bundled": true } } }, diff --git a/package.json b/package.json index fed9aa90256..1517024ffa9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wc-admin", - "version": "0.7.0", + "version": "0.8.0", "main": "js/index.js", "author": "Automattic", "license": "GPL-2.0-or-later", diff --git a/wc-admin.php b/wc-admin.php index 888e24ad2a7..4e3e9fe1f07 100755 --- a/wc-admin.php +++ b/wc-admin.php @@ -7,7 +7,7 @@ * Author URI: https://woocommerce.com/ * Text Domain: wc-admin * Domain Path: /languages - * Version: 0.7.0 + * Version: 0.8.0 * * @package WC_Admin */