@graphcommerce/magento-wishlist 11.0.0-canary.46 → 11.0.0-canary.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/components/index.ts +1 -0
- package/index.test.ts +20 -0
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @graphcommerce/magento-wishlist
|
|
2
2
|
|
|
3
|
+
## 11.0.0-canary.48
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2699](https://github.com/graphcommerce-org/graphcommerce/pull/2699) [`f28586b`](https://github.com/graphcommerce-org/graphcommerce/commit/f28586b061f48cce3f3a70f7ec2c57f13868f8e1) - The packages export the modules that shops import from the package root: the types of `RichText`, `GetAddressesDocument`, `isSameAddress`, `isCartAddressACustomerAddress`, `AvailableShippingMethodFragment`, `AccountAddressFragment`, `CreateCustomerAddressDocument`, `UpdateCustomerAddressDocument`, `ValidatedPasswordElement`, `useCustomizableOptionPrice`, `UseAddProductsToCartActionFragment`, `useProductFiltersProSearchInput`, `useSearchPageAndParam`, `AddWishlistItemToCartProps` and `safeJsonLdReplacer`. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
8
|
+
|
|
9
|
+
## 11.0.0-canary.47
|
|
10
|
+
|
|
3
11
|
## 11.0.0-canary.46
|
|
4
12
|
|
|
5
13
|
## 11.0.0-canary.45
|
package/components/index.ts
CHANGED
|
@@ -3,4 +3,5 @@ export * from './ProductWishlistChip/ProductWishlistChip'
|
|
|
3
3
|
export * from './ProductWishlistChip/ProductWishlistIconButton'
|
|
4
4
|
export * from './WishlistFab/WishlistFab'
|
|
5
5
|
export * from './WishlistMenuFabItem/WishlistMenuFabItem'
|
|
6
|
+
export * from './WishlistItem/AddWishlistItemToCart'
|
|
6
7
|
export * from './WishlistItemActionCard/WishlistItemActionCard'
|
package/index.test.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url'
|
|
2
|
+
import ts from 'typescript'
|
|
3
|
+
|
|
4
|
+
it('exports the modules that a shop imports', () => {
|
|
5
|
+
const root = fileURLToPath(new URL('.', import.meta.url))
|
|
6
|
+
const files = ts.sys
|
|
7
|
+
.readDirectory(root, ['.ts', '.tsx'])
|
|
8
|
+
.filter((file) => !file.includes('/node_modules/') && !/\.test\.tsx?$/.test(file))
|
|
9
|
+
const program = ts.createProgram(files, {
|
|
10
|
+
noEmit: true,
|
|
11
|
+
noResolve: true,
|
|
12
|
+
jsx: ts.JsxEmit.ReactJSX,
|
|
13
|
+
})
|
|
14
|
+
const checker = program.getTypeChecker()
|
|
15
|
+
const index = program.getSourceFile(`${root}index.ts`)
|
|
16
|
+
const moduleSymbol = index && checker.getSymbolAtLocation(index)
|
|
17
|
+
const exported = moduleSymbol ? checker.getExportsOfModule(moduleSymbol).map((s) => s.name) : []
|
|
18
|
+
|
|
19
|
+
expect(exported).toEqual(expect.arrayContaining(['AddWishlistItemToCartProps']))
|
|
20
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-wishlist",
|
|
3
|
-
"version": "11.0.0-canary.
|
|
3
|
+
"version": "11.0.0-canary.48",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@graphcommerce/ecommerce-ui": "^11.0.0-canary.
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.
|
|
18
|
-
"@graphcommerce/graphql": "^11.0.0-canary.
|
|
19
|
-
"@graphcommerce/graphql-mesh": "^11.0.0-canary.
|
|
20
|
-
"@graphcommerce/image": "^11.0.0-canary.
|
|
21
|
-
"@graphcommerce/magento-cart": "^11.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^11.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-product": "^11.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-product-configurable": "^11.0.0-canary.
|
|
25
|
-
"@graphcommerce/magento-store": "^11.0.0-canary.
|
|
26
|
-
"@graphcommerce/next-config": "^11.0.0-canary.
|
|
27
|
-
"@graphcommerce/next-ui": "^11.0.0-canary.
|
|
28
|
-
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.
|
|
29
|
-
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.
|
|
16
|
+
"@graphcommerce/ecommerce-ui": "^11.0.0-canary.48",
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.48",
|
|
18
|
+
"@graphcommerce/graphql": "^11.0.0-canary.48",
|
|
19
|
+
"@graphcommerce/graphql-mesh": "^11.0.0-canary.48",
|
|
20
|
+
"@graphcommerce/image": "^11.0.0-canary.48",
|
|
21
|
+
"@graphcommerce/magento-cart": "^11.0.0-canary.48",
|
|
22
|
+
"@graphcommerce/magento-customer": "^11.0.0-canary.48",
|
|
23
|
+
"@graphcommerce/magento-product": "^11.0.0-canary.48",
|
|
24
|
+
"@graphcommerce/magento-product-configurable": "^11.0.0-canary.48",
|
|
25
|
+
"@graphcommerce/magento-store": "^11.0.0-canary.48",
|
|
26
|
+
"@graphcommerce/next-config": "^11.0.0-canary.48",
|
|
27
|
+
"@graphcommerce/next-ui": "^11.0.0-canary.48",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.48",
|
|
29
|
+
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.48",
|
|
30
30
|
"@lingui/core": "^5",
|
|
31
31
|
"@lingui/macro": "^5",
|
|
32
32
|
"@lingui/react": "^5",
|