@tapcart/mobile-components 0.8.13 → 0.8.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"use-block-conditional-rendering.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-block-conditional-rendering.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAGb,MAAM,kBAAkB,CAAA;AAgBzB,eAAO,MAAM,4BAA4B,WAC/B;IACN,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,UACO,YAAY;;;CA8KrB,CAAA"}
1
+ {"version":3,"file":"use-block-conditional-rendering.d.ts","sourceRoot":"","sources":["../../../components/hooks/use-block-conditional-rendering.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,YAAY,EAGb,MAAM,kBAAkB,CAAA;AAgBzB,eAAO,MAAM,4BAA4B,WAC/B;IACN,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,UACO,YAAY;;;CAgLrB,CAAA"}
@@ -45,14 +45,16 @@ export const useBlockConditionalRendering = (_props, _block) => {
45
45
  };
46
46
  }), [blockProductMetafields]);
47
47
  // Fetch product if productId is present
48
- const { products, error: useProductsError, isLoading: isProductsLoading, } = useProducts(productId !== undefined && conditionalsV1IsEnabled
49
- ? {
50
- productIds: [gidFromId(productId)],
51
- baseURL: apiUrl,
52
- productHandles: [],
53
- metafields: productMetafieldsQuery,
54
- }
55
- : null);
48
+ const { products, error: useProductsError, isLoading: isProductsLoading, } = useProducts({
49
+ productIds: productId !== undefined ? [gidFromId(productId)] : [],
50
+ baseURL: apiUrl,
51
+ productHandles: [],
52
+ metafields: productMetafieldsQuery,
53
+ queryVariables: {
54
+ language,
55
+ country,
56
+ },
57
+ });
56
58
  const blockCollectionMetafields = useMemo(() => blockState && blockState.collectionMetafield
57
59
  ? blockState.collectionMetafield
58
60
  : [], [blockState]);
package/dist/styles.css CHANGED
@@ -983,9 +983,6 @@ video {
983
983
  .h-20 {
984
984
  height: 5rem;
985
985
  }
986
- .h-24 {
987
- height: 6rem;
988
- }
989
986
  .h-4 {
990
987
  height: 1rem;
991
988
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapcart/mobile-components",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "style": "dist/styles.css",