Skip to content

Commit

Permalink
Merge branch 'master' into minor
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 27, 2023
2 parents d92d9cc + 75f6dec commit bc85133
Show file tree
Hide file tree
Showing 648 changed files with 40,650 additions and 8,143 deletions.
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
## <small>2.0.4 (2023-07-13)</small>


#### Fixes

* **admin-ui** Allow target attribute on `<a>` tags in rich text editor ([8f72e1e](https://github.com/vendure-ecommerce/vendure/commit/8f72e1e)), closes [#2281](https://github.com/vendure-ecommerce/vendure/issues/2281)
* **admin-ui** Display custom fields in StockLocation detail view ([d36ac84](https://github.com/vendure-ecommerce/vendure/commit/d36ac84))
* **admin-ui** Fix display of Address custom fields in customer detail view ([189e714](https://github.com/vendure-ecommerce/vendure/commit/189e714)), closes [#2272](https://github.com/vendure-ecommerce/vendure/issues/2272)
* **admin-ui** Fix layout of select customer dropdown items ([3f8a1da](https://github.com/vendure-ecommerce/vendure/commit/3f8a1da))
* **admin-ui** Fix top left logo when using setBranding ([120a0bb](https://github.com/vendure-ecommerce/vendure/commit/120a0bb)), closes [#2225](https://github.com/vendure-ecommerce/vendure/issues/2225)
* **admin-ui** Prevent list filter hotkey F firing from input elements ([c426f8d](https://github.com/vendure-ecommerce/vendure/commit/c426f8d))
* **asset-server-plugin** Better handling of malformed images ([593e0e2](https://github.com/vendure-ecommerce/vendure/commit/593e0e2)), closes [#2275](https://github.com/vendure-ecommerce/vendure/issues/2275)
* **core** Add timeout logic to session cache handling ([a817a1a](https://github.com/vendure-ecommerce/vendure/commit/a817a1a))
* **core** Correctly update StockLocation custom fields ([1cb676a](https://github.com/vendure-ecommerce/vendure/commit/1cb676a))
* **core** Fix admin authentication when no native auth in shop API ([8fb9719](https://github.com/vendure-ecommerce/vendure/commit/8fb9719)), closes [#2282](https://github.com/vendure-ecommerce/vendure/issues/2282)
* **core** Fix draft orders not getting correctly placed ([4d01ab5](https://github.com/vendure-ecommerce/vendure/commit/4d01ab5)), closes [#2105](https://github.com/vendure-ecommerce/vendure/issues/2105)
* **core** Add currencyCode option to RequestContextService.create (#2277) ([2f336a7](https://github.com/vendure-ecommerce/vendure/commit/2f336a7)), closes [#2277](https://github.com/vendure-ecommerce/vendure/issues/2277)

## <small>2.0.3 (2023-07-04)</small>


#### Fixes

* **admin-ui-plugin** Enable metricsSummary query without serving UI app ([fba0739](https://github.com/vendure-ecommerce/vendure/commit/fba0739)), closes [#2261](https://github.com/vendure-ecommerce/vendure/issues/2261)
* **admin-ui** 100% brazilian portuguese translation coverage (#2262) ([0d76b10](https://github.com/vendure-ecommerce/vendure/commit/0d76b10)), closes [#2262](https://github.com/vendure-ecommerce/vendure/issues/2262)
* **admin-ui** 100% german translation coverage (#2248) ([60c9e86](https://github.com/vendure-ecommerce/vendure/commit/60c9e86)), closes [#2248](https://github.com/vendure-ecommerce/vendure/issues/2248)
* **admin-ui** Add missing permission to metrics widget ([3353c6e](https://github.com/vendure-ecommerce/vendure/commit/3353c6e))
* **admin-ui** Add missing search index rebuild trigger ([92f35d0](https://github.com/vendure-ecommerce/vendure/commit/92f35d0))
* **admin-ui** Allow vertical resize of textarea ([86853ec](https://github.com/vendure-ecommerce/vendure/commit/86853ec)), closes [#2255](https://github.com/vendure-ecommerce/vendure/issues/2255)
* **admin-ui** Correct location id for product-variant-detail action bar ([ebaff3a](https://github.com/vendure-ecommerce/vendure/commit/ebaff3a))
* **admin-ui** Correctly sort customer orders in detail view ([86a17af](https://github.com/vendure-ecommerce/vendure/commit/86a17af))
* **admin-ui** Fix description layout on shipping method detail page ([9b9119c](https://github.com/vendure-ecommerce/vendure/commit/9b9119c))
* **admin-ui** Fix low limit of facet value selector component ([1b13e7a](https://github.com/vendure-ecommerce/vendure/commit/1b13e7a)), closes [#2251](https://github.com/vendure-ecommerce/vendure/issues/2251)
* **admin-ui** Fix position of main nav status badge ([8669ef4](https://github.com/vendure-ecommerce/vendure/commit/8669ef4))
* **admin-ui** Fix product multi select form input ([b5947ec](https://github.com/vendure-ecommerce/vendure/commit/b5947ec)), closes [#2249](https://github.com/vendure-ecommerce/vendure/issues/2249)
* **admin-ui** Fix quantity label in order table (#2259) ([bb4c9e5](https://github.com/vendure-ecommerce/vendure/commit/bb4c9e5)), closes [#2259](https://github.com/vendure-ecommerce/vendure/issues/2259)
* **admin-ui** Fix query filter option in order list component (#2258) ([7b56942](https://github.com/vendure-ecommerce/vendure/commit/7b56942)), closes [#2258](https://github.com/vendure-ecommerce/vendure/issues/2258) [#2257](https://github.com/vendure-ecommerce/vendure/issues/2257)
* **admin-ui** Fix updating product variant asset ([b590bdd](https://github.com/vendure-ecommerce/vendure/commit/b590bdd))
* **admin-ui** Improve keyboard controls for data table filters ([00f0155](https://github.com/vendure-ecommerce/vendure/commit/00f0155))
* **admin-ui** Make dropdowns keyboard-accessible ([d9c6cdd](https://github.com/vendure-ecommerce/vendure/commit/d9c6cdd))
* **admin-ui** Set page to 1 when changing list filters ([f2f60c3](https://github.com/vendure-ecommerce/vendure/commit/f2f60c3))
* **admin-ui** Style improvements to chip & ng-select ([bcffd9c](https://github.com/vendure-ecommerce/vendure/commit/bcffd9c))
* **admin-ui** Styling improvements to custom field relation controls ([fb8aca6](https://github.com/vendure-ecommerce/vendure/commit/fb8aca6))
* **admin-ui** Update es translation (#2260) ([fbc4dff](https://github.com/vendure-ecommerce/vendure/commit/fbc4dff)), closes [#2260](https://github.com/vendure-ecommerce/vendure/issues/2260)
* **admin-ui** Use SKU to filter product variant list ([52a09a4](https://github.com/vendure-ecommerce/vendure/commit/52a09a4))
* **admin-ui** Prevent XSS attack vector in rich text editor ([GHSA-gm68-572p-q28r](https://github.com/vendure-ecommerce/vendure/security/advisories/GHSA-gm68-572p-q28r))
* **core** Correctly set currencyCode when assigning variants to channel ([5e13b0e](https://github.com/vendure-ecommerce/vendure/commit/5e13b0e)), closes [#2228](https://github.com/vendure-ecommerce/vendure/issues/2228)
* **core** Delete user sessions & token upon user-deletion (#2241) ([b989607](https://github.com/vendure-ecommerce/vendure/commit/b989607)), closes [#2241](https://github.com/vendure-ecommerce/vendure/issues/2241)
* **core** Disable graphql playground according to apiOptions setting ([b9a0200](https://github.com/vendure-ecommerce/vendure/commit/b9a0200)), closes [#2246](https://github.com/vendure-ecommerce/vendure/issues/2246)
* **core** Fix Asset.tags resolution in Shop API ([555666c](https://github.com/vendure-ecommerce/vendure/commit/555666c)), closes [#1754](https://github.com/vendure-ecommerce/vendure/issues/1754)
* **core** Fix issue updating customer email address when no native auth ([79aab66](https://github.com/vendure-ecommerce/vendure/commit/79aab66))
* **core** Fix null reference error when hydrating entity ([5a2b2b7](https://github.com/vendure-ecommerce/vendure/commit/5a2b2b7)), closes [#2264](https://github.com/vendure-ecommerce/vendure/issues/2264)
* **core** Update variants when changing channel defaultCurrencyCode ([2303328](https://github.com/vendure-ecommerce/vendure/commit/2303328)), closes [#2190](https://github.com/vendure-ecommerce/vendure/issues/2190)
* **core** Use more secure default for cookie sameSite option ([4a10d67](https://github.com/vendure-ecommerce/vendure/commit/4a10d67))
* **email-plugin** Add warning when running devMode with transport ([7498901](https://github.com/vendure-ecommerce/vendure/commit/7498901)), closes [#2253](https://github.com/vendure-ecommerce/vendure/issues/2253)
* **payments-plugin** Add compatibility metadata to payment plugins ([2dbfa2b](https://github.com/vendure-ecommerce/vendure/commit/2dbfa2b))

#### Perf

* **core** Improve performance of Product.facetValues resolver (#2239) ([a0e891a](https://github.com/vendure-ecommerce/vendure/commit/a0e891a)), closes [#2239](https://github.com/vendure-ecommerce/vendure/issues/2239)

#### Features

* **admin-ui** Add product variant bulk actions (assign/delete channel, delete) (#2238) ([b25ddcd](https://github.com/vendure-ecommerce/vendure/commit/b25ddcd)), closes [#2238](https://github.com/vendure-ecommerce/vendure/issues/2238)

## <small>2.0.2 (2023-06-19)</small>


Expand Down
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL = "https://www.vendure.io/"
baseURL = "https://docs.vendure.io/"
languageCode = "en-us"
title = "Vendure headless commerce"
googleAnalytics = "UA-133911942-1"
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/action-bar/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Action Bar"
weight: 10
date: 2023-06-08T15:03:34.592Z
date: 2023-07-14T16:57:51.071Z
showtoc: false
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/action-bar/action-bar-item.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ActionBarItem"
weight: 10
date: 2023-06-21T06:23:42.172Z
date: 2023-07-14T16:57:51.118Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ActionBarLocationId"
weight: 10
date: 2023-06-21T06:23:42.035Z
date: 2023-07-14T16:57:51.071Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AddActionBarItem"
weight: 10
date: 2023-06-21T06:23:42.202Z
date: 2023-07-14T16:57:51.125Z
showtoc: true
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/action-bar/on-click-context.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "OnClickContext"
weight: 10
date: 2023-06-21T06:23:42.164Z
date: 2023-07-14T16:57:51.116Z
showtoc: true
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/action-bar/page-location-id.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "PageLocationId"
weight: 10
date: 2023-06-21T06:23:42.034Z
date: 2023-07-14T16:57:51.071Z
showtoc: true
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/bulk-actions/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Bulk Actions"
weight: 10
date: 2023-06-08T15:03:34.648Z
date: 2023-07-14T16:57:51.088Z
showtoc: false
generated: true
---
Expand Down
84 changes: 42 additions & 42 deletions docs/content/admin-ui-api/bulk-actions/bulk-action.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "BulkAction"
weight: 10
date: 2023-06-21T06:23:42.057Z
date: 2023-07-14T16:57:51.079Z
showtoc: true
generated: true
---
Expand All @@ -15,8 +15,8 @@ generated: true

{{< generation-info sourceFile="packages/admin-ui/src/lib/core/src/providers/bulk-action-registry/bulk-action-types.ts" sourceLine="99" packageName="@vendure/admin-ui" since="1.8.0">}}

Configures a bulk action which can be performed on all selected items in a list view.

Configures a bulk action which can be performed on all selected items in a list view.

For a full example, see the <a href='/admin-ui-api/bulk-actions/register-bulk-action#registerbulkaction'>registerBulkAction</a> docs.

## Signature
Expand All @@ -25,8 +25,8 @@ For a full example, see the <a href='/admin-ui-api/bulk-actions/register-bulk-ac
interface BulkAction<ItemType = any, ComponentType = any> {
location: BulkActionLocationId;
label: string;
getTranslationVars?: (
context: BulkActionFunctionContext<ItemType, ComponentType>,
getTranslationVars?: (
context: BulkActionFunctionContext<ItemType, ComponentType>,
) => Record<string, string | number> | Promise<Record<string, string | number>>;
icon?: string;
iconClass?: string;
Expand All @@ -51,28 +51,28 @@ interface BulkAction<ItemType = any, ComponentType = any> {

### getTranslationVars

{{< member-info kind="property" type="( context: <a href='/admin-ui-api/bulk-actions/bulk-action#bulkactionfunctioncontext'>BulkActionFunctionContext</a>&#60;ItemType, ComponentType&#62;, ) =&#62; Record&#60;string, string | number&#62; | Promise&#60;Record&#60;string, string | number&#62;&#62;" >}}
{{< member-info kind="property" type="( context: <a href='/admin-ui-api/bulk-actions/bulk-action#bulkactionfunctioncontext'>BulkActionFunctionContext</a>&#60;ItemType, ComponentType&#62;, ) =&#62; Record&#60;string, string | number&#62; | Promise&#60;Record&#60;string, string | number&#62;&#62;" >}}

{{< member-description >}}An optional function that should resolve to a map of translation variables which can be
{{< member-description >}}An optional function that should resolve to a map of translation variables which can be
used when translating the `label` string.{{< /member-description >}}

### icon

{{< member-info kind="property" type="string" >}}

{{< member-description >}}A valid [Clarity Icons](https://core.clarity.design/foundation/icons/shapes/) icon shape, e.g.
{{< member-description >}}A valid [Clarity Icons](https://core.clarity.design/foundation/icons/shapes/) icon shape, e.g.
"cog", "user", "info-standard".{{< /member-description >}}

### iconClass

{{< member-info kind="property" type="string" >}}

{{< member-description >}}A class to be added to the icon element. Examples:

- is-success
- is-danger
- is-warning
- is-info
{{< member-description >}}A class to be added to the icon element. Examples:

- is-success
- is-danger
- is-warning
- is-info
- is-highlight{{< /member-description >}}

### onClick
Expand All @@ -85,10 +85,10 @@ used when translating the `label` string.{{< /member-description >}}

{{< member-info kind="property" type="(context: <a href='/admin-ui-api/bulk-actions/bulk-action#bulkactionfunctioncontext'>BulkActionFunctionContext</a>&#60;ItemType, ComponentType&#62;) =&#62; boolean | Promise&#60;boolean&#62;" >}}

{{< member-description >}}A function that determines whether this bulk action item should be displayed in the menu.
If not defined, the item will always be displayed.

This function will be invoked each time the selection is changed, so try to avoid expensive code
{{< member-description >}}A function that determines whether this bulk action item should be displayed in the menu.
If not defined, the item will always be displayed.

This function will be invoked each time the selection is changed, so try to avoid expensive code
running here.

*Example*
Expand Down Expand Up @@ -143,25 +143,25 @@ A valid location of a list view that supports the bulk actions API.
## Signature
```TypeScript
type BulkActionLocationId = | 'product-list'
| 'facet-list'
| 'collection-list'
| 'customer-list'
| 'customer-group-list'
| 'customer-group-members-list'
| 'customer-group-members-picker-list'
| 'promotion-list'
| 'seller-list'
| 'channel-list'
| 'administrator-list'
| 'role-list'
| 'shipping-method-list'
| 'stock-location-list'
| 'payment-method-list'
| 'tax-category-list'
| 'tax-rate-list'
| 'zone-list'
| 'zone-members-list'
type BulkActionLocationId = | 'product-list'
| 'facet-list'
| 'collection-list'
| 'customer-list'
| 'customer-group-list'
| 'customer-group-members-list'
| 'customer-group-members-picker-list'
| 'promotion-list'
| 'seller-list'
| 'channel-list'
| 'administrator-list'
| 'role-list'
| 'shipping-method-list'
| 'stock-location-list'
| 'payment-method-list'
| 'tax-category-list'
| 'tax-rate-list'
| 'zone-list'
| 'zone-members-list'
| string
```
</div>
Expand All @@ -172,7 +172,7 @@ type BulkActionLocationId = | 'product-list'
{{< generation-info sourceFile="packages/admin-ui/src/lib/core/src/providers/bulk-action-registry/bulk-action-types.ts" sourceLine="43" packageName="@vendure/admin-ui" since="1.8.0">}}
This is the argument which gets passed to the `getTranslationVars` and `isVisible` functions
This is the argument which gets passed to the `getTranslationVars` and `isVisible` functions
of the BulkAction definition.
## Signature
Expand All @@ -197,16 +197,16 @@ interface BulkActionFunctionContext<ItemType, ComponentType> {

{{< member-info kind="property" type="ComponentType" >}}

{{< member-description >}}The component instance that is hosting the list view. For instance,
`ProductListComponent`. This can be used to call methods on the instance,
e.g. calling `hostComponent.refresh()` to force a list refresh after
{{< member-description >}}The component instance that is hosting the list view. For instance,
`ProductListComponent`. This can be used to call methods on the instance,
e.g. calling `hostComponent.refresh()` to force a list refresh after
deleting the selected items.{{< /member-description >}}

### injector

{{< member-info kind="property" type="<a href='/typescript-api/common/injector#injector'>Injector</a>" >}}

{{< member-description >}}The Angular [Injector](https://angular.io/api/core/Injector) which can be used
{{< member-description >}}The Angular [Injector](https://angular.io/api/core/Injector) which can be used
to get service instances which might be needed in the click handler.{{< /member-description >}}

### route
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "RegisterBulkAction"
weight: 10
date: 2023-06-21T06:23:42.078Z
date: 2023-07-14T16:57:51.088Z
showtoc: true
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/components/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Components"
weight: 10
date: 2023-06-08T15:03:34.852Z
date: 2023-07-14T16:57:51.149Z
showtoc: false
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AssetPickerDialogComponent"
weight: 10
date: 2023-06-21T06:23:42.254Z
date: 2023-07-14T16:57:51.138Z
showtoc: true
generated: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/admin-ui-api/components/chip-component.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ChipComponent"
weight: 10
date: 2023-06-21T06:23:42.298Z
date: 2023-07-14T16:57:51.149Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "CurrencyInputComponent"
weight: 10
date: 2023-06-21T06:23:42.309Z
date: 2023-07-14T16:57:51.152Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "DataTableComponent"
weight: 10
date: 2023-06-21T06:23:42.341Z
date: 2023-07-14T16:57:51.164Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "DataTable2Component"
weight: 10
date: 2023-06-21T06:23:42.378Z
date: 2023-07-14T16:57:51.179Z
showtoc: true
generated: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "DatetimePickerComponent"
weight: 10
date: 2023-06-21T06:23:42.429Z
date: 2023-07-14T16:57:51.199Z
showtoc: true
generated: true
---
Expand Down
9 changes: 8 additions & 1 deletion docs/content/admin-ui-api/components/dropdown-component.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "DropdownComponent"
weight: 10
date: 2023-06-21T06:23:42.498Z
date: 2023-07-14T16:57:51.220Z
showtoc: true
generated: true
---
Expand Down Expand Up @@ -42,6 +42,7 @@ Used for building dropdown menus.

```TypeScript
class DropdownComponent {
isOpen = false;
public public trigger: ElementRef;
@Input() @Input() manualToggle = false;
onClick() => ;
Expand All @@ -52,6 +53,12 @@ class DropdownComponent {
```
## Members

### isOpen

{{< member-info kind="property" type="" >}}

{{< member-description >}}{{< /member-description >}}

### trigger

{{< member-info kind="property" type="ElementRef" >}}
Expand Down
Loading

0 comments on commit bc85133

Please sign in to comment.