Skip to content

Commit

Permalink
Remove location api (#1569)
Browse files Browse the repository at this point in the history
* Remove location api

* changeset

* remove unused import

* remove omit location
  • Loading branch information
oluwatimio committed Nov 28, 2023
1 parent 5481b94 commit cbc51b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-cheetahs-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/ui-extensions': patch
---

Remove customer account location api
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export interface Docs_Standard_QueryApi

export interface Docs_StandardApi extends Omit<StandardApi<any>, 'router'> {}

export interface Docs_FullPageApi extends Omit<FullPageApi, 'location'> {}
export interface Docs_FullPageApi extends FullPageApi {}

export interface Docs_Page_Button_PrimaryAction
extends Pick<
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -260,13 +259,6 @@ export type AllowedComponentsForRenderExtension<
> = ExtractedAllowedComponentsFromRenderExtension<RenderExtensions[Target]>;

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;
}

Expand Down

0 comments on commit cbc51b3

Please sign in to comment.