@shopify/hydrogen-react 2026.1.0 → 2026.1.2

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 (287) hide show
  1. package/LICENSE.md +7 -0
  2. package/dist/browser-dev/AddToCartButton.mjs.map +1 -1
  3. package/dist/browser-dev/BuyNowButton.mjs.map +1 -1
  4. package/dist/browser-dev/CartCost.mjs.map +1 -1
  5. package/dist/browser-dev/CartLineProvider.mjs +1 -1
  6. package/dist/browser-dev/CartProvider.mjs +1 -1
  7. package/dist/browser-dev/ProductPrice.mjs.map +1 -1
  8. package/dist/browser-dev/ProductProvider.mjs +1 -1
  9. package/dist/browser-dev/ShopifyProvider.mjs +1 -1
  10. package/dist/browser-dev/ShopifyProvider.mjs.map +1 -1
  11. package/dist/browser-dev/analytics-schema-custom-storefront-customer-tracking.mjs +1 -1
  12. package/dist/{node-dev/packages/hydrogen-react → browser-dev}/package.json.mjs +1 -1
  13. package/dist/browser-dev/useCartAPIStateMachine.mjs +9 -9
  14. package/dist/browser-dev/useCartAPIStateMachine.mjs.map +1 -1
  15. package/dist/browser-dev/useMachine.mjs +68 -0
  16. package/dist/browser-dev/useMachine.mjs.map +1 -0
  17. package/dist/browser-prod/AddToCartButton.mjs.map +1 -1
  18. package/dist/browser-prod/BuyNowButton.mjs.map +1 -1
  19. package/dist/browser-prod/CartCost.mjs.map +1 -1
  20. package/dist/browser-prod/CartLineProvider.mjs +1 -1
  21. package/dist/browser-prod/CartProvider.mjs +1 -1
  22. package/dist/browser-prod/ProductPrice.mjs.map +1 -1
  23. package/dist/browser-prod/ProductProvider.mjs +1 -1
  24. package/dist/browser-prod/ShopifyProvider.mjs +1 -1
  25. package/dist/browser-prod/ShopifyProvider.mjs.map +1 -1
  26. package/dist/browser-prod/analytics-schema-custom-storefront-customer-tracking.mjs +1 -1
  27. package/dist/browser-prod/{packages/hydrogen-react/package.json.mjs → package.json.mjs} +1 -1
  28. package/dist/browser-prod/useCartAPIStateMachine.mjs +9 -9
  29. package/dist/browser-prod/useCartAPIStateMachine.mjs.map +1 -1
  30. package/dist/browser-prod/useMachine.mjs +68 -0
  31. package/dist/browser-prod/useMachine.mjs.map +1 -0
  32. package/dist/node-dev/AddToCartButton.js.map +1 -1
  33. package/dist/node-dev/AddToCartButton.mjs.map +1 -1
  34. package/dist/node-dev/BuyNowButton.js.map +1 -1
  35. package/dist/node-dev/BuyNowButton.mjs.map +1 -1
  36. package/dist/node-dev/CartCost.js.map +1 -1
  37. package/dist/node-dev/CartCost.mjs.map +1 -1
  38. package/dist/node-dev/CartLineProvider.mjs +1 -1
  39. package/dist/node-dev/CartProvider.mjs +1 -1
  40. package/dist/node-dev/ProductPrice.js.map +1 -1
  41. package/dist/node-dev/ProductPrice.mjs.map +1 -1
  42. package/dist/node-dev/ProductProvider.mjs +1 -1
  43. package/dist/node-dev/ShopifyProvider.js.map +1 -1
  44. package/dist/node-dev/ShopifyProvider.mjs +1 -1
  45. package/dist/node-dev/ShopifyProvider.mjs.map +1 -1
  46. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.js +1 -1
  47. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.mjs +1 -1
  48. package/dist/{node-prod/packages/hydrogen-react → node-dev}/package.json.js +1 -1
  49. package/dist/{node-prod/packages/hydrogen-react → node-dev}/package.json.mjs +1 -1
  50. package/dist/node-dev/useCartAPIStateMachine.js +10 -10
  51. package/dist/node-dev/useCartAPIStateMachine.js.map +1 -1
  52. package/dist/node-dev/useCartAPIStateMachine.mjs +9 -9
  53. package/dist/node-dev/useCartAPIStateMachine.mjs.map +1 -1
  54. package/dist/node-dev/useMachine.js +68 -0
  55. package/dist/node-dev/useMachine.js.map +1 -0
  56. package/dist/node-dev/useMachine.mjs +68 -0
  57. package/dist/node-dev/useMachine.mjs.map +1 -0
  58. package/dist/node-prod/AddToCartButton.js.map +1 -1
  59. package/dist/node-prod/AddToCartButton.mjs.map +1 -1
  60. package/dist/node-prod/BuyNowButton.js.map +1 -1
  61. package/dist/node-prod/BuyNowButton.mjs.map +1 -1
  62. package/dist/node-prod/CartCost.js.map +1 -1
  63. package/dist/node-prod/CartCost.mjs.map +1 -1
  64. package/dist/node-prod/CartLineProvider.mjs +1 -1
  65. package/dist/node-prod/CartProvider.mjs +1 -1
  66. package/dist/node-prod/ProductPrice.js.map +1 -1
  67. package/dist/node-prod/ProductPrice.mjs.map +1 -1
  68. package/dist/node-prod/ProductProvider.mjs +1 -1
  69. package/dist/node-prod/ShopifyProvider.js.map +1 -1
  70. package/dist/node-prod/ShopifyProvider.mjs +1 -1
  71. package/dist/node-prod/ShopifyProvider.mjs.map +1 -1
  72. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.js +1 -1
  73. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.mjs +1 -1
  74. package/dist/{node-dev/packages/hydrogen-react → node-prod}/package.json.js +1 -1
  75. package/dist/{browser-dev/packages/hydrogen-react → node-prod}/package.json.mjs +1 -1
  76. package/dist/node-prod/useCartAPIStateMachine.js +10 -10
  77. package/dist/node-prod/useCartAPIStateMachine.js.map +1 -1
  78. package/dist/node-prod/useCartAPIStateMachine.mjs +9 -9
  79. package/dist/node-prod/useCartAPIStateMachine.mjs.map +1 -1
  80. package/dist/node-prod/useMachine.js +68 -0
  81. package/dist/node-prod/useMachine.js.map +1 -0
  82. package/dist/node-prod/useMachine.mjs +68 -0
  83. package/dist/node-prod/useMachine.mjs.map +1 -0
  84. package/dist/types/useMachine.d.ts +11 -0
  85. package/dist/umd/hydrogen-react.dev.js +56 -251
  86. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  87. package/dist/umd/hydrogen-react.prod.js +16 -32
  88. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  89. package/package.json +38 -44
  90. package/dist/browser-dev/_virtual/index.mjs +0 -5
  91. package/dist/browser-dev/_virtual/index.mjs.map +0 -1
  92. package/dist/browser-dev/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  93. package/dist/browser-dev/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  94. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  95. package/dist/browser-dev/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  96. package/dist/browser-dev/_virtual/with-selector.development.mjs +0 -5
  97. package/dist/browser-dev/_virtual/with-selector.development.mjs.map +0 -1
  98. package/dist/browser-dev/_virtual/with-selector.mjs +0 -6
  99. package/dist/browser-dev/_virtual/with-selector.mjs.map +0 -1
  100. package/dist/browser-dev/_virtual/with-selector.production.mjs +0 -5
  101. package/dist/browser-dev/_virtual/with-selector.production.mjs.map +0 -1
  102. package/dist/browser-dev/_virtual/with-selector2.mjs +0 -5
  103. package/dist/browser-dev/_virtual/with-selector2.mjs.map +0 -1
  104. package/dist/browser-dev/node_modules/@xstate/fsm/es/index.mjs +0 -151
  105. package/dist/browser-dev/node_modules/@xstate/fsm/es/index.mjs.map +0 -1
  106. package/dist/browser-dev/node_modules/@xstate/react/es/fsm.mjs +0 -89
  107. package/dist/browser-dev/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  108. package/dist/browser-dev/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  109. package/dist/browser-dev/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  110. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  111. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  112. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  113. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  114. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  115. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  116. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  117. package/dist/browser-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  118. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  119. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  120. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  121. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  122. package/dist/browser-prod/_virtual/index.mjs +0 -5
  123. package/dist/browser-prod/_virtual/index.mjs.map +0 -1
  124. package/dist/browser-prod/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  125. package/dist/browser-prod/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  126. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  127. package/dist/browser-prod/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  128. package/dist/browser-prod/_virtual/with-selector.development.mjs +0 -5
  129. package/dist/browser-prod/_virtual/with-selector.development.mjs.map +0 -1
  130. package/dist/browser-prod/_virtual/with-selector.mjs +0 -6
  131. package/dist/browser-prod/_virtual/with-selector.mjs.map +0 -1
  132. package/dist/browser-prod/_virtual/with-selector.production.mjs +0 -5
  133. package/dist/browser-prod/_virtual/with-selector.production.mjs.map +0 -1
  134. package/dist/browser-prod/_virtual/with-selector2.mjs +0 -5
  135. package/dist/browser-prod/_virtual/with-selector2.mjs.map +0 -1
  136. package/dist/browser-prod/node_modules/@xstate/fsm/es/index.mjs +0 -151
  137. package/dist/browser-prod/node_modules/@xstate/fsm/es/index.mjs.map +0 -1
  138. package/dist/browser-prod/node_modules/@xstate/react/es/fsm.mjs +0 -89
  139. package/dist/browser-prod/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  140. package/dist/browser-prod/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  141. package/dist/browser-prod/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  142. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  143. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  144. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  145. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  146. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  147. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  148. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  149. package/dist/browser-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  150. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  151. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  152. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  153. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  154. package/dist/node-dev/_virtual/index.js +0 -5
  155. package/dist/node-dev/_virtual/index.js.map +0 -1
  156. package/dist/node-dev/_virtual/index.mjs +0 -5
  157. package/dist/node-dev/_virtual/index.mjs.map +0 -1
  158. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.js +0 -5
  159. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  160. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  161. package/dist/node-dev/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  162. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js +0 -5
  163. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  164. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  165. package/dist/node-dev/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  166. package/dist/node-dev/_virtual/with-selector.development.js +0 -5
  167. package/dist/node-dev/_virtual/with-selector.development.js.map +0 -1
  168. package/dist/node-dev/_virtual/with-selector.development.mjs +0 -5
  169. package/dist/node-dev/_virtual/with-selector.development.mjs.map +0 -1
  170. package/dist/node-dev/_virtual/with-selector.js +0 -6
  171. package/dist/node-dev/_virtual/with-selector.js.map +0 -1
  172. package/dist/node-dev/_virtual/with-selector.mjs +0 -6
  173. package/dist/node-dev/_virtual/with-selector.mjs.map +0 -1
  174. package/dist/node-dev/_virtual/with-selector.production.js +0 -5
  175. package/dist/node-dev/_virtual/with-selector.production.js.map +0 -1
  176. package/dist/node-dev/_virtual/with-selector.production.mjs +0 -5
  177. package/dist/node-dev/_virtual/with-selector.production.mjs.map +0 -1
  178. package/dist/node-dev/_virtual/with-selector2.js +0 -5
  179. package/dist/node-dev/_virtual/with-selector2.js.map +0 -1
  180. package/dist/node-dev/_virtual/with-selector2.mjs +0 -5
  181. package/dist/node-dev/_virtual/with-selector2.mjs.map +0 -1
  182. package/dist/node-dev/node_modules/@xstate/fsm/es/index.js +0 -150
  183. package/dist/node-dev/node_modules/@xstate/fsm/es/index.js.map +0 -1
  184. package/dist/node-dev/node_modules/@xstate/fsm/es/index.mjs +0 -151
  185. package/dist/node-dev/node_modules/@xstate/fsm/es/index.mjs.map +0 -1
  186. package/dist/node-dev/node_modules/@xstate/react/es/fsm.js +0 -89
  187. package/dist/node-dev/node_modules/@xstate/react/es/fsm.js.map +0 -1
  188. package/dist/node-dev/node_modules/@xstate/react/es/fsm.mjs +0 -89
  189. package/dist/node-dev/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  190. package/dist/node-dev/node_modules/@xstate/react/es/useConstant.js +0 -28
  191. package/dist/node-dev/node_modules/@xstate/react/es/useConstant.js.map +0 -1
  192. package/dist/node-dev/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  193. package/dist/node-dev/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  194. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
  195. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  196. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  197. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  198. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
  199. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  200. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  201. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  202. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
  203. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  204. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  205. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  206. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
  207. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  208. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  209. package/dist/node-dev/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  210. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js +0 -18
  211. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  212. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  213. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  214. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js +0 -18
  215. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  216. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  217. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  218. package/dist/node-prod/_virtual/index.js +0 -5
  219. package/dist/node-prod/_virtual/index.js.map +0 -1
  220. package/dist/node-prod/_virtual/index.mjs +0 -5
  221. package/dist/node-prod/_virtual/index.mjs.map +0 -1
  222. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.js +0 -5
  223. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.js.map +0 -1
  224. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.mjs +0 -5
  225. package/dist/node-prod/_virtual/use-sync-external-store-shim.development.mjs.map +0 -1
  226. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js +0 -5
  227. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.js.map +0 -1
  228. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs +0 -5
  229. package/dist/node-prod/_virtual/use-sync-external-store-shim.production.mjs.map +0 -1
  230. package/dist/node-prod/_virtual/with-selector.development.js +0 -5
  231. package/dist/node-prod/_virtual/with-selector.development.js.map +0 -1
  232. package/dist/node-prod/_virtual/with-selector.development.mjs +0 -5
  233. package/dist/node-prod/_virtual/with-selector.development.mjs.map +0 -1
  234. package/dist/node-prod/_virtual/with-selector.js +0 -6
  235. package/dist/node-prod/_virtual/with-selector.js.map +0 -1
  236. package/dist/node-prod/_virtual/with-selector.mjs +0 -6
  237. package/dist/node-prod/_virtual/with-selector.mjs.map +0 -1
  238. package/dist/node-prod/_virtual/with-selector.production.js +0 -5
  239. package/dist/node-prod/_virtual/with-selector.production.js.map +0 -1
  240. package/dist/node-prod/_virtual/with-selector.production.mjs +0 -5
  241. package/dist/node-prod/_virtual/with-selector.production.mjs.map +0 -1
  242. package/dist/node-prod/_virtual/with-selector2.js +0 -5
  243. package/dist/node-prod/_virtual/with-selector2.js.map +0 -1
  244. package/dist/node-prod/_virtual/with-selector2.mjs +0 -5
  245. package/dist/node-prod/_virtual/with-selector2.mjs.map +0 -1
  246. package/dist/node-prod/node_modules/@xstate/fsm/es/index.js +0 -150
  247. package/dist/node-prod/node_modules/@xstate/fsm/es/index.js.map +0 -1
  248. package/dist/node-prod/node_modules/@xstate/fsm/es/index.mjs +0 -151
  249. package/dist/node-prod/node_modules/@xstate/fsm/es/index.mjs.map +0 -1
  250. package/dist/node-prod/node_modules/@xstate/react/es/fsm.js +0 -89
  251. package/dist/node-prod/node_modules/@xstate/react/es/fsm.js.map +0 -1
  252. package/dist/node-prod/node_modules/@xstate/react/es/fsm.mjs +0 -89
  253. package/dist/node-prod/node_modules/@xstate/react/es/fsm.mjs.map +0 -1
  254. package/dist/node-prod/node_modules/@xstate/react/es/useConstant.js +0 -28
  255. package/dist/node-prod/node_modules/@xstate/react/es/useConstant.js.map +0 -1
  256. package/dist/node-prod/node_modules/@xstate/react/es/useConstant.mjs +0 -12
  257. package/dist/node-prod/node_modules/@xstate/react/es/useConstant.mjs.map +0 -1
  258. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
  259. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
  260. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +0 -82
  261. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs.map +0 -1
  262. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
  263. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
  264. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +0 -78
  265. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs.map +0 -1
  266. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
  267. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
  268. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +0 -78
  269. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs.map +0 -1
  270. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
  271. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
  272. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +0 -63
  273. package/dist/node-prod/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs.map +0 -1
  274. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js +0 -18
  275. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js.map +0 -1
  276. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs +0 -18
  277. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs.map +0 -1
  278. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js +0 -18
  279. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
  280. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +0 -18
  281. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +0 -1
  282. /package/dist/browser-dev/{packages/hydrogen-react/package.json.mjs.map → package.json.mjs.map} +0 -0
  283. /package/dist/browser-prod/{packages/hydrogen-react/package.json.mjs.map → package.json.mjs.map} +0 -0
  284. /package/dist/node-dev/{packages/hydrogen-react/package.json.js.map → package.json.js.map} +0 -0
  285. /package/dist/node-dev/{packages/hydrogen-react/package.json.mjs.map → package.json.mjs.map} +0 -0
  286. /package/dist/node-prod/{packages/hydrogen-react/package.json.js.map → package.json.js.map} +0 -0
  287. /package/dist/node-prod/{packages/hydrogen-react/package.json.mjs.map → package.json.mjs.map} +0 -0
@@ -1,63 +0,0 @@
1
- import { __exports as useSyncExternalStoreShim_production } from "../../../_virtual/use-sync-external-store-shim.production.mjs";
2
- import React__default from "react";
3
- /**
4
- * @license React
5
- * use-sync-external-store-shim.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var hasRequiredUseSyncExternalStoreShim_production;
13
- function requireUseSyncExternalStoreShim_production() {
14
- if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
15
- hasRequiredUseSyncExternalStoreShim_production = 1;
16
- var React = React__default;
17
- function is(x, y) {
18
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
19
- }
20
- var objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue;
21
- function useSyncExternalStore$2(subscribe, getSnapshot) {
22
- var value = getSnapshot(), _useState = useState({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
23
- useLayoutEffect(
24
- function() {
25
- inst.value = value;
26
- inst.getSnapshot = getSnapshot;
27
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
28
- },
29
- [subscribe, value, getSnapshot]
30
- );
31
- useEffect(
32
- function() {
33
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
34
- return subscribe(function() {
35
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
36
- });
37
- },
38
- [subscribe]
39
- );
40
- useDebugValue(value);
41
- return value;
42
- }
43
- function checkIfSnapshotChanged(inst) {
44
- var latestGetSnapshot = inst.getSnapshot;
45
- inst = inst.value;
46
- try {
47
- var nextValue = latestGetSnapshot();
48
- return !objectIs(inst, nextValue);
49
- } catch (error) {
50
- return true;
51
- }
52
- }
53
- function useSyncExternalStore$1(subscribe, getSnapshot) {
54
- return getSnapshot();
55
- }
56
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
57
- useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
58
- return useSyncExternalStoreShim_production;
59
- }
60
- export {
61
- requireUseSyncExternalStoreShim_production as __require
62
- };
63
- //# sourceMappingURL=use-sync-external-store-shim.production.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-shim.production.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAI,QAAQA;AACZ,WAAS,GAAG,GAAG,GAAG;AAChB,WAAQ,MAAM,MAAM,MAAM,KAAK,IAAI,MAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;AAAA,EACxE;AACA,MAAI,WAAW,eAAe,OAAO,OAAO,KAAK,OAAO,KAAK,IAC3D,WAAW,MAAM,UACjB,YAAY,MAAM,WAClB,kBAAkB,MAAM,iBACxB,gBAAgB,MAAM;AACxB,WAAS,uBAAuB,WAAW,aAAa;AACtD,QAAI,QAAQ,YAAW,GACrB,YAAY,SAAS,EAAE,MAAM,EAAE,OAAc,YAAwB,GAAI,GACzE,OAAO,UAAU,CAAC,EAAE,MACpB,cAAc,UAAU,CAAC;AAC3B;AAAA,MACE,WAAY;AACV,aAAK,QAAQ;AACb,aAAK,cAAc;AACnB,+BAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAAA,MAChE;AAAA,MACI,CAAC,WAAW,OAAO,WAAW;AAAA;AAEhC;AAAA,MACE,WAAY;AACV,+BAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAC1D,eAAO,UAAU,WAAY;AAC3B,iCAAuB,IAAI,KAAK,YAAY,EAAE,KAAU,CAAE;AAAA,QAClE,CAAO;AAAA,MACP;AAAA,MACI,CAAC,SAAS;AAAA;AAEZ,kBAAc,KAAK;AACnB,WAAO;AAAA,EACT;AACA,WAAS,uBAAuB,MAAM;AACpC,QAAI,oBAAoB,KAAK;AAC7B,WAAO,KAAK;AACZ,QAAI;AACF,UAAI,YAAY,kBAAiB;AACjC,aAAO,CAAC,SAAS,MAAM,SAAS;AAAA,IACpC,SAAW,OAAO;AACd,aAAO;AAAA,IACX;AAAA,EACA;AACA,WAAS,uBAAuB,WAAW,aAAa;AACtD,WAAO,YAAW;AAAA,EACpB;AACA,MAAI,OACF,gBAAgB,OAAO,UACvB,gBAAgB,OAAO,OAAO,YAC9B,gBAAgB,OAAO,OAAO,SAAS,gBACnC,yBACA;AACN,sCAAA,uBACE,WAAW,MAAM,uBAAuB,MAAM,uBAAuB;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../_virtual/index.js");
4
- const useSyncExternalStoreShim_production = require("../cjs/use-sync-external-store-shim.production.js");
5
- const useSyncExternalStoreShim_development = require("../cjs/use-sync-external-store-shim.development.js");
6
- var hasRequiredShim;
7
- function requireShim() {
8
- if (hasRequiredShim) return index.__module.exports;
9
- hasRequiredShim = 1;
10
- if (process.env.NODE_ENV === "production") {
11
- index.__module.exports = useSyncExternalStoreShim_production.__require();
12
- } else {
13
- index.__module.exports = useSyncExternalStoreShim_development.__require();
14
- }
15
- return index.__module.exports;
16
- }
17
- exports.__require = requireShim;
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["shimModule","require$$0","require$$1"],"mappings":";;;;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,UAAAA,SAAA,UAAiBC,8CAAA;AAAA,EACnB,OAAO;AACLD,UAAAA,SAAA,UAAiBE,+CAAA;AAAA,EACnB;;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- import { __module as shim } from "../../../_virtual/index.mjs";
2
- import { __require as requireUseSyncExternalStoreShim_production } from "../cjs/use-sync-external-store-shim.production.mjs";
3
- import { __require as requireUseSyncExternalStoreShim_development } from "../cjs/use-sync-external-store-shim.development.mjs";
4
- var hasRequiredShim;
5
- function requireShim() {
6
- if (hasRequiredShim) return shim.exports;
7
- hasRequiredShim = 1;
8
- if (process.env.NODE_ENV === "production") {
9
- shim.exports = requireUseSyncExternalStoreShim_production();
10
- } else {
11
- shim.exports = requireUseSyncExternalStoreShim_development();
12
- }
13
- return shim.exports;
14
- }
15
- export {
16
- requireShim as __require
17
- };
18
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["shimModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,SAAA,UAAiBC,2CAAA;AAAA,EACnB,OAAO;AACLD,SAAA,UAAiBE,4CAAA;AAAA,EACnB;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const withSelector = require("../../../_virtual/with-selector2.js");
4
- const withSelector_production = require("../cjs/use-sync-external-store-shim/with-selector.production.js");
5
- const withSelector_development = require("../cjs/use-sync-external-store-shim/with-selector.development.js");
6
- var hasRequiredWithSelector;
7
- function requireWithSelector() {
8
- if (hasRequiredWithSelector) return withSelector.__module.exports;
9
- hasRequiredWithSelector = 1;
10
- if (process.env.NODE_ENV === "production") {
11
- withSelector.__module.exports = withSelector_production.__require();
12
- } else {
13
- withSelector.__module.exports = withSelector_development.__require();
14
- }
15
- return withSelector.__module.exports;
16
- }
17
- exports.__require = requireWithSelector;
18
- //# sourceMappingURL=with-selector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.js","sources":["../../../../../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"names":["withSelectorModule","require$$0","require$$1"],"mappings":";;;;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,iBAAAA,SAAA,UAAiBC,kCAAA;AAAA,EACnB,OAAO;AACLD,iBAAAA,SAAA,UAAiBE,mCAAA;AAAA,EACnB;;;;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- import { __module as withSelector } from "../../../_virtual/with-selector2.mjs";
2
- import { __require as requireWithSelector_production } from "../cjs/use-sync-external-store-shim/with-selector.production.mjs";
3
- import { __require as requireWithSelector_development } from "../cjs/use-sync-external-store-shim/with-selector.development.mjs";
4
- var hasRequiredWithSelector;
5
- function requireWithSelector() {
6
- if (hasRequiredWithSelector) return withSelector.exports;
7
- hasRequiredWithSelector = 1;
8
- if (process.env.NODE_ENV === "production") {
9
- withSelector.exports = requireWithSelector_production();
10
- } else {
11
- withSelector.exports = requireWithSelector_development();
12
- }
13
- return withSelector.exports;
14
- }
15
- export {
16
- requireWithSelector as __require
17
- };
18
- //# sourceMappingURL=with-selector.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.mjs","sources":["../../../../../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"names":["withSelectorModule","require$$0","require$$1"],"mappings":";;;;;;;AAEA,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzCA,iBAAA,UAAiBC,+BAAA;AAAA,EACnB,OAAO;AACLD,iBAAA,UAAiBE,gCAAA;AAAA,EACnB;;;","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var shim = { exports: {} };
4
- exports.__module = shim;
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var shim = { exports: {} };
2
- export {
3
- shim as __module
4
- };
5
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var useSyncExternalStoreShim_development = {};
4
- exports.__exports = useSyncExternalStoreShim_development;
5
- //# sourceMappingURL=use-sync-external-store-shim.development.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-shim.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var useSyncExternalStoreShim_development = {};
2
- export {
3
- useSyncExternalStoreShim_development as __exports
4
- };
5
- //# sourceMappingURL=use-sync-external-store-shim.development.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-shim.development.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var useSyncExternalStoreShim_production = {};
4
- exports.__exports = useSyncExternalStoreShim_production;
5
- //# sourceMappingURL=use-sync-external-store-shim.production.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-shim.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var useSyncExternalStoreShim_production = {};
2
- export {
3
- useSyncExternalStoreShim_production as __exports
4
- };
5
- //# sourceMappingURL=use-sync-external-store-shim.production.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-sync-external-store-shim.production.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var withSelector_development = {};
4
- exports.__exports = withSelector_development;
5
- //# sourceMappingURL=with-selector.development.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var withSelector_development = {};
2
- export {
3
- withSelector_development as __exports
4
- };
5
- //# sourceMappingURL=with-selector.development.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.development.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const withSelector = require("../node_modules/use-sync-external-store/shim/with-selector.js");
4
- var withSelectorExports = withSelector.__require();
5
- exports.withSelectorExports = withSelectorExports;
6
- //# sourceMappingURL=with-selector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,6 +0,0 @@
1
- import { __require as requireWithSelector } from "../node_modules/use-sync-external-store/shim/with-selector.mjs";
2
- var withSelectorExports = requireWithSelector();
3
- export {
4
- withSelectorExports as w
5
- };
6
- //# sourceMappingURL=with-selector.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var withSelector_production = {};
4
- exports.__exports = withSelector_production;
5
- //# sourceMappingURL=with-selector.production.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var withSelector_production = {};
2
- export {
3
- withSelector_production as __exports
4
- };
5
- //# sourceMappingURL=with-selector.production.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector.production.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var withSelector = { exports: {} };
4
- exports.__module = withSelector;
5
- //# sourceMappingURL=with-selector2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +0,0 @@
1
- var withSelector = { exports: {} };
2
- export {
3
- withSelector as __module
4
- };
5
- //# sourceMappingURL=with-selector2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-selector2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,150 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- /*! *****************************************************************************
4
- Copyright (c) Microsoft Corporation.
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */
17
- function t(t2, n) {
18
- var e2 = "function" == typeof Symbol && t2[Symbol.iterator];
19
- if (!e2) return t2;
20
- var r2, i2, o2 = e2.call(t2), a2 = [];
21
- try {
22
- for (; (void 0 === n || n-- > 0) && !(r2 = o2.next()).done; ) a2.push(r2.value);
23
- } catch (t3) {
24
- i2 = { error: t3 };
25
- } finally {
26
- try {
27
- r2 && !r2.done && (e2 = o2.return) && e2.call(o2);
28
- } finally {
29
- if (i2) throw i2.error;
30
- }
31
- }
32
- return a2;
33
- }
34
- exports.InterpreterStatus = void 0;
35
- !(function(t2) {
36
- t2[t2.NotStarted = 0] = "NotStarted", t2[t2.Running = 1] = "Running", t2[t2.Stopped = 2] = "Stopped";
37
- })(exports.InterpreterStatus || (exports.InterpreterStatus = {}));
38
- var e = { type: "xstate.init" };
39
- function r(t2) {
40
- return void 0 === t2 ? [] : [].concat(t2);
41
- }
42
- function i(t2) {
43
- return { type: "xstate.assign", assignment: t2 };
44
- }
45
- function o(t2, n) {
46
- return "string" == typeof (t2 = "string" == typeof t2 && n && n[t2] ? n[t2] : t2) ? { type: t2 } : "function" == typeof t2 ? { type: t2.name, exec: t2 } : t2;
47
- }
48
- function a(t2) {
49
- return function(n) {
50
- return t2 === n;
51
- };
52
- }
53
- function u(t2) {
54
- return "string" == typeof t2 ? { type: t2 } : t2;
55
- }
56
- function c(t2, n) {
57
- return { value: t2, context: n, actions: [], changed: false, matches: a(t2) };
58
- }
59
- function f(t2, n, e2) {
60
- var r2 = n, i2 = false;
61
- return [t2.filter((function(t3) {
62
- if ("xstate.assign" === t3.type) {
63
- i2 = true;
64
- var n2 = Object.assign({}, r2);
65
- return "function" == typeof t3.assignment ? n2 = t3.assignment(r2, e2) : Object.keys(t3.assignment).forEach((function(i3) {
66
- n2[i3] = "function" == typeof t3.assignment[i3] ? t3.assignment[i3](r2, e2) : t3.assignment[i3];
67
- })), r2 = n2, false;
68
- }
69
- return true;
70
- })), r2, i2];
71
- }
72
- function s(n, i2) {
73
- void 0 === i2 && (i2 = {});
74
- var s2 = t(f(r(n.states[n.initial].entry).map((function(t2) {
75
- return o(t2, i2.actions);
76
- })), n.context, e), 2), l2 = s2[0], v2 = s2[1], y = { config: n, _options: i2, initialState: { value: n.initial, actions: l2, context: v2, matches: a(n.initial) }, transition: function(e2, i3) {
77
- var s3, l3, v3 = "string" == typeof e2 ? { value: e2, context: n.context } : e2, p = v3.value, g = v3.context, d = u(i3), x = n.states[p];
78
- if (x.on) {
79
- var m = r(x.on[d.type]);
80
- try {
81
- for (var h = (function(t2) {
82
- var n2 = "function" == typeof Symbol && Symbol.iterator, e3 = n2 && t2[n2], r2 = 0;
83
- if (e3) return e3.call(t2);
84
- if (t2 && "number" == typeof t2.length) return { next: function() {
85
- return t2 && r2 >= t2.length && (t2 = void 0), { value: t2 && t2[r2++], done: !t2 };
86
- } };
87
- throw new TypeError(n2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
88
- })(m), b = h.next(); !b.done; b = h.next()) {
89
- var S = b.value;
90
- if (void 0 === S) return c(p, g);
91
- var w = "string" == typeof S ? { target: S } : S, j = w.target, E = w.actions, R = void 0 === E ? [] : E, N = w.cond, O = void 0 === N ? function() {
92
- return true;
93
- } : N, _ = void 0 === j, k = null != j ? j : p, T = n.states[k];
94
- if (O(g, d)) {
95
- var q = t(f((_ ? r(R) : [].concat(x.exit, R, T.entry).filter((function(t2) {
96
- return t2;
97
- }))).map((function(t2) {
98
- return o(t2, y._options.actions);
99
- })), g, d), 3), z = q[0], A = q[1], B = q[2], C = null != j ? j : p;
100
- return { value: C, context: A, actions: z, changed: j !== p || z.length > 0 || B, matches: a(C) };
101
- }
102
- }
103
- } catch (t2) {
104
- s3 = { error: t2 };
105
- } finally {
106
- try {
107
- b && !b.done && (l3 = h.return) && l3.call(h);
108
- } finally {
109
- if (s3) throw s3.error;
110
- }
111
- }
112
- }
113
- return c(p, g);
114
- } };
115
- return y;
116
- }
117
- var l = function(t2, n) {
118
- return t2.actions.forEach((function(e2) {
119
- var r2 = e2.exec;
120
- return r2 && r2(t2.context, n);
121
- }));
122
- };
123
- function v(t2) {
124
- var r2 = t2.initialState, i2 = exports.InterpreterStatus.NotStarted, o2 = /* @__PURE__ */ new Set(), c2 = { _machine: t2, send: function(e2) {
125
- i2 === exports.InterpreterStatus.Running && (r2 = t2.transition(r2, e2), l(r2, u(e2)), o2.forEach((function(t3) {
126
- return t3(r2);
127
- })));
128
- }, subscribe: function(t3) {
129
- return o2.add(t3), t3(r2), { unsubscribe: function() {
130
- return o2.delete(t3);
131
- } };
132
- }, start: function(o3) {
133
- if (o3) {
134
- var u2 = "object" == typeof o3 ? o3 : { context: t2.config.context, value: o3 };
135
- r2 = { value: u2.value, actions: [], context: u2.context, matches: a(u2.value) };
136
- } else r2 = t2.initialState;
137
- return i2 = exports.InterpreterStatus.Running, l(r2, e), c2;
138
- }, stop: function() {
139
- return i2 = exports.InterpreterStatus.Stopped, o2.clear(), c2;
140
- }, get state() {
141
- return r2;
142
- }, get status() {
143
- return i2;
144
- } };
145
- return c2;
146
- }
147
- exports.assign = i;
148
- exports.createMachine = s;
149
- exports.interpret = v;
150
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@xstate/fsm/es/index.js"],"sourcesContent":["/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nfunction t(t,n){var e=\"function\"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,i,o=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return a}var n;!function(t){t[t.NotStarted=0]=\"NotStarted\",t[t.Running=1]=\"Running\",t[t.Stopped=2]=\"Stopped\"}(n||(n={}));var e={type:\"xstate.init\"};function r(t){return void 0===t?[]:[].concat(t)}function i(t){return{type:\"xstate.assign\",assignment:t}}function o(t,n){return\"string\"==typeof(t=\"string\"==typeof t&&n&&n[t]?n[t]:t)?{type:t}:\"function\"==typeof t?{type:t.name,exec:t}:t}function a(t){return function(n){return t===n}}function u(t){return\"string\"==typeof t?{type:t}:t}function c(t,n){return{value:t,context:n,actions:[],changed:!1,matches:a(t)}}function f(t,n,e){var r=n,i=!1;return[t.filter((function(t){if(\"xstate.assign\"===t.type){i=!0;var n=Object.assign({},r);return\"function\"==typeof t.assignment?n=t.assignment(r,e):Object.keys(t.assignment).forEach((function(i){n[i]=\"function\"==typeof t.assignment[i]?t.assignment[i](r,e):t.assignment[i]})),r=n,!1}return!0})),r,i]}function s(n,i){void 0===i&&(i={});var s=t(f(r(n.states[n.initial].entry).map((function(t){return o(t,i.actions)})),n.context,e),2),l=s[0],v=s[1],y={config:n,_options:i,initialState:{value:n.initial,actions:l,context:v,matches:a(n.initial)},transition:function(e,i){var s,l,v=\"string\"==typeof e?{value:e,context:n.context}:e,p=v.value,g=v.context,d=u(i),x=n.states[p];if(x.on){var m=r(x.on[d.type]);try{for(var h=function(t){var n=\"function\"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&\"number\"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}(m),b=h.next();!b.done;b=h.next()){var S=b.value;if(void 0===S)return c(p,g);var w=\"string\"==typeof S?{target:S}:S,j=w.target,E=w.actions,R=void 0===E?[]:E,N=w.cond,O=void 0===N?function(){return!0}:N,_=void 0===j,k=null!=j?j:p,T=n.states[k];if(O(g,d)){var q=t(f((_?r(R):[].concat(x.exit,R,T.entry).filter((function(t){return t}))).map((function(t){return o(t,y._options.actions)})),g,d),3),z=q[0],A=q[1],B=q[2],C=null!=j?j:p;return{value:C,context:A,actions:z,changed:j!==p||z.length>0||B,matches:a(C)}}}}catch(t){s={error:t}}finally{try{b&&!b.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}}return c(p,g)}};return y}var l=function(t,n){return t.actions.forEach((function(e){var r=e.exec;return r&&r(t.context,n)}))};function v(t){var r=t.initialState,i=n.NotStarted,o=new Set,c={_machine:t,send:function(e){i===n.Running&&(r=t.transition(r,e),l(r,u(e)),o.forEach((function(t){return t(r)})))},subscribe:function(t){return o.add(t),t(r),{unsubscribe:function(){return o.delete(t)}}},start:function(o){if(o){var u=\"object\"==typeof o?o:{context:t.config.context,value:o};r={value:u.value,actions:[],context:u.context,matches:a(u.value)}}else r=t.initialState;return i=n.Running,l(r,e),c},stop:function(){return i=n.Stopped,o.clear(),c},get state(){return r},get status(){return i}};return c}export{n as InterpreterStatus,i as assign,s as createMachine,v as interpret};\n"],"names":["t","e","r","i","o","a","n","s","l","v","c","u"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,SAAS,EAAEA,IAAE,GAAE;AAAC,MAAIC,KAAE,cAAY,OAAO,UAAQD,GAAE,OAAO,QAAQ;AAAE,MAAG,CAACC,GAAE,QAAOD;AAAE,MAAIE,IAAEC,IAAEC,KAAEH,GAAE,KAAKD,EAAC,GAAEK,KAAE,CAAA;AAAG,MAAG;AAAC,YAAM,WAAS,KAAG,MAAK,MAAI,EAAEH,KAAEE,GAAE,KAAI,GAAI,OAAM,CAAAC,GAAE,KAAKH,GAAE,KAAK;AAAA,EAAC,SAAOF,IAAE;AAAC,IAAAG,KAAE,EAAC,OAAMH,GAAC;AAAA,EAAC,UAAC;AAAQ,QAAG;AAAC,MAAAE,MAAG,CAACA,GAAE,SAAOD,KAAEG,GAAE,WAASH,GAAE,KAAKG,EAAC;AAAA,IAAC,UAAC;AAAQ,UAAGD,GAAE,OAAMA,GAAE;AAAA,IAAK;AAAA,EAAC;AAAC,SAAOE;AAAC;AAAKC,QAAAA,oBAAAA;AAAE,EAAC,SAASN,IAAE;AAAC,EAAAA,GAAEA,GAAE,aAAW,CAAC,IAAE,cAAaA,GAAEA,GAAE,UAAQ,CAAC,IAAE,WAAUA,GAAEA,GAAE,UAAQ,CAAC,IAAE;AAAS,GAAEM,QAAAA,sBAAIA,QAAAA,oBAAE,CAAA,EAAG;AAAE,IAAI,IAAE,EAAC,MAAK,cAAa;AAAE,SAAS,EAAEN,IAAE;AAAC,SAAO,WAASA,KAAE,KAAG,CAAA,EAAG,OAAOA,EAAC;AAAC;AAAC,SAAS,EAAEA,IAAE;AAAC,SAAM,EAAC,MAAK,iBAAgB,YAAWA,GAAC;AAAC;AAAC,SAAS,EAAEA,IAA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