@atlaskit/editor-core 187.44.11 → 187.45.3
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 +12 -0
- package/dist/cjs/labs/next/presets/universal.js +1 -1
- package/dist/cjs/plugins/type-ahead/api.js +2 -2
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +1 -1
- package/dist/es2019/plugins/type-ahead/api.js +1 -1
- package/dist/es2019/plugins/type-ahead/pm-plugins/reducer.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +1 -1
- package/dist/esm/plugins/type-ahead/api.js +1 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +6 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +6 -0
- package/package.json +5 -5
- package/report.api.md +2 -0
- package/tmp/api-report-tmp.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 187.45.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d48ef0409af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d48ef0409af) - ED-20003 decoupled editor-core from type-ahead
|
|
8
|
+
|
|
9
|
+
## 187.45.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`b9264ebb903`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9264ebb903) - Deprecate 'UNSAFE_allowBorderMark' prop in the editor plugin and replace it with 'allowBorderMark'
|
|
14
|
+
|
|
3
15
|
## 187.44.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -379,7 +379,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
379
379
|
}
|
|
380
380
|
return builder;
|
|
381
381
|
}).maybeAdd(_plugins.borderPlugin, function (plugin, builder) {
|
|
382
|
-
if (props.UNSAFE_allowBorderMark) {
|
|
382
|
+
if (props.allowBorderMark || props.UNSAFE_allowBorderMark) {
|
|
383
383
|
return builder.add(plugin);
|
|
384
384
|
}
|
|
385
385
|
return builder;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createTypeAheadTools = exports.createInternalTypeAheadTools = void 0;
|
|
7
7
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
8
8
|
var _utils = require("./utils");
|
|
9
|
-
var
|
|
9
|
+
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
10
|
var _openTypeaheadAtCursor = require("./transforms/open-typeahead-at-cursor");
|
|
11
11
|
var _closeTypeAhead = require("./transforms/close-type-ahead");
|
|
12
12
|
var _updateQuery = require("./commands/update-query");
|
|
@@ -73,7 +73,7 @@ var search = function search(_ref3) {
|
|
|
73
73
|
}
|
|
74
74
|
open({
|
|
75
75
|
editorView: editorView
|
|
76
|
-
})(itemType)(
|
|
76
|
+
})(itemType)(_analytics.INPUT_METHOD.KEYBOARD);
|
|
77
77
|
(0, _updateQuery.updateQuery)(query)(editorView.state, editorView.dispatch);
|
|
78
78
|
var lastQuery = {
|
|
79
79
|
current: query
|
|
@@ -10,7 +10,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
|
|
|
10
10
|
var _steps = require("@atlaskit/adf-schema/steps");
|
|
11
11
|
var _actions = require("./actions");
|
|
12
12
|
var _key = require("./key");
|
|
13
|
-
var
|
|
13
|
+
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
@@ -94,7 +94,7 @@ var createReducer = function createReducer(_ref) {
|
|
|
94
94
|
return openMenu(currentPluginState, {
|
|
95
95
|
tr: tr,
|
|
96
96
|
triggerHandler: overrideHandler,
|
|
97
|
-
inputMethod:
|
|
97
|
+
inputMethod: _analytics.INPUT_METHOD.KEYBOARD,
|
|
98
98
|
reopenQuery: typeAheadStepOverride.query,
|
|
99
99
|
selectedIndex: typeAheadStepOverride.selectedIndex
|
|
100
100
|
});
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "187.
|
|
9
|
+
var version = "187.45.3";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
@@ -376,7 +376,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
376
376
|
}
|
|
377
377
|
return builder;
|
|
378
378
|
}).maybeAdd(borderPlugin, (plugin, builder) => {
|
|
379
|
-
if (props.UNSAFE_allowBorderMark) {
|
|
379
|
+
if (props.allowBorderMark || props.UNSAFE_allowBorderMark) {
|
|
380
380
|
return builder.add(plugin);
|
|
381
381
|
}
|
|
382
382
|
return builder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeAheadAvailableNodes, SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
2
2
|
import { findHandler, findHandlerByTrigger, isTypeAheadOpen, getTypeAheadHandler, getTypeAheadQuery } from './utils';
|
|
3
|
-
import { INPUT_METHOD } from '
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { openTypeAheadAtCursor, openTypeAhead } from './transforms/open-typeahead-at-cursor';
|
|
5
5
|
import { closeTypeAhead } from './transforms/close-type-ahead';
|
|
6
6
|
import { updateQuery } from './commands/update-query';
|
|
@@ -2,7 +2,7 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
|
2
2
|
import { InsertTypeAheadStep, InsertTypeAheadStages } from '@atlaskit/adf-schema/steps';
|
|
3
3
|
import { ACTIONS } from './actions';
|
|
4
4
|
import { pluginKey } from './key';
|
|
5
|
-
import { INPUT_METHOD } from '
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { isTypeAheadHandler } from '../utils';
|
|
7
7
|
const shouldForceOpen = step => {
|
|
8
8
|
if (!(step instanceof InsertTypeAheadStep)) {
|
|
@@ -372,7 +372,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
372
372
|
}
|
|
373
373
|
return builder;
|
|
374
374
|
}).maybeAdd(borderPlugin, function (plugin, builder) {
|
|
375
|
-
if (props.UNSAFE_allowBorderMark) {
|
|
375
|
+
if (props.allowBorderMark || props.UNSAFE_allowBorderMark) {
|
|
376
376
|
return builder.add(plugin);
|
|
377
377
|
}
|
|
378
378
|
return builder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeAheadAvailableNodes, SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
2
2
|
import { findHandler, findHandlerByTrigger, isTypeAheadOpen, getTypeAheadHandler, getTypeAheadQuery } from './utils';
|
|
3
|
-
import { INPUT_METHOD } from '
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { openTypeAheadAtCursor, openTypeAhead } from './transforms/open-typeahead-at-cursor';
|
|
5
5
|
import { closeTypeAhead } from './transforms/close-type-ahead';
|
|
6
6
|
import { updateQuery } from './commands/update-query';
|
|
@@ -5,7 +5,7 @@ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import { InsertTypeAheadStep, InsertTypeAheadStages } from '@atlaskit/adf-schema/steps';
|
|
6
6
|
import { ACTIONS } from './actions';
|
|
7
7
|
import { pluginKey } from './key';
|
|
8
|
-
import { INPUT_METHOD } from '
|
|
8
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { isTypeAheadHandler } from '../utils';
|
|
10
10
|
var shouldForceOpen = function shouldForceOpen(step) {
|
|
11
11
|
if (!(step instanceof InsertTypeAheadStep)) {
|
|
@@ -212,8 +212,14 @@ export interface EditorPluginFeatureProps {
|
|
|
212
212
|
/**
|
|
213
213
|
* Enable experimental support for the "border" mark.
|
|
214
214
|
* Refer to ADF Change proposal #65 for more details.
|
|
215
|
+
* @deprecated Use allowBorderMark instead.
|
|
215
216
|
*/
|
|
216
217
|
UNSAFE_allowBorderMark?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Enable support for the "border" mark.
|
|
220
|
+
* Refer to ADF Change proposal #65 for more details.
|
|
221
|
+
*/
|
|
222
|
+
allowBorderMark?: boolean;
|
|
217
223
|
/**
|
|
218
224
|
* Enable support for the "fragment" mark.
|
|
219
225
|
* Refer to ADF Change proposal #60 for more details.
|
|
@@ -212,8 +212,14 @@ export interface EditorPluginFeatureProps {
|
|
|
212
212
|
/**
|
|
213
213
|
* Enable experimental support for the "border" mark.
|
|
214
214
|
* Refer to ADF Change proposal #65 for more details.
|
|
215
|
+
* @deprecated Use allowBorderMark instead.
|
|
215
216
|
*/
|
|
216
217
|
UNSAFE_allowBorderMark?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Enable support for the "border" mark.
|
|
220
|
+
* Refer to ADF Change proposal #65 for more details.
|
|
221
|
+
*/
|
|
222
|
+
allowBorderMark?: boolean;
|
|
217
223
|
/**
|
|
218
224
|
* Enable support for the "fragment" mark.
|
|
219
225
|
* Refer to ADF Change proposal #60 for more details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.
|
|
3
|
+
"version": "187.45.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/media-ui": "^25.0.0",
|
|
104
104
|
"@atlaskit/media-viewer": "^48.1.0",
|
|
105
105
|
"@atlaskit/mention": "^22.1.0",
|
|
106
|
-
"@atlaskit/menu": "^1.
|
|
106
|
+
"@atlaskit/menu": "^1.11.0",
|
|
107
107
|
"@atlaskit/modal-dialog": "^12.7.0",
|
|
108
108
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
109
109
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
"@atlaskit/radio": "^5.6.0",
|
|
112
112
|
"@atlaskit/section-message": "^6.4.0",
|
|
113
113
|
"@atlaskit/select": "^16.7.0",
|
|
114
|
-
"@atlaskit/smart-card": "^26.
|
|
114
|
+
"@atlaskit/smart-card": "^26.28.0",
|
|
115
115
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
116
|
-
"@atlaskit/spinner": "^15.
|
|
116
|
+
"@atlaskit/spinner": "^15.6.0",
|
|
117
117
|
"@atlaskit/status": "^1.4.0",
|
|
118
118
|
"@atlaskit/tabs": "^13.4.0",
|
|
119
119
|
"@atlaskit/task-decision": "^17.9.0",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"@atlaskit/media-core": "^34.1.0",
|
|
167
167
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
168
168
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
169
|
-
"@atlaskit/menu": "^1.
|
|
169
|
+
"@atlaskit/menu": "^1.11.0",
|
|
170
170
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
171
171
|
"@atlaskit/renderer": "^108.15.0",
|
|
172
172
|
"@atlaskit/section-message": "^6.4.0",
|
package/report.api.md
CHANGED
|
@@ -767,6 +767,7 @@ interface EditorPluginFeatureProps {
|
|
|
767
767
|
allowAnalyticsGASV3?: boolean;
|
|
768
768
|
// (undocumented)
|
|
769
769
|
allowBlockType?: BlockTypePluginOptions['allowBlockType'];
|
|
770
|
+
allowBorderMark?: boolean;
|
|
770
771
|
// (undocumented)
|
|
771
772
|
allowBreakout?: boolean;
|
|
772
773
|
// (undocumented)
|
|
@@ -846,6 +847,7 @@ interface EditorPluginFeatureProps {
|
|
|
846
847
|
smartLinks?: CardOptions;
|
|
847
848
|
// (undocumented)
|
|
848
849
|
textFormatting?: TextFormattingOptions;
|
|
850
|
+
// @deprecated
|
|
849
851
|
UNSAFE_allowBorderMark?: boolean;
|
|
850
852
|
// @deprecated (undocumented)
|
|
851
853
|
UNSAFE_cards?: CardOptions;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -700,6 +700,7 @@ interface EditorPluginFeatureProps {
|
|
|
700
700
|
allowAnalyticsGASV3?: boolean;
|
|
701
701
|
// (undocumented)
|
|
702
702
|
allowBlockType?: BlockTypePluginOptions['allowBlockType'];
|
|
703
|
+
allowBorderMark?: boolean;
|
|
703
704
|
// (undocumented)
|
|
704
705
|
allowBreakout?: boolean;
|
|
705
706
|
// (undocumented)
|
|
@@ -775,6 +776,7 @@ interface EditorPluginFeatureProps {
|
|
|
775
776
|
smartLinks?: CardOptions;
|
|
776
777
|
// (undocumented)
|
|
777
778
|
textFormatting?: TextFormattingOptions;
|
|
779
|
+
// @deprecated
|
|
778
780
|
UNSAFE_allowBorderMark?: boolean;
|
|
779
781
|
// @deprecated (undocumented)
|
|
780
782
|
UNSAFE_cards?: CardOptions;
|