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:
Shahed Nasser
2023-11-13 20:11:50 +02:00
committed by GitHub
parent cedab58339
commit c6dff873de
2265 changed files with 46163 additions and 47195 deletions
@@ -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&#60;Map&#60;string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)&#62;&#62;`
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": "`&#123; quantity?: number ; variantId: string &#125;`[]",
"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&#60;Map&#60;string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)&#62;&#62;
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "`Promise`<`Map`<`string`, [`PriceSelectionResult`](../types/PriceSelectionResult.mdx)\\>\\>",
"type": "Promise&#60;Map&#60;string, [PriceSelectionResult](../types/PriceSelectionResult.mdx)&#62;&#62;",
"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&#60;void&#62;`
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&#60;void&#62;
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "`Promise`<`void`\\>",
"type": "Promise&#60;void&#62;",
"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": "",