@forge/cli-shared 6.11.0-next.8 → 6.11.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 +111 -0
- package/out/graphql/app-environment-graphql-client.d.ts +1 -0
- package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
- package/out/graphql/graphql-types.d.ts +1353 -39
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +112 -26
- package/out/shared/error-handling.d.ts +3 -0
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +7 -1
- package/out/ui/text.d.ts +17 -9
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +34 -26
- package/package.json +4 -4
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAoBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAsD,CAAC;AAoDjG,eAAO,MAAM,IAAI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,OAAO;0BAI3D,MAAM,UAAU,MAAM,eAAe,MAAM;;;;;oBAYjD,MAAM;;;;;;;;;qCAYS,MAAM;;;;;;;;;oCAWL,MAAM;;;;;;;;;;oCAYN,MAAM,WAAW,MAAM;kCAMzB,MAAM,sBAAsB,MAAM,KAAG,MAAM;;sBAUvD,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAe7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;;;;;;;;;;;;;wCAiBrD,MAAM;;;wCAGN,MAAM;;;;;;;;;;;;;;;;;;;;;;qCAsBX,MAAM;;;;;;;;;;;0CAWC,MAAM;;;;;;;;;;;;;qCAaX,MAAM;;gCAEX,MAAM;;;;;;;yBAQX,MAAM,WAAW,MAAM;;;;qCAMb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;6CAiBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAUvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -502,6 +502,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
502
502
|
option: {
|
|
503
503
|
version1: '1st version to compare',
|
|
504
504
|
version2: '2nd version to compare',
|
|
505
|
+
environment1: '1st environment to compare',
|
|
506
|
+
environment2: '2nd environment to compare',
|
|
505
507
|
outFile: 'specify a file to output the results'
|
|
506
508
|
},
|
|
507
509
|
desc: `returns the details of two versions of the app for comparison. Details include:\n${itemList([
|
|
@@ -519,9 +521,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
519
521
|
start: 'Comparing app versions...',
|
|
520
522
|
end: 'Comparing app versions...',
|
|
521
523
|
details: {
|
|
522
|
-
banner: (
|
|
523
|
-
const
|
|
524
|
-
|
|
524
|
+
banner: (input) => {
|
|
525
|
+
const env1Display = exports.Text.env.displayEnvironment(input.env1Key, input.env1Type);
|
|
526
|
+
const env2Display = input.env2Key && input.env2Type ? exports.Text.env.displayEnvironment(input.env2Key, input.env2Type) : '';
|
|
527
|
+
if (env2Display) {
|
|
528
|
+
return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} in ${env1Display}] and [${chalk_1.default.bold(input.version2)} in ${env2Display}] is shown below:`;
|
|
529
|
+
}
|
|
530
|
+
return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} and ${chalk_1.default.bold(input.version2)}] in [${env1Display}] is shown below:`;
|
|
525
531
|
}
|
|
526
532
|
}
|
|
527
533
|
},
|
|
@@ -704,17 +710,17 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
704
710
|
},
|
|
705
711
|
build: {
|
|
706
712
|
cmd: {
|
|
707
|
-
desc: 'build your app',
|
|
713
|
+
desc: '[Preview] build your app',
|
|
708
714
|
startNotice: `Building your app. \n${ctrlC}\n`,
|
|
709
715
|
start: 'Building your app...',
|
|
710
|
-
success: (buildTag) => `Build successful with build tag: ${buildTag}`
|
|
716
|
+
success: (buildTag) => `[Preview] Build successful with build tag: ${buildTag}`
|
|
711
717
|
},
|
|
712
718
|
buildTag: {
|
|
713
|
-
description: 'specify a custom build tag for build',
|
|
719
|
+
description: '[Preview] specify a custom build tag for build',
|
|
714
720
|
error: {
|
|
715
721
|
invalidBuildTag: (maxLength) => `Invalid build tag; tag must be ${maxLength} characters or less.`,
|
|
716
722
|
emptyBuildTag: 'Invalid build tag; tag cannot be empty.',
|
|
717
|
-
invalidBuildTagFormat: 'Invalid build tag;
|
|
723
|
+
invalidBuildTagFormat: 'Invalid build tag; tags are case-insensitive and must start with a letter or number and can only contain alphanumeric characters, underscores, hyphens, and periods.'
|
|
718
724
|
}
|
|
719
725
|
},
|
|
720
726
|
taskLint: {
|
|
@@ -726,23 +732,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
726
732
|
},
|
|
727
733
|
list: {
|
|
728
734
|
cmd: {
|
|
729
|
-
desc: 'list
|
|
735
|
+
desc: '[Preview] list builds for your app'
|
|
730
736
|
},
|
|
731
|
-
limit:
|
|
732
|
-
listingBuilds: 'Showing
|
|
737
|
+
limit: (defaultLimit) => `Specify the number of builds to show (default is ${defaultLimit})`,
|
|
738
|
+
listingBuilds: '[Preview] Showing builds for your app:',
|
|
733
739
|
noBuildsFound: 'No builds found.',
|
|
734
|
-
expires: (hours) => {
|
|
735
|
-
if (hours <= 24)
|
|
736
|
-
return chalk_1.default.red('in 24 hours');
|
|
737
|
-
if (hours <= 48)
|
|
738
|
-
return chalk_1.default.yellow('in 48 hours');
|
|
739
|
-
return `in ${Math.floor(hours / 24)} days`;
|
|
740
|
-
},
|
|
741
740
|
error: {
|
|
742
|
-
|
|
743
|
-
invalidLimit: 'Limit must contain only numbers',
|
|
744
|
-
negativeLimit: 'Limit must be a positive number',
|
|
745
|
-
invalidNumber: 'Invalid number format'
|
|
741
|
+
invalidLimit: 'Invalid limit; limit can only contain positive integers.'
|
|
746
742
|
}
|
|
747
743
|
},
|
|
748
744
|
manifestVariables: {
|
|
@@ -752,10 +748,19 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
752
748
|
deploy: {
|
|
753
749
|
cmd: {
|
|
754
750
|
desc: 'deploy your app to an environment',
|
|
755
|
-
start1: (envKey, envType) =>
|
|
756
|
-
|
|
751
|
+
start1: (envKey, envType, buildTag) => {
|
|
752
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
753
|
+
return `Deploying your app${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`;
|
|
754
|
+
},
|
|
755
|
+
start2: (appName, envKey, envType, buildTag) => {
|
|
756
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
757
|
+
return `Deploying ${appName}${buildTagText} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
|
|
758
|
+
},
|
|
757
759
|
success: 'Deployed\n',
|
|
758
|
-
successDetails: (appName, envKey, envType) =>
|
|
760
|
+
successDetails: (appName, envKey, envType, buildTag) => {
|
|
761
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
762
|
+
return `Deployed ${appName}${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`;
|
|
763
|
+
},
|
|
759
764
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${forge('install')}.\n` +
|
|
760
765
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
761
766
|
`https://developer.atlassian.com/console/myapps/${appId}/manage/distribution`
|
|
@@ -770,6 +775,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
770
775
|
hasNoAppInstallationsForEnv: {
|
|
771
776
|
hasNoAppInstallationsForEnvError: log_color_1.LogColor.error(`Error: The deployment failed due to errors while trying to determine if the app has any installations for the deployed environment.`)
|
|
772
777
|
},
|
|
778
|
+
environmentKey: {
|
|
779
|
+
missingEnvironmentKeyError: log_color_1.LogColor.error('Environment must be specified when deploying your app.')
|
|
780
|
+
},
|
|
773
781
|
majorVersion: {
|
|
774
782
|
description: 'specify a major version to update (Preview)',
|
|
775
783
|
warning: (majorVersion) => `${chalk_1.default.bold('Warning:')} You\'re about to deploy changes to major version ${majorVersion} of your app. All sites using version ${majorVersion} will automatically apply these changes.\n`,
|
|
@@ -777,7 +785,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
777
785
|
invalidMajorVersionError: 'Invalid major version number'
|
|
778
786
|
},
|
|
779
787
|
buildTag: {
|
|
780
|
-
description: 'specify a build tag to deploy (from forge build)'
|
|
788
|
+
description: '[Preview] specify a build tag to deploy (from forge build)'
|
|
781
789
|
},
|
|
782
790
|
connectKeyChange: {
|
|
783
791
|
continueChange: `Do you wish to continue with changing the Connect key?`,
|
|
@@ -846,7 +854,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
846
854
|
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
847
855
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
848
856
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
849
|
-
devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to
|
|
857
|
+
devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to install a development app to a production site. If you do not intend to test your app, we strongly recommend that you deploy your app to production and install the production version instead.`,
|
|
850
858
|
devAppInstallConfirm: `Are you sure you want to proceed?`,
|
|
851
859
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
852
860
|
optionUpgrade: 'upgrade an existing installation',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.11.0
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "9.3.0
|
|
16
|
-
"@forge/util": "1.4.
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
15
|
+
"@forge/manifest": "9.3.0",
|
|
16
|
+
"@forge/util": "1.4.9",
|
|
17
|
+
"@forge/i18n": "0.0.6",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|