@shopify/cli 4.1.0 → 4.2.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 (384) hide show
  1. package/dist/analytics-CX22YIUZ.js +1 -0
  2. package/dist/analytics-UBWQIQYF.js +1 -0
  3. package/dist/angular-UTTM4Y4S.js +4 -0
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chunk-76R52ODR.js → chunk-23AMFHXC.js} +1 -1
  6. package/dist/{chunk-Q33IBIVJ.js → chunk-2EJCY4CE.js} +1 -1
  7. package/dist/{chunk-SXTMSGUE.js → chunk-2KH2S7PI.js} +1 -1
  8. package/dist/chunk-2N4O33VM.js +6 -0
  9. package/dist/{chunk-6RE2SNCU.js → chunk-2VLMN5QZ.js} +1 -1
  10. package/dist/chunk-2WNODIWJ.js +1 -0
  11. package/dist/chunk-2YXKZWYW.js +1 -0
  12. package/dist/{chunk-KZOBF55B.js → chunk-3BRUCKZ2.js} +1 -1
  13. package/dist/{chunk-URZPVSJZ.js → chunk-3V63X7WZ.js} +66 -66
  14. package/dist/chunk-3YWUSKWF.js +159 -0
  15. package/dist/chunk-42RMKTCJ.js +8 -0
  16. package/dist/{chunk-OBEWZXOQ.js → chunk-4EXYYBQ6.js} +1 -1
  17. package/dist/chunk-4KRT35A2.js +1 -0
  18. package/dist/chunk-4V4DQ6W7.js +836 -0
  19. package/dist/chunk-4Z2WYNTE.js +1 -0
  20. package/dist/chunk-57N2DFIF.js +1 -0
  21. package/dist/chunk-5TIJLYZU.js +3 -0
  22. package/dist/{chunk-MCVRONUY.js → chunk-6AJZKIZ3.js} +1 -1
  23. package/dist/{chunk-XULPJ6UG.js → chunk-6HZTMQD6.js} +1 -1
  24. package/dist/chunk-6LK6ZP3Q.js +1 -0
  25. package/dist/chunk-6SXOUZ7V.js +1 -0
  26. package/dist/chunk-6TEXPRI2.js +2 -0
  27. package/dist/{chunk-VICYNG2W.js → chunk-6TORWTD7.js} +1 -1
  28. package/dist/{chunk-WSDN25F5.js → chunk-6YAXFS6V.js} +1 -1
  29. package/dist/chunk-6YHJ554P.js +6 -0
  30. package/dist/chunk-6ZIOYXEF.js +3 -0
  31. package/dist/chunk-7BFDUVOG.js +1 -0
  32. package/dist/chunk-7DVOSOEP.js +11 -0
  33. package/dist/chunk-7JESXDF2.js +14 -0
  34. package/dist/chunk-7KJ5TBWG.js +5 -0
  35. package/dist/{chunk-7MUKLZOL.js → chunk-A3VYI4LO.js} +2 -2
  36. package/dist/{chunk-MHWV5RQV.js → chunk-A5SQCM63.js} +2 -2
  37. package/dist/chunk-A6X2IVGT.js +4 -0
  38. package/dist/{chunk-4DCQNGUV.js → chunk-AP3RFOPL.js} +10 -10
  39. package/dist/{chunk-XXVEHDVO.js → chunk-ATPFTRCC.js} +1 -1
  40. package/dist/chunk-AWQ5AR2K.js +5 -0
  41. package/dist/chunk-BECEP46I.js +16 -0
  42. package/dist/{chunk-M56NDIMD.js → chunk-BHWEA4V2.js} +1 -1
  43. package/dist/chunk-BPVZ7E63.js +1 -0
  44. package/dist/chunk-C2FFA4O4.js +1 -0
  45. package/dist/chunk-C3LZPAAH.js +3 -0
  46. package/dist/chunk-C6ABJCRG.js +1 -0
  47. package/dist/chunk-CCEA5CUX.js +1 -0
  48. package/dist/chunk-CE6FKJFS.js +1 -0
  49. package/dist/chunk-CW7WJZKR.js +28 -0
  50. package/dist/chunk-D3DDLLNF.js +2 -0
  51. package/dist/chunk-D656BV5Z.js +25 -0
  52. package/dist/chunk-DCBYHVKW.js +1 -0
  53. package/dist/{chunk-AGNMOFJS.js → chunk-DCK2FX6J.js} +1 -1
  54. package/dist/chunk-DERA4K6A.js +32 -0
  55. package/dist/chunk-DNLOSMHL.js +3 -0
  56. package/dist/chunk-E2YBU6D3.js +294 -0
  57. package/dist/{chunk-M2ZHFKPN.js → chunk-F47MFBKM.js} +1 -1
  58. package/dist/chunk-F6T3UBBL.js +1 -0
  59. package/dist/{chunk-BS3BKORT.js → chunk-FBVBO5YQ.js} +1 -1
  60. package/dist/chunk-FD5S2O6M.js +7 -0
  61. package/dist/chunk-FFYYJKF7.js +1 -0
  62. package/dist/{chunk-KHTV6PBV.js → chunk-FGVC22EY.js} +1 -1
  63. package/dist/{chunk-QA23HIH4.js → chunk-FP2NOZSD.js} +1 -1
  64. package/dist/chunk-FQDRVPCY.js +2 -0
  65. package/dist/{chunk-T542UQBY.js → chunk-FSTCEWXX.js} +1 -1
  66. package/dist/chunk-FTN7Y6HD.js +7 -0
  67. package/dist/{chunk-QBSKKQBN.js → chunk-GVITHCQJ.js} +1 -1
  68. package/dist/chunk-H4W4DFKK.js +1 -0
  69. package/dist/{chunk-UYXEA3Y6.js → chunk-HD5TYIDZ.js} +1 -1
  70. package/dist/chunk-HHXHOQQP.js +3 -0
  71. package/dist/chunk-HJSYHK4S.js +8 -0
  72. package/dist/chunk-HLMFVORT.js +1 -0
  73. package/dist/chunk-HSYRYSX4.js +3 -0
  74. package/dist/chunk-I3LX25MB.js +1 -0
  75. package/dist/chunk-INFBVFMU.js +4 -0
  76. package/dist/chunk-IOQQUHST.js +18 -0
  77. package/dist/chunk-IVGWFPMA.js +19 -0
  78. package/dist/chunk-IWCPQD7X.js +1382 -0
  79. package/dist/chunk-IWE4RUI7.js +1 -0
  80. package/dist/chunk-IXUVSFW2.js +1 -0
  81. package/dist/{chunk-Q4T2T2QE.js → chunk-J6VTZEE2.js} +1 -1
  82. package/dist/{chunk-6ITDI2SD.js → chunk-K3PGC6DC.js} +1 -1
  83. package/dist/{chunk-2AJ5FI2K.js → chunk-K77WAKOB.js} +1 -1
  84. package/dist/{chunk-7NH7CHVI.js → chunk-K7K6GNF6.js} +1 -1
  85. package/dist/chunk-KFCGMT67.js +1 -0
  86. package/dist/chunk-KLA7AWG6.js +7 -0
  87. package/dist/{chunk-UJXUSRQK.js → chunk-KQU6HOJ3.js} +1 -1
  88. package/dist/{chunk-KHSYW7I4.js → chunk-KU5OPV7U.js} +1 -1
  89. package/dist/chunk-L2VSSINY.js +1 -0
  90. package/dist/chunk-LCCMXY6N.js +1 -0
  91. package/dist/{chunk-ZSBA6VIC.js → chunk-LITB5QQX.js} +1 -1
  92. package/dist/chunk-LKS47US7.js +8 -0
  93. package/dist/{chunk-E3EMHAJB.js → chunk-LQMSF3F7.js} +1 -1
  94. package/dist/chunk-LTWXTDDR.js +5 -0
  95. package/dist/{chunk-5WVAHE5E.js → chunk-M2TJICTB.js} +1 -1
  96. package/dist/chunk-M4LOKANA.js +1 -0
  97. package/dist/chunk-M4V2OQAX.js +1 -0
  98. package/dist/chunk-MA52QGHP.js +1 -0
  99. package/dist/chunk-MFLBTJO7.js +1 -0
  100. package/dist/{chunk-6G6TMKXF.js → chunk-MGL4YM3S.js} +21 -21
  101. package/dist/{chunk-4IC626OL.js → chunk-MIO2CV3Q.js} +1 -1
  102. package/dist/{chunk-NMBBTTIH.js → chunk-MKE434RB.js} +1 -1
  103. package/dist/chunk-MZJRNFAU.js +1 -0
  104. package/dist/{chunk-JXW374CL.js → chunk-N3YWHJMB.js} +11 -11
  105. package/dist/{chunk-EKXY5COY.js → chunk-N5ROZKPZ.js} +1 -1
  106. package/dist/chunk-NBYS6YQ2.js +5 -0
  107. package/dist/chunk-NEZEHBT2.js +1 -0
  108. package/dist/chunk-NO5KVFTV.js +22 -0
  109. package/dist/{chunk-6CYMJ76C.js → chunk-NP4UFPAX.js} +1 -1
  110. package/dist/chunk-NPM3MFB3.js +7 -0
  111. package/dist/{chunk-M2D7USAX.js → chunk-NXL6LDJU.js} +1 -1
  112. package/dist/chunk-OA4P6AKS.js +1 -0
  113. package/dist/chunk-OKNBZSGN.js +2 -0
  114. package/dist/chunk-OKOYLEA7.js +278 -0
  115. package/dist/chunk-OLOBQ42K.js +1 -0
  116. package/dist/chunk-OYP7DKPU.js +1 -0
  117. package/dist/{chunk-7UYZQN4V.js → chunk-PBTXPBI6.js} +2 -2
  118. package/dist/chunk-PLQFX5ZP.js +9 -0
  119. package/dist/{chunk-MWY3A7O3.js → chunk-PS25FEBF.js} +1 -1
  120. package/dist/{chunk-OLZHWPZP.js → chunk-PSQFZAF3.js} +1 -1
  121. package/dist/chunk-PUTZFF2Z.js +613 -0
  122. package/dist/chunk-QLQGHMVU.js +15 -0
  123. package/dist/{chunk-FQWB2F75.js → chunk-QTGMS62F.js} +1 -1
  124. package/dist/chunk-R6JNXEB3.js +1 -0
  125. package/dist/chunk-RAH5NW3R.js +1 -0
  126. package/dist/{chunk-KR6QDE7D.js → chunk-RGNAWKD7.js} +1 -1
  127. package/dist/chunk-RL5BWZ7D.js +15 -0
  128. package/dist/{chunk-67MH4AXG.js → chunk-RVMB5LC2.js} +1 -1
  129. package/dist/chunk-SSM346XI.js +5 -0
  130. package/dist/chunk-T5MK7ZSF.js +1 -0
  131. package/dist/{chunk-C7BTJ32Z.js → chunk-TGACBJIY.js} +1 -1
  132. package/dist/{chunk-UJVH7FZS.js → chunk-TLSAQ6FG.js} +1 -1
  133. package/dist/chunk-TNQXTZAX.js +32 -0
  134. package/dist/{chunk-ZGK3LGCH.js → chunk-TQGTEVSR.js} +1 -1
  135. package/dist/chunk-TXUTT6UA.js +17 -0
  136. package/dist/chunk-U3ZG675O.js +5 -0
  137. package/dist/chunk-UARVYVLN.js +3 -0
  138. package/dist/chunk-UBKVCI7A.js +3 -0
  139. package/dist/{chunk-2GK56X53.js → chunk-UCLSPAVX.js} +1 -1
  140. package/dist/chunk-UOQ75BL3.js +1 -0
  141. package/dist/{chunk-ULFWK45W.js → chunk-UOQQNAHX.js} +2 -2
  142. package/dist/chunk-UURFVUAH.js +11 -0
  143. package/dist/chunk-VA5IUGZV.js +2 -0
  144. package/dist/{chunk-XOTA6JTZ.js → chunk-VEDZUOVI.js} +3 -3
  145. package/dist/chunk-VICNWPLQ.js +567 -0
  146. package/dist/chunk-VPL2NDH6.js +370 -0
  147. package/dist/chunk-VT77EFRL.js +10 -0
  148. package/dist/{chunk-TYZXGSHO.js → chunk-VYXVYOIJ.js} +1 -1
  149. package/dist/chunk-WCWNI3ZV.js +283 -0
  150. package/dist/chunk-WNGV4JQS.js +4 -0
  151. package/dist/{chunk-L2MGAEV3.js → chunk-WUK5NQSX.js} +2 -2
  152. package/dist/chunk-X2TC7S57.js +103 -0
  153. package/dist/chunk-X4CV6TRE.js +1 -0
  154. package/dist/chunk-XDAOLCPN.js +4 -0
  155. package/dist/chunk-XFKCDWXB.js +5 -0
  156. package/dist/chunk-XP6IRAZN.js +1 -0
  157. package/dist/{chunk-KN3WTTHZ.js → chunk-XX343DDG.js} +1 -1
  158. package/dist/{chunk-DRFGABEB.js → chunk-XXE7667M.js} +1 -1
  159. package/dist/chunk-YGMVL6NZ.js +6 -0
  160. package/dist/chunk-YJB7P2HC.js +1 -0
  161. package/dist/{chunk-P6XE4MH5.js → chunk-YS6VOQ7I.js} +1 -1
  162. package/dist/chunk-ZZYFG22L.js +26 -0
  163. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  164. package/dist/cli/commands/app/build.js +1 -1
  165. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  166. package/dist/cli/commands/app/bulk/execute.js +1 -9
  167. package/dist/cli/commands/app/bulk/status.js +1 -5
  168. package/dist/cli/commands/app/config/link.js +1 -4
  169. package/dist/cli/commands/app/config/pull.js +1 -1
  170. package/dist/cli/commands/app/config/use.js +1 -1
  171. package/dist/cli/commands/app/config/validate.js +1 -3
  172. package/dist/cli/commands/app/demo/watcher.js +1 -1
  173. package/dist/cli/commands/app/deploy.js +1 -22
  174. package/dist/cli/commands/app/dev/clean.js +1 -5
  175. package/dist/cli/commands/app/dev.js +1 -320
  176. package/dist/cli/commands/app/env/pull.js +1 -11
  177. package/dist/cli/commands/app/env/show.js +1 -1
  178. package/dist/cli/commands/app/execute.js +1 -1
  179. package/dist/cli/commands/app/function/build.js +1 -1
  180. package/dist/cli/commands/app/function/info.js +1 -16
  181. package/dist/cli/commands/app/function/replay.js +1 -5
  182. package/dist/cli/commands/app/function/run.js +1 -1
  183. package/dist/cli/commands/app/function/schema.js +1 -1
  184. package/dist/cli/commands/app/function/typegen.js +1 -1
  185. package/dist/cli/commands/app/generate/extension.js +1 -5
  186. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  187. package/dist/cli/commands/app/import-extensions.js +1 -1
  188. package/dist/cli/commands/app/info.js +1 -11
  189. package/dist/cli/commands/app/init.js +1 -10
  190. package/dist/cli/commands/app/logs.js +1 -2
  191. package/dist/cli/commands/app/release.js +1 -4
  192. package/dist/cli/commands/app/versions/list.js +1 -1
  193. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  194. package/dist/cli/commands/auth/login.js +1 -1
  195. package/dist/cli/commands/auth/logout.js +1 -1
  196. package/dist/cli/commands/cache/clear.js +1 -1
  197. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  198. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  199. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  200. package/dist/cli/commands/debug/command-flags.js +1 -1
  201. package/dist/cli/commands/docs/generate.js +1 -1
  202. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  203. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  204. package/dist/cli/commands/help.js +1 -1
  205. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  206. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  207. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  209. package/dist/cli/commands/notifications/generate.js +1 -1
  210. package/dist/cli/commands/notifications/list.js +1 -1
  211. package/dist/cli/commands/organization/list.js +1 -1
  212. package/dist/cli/commands/search.js +1 -1
  213. package/dist/cli/commands/theme/check.js +1 -1
  214. package/dist/cli/commands/theme/console.js +1 -15
  215. package/dist/cli/commands/theme/delete.js +1 -7
  216. package/dist/cli/commands/theme/dev.js +1 -26
  217. package/dist/cli/commands/theme/duplicate.js +1 -32
  218. package/dist/cli/commands/theme/info.js +1 -1
  219. package/dist/cli/commands/theme/init.js +1 -8
  220. package/dist/cli/commands/theme/language-server.js +1 -1
  221. package/dist/cli/commands/theme/list.js +1 -1
  222. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  223. package/dist/cli/commands/theme/open.js +1 -8
  224. package/dist/cli/commands/theme/package.js +1 -7
  225. package/dist/cli/commands/theme/preview.js +1 -1
  226. package/dist/cli/commands/theme/profile.js +1 -3
  227. package/dist/cli/commands/theme/publish.js +1 -7
  228. package/dist/cli/commands/theme/pull.js +1 -3
  229. package/dist/cli/commands/theme/push.js +1 -28
  230. package/dist/cli/commands/theme/rename.js +1 -6
  231. package/dist/cli/commands/theme/share.js +1 -3
  232. package/dist/cli/commands/upgrade.js +1 -1
  233. package/dist/cli/commands/version.js +1 -1
  234. package/dist/command-registry.js +1 -1
  235. package/dist/conf-store-6QNH5BID.js +1 -0
  236. package/dist/configs/all.yml +3 -0
  237. package/dist/configs/recommended.yml +3 -0
  238. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-TSPWW5YF.js} +1 -1
  239. package/dist/data/filters.json +60 -0
  240. package/dist/data/latest.json +1 -1
  241. package/dist/data/setting.json +29 -9
  242. package/dist/data/shopify_system_translations.json +71 -19
  243. package/dist/data/tags.json +3 -3
  244. package/dist/deprecations-F6JWVV2W.js +1 -0
  245. package/dist/{devtools-OLOT2NY4.js → devtools-HCKYP7DQ.js} +1 -1
  246. package/dist/{devtools-UFRKBFGI.js → devtools-VEZNCV6W.js} +1 -1
  247. package/dist/dist-4BD6KOLR.js +1 -0
  248. package/dist/dist-AUABCVPI.js +1 -0
  249. package/dist/environments-RGLI75HN.js +1 -0
  250. package/dist/error-OZALZZ3U.js +1 -0
  251. package/dist/error-handler-V7LSEXHM.js +1 -0
  252. package/dist/{estree-KI7NUW53.js → estree-BYYJYS3A.js} +1 -1
  253. package/dist/fs-YMUQ6JLE.js +1 -0
  254. package/dist/hooks/app-init.js +1 -1
  255. package/dist/hooks/did-you-mean.js +1 -1
  256. package/dist/hooks/hydrogen-init.js +1 -1
  257. package/dist/hooks/plugin-plugins.js +1 -1
  258. package/dist/hooks/postrun.js +1 -1
  259. package/dist/hooks/prerun.js +1 -1
  260. package/dist/hooks/public-metadata.js +1 -1
  261. package/dist/hooks/sensitive-metadata.js +1 -1
  262. package/dist/hooks/tunnel-provider.js +1 -1
  263. package/dist/hooks/tunnel-start.js +1 -1
  264. package/dist/html-HETICZ2F.js +25 -0
  265. package/dist/index.js +9 -1182
  266. package/dist/is-global-BLIZ57HQ.js +1 -0
  267. package/dist/is-wsl-TN2CXYI7.js +1 -0
  268. package/dist/{latest-version-EFWBOTWM.js → latest-version-6OAYLOBL.js} +1 -1
  269. package/dist/{lib-QB6I6CTC.js → lib-AK5EOIKR.js} +1 -1
  270. package/dist/{lib-C3VO2BQW.js → lib-LVUMLZ4H.js} +1 -1
  271. package/dist/lib-ME6554NA.js +1 -0
  272. package/dist/{local-MTKXSZ3I.js → local-GPDAXHE6.js} +1 -1
  273. package/dist/local-storage-P66KJG6I.js +1 -0
  274. package/dist/{markdown-PLKL4IZK.js → markdown-5TVCXM53.js} +1 -1
  275. package/dist/{metadata-NOVBMKLM.js → metadata-TRH25EHU.js} +1 -1
  276. package/dist/{morph-EMYAITFM.js → morph-I35VYPBH.js} +4 -4
  277. package/dist/node-package-manager-GO4ZRTKQ.js +1 -0
  278. package/dist/notifications-system-HM6JZ6WJ.js +1 -0
  279. package/dist/{npa-ICFSA3NL.js → npa-VNALV7XY.js} +1 -1
  280. package/dist/output-7IYOMPSA.js +1 -0
  281. package/dist/{postcss-3FJQPJI2.js → postcss-IIK6CGAW.js} +1 -1
  282. package/dist/{prettier-NVRHEAFO.js → prettier-ZSBNNQTK.js} +1 -1
  283. package/dist/system-X5C4EQQH.js +1 -0
  284. package/dist/tsconfig.tsbuildinfo +1 -1
  285. package/dist/ui-H62CMRLG.js +1 -0
  286. package/dist/upgrade-EEOPH464.js +1 -0
  287. package/dist/version-76NBQR4K.js +1 -0
  288. package/dist/version-IGSEISUA.js +1 -0
  289. package/dist/workerd-ST6XJKUN.js +18 -0
  290. package/oclif.manifest.json +142 -7
  291. package/package.json +14 -11
  292. package/dist/analytics-5TEIW43T.js +0 -1
  293. package/dist/analytics-GG7CYCGL.js +0 -1
  294. package/dist/angular-VRDO2DBE.js +0 -4
  295. package/dist/chunk-3D4JXJPS.js +0 -2
  296. package/dist/chunk-3NBK56IK.js +0 -1
  297. package/dist/chunk-54CAKCYR.js +0 -144
  298. package/dist/chunk-5UHQVR2Z.js +0 -1
  299. package/dist/chunk-6HBRBQAN.js +0 -6
  300. package/dist/chunk-6SF3ZETE.js +0 -1
  301. package/dist/chunk-6WL4GA2M.js +0 -15
  302. package/dist/chunk-7ESSIN27.js +0 -567
  303. package/dist/chunk-7QIOUDCX.js +0 -8
  304. package/dist/chunk-7ZT57XT7.js +0 -2
  305. package/dist/chunk-AKML26N3.js +0 -7
  306. package/dist/chunk-C2IK2HY3.js +0 -4
  307. package/dist/chunk-CBXSPL4W.js +0 -1
  308. package/dist/chunk-CEIQFLCN.js +0 -1
  309. package/dist/chunk-CERXUPGC.js +0 -14
  310. package/dist/chunk-DCPBRWVC.js +0 -1
  311. package/dist/chunk-DN2IE3VY.js +0 -1
  312. package/dist/chunk-EQU4MUQJ.js +0 -1
  313. package/dist/chunk-F2QU6WWX.js +0 -1
  314. package/dist/chunk-FFQ5EWII.js +0 -294
  315. package/dist/chunk-FKMC5OFF.js +0 -1
  316. package/dist/chunk-FUOIGXI4.js +0 -1
  317. package/dist/chunk-FYFNUDOC.js +0 -19
  318. package/dist/chunk-G4BPGWJC.js +0 -1
  319. package/dist/chunk-GVQIPEZT.js +0 -1
  320. package/dist/chunk-GZS44BUW.js +0 -102
  321. package/dist/chunk-HIBX234C.js +0 -6
  322. package/dist/chunk-HRUGYZZ4.js +0 -2
  323. package/dist/chunk-HUIJMGVJ.js +0 -586
  324. package/dist/chunk-IX5ICOBV.js +0 -7
  325. package/dist/chunk-IZ3C5J7G.js +0 -5
  326. package/dist/chunk-JAO53IH2.js +0 -1
  327. package/dist/chunk-JCL2RRU6.js +0 -1
  328. package/dist/chunk-JQJBBXMX.js +0 -17
  329. package/dist/chunk-K2WUCOQJ.js +0 -32
  330. package/dist/chunk-K6CTUBFC.js +0 -12
  331. package/dist/chunk-KKTW6ZCA.js +0 -5
  332. package/dist/chunk-LDGAHMS7.js +0 -159
  333. package/dist/chunk-M3RYUB22.js +0 -1
  334. package/dist/chunk-MWGBTOO3.js +0 -1
  335. package/dist/chunk-N5PQPIBF.js +0 -374
  336. package/dist/chunk-NF2ABOOU.js +0 -1
  337. package/dist/chunk-NPEVESCV.js +0 -3
  338. package/dist/chunk-OTY24J2W.js +0 -1
  339. package/dist/chunk-OY3PNHPZ.js +0 -103
  340. package/dist/chunk-PAP22IQO.js +0 -264
  341. package/dist/chunk-PYVAWAUO.js +0 -5
  342. package/dist/chunk-S6EJHWJL.js +0 -1
  343. package/dist/chunk-SIMFNECG.js +0 -1
  344. package/dist/chunk-TQ6HYDVC.js +0 -1
  345. package/dist/chunk-UHJYPEY2.js +0 -1
  346. package/dist/chunk-UXVZ2P63.js +0 -1411
  347. package/dist/chunk-WFXRSKRK.js +0 -1
  348. package/dist/chunk-XITQULK4.js +0 -3
  349. package/dist/chunk-XONFGLJQ.js +0 -847
  350. package/dist/chunk-XR6GMMEU.js +0 -1
  351. package/dist/chunk-Y7JGYGV7.js +0 -1
  352. package/dist/chunk-YTNDFQJT.js +0 -3
  353. package/dist/chunk-ZBRRJDGW.js +0 -1
  354. package/dist/chunk-ZTMSBSYD.js +0 -1
  355. package/dist/conf-store-BMZFATRQ.js +0 -1
  356. package/dist/deprecations-7LHRXPXU.js +0 -1
  357. package/dist/dist-LDXPBYSZ.js +0 -1
  358. package/dist/dist-V63ILV6L.js +0 -1
  359. package/dist/environments-5X7S2O5U.js +0 -1
  360. package/dist/error-ZRLNNGIQ.js +0 -1
  361. package/dist/error-handler-PRZFHPRG.js +0 -1
  362. package/dist/fs-H7V6IRSH.js +0 -1
  363. package/dist/html-VSSXOZOQ.js +0 -25
  364. package/dist/is-global-IOWPCT2U.js +0 -1
  365. package/dist/is-wsl-FVUIXDOK.js +0 -1
  366. package/dist/lib-5L7UKDEK.js +0 -1
  367. package/dist/local-storage-CYEL4MXF.js +0 -1
  368. package/dist/node-package-manager-N5CVNHA3.js +0 -1
  369. package/dist/notifications-system-YX2GPLDW.js +0 -1
  370. package/dist/output-Q46DT46U.js +0 -1
  371. package/dist/system-E6Q3OBX3.js +0 -1
  372. package/dist/ui-WRS2IDPP.js +0 -1
  373. package/dist/upgrade-TKUN2M5P.js +0 -1
  374. package/dist/version-5W5RVAPA.js +0 -1
  375. package/dist/version-BQJ3FPXD.js +0 -1
  376. package/dist/workerd-GOK6GWEX.js +0 -18
  377. /package/dist/{acorn-LOOAJL3S.js → acorn-QBS5IYTX.js} +0 -0
  378. /package/dist/{babel-URCL33XX.js → babel-JS32NLHY.js} +0 -0
  379. /package/dist/{flow-MLHT7MTJ.js → flow-M3Q2HPQT.js} +0 -0
  380. /package/dist/{glimmer-HAJ4HQCW.js → glimmer-3DEJJGOJ.js} +0 -0
  381. /package/dist/{graphql-F7IHGXDT.js → graphql-A4HHE3MB.js} +0 -0
  382. /package/dist/{meriyah-AYZQ3BGY.js → meriyah-23OZNYWC.js} +0 -0
  383. /package/dist/{typescript-ODJ335NU.js → typescript-YKZ232QT.js} +0 -0
  384. /package/dist/{yaml-BIHS2GQW.js → yaml-SJKIH3VD.js} +0 -0
@@ -0,0 +1 @@
1
+ import{a as E}from"./chunk-LCCMXY6N.js";import{Fa as w}from"./chunk-WCWNI3ZV.js";import{d as v}from"./chunk-N5ROZKPZ.js";import{R as y,g as O}from"./chunk-4V4DQ6W7.js";import{d as r,g as c}from"./chunk-BHWEA4V2.js";import{Fb as d,Hb as a,Ta as h,ma as m}from"./chunk-VPL2NDH6.js";import{e as q,g as u}from"./chunk-VPRTJUIN.js";u();u();var l=q(O(),1);async function $(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new c("No API secret keys found for app");return y(t,e.apiKey,o)}function x(e){let t;try{t=(0,l.parse)(e)}catch(i){throw i instanceof Error?new r(`Invalid GraphQL syntax: ${i.message}`):i}if(t.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new r("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}async function I(e){let{adminSession:t,userSpecifiedVersion:o,minimumDefaultVersion:i}=e;if(o==="unstable")return o;let n=await v(t);if(!o){let p=n.filter(f=>f.supported).map(f=>f.handle);return i&&p.push(i),p.sort().reverse()[0]}let s=n.map(p=>p.handle);if(s.includes(o))return o;let A=a`Invalid API version: ${o}`.value,P=a`Allowed versions: ${s.join(", ")}`.value;throw new r(A,P)}function M(e){let{organization:t,remoteApp:o,storeFqdn:i,version:n}=e,s=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${i}`];return n&&s.push(`API version: ${n}`),s}function S(e){return(0,l.parse)(e).definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}function N(e,t){if(S(e)&&t.storeType!=="APP_DEVELOPMENT")throw new r("Mutations can only be executed on dev stores.")}async function D(e){let t=await w({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),o=await E({appContextResult:t,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:t,store:o}}async function z(e){let t;if(e.query!==void 0){if(!e.query.trim())throw new r("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");t=e.query}else if(e["query-file"]){let n=e["query-file"];if(!await h(n))throw new r(a`Query file not found at ${d.path(n)}. Please check the path and try again.`);if(t=await m(n,{encoding:"utf8"}),!t.trim())throw new r(a`Query file at ${d.path(n)} is empty. Please provide a valid GraphQL query or mutation.`)}if(!t)throw new c("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");x(t);let{appContextResult:o,store:i}=await D(e);return{query:t,appContextResult:o,store:i}}export{$ as a,x as b,I as c,M as d,S as e,N as f,D as g,z as h};
@@ -0,0 +1 @@
1
+ import{a as d}from"./chunk-U3ZG675O.js";import{a as m}from"./chunk-T5MK7ZSF.js";import{a as p}from"./chunk-DCK2FX6J.js";import{Fa as s}from"./chunk-WCWNI3ZV.js";import{b as n}from"./chunk-4KRT35A2.js";import{Lb as r}from"./chunk-VPL2NDH6.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var o,t=class extends m{async run(){let{flags:a}=await this.parse(o),{app:e,remoteApp:l,organization:c}=await s({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config});return r(await d(e,l,c)),{app:e}}};o=t;t.summary="Display app and extensions environment variables.";t.descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";t.description=o.descriptionWithoutMarkdown();t.flags={...n,...p};var w=t;export{w as a};
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-XOTA6JTZ.js";import{Ca as g,ua as u,wa as c}from"./chunk-N5PQPIBF.js";import{d as f,q as p}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-VEDZUOVI.js";import{Ca as g,ua as u,wa as c}from"./chunk-VPL2NDH6.js";import{d as f,q as p}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */
@@ -1 +1 @@
1
- import{a as e}from"./chunk-KHSYW7I4.js";import{a as o}from"./chunk-2AJ5FI2K.js";import{a as s}from"./chunk-M2D7USAX.js";import{b as i}from"./chunk-XOTA6JTZ.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends i{static{this.description="View all the available UI kit components"}static{this.hiddenAliases=["kitchen-sink all"]}static{this.hidden=!0}async run(){await o(),await e(),await s()}};export{t as a};
1
+ import{a as e}from"./chunk-KU5OPV7U.js";import{a as o}from"./chunk-K77WAKOB.js";import{a as s}from"./chunk-NXL6LDJU.js";import{b as i}from"./chunk-VEDZUOVI.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends i{static{this.description="View all the available UI kit components"}static{this.hiddenAliases=["kitchen-sink all"]}static{this.hidden=!0}async run(){await o(),await e(),await s()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-6G6TMKXF.js";import{d,g as l}from"./chunk-M56NDIMD.js";import{g as r}from"./chunk-VPRTJUIN.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
1
+ import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-MGL4YM3S.js";import{d,g as l}from"./chunk-BHWEA4V2.js";import{g as r}from"./chunk-VPRTJUIN.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
2
  Error: Unexpected error
3
3
  at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
4
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk-OCOY5MV2.js";import{q as i}from"./chunk-ZSBA6VIC.js";import{b as r}from"./chunk-XOTA6JTZ.js";import{u as e}from"./chunk-6G6TMKXF.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends r{static{this.summary="Check whether auto-upgrade is enabled, disabled, or not yet configured."}static{this.descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
1
+ import{a as o}from"./chunk-OCOY5MV2.js";import{q as i}from"./chunk-LITB5QQX.js";import{b as r}from"./chunk-VEDZUOVI.js";import{u as e}from"./chunk-MGL4YM3S.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends r{static{this.summary="Check whether auto-upgrade is enabled, disabled, or not yet configured."}static{this.descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
2
2
 
3
3
  When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
4
4
 
@@ -0,0 +1 @@
1
+ import{b as n}from"./chunk-4KRT35A2.js";import{u as r}from"./chunk-7JESXDF2.js";import{g as e}from"./chunk-VPRTJUIN.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
@@ -0,0 +1,7 @@
1
+ import{k as p,q as d}from"./chunk-HHXHOQQP.js";import{a as u}from"./chunk-UOQQNAHX.js";import{aa as P}from"./chunk-IWCPQD7X.js";import{b as l}from"./chunk-4KRT35A2.js";import{v as f}from"./chunk-MGL4YM3S.js";import{d as i}from"./chunk-BHWEA4V2.js";import{Ta as c,ma as h}from"./chunk-VPL2NDH6.js";import{f as r,n as m}from"./chunk-IU2ZQ6TE.js";import{e as w,g as n}from"./chunk-VPRTJUIN.js";n();n();var g=w(P(),1),k=["assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function y(e){let t=await v(e),o=`${e}/${t}`,a=`${e}/(${k})`;await u({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),f({body:["Your local theme was packaged in",{filePath:m(o)}]})}async function v(e){let t=r(e,"config/settings_schema.json");if(!await c(t))throw new i("Provide a config/settings_schema.json to package your theme.");let o=await j(t);if(o===void 0||o.theme_name===void 0)throw new i("Provide a theme_info.theme_name configuration in config/settings_schema.json.");return`${[o.theme_name,o.theme_version].filter(Boolean).join("-")}.zip`}async function j(e){let t=(0,g.parseJSON)(await h(e),null,!0);if(!t)throw new i("The file config/settings_schema.json contains an error. Please check if the file is valid JSON and includes the theme_info.theme_name configuration.");return t.find(o=>o.name==="theme_info")}var _,s=class extends d{async command(t){await y(t.path)}};_=s;s.summary="Package your theme into a .zip file, ready to upload to the Online Store.";s.descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
+
3
+ Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
4
+
5
+ The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
6
+
7
+ The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;s.description=_.descriptionWithoutMarkdown();s.flags={...l,path:p.path};s.multiEnvironmentsFlags=null;var E=s;export{E as a};
@@ -1 +1 @@
1
- import{Q as r}from"./chunk-XONFGLJQ.js";import{b as c}from"./chunk-XOTA6JTZ.js";import{Ob as a}from"./chunk-N5PQPIBF.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{Q as r}from"./chunk-4V4DQ6W7.js";import{b as c}from"./chunk-VEDZUOVI.js";import{Nb as a}from"./chunk-VPL2NDH6.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1 +1 @@
1
- import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-6G6TMKXF.js";import{g as i}from"./chunk-VPRTJUIN.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-MGL4YM3S.js";import{g as i}from"./chunk-VPRTJUIN.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -0,0 +1 @@
1
+ import{h as l}from"./chunk-MZJRNFAU.js";import{O as c}from"./chunk-4V4DQ6W7.js";import{d as u}from"./chunk-BHWEA4V2.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -0,0 +1 @@
1
+ import{M as l,N as I,P}from"./chunk-WCWNI3ZV.js";import{Y as M,da as N}from"./chunk-VICNWPLQ.js";import{a as w}from"./chunk-FP2NOZSD.js";import{z as g}from"./chunk-4V4DQ6W7.js";import{a as D}from"./chunk-JUVAGMIH.js";import{D as _,P as h,u as b}from"./chunk-MGL4YM3S.js";import{b as m,d as p,g as y}from"./chunk-BHWEA4V2.js";import{Nb as F}from"./chunk-VPL2NDH6.js";import{j as E}from"./chunk-UARVYVLN.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();async function u(t,e,r){let i=r.clientName===M.AppManagement,s;r.supportsStoreSearch&&(s=async a=>r.devStoresForOrg(e.id,a));let o=await l({onSearchForStoresByName:s,...t,showDomainOnPrompt:i});if(!o){if(b({body:await r.getCreateDevStoreLink(e)}),await h(5),!await P(e))throw new m;let f=await k(e.id,r);o=await u({stores:f,hasMorePages:!1},e,r)}let n=await c(o,e.id,r,"prompt-first");for(;!n;){if(o=await l({stores:[o],hasMorePages:!1,showDomainOnPrompt:i}),!o)throw new m;n=await c(o,e.id,r,"prompt-first")}return o}async function k(t,e){let s=[];return await _([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:a}=await e.devStoresForOrg(t);if(a.length>0){s=a;return}await h(3)}}}]),s}async function c(t,e,r,i){if(t.transferDisabled||E())return!0;if(!t.transferDisabled&&!t.convertableToPartnerTest)throw new p(`The store you specified (${t.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store.");switch(i){case"prompt-first":return await I()?(await x(t,e,r),!0):!1;case"never":throw new p("The store you specified is not transfer-disabled","Try running 'dev --reset' and selecting a different store, or choosing to convert this one.")}}async function x(t,e,r){let i={input:{organizationID:parseInt(e,10),shopId:t.shopId}},s=await r.convertToTransferDisabledStore(i);if(!s.convertDevToTestStore.convertedToTestStore){let o=s.convertDevToTestStore.userErrors.map(n=>n.message).join(", ");throw new y(`Error converting store ${t.shopDomain} to a transfer-disabled store: ${o}`,"This store might not be compatible with draft apps, please try a different store")}F(`Converted ${t.shopDomain} to a transfer-disabled store`)}async function X({appContextResult:t,storeFqdn:e,forceReselectStore:r,storeTypes:i=["APP_DEVELOPMENT"]}){let{app:s,organization:o,developerPlatformClient:n}=t,a,f=s.configuration.build?.dev_store_url,S=s.hiddenConfig.dev_store_url,T=f??S,v=e??(r?void 0:T),O=i.length===1&&i[0]==="APP_DEVELOPMENT";if(v)a=await N(o,v,n,i),O&&await c(a,o.id,n,"never");else{let A=await n.devStoresForOrg(o.id);a=await u(A,o,n)}return a.shopDomain=g(a.shopDomain),await C(a,r),(a.shopDomain!==T||!S)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await n.ensureUserAccessToStore(o.id,a),a}async function C(t,e){await w.addPublicMetadata(()=>({cmd_app_reset_used:e,store_fqdn_hash:D(t.shopDomain),store_domain:t.shopDomain})),await w.addSensitiveMetadata(()=>({store_fqdn:t.shopDomain}))}export{X as a};
@@ -1 +1 @@
1
- import{b as h}from"./chunk-MHWV5RQV.js";import{Ib as a,Qb as u}from"./chunk-N5PQPIBF.js";import{f as I}from"./chunk-YTNDFQJT.js";import{c as D}from"./chunk-ULQG3XQS.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
1
+ import{b as h}from"./chunk-A5SQCM63.js";import{Hb as a,Pb as u}from"./chunk-VPL2NDH6.js";import{f as I}from"./chunk-UARVYVLN.js";import{c as D}from"./chunk-ULQG3XQS.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
@@ -0,0 +1,8 @@
1
+ import{a as w}from"./chunk-M4V2OQAX.js";import{a as u}from"./chunk-2YXKZWYW.js";import{a as c,b as v}from"./chunk-QFWIDATO.js";import{a as y}from"./chunk-7BFDUVOG.js";import{k as d,q as f}from"./chunk-HHXHOQQP.js";import{b as s}from"./chunk-4KRT35A2.js";import{J as h,u as p}from"./chunk-MGL4YM3S.js";import{r as O}from"./chunk-3YWUSKWF.js";import{e as I,g as m}from"./chunk-VPRTJUIN.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
2
+
3
+ `,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
+
5
+ - A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
6
+ - A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
7
+
8
+ If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.`;e.description=g.descriptionWithoutMarkdown();e.flags={...s,...d,development:r.Flags.boolean({char:"d",description:"Open your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),editor:r.Flags.boolean({char:"E",description:"Open the theme editor for the specified theme in the browser.",env:"SHOPIFY_FLAG_EDITOR"}),live:r.Flags.boolean({char:"l",description:"Open your live (published) theme.",env:"SHOPIFY_FLAG_LIVE"}),theme:r.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};e.multiEnvironmentsFlags=null;var S=e;export{S as a};
@@ -1 +1 @@
1
- import{n as R}from"./chunk-XONFGLJQ.js";import{a as T,b as k}from"./chunk-XULPJ6UG.js";import{f as G}from"./chunk-WSDN25F5.js";import{d as l}from"./chunk-M56NDIMD.js";import{Gb as u,Ib as h,Oa as y,Pa as x,Qb as f,ka as $,ua as b,wa as g}from"./chunk-N5PQPIBF.js";import{d,i as w}from"./chunk-IU2ZQ6TE.js";import{g as m}from"./chunk-VPRTJUIN.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};
1
+ import{n as R}from"./chunk-4V4DQ6W7.js";import{a as T,b as k}from"./chunk-6HZTMQD6.js";import{f as G}from"./chunk-6YAXFS6V.js";import{d as l}from"./chunk-BHWEA4V2.js";import{Fb as u,Hb as h,Oa as y,Pa as x,Pb as f,ka as $,ua as b,wa as g}from"./chunk-VPL2NDH6.js";import{d,i as w}from"./chunk-IU2ZQ6TE.js";import{g as m}from"./chunk-VPRTJUIN.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};
@@ -0,0 +1,5 @@
1
+ import{b as L}from"./chunk-IVGWFPMA.js";import{a as V}from"./chunk-TXUTT6UA.js";import{k as q,l as H,n as I}from"./chunk-X2TC7S57.js";import{a as Y}from"./chunk-KFCGMT67.js";import{a as y,c as U}from"./chunk-M4V2OQAX.js";import{a as N}from"./chunk-2YXKZWYW.js";import{a as p,b as w}from"./chunk-QFWIDATO.js";import{a as F}from"./chunk-7BFDUVOG.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-MZJRNFAU.js";import{m as k}from"./chunk-HHXHOQQP.js";import{aa as B}from"./chunk-IWCPQD7X.js";import{O as b,ua as a,va as O}from"./chunk-4V4DQ6W7.js";import{A as P,v as f,w as d,x as C}from"./chunk-MGL4YM3S.js";import{d as S}from"./chunk-BHWEA4V2.js";import{Lb as $}from"./chunk-VPL2NDH6.js";import{f as T,q as l}from"./chunk-IU2ZQ6TE.js";import{e as z,g as v}from"./chunk-VPRTJUIN.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
2
+
3
+ `}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
4
+
5
+ `}]:[],s=E(r),i=[[{link:{label:"View your theme",url:p(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:w(e,t)}}]];s?d({body:[...n,"The theme",...y(e),"was pushed with errors"],nextSteps:i}):f({body:[...n,"The theme",...y(e),"was pushed successfully."],nextSteps:i})}async function Z(e,t,r){let{live:o,development:n,unpublished:s,theme:i,environment:h,developmentContext:u}=t;if(n)return new N(e).findOrCreate(u,g);if(s){let m=i??await _("Name of the new theme");return R({name:m,role:M},e)}else{let m=await F(e,{create:!0,header:"Select a theme to push to:",filter:{live:o,theme:i}});return await ee(m.role,t.allowLive,e.storeFqdn,h,r)?m:void 0}}async function ee(e,t,r,o,n){if(e===x){if(t)return!0;if(n)return C({headline:`Environment: ${o}`,body:[`Can't push theme files to the live theme on ${r}`,"Use the --allow-live flag to push to a live theme."]}),!1;let s={message:`Push theme files to the ${e} theme on ${r}?`,confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return P(s)}return!0}export{Te as a};
@@ -1 +1 @@
1
- import{b as e}from"./chunk-XOTA6JTZ.js";import{r}from"./chunk-LDGAHMS7.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
1
+ import{b as e}from"./chunk-VEDZUOVI.js";import{r}from"./chunk-3YWUSKWF.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
@@ -0,0 +1 @@
1
+ import{b as f,c as o,d as h}from"./chunk-YGMVL6NZ.js";import{a as l}from"./chunk-T5MK7ZSF.js";import{a as c}from"./chunk-DCK2FX6J.js";import{Fa as m}from"./chunk-WCWNI3ZV.js";import{b as d}from"./chunk-4KRT35A2.js";import{Mb as e}from"./chunk-VPL2NDH6.js";import{u as r}from"./chunk-7JESXDF2.js";import{g as p}from"./chunk-VPRTJUIN.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(` \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(` \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(` \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
@@ -0,0 +1 @@
1
+ import{c as d}from"./chunk-MZJRNFAU.js";import{xa as i}from"./chunk-4V4DQ6W7.js";import{A as s,D as a,w as m,x as u}from"./chunk-MGL4YM3S.js";import{g as c}from"./chunk-VPRTJUIN.js";c();function f(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function y(e){return{list:{items:e.map(f)}}}async function T(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return u({headline:o?`Environment: ${o}`:"",body:r}),!1;if(m({body:r}),!process.stdout.isTTY)return!0;let t=await s({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function v(e,r,o){if(e.role!==d||!process.stdout.isTTY||o)return!0;let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await s({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function E(e,r,o=!1){e.length>0&&await a(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{f as a,y as b,T as c,v as d,E as e};
@@ -0,0 +1 @@
1
+ import{d as l}from"./chunk-IOQQUHST.js";import{c as t}from"./chunk-QFWIDATO.js";import{a as i,h as m,i as w,j as d,m as f}from"./chunk-HHXHOQQP.js";import{F as n}from"./chunk-MGL4YM3S.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function h(o,r){i()||f({store:r});let e=o??m()??await p(["Enter your",{link:{label:"store password",url:t(r)}}]),s=!1;for(;!await l(e,r);)s||(d(),s=!0),e=await p(["Incorrect",{link:{label:"store password",url:t(r)}},{char:"."},"Please try again"]);return w(e),e}async function p(o){return n({message:o,password:!0})}export{h as a};
@@ -0,0 +1 @@
1
+ import{n as A}from"./chunk-X2TC7S57.js";import{a as P}from"./chunk-KFCGMT67.js";import{c as C}from"./chunk-M4V2OQAX.js";import{s as T}from"./chunk-MZJRNFAU.js";import{m as w}from"./chunk-HHXHOQQP.js";import{a as D}from"./chunk-RGNAWKD7.js";import{O as u}from"./chunk-4V4DQ6W7.js";import{v as h,x as y}from"./chunk-MGL4YM3S.js";import{Pb as O,va as p}from"./chunk-VPL2NDH6.js";import{d,q as m}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();async function q(e){P({verbose:e.verbose,noColor:e.noColor});let t=w({store:e.store}),o=await u(t,e.password);await R(o,{path:e.path??m(),force:e.force??!1,silent:e.silent??!1})}var E={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"};async function R(e,t){let{force:o,path:i,silent:n}=t;if(!await A(i)&&(process.env.SHOPIFY_LANGUAGE_SERVER==="1"||!await C(o)))return;let f=[],r=[];for(let[a,s]of Object.entries(E))f.push(T(s,e).catch(c=>(r.push(s),[])).then(c=>({[a]:c})));let b=(await Promise.all(f)).reduce((a,s)=>({...a,...s}));if(r.length===Object.values(E).length){n||y({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]});return}await S(i,b),r.length>0&&O(`Failed to fetch metafield definitions for the following owner types: ${r.join(", ")}`),n||h({body:"Metafield definitions have been successfully downloaded."})}async function S(e,t){let o=await D(e),i=d(o,"metafields.json"),n=JSON.stringify(t,null,2);p(i,n)}export{q as a};