@shopify/shop-minis-cli 0.0.83 → 0.0.85

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 (116) hide show
  1. package/build/commands/codemod/releases/index.js +7 -0
  2. package/build/commands/codemod/releases/index.js.map +1 -1
  3. package/build/commands/codemod/releases/v0-0-84.d.ts +3 -0
  4. package/build/commands/codemod/releases/v0-0-84.js +41 -0
  5. package/build/commands/codemod/releases/v0-0-84.js.map +1 -0
  6. package/build/commands/codemod/releases/v0-0-85.d.ts +3 -0
  7. package/build/commands/codemod/releases/v0-0-85.js +60 -0
  8. package/build/commands/codemod/releases/v0-0-85.js.map +1 -0
  9. package/build/commands/create-mini/index.js +3 -19
  10. package/build/commands/create-mini/index.js.map +1 -1
  11. package/build/commands/create-mini/utils/template-app.d.ts +1 -1
  12. package/build/commands/create-mini/utils/template-app.js +10 -9
  13. package/build/commands/create-mini/utils/template-app.js.map +1 -1
  14. package/build/commands/generate-graphql-types/index.js +1 -1
  15. package/build/commands/generate-graphql-types/index.js.map +1 -1
  16. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.d.ts +146 -10
  17. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js +6 -10
  18. package/build/data/types/autogenerated/shop-minis-admin-api/graphql.js.map +1 -1
  19. package/build/templates-index.d.ts +6 -0
  20. package/build/templates-index.js +19 -0
  21. package/build/templates-index.js.map +1 -0
  22. package/build/utils/package-manager.d.ts +5 -1
  23. package/build/utils/package-manager.js +10 -1
  24. package/build/utils/package-manager.js.map +1 -1
  25. package/package.json +1 -1
  26. package/scripts/test-template.ts +6 -3
  27. package/templates/__template_blank/src/App.tsx +9 -0
  28. package/templates/__template_blank/src/index.tsx +2 -3
  29. package/templates/__template_common/.eslintrc.js +1 -1
  30. package/templates/__template_common/index.tsx +0 -2
  31. package/templates/__template_shoppable_posts/src/App.tsx +41 -0
  32. package/templates/__template_shoppable_posts/src/index.tsx +9 -0
  33. package/templates/__template_shoppable_videos/src/App.tsx +40 -0
  34. package/templates/__template_shoppable_videos/src/index.tsx +9 -0
  35. package/templates/__template_blank/src/screens/HomeScreen.tsx +0 -12
  36. package/templates/__template_blank/src/types.ts +0 -5
  37. package/templates/__template_hello_world/src/assets/Modal-component-thumbnail.png +0 -0
  38. package/templates/__template_hello_world/src/assets/ProductCard-component-thumbnail.png +0 -0
  39. package/templates/__template_hello_world/src/assets/ProductLink-component-thumbnail.png +0 -0
  40. package/templates/__template_hello_world/src/assets/assets.d.ts +0 -4
  41. package/templates/__template_hello_world/src/assets/figma-logo.svg +0 -14
  42. package/templates/__template_hello_world/src/assets/shop-minis-logo.svg +0 -7
  43. package/templates/__template_hello_world/src/components/ButtonCTA.tsx +0 -31
  44. package/templates/__template_hello_world/src/components/ComponentLink.ts +0 -94
  45. package/templates/__template_hello_world/src/components/ComponentListItem.tsx +0 -39
  46. package/templates/__template_hello_world/src/components/FeaturedComponents.tsx +0 -110
  47. package/templates/__template_hello_world/src/components/Header.tsx +0 -40
  48. package/templates/__template_hello_world/src/components/quiz/ImageCarouselSlide.tsx +0 -54
  49. package/templates/__template_hello_world/src/components/quiz/MultipleChoiceSlide.tsx +0 -77
  50. package/templates/__template_hello_world/src/components/quiz/QuizProvider.tsx +0 -64
  51. package/templates/__template_hello_world/src/components/quiz/QuizSlide.tsx +0 -79
  52. package/templates/__template_hello_world/src/components/quiz/QuizSlideCommander.tsx +0 -35
  53. package/templates/__template_hello_world/src/components/quiz/TextFieldSlide.tsx +0 -84
  54. package/templates/__template_hello_world/src/components/quiz/TextSlide.tsx +0 -6
  55. package/templates/__template_hello_world/src/components/quiz/types.ts +0 -72
  56. package/templates/__template_hello_world/src/data/Test.graphql +0 -33
  57. package/templates/__template_hello_world/src/data/Test.graphql.d.ts +0 -107
  58. package/templates/__template_hello_world/src/data/TestProducts.graphql +0 -64
  59. package/templates/__template_hello_world/src/data/TestProducts.graphql.d.ts +0 -197
  60. package/templates/__template_hello_world/src/fixtures/mocked-products-with-variants.ts +0 -274
  61. package/templates/__template_hello_world/src/hooks/useQuizData.ts +0 -26
  62. package/templates/__template_hello_world/src/hooks/useQuizState.ts +0 -27
  63. package/templates/__template_hello_world/src/index.tsx +0 -10
  64. package/templates/__template_hello_world/src/routes.tsx +0 -149
  65. package/templates/__template_hello_world/src/screens/AccordionScreen.tsx +0 -73
  66. package/templates/__template_hello_world/src/screens/AvatarScreen.tsx +0 -95
  67. package/templates/__template_hello_world/src/screens/BottomSheetScreen.tsx +0 -712
  68. package/templates/__template_hello_world/src/screens/ButtonsScreen.tsx +0 -90
  69. package/templates/__template_hello_world/src/screens/GridScreen.tsx +0 -74
  70. package/templates/__template_hello_world/src/screens/HomeScreen.tsx +0 -81
  71. package/templates/__template_hello_world/src/screens/IconsScreen.tsx +0 -181
  72. package/templates/__template_hello_world/src/screens/ImageMultipleChoiceScreen.tsx +0 -145
  73. package/templates/__template_hello_world/src/screens/InputScreen.tsx +0 -149
  74. package/templates/__template_hello_world/src/screens/MediaScreen.tsx +0 -130
  75. package/templates/__template_hello_world/src/screens/ModalScreen.tsx +0 -379
  76. package/templates/__template_hello_world/src/screens/MultipleChoiceScreen.tsx +0 -75
  77. package/templates/__template_hello_world/src/screens/ProductCardGridScreen.tsx +0 -68
  78. package/templates/__template_hello_world/src/screens/ProductCardScreen.tsx +0 -62
  79. package/templates/__template_hello_world/src/screens/ProductLinkScreen.tsx +0 -215
  80. package/templates/__template_hello_world/src/screens/ProgressIndicatorScreen.tsx +0 -77
  81. package/templates/__template_hello_world/src/screens/QuantityPickerScreen.tsx +0 -76
  82. package/templates/__template_hello_world/src/screens/QuizResultScreen.tsx +0 -82
  83. package/templates/__template_hello_world/src/screens/QuizScreen.tsx +0 -40
  84. package/templates/__template_hello_world/src/screens/QuizSlideScreen.tsx +0 -150
  85. package/templates/__template_hello_world/src/screens/ShopActionsScreen.tsx +0 -48
  86. package/templates/__template_hello_world/src/screens/SpinnerScreen.tsx +0 -63
  87. package/templates/__template_hello_world/src/screens/TypographyScreen.tsx +0 -274
  88. package/templates/__template_hello_world/src/screens/VariantPickerScreen.tsx +0 -120
  89. package/templates/__template_hello_world/src/screens/WebViewScreen.tsx +0 -42
  90. package/templates/__template_hello_world/src/types.ts +0 -31
  91. package/templates/__template_hello_world/src/utils/getFlagEmoji.ts +0 -7
  92. package/templates/__template_hello_world/src/utils/mockQuizData.ts +0 -330
  93. package/templates/__template_hello_world/src/utils/quizUtils.ts +0 -75
  94. package/templates/__template_snowboardz/src/assets/assets.d.ts +0 -4
  95. package/templates/__template_snowboardz/src/assets/circle-blue.svg +0 -9
  96. package/templates/__template_snowboardz/src/assets/circle-green.svg +0 -9
  97. package/templates/__template_snowboardz/src/assets/circle-purple.svg +0 -9
  98. package/templates/__template_snowboardz/src/assets/circle-rainbow.svg +0 -34
  99. package/templates/__template_snowboardz/src/assets/circle-red.svg +0 -9
  100. package/templates/__template_snowboardz/src/assets/circle-yellow.svg +0 -9
  101. package/templates/__template_snowboardz/src/assets/skill-level-icon-advanced.svg +0 -3
  102. package/templates/__template_snowboardz/src/assets/skill-level-icon-beginner.svg +0 -3
  103. package/templates/__template_snowboardz/src/assets/skill-level-icon-intermediate.svg +0 -3
  104. package/templates/__template_snowboardz/src/components/ColorButton.tsx +0 -79
  105. package/templates/__template_snowboardz/src/components/ColorPicker.tsx +0 -40
  106. package/templates/__template_snowboardz/src/components/EmptyResult.tsx +0 -52
  107. package/templates/__template_snowboardz/src/components/SkillLevelIcon.tsx +0 -41
  108. package/templates/__template_snowboardz/src/components/SkillLevelPicker.tsx +0 -92
  109. package/templates/__template_snowboardz/src/data/TestProducts.graphql +0 -34
  110. package/templates/__template_snowboardz/src/data/TestProducts.graphql.d.ts +0 -118
  111. package/templates/__template_snowboardz/src/hooks/useSnowboardData.tsx +0 -37
  112. package/templates/__template_snowboardz/src/index.tsx +0 -10
  113. package/templates/__template_snowboardz/src/routes.tsx +0 -17
  114. package/templates/__template_snowboardz/src/screens/HomeScreen.tsx +0 -126
  115. package/templates/__template_snowboardz/src/types.ts +0 -12
  116. package/templates/__template_snowboardz/src/utils.ts +0 -17
@@ -17,6 +17,8 @@ import v0x0x75Upgrade from './v0-0-75.js';
17
17
  import v0x0x76Upgrade from './v0-0-76.js';
18
18
  import v0x0x77Upgrade from './v0-0-77.js';
19
19
  import v0x0x79Upgrade from './v0-0-79.js';
20
+ import v0x0x84Upgrade from './v0-0-84.js';
21
+ import v0x0x85Upgrade from './v0-0-85.js';
20
22
  const upgrades = [
21
23
  v0x0x42Upgrade,
22
24
  v0x0x43Upgrade,
@@ -34,6 +36,8 @@ const upgrades = [
34
36
  v0x0x76Upgrade,
35
37
  v0x0x77Upgrade,
36
38
  v0x0x79Upgrade,
39
+ v0x0x84Upgrade,
40
+ v0x0x85Upgrade,
37
41
  ];
38
42
  // the list of upgrades must be sorted by version. just making sure of it
39
43
  upgrades.sort(({ version: upgradeVersion1 }, { version: upgradeVersion2 }) => semverGreaterThan(upgradeVersion1, upgradeVersion2) ? 1 : -1);
@@ -50,6 +54,9 @@ export async function applyUpgrades({ fromVersion, toVersion, miniHandle, option
50
54
  console.log(''); // add an empty line at the end of release notes
51
55
  }
52
56
  function printUpgradeReleaseNotes(version, releaseNotes) {
57
+ if (!releaseNotes.length) {
58
+ return;
59
+ }
53
60
  console.log(chalk.bold(`\n@shopify/shop-minis-cli@${version} release notes:`));
54
61
  releaseNotes.forEach(releaseNotesItem => {
55
62
  console.log(`- ${releaseNotesItem}`);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/codemod/releases/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,IAAI,iBAAiB,EACvB,GAAG,IAAI,kBAAkB,GAC1B,MAAM,QAAQ,CAAA;AACf,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,cAAc,MAAM,oBAAoB,CAAA;AAC/C,OAAO,cAAc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Y,CAAC,CAAA;SAChD;KACF;IACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA,CAAC,gDAAgD;AAClE,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAe,EAAE,YAAsB;IACvE,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;QACxB,OAAM;KACP;IACD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,OAAO,iBAAiB,CAAC,CAAC,CAAA;IAC9E,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;QACtC,OAAO,CAAC,GAAG,CAAC,KAAK,gBAAgB,EAAE,CAAC,CAAA;IACtC,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ReleaseUpgradeFileExports } from './types.js';
2
+ declare const exports: ReleaseUpgradeFileExports;
3
+ export default exports;
@@ -0,0 +1,41 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { SemVer } from 'semver';
4
+ /**
5
+ * Replaces the content of .eslintrc.js with the updated location for minis.graqhl
6
+ *
7
+ * Diff: https://github.com/Shopify/shop-minis-cli/compare/v0.0.83...v0.0.84
8
+ */
9
+ async function applyUpgrade() {
10
+ // persist updated .eslintrc.js
11
+ fs.writeFileSync(path.join(process.cwd(), '.eslintrc.js'), newEslintRcContent, {
12
+ encoding: 'utf-8',
13
+ });
14
+ }
15
+ const releaseNotes = [
16
+ 'Replaced the content of .eslintrc.js with the updated location for minis.graqhl',
17
+ ];
18
+ const newEslintRcContent = `module.exports = {
19
+ root: true,
20
+ extends: ['plugin:@shopify/shop-minis/all'],
21
+ settings: {
22
+ react: {
23
+ version: 'detect',
24
+ },
25
+ },
26
+ parserOptions: {
27
+ ecmaVersion: 6,
28
+ project: './tsconfig.json',
29
+ schema:
30
+ 'node_modules/@shopify/shop-minis-platform-sdk/src/api/schema/minis.graphql',
31
+ operations: '**/*.graphql',
32
+ },
33
+ }
34
+ `;
35
+ const exports = {
36
+ releaseNotes,
37
+ applyUpgrade,
38
+ version: new SemVer('0.0.84'),
39
+ };
40
+ export default exports;
41
+ //# sourceMappingURL=v0-0-84.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v0-0-84.js","sourceRoot":"","sources":["../../../../src/commands/codemod/releases/v0-0-84.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAI7B;;;;GAIG;AACH,KAAK,UAAU,YAAY;IACzB,+BAA+B;IAC/B,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,EACxC,kBAAkB,EAClB;QACE,QAAQ,EAAE,OAAO;KAClB,CACF,CAAA;AACH,CAAC;AAED,MAAM,YAAY,GAAG;IACnB,iFAAiF;CAClF,CAAA;AAED,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;CAgB1B,CAAA;AAED,MAAM,OAAO,GAA8B;IACzC,YAAY;IACZ,YAAY;IACZ,OAAO,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC;CAC9B,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ReleaseUpgradeFileExports } from './types.js';
2
+ declare const exports: ReleaseUpgradeFileExports;
3
+ export default exports;
@@ -0,0 +1,60 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { SemVer } from 'semver';
4
+ /**
5
+ * src/types.ts was removed from the blank template because it was unused
6
+ * templates were refactored and the screens folder was removed in favour of a single App.tsx file
7
+ * deprecated Wrapper params were removed in index.tsx
8
+ *
9
+ * Diff: https://github.com/Shopify/shop-minis-cli/compare/v0.0.84...v0.0.85
10
+ */
11
+ async function applyUpgrade() {
12
+ if (process.env.INTERNAL_CODEMODS) {
13
+ // this file was removed from the blank template because it was unused
14
+ fs.rmSync(path.join(process.cwd(), 'src', 'types.ts'));
15
+ // the screens folder was removed as part of a refactor in the blank template, now the code lives in a single file in src/App.tsx
16
+ fs.rmSync(path.join(process.cwd(), 'src', 'screens'), { recursive: true });
17
+ fs.writeFileSync(path.join(process.cwd(), 'src', 'App.tsx'), newBlankTemplateAppContent, { encoding: 'utf-8' });
18
+ fs.writeFileSync(path.join(process.cwd(), 'src', 'index.tsx'), newBlankTemplateIndexContent, { encoding: 'utf-8' });
19
+ }
20
+ // removes deprecated params props from index.tsx
21
+ const indexTsxPath = path.join(process.cwd(), 'index.tsx');
22
+ const indexTsxContent = fs.readFileSync(indexTsxPath, { encoding: 'utf-8' });
23
+ const newIndexTsxContent = indexTsxContent
24
+ .split('\n')
25
+ .filter(lineOfCode => !lineOfCode.includes('params = {}') && // remove line containing params = {}
26
+ !lineOfCode.includes('params={params}') // remove line containing params={params}
27
+ )
28
+ .join('\n');
29
+ fs.writeFileSync(indexTsxPath, newIndexTsxContent, { encoding: 'utf-8' });
30
+ }
31
+ const releaseNotes = [
32
+ 'Removes deprecated prop "params" from index.tsx',
33
+ ];
34
+ const newBlankTemplateAppContent = `import {Box, Text} from '@shopify/shop-minis-platform-sdk'
35
+
36
+ export function App() {
37
+ return (
38
+ <Box flex={1} padding="m" backgroundColor="backgrounds-regular">
39
+ <Text textAlign="center">Fill in the blank</Text>
40
+ </Box>
41
+ )
42
+ }
43
+ `;
44
+ const newBlankTemplateIndexContent = `import {MiniAppConfig} from '@shopify/shop-minis-platform-sdk'
45
+
46
+ import {App} from './App'
47
+
48
+ const config: MiniAppConfig = {
49
+ Root: App,
50
+ }
51
+
52
+ export default config
53
+ `;
54
+ const exports = {
55
+ releaseNotes,
56
+ applyUpgrade,
57
+ version: new SemVer('0.0.85'),
58
+ };
59
+ export default exports;
60
+ //# sourceMappingURL=v0-0-85.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v0-0-85.js","sourceRoot":"","sources":["../../../../src/commands/codemod/releases/v0-0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,CAAC,aAAa,CAAC,IAAI,qCAAqC;QAC5E,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,yCAAyC;KACpF;SACA,IAAI,CAAC,IAAI,CAAC,CAAA;IACb,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,kBAAkB,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAA;AACzE,CAAC;AAED,MAAM,YAAY,GAAa;IAC7B,iDAAiD;CAClD,CAAA;AAED,MAAM,0BAA0B,GAAG;;;;;;;;;CASlC,CAAA;AACD,MAAM,4BAA4B,GAAG;;;;;;;;;CASpC,CAAA;AAED,MAAM,OAAO,GAA8B;IACzC,YAAY;IACZ,YAAY;IACZ,OAAO,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC;CAC9B,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -8,25 +8,8 @@ import chalk from 'chalk';
8
8
  import _ from 'lodash';
9
9
  import { execAsync } from '../../utils/exec-async-child-process.js';
10
10
  import { wrapWithLoadingIndicator } from '../../utils/wrap-with-loading-indicator.js';
11
+ import { TEMPLATES, TEMPLATE_VALUES } from '../../templates-index.js';
11
12
  import { generateMiniFromTemplate } from './utils/template-app.js';
12
- const TEMPLATES = [
13
- {
14
- title: 'Snowdevil',
15
- description: 'Example of a Shop Mini using prebuilt components',
16
- value: 'snowboardz',
17
- },
18
- {
19
- title: 'Hello World',
20
- description: 'Prebuilt components you can play around with',
21
- value: 'hello_world',
22
- },
23
- {
24
- title: 'Blank',
25
- description: 'A blank canvas so you can create from scratch',
26
- value: 'blank',
27
- },
28
- ];
29
- const TEMPLATE_VALUES = TEMPLATES.map(template => template.value);
30
13
  function logSuccess(miniName, outputDir, miniDir, useYarn) {
31
14
  console.log(`\n \nShop Mini`, chalk.green.bold(`${miniName}`), 'created. Next steps:\n');
32
15
  const currentPath = `${process.cwd()}/`;
@@ -87,6 +70,7 @@ export function loadCommand(parentProgram) {
87
70
  .argument('[mini name]', 'the name of your mini')
88
71
  // TODO: Remove `--useYarn` https://github.com/Shopify/shop-minis-cli/issues/190
89
72
  .option('--useYarn', '(deprecated) Use yarn as package manager instead of npm')
73
+ .option('--alphaMinisRuntime', 'use the alpha tag of @shopify/shop-minis-runtime. uses the latest tag by default')
90
74
  .addOption(new Option('--template <template name>', 'name of the template to use').choices(TEMPLATE_VALUES))
91
75
  .option('--output-dir <path>', 'Specify an output directory for the mini')
92
76
  .action(async (miniNameArg, options = {}) => {
@@ -102,7 +86,7 @@ export function loadCommand(parentProgram) {
102
86
  try {
103
87
  const { miniName, templateName } = await promptUser(miniNameArg, options.template);
104
88
  const miniDir = _.kebabCase(miniName);
105
- await wrapWithLoadingIndicator(generateMiniFromTemplate(miniName, templateName, outputDir, miniDir), {
89
+ await wrapWithLoadingIndicator(generateMiniFromTemplate(miniName, templateName, outputDir, miniDir, options.alphaMinisRuntime), {
106
90
  loadingMessage: 'Fetching template...',
107
91
  successMessage: 'Template fetched',
108
92
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/create-mini/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,IAAI,CAAA;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAC,2BAA2B,EAAC,MAAM,4CAA4C,CAAA;AACtF,OAAO,EAAC,OAAO,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AACzC,OAAO,OAAuB,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,CAAC,MAAM,QAAQ,CAAA;AAEtB,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAA;AACjE,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAA;AAEnF,OAAO,EAAC,wBAAwB,EAAC,MAAM,yBAAyB,CAAA;AAEhE,MAAM,SA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CAAC,CAAC,CAAC,CAAA;SAChB;IACH,CAAC,CACF,CAAA;IAEH,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AACnC,CAAC"}
@@ -1 +1 @@
1
- export declare function generateMiniFromTemplate(name: string, templateName: string, outputDir: string | undefined, miniDir: string): Promise<void>;
1
+ export declare function generateMiniFromTemplate(name: string, templateName: string, outputDir: string | undefined, miniDir: string, useAlphaRuntime?: boolean): Promise<void>;
@@ -7,9 +7,9 @@ import _ from 'lodash';
7
7
  import { CLI_VERSION } from '../../config.js';
8
8
  import { replaceStringsInTemplate } from '../../../utils/replace-strings-in-template.js';
9
9
  import { execAsync } from '../../../utils/exec-async-child-process.js';
10
- import { getPackageLatestVersionCommand } from '../../../utils/package-manager.js';
10
+ import { getPackageAlphaVersionCommand, getPackageLatestVersionCommand, } from '../../../utils/package-manager.js';
11
11
  const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
12
- export async function generateMiniFromTemplate(name, templateName, outputDir = '.', miniDir) {
12
+ export async function generateMiniFromTemplate(name, templateName, outputDir = '.', miniDir, useAlphaRuntime) {
13
13
  const tmpDir = await mkdtemp(path.join(os.tmpdir(), `${miniDir}-`));
14
14
  const miniTemplateDir = await path.join(__dirname, '../../../../templates', `__template_${templateName}`);
15
15
  const miniDestinationDir = path.resolve(process.cwd(), outputDir, miniDir);
@@ -18,7 +18,7 @@ export async function generateMiniFromTemplate(name, templateName, outputDir = '
18
18
  __MINI_APP_NAME_PASCAL_CASE__: _.startCase(miniDir).replace(/ /g, ''),
19
19
  __MINI_APP_NAME_KEBAB_CASE__: _.kebabCase(name),
20
20
  __SHOP_MINIS_CLI_VERSION__: CLI_VERSION,
21
- __SHOP_MINIS_RUNTIME_VERSION__: await fetchLatestMinisRuntimeVersion(),
21
+ __SHOP_MINIS_RUNTIME_VERSION__: await fetchLatestMinisRuntimeVersion(useAlphaRuntime),
22
22
  };
23
23
  const commonTemplateFilesDir = await path.join(__dirname, '../../../../templates', '__template_common');
24
24
  await copy(commonTemplateFilesDir, tmpDir);
@@ -27,18 +27,19 @@ export async function generateMiniFromTemplate(name, templateName, outputDir = '
27
27
  await replaceStringsInTemplate(tmpDir, stringsToReplace);
28
28
  await copy(tmpDir, miniDestinationDir);
29
29
  }
30
- async function fetchLatestMinisRuntimeVersion() {
30
+ async function fetchLatestMinisRuntimeVersion(alpha = false) {
31
31
  try {
32
- const getLatestVersionCommand = await getPackageLatestVersionCommand('@shopify/shop-minis-runtime');
32
+ const commandToFetchVersion = alpha
33
+ ? getPackageAlphaVersionCommand
34
+ : getPackageLatestVersionCommand;
33
35
  const { stdout: latestMinisRuntimeVersionStdout } = await execAsync({
34
- cmd: getLatestVersionCommand,
36
+ cmd: await commandToFetchVersion('@shopify/shop-minis-runtime'),
35
37
  });
36
38
  return latestMinisRuntimeVersionStdout[0];
37
39
  }
38
40
  catch {
39
- // this fallback shouldn't be needed but we should make our best to make sure the mini creation doesn't fail
40
- // this was the latest version at the time of writing this function
41
- return '0.0.13';
41
+ // this fallback shouldn't be needed but we do our best to make sure the mini creation doesn't fail
42
+ return '0.0.48';
42
43
  }
43
44
  }
44
45
  //# sourceMappingURL=template-app.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-app.js","sourceRoot":"","sources":["../../../../src/commands/create-mini/utils/template-app.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAA;AAC1B,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAA;AACxC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,MAAM,IAAI,CAAA;AAEnB,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,UAAU,CAAA;AACnC,OAAO,CAAC,MAAM,QAAQ,CAAA;AAEtB,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAC,SAAS,EAAC,MAAM,4CAA4C,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C,CAAC;AAED,KAAK,UAAU,8BAA8B,CAAC,KAAK,GAAG,KAAK;IACzD,IAAI;QACF,MAAM,qBAAqB,GAAG,KAAK;YACjC,CAAC,CAAC,6BAA6B;YAC/B,CAAC,CAAC,8BAA8B,CAAA;QAElC,MAAM,EAAC,MAAM,EAAE,+BAA+B,EAAC,GAAG,MAAM,SAAS,CAAC;YAChE,GAAG,EAAE,MAAM,qBAAqB,CAAC,6BAA6B,CAAC;SAChE,CAAC,CAAA;QACF,OAAO,+BAA+B,CAAC,CAAC,CAAC,CAAA;KAC1C;IAAC,MAAM;QACN,mGAAmG;QACnG,OAAO,QAAQ,CAAA;KAChB;AACH,CAAC"}
@@ -36,7 +36,7 @@ export function loadCommand(parentProgram) {
36
36
  const schemaTypesPathConfig = 'node_modules/@shopify/shop-minis-platform-sdk/api/types';
37
37
  const config = new GraphQLConfig({
38
38
  config: {
39
- schemaPath: 'node_modules/@shopify/shop-minis-platform-sdk/src/api/minis.graphql',
39
+ schemaPath: 'node_modules/@shopify/shop-minis-platform-sdk/src/api/schema/minis.graphql',
40
40
  includes: [`**/*.graphql`],
41
41
  excludes: ['node_modules/**'],
42
42
  extensions: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/generate-graphql-types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAA;AAO5C,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAA;AAE/D,gEAAgE;A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 +625,8 @@ export declare enum EntryPointEventStatusUpdateUserErrorCode {
625
625
  export declare enum EntryPointLocation {
626
626
  /** The Mini should be displayed on the order confirmation page. */
627
627
  OrderConfirmationPage = "ORDER_CONFIRMATION_PAGE",
628
+ /** The Mini should be displayed on the order management page. */
629
+ OrderManagementPage = "ORDER_MANAGEMENT_PAGE",
628
630
  /** The Mini should be displayed on the product page. */
629
631
  ProductPage = "PRODUCT_PAGE",
630
632
  /** The Mini should be displayed on the product details page context menu. */
@@ -706,19 +708,21 @@ export type EntryPointSetInput = {
706
708
  eventCardV2?: InputMaybe<EventCardV2EntryPointSetInput>;
707
709
  /** The image collection entry point set input. */
708
710
  imageCollection?: InputMaybe<ImageCollectionEntryPointSetInput>;
711
+ /** The image collection v2 entry point set input. */
712
+ imageCollectionV2?: InputMaybe<ImageCollectionV2EntryPointSetInput>;
709
713
  /** The link entry point set input. */
710
714
  link?: InputMaybe<LinkEntryPointSetInput>;
711
715
  /** The product offer card entry point set input. */
712
716
  productOfferCard?: InputMaybe<ProductOfferCardEntryPointSetInput>;
713
717
  /** The video collection entry point set input. */
714
718
  videoCollection?: InputMaybe<VideoCollectionEntryPointSetInput>;
719
+ /** The video collection entry point V2 set input. */
720
+ videoCollectionV2?: InputMaybe<VideoCollectionV2EntryPointSetInput>;
715
721
  };
716
722
  /** The entry point type of a Mini. */
717
723
  export declare enum EntryPointType {
718
724
  /** The Mini should be displayed as an action button. */
719
725
  ActionButton = "ACTION_BUTTON",
720
- /** The Mini should be displayed as a call to action. */
721
- CallToAction = "CALL_TO_ACTION",
722
726
  /** The Mini should be displayed as a card with content. */
723
727
  ContentCard = "CONTENT_CARD",
724
728
  /** The Mini should be displayed as a card with content. */
@@ -729,20 +733,16 @@ export declare enum EntryPointType {
729
733
  EventCardV2 = "EVENT_CARD_V2",
730
734
  /** The Mini should be displayed as a collection of images. */
731
735
  ImageCollection = "IMAGE_COLLECTION",
732
- /** The Mini should be displayed as a card with an image and content. */
733
- ImageContentCard = "IMAGE_CONTENT_CARD",
736
+ /** The Mini should be displayed as a collection of images with related products. */
737
+ ImageCollectionV2 = "IMAGE_COLLECTION_V2",
734
738
  /** The Mini should be displayed as a link. */
735
739
  Link = "LINK",
736
- /** The Mini should be displayed as a live event. */
737
- LiveEvent = "LIVE_EVENT",
738
- /** The Mini should be displayed as a collection of images. */
739
- ProductImageCollection = "PRODUCT_IMAGE_COLLECTION",
740
740
  /** The Mini should be displayed as a product offer card. */
741
741
  ProductOfferCard = "PRODUCT_OFFER_CARD",
742
742
  /** The Mini should be displayed as a collection of videos. */
743
- ProductVideoCollection = "PRODUCT_VIDEO_COLLECTION",
743
+ VideoCollection = "VIDEO_COLLECTION",
744
744
  /** The Mini should be displayed as a collection of videos. */
745
- VideoCollection = "VIDEO_COLLECTION"
745
+ VideoCollectionV2 = "VIDEO_COLLECTION_V2"
746
746
  }
747
747
  /** Represents the validity of an entry point visibility rule. */
748
748
  export type EntryPointVisibilityRuleValidity = {
@@ -906,6 +906,71 @@ export type ImageCollectionEntryPointSetInput = {
906
906
  /** The items for the entry point. It can't be empty. */
907
907
  items: Array<ImageCollectionEntryPointItemInput>;
908
908
  };
909
+ /** This is a Mini Image Collection V2 entry point. */
910
+ export type ImageCollectionV2EntryPoint = EntryPoint & {
911
+ __typename?: 'ImageCollectionV2EntryPoint';
912
+ /** The ID of the entry point. */
913
+ id?: Maybe<Scalars['ID']>;
914
+ /** The items for the entry point. */
915
+ items: Array<ImageCollectionV2EntryPointItem>;
916
+ /** The layout for the entry point. */
917
+ layout: ImageCollectionEntryPointLayout;
918
+ /** The location of the entry point. */
919
+ location?: Maybe<EntryPointLocation>;
920
+ /** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
921
+ ownerId?: Maybe<Scalars['ID']>;
922
+ /** The date and time when the entry point was updated. */
923
+ updatedAt: Scalars['ISO8601DateTime'];
924
+ /** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
925
+ visibilityRule?: Maybe<Scalars['String']>;
926
+ };
927
+ /** This is a Mini image collection entry point item. */
928
+ export type ImageCollectionV2EntryPointItem = {
929
+ __typename?: 'ImageCollectionV2EntryPointItem';
930
+ /** The description for ImageCollectionV2EntryPoint item. */
931
+ description?: Maybe<Scalars['String']>;
932
+ /** The date when the ImageCollectionV2EntryPoint item was created. */
933
+ displayDate?: Maybe<Scalars['ISO8601DateTime']>;
934
+ /** The external ID for the item. Provided by the partner and opaque to the Shop app. */
935
+ externalId?: Maybe<Scalars['ID']>;
936
+ /** The image for the item. */
937
+ image: Image;
938
+ /** The list of products associated with this image. */
939
+ relatedProducts: Array<ImageCollectionV2EntryPointItemRelatedProduct>;
940
+ };
941
+ /** This is a Mini Image Collection entry point item. */
942
+ export type ImageCollectionV2EntryPointItemInput = {
943
+ /** The description for the ImageCollectionV2EntryPoint item. */
944
+ description?: InputMaybe<Scalars['String']>;
945
+ /** The date when the ImageCollectionV2EntryPoint item will be displayed. */
946
+ displayDate?: InputMaybe<Scalars['ISO8601DateTime']>;
947
+ /** The external ID for the item. Provided by the partner and opaque to the Shop app. */
948
+ externalId: Scalars['String'];
949
+ /** The image for the item. */
950
+ image: ImageInput;
951
+ /** The list of products associated with this image. */
952
+ relatedProducts: Array<ImageCollectionV2EntryPointItemRelatedProductInput>;
953
+ };
954
+ /** The related product item shown on the image. */
955
+ export type ImageCollectionV2EntryPointItemRelatedProduct = {
956
+ __typename?: 'ImageCollectionV2EntryPointItemRelatedProduct';
957
+ /** The product ID for the entry point. */
958
+ productId: Scalars['ID'];
959
+ /** The product variant ID for the entry point. */
960
+ productVariantId?: Maybe<Scalars['ID']>;
961
+ };
962
+ /** This is a related product for the image. */
963
+ export type ImageCollectionV2EntryPointItemRelatedProductInput = {
964
+ /** The product ID for the entry point. */
965
+ productId: Scalars['String'];
966
+ /** The product variant ID for the entry point. */
967
+ productVariantId?: InputMaybe<Scalars['String']>;
968
+ };
969
+ /** The information needed to create a new image collection entry point. */
970
+ export type ImageCollectionV2EntryPointSetInput = {
971
+ /** The items for the entry point. It can't be empty. */
972
+ items: Array<ImageCollectionV2EntryPointItemInput>;
973
+ };
909
974
  /** The information needed to create a new image. */
910
975
  export type ImageInput = {
911
976
  /** The URL of the Shopify hosted image. */
@@ -1426,6 +1491,77 @@ export type VideoCollectionEntryPointSetInput = {
1426
1491
  /** The items for the entry point. It can't be empty. */
1427
1492
  items: Array<VideoCollectionEntryPointItemInput>;
1428
1493
  };
1494
+ /** This is a Mini video collection V2 entry point. */
1495
+ export type VideoCollectionV2EntryPoint = EntryPoint & {
1496
+ __typename?: 'VideoCollectionV2EntryPoint';
1497
+ /** The ID of the entry point. */
1498
+ id?: Maybe<Scalars['ID']>;
1499
+ /** The items for the entry point. */
1500
+ items: Array<VideoCollectionV2EntryPointItem>;
1501
+ /** The location of the entry point. */
1502
+ location?: Maybe<EntryPointLocation>;
1503
+ /** The ID of the owner of the entry point. Empty indicates the entry point has multiple owners set by the `visibilityRule` */
1504
+ ownerId?: Maybe<Scalars['ID']>;
1505
+ /** The date and time when the entry point was updated. */
1506
+ updatedAt: Scalars['ISO8601DateTime'];
1507
+ /** The visibility rule of the entry point. Empty indicates the entry point has a single owner set by the `ownerId`. */
1508
+ visibilityRule?: Maybe<Scalars['String']>;
1509
+ };
1510
+ /** This is a content creator that may appear next to a Mini entry point. */
1511
+ export type VideoCollectionV2EntryPointContentCreator = {
1512
+ __typename?: 'VideoCollectionV2EntryPointContentCreator';
1513
+ /** The avatar of the content creator. */
1514
+ avatar?: Maybe<Image>;
1515
+ /** The name of the content creator. */
1516
+ name: Scalars['String'];
1517
+ };
1518
+ /** This is a Mini video collection entry point item. */
1519
+ export type VideoCollectionV2EntryPointItem = {
1520
+ __typename?: 'VideoCollectionV2EntryPointItem';
1521
+ /** The content creator for the item. */
1522
+ contentCreator?: Maybe<VideoCollectionV2EntryPointContentCreator>;
1523
+ /** The external ID for the item. Provided by the partner and opaque to the Shop app. */
1524
+ externalId: Scalars['ID'];
1525
+ /** The fallback image for the item. */
1526
+ fallbackImage: Image;
1527
+ /** The list of products associated with this video. */
1528
+ relatedProducts: Array<VideoCollectionV2EntryPointRelatedProduct>;
1529
+ /** The video for the item. */
1530
+ video?: Maybe<ExternalVideo>;
1531
+ };
1532
+ /** This is a Mini Video Collection V2 entry point item. */
1533
+ export type VideoCollectionV2EntryPointItemInput = {
1534
+ /** The content creator for the entry point. */
1535
+ contentCreator?: InputMaybe<ContentCreatorInput>;
1536
+ /** The external ID for the item. Provided by the partner and opaque to the Shop app. */
1537
+ externalId: Scalars['String'];
1538
+ /** The fallback image for the entry point. */
1539
+ fallbackImage: ImageInput;
1540
+ /** The list of products associated with this video. */
1541
+ relatedProducts: Array<VideoCollectionV2EntryPointItemRelatedProductInput>;
1542
+ /** The video for the entry point. */
1543
+ video: ExternalVideoInput;
1544
+ };
1545
+ /** This is a related product for the video. */
1546
+ export type VideoCollectionV2EntryPointItemRelatedProductInput = {
1547
+ /** The product ID for the entry point. */
1548
+ productId?: InputMaybe<Scalars['ID']>;
1549
+ /** The product variant ID for the entry point. */
1550
+ productVariantId?: InputMaybe<Scalars['ID']>;
1551
+ };
1552
+ /** The related product item shown on the video. */
1553
+ export type VideoCollectionV2EntryPointRelatedProduct = {
1554
+ __typename?: 'VideoCollectionV2EntryPointRelatedProduct';
1555
+ /** The product ID for the entry point. */
1556
+ productId: Scalars['ID'];
1557
+ /** The product variant ID for the entry point. */
1558
+ productVariantId?: Maybe<Scalars['ID']>;
1559
+ };
1560
+ /** The information needed to create or update a video collection V2 entry point. */
1561
+ export type VideoCollectionV2EntryPointSetInput = {
1562
+ /** The items for the entry point. It can't be empty. */
1563
+ items: Array<VideoCollectionV2EntryPointItemInput>;
1564
+ };
1429
1565
  /** Informs API user about non critical casualties during the execution of a query or a mutation. */
1430
1566
  export type Warning = {
1431
1567
  __typename?: 'Warning';
@@ -429,6 +429,8 @@ export var EntryPointLocation;
429
429
  (function (EntryPointLocation) {
430
430
  /** The Mini should be displayed on the order confirmation page. */
431
431
  EntryPointLocation["OrderConfirmationPage"] = "ORDER_CONFIRMATION_PAGE";
432
+ /** The Mini should be displayed on the order management page. */
433
+ EntryPointLocation["OrderManagementPage"] = "ORDER_MANAGEMENT_PAGE";
432
434
  /** The Mini should be displayed on the product page. */
433
435
  EntryPointLocation["ProductPage"] = "PRODUCT_PAGE";
434
436
  /** The Mini should be displayed on the product details page context menu. */
@@ -473,8 +475,6 @@ export var EntryPointType;
473
475
  (function (EntryPointType) {
474
476
  /** The Mini should be displayed as an action button. */
475
477
  EntryPointType["ActionButton"] = "ACTION_BUTTON";
476
- /** The Mini should be displayed as a call to action. */
477
- EntryPointType["CallToAction"] = "CALL_TO_ACTION";
478
478
  /** The Mini should be displayed as a card with content. */
479
479
  EntryPointType["ContentCard"] = "CONTENT_CARD";
480
480
  /** The Mini should be displayed as a card with content. */
@@ -485,20 +485,16 @@ export var EntryPointType;
485
485
  EntryPointType["EventCardV2"] = "EVENT_CARD_V2";
486
486
  /** The Mini should be displayed as a collection of images. */
487
487
  EntryPointType["ImageCollection"] = "IMAGE_COLLECTION";
488
- /** The Mini should be displayed as a card with an image and content. */
489
- EntryPointType["ImageContentCard"] = "IMAGE_CONTENT_CARD";
488
+ /** The Mini should be displayed as a collection of images with related products. */
489
+ EntryPointType["ImageCollectionV2"] = "IMAGE_COLLECTION_V2";
490
490
  /** The Mini should be displayed as a link. */
491
491
  EntryPointType["Link"] = "LINK";
492
- /** The Mini should be displayed as a live event. */
493
- EntryPointType["LiveEvent"] = "LIVE_EVENT";
494
- /** The Mini should be displayed as a collection of images. */
495
- EntryPointType["ProductImageCollection"] = "PRODUCT_IMAGE_COLLECTION";
496
492
  /** The Mini should be displayed as a product offer card. */
497
493
  EntryPointType["ProductOfferCard"] = "PRODUCT_OFFER_CARD";
498
494
  /** The Mini should be displayed as a collection of videos. */
499
- EntryPointType["ProductVideoCollection"] = "PRODUCT_VIDEO_COLLECTION";
500
- /** The Mini should be displayed as a collection of videos. */
501
495
  EntryPointType["VideoCollection"] = "VIDEO_COLLECTION";
496
+ /** The Mini should be displayed as a collection of videos. */
497
+ EntryPointType["VideoCollectionV2"] = "VIDEO_COLLECTION_V2";
502
498
  })(EntryPointType || (EntryPointType = {}));
503
499
  /** The error code for an entry point visibility rule error. */
504
500
  export var EntryPointVisibilityRuleValidityErrorCode;