@atlaskit/editor-common 107.0.4 → 107.0.6
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 +15 -0
- package/dist/cjs/link/utils.js +2 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/link/utils.js +2 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/link/utils.js +2 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 107.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#173379](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173379)
|
|
14
|
+
[`99e2b882f5cf0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/99e2b882f5cf0) -
|
|
15
|
+
Clean up platform_editor_controls_patch_3
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 107.0.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/link/utils.js
CHANGED
|
@@ -7,7 +7,6 @@ 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");
|
|
11
10
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
11
|
var _constants = require("./constants");
|
|
13
12
|
function isTextAtPos(pos) {
|
|
@@ -60,7 +59,7 @@ var getActiveLinkMark = exports.getActiveLinkMark = function getActiveLinkMark(s
|
|
|
60
59
|
pos: pos
|
|
61
60
|
} : undefined;
|
|
62
61
|
}
|
|
63
|
-
if (isEmptySelectionBeforeLink(state) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
62
|
+
if (isEmptySelectionBeforeLink(state) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
64
63
|
// if user clicks right before the link, we want to show the toolbar for the link
|
|
65
64
|
// but only if the link is a single character
|
|
66
65
|
var _node = state.doc.nodeAt($from.pos);
|
|
@@ -69,7 +68,7 @@ var getActiveLinkMark = exports.getActiveLinkMark = function getActiveLinkMark(s
|
|
|
69
68
|
pos: $from.pos
|
|
70
69
|
} : undefined;
|
|
71
70
|
}
|
|
72
|
-
if (isEmptySelectionAfterLink(state) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
71
|
+
if (isEmptySelectionAfterLink(state) && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
73
72
|
// if user clicks right after the link, we want to show the toolbar for the link
|
|
74
73
|
// but only if the link is a single character
|
|
75
74
|
// and we return the position of the link
|
|
@@ -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.0.
|
|
19
|
+
var packageVersion = "107.0.5";
|
|
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.0.
|
|
26
|
+
var packageVersion = "107.0.5";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
import { linkPreferencesPath } from './constants';
|
|
5
4
|
export function isTextAtPos(pos) {
|
|
@@ -58,7 +57,7 @@ export const getActiveLinkMark = state => {
|
|
|
58
57
|
pos
|
|
59
58
|
} : undefined;
|
|
60
59
|
}
|
|
61
|
-
if (isEmptySelectionBeforeLink(state) && editorExperiment('platform_editor_controls', 'variant1')
|
|
60
|
+
if (isEmptySelectionBeforeLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
62
61
|
// if user clicks right before the link, we want to show the toolbar for the link
|
|
63
62
|
// but only if the link is a single character
|
|
64
63
|
const node = state.doc.nodeAt($from.pos);
|
|
@@ -67,7 +66,7 @@ export const getActiveLinkMark = state => {
|
|
|
67
66
|
pos: $from.pos
|
|
68
67
|
} : undefined;
|
|
69
68
|
}
|
|
70
|
-
if (isEmptySelectionAfterLink(state) && editorExperiment('platform_editor_controls', 'variant1')
|
|
69
|
+
if (isEmptySelectionAfterLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
71
70
|
// if user clicks right after the link, we want to show the toolbar for the link
|
|
72
71
|
// but only if the link is a single character
|
|
73
72
|
// and we return the position of the link
|
|
@@ -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.0.
|
|
4
|
+
const packageVersion = "107.0.5";
|
|
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.0.
|
|
16
|
+
const packageVersion = "107.0.5";
|
|
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,5 +1,4 @@
|
|
|
1
1
|
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
3
|
import { linkPreferencesPath } from './constants';
|
|
5
4
|
export function isTextAtPos(pos) {
|
|
@@ -52,7 +51,7 @@ export var getActiveLinkMark = function getActiveLinkMark(state) {
|
|
|
52
51
|
pos: pos
|
|
53
52
|
} : undefined;
|
|
54
53
|
}
|
|
55
|
-
if (isEmptySelectionBeforeLink(state) && editorExperiment('platform_editor_controls', 'variant1')
|
|
54
|
+
if (isEmptySelectionBeforeLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
56
55
|
// if user clicks right before the link, we want to show the toolbar for the link
|
|
57
56
|
// but only if the link is a single character
|
|
58
57
|
var _node = state.doc.nodeAt($from.pos);
|
|
@@ -61,7 +60,7 @@ export var getActiveLinkMark = function getActiveLinkMark(state) {
|
|
|
61
60
|
pos: $from.pos
|
|
62
61
|
} : undefined;
|
|
63
62
|
}
|
|
64
|
-
if (isEmptySelectionAfterLink(state) && editorExperiment('platform_editor_controls', 'variant1')
|
|
63
|
+
if (isEmptySelectionAfterLink(state) && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
65
64
|
// if user clicks right after the link, we want to show the toolbar for the link
|
|
66
65
|
// but only if the link is a single character
|
|
67
66
|
// and we return the position of the link
|
|
@@ -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.0.
|
|
10
|
+
var packageVersion = "107.0.5";
|
|
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.0.
|
|
23
|
+
var packageVersion = "107.0.5";
|
|
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.0.
|
|
3
|
+
"version": "107.0.6",
|
|
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,16 +161,16 @@
|
|
|
161
161
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
162
162
|
"@atlaskit/popper": "^7.0.0",
|
|
163
163
|
"@atlaskit/primitives": "^14.9.0",
|
|
164
|
-
"@atlaskit/profilecard": "^23.
|
|
164
|
+
"@atlaskit/profilecard": "^23.20.0",
|
|
165
165
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
166
166
|
"@atlaskit/section-message": "^8.2.0",
|
|
167
|
-
"@atlaskit/smart-card": "^38.
|
|
167
|
+
"@atlaskit/smart-card": "^38.13.0",
|
|
168
168
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
169
169
|
"@atlaskit/spinner": "^18.0.0",
|
|
170
170
|
"@atlaskit/task-decision": "^19.2.0",
|
|
171
171
|
"@atlaskit/textfield": "^8.0.0",
|
|
172
172
|
"@atlaskit/theme": "^18.0.0",
|
|
173
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
173
|
+
"@atlaskit/tmp-editor-statsig": "^8.0.0",
|
|
174
174
|
"@atlaskit/tokens": "^5.3.0",
|
|
175
175
|
"@atlaskit/tooltip": "^20.3.0",
|
|
176
176
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -314,9 +314,6 @@
|
|
|
314
314
|
"platform_editor_nested_dnd_styles_changes": {
|
|
315
315
|
"type": "boolean"
|
|
316
316
|
},
|
|
317
|
-
"platform_editor_controls_patch_3": {
|
|
318
|
-
"type": "boolean"
|
|
319
|
-
},
|
|
320
317
|
"platform_editor_lcm_nested_panel_icon_fix": {
|
|
321
318
|
"type": "boolean"
|
|
322
319
|
},
|