@shopify/hydrogen-react 2026.1.1 → 2026.4.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 (304) hide show
  1. package/customer-account.schema.json +1 -1
  2. package/dist/browser-dev/CartLineProvider.mjs.map +1 -1
  3. package/dist/browser-dev/CartProvider.mjs.map +1 -1
  4. package/dist/browser-dev/Image.mjs.map +1 -1
  5. package/dist/browser-dev/ModelViewer.mjs.map +1 -1
  6. package/dist/browser-dev/Money.mjs.map +1 -1
  7. package/dist/browser-dev/Video.mjs.map +1 -1
  8. package/dist/browser-dev/codegen.helpers.mjs.map +1 -1
  9. package/dist/browser-dev/optionValueDecoder.mjs.map +1 -1
  10. package/dist/browser-dev/packages/hydrogen-react/package.json.mjs +1 -1
  11. package/dist/browser-dev/storefront-api-constants.mjs +1 -1
  12. package/dist/browser-dev/storefront-api-constants.mjs.map +1 -1
  13. package/dist/browser-dev/useCartAPIStateMachine.mjs +1 -1
  14. package/dist/browser-dev/useCartAPIStateMachine.mjs.map +1 -1
  15. package/dist/browser-dev/useCartActions.mjs.map +1 -1
  16. package/dist/browser-dev/useMachine.mjs +68 -0
  17. package/dist/browser-dev/useMachine.mjs.map +1 -0
  18. package/dist/browser-dev/useMoney.mjs.map +1 -1
  19. package/dist/browser-prod/CartLineProvider.mjs.map +1 -1
  20. package/dist/browser-prod/CartProvider.mjs.map +1 -1
  21. package/dist/browser-prod/Image.mjs.map +1 -1
  22. package/dist/browser-prod/ModelViewer.mjs.map +1 -1
  23. package/dist/browser-prod/Money.mjs.map +1 -1
  24. package/dist/browser-prod/Video.mjs.map +1 -1
  25. package/dist/browser-prod/codegen.helpers.mjs.map +1 -1
  26. package/dist/browser-prod/optionValueDecoder.mjs.map +1 -1
  27. package/dist/browser-prod/packages/hydrogen-react/package.json.mjs +1 -1
  28. package/dist/browser-prod/storefront-api-constants.mjs +1 -1
  29. package/dist/browser-prod/storefront-api-constants.mjs.map +1 -1
  30. package/dist/browser-prod/useCartAPIStateMachine.mjs +1 -1
  31. package/dist/browser-prod/useCartAPIStateMachine.mjs.map +1 -1
  32. package/dist/browser-prod/useCartActions.mjs.map +1 -1
  33. package/dist/browser-prod/useMachine.mjs +68 -0
  34. package/dist/browser-prod/useMachine.mjs.map +1 -0
  35. package/dist/browser-prod/useMoney.mjs.map +1 -1
  36. package/dist/node-dev/CartLineProvider.js.map +1 -1
  37. package/dist/node-dev/CartLineProvider.mjs.map +1 -1
  38. package/dist/node-dev/CartProvider.js.map +1 -1
  39. package/dist/node-dev/CartProvider.mjs.map +1 -1
  40. package/dist/node-dev/Image.js.map +1 -1
  41. package/dist/node-dev/Image.mjs.map +1 -1
  42. package/dist/node-dev/ModelViewer.js.map +1 -1
  43. package/dist/node-dev/ModelViewer.mjs.map +1 -1
  44. package/dist/node-dev/Money.js.map +1 -1
  45. package/dist/node-dev/Money.mjs.map +1 -1
  46. package/dist/node-dev/Video.js.map +1 -1
  47. package/dist/node-dev/Video.mjs.map +1 -1
  48. package/dist/node-dev/codegen.helpers.js.map +1 -1
  49. package/dist/node-dev/codegen.helpers.mjs.map +1 -1
  50. package/dist/node-dev/optionValueDecoder.js.map +1 -1
  51. package/dist/node-dev/optionValueDecoder.mjs.map +1 -1
  52. package/dist/node-dev/packages/hydrogen-react/package.json.js +1 -1
  53. package/dist/node-dev/packages/hydrogen-react/package.json.mjs +1 -1
  54. package/dist/node-dev/storefront-api-constants.js +1 -1
  55. package/dist/node-dev/storefront-api-constants.js.map +1 -1
  56. package/dist/node-dev/storefront-api-constants.mjs +1 -1
  57. package/dist/node-dev/storefront-api-constants.mjs.map +1 -1
  58. package/dist/node-dev/useCartAPIStateMachine.js +2 -2
  59. package/dist/node-dev/useCartAPIStateMachine.js.map +1 -1
  60. package/dist/node-dev/useCartAPIStateMachine.mjs +1 -1
  61. package/dist/node-dev/useCartAPIStateMachine.mjs.map +1 -1
  62. package/dist/node-dev/useCartActions.js.map +1 -1
  63. package/dist/node-dev/useCartActions.mjs.map +1 -1
  64. package/dist/node-dev/useMachine.js +68 -0
  65. package/dist/node-dev/useMachine.js.map +1 -0
  66. package/dist/node-dev/useMachine.mjs +68 -0
  67. package/dist/node-dev/useMachine.mjs.map +1 -0
  68. package/dist/node-dev/useMoney.js.map +1 -1
  69. package/dist/node-dev/useMoney.mjs.map +1 -1
  70. package/dist/node-prod/CartLineProvider.js.map +1 -1
  71. package/dist/node-prod/CartLineProvider.mjs.map +1 -1
  72. package/dist/node-prod/CartProvider.js.map +1 -1
  73. package/dist/node-prod/CartProvider.mjs.map +1 -1
  74. package/dist/node-prod/Image.js.map +1 -1
  75. package/dist/node-prod/Image.mjs.map +1 -1
  76. package/dist/node-prod/ModelViewer.js.map +1 -1
  77. package/dist/node-prod/ModelViewer.mjs.map +1 -1
  78. package/dist/node-prod/Money.js.map +1 -1
  79. package/dist/node-prod/Money.mjs.map +1 -1
  80. package/dist/node-prod/Video.js.map +1 -1
  81. package/dist/node-prod/Video.mjs.map +1 -1
  82. package/dist/node-prod/codegen.helpers.js.map +1 -1
  83. package/dist/node-prod/codegen.helpers.mjs.map +1 -1
  84. package/dist/node-prod/optionValueDecoder.js.map +1 -1
  85. package/dist/node-prod/optionValueDecoder.mjs.map +1 -1
  86. package/dist/node-prod/packages/hydrogen-react/package.json.js +1 -1
  87. package/dist/node-prod/packages/hydrogen-react/package.json.mjs +1 -1
  88. package/dist/node-prod/storefront-api-constants.js +1 -1
  89. package/dist/node-prod/storefront-api-constants.js.map +1 -1
  90. package/dist/node-prod/storefront-api-constants.mjs +1 -1
  91. package/dist/node-prod/storefront-api-constants.mjs.map +1 -1
  92. package/dist/node-prod/useCartAPIStateMachine.js +2 -2
  93. package/dist/node-prod/useCartAPIStateMachine.js.map +1 -1
  94. package/dist/node-prod/useCartAPIStateMachine.mjs +1 -1
  95. package/dist/node-prod/useCartAPIStateMachine.mjs.map +1 -1
  96. package/dist/node-prod/useCartActions.js.map +1 -1
  97. package/dist/node-prod/useCartActions.mjs.map +1 -1
  98. package/dist/node-prod/useMachine.js +68 -0
  99. package/dist/node-prod/useMachine.js.map +1 -0
  100. package/dist/node-prod/useMachine.mjs +68 -0
  101. package/dist/node-prod/useMachine.mjs.map +1 -0
  102. package/dist/node-prod/useMoney.js.map +1 -1
  103. package/dist/node-prod/useMoney.mjs.map +1 -1
  104. package/dist/types/CartLineProvider.d.ts +1 -1
  105. package/dist/types/CartProvider.d.ts +2 -2
  106. package/dist/types/Image.d.ts +1 -1
  107. package/dist/types/ModelViewer.d.ts +1 -1
  108. package/dist/types/Money.d.ts +4 -4
  109. package/dist/types/Video.d.ts +1 -1
  110. package/dist/types/codegen.helpers.d.ts +2 -2
  111. package/dist/types/customer-account-api-types.d.ts +23 -1
  112. package/dist/types/optionValueDecoder.d.ts +2 -2
  113. package/dist/types/storefront-api-constants.d.ts +1 -1
  114. package/dist/types/storefront-api-types.d.ts +1467 -443
  115. package/dist/types/useCartAPIStateMachine.d.ts +2 -2
  116. package/dist/types/useCartActions.d.ts +2 -2
  117. package/dist/types/useMachine.d.ts +11 -0
  118. package/dist/types/useMoney.d.ts +2 -2
  119. package/dist/umd/hydrogen-react.dev.js +57 -252
  120. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  121. package/dist/umd/hydrogen-react.prod.js +16 -32
  122. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  123. package/package.json +6 -14
  124. package/storefront.schema.json +1 -1
  125. package/dist/browser-dev/_virtual/index.mjs +0 -5
  126. package/dist/browser-dev/_virtual/index.mjs.map +0 -1
  127. package/dist/browser-dev/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  128. package/dist/browser-dev/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  129. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  130. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  131. package/dist/browser-dev/_virtual/with-selector.development.mjs +0 -5
  132. package/dist/browser-dev/_virtual/with-selector.development.mjs.map +0 -1
  133. package/dist/browser-dev/_virtual/with-selector.mjs +0 -6
  134. package/dist/browser-dev/_virtual/with-selector.mjs.map +0 -1
  135. package/dist/browser-dev/_virtual/with-selector.production.mjs +0 -5
  136. package/dist/browser-dev/_virtual/with-selector.production.mjs.map +0 -1
  137. package/dist/browser-dev/_virtual/with-selector2.mjs +0 -5
  138. package/dist/browser-dev/_virtual/with-selector2.mjs.map +0 -1
  139. package/dist/browser-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs +0 -89
  140. package/dist/browser-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  141. package/dist/browser-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  142. package/dist/browser-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  143. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  144. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  145. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  146. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  147. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  148. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  149. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  150. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  151. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  152. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  153. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  154. package/dist/browser-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  155. package/dist/browser-prod/_virtual/index.mjs +0 -5
  156. package/dist/browser-prod/_virtual/index.mjs.map +0 -1
  157. package/dist/browser-prod/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  158. package/dist/browser-prod/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  159. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  160. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  161. package/dist/browser-prod/_virtual/with-selector.development.mjs +0 -5
  162. package/dist/browser-prod/_virtual/with-selector.development.mjs.map +0 -1
  163. package/dist/browser-prod/_virtual/with-selector.mjs +0 -6
  164. package/dist/browser-prod/_virtual/with-selector.mjs.map +0 -1
  165. package/dist/browser-prod/_virtual/with-selector.production.mjs +0 -5
  166. package/dist/browser-prod/_virtual/with-selector.production.mjs.map +0 -1
  167. package/dist/browser-prod/_virtual/with-selector2.mjs +0 -5
  168. package/dist/browser-prod/_virtual/with-selector2.mjs.map +0 -1
  169. package/dist/browser-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs +0 -89
  170. package/dist/browser-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  171. package/dist/browser-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  172. package/dist/browser-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  173. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  174. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  175. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  176. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  177. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  178. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  179. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  180. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  181. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  182. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  183. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  184. package/dist/browser-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  185. package/dist/node-dev/_virtual/index.js +0 -5
  186. package/dist/node-dev/_virtual/index.js.map +0 -1
  187. package/dist/node-dev/_virtual/index.mjs +0 -5
  188. package/dist/node-dev/_virtual/index.mjs.map +0 -1
  189. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.js +0 -5
  190. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  191. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  192. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  193. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js +0 -5
  194. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  195. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  196. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  197. package/dist/node-dev/_virtual/with-selector.development.js +0 -5
  198. package/dist/node-dev/_virtual/with-selector.development.js.map +0 -1
  199. package/dist/node-dev/_virtual/with-selector.development.mjs +0 -5
  200. package/dist/node-dev/_virtual/with-selector.development.mjs.map +0 -1
  201. package/dist/node-dev/_virtual/with-selector.js +0 -6
  202. package/dist/node-dev/_virtual/with-selector.js.map +0 -1
  203. package/dist/node-dev/_virtual/with-selector.mjs +0 -6
  204. package/dist/node-dev/_virtual/with-selector.mjs.map +0 -1
  205. package/dist/node-dev/_virtual/with-selector.production.js +0 -5
  206. package/dist/node-dev/_virtual/with-selector.production.js.map +0 -1
  207. package/dist/node-dev/_virtual/with-selector.production.mjs +0 -5
  208. package/dist/node-dev/_virtual/with-selector.production.mjs.map +0 -1
  209. package/dist/node-dev/_virtual/with-selector2.js +0 -5
  210. package/dist/node-dev/_virtual/with-selector2.js.map +0 -1
  211. package/dist/node-dev/_virtual/with-selector2.mjs +0 -5
  212. package/dist/node-dev/_virtual/with-selector2.mjs.map +0 -1
  213. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.js +0 -89
  214. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.js.map +0 -1
  215. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs +0 -89
  216. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  217. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.js +0 -28
  218. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.js.map +0 -1
  219. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  220. package/dist/node-dev/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  221. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
  222. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  223. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  224. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  225. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
  226. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  227. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  228. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  229. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
  230. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  231. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  232. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  233. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
  234. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  235. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  236. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  237. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js +0 -18
  238. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  239. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  240. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  241. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js +0 -18
  242. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  243. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  244. package/dist/node-dev/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  245. package/dist/node-prod/_virtual/index.js +0 -5
  246. package/dist/node-prod/_virtual/index.js.map +0 -1
  247. package/dist/node-prod/_virtual/index.mjs +0 -5
  248. package/dist/node-prod/_virtual/index.mjs.map +0 -1
  249. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.js +0 -5
  250. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  251. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  252. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  253. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js +0 -5
  254. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  255. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  256. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  257. package/dist/node-prod/_virtual/with-selector.development.js +0 -5
  258. package/dist/node-prod/_virtual/with-selector.development.js.map +0 -1
  259. package/dist/node-prod/_virtual/with-selector.development.mjs +0 -5
  260. package/dist/node-prod/_virtual/with-selector.development.mjs.map +0 -1
  261. package/dist/node-prod/_virtual/with-selector.js +0 -6
  262. package/dist/node-prod/_virtual/with-selector.js.map +0 -1
  263. package/dist/node-prod/_virtual/with-selector.mjs +0 -6
  264. package/dist/node-prod/_virtual/with-selector.mjs.map +0 -1
  265. package/dist/node-prod/_virtual/with-selector.production.js +0 -5
  266. package/dist/node-prod/_virtual/with-selector.production.js.map +0 -1
  267. package/dist/node-prod/_virtual/with-selector.production.mjs +0 -5
  268. package/dist/node-prod/_virtual/with-selector.production.mjs.map +0 -1
  269. package/dist/node-prod/_virtual/with-selector2.js +0 -5
  270. package/dist/node-prod/_virtual/with-selector2.js.map +0 -1
  271. package/dist/node-prod/_virtual/with-selector2.mjs +0 -5
  272. package/dist/node-prod/_virtual/with-selector2.mjs.map +0 -1
  273. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.js +0 -89
  274. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.js.map +0 -1
  275. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs +0 -89
  276. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  277. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.js +0 -28
  278. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.js.map +0 -1
  279. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  280. package/dist/node-prod/node_modules/.pnpm/@xstate_react@3.2.1_@types_react@18.3.28_@xstate_fsm@2.0.0_react@18.3.1/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  281. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
  282. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  283. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  284. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  285. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
  286. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  287. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  288. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  289. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
  290. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  291. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  292. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  293. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
  294. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  295. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  296. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  297. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js +0 -18
  298. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  299. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  300. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  301. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js +0 -18
  302. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  303. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  304. package/dist/node-prod/node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
@@ -11,11 +11,11 @@ export declare function useCartAPIStateMachine({ numCartLines, onCartActionEntry
11
11
  onCartActionOptimisticUI?: (context: CartMachineContext, event: CartMachineEvent) => Partial<CartMachineContext>;
12
12
  /** A callback that is invoked after a Cart API completes. */
13
13
  onCartActionComplete?: (context: CartMachineContext, event: CartMachineFetchResultEvent) => void;
14
- /** An object with fields that correspond to the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-01/objects/cart). */
14
+ /** An object with fields that correspond to the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-04/objects/cart). */
15
15
  data?: PartialDeep<CartType, {
16
16
  recurseIntoArrays: true;
17
17
  }>;
18
- /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-01/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
18
+ /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-04/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
19
19
  cartFragment: string;
20
20
  /** The ISO country code for i18n. */
21
21
  countryCode?: CountryCode;
@@ -6,12 +6,12 @@ type CartResponse = PartialDeep<CartType, {
6
6
  /**
7
7
  * The `useCartActions` hook returns helper graphql functions for Storefront Cart API
8
8
  *
9
- * See [cart API graphql mutations](https://shopify.dev/api/storefront/2026-01/objects/Cart)
9
+ * See [cart API graphql mutations](https://shopify.dev/api/storefront/2026-04/objects/Cart)
10
10
  */
11
11
  export declare function useCartActions({ numCartLines, cartFragment, countryCode, languageCode, }: {
12
12
  /** Maximum number of cart lines to fetch. Defaults to 250 cart lines. */
13
13
  numCartLines?: number;
14
- /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-01/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
14
+ /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-04/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
15
15
  cartFragment: string;
16
16
  /** The ISO country code for i18n. Default to `US` */
17
17
  countryCode?: CountryCode;
@@ -0,0 +1,11 @@
1
+ import { StateMachine, EventObject } from '@xstate/fsm';
2
+ export declare function useMachine<TC extends object, TE extends EventObject, TS extends {
3
+ value: any;
4
+ context: TC;
5
+ }>(stateMachine: StateMachine.Machine<TC, TE, TS>, options?: {
6
+ actions?: StateMachine.ActionMap<TC, TE>;
7
+ }): readonly [
8
+ StateMachine.State<TC, TE, TS>,
9
+ StateMachine.Service<TC, TE, TS>['send'],
10
+ StateMachine.Service<TC, TE, TS>
11
+ ];
@@ -59,8 +59,8 @@ export type UseMoneyValue = {
59
59
  withoutTrailingZerosAndCurrency: string;
60
60
  };
61
61
  /**
62
- * The `useMoney` hook takes a [MoneyV2 object from the Storefront API](https://shopify.dev/docs/api/storefront/2026-01/objects/MoneyV2)
63
- * or a [MoneyV2 object from the Customer Account API](https://shopify.dev/docs/api/customer/2026-01/objects/moneyv2) and returns a
62
+ * The `useMoney` hook takes a [MoneyV2 object from the Storefront API](https://shopify.dev/docs/api/storefront/2026-04/objects/MoneyV2)
63
+ * or a [MoneyV2 object from the Customer Account API](https://shopify.dev/docs/api/customer/2026-04/objects/moneyv2) and returns a
64
64
  * default-formatted string of the amount with the correct currency indicator, along with some of the parts provided by
65
65
  * [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).
66
66
  * Uses `locale` from `ShopifyProvider`
@@ -163,261 +163,66 @@
163
163
  } };
164
164
  return c2;
165
165
  }
166
- var index = React$1.useLayoutEffect;
167
- var withSelector = { exports: {} };
168
- var withSelector_development = {};
169
- var shim = { exports: {} };
170
- var useSyncExternalStoreShim_development = {};
171
- var hasRequiredUseSyncExternalStoreShim_development;
172
- function requireUseSyncExternalStoreShim_development() {
173
- if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
174
- hasRequiredUseSyncExternalStoreShim_development = 1;
175
- /**
176
- * @license React
177
- * use-sync-external-store-shim.development.js
178
- *
179
- * Copyright (c) Meta Platforms, Inc. and affiliates.
180
- *
181
- * This source code is licensed under the MIT license found in the
182
- * LICENSE file in the root directory of this source tree.
183
- */
184
- (function() {
185
- function is(x, y) {
186
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
187
- }
188
- function useSyncExternalStore$2(subscribe, getSnapshot) {
189
- didWarnOld18Alpha || void 0 === React2.startTransition || (didWarnOld18Alpha = true, console.error(
190
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
191
- ));
192
- var value = getSnapshot();
193
- if (!didWarnUncachedGetSnapshot) {
194
- var cachedValue = getSnapshot();
195
- objectIs(value, cachedValue) || (console.error(
196
- "The result of getSnapshot should be cached to avoid an infinite loop"
197
- ), didWarnUncachedGetSnapshot = true);
198
- }
199
- cachedValue = useState({
200
- inst: { value, getSnapshot }
201
- });
202
- var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
203
- useLayoutEffect(
204
- function() {
205
- inst.value = value;
206
- inst.getSnapshot = getSnapshot;
207
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
208
- },
209
- [subscribe, value, getSnapshot]
210
- );
211
- useEffect(
212
- function() {
213
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
214
- return subscribe(function() {
215
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
216
- });
217
- },
218
- [subscribe]
219
- );
220
- useDebugValue(value);
221
- return value;
222
- }
223
- function checkIfSnapshotChanged(inst) {
224
- var latestGetSnapshot = inst.getSnapshot;
225
- inst = inst.value;
226
- try {
227
- var nextValue = latestGetSnapshot();
228
- return !objectIs(inst, nextValue);
229
- } catch (error) {
230
- return true;
231
- }
232
- }
233
- function useSyncExternalStore$1(subscribe, getSnapshot) {
234
- return getSnapshot();
235
- }
236
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
237
- var React2 = React$1, objectIs = "function" === typeof Object.is ? Object.is : is, useState = React2.useState, useEffect = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue = React2.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
238
- useSyncExternalStoreShim_development.useSyncExternalStore = void 0 !== React2.useSyncExternalStore ? React2.useSyncExternalStore : shim2;
239
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
240
- })();
241
- return useSyncExternalStoreShim_development;
242
- }
243
- var hasRequiredShim;
244
- function requireShim() {
245
- if (hasRequiredShim) return shim.exports;
246
- hasRequiredShim = 1;
247
- {
248
- shim.exports = requireUseSyncExternalStoreShim_development();
249
- }
250
- return shim.exports;
251
- }
252
- var hasRequiredWithSelector_development;
253
- function requireWithSelector_development() {
254
- if (hasRequiredWithSelector_development) return withSelector_development;
255
- hasRequiredWithSelector_development = 1;
256
- /**
257
- * @license React
258
- * use-sync-external-store-shim/with-selector.development.js
259
- *
260
- * Copyright (c) Meta Platforms, Inc. and affiliates.
261
- *
262
- * This source code is licensed under the MIT license found in the
263
- * LICENSE file in the root directory of this source tree.
264
- */
265
- (function() {
266
- function is(x, y) {
267
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
268
- }
269
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
270
- var React2 = React$1, shim2 = requireShim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef = React2.useRef, useEffect = React2.useEffect, useMemo = React2.useMemo, useDebugValue = React2.useDebugValue;
271
- withSelector_development.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
272
- var instRef = useRef(null);
273
- if (null === instRef.current) {
274
- var inst = { hasValue: false, value: null };
275
- instRef.current = inst;
276
- } else inst = instRef.current;
277
- instRef = useMemo(
278
- function() {
279
- function memoizedSelector(nextSnapshot) {
280
- if (!hasMemo) {
281
- hasMemo = true;
282
- memoizedSnapshot = nextSnapshot;
283
- nextSnapshot = selector(nextSnapshot);
284
- if (void 0 !== isEqual2 && inst.hasValue) {
285
- var currentSelection = inst.value;
286
- if (isEqual2(currentSelection, nextSnapshot))
287
- return memoizedSelection = currentSelection;
288
- }
289
- return memoizedSelection = nextSnapshot;
290
- }
291
- currentSelection = memoizedSelection;
292
- if (objectIs(memoizedSnapshot, nextSnapshot))
293
- return currentSelection;
294
- var nextSelection = selector(nextSnapshot);
295
- if (void 0 !== isEqual2 && isEqual2(currentSelection, nextSelection))
296
- return memoizedSnapshot = nextSnapshot, currentSelection;
297
- memoizedSnapshot = nextSnapshot;
298
- return memoizedSelection = nextSelection;
299
- }
300
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
301
- return [
302
- function() {
303
- return memoizedSelector(getSnapshot());
304
- },
305
- null === maybeGetServerSnapshot ? void 0 : function() {
306
- return memoizedSelector(maybeGetServerSnapshot());
307
- }
308
- ];
309
- },
310
- [getSnapshot, getServerSnapshot, selector, isEqual2]
311
- );
312
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
313
- useEffect(
314
- function() {
315
- inst.hasValue = true;
316
- inst.value = value;
317
- },
318
- [value]
319
- );
320
- useDebugValue(value);
321
- return value;
322
- };
323
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
324
- })();
325
- return withSelector_development;
326
- }
327
- var hasRequiredWithSelector;
328
- function requireWithSelector() {
329
- if (hasRequiredWithSelector) return withSelector.exports;
330
- hasRequiredWithSelector = 1;
331
- {
332
- withSelector.exports = requireWithSelector_development();
333
- }
334
- return withSelector.exports;
335
- }
336
- var withSelectorExports = requireWithSelector();
166
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
337
167
  function useConstant(fn) {
338
- var ref = React__namespace.useRef();
168
+ const ref = React$1.useRef();
339
169
  if (!ref.current) {
340
170
  ref.current = { v: fn() };
341
171
  }
342
172
  return ref.current.v;
343
173
  }
344
- var __read = function(o2, n2) {
345
- var m = typeof Symbol === "function" && o2[Symbol.iterator];
346
- if (!m) return o2;
347
- var i2 = m.call(o2), r2, ar = [], e2;
348
- try {
349
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done) ar.push(r2.value);
350
- } catch (error) {
351
- e2 = { error };
352
- } finally {
353
- try {
354
- if (r2 && !r2.done && (m = i2["return"])) m.call(i2);
355
- } finally {
356
- if (e2) throw e2.error;
357
- }
358
- }
359
- return ar;
360
- };
361
- function identity(a2) {
362
- return a2;
363
- }
364
- var getServiceState = function(service) {
365
- var currentValue;
366
- service.subscribe(function(state) {
367
- currentValue = state;
368
- }).unsubscribe();
174
+ function getServiceState(service) {
175
+ let currentValue;
176
+ service.subscribe((state) => currentValue = state).unsubscribe();
369
177
  return currentValue;
370
- };
178
+ }
371
179
  function useMachine(stateMachine, options) {
372
- var persistedStateRef = React$1.useRef();
373
- {
374
- var _a = __read(React$1.useState(stateMachine), 1), initialMachine = _a[0];
375
- if (stateMachine !== initialMachine) {
376
- console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.");
377
- }
378
- }
379
- var _b = __read(useConstant(function() {
380
- var queue2 = [];
381
- var service2 = v(s(stateMachine.config, options ? options : stateMachine._options));
382
- var send = service2.send;
383
- service2.send = function(event) {
384
- if (service2.status === n.NotStarted) {
385
- queue2.push(event);
180
+ const persistedStateRef = React$1.useRef();
181
+ const [service, queue] = useConstant(() => {
182
+ const eventQueue = [];
183
+ const svc = v(
184
+ s(
185
+ stateMachine.config,
186
+ options ? options : stateMachine._options
187
+ )
188
+ );
189
+ const originalSend = svc.send;
190
+ svc.send = (event) => {
191
+ if (svc.status === n.NotStarted) {
192
+ eventQueue.push(event);
386
193
  return;
387
194
  }
388
- send(event);
389
- persistedStateRef.current = service2.state;
195
+ originalSend(event);
196
+ persistedStateRef.current = svc.state;
390
197
  };
391
- return [service2, queue2];
392
- }), 2), service = _b[0], queue = _b[1];
393
- index(function() {
198
+ return [svc, eventQueue];
199
+ });
200
+ useIsomorphicLayoutEffect(() => {
394
201
  if (options) {
395
202
  service._machine._options = options;
396
203
  }
397
204
  });
398
- var useServiceResult = useService(service);
399
- React$1.useEffect(function() {
205
+ const getSnapshot = React$1.useCallback(() => getServiceState(service), [service]);
206
+ const subscribe = React$1.useCallback(
207
+ (handleStoreChange) => {
208
+ const { unsubscribe } = service.subscribe(handleStoreChange);
209
+ return unsubscribe;
210
+ },
211
+ [service]
212
+ );
213
+ const storeSnapshot = React$1.useSyncExternalStore(
214
+ subscribe,
215
+ getSnapshot,
216
+ getSnapshot
217
+ );
218
+ React$1.useEffect(() => {
400
219
  service.start(persistedStateRef.current);
401
220
  queue.forEach(service.send);
402
221
  persistedStateRef.current = service.state;
403
- return function() {
222
+ return () => {
404
223
  service.stop();
405
224
  };
406
225
  }, []);
407
- return useServiceResult;
408
- }
409
- var isEqual = function(_prevState, nextState) {
410
- return nextState.changed === false;
411
- };
412
- function useService(service) {
413
- var getSnapshot = React$1.useCallback(function() {
414
- return getServiceState(service);
415
- }, [service]);
416
- var subscribe = React$1.useCallback(function(handleStoreChange) {
417
- var unsubscribe = service.subscribe(handleStoreChange).unsubscribe;
418
- return unsubscribe;
419
- }, [service]);
420
- var storeSnapshot = withSelectorExports.useSyncExternalStoreWithSelector(subscribe, getSnapshot, getSnapshot, identity, isEqual);
421
226
  return [storeSnapshot, service.send, service];
422
227
  }
423
228
  function flattenConnection(connection) {
@@ -782,7 +587,7 @@
782
587
  }
783
588
  `
784
589
  );
785
- const SFAPI_VERSION = "2026-01";
590
+ const SFAPI_VERSION = "2026-04";
786
591
  const MOCK_SHOP_DOMAIN = "mock.shop";
787
592
  const isMockShop = (domain) => domain.includes(MOCK_SHOP_DOMAIN);
788
593
  function createStorefrontClient({
@@ -2478,7 +2283,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
2478
2283
  }
2479
2284
  return false;
2480
2285
  }
2481
- const version = "2026.1.1";
2286
+ const version = "2026.4.0";
2482
2287
  const SCHEMA_ID = "custom_storefront_customer_tracking/1.2";
2483
2288
  const PAGE_RENDERED_EVENT_NAME = "page_rendered";
2484
2289
  const COLLECTION_PAGE_RENDERED_EVENT_NAME = "collection_page_rendered";
@@ -3284,7 +3089,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
3284
3089
  const stripVersion = (encodedVariantField) => encodedVariantField.replace(/^v1_/, "");
3285
3090
  function v1Decoder(encodedVariantField) {
3286
3091
  const tokenizer = /[ :,-]/g;
3287
- let index2 = 0;
3092
+ let index = 0;
3288
3093
  let token;
3289
3094
  const options = [];
3290
3095
  const currentOptionValue = [];
@@ -3292,7 +3097,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
3292
3097
  let rangeStart = null;
3293
3098
  while (token = tokenizer.exec(encodedVariantField)) {
3294
3099
  const operation = token[0];
3295
- const optionValueIndex = Number.parseInt(encodedVariantField.slice(index2, token.index)) || 0;
3100
+ const optionValueIndex = Number.parseInt(encodedVariantField.slice(index, token.index)) || 0;
3296
3101
  if (rangeStart !== null) {
3297
3102
  for (; rangeStart < optionValueIndex; rangeStart++) {
3298
3103
  currentOptionValue[depth] = rangeStart;
@@ -3314,7 +3119,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
3314
3119
  depth--;
3315
3120
  }
3316
3121
  }
3317
- index2 = tokenizer.lastIndex;
3122
+ index = tokenizer.lastIndex;
3318
3123
  }
3319
3124
  const encodingEndsWithIndex = encodedVariantField.match(/\d+$/g);
3320
3125
  if (encodingEndsWithIndex) {
@@ -3337,8 +3142,8 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
3337
3142
  return {
3338
3143
  [option.name]: Object.assign(
3339
3144
  {},
3340
- ...(option == null ? void 0 : option.optionValues) ? option.optionValues.map((value, index2) => {
3341
- return { [value.name]: index2 };
3145
+ ...(option == null ? void 0 : option.optionValues) ? option.optionValues.map((value, index) => {
3146
+ return { [value.name]: index };
3342
3147
  }) : []
3343
3148
  )
3344
3149
  };
@@ -4474,7 +4279,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4474
4279
  );
4475
4280
  }
4476
4281
  }
4477
- function serializeRichTextASTNode(components = {}, node, index2 = 0) {
4282
+ function serializeRichTextASTNode(components = {}, node, index = 0) {
4478
4283
  let children;
4479
4284
  if ("children" in node) {
4480
4285
  children = node.children.map(
@@ -4487,7 +4292,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4487
4292
  return React$1.createElement(
4488
4293
  Component,
4489
4294
  {
4490
- key: index2,
4295
+ key: index,
4491
4296
  node: {
4492
4297
  type: "root",
4493
4298
  children
@@ -4498,7 +4303,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4498
4303
  return React$1.createElement(
4499
4304
  Component,
4500
4305
  {
4501
- key: index2,
4306
+ key: index,
4502
4307
  node: {
4503
4308
  type: "heading",
4504
4309
  level: node.level,
@@ -4510,7 +4315,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4510
4315
  return React$1.createElement(
4511
4316
  Component,
4512
4317
  {
4513
- key: index2,
4318
+ key: index,
4514
4319
  node: {
4515
4320
  type: "paragraph",
4516
4321
  children
@@ -4519,7 +4324,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4519
4324
  );
4520
4325
  case "text": {
4521
4326
  const elements = (node.value ?? "").split("\n").flatMap((value, subindex) => {
4522
- const key = `${index2}-${value}-${subindex}`;
4327
+ const key = `${index}-${value}-${subindex}`;
4523
4328
  const textElement = React$1.createElement(
4524
4329
  Component,
4525
4330
  {
@@ -4534,13 +4339,13 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4534
4339
  );
4535
4340
  return subindex === 0 ? textElement : [React$1.createElement("br", { key: `${key}-br` }), textElement];
4536
4341
  });
4537
- return elements.length > 1 ? React$1.createElement(React$1.Fragment, { key: index2 }, elements) : elements[0];
4342
+ return elements.length > 1 ? React$1.createElement(React$1.Fragment, { key: index }, elements) : elements[0];
4538
4343
  }
4539
4344
  case "link":
4540
4345
  return React$1.createElement(
4541
4346
  Component,
4542
4347
  {
4543
- key: index2,
4348
+ key: index,
4544
4349
  node: {
4545
4350
  type: "link",
4546
4351
  url: node.url,
@@ -4554,7 +4359,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4554
4359
  return React$1.createElement(
4555
4360
  Component,
4556
4361
  {
4557
- key: index2,
4362
+ key: index,
4558
4363
  node: {
4559
4364
  type: "list",
4560
4365
  listType: node.listType,
@@ -4566,7 +4371,7 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4566
4371
  return React$1.createElement(
4567
4372
  Component,
4568
4373
  {
4569
- key: index2,
4374
+ key: index,
4570
4375
  node: {
4571
4376
  type: "list-item",
4572
4377
  children
@@ -4727,8 +4532,8 @@ Refer to the authentication https://shopify.dev/api/storefront#authentication do
4727
4532
  const checkoutDomainParts = checkoutDomain.split(".").reverse();
4728
4533
  const currentDomainParts = currentDomain.split(".").reverse();
4729
4534
  const sameDomainParts = [];
4730
- checkoutDomainParts.forEach((part, index2) => {
4731
- if (part === currentDomainParts[index2]) {
4535
+ checkoutDomainParts.forEach((part, index) => {
4536
+ if (part === currentDomainParts[index]) {
4732
4537
  sameDomainParts.push(part);
4733
4538
  }
4734
4539
  });