@atlaskit/editor-common 107.15.0 → 107.16.1

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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 107.16.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`15e6a5bb98ed5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15e6a5bb98ed5) -
14
+ ED-28780 fix pref url in isolated cloud
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 107.15.0
4
21
 
5
22
  ### Minor Changes
@@ -7,8 +7,12 @@ exports.getLinkPreferencesURLFromENV = exports.getActiveLinkMark = void 0;
7
7
  exports.isLinkAtPos = isLinkAtPos;
8
8
  exports.isTextAtPos = isTextAtPos;
9
9
  var _atlassianContext = require("@atlaskit/atlassian-context");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
11
12
  var _constants = require("./constants");
13
+ var STAGING = 'staging';
14
+ var PRODUCTION = 'prod';
15
+ var DEV = 'dev';
12
16
  function isTextAtPos(pos) {
13
17
  return function (_ref) {
14
18
  var tr = _ref.tr;
@@ -23,6 +27,10 @@ function isLinkAtPos(pos) {
23
27
  };
24
28
  }
25
29
  var getLinkPreferencesURLFromENV = exports.getLinkPreferencesURLFromENV = function getLinkPreferencesURLFromENV() {
30
+ if ((0, _platformFeatureFlags.fg)('platform_fix_preferences_url_in_isolated_cloud')) {
31
+ var envType = process.env.CLOUD_ENV === 'staging' ? STAGING : PRODUCTION;
32
+ return (0, _atlassianContext.getDomainInContext)('id', envType) + _constants.linkPreferencesPath;
33
+ }
26
34
  return (0, _atlassianContext.getATLContextUrl)('id') + _constants.linkPreferencesPath;
27
35
  };
28
36
  var isSelectionInsideLink = function isSelectionInsideLink(state) {
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "107.14.0";
19
+ var packageVersion = "107.16.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "107.14.0";
26
+ var packageVersion = "107.16.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -1,6 +1,10 @@
1
- import { getATLContextUrl } from '@atlaskit/atlassian-context';
1
+ import { getATLContextUrl, getDomainInContext } from '@atlaskit/atlassian-context';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { linkPreferencesPath } from './constants';
5
+ const STAGING = 'staging';
6
+ const PRODUCTION = 'prod';
7
+ const DEV = 'dev';
4
8
  export function isTextAtPos(pos) {
5
9
  return ({
6
10
  tr
@@ -16,6 +20,10 @@ export function isLinkAtPos(pos) {
16
20
  };
17
21
  }
18
22
  export const getLinkPreferencesURLFromENV = () => {
23
+ if (fg('platform_fix_preferences_url_in_isolated_cloud')) {
24
+ const envType = process.env.CLOUD_ENV === 'staging' ? STAGING : PRODUCTION;
25
+ return getDomainInContext('id', envType) + linkPreferencesPath;
26
+ }
19
27
  return getATLContextUrl('id') + linkPreferencesPath;
20
28
  };
21
29
  const isSelectionInsideLink = state => !!state.doc.type.schema.marks.link.isInSet(state.selection.$from.marks());
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "107.14.0";
4
+ const packageVersion = "107.16.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "107.14.0";
16
+ const packageVersion = "107.16.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -1,6 +1,10 @@
1
- import { getATLContextUrl } from '@atlaskit/atlassian-context';
1
+ import { getATLContextUrl, getDomainInContext } from '@atlaskit/atlassian-context';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { linkPreferencesPath } from './constants';
5
+ var STAGING = 'staging';
6
+ var PRODUCTION = 'prod';
7
+ var DEV = 'dev';
4
8
  export function isTextAtPos(pos) {
5
9
  return function (_ref) {
6
10
  var tr = _ref.tr;
@@ -15,6 +19,10 @@ export function isLinkAtPos(pos) {
15
19
  };
16
20
  }
17
21
  export var getLinkPreferencesURLFromENV = function getLinkPreferencesURLFromENV() {
22
+ if (fg('platform_fix_preferences_url_in_isolated_cloud')) {
23
+ var envType = process.env.CLOUD_ENV === 'staging' ? STAGING : PRODUCTION;
24
+ return getDomainInContext('id', envType) + linkPreferencesPath;
25
+ }
18
26
  return getATLContextUrl('id') + linkPreferencesPath;
19
27
  };
20
28
  var isSelectionInsideLink = function isSelectionInsideLink(state) {
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "107.14.0";
10
+ var packageVersion = "107.16.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "107.14.0";
23
+ var packageVersion = "107.16.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.15.0",
3
+ "version": "107.16.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -141,10 +141,10 @@
141
141
  "@atlaskit/editor-shared-styles": "^3.5.0",
142
142
  "@atlaskit/editor-tables": "^2.9.0",
143
143
  "@atlaskit/emoji": "^69.3.0",
144
- "@atlaskit/icon": "^27.8.0",
144
+ "@atlaskit/icon": "^27.9.0",
145
145
  "@atlaskit/icon-object": "^7.1.0",
146
146
  "@atlaskit/link": "^3.2.0",
147
- "@atlaskit/link-datasource": "^4.17.0",
147
+ "@atlaskit/link-datasource": "^4.18.0",
148
148
  "@atlaskit/link-picker": "^3.9.0",
149
149
  "@atlaskit/media-card": "^79.4.0",
150
150
  "@atlaskit/media-client": "^35.2.0",
@@ -161,7 +161,7 @@
161
161
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
162
162
  "@atlaskit/popper": "^7.1.0",
163
163
  "@atlaskit/primitives": "^14.11.0",
164
- "@atlaskit/profilecard": "^23.21.0",
164
+ "@atlaskit/profilecard": "^24.0.0",
165
165
  "@atlaskit/react-ufo": "^4.1.0",
166
166
  "@atlaskit/section-message": "^8.5.0",
167
167
  "@atlaskit/smart-card": "^40.6.0",
@@ -171,8 +171,8 @@
171
171
  "@atlaskit/task-decision": "^19.2.0",
172
172
  "@atlaskit/textfield": "^8.0.0",
173
173
  "@atlaskit/theme": "^19.0.0",
174
- "@atlaskit/tmp-editor-statsig": "^9.20.0",
175
- "@atlaskit/tokens": "^5.6.0",
174
+ "@atlaskit/tmp-editor-statsig": "^9.22.0",
175
+ "@atlaskit/tokens": "^6.0.0",
176
176
  "@atlaskit/tooltip": "^20.4.0",
177
177
  "@atlaskit/width-detector": "^5.0.0",
178
178
  "@babel/runtime": "^7.0.0",
@@ -354,6 +354,9 @@
354
354
  "platform_editor_legacy_content_macro_visual_update": {
355
355
  "type": "boolean"
356
356
  },
357
+ "platform_fix_preferences_url_in_isolated_cloud": {
358
+ "type": "boolean"
359
+ },
357
360
  "platform_editor_find_and_replace_improvements_1": {
358
361
  "type": "boolean"
359
362
  },