shopify 4.4.0 → 4.5.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 (272) hide show
  1. package/dist/{analytics-SOXP4UBD.js → analytics-DMUNCDGT.js} +1 -1
  2. package/dist/{analytics-DWUYMFHO.js → analytics-GAPN4I6R.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-2NWWMNU5.js → chunk-235JVI2J.js} +1 -1
  5. package/dist/{chunk-Y3WIZSRU.js → chunk-24RF5KN3.js} +1 -1
  6. package/dist/{chunk-OORCODNK.js → chunk-2IPVQRMI.js} +1 -1
  7. package/dist/{chunk-J5TNYNR5.js → chunk-2MDFREEW.js} +1 -1
  8. package/dist/{chunk-V3RZ3DTW.js → chunk-2MZACB7V.js} +1 -1
  9. package/dist/{chunk-WVHB2HCQ.js → chunk-2ROG5NK3.js} +1 -1
  10. package/dist/{chunk-NY5OGHM5.js → chunk-2VUG6LRN.js} +1 -1
  11. package/dist/{chunk-FZKKKGUJ.js → chunk-32KQKGSY.js} +1 -1
  12. package/dist/{chunk-5W443CKL.js → chunk-3EQY5B4S.js} +1 -1
  13. package/dist/{chunk-RF6NUGCU.js → chunk-3JAC5SI7.js} +1 -1
  14. package/dist/{chunk-LCPD2BYX.js → chunk-3JZKWK2V.js} +1 -1
  15. package/dist/{chunk-APN3VWN4.js → chunk-3NMVMCOM.js} +1 -1
  16. package/dist/{chunk-UYK6CXAU.js → chunk-3OE5HXHO.js} +1 -1
  17. package/dist/{chunk-45MEVWH5.js → chunk-4EYTWWYF.js} +1 -1
  18. package/dist/{chunk-X4DIJTIK.js → chunk-4LML2QWN.js} +1 -1
  19. package/dist/{chunk-4N6YTHFD.js → chunk-4Q54UDO3.js} +1 -1
  20. package/dist/{chunk-7UOPCYMV.js → chunk-4U3NC3UU.js} +1 -1
  21. package/dist/{chunk-J3HXFQ2L.js → chunk-52H2R2FU.js} +1 -1
  22. package/dist/{chunk-5JNEWYD5.js → chunk-57IRHKV3.js} +1 -1
  23. package/dist/{chunk-QPN2M26G.js → chunk-5A7EMVAP.js} +1 -1
  24. package/dist/{chunk-H6WN7GP4.js → chunk-5EVFLUUA.js} +1 -1
  25. package/dist/{chunk-TQUSREKP.js → chunk-5O7PY44R.js} +1 -1
  26. package/dist/{chunk-ZIXWWU2N.js → chunk-63NFEXJR.js} +2 -2
  27. package/dist/{chunk-RYGZCBO4.js → chunk-663TS34D.js} +1 -1
  28. package/dist/{chunk-DQ4HA72R.js → chunk-6I3FNLT3.js} +1 -1
  29. package/dist/{chunk-ZEENHLSC.js → chunk-6LTJMYUD.js} +1 -1
  30. package/dist/{chunk-ZAMDXIVC.js → chunk-6V37CHBZ.js} +1 -1
  31. package/dist/{chunk-UKK5P74A.js → chunk-74IG3ZE3.js} +3 -3
  32. package/dist/{chunk-T5GSCWN5.js → chunk-7BVXGS44.js} +1 -1
  33. package/dist/{chunk-GKRCTMWY.js → chunk-7DYZVU7H.js} +1 -1
  34. package/dist/{chunk-OAI7VSLW.js → chunk-7EOQVQND.js} +1 -1
  35. package/dist/{chunk-FPLUMESQ.js → chunk-7HZG7FBK.js} +1 -1
  36. package/dist/{chunk-VOJWKGCW.js → chunk-7KHYEIA7.js} +1 -1
  37. package/dist/{chunk-PJYNAUQB.js → chunk-7ZIO3X22.js} +1 -1
  38. package/dist/{chunk-I73E3BD5.js → chunk-A2O3MBPH.js} +1 -1
  39. package/dist/{chunk-JAW32T6G.js → chunk-ABCU552E.js} +1 -1
  40. package/dist/{chunk-YGKQCEVG.js → chunk-AP6FNGTA.js} +1 -1
  41. package/dist/{chunk-WKBVT5WG.js → chunk-AUZCENYI.js} +1 -1
  42. package/dist/{chunk-UUC5YKAS.js → chunk-AYKRKE6O.js} +1 -1
  43. package/dist/{chunk-WAGAC3YI.js → chunk-AYSS2ERL.js} +1 -1
  44. package/dist/{chunk-Z4LC3WE5.js → chunk-B367FOQA.js} +1 -1
  45. package/dist/{chunk-U73TPLFE.js → chunk-BBATKR3B.js} +1 -1
  46. package/dist/{chunk-O6KTFMCD.js → chunk-BCEWCYZD.js} +1 -1
  47. package/dist/{chunk-SP2WUATO.js → chunk-BH34ZLZ4.js} +1 -1
  48. package/dist/{chunk-LOQIRLTD.js → chunk-BLI7DUNV.js} +1 -1
  49. package/dist/{chunk-YYL356OX.js → chunk-BNX4MZMV.js} +1 -1
  50. package/dist/{chunk-47MGPVED.js → chunk-BU7R7NFL.js} +1 -1
  51. package/dist/{chunk-5GVXMNC4.js → chunk-BVHBMOIB.js} +1 -1
  52. package/dist/{chunk-DONEJHDG.js → chunk-BXDZX3BS.js} +3 -3
  53. package/dist/{chunk-SKLUHLS2.js → chunk-CVRAATZ5.js} +1 -1
  54. package/dist/{chunk-CD5O2BIT.js → chunk-DBBU6OVN.js} +1 -1
  55. package/dist/{chunk-B7S23DLF.js → chunk-DKVU7LYY.js} +1 -1
  56. package/dist/{chunk-HCN6HXA5.js → chunk-DLZPP33V.js} +1 -1
  57. package/dist/{chunk-733R5OKQ.js → chunk-DQOS54HN.js} +1 -1
  58. package/dist/{chunk-JOZXRV5K.js → chunk-E4GW6OXT.js} +1 -1
  59. package/dist/chunk-E64BQS4D.js +1 -0
  60. package/dist/{chunk-BCD4KTLJ.js → chunk-F447QKVX.js} +1 -1
  61. package/dist/{chunk-HZSAUZBX.js → chunk-FA25RL4G.js} +1 -1
  62. package/dist/{chunk-CZXGQ53M.js → chunk-FJOEHMXM.js} +1 -1
  63. package/dist/{chunk-HA6NISOZ.js → chunk-G6YOP2SJ.js} +1 -1
  64. package/dist/{chunk-WZVQHMGI.js → chunk-GOAKZ2IL.js} +1 -1
  65. package/dist/{chunk-VQW35HIQ.js → chunk-H2JU5BGK.js} +1 -1
  66. package/dist/{chunk-QMXKGSFH.js → chunk-H3V6Y5JO.js} +1 -1
  67. package/dist/{chunk-EKHWL542.js → chunk-HHA322FT.js} +1 -1
  68. package/dist/{chunk-GBZL4TTY.js → chunk-HP3NDE7S.js} +1 -1
  69. package/dist/{chunk-GW3VY3FZ.js → chunk-HX3TALXV.js} +1 -1
  70. package/dist/{chunk-POAICASX.js → chunk-I3Y6XTKN.js} +1 -1
  71. package/dist/{chunk-5QWYIBE6.js → chunk-ICHNVDFU.js} +1 -1
  72. package/dist/{chunk-MZMYBFZQ.js → chunk-ICXHUPP5.js} +1 -1
  73. package/dist/{chunk-CPE7XCC6.js → chunk-IE4SSSXU.js} +1 -1
  74. package/dist/{chunk-QS3FMN67.js → chunk-IFVYCKX5.js} +1 -1
  75. package/dist/{chunk-67KMRBSZ.js → chunk-J2ZES5K5.js} +1 -1
  76. package/dist/{chunk-7EJ4UVYI.js → chunk-J5U2FUIX.js} +1 -1
  77. package/dist/{chunk-DO2SHYFU.js → chunk-JC3PRJJS.js} +1 -1
  78. package/dist/{chunk-D6YDSGR4.js → chunk-JGN7YG5X.js} +1 -1
  79. package/dist/{chunk-HZYRCG4R.js → chunk-JZVNNQWE.js} +1 -1
  80. package/dist/{chunk-DZLA2RJP.js → chunk-K2CIMJJW.js} +1 -1
  81. package/dist/{chunk-IIOIDMG3.js → chunk-K7I5BGFC.js} +1 -1
  82. package/dist/{chunk-DHBYYHBT.js → chunk-KESQOMEW.js} +1 -1
  83. package/dist/{chunk-ATXODH6C.js → chunk-KJQAJUDU.js} +1 -1
  84. package/dist/{chunk-7SVMAJTR.js → chunk-KNEF6NAG.js} +1 -1
  85. package/dist/{chunk-XH6ZP7M5.js → chunk-KUKYAIOR.js} +1 -1
  86. package/dist/{chunk-2MMGFZDP.js → chunk-KZDI2BXR.js} +1 -1
  87. package/dist/{chunk-OQORDQLH.js → chunk-LMPD55L6.js} +1 -1
  88. package/dist/{chunk-ZULTG2D2.js → chunk-LXZM6Z4F.js} +1 -1
  89. package/dist/{chunk-KKUDXLK2.js → chunk-MGPLKG23.js} +1 -1
  90. package/dist/{chunk-2EROVVCL.js → chunk-MSJDZLZT.js} +1 -1
  91. package/dist/{chunk-ZQ5JVD5X.js → chunk-N4LCWB56.js} +1 -1
  92. package/dist/{chunk-WRRUFK4Y.js → chunk-N5U5Q2MG.js} +1 -1
  93. package/dist/{chunk-YQH2JHFA.js → chunk-N5YIZJ4S.js} +1 -1
  94. package/dist/{chunk-BIMOHK2P.js → chunk-N625VE5T.js} +1 -1
  95. package/dist/{chunk-J2WCMQZZ.js → chunk-NJLSZS27.js} +1 -1
  96. package/dist/{chunk-3CYHS4W2.js → chunk-O7OQK2OC.js} +1 -1
  97. package/dist/{chunk-V6ZSIUO3.js → chunk-P375IGKT.js} +1 -1
  98. package/dist/{chunk-3OZ6ZZ4T.js → chunk-P3RGC53U.js} +1 -1
  99. package/dist/{chunk-G2S346IS.js → chunk-P4243GCY.js} +1 -1
  100. package/dist/{chunk-MFLQRQQT.js → chunk-PFEC2NUB.js} +1 -1
  101. package/dist/{chunk-GTUKM3ZW.js → chunk-PH7F4BMG.js} +1 -1
  102. package/dist/{chunk-IX4KP6E3.js → chunk-PK6NOLT5.js} +1 -1
  103. package/dist/chunk-PLHJQQVZ.js +1 -0
  104. package/dist/{chunk-GFCLUGAG.js → chunk-PVD544NN.js} +1 -1
  105. package/dist/chunk-Q3WOWDUU.js +1 -0
  106. package/dist/{chunk-FA4K3JRN.js → chunk-QAM7VCLV.js} +1 -1
  107. package/dist/{chunk-AT2GDXN7.js → chunk-QCBAFI6Z.js} +1 -1
  108. package/dist/{chunk-J7UQBC45.js → chunk-QHWF3S7U.js} +1 -1
  109. package/dist/{chunk-TKG42KLM.js → chunk-QJL3SXYA.js} +1 -1
  110. package/dist/{chunk-C3CVLSLS.js → chunk-QRETBFXI.js} +1 -1
  111. package/dist/{chunk-4TST2MNC.js → chunk-RBOYWA2D.js} +1 -1
  112. package/dist/{chunk-NWDP5IZ2.js → chunk-ROQXPIEZ.js} +1 -1
  113. package/dist/{chunk-5QQN3SKH.js → chunk-RUKK4KXX.js} +1 -1
  114. package/dist/{chunk-Z74QYLNC.js → chunk-RY2ESY3P.js} +1 -1
  115. package/dist/{chunk-QJ7TI6CK.js → chunk-RY5CY3ZW.js} +1 -1
  116. package/dist/{chunk-IG6LPVS4.js → chunk-S442LGHR.js} +1 -1
  117. package/dist/{chunk-H5C3QTOO.js → chunk-S5JJL3BP.js} +1 -1
  118. package/dist/{chunk-ZZFZBFVM.js → chunk-SF53RKMO.js} +1 -1
  119. package/dist/{chunk-PETINPMX.js → chunk-SY2AH7C2.js} +1 -1
  120. package/dist/{chunk-WNWQSHEC.js → chunk-TEXYUUTD.js} +1 -1
  121. package/dist/{chunk-G24L7MB3.js → chunk-TGM7L6RV.js} +1 -1
  122. package/dist/{chunk-PMXCJIBP.js → chunk-TKW3Z7XL.js} +1 -1
  123. package/dist/{chunk-KN3FTJDU.js → chunk-TM534QSE.js} +1 -1
  124. package/dist/{chunk-TJGUNVRI.js → chunk-U44HRKSU.js} +1 -1
  125. package/dist/{chunk-442S5SDM.js → chunk-UEC23KAO.js} +1 -1
  126. package/dist/{chunk-G2I2ZUBV.js → chunk-UFGDNIYX.js} +1 -1
  127. package/dist/{chunk-75LJTY7F.js → chunk-UGGFSV7N.js} +1 -1
  128. package/dist/{chunk-F5QG42MA.js → chunk-UJVYIWUI.js} +1 -1
  129. package/dist/{chunk-DLNBTHKL.js → chunk-UP7H24B3.js} +1 -1
  130. package/dist/{chunk-VFWWZMOQ.js → chunk-UQZ7HZ47.js} +1 -1
  131. package/dist/{chunk-NADNFSKS.js → chunk-UTLRP527.js} +1 -1
  132. package/dist/{chunk-73W5BGAZ.js → chunk-UTPJAU5S.js} +1 -1
  133. package/dist/{chunk-3FBSBMSQ.js → chunk-V66IHWQO.js} +1 -1
  134. package/dist/{chunk-GUO7S4NW.js → chunk-V774I3FW.js} +1 -1
  135. package/dist/{chunk-PUAMSBXS.js → chunk-VKFDDZD3.js} +1 -1
  136. package/dist/{chunk-LOHUNOQ7.js → chunk-VNYKNAT5.js} +1 -1
  137. package/dist/{chunk-KSZ5K6LJ.js → chunk-VUACOGOX.js} +1 -1
  138. package/dist/{chunk-WLO5H255.js → chunk-WFB3FHKV.js} +1 -1
  139. package/dist/{chunk-HZMP62GK.js → chunk-WPITBIL5.js} +1 -1
  140. package/dist/{chunk-SXTDVUT3.js → chunk-WTYH2O47.js} +1 -1
  141. package/dist/{chunk-AY4GIVME.js → chunk-WU6GIY22.js} +1 -1
  142. package/dist/{chunk-6DIHOMCB.js → chunk-XA5JA7DK.js} +1 -1
  143. package/dist/{chunk-YLGSM42I.js → chunk-XSXX75VV.js} +1 -1
  144. package/dist/{chunk-XV3I45NA.js → chunk-XXUWTD7A.js} +1 -1
  145. package/dist/{chunk-6YPEONHB.js → chunk-XZWAX4FI.js} +1 -1
  146. package/dist/{chunk-IPQH2RHD.js → chunk-YF4HKJB5.js} +1 -1
  147. package/dist/{chunk-SWI3LCPE.js → chunk-YJAX22JK.js} +1 -1
  148. package/dist/{chunk-7LATYPLU.js → chunk-YT3NPMWK.js} +1 -1
  149. package/dist/{chunk-6EZ7JWBK.js → chunk-YYLEWVO6.js} +4 -4
  150. package/dist/chunk-Z2Y6G2QF.js +1 -0
  151. package/dist/{chunk-PZYP3MCL.js → chunk-Z66NZ2HC.js} +1 -1
  152. package/dist/{chunk-ZIREP3EZ.js → chunk-ZFOWAMFK.js} +1 -1
  153. package/dist/{chunk-6RL7FUPD.js → chunk-ZKBWEHIY.js} +1 -1
  154. package/dist/{chunk-Y66GQ6V2.js → chunk-ZZ3SMI2A.js} +1 -1
  155. package/dist/{chunk-B7BUEEBR.js → chunk-ZZWSMRKT.js} +1 -1
  156. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  157. package/dist/cli/commands/app/build.js +1 -1
  158. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  159. package/dist/cli/commands/app/bulk/execute.js +1 -1
  160. package/dist/cli/commands/app/bulk/status.js +1 -1
  161. package/dist/cli/commands/app/config/link.js +1 -1
  162. package/dist/cli/commands/app/config/pull.js +1 -1
  163. package/dist/cli/commands/app/config/use.js +1 -1
  164. package/dist/cli/commands/app/config/validate.js +1 -1
  165. package/dist/cli/commands/app/demo/watcher.js +1 -1
  166. package/dist/cli/commands/app/deploy.js +1 -1
  167. package/dist/cli/commands/app/dev/clean.js +1 -1
  168. package/dist/cli/commands/app/dev.js +1 -1
  169. package/dist/cli/commands/app/env/pull.js +1 -1
  170. package/dist/cli/commands/app/env/show.js +1 -1
  171. package/dist/cli/commands/app/execute.js +1 -1
  172. package/dist/cli/commands/app/function/build.js +1 -1
  173. package/dist/cli/commands/app/function/info.js +1 -1
  174. package/dist/cli/commands/app/function/replay.js +1 -1
  175. package/dist/cli/commands/app/function/run.js +1 -1
  176. package/dist/cli/commands/app/function/schema.js +1 -1
  177. package/dist/cli/commands/app/function/typegen.js +1 -1
  178. package/dist/cli/commands/app/generate/extension.js +1 -1
  179. package/dist/cli/commands/app/graphiql.js +1 -1
  180. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  181. package/dist/cli/commands/app/import-extensions.js +1 -1
  182. package/dist/cli/commands/app/info.js +1 -1
  183. package/dist/cli/commands/app/init.js +1 -1
  184. package/dist/cli/commands/app/logs.js +1 -1
  185. package/dist/cli/commands/app/release.js +1 -1
  186. package/dist/cli/commands/app/versions/list.js +1 -1
  187. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  188. package/dist/cli/commands/auth/login.js +1 -1
  189. package/dist/cli/commands/auth/logout.js +1 -1
  190. package/dist/cli/commands/cache/clear.js +1 -1
  191. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  192. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  193. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  194. package/dist/cli/commands/debug/command-flags.js +1 -1
  195. package/dist/cli/commands/doc/fetch.js +1 -1
  196. package/dist/cli/commands/doc/search.js +1 -1
  197. package/dist/cli/commands/docs/generate.js +1 -1
  198. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  199. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  200. package/dist/cli/commands/help.js +1 -1
  201. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  202. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  203. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  204. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  205. package/dist/cli/commands/notifications/generate.js +1 -1
  206. package/dist/cli/commands/notifications/list.js +1 -1
  207. package/dist/cli/commands/organization/list.js +1 -1
  208. package/dist/cli/commands/search.js +1 -1
  209. package/dist/cli/commands/theme/check.js +1 -1
  210. package/dist/cli/commands/theme/console.js +1 -1
  211. package/dist/cli/commands/theme/delete.js +1 -1
  212. package/dist/cli/commands/theme/dev.js +1 -1
  213. package/dist/cli/commands/theme/duplicate.js +1 -1
  214. package/dist/cli/commands/theme/info.js +1 -1
  215. package/dist/cli/commands/theme/init.js +1 -1
  216. package/dist/cli/commands/theme/language-server.js +1 -1
  217. package/dist/cli/commands/theme/list.js +1 -1
  218. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  219. package/dist/cli/commands/theme/open.js +1 -1
  220. package/dist/cli/commands/theme/package.js +1 -1
  221. package/dist/cli/commands/theme/preview.js +1 -1
  222. package/dist/cli/commands/theme/profile.js +1 -1
  223. package/dist/cli/commands/theme/publish.js +1 -1
  224. package/dist/cli/commands/theme/pull.js +1 -1
  225. package/dist/cli/commands/theme/push.js +1 -1
  226. package/dist/cli/commands/theme/rename.js +1 -1
  227. package/dist/cli/commands/theme/share.js +1 -1
  228. package/dist/cli/commands/upgrade.js +1 -1
  229. package/dist/cli/commands/version.js +1 -1
  230. package/dist/command-registry.js +1 -1
  231. package/dist/{conf-store-C2LOYIOU.js → conf-store-V6ILVUUO.js} +1 -1
  232. package/dist/{deprecations-QOHE6JG6.js → deprecations-MOEFN6OW.js} +1 -1
  233. package/dist/dist-2BL5GGMG.js +1 -0
  234. package/dist/{dist-FF6C4ZHS.js → dist-E6QKEULH.js} +1 -1
  235. package/dist/{environments-EGD263DV.js → environments-5KA3OBIZ.js} +1 -1
  236. package/dist/{error-66U2HJ37.js → error-NYYI6HVX.js} +1 -1
  237. package/dist/{error-handler-SW2ALZ5Z.js → error-handler-BOESDKZA.js} +1 -1
  238. package/dist/{fs-JPQRUGZI.js → fs-XE6SBVBF.js} +1 -1
  239. package/dist/hooks/app-init.js +1 -1
  240. package/dist/hooks/did-you-mean.js +1 -1
  241. package/dist/hooks/hydrogen-init.js +1 -1
  242. package/dist/hooks/postrun.js +1 -1
  243. package/dist/hooks/prerun.js +1 -1
  244. package/dist/hooks/public-metadata.js +1 -1
  245. package/dist/hooks/sensitive-metadata.js +1 -1
  246. package/dist/hooks/tunnel-provider.js +1 -1
  247. package/dist/hooks/tunnel-start.js +1 -1
  248. package/dist/index.js +14 -14
  249. package/dist/{is-global-QWTDUPNR.js → is-global-JOHCPSKZ.js} +1 -1
  250. package/dist/{local-FRYN3NWL.js → local-BTQDUX72.js} +1 -1
  251. package/dist/{local-storage-DFH3LT5G.js → local-storage-WUSIVDTQ.js} +1 -1
  252. package/dist/{metadata-KZVLHQII.js → metadata-APVOKTBV.js} +1 -1
  253. package/dist/{node-package-manager-LVFBY4LY.js → node-package-manager-AC34ZJZD.js} +1 -1
  254. package/dist/notifications-system-4ODOESG2.js +1 -0
  255. package/dist/{output-NH4I5Y3C.js → output-EAPQ7OWD.js} +1 -1
  256. package/dist/{system-GNOF6HMI.js → system-D7CH26HU.js} +1 -1
  257. package/dist/tsconfig.tsbuildinfo +1 -1
  258. package/dist/{ui-QOGKADWB.js → ui-AXZBGWIQ.js} +1 -1
  259. package/dist/upgrade-SLPJF6LD.js +1 -0
  260. package/dist/version-3IYH4V5U.js +1 -0
  261. package/dist/{version-FJFTTOZU.js → version-FAU37PQN.js} +1 -1
  262. package/dist/{workerd-U6WWWY73.js → workerd-XXPWKQOM.js} +1 -1
  263. package/oclif.manifest.json +2 -6
  264. package/package.json +7 -7
  265. package/dist/chunk-FU232KQ7.js +0 -1
  266. package/dist/chunk-HM5H7WBE.js +0 -1
  267. package/dist/chunk-MQICT2LR.js +0 -1
  268. package/dist/chunk-UMT7DWR4.js +0 -1
  269. package/dist/dist-Q676YGVI.js +0 -1
  270. package/dist/notifications-system-DP443VTE.js +0 -1
  271. package/dist/upgrade-K4S6JW64.js +0 -1
  272. package/dist/version-ZI4GZX72.js +0 -1
@@ -1 +1 @@
1
- import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./chunk-5W443CKL.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-GW3VY3FZ.js";import"./chunk-KN3FTJDU.js";import"./chunk-FU232KQ7.js";import"./chunk-SXTDVUT3.js";import"./chunk-T7KHS6RF.js";import"./chunk-47MGPVED.js";import"./chunk-5C7HDTHJ.js";import"./chunk-6EZ7JWBK.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-FPLUMESQ.js";import"./chunk-WRRUFK4Y.js";import"./chunk-WKBVT5WG.js";import"./chunk-DONEJHDG.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-KKUDXLK2.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
1
+ import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./chunk-3EQY5B4S.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-HX3TALXV.js";import"./chunk-TM534QSE.js";import"./chunk-Q3WOWDUU.js";import"./chunk-WTYH2O47.js";import"./chunk-T7KHS6RF.js";import"./chunk-BU7R7NFL.js";import"./chunk-5C7HDTHJ.js";import"./chunk-YYLEWVO6.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-7HZG7FBK.js";import"./chunk-N5U5Q2MG.js";import"./chunk-AUZCENYI.js";import"./chunk-BXDZX3BS.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-MGPLKG23.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
@@ -1 +1 @@
1
- import{qa as a,ra as b,sa as c}from"./chunk-5W443CKL.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-GW3VY3FZ.js";import"./chunk-KN3FTJDU.js";import"./chunk-FU232KQ7.js";import"./chunk-SXTDVUT3.js";import"./chunk-T7KHS6RF.js";import"./chunk-47MGPVED.js";import"./chunk-5C7HDTHJ.js";import"./chunk-6EZ7JWBK.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-FPLUMESQ.js";import"./chunk-WRRUFK4Y.js";import"./chunk-WKBVT5WG.js";import"./chunk-DONEJHDG.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-KKUDXLK2.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
1
+ import{qa as a,ra as b,sa as c}from"./chunk-3EQY5B4S.js";import"./chunk-ZDF5N422.js";import"./chunk-MPW2YJWU.js";import"./chunk-HX3TALXV.js";import"./chunk-TM534QSE.js";import"./chunk-Q3WOWDUU.js";import"./chunk-WTYH2O47.js";import"./chunk-T7KHS6RF.js";import"./chunk-BU7R7NFL.js";import"./chunk-5C7HDTHJ.js";import"./chunk-YYLEWVO6.js";import"./chunk-EJDWYASP.js";import"./chunk-RJ5VF3QY.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-7HZG7FBK.js";import"./chunk-N5U5Q2MG.js";import"./chunk-AUZCENYI.js";import"./chunk-BXDZX3BS.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-MGPLKG23.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
package/dist/bootstrap.js CHANGED
@@ -1,3 +1,3 @@
1
- import{a as p}from"./chunk-GDHD3TGC.js";import"./chunk-T7KHS6RF.js";import{a as e}from"./chunk-H5C3QTOO.js";import{a as s}from"./chunk-TQUSREKP.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import{e as m,g as t}from"./chunk-VKWPEFWQ.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-66U2HJ37.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-QOGKADWB.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
1
+ import{a as p}from"./chunk-GDHD3TGC.js";import"./chunk-T7KHS6RF.js";import{a as e}from"./chunk-S5JJL3BP.js";import{a as s}from"./chunk-5O7PY44R.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-CRALWNNO.js";import{e as m,g as t}from"./chunk-VKWPEFWQ.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-NYYI6HVX.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-AXZBGWIQ.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
2
2
  `)}catch{n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
3
3
  `)}process.exit(1)});var f=["SIGINT","SIGTERM","SIGQUIT"];f.forEach(o=>{process.on(o,()=>{process.exit(1)})});var a=Number(process.env.SHOPIFY_CLI_COLUMNS);isNaN(a)||(process.stdout.columns=a);async function l({development:o}){await e({moduleURL:import.meta.url,development:o,lazyCommandLoader:s})}var S=l;export{S as default};
@@ -1,4 +1,4 @@
1
- import{a as U,b as xt}from"./chunk-KRZABRYT.js";import{a as mt,b as ht,f as _e,g as ae,h as A,i as ce,k as yt,n as Et}from"./chunk-6YPEONHB.js";import{a as M,l as ft,m as gt}from"./chunk-PJYNAUQB.js";import{s as ie,t as W}from"./chunk-D6YDSGR4.js";import{a as O,b as N,e as st,g as nt,i as rt,j as ot,k as it,n as at,p as ct,q as lt,r as oe,s as $,u as dt,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as ut}from"./chunk-T5GSCWN5.js";import{va as L,xa as H}from"./chunk-5W443CKL.js";import{b as Qe}from"./chunk-5C7HDTHJ.js";import{P as tt,u as Ke,w as _,x as te,y as et}from"./chunk-6EZ7JWBK.js";import{d as se}from"./chunk-WKBVT5WG.js";import{Fb as q,Hb as ne,Mb as re,O as Ve,Pb as F,Qb as D,Ta as v,Wa as C,_ as $e,bb as ke,ma as k,ua as be,wa as Xe,ya as Ze}from"./chunk-DONEJHDG.js";import{d as E,g as V,j as Ge,k as j}from"./chunk-773TIA5M.js";import{e as Ye,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var ns=".shopifyignore",wt=/templates\/\*(\.(json|liquid))?$/,Tt=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=Ie(s),[a=[],u=[]]=Ie(n),[m=[],c=[]]=Ie(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(m,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(B(u,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Ve(l,f=>f.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>rs(n,i)||as(i)&&is(n,cs(i)));return(s?!r:r)?(F(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function Rt(e){let t=E(e,ns);return await v(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function Ie(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function rs(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!Tt.has(t)&&(Tt.add(t),_({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),os(t)?ke(e,t.replace(wt,"templates/**/*$1"),s):!1)}function os(e){return wt.test(e)}function is(e,t){return t.test(e)}function as(e){return e.startsWith("/")&&e.endsWith("/")}function cs(e){return new RegExp(e.slice(1,-1))}h();import St from"fs/promises";var le=class{constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&D("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{F(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),D(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await St.writeFile(this.notifyPath,t),await St.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ls from"node:events";var Ft=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ls,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await pe(e,c),p=de(c,l),f=typeof l=="string"?l:"",x=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:p,value:f,attachment:x})),l},i=C(Ft,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let p=V(e,l),f=o(p).then(()=>{let x=t.get(p);return s.add(x.key),x.value??x.attachment??""});tt(5).then(()=>{s.delete(p)}).catch(()=>{}),r(c,{fileKey:p,onContent:x=>{f.then(P=>{P&&x(P)}).catch(()=>{})},onSync:x=>{}})},u=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:p=>p()})},m=new Set(Ft.map(c=>E(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-VDIVGBZH.js");c.watch([...m],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}h();h();var ds="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function Pt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function $t(e){return(0,String.raw)`<!DOCTYPE html>
1
+ import{a as U,b as xt}from"./chunk-KRZABRYT.js";import{a as mt,b as ht,f as _e,g as ae,h as A,i as ce,k as yt,n as Et}from"./chunk-XZWAX4FI.js";import{a as M,l as ft,m as gt}from"./chunk-7ZIO3X22.js";import{s as ie,t as W}from"./chunk-JGN7YG5X.js";import{a as O,b as N,e as st,g as nt,i as rt,j as ot,k as it,n as at,p as ct,q as lt,r as oe,s as $,u as dt,w as pt}from"./chunk-Q7BOSHWX.js";import{aa as ut}from"./chunk-7BVXGS44.js";import{va as L,xa as H}from"./chunk-3EQY5B4S.js";import{b as Qe}from"./chunk-5C7HDTHJ.js";import{P as tt,u as Ke,w as _,x as te,y as et}from"./chunk-YYLEWVO6.js";import{d as se}from"./chunk-AUZCENYI.js";import{Fb as q,Hb as ne,Mb as re,O as Ve,Pb as F,Qb as D,Ta as v,Wa as C,_ as $e,bb as ke,ma as k,ua as be,wa as Xe,ya as Ze}from"./chunk-BXDZX3BS.js";import{d as E,g as V,j as Ge,k as j}from"./chunk-773TIA5M.js";import{e as Ye,g as h}from"./chunk-VKWPEFWQ.js";h();h();h();var ns=".shopifyignore",wt=/templates\/\*(\.(json|liquid))?$/,Tt=new Set;function Le(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],i=[]]=Ie(s),[a=[],u=[]]=Ie(n),[m=[],c=[]]=Ie(r),l=e.filter(B(o,".shopifyignore"));return l=l.filter(B(a,"--ignore")),l=l.filter(B(m,"--only",!0)),i.length>0&&(l=l.concat(e.filter(B(i,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(B(u,"--ignore",!0)))),c.length>0&&(l=l.filter(B(c,"--only"))),Ve(l,f=>f.key)}function B(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(i=>rs(n,i)||as(i)&&is(n,cs(i)));return(s?!r:r)?(F(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function Rt(e){let t=E(e,ns);return await v(t)?(await k(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function Ie(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function rs(e,t){let s={matchBase:!0,noglobstar:!0};return ke(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!Tt.has(t)&&(Tt.add(t),_({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),os(t)?ke(e,t.replace(wt,"templates/**/*$1"),s):!1)}function os(e){return wt.test(e)}function is(e,t){return t.test(e)}function as(e){return e.startsWith("/")&&e.endsWith("/")}function cs(e){return new RegExp(e.slice(1,-1))}h();import St from"fs/promises";var le=class{constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&D("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{F(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){L(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),D(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await St.writeFile(this.notifyPath,t),await St.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};h();h();h();import ls from"node:events";var Ft=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function vt(e){let t=new Map,s=new Set,n=new ls,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await pe(e,c),p=de(c,l),f=typeof l=="string"?l:"",x=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,M({key:c,checksum:p,value:f,attachment:x})),l},i=C(Ft,{cwd:e,deep:3,ignore:W}).then(c=>Promise.all(c.map(o))),a=(c,l)=>{let p=V(e,l),f=o(p).then(()=>{let x=t.get(p);return s.add(x.key),x.value??x.attachment??""});tt(5).then(()=>{s.delete(p)}).catch(()=>{}),r(c,{fileKey:p,onContent:x=>{f.then(P=>{P&&x(P)}).catch(()=>{})},onSync:x=>{}})},u=c=>{let l=V(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:p=>p()})},m=new Set(Ft.map(c=>E(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>i.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-VDIVGBZH.js");c.watch([...m],{ignored:W,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",a.bind(null,"add")).on("change",a.bind(null,"change")).on("unlink",u.bind(null))}}}h();h();var ds="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function Pt(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function $t(e){return(0,String.raw)`<!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
4
  <title>${e.title}</title>
@@ -1 +1 @@
1
- import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-5W443CKL.js";import{h as n}from"./chunk-KN3FTJDU.js";import{b as g}from"./chunk-UKK5P74A.js";import{F as S,z as h}from"./chunk-6EZ7JWBK.js";import{Ob as w}from"./chunk-DONEJHDG.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
1
+ import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-3EQY5B4S.js";import{h as n}from"./chunk-TM534QSE.js";import{b as g}from"./chunk-74IG3ZE3.js";import{F as S,z as h}from"./chunk-YYLEWVO6.js";import{Ob as w}from"./chunk-BXDZX3BS.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
@@ -1 +1 @@
1
- import{a as h,c as D,d as _,e as w}from"./chunk-67KMRBSZ.js";import{g as y,p as O,v as b}from"./chunk-D6YDSGR4.js";import{b as S,c as T}from"./chunk-H5C3QTOO.js";import{b as v}from"./chunk-47MGPVED.js";import{u as F}from"./chunk-6EZ7JWBK.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-DONEJHDG.js";import{r as G}from"./chunk-T6CC5WUU.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
1
+ import{a as h,c as D,d as _,e as w}from"./chunk-J2ZES5K5.js";import{g as y,p as O,v as b}from"./chunk-JGN7YG5X.js";import{b as S,c as T}from"./chunk-S5JJL3BP.js";import{b as v}from"./chunk-BU7R7NFL.js";import{u as F}from"./chunk-YYLEWVO6.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-BXDZX3BS.js";import{r as G}from"./chunk-T6CC5WUU.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-WRRUFK4Y.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
1
+ import{a as e}from"./chunk-N5U5Q2MG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
@@ -1,4 +1,4 @@
1
- import{a as D}from"./chunk-HA6NISOZ.js";import{b as ne,c as re}from"./chunk-7UOPCYMV.js";import{c as ee,d as te}from"./chunk-5JNEWYD5.js";import{A as T}from"./chunk-6RL7FUPD.js";import{a as Z}from"./chunk-HM5H7WBE.js";import{a as Q}from"./chunk-ZAMDXIVC.js";import{Fa as X}from"./chunk-ATXODH6C.js";import{b as Y,c as V}from"./chunk-H5C3QTOO.js";import{B as q,a as S,i as K,j as U,k as b,p as C}from"./chunk-6EZ7JWBK.js";import{a as J}from"./chunk-FPLUMESQ.js";import{d as M}from"./chunk-WKBVT5WG.js";import{eb as O,fb as l,gb as s,ib as j,jb as G,kb as H,ma as N}from"./chunk-DONEJHDG.js";import{f as z}from"./chunk-KKUDXLK2.js";import{d as I}from"./chunk-773TIA5M.js";import{r as ye}from"./chunk-T6CC5WUU.js";import{e as R,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var y=R(O(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,y.useState)([]),[p,m]=(0,y.useState)([a,a]),[w,d]=(0,y.useState)(void 0),{input:E,export:$}=e.payload,[fe,L]=(0,y.useState)(`Watching for changes to ${e.source}...`);return(0,y.useEffect)(()=>{let A=new S;t.signal.addEventListener("abort",()=>{A.abort()});let B=async()=>{let F=await we(r,JSON.stringify(E),$);m(h=>[F,h[0]]),L(`Watching for changes to ${e.source}...`),f(h=>[...h,F])},de=async()=>{L("Replaying log with local function..."),await B()},ge=async()=>{i.onEvent(async h=>{let x=h.extensionEvents.find(v=>v.extension.handle===r.handle);if(!(!x||x.type!==ee.Updated)){if(x.buildResult?.status==="error"){d(`Error while reloading and building extension: ${x.buildResult?.error}`);return}d(void 0),L("Re-running with latest changes..."),await B()}});let F=new oe({write(h,x,v){f(he=>[...he,{type:"systemMessage",message:h.toString()}]),v()}});await i.start({stdout:F,stderr:F,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,$,o,r]),C(t.signal,async()=>{setTimeout(()=>{z()||J(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:w}}async function we(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await D({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=R(O(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=G(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:w}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return H((d,E)=>{U(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Se,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,b.pointerSmall," ",p)),n.default.createElement(Re,{recentFunctionRuns:m}),n.default.createElement(s,null,b.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",b.lineVertical," quit")):null,w?n.default.createElement(s,{color:"red"},w):null))};function k({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
1
+ import{a as D}from"./chunk-G6YOP2SJ.js";import{b as ne,c as re}from"./chunk-4U3NC3UU.js";import{c as ee,d as te}from"./chunk-57IRHKV3.js";import{A as T}from"./chunk-ZKBWEHIY.js";import{a as Z}from"./chunk-PLHJQQVZ.js";import{a as Q}from"./chunk-6V37CHBZ.js";import{Fa as X}from"./chunk-KJQAJUDU.js";import{b as Y,c as V}from"./chunk-S5JJL3BP.js";import{B as q,a as S,i as K,j as U,k as b,p as C}from"./chunk-YYLEWVO6.js";import{a as J}from"./chunk-7HZG7FBK.js";import{d as M}from"./chunk-AUZCENYI.js";import{eb as O,fb as l,gb as s,ib as j,jb as G,kb as H,ma as N}from"./chunk-BXDZX3BS.js";import{f as z}from"./chunk-MGPLKG23.js";import{d as I}from"./chunk-773TIA5M.js";import{r as ye}from"./chunk-T6CC5WUU.js";import{e as R,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var y=R(O(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,y.useState)([]),[p,m]=(0,y.useState)([a,a]),[w,d]=(0,y.useState)(void 0),{input:E,export:$}=e.payload,[fe,L]=(0,y.useState)(`Watching for changes to ${e.source}...`);return(0,y.useEffect)(()=>{let A=new S;t.signal.addEventListener("abort",()=>{A.abort()});let B=async()=>{let F=await we(r,JSON.stringify(E),$);m(h=>[F,h[0]]),L(`Watching for changes to ${e.source}...`),f(h=>[...h,F])},de=async()=>{L("Replaying log with local function..."),await B()},ge=async()=>{i.onEvent(async h=>{let x=h.extensionEvents.find(v=>v.extension.handle===r.handle);if(!(!x||x.type!==ee.Updated)){if(x.buildResult?.status==="error"){d(`Error while reloading and building extension: ${x.buildResult?.error}`);return}d(void 0),L("Re-running with latest changes..."),await B()}});let F=new oe({write(h,x,v){f(he=>[...he,{type:"systemMessage",message:h.toString()}]),v()}});await i.start({stdout:F,stderr:F,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,$,o,r]),C(t.signal,async()=>{setTimeout(()=>{z()||J(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:w}}async function we(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await D({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=R(O(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=C(t.signal),{isRawModeSupported:a}=G(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:w}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return H((d,E)=>{U(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Se,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,b.pointerSmall," ",p)),n.default.createElement(Re,{recentFunctionRuns:m}),n.default.createElement(s,null,b.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",b.lineVertical," quit")):null,w?n.default.createElement(s,{color:"red"},w):null))};function k({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
2
2
 
3
3
  `,r,e,r,`
4
4
  `)}function Ee({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,T(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,T(e)))}function be({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(k,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function Re({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,b.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Se({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(Ee,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(be,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=R(O(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return K(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await q({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var _=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new S;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Ae(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await D({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Le(e,t,o);if(r===void 0)throw new M(`No log found for '${o}'.
@@ -1,4 +1,4 @@
1
- import{a as h}from"./chunk-JOZXRV5K.js";import{a as v}from"./chunk-HM5H7WBE.js";import{a as m}from"./chunk-ZAMDXIVC.js";import{Fa as c}from"./chunk-ATXODH6C.js";import{z as n}from"./chunk-5W443CKL.js";import{b as l}from"./chunk-H5C3QTOO.js";import{v as d}from"./chunk-6EZ7JWBK.js";import{d as a}from"./chunk-WKBVT5WG.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as S,g as p}from"./chunk-VKWPEFWQ.js";p();p();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new a("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let u=s.devSessionDelete.userErrors.map(g=>g.message).join(`
1
+ import{a as h}from"./chunk-E4GW6OXT.js";import{a as v}from"./chunk-PLHJQQVZ.js";import{a as m}from"./chunk-6V37CHBZ.js";import{Fa as c}from"./chunk-KJQAJUDU.js";import{z as n}from"./chunk-3EQY5B4S.js";import{b as l}from"./chunk-S5JJL3BP.js";import{v as d}from"./chunk-YYLEWVO6.js";import{d as a}from"./chunk-AUZCENYI.js";import{r as x}from"./chunk-T6CC5WUU.js";import{e as S,g as p}from"./chunk-VKWPEFWQ.js";p();p();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp;if(!e.supportsDevSessions)throw new a("Dev preview is not supported for this app. It's valid only for apps created on the Next-Gen Dev Platform.");let s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let u=s.devSessionDelete.userErrors.map(g=>g.message).join(`
2
2
  `);throw new a(`Failed to stop the dev preview: ${u}`)}d({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${o.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var w=S(x(),1);var i,t=class extends v{async run(){let{flags:e}=await this.parse(i),r=await c({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),s=await h({appContextResult:r,storeFqdn:e.store,forceReselectStore:e.reset});return await f({appContextResult:r,store:s}),{app:r.app}}};i=t;t.summary="Cleans up the dev preview from the selected store.";t.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.
@@ -1 +1 @@
1
- import{b as E}from"./chunk-H5C3QTOO.js";import{b}from"./chunk-UKK5P74A.js";import{M as F,N}from"./chunk-6EZ7JWBK.js";import{Mb as k,T as C,Ta as w,ma as O}from"./chunk-DONEJHDG.js";import{u as n}from"./chunk-A4SBXDZB.js";import{k as R}from"./chunk-KKUDXLK2.js";import{d as u,f as P,g as x,h as g,n as T,q as y}from"./chunk-773TIA5M.js";import{r as U}from"./chunk-T6CC5WUU.js";import{e as H,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();d();var m=class{constructor(){this.assertions=[],this.registeredTests=[]}async runSuite(t){this.context=t,this.registeredTests=[];let e=[];this.tests();for(let i of this.registeredTests){this.assertions=[];let s=Date.now();try{await i.fn(),e.push({name:i.name,status:this.hasFailures()?"failed":"passed",duration:Date.now()-s,assertions:[...this.assertions]})}catch(r){e.push({name:i.name,status:"failed",duration:Date.now()-s,assertions:[...this.assertions],error:r instanceof Error?r:new Error(String(r))})}}return e}test(t,e){this.registeredTests.push({name:t,fn:e})}tests(){}async run(t,e){let i=e?.cwd??this.context.workingDirectory,s=await F(t,{cwd:i,env:e?.env});return{command:t,exitCode:s.exitCode,stdout:s.stdout,stderr:s.stderr,output:String(s.stdout)+String(s.stderr),success:s.exitCode===0}}async runInteractive(t,e){let i=e?.cwd??this.context.workingDirectory,s=0;try{await N(t,{cwd:i,env:e?.env,stdin:"inherit"})}catch{s=1}return{command:t,exitCode:s,stdout:"",stderr:"",output:"",success:s===0}}assertSuccess(t,e){this.assertions.push({description:e??`Command succeeded: ${t.command}`,passed:t.success,expected:"exit code 0",actual:`exit code ${t.exitCode}`})}assertError(t,e,i){let s=!t.success;if(e){let h=(typeof e=="string"?new RegExp(e):e).test(t.output),c;s?h?c="matched":c=`output: ${t.output.slice(0,200)}`:c="command succeeded",this.assertions.push({description:i??`Command failed with expected error: ${e}`,passed:s&&h,expected:`failure with error matching ${e}`,actual:c})}else this.assertions.push({description:i??`Command failed: ${t.command}`,passed:s,expected:"non-zero exit code",actual:`exit code ${t.exitCode}`})}async assertFile(t,e,i){let s=g(t)?t:u(this.context.workingDirectory,t),r=x(this.context.workingDirectory,s);if(!await w(s)){this.assertions.push({description:i??`File exists: ${r}`,passed:!1,expected:"file exists",actual:"file not found"});return}if(e){let c=await O(s),D=(typeof e=="string"?new RegExp(e):e).test(c);this.assertions.push({description:i??`File ${r} matches ${e}`,passed:D,expected:`content matching ${e}`,actual:D?"matched":`content: ${c.slice(0,200)}...`})}else this.assertions.push({description:i??`File exists: ${r}`,passed:!0,expected:"file exists",actual:"file exists"})}async assertNoFile(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`File does not exist: ${s}`,passed:!r,expected:"file does not exist",actual:r?"file exists":"file does not exist"})}async assertDirectory(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`Directory exists: ${s}`,passed:r,expected:"directory exists",actual:r?"directory exists":"directory not found"})}assertOutput(t,e,i){let r=(typeof e=="string"?new RegExp(e):e).test(t.output);this.assertions.push({description:i??`Output matches ${e}`,passed:r,expected:`output matching ${e}`,actual:r?"matched":`output: ${t.output.slice(0,200)}`})}assertJson(t,e,i){try{let s=JSON.parse(t.stdout);if(e){let r=e(s);this.assertions.push({description:i??"Output is valid JSON matching validator",passed:r,expected:"valid JSON matching validator",actual:r?"matched":"validator returned false"})}else this.assertions.push({description:i??"Output is valid JSON",passed:!0,expected:"valid JSON",actual:"valid JSON"});return s}catch{this.assertions.push({description:i??"Output is valid JSON",passed:!1,expected:"valid JSON",actual:`invalid JSON: ${t.stdout.slice(0,100)}`});return}}assert(t,e){this.assertions.push({description:e,passed:t,expected:"true",actual:String(t)})}assertEqual(t,e,i){this.assertions.push({description:i,passed:t===e,expected:String(e),actual:String(t)})}hasFailures(){return this.assertions.some(t=>!t.passed)}};m.description="Doctor test suite";var p=class extends m{constructor(){super(...arguments);this.themeName="";this.themePath=""}static{this.description="Tests the theme init command creates a valid theme structure"}tests(){this.test("init creates theme directory",async()=>{this.themeName=`doctor-theme-${C("creative")}`,this.themePath=u(this.context.workingDirectory,this.themeName);let e=await this.runInteractive(`shopify theme init ${this.themeName} --path ${this.context.workingDirectory}`);this.assertSuccess(e),this.context.themeName=this.themeName,this.context.themePath=this.themePath}),this.test("essential theme files exist",async()=>{let e=["layout/theme.liquid","config/settings_schema.json","templates/index.json"];await Promise.all(e.map(i=>this.assertFile(u(this.themePath,i))))}),this.test("theme directories exist",async()=>{let e=["sections","snippets","assets","locales"];await Promise.all(e.map(i=>this.assertDirectory(u(this.themePath,i))))}),this.test("layout/theme.liquid has valid content",async()=>{await this.assertFile(u(this.themePath,"layout/theme.liquid"),/<!doctype html>|<html|{{ content_for_header }}/i,"layout/theme.liquid contains expected Liquid markup")})}};d();var l=class extends m{static{this.description="Tests pushing a theme to the store creates an unpublished theme"}static{this.requiresStore=!0}tests(){this.test("push creates unpublished theme",async()=>{if(!this.context.themePath){this.assert(!1,"Theme init did not complete successfully; themePath is missing in context");return}let t=this.context.themeName??"doctor-theme",e=`shopify theme push --unpublished --json --path ${this.context.themePath} -t ${t}`;this.context.environment&&(e+=` -e ${this.context.environment}`),this.context.store&&(e+=` -s ${this.context.store}`),this.context.password&&(e+=` --password ${this.context.password}`);let i=await this.run(e);this.assertSuccess(i);let s=this.assertJson(i,r=>typeof r.theme?.id=="number");s?.theme&&(this.assert(typeof s.theme.id=="number","Theme was created with a valid ID"),this.assertEqual(s.theme.role,"unpublished","Theme role is unpublished"),this.assert(s.theme.editor_url.includes("/admin/themes/"),"Editor URL is provided"),this.assert(s.theme.preview_url.includes("preview_theme_id="),"Preview URL is provided"),this.context.themeId=String(s.theme.id),this.context.data.editorUrl=s.theme.editor_url,this.context.data.previewUrl=s.theme.preview_url)})}};d();function _(o){return{workingDirectory:o.path??y(),environment:o.environment,store:o.store,password:o.password,data:{}}}d();var a=o=>k(o),v;function J(o){v=o}function G(o){if(!v)return o;let t=/\/[^\s,)]+/g;return o.replace(t,e=>T(e,v))}function A(o,t){a(""),a(n.bold(n.cyan(`Suite: ${o}`))),a(n.dim(t))}function j(o){a(n.bold(n.blue(`Running: ${o}`)))}function q(o){let t=`(${(o.duration/1e3).toFixed(2)}s)`;if(o.status==="passed"){a(n.bold(n.green(`PASSED: ${o.name} ${n.dim(t)}`)));for(let e of I(o.assertions))a(e)}else if(o.status==="failed"){a(n.red(`FAILED: ${o.name} ${n.dim(t)}`));for(let e of I(o.assertions))a(e);o.error&&a(n.red(` Error: ${G(o.error.message)}`))}else a(n.yellow(`SKIPPED: ${o.name}`))}function S(o){let t=o.filter(h=>h.status==="passed").length,e=o.filter(h=>h.status==="failed").length,i=o.filter(h=>h.status==="skipped").length,s=o.length,r=o.reduce((h,c)=>h+c.duration,0);a(""),a(n.bold("\u2500".repeat(40))),e>0?a(n.red(n.bold(`Doctor Complete: ${e}/${s} tests failed`))):a(n.green(n.bold(`Doctor Complete: ${t}/${s} tests passed`))),a(` Passed: ${n.green(String(t))}`),a(` Failed: ${n.red(String(e))}`),i>0&&a(` Skipped: ${n.yellow(String(i))}`),a(` Total time: ${n.dim(`${(r/1e3).toFixed(2)}s`)}`)}function I(o){return o.map(t=>{if(t.passed)return n.green(` [OK] ${t.description}`);{let e=` (expected: ${t.expected}, actual: ${t.actual})`;return n.red(` [FAIL] ${t.description}${e}`)}})}var Y=[p,l];async function L(o){let t=[],e=_(o);J(e.workingDirectory);for(let i of Y){let s=new i,r=i.description??"Test suite";A(i.name,r);let h=await s.runSuite(e);for(let c of h)if(j(c.name),q(c),t.push(c),c.status==="failed")return S(t),t}return S(t),t}var f=H(U(),1);var $=class o extends b{static{this.description="Run all theme command doctor-release tests"}static{this.hidden=!0}static{this.flags={...E,path:f.Flags.string({char:"p",description:"The path to run tests in. Defaults to current directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>P(t),default:async()=>y()}),environment:f.Flags.string({char:"e",description:"The environment to use from shopify.theme.toml (required for store-connected tests).",env:"SHOPIFY_FLAG_ENVIRONMENT",required:!0}),store:f.Flags.string({char:"s",description:"Store URL (overrides environment).",env:"SHOPIFY_FLAG_STORE"}),password:f.Flags.string({description:"Password from Theme Access app (overrides environment).",env:"SHOPIFY_FLAG_PASSWORD"})}}async run(){if(!R())return;let{flags:t}=await this.parse(o);(await L({path:t.path,environment:t.environment,store:t.store,password:t.password})).some(s=>s.status==="failed")&&(process.exitCode=1)}};export{$ as a};
1
+ import{b as E}from"./chunk-S5JJL3BP.js";import{b}from"./chunk-74IG3ZE3.js";import{M as F,N}from"./chunk-YYLEWVO6.js";import{Mb as k,T as C,Ta as w,ma as O}from"./chunk-BXDZX3BS.js";import{u as n}from"./chunk-A4SBXDZB.js";import{k as R}from"./chunk-MGPLKG23.js";import{d as u,f as P,g as x,h as g,n as T,q as y}from"./chunk-773TIA5M.js";import{r as U}from"./chunk-T6CC5WUU.js";import{e as H,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();d();var m=class{constructor(){this.assertions=[],this.registeredTests=[]}async runSuite(t){this.context=t,this.registeredTests=[];let e=[];this.tests();for(let i of this.registeredTests){this.assertions=[];let s=Date.now();try{await i.fn(),e.push({name:i.name,status:this.hasFailures()?"failed":"passed",duration:Date.now()-s,assertions:[...this.assertions]})}catch(r){e.push({name:i.name,status:"failed",duration:Date.now()-s,assertions:[...this.assertions],error:r instanceof Error?r:new Error(String(r))})}}return e}test(t,e){this.registeredTests.push({name:t,fn:e})}tests(){}async run(t,e){let i=e?.cwd??this.context.workingDirectory,s=await F(t,{cwd:i,env:e?.env});return{command:t,exitCode:s.exitCode,stdout:s.stdout,stderr:s.stderr,output:String(s.stdout)+String(s.stderr),success:s.exitCode===0}}async runInteractive(t,e){let i=e?.cwd??this.context.workingDirectory,s=0;try{await N(t,{cwd:i,env:e?.env,stdin:"inherit"})}catch{s=1}return{command:t,exitCode:s,stdout:"",stderr:"",output:"",success:s===0}}assertSuccess(t,e){this.assertions.push({description:e??`Command succeeded: ${t.command}`,passed:t.success,expected:"exit code 0",actual:`exit code ${t.exitCode}`})}assertError(t,e,i){let s=!t.success;if(e){let h=(typeof e=="string"?new RegExp(e):e).test(t.output),c;s?h?c="matched":c=`output: ${t.output.slice(0,200)}`:c="command succeeded",this.assertions.push({description:i??`Command failed with expected error: ${e}`,passed:s&&h,expected:`failure with error matching ${e}`,actual:c})}else this.assertions.push({description:i??`Command failed: ${t.command}`,passed:s,expected:"non-zero exit code",actual:`exit code ${t.exitCode}`})}async assertFile(t,e,i){let s=g(t)?t:u(this.context.workingDirectory,t),r=x(this.context.workingDirectory,s);if(!await w(s)){this.assertions.push({description:i??`File exists: ${r}`,passed:!1,expected:"file exists",actual:"file not found"});return}if(e){let c=await O(s),D=(typeof e=="string"?new RegExp(e):e).test(c);this.assertions.push({description:i??`File ${r} matches ${e}`,passed:D,expected:`content matching ${e}`,actual:D?"matched":`content: ${c.slice(0,200)}...`})}else this.assertions.push({description:i??`File exists: ${r}`,passed:!0,expected:"file exists",actual:"file exists"})}async assertNoFile(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`File does not exist: ${s}`,passed:!r,expected:"file does not exist",actual:r?"file exists":"file does not exist"})}async assertDirectory(t,e){let i=g(t)?t:u(this.context.workingDirectory,t),s=x(this.context.workingDirectory,i),r=await w(i);this.assertions.push({description:e??`Directory exists: ${s}`,passed:r,expected:"directory exists",actual:r?"directory exists":"directory not found"})}assertOutput(t,e,i){let r=(typeof e=="string"?new RegExp(e):e).test(t.output);this.assertions.push({description:i??`Output matches ${e}`,passed:r,expected:`output matching ${e}`,actual:r?"matched":`output: ${t.output.slice(0,200)}`})}assertJson(t,e,i){try{let s=JSON.parse(t.stdout);if(e){let r=e(s);this.assertions.push({description:i??"Output is valid JSON matching validator",passed:r,expected:"valid JSON matching validator",actual:r?"matched":"validator returned false"})}else this.assertions.push({description:i??"Output is valid JSON",passed:!0,expected:"valid JSON",actual:"valid JSON"});return s}catch{this.assertions.push({description:i??"Output is valid JSON",passed:!1,expected:"valid JSON",actual:`invalid JSON: ${t.stdout.slice(0,100)}`});return}}assert(t,e){this.assertions.push({description:e,passed:t,expected:"true",actual:String(t)})}assertEqual(t,e,i){this.assertions.push({description:i,passed:t===e,expected:String(e),actual:String(t)})}hasFailures(){return this.assertions.some(t=>!t.passed)}};m.description="Doctor test suite";var p=class extends m{constructor(){super(...arguments);this.themeName="";this.themePath=""}static{this.description="Tests the theme init command creates a valid theme structure"}tests(){this.test("init creates theme directory",async()=>{this.themeName=`doctor-theme-${C("creative")}`,this.themePath=u(this.context.workingDirectory,this.themeName);let e=await this.runInteractive(`shopify theme init ${this.themeName} --path ${this.context.workingDirectory}`);this.assertSuccess(e),this.context.themeName=this.themeName,this.context.themePath=this.themePath}),this.test("essential theme files exist",async()=>{let e=["layout/theme.liquid","config/settings_schema.json","templates/index.json"];await Promise.all(e.map(i=>this.assertFile(u(this.themePath,i))))}),this.test("theme directories exist",async()=>{let e=["sections","snippets","assets","locales"];await Promise.all(e.map(i=>this.assertDirectory(u(this.themePath,i))))}),this.test("layout/theme.liquid has valid content",async()=>{await this.assertFile(u(this.themePath,"layout/theme.liquid"),/<!doctype html>|<html|{{ content_for_header }}/i,"layout/theme.liquid contains expected Liquid markup")})}};d();var l=class extends m{static{this.description="Tests pushing a theme to the store creates an unpublished theme"}static{this.requiresStore=!0}tests(){this.test("push creates unpublished theme",async()=>{if(!this.context.themePath){this.assert(!1,"Theme init did not complete successfully; themePath is missing in context");return}let t=this.context.themeName??"doctor-theme",e=`shopify theme push --unpublished --json --path ${this.context.themePath} -t ${t}`;this.context.environment&&(e+=` -e ${this.context.environment}`),this.context.store&&(e+=` -s ${this.context.store}`),this.context.password&&(e+=` --password ${this.context.password}`);let i=await this.run(e);this.assertSuccess(i);let s=this.assertJson(i,r=>typeof r.theme?.id=="number");s?.theme&&(this.assert(typeof s.theme.id=="number","Theme was created with a valid ID"),this.assertEqual(s.theme.role,"unpublished","Theme role is unpublished"),this.assert(s.theme.editor_url.includes("/admin/themes/"),"Editor URL is provided"),this.assert(s.theme.preview_url.includes("preview_theme_id="),"Preview URL is provided"),this.context.themeId=String(s.theme.id),this.context.data.editorUrl=s.theme.editor_url,this.context.data.previewUrl=s.theme.preview_url)})}};d();function _(o){return{workingDirectory:o.path??y(),environment:o.environment,store:o.store,password:o.password,data:{}}}d();var a=o=>k(o),v;function J(o){v=o}function G(o){if(!v)return o;let t=/\/[^\s,)]+/g;return o.replace(t,e=>T(e,v))}function A(o,t){a(""),a(n.bold(n.cyan(`Suite: ${o}`))),a(n.dim(t))}function j(o){a(n.bold(n.blue(`Running: ${o}`)))}function q(o){let t=`(${(o.duration/1e3).toFixed(2)}s)`;if(o.status==="passed"){a(n.bold(n.green(`PASSED: ${o.name} ${n.dim(t)}`)));for(let e of I(o.assertions))a(e)}else if(o.status==="failed"){a(n.red(`FAILED: ${o.name} ${n.dim(t)}`));for(let e of I(o.assertions))a(e);o.error&&a(n.red(` Error: ${G(o.error.message)}`))}else a(n.yellow(`SKIPPED: ${o.name}`))}function S(o){let t=o.filter(h=>h.status==="passed").length,e=o.filter(h=>h.status==="failed").length,i=o.filter(h=>h.status==="skipped").length,s=o.length,r=o.reduce((h,c)=>h+c.duration,0);a(""),a(n.bold("\u2500".repeat(40))),e>0?a(n.red(n.bold(`Doctor Complete: ${e}/${s} tests failed`))):a(n.green(n.bold(`Doctor Complete: ${t}/${s} tests passed`))),a(` Passed: ${n.green(String(t))}`),a(` Failed: ${n.red(String(e))}`),i>0&&a(` Skipped: ${n.yellow(String(i))}`),a(` Total time: ${n.dim(`${(r/1e3).toFixed(2)}s`)}`)}function I(o){return o.map(t=>{if(t.passed)return n.green(` [OK] ${t.description}`);{let e=` (expected: ${t.expected}, actual: ${t.actual})`;return n.red(` [FAIL] ${t.description}${e}`)}})}var Y=[p,l];async function L(o){let t=[],e=_(o);J(e.workingDirectory);for(let i of Y){let s=new i,r=i.description??"Test suite";A(i.name,r);let h=await s.runSuite(e);for(let c of h)if(j(c.name),q(c),t.push(c),c.status==="failed")return S(t),t}return S(t),t}var f=H(U(),1);var $=class o extends b{static{this.description="Run all theme command doctor-release tests"}static{this.hidden=!0}static{this.flags={...E,path:f.Flags.string({char:"p",description:"The path to run tests in. Defaults to current directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>P(t),default:async()=>y()}),environment:f.Flags.string({char:"e",description:"The environment to use from shopify.theme.toml (required for store-connected tests).",env:"SHOPIFY_FLAG_ENVIRONMENT",required:!0}),store:f.Flags.string({char:"s",description:"Store URL (overrides environment).",env:"SHOPIFY_FLAG_STORE"}),password:f.Flags.string({description:"Password from Theme Access app (overrides environment).",env:"SHOPIFY_FLAG_PASSWORD"})}}async run(){if(!R())return;let{flags:t}=await this.parse(o);(await L({path:t.path,environment:t.environment,store:t.store,password:t.password})).some(s=>s.status==="failed")&&(process.exitCode=1)}};export{$ as a};
@@ -1 +1 @@
1
- import{a as c,b as f,c as g,d as x,g as C}from"./chunk-V6ZSIUO3.js";import{a as d}from"./chunk-HM5H7WBE.js";import{a as l}from"./chunk-ZAMDXIVC.js";import{Fa as m}from"./chunk-ATXODH6C.js";import{b as p}from"./chunk-H5C3QTOO.js";import{v as s}from"./chunk-6EZ7JWBK.js";import{r as I}from"./chunk-T6CC5WUU.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var i=class u extends d{async run(){let{flags:o}=await this.parse(u),e=await m({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=c(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};i.description="Import dashboard-managed extensions into your app.";i.flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};var k=i;export{k as a};
1
+ import{a as c,b as f,c as g,d as x,g as C}from"./chunk-P375IGKT.js";import{a as d}from"./chunk-PLHJQQVZ.js";import{a as l}from"./chunk-6V37CHBZ.js";import{Fa as m}from"./chunk-KJQAJUDU.js";import{b as p}from"./chunk-S5JJL3BP.js";import{v as s}from"./chunk-YYLEWVO6.js";import{r as I}from"./chunk-T6CC5WUU.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var i=class u extends d{async run(){let{flags:o}=await this.parse(u),e=await m({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=c(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};i.description="Import dashboard-managed extensions into your app.";i.flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};var k=i;export{k as a};