@anker-in/shopify-react 0.1.1-beta.17 → 0.1.1-beta.18
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/dist/hooks/index.js +22 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +22 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/dist/provider/index.js +22 -1
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +22 -1
- package/dist/provider/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/hooks/index.mjs
CHANGED
|
@@ -1409,8 +1409,29 @@ var useCartAttributes = ({
|
|
|
1409
1409
|
[memberAttributes, functionAttributes, presellAttributes, weightAttributes, trackingAttributes]
|
|
1410
1410
|
);
|
|
1411
1411
|
const extraAttributesInCart = useMemo(() => {
|
|
1412
|
+
const commonAttributeKeys = [
|
|
1413
|
+
// member attributes
|
|
1414
|
+
"_token",
|
|
1415
|
+
"_member_type",
|
|
1416
|
+
"_user_type",
|
|
1417
|
+
"_is_login",
|
|
1418
|
+
"_login_user",
|
|
1419
|
+
// function attributes
|
|
1420
|
+
"_discounts_function_env",
|
|
1421
|
+
// presell attributes
|
|
1422
|
+
"_presale",
|
|
1423
|
+
// weight attributes
|
|
1424
|
+
"_weight",
|
|
1425
|
+
"_app_source_name",
|
|
1426
|
+
// tracking attributes
|
|
1427
|
+
"utm_params",
|
|
1428
|
+
// referral attributes
|
|
1429
|
+
"_invite_code",
|
|
1430
|
+
"_play_mode_id",
|
|
1431
|
+
"_popup"
|
|
1432
|
+
];
|
|
1412
1433
|
return cart?.customAttributes?.filter(
|
|
1413
|
-
(item) => !
|
|
1434
|
+
(item) => !commonAttributeKeys.includes(item.key)
|
|
1414
1435
|
) || [];
|
|
1415
1436
|
}, [cart]);
|
|
1416
1437
|
return useMemo(
|