@atlaskit/editor-plugin-extension 19.1.4 → 19.1.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 +14 -0
- package/dist/cjs/extensionPlugin.js +7 -5
- package/dist/cjs/pm-plugins/toDOM-fixes/bodiedExtension.js +2 -2
- package/dist/cjs/pm-plugins/unique-id.js +4 -4
- package/dist/es2019/extensionPlugin.js +3 -1
- package/dist/es2019/pm-plugins/toDOM-fixes/bodiedExtension.js +1 -1
- package/dist/es2019/pm-plugins/unique-id.js +2 -2
- package/dist/esm/extensionPlugin.js +3 -1
- package/dist/esm/pm-plugins/toDOM-fixes/bodiedExtension.js +1 -1
- package/dist/esm/pm-plugins/unique-id.js +2 -2
- package/dist/types/editor-commands/commands.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 19.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3516c9fac5ea8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3516c9fac5ea8) -
|
|
14
|
+
Migrates internal 16px Avatar usage from `xsmall` to `xxsmall`.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.extensionPlugin = void 0;
|
|
8
8
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
9
|
-
var
|
|
9
|
+
var _extension = require("@atlaskit/adf-schema/extension");
|
|
10
|
+
var _multiBodiedExtension = require("@atlaskit/adf-schema/multi-bodied-extension");
|
|
11
|
+
var _inlineExtension = require("@atlaskit/adf-schema/inline-extension");
|
|
10
12
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
14
|
var _actions = require("./editor-actions/actions");
|
|
@@ -47,19 +49,19 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
|
|
|
47
49
|
nodes: function nodes() {
|
|
48
50
|
var extensionNodes = [{
|
|
49
51
|
name: 'extension',
|
|
50
|
-
node:
|
|
52
|
+
node: _extension.extension
|
|
51
53
|
}, {
|
|
52
54
|
name: 'bodiedExtension',
|
|
53
55
|
node: (0, _bodiedExtension.bodiedExtensionSpecWithFixedToDOM)()
|
|
54
56
|
}, {
|
|
55
57
|
name: 'inlineExtension',
|
|
56
|
-
node:
|
|
58
|
+
node: _inlineExtension.inlineExtension
|
|
57
59
|
}, {
|
|
58
60
|
name: 'extensionFrame',
|
|
59
|
-
node:
|
|
61
|
+
node: _multiBodiedExtension.extensionFrame
|
|
60
62
|
}, {
|
|
61
63
|
name: 'multiBodiedExtension',
|
|
62
|
-
node:
|
|
64
|
+
node: _multiBodiedExtension.multiBodiedExtension
|
|
63
65
|
}];
|
|
64
66
|
return extensionNodes;
|
|
65
67
|
},
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.bodiedExtensionSpecWithFixedToDOM = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _bodiedExtension = require("@atlaskit/adf-schema/bodied-extension");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
@@ -16,7 +16,7 @@ var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
|
16
16
|
|
|
17
17
|
// @nodeSpecException:toDOM patch
|
|
18
18
|
var bodiedExtensionSpecWithFixedToDOM = exports.bodiedExtensionSpecWithFixedToDOM = function bodiedExtensionSpecWithFixedToDOM() {
|
|
19
|
-
return _objectSpread(_objectSpread({},
|
|
19
|
+
return _objectSpread(_objectSpread({}, _bodiedExtension.bodiedExtension), {}, {
|
|
20
20
|
toDOM: function toDOM(node) {
|
|
21
21
|
var attrs = {
|
|
22
22
|
'data-node-type': 'bodied-extension',
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createPlugin = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
10
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
11
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -37,7 +37,7 @@ var createPlugin = exports.createPlugin = function createPlugin() {
|
|
|
37
37
|
// There are instances where the localId will be reset to null on publish due to extension
|
|
38
38
|
// not existing in the Storage format (eg. Legacy Content Extensions) or not having a localId
|
|
39
39
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
40
|
-
step instanceof
|
|
40
|
+
step instanceof _setAttrs.SetAttrsStep &&
|
|
41
41
|
// @ts-expect-error Bad ProseMirror step types
|
|
42
42
|
((_step$attrs = step.attrs) === null || _step$attrs === void 0 ? void 0 : _step$attrs.localId) === null;
|
|
43
43
|
});
|
|
@@ -54,7 +54,7 @@ var createPlugin = exports.createPlugin = function createPlugin() {
|
|
|
54
54
|
} else if (!localId || idsObserved.has(localId)) {
|
|
55
55
|
modified = true;
|
|
56
56
|
tr.setNodeMarkup(pos, undefined, _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
57
|
-
localId:
|
|
57
|
+
localId: _uuid.uuid.generate()
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import uuid from 'uuid/v4';
|
|
3
|
-
import { extension
|
|
3
|
+
import { extension } from '@atlaskit/adf-schema/extension';
|
|
4
|
+
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
5
|
+
import { inlineExtension } from '@atlaskit/adf-schema/inline-extension';
|
|
4
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
8
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension, insertOrReplaceExtension } from './editor-actions/actions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bodiedExtension } from '@atlaskit/adf-schema';
|
|
1
|
+
import { bodiedExtension } from '@atlaskit/adf-schema/bodied-extension';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
const capitalizeFirstLetter = str => {
|
|
4
4
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { stepAddsOneOf } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import uuid from 'uuid/v4';
|
|
3
|
-
import { extension
|
|
3
|
+
import { extension } from '@atlaskit/adf-schema/extension';
|
|
4
|
+
import { extensionFrame, multiBodiedExtension } from '@atlaskit/adf-schema/multi-bodied-extension';
|
|
5
|
+
import { inlineExtension } from '@atlaskit/adf-schema/inline-extension';
|
|
4
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
8
|
import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension as _insertOrReplaceBodiedExtension, insertOrReplaceExtension as _insertOrReplaceExtension } from './editor-actions/actions';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { bodiedExtension } from '@atlaskit/adf-schema';
|
|
4
|
+
import { bodiedExtension } from '@atlaskit/adf-schema/bodied-extension';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
7
7
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
5
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
4
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { stepAddsOneOf } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
|
|
2
2
|
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { Command } from '@atlaskit/editor-common/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "19.1.
|
|
3
|
+
"version": "19.1.6",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
25
|
"@atlaskit/adf-utils": "^20.8.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
27
|
-
"@atlaskit/avatar": "^
|
|
27
|
+
"@atlaskit/avatar": "^28.0.0",
|
|
28
28
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
29
29
|
"@atlaskit/button": "^25.3.0",
|
|
30
30
|
"@atlaskit/checkbox": "^19.2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@atlaskit/datetime-picker": "^18.5.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
35
|
-
"@atlaskit/editor-plugin-block-menu": "^15.
|
|
35
|
+
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^16.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-context-panel": "^18.1.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/tabs": "^21.2.0",
|
|
65
65
|
"@atlaskit/textarea": "^10.2.0",
|
|
66
66
|
"@atlaskit/textfield": "^10.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^174.0.0",
|
|
68
68
|
"@atlaskit/toggle": "^17.3.0",
|
|
69
69
|
"@atlaskit/tokens": "^16.11.0",
|
|
70
70
|
"@atlaskit/tooltip": "^24.3.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^120.
|
|
81
|
+
"@atlaskit/editor-common": "^120.12.0",
|
|
82
82
|
"react": "^18.2.0 || ^19.2.0",
|
|
83
83
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
84
84
|
},
|