@faststore/core 3.14.3 → 3.15.0

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.
Files changed (58) hide show
  1. package/.husky/_/husky.sh +30 -0
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/build-manifest.json +43 -43
  4. package/.next/cache/.tsbuildinfo +1 -1
  5. package/.next/cache/config.json +3 -3
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/.next/prerender-manifest.js +1 -1
  11. package/.next/prerender-manifest.json +1 -1
  12. package/.next/react-loadable-manifest.json +5 -5
  13. package/.next/routes-manifest.json +1 -1
  14. package/.next/server/middleware-build-manifest.js +1 -1
  15. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  16. package/.next/server/pages/[slug]/p.js +1 -1
  17. package/.next/server/pages/en-US/404.html +2 -2
  18. package/.next/server/pages/en-US/500.html +2 -2
  19. package/.next/server/pages/en-US/account.html +2 -2
  20. package/.next/server/pages/en-US/checkout.html +2 -2
  21. package/.next/server/pages/en-US/login.html +2 -2
  22. package/.next/server/pages/en-US/s.html +2 -2
  23. package/.next/server/pages/en-US.html +2 -2
  24. package/.next/server/pages-manifest.json +1 -1
  25. package/.next/static/I_svGPugEd8B39I034SPS/_buildManifest.js +1 -0
  26. package/.next/static/chunks/4750-e5a9418eaebfb4c8.js +28 -0
  27. package/.next/static/chunks/{5698-27d87aae8c109e79.js → 5698-fa65b2992114887e.js} +1 -1
  28. package/.next/static/chunks/{667-12b06e64d8d692d5.js → 667-53c75d8fc0155d58.js} +1 -1
  29. package/.next/static/chunks/{9466-2f8573654062ca33.js → 9466-e249304f28f683ae.js} +1 -1
  30. package/.next/static/chunks/{BannerNewsletter.cd67899702cefc74.js → BannerNewsletter.e9cddf0d9db5a289.js} +1 -1
  31. package/.next/static/chunks/{Newsletter.16d512eea4770e48.js → Newsletter.b145b5c84a40f69a.js} +1 -1
  32. package/.next/static/chunks/pages/{404-23b334702035ebee.js → 404-c90c20c167cc0e7a.js} +1 -1
  33. package/.next/static/chunks/pages/{500-2fbf273f5ce9ceca.js → 500-0cd22d12b85fffda.js} +1 -1
  34. package/.next/static/chunks/pages/{[...slug]-25f38fa57ace66f5.js → [...slug]-519b90475cfac29a.js} +1 -1
  35. package/.next/static/chunks/pages/[slug]/p-076e901f67a41f5a.js +1 -0
  36. package/.next/static/chunks/pages/{account-432a55e008dba859.js → account-978432926cc98c7f.js} +1 -1
  37. package/.next/static/chunks/pages/{checkout-d811420956257b8d.js → checkout-fc1167ff76bcc8ed.js} +1 -1
  38. package/.next/static/chunks/pages/{index-196c7f6cfa8ed5f3.js → index-5118f05c0bfc0853.js} +1 -1
  39. package/.next/static/chunks/pages/{login-66c720bdd1b3034e.js → login-fcb4f67351defd0e.js} +1 -1
  40. package/.next/static/chunks/pages/{s-91dbf07a75f40f28.js → s-ffb1e51598f8ad52.js} +1 -1
  41. package/.next/static/chunks/{webpack-1cdeb6168a2816ff.js → webpack-95968624e480b497.js} +1 -1
  42. package/.next/trace +103 -102
  43. package/.turbo/turbo-build.log +5 -5
  44. package/.turbo/turbo-test.log +5 -5
  45. package/CHANGELOG.md +6 -0
  46. package/package.json +11 -10
  47. package/src/components/sections/ProductDetails/ProductDetails.tsx +79 -73
  48. package/src/pages/[slug]/p.tsx +42 -7
  49. package/src/sdk/offer/aggregate.ts +48 -0
  50. package/src/sdk/offer/enhance.ts +20 -0
  51. package/src/sdk/offer/fetcher.ts +19 -0
  52. package/src/sdk/offer/index.ts +45 -0
  53. package/src/sdk/offer/sort.ts +28 -0
  54. package/src/sdk/product/useProductLink.ts +1 -3
  55. package/.next/static/chunks/4579-0b95def0ee1ecb0f.js +0 -33
  56. package/.next/static/chunks/pages/[slug]/p-a3a9ea694ac3b322.js +0 -1
  57. package/.next/static/l2e99PO5q3-lFPgwMNoFo/_buildManifest.js +0 -1
  58. /package/.next/static/{l2e99PO5q3-lFPgwMNoFo → I_svGPugEd8B39I034SPS}/_ssgManifest.js +0 -0
@@ -0,0 +1,30 @@
1
+ #!/bin/sh
2
+ if [ -z "$husky_skip_init" ]; then
3
+ debug () {
4
+ [ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
5
+ }
6
+
7
+ readonly hook_name="$(basename "$0")"
8
+ debug "starting $hook_name..."
9
+
10
+ if [ "$HUSKY" = "0" ]; then
11
+ debug "HUSKY env variable is set to 0, skipping hook"
12
+ exit 0
13
+ fi
14
+
15
+ if [ -f ~/.huskyrc ]; then
16
+ debug "sourcing ~/.huskyrc"
17
+ . ~/.huskyrc
18
+ fi
19
+
20
+ export readonly husky_skip_init=1
21
+ sh -e "$0" "$@"
22
+ exitCode="$?"
23
+
24
+ if [ $exitCode != 0 ]; then
25
+ echo "husky - $hook_name hook exited with code $exitCode (error)"
26
+ exit $exitCode
27
+ fi
28
+
29
+ exit 0
30
+ fi
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- l2e99PO5q3-lFPgwMNoFo
1
+ I_svGPugEd8B39I034SPS
@@ -5,119 +5,119 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/l2e99PO5q3-lFPgwMNoFo/_buildManifest.js",
9
- "static/l2e99PO5q3-lFPgwMNoFo/_ssgManifest.js"
8
+ "static/I_svGPugEd8B39I034SPS/_buildManifest.js",
9
+ "static/I_svGPugEd8B39I034SPS/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "pages": {
13
13
  "/": [
14
- "static/chunks/webpack-1cdeb6168a2816ff.js",
14
+ "static/chunks/webpack-95968624e480b497.js",
15
15
  "static/chunks/framework-12a146e94cfcf7c4.js",
16
16
  "static/chunks/main-bcf4c5804681e40a.js",
17
- "static/chunks/4579-0b95def0ee1ecb0f.js",
17
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
18
18
  "static/css/93d239c461485bdf.css",
19
- "static/chunks/5698-27d87aae8c109e79.js",
19
+ "static/chunks/5698-fa65b2992114887e.js",
20
20
  "static/css/b1806cbafd0c1f81.css",
21
- "static/chunks/pages/index-196c7f6cfa8ed5f3.js"
21
+ "static/chunks/pages/index-5118f05c0bfc0853.js"
22
22
  ],
23
23
  "/404": [
24
- "static/chunks/webpack-1cdeb6168a2816ff.js",
24
+ "static/chunks/webpack-95968624e480b497.js",
25
25
  "static/chunks/framework-12a146e94cfcf7c4.js",
26
26
  "static/chunks/main-bcf4c5804681e40a.js",
27
- "static/chunks/4579-0b95def0ee1ecb0f.js",
27
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
28
28
  "static/css/93d239c461485bdf.css",
29
- "static/chunks/5698-27d87aae8c109e79.js",
29
+ "static/chunks/5698-fa65b2992114887e.js",
30
30
  "static/css/2980acad3f8e1028.css",
31
- "static/chunks/pages/404-23b334702035ebee.js"
31
+ "static/chunks/pages/404-c90c20c167cc0e7a.js"
32
32
  ],
33
33
  "/500": [
34
- "static/chunks/webpack-1cdeb6168a2816ff.js",
34
+ "static/chunks/webpack-95968624e480b497.js",
35
35
  "static/chunks/framework-12a146e94cfcf7c4.js",
36
36
  "static/chunks/main-bcf4c5804681e40a.js",
37
- "static/chunks/4579-0b95def0ee1ecb0f.js",
37
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
38
38
  "static/css/93d239c461485bdf.css",
39
- "static/chunks/5698-27d87aae8c109e79.js",
39
+ "static/chunks/5698-fa65b2992114887e.js",
40
40
  "static/css/2980acad3f8e1028.css",
41
- "static/chunks/pages/500-2fbf273f5ce9ceca.js"
41
+ "static/chunks/pages/500-0cd22d12b85fffda.js"
42
42
  ],
43
43
  "/[...slug]": [
44
- "static/chunks/webpack-1cdeb6168a2816ff.js",
44
+ "static/chunks/webpack-95968624e480b497.js",
45
45
  "static/chunks/framework-12a146e94cfcf7c4.js",
46
46
  "static/chunks/main-bcf4c5804681e40a.js",
47
- "static/chunks/4579-0b95def0ee1ecb0f.js",
47
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
48
48
  "static/css/93d239c461485bdf.css",
49
- "static/chunks/5698-27d87aae8c109e79.js",
49
+ "static/chunks/5698-fa65b2992114887e.js",
50
50
  "static/css/449c3f167b150caf.css",
51
- "static/chunks/9466-2f8573654062ca33.js",
52
- "static/chunks/pages/[...slug]-25f38fa57ace66f5.js"
51
+ "static/chunks/9466-e249304f28f683ae.js",
52
+ "static/chunks/pages/[...slug]-519b90475cfac29a.js"
53
53
  ],
54
54
  "/[slug]/p": [
55
- "static/chunks/webpack-1cdeb6168a2816ff.js",
55
+ "static/chunks/webpack-95968624e480b497.js",
56
56
  "static/chunks/framework-12a146e94cfcf7c4.js",
57
57
  "static/chunks/main-bcf4c5804681e40a.js",
58
- "static/chunks/4579-0b95def0ee1ecb0f.js",
58
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
59
59
  "static/chunks/2599-67df8c38c483737b.js",
60
60
  "static/css/93d239c461485bdf.css",
61
- "static/chunks/5698-27d87aae8c109e79.js",
61
+ "static/chunks/5698-fa65b2992114887e.js",
62
62
  "static/chunks/7498-745c09c46899ea49.js",
63
63
  "static/css/bf1560439df2c1a1.css",
64
64
  "static/css/e3ff5d95518a5c79.css",
65
- "static/chunks/667-12b06e64d8d692d5.js",
65
+ "static/chunks/667-53c75d8fc0155d58.js",
66
66
  "static/css/d23b961580181439.css",
67
- "static/chunks/pages/[slug]/p-a3a9ea694ac3b322.js"
67
+ "static/chunks/pages/[slug]/p-076e901f67a41f5a.js"
68
68
  ],
69
69
  "/_app": [
70
- "static/chunks/webpack-1cdeb6168a2816ff.js",
70
+ "static/chunks/webpack-95968624e480b497.js",
71
71
  "static/chunks/framework-12a146e94cfcf7c4.js",
72
72
  "static/chunks/main-bcf4c5804681e40a.js",
73
73
  "static/css/2eafb8997a3946dc.css",
74
74
  "static/chunks/pages/_app-fa96080af43b51d4.js"
75
75
  ],
76
76
  "/_error": [
77
- "static/chunks/webpack-1cdeb6168a2816ff.js",
77
+ "static/chunks/webpack-95968624e480b497.js",
78
78
  "static/chunks/framework-12a146e94cfcf7c4.js",
79
79
  "static/chunks/main-bcf4c5804681e40a.js",
80
80
  "static/chunks/pages/_error-c259d89560ef7ac1.js"
81
81
  ],
82
82
  "/account": [
83
- "static/chunks/webpack-1cdeb6168a2816ff.js",
83
+ "static/chunks/webpack-95968624e480b497.js",
84
84
  "static/chunks/framework-12a146e94cfcf7c4.js",
85
85
  "static/chunks/main-bcf4c5804681e40a.js",
86
- "static/chunks/4579-0b95def0ee1ecb0f.js",
86
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
87
87
  "static/css/93d239c461485bdf.css",
88
- "static/chunks/5698-27d87aae8c109e79.js",
89
- "static/chunks/pages/account-432a55e008dba859.js"
88
+ "static/chunks/5698-fa65b2992114887e.js",
89
+ "static/chunks/pages/account-978432926cc98c7f.js"
90
90
  ],
91
91
  "/checkout": [
92
- "static/chunks/webpack-1cdeb6168a2816ff.js",
92
+ "static/chunks/webpack-95968624e480b497.js",
93
93
  "static/chunks/framework-12a146e94cfcf7c4.js",
94
94
  "static/chunks/main-bcf4c5804681e40a.js",
95
- "static/chunks/4579-0b95def0ee1ecb0f.js",
95
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
96
96
  "static/css/93d239c461485bdf.css",
97
- "static/chunks/5698-27d87aae8c109e79.js",
98
- "static/chunks/pages/checkout-d811420956257b8d.js"
97
+ "static/chunks/5698-fa65b2992114887e.js",
98
+ "static/chunks/pages/checkout-fc1167ff76bcc8ed.js"
99
99
  ],
100
100
  "/login": [
101
- "static/chunks/webpack-1cdeb6168a2816ff.js",
101
+ "static/chunks/webpack-95968624e480b497.js",
102
102
  "static/chunks/framework-12a146e94cfcf7c4.js",
103
103
  "static/chunks/main-bcf4c5804681e40a.js",
104
- "static/chunks/4579-0b95def0ee1ecb0f.js",
104
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
105
105
  "static/css/93d239c461485bdf.css",
106
- "static/chunks/5698-27d87aae8c109e79.js",
106
+ "static/chunks/5698-fa65b2992114887e.js",
107
107
  "static/css/2980acad3f8e1028.css",
108
- "static/chunks/pages/login-66c720bdd1b3034e.js"
108
+ "static/chunks/pages/login-fcb4f67351defd0e.js"
109
109
  ],
110
110
  "/s": [
111
- "static/chunks/webpack-1cdeb6168a2816ff.js",
111
+ "static/chunks/webpack-95968624e480b497.js",
112
112
  "static/chunks/framework-12a146e94cfcf7c4.js",
113
113
  "static/chunks/main-bcf4c5804681e40a.js",
114
- "static/chunks/4579-0b95def0ee1ecb0f.js",
114
+ "static/chunks/4750-e5a9418eaebfb4c8.js",
115
115
  "static/css/93d239c461485bdf.css",
116
- "static/chunks/5698-27d87aae8c109e79.js",
116
+ "static/chunks/5698-fa65b2992114887e.js",
117
117
  "static/css/449c3f167b150caf.css",
118
- "static/chunks/9466-2f8573654062ca33.js",
118
+ "static/chunks/9466-e249304f28f683ae.js",
119
119
  "static/css/2980acad3f8e1028.css",
120
- "static/chunks/pages/s-91dbf07a75f40f28.js"
120
+ "static/chunks/pages/s-ffb1e51598f8ad52.js"
121
121
  ]
122
122
  },
123
123
  "ampFirstPages": []