From 2ad2c0f4205cbbec9ab563cbc745aba473da0a25 Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Thu, 13 Jun 2019 10:55:19 +1200 Subject: [PATCH] Release 0.13.0 --- .../docs/components/_sidebar.md | 2 + .../docs/components/analytics/report-chart.md | 5 ++ .../components/analytics/report-summary.md | 4 ++ .../docs/components/packages/card.md | 14 ++++++ .../docs/components/packages/chart.md | 7 +++ .../docs/components/packages/filters.md | 6 +-- .../docs/components/packages/spinner.md | 15 ++++++ .../docs/components/packages/stepper.md | 48 +++++++++++++++++++ plugins/woocommerce-admin/package-lock.json | 43 +++++------------ plugins/woocommerce-admin/package.json | 2 +- plugins/woocommerce-admin/readme.txt | 45 +++++++++++++++++ .../woocommerce-admin/woocommerce-admin.php | 2 +- 12 files changed, 157 insertions(+), 36 deletions(-) create mode 100644 plugins/woocommerce-admin/docs/components/packages/spinner.md create mode 100644 plugins/woocommerce-admin/docs/components/packages/stepper.md diff --git a/plugins/woocommerce-admin/docs/components/_sidebar.md b/plugins/woocommerce-admin/docs/components/_sidebar.md index 1095dfa5d08..2f388bf0bc9 100644 --- a/plugins/woocommerce-admin/docs/components/_sidebar.md +++ b/plugins/woocommerce-admin/docs/components/_sidebar.md @@ -31,7 +31,9 @@ * [SectionHeader](components/packages/section-header.md) * [Section](components/packages/section.md) * [SegmentedSelection](components/packages/segmented-selection.md) + * [Spinner](components/packages/spinner.md) * [SplitButton](components/packages/split-button.md) + * [Stepper](components/packages/stepper.md) * [Summary](components/packages/summary.md) * [Table](components/packages/table.md) * [Tag](components/packages/tag.md) diff --git a/plugins/woocommerce-admin/docs/components/analytics/report-chart.md b/plugins/woocommerce-admin/docs/components/analytics/report-chart.md index c5bfe80396b..5e9c77aff12 100644 --- a/plugins/woocommerce-admin/docs/components/analytics/report-chart.md +++ b/plugins/woocommerce-admin/docs/components/analytics/report-chart.md @@ -89,6 +89,11 @@ Secondary data to display in the chart. - **Required** - Type: Object + - key: String - Key of the selected chart. + - label: String - Chart label. + - order: One of: 'asc', 'desc' + - orderby: String - Order by query argument. + - type: One of: 'average', 'number', 'currency' - Default: null Properties of the selected chart. diff --git a/plugins/woocommerce-admin/docs/components/analytics/report-summary.md b/plugins/woocommerce-admin/docs/components/analytics/report-summary.md index 31fbf928a35..558a604bb66 100644 --- a/plugins/woocommerce-admin/docs/components/analytics/report-summary.md +++ b/plugins/woocommerce-admin/docs/components/analytics/report-summary.md @@ -53,6 +53,10 @@ Whether there is an API call running. - **Required** - Type: Object - key: String - Key of the selected chart. + - label: String - Chart label. + - order: One of: 'asc', 'desc' + - orderby: String - Order by query argument. + - type: One of: 'average', 'number', 'currency' - Default: null Properties of the selected chart. diff --git a/plugins/woocommerce-admin/docs/components/packages/card.md b/plugins/woocommerce-admin/docs/components/packages/card.md index c6ca8b79ad9..c0f6d486fef 100644 --- a/plugins/woocommerce-admin/docs/components/packages/card.md +++ b/plugins/woocommerce-admin/docs/components/packages/card.md @@ -20,6 +20,20 @@ One "primary" action for this card, appears in the card header. Additional CSS classes. +### `description` + +- Type: One of type: string, node +- Default: null + +The description displayed beneath the title. + +### `isInactive` + +- Type: Boolean +- Default: null + +Boolean representing whether the card is inactive or not. + ### `menu` - Type: (custom validator) diff --git a/plugins/woocommerce-admin/docs/components/packages/chart.md b/plugins/woocommerce-admin/docs/components/packages/chart.md index 3d7f80dbfa3..271589c1586 100644 --- a/plugins/woocommerce-admin/docs/components/packages/chart.md +++ b/plugins/woocommerce-admin/docs/components/packages/chart.md @@ -124,6 +124,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. +### `legendTotals` + +- Type: Object +- Default: null + +Values to overwrite the legend totals. If not defined, the sum of all line values will be used. + ### `screenReaderFormat` - Type: One of type: string, func diff --git a/plugins/woocommerce-admin/docs/components/packages/filters.md b/plugins/woocommerce-admin/docs/components/packages/filters.md index 9ff1423e445..c8cfcc25aa2 100644 --- a/plugins/woocommerce-admin/docs/components/packages/filters.md +++ b/plugins/woocommerce-admin/docs/components/packages/filters.md @@ -152,13 +152,13 @@ Select a range of dates or single dates. Props ----- -### `path` +### `onRangeSelect` - **Required** -- Type: String +- Type: Function - Default: null -The `path` parameter supplied by React-Router. +Callback called when selection is made. ### `query` diff --git a/plugins/woocommerce-admin/docs/components/packages/spinner.md b/plugins/woocommerce-admin/docs/components/packages/spinner.md new file mode 100644 index 00000000000..37631cf42e2 --- /dev/null +++ b/plugins/woocommerce-admin/docs/components/packages/spinner.md @@ -0,0 +1,15 @@ +`Spinner` (component) +===================== + +Spinner - An indeterminate circular progress indicator. + +Props +----- + +### `className` + +- Type: String +- Default: null + +Additional class name to style the component. + diff --git a/plugins/woocommerce-admin/docs/components/packages/stepper.md b/plugins/woocommerce-admin/docs/components/packages/stepper.md new file mode 100644 index 00000000000..8ebbbf7b5d4 --- /dev/null +++ b/plugins/woocommerce-admin/docs/components/packages/stepper.md @@ -0,0 +1,48 @@ +`Stepper` (component) +===================== + +A stepper component to indicate progress in a set number of steps. + +Props +----- + +### `className` + +- Type: String +- Default: null + +Additional class name to style the component. + +### `currentStep` + +- **Required** +- Type: String +- Default: null + +The current step's key. + +### `steps` + +- **Required** +- Type: Array + - key: String - Key used to identify step. + - label: String - Label displayed in stepper. + - isComplete: Boolean - Optionally mark a step complete regardless of step index. +- Default: null + +An array of steps used. + +### `direction` + +- Type: One of: 'horizontal', 'vertical' +- Default: `'horizontal'` + +Direction of the stepper. + +### `isPending` + +- Type: Boolean +- Default: `false` + +Optionally mark the current step as pending to show a spinner. + diff --git a/plugins/woocommerce-admin/package-lock.json b/plugins/woocommerce-admin/package-lock.json index 651a2aa03f1..c497ad77fc9 100644 --- a/plugins/woocommerce-admin/package-lock.json +++ b/plugins/woocommerce-admin/package-lock.json @@ -1,6 +1,6 @@ { "name": "@woocommerce/admin-library", - "version": "0.12.0", + "version": "0.13.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -8929,8 +8929,7 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "optional": true + "bundled": true }, "aproba": { "version": "1.2.0", @@ -8948,13 +8947,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" @@ -8967,18 +8964,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", @@ -9081,8 +9075,7 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -9092,7 +9085,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -9105,20 +9097,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" @@ -9135,7 +9124,6 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -9208,8 +9196,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -9219,7 +9206,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -9295,8 +9281,7 @@ }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "optional": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", @@ -9326,7 +9311,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", @@ -9344,7 +9328,6 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -9383,13 +9366,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/plugins/woocommerce-admin/package.json b/plugins/woocommerce-admin/package.json index 997530d3743..20e421daf97 100644 --- a/plugins/woocommerce-admin/package.json +++ b/plugins/woocommerce-admin/package.json @@ -1,6 +1,6 @@ { "name": "@woocommerce/admin-library", - "version": "0.12.0", + "version": "0.13.0", "homepage": "https://woocommerce.github.io/woocommerce-admin/", "repository": { "type": "git", diff --git a/plugins/woocommerce-admin/readme.txt b/plugins/woocommerce-admin/readme.txt index 50c8269c0f0..913d364bcc3 100644 --- a/plugins/woocommerce-admin/readme.txt +++ b/plugins/woocommerce-admin/readme.txt @@ -71,6 +71,51 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt == Changelog == += 0.13.0 2019-06-12 + +- Fix: Notes: update sales record link #2397 +- Enhancement: Settings: Add default date settings #2292 (Components, Dashboard, Packages) +- Dev: Add tracks to import jobs #2193 +- Dev: Notes: Add filters to disable milestone and sales record notes. #2227 +- Enhancement: Trigger an action server side when admin note actions are clicked #2325 +- Dev: Fix Activity Panel layout on mobile #2405 (Activity Panel) +- Dev: Add uninstall file to release ZIP #2402 (Build) +- Bug: Fix wrong average numbers in chart legends #2352 (Analytics, Components, Packages) +- Dev: Add date_created_gmt property to orders endpoint #2086 (Activity Panel) +- Enhancement: Add progress bars to Historical Data Import screen #2312 +- Bug: Fix some data not to being imported when 'skip_existing' option is enabled #2385 +- Fix: Double space at 191 row #2369 ๐Ÿ‘ @shoheitanaka +- Enhancement: Only show unactioned notes in the Inbox panel. #2327 (Inbox) +- Bug: Don't create Notices tab in Activity Panel if notices HTML element was removed by a plugin #2378 +- Tweak: Allow paragraph tags in admin notes. #2344 (Inbox) +- Tweak: Allow note action URLs to be empty. #2324 (Inbox) +- Bug: Prevent inactive tabs from making requests #2377 +- Task: Remove second beta warning from readme #2362 +- Fix: Misspelling at update config.jp #2368 ๐Ÿ‘ @shoheitanaka +- Dev: Transpile newspack-components package #2348 (Build) +- Dev: Low stock handling inconsistencies with WooCommerce 3.6+ #2191 +- Dev: Remove d3-array dependency #2286 (Build) +- Dev: Dashboard Extentions: Add a section #2280 (Build, Components, Extensibility, Packages) +- Fix: Move StoreAlerts below screen meta links on embed pages. #2291 +- Fix: Extensions: fix registering a page #2301 (Extensibility) +- Dev: Fix `box-shadow-8dp` error. #2290 (Components, Packages) +- Fix: Dashboard Extension Example: Make namespace unique #2302 (Extensibility) +- Dev: Persisted Queries: Avoid adding to non time related screens #2225 (Build) +- Dev: Remove customizable dashboard heading #2321 (Dashboard) +- Bug: Add missing space in Orders Activity Panel card #2306 (Activity Panel) +- Task: Remove beta warning from readme. #2340 +- Dev: Dashboard: Extend charts data #2258 (Dashboard, Extensibility) +- Bug: Handle `WC_Admin_Notices`. #2245 (Activity Panel, On Merge to WC Core) +- Bug: Exclude auto-draft and trashed orders from imports. #2265 +- Fix: wc-api: Remove reference to import update functions #2277 (Dashboard) +- Enhancement: Add support for โ€œprimaryโ€ admin notice actions. #2269 +- Enhancement: Allow links in admin notice content. #2272 +- Fix: Remove errant import update operation from `wp-api` spec. #2271 +- Dev: Hook up import/totals endpoint to Historical Data Import screen #2208 +- Fix: Refactor main file into singleton class structure #2226 + +== Changelog == + = 0.12.0 2019-05-14 - Fix: dashboard issues #2194 diff --git a/plugins/woocommerce-admin/woocommerce-admin.php b/plugins/woocommerce-admin/woocommerce-admin.php index 28c64136973..f9e99f0713d 100755 --- a/plugins/woocommerce-admin/woocommerce-admin.php +++ b/plugins/woocommerce-admin/woocommerce-admin.php @@ -7,7 +7,7 @@ * Author URI: https://woocommerce.com/ * Text Domain: woocommerce-admin * Domain Path: /languages - * Version: 0.12.0 + * Version: 0.13.0 * * WC requires at least: 3.6.0 * WC tested up to: 3.6.2