Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: Customer Account Auto-Open Modal Prototype #2563

Draft
wants to merge 6 commits into
base: unstable
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/brave-rivers-crash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/breezy-mangos-fry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/eight-peas-buy.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fast-crabs-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fast-geckos-double.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gold-pillows-protect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-dancers-pump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-beds-shout.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-houses-build.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mean-trains-fly.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/new-badgers-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-baboons-work.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-frogs-reflect.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/silly-balloons-turn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-bees-scream.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tasty-coats-shave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tasty-trainers-lick.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/violet-lamps-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-tigers-sin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/young-buckets-punch.md

This file was deleted.

25 changes: 25 additions & 0 deletions packages/ui-extensions-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @shopify/ui-extensions-react

## 2024.10.0

### Minor Changes

- [#2371](https://github.com/Shopify/ui-extensions/pull/2371) [`28edde440ceee584c71c5ac983252ca71a7f853a`](https://github.com/Shopify/ui-extensions/commit/28edde440ceee584c71c5ac983252ca71a7f853a) Thanks [@shopify-github-actions-access](https://github.com/apps/shopify-github-actions-access)! - Adds `type` property to `selectedPaymentOption`

- [#2361](https://github.com/Shopify/ui-extensions/pull/2361) [`89438897001dce9058030e6ee1655747a66ec71a`](https://github.com/Shopify/ui-extensions/commit/89438897001dce9058030e6ee1655747a66ec71a) Thanks [@oliverigor](https://github.com/oliverigor)! - Add primary and secondary actions to Modal component

- [#2297](https://github.com/Shopify/ui-extensions/pull/2297) [`7ab538090e8bcef052bfc782b31639efe89ff262`](https://github.com/Shopify/ui-extensions/commit/7ab538090e8bcef052bfc782b31639efe89ff262) Thanks [@shopify-github-actions-access](https://github.com/apps/shopify-github-actions-access)! - update generate-doc version, add attributes to Icon

- [#2220](https://github.com/Shopify/ui-extensions/pull/2220) [`9e619fca6ea4f816148c90158b46bc1db5bfbad7`](https://github.com/Shopify/ui-extensions/commit/9e619fca6ea4f816148c90158b46bc1db5bfbad7) Thanks [@LucasLacerdaUX](https://github.com/LucasLacerdaUX)! - Add QRCode component

### Patch Changes

- [#2284](https://github.com/Shopify/ui-extensions/pull/2284) [`f84592931962537d345dfd68bf2a2f2396373740`](https://github.com/Shopify/ui-extensions/commit/f84592931962537d345dfd68bf2a2f2396373740) Thanks [@brianshen1990](https://github.com/brianshen1990)! - expose Switch component to customer account unstable surface

- [#2356](https://github.com/Shopify/ui-extensions/pull/2356) [`a2d458be51a708aeac6a1879554051f98371f908`](https://github.com/Shopify/ui-extensions/commit/a2d458be51a708aeac6a1879554051f98371f908) Thanks [@brianshen1990](https://github.com/brianshen1990)! - add full page navigation api to order full page extension target

- [#2347](https://github.com/Shopify/ui-extensions/pull/2347) [`dd8a861caba591c1087e8349e8a9bbfdc2681cb8`](https://github.com/Shopify/ui-extensions/commit/dd8a861caba591c1087e8349e8a9bbfdc2681cb8) Thanks [@brianshen1990](https://github.com/brianshen1990)! - Add customer-account.order.page.render target

- [#2369](https://github.com/Shopify/ui-extensions/pull/2369) [`7ef1d9cdd37c42277e240eb660e08de54967461c`](https://github.com/Shopify/ui-extensions/commit/7ef1d9cdd37c42277e240eb660e08de54967461c) Thanks [@brianshen1990](https://github.com/brianshen1990)! - update error message for useNavigationCurrentEntry api

- Updated dependencies [[`21234eea51b50dfc53d3fc4962512728b4a19446`](https://github.com/Shopify/ui-extensions/commit/21234eea51b50dfc53d3fc4962512728b4a19446), [`28edde440ceee584c71c5ac983252ca71a7f853a`](https://github.com/Shopify/ui-extensions/commit/28edde440ceee584c71c5ac983252ca71a7f853a), [`89438897001dce9058030e6ee1655747a66ec71a`](https://github.com/Shopify/ui-extensions/commit/89438897001dce9058030e6ee1655747a66ec71a), [`f84592931962537d345dfd68bf2a2f2396373740`](https://github.com/Shopify/ui-extensions/commit/f84592931962537d345dfd68bf2a2f2396373740), [`9347443b76210c2f9f3ce45bb488c38ec08efb6f`](https://github.com/Shopify/ui-extensions/commit/9347443b76210c2f9f3ce45bb488c38ec08efb6f), [`fd4ecf2aef0414e790a4a78ae6a9fa013acbafda`](https://github.com/Shopify/ui-extensions/commit/fd4ecf2aef0414e790a4a78ae6a9fa013acbafda), [`118654e61e393c2885198ab5dafddb4cf4d62669`](https://github.com/Shopify/ui-extensions/commit/118654e61e393c2885198ab5dafddb4cf4d62669), [`4dec3851bf53f6cf289ca8c265cd13f8c123ab06`](https://github.com/Shopify/ui-extensions/commit/4dec3851bf53f6cf289ca8c265cd13f8c123ab06), [`9fe9d56d190fee5ee444ed980a5ef60106dfda12`](https://github.com/Shopify/ui-extensions/commit/9fe9d56d190fee5ee444ed980a5ef60106dfda12), [`7ab538090e8bcef052bfc782b31639efe89ff262`](https://github.com/Shopify/ui-extensions/commit/7ab538090e8bcef052bfc782b31639efe89ff262), [`a2d458be51a708aeac6a1879554051f98371f908`](https://github.com/Shopify/ui-extensions/commit/a2d458be51a708aeac6a1879554051f98371f908), [`8bca1a1710431083b7e98966ec76f3fe17720d5c`](https://github.com/Shopify/ui-extensions/commit/8bca1a1710431083b7e98966ec76f3fe17720d5c), [`a8de80b0e252ebd0c529bfe88d02d2e35e2a0461`](https://github.com/Shopify/ui-extensions/commit/a8de80b0e252ebd0c529bfe88d02d2e35e2a0461), [`dd8a861caba591c1087e8349e8a9bbfdc2681cb8`](https://github.com/Shopify/ui-extensions/commit/dd8a861caba591c1087e8349e8a9bbfdc2681cb8), [`f81712b643430dd1cbdce54b3edf0c80bc0dafe5`](https://github.com/Shopify/ui-extensions/commit/f81712b643430dd1cbdce54b3edf0c80bc0dafe5), [`7ef1d9cdd37c42277e240eb660e08de54967461c`](https://github.com/Shopify/ui-extensions/commit/7ef1d9cdd37c42277e240eb660e08de54967461c), [`37620b9d47f38586c843a9c11a6de2e0461bc0dd`](https://github.com/Shopify/ui-extensions/commit/37620b9d47f38586c843a9c11a6de2e0461bc0dd), [`9e619fca6ea4f816148c90158b46bc1db5bfbad7`](https://github.com/Shopify/ui-extensions/commit/9e619fca6ea4f816148c90158b46bc1db5bfbad7), [`9f7ee640e434bb175b90248c29bb194f321e871a`](https://github.com/Shopify/ui-extensions/commit/9f7ee640e434bb175b90248c29bb194f321e871a), [`d6ac8d4e4180eef5242719bfaffe998441be1aa9`](https://github.com/Shopify/ui-extensions/commit/d6ac8d4e4180eef5242719bfaffe998441be1aa9)]:
- @shopify/ui-extensions@2024.10.0

## 2024.4.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/ui-extensions-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/ui-extensions-react",
"version": "0.0.0-unstable",
"version": "2024.10.0",
"description": "React bindings for @shopify/ui-extensions",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@types/react": ">=18.2.67"
},
"peerDependencies": {
"@shopify/ui-extensions": "0.0.0-unstable",
"@shopify/ui-extensions": "2024.10.0",
"react": ">=18.0.0"
},
"peerDependenciesMeta": {
Expand All @@ -80,7 +80,7 @@
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@quilted/react-testing": "^0.5.31",
"@shopify/ui-extensions": "0.0.0-unstable",
"@shopify/ui-extensions": "2024.10.0",
"react": "^18.0.0",
"react-reconciler": "0.29.0",
"react-test-renderer": "^18.2.0"
Expand Down
48 changes: 48 additions & 0 deletions packages/ui-extensions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# @shopify/ui-extensions

## 2024.10.0

### Major Changes

- [#2374](https://github.com/Shopify/ui-extensions/pull/2374) [`4dec3851bf53f6cf289ca8c265cd13f8c123ab06`](https://github.com/Shopify/ui-extensions/commit/4dec3851bf53f6cf289ca8c265cd13f8c123ab06) Thanks [@robin-drexler](https://github.com/robin-drexler)! - customer account ui extensions order status `shop.storefrontUrl` does not contain a trailing slash anymore

### Minor Changes

- [#2307](https://github.com/Shopify/ui-extensions/pull/2307) [`21234eea51b50dfc53d3fc4962512728b4a19446`](https://github.com/Shopify/ui-extensions/commit/21234eea51b50dfc53d3fc4962512728b4a19446) Thanks [@oliverigor](https://github.com/oliverigor)! - Add size property to Modal

- [#2371](https://github.com/Shopify/ui-extensions/pull/2371) [`28edde440ceee584c71c5ac983252ca71a7f853a`](https://github.com/Shopify/ui-extensions/commit/28edde440ceee584c71c5ac983252ca71a7f853a) Thanks [@shopify-github-actions-access](https://github.com/apps/shopify-github-actions-access)! - Adds `type` property to `selectedPaymentOption`

- [#2361](https://github.com/Shopify/ui-extensions/pull/2361) [`89438897001dce9058030e6ee1655747a66ec71a`](https://github.com/Shopify/ui-extensions/commit/89438897001dce9058030e6ee1655747a66ec71a) Thanks [@oliverigor](https://github.com/oliverigor)! - Add primary and secondary actions to Modal component

- [#2294](https://github.com/Shopify/ui-extensions/pull/2294) [`fd4ecf2aef0414e790a4a78ae6a9fa013acbafda`](https://github.com/Shopify/ui-extensions/commit/fd4ecf2aef0414e790a4a78ae6a9fa013acbafda) Thanks [@Fionoble](https://github.com/Fionoble)! - Add currencyCode to admin MoneyField component

- [#2285](https://github.com/Shopify/ui-extensions/pull/2285) [`118654e61e393c2885198ab5dafddb4cf4d62669`](https://github.com/Shopify/ui-extensions/commit/118654e61e393c2885198ab5dafddb4cf4d62669) Thanks [@Fionoble](https://github.com/Fionoble)! - Add suffix to NumberField and TextField

- [#2362](https://github.com/Shopify/ui-extensions/pull/2362) [`9fe9d56d190fee5ee444ed980a5ef60106dfda12`](https://github.com/Shopify/ui-extensions/commit/9fe9d56d190fee5ee444ed980a5ef60106dfda12) Thanks [@billfienberg](https://github.com/billfienberg)! - add accessibilityLabel to admin's Button

- [#2297](https://github.com/Shopify/ui-extensions/pull/2297) [`7ab538090e8bcef052bfc782b31639efe89ff262`](https://github.com/Shopify/ui-extensions/commit/7ab538090e8bcef052bfc782b31639efe89ff262) Thanks [@shopify-github-actions-access](https://github.com/apps/shopify-github-actions-access)! - update generate-doc version, add attributes to Icon

- [#2247](https://github.com/Shopify/ui-extensions/pull/2247) [`8bca1a1710431083b7e98966ec76f3fe17720d5c`](https://github.com/Shopify/ui-extensions/commit/8bca1a1710431083b7e98966ec76f3fe17720d5c) Thanks [@belalsj](https://github.com/belalsj)! - New Action Extension targets: Catalog, Company, Gift Card

- [#2197](https://github.com/Shopify/ui-extensions/pull/2197) [`a8de80b0e252ebd0c529bfe88d02d2e35e2a0461`](https://github.com/Shopify/ui-extensions/commit/a8de80b0e252ebd0c529bfe88d02d2e35e2a0461) Thanks [@klenotiw](https://github.com/klenotiw)! - Add metafields to PickupPointOption

- [#2211](https://github.com/Shopify/ui-extensions/pull/2211) [`f81712b643430dd1cbdce54b3edf0c80bc0dafe5`](https://github.com/Shopify/ui-extensions/commit/f81712b643430dd1cbdce54b3edf0c80bc0dafe5) Thanks [@shopify-github-actions-access](https://github.com/apps/shopify-github-actions-access)! - Address autocomplete extensions now support 'company', 'latitude', and 'longitude' values

- [#2358](https://github.com/Shopify/ui-extensions/pull/2358) [`37620b9d47f38586c843a9c11a6de2e0461bc0dd`](https://github.com/Shopify/ui-extensions/commit/37620b9d47f38586c843a9c11a6de2e0461bc0dd) Thanks [@Fionoble](https://github.com/Fionoble)! - Add display:none to Box

- [#2220](https://github.com/Shopify/ui-extensions/pull/2220) [`9e619fca6ea4f816148c90158b46bc1db5bfbad7`](https://github.com/Shopify/ui-extensions/commit/9e619fca6ea4f816148c90158b46bc1db5bfbad7) Thanks [@LucasLacerdaUX](https://github.com/LucasLacerdaUX)! - Add QRCode component

### Patch Changes

- [#2284](https://github.com/Shopify/ui-extensions/pull/2284) [`f84592931962537d345dfd68bf2a2f2396373740`](https://github.com/Shopify/ui-extensions/commit/f84592931962537d345dfd68bf2a2f2396373740) Thanks [@brianshen1990](https://github.com/brianshen1990)! - expose Switch component to customer account unstable surface

- [#2385](https://github.com/Shopify/ui-extensions/pull/2385) [`9347443b76210c2f9f3ce45bb488c38ec08efb6f`](https://github.com/Shopify/ui-extensions/commit/9347443b76210c2f9f3ce45bb488c38ec08efb6f) Thanks [@jplhomer](https://github.com/jplhomer)! - Add missing documentation for `auth.idToken()` API

- [#2356](https://github.com/Shopify/ui-extensions/pull/2356) [`a2d458be51a708aeac6a1879554051f98371f908`](https://github.com/Shopify/ui-extensions/commit/a2d458be51a708aeac6a1879554051f98371f908) Thanks [@brianshen1990](https://github.com/brianshen1990)! - add full page navigation api to order full page extension target

- [#2347](https://github.com/Shopify/ui-extensions/pull/2347) [`dd8a861caba591c1087e8349e8a9bbfdc2681cb8`](https://github.com/Shopify/ui-extensions/commit/dd8a861caba591c1087e8349e8a9bbfdc2681cb8) Thanks [@brianshen1990](https://github.com/brianshen1990)! - Add customer-account.order.page.render target

- [#2369](https://github.com/Shopify/ui-extensions/pull/2369) [`7ef1d9cdd37c42277e240eb660e08de54967461c`](https://github.com/Shopify/ui-extensions/commit/7ef1d9cdd37c42277e240eb660e08de54967461c) Thanks [@brianshen1990](https://github.com/brianshen1990)! - update error message for useNavigationCurrentEntry api

- [#2132](https://github.com/Shopify/ui-extensions/pull/2132) [`9f7ee640e434bb175b90248c29bb194f321e871a`](https://github.com/Shopify/ui-extensions/commit/9f7ee640e434bb175b90248c29bb194f321e871a) Thanks [@ncardeli](https://github.com/ncardeli)! - Improve TypeScript definition for the Position type used by the position property

- [#2252](https://github.com/Shopify/ui-extensions/pull/2252) [`d6ac8d4e4180eef5242719bfaffe998441be1aa9`](https://github.com/Shopify/ui-extensions/commit/d6ac8d4e4180eef5242719bfaffe998441be1aa9) Thanks [@MitchLillie](https://github.com/MitchLillie)! - Add admin company location block

## 2024.4.0

### Minor Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {LandingTemplateSchema} from '@shopify/generate-docs';
const exampleCodePath = '../reference/examples/cart-instructions';

const data: LandingTemplateSchema = {
title: 'Updating to 2024-07',
title: 'Updating to 2024-10',
description: `
Some checkouts may be created with [cart instructions](/docs/api/checkout-ui-extensions/apis/cart-instructions) that prevent buyers from making certain changes to their checkout.

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-extensions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/ui-extensions",
"version": "0.0.0-unstable",
"version": "2024.10.0",
"scripts": {
"docs:admin": "bash ./docs/surfaces/admin/build-docs.sh",
"gen-docs:admin": "bash ./docs/surfaces/admin/create-doc-files.sh \"admin\"",
Expand Down
17 changes: 16 additions & 1 deletion packages/ui-extensions/src/surfaces/customer-account/targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
type Components = typeof import('./components');

type AllComponents = Components[keyof Components];

/**
* A UI extension will register for one or more extension targets using `shopify.extend()`.
* An extension target in a UI extension is a plain JavaScript function.
Expand All @@ -37,6 +36,12 @@ export interface OrderStatusExtensionTargets {
* The [placements](https://shopify.dev/docs/api/checkout-ui-extensions/extension-targets-overview#placements) for dynamic extension targets can be previewed during development
* by [using a URL parameter](https://shopify.dev/docs/apps/checkout/best-practices/testing-ui-extensions#dynamic-extension-targets).
*/
/** Overlay Modal extension for Order Status*/
'customer-account.order-status.overlay.render': RenderExtension<
OrderStatusApi<'customer-account.order-status.overlay.render'> &
StandardApi<'customer-account.order-status.overlay.render'>,
AnyComponent
>;
'customer-account.order-status.block.render': RenderExtension<
OrderStatusApi<'customer-account.order-status.block.render'> &
StandardApi<'customer-account.order-status.block.render'>,
Expand Down Expand Up @@ -151,6 +156,11 @@ export interface CustomerAccountExtensionTargets {
CompanyLocationApi,
AllComponents
>;
/** Overlay Modal extension for Profiles */
'customer-account.profile.overlay.render': RenderExtension<
StandardApi<'customer-account.profile.overlay.render'>,
AllComponents
>;
'customer-account.order.action.menu-item.render': RenderExtension<
StandardApi & OrderApi,
AllComponents
Expand All @@ -159,6 +169,11 @@ export interface CustomerAccountExtensionTargets {
StandardApi & ActionExtensionApi & OrderApi,
AllComponents
>;
/** Overlay Modal extension for Order Index */
'customer-account.order.overlay.render': RenderExtension<
StandardApi & OrderApi,
AllComponents
>;
}

export type CustomerAccountExtensionTarget =
Expand Down
Loading