docs: update docusaurus to v3 (#5625)
* update dependencies * update onboarding mdx * fixes for mdx issues * fixes for mdx compatibility * resolve mdx errors * fixes in reference * fix check errors * revert change in vale action * fix node version in action * fix summary in markdown
This commit is contained in:
@@ -10,7 +10,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
### calculateVariantPrice
|
||||
|
||||
**calculateVariantPrice**(`data`, `context`): `Promise`<`Map`<`string`, [`PriceSelectionResult`](../types/PriceSelectionResult.mdx)\>\>
|
||||
`**calculateVariantPrice**(data, context): Promise<Map<string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)>>`
|
||||
|
||||
Calculate the original and discount price for a given variant in a set of
|
||||
circumstances described in the context.
|
||||
@@ -20,7 +20,7 @@ circumstances described in the context.
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "data",
|
||||
"type": "{ `quantity?`: `number` ; `variantId`: `string` }[]",
|
||||
"type": "`{ quantity?: number ; variantId: string }`[]",
|
||||
"description": "",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -29,7 +29,7 @@ circumstances described in the context.
|
||||
},
|
||||
{
|
||||
"name": "context",
|
||||
"type": "[`PriceSelectionContext`](../types/PriceSelectionContext.mdx)",
|
||||
"type": "[PriceSelectionContext](../types/PriceSelectionContext.mdx)",
|
||||
"description": "Details relevant to determine the correct pricing of the variant",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -40,12 +40,12 @@ circumstances described in the context.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`Map`<`string`, [`PriceSelectionResult`](../types/PriceSelectionResult.mdx)\>\>
|
||||
Promise<Map<string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)>>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`Map`<`string`, [`PriceSelectionResult`](../types/PriceSelectionResult.mdx)\\>\\>",
|
||||
"type": "Promise<Map<string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)>>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "pricing details in an object containing the calculated lowest price,\nthe default price an all valid prices for the given variant",
|
||||
@@ -58,7 +58,7 @@ ___
|
||||
|
||||
### onVariantsPricesUpdate
|
||||
|
||||
**onVariantsPricesUpdate**(`variantIds`): `Promise`<`void`\>
|
||||
`**onVariantsPricesUpdate**(variantIds): Promise<void>`
|
||||
|
||||
Notify price selection strategy that variants prices have been updated.
|
||||
|
||||
@@ -78,12 +78,12 @@ Notify price selection strategy that variants prices have been updated.
|
||||
|
||||
#### Returns
|
||||
|
||||
`Promise`<`void`\>
|
||||
Promise<void>
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "Promise",
|
||||
"type": "`Promise`<`void`\\>",
|
||||
"type": "Promise<void>",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
@@ -96,14 +96,14 @@ ___
|
||||
|
||||
### withTransaction
|
||||
|
||||
**withTransaction**(`transactionManager?`): [`IPriceSelectionStrategy`](IPriceSelectionStrategy.mdx)
|
||||
`**withTransaction**(transactionManager?): [IPriceSelectionStrategy](IPriceSelectionStrategy.mdx)`
|
||||
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "transactionManager",
|
||||
"type": "`EntityManager`",
|
||||
"type": "EntityManager",
|
||||
"description": "",
|
||||
"optional": true,
|
||||
"defaultValue": "",
|
||||
@@ -114,12 +114,12 @@ ___
|
||||
|
||||
#### Returns
|
||||
|
||||
[`IPriceSelectionStrategy`](IPriceSelectionStrategy.mdx)
|
||||
[IPriceSelectionStrategy](IPriceSelectionStrategy.mdx)
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "IPriceSelectionStrategy",
|
||||
"type": "[`IPriceSelectionStrategy`](IPriceSelectionStrategy.mdx)",
|
||||
"type": "[IPriceSelectionStrategy](IPriceSelectionStrategy.mdx)",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
|
||||
Reference in New Issue
Block a user