@shopify/cli-kit 2.0.14 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @shopify/cli-kit
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Bump to 3.0.0
8
+
9
+ ## 2.0.15
10
+
11
+ ### Patch Changes
12
+
13
+ - 19e343ea: Add support to dev checkout_ui_extension
14
+ - eaf69a92: Add Italic output format
15
+ Store app title from Partners API
16
+ - 5ed34580: Default option when overwriting project files is now "No"
17
+
3
18
  ## 2.0.14
4
19
 
5
20
  ### Patch Changes
@@ -12317,7 +12317,7 @@ var path$w = /*#__PURE__*/Object.freeze({
12317
12317
  });
12318
12318
 
12319
12319
  var name = "@shopify/cli-kit";
12320
- var version$4 = "2.0.14";
12320
+ var version$4 = "3.0.0";
12321
12321
  var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
12322
12322
  var keywords = [
12323
12323
  "shopify",
@@ -12432,11 +12432,11 @@ var cliKitPackageJson = {
12432
12432
  devDependencies: devDependencies
12433
12433
  };
12434
12434
 
12435
- var version$3 = "2.0.14";
12435
+ var version$3 = "3.0.0";
12436
12436
 
12437
- var version$2 = "2.0.14";
12437
+ var version$2 = "3.0.0";
12438
12438
 
12439
- var version$1 = "2.0.14";
12439
+ var version$1 = "3.0.0";
12440
12440
 
12441
12441
  const homedir$1 = os$8.homedir();
12442
12442
  const tmpdir$1 = os$8.tmpdir();
@@ -21123,20 +21123,23 @@ const token = {
21123
21123
  subheading: (value) => {
21124
21124
  return new ContentToken(value, {}, 4 /* SubHeading */);
21125
21125
  },
21126
+ italic: (value) => {
21127
+ return new ContentToken(value, {}, 5 /* Italic */);
21128
+ },
21126
21129
  errorText: (value) => {
21127
- return new ContentToken(value, {}, 5 /* ErrorText */);
21130
+ return new ContentToken(value, {}, 6 /* ErrorText */);
21128
21131
  },
21129
21132
  cyan: (value) => {
21130
- return new ContentToken(value, {}, 7 /* Cyan */);
21133
+ return new ContentToken(value, {}, 8 /* Cyan */);
21131
21134
  },
21132
21135
  yellow: (value) => {
21133
- return new ContentToken(value, {}, 6 /* Yellow */);
21136
+ return new ContentToken(value, {}, 7 /* Yellow */);
21134
21137
  },
21135
21138
  magenta: (value) => {
21136
- return new ContentToken(value, {}, 8 /* Magenta */);
21139
+ return new ContentToken(value, {}, 9 /* Magenta */);
21137
21140
  },
21138
21141
  green: (value) => {
21139
- return new ContentToken(value, {}, 9 /* Green */);
21142
+ return new ContentToken(value, {}, 10 /* Green */);
21140
21143
  },
21141
21144
  command: (dependencyManager, scriptName, ...scriptArgs) => {
21142
21145
  return new ContentToken(formatPackageManagerCommand(dependencyManager, scriptName, scriptArgs), {}, 0 /* Command */);
@@ -21192,19 +21195,22 @@ function content(strings, ...keys) {
21192
21195
  case 4 /* SubHeading */:
21193
21196
  output += colors$9.underline(enumToken.value);
21194
21197
  break;
21195
- case 5 /* ErrorText */:
21198
+ case 5 /* Italic */:
21199
+ output += colors$9.italic(enumToken.value);
21200
+ break;
21201
+ case 6 /* ErrorText */:
21196
21202
  output += colors$9.bold.redBright(enumToken.value);
21197
21203
  break;
21198
- case 6 /* Yellow */:
21204
+ case 7 /* Yellow */:
21199
21205
  output += colors$9.yellow(enumToken.value);
21200
21206
  break;
21201
- case 7 /* Cyan */:
21207
+ case 8 /* Cyan */:
21202
21208
  output += colors$9.cyan(enumToken.value);
21203
21209
  break;
21204
- case 8 /* Magenta */:
21210
+ case 9 /* Magenta */:
21205
21211
  output += colors$9.magenta(enumToken.value);
21206
21212
  break;
21207
- case 9 /* Green */:
21213
+ case 10 /* Green */:
21208
21214
  output += colors$9.green(enumToken.value);
21209
21215
  break;
21210
21216
  }
@@ -26334,14 +26340,14 @@ const prompt = async (questions) => {
26334
26340
  async function nonEmptyDirectoryPrompt(directory) {
26335
26341
  if (await exists$1(directory)) {
26336
26342
  const options = [
26337
- { name: "Yes, remove the files", value: "overwrite" },
26338
- { name: "No, abort the command", value: "abort" }
26343
+ { name: "No, don\u2019t delete the files", value: "abort" },
26344
+ { name: "Yes, delete the files", value: "overwrite" }
26339
26345
  ];
26340
26346
  const relativeDirectory = relative(process.cwd(), directory);
26341
26347
  const questions = {
26342
26348
  type: "select",
26343
26349
  name: "value",
26344
- message: `${relativeDirectory} is not an empty directory. Do you want to remove the existing files and continue?`,
26350
+ message: `${relativeDirectory} is not an empty directory. Do you want to delete the existing files and continue?`,
26345
26351
  choices: options
26346
26352
  };
26347
26353
  const choice = await prompt([questions]);
@@ -40665,7 +40671,7 @@ class Body$1 {
40665
40671
  return formData;
40666
40672
  }
40667
40673
 
40668
- const {toFormData} = await import('./multipart-parser-e0ecbeb6.js');
40674
+ const {toFormData} = await import('./multipart-parser-e253e1bc.js');
40669
40675
  return toFormData(this.body, ct);
40670
40676
  }
40671
40677
 
@@ -54584,7 +54590,8 @@ function parseRepoUrl(src) {
54584
54590
  const subDirectory = match[6]?.slice(1);
54585
54591
  const ref = match[7] || "HEAD";
54586
54592
  const ssh = `git@${normalizedSite}:${user}/${name}`;
54587
- return { site: normalizedSite, user, name, ref, subDirectory, ssh };
54593
+ const http = `https://${normalizedSite}/${user}/${name}`;
54594
+ return { site: normalizedSite, user, name, ref, subDirectory, ssh, http };
54588
54595
  }
54589
54596
 
54590
54597
  var github = /*#__PURE__*/Object.freeze({
@@ -84833,6 +84840,7 @@ function setAppInfo(options) {
84833
84840
  apps[index] = {
84834
84841
  appId: options.appId,
84835
84842
  directory: options.directory,
84843
+ title: options.title ?? app.title,
84836
84844
  storeFqdn: options.storeFqdn ?? app.storeFqdn,
84837
84845
  orgId: options.orgId ?? app.orgId
84838
84846
  };
@@ -172188,6 +172196,36 @@ const ExtensionCreateQuery = dist$1.gql`
172188
172196
  }
172189
172197
  `;
172190
172198
 
172199
+ const ExtensionSpecificationsQuery = dist$1.gql`
172200
+ query fetchSpecifications($api_key: String!) {
172201
+ extensionSpecifications(apiKey: $api_key) {
172202
+ name
172203
+ identifier
172204
+ options {
172205
+ managementExperience
172206
+ }
172207
+ features {
172208
+ argo {
172209
+ surface
172210
+ }
172211
+ }
172212
+ }
172213
+ }
172214
+ `;
172215
+
172216
+ const AllAppExtensionRegistrationsQuery = dist$1.gql`
172217
+ query allAppExtensionRegistrations($apiKey: String!) {
172218
+ app(apiKey: $apiKey) {
172219
+ extensionRegistrations {
172220
+ id
172221
+ uuid
172222
+ title
172223
+ type
172224
+ }
172225
+ }
172226
+ }
172227
+ `;
172228
+
172191
172229
  const FindProductVariantQuery = dist$1.gql`
172192
172230
  query {
172193
172231
  products(first: 1) {
@@ -172220,6 +172258,8 @@ var index = /*#__PURE__*/Object.freeze({
172220
172258
  AllStoresByOrganizationQuery: AllStoresByOrganizationQuery,
172221
172259
  ConvertDevToTestStoreQuery: ConvertDevToTestStoreQuery,
172222
172260
  ExtensionCreateQuery: ExtensionCreateQuery,
172261
+ ExtensionSpecificationsQuery: ExtensionSpecificationsQuery,
172262
+ AllAppExtensionRegistrationsQuery: AllAppExtensionRegistrationsQuery,
172223
172263
  FindProductVariantQuery: FindProductVariantQuery
172224
172264
  });
172225
172265
 
@@ -172860,4 +172900,4 @@ var plugins = /*#__PURE__*/Object.freeze({
172860
172900
  });
172861
172901
 
172862
172902
  export { npm as A, port as B, cli as C, id as D, temporary as E, FormData$3 as F, dotEnv as G, constants$2 as H, plugins as I, File$1 as a, string as b, github as c, dependency as d, error$j as e, file$1 as f, git as g, os$2 as h, environment as i, session as j, schema$2 as k, toml as l, store as m, api as n, output as o, path$w as p, http$2 as q, archiver as r, system as s, template as t, ui as u, version as v, checksum as w, ruby as x, yaml as y, semver as z };
172863
- //# sourceMappingURL=index-cf216492.js.map
172903
+ //# sourceMappingURL=index-117ce1ba.js.map