shoplazza-cli 1.0.10 → 1.0.12

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 (319) hide show
  1. package/.editorconfig +0 -0
  2. package/.prettierrc +0 -0
  3. package/README.md +0 -0
  4. package/examples/checkout-extension/README.md +0 -0
  5. package/examples/checkout-extension/extension.config.js +0 -0
  6. package/examples/checkout-extension/extensions/add-shipping-desc/extension.json +0 -0
  7. package/examples/checkout-extension/extensions/add-shipping-desc/src/index.js +0 -0
  8. package/examples/checkout-extension/extensions/ext-1/extension.json +0 -0
  9. package/examples/checkout-extension/extensions/ext-1/src/content.html +0 -0
  10. package/examples/checkout-extension/extensions/ext-1/src/index.html +0 -0
  11. package/examples/checkout-extension/extensions/ext-1/src/index.js +0 -0
  12. package/examples/checkout-extension/extensions/ext-1/src/script.html +0 -0
  13. package/examples/checkout-extension/extensions/ext-1/src/style.html +0 -0
  14. package/examples/checkout-extension/extensions/product-list/extension.json +0 -0
  15. package/examples/checkout-extension/extensions/product-list/src/index.js +0 -0
  16. package/examples/checkout-extension/extensions/rewrite-navigate/extension.json +0 -0
  17. package/examples/checkout-extension/extensions/rewrite-navigate/src/content.html +0 -0
  18. package/examples/checkout-extension/extensions/rewrite-navigate/src/index.html +0 -0
  19. package/examples/checkout-extension/extensions/rewrite-navigate/src/index.js +0 -0
  20. package/examples/checkout-extension/extensions/rewrite-navigate/src/script.html +0 -0
  21. package/examples/checkout-extension/extensions/rewrite-navigate/src/style.html +0 -0
  22. package/examples/checkout-extension/package-lock.json +0 -0
  23. package/examples/checkout-extension/package.json +0 -0
  24. package/fixtures/assets/blog.scss +0 -0
  25. package/fixtures/assets/cart_modal.scss +0 -0
  26. package/fixtures/assets/collection_detail.js +0 -0
  27. package/fixtures/assets/collection_detail.scss +0 -0
  28. package/fixtures/assets/collection_list.scss +0 -0
  29. package/fixtures/assets/collection_slider.scss +0 -0
  30. package/fixtures/assets/feature_columns.scss +0 -0
  31. package/fixtures/assets/feature_product.scss +0 -0
  32. package/fixtures/assets/footer.js +0 -0
  33. package/fixtures/assets/footer.scss +0 -0
  34. package/fixtures/assets/four_images.scss +0 -0
  35. package/fixtures/assets/gallery.scss +0 -0
  36. package/fixtures/assets/header.js +0 -0
  37. package/fixtures/assets/header.scss +0 -0
  38. package/fixtures/assets/image_text.scss +0 -0
  39. package/fixtures/assets/logo_bar.scss +0 -0
  40. package/fixtures/assets/newsletter.scss +0 -0
  41. package/fixtures/assets/not_found.scss +0 -0
  42. package/fixtures/assets/page_detail.scss +0 -0
  43. package/fixtures/assets/pagination.scss +0 -0
  44. package/fixtures/assets/postcss.config.js +0 -0
  45. package/fixtures/assets/product_description.scss +0 -0
  46. package/fixtures/assets/product_detail.js +0 -0
  47. package/fixtures/assets/product_detail.scss +0 -0
  48. package/fixtures/assets/relative_product.scss +0 -0
  49. package/fixtures/assets/reviews.scss +0 -0
  50. package/fixtures/assets/rich_text.scss +0 -0
  51. package/fixtures/assets/search.js +0 -0
  52. package/fixtures/assets/search.scss +0 -0
  53. package/fixtures/assets/slide.scss +0 -0
  54. package/fixtures/assets/slider.scss +0 -0
  55. package/fixtures/assets/test.scss +0 -0
  56. package/fixtures/assets/theme.css +0 -0
  57. package/fixtures/assets/theme.scss +0 -0
  58. package/fixtures/assets/three_images.scss +0 -0
  59. package/fixtures/assets/tools.scss +0 -0
  60. package/fixtures/assets/two_images.scss +0 -0
  61. package/fixtures/assets/video.scss +0 -0
  62. package/fixtures/assets/video_text.scss +0 -0
  63. package/fixtures/config/settings_data.json +0 -0
  64. package/fixtures/config/settings_schema.json +0 -0
  65. package/fixtures/layout/theme.liquid +0 -0
  66. package/fixtures/locales/ar-SA.json +0 -0
  67. package/fixtures/locales/de-DE.json +0 -0
  68. package/fixtures/locales/en-US.json +0 -0
  69. package/fixtures/locales/es-ES.json +0 -0
  70. package/fixtures/locales/fr-FR.json +0 -0
  71. package/fixtures/locales/id-ID.json +0 -0
  72. package/fixtures/locales/it-IT.json +0 -0
  73. package/fixtures/locales/ja-JP.json +0 -0
  74. package/fixtures/locales/ko-KR.json +0 -0
  75. package/fixtures/locales/nl-NL.json +0 -0
  76. package/fixtures/locales/pl-PL.json +0 -0
  77. package/fixtures/locales/pt-PT.json +0 -0
  78. package/fixtures/locales/ru-RU.json +0 -0
  79. package/fixtures/locales/th-TH.json +0 -0
  80. package/fixtures/locales/zh-CN.json +0 -0
  81. package/fixtures/locales/zh-TW.json +0 -0
  82. package/fixtures/sections/apps.liquid +0 -0
  83. package/fixtures/sections/blog.liquid +0 -0
  84. package/fixtures/sections/collection_desc.liquid +0 -0
  85. package/fixtures/sections/collection_detail.liquid +0 -0
  86. package/fixtures/sections/collection_image.liquid +0 -0
  87. package/fixtures/sections/collection_list.liquid +0 -0
  88. package/fixtures/sections/collection_name.liquid +0 -0
  89. package/fixtures/sections/collection_slider.liquid +0 -0
  90. package/fixtures/sections/feature_columns.liquid +0 -0
  91. package/fixtures/sections/feature_product.liquid +0 -0
  92. package/fixtures/sections/footer.liquid +0 -0
  93. package/fixtures/sections/four_images.liquid +0 -0
  94. package/fixtures/sections/gallery.liquid +0 -0
  95. package/fixtures/sections/header.liquid +0 -0
  96. package/fixtures/sections/html.liquid +0 -0
  97. package/fixtures/sections/image_text.liquid +0 -0
  98. package/fixtures/sections/instagram_plus.liquid +0 -0
  99. package/fixtures/sections/logo_bar.liquid +0 -0
  100. package/fixtures/sections/newsletter.liquid +0 -0
  101. package/fixtures/sections/not_found.liquid +0 -0
  102. package/fixtures/sections/overlay_image.liquid +0 -0
  103. package/fixtures/sections/page_detail.liquid +0 -0
  104. package/fixtures/sections/photo_collection.liquid +0 -0
  105. package/fixtures/sections/product_description.liquid +0 -0
  106. package/fixtures/sections/product_detail.liquid +0 -0
  107. package/fixtures/sections/products.liquid +0 -0
  108. package/fixtures/sections/relative_product.liquid +0 -0
  109. package/fixtures/sections/reviews.liquid +0 -0
  110. package/fixtures/sections/rich_text.liquid +0 -0
  111. package/fixtures/sections/search.liquid +0 -0
  112. package/fixtures/sections/slide.liquid +0 -0
  113. package/fixtures/sections/three_images.liquid +0 -0
  114. package/fixtures/sections/two_images.liquid +0 -0
  115. package/fixtures/sections/video.liquid +0 -0
  116. package/fixtures/sections/video_text.liquid +0 -0
  117. package/fixtures/snippets/bgset.liquid +0 -0
  118. package/fixtures/snippets/card_title.liquid +0 -0
  119. package/fixtures/snippets/cart_modal.liquid +0 -0
  120. package/fixtures/snippets/collection.liquid +0 -0
  121. package/fixtures/snippets/collection_filter_modal.liquid +0 -0
  122. package/fixtures/snippets/default_image_4.liquid +0 -0
  123. package/fixtures/snippets/default_image_6.liquid +0 -0
  124. package/fixtures/snippets/default_image_8.liquid +0 -0
  125. package/fixtures/snippets/four_images_item.liquid +0 -0
  126. package/fixtures/snippets/header_ads.liquid +0 -0
  127. package/fixtures/snippets/hero_image.liquid +0 -0
  128. package/fixtures/snippets/icon_video_play_large.liquid +0 -0
  129. package/fixtures/snippets/icon_video_play_medium.liquid +0 -0
  130. package/fixtures/snippets/icon_video_play_small.liquid +0 -0
  131. package/fixtures/snippets/lazyimg.liquid +0 -0
  132. package/fixtures/snippets/lazyimg_art.liquid +0 -0
  133. package/fixtures/snippets/lazysizes.liquid +0 -0
  134. package/fixtures/snippets/link.liquid +0 -0
  135. package/fixtures/snippets/pagination.liquid +0 -0
  136. package/fixtures/snippets/product.liquid +0 -0
  137. package/fixtures/snippets/product_art_tpl.liquid +0 -0
  138. package/fixtures/snippets/product_info_body.liquid +0 -0
  139. package/fixtures/snippets/product_info_tpl.liquid +0 -0
  140. package/fixtures/snippets/product_label.liquid +0 -0
  141. package/fixtures/snippets/settings.liquid +0 -0
  142. package/fixtures/snippets/social-meta-tags.liquid +0 -0
  143. package/fixtures/snippets/video_html.liquid +0 -0
  144. package/fixtures/snippets/video_source.liquid +0 -0
  145. package/fixtures/snippets/video_thumb_icon.liquid +0 -0
  146. package/fixtures/templates/404.liquid +0 -0
  147. package/fixtures/templates/collection.liquid +0 -0
  148. package/fixtures/templates/index.liquid +0 -0
  149. package/fixtures/templates/page.liquid +0 -0
  150. package/fixtures/templates/product.liquid +0 -0
  151. package/fixtures/templates/search.liquid +0 -0
  152. package/jest.config.js +0 -0
  153. package/lib/__tests__/log.test.js +0 -0
  154. package/lib/__tests__/utils.test.js +0 -0
  155. package/lib/app/api/index.js +0 -0
  156. package/lib/app/commands/build.js +0 -0
  157. package/lib/app/commands/connect.js +0 -0
  158. package/lib/app/commands/create.js +0 -0
  159. package/lib/app/commands/deploy.js +0 -0
  160. package/lib/app/commands/list.js +0 -0
  161. package/lib/app/commands/release.js +0 -0
  162. package/lib/app/commands/serve.js +1 -2
  163. package/lib/app/commands/versions.js +0 -0
  164. package/lib/app/index.js +0 -0
  165. package/lib/app/template/basic-app/README.md +0 -0
  166. package/lib/app/template/basic-app/extension.config.json +0 -0
  167. package/lib/app/template/basic-app/package.json +0 -0
  168. package/lib/app/template/basic-app/theme-app/assets/index.css +0 -0
  169. package/lib/app/template/basic-app/theme-app/assets-manifest.json +0 -0
  170. package/lib/app/template/basic-app/theme-app/blocks/index.liquid +0 -0
  171. package/lib/app/template/basic-app/theme-app/locales/ar-SA.json +0 -0
  172. package/lib/app/template/basic-app/theme-app/locales/de-DE.json +0 -0
  173. package/lib/app/template/basic-app/theme-app/locales/en-US.json +0 -0
  174. package/lib/app/template/basic-app/theme-app/locales/es-ES.json +0 -0
  175. package/lib/app/template/basic-app/theme-app/locales/fr-FR.json +0 -0
  176. package/lib/app/template/basic-app/theme-app/locales/id-ID.json +0 -0
  177. package/lib/app/template/basic-app/theme-app/locales/it-IT.json +0 -0
  178. package/lib/app/template/basic-app/theme-app/locales/ja-JP.json +0 -0
  179. package/lib/app/template/basic-app/theme-app/locales/ko-KR.json +0 -0
  180. package/lib/app/template/basic-app/theme-app/locales/nl-NL.json +0 -0
  181. package/lib/app/template/basic-app/theme-app/locales/pl-PL.json +0 -0
  182. package/lib/app/template/basic-app/theme-app/locales/pt-PT.json +0 -0
  183. package/lib/app/template/basic-app/theme-app/locales/ru-RU.json +0 -0
  184. package/lib/app/template/basic-app/theme-app/locales/th-TH.json +0 -0
  185. package/lib/app/template/basic-app/theme-app/locales/zh-CN.json +0 -0
  186. package/lib/app/template/basic-app/theme-app/locales/zh-TW.json +0 -0
  187. package/lib/app/template/basic-app/theme-app/snippets/index.liquid +0 -0
  188. package/lib/app/template/embed-app/README.md +0 -0
  189. package/lib/app/template/embed-app/extension.config.json +0 -0
  190. package/lib/app/template/embed-app/package.json +0 -0
  191. package/lib/app/template/embed-app/theme-app/assets-manifest.json +0 -0
  192. package/lib/app/template/embed-app/theme-app/blocks/index.liquid +0 -0
  193. package/lib/app/template/embed-app/theme-app/locales/ar-SA.json +0 -0
  194. package/lib/app/template/embed-app/theme-app/locales/de-DE.json +0 -0
  195. package/lib/app/template/embed-app/theme-app/locales/en-US.json +0 -0
  196. package/lib/app/template/embed-app/theme-app/locales/es-ES.json +0 -0
  197. package/lib/app/template/embed-app/theme-app/locales/fr-FR.json +0 -0
  198. package/lib/app/template/embed-app/theme-app/locales/id-ID.json +0 -0
  199. package/lib/app/template/embed-app/theme-app/locales/it-IT.json +0 -0
  200. package/lib/app/template/embed-app/theme-app/locales/ja-JP.json +0 -0
  201. package/lib/app/template/embed-app/theme-app/locales/ko-KR.json +0 -0
  202. package/lib/app/template/embed-app/theme-app/locales/nl-NL.json +0 -0
  203. package/lib/app/template/embed-app/theme-app/locales/pl-PL.json +0 -0
  204. package/lib/app/template/embed-app/theme-app/locales/pt-PT.json +0 -0
  205. package/lib/app/template/embed-app/theme-app/locales/ru-RU.json +0 -0
  206. package/lib/app/template/embed-app/theme-app/locales/th-TH.json +0 -0
  207. package/lib/app/template/embed-app/theme-app/locales/zh-CN.json +0 -0
  208. package/lib/app/template/embed-app/theme-app/locales/zh-TW.json +0 -0
  209. package/lib/app/template/embed-app/theme-app/snippets/index.liquid +0 -0
  210. package/lib/app/template/embed-app/theme-app/snippets/index_css.liquid +0 -0
  211. package/lib/app/utils/config.js +0 -0
  212. package/lib/app/utils/index.js +0 -0
  213. package/lib/auth/__mocks__/getCode.js +0 -0
  214. package/lib/auth/__mocks__/index.js +0 -0
  215. package/lib/auth/child.js +0 -0
  216. package/lib/auth/getCode.js +0 -0
  217. package/lib/auth/index.js +0 -0
  218. package/lib/check.js +0 -0
  219. package/lib/checkout/api.js +0 -0
  220. package/lib/checkout/build/plugin/vite-plugin-add-extension-id.js +0 -0
  221. package/lib/checkout/build/plugin/vite-plugin-transform-extension-html.js +0 -0
  222. package/lib/checkout/build/vite.config.js +0 -0
  223. package/lib/checkout/build.js +0 -0
  224. package/lib/checkout/config.js +0 -0
  225. package/lib/checkout/create.js +0 -0
  226. package/lib/checkout/delete.js +0 -0
  227. package/lib/checkout/deploy.js +0 -0
  228. package/lib/checkout/dev/client.js +0 -0
  229. package/lib/checkout/dev/index.js +0 -0
  230. package/lib/checkout/fields.js +0 -0
  231. package/lib/checkout/index.js +0 -0
  232. package/lib/checkout/preview.js +0 -0
  233. package/lib/checkout/pull.js +0 -0
  234. package/lib/checkout/push.js +0 -0
  235. package/lib/checkout/template/README.md +0 -0
  236. package/lib/checkout/template/_gitignore +0 -0
  237. package/lib/checkout/template/extension.config.js +0 -0
  238. package/lib/checkout/template/extensions/extension-template/extension.json +0 -0
  239. package/lib/checkout/template/extensions/extension-template/src/content.html +0 -0
  240. package/lib/checkout/template/extensions/extension-template/src/index.html +0 -0
  241. package/lib/checkout/template/extensions/extension-template/src/index.js +0 -0
  242. package/lib/checkout/template/extensions/extension-template/src/script.html +0 -0
  243. package/lib/checkout/template/extensions/extension-template/src/style.html +0 -0
  244. package/lib/checkout/template/package.json +0 -0
  245. package/lib/checkout/undeploy.js +0 -0
  246. package/lib/checkout/util.js +0 -0
  247. package/lib/checkout/verify.js +0 -0
  248. package/lib/checkout/version.js +0 -0
  249. package/lib/commands/__tests__/login.test.js +0 -0
  250. package/lib/commands/__tests__/logout.test.js +0 -0
  251. package/lib/commands/__tests__/store.test.js +0 -0
  252. package/lib/commands/__tests__/switch.test.js +0 -0
  253. package/lib/commands/login.js +18 -10
  254. package/lib/commands/logout.js +0 -0
  255. package/lib/commands/store.js +0 -0
  256. package/lib/commands/switch.js +0 -0
  257. package/lib/commands/theme/__tests__/delete.test.js +0 -0
  258. package/lib/commands/theme/__tests__/init.test.js +0 -0
  259. package/lib/commands/theme/__tests__/list.test.js +0 -0
  260. package/lib/commands/theme/__tests__/package.test.js +0 -0
  261. package/lib/commands/theme/__tests__/publish.test.js +0 -0
  262. package/lib/commands/theme/__tests__/pull.test.js +0 -0
  263. package/lib/commands/theme/__tests__/push.test.js +0 -0
  264. package/lib/commands/theme/__tests__/serve.test.js +0 -0
  265. package/lib/commands/theme/delete.js +0 -0
  266. package/lib/commands/theme/init.js +0 -0
  267. package/lib/commands/theme/list.js +0 -0
  268. package/lib/commands/theme/package.js +0 -0
  269. package/lib/commands/theme/publish.js +0 -0
  270. package/lib/commands/theme/pull.js +0 -0
  271. package/lib/commands/theme/push.js +0 -0
  272. package/lib/commands/theme/serve.js +0 -0
  273. package/lib/commands/theme/share.js +0 -0
  274. package/lib/commands/version.js +0 -0
  275. package/lib/common/constants.js +0 -0
  276. package/lib/common/db/partner.js +0 -0
  277. package/lib/common/inquirers/choose-app.js +0 -0
  278. package/lib/common/inquirers/choose-partner.js +0 -0
  279. package/lib/common/log.js +0 -0
  280. package/lib/common/login.js +0 -0
  281. package/lib/common/logout.js +0 -0
  282. package/lib/db/__mocks__/index.js +0 -0
  283. package/lib/db/__tests__/analytics.test.js +0 -0
  284. package/lib/db/__tests__/user.test.js +0 -0
  285. package/lib/db/analytics.js +0 -0
  286. package/lib/db/index.js +0 -0
  287. package/lib/db/user.js +0 -0
  288. package/lib/function/bin/index.js +0 -0
  289. package/lib/function/bin/javy/javy-arm-linux-v5.0.1 +0 -0
  290. package/lib/function/bin/javy/javy-arm-macos-v5.0.1 +0 -0
  291. package/lib/function/bin/javy/javy-x86_64-linux-v5.0.1 +0 -0
  292. package/lib/function/bin/javy/javy-x86_64-windows-v5.0.1 +0 -0
  293. package/lib/function/commands/compile.js +2 -1
  294. package/lib/function/commands/create.js +0 -0
  295. package/lib/function/commands/list.js +0 -0
  296. package/lib/function/commands/release.js +0 -0
  297. package/lib/function/index.js +0 -0
  298. package/lib/function/template/js/README.md +0 -0
  299. package/lib/function/template/js/_gitignore +0 -0
  300. package/lib/function/template/js/extension.config.json +0 -0
  301. package/lib/function/template/js/package.json +0 -0
  302. package/lib/function/template/js/src/index.js +0 -0
  303. package/lib/function/utils.js +0 -0
  304. package/lib/log.js +0 -0
  305. package/lib/openAPI/__mocks__/index.js +0 -0
  306. package/lib/openAPI/api.js +0 -0
  307. package/lib/openAPI/index.js +0 -0
  308. package/lib/oss.js +0 -0
  309. package/lib/partner-api/axios.js +0 -0
  310. package/lib/partner-api/index.js +0 -0
  311. package/lib/report.js +0 -0
  312. package/lib/tracing.js +0 -0
  313. package/lib/utils/config.js +0 -0
  314. package/lib/utils/console.js +0 -0
  315. package/lib/utils/env.js +0 -0
  316. package/lib/utils/file.js +0 -0
  317. package/lib/utils/platform.js +0 -0
  318. package/lib/utils/utils.js +0 -0
  319. package/package.json +1 -1
package/.editorconfig CHANGED
File without changes
package/.prettierrc CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/jest.config.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -81,7 +81,7 @@ async function syncLocalFiles(extensionId) {
81
81
  async function usePrompt() {
82
82
  const spinner = ora('Fetching theme list...').start();
83
83
  const res = await getThemeList();
84
- const themeList = res.data?.data?.themes?.filter(item => !!item) || [];
84
+ const themeList = res.data?.data?.themes || [];
85
85
  if (!themeList.length) {
86
86
  spinner.succeed('Theme list loaded.');
87
87
  throw new Error('Your store has no unpublished themes. Please add themes and try again.');
@@ -173,7 +173,6 @@ async function serve() {
173
173
  consoleTips(selectedThemeId, extensionId);
174
174
  } catch (error) {
175
175
  console.error(chalk.red(`[ERROR IN SERVE] ${error.message}`));
176
- console.trace(error);
177
176
  }
178
177
  }
179
178
 
File without changes
package/lib/app/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/auth/child.js CHANGED
File without changes
File without changes
package/lib/auth/index.js CHANGED
File without changes
package/lib/check.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes