From 5b9d56095595e3ae12437743d5f21cdcbce23bf5 Mon Sep 17 00:00:00 2001 From: Jeremy Yip Date: Wed, 25 Oct 2023 15:20:53 -0700 Subject: [PATCH] Add data-stores package and wordpress element dependencies --- packages/data-stores/package.json | 1 + packages/data-stores/src/add-ons/use-add-on-checkout-link.ts | 2 +- yarn.lock | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/data-stores/package.json b/packages/data-stores/package.json index 8418d1addcf73..9d262af1c8544 100644 --- a/packages/data-stores/package.json +++ b/packages/data-stores/package.json @@ -39,6 +39,7 @@ "@wordpress/data-controls": "^3.13.0", "@wordpress/deprecated": "^3.44.0", "@wordpress/url": "^3.45.0", + "@wordpress/element": "^5.21.0", "fast-json-stable-stringify": "^2.1.0", "i18n-calypso": "workspace:^", "qs": "^6.9.1", diff --git a/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts b/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts index b357fcd07310a..b924342342574 100644 --- a/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts +++ b/packages/data-stores/src/add-ons/use-add-on-checkout-link.ts @@ -1,5 +1,5 @@ import { useCallback } from '@wordpress/element'; -import type { SiteDetails } from '@automattic/data-stores'; +import type { SiteDetails } from '../site/types'; /** * Returns a function that will return a formatted checkout link for the given add-on and quantity. diff --git a/yarn.lock b/yarn.lock index 3967d69442097..a34ac803441b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -621,6 +621,7 @@ __metadata: "@wordpress/api-fetch": ^6.41.0 "@wordpress/data-controls": ^3.13.0 "@wordpress/deprecated": ^3.44.0 + "@wordpress/element": ^5.21.0 "@wordpress/url": ^3.45.0 fast-json-stable-stringify: ^2.1.0 i18n-calypso: "workspace:^"