@forge/cli-shared 6.8.0-next.7 → 6.8.0-next.8

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,11 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 6.8.0-next.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 0aad197: Change product wording to context
8
+
3
9
  ## 6.8.0-next.7
4
10
 
5
11
  ### Patch Changes
package/out/ui/text.js CHANGED
@@ -62,7 +62,7 @@ exports.Text = {
62
62
  `\nRun ${command('npm', 'install', '-g', `${cli_details_1.FORGE_CLI_PACKAGE}@latest`)} to update from version ${chalk_1.default.bold(installed)} to ${chalk_1.default.bold(latest)}.` +
63
63
  `\n`,
64
64
  outdatedNodeVersion: (compatibleNodeVersion, currentNodeVersion) => fatalError(`Unsupported Node.js version. The CLI requires Node.js ${compatibleNodeVersion}, but you're using Node.js ${currentNodeVersion}.`),
65
- missingProductNameValue: 'Product parameter requires a product name. Rerun the command with a valid product name.',
65
+ missingProductNameValue: 'Parameter requires a context name. Rerun the command with a valid context name.',
66
66
  invalidContext: (validContexts) => `Invalid context. Rerun ${chalk_1.default.bold('forge install')} with ${validContexts.length > 0
67
67
  ? `one of the following valid contexts: ${validContexts.join(', ')}`
68
68
  : 'a valid context'}.`,
@@ -115,9 +115,9 @@ exports.Text = {
115
115
  },
116
116
  maxSizeOfUsersWithAccess: 10,
117
117
  installationContext: {
118
- overviewProduct: 'Select the product your app uses.\n',
119
- promptProduct: 'Select a product:',
120
- promptOptionalProducts: 'Select optional products:',
118
+ overviewProduct: 'Select the context your app uses.\n',
119
+ promptProduct: 'Select a context:',
120
+ promptOptionalProducts: 'Select optional contexts:',
121
121
  overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
122
122
  overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
123
123
  promptSite: 'Enter the site URL:',
@@ -128,7 +128,7 @@ exports.Text = {
128
128
  promptInstallation: 'Select the site or workspace to upgrade:'
129
129
  },
130
130
  optionSite: 'site URL (example.atlassian.net)',
131
- optionProduct: (supportedProducts) => `product (${supportedProducts.join(', ')})`,
131
+ optionProduct: (supportedProducts) => `context (${supportedProducts.join(', ')})`,
132
132
  optionVerbose: 'enable verbose mode',
133
133
  optionJson: 'output results in JSON format',
134
134
  invalidCmd: (command) => `’${command}’ is not a Forge command.`,
@@ -560,7 +560,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
560
560
  info: 'Note: Changes to the properties below may trigger major version updates in Atlassian systems.\n',
561
561
  headers: ['Property', 'Description'],
562
562
  descriptions: {
563
- scopes: 'Product scopes that the app has access to',
563
+ scopes: 'Context scopes that the app has access to',
564
564
  egress: 'Network permissions',
565
565
  policies: 'Content security policies (Custom UI)',
566
566
  functions: 'Function modules used by the app',
@@ -691,9 +691,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
691
691
  end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
692
692
  },
693
693
  booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
694
- alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required product, ${chalk_1.default.bold(product)}.`,
695
- installingToRequiredProduct: (product) => `\nYour app will be installed into your required product, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any optional products.\n`,
696
- installingToOptionalProduct: (product) => `\nThis app will be installed as an optional product on ${product}.\n`,
694
+ alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required context, ${chalk_1.default.bold(product)}.`,
695
+ installingToRequiredProduct: (product) => `\nYour app will be installed into your required context, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any optional contexts.\n`,
696
+ installingToOptionalProduct: (product) => `\nThis app will be installed as an optional context on ${product}.\n`,
697
697
  installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
698
698
  bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
699
699
  bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
@@ -707,7 +707,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
707
707
  .join('\n')}\n`,
708
708
  listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
709
709
  permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${forge('deploy', '-e', (0, environment_1.environmentToOption)(environment))} before installing.\n`,
710
- multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple products.\nRun ${forge('install')} for each of the following:\n${itemList([
710
+ multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple contexts.\nRun ${forge('install')} for each of the following:\n${itemList([
711
711
  ...productsToUpgrade.map((product) => forge('install', '--upgrade', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment))),
712
712
  ...productsToInstall.map((product) => forge('install', '-p', (0, case_1.capital)(product), '-s', site, '-e', (0, environment_1.environmentToOption)(environment)))
713
713
  ])}`,
@@ -735,7 +735,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
735
735
  'in the developer console and share it with the site admin: ' +
736
736
  `https://developer.atlassian.com/console/myapps/${appId}/distribution`
737
737
  },
738
- failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any products on ${chalk_1.default.bold(site)}.`,
738
+ failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any contexts on ${chalk_1.default.bold(site)}.`,
739
739
  security: {
740
740
  banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
741
741
  Forge apps installed on ${site} must comply with our corporate security guidelines.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "6.8.0-next.7",
3
+ "version": "6.8.0-next.8",
4
4
  "description": "Common functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",