diff --git a/knip.ts b/knip.ts
index eb6f3804a6..b00211d4be 100644
--- a/knip.ts
+++ b/knip.ts
@@ -18,7 +18,13 @@ const asPackageDir: WorkspaceEntry = {
'index.js',
'src/index.ts',
],
- entry: ['plugins/**/*.{ts,tsx}', 'src/bin/*.ts', '**/resolvers.ts', '**/resolver.ts'],
+ entry: [
+ 'plugins/**/*.{ts,tsx}',
+ 'src/bin/*.ts',
+ '**/resolvers.ts',
+ '**/resolver.ts',
+ '**/*Resolver.ts',
+ ],
}
const asNextjsDir: WorkspaceEntry = {
diff --git a/packages/framer-next-pages/example/components/StackedDrawer.tsx b/packages/framer-next-pages/example/components/StackedDrawer.tsx
deleted file mode 100644
index 1776976219..0000000000
--- a/packages/framer-next-pages/example/components/StackedDrawer.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import { usePageContext } from '@graphcommerce/framer-next-pages'
-import { m } from 'framer-motion'
-
-export function StackedDrawer(props: { variant: 'left' | 'right'; children: React.ReactNode }) {
- const { children, variant } = props
- const { depth } = usePageContext()
-
- const offset = variant === 'right' ? depth * 40 : depth * -40
-
- return (
-
- {children}
-
- )
-}
diff --git a/packages/magento-customer/components/AccountLatestOrder/AccountLatestOrder.tsx b/packages/magento-customer/components/AccountLatestOrder/AccountLatestOrder.tsx
index 7a55b418fb..f3d42744c2 100644
--- a/packages/magento-customer/components/AccountLatestOrder/AccountLatestOrder.tsx
+++ b/packages/magento-customer/components/AccountLatestOrder/AccountLatestOrder.tsx
@@ -9,6 +9,10 @@ export type AccountLatestOrderProps = AccountOrdersFragment & {
loading: boolean
}
+/**
+ * @deprecated
+ * @public
+ */
export function AccountLatestOrder(props: AccountLatestOrderProps) {
const { orders, loading } = props
const latestOrderCard = orders?.items?.[(orders?.items?.length ?? 1) - 1]
diff --git a/packages/magento-customer/components/AddressFields/AddressCountryRegion.tsx b/packages/magento-customer/components/AddressFields/AddressCountryRegion.tsx
index c3a11be4bf..7bebe6dc53 100644
--- a/packages/magento-customer/components/AddressFields/AddressCountryRegion.tsx
+++ b/packages/magento-customer/components/AddressFields/AddressCountryRegion.tsx
@@ -2,12 +2,13 @@ import type { FieldPath, FieldValues } from '@graphcommerce/ecommerce-ui'
import { SelectElement, TextFieldElement, useWatch } from '@graphcommerce/ecommerce-ui'
import { useQuery } from '@graphcommerce/graphql'
import { CountryRegionsDocument } from '@graphcommerce/magento-store'
-import { FormRow, filterNonNullableKeys } from '@graphcommerce/next-ui'
+import { filterNonNullableKeys, FormRow } from '@graphcommerce/next-ui'
import { Trans } from '@lingui/react'
import { useMemo } from 'react'
import type { AddressFieldsOptions } from './useAddressFieldsForm'
import { useAddressFieldsForm } from './useAddressFieldsForm'
+/** @public */
export function useAddressCountryRegion<
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath = FieldPath,
diff --git a/packages/magento-customer/components/OrderCardItem/OrderCardItem.tsx b/packages/magento-customer/components/OrderCardItem/OrderCardItem.tsx
index 123b2df5be..5c48f1a51d 100644
--- a/packages/magento-customer/components/OrderCardItem/OrderCardItem.tsx
+++ b/packages/magento-customer/components/OrderCardItem/OrderCardItem.tsx
@@ -6,6 +6,10 @@ export type OrderCardItemProps = OrderCardItemFragment & {
thumbnail?: Pick
}
+/**
+ * @deprecated
+ * @public
+ */
export function OrderCardItem(props: OrderCardItemProps) {
const { product_sku, product_url_key, thumbnail } = props
diff --git a/packages/magento-customer/components/SignInForm/SignInFormInline.tsx b/packages/magento-customer/components/SignInForm/SignInFormInline.tsx
index 239284800f..4ff5f6740b 100644
--- a/packages/magento-customer/components/SignInForm/SignInFormInline.tsx
+++ b/packages/magento-customer/components/SignInForm/SignInFormInline.tsx
@@ -13,6 +13,7 @@ export type InlineSignInFormProps = Omit &
const { classes } = extendableComponent('SignInFormInline', ['form', 'button'] as const)
+/** @public */
export function SignInFormInline(props: InlineSignInFormProps) {
const { email, children, sx = [] } = props
const form = useSignInForm({ email })
diff --git a/packages/magento-payment-adyen/hooks/useAdyenHandlePaymentResponse.ts b/packages/magento-payment-adyen/hooks/useAdyenHandlePaymentResponse.ts
index 92af32e0c6..ca59618913 100644
--- a/packages/magento-payment-adyen/hooks/useAdyenHandlePaymentResponse.ts
+++ b/packages/magento-payment-adyen/hooks/useAdyenHandlePaymentResponse.ts
@@ -31,6 +31,10 @@ export type AdyenPaymentResponse = {
additionalData?: Types.checkout.PaymentResponse['additionalData']
}
+/**
+ * @deprecated Will be removed
+ * @public
+ */
export function parsePaymentResponse(
status?: AdyenPaymentResponseFragment | null,
): AdyenPaymentResponse {
diff --git a/packages/magento-payment-braintree/methods/braintree/PaymentMethodOptions.tsx b/packages/magento-payment-braintree/methods/braintree/PaymentMethodOptions.tsx
index 11253238e2..6a5d10f57c 100644
--- a/packages/magento-payment-braintree/methods/braintree/PaymentMethodOptions.tsx
+++ b/packages/magento-payment-braintree/methods/braintree/PaymentMethodOptions.tsx
@@ -28,6 +28,7 @@ const Field = React.forwardRef((props,
return
})
+/** @public */
export function BraintreeField(
props: {
hostedFields: HostedFields | undefined
@@ -259,7 +260,10 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
const loading = !hostedFields
- /** This is the form that the user can fill in. In this case we don't wat the user to fill in anything. */
+ /**
+ * This is the form that the user can fill in. In this case we don't wat the user to fill in
+ * anything.
+ */
return (