shopify 5.0.2 → 5.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 (529) hide show
  1. package/dist/analytics-23GM6KJU.js +1 -0
  2. package/dist/analytics-743FYOAE.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-RPCIFYCY.js → chunk-2EQRXSF6.js} +2 -2
  5. package/dist/{chunk-NXAEBGMO.js → chunk-2IXP3IPE.js} +1 -1
  6. package/dist/{chunk-T4XJKM6B.js → chunk-2KACAQJS.js} +1 -1
  7. package/dist/chunk-2KFYIYLI.js +1 -0
  8. package/dist/chunk-2OCSYLKZ.js +1 -0
  9. package/dist/{chunk-AQKWPRZE.js → chunk-2PILNMHJ.js} +2 -2
  10. package/dist/chunk-36S6MFJQ.js +47 -0
  11. package/dist/{chunk-TFPW2VGN.js → chunk-3DB4EC62.js} +1 -1
  12. package/dist/chunk-3GL3IT4K.js +16 -0
  13. package/dist/{chunk-C3RFAKWR.js → chunk-3JRB7Q3T.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/chunk-3OYMK5X6.js +11 -0
  16. package/dist/chunk-3PYDIBTX.js +1 -0
  17. package/dist/chunk-422BGHXN.js +1 -0
  18. package/dist/chunk-43C32FUQ.js +1 -0
  19. package/dist/chunk-4AN7ECPE.js +9 -0
  20. package/dist/chunk-4AWVU2OV.js +1 -0
  21. package/dist/chunk-4IP37MBX.js +1 -0
  22. package/dist/chunk-4KBOLN7Q.js +8 -0
  23. package/dist/chunk-4LJERO23.js +89 -0
  24. package/dist/chunk-4M5WHOZW.js +1 -0
  25. package/dist/chunk-4RO35FFQ.js +1 -0
  26. package/dist/chunk-4ZS5354G.js +3 -0
  27. package/dist/chunk-55AWBPKU.js +7 -0
  28. package/dist/chunk-5BUYR23E.js +1 -0
  29. package/dist/chunk-5EDA7PVE.js +11 -0
  30. package/dist/{chunk-UKWIWCOH.js → chunk-5P6OELKZ.js} +1 -1
  31. package/dist/chunk-5PVXLQNX.js +1 -0
  32. package/dist/{chunk-J5ERDFIC.js → chunk-5S2P4MHJ.js} +1 -1
  33. package/dist/{chunk-26PWHH3B.js → chunk-5TJJVSCI.js} +1 -1
  34. package/dist/chunk-5TOK5OJS.js +1 -0
  35. package/dist/chunk-5ZG2SWU2.js +1 -0
  36. package/dist/{chunk-SLY27GDC.js → chunk-62F4ZMSC.js} +2 -2
  37. package/dist/chunk-652NT7OW.js +1 -0
  38. package/dist/chunk-6B5KM3A4.js +97 -0
  39. package/dist/chunk-6LCESSY3.js +1 -0
  40. package/dist/chunk-6QHDMCAA.js +1 -0
  41. package/dist/{chunk-D2KIGKBI.js → chunk-7A4ZE5IS.js} +60 -60
  42. package/dist/{chunk-CGVROSPS.js → chunk-7AQZKPJU.js} +1 -1
  43. package/dist/chunk-7FBOMPO5.js +203 -0
  44. package/dist/chunk-7HECBXSP.js +1 -0
  45. package/dist/chunk-7UK565VJ.js +1 -0
  46. package/dist/{chunk-LHXFTFFM.js → chunk-A5BSUUNQ.js} +1 -1
  47. package/dist/chunk-ADGE7MKB.js +1 -0
  48. package/dist/chunk-AEWRZ7AE.js +1 -0
  49. package/dist/chunk-ALDJTWCO.js +1 -0
  50. package/dist/chunk-ARL5WBDK.js +1 -0
  51. package/dist/chunk-AXFEIJC7.js +1 -0
  52. package/dist/{chunk-KZRLZWOU.js → chunk-AYGL6F3P.js} +1 -1
  53. package/dist/{chunk-URXM5A2K.js → chunk-AYTTE7X5.js} +1 -1
  54. package/dist/{chunk-3ODQKAEA.js → chunk-BDIZUTKC.js} +1 -1
  55. package/dist/chunk-BQKF4SRH.js +6 -0
  56. package/dist/chunk-C2AOCLEZ.js +1 -0
  57. package/dist/{chunk-WRZWHT6M.js → chunk-C2SGJ5IG.js} +1 -1
  58. package/dist/chunk-C3S3UMV3.js +1 -0
  59. package/dist/{chunk-WBJ6ZHYH.js → chunk-C5DKLOW4.js} +37 -37
  60. package/dist/chunk-C72QNK6O.js +4 -0
  61. package/dist/{chunk-6ES4KRFW.js → chunk-CA3GVT4D.js} +1 -1
  62. package/dist/chunk-CCLU5ZRK.js +9 -0
  63. package/dist/chunk-CE6XQDAG.js +10 -0
  64. package/dist/chunk-CEJ5WS4I.js +5 -0
  65. package/dist/{chunk-VEUKT5EI.js → chunk-CIBBQO2L.js} +2 -2
  66. package/dist/{chunk-IILLQOUC.js → chunk-CKJXJ6HD.js} +1 -1
  67. package/dist/{chunk-MEYVUHQH.js → chunk-COGKVNQB.js} +1 -1
  68. package/dist/chunk-CQAD5WML.js +1 -0
  69. package/dist/chunk-CQPZOXWO.js +6 -0
  70. package/dist/{chunk-62EOM3Y2.js → chunk-CZYQIWNL.js} +1 -1
  71. package/dist/chunk-DA5RQFXA.js +10 -0
  72. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  73. package/dist/{chunk-Q5IC3IYY.js → chunk-DESZFFOK.js} +1 -1
  74. package/dist/{chunk-PLSS456F.js → chunk-DKR7562G.js} +1 -1
  75. package/dist/{chunk-LGXI7EGM.js → chunk-DNNTAMC5.js} +2 -2
  76. package/dist/chunk-DUPQUQ2Z.js +1 -0
  77. package/dist/{chunk-Q4JYAUVL.js → chunk-DUTIWCJ2.js} +1 -1
  78. package/dist/chunk-E6JEBSHZ.js +20 -0
  79. package/dist/chunk-E6KNAPIY.js +4 -0
  80. package/dist/chunk-E7XCCLQH.js +1 -0
  81. package/dist/chunk-EE72PCKT.js +1 -0
  82. package/dist/chunk-EEYXBKR7.js +4 -0
  83. package/dist/{chunk-ZRI3SSLG.js → chunk-EGLA3WLZ.js} +2 -2
  84. package/dist/chunk-EVQPYZ7F.js +5 -0
  85. package/dist/chunk-FDFE3SSG.js +35 -0
  86. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  87. package/dist/chunk-FI5TQHUA.js +1 -0
  88. package/dist/chunk-FIKZQ4RA.js +1 -0
  89. package/dist/chunk-FJOVMEPN.js +3 -0
  90. package/dist/{chunk-ER6C5WS3.js → chunk-FLARCZ5F.js} +1 -1
  91. package/dist/chunk-FOMMPAWZ.js +1 -0
  92. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  93. package/dist/{chunk-HXZAY5OA.js → chunk-G3DXNSA2.js} +1 -1
  94. package/dist/{chunk-XWSWXQCC.js → chunk-G7JO3W2R.js} +1 -1
  95. package/dist/{chunk-WESTVWWD.js → chunk-GABIWYY3.js} +1 -1
  96. package/dist/chunk-GFSEU7PF.js +6 -0
  97. package/dist/chunk-GFVUWVEM.js +1 -0
  98. package/dist/{chunk-ISKQQXLZ.js → chunk-GHNSXX7R.js} +1 -1
  99. package/dist/{chunk-2L6AN3QA.js → chunk-GQ3LY7BY.js} +1 -1
  100. package/dist/{chunk-2A2JSAAA.js → chunk-H45S4MGC.js} +1 -1
  101. package/dist/chunk-HEB4YYM6.js +9 -0
  102. package/dist/{chunk-CXI3RHPW.js → chunk-HI5FTI3M.js} +1 -1
  103. package/dist/chunk-HJ24NEP5.js +1 -0
  104. package/dist/chunk-HQFXVVTB.js +1 -0
  105. package/dist/{chunk-TODZ3TJR.js → chunk-HR6R7JXN.js} +1 -1
  106. package/dist/chunk-HRHJA5ZP.js +3 -0
  107. package/dist/{chunk-QEKGGTMN.js → chunk-HT5JQJMB.js} +1 -1
  108. package/dist/chunk-HT7273V7.js +1 -0
  109. package/dist/{chunk-UXVXVI6O.js → chunk-HUB4HDWN.js} +78 -76
  110. package/dist/chunk-IATNIWOC.js +13 -0
  111. package/dist/chunk-IHVWDKDV.js +2 -0
  112. package/dist/{chunk-3KM5ZOW2.js → chunk-IKXUYCK7.js} +1 -1
  113. package/dist/chunk-IVQN2RUP.js +1 -0
  114. package/dist/chunk-IWNFPBH2.js +33 -0
  115. package/dist/{chunk-ESFCYB46.js → chunk-J324ZPO6.js} +1 -1
  116. package/dist/{chunk-KNWT7JLL.js → chunk-JJQ3DJG5.js} +2 -2
  117. package/dist/{chunk-7CCTPBCT.js → chunk-JLAN6JXJ.js} +1 -1
  118. package/dist/chunk-K2GCCCCV.js +1 -0
  119. package/dist/{chunk-NVKJ7ZLP.js → chunk-K4KKSBUW.js} +1 -1
  120. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  121. package/dist/{chunk-QDCLL5OI.js → chunk-K5UVCBIP.js} +1 -1
  122. package/dist/{chunk-64G5TGFF.js → chunk-KN2JIDNO.js} +1 -1
  123. package/dist/chunk-KORVOCNN.js +1 -0
  124. package/dist/chunk-KRQCQ57O.js +1 -0
  125. package/dist/{chunk-3MYDSQHF.js → chunk-KT2AMFVW.js} +1 -1
  126. package/dist/chunk-L23Q53FM.js +70 -0
  127. package/dist/{chunk-UBP3LQFY.js → chunk-L3DTONOI.js} +2 -2
  128. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  129. package/dist/chunk-LRETOC6P.js +1 -0
  130. package/dist/chunk-LXFWK3O2.js +1 -0
  131. package/dist/chunk-LZ2TN7EZ.js +1 -0
  132. package/dist/chunk-MBAPM5HA.js +15 -0
  133. package/dist/{chunk-UUAKOX7E.js → chunk-MGZK5EQW.js} +2 -2
  134. package/dist/chunk-MKUXSM33.js +1 -0
  135. package/dist/chunk-MQ55QUOJ.js +276 -0
  136. package/dist/chunk-NAQJMRPT.js +2296 -0
  137. package/dist/{chunk-DZKFP6H2.js → chunk-NMXRDF4T.js} +1 -1
  138. package/dist/chunk-NOWM3CCG.js +1 -0
  139. package/dist/chunk-NVDFXEQ5.js +5 -0
  140. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  141. package/dist/{chunk-B2O3ANRZ.js → chunk-OCILF2DD.js} +1 -1
  142. package/dist/{chunk-67L7FIB6.js → chunk-OGBMFGYC.js} +1 -1
  143. package/dist/chunk-OIQ5NQ5I.js +18 -0
  144. package/dist/chunk-OKRKVVTK.js +103 -0
  145. package/dist/chunk-ONNUEQGR.js +3 -0
  146. package/dist/chunk-OSASE35V.js +6 -0
  147. package/dist/chunk-OTMTS5L4.js +3 -0
  148. package/dist/chunk-OWPAHXDF.js +3 -0
  149. package/dist/chunk-P7HZGJRU.js +6 -0
  150. package/dist/chunk-PIU3GVJ4.js +1 -0
  151. package/dist/{chunk-2WJOTJOD.js → chunk-PSNCWS3Q.js} +2 -2
  152. package/dist/chunk-PSREELSQ.js +22 -0
  153. package/dist/{chunk-AQ6EVL73.js → chunk-Q2CKRCPM.js} +1 -1
  154. package/dist/chunk-QA2D7DT2.js +1 -0
  155. package/dist/chunk-QBRRFFMZ.js +1 -0
  156. package/dist/chunk-QDMTJKQ3.js +1 -0
  157. package/dist/{chunk-3Z3MADXZ.js → chunk-QIJ7D2JS.js} +1 -1
  158. package/dist/chunk-QLN6IOOY.js +1 -0
  159. package/dist/chunk-QU3USVKT.js +1 -0
  160. package/dist/chunk-R2E6TMBE.js +22 -0
  161. package/dist/chunk-R4E2E4NN.js +1 -0
  162. package/dist/chunk-R5COVIJM.js +1 -0
  163. package/dist/chunk-RFJ2LI64.js +81 -0
  164. package/dist/chunk-RNF6T6IO.js +5 -0
  165. package/dist/chunk-RSNFNZ6F.js +2 -0
  166. package/dist/{chunk-I4CEH7AK.js → chunk-RZ3UGOV4.js} +2 -2
  167. package/dist/{chunk-35XFNKNB.js → chunk-S23ZG2RG.js} +1 -1
  168. package/dist/{chunk-PF53E2DC.js → chunk-SAK42CAY.js} +1 -1
  169. package/dist/chunk-SBX7CMHM.js +1 -0
  170. package/dist/{chunk-S5P7KWY4.js → chunk-SGQTRKYZ.js} +1 -1
  171. package/dist/chunk-SNPJVVVE.js +5 -0
  172. package/dist/chunk-SNRGS3YU.js +1 -0
  173. package/dist/chunk-SUTSCIXU.js +7 -0
  174. package/dist/chunk-SWFCT5B7.js +2 -0
  175. package/dist/{chunk-4KECSZTL.js → chunk-SZ64GAVG.js} +2 -2
  176. package/dist/{chunk-WBVS5NBV.js → chunk-TDHIOONG.js} +2 -2
  177. package/dist/{chunk-W37IFK3P.js → chunk-TLN4BKXJ.js} +102 -102
  178. package/dist/{chunk-QW52RPAU.js → chunk-TXMZPF2U.js} +1 -1
  179. package/dist/chunk-TZHVCMZN.js +6 -0
  180. package/dist/{chunk-IHXGZW42.js → chunk-TZOB52QK.js} +1 -1
  181. package/dist/{chunk-N57Y7THE.js → chunk-U5BKU3OL.js} +1 -1
  182. package/dist/{chunk-Y55T4IIQ.js → chunk-UK3BDOHR.js} +1 -1
  183. package/dist/chunk-UORSJB4A.js +857 -0
  184. package/dist/chunk-UU6UQ2QY.js +1 -0
  185. package/dist/{chunk-PWAT52M4.js → chunk-UY44O4IZ.js} +1 -1
  186. package/dist/{chunk-QF5WKTPD.js → chunk-V3H6SYK3.js} +1 -1
  187. package/dist/{chunk-YTUUU33R.js → chunk-VBPMVVLV.js} +1 -1
  188. package/dist/{chunk-SNH4XZ6E.js → chunk-VGBCG3I5.js} +1 -1
  189. package/dist/{chunk-QEVTBD33.js → chunk-VHRUPKWH.js} +1 -1
  190. package/dist/chunk-VVHJ2AUF.js +3 -0
  191. package/dist/chunk-WB5GRBHW.js +1 -0
  192. package/dist/{chunk-YSWVYPWR.js → chunk-WBKQSSWW.js} +1 -1
  193. package/dist/{chunk-SIL6HPMK.js → chunk-WDXDT7XY.js} +2 -2
  194. package/dist/{chunk-SACNUF4I.js → chunk-WHOD5I7N.js} +1 -1
  195. package/dist/{chunk-Z2WAW6MM.js → chunk-WL3M63DG.js} +1 -1
  196. package/dist/{chunk-LEHBZKK3.js → chunk-WLJDMI7E.js} +1 -1
  197. package/dist/{chunk-PTSCGSQV.js → chunk-WZ3QWPK5.js} +2 -2
  198. package/dist/{chunk-H6GNKWYM.js → chunk-X5V7AGVU.js} +1 -1
  199. package/dist/{chunk-RPVZ2JON.js → chunk-X76AYO36.js} +1 -1
  200. package/dist/chunk-XB7H2RYV.js +31 -0
  201. package/dist/chunk-XHHAVKKV.js +1 -0
  202. package/dist/chunk-XKNDU62O.js +1 -0
  203. package/dist/chunk-XVJRGOJA.js +4 -0
  204. package/dist/chunk-Y3ZAQZPH.js +16 -0
  205. package/dist/chunk-YF4AXKM4.js +1 -0
  206. package/dist/chunk-YGN65N6W.js +16 -0
  207. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  208. package/dist/chunk-YTC367JI.js +3 -0
  209. package/dist/{chunk-ZBL7XMJ6.js → chunk-Z2FGYMJ6.js} +2 -2
  210. package/dist/chunk-Z3QZNLT5.js +1 -0
  211. package/dist/chunk-ZC3EDADH.js +26 -0
  212. package/dist/chunk-ZLITAXPT.js +1 -0
  213. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  214. package/dist/chunk-ZNEQZV5K.js +3 -0
  215. package/dist/chunk-ZOU6SOXW.js +20 -0
  216. package/dist/{chunk-YV2TP44L.js → chunk-ZQNGYJKJ.js} +1 -1
  217. package/dist/chunk-ZRM7ESSS.js +4 -0
  218. package/dist/chunk-ZX33FUW3.js +5 -0
  219. package/dist/cli/commands/app/build.js +1 -1
  220. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  221. package/dist/cli/commands/app/bulk/execute.js +1 -1
  222. package/dist/cli/commands/app/bulk/status.js +1 -1
  223. package/dist/cli/commands/app/config/link.js +1 -1
  224. package/dist/cli/commands/app/config/pull.js +1 -1
  225. package/dist/cli/commands/app/config/use.js +1 -1
  226. package/dist/cli/commands/app/config/validate.js +1 -1
  227. package/dist/cli/commands/app/demo/watcher.js +1 -1
  228. package/dist/cli/commands/app/deploy.js +1 -1
  229. package/dist/cli/commands/app/dev/clean.js +1 -1
  230. package/dist/cli/commands/app/dev.js +1 -1
  231. package/dist/cli/commands/app/env/pull.js +1 -1
  232. package/dist/cli/commands/app/env/show.js +1 -1
  233. package/dist/cli/commands/app/execute.js +1 -1
  234. package/dist/cli/commands/app/function/build.js +1 -1
  235. package/dist/cli/commands/app/function/info.js +1 -1
  236. package/dist/cli/commands/app/function/replay.js +1 -1
  237. package/dist/cli/commands/app/function/run.js +1 -1
  238. package/dist/cli/commands/app/function/schema.js +1 -1
  239. package/dist/cli/commands/app/function/typegen.js +1 -1
  240. package/dist/cli/commands/app/generate/extension.js +1 -1
  241. package/dist/cli/commands/app/graphiql.js +1 -1
  242. package/dist/cli/commands/app/import/channel-config.js +1 -1
  243. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  244. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  245. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  246. package/dist/cli/commands/app/import-extensions.js +1 -1
  247. package/dist/cli/commands/app/info.js +1 -1
  248. package/dist/cli/commands/app/init.js +1 -1
  249. package/dist/cli/commands/app/logs.js +1 -1
  250. package/dist/cli/commands/app/release.js +1 -1
  251. package/dist/cli/commands/app/security/check.js +1 -1
  252. package/dist/cli/commands/app/security/clean.js +1 -1
  253. package/dist/cli/commands/app/security/instructions.js +1 -1
  254. package/dist/cli/commands/app/security/record.js +1 -1
  255. package/dist/cli/commands/app/security/review.js +1 -1
  256. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  257. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  261. package/dist/cli/commands/app/versions/list.js +1 -1
  262. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  263. package/dist/cli/commands/auth/login.d.ts +10 -10
  264. package/dist/cli/commands/auth/login.js +1 -1
  265. package/dist/cli/commands/auth/logout.d.ts +7 -7
  266. package/dist/cli/commands/auth/logout.js +1 -1
  267. package/dist/cli/commands/cache/clear.js +1 -1
  268. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  269. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  274. package/dist/cli/commands/debug/command-flags.js +1 -1
  275. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  276. package/dist/cli/commands/doc/fetch.js +1 -1
  277. package/dist/cli/commands/doc/search.d.ts +23 -23
  278. package/dist/cli/commands/doc/search.js +1 -1
  279. package/dist/cli/commands/docs/generate.js +1 -1
  280. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  281. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  282. package/dist/cli/commands/help.d.ts +90 -90
  283. package/dist/cli/commands/help.js +1 -1
  284. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  285. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  288. package/dist/cli/commands/notifications/generate.js +1 -1
  289. package/dist/cli/commands/notifications/list.js +1 -1
  290. package/dist/cli/commands/organization/list.js +1 -1
  291. package/dist/cli/commands/search.d.ts +7 -7
  292. package/dist/cli/commands/search.js +1 -1
  293. package/dist/cli/commands/send-analytics.js +1 -1
  294. package/dist/cli/commands/theme/check.js +1 -1
  295. package/dist/cli/commands/theme/console.js +1 -1
  296. package/dist/cli/commands/theme/delete.js +1 -1
  297. package/dist/cli/commands/theme/dev.js +1 -1
  298. package/dist/cli/commands/theme/duplicate.js +1 -1
  299. package/dist/cli/commands/theme/info.js +1 -1
  300. package/dist/cli/commands/theme/init.js +1 -1
  301. package/dist/cli/commands/theme/language-server.js +1 -1
  302. package/dist/cli/commands/theme/list.js +1 -1
  303. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  304. package/dist/cli/commands/theme/open.js +1 -1
  305. package/dist/cli/commands/theme/package.js +1 -1
  306. package/dist/cli/commands/theme/preview.js +1 -1
  307. package/dist/cli/commands/theme/profile.js +1 -1
  308. package/dist/cli/commands/theme/publish.js +1 -1
  309. package/dist/cli/commands/theme/pull.js +1 -1
  310. package/dist/cli/commands/theme/push.js +1 -1
  311. package/dist/cli/commands/theme/rename.js +1 -1
  312. package/dist/cli/commands/theme/share.js +1 -1
  313. package/dist/cli/commands/upgrade.d.ts +24 -24
  314. package/dist/cli/commands/upgrade.js +1 -1
  315. package/dist/cli/commands/version.d.ts +7 -7
  316. package/dist/cli/commands/version.js +1 -1
  317. package/dist/cli/help.js +1 -1
  318. package/dist/cli-version-check-BW2CUMX4.js +1 -0
  319. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  320. package/dist/command-json-schema-LGR44Q2G.js +1 -0
  321. package/dist/command-registry.js +1 -1
  322. package/dist/conf-store-TODPQ2LC.js +1 -0
  323. package/dist/configs/all.yml +9 -0
  324. package/dist/configs/recommended.yml +9 -0
  325. package/dist/custom-oclif-loader-BPE2TH4B.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +279 -44
  330. package/dist/data/section.json +15 -1
  331. package/dist/data/setting.json +9 -5
  332. package/dist/data/shopify_system_translations.json +312 -32
  333. package/dist/data/strict_settings.json +24 -0
  334. package/dist/data/tags.json +57 -24
  335. package/dist/data/theme_block.json +1 -1
  336. package/dist/deprecations-5CSI24TV.js +1 -0
  337. package/dist/dist-LPKYTX3M.js +1 -0
  338. package/dist/dist-WT6MPTKJ.js +1 -0
  339. package/dist/environment-5P7JJ3GI.js +1 -0
  340. package/dist/environments-3HTT5CVC.js +1 -0
  341. package/dist/error-PFOKPWFX.js +1 -0
  342. package/dist/error-handler-23FASAEU.js +1 -0
  343. package/dist/fs-RA25PWSJ.js +1 -0
  344. package/dist/hooks/did-you-mean.js +1 -1
  345. package/dist/hooks/hydrogen-init.js +1 -1
  346. package/dist/hooks/plugin-plugins.js +1 -1
  347. package/dist/hooks/postrun.js +1 -1
  348. package/dist/hooks/prerun.js +2 -2
  349. package/dist/hooks/public-metadata.js +1 -1
  350. package/dist/hooks/sensitive-metadata.js +1 -1
  351. package/dist/hooks/tunnel-provider.js +1 -1
  352. package/dist/hooks/tunnel-start.js +1 -1
  353. package/dist/http-EVDTYINS.js +1 -0
  354. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  355. package/dist/index.js +12 -12
  356. package/dist/is-global-3DNAMKUU.js +1 -0
  357. package/dist/json-error-HGCRNJRF.js +1 -0
  358. package/dist/latest-version-75YEFEMK.js +9 -0
  359. package/dist/lib-4ZA53LTZ.js +1 -0
  360. package/dist/lib-F3MES3XF.js +1 -0
  361. package/dist/lib-XPJABU24.js +1 -0
  362. package/dist/{local-OKPVB4NH.js → local-LNGPIGLG.js} +1 -1
  363. package/dist/metadata-VHLSUKCW.js +1 -0
  364. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  365. package/dist/node-package-manager-SSFNUVWB.js +1 -0
  366. package/dist/notifications-system-3NQRYYKW.js +1 -0
  367. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  368. package/dist/os-KIKVJONE.js +1 -0
  369. package/dist/output-DUJTSURG.js +1 -0
  370. package/dist/{prettier-EGVCP5CY.js → prettier-NOE3TJJ5.js} +1 -1
  371. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  372. package/dist/registry-url-JMNV3LLX.js +1 -0
  373. package/dist/semver-HHZRKD6Y.js +1 -0
  374. package/dist/system-CGOZSROX.js +1 -0
  375. package/dist/tsconfig.tsbuildinfo +1 -1
  376. package/dist/ui-YMBFS3NG.js +1 -0
  377. package/dist/upgrade-73RRPDSC.js +1 -0
  378. package/dist/version-AMUEEBIG.js +1 -0
  379. package/dist/version-S4MGCKDO.js +1 -0
  380. package/dist/workerd-DRWNY3S4.js +18 -0
  381. package/oclif.manifest.json +25618 -1167
  382. package/package.json +7 -7
  383. package/dist/analytics-NMMVOF4B.js +0 -1
  384. package/dist/analytics-UK77WNLG.js +0 -1
  385. package/dist/chunk-224UPIYS.js +0 -4
  386. package/dist/chunk-27NXPOAS.js +0 -1
  387. package/dist/chunk-2MT3LSMZ.js +0 -1
  388. package/dist/chunk-2T4HDR6R.js +0 -70
  389. package/dist/chunk-2ZBXHCQZ.js +0 -1
  390. package/dist/chunk-335BUVBP.js +0 -1
  391. package/dist/chunk-33ZE3DRQ.js +0 -16
  392. package/dist/chunk-34MOWGRL.js +0 -1
  393. package/dist/chunk-3JSKNXL7.js +0 -1
  394. package/dist/chunk-3MG4MTWQ.js +0 -1
  395. package/dist/chunk-3XRI3D44.js +0 -1
  396. package/dist/chunk-43R5VGKT.js +0 -1
  397. package/dist/chunk-4WYKPIN3.js +0 -1
  398. package/dist/chunk-5AEZJZNQ.js +0 -1
  399. package/dist/chunk-5ED7SOQZ.js +0 -20
  400. package/dist/chunk-5IDJALJH.js +0 -1
  401. package/dist/chunk-66TMIQMB.js +0 -1
  402. package/dist/chunk-74NRFUGQ.js +0 -1
  403. package/dist/chunk-7GUMJ5E4.js +0 -1
  404. package/dist/chunk-7NFTSBHQ.js +0 -10
  405. package/dist/chunk-ACZNWIRY.js +0 -1
  406. package/dist/chunk-AUE7LM32.js +0 -1
  407. package/dist/chunk-AXL2VIWA.js +0 -16
  408. package/dist/chunk-B3ZJGYZY.js +0 -3
  409. package/dist/chunk-BOAGJ6P5.js +0 -1
  410. package/dist/chunk-BWN2QG6D.js +0 -5
  411. package/dist/chunk-CCUQM4FX.js +0 -6
  412. package/dist/chunk-CLUUA3HX.js +0 -3
  413. package/dist/chunk-CYEEGTVZ.js +0 -11
  414. package/dist/chunk-DBDTE3EE.js +0 -5
  415. package/dist/chunk-DLVB3237.js +0 -31
  416. package/dist/chunk-DN6X7SHW.js +0 -2
  417. package/dist/chunk-E5COIKGY.js +0 -5
  418. package/dist/chunk-E6RONHMT.js +0 -1
  419. package/dist/chunk-EAZIQI2D.js +0 -1
  420. package/dist/chunk-EEY4FKAW.js +0 -1
  421. package/dist/chunk-EKFPTBXC.js +0 -1
  422. package/dist/chunk-F3CK3EJJ.js +0 -1
  423. package/dist/chunk-FEBOZ2XX.js +0 -31
  424. package/dist/chunk-FFSDGRAN.js +0 -1
  425. package/dist/chunk-FZCGRIOM.js +0 -1
  426. package/dist/chunk-GNCVDN7U.js +0 -1
  427. package/dist/chunk-GQLNG537.js +0 -836
  428. package/dist/chunk-GVI3DWSB.js +0 -4
  429. package/dist/chunk-GW7YIJPJ.js +0 -5
  430. package/dist/chunk-H6GYBLVQ.js +0 -2
  431. package/dist/chunk-HB3MJYBK.js +0 -1
  432. package/dist/chunk-HSKDFEXW.js +0 -1
  433. package/dist/chunk-HTRJU4R4.js +0 -1
  434. package/dist/chunk-I7PEEJVH.js +0 -1
  435. package/dist/chunk-IHMATNOR.js +0 -1
  436. package/dist/chunk-IJY3RJPJ.js +0 -47
  437. package/dist/chunk-J3JPJCWP.js +0 -1
  438. package/dist/chunk-J55GQLP4.js +0 -1
  439. package/dist/chunk-JLQRDFR5.js +0 -18
  440. package/dist/chunk-JPWRZ5SL.js +0 -16
  441. package/dist/chunk-K7ZSPQKL.js +0 -4
  442. package/dist/chunk-L5TSPCSY.js +0 -26
  443. package/dist/chunk-LUGMXSRI.js +0 -9
  444. package/dist/chunk-M2CWCOFU.js +0 -11
  445. package/dist/chunk-M5VIFG2V.js +0 -1
  446. package/dist/chunk-MADINS4Z.js +0 -1
  447. package/dist/chunk-MGHPF7HU.js +0 -6
  448. package/dist/chunk-MHR5OHT5.js +0 -10
  449. package/dist/chunk-MXEXP3HT.js +0 -15
  450. package/dist/chunk-OJULL7HT.js +0 -1
  451. package/dist/chunk-OMPQ7REW.js +0 -3
  452. package/dist/chunk-OR4IJ4BQ.js +0 -1
  453. package/dist/chunk-P2RMFHQP.js +0 -1
  454. package/dist/chunk-P4VZYOKO.js +0 -15
  455. package/dist/chunk-PDZBKVWL.js +0 -97
  456. package/dist/chunk-Q2KWXZQB.js +0 -12
  457. package/dist/chunk-QFSENE5T.js +0 -3
  458. package/dist/chunk-QFWWCZOI.js +0 -1
  459. package/dist/chunk-QFYLJVJW.js +0 -77
  460. package/dist/chunk-QQJNQNKP.js +0 -6
  461. package/dist/chunk-R4UVIYZP.js +0 -4
  462. package/dist/chunk-RLNIOJH3.js +0 -272
  463. package/dist/chunk-RW6G4ZPU.js +0 -1
  464. package/dist/chunk-S4LOWCGS.js +0 -1
  465. package/dist/chunk-SB27UOXX.js +0 -1
  466. package/dist/chunk-SHD4VV5V.js +0 -3
  467. package/dist/chunk-SK7EPN6C.js +0 -1
  468. package/dist/chunk-TAWCKJKP.js +0 -1
  469. package/dist/chunk-U2T5HPRD.js +0 -319
  470. package/dist/chunk-U6YOP562.js +0 -1
  471. package/dist/chunk-UPPO3BMT.js +0 -7
  472. package/dist/chunk-USXIXANP.js +0 -103
  473. package/dist/chunk-UV5GAGAD.js +0 -1
  474. package/dist/chunk-UY6W2EVZ.js +0 -1
  475. package/dist/chunk-UYELAINQ.js +0 -16
  476. package/dist/chunk-V75WUEFU.js +0 -1
  477. package/dist/chunk-VAVXDIUX.js +0 -6
  478. package/dist/chunk-VGSH52JM.js +0 -1
  479. package/dist/chunk-VHZ6RL67.js +0 -1
  480. package/dist/chunk-VQA3X7O3.js +0 -1
  481. package/dist/chunk-VZCMJRYV.js +0 -1
  482. package/dist/chunk-W56ZGEQQ.js +0 -2265
  483. package/dist/chunk-WCC52MR2.js +0 -1
  484. package/dist/chunk-WSDKCQH6.js +0 -6
  485. package/dist/chunk-X2PFXSU4.js +0 -1
  486. package/dist/chunk-X5NIAZA4.js +0 -1
  487. package/dist/chunk-XBMD3FEZ.js +0 -3
  488. package/dist/chunk-XDVPIGXE.js +0 -2
  489. package/dist/chunk-XLIJYJ6Q.js +0 -1
  490. package/dist/chunk-XUHGWIWW.js +0 -4
  491. package/dist/chunk-Y5CVX5LJ.js +0 -1
  492. package/dist/chunk-Y6J46XYF.js +0 -3
  493. package/dist/chunk-YKMINHYY.js +0 -3
  494. package/dist/chunk-ZDQO6CNY.js +0 -1
  495. package/dist/chunk-ZGASBRSQ.js +0 -5
  496. package/dist/chunk-ZGBTO46A.js +0 -1
  497. package/dist/chunk-ZJOX5HW4.js +0 -22
  498. package/dist/chunk-ZOOT3GBY.js +0 -5
  499. package/dist/command-json-schema-F5XF7XHL.js +0 -1
  500. package/dist/conf-store-5CBLWTOC.js +0 -1
  501. package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
  502. package/dist/deprecations-EOHPSTCS.js +0 -1
  503. package/dist/dist-RNV3GFZ7.js +0 -1
  504. package/dist/dist-ZFKWJVNB.js +0 -1
  505. package/dist/environment-O7ECODHU.js +0 -1
  506. package/dist/environments-4FLRZW4P.js +0 -1
  507. package/dist/error-JY2ADS6S.js +0 -1
  508. package/dist/error-handler-4GCXKC6I.js +0 -1
  509. package/dist/fs-XS5YF34R.js +0 -1
  510. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  511. package/dist/is-global-27MUENOK.js +0 -1
  512. package/dist/json-error-S5XFS3UX.js +0 -1
  513. package/dist/latest-version-LDWU5F7A.js +0 -49
  514. package/dist/lib-PJHT4MKY.js +0 -1
  515. package/dist/lib-VKSQ65BQ.js +0 -1
  516. package/dist/lib-YEZOHXF3.js +0 -1
  517. package/dist/metadata-2YJBAKR7.js +0 -1
  518. package/dist/node-package-manager-B3OW3PFQ.js +0 -1
  519. package/dist/notifications-system-BWTDYBG2.js +0 -1
  520. package/dist/os-F6QKJCFW.js +0 -1
  521. package/dist/output-BRIPK7UC.js +0 -1
  522. package/dist/system-466QKFDI.js +0 -1
  523. package/dist/ui-VJTNGCS6.js +0 -1
  524. package/dist/upgrade-VHVJLXKX.js +0 -1
  525. package/dist/version-FETZRLZO.js +0 -1
  526. package/dist/version-T4XXTJMB.js +0 -1
  527. package/dist/workerd-32DMKLMN.js +0 -18
  528. /package/dist/{chunk-YLQ3LNNY.js → chunk-HVECVOIO.js} +0 -0
  529. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -0,0 +1,13 @@
1
+ import{a as ee}from"./chunk-3DB4EC62.js";import{d as X,i as te,k as se,q as re,r as ne}from"./chunk-36S6MFJQ.js";import{a as Z}from"./chunk-TZOB52QK.js";import{b as K,m as Q}from"./chunk-RSNFNZ6F.js";import{e as B}from"./chunk-7HECBXSP.js";import{j as H,k as V,l as W,p as Y,v as z}from"./chunk-VVHJ2AUF.js";import{c as q}from"./chunk-FDSNRKGQ.js";import{a as N}from"./chunk-3JRB7Q3T.js";import{b as $}from"./chunk-ZNEPRGFY.js";import{Ha as J}from"./chunk-UORSJB4A.js";import{a as C}from"./chunk-EE72PCKT.js";import{b as G,c as U}from"./chunk-IKXUYCK7.js";import{A as M}from"./chunk-7A4ZE5IS.js";import{j as o}from"./chunk-FJOVMEPN.js";import{Bb as c,Eb as f,la as F,tb as w,vb as y,zb as D}from"./chunk-OIQ5NQ5I.js";import{b as n}from"./chunk-3PYDIBTX.js";import{b as k}from"./chunk-4AWVU2OV.js";import{b as ve}from"./chunk-VBPMVVLV.js";import{e as ye,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var S=class extends Z{context="REPL";constructor(t){super(t),this.themeId=H()}async create(t,s){let r=await super.create(t,s);return await this.uploadThemeAssets(r),r}async findOrCreate(){let t=await this.fetch();if(!t){let s=`Liquid Console (${C})`;t=await this.create(K,s)}return t}setTheme(t){V(t)}removeTheme(){W()}async uploadThemeAssets(t){let s=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await Q(t.id,s,this.adminSession)}};i();i();async function g(e){let t=await Ee(e);if(t!==void 0)return t.value;if(!await oe(e)&&!await xe(e)&&(await Se(e),e.mode==="batch"))throw new o("Unable to evaluate the Liquid command.")}async function Ee(e){f(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?Te(r):void 0}async function oe(e){f(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,s=await b({...e,snippet:t}),r=await s.text();return ae(s.status,r)?(e.replSession.push(JSON.parse(t)),!0):!1}async function xe(e){if(f(`Evaluating assignment context - ${e.snippet}`),Oe(e.snippet))return e.snippet=`assign ${e.snippet}`,e.mode!=="batch"&&c(y`${w.gray(`> ${e.snippet}`)}`),oe(e)}async function Se(e){f(`Evaluating syntax error - ${e.snippet}`);let t="";if(Re(e.snippet)||(t=await(await b({...e,snippet:`{{ ${e.snippet} }}`})).text()),I(t)||(t=await(await b({...e,snippet:`{% ${e.snippet} %}`})).text()),I(t)){let s=t.replace(/ \(snippets\/eval line \d+\)/,"");be(e,s)}}function be(e,t){let s=ie(t);if(t.includes("Unknown tag")&&(s=`Unknown object, property, tag, or filter: '${e.snippet}'`),s){if(e.mode==="batch")throw new o(s);c(y`${w.errorText(s)}`)}}async function b(e){let t=ge(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let s=await se(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
2
+ ${t}
3
+ `}});if(Le(s)&&je(),qe(s)&&_e(),Ie(s)&&Ae(),e.mode==="batch"&&s.status!==200)throw new o(`Liquid evaluation failed (HTTP ${s.status}).`);return s}function ge(e){return`[${[...e.replSession.map(s=>JSON.stringify(s)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Te(e){let t=ie(e);if(t){let s=JSON.parse(t)?.find(r=>r.type==="display");if(s&&"value"in s)return{value:s.value}}}function ie(e){let t=e.split(`
4
+ `).slice(1,-1);if(t.length!==0)return t.join("")}function I(e){return e.includes("Liquid syntax error")}function Re(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Le(e){return e.status===401||e.status===403}function qe(e){return e.status===430||e.status===429}function Ie(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function je(){throw new o("Session expired. Please initiate a new one.")}function _e(){throw new o("Evaluations limit reached. Try again later.")}function Ae(){throw new o("Page not found. Please provide a valid --url value!")}function Oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function ae(e,t){return e===200&&!I(t)}i();var j="Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.";function T(e){if(R(e)){c(j);return}if(e==null){ue("null");return}let t=JSON.stringify(e,null,2);ue(t)}function R(e){if(Array.isArray(e))return e.length>0?R(e[0]):!1;if(e&&typeof e=="object"){let s=e.error;return typeof s=="string"&&s.includes("json not allowed for this object")}return!1}function ue(e){return c(y`${w.cyan(e)}`)}import{createInterface as Pe}from"readline";var _=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
5
+ Please use 'collections.first' instead of '{{ collections.first }}'.`;async function pe(e,t,s){if(k())throw new o("The theme console requires user input and can't run with `--no-input`.");process.stdin.isTTY&&process.stdin.ref();let r=Pe({input:process.stdin,output:process.stdout}),a=[];r.on("line",u=>{Ce(u,e,t,s,r,a)}),r.prompt()}async function Ce(e,t,s,r,a,u){try{if(A(e))return c(_),a.prompt();let p=await g({snippet:e,themeSession:t,themeId:s,url:r,replSession:u});T(p),a.prompt()}catch(p){throw a.close(),p instanceof Error?(f(p.stack??"Error backtrace not found"),new o(p.message)):new o("An unknown error occurred. Please try again.")}}function A(e){return/^\s*(\{\{|{%)/.test(e)}async function ce(e,t){let s=await ke(e),r=await X(e)?await ee(t,e.storeFqdn):void 0;return{themeId:s,storePassword:r}}async function ke(e){return(await new S(e).findOrCreate()).id.toString()}async function le(e,t,s,r,a){c(`Welcome to Shopify Liquid console
6
+ (press Ctrl + C to exit)`),de(r);let u=await re(t,e,r,a);return pe(u,t,s)}async function me(e){let{inputs:t,adminSession:s,themeId:r,url:a,themeAccessPassword:u,storefrontPassword:p}=e;de(u);let E=await ne(r,s,u,p),x=[],l=[],d=!1;for(let h of t){if(d){l.push({input:h,status:"skipped",reason:"previous-input-failed"});continue}try{if(A(h))throw new o(_);let m=await g({snippet:h,themeSession:E,themeId:r,url:a,replSession:x,mode:"batch"});if(R(m))throw new o(j);l.push({input:h,status:"success",value:m??null})}catch(m){if(!(m instanceof o)&&!q(m))throw m;let we=q(m)?new o(te(m,"Liquid evaluation failed").headline):m;d=!0,l.push({input:h,status:"failed",error:N(we)})}}return{status:d?"partial":"success",results:l}}function de(e){if(e?.startsWith("shpat_"))throw new o("Unable to use Admin API tokens with the console command",`To use this command with the --password flag you must:
7
+
8
+ 1. Install the Theme Access app on your shop
9
+ 2. Generate a new password
10
+
11
+ Alternatively, you can authenticate normally by not passing the --password flag.
12
+
13
+ Learn more: https://shopify.dev/docs/storefronts/themes/tools/theme-access`)}i();async function fe(e,t){if(t===void 0)return e;let r=(await F(t)).split(/\r?\n/).filter(a=>a.trim().length>0);if(r.length===0)throw new o("The script file must contain at least one Liquid snippet.");return r}i();var L=n.lazy(()=>n.union([n.string(),n.number().finite(),n.boolean(),n.null(),n.array(L),n.record(L)])),he=n.discriminatedUnion("status",[n.object({input:n.string(),status:n.literal("success"),value:L.describe("The native Liquid value. Assignments return null.")}).strict(),n.object({input:n.string(),status:n.literal("failed"),error:$}).strict(),n.object({input:n.string(),status:n.literal("skipped"),reason:n.literal("previous-input-failed")}).strict()]),Fe=n.object({status:n.enum(["success","partial"]),results:n.array(he)}).strict(),O=B({name:"ThemeConsoleResult",schema:Fe,definitions:{ConsoleInputResult:he,LiquidValue:L},project:e=>e});var v=ye(ve(),1);var P=class extends z{static jsonOutputSchema=O;static summary="Shopify Liquid REPL (read-eval-print loop) tool";static usage=["theme console","theme console --url /products/classic-leather-jacket"];static descriptionWithMarkdown="Starts the Shopify Liquid REPL (read-eval-print loop) tool. This tool provides an interactive terminal interface for evaluating Liquid code and exploring Liquid objects, filters, and tags using real store data.\n\nYou can also provide context to the console using a URL, as some Liquid objects are context-specific.\n\nUse repeatable `--script` flags or `--script-file` to evaluate commands sequentially in one session and exit. Script files contain one console command per line; blank lines are ignored. Stop at the first error and skip remaining commands.\n\n`--json` requires `--script` or `--script-file` and returns one object with ordered results. Use `--no-input` as well to prevent authentication and password prompts.";static examples=['<%= config.bin %> <%= command.id %> --store example --script "shop.name" --script "shop.currency" --json --no-input',"<%= config.bin %> <%= command.id %> --store example --script-file ./commands.txt --json --no-input"];static description=this.descriptionForHelp();static flags={...G,...U,...Y,script:v.Flags.string({description:"Liquid command to evaluate. Repeat to run commands in order and exit.",multiple:!0,multipleNonGreedy:!0,exclusive:["script-file"],env:"SHOPIFY_FLAG_SCRIPT"}),"script-file":v.Flags.string({description:"File containing one Liquid command per line. Evaluates the commands and exits.",exclusive:["script"],env:"SHOPIFY_FLAG_SCRIPT_FILE"}),url:v.Flags.string({description:"The url to be used as context",env:"SHOPIFY_FLAG_URL",default:"/"}),"store-password":v.Flags.string({description:"The password for storefronts with password protection.",env:"SHOPIFY_FLAG_STORE_PASSWORD"})};static multiEnvironmentsFlags=null;async command(t,s,r=!1){let{url:a,password:u}=t,p=await fe(t.script,t["script-file"]),{themeId:E,storePassword:x}=await ce(s,t["store-password"]);if(J("theme-command:console:single-env:authenticated"),p===void 0){await le(s,E,a,u,x);return}let l=await me({inputs:p,adminSession:s,themeId:E,url:a,themeAccessPassword:u,storefrontPassword:x});if(l.status==="partial"&&(process.exitCode=1),t.json&&r)return l;if(t.json)D(O.encode(l));else for(let d of l.results)d.status==="success"&&T(d.value),d.status==="failed"&&M({body:d.error.message})}validateCommandFlags(t){if(t.json&&!t.script?.length&&!t["script-file"])throw new o("Use --script or --script-file with --json to supply Liquid commands.");if(t.script?.some(s=>s.trim().length===0))throw new o("Each --script must contain a Liquid command.")}};export{P as a};
@@ -0,0 +1,2 @@
1
+ import{b as p,d as c,e as _,f as q}from"./chunk-OTMTS5L4.js";import{a as T}from"./chunk-652NT7OW.js";import{a as F,b as B,c as E,l as w,n as C,o as y,t as D}from"./chunk-NMXRDF4T.js";import{a as R}from"./chunk-R5COVIJM.js";import{a as x}from"./chunk-K4KKSBUW.js";import{B as m}from"./chunk-UORSJB4A.js";import{b as S,c as A}from"./chunk-IKXUYCK7.js";import{A as O,x as d,y as f,z as k}from"./chunk-7A4ZE5IS.js";import{j as h}from"./chunk-FJOVMEPN.js";import{tb as b,vb as g,zb as I}from"./chunk-OIQ5NQ5I.js";import{b as N}from"./chunk-VBPMVVLV.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();async function j(o){let{storeFqdn:e,operationId:a,remoteApp:t}=o,r=await T(t,e),n=await w({adminSession:r,operationId:a});return{store:e,apiVersion:F,operation:n?.bulkOperation??null,userErrors:n?.userErrors??[]}}i();function G(o,e,a){if(a==="json"){if(o.userErrors.length||!o.operation){let r=new h("Failed to cancel bulk operation.");throw r.details={...c(o),operationGid:e,userErrors:o.userErrors},r}I(p.encode({...c(o),status:"success",operation:_(o.operation)}));return}if(o.userErrors.length){C(o.userErrors,"Failed to cancel bulk operation.");return}let t=o.operation;if(t){let r=y(t),n=t.status==="CANCELING"?[`This may take a few moments. Check the status with:
2
+ `,{command:`shopify app bulk status --id=${E(t.id)}`}]:r.body,s={headline:r.headline,...n&&{body:n},...r.customSections&&{customSections:r.customSections}};switch(r.renderType){case"success":f(s);break;case"warning":k(s);break;case"info":d(s);break}}else O({headline:"Bulk operation not found or could not be canceled.",body:g`ID: ${b.yellow(e)}`.value})}var u=L(N(),1);var l=class o extends R{static summary="Cancel a bulk operation.";static descriptionWithMarkdown="Cancels a running bulk operation by ID.";static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...S,...A,...x,id:u.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:u.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>m(e)})};async run(){let{flags:e}=await this.parse(o),{appContextResult:a,store:t}=await D(e),r=e.json?"json":"text",n=B(e.id);q("Canceling bulk operation.",{organization:a.organization,remoteApp:a.remoteApp,storeFqdn:t.shopDomain,operationId:n},r);let s=await j({storeFqdn:t.shopDomain,operationId:n,remoteApp:a.remoteApp});return G(s,n,r),{app:a.app}}};export{l as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-43R5VGKT.js";import{b as p}from"./chunk-ZDQO6CNY.js";import{b as C}from"./chunk-YTUUU33R.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-OKPVB4NH.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-UDVUFKMD.js"),r=await import("./lib-VKSQ65BQ.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-F5XF7XHL.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-4GCXKC6I.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-VJTNGCS6.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-B3OW3PFQ.js"),{moduleDirectory:r}=await import("./path-3L2QRACZ.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-5CBLWTOC.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
1
+ import{a as h}from"./chunk-4AWVU2OV.js";import{b as p}from"./chunk-R4E2E4NN.js";import{b as C}from"./chunk-VBPMVVLV.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-LNGPIGLG.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-BPE2TH4B.js"),r=await import("./lib-XPJABU24.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-LGR44Q2G.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-23FASAEU.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-YMBFS3NG.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-SSFNUVWB.js"),{moduleDirectory:r}=await import("./path-3L2QRACZ.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-TODPQ2LC.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
@@ -0,0 +1 @@
1
+ import{a as $,c as M}from"./chunk-652NT7OW.js";import{d as N,f as Q,u as P}from"./chunk-NMXRDF4T.js";import{a as C}from"./chunk-R5COVIJM.js";import{a as G,c as q}from"./chunk-K4KKSBUW.js";import{b as L}from"./chunk-XHHAVKKV.js";import{b as X,d as J}from"./chunk-UORSJB4A.js";import{b as j,c as k}from"./chunk-IKXUYCK7.js";import{A as R,H as x,y as w}from"./chunk-7A4ZE5IS.js";import{a as S}from"./chunk-LG3KEHGD.js";import{j as p}from"./chunk-FJOVMEPN.js";import{Sa as A,la as b,ta as E,tb as f,vb as c,zb as m}from"./chunk-OIQ5NQ5I.js";import{b as a}from"./chunk-3PYDIBTX.js";import{e as y,g as O}from"./chunk-IWTNUJGY.js";import{e as K,g as i}from"./chunk-VKWPEFWQ.js";i();i();var V=K(X(),1);async function Y(r,e){if(r)try{return JSON.parse(r)}catch(o){let t=o instanceof Error?o.message:"Unknown error";throw new p(c`Invalid JSON in ${f.yellow("--variables")} flag: ${t}`,"Please provide valid JSON format.")}else if(e){if(!await A(e))throw new p(c`Variable file not found at ${f.path(e)}. Please check the path and try again.`);let o=await b(e,{encoding:"utf8"});try{return JSON.parse(o)}catch(t){let s=t instanceof Error?t.message:"Unknown error";throw new p(c`Invalid JSON in variable file ${f.path(e)}: ${s}`,"Please provide valid JSON format.")}}}async function F(r){let{remoteApp:e,store:o,query:t,variables:s,variableFile:h,version:U}=r,{adminSession:H,version:W}=await x({title:c`Authenticating`,task:async()=>{let n=await $(e,o.shopDomain),l=await Q({adminSession:n,userSpecifiedVersion:U});return{adminSession:n,version:l}},renderOptions:{stdout:process.stderr}}),B=await Y(s,h);N(t),M(t,o);try{let n;return{status:"success",result:{data:await x({title:c`Executing GraphQL operation`,task:async()=>L({query:(0,V.parse)(t),session:H,variables:B,version:W,responseOptions:{handleErrors:!1,onResponse:u=>{n=u.extensions}}}),renderOptions:{stdout:process.stderr}}),...n===void 0?{}:{extensions:n}}}}catch(n){if(n instanceof J){let{errors:l,extensions:u,data:v}=n.response;return{status:"failed",details:{...l===void 0?{}:{errors:l},...u===void 0?{}:{extensions:u},...v===void 0?{}:{data:v}}}}throw n}}i();var z=a.unknown().and(a.record(a.unknown())),I=a.object({data:z.nullable().describe("Native GraphQL query data, preserving fields and aliases."),extensions:z.optional().describe("Native GraphQL response extensions, when supplied.")}).strict(),D=a.object({path:a.string().refine(O,"Expected an absolute filesystem path."),format:a.literal("json")}).strict().describe("Receipt for a written JSON file containing the GraphQL result, including data and optional extensions."),d=S({name:"AppExecuteResult",schema:a.union([I,D]),definitions:{AppExecuteGraphQLResult:I,AppExecuteFileReceipt:D}});i();async function T(r,e,o){if(r.status==="failed"){if(e==="json"){let s=new p("GraphQL operation failed.");throw s.details=r.details,s}R({headline:"GraphQL operation failed.",body:JSON.stringify({errors:r.details.errors},null,2)});return}let t=e==="json"?Z(r.result):JSON.stringify(r.result.data,null,2);o?(await E(o,t),e==="json"?m(d.encode({path:y(o),format:"json"})):w({headline:"Operation succeeded.",body:`Results written to ${o}`})):e==="json"?m(t):(w({headline:"Operation succeeded."}),m(t))}function Z(r){return d.validate(r),JSON.stringify(r,null,2)}var g=class r extends C{static summary="Execute GraphQL queries and mutations.";static descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...j,...G,...q,...k};async run(){let{flags:e}=await this.parse(r),{query:o,appContextResult:t,store:s}=await P(e),h=await F({organization:t.organization,remoteApp:t.remoteApp,store:s,query:o,variables:e.variables,variableFile:e["variable-file"],...e.version&&{version:e.version}});return await T(h,e.json?"json":"text",e["output-file"]),{app:t.app}}};export{g as a};
@@ -0,0 +1,33 @@
1
+ import{a as fn}from"./chunk-C72QNK6O.js";import{a as W,c as S,e as tn,g as E}from"./chunk-VKWPEFWQ.js";var z=S((dn,U)=>{"use strict";E();var D=1,P=2;function on(){return""}function un(n,e,r){return n.slice(e,r).replace(/\S/g," ")}U.exports=function(n,e){e=e||{};for(var r,f,l=!1,u=!1,i=0,p="",d=e.whitespace===!1?on:un,t=0;t<n.length;t++){if(r=n[t],f=n[t+1],!u&&r==='"'){var _=n[t-1]==="\\"&&n[t-2]!=="\\";_||(l=!l)}if(!l){if(!u&&r+f==="//")p+=n.slice(i,t),i=t,u=D,t++;else if(u===D&&r+f===`\r
2
+ `){t++,u=!1,p+=d(n,i,t),i=t;continue}else if(u===D&&r===`
3
+ `)u=!1,p+=d(n,i,t),i=t;else if(!u&&r+f==="/*"){p+=n.slice(i,t),i=t,u=P,t++;continue}else if(u===P&&r+f==="*/"){t++,u=!1,p+=d(n,i,t+1),i=t+1;continue}}}return p+(u?d(n.substr(i)):n.substr(i))}});var V=S(C=>{"use strict";E();var J=W("fs"),cn=fn(),$=W("path"),sn=z(),ln=C.parse=function(n){return/^\s*{/.test(n)?JSON.parse(sn(n)):cn.parse(n)},an=C.file=function(){var n=[].slice.call(arguments).filter(function(l){return l!=null});for(var e in n)if(typeof n[e]!="string")return;var r=$.join.apply(null,n),f;try{return J.readFileSync(r,"utf-8")}catch{return}},gn=C.json=function(){var n=an.apply(null,arguments);return n?ln(n):null},En=C.env=function(n,e){e=e||process.env;var r={},f=n.length;for(var l in e)if(l.toLowerCase().indexOf(n.toLowerCase())===0){for(var u=l.substring(f).split("__"),i;(i=u.indexOf(""))>-1;)u.splice(i,1);var p=r;u.forEach(function(t,_){!t||typeof p!="object"||(_===u.length-1&&(p[t]=e[l]),p[t]===void 0&&(p[t]={}),p=p[t])})}return r},mn=C.find=function(){var n=$.join.apply(null,[].slice.call(arguments));function e(r,f){var l=$.join(r,f);try{return J.statSync(l),l}catch{if($.dirname(r)!==r)return e($.dirname(r),f)}}return e(process.cwd(),n)}});var T=S((On,M)=>{"use strict";E();function G(n){return n instanceof Buffer||n instanceof Date||n instanceof RegExp}function H(n){if(n instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(n.length):new Buffer(n.length);return n.copy(e),e}else{if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp)return new RegExp(n);throw new Error("Unexpected situation")}}function I(n){var e=[];return n.forEach(function(r,f){typeof r=="object"&&r!==null?Array.isArray(r)?e[f]=I(r):G(r)?e[f]=H(r):e[f]=K({},r):e[f]=r}),e}function Z(n,e){return e==="__proto__"?void 0:n[e]}var K=M.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var n=arguments[0],e=Array.prototype.slice.call(arguments,1),r,f,l;return e.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(i){if(f=Z(n,i),r=Z(u,i),r!==n)if(typeof r!="object"||r===null){n[i]=r;return}else if(Array.isArray(r)){n[i]=I(r);return}else if(G(r)){n[i]=H(r);return}else if(typeof f!="object"||f===null||Array.isArray(f)){n[i]=K({},r);return}else{n[i]=K(f,r);return}})}),n}});var x=S((Cn,Y)=>{"use strict";E();function pn(n,e){var r=n;e.slice(0,-1).forEach(function(l){r=r[l]||{}});var f=e[e.length-1];return f in r}function Q(n){return typeof n=="number"||/^0x[0-9a-f]+$/i.test(n)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n)}function X(n,e){return e==="constructor"&&typeof n[e]=="function"||e==="__proto__"}Y.exports=function(n,e){e||(e={});var r={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(r.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?r.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(o){r.bools[o]=!0});var f={};function l(o){return f[o].some(function(v){return r.bools[v]})}Object.keys(e.alias||{}).forEach(function(o){f[o]=[].concat(e.alias[o]),f[o].forEach(function(v){f[v]=[o].concat(f[o].filter(function(A){return v!==A}))})}),[].concat(e.string).filter(Boolean).forEach(function(o){r.strings[o]=!0,f[o]&&[].concat(f[o]).forEach(function(v){r.strings[v]=!0})});var u=e.default||{},i={_:[]};function p(o,v){return r.allBools&&/^--[^=]+$/.test(v)||r.strings[o]||r.bools[o]||f[o]}function d(o,v,A){for(var s=o,F=0;F<v.length-1;F++){var w=v[F];if(X(s,w))return;s[w]===void 0&&(s[w]={}),(s[w]===Object.prototype||s[w]===Number.prototype||s[w]===String.prototype)&&(s[w]={}),s[w]===Array.prototype&&(s[w]=[]),s=s[w]}var O=v[v.length-1];X(s,O)||((s===Object.prototype||s===Number.prototype||s===String.prototype)&&(s={}),s===Array.prototype&&(s=[]),s[O]===void 0||r.bools[O]||typeof s[O]=="boolean"?s[O]=A:Array.isArray(s[O])?s[O].push(A):s[O]=[s[O],A])}function t(o,v,A){if(!(A&&r.unknownFn&&!p(o,A)&&r.unknownFn(A)===!1)){var s=!r.strings[o]&&Q(v)?Number(v):v;d(i,o.split("."),s),(f[o]||[]).forEach(function(F){d(i,F.split("."),s)})}}Object.keys(r.bools).forEach(function(o){t(o,u[o]===void 0?!1:u[o])});var _=[];n.indexOf("--")!==-1&&(_=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var h=0;h<n.length;h++){var c=n[h],a,g;if(/^--.+=/.test(c)){var L=c.match(/^--([^=]+)=([\s\S]*)$/);a=L[1];var R=L[2];r.bools[a]&&(R=R!=="false"),t(a,R,c)}else if(/^--no-.+/.test(c))a=c.match(/^--no-(.+)/)[1],t(a,!1,c);else if(/^--.+/.test(c))a=c.match(/^--(.+)/)[1],g=n[h+1],g!==void 0&&!/^(-|--)[^-]/.test(g)&&!r.bools[a]&&!r.allBools&&(!f[a]||!l(a))?(t(a,g,c),h+=1):/^(true|false)$/.test(g)?(t(a,g==="true",c),h+=1):t(a,r.strings[a]?"":!0,c);else if(/^-[^-]+/.test(c)){for(var m=c.slice(1,-1).split(""),N=!1,b=0;b<m.length;b++){if(g=c.slice(b+2),g==="-"){t(m[b],g,c);continue}if(/[A-Za-z]/.test(m[b])&&g[0]==="="){t(m[b],g.slice(1),c),N=!0;break}if(/[A-Za-z]/.test(m[b])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){t(m[b],g,c),N=!0;break}if(m[b+1]&&m[b+1].match(/\W/)){t(m[b],c.slice(b+2),c),N=!0;break}else t(m[b],r.strings[m[b]]?"":!0,c)}a=c.slice(-1)[0],!N&&a!=="-"&&(n[h+1]&&!/^(-|--)[^-]/.test(n[h+1])&&!r.bools[a]&&(!f[a]||!l(a))?(t(a,n[h+1],c),h+=1):n[h+1]&&/^(true|false)$/.test(n[h+1])?(t(a,n[h+1]==="true",c),h+=1):t(a,r.strings[a]?"":!0,c))}else if((!r.unknownFn||r.unknownFn(c)!==!1)&&i._.push(r.strings._||!Q(c)?c:Number(c)),e.stopEarly){i._.push.apply(i._,n.slice(h+1));break}}return Object.keys(u).forEach(function(o){pn(i,o.split("."))||(d(i,o.split("."),u[o]),(f[o]||[]).forEach(function(v){d(i,v.split("."),u[o])}))}),e["--"]?i["--"]=_.slice():_.forEach(function(o){i._.push(o)}),i}});var rn=S((Fn,nn)=>{E();var q=V(),B=W("path").join,vn=T(),y="/etc",k=process.platform==="win32",j=k?process.env.USERPROFILE:process.env.HOME;nn.exports=function(n,e,r,f){if(typeof n!="string")throw new Error("rc(name): name *must* be string");r||(r=x()(process.argv.slice(2))),e=(typeof e=="string"?q.json(e):e)||{},f=f||q.parse;var l=q.env(n+"_"),u=[e],i=[];function p(d){if(!(i.indexOf(d)>=0)){var t=q.file(d);t&&(u.push(f(t)),i.push(d))}}return k||[B(y,n,"config"),B(y,n+"rc")].forEach(p),j&&[B(j,".config",n,"config"),B(j,".config",n),B(j,"."+n,"config"),B(j,"."+n+"rc")].forEach(p),p(q.find("."+n+"rc")),l.config&&p(l.config),r.config&&p(r.config),vn.apply(null,u.concat([l,r,i.length?{configs:i,config:i[i.length-1]}:void 0]))}});E();var en=tn(rn(),1);function hn(n){let e=(0,en.default)("npm",{registry:"https://registry.npmjs.org/"}),r=e[`${n}:registry`]||e.config_registry||e.registry;return r.slice(-1)==="/"?r:`${r}/`}export{hn as a};
4
+ /*! Bundled license information:
5
+
6
+ deep-extend/lib/deep-extend.js:
7
+ (*!
8
+ * @description Recursive object extending
9
+ * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
10
+ * @license MIT
11
+ *
12
+ * The MIT License (MIT)
13
+ *
14
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
15
+ *
16
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
17
+ * this software and associated documentation files (the "Software"), to deal in
18
+ * the Software without restriction, including without limitation the rights to
19
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
20
+ * the Software, and to permit persons to whom the Software is furnished to do so,
21
+ * subject to the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be included in all
24
+ * copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
28
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
29
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
30
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
+ *)
33
+ */
@@ -1 +1 @@
1
- import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-ZFKWJVNB.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-YEZOHXF3.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-PJHT4MKY.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-RNV3GFZ7.js");return o[n]}}export{D as a};
1
+ import{c as i,h as r,o as s}from"./chunk-IWTNUJGY.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as l,readFileSync as u}from"fs";import{fileURLToPath as g,pathToFileURL as p}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(g(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function f(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=f(n),e=i(d,o);return l(e)?d:y(t)}async function j(n,t){let o=f(n),e=w(n,t);return(await import(p(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-WT6MPTKJ.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-F3MES3XF.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-4ZA53LTZ.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-LPKYTX3M.js");return o[n]}}export{D as a};
@@ -1,6 +1,6 @@
1
- import{a as E}from"./chunk-QW52RPAU.js";import{a as j}from"./chunk-CGVROSPS.js";import{a as U,b as F}from"./chunk-YY6TFARF.js";import{a as R}from"./chunk-2L6AN3QA.js";import{b,c as p,e as _,g as y,h as S}from"./chunk-QFWWCZOI.js";import{p as O,v as T}from"./chunk-YKMINHYY.js";import{b as w,c as g}from"./chunk-3KM5ZOW2.js";import{O as d,z as c}from"./chunk-D2KIGKBI.js";import{h as u}from"./chunk-M5VIFG2V.js";import{wb as f}from"./chunk-JLQRDFR5.js";import{b as t}from"./chunk-FZCGRIOM.js";import{o as v}from"./chunk-LHXFTFFM.js";import{b as A}from"./chunk-YTUUU33R.js";import{e as P,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function I(r,e){let m=new j(r),l=(await(e.development?m.find():m.fetch()))?.id,o=await R(r,{header:"Select a theme to open",filter:{live:e.live,theme:e.development?`${l}`:e.theme}}),s=U(o,r),L=F(o,r);return{theme:o,preview_url:s,editor_url:L}}n();n();var k=t.object({id:t.number(),name:t.string(),createdAtRuntime:t.boolean(),processing:t.boolean(),role:t.string(),src:t.string().optional()}),x=t.object({theme:k,preview_url:t.string(),editor_url:t.string()}),h=_({name:"ThemeOpenResult",schema:t.object({theme:p.extend({storeDomain:b,previewUrl:t.string().url(),editorUrl:t.string().url(),processing:t.boolean(),sourceUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:p},project(r){let e=x.parse(r);return{theme:{...S(e.theme),storeDomain:y(new URL(e.preview_url).hostname),previewUrl:e.preview_url,editorUrl:e.editor_url,processing:e.theme.processing,sourceUrl:e.theme.src??null}}}});function D(r,e){if(e==="json"){f(h.encode(r));return}c({body:["Preview information for theme",...E(r.theme),`
1
+ import{a as E}from"./chunk-TXMZPF2U.js";import{a as j}from"./chunk-7AQZKPJU.js";import{a as U,b as F}from"./chunk-YY6TFARF.js";import{a as R}from"./chunk-GQ3LY7BY.js";import{b,c as p,e as _,g as y,h as S}from"./chunk-7HECBXSP.js";import{p as O,v as T}from"./chunk-VVHJ2AUF.js";import{b as w,c as g}from"./chunk-IKXUYCK7.js";import{M as d,x as c}from"./chunk-7A4ZE5IS.js";import{j as u}from"./chunk-FJOVMEPN.js";import{zb as f}from"./chunk-OIQ5NQ5I.js";import{b as t}from"./chunk-3PYDIBTX.js";import{o as v}from"./chunk-A5BSUUNQ.js";import{b as A}from"./chunk-VBPMVVLV.js";import{e as P,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function I(r,e){let m=new j(r),l=(await(e.development?m.find():m.fetch()))?.id,o=await R(r,{header:"Select a theme to open",filter:{live:e.live,theme:e.development?`${l}`:e.theme}}),s=U(o,r),L=F(o,r);return{theme:o,preview_url:s,editor_url:L}}n();n();var k=t.object({id:t.number(),name:t.string(),createdAtRuntime:t.boolean(),processing:t.boolean(),role:t.string(),src:t.string().optional()}),x=t.object({theme:k,preview_url:t.string(),editor_url:t.string()}),h=_({name:"ThemeOpenResult",schema:t.object({theme:p.extend({storeDomain:b,previewUrl:t.string().url(),editorUrl:t.string().url(),processing:t.boolean(),sourceUrl:t.string().url().nullable()}).strict()}).strict(),definitions:{Theme:p},project(r){let e=x.parse(r);return{theme:{...S(e.theme),storeDomain:y(new URL(e.preview_url).hostname),previewUrl:e.preview_url,editorUrl:e.editor_url,processing:e.theme.processing,sourceUrl:e.theme.src??null}}}});function D(r,e){if(e==="json"){f(h.encode(r));return}c({body:["Preview information for theme",...E(r.theme),`
2
2
 
3
- `,{list:{items:[{link:{label:"Preview your theme",url:r.preview_url}},{link:{label:"Customize your theme at the theme editor",url:r.editor_url}}]}}]})}var i=P(A(),1);var a=class extends T{static get jsonOutputSchema(){return h}static summary="Opens the preview of your remote theme.";static descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
3
+ `,{list:{items:[{link:{label:"Preview your theme",url:r.preview_url}},{link:{label:"Customize your theme at the theme editor",url:r.editor_url}}]}}]})}var i=P(A(),1);var a=class extends T{static jsonOutputSchema=h;static summary="Opens the preview of your remote theme.";static descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
4
 
5
5
  - A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
6
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.
@@ -1 +1 @@
1
- import{o as n}from"./chunk-QQJNQNKP.js";import{I as s}from"./chunk-D2KIGKBI.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
1
+ import{o as n}from"./chunk-OSASE35V.js";import{G as s}from"./chunk-7A4ZE5IS.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -0,0 +1 @@
1
+ import{b as u}from"./chunk-PSREELSQ.js";import{a as i}from"./chunk-EE72PCKT.js";import{b as a,c}from"./chunk-IKXUYCK7.js";import{a as p}from"./chunk-LG3KEHGD.js";import{zb as m}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var e=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(o,s){m(s==="json"?e.encode(o):o.version)}var n=class o extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static jsonOutputSchema=e;static description=this.descriptionForHelp();static flags={...a,...c};async run(){let{flags:s}=await this.parse(o),v=await f();l(v,s.json?"json":"text")}};export{n as a};
@@ -1 +1 @@
1
- import{u as r}from"./chunk-GQLNG537.js";import{b as o}from"./chunk-YTUUU33R.js";import{e as t,p as n}from"./chunk-IWTNUJGY.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
1
+ import{B as r}from"./chunk-UORSJB4A.js";import{b as o}from"./chunk-VBPMVVLV.js";import{e as t,p as n}from"./chunk-IWTNUJGY.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
@@ -1 +1 @@
1
- import{a as t}from"./chunk-BN7ZXAZJ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e.object({url:e.string().url().describe("The requested shopify.dev document URL."),content:e.string().describe("The document in Markdown, with the requested language filter applied.")}).strict(),c=e.object({path:e.string().regex(/^(?:\/|[A-Za-z]:[\\/]|\\\\)/).describe("The absolute native path of the written file."),format:e.literal("markdown").describe("The file contains the original Markdown document, not a JSON wrapper.")}).strict(),u=t({name:"DocFetchResult",schema:e.union([e.object({document:o}).strict(),c]),definitions:{Document:o,DocumentFile:c}}),r=e.object({score:e.number().finite().describe("The relevance score returned by shopify.dev."),content:e.string().describe("The matching documentation chunk."),url:e.string().url().describe("The URL of the matching document."),title:e.string().describe("The title of the matching document."),domain:e.string().nullable().describe("The documentation domain, or null when unavailable.")}).strict(),a=e.object({hasNextPage:e.boolean().nullable().describe("Whether more results are available, or null when unknown.")}).strict(),h=t({name:"DocSearchResult",schema:e.object({results:e.array(r).describe("The top matching chunks from one search request."),pageInfo:a}).strict(),definitions:{DocumentationSearchEntry:r,PageInfo:a}});export{u as a,r as b,h as c};
1
+ import{a as t}from"./chunk-LG3KEHGD.js";import{b as e}from"./chunk-3PYDIBTX.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e.object({url:e.string().url().describe("The requested shopify.dev document URL."),content:e.string().describe("The document in Markdown, with the requested language filter applied.")}).strict(),c=e.object({path:e.string().regex(/^(?:\/|[A-Za-z]:[\\/]|\\\\)/).describe("The absolute native path of the written file."),format:e.literal("markdown").describe("The file contains the original Markdown document, not a JSON wrapper.")}).strict(),u=t({name:"DocFetchResult",schema:e.union([e.object({document:o}).strict(),c]),definitions:{Document:o,DocumentFile:c}}),r=e.object({score:e.number().finite().describe("The relevance score returned by shopify.dev."),content:e.string().describe("The matching documentation chunk."),url:e.string().url().describe("The URL of the matching document."),title:e.string().describe("The title of the matching document."),domain:e.string().nullable().describe("The documentation domain, or null when unavailable.")}).strict(),a=e.object({hasNextPage:e.boolean().nullable().describe("Whether more results are available, or null when unknown.")}).strict(),h=t({name:"DocSearchResult",schema:e.object({results:e.array(r).describe("The top matching chunks from one search request."),pageInfo:a}).strict(),definitions:{DocumentationSearchEntry:r,PageInfo:a}});export{u as a,r as b,h as c};
@@ -1,4 +1,4 @@
1
- import{p as y,v}from"./chunk-YKMINHYY.js";import{a as w}from"./chunk-2T4HDR6R.js";import{da as b}from"./chunk-RLNIOJH3.js";import{b as P,c as k}from"./chunk-3KM5ZOW2.js";import{A as d}from"./chunk-D2KIGKBI.js";import{a as c}from"./chunk-BN7ZXAZJ.js";import{h as n}from"./chunk-M5VIFG2V.js";import{Sa as u,la as l,wb as g}from"./chunk-JLQRDFR5.js";import{b as r}from"./chunk-FZCGRIOM.js";import{e as m,g as p,m as f}from"./chunk-IWTNUJGY.js";import{e as T,g as s}from"./chunk-VKWPEFWQ.js";s();s();var _=T(b(),1),O=["AGENTS.md","DESIGN.md","assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function j(e){let t=await x(e),o=m(e,t),a=`${e}/(${O})`;return await w({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),{path:o}}async function x(e){let t=m(e,"config/settings_schema.json");if(!await u(t))throw new n("Provide a config/settings_schema.json to package your theme.");let o=await z(t);if(o===void 0||o.theme_name===void 0)throw new n("Provide a theme_info.theme_name configuration in config/settings_schema.json.");let a=[o.theme_name,o.theme_version].filter(Boolean).join("-");if(/[/\\]/.test(a)||/^[a-z]:/i.test(a))throw new n("Theme name and version must not contain paths.");return`${a}.zip`}async function z(e){let t=(0,_.parseJSON)(await l(e),null,!0);if(!t)throw new n("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")}s();var i=c({name:"ThemePackageResult",schema:r.object({path:r.string().refine(p).describe("The absolute native path of the ZIP archive.")}).strict()});s();import{resolve as F}from"node:path";function S(e,t){if(t==="json"){g(i.encode({...e,path:F(e.path)}));return}d({body:["Your local theme was packaged in",{filePath:f(e.path)}]})}var h=class extends v{static get jsonOutputSchema(){return i}static summary="Package your theme into a .zip file, ready to upload to the Online Store.";static descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
1
+ import{p as y,v}from"./chunk-VVHJ2AUF.js";import{a as w}from"./chunk-L23Q53FM.js";import{da as b}from"./chunk-MQ55QUOJ.js";import{b as P,c as k}from"./chunk-IKXUYCK7.js";import{y as d}from"./chunk-7A4ZE5IS.js";import{a as c}from"./chunk-LG3KEHGD.js";import{j as n}from"./chunk-FJOVMEPN.js";import{Sa as u,la as l,zb as g}from"./chunk-OIQ5NQ5I.js";import{b as r}from"./chunk-3PYDIBTX.js";import{e as m,g as p,m as f}from"./chunk-IWTNUJGY.js";import{e as T,g as s}from"./chunk-VKWPEFWQ.js";s();s();var _=T(b(),1),O=["AGENTS.md","DESIGN.md","assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function j(e){let t=await x(e),o=m(e,t),a=`${e}/(${O})`;return await w({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),{path:o}}async function x(e){let t=m(e,"config/settings_schema.json");if(!await u(t))throw new n("Provide a config/settings_schema.json to package your theme.");let o=await z(t);if(o===void 0||o.theme_name===void 0)throw new n("Provide a theme_info.theme_name configuration in config/settings_schema.json.");let a=[o.theme_name,o.theme_version].filter(Boolean).join("-");if(/[/\\]/.test(a)||/^[a-z]:/i.test(a))throw new n("Theme name and version must not contain paths.");return`${a}.zip`}async function z(e){let t=(0,_.parseJSON)(await l(e),null,!0);if(!t)throw new n("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")}s();var i=c({name:"ThemePackageResult",schema:r.object({path:r.string().refine(p).describe("The absolute native path of the ZIP archive.")}).strict()});s();import{resolve as F}from"node:path";function S(e,t){if(t==="json"){g(i.encode({...e,path:F(e.path)}));return}d({body:["Your local theme was packaged in",{filePath:f(e.path)}]})}var h=class extends v{static jsonOutputSchema=i;static summary="Package your theme into a .zip file, ready to upload to the Online Store.";static descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
2
 
3
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
4
 
@@ -1 +1 @@
1
- import{I as m,J as d,y as c}from"./chunk-D2KIGKBI.js";import{pb as w,qb as n,sb as a}from"./chunk-JLQRDFR5.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
1
+ import{G as m,H as d,w as c}from"./chunk-7A4ZE5IS.js";import{sb as w,tb as n,vb as a}from"./chunk-OIQ5NQ5I.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
@@ -0,0 +1 @@
1
+ import{o as R}from"./chunk-OKRKVVTK.js";import{a as E}from"./chunk-UY44O4IZ.js";import{c as D}from"./chunk-TXMZPF2U.js";import{s as A}from"./chunk-RSNFNZ6F.js";import{e as S}from"./chunk-7HECBXSP.js";import{r as v}from"./chunk-VVHJ2AUF.js";import{a as k}from"./chunk-ZQNGYJKJ.js";import{U as g}from"./chunk-UORSJB4A.js";import{A as C,y as b,z as P}from"./chunk-7A4ZE5IS.js";import{Eb as M,ua as O,zb as j}from"./chunk-OIQ5NQ5I.js";import{b as e,j as T}from"./chunk-3PYDIBTX.js";import{c as u,e as h,g as y,p as w}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{resolve as x}from"node:path";var I=e.object({name:e.string(),category:e.string()}),L=e.object({key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullish(),type:I}),a={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"},$=e.object(Object.fromEntries(Object.keys(a).map(t=>[t,e.array(L)]))),N=e.object({ownerType:e.string().describe("The upstream owner type, such as PRODUCT or COMPANY_LOCATION."),key:e.string(),namespace:e.string(),name:e.string(),description:e.string().nullable(),type:e.object({name:e.string().describe("The upstream metafield type, such as single_line_text_field."),category:e.string().describe("The upstream metafield category.")}).strict()}).strict(),F=S({name:"ThemeMetafieldsPullResult",schema:e.union([e.object({status:e.enum(["success","partial"]),changed:e.literal(!0),path:e.string().refine(y).describe("The absolute path of the native language-server metafields JSON artifact."),definitions:e.array(N).describe("All fetched definitions, flattened across owner types."),failedOwnerTypes:e.array(e.string()).describe("Upstream owner types whose fetch failed.")}).strict(),e.object({status:e.literal("skipped"),reason:e.literal("not-a-theme")}).strict()]),definitions:{MetafieldDefinition:N},project:t=>{let i=t;if(i.status==="failed")throw new Error("Failed downloads must use the fatal error envelope.");return i.status==="skipped"?i.reason==="cancelled"?{status:"cancelled"}:{status:"skipped",reason:i.reason}:{status:i.failedOwnerTypes.length?"partial":"success",changed:!0,path:x(i.path),definitions:Object.entries(i.definitions).flatMap(([r,o])=>o.map(n=>({ownerType:a[r],key:n.key,namespace:n.namespace,name:n.name,description:n.description??null,type:{name:n.type.name,category:n.type.category}}))),failedOwnerTypes:i.failedOwnerTypes}}});s();function _(t,i,r=!1){t.status==="downloaded"&&t.failedOwnerTypes.length>0&&M(`Failed to fetch metafield definitions for the following owner types: ${t.failedOwnerTypes.join(", ")}`),!r&&(i==="json"?(t.status==="failed"&&T({type:"diagnostic",level:"error",message:"Failed to fetch metafield definitions."}),j(F.encode(t))):t.status==="downloaded"?t.failedOwnerTypes.length>0?P({body:`Metafield definitions were partially downloaded. Failed owner types: ${t.failedOwnerTypes.join(", ")}.`}):b({body:"Metafield definitions have been successfully downloaded."}):t.status==="failed"&&C({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"}}]}))}s();async function me(t){let i=await J(t);_(i,"text",t.silent)}async function J(t){E({verbose:t.verbose,noColor:t.noColor});let i=v({store:t.store}),r=await g(i,t.password);return U(r,{path:h(t.path??w()),force:t.force??!1})}async function U(t,i){let{force:r,path:o}=i;if(!await R(o)){if(process.env.SHOPIFY_LANGUAGE_SERVER==="1")return{status:"skipped",reason:"not-a-theme"};if(!await D(r))return{status:"skipped",reason:"cancelled"}}let n=[],f=[];for(let[l,c]of Object.entries(a))n.push(A(c,t).catch(m=>(f.push(c),[])).then(m=>({[l]:m})));let p=(await Promise.all(n)).reduce((l,c)=>({...l,...c})),d=Object.values(a).filter(l=>f.includes(l));return d.length===Object.values(a).length?{status:"failed",failedOwnerTypes:d}:{status:"downloaded",path:await G(o,p),definitions:p,failedOwnerTypes:d}}async function G(t,i){let r=await k(t),o=u(r,"metafields.json"),n=JSON.stringify(i,null,2);return O(o,n),o}export{F as a,_ as b,me as c,J as d};
@@ -0,0 +1 @@
1
+ import{a as j}from"./chunk-R5COVIJM.js";import{a as C}from"./chunk-K4KKSBUW.js";import{P as O,m as N}from"./chunk-7FBOMPO5.js";import{b as R,c as k}from"./chunk-IKXUYCK7.js";import{F as w}from"./chunk-7A4ZE5IS.js";import{a as y}from"./chunk-LG3KEHGD.js";import{j as S}from"./chunk-FJOVMEPN.js";import{Bb as f,Kb as b,ba as v,tb as x,vb as E,zb as I}from"./chunk-OIQ5NQ5I.js";import{i as T}from"./chunk-B4OMIONW.js";import{b as o}from"./chunk-3PYDIBTX.js";import{i as L}from"./chunk-IWTNUJGY.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var B=o.object({createdAt:o.string(),createdBy:o.string(),versionTag:o.string().nullable().optional(),status:o.string(),versionId:o.string(),message:o.string()}),u=y({name:"AppVersionsListResult",schema:o.array(B),definitions:{AppVersion:B}});r();async function M(i,t){let n=await i.appVersions(t);if(!n.app)throw new S(`Shopify did not return app information for API key ${t.apiKey}.`);return{appVersions:n.app.appVersions.nodes.map(e=>({createdAt:v(new Date(e.createdAt)),createdBy:e.createdBy?.displayName??"",versionTag:e.versionTag,status:e.status,versionId:e.versionId,message:e.message??""})),totalResults:n.app.appVersions.pageInfo.totalResults}}r();var $=12;async function D({app:i,appVersions:t,totalResults:n,remoteApp:e,organization:p,developerPlatformClient:m},d){if(d==="json"){I(u.encode(t));return}if(N({org:p.businessName,appName:e.title,configFile:L(i.configPath)}),t.length===0){f("No app versions found for this app");return}let g=t.map(({versionId:s,...a})=>({...a,status:a.status==="active"?T.green(`\u2605 ${a.status}`):a.status})),l=(process.stdout.columns??75)-$,c=l;g.forEach(s=>{let a=s.message.length+(s.versionTag?.length??0)+b(s.status).length+s.createdAt.length+s.createdBy.length;if(a>l){let J=a-s.message.length,A=Math.max(l-J,10);A<c&&(c=A)}}),g.forEach(s=>{s.message.length>c&&(s.message=`${s.message.slice(0,c-3)}...`)}),w({rows:g,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let F=x.link(m.webUiName,[await m.appDeepLink(e),"versions"].join("/"));f(E`\nView all ${String(n)} app versions in the ${F}`)}var h=class i extends j{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static jsonOutputSchema=u;static description=this.descriptionForHelp();static flags={...R,...C,...k};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:e,developerPlatformClient:p,organization:m}=await O({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),d=await M(p,e);return await D({app:n,remoteApp:e,organization:m,developerPlatformClient:p,...d},t.json?"json":"text"),{app:n}}};export{h as a};
@@ -1 +1 @@
1
- import{t as r}from"./chunk-33ZE3DRQ.js";import{b as a}from"./chunk-ZJOX5HW4.js";import{d as t}from"./chunk-3KM5ZOW2.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};
1
+ import{u as r}from"./chunk-HEB4YYM6.js";import{b as a}from"./chunk-PSREELSQ.js";import{d as t}from"./chunk-IKXUYCK7.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};