@forge/csp 5.0.0 → 5.0.1-next.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,12 @@
1
1
  # @forge/csp
2
2
 
3
+ ## 5.0.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 278cd16: Add allow-popups and allow-popups-to-escape-sandbox to sandbox attribute in cspInjectionService
8
+ - 3620005: Change PTC URLs to teams for gradient assets
9
+
3
10
  ## 5.0.0
4
11
 
5
12
  ### Major Changes
@@ -43,9 +43,9 @@ const ATLASSIAN_HOST = {
43
43
  'ic-prod': (_icOptions) => 'avatar-management--avatars.us-west-2.prod.public.atl-paas.net'
44
44
  },
45
45
  ATLASSIAN_TEAM_HEADER_HOST: {
46
- dev: 'https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/gradients/',
47
- stg: 'https://ptc-directory-sited-static.us-east-1.staging.public.atl-paas.net/gradients/',
48
- prod: 'https://ptc-directory-sited-static.us-east-1.prod.public.atl-paas.net/gradients/',
46
+ dev: 'https://teams-directory-frontend.stg-east.frontend.public.atl-paas.net/assets/gradients/',
47
+ stg: 'https://teams-directory-frontend.stg-east.frontend.public.atl-paas.net/assets/gradients/',
48
+ prod: 'https://teams-directory-frontend.prod-east.frontend.public.atl-paas.net/assets/gradients/',
49
49
  'fedramp-stg': 'https://teams-directory-frontend.frontend.cdn.atlassian-us-gov-mod.com/assets/',
50
50
  'fedramp-prod': 'https://teams-directory-frontend.frontend.cdn.atlassian-us-gov-mod.com/assets/',
51
51
  ...makeICHosts((env, icOptions) => `https://teams-directory-frontend.services.${getICDomain(env, icOptions)}/bfa/`)
@@ -147,7 +147,7 @@ class CSPInjectionService {
147
147
  `script-src ${scriptSrc}`,
148
148
  `style-src ${styleSrc}`,
149
149
  `form-action 'self'`,
150
- `sandbox allow-downloads allow-forms allow-modals allow-pointer-lock allow-same-origin allow-scripts`,
150
+ `sandbox allow-popups allow-popups-to-escape-sandbox allow-downloads allow-forms allow-modals allow-pointer-lock allow-same-origin allow-scripts`,
151
151
  `report-uri ${reportUri}`
152
152
  ];
153
153
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/csp",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-next.0",
4
4
  "description": "Contains the CSP configuration for Custom UI resources in Forge",
5
5
  "main": "out/index.js",
6
6
  "author": "Atlassian",
@@ -11,8 +11,8 @@
11
11
  "clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo"
12
12
  },
13
13
  "devDependencies": {
14
- "@forge/cli-shared": "8.4.0",
15
- "@forge/manifest": "10.3.0",
14
+ "@forge/cli-shared": "8.5.0-next.8",
15
+ "@forge/manifest": "10.4.0-next.3",
16
16
  "@types/jest": "^29.5.14",
17
17
  "@types/node": "20.19.1",
18
18
  "cheerio": "^1.1.0"