@atlaskit/emoji 67.6.26 → 67.6.27

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,14 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 67.6.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112111](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112111)
8
+ [`431990381260c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/431990381260c) -
9
+ Remove isFedRamp check from emoji FE
10
+ - Updated dependencies
11
+
3
12
  ## 67.6.26
4
13
 
5
14
  ### Patch Changes
@@ -19,7 +19,6 @@ var _MediaEmojiCache = _interopRequireDefault(require("./MediaEmojiCache"));
19
19
  var _EmojiUtils = require("../EmojiUtils");
20
20
  var _TokenManager = _interopRequireDefault(require("./TokenManager"));
21
21
  var _logger = _interopRequireDefault(require("../../util/logger"));
22
- var _environment = require("../../util/environment");
23
22
  var _excluded = ["altRepresentations"];
24
23
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -187,7 +186,7 @@ var SiteEmojiResource = exports.default = /*#__PURE__*/function () {
187
186
  baseUrl: url
188
187
  });
189
188
  },
190
- useSha256ForUploads: (0, _environment.isFedRamp)() // SHA256 is not supported yet in commecrial regions
189
+ useSha256ForUploads: true
191
190
  });
192
191
  var subscription = mediaClient.file.upload({
193
192
  content: upload.dataURL,
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
19
19
  actionSubjectId: actionSubjectId,
20
20
  attributes: _objectSpread({
21
21
  packageName: "@atlaskit/emoji",
22
- packageVersion: "67.6.26"
22
+ packageVersion: "67.6.27"
23
23
  }, attributes)
24
24
  };
25
25
  };
@@ -6,7 +6,6 @@ import MediaEmojiCache from './MediaEmojiCache';
6
6
  import { denormaliseEmojiServiceResponse, emojiRequest, getAltRepresentation } from '../EmojiUtils';
7
7
  import TokenManager from './TokenManager';
8
8
  import debug from '../../util/logger';
9
- import { isFedRamp } from '../../util/environment';
10
9
  // Assume media is 95% of total upload time.
11
10
  export const mediaProportionOfProgress = 95 / 100;
12
11
  export default class SiteEmojiResource {
@@ -144,7 +143,7 @@ export default class SiteEmojiResource {
144
143
  token: uploadToken.jwt,
145
144
  baseUrl: url
146
145
  }),
147
- useSha256ForUploads: isFedRamp() // SHA256 is not supported yet in commecrial regions
146
+ useSha256ForUploads: true
148
147
  });
149
148
  const subscription = mediaClient.file.upload({
150
149
  content: upload.dataURL,
@@ -7,7 +7,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
7
7
  actionSubjectId,
8
8
  attributes: {
9
9
  packageName: "@atlaskit/emoji",
10
- packageVersion: "67.6.26",
10
+ packageVersion: "67.6.27",
11
11
  ...attributes
12
12
  }
13
13
  });
@@ -15,7 +15,6 @@ import MediaEmojiCache from './MediaEmojiCache';
15
15
  import { denormaliseEmojiServiceResponse, emojiRequest, getAltRepresentation } from '../EmojiUtils';
16
16
  import TokenManager from './TokenManager';
17
17
  import debug from '../../util/logger';
18
- import { isFedRamp } from '../../util/environment';
19
18
  // Assume media is 95% of total upload time.
20
19
  export var mediaProportionOfProgress = 95 / 100;
21
20
  var SiteEmojiResource = /*#__PURE__*/function () {
@@ -180,7 +179,7 @@ var SiteEmojiResource = /*#__PURE__*/function () {
180
179
  baseUrl: url
181
180
  });
182
181
  },
183
- useSha256ForUploads: isFedRamp() // SHA256 is not supported yet in commecrial regions
182
+ useSha256ForUploads: true
184
183
  });
185
184
  var subscription = mediaClient.file.upload({
186
185
  content: upload.dataURL,
@@ -12,7 +12,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
12
12
  actionSubjectId: actionSubjectId,
13
13
  attributes: _objectSpread({
14
14
  packageName: "@atlaskit/emoji",
15
- packageVersion: "67.6.26"
15
+ packageVersion: "67.6.27"
16
16
  }, attributes)
17
17
  };
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "67.6.26",
3
+ "version": "67.6.27",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,15 +38,15 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^9.3.0",
41
- "@atlaskit/button": "^17.22.0",
41
+ "@atlaskit/button": "^17.23.0",
42
42
  "@atlaskit/icon": "^22.4.0",
43
43
  "@atlaskit/media-client": "^27.3.0",
44
44
  "@atlaskit/media-client-react": "^2.0.0",
45
45
  "@atlaskit/primitives": "^8.0.0",
46
46
  "@atlaskit/spinner": "^16.2.0",
47
47
  "@atlaskit/textfield": "^6.4.0",
48
- "@atlaskit/theme": "^12.10.0",
49
- "@atlaskit/tokens": "^1.51.0",
48
+ "@atlaskit/theme": "^12.11.0",
49
+ "@atlaskit/tokens": "^1.52.0",
50
50
  "@atlaskit/tooltip": "^18.5.0",
51
51
  "@atlaskit/ufo": "^0.2.0",
52
52
  "@atlaskit/util-service-support": "^6.2.0",
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isFedRamp = isFedRamp;
7
- var FEDRAMP_MODERATE = 'fedramp-moderate';
8
-
9
- // Context: https://atlassian.slack.com/archives/C01CQRN5NLT/p1708564986013489?thread_ts=1708302544.655739&cid=C01CQRN5NLT
10
- // This is a temporary function to support SHA256 usage in FedRAMP
11
- // We cannot import the same-named function from @atlassian/atl-context due to emoji being a public package (and atl-context being private)
12
- // TODO: Remove this method and its usage once SHA256 is available in commercial envs for Media uploads
13
- function isFedRamp() {
14
- var _global$location;
15
- var global = globalThis;
16
- // MICROS_PERIMETER is already used by few products, so we need to keep it for backward compatibility
17
- var env = global.MICROS_PERIMETER || global.UNSAFE_ATL_CONTEXT_BOUNDARY;
18
- if (env) {
19
- return env === FEDRAMP_MODERATE;
20
- }
21
- var matches = (_global$location = global.location) === null || _global$location === void 0 || (_global$location = _global$location.hostname) === null || _global$location === void 0 ? void 0 : _global$location.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);
22
- return matches ? matches.length > 0 : false;
23
- }
@@ -1,17 +0,0 @@
1
- const FEDRAMP_MODERATE = 'fedramp-moderate';
2
-
3
- // Context: https://atlassian.slack.com/archives/C01CQRN5NLT/p1708564986013489?thread_ts=1708302544.655739&cid=C01CQRN5NLT
4
- // This is a temporary function to support SHA256 usage in FedRAMP
5
- // We cannot import the same-named function from @atlassian/atl-context due to emoji being a public package (and atl-context being private)
6
- // TODO: Remove this method and its usage once SHA256 is available in commercial envs for Media uploads
7
- export function isFedRamp() {
8
- var _global$location, _global$location$host;
9
- const global = globalThis;
10
- // MICROS_PERIMETER is already used by few products, so we need to keep it for backward compatibility
11
- const env = global.MICROS_PERIMETER || global.UNSAFE_ATL_CONTEXT_BOUNDARY;
12
- if (env) {
13
- return env === FEDRAMP_MODERATE;
14
- }
15
- const matches = (_global$location = global.location) === null || _global$location === void 0 ? void 0 : (_global$location$host = _global$location.hostname) === null || _global$location$host === void 0 ? void 0 : _global$location$host.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);
16
- return matches ? matches.length > 0 : false;
17
- }
@@ -1,17 +0,0 @@
1
- var FEDRAMP_MODERATE = 'fedramp-moderate';
2
-
3
- // Context: https://atlassian.slack.com/archives/C01CQRN5NLT/p1708564986013489?thread_ts=1708302544.655739&cid=C01CQRN5NLT
4
- // This is a temporary function to support SHA256 usage in FedRAMP
5
- // We cannot import the same-named function from @atlassian/atl-context due to emoji being a public package (and atl-context being private)
6
- // TODO: Remove this method and its usage once SHA256 is available in commercial envs for Media uploads
7
- export function isFedRamp() {
8
- var _global$location;
9
- var global = globalThis;
10
- // MICROS_PERIMETER is already used by few products, so we need to keep it for backward compatibility
11
- var env = global.MICROS_PERIMETER || global.UNSAFE_ATL_CONTEXT_BOUNDARY;
12
- if (env) {
13
- return env === FEDRAMP_MODERATE;
14
- }
15
- var matches = (_global$location = global.location) === null || _global$location === void 0 || (_global$location = _global$location.hostname) === null || _global$location === void 0 ? void 0 : _global$location.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);
16
- return matches ? matches.length > 0 : false;
17
- }
@@ -1 +0,0 @@
1
- export declare function isFedRamp(): boolean;
@@ -1 +0,0 @@
1
- export declare function isFedRamp(): boolean;