From 7ab5ed1c58bbf56cfc24c19f07377e6b1a078576 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 22 Nov 2024 13:02:35 +0200 Subject: [PATCH] docs: update injection zones for v2.0.5 --- .../app/admin-widget-injection-zones/page.mdx | 112 ++++++++++++++++++ www/apps/resources/generated/edit-dates.mjs | 2 +- 2 files changed, 113 insertions(+), 1 deletion(-) diff --git a/www/apps/resources/app/admin-widget-injection-zones/page.mdx b/www/apps/resources/app/admin-widget-injection-zones/page.mdx index 78768abb3197c..17882579cc943 100644 --- a/www/apps/resources/app/admin-widget-injection-zones/page.mdx +++ b/www/apps/resources/app/admin-widget-injection-zones/page.mdx @@ -944,6 +944,118 @@ This documentation page includes the list of injection zones you can add Admin W +## Product Variant Pages + + + +This injection zone is only available after [Medusa v2.0.5](https://github.com/medusajs/medusa/releases/tag/v2.0.5). + + + + + + + Injection Zone Name + Description + Additional Props + + + + + + + `product_variant.details.before` + + + + + Added at the top of the product variant details page. + + + + + Type `DetailWidgetProps` imported from `@medusajs/framework/types` + + ```ts blockStyle="inline" + { + data, // AdminProductVariant object + } + ``` + + + + + + + `product_variant.details.after` + + + + + Added at the bottom of the product variant details page + + + + + Type `DetailWidgetProps` imported from `@medusajs/framework/types` + + ```ts blockStyle="inline" + { + data, // AdminProductVariant object + } + ``` + + + + + + + `product_variant.details.side.before` + + + + + Added at the top of the second column in the product variant details page. + + + + + Type `DetailWidgetProps` imported from `@medusajs/framework/types` + + ```ts blockStyle="inline" + { + data, // AdminProductVariant object + } + ``` + + + + + + + `product_variant.details.side.after` + + + + + Added at the bottom of the second column in the product variant details page. + + + + + Type `DetailWidgetProps` imported from `@medusajs/framework/types` + + ```ts blockStyle="inline" + { + data, // AdminProductVariant object + } + ``` + + + + +
+ ## Product Collection Pages diff --git a/www/apps/resources/generated/edit-dates.mjs b/www/apps/resources/generated/edit-dates.mjs index b24368ef88e6c..e31220846388b 100644 --- a/www/apps/resources/generated/edit-dates.mjs +++ b/www/apps/resources/generated/edit-dates.mjs @@ -233,7 +233,7 @@ export const generatedEditDates = { "app/architectural-modules/file/page.mdx": "2024-07-01T10:21:19+03:00", "app/architectural-modules/event/page.mdx": "2024-05-28T13:25:03+03:00", "app/architectural-modules/cache/create/page.mdx": "2024-10-16T08:51:35.074Z", - "app/admin-widget-injection-zones/page.mdx": "2024-11-14T15:10:36.495Z", + "app/admin-widget-injection-zones/page.mdx": "2024-11-22T11:00:30.159Z", "app/architectural-modules/notification/page.mdx": "2024-10-15T12:51:28.735Z", "app/architectural-modules/event/create/page.mdx": "2024-11-12T11:54:51.583Z", "references/core_flows/Order/functions/core_flows.Order.orderEditUpdateItemQuantityValidationStep/page.mdx": "2024-08-20T00:10:58.913Z",