@atlaskit/editor-common 107.15.0 → 107.16.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 +11 -0
- package/dist/cjs/link/utils.js +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/link/utils.js +9 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/link/utils.js +9 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`15e6a5bb98ed5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15e6a5bb98ed5) -
|
|
8
|
+
ED-28780 fix pref url in isolated cloud
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 107.15.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/cjs/link/utils.js
CHANGED
|
@@ -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.
|
|
19
|
+
var packageVersion = "107.15.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.
|
|
26
|
+
var packageVersion = "107.15.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.
|
|
4
|
+
const packageVersion = "107.15.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.
|
|
16
|
+
const packageVersion = "107.15.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
package/dist/esm/link/utils.js
CHANGED
|
@@ -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.
|
|
10
|
+
var packageVersion = "107.15.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.
|
|
23
|
+
var packageVersion = "107.15.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.
|
|
3
|
+
"version": "107.16.0",
|
|
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/"
|
|
@@ -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": "^
|
|
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",
|
|
@@ -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
|
},
|