@shopify/shop-minis-cli 0.0.37 β†’ 0.0.82

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 (362) hide show
  1. package/.eslintrc.cjs +78 -0
  2. package/.vscode/extensions.json +3 -0
  3. package/.vscode/launch.json +29 -0
  4. package/.vscode/settings.json +8 -0
  5. package/.vscode/shop-minis-cli.code-workspace +8 -0
  6. package/build/commands/cancel-submission/cancel-submission.d.ts +1 -0
  7. package/build/commands/cancel-submission/cancel-submission.js +57 -0
  8. package/build/commands/cancel-submission/cancel-submission.js.map +1 -0
  9. package/build/commands/cancel-submission/index.d.ts +2 -0
  10. package/build/commands/cancel-submission/index.js +18 -0
  11. package/build/commands/cancel-submission/index.js.map +1 -0
  12. package/build/commands/cancel-submission/types.d.ts +3 -0
  13. package/build/commands/cancel-submission/types.js +2 -0
  14. package/build/commands/cancel-submission/types.js.map +1 -0
  15. package/build/commands/check-submission/index.d.ts +2 -0
  16. package/build/commands/check-submission/index.js +55 -0
  17. package/build/commands/check-submission/index.js.map +1 -0
  18. package/build/commands/check-submission/types.d.ts +3 -0
  19. package/build/commands/check-submission/types.js +2 -0
  20. package/build/commands/check-submission/types.js.map +1 -0
  21. package/build/commands/codemod/index.d.ts +3 -0
  22. package/build/commands/codemod/index.js +47 -0
  23. package/build/commands/codemod/index.js.map +1 -0
  24. package/build/commands/codemod/releases/index.d.ts +7 -0
  25. package/build/commands/codemod/releases/index.js +58 -0
  26. package/build/commands/codemod/releases/index.js.map +1 -0
  27. package/build/commands/codemod/releases/types.d.ts +9 -0
  28. package/build/commands/codemod/releases/types.js +2 -0
  29. package/build/commands/codemod/releases/types.js.map +1 -0
  30. package/build/commands/codemod/releases/v0-0-42/index.d.ts +3 -0
  31. package/build/commands/codemod/releases/v0-0-42/index.js +46 -0
  32. package/build/commands/codemod/releases/v0-0-42/index.js.map +1 -0
  33. package/build/commands/codemod/releases/v0-0-42/reset-files.d.ts +7 -0
  34. package/build/commands/codemod/releases/v0-0-42/reset-files.js +83 -0
  35. package/build/commands/codemod/releases/v0-0-42/reset-files.js.map +1 -0
  36. package/build/commands/codemod/releases/v0-0-43.d.ts +3 -0
  37. package/build/commands/codemod/releases/v0-0-43.js +32 -0
  38. package/build/commands/codemod/releases/v0-0-43.js.map +1 -0
  39. package/build/commands/codemod/releases/v0-0-44.d.ts +3 -0
  40. package/build/commands/codemod/releases/v0-0-44.js +214 -0
  41. package/build/commands/codemod/releases/v0-0-44.js.map +1 -0
  42. package/build/commands/codemod/releases/v0-0-45.d.ts +3 -0
  43. package/build/commands/codemod/releases/v0-0-45.js +23 -0
  44. package/build/commands/codemod/releases/v0-0-45.js.map +1 -0
  45. package/build/commands/codemod/releases/v0-0-50.d.ts +3 -0
  46. package/build/commands/codemod/releases/v0-0-50.js +34 -0
  47. package/build/commands/codemod/releases/v0-0-50.js.map +1 -0
  48. package/build/commands/codemod/releases/v0-0-54.d.ts +3 -0
  49. package/build/commands/codemod/releases/v0-0-54.js +70 -0
  50. package/build/commands/codemod/releases/v0-0-54.js.map +1 -0
  51. package/build/commands/codemod/releases/v0-0-56.d.ts +3 -0
  52. package/build/commands/codemod/releases/v0-0-56.js +48 -0
  53. package/build/commands/codemod/releases/v0-0-56.js.map +1 -0
  54. package/build/commands/codemod/releases/v0-0-57.d.ts +3 -0
  55. package/build/commands/codemod/releases/v0-0-57.js +41 -0
  56. package/build/commands/codemod/releases/v0-0-57.js.map +1 -0
  57. package/build/commands/codemod/releases/v0-0-58.d.ts +3 -0
  58. package/build/commands/codemod/releases/v0-0-58.js +68 -0
  59. package/build/commands/codemod/releases/v0-0-58.js.map +1 -0
  60. package/build/commands/codemod/releases/v0-0-61.d.ts +3 -0
  61. package/build/commands/codemod/releases/v0-0-61.js +30 -0
  62. package/build/commands/codemod/releases/v0-0-61.js.map +1 -0
  63. package/build/commands/codemod/releases/v0-0-63.d.ts +3 -0
  64. package/build/commands/codemod/releases/v0-0-63.js +42 -0
  65. package/build/commands/codemod/releases/v0-0-63.js.map +1 -0
  66. package/build/commands/codemod/releases/v0-0-64.d.ts +3 -0
  67. package/build/commands/codemod/releases/v0-0-64.js +47 -0
  68. package/build/commands/codemod/releases/v0-0-64.js.map +1 -0
  69. package/build/commands/codemod/releases/v0-0-75.d.ts +3 -0
  70. package/build/commands/codemod/releases/v0-0-75.js +30 -0
  71. package/build/commands/codemod/releases/v0-0-75.js.map +1 -0
  72. package/build/commands/codemod/releases/v0-0-76.d.ts +3 -0
  73. package/build/commands/codemod/releases/v0-0-76.js +32 -0
  74. package/build/commands/codemod/releases/v0-0-76.js.map +1 -0
  75. package/build/commands/codemod/releases/v0-0-77.d.ts +3 -0
  76. package/build/commands/codemod/releases/v0-0-77.js +39 -0
  77. package/build/commands/codemod/releases/v0-0-77.js.map +1 -0
  78. package/build/commands/codemod/releases/v0-0-79.d.ts +3 -0
  79. package/build/commands/codemod/releases/v0-0-79.js +35 -0
  80. package/build/commands/codemod/releases/v0-0-79.js.map +1 -0
  81. package/build/commands/config.d.ts +14 -0
  82. package/build/commands/config.js +42 -0
  83. package/build/commands/config.js.map +1 -0
  84. package/build/commands/create-mini/index.js +84 -68
  85. package/build/commands/create-mini/index.js.map +1 -1
  86. package/build/commands/create-mini/utils/template-app.d.ts +1 -1
  87. package/build/commands/create-mini/utils/template-app.js +38 -38
  88. package/build/commands/create-mini/utils/template-app.js.map +1 -1
  89. package/build/commands/dev/index.d.ts +3 -0
  90. package/build/commands/dev/index.js +51 -22
  91. package/build/commands/dev/index.js.map +1 -1
  92. package/build/commands/dev/utils/android.d.ts +6 -4
  93. package/build/commands/dev/utils/android.js +55 -67
  94. package/build/commands/dev/utils/android.js.map +1 -1
  95. package/build/commands/dev/utils/binaries.d.ts +2 -80
  96. package/build/commands/dev/utils/binaries.js +10 -166
  97. package/build/commands/dev/utils/binaries.js.map +1 -1
  98. package/build/commands/dev/utils/build-type.d.ts +2 -0
  99. package/build/commands/dev/utils/build-type.js +14 -0
  100. package/build/commands/dev/utils/build-type.js.map +1 -0
  101. package/build/commands/dev/utils/deeplink.d.ts +3 -3
  102. package/build/commands/dev/utils/deeplink.js +13 -18
  103. package/build/commands/dev/utils/deeplink.js.map +1 -1
  104. package/build/commands/dev/utils/interactive-terminal.d.ts +4 -2
  105. package/build/commands/dev/utils/interactive-terminal.js +66 -107
  106. package/build/commands/dev/utils/interactive-terminal.js.map +1 -1
  107. package/build/commands/dev/utils/metro/metro-config.js +17 -20
  108. package/build/commands/dev/utils/metro/metro-config.js.map +1 -1
  109. package/build/commands/dev/utils/metro/metro-reporter.d.ts +3 -4
  110. package/build/commands/dev/utils/metro/metro-reporter.js +6 -13
  111. package/build/commands/dev/utils/metro/metro-reporter.js.map +1 -1
  112. package/build/commands/dev/utils/metro/metro-server-middleware.d.ts +1 -0
  113. package/build/commands/dev/utils/metro/metro-server-middleware.js +11 -12
  114. package/build/commands/dev/utils/metro/metro-server-middleware.js.map +1 -1
  115. package/build/commands/dev/utils/metro/metro-server.d.ts +2 -2
  116. package/build/commands/dev/utils/metro/metro-server.js +7 -14
  117. package/build/commands/dev/utils/metro/metro-server.js.map +1 -1
  118. package/build/commands/dev/utils/network.d.ts +20 -0
  119. package/build/commands/dev/utils/network.js +122 -0
  120. package/build/commands/dev/utils/network.js.map +1 -0
  121. package/build/commands/dev/utils/platform.d.ts +18 -0
  122. package/build/commands/dev/utils/platform.js +41 -0
  123. package/build/commands/dev/utils/platform.js.map +1 -0
  124. package/build/commands/dev/utils/prompt-binary-upgrade.d.ts +1 -0
  125. package/build/commands/dev/utils/prompt-binary-upgrade.js +12 -0
  126. package/build/commands/dev/utils/prompt-binary-upgrade.js.map +1 -0
  127. package/build/commands/dev/utils/qr-code.js +3 -10
  128. package/build/commands/dev/utils/qr-code.js.map +1 -1
  129. package/build/commands/dev/utils/simulator.d.ts +5 -2
  130. package/build/commands/dev/utils/simulator.js +43 -37
  131. package/build/commands/dev/utils/simulator.js.map +1 -1
  132. package/build/commands/dev/utils/start-app/config.d.ts +5 -0
  133. package/build/commands/dev/utils/start-app/config.js +25 -0
  134. package/build/commands/dev/utils/start-app/config.js.map +1 -0
  135. package/build/commands/dev/utils/start-app/start-app-with-options.d.ts +2 -0
  136. package/build/commands/dev/utils/start-app/start-app-with-options.js +94 -0
  137. package/build/commands/dev/utils/start-app/start-app-with-options.js.map +1 -0
  138. package/build/commands/dev/utils/start-app/start-app.d.ts +2 -0
  139. package/build/commands/dev/utils/start-app/start-app.js +10 -0
  140. package/build/commands/dev/utils/start-app/start-app.js.map +1 -0
  141. package/build/commands/dev/utils/start-app/types.d.ts +20 -0
  142. package/build/commands/dev/utils/start-app/types.js +2 -0
  143. package/build/commands/dev/utils/start-app/types.js.map +1 -0
  144. package/build/commands/dev/utils/types.d.ts +24 -0
  145. package/build/commands/dev/utils/types.js +7 -0
  146. package/build/commands/dev/utils/types.js.map +1 -0
  147. package/build/commands/dev/utils/version.d.ts +64 -0
  148. package/build/commands/dev/utils/version.js +101 -0
  149. package/build/commands/dev/utils/version.js.map +1 -0
  150. package/build/commands/dev/utils/with-retries.js +1 -5
  151. package/build/commands/dev/utils/with-retries.js.map +1 -1
  152. package/build/commands/doctor/index.d.ts +6 -0
  153. package/build/commands/doctor/index.js +21 -0
  154. package/build/commands/doctor/index.js.map +1 -0
  155. package/build/commands/doctor/utils/diagnose-dependencies.d.ts +7 -0
  156. package/build/commands/doctor/utils/diagnose-dependencies.js +108 -0
  157. package/build/commands/doctor/utils/diagnose-dependencies.js.map +1 -0
  158. package/build/commands/generate-graphql-types/index.d.ts +1 -0
  159. package/build/commands/generate-graphql-types/index.js +43 -27
  160. package/build/commands/generate-graphql-types/index.js.map +1 -1
  161. package/build/commands/info/index.d.ts +3 -0
  162. package/build/commands/info/index.js +42 -0
  163. package/build/commands/info/index.js.map +1 -0
  164. package/build/commands/setup/index.d.ts +2 -0
  165. package/build/commands/setup/index.js +81 -0
  166. package/build/commands/setup/index.js.map +1 -0
  167. package/build/commands/submit/config.d.ts +9 -0
  168. package/build/commands/submit/config.js +18 -0
  169. package/build/commands/submit/config.js.map +1 -0
  170. package/build/commands/submit/errors.d.ts +19 -0
  171. package/build/commands/submit/errors.js +87 -0
  172. package/build/commands/submit/errors.js.map +1 -0
  173. package/build/commands/submit/gcs.d.ts +6 -0
  174. package/build/commands/submit/gcs.js +10 -0
  175. package/build/commands/submit/gcs.js.map +1 -0
  176. package/build/commands/submit/index.d.ts +2 -0
  177. package/build/commands/submit/index.js +25 -0
  178. package/build/commands/submit/index.js.map +1 -0
  179. package/build/commands/submit/submit.d.ts +5 -0
  180. package/build/commands/submit/submit.js +222 -0
  181. package/build/commands/submit/submit.js.map +1 -0
  182. package/build/commands/submit/tasks.d.ts +37 -0
  183. package/build/commands/submit/tasks.js +91 -0
  184. package/build/commands/submit/tasks.js.map +1 -0
  185. package/build/commands/submit/types.d.ts +14 -0
  186. package/build/commands/submit/types.js +2 -0
  187. package/build/commands/submit/types.js.map +1 -0
  188. package/build/commands/submit/utils/assert-core-dependencies-version.d.ts +1 -0
  189. package/build/commands/submit/utils/assert-core-dependencies-version.js +58 -0
  190. package/build/commands/submit/utils/assert-core-dependencies-version.js.map +1 -0
  191. package/build/commands/submit/utils/request-entry-point-params.d.ts +1 -0
  192. package/build/commands/submit/utils/request-entry-point-params.js +41 -0
  193. package/build/commands/submit/utils/request-entry-point-params.js.map +1 -0
  194. package/build/commands/submit/validation.d.ts +1 -0
  195. package/build/commands/submit/validation.js +11 -0
  196. package/build/commands/submit/validation.js.map +1 -0
  197. package/build/commands/upgrade/index.d.ts +13 -0
  198. package/build/commands/upgrade/index.js +53 -0
  199. package/build/commands/upgrade/index.js.map +1 -0
  200. package/build/commands/upgrade/utils/cli.d.ts +1 -0
  201. package/build/commands/upgrade/utils/cli.js +15 -0
  202. package/build/commands/upgrade/utils/cli.js.map +1 -0
  203. package/build/commands/validate-manifest/index.d.ts +3 -0
  204. package/build/commands/validate-manifest/index.js +29 -0
  205. package/build/commands/validate-manifest/index.js.map +1 -0
  206. package/build/data/accept-invitation.d.ts +4 -0
  207. package/build/data/accept-invitation.js +16 -0
  208. package/build/data/accept-invitation.js.map +1 -0
  209. package/build/data/cancel-submission.d.ts +22 -0
  210. package/build/data/cancel-submission.js +26 -0
  211. package/build/data/cancel-submission.js.map +1 -0
  212. package/build/data/create-submission.d.ts +20 -0
  213. package/build/data/create-submission.js +27 -0
  214. package/build/data/create-submission.js.map +1 -0
  215. package/build/data/create-upload.d.ts +21 -0
  216. package/build/data/create-upload.js +40 -0
  217. package/build/data/create-upload.js.map +1 -0
  218. package/build/data/get-submissions.d.ts +27 -0
  219. package/build/data/get-submissions.js +33 -0
  220. package/build/data/get-submissions.js.map +1 -0
  221. package/build/data/gql-client.d.ts +8 -0
  222. package/build/data/gql-client.js +9 -0
  223. package/build/data/gql-client.js.map +1 -0
  224. package/build/data/mini.d.ts +5 -0
  225. package/build/data/mini.js +14 -0
  226. package/build/data/mini.js.map +1 -0
  227. package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.d.ts +13 -0
  228. package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.js +7 -0
  229. package/build/data/types/autogenerated/shop-minis-admin-api/fragment-masking.js.map +1 -0
  230. package/build/data/types/autogenerated/shop-minis-admin-api/gql.d.ts +75 -0
  231. package/build/data/types/autogenerated/shop-minis-admin-api/gql.js +24 -0
  232. package/build/data/types/autogenerated/shop-minis-admin-api/gql.js.map +1 -0
  233. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.d.ts +1570 -0
  234. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +1062 -0
  235. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -0
  236. package/build/data/types/autogenerated/shop-minis-admin-api/index.d.ts +2 -0
  237. package/build/data/types/autogenerated/shop-minis-admin-api/index.js +3 -0
  238. package/build/data/types/autogenerated/shop-minis-admin-api/index.js.map +1 -0
  239. package/build/dev-panel/asset-manifest.json +6 -9
  240. package/build/dev-panel/index.html +1 -1
  241. package/build/dev-panel/static/css/{main.31436fe3.css β†’ main.7f1ee407.css} +2 -2
  242. package/build/dev-panel/static/css/main.7f1ee407.css.map +1 -0
  243. package/build/dev-panel/static/js/{main.27f47095.js β†’ main.6625699c.js} +3 -3
  244. package/build/dev-panel/static/js/main.6625699c.js.map +1 -0
  245. package/build/index.d.ts +1 -1
  246. package/build/index.js +30 -15
  247. package/build/index.js.map +1 -1
  248. package/build/schemas/manifest.schema.json +198 -0
  249. package/build/utils/archive.d.ts +30 -0
  250. package/build/utils/archive.js +38 -0
  251. package/build/utils/archive.js.map +1 -0
  252. package/build/utils/common-tasks.d.ts +1 -0
  253. package/build/utils/common-tasks.js +49 -0
  254. package/build/utils/common-tasks.js.map +1 -0
  255. package/build/utils/development-params.d.ts +13 -0
  256. package/build/utils/development-params.js +42 -0
  257. package/build/utils/development-params.js.map +1 -0
  258. package/build/{commands/utils β†’ utils}/exec-async-child-process.d.ts +1 -1
  259. package/build/{commands/utils β†’ utils}/exec-async-child-process.js +6 -13
  260. package/build/utils/exec-async-child-process.js.map +1 -0
  261. package/build/utils/file.d.ts +1 -0
  262. package/build/utils/file.js +7 -0
  263. package/build/utils/file.js.map +1 -0
  264. package/build/utils/minis-manifest.d.ts +6 -0
  265. package/build/utils/minis-manifest.js +56 -0
  266. package/build/utils/minis-manifest.js.map +1 -0
  267. package/build/utils/package-manager.d.ts +38 -0
  268. package/build/utils/package-manager.js +98 -0
  269. package/build/utils/package-manager.js.map +1 -0
  270. package/build/utils/patch-package.d.ts +5 -0
  271. package/build/utils/patch-package.js +76 -0
  272. package/build/utils/patch-package.js.map +1 -0
  273. package/build/utils/replace-strings-in-template.d.ts +1 -0
  274. package/build/utils/replace-strings-in-template.js +15 -0
  275. package/build/utils/replace-strings-in-template.js.map +1 -0
  276. package/build/utils/semver.d.ts +1 -0
  277. package/build/utils/semver.js +19 -0
  278. package/build/utils/semver.js.map +1 -0
  279. package/build/{commands/utils β†’ utils}/wrap-with-loading-indicator.d.ts +1 -1
  280. package/build/utils/wrap-with-loading-indicator.js +16 -0
  281. package/build/utils/wrap-with-loading-indicator.js.map +1 -0
  282. package/package.json +35 -28
  283. package/scripts/graphql-codegen.ts +23 -0
  284. package/scripts/test-template.ts +63 -0
  285. package/shipit.alpha.yml +3 -0
  286. package/templates/__template_blank/src/index.tsx +5 -4
  287. package/templates/__template_blank/src/types.ts +1 -1
  288. package/templates/__template_common/.eslintrc.js +16 -0
  289. package/templates/__template_common/assets.d.ts +14 -0
  290. package/templates/__template_common/babel.config.js +3 -17
  291. package/templates/__template_common/gitignore +2 -0
  292. package/templates/__template_common/index.tsx +3 -6
  293. package/templates/__template_common/metro.config.js +4 -30
  294. package/templates/__template_common/package.json +17 -47
  295. package/templates/__template_common/src/manifest.json +1 -27
  296. package/templates/__template_hello_world/src/components/ComponentLink.ts +31 -19
  297. package/templates/__template_hello_world/src/components/ComponentListItem.tsx +1 -0
  298. package/templates/__template_hello_world/src/components/FeaturedComponents.tsx +4 -2
  299. package/templates/__template_hello_world/src/components/quiz/ImageCarouselSlide.tsx +54 -0
  300. package/templates/__template_hello_world/src/components/quiz/MultipleChoiceSlide.tsx +77 -0
  301. package/templates/__template_hello_world/src/components/quiz/QuizProvider.tsx +64 -0
  302. package/templates/__template_hello_world/src/components/quiz/QuizSlide.tsx +79 -0
  303. package/templates/__template_hello_world/src/components/quiz/QuizSlideCommander.tsx +35 -0
  304. package/templates/__template_hello_world/src/components/quiz/TextFieldSlide.tsx +84 -0
  305. package/templates/__template_hello_world/src/components/quiz/TextSlide.tsx +6 -0
  306. package/templates/__template_hello_world/src/components/quiz/types.ts +72 -0
  307. package/templates/__template_hello_world/src/data/Test.graphql.d.ts +69 -76
  308. package/templates/__template_hello_world/src/data/TestProducts.graphql +30 -0
  309. package/templates/__template_hello_world/src/data/TestProducts.graphql.d.ts +159 -81
  310. package/templates/__template_hello_world/src/fixtures/mocked-products-with-variants.ts +274 -0
  311. package/templates/__template_hello_world/src/hooks/useQuizData.ts +26 -0
  312. package/templates/__template_hello_world/src/hooks/useQuizState.ts +27 -0
  313. package/templates/__template_hello_world/src/index.tsx +6 -5
  314. package/templates/__template_hello_world/src/routes.tsx +46 -22
  315. package/templates/__template_hello_world/src/screens/AccordionScreen.tsx +73 -0
  316. package/templates/__template_hello_world/src/screens/BottomSheetScreen.tsx +6 -5
  317. package/templates/__template_hello_world/src/screens/HomeScreen.tsx +14 -3
  318. package/templates/__template_hello_world/src/screens/{ImageCarouselScreen.tsx β†’ ImageMultipleChoiceScreen.tsx} +4 -6
  319. package/templates/__template_hello_world/src/screens/InputScreen.tsx +13 -70
  320. package/templates/__template_hello_world/src/screens/QuizResultScreen.tsx +82 -0
  321. package/templates/__template_hello_world/src/screens/QuizScreen.tsx +40 -0
  322. package/templates/__template_hello_world/src/screens/QuizSlideScreen.tsx +150 -0
  323. package/templates/__template_hello_world/src/screens/ShopActionsScreen.tsx +48 -0
  324. package/templates/__template_hello_world/src/screens/VariantPickerScreen.tsx +120 -0
  325. package/templates/__template_hello_world/src/types.ts +27 -24
  326. package/templates/__template_hello_world/src/utils/mockQuizData.ts +330 -0
  327. package/templates/__template_hello_world/src/utils/quizUtils.ts +75 -0
  328. package/templates/__template_snowboardz/src/components/SkillLevelIcon.tsx +1 -4
  329. package/templates/__template_snowboardz/src/components/SkillLevelPicker.tsx +7 -1
  330. package/templates/__template_snowboardz/src/data/TestProducts.graphql +1 -1
  331. package/templates/__template_snowboardz/src/data/TestProducts.graphql.d.ts +84 -74
  332. package/templates/__template_snowboardz/src/index.tsx +6 -5
  333. package/templates/__template_snowboardz/src/routes.tsx +2 -2
  334. package/templates/__template_snowboardz/src/types.ts +3 -3
  335. package/build/commands/check/index.d.ts +0 -5
  336. package/build/commands/check/index.js +0 -77
  337. package/build/commands/check/index.js.map +0 -1
  338. package/build/commands/check/utils/versions.d.ts +0 -1
  339. package/build/commands/check/utils/versions.js +0 -14
  340. package/build/commands/check/utils/versions.js.map +0 -1
  341. package/build/commands/dev/utils/binaries.test.d.ts +0 -1
  342. package/build/commands/dev/utils/binaries.test.js +0 -275
  343. package/build/commands/dev/utils/binaries.test.js.map +0 -1
  344. package/build/commands/dev/utils/minis-manifest.d.ts +0 -1
  345. package/build/commands/dev/utils/minis-manifest.js +0 -24
  346. package/build/commands/dev/utils/minis-manifest.js.map +0 -1
  347. package/build/commands/utils/exec-async-child-process.js.map +0 -1
  348. package/build/commands/utils/wrap-with-loading-indicator.js +0 -23
  349. package/build/commands/utils/wrap-with-loading-indicator.js.map +0 -1
  350. package/build/dev-panel/middleware.d.ts +0 -4
  351. package/build/dev-panel/middleware.js +0 -11
  352. package/build/dev-panel/middleware.js.map +0 -1
  353. package/build/dev-panel/static/css/main.31436fe3.css.map +0 -1
  354. package/build/dev-panel/static/js/main.27f47095.js.map +0 -1
  355. package/build/dev-panel/static/media/bottomsheet.fe525b8722f6d504a185.png +0 -0
  356. package/build/dev-panel/static/media/navigation.597434370a97c328a970.png +0 -0
  357. package/build/dev-panel/static/media/stories.a425b6972a5338fabdad.png +0 -0
  358. package/templates/__template_blank/src/custom.d.ts +0 -4
  359. package/templates/__template_common/.eslintrc.json +0 -132
  360. package/templates/__template_common/patches/react-native+0.68.5.patch +0 -173
  361. package/templates/__template_hello_world/src/utils/getFlagEmoji.spec.tsx +0 -19
  362. /package/build/dev-panel/static/js/{main.27f47095.js.LICENSE.txt β†’ main.6625699c.js.LICENSE.txt} +0 -0
@@ -1,4 +0,0 @@
1
- declare module '*.svg' {
2
- const content: any
3
- export default content
4
- }
@@ -1,132 +0,0 @@
1
- {
2
- "root": true,
3
- "extends": [
4
- "@react-native-community",
5
- "plugin:@shopify/typescript",
6
- "plugin:@shopify/react",
7
- "plugin:@shopify/jest",
8
- "plugin:@shopify/prettier"
9
- ],
10
- "plugins": ["jest", "reanimated"],
11
- "settings": {
12
- "react": {
13
- "version": "detect"
14
- }
15
- },
16
- "parserOptions": {
17
- "ecmaVersion": 6,
18
- "project": "./tsconfig.json",
19
- "schema": "node_modules/@shopify/shop-minis-platform-sdk/src/api/minis.graphql",
20
- "operations": "**/*.graphql"
21
- },
22
- "rules": {
23
- "@babel/no-unused-expressions": 0,
24
- "@typescript-eslint/no-unused-expressions": [
25
- "error",
26
- {
27
- "allowShortCircuit": true
28
- }
29
- ],
30
- "line-comment-position": 0,
31
- "no-implicit-coercion": 2,
32
- "consistent-return": 0,
33
- "no-console": 0,
34
- "jsx-a11y/no-autofocus": 0,
35
- "@shopify/strict-component-boundaries": 0,
36
- "react/display-name": 0,
37
- "spaced-comment": 0,
38
- "no-warning-comments": "off",
39
- "no-process-env": "off",
40
- "lines-around-comment": "off",
41
- "react/jsx-no-bind": "off",
42
- "react/state-in-constructor": "off",
43
- "react/jsx-no-constructed-context-values": "off",
44
- "react/jsx-uses-react": "off",
45
- "react/react-in-jsx-scope": "off",
46
- "@shopify/typescript/prefer-pascal-case-enums": "off",
47
- "@typescript-eslint/naming-convention": "off",
48
- "@typescript-eslint/ban-ts-comment": "off",
49
- "@typescript-eslint/consistent-indexed-object-style": "off",
50
- "@typescript-eslint/member-ordering": "off",
51
- "@shopify/react-no-multiple-render-methods": "off",
52
- "@shopify/react-type-state": "off",
53
- "@shopify/react-prefer-private-members": "off",
54
- "react/no-unused-prop-types": "off",
55
- "@shopify/jest/no-vague-titles": "off",
56
- "@shopify/jsx-no-complex-expressions": "off",
57
- "@shopify/jsx-no-hardcoded-content": "off",
58
- "import/no-named-as-default": "off",
59
- "import/named": "off",
60
- "id-blacklist": [2, "blacklist", "whitelist"],
61
- "@shopify/images-no-direct-imports": "off",
62
- "@typescript-eslint/camelcase": "off",
63
- "@typescript-eslint/ban-ts-ignore": "off",
64
- "@typescript-eslint/ban-types": "off",
65
- "@typescript-eslint/class-name-casing": "off",
66
- "@typescript-eslint/array-type": "off",
67
- "jest/no-standalone-expect": "off",
68
- "jest/no-test-callback": "off",
69
- "@typescript-eslint/no-namespace": "off",
70
- "react-native/no-inline-styles": "off",
71
- "jsx-a11y/accessible-emoji": "off",
72
- "jest/valid-title": "off",
73
- "@typescript-eslint/no-unused-vars": [
74
- "error",
75
- {
76
- "argsIgnorePattern": "^_",
77
- "varsIgnorePattern": "^_.{1,}"
78
- }
79
- ],
80
- "@typescript-eslint/no-shadow": "error",
81
- "no-shadow": "off",
82
- "max-len": [
83
- "error",
84
- {
85
- "code": 200,
86
- "ignoreUrls": true
87
- }
88
- ],
89
- "no-restricted-imports": [
90
- "error",
91
- {
92
- "paths": [
93
- {
94
- "name": "react",
95
- "importNames": ["default"],
96
- "message": "JSX Transform is active. Please remove unnecessary default import of 'React' or use destructured named imports instead"
97
- }
98
- ]
99
- }
100
- ],
101
- "reanimated/js-function-in-worklet": 2,
102
- "react-hooks/exhaustive-deps": ["error"]
103
- },
104
- "overrides": [
105
- {
106
- "files": ["*.ts", "*.tsx"],
107
- "rules": {
108
- "@typescript-eslint/no-non-null-assertion": 0,
109
- "shopify/typescript/prefer-pascal-case-enums": 0
110
- }
111
- },
112
- {
113
- "files": ["**/*.graphql"],
114
- "extends": "plugin:@graphql-eslint/operations-recommended",
115
- "rules": {
116
- "@graphql-eslint/no-deprecated": "warn",
117
-
118
- // we sometimes declare fragments that get used in TypeScript, which causes this to error
119
- "@graphql-eslint/no-unused-fragments": "off",
120
- "@graphql-eslint/naming-convention": "off",
121
- "@graphql-eslint/selection-set-depth": ["error", {"maxDepth": 15}]
122
- }
123
- },
124
- {
125
- "files": ["*.spec.*", "*.test.*"],
126
- "rules": {
127
- "require-await": 2,
128
- "@typescript-eslint/no-floating-promises": 2
129
- }
130
- }
131
- ]
132
- }
@@ -1,173 +0,0 @@
1
- Apply the changes from https://github.com/facebook/react-native/pull/33726
2
- so that we can run on a different port. This can be removed once that PR lands
3
- in react-native stable
4
-
5
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
6
- index f37be3e..8ff1683 100644
7
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
8
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.fb.js
9
- @@ -5302,7 +5302,7 @@ var getViewConfigForType =
10
- // % 2 === 0 means it is a Fabric tag.
11
- // This means that they never overlap.
12
-
13
- -var nextReactTag = 2;
14
- +var nextReactTag = 999992;
15
-
16
- // TODO: Remove this conditional once all changes have propagated.
17
- if (registerEventHandler) {
18
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
19
- index 39be910..68e9a22 100644
20
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
21
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
22
- @@ -4810,7 +4810,7 @@ var getViewConfigForType =
23
- // % 2 === 0 means it is a Fabric tag.
24
- // This means that they never overlap.
25
-
26
- -var nextReactTag = 2;
27
- +var nextReactTag = 999992;
28
-
29
- // TODO: Remove this conditional once all changes have propagated.
30
- if (registerEventHandler) {
31
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
32
- index bd8208a..75c9d37 100644
33
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
34
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.fb.js
35
- @@ -1851,7 +1851,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
36
- _nativeFabricUIManage.unstable_getCurrentEventPriority,
37
- getViewConfigForType =
38
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
39
- - nextReactTag = 2;
40
- + nextReactTag = 999992;
41
- registerEventHandler && registerEventHandler(dispatchEvent);
42
- var ReactFabricHostComponent = (function() {
43
- function ReactFabricHostComponent(
44
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
45
- index 058a5e1..87e8af5 100644
46
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
47
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
48
- @@ -1847,7 +1847,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
49
- _nativeFabricUIManage.unstable_getCurrentEventPriority,
50
- getViewConfigForType =
51
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
52
- - nextReactTag = 2;
53
- + nextReactTag = 999992;
54
- registerEventHandler && registerEventHandler(dispatchEvent);
55
- var ReactFabricHostComponent = (function() {
56
- function ReactFabricHostComponent(
57
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
58
- index 88a4d7e..88b9720 100644
59
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
60
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js
61
- @@ -1972,7 +1972,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
62
- _nativeFabricUIManage.unstable_getCurrentEventPriority,
63
- getViewConfigForType =
64
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
65
- - nextReactTag = 2;
66
- + nextReactTag = 999992;
67
- registerEventHandler && registerEventHandler(dispatchEvent);
68
- var ReactFabricHostComponent = (function() {
69
- function ReactFabricHostComponent(
70
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
71
- index 791e998..740a8b3 100644
72
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
73
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js
74
- @@ -1895,7 +1895,7 @@ var _nativeFabricUIManage = nativeFabricUIManager,
75
- _nativeFabricUIManage.unstable_getCurrentEventPriority,
76
- getViewConfigForType =
77
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
78
- - nextReactTag = 2;
79
- + nextReactTag = 999992;
80
- registerEventHandler && registerEventHandler(dispatchEvent);
81
- var ReactFabricHostComponent = (function() {
82
- function ReactFabricHostComponent(
83
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
84
- index fa3df1e..7822e98 100644
85
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
86
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js
87
- @@ -5531,7 +5531,7 @@ var UPDATE_SIGNAL = {};
88
- // % 10 === 1 means it is a rootTag.
89
- // % 2 === 0 means it is a Fabric tag.
90
-
91
- -var nextReactTag = 3;
92
- +var nextReactTag = 999993;
93
-
94
- function allocateTag() {
95
- var tag = nextReactTag;
96
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
97
- index 3772e42..041524c 100644
98
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
99
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js
100
- @@ -5024,7 +5024,7 @@ var UPDATE_SIGNAL = {};
101
- // % 10 === 1 means it is a rootTag.
102
- // % 2 === 0 means it is a Fabric tag.
103
-
104
- -var nextReactTag = 3;
105
- +var nextReactTag = 999993;
106
-
107
- function allocateTag() {
108
- var tag = nextReactTag;
109
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
110
- index 34c20b4..c764e34 100644
111
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
112
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js
113
- @@ -1912,7 +1912,7 @@ function shim$1() {
114
- var getViewConfigForType =
115
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
116
- UPDATE_SIGNAL = {},
117
- - nextReactTag = 3;
118
- + nextReactTag = 999993;
119
- function allocateTag() {
120
- var tag = nextReactTag;
121
- 1 === tag % 10 && (tag += 2);
122
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
123
- index 3fb794d..f3a6a5b 100644
124
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
125
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js
126
- @@ -1906,7 +1906,7 @@ function shim() {
127
- var getViewConfigForType =
128
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
129
- UPDATE_SIGNAL = {},
130
- - nextReactTag = 3;
131
- + nextReactTag = 999993;
132
- function allocateTag() {
133
- var tag = nextReactTag;
134
- 1 === tag % 10 && (tag += 2);
135
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
136
- index f9734c0..847f3a3 100644
137
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
138
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js
139
- @@ -2033,7 +2033,7 @@ function shim$1() {
140
- var getViewConfigForType =
141
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
142
- UPDATE_SIGNAL = {},
143
- - nextReactTag = 3;
144
- + nextReactTag = 999993;
145
- function allocateTag() {
146
- var tag = nextReactTag;
147
- 1 === tag % 10 && (tag += 2);
148
- diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
149
- index b875b0e..7441160 100644
150
- --- a/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
151
- +++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js
152
- @@ -1954,7 +1954,7 @@ function shim() {
153
- var getViewConfigForType =
154
- ReactNativePrivateInterface.ReactNativeViewConfigRegistry.get,
155
- UPDATE_SIGNAL = {},
156
- - nextReactTag = 3;
157
- + nextReactTag = 999993;
158
- function allocateTag() {
159
- var tag = nextReactTag;
160
- 1 === tag % 10 && (tag += 2);
161
- diff --git a/node_modules/react-native/React-Core.podspec b/node_modules/react-native/React-Core.podspec
162
- index 375bd9e..1721fef 100644
163
- --- a/node_modules/react-native/React-Core.podspec
164
- +++ b/node_modules/react-native/React-Core.podspec
165
- @@ -47,7 +47,7 @@ Pod::Spec.new do |s|
166
- s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
167
- s.header_dir = "React"
168
- s.framework = "JavaScriptCore"
169
- - s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\" \"$(PODS_ROOT)/Headers/Public/React-RCTFabric\"", "DEFINES_MODULE" => "YES" }
170
- + s.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"${PODS_ROOT}/Headers/Public/FlipperKit\" \"$(PODS_ROOT)/Headers/Public/ReactCommon\" \"$(PODS_ROOT)/Headers/Public/React-RCTFabric\"", "DEFINES_MODULE" => "YES", "GCC_PREPROCESSOR_DEFINITIONS" => "RCT_METRO_PORT=${RCT_METRO_PORT}" }
171
- s.user_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/Headers/Private/React-Core\""}
172
- s.default_subspec = "Default"
173
-
@@ -1,19 +0,0 @@
1
- import {getFlagEmoji} from './getFlagEmoji'
2
-
3
- describe('getFlagEmoji', () => {
4
- it('returns a single flag', () => {
5
- expect(getFlagEmoji('US')).toBe('πŸ‡ΊπŸ‡Έ')
6
- })
7
-
8
- it('returns chars when there is no flag with given code', () => {
9
- expect(getFlagEmoji('zz')).toBe('πŸ‡ΏπŸ‡Ώ')
10
- })
11
-
12
- it('returns multiple flags', () => {
13
- expect(getFlagEmoji('denl')).toBe('πŸ‡©πŸ‡ͺπŸ‡³πŸ‡±')
14
- })
15
-
16
- it('does not return non flag emojis', () => {
17
- expect(getFlagEmoji('top')).toBe('πŸ‡ΉπŸ‡΄πŸ‡΅')
18
- })
19
- })