From cbc51b33d376370bff9f4dc980e66b495f5fcfaa Mon Sep 17 00:00:00 2001 From: Oluwatimi Date: Tue, 28 Nov 2023 16:55:23 -0500 Subject: [PATCH] Remove location api (#1569) * Remove location api * changeset * remove unused import * remove omit location --- .changeset/tasty-cheetahs-help.md | 5 +++++ .../src/surfaces/customer-account/api/docs.ts | 2 +- .../src/surfaces/customer-account/targets.ts | 8 -------- 3 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 .changeset/tasty-cheetahs-help.md diff --git a/.changeset/tasty-cheetahs-help.md b/.changeset/tasty-cheetahs-help.md new file mode 100644 index 000000000..a5d0e4ae2 --- /dev/null +++ b/.changeset/tasty-cheetahs-help.md @@ -0,0 +1,5 @@ +--- +'@shopify/ui-extensions': patch +--- + +Remove customer account location api diff --git a/packages/ui-extensions/src/surfaces/customer-account/api/docs.ts b/packages/ui-extensions/src/surfaces/customer-account/api/docs.ts index ee328b025..c3dd95f3c 100644 --- a/packages/ui-extensions/src/surfaces/customer-account/api/docs.ts +++ b/packages/ui-extensions/src/surfaces/customer-account/api/docs.ts @@ -77,7 +77,7 @@ export interface Docs_Standard_QueryApi export interface Docs_StandardApi extends Omit, 'router'> {} -export interface Docs_FullPageApi extends Omit {} +export interface Docs_FullPageApi extends FullPageApi {} export interface Docs_Page_Button_PrimaryAction extends Pick< diff --git a/packages/ui-extensions/src/surfaces/customer-account/targets.ts b/packages/ui-extensions/src/surfaces/customer-account/targets.ts index 6a8781fb5..36722e043 100644 --- a/packages/ui-extensions/src/surfaces/customer-account/targets.ts +++ b/packages/ui-extensions/src/surfaces/customer-account/targets.ts @@ -1,4 +1,3 @@ -import {StatefulRemoteSubscribable} from '@remote-ui/async-subscription'; import {AnyComponent} from '../checkout/shared'; import {CartLineItemApi} from './api/cart-line/cart-line-item'; @@ -260,13 +259,6 @@ export type AllowedComponentsForRenderExtension< > = ExtractedAllowedComponentsFromRenderExtension; export interface FullPageApi { - /** - * @deprecated This is deprecated. DO NOT USE. This will be removed soon without warning. use `api.navigation.currentEntry` and `api.navigation.addEventListener` instead. - */ - location: StatefulRemoteSubscribable<{ - pathname: string; - search: string; - }>; navigation: FullExtensionNavigation; }