@atlaskit/editor-common 106.6.0 → 106.6.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 +6 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/utils.js +1 -22
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/utils.js +1 -22
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/utils.js +1 -22
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/events.d.ts +4 -4
- package/dist/types/types/type-ahead.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +4 -4
- package/dist/types-ts4.5/types/type-ahead.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -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 = "106.6.
|
|
19
|
+
var packageVersion = "106.6.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -9,7 +9,6 @@ exports.memoProcessQuickInsertItems = void 0;
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _fuse = _interopRequireDefault(require("fuse.js"));
|
|
11
11
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
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; }
|
|
14
13
|
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; }
|
|
15
14
|
var processQuickInsertItems = function processQuickInsertItems(items, intl) {
|
|
@@ -38,26 +37,6 @@ var memoProcessQuickInsertItems = exports.memoProcessQuickInsertItems = function
|
|
|
38
37
|
});
|
|
39
38
|
};
|
|
40
39
|
var options = {
|
|
41
|
-
threshold: 0.3,
|
|
42
|
-
includeScore: true,
|
|
43
|
-
keys: [{
|
|
44
|
-
name: 'title',
|
|
45
|
-
weight: 0.57
|
|
46
|
-
}, {
|
|
47
|
-
name: 'priority',
|
|
48
|
-
weight: 0.3
|
|
49
|
-
}, {
|
|
50
|
-
name: 'keywords',
|
|
51
|
-
weight: 0.08
|
|
52
|
-
}, {
|
|
53
|
-
name: 'description',
|
|
54
|
-
weight: 0.04
|
|
55
|
-
}, {
|
|
56
|
-
name: 'keyshortcut',
|
|
57
|
-
weight: 0.01
|
|
58
|
-
}]
|
|
59
|
-
};
|
|
60
|
-
var optionsWithPriorityRemoved = {
|
|
61
40
|
threshold: 0.3,
|
|
62
41
|
includeScore: true,
|
|
63
42
|
keys: [{
|
|
@@ -90,7 +69,7 @@ function find(query, items, prioritySortingFn) {
|
|
|
90
69
|
return (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY);
|
|
91
70
|
});
|
|
92
71
|
}
|
|
93
|
-
var fuseOptions = _objectSpread({},
|
|
72
|
+
var fuseOptions = _objectSpread({}, options);
|
|
94
73
|
if (prioritySortingFn) {
|
|
95
74
|
var sortFn = prioritySortingFn(items);
|
|
96
75
|
// prioritySortingFn will trigger the experiment exposure, but sortFn
|
|
@@ -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 = "106.6.
|
|
26
|
+
var packageVersion = "106.6.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -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 = "106.6.
|
|
4
|
+
const packageVersion = "106.6.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Fuse from 'fuse.js';
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
const processQuickInsertItems = (items, intl) => {
|
|
5
4
|
return items.reduce((acc, item) => {
|
|
6
5
|
if (typeof item === 'function' &&
|
|
@@ -23,26 +22,6 @@ export const memoProcessQuickInsertItems = (items, intl) => {
|
|
|
23
22
|
return memoizedResults.flatMap(item => typeof item === 'function' && item.disableMemo ? item(intl) : item);
|
|
24
23
|
};
|
|
25
24
|
const options = {
|
|
26
|
-
threshold: 0.3,
|
|
27
|
-
includeScore: true,
|
|
28
|
-
keys: [{
|
|
29
|
-
name: 'title',
|
|
30
|
-
weight: 0.57
|
|
31
|
-
}, {
|
|
32
|
-
name: 'priority',
|
|
33
|
-
weight: 0.3
|
|
34
|
-
}, {
|
|
35
|
-
name: 'keywords',
|
|
36
|
-
weight: 0.08
|
|
37
|
-
}, {
|
|
38
|
-
name: 'description',
|
|
39
|
-
weight: 0.04
|
|
40
|
-
}, {
|
|
41
|
-
name: 'keyshortcut',
|
|
42
|
-
weight: 0.01
|
|
43
|
-
}]
|
|
44
|
-
};
|
|
45
|
-
const optionsWithPriorityRemoved = {
|
|
46
25
|
threshold: 0.3,
|
|
47
26
|
includeScore: true,
|
|
48
27
|
keys: [{
|
|
@@ -74,7 +53,7 @@ export function find(query, items, prioritySortingFn) {
|
|
|
74
53
|
return items.slice(0).sort((a, b) => (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY));
|
|
75
54
|
}
|
|
76
55
|
const fuseOptions = {
|
|
77
|
-
...
|
|
56
|
+
...options
|
|
78
57
|
};
|
|
79
58
|
if (prioritySortingFn) {
|
|
80
59
|
const sortFn = prioritySortingFn(items);
|
|
@@ -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 = "106.6.
|
|
16
|
+
const packageVersion = "106.6.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -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 = "106.6.
|
|
10
|
+
var packageVersion = "106.6.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import Fuse from 'fuse.js';
|
|
5
5
|
import memoizeOne from 'memoize-one';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
var processQuickInsertItems = function processQuickInsertItems(items, intl) {
|
|
8
7
|
return items.reduce(function (acc, item) {
|
|
9
8
|
if (typeof item === 'function' &&
|
|
@@ -30,26 +29,6 @@ export var memoProcessQuickInsertItems = function memoProcessQuickInsertItems(it
|
|
|
30
29
|
});
|
|
31
30
|
};
|
|
32
31
|
var options = {
|
|
33
|
-
threshold: 0.3,
|
|
34
|
-
includeScore: true,
|
|
35
|
-
keys: [{
|
|
36
|
-
name: 'title',
|
|
37
|
-
weight: 0.57
|
|
38
|
-
}, {
|
|
39
|
-
name: 'priority',
|
|
40
|
-
weight: 0.3
|
|
41
|
-
}, {
|
|
42
|
-
name: 'keywords',
|
|
43
|
-
weight: 0.08
|
|
44
|
-
}, {
|
|
45
|
-
name: 'description',
|
|
46
|
-
weight: 0.04
|
|
47
|
-
}, {
|
|
48
|
-
name: 'keyshortcut',
|
|
49
|
-
weight: 0.01
|
|
50
|
-
}]
|
|
51
|
-
};
|
|
52
|
-
var optionsWithPriorityRemoved = {
|
|
53
32
|
threshold: 0.3,
|
|
54
33
|
includeScore: true,
|
|
55
34
|
keys: [{
|
|
@@ -82,7 +61,7 @@ export function find(query, items, prioritySortingFn) {
|
|
|
82
61
|
return (a.priority || Number.POSITIVE_INFINITY) - (b.priority || Number.POSITIVE_INFINITY);
|
|
83
62
|
});
|
|
84
63
|
}
|
|
85
|
-
var fuseOptions = _objectSpread({},
|
|
64
|
+
var fuseOptions = _objectSpread({}, options);
|
|
86
65
|
if (prioritySortingFn) {
|
|
87
66
|
var sortFn = prioritySortingFn(items);
|
|
88
67
|
// prioritySortingFn will trigger the experiment exposure, but sortFn
|
|
@@ -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 = "106.6.
|
|
23
|
+
var packageVersion = "106.6.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -13,7 +13,7 @@ import type { AIProactiveEventPayload } from './ai-proactive-events';
|
|
|
13
13
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
14
14
|
import type { AlignmentEventPayload } from './alignment-events';
|
|
15
15
|
import type { AvatarEventPayload } from './avatar';
|
|
16
|
-
import {
|
|
16
|
+
import type { BreakoutEventPayload } from './breakout-events';
|
|
17
17
|
import type { TextColorEventPayload } from './color-events';
|
|
18
18
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
19
19
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
@@ -36,10 +36,10 @@ import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettin
|
|
|
36
36
|
import type { ListEventPayload } from './list-events';
|
|
37
37
|
import type { LoomEventPayload } from './loom-events';
|
|
38
38
|
import type { MediaEventPayload } from './media-events';
|
|
39
|
-
import {
|
|
39
|
+
import type { MentionEventPayload } from './mention-events';
|
|
40
40
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
41
|
-
import { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
42
|
-
import {
|
|
41
|
+
import type { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
42
|
+
import type { NestedTableActionsEventPayload } from './nested-table-events';
|
|
43
43
|
import type { NodeEventPayload } from './node-events';
|
|
44
44
|
import type { OfflineEditingEventPayload } from './offline-editing-event';
|
|
45
45
|
import type { PasteEventPayload } from './paste-events';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { IntlShape } from 'react-intl-next';
|
|
3
3
|
import { type Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { TypeAheadPayload } from '../analytics/types/type-ahead';
|
|
@@ -13,7 +13,7 @@ import type { AIProactiveEventPayload } from './ai-proactive-events';
|
|
|
13
13
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
14
14
|
import type { AlignmentEventPayload } from './alignment-events';
|
|
15
15
|
import type { AvatarEventPayload } from './avatar';
|
|
16
|
-
import {
|
|
16
|
+
import type { BreakoutEventPayload } from './breakout-events';
|
|
17
17
|
import type { TextColorEventPayload } from './color-events';
|
|
18
18
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
19
19
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
@@ -36,10 +36,10 @@ import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettin
|
|
|
36
36
|
import type { ListEventPayload } from './list-events';
|
|
37
37
|
import type { LoomEventPayload } from './loom-events';
|
|
38
38
|
import type { MediaEventPayload } from './media-events';
|
|
39
|
-
import {
|
|
39
|
+
import type { MentionEventPayload } from './mention-events';
|
|
40
40
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
41
|
-
import { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
42
|
-
import {
|
|
41
|
+
import type { NcsSessionStepEventAEP } from './ncs-session-step-events';
|
|
42
|
+
import type { NestedTableActionsEventPayload } from './nested-table-events';
|
|
43
43
|
import type { NodeEventPayload } from './node-events';
|
|
44
44
|
import type { OfflineEditingEventPayload } from './offline-editing-event';
|
|
45
45
|
import type { PasteEventPayload } from './paste-events';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { IntlShape } from 'react-intl-next';
|
|
3
3
|
import { type Fragment, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { TypeAheadPayload } from '../analytics/types/type-ahead';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "106.6.
|
|
3
|
+
"version": "106.6.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/"
|
|
@@ -170,7 +170,7 @@
|
|
|
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": "^7.0.0",
|
|
174
174
|
"@atlaskit/tokens": "^5.1.0",
|
|
175
175
|
"@atlaskit/tooltip": "^20.3.0",
|
|
176
176
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -299,9 +299,6 @@
|
|
|
299
299
|
"forge-ui-macro-autoconvert": {
|
|
300
300
|
"type": "boolean"
|
|
301
301
|
},
|
|
302
|
-
"platform_editor_remove_quick_insert_priority_key": {
|
|
303
|
-
"type": "boolean"
|
|
304
|
-
},
|
|
305
302
|
"platform_editor_add_media_from_url_rollout": {
|
|
306
303
|
"type": "boolean"
|
|
307
304
|
},
|