Shopify / ui-extensions

MIT License
269 stars 35 forks source link

[Admin Extension Docs] Add `resourcePicker` to Action Extension Api docs #2477

Open melissaluu opened 1 week ago

melissaluu commented 1 week ago

Do Not Merge: Will need to rebase after https://github.com/Shopify/ui-extensions/pull/2379 ships so we can update this PR to include the GenericPicker being available in ActionExtensionsApi

Background

Related to https://github.com/Shopify/app-ui/issues/1756 Should ship after https://github.com/Shopify/web/pull/146520 and https://github.com/Shopify/ui-extensions/pull/2379 Follow up shopify-dev PR https://github.com/Shopify/shopify-dev/pull/50766

Add resourcePicker and genericPicker Api to Action Extension Api to support the new Resource Picker availability in action extensions.

Solution

Update the ActionExtensionApi interface to include the ResourcePickerApi and GenericPickerApi

NOTE: Will need to check on https://github.com/Shopify/shopify-dev/pull/49753 to see if there's verbage we'll need to update in https://github.com/Shopify/ui-extensions/blob/unstable/packages/ui-extensions/docs/surfaces/admin/staticPages/admin-extensions.doc.ts so it doesn't say blocks only.

🎩

Before:

image

After:

image

Checklist