Skip to content

Commit

Permalink
add new extension targets for action extensions everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWhite1 committed Mar 19, 2024
1 parent e952336 commit 65ec5fe
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions packages/ui-extensions/src/surfaces/admin/extension-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,87 @@ export interface ExtensionTargets {
AllComponents
>;

/**
* Renders an Admin Action in the discount index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.discount-index.action.render': RenderExtension<
ActionExtensionApi<'admin.discount-index.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the collection details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.collection-details.action.render': RenderExtension<
ActionExtensionApi<'admin.collection-details.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the collection index page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.collection-index.action.render': RenderExtension<
ActionExtensionApi<'admin.collection-index.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the abandonded checkout page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.abandoned-checkout-details.action.render': RenderExtension<
ActionExtensionApi<'admin.abandoned-checkout-details.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the product variant details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.variant-details.action.render': RenderExtension<
ActionExtensionApi<'admin.variant-details.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the draft order details page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-details.action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-details.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the draft orders page. Open this extension from the "More Actions" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-index.action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-index.action.render'>,
AllComponents
>;

/**
* Renders an Admin Action in the order fulfilled card. Open this extension from the "3-dot" menu inside the order fulfilled card.
* Note: This extension will only be visible in orders which were fulfilled by the same app as the extension.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.order-fulfilled-card.action.render': RenderExtension<
ActionExtensionApi<'admin.order-fulfilled-card.action.render'>,
AllComponents
>;

// Bulk Actions

/**
Expand Down Expand Up @@ -203,6 +284,16 @@ export interface ExtensionTargets {
AllComponents
>;

/**
* Renders an Admin Action in the draft order page when multiple resources are selected. Open this extension from the "3-dot" menu.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.draft-order-index.selection-action.render': RenderExtension<
ActionExtensionApi<'admin.draft-order-index.selection-action.render'>,
AllComponents
>;

/**
* Renders Product Configuration on product details and product variant details
*
Expand Down

0 comments on commit 65ec5fe

Please sign in to comment.