@atlaskit/editor-common 77.2.0 → 77.2.2
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 +13 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +8 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +11 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +8 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 77.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152) [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) - Updating adf-schema version to 35.5.1
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 77.2.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#70741](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70741) [`7c1487568202`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c1487568202) - ED-21973: Fix for MBE side panel config params update
|
|
15
|
+
|
|
3
16
|
## 77.2.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -95,17 +95,22 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
|
|
|
95
95
|
return true;
|
|
96
96
|
},
|
|
97
97
|
updateParameters: function updateParameters(parameters) {
|
|
98
|
+
var _node$attrs;
|
|
98
99
|
var state = editorView.state,
|
|
99
100
|
dispatch = editorView.dispatch;
|
|
100
101
|
var pos = getPos();
|
|
101
102
|
if (typeof pos !== 'number') {
|
|
102
103
|
throw new Error('Position not valid');
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
// We are retaining node.attrs to keep the node type and extension key
|
|
106
|
+
// and only updating the parameters coming in from the user
|
|
107
|
+
// parameters will contain only macroParams information
|
|
108
|
+
var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
105
109
|
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
106
|
-
macroParams: parameters
|
|
110
|
+
macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
|
|
107
111
|
})
|
|
108
|
-
})
|
|
112
|
+
});
|
|
113
|
+
var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
109
114
|
dispatch(tr);
|
|
110
115
|
if (eventDispatcher) {
|
|
111
116
|
(0, _utils.sendMBEAnalyticsEvent)(_analytics.ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "77.2.
|
|
19
|
+
var packageVersion = "77.2.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "77.2.
|
|
25
|
+
var packageVersion = "77.2.2";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -92,6 +92,7 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
92
92
|
return true;
|
|
93
93
|
},
|
|
94
94
|
updateParameters(parameters) {
|
|
95
|
+
var _node$attrs, _node$attrs$parameter;
|
|
95
96
|
const {
|
|
96
97
|
state,
|
|
97
98
|
dispatch
|
|
@@ -100,13 +101,20 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
100
101
|
if (typeof pos !== 'number') {
|
|
101
102
|
throw new Error('Position not valid');
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
// We are retaining node.attrs to keep the node type and extension key
|
|
105
|
+
// and only updating the parameters coming in from the user
|
|
106
|
+
// parameters will contain only macroParams information
|
|
107
|
+
const updatedParameters = {
|
|
104
108
|
...node.attrs,
|
|
105
109
|
parameters: {
|
|
106
110
|
...node.attrs.parameters,
|
|
107
|
-
macroParams:
|
|
111
|
+
macroParams: {
|
|
112
|
+
...((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : (_node$attrs$parameter = _node$attrs.parameters) === null || _node$attrs$parameter === void 0 ? void 0 : _node$attrs$parameter.macroParams),
|
|
113
|
+
...parameters
|
|
114
|
+
}
|
|
108
115
|
}
|
|
109
|
-
}
|
|
116
|
+
};
|
|
117
|
+
const tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
110
118
|
dispatch(tr);
|
|
111
119
|
if (eventDispatcher) {
|
|
112
120
|
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "77.2.
|
|
3
|
+
const packageVersion = "77.2.2";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "77.2.
|
|
10
|
+
const packageVersion = "77.2.2";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -88,17 +88,22 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
88
88
|
return true;
|
|
89
89
|
},
|
|
90
90
|
updateParameters: function updateParameters(parameters) {
|
|
91
|
+
var _node$attrs;
|
|
91
92
|
var state = editorView.state,
|
|
92
93
|
dispatch = editorView.dispatch;
|
|
93
94
|
var pos = getPos();
|
|
94
95
|
if (typeof pos !== 'number') {
|
|
95
96
|
throw new Error('Position not valid');
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
+
// We are retaining node.attrs to keep the node type and extension key
|
|
99
|
+
// and only updating the parameters coming in from the user
|
|
100
|
+
// parameters will contain only macroParams information
|
|
101
|
+
var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
98
102
|
parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
|
|
99
|
-
macroParams: parameters
|
|
103
|
+
macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
|
|
100
104
|
})
|
|
101
|
-
})
|
|
105
|
+
});
|
|
106
|
+
var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
|
|
102
107
|
dispatch(tr);
|
|
103
108
|
if (eventDispatcher) {
|
|
104
109
|
sendMBEAnalyticsEvent(ACTION.UPDATE_PARAMETERS, node, eventDispatcher);
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "77.2.
|
|
9
|
+
var packageVersion = "77.2.2";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "77.2.
|
|
20
|
+
var packageVersion = "77.2.2";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "77.2.
|
|
3
|
+
"version": "77.2.2",
|
|
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/"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
94
|
-
"@atlaskit/adf-schema": "^35.
|
|
94
|
+
"@atlaskit/adf-schema": "^35.5.1",
|
|
95
95
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
96
96
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
97
97
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/button": "^17.3.0",
|
|
101
101
|
"@atlaskit/code": "^15.1.0",
|
|
102
102
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
103
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
103
|
+
"@atlaskit/custom-steps": "^0.0.12",
|
|
104
104
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
105
105
|
"@atlaskit/editor-palette": "1.5.2",
|
|
106
106
|
"@atlaskit/editor-prosemirror": "1.1.0",
|