@atlaskit/editor-common 78.22.3 → 78.22.4
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 +7 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/utils.js +0 -1
- package/dist/cjs/extensions/manifest-helpers.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/utils.js +0 -1
- package/dist/es2019/extensions/manifest-helpers.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/utils.js +0 -1
- package/dist/esm/extensions/manifest-helpers.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/events.d.ts +0 -1
- package/dist/types/extensions/types/extension-handler.d.ts +0 -1
- package/dist/types/extensions/types/extension-manifest.d.ts +0 -4
- package/dist/types-ts4.5/analytics/types/events.d.ts +0 -1
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +0 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +0 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.22.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724) [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) - [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from 35.7.0 to 35.8.0
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 78.22.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -18,7 +18,6 @@ var sendMBEAnalyticsEvent = exports.sendMBEAnalyticsEvent = function sendMBEAnal
|
|
|
18
18
|
extensionType: node.attrs.extensionType,
|
|
19
19
|
extensionKey: node.attrs.extensionKey,
|
|
20
20
|
localId: node.attrs.localId,
|
|
21
|
-
maxFramesCount: node.attrs.maxFrames,
|
|
22
21
|
currentFramesCount: node.content.childCount
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -87,11 +87,6 @@ function buildNode(action, manifest) {
|
|
|
87
87
|
}]
|
|
88
88
|
});
|
|
89
89
|
} else if (node.type === 'multiBodiedExtension') {
|
|
90
|
-
var _manifest$modules;
|
|
91
|
-
if ((_manifest$modules = manifest.modules) !== null && _manifest$modules !== void 0 && (_manifest$modules = _manifest$modules.nodes[action.key]) !== null && _manifest$modules !== void 0 && _manifest$modules.maxFrames) {
|
|
92
|
-
var _manifest$modules2;
|
|
93
|
-
extension.attrs.maxFrames = (_manifest$modules2 = manifest.modules) === null || _manifest$modules2 === void 0 || (_manifest$modules2 = _manifest$modules2.nodes[action.key]) === null || _manifest$modules2 === void 0 ? void 0 : _manifest$modules2.maxFrames;
|
|
94
|
-
}
|
|
95
90
|
return _objectSpread(_objectSpread({}, extension), {}, {
|
|
96
91
|
content: [{
|
|
97
92
|
type: 'extensionFrame',
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
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 = "78.22.
|
|
19
|
+
var packageVersion = "78.22.4";
|
|
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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.22.
|
|
25
|
+
var packageVersion = "78.22.4";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -12,7 +12,6 @@ export const sendMBEAnalyticsEvent = (action, node, eventDispatcher) => {
|
|
|
12
12
|
extensionType: node.attrs.extensionType,
|
|
13
13
|
extensionKey: node.attrs.extensionKey,
|
|
14
14
|
localId: node.attrs.localId,
|
|
15
|
-
maxFramesCount: node.attrs.maxFrames,
|
|
16
15
|
currentFramesCount: node.content.childCount
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -50,11 +50,6 @@ export function buildNode(action, manifest) {
|
|
|
50
50
|
}]
|
|
51
51
|
};
|
|
52
52
|
} else if (node.type === 'multiBodiedExtension') {
|
|
53
|
-
var _manifest$modules, _manifest$modules$nod;
|
|
54
|
-
if ((_manifest$modules = manifest.modules) !== null && _manifest$modules !== void 0 && (_manifest$modules$nod = _manifest$modules.nodes[action.key]) !== null && _manifest$modules$nod !== void 0 && _manifest$modules$nod.maxFrames) {
|
|
55
|
-
var _manifest$modules2, _manifest$modules2$no;
|
|
56
|
-
extension.attrs.maxFrames = (_manifest$modules2 = manifest.modules) === null || _manifest$modules2 === void 0 ? void 0 : (_manifest$modules2$no = _manifest$modules2.nodes[action.key]) === null || _manifest$modules2$no === void 0 ? void 0 : _manifest$modules2$no.maxFrames;
|
|
57
|
-
}
|
|
58
53
|
return {
|
|
59
54
|
...extension,
|
|
60
55
|
content: [{
|
|
@@ -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 = "78.22.
|
|
3
|
+
const packageVersion = "78.22.4";
|
|
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 = "78.22.
|
|
10
|
+
const packageVersion = "78.22.4";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -12,7 +12,6 @@ export var sendMBEAnalyticsEvent = function sendMBEAnalyticsEvent(action, node,
|
|
|
12
12
|
extensionType: node.attrs.extensionType,
|
|
13
13
|
extensionKey: node.attrs.extensionKey,
|
|
14
14
|
localId: node.attrs.localId,
|
|
15
|
-
maxFramesCount: node.attrs.maxFrames,
|
|
16
15
|
currentFramesCount: node.content.childCount
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -76,11 +76,6 @@ export function buildNode(action, manifest) {
|
|
|
76
76
|
}]
|
|
77
77
|
});
|
|
78
78
|
} else if (node.type === 'multiBodiedExtension') {
|
|
79
|
-
var _manifest$modules;
|
|
80
|
-
if ((_manifest$modules = manifest.modules) !== null && _manifest$modules !== void 0 && (_manifest$modules = _manifest$modules.nodes[action.key]) !== null && _manifest$modules !== void 0 && _manifest$modules.maxFrames) {
|
|
81
|
-
var _manifest$modules2;
|
|
82
|
-
extension.attrs.maxFrames = (_manifest$modules2 = manifest.modules) === null || _manifest$modules2 === void 0 || (_manifest$modules2 = _manifest$modules2.nodes[action.key]) === null || _manifest$modules2 === void 0 ? void 0 : _manifest$modules2.maxFrames;
|
|
83
|
-
}
|
|
84
79
|
return _objectSpread(_objectSpread({}, extension), {}, {
|
|
85
80
|
content: [{
|
|
86
81
|
type: 'extensionFrame',
|
|
@@ -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 = "78.22.
|
|
9
|
+
var packageVersion = "78.22.4";
|
|
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 = "78.22.
|
|
20
|
+
var packageVersion = "78.22.4";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -50,7 +50,6 @@ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION
|
|
|
50
50
|
extensionType: string;
|
|
51
51
|
extensionKey: string;
|
|
52
52
|
localId: string;
|
|
53
|
-
maxFramesCount?: number;
|
|
54
53
|
currentFramesCount: number;
|
|
55
54
|
}, undefined>;
|
|
56
55
|
export type AnalyticsEventPayloadWithChannel = {
|
|
@@ -9,7 +9,6 @@ export interface ExtensionParams<T extends Parameters> {
|
|
|
9
9
|
content?: object | string;
|
|
10
10
|
localId?: string;
|
|
11
11
|
fragmentLocalId?: string;
|
|
12
|
-
maxFrames?: number;
|
|
13
12
|
layout?: string;
|
|
14
13
|
}
|
|
15
14
|
export type ExtensionHandler<T extends Parameters = Parameters> = (ext: ExtensionParams<T>, doc: object, actions?: MultiBodiedExtensionActions) => JSX.Element | null;
|
|
@@ -40,10 +40,6 @@ export type ExtensionModule<T extends Parameters = Parameters> = {
|
|
|
40
40
|
export type DynamicFieldDefinitions<T> = (parameters: T) => FieldDefinition[];
|
|
41
41
|
export type ExtensionModuleNode<T extends Parameters = Parameters> = {
|
|
42
42
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension' | 'multiBodiedExtension';
|
|
43
|
-
/**
|
|
44
|
-
* Used to set the maximum number of frames in case of a MultiBodiedExtension node.
|
|
45
|
-
*/
|
|
46
|
-
maxFrames?: number;
|
|
47
43
|
render: () => ExtensionComponentModule<T>;
|
|
48
44
|
update?: UpdateExtension<T>;
|
|
49
45
|
getFieldsDefinition?: (extensionParameters: T) => Promise<FieldDefinition[] | DynamicFieldDefinitions<T>>;
|
|
@@ -50,7 +50,6 @@ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION
|
|
|
50
50
|
extensionType: string;
|
|
51
51
|
extensionKey: string;
|
|
52
52
|
localId: string;
|
|
53
|
-
maxFramesCount?: number;
|
|
54
53
|
currentFramesCount: number;
|
|
55
54
|
}, undefined>;
|
|
56
55
|
export type AnalyticsEventPayloadWithChannel = {
|
|
@@ -9,7 +9,6 @@ export interface ExtensionParams<T extends Parameters> {
|
|
|
9
9
|
content?: object | string;
|
|
10
10
|
localId?: string;
|
|
11
11
|
fragmentLocalId?: string;
|
|
12
|
-
maxFrames?: number;
|
|
13
12
|
layout?: string;
|
|
14
13
|
}
|
|
15
14
|
export type ExtensionHandler<T extends Parameters = Parameters> = (ext: ExtensionParams<T>, doc: object, actions?: MultiBodiedExtensionActions) => JSX.Element | null;
|
|
@@ -40,10 +40,6 @@ export type ExtensionModule<T extends Parameters = Parameters> = {
|
|
|
40
40
|
export type DynamicFieldDefinitions<T> = (parameters: T) => FieldDefinition[];
|
|
41
41
|
export type ExtensionModuleNode<T extends Parameters = Parameters> = {
|
|
42
42
|
type: 'extension' | 'inlineExtension' | 'bodiedExtension' | 'multiBodiedExtension';
|
|
43
|
-
/**
|
|
44
|
-
* Used to set the maximum number of frames in case of a MultiBodiedExtension node.
|
|
45
|
-
*/
|
|
46
|
-
maxFrames?: number;
|
|
47
43
|
render: () => ExtensionComponentModule<T>;
|
|
48
44
|
update?: UpdateExtension<T>;
|
|
49
45
|
getFieldsDefinition?: (extensionParameters: T) => Promise<FieldDefinition[] | DynamicFieldDefinitions<T>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.22.
|
|
3
|
+
"version": "78.22.4",
|
|
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/"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
97
|
-
"@atlaskit/adf-schema": "^35.
|
|
97
|
+
"@atlaskit/adf-schema": "^35.8.0",
|
|
98
98
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
99
99
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
100
100
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/button": "^17.8.0",
|
|
104
104
|
"@atlaskit/code": "^15.1.0",
|
|
105
105
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
106
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
106
|
+
"@atlaskit/custom-steps": "^0.0.17",
|
|
107
107
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
108
108
|
"@atlaskit/editor-palette": "1.5.3",
|
|
109
109
|
"@atlaskit/editor-prosemirror": "3.0.0",
|