@ohos-ports/shopify 4.8.0-beta.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 (606) hide show
  1. package/README.md +75 -0
  2. package/bin/run.cmd +3 -0
  3. package/bin/run.js +11 -0
  4. package/dist/acorn-7M27BPGP.js +16 -0
  5. package/dist/analytics-3IIUBZ3B.js +1 -0
  6. package/dist/analytics-OOT5AB52.js +1 -0
  7. package/dist/angular-DW5TQVCM.js +4 -0
  8. package/dist/assets/graphiql/favicon.ico +0 -0
  9. package/dist/assets/graphiql/style.css +58 -0
  10. package/dist/assets/hydrogen/bundle/analyzer.html +2056 -0
  11. package/dist/assets/hydrogen/i18n/domains.ts +21 -0
  12. package/dist/assets/hydrogen/i18n/mock-i18n-types.ts +5 -0
  13. package/dist/assets/hydrogen/i18n/subdomains.ts +20 -0
  14. package/dist/assets/hydrogen/i18n/subfolders.ts +22 -0
  15. package/dist/assets/hydrogen/routes/locale-check.ts +16 -0
  16. package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +52 -0
  17. package/dist/assets/hydrogen/starter/.graphqlrc.ts +29 -0
  18. package/dist/assets/hydrogen/starter/AGENTS.md +5 -0
  19. package/dist/assets/hydrogen/starter/CHANGELOG.md +2839 -0
  20. package/dist/assets/hydrogen/starter/CLAUDE.md +1 -0
  21. package/dist/assets/hydrogen/starter/README.md +45 -0
  22. package/dist/assets/hydrogen/starter/app/assets/favicon.svg +28 -0
  23. package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +37 -0
  24. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +101 -0
  25. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +197 -0
  26. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +109 -0
  27. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +300 -0
  28. package/dist/assets/hydrogen/starter/app/components/Footer.tsx +129 -0
  29. package/dist/assets/hydrogen/starter/app/components/Header.tsx +231 -0
  30. package/dist/assets/hydrogen/starter/app/components/MockShopNotice.tsx +20 -0
  31. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +174 -0
  32. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +61 -0
  33. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +150 -0
  34. package/dist/assets/hydrogen/starter/app/components/ProductImage.tsx +23 -0
  35. package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +44 -0
  36. package/dist/assets/hydrogen/starter/app/components/ProductPrice.tsx +27 -0
  37. package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +68 -0
  38. package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +76 -0
  39. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +161 -0
  40. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +304 -0
  41. package/dist/assets/hydrogen/starter/app/entry.client.tsx +21 -0
  42. package/dist/assets/hydrogen/starter/app/entry.server.tsx +53 -0
  43. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerAddressMutations.ts +64 -0
  44. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +40 -0
  45. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrderQuery.ts +90 -0
  46. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +63 -0
  47. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +25 -0
  48. package/dist/assets/hydrogen/starter/app/lib/context.ts +65 -0
  49. package/dist/assets/hydrogen/starter/app/lib/fragments.ts +242 -0
  50. package/dist/assets/hydrogen/starter/app/lib/orderFilters.ts +90 -0
  51. package/dist/assets/hydrogen/starter/app/lib/redirect.ts +23 -0
  52. package/dist/assets/hydrogen/starter/app/lib/search.ts +79 -0
  53. package/dist/assets/hydrogen/starter/app/lib/session.ts +72 -0
  54. package/dist/assets/hydrogen/starter/app/lib/variants.ts +46 -0
  55. package/dist/assets/hydrogen/starter/app/root.tsx +209 -0
  56. package/dist/assets/hydrogen/starter/app/routes/$.tsx +11 -0
  57. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +78 -0
  58. package/dist/assets/hydrogen/starter/app/routes/[sitemap.xml].tsx +16 -0
  59. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +177 -0
  60. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +9 -0
  61. package/dist/assets/hydrogen/starter/app/routes/account._index.tsx +5 -0
  62. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +516 -0
  63. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +222 -0
  64. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +222 -0
  65. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +133 -0
  66. package/dist/assets/hydrogen/starter/app/routes/account.tsx +97 -0
  67. package/dist/assets/hydrogen/starter/app/routes/account_.authorize.tsx +5 -0
  68. package/dist/assets/hydrogen/starter/app/routes/account_.login.tsx +17 -0
  69. package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +11 -0
  70. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +129 -0
  71. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +175 -0
  72. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +109 -0
  73. package/dist/assets/hydrogen/starter/app/routes/cart.$lines.tsx +70 -0
  74. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +113 -0
  75. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +161 -0
  76. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +133 -0
  77. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +122 -0
  78. package/dist/assets/hydrogen/starter/app/routes/discount.$code.tsx +48 -0
  79. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +88 -0
  80. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +93 -0
  81. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +69 -0
  82. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +232 -0
  83. package/dist/assets/hydrogen/starter/app/routes/search.tsx +426 -0
  84. package/dist/assets/hydrogen/starter/app/routes/sitemap.$type.$page[.xml].tsx +23 -0
  85. package/dist/assets/hydrogen/starter/app/routes.ts +9 -0
  86. package/dist/assets/hydrogen/starter/app/styles/app.css +645 -0
  87. package/dist/assets/hydrogen/starter/app/styles/reset.css +139 -0
  88. package/dist/assets/hydrogen/starter/customer-accountapi.generated.d.ts +543 -0
  89. package/dist/assets/hydrogen/starter/env.d.ts +7 -0
  90. package/dist/assets/hydrogen/starter/eslint.config.js +247 -0
  91. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.jpg +0 -0
  92. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +394 -0
  93. package/dist/assets/hydrogen/starter/guides/search/search.jpg +0 -0
  94. package/dist/assets/hydrogen/starter/guides/search/search.md +335 -0
  95. package/dist/assets/hydrogen/starter/package.json +62 -0
  96. package/dist/assets/hydrogen/starter/public/.gitkeep +0 -0
  97. package/dist/assets/hydrogen/starter/react-router.config.ts +13 -0
  98. package/dist/assets/hydrogen/starter/server.ts +59 -0
  99. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +1342 -0
  100. package/dist/assets/hydrogen/starter/tsconfig.json +43 -0
  101. package/dist/assets/hydrogen/starter/vite.config.ts +44 -0
  102. package/dist/assets/hydrogen/tailwind/package.json +11 -0
  103. package/dist/assets/hydrogen/tailwind/tailwind.css +6 -0
  104. package/dist/assets/hydrogen/vanilla-extract/package.json +8 -0
  105. package/dist/assets/hydrogen/virtual-routes/assets/debug-network.css +609 -0
  106. package/dist/assets/hydrogen/virtual-routes/assets/favicon-dark.svg +20 -0
  107. package/dist/assets/hydrogen/virtual-routes/assets/favicon.svg +28 -0
  108. package/dist/assets/hydrogen/virtual-routes/assets/inter-variable-font.woff2 +0 -0
  109. package/dist/assets/hydrogen/virtual-routes/assets/jetbrainsmono-variable-font.woff2 +0 -0
  110. package/dist/assets/hydrogen/virtual-routes/assets/styles.css +249 -0
  111. package/dist/assets/hydrogen/virtual-routes/components/FlameChartWrapper.jsx +123 -0
  112. package/dist/assets/hydrogen/virtual-routes/components/HydrogenLogoBaseBW.jsx +32 -0
  113. package/dist/assets/hydrogen/virtual-routes/components/HydrogenLogoBaseColor.jsx +47 -0
  114. package/dist/assets/hydrogen/virtual-routes/components/IconBanner.jsx +292 -0
  115. package/dist/assets/hydrogen/virtual-routes/components/IconClose.jsx +38 -0
  116. package/dist/assets/hydrogen/virtual-routes/components/IconDiscard.jsx +44 -0
  117. package/dist/assets/hydrogen/virtual-routes/components/IconError.jsx +61 -0
  118. package/dist/assets/hydrogen/virtual-routes/components/IconGithub.jsx +23 -0
  119. package/dist/assets/hydrogen/virtual-routes/components/IconTwitter.jsx +21 -0
  120. package/dist/assets/hydrogen/virtual-routes/components/Layout.jsx +7 -0
  121. package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +171 -0
  122. package/dist/assets/hydrogen/virtual-routes/components/RequestTable.jsx +91 -0
  123. package/dist/assets/hydrogen/virtual-routes/components/RequestWaterfall.jsx +151 -0
  124. package/dist/assets/hydrogen/virtual-routes/layout.jsx +33 -0
  125. package/dist/assets/hydrogen/virtual-routes/lib/useDebugNetworkServer.jsx +178 -0
  126. package/dist/assets/hydrogen/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.jsx +37 -0
  127. package/dist/assets/hydrogen/virtual-routes/routes/graphiql.jsx +5 -0
  128. package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +265 -0
  129. package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +243 -0
  130. package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +63 -0
  131. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +67 -0
  132. package/dist/assets/hydrogen/vite/package.json +13 -0
  133. package/dist/assets/hydrogen/vite/vite.config.js +43 -0
  134. package/dist/assets/speedscope/SourceCodePro-Regular.ttf.f546cbe0.woff2 +0 -0
  135. package/dist/assets/speedscope/demangle-cpp.1768f4cc.js +4 -0
  136. package/dist/assets/speedscope/favicon-16x16.f74b3187.png +0 -0
  137. package/dist/assets/speedscope/favicon-32x32.bc503437.png +0 -0
  138. package/dist/assets/speedscope/file-format-schema.json +324 -0
  139. package/dist/assets/speedscope/import.bcbb2033.js +123 -0
  140. package/dist/assets/speedscope/index.html +2 -0
  141. package/dist/assets/speedscope/perf-vertx-stacks-01-collapsed-all.2681da68.txt +199 -0
  142. package/dist/assets/speedscope/release.txt +3 -0
  143. package/dist/assets/speedscope/reset.8c46b7a1.css +2 -0
  144. package/dist/assets/speedscope/source-code-pro.52b1676f.css +2 -0
  145. package/dist/assets/speedscope/source-code-pro.LICENSE.md +93 -0
  146. package/dist/assets/speedscope/source-map.438fa06b.js +24 -0
  147. package/dist/assets/speedscope/speedscope.6f107512.js +193 -0
  148. package/dist/babel-I2RLWM7N.js +15 -0
  149. package/dist/bootstrap.d.ts +5 -0
  150. package/dist/bootstrap.js +3 -0
  151. package/dist/chokidar-5RWEYTNQ.js +1 -0
  152. package/dist/chunk-2AK44UYM.js +1 -0
  153. package/dist/chunk-2CIZE537.js +3 -0
  154. package/dist/chunk-2EAFYCCS.js +16 -0
  155. package/dist/chunk-2KD4LHRT.js +5 -0
  156. package/dist/chunk-2KGPH7YG.js +2 -0
  157. package/dist/chunk-2O224ZPO.js +3 -0
  158. package/dist/chunk-2XDUJQQN.js +12 -0
  159. package/dist/chunk-36ROOKQB.js +1 -0
  160. package/dist/chunk-3DCN3N23.js +4 -0
  161. package/dist/chunk-3JXPOOFV.js +836 -0
  162. package/dist/chunk-4QBJ5JBX.js +18 -0
  163. package/dist/chunk-4ZNV5YSL.js +1 -0
  164. package/dist/chunk-5HBIIYSK.js +1 -0
  165. package/dist/chunk-5L63PRJL.js +2 -0
  166. package/dist/chunk-5N6HNQQ5.js +8 -0
  167. package/dist/chunk-5SEEDOQ5.js +1 -0
  168. package/dist/chunk-636CTEW7.js +1 -0
  169. package/dist/chunk-67Z34HN5.js +5 -0
  170. package/dist/chunk-6BDAJ6UD.js +5 -0
  171. package/dist/chunk-6CXG3XLP.js +1 -0
  172. package/dist/chunk-6MWWJZFN.js +19 -0
  173. package/dist/chunk-6QDOCBD4.js +6 -0
  174. package/dist/chunk-6RQOEPEC.js +1 -0
  175. package/dist/chunk-72ZY3KTF.js +1 -0
  176. package/dist/chunk-742XXXGL.js +6 -0
  177. package/dist/chunk-773TIA5M.js +2 -0
  178. package/dist/chunk-7HFHL5SO.js +2 -0
  179. package/dist/chunk-7ISJRIPT.js +1 -0
  180. package/dist/chunk-7LWUHQIF.js +1 -0
  181. package/dist/chunk-7T6M7FAC.js +103 -0
  182. package/dist/chunk-7UNQOKZW.js +1 -0
  183. package/dist/chunk-7Y7AZRL3.js +10 -0
  184. package/dist/chunk-A6BMJISP.js +8 -0
  185. package/dist/chunk-AAK376RT.js +2 -0
  186. package/dist/chunk-AEUCDGTB.js +294 -0
  187. package/dist/chunk-AWUX36VG.js +1 -0
  188. package/dist/chunk-B4OMIONW.js +5 -0
  189. package/dist/chunk-BOAGJ6P5.js +1 -0
  190. package/dist/chunk-BWJIZYAG.js +1 -0
  191. package/dist/chunk-BZ73NV3L.js +2 -0
  192. package/dist/chunk-C3RUVXG2.js +6 -0
  193. package/dist/chunk-C4YLE3NS.js +64 -0
  194. package/dist/chunk-CEYIZC3M.js +2 -0
  195. package/dist/chunk-CIWKN4HF.js +7 -0
  196. package/dist/chunk-CRALWNNO.js +1 -0
  197. package/dist/chunk-CTNBSUVU.js +83 -0
  198. package/dist/chunk-CULTZLC4.js +1 -0
  199. package/dist/chunk-CX5CC6P5.js +1 -0
  200. package/dist/chunk-CX75OKZK.js +1 -0
  201. package/dist/chunk-DASVZTAX.js +359 -0
  202. package/dist/chunk-DPNZWBT5.js +1 -0
  203. package/dist/chunk-DX3JLOUA.js +4 -0
  204. package/dist/chunk-E55KS3GZ.js +1 -0
  205. package/dist/chunk-E5FXOLQO.js +17 -0
  206. package/dist/chunk-E6N4PZZR.js +7 -0
  207. package/dist/chunk-EB574SY6.js +6 -0
  208. package/dist/chunk-ET2CGROE.js +451 -0
  209. package/dist/chunk-EX5GVHGE.js +1 -0
  210. package/dist/chunk-F3NYCSXT.js +273 -0
  211. package/dist/chunk-F3TMLDLC.js +1 -0
  212. package/dist/chunk-F6X6OXXB.js +3 -0
  213. package/dist/chunk-FDBHQLFK.js +1 -0
  214. package/dist/chunk-FDYW3UQC.js +1 -0
  215. package/dist/chunk-FEDVVYK2.js +1 -0
  216. package/dist/chunk-FFSDGRAN.js +1 -0
  217. package/dist/chunk-FJ6F4XRV.js +28 -0
  218. package/dist/chunk-FKIVKNOV.js +2 -0
  219. package/dist/chunk-FOREMLFZ.js +1 -0
  220. package/dist/chunk-FUYDGK33.js +2 -0
  221. package/dist/chunk-FX3L344E.js +1 -0
  222. package/dist/chunk-G5XIGN5D.js +593 -0
  223. package/dist/chunk-GAYKYEIM.js +1 -0
  224. package/dist/chunk-GB3YC4TI.js +1 -0
  225. package/dist/chunk-GCN4O7HM.js +1 -0
  226. package/dist/chunk-GCY7LPEF.js +6 -0
  227. package/dist/chunk-GNBRCK7L.js +3 -0
  228. package/dist/chunk-GRPKF5ZB.js +1 -0
  229. package/dist/chunk-GRSF7456.js +1 -0
  230. package/dist/chunk-H2TQ4ODI.js +1 -0
  231. package/dist/chunk-H6XEESUN.js +4 -0
  232. package/dist/chunk-HB347DXT.js +2 -0
  233. package/dist/chunk-HFSCXTJQ.js +97 -0
  234. package/dist/chunk-HHN6KZXX.js +1 -0
  235. package/dist/chunk-HP64ZTEJ.js +6 -0
  236. package/dist/chunk-I5A6BPCP.js +1 -0
  237. package/dist/chunk-IARCMH7G.js +5 -0
  238. package/dist/chunk-IBI5UCJO.js +1 -0
  239. package/dist/chunk-IKUSLRGD.js +1 -0
  240. package/dist/chunk-IT4HYLTY.js +1 -0
  241. package/dist/chunk-IWOTLFOY.js +32 -0
  242. package/dist/chunk-J3JPJCWP.js +1 -0
  243. package/dist/chunk-J4T73EAS.js +8 -0
  244. package/dist/chunk-JD5P5RAJ.js +1 -0
  245. package/dist/chunk-JG4HH54Q.js +1 -0
  246. package/dist/chunk-JIYSCWCG.js +1 -0
  247. package/dist/chunk-JJZNUFPD.js +44 -0
  248. package/dist/chunk-JLGA3B7P.js +1 -0
  249. package/dist/chunk-JWRK5KLD.js +560 -0
  250. package/dist/chunk-JX7FYWPO.js +1 -0
  251. package/dist/chunk-K42WBNJQ.js +18 -0
  252. package/dist/chunk-KDU7VW3L.js +11 -0
  253. package/dist/chunk-KWVOJWO7.js +1 -0
  254. package/dist/chunk-LANUJ7LX.js +16 -0
  255. package/dist/chunk-LD6ZCTZ3.js +9 -0
  256. package/dist/chunk-LFOBYEWG.js +1 -0
  257. package/dist/chunk-LQ7ENG4V.js +1 -0
  258. package/dist/chunk-LUKQ5HLC.js +1 -0
  259. package/dist/chunk-M2XHIN57.js +4 -0
  260. package/dist/chunk-MNOQAXJW.js +3 -0
  261. package/dist/chunk-MPW2YJWU.js +31 -0
  262. package/dist/chunk-MYQUYU4U.js +2 -0
  263. package/dist/chunk-N65F7ET2.js +1 -0
  264. package/dist/chunk-N6RBRPGW.js +7 -0
  265. package/dist/chunk-N75VOJHO.js +15 -0
  266. package/dist/chunk-NBFMP5XQ.js +1 -0
  267. package/dist/chunk-NE3ZFSMS.js +1 -0
  268. package/dist/chunk-NGLMZYS7.js +278 -0
  269. package/dist/chunk-NHAUJWEG.js +1 -0
  270. package/dist/chunk-NILETICC.js +11 -0
  271. package/dist/chunk-NNZXKFOS.js +7 -0
  272. package/dist/chunk-NQK2VCDA.js +1 -0
  273. package/dist/chunk-NROVZETL.js +1 -0
  274. package/dist/chunk-NW6NUGN7.js +1 -0
  275. package/dist/chunk-O7DZXO3O.js +15 -0
  276. package/dist/chunk-OBYQSIYU.js +25 -0
  277. package/dist/chunk-OEG3N5PG.js +15 -0
  278. package/dist/chunk-OGBZTY2G.js +5 -0
  279. package/dist/chunk-OMHR423H.js +1 -0
  280. package/dist/chunk-OV6SRRXR.js +5 -0
  281. package/dist/chunk-OVV5YGKN.js +1 -0
  282. package/dist/chunk-OZL5FTT7.js +1 -0
  283. package/dist/chunk-OZMQ2EJB.js +1 -0
  284. package/dist/chunk-P2OI2P2M.js +1 -0
  285. package/dist/chunk-P57P7UAN.js +3 -0
  286. package/dist/chunk-PATTG7YZ.js +1 -0
  287. package/dist/chunk-PG5YNPJB.js +26 -0
  288. package/dist/chunk-PP4L2JJ6.js +3 -0
  289. package/dist/chunk-Q5JX23QU.js +1 -0
  290. package/dist/chunk-Q5KVMLBK.js +4 -0
  291. package/dist/chunk-Q5LIJGT7.js +12 -0
  292. package/dist/chunk-Q6ADIMJM.js +6 -0
  293. package/dist/chunk-Q7BOSHWX.js +7 -0
  294. package/dist/chunk-QERQARMC.js +1 -0
  295. package/dist/chunk-QOV43E26.js +1 -0
  296. package/dist/chunk-QTFUYKMF.js +1 -0
  297. package/dist/chunk-QTJCCOAG.js +20 -0
  298. package/dist/chunk-R6ICQT2D.js +1 -0
  299. package/dist/chunk-R7T3LYJL.js +3 -0
  300. package/dist/chunk-RJ5VF3QY.js +2 -0
  301. package/dist/chunk-RXQJCJDV.js +1 -0
  302. package/dist/chunk-S2TLBBSS.js +5 -0
  303. package/dist/chunk-S5FOQY35.js +1 -0
  304. package/dist/chunk-SYLHT42O.js +1 -0
  305. package/dist/chunk-T4AA6TSF.js +15 -0
  306. package/dist/chunk-T4QWK5GG.js +10 -0
  307. package/dist/chunk-T7KHS6RF.js +1 -0
  308. package/dist/chunk-T7PJDT5O.js +6 -0
  309. package/dist/chunk-TEY4LRY7.js +1 -0
  310. package/dist/chunk-TFBRVLDN.js +1 -0
  311. package/dist/chunk-TOLPNBZK.js +4 -0
  312. package/dist/chunk-TR4OWSEX.js +77 -0
  313. package/dist/chunk-TU47HMTL.js +1 -0
  314. package/dist/chunk-TUVDJ3PG.js +2 -0
  315. package/dist/chunk-TYMYIUIQ.js +1 -0
  316. package/dist/chunk-U2DWBZK2.js +1 -0
  317. package/dist/chunk-U53OLUOE.js +3 -0
  318. package/dist/chunk-UAETNFN4.js +1 -0
  319. package/dist/chunk-UAFEFKAQ.js +5 -0
  320. package/dist/chunk-ULRJDKWQ.js +1 -0
  321. package/dist/chunk-UOHNRH6E.js +7 -0
  322. package/dist/chunk-UZARYOLN.js +1 -0
  323. package/dist/chunk-VASGXHYA.js +1 -0
  324. package/dist/chunk-VD4XJ6BX.js +1 -0
  325. package/dist/chunk-VE35YELD.js +1 -0
  326. package/dist/chunk-VFM2KQRM.js +19 -0
  327. package/dist/chunk-VJEKDBGZ.js +1 -0
  328. package/dist/chunk-VKWPEFWQ.js +1 -0
  329. package/dist/chunk-VSDRNYA5.js +1 -0
  330. package/dist/chunk-VUMUCNI7.js +1 -0
  331. package/dist/chunk-VVZSYHDG.js +4 -0
  332. package/dist/chunk-VXEYO3ZP.js +1 -0
  333. package/dist/chunk-VYDSOAV4.js +9 -0
  334. package/dist/chunk-W6ST525S.js +99 -0
  335. package/dist/chunk-WBYAGS6B.js +6 -0
  336. package/dist/chunk-WGAFCKGD.js +1 -0
  337. package/dist/chunk-WYBTC356.js +1 -0
  338. package/dist/chunk-XF2KTEID.js +1 -0
  339. package/dist/chunk-XH5YGJQR.js +1 -0
  340. package/dist/chunk-XHKWITLA.js +1705 -0
  341. package/dist/chunk-XOCB4KNX.js +2 -0
  342. package/dist/chunk-XUUAKGEX.js +1 -0
  343. package/dist/chunk-XUYVJEZG.js +3 -0
  344. package/dist/chunk-Y47C3LSX.js +3 -0
  345. package/dist/chunk-Y5PRPHLQ.js +6 -0
  346. package/dist/chunk-YD2VQEN5.js +1 -0
  347. package/dist/chunk-YESGYUEL.js +1 -0
  348. package/dist/chunk-YEVGLC5X.js +1 -0
  349. package/dist/chunk-YFINLODF.js +375 -0
  350. package/dist/chunk-YKL3BLWC.js +46 -0
  351. package/dist/chunk-YLQ3LNNY.js +99 -0
  352. package/dist/chunk-YLXPYXQP.js +1 -0
  353. package/dist/chunk-YNDIZCD2.js +7 -0
  354. package/dist/chunk-YPWHD3NL.js +1 -0
  355. package/dist/chunk-YSAFHVV6.js +8 -0
  356. package/dist/chunk-YY6TFARF.js +1 -0
  357. package/dist/chunk-YZMY2CTU.js +10 -0
  358. package/dist/chunk-Z4AFEO36.js +1 -0
  359. package/dist/chunk-Z5WPP6ME.js +1 -0
  360. package/dist/chunk-Z65E4UAP.js +1 -0
  361. package/dist/chunk-ZDF5N422.js +1 -0
  362. package/dist/chunk-ZDRIQC7O.js +1 -0
  363. package/dist/chunk-ZH44BDUR.js +5 -0
  364. package/dist/chunk-ZI7LK3LW.js +11 -0
  365. package/dist/chunk-ZL5LU4U2.js +32 -0
  366. package/dist/chunk-ZYX7UHCQ.js +1 -0
  367. package/dist/chunk-ZZRFG6ME.js +317 -0
  368. package/dist/cli/commands/app/app-logs/sources.js +1 -0
  369. package/dist/cli/commands/app/build.js +1 -0
  370. package/dist/cli/commands/app/bulk/cancel.js +1 -0
  371. package/dist/cli/commands/app/bulk/execute.js +1 -0
  372. package/dist/cli/commands/app/bulk/status.js +1 -0
  373. package/dist/cli/commands/app/config/link.js +1 -0
  374. package/dist/cli/commands/app/config/pull.js +1 -0
  375. package/dist/cli/commands/app/config/use.js +1 -0
  376. package/dist/cli/commands/app/config/validate.js +1 -0
  377. package/dist/cli/commands/app/demo/watcher.js +1 -0
  378. package/dist/cli/commands/app/deploy.js +1 -0
  379. package/dist/cli/commands/app/dev/clean.js +1 -0
  380. package/dist/cli/commands/app/dev.js +1 -0
  381. package/dist/cli/commands/app/doctor/instructions.js +1 -0
  382. package/dist/cli/commands/app/doctor.js +1 -0
  383. package/dist/cli/commands/app/env/pull.js +1 -0
  384. package/dist/cli/commands/app/env/show.js +1 -0
  385. package/dist/cli/commands/app/execute.js +1 -0
  386. package/dist/cli/commands/app/function/build.js +1 -0
  387. package/dist/cli/commands/app/function/info.js +1 -0
  388. package/dist/cli/commands/app/function/replay.js +1 -0
  389. package/dist/cli/commands/app/function/run.js +1 -0
  390. package/dist/cli/commands/app/function/schema.js +1 -0
  391. package/dist/cli/commands/app/function/typegen.js +1 -0
  392. package/dist/cli/commands/app/generate/extension.js +1 -0
  393. package/dist/cli/commands/app/graphiql.js +1 -0
  394. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -0
  395. package/dist/cli/commands/app/import-extensions.js +1 -0
  396. package/dist/cli/commands/app/info.js +1 -0
  397. package/dist/cli/commands/app/init.js +1 -0
  398. package/dist/cli/commands/app/logs.js +1 -0
  399. package/dist/cli/commands/app/release.js +1 -0
  400. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -0
  401. package/dist/cli/commands/app/subscription-migrations/list.js +1 -0
  402. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -0
  403. package/dist/cli/commands/app/subscription-migrations/status.js +1 -0
  404. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -0
  405. package/dist/cli/commands/app/versions/list.js +1 -0
  406. package/dist/cli/commands/app/webhook/trigger.js +1 -0
  407. package/dist/cli/commands/auth/login.d.ts +8 -0
  408. package/dist/cli/commands/auth/login.js +1 -0
  409. package/dist/cli/commands/auth/logout.d.ts +5 -0
  410. package/dist/cli/commands/auth/logout.js +1 -0
  411. package/dist/cli/commands/cache/clear.d.ts +6 -0
  412. package/dist/cli/commands/cache/clear.js +1 -0
  413. package/dist/cli/commands/config/autoupgrade/constants.d.ts +4 -0
  414. package/dist/cli/commands/config/autoupgrade/constants.js +1 -0
  415. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -0
  416. package/dist/cli/commands/config/autoupgrade/off.js +1 -0
  417. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -0
  418. package/dist/cli/commands/config/autoupgrade/on.js +1 -0
  419. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -0
  420. package/dist/cli/commands/config/autoupgrade/status.js +1 -0
  421. package/dist/cli/commands/debug/command-flags.d.ts +9 -0
  422. package/dist/cli/commands/debug/command-flags.js +1 -0
  423. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  424. package/dist/cli/commands/doc/fetch.js +1 -0
  425. package/dist/cli/commands/doc/search.d.ts +13 -0
  426. package/dist/cli/commands/doc/search.js +1 -0
  427. package/dist/cli/commands/docs/generate.d.ts +21 -0
  428. package/dist/cli/commands/docs/generate.js +1 -0
  429. package/dist/cli/commands/doctor-release/doctor-release.d.ts +6 -0
  430. package/dist/cli/commands/doctor-release/doctor-release.js +1 -0
  431. package/dist/cli/commands/doctor-release/theme/index.d.ts +14 -0
  432. package/dist/cli/commands/doctor-release/theme/index.js +1 -0
  433. package/dist/cli/commands/help.d.ts +13 -0
  434. package/dist/cli/commands/help.js +1 -0
  435. package/dist/cli/commands/kitchen-sink/async.d.ts +11 -0
  436. package/dist/cli/commands/kitchen-sink/async.js +1 -0
  437. package/dist/cli/commands/kitchen-sink/index.d.ts +12 -0
  438. package/dist/cli/commands/kitchen-sink/index.js +1 -0
  439. package/dist/cli/commands/kitchen-sink/prompts.d.ts +11 -0
  440. package/dist/cli/commands/kitchen-sink/prompts.js +1 -0
  441. package/dist/cli/commands/kitchen-sink/static.d.ts +11 -0
  442. package/dist/cli/commands/kitchen-sink/static.js +1 -0
  443. package/dist/cli/commands/notifications/generate.d.ts +6 -0
  444. package/dist/cli/commands/notifications/generate.js +1 -0
  445. package/dist/cli/commands/notifications/list.d.ts +9 -0
  446. package/dist/cli/commands/notifications/list.js +1 -0
  447. package/dist/cli/commands/organization/list.js +1 -0
  448. package/dist/cli/commands/search.d.ts +14 -0
  449. package/dist/cli/commands/search.js +1 -0
  450. package/dist/cli/commands/send-analytics.d.ts +5 -0
  451. package/dist/cli/commands/send-analytics.js +1 -0
  452. package/dist/cli/commands/theme/check.js +1 -0
  453. package/dist/cli/commands/theme/console.js +1 -0
  454. package/dist/cli/commands/theme/delete.js +1 -0
  455. package/dist/cli/commands/theme/dev.js +1 -0
  456. package/dist/cli/commands/theme/duplicate.js +1 -0
  457. package/dist/cli/commands/theme/info.js +1 -0
  458. package/dist/cli/commands/theme/init.js +1 -0
  459. package/dist/cli/commands/theme/language-server.js +1 -0
  460. package/dist/cli/commands/theme/list.js +1 -0
  461. package/dist/cli/commands/theme/metafields/pull.js +1 -0
  462. package/dist/cli/commands/theme/open.js +1 -0
  463. package/dist/cli/commands/theme/package.js +1 -0
  464. package/dist/cli/commands/theme/preview.js +1 -0
  465. package/dist/cli/commands/theme/profile.js +1 -0
  466. package/dist/cli/commands/theme/publish.js +1 -0
  467. package/dist/cli/commands/theme/pull.js +1 -0
  468. package/dist/cli/commands/theme/push.js +1 -0
  469. package/dist/cli/commands/theme/rename.js +1 -0
  470. package/dist/cli/commands/theme/share.js +1 -0
  471. package/dist/cli/commands/upgrade.d.ts +7 -0
  472. package/dist/cli/commands/upgrade.js +1 -0
  473. package/dist/cli/commands/version.d.ts +5 -0
  474. package/dist/cli/commands/version.js +1 -0
  475. package/dist/cli/help.d.ts +38 -0
  476. package/dist/cli/help.js +2 -0
  477. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  478. package/dist/cli/services/commands/doc/fetch.js +45 -0
  479. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  480. package/dist/cli/services/commands/doc/search.js +47 -0
  481. package/dist/cli/services/commands/notifications.d.ts +2 -0
  482. package/dist/cli/services/commands/notifications.js +106 -0
  483. package/dist/cli/services/commands/search.d.ts +1 -0
  484. package/dist/cli/services/commands/search.js +7 -0
  485. package/dist/cli/services/commands/version.d.ts +1 -0
  486. package/dist/cli/services/commands/version.js +6 -0
  487. package/dist/cli/services/doctor-release/context.d.ts +16 -0
  488. package/dist/cli/services/doctor-release/context.js +11 -0
  489. package/dist/cli/services/doctor-release/theme/runner.d.ts +7 -0
  490. package/dist/cli/services/doctor-release/theme/runner.js +37 -0
  491. package/dist/cli/services/doctor-release/theme/tests/init.d.ts +11 -0
  492. package/dist/cli/services/doctor-release/theme/tests/init.js +34 -0
  493. package/dist/cli/services/doctor-release/theme/tests/push.d.ts +10 -0
  494. package/dist/cli/services/doctor-release/theme/tests/push.js +44 -0
  495. package/dist/cli/services/kitchen-sink/async.d.ts +1 -0
  496. package/dist/cli/services/kitchen-sink/async.js +65 -0
  497. package/dist/cli/services/kitchen-sink/prompts.d.ts +1 -0
  498. package/dist/cli/services/kitchen-sink/prompts.js +168 -0
  499. package/dist/cli/services/kitchen-sink/static.d.ts +1 -0
  500. package/dist/cli/services/kitchen-sink/static.js +201 -0
  501. package/dist/command-registry.d.ts +8 -0
  502. package/dist/command-registry.js +1 -0
  503. package/dist/conf-store-ASDCTDQ4.js +1 -0
  504. package/dist/configs/all.yml +280 -0
  505. package/dist/configs/nothing.yml +3 -0
  506. package/dist/configs/recommended.yml +258 -0
  507. package/dist/configs/theme-app-extension.yml +24 -0
  508. package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
  509. package/dist/data/app_block_entry.json +13 -0
  510. package/dist/data/default_setting_values.json +24 -0
  511. package/dist/data/filters.json +6177 -0
  512. package/dist/data/latest.json +2 -0
  513. package/dist/data/local_block_entry.json +25 -0
  514. package/dist/data/manifest_theme.json +19 -0
  515. package/dist/data/manifest_theme_app_extension.json +10 -0
  516. package/dist/data/objects.json +20621 -0
  517. package/dist/data/preset.json +72 -0
  518. package/dist/data/preset_blocks.json +91 -0
  519. package/dist/data/section.json +208 -0
  520. package/dist/data/setting.json +1538 -0
  521. package/dist/data/settings.json +10 -0
  522. package/dist/data/shopify_system_translations.json +2766 -0
  523. package/dist/data/tags.json +1276 -0
  524. package/dist/data/targetted_block_entry.json +15 -0
  525. package/dist/data/theme_block.json +91 -0
  526. package/dist/data/theme_block_entry.json +14 -0
  527. package/dist/data/theme_settings.json +83 -0
  528. package/dist/data/translations.json +63 -0
  529. package/dist/deprecations-VBQV7Q4O.js +1 -0
  530. package/dist/devtools-37DE4MUR.js +1 -0
  531. package/dist/devtools-WAWU5KQL.js +1 -0
  532. package/dist/dist-FZLOAKU7.js +1 -0
  533. package/dist/dist-HTY6UHG5.js +1 -0
  534. package/dist/environments-HSTNEQRG.js +1 -0
  535. package/dist/error-2LZYKRMA.js +1 -0
  536. package/dist/error-handler-PIGEJ7BT.js +1 -0
  537. package/dist/estree-JV5M77BA.js +44 -0
  538. package/dist/flow-N4JYPYMQ.js +20 -0
  539. package/dist/fs-BJHNJDDK.js +1 -0
  540. package/dist/glimmer-JEV3BXHR.js +37 -0
  541. package/dist/graphql-DTF6MHYF.js +28 -0
  542. package/dist/hooks/did-you-mean.d.ts +1 -0
  543. package/dist/hooks/did-you-mean.js +1 -0
  544. package/dist/hooks/hydrogen-init.d.ts +7 -0
  545. package/dist/hooks/hydrogen-init.js +1 -0
  546. package/dist/hooks/plugin-plugins.d.ts +1 -0
  547. package/dist/hooks/plugin-plugins.js +1 -0
  548. package/dist/hooks/postrun.d.ts +1 -0
  549. package/dist/hooks/postrun.js +1 -0
  550. package/dist/hooks/prerun.d.ts +1 -0
  551. package/dist/hooks/prerun.js +2 -0
  552. package/dist/hooks/public-metadata.d.ts +1 -0
  553. package/dist/hooks/public-metadata.js +1 -0
  554. package/dist/hooks/sensitive-metadata.d.ts +1 -0
  555. package/dist/hooks/sensitive-metadata.js +1 -0
  556. package/dist/hooks/tunnel-provider.d.ts +1 -0
  557. package/dist/hooks/tunnel-provider.js +1 -0
  558. package/dist/hooks/tunnel-start.d.ts +1 -0
  559. package/dist/hooks/tunnel-start.js +1 -0
  560. package/dist/html-LVOJ3RQS.js +25 -0
  561. package/dist/http-proxy-node16-A6AKKRQH.js +38 -0
  562. package/dist/index.d.ts +13 -0
  563. package/dist/index.js +120 -0
  564. package/dist/is-global-6SCOAJVG.js +1 -0
  565. package/dist/latest-version-LDWU5F7A.js +49 -0
  566. package/dist/lib-2BR2WN7L.js +1 -0
  567. package/dist/lib-M72BVWQ3.js +1 -0
  568. package/dist/lib-O5EZ4NVT.js +1 -0
  569. package/dist/lib-P3APEIHY.js +1 -0
  570. package/dist/local-PZWPRFU7.js +1 -0
  571. package/dist/markdown-J6CE6POI.js +62 -0
  572. package/dist/meriyah-PNQQZQYI.js +5 -0
  573. package/dist/metadata-VVBHB3HL.js +1 -0
  574. package/dist/morph-BMYYMQNX.js +30489 -0
  575. package/dist/multipart-parser-5NSSTW27.js +2 -0
  576. package/dist/node-package-manager-ETYQN7OM.js +1 -0
  577. package/dist/notifications-system-652OG5KL.js +1 -0
  578. package/dist/npa-A4YSCQ5Q.js +1 -0
  579. package/dist/open-KLSGXBIW.js +1 -0
  580. package/dist/os-7D6NT4O3.js +1 -0
  581. package/dist/out-53ABAVL7.js +1 -0
  582. package/dist/output-74VDGYJD.js +1 -0
  583. package/dist/path-MBXP7ZIC.js +1 -0
  584. package/dist/postcss-Q36SHOML.js +61 -0
  585. package/dist/prettier-EGVCP5CY.js +1 -0
  586. package/dist/source-map-E7FCCJL7.js +1 -0
  587. package/dist/system-P5QIJALL.js +1 -0
  588. package/dist/templates/ui-extensions/html/error.html.liquid +41 -0
  589. package/dist/templates/ui-extensions/html/post_purchase/index.html.liquid +44 -0
  590. package/dist/templates/ui-extensions/html/post_purchase/tunnel-error.html.liquid +41 -0
  591. package/dist/templates/ui-extensions/html/tunnel-error.html.liquid +55 -0
  592. package/dist/toml_patch_bg.wasm +0 -0
  593. package/dist/tsconfig.tsbuildinfo +1 -0
  594. package/dist/typescript-5R4Y7PXE.js +1 -0
  595. package/dist/typescript-WYPDGPSV.js +21 -0
  596. package/dist/ui-H5I5YVKV.js +1 -0
  597. package/dist/upgrade-34HSYBXI.js +1 -0
  598. package/dist/vendor/esbuild-ohos/lib/main.js +2538 -0
  599. package/dist/vendor/esbuild-ohos/package.json +7 -0
  600. package/dist/version-EKXEAF6Q.js +1 -0
  601. package/dist/version-J2PYO6M5.js +1 -0
  602. package/dist/workerd-X4TGHEG3.js +18 -0
  603. package/dist/yaml-6KWCJ64X.js +159 -0
  604. package/dist/yoga.wasm +0 -0
  605. package/oclif.manifest.json +10100 -0
  606. package/package.json +153 -0
@@ -0,0 +1,265 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { useLoaderData } from "react-router";
3
+ import { HydrogenLogoBaseBW } from "../components/HydrogenLogoBaseBW.jsx";
4
+ import { HydrogenLogoBaseColor } from "../components/HydrogenLogoBaseColor.jsx";
5
+ import { IconGithub } from "../components/IconGithub.jsx";
6
+ import { IconTwitter } from "../components/IconTwitter.jsx";
7
+ import { IconBanner } from "../components/IconBanner.jsx";
8
+ import { IconError } from "../components/IconError.jsx";
9
+ import favicon from "../assets/favicon.svg";
10
+ import interVariableFontWoff2 from "../assets/inter-variable-font.woff2";
11
+ import jetbrainsmonoVariableFontWoff2 from "../assets/jetbrainsmono-variable-font.woff2";
12
+ const links = () => [
13
+ {
14
+ rel: "icon",
15
+ type: "image/svg+xml",
16
+ href: favicon
17
+ },
18
+ {
19
+ rel: "preload",
20
+ href: interVariableFontWoff2,
21
+ as: "font",
22
+ type: "font/ttf",
23
+ crossOrigin: "anonymous"
24
+ },
25
+ {
26
+ rel: "preload",
27
+ href: jetbrainsmonoVariableFontWoff2,
28
+ as: "font",
29
+ type: "font/ttf",
30
+ crossOrigin: "anonymous"
31
+ }
32
+ ];
33
+ async function loader({
34
+ context: { storefront }
35
+ }) {
36
+ const layout = await storefront.query(LAYOUT_QUERY);
37
+ return { layout, isMockShop: storefront.getApiUrl().includes("mock.shop") };
38
+ }
39
+ const HYDROGEN_SHOP_ID = "gid://shopify/Shop/55145660472";
40
+ function ErrorBoundary() {
41
+ return /* @__PURE__ */ jsx(ErrorPage, {});
42
+ }
43
+ function Index() {
44
+ const {
45
+ isMockShop,
46
+ layout: { shop }
47
+ } = useLoaderData();
48
+ let { name: shopName, id: shopId } = shop;
49
+ const configDone = shopId !== HYDROGEN_SHOP_ID && !isMockShop;
50
+ if (isMockShop || !shopName) shopName = "Hydrogen";
51
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName, children: [
52
+ configDone ? /* @__PURE__ */ jsx(HydrogenLogoBaseColor, {}) : /* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
53
+ /* @__PURE__ */ jsxs("h1", { children: [
54
+ "Hello, ",
55
+ shopName
56
+ ] }),
57
+ /* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
58
+ /* @__PURE__ */ jsxs("section", { className: "Banner", children: [
59
+ /* @__PURE__ */ jsxs("div", { children: [
60
+ /* @__PURE__ */ jsx(IconBanner, {}),
61
+ /* @__PURE__ */ jsx("h2", { children: configDone ? "Create your first route" : "Configure storefront token" })
62
+ ] }),
63
+ configDone ? /* @__PURE__ */ jsxs("p", { children: [
64
+ "You\u2019re seeing this because you don\u2019t have a home route in your project yet. ",
65
+ /* @__PURE__ */ jsx("br", {}),
66
+ "Run ",
67
+ /* @__PURE__ */ jsx("code", { children: "npx shopify hydrogen setup" }),
68
+ " to scaffold standard Shopify routes. Learn more about",
69
+ ` `,
70
+ /* @__PURE__ */ jsx(CreateRoutesLink, {})
71
+ ] }) : /* @__PURE__ */ jsxs("p", { children: [
72
+ "You\u2019re seeing this because you have not yet configured your storefront token. ",
73
+ /* @__PURE__ */ jsx("br", {}),
74
+ /* @__PURE__ */ jsx("br", {}),
75
+ " To link your store,",
76
+ ` `,
77
+ "run",
78
+ " ",
79
+ /* @__PURE__ */ jsx("code", { children: "npx shopify hydrogen link && npx shopify hydrogen env pull" }),
80
+ ". Then, run ",
81
+ /* @__PURE__ */ jsx("code", { children: "npx shopify hydrogen setup" }),
82
+ " to scaffold standard Shopify routes.",
83
+ /* @__PURE__ */ jsx("br", {}),
84
+ "Learn more about",
85
+ ` `,
86
+ /* @__PURE__ */ jsx(
87
+ "a",
88
+ {
89
+ target: "_blank",
90
+ rel: "norefferer noopener",
91
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
92
+ children: "editing environment variables"
93
+ }
94
+ ),
95
+ ` `,
96
+ "and",
97
+ ` `,
98
+ /* @__PURE__ */ jsx(CreateRoutesLink, {}),
99
+ "."
100
+ ] })
101
+ ] }),
102
+ /* @__PURE__ */ jsx(ResourcesLinks, {})
103
+ ] }) });
104
+ }
105
+ function CreateRoutesLink() {
106
+ return /* @__PURE__ */ jsx(
107
+ "a",
108
+ {
109
+ target: "_blank",
110
+ rel: "norefferer noopener",
111
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/building/begin-development#step-4-create-a-route",
112
+ children: "creating routes"
113
+ }
114
+ );
115
+ }
116
+ function ErrorPage() {
117
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Layout, { shopName: "Hydrogen", children: [
118
+ /* @__PURE__ */ jsx(HydrogenLogoBaseBW, {}),
119
+ /* @__PURE__ */ jsx("h1", { children: "Hello, Hydrogen" }),
120
+ /* @__PURE__ */ jsx("p", { children: "Welcome to your new custom storefront" }),
121
+ /* @__PURE__ */ jsxs("section", { className: "Banner ErrorBanner", children: [
122
+ /* @__PURE__ */ jsxs("div", { children: [
123
+ /* @__PURE__ */ jsx(IconError, {}),
124
+ /* @__PURE__ */ jsx("h2", { children: "There\u2019s a problem with your storefront" })
125
+ ] }),
126
+ /* @__PURE__ */ jsxs("p", { children: [
127
+ "Check your domain and API token in your ",
128
+ /* @__PURE__ */ jsx("code", { children: ".env" }),
129
+ " file. Learn more about",
130
+ ` `,
131
+ /* @__PURE__ */ jsx(
132
+ "a",
133
+ {
134
+ target: "_blank",
135
+ rel: "norefferer noopener",
136
+ href: "https://shopify.dev/docs/custom-storefronts/hydrogen/environment-variables",
137
+ children: "editing environment variables"
138
+ }
139
+ ),
140
+ "."
141
+ ] })
142
+ ] }),
143
+ /* @__PURE__ */ jsx(ResourcesLinks, {})
144
+ ] }) });
145
+ }
146
+ function ResourcesLinks() {
147
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("section", { className: "Links", children: [
148
+ /* @__PURE__ */ jsx("h2", { children: "Start building" }),
149
+ /* @__PURE__ */ jsxs("ul", { children: [
150
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
151
+ "a",
152
+ {
153
+ target: "_blank",
154
+ rel: "norefferer noopener",
155
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/collection-page",
156
+ children: "Collection template"
157
+ }
158
+ ) }),
159
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
160
+ "a",
161
+ {
162
+ target: "_blank",
163
+ rel: "norefferer noopener",
164
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/product-details-page",
165
+ children: "Product template"
166
+ }
167
+ ) }),
168
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
169
+ "a",
170
+ {
171
+ target: "_blank",
172
+ rel: "norefferer noopener",
173
+ href: "https://shopify.dev/custom-storefronts/hydrogen/building/cart",
174
+ children: "Cart"
175
+ }
176
+ ) })
177
+ ] }),
178
+ /* @__PURE__ */ jsx("h2", { children: "Resources" }),
179
+ /* @__PURE__ */ jsxs("ul", { children: [
180
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
181
+ "a",
182
+ {
183
+ target: "_blank",
184
+ rel: "norefferer noopener",
185
+ href: "https://shopify.dev/custom-storefronts/hydrogen",
186
+ children: "Hydrogen docs"
187
+ }
188
+ ) }),
189
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
190
+ "a",
191
+ {
192
+ target: "_blank",
193
+ rel: "norefferer noopener",
194
+ href: "https://shopify.dev/custom-storefronts/hydrogen/project-structure",
195
+ children: "Remix and project structure"
196
+ }
197
+ ) }),
198
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
199
+ "a",
200
+ {
201
+ target: "_blank",
202
+ rel: "norefferer noopener",
203
+ href: "https://shopify.dev/custom-storefronts/hydrogen/data-fetching/fetch-data",
204
+ children: "Data queries and fetching"
205
+ }
206
+ ) })
207
+ ] })
208
+ ] }) });
209
+ }
210
+ function Layout({
211
+ shopName,
212
+ children
213
+ }) {
214
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
215
+ /* @__PURE__ */ jsxs("header", { children: [
216
+ /* @__PURE__ */ jsx("h1", { children: shopName?.toUpperCase() }),
217
+ /* @__PURE__ */ jsx("p", { children: "\xA0Dev Mode\xA0" }),
218
+ /* @__PURE__ */ jsxs("nav", { children: [
219
+ /* @__PURE__ */ jsx(
220
+ "a",
221
+ {
222
+ target: "_blank",
223
+ rel: "norefferer noopener",
224
+ href: "https://github.com/Shopify/hydrogen",
225
+ children: /* @__PURE__ */ jsx(IconGithub, {})
226
+ }
227
+ ),
228
+ /* @__PURE__ */ jsx(
229
+ "a",
230
+ {
231
+ target: "_blank",
232
+ rel: "norefferer noopener",
233
+ href: "https://twitter.com/shopifydevs?lang=en",
234
+ children: /* @__PURE__ */ jsx(IconTwitter, {})
235
+ }
236
+ )
237
+ ] })
238
+ ] }),
239
+ /* @__PURE__ */ jsx("main", { children }),
240
+ /* @__PURE__ */ jsx("footer", { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
241
+ "a",
242
+ {
243
+ href: "https://shopify.com",
244
+ target: "_blank",
245
+ rel: "noreferrer noopener",
246
+ children: "Powered by Shopify"
247
+ }
248
+ ) }) })
249
+ ] });
250
+ }
251
+ const LAYOUT_QUERY = `#graphql
252
+ query layout {
253
+ shop {
254
+ name
255
+ id
256
+ }
257
+ }
258
+ `;
259
+ export {
260
+ ErrorBoundary,
261
+ HYDROGEN_SHOP_ID,
262
+ Index as default,
263
+ links,
264
+ loader
265
+ };
@@ -0,0 +1,243 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from "react";
3
+ import { Script } from "@shopify/hydrogen";
4
+ import { RequestWaterfall } from "../components/RequestWaterfall.jsx";
5
+ import { RequestTable } from "../components/RequestTable.jsx";
6
+ import { Link } from "react-router";
7
+ import favicon from "../assets/favicon.svg";
8
+ import faviconDark from "../assets/favicon-dark.svg";
9
+ import { useDebugNetworkServer } from "../lib/useDebugNetworkServer.jsx";
10
+ import { RequestDetails } from "../components/RequestDetails.jsx";
11
+ import { IconClose } from "../components/IconClose.jsx";
12
+ import { IconDiscard } from "../components/IconDiscard.jsx";
13
+ import styles from "../assets/debug-network.css?url";
14
+ const links = () => {
15
+ return [
16
+ {
17
+ rel: "icon",
18
+ type: "image/svg+xml",
19
+ href: favicon
20
+ },
21
+ {
22
+ rel: "stylesheet",
23
+ href: styles
24
+ }
25
+ ];
26
+ };
27
+ const WATERFALL_CONFIG = {
28
+ colors: {
29
+ server: "#2ED389",
30
+ streaming: "#33CCFF",
31
+ subRequest: "#FFCC00"
32
+ }
33
+ };
34
+ function DebugNetwork() {
35
+ const {
36
+ serverEvents,
37
+ clear,
38
+ timestamp,
39
+ setHidePutRequests,
40
+ setPreserveLog,
41
+ setHideNotification
42
+ } = useDebugNetworkServer();
43
+ const isEmptyState = serverEvents.mainRequests.length === 0;
44
+ return /* @__PURE__ */ jsxs(
45
+ "div",
46
+ {
47
+ id: "server-network-timing",
48
+ className: `${serverEvents.hideNotification ? "" : "withNotification"}`,
49
+ children: [
50
+ /* @__PURE__ */ jsx(
51
+ Script,
52
+ {
53
+ src: "https://unpkg.com/flame-chart-js@2.3.2/dist/index.min.js",
54
+ suppressHydrationWarning: true
55
+ }
56
+ ),
57
+ /* @__PURE__ */ jsx(
58
+ NotificationBanner,
59
+ {
60
+ hideNotification: serverEvents.hideNotification,
61
+ setHideNotification
62
+ }
63
+ ),
64
+ /* @__PURE__ */ jsx(DebugHeader, {}),
65
+ /* @__PURE__ */ jsxs("div", { id: "main", className: `${isEmptyState ? " empty" : ""}`, children: [
66
+ /* @__PURE__ */ jsx(
67
+ OptionsAndLegend,
68
+ {
69
+ serverEvents,
70
+ clearCallback: clear,
71
+ setHidePutRequests,
72
+ setPreserveLog
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx("div", { id: "request-waterfall", className: "pad", children: isEmptyState ? /* @__PURE__ */ jsx(EmptyState, {}) : /* @__PURE__ */ jsx("div", { className: "request-waterfall-chart", children: /* @__PURE__ */ jsx(
76
+ RequestWaterfall,
77
+ {
78
+ serverEvents,
79
+ config: WATERFALL_CONFIG
80
+ },
81
+ timestamp
82
+ ) }) }),
83
+ /* @__PURE__ */ jsx(RequestInfo, { serverEvents })
84
+ ] })
85
+ ]
86
+ }
87
+ );
88
+ }
89
+ function NotificationBanner({
90
+ hideNotification,
91
+ setHideNotification
92
+ }) {
93
+ if (hideNotification) {
94
+ return null;
95
+ }
96
+ return /* @__PURE__ */ jsxs("div", { className: "notification", children: [
97
+ /* @__PURE__ */ jsx("div", { id: "close-notification", children: /* @__PURE__ */ jsx(
98
+ "button",
99
+ {
100
+ className: "plain icon",
101
+ onClick: () => {
102
+ setHideNotification(true);
103
+ },
104
+ children: /* @__PURE__ */ jsx(IconClose, {})
105
+ }
106
+ ) }),
107
+ /* @__PURE__ */ jsx("p", { children: "Note: You may need to turn on 'Disable Cache' for your navigating window." })
108
+ ] });
109
+ }
110
+ function EmptyState() {
111
+ return /* @__PURE__ */ jsxs("div", { id: "empty-view", children: [
112
+ /* @__PURE__ */ jsx("p", { className: "text-large bold", children: "Navigate to your app" }),
113
+ /* @__PURE__ */ jsx("p", { className: "text-normal", children: "Open your localhost to initiate subrequest profiler" }),
114
+ /* @__PURE__ */ jsx(Link, { to: "/", target: "_blank", className: "link-margin-top", children: /* @__PURE__ */ jsx("button", { className: "primary", children: "Open app" }) })
115
+ ] });
116
+ }
117
+ function DebugHeader() {
118
+ return /* @__PURE__ */ jsx("header", { className: "justify-between text-large", children: /* @__PURE__ */ jsxs("div", { className: "flex-row", children: [
119
+ /* @__PURE__ */ jsx("img", { className: "logo", src: faviconDark, alt: "Hydrogen logo" }),
120
+ /* @__PURE__ */ jsx("h1", { children: "Subrequest Profiler" }),
121
+ /* @__PURE__ */ jsx("span", { className: "pill", children: "Development" })
122
+ ] }) });
123
+ }
124
+ function OptionsAndLegend({
125
+ serverEvents,
126
+ clearCallback,
127
+ setHidePutRequests,
128
+ setPreserveLog
129
+ }) {
130
+ return /* @__PURE__ */ jsxs("div", { id: "options-and-legend", className: "justify-between pad", children: [
131
+ /* @__PURE__ */ jsxs("div", { className: "flex-row text-large", children: [
132
+ /* @__PURE__ */ jsxs("button", { id: "buttonClear", onClick: () => clearCallback(), children: [
133
+ /* @__PURE__ */ jsx(IconDiscard, {}),
134
+ /* @__PURE__ */ jsx("span", { children: "Clear" })
135
+ ] }),
136
+ /* @__PURE__ */ jsxs("div", { className: "form-control", children: [
137
+ /* @__PURE__ */ jsx(
138
+ "input",
139
+ {
140
+ id: "hidePutRequests",
141
+ type: "checkbox",
142
+ checked: serverEvents.hidePutRequests,
143
+ onChange: (event) => setHidePutRequests(event.target.checked)
144
+ }
145
+ ),
146
+ /* @__PURE__ */ jsx("label", { htmlFor: "hidePutRequests", children: "Hide cache update requests (PUT)" })
147
+ ] }),
148
+ /* @__PURE__ */ jsxs("div", { className: "form-control", children: [
149
+ /* @__PURE__ */ jsx(
150
+ "input",
151
+ {
152
+ id: "preserveLog",
153
+ type: "checkbox",
154
+ checked: serverEvents.preserveLog,
155
+ onChange: (event) => setPreserveLog(event.target.checked)
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsx("label", { htmlFor: "preserveLog", children: "Preserve Log" })
159
+ ] })
160
+ ] }),
161
+ /* @__PURE__ */ jsxs("div", { className: "flex-row text-normal gap-small", children: [
162
+ /* @__PURE__ */ jsxs("div", { className: "legend flex-row", children: [
163
+ /* @__PURE__ */ jsx("p", { className: "bold-1", children: "Main Request" }),
164
+ /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
165
+ /* @__PURE__ */ jsx(
166
+ "span",
167
+ {
168
+ className: "swatch",
169
+ style: {
170
+ backgroundColor: WATERFALL_CONFIG.colors.server
171
+ }
172
+ }
173
+ ),
174
+ "Time on server"
175
+ ] }),
176
+ /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
177
+ /* @__PURE__ */ jsx(
178
+ "span",
179
+ {
180
+ className: "swatch",
181
+ style: {
182
+ backgroundColor: WATERFALL_CONFIG.colors.streaming
183
+ }
184
+ }
185
+ ),
186
+ "Time to stream to client"
187
+ ] })
188
+ ] }),
189
+ /* @__PURE__ */ jsx("div", { className: "legend flex-row", children: /* @__PURE__ */ jsxs("p", { className: "flex-row gap-small", children: [
190
+ /* @__PURE__ */ jsx(
191
+ "span",
192
+ {
193
+ className: "swatch",
194
+ style: {
195
+ backgroundColor: WATERFALL_CONFIG.colors.subRequest
196
+ }
197
+ }
198
+ ),
199
+ "Sub request"
200
+ ] }) })
201
+ ] })
202
+ ] });
203
+ }
204
+ function RequestInfo({ serverEvents }) {
205
+ const [activeEventId, setActiveEventId] = useState();
206
+ useEffect(() => {
207
+ window.setActiveEventId = setActiveEventId;
208
+ }, []);
209
+ useEffect(() => {
210
+ if (!activeEventId) {
211
+ setActiveEventId(void 0);
212
+ }
213
+ }, [activeEventId]);
214
+ return /* @__PURE__ */ jsxs("div", { id: "request-info", children: [
215
+ /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
216
+ RequestTable,
217
+ {
218
+ serverEvents,
219
+ activeEventId,
220
+ setActiveEventId
221
+ }
222
+ ) }),
223
+ /* @__PURE__ */ jsx(
224
+ "div",
225
+ {
226
+ id: "request-details-panel",
227
+ className: `${activeEventId ? "active" : ""}`,
228
+ children: /* @__PURE__ */ jsx(
229
+ RequestDetails,
230
+ {
231
+ serverEvents,
232
+ activeEventId,
233
+ setActiveEventId
234
+ }
235
+ )
236
+ }
237
+ )
238
+ ] });
239
+ }
240
+ export {
241
+ DebugNetwork as default,
242
+ links
243
+ };
@@ -0,0 +1,63 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ Links,
4
+ Meta,
5
+ Outlet,
6
+ Scripts,
7
+ ScrollRestoration,
8
+ isRouteErrorResponse,
9
+ useRouteError
10
+ } from "react-router";
11
+ import favicon from "./assets/favicon.svg";
12
+ import { Layout as VirtualLayout } from "./components/Layout.jsx";
13
+ import { useNonce } from "@shopify/hydrogen";
14
+ import styles from "./assets/styles.css?url";
15
+ const links = () => {
16
+ return [{ rel: "icon", type: "image/svg+xml", href: favicon }];
17
+ };
18
+ function App() {
19
+ const nonce = useNonce();
20
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
21
+ /* @__PURE__ */ jsxs("head", { children: [
22
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
23
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
24
+ /* @__PURE__ */ jsx("link", { rel: "stylesheet", href: styles }),
25
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
26
+ /* @__PURE__ */ jsx(
27
+ "meta",
28
+ {
29
+ name: "description",
30
+ content: "A custom storefront powered by Hydrogen"
31
+ }
32
+ ),
33
+ /* @__PURE__ */ jsx(Meta, {}),
34
+ /* @__PURE__ */ jsx(Links, {})
35
+ ] }),
36
+ /* @__PURE__ */ jsxs("body", { children: [
37
+ /* @__PURE__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsx(Outlet, {}) }),
38
+ /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
39
+ /* @__PURE__ */ jsx(Scripts, { nonce })
40
+ ] })
41
+ ] });
42
+ }
43
+ function ErrorBoundary() {
44
+ const error = useRouteError();
45
+ let errorMessage = "Unknown error";
46
+ let errorStatus = 500;
47
+ if (isRouteErrorResponse(error)) {
48
+ errorMessage = error?.data?.message ?? error.data;
49
+ errorStatus = error.status;
50
+ } else if (error instanceof Error) {
51
+ errorMessage = error.message;
52
+ }
53
+ return /* @__PURE__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
54
+ /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
55
+ /* @__PURE__ */ jsx("h2", { children: errorStatus }),
56
+ errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
57
+ ] }) });
58
+ }
59
+ export {
60
+ ErrorBoundary,
61
+ App as default,
62
+ links
63
+ };
@@ -0,0 +1,67 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import {
3
+ Links,
4
+ Meta,
5
+ Outlet,
6
+ Scripts,
7
+ ScrollRestoration,
8
+ isRouteErrorResponse,
9
+ useRouteError
10
+ } from "react-router";
11
+ import favicon from "./assets/favicon.svg";
12
+ import { Layout as VirtualLayout } from "./components/Layout.jsx";
13
+ import { useNonce } from "@shopify/hydrogen";
14
+ import styles from "./assets/styles.css?url";
15
+ const links = () => {
16
+ return [{ rel: "icon", type: "image/svg+xml", href: favicon }];
17
+ };
18
+ function Layout({ children }) {
19
+ const nonce = useNonce();
20
+ return /* @__PURE__ */ jsxs("html", { lang: "en", children: [
21
+ /* @__PURE__ */ jsxs("head", { children: [
22
+ /* @__PURE__ */ jsx("meta", { charSet: "utf-8" }),
23
+ /* @__PURE__ */ jsx("meta", { name: "viewport", content: "width=device-width,initial-scale=1" }),
24
+ /* @__PURE__ */ jsx("link", { rel: "stylesheet", href: styles }),
25
+ /* @__PURE__ */ jsx("title", { children: "Hydrogen" }),
26
+ /* @__PURE__ */ jsx(
27
+ "meta",
28
+ {
29
+ name: "description",
30
+ content: "A custom storefront powered by Hydrogen"
31
+ }
32
+ ),
33
+ /* @__PURE__ */ jsx(Meta, {}),
34
+ /* @__PURE__ */ jsx(Links, {})
35
+ ] }),
36
+ /* @__PURE__ */ jsxs("body", { children: [
37
+ /* @__PURE__ */ jsx(VirtualLayout, { children }),
38
+ /* @__PURE__ */ jsx(ScrollRestoration, { nonce }),
39
+ /* @__PURE__ */ jsx(Scripts, { nonce })
40
+ ] })
41
+ ] });
42
+ }
43
+ function App() {
44
+ return /* @__PURE__ */ jsx(Outlet, {});
45
+ }
46
+ function ErrorBoundary() {
47
+ const error = useRouteError();
48
+ let errorMessage = "Unknown error";
49
+ let errorStatus = 500;
50
+ if (isRouteErrorResponse(error)) {
51
+ errorMessage = error?.data?.message ?? error.data;
52
+ errorStatus = error.status;
53
+ } else if (error instanceof Error) {
54
+ errorMessage = error.message;
55
+ }
56
+ return /* @__PURE__ */ jsx(VirtualLayout, { children: /* @__PURE__ */ jsxs("div", { className: "route-error", children: [
57
+ /* @__PURE__ */ jsx("h1", { children: "Please report this error" }),
58
+ /* @__PURE__ */ jsx("h2", { children: errorStatus }),
59
+ errorMessage && /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("pre", { children: errorMessage }) })
60
+ ] }) });
61
+ }
62
+ export {
63
+ ErrorBoundary,
64
+ Layout,
65
+ App as default,
66
+ links
67
+ };
@@ -0,0 +1,13 @@
1
+ {
2
+ "type": "module",
3
+ "scripts": {
4
+ "build": "shopify hydrogen build --codegen",
5
+ "dev": "shopify hydrogen dev --codegen"
6
+ },
7
+ "dependencies": {
8
+ "isbot": "^5.1.21"
9
+ },
10
+ "devDependencies": {
11
+ "vite": "^8.0.1"
12
+ }
13
+ }