@atlaskit/editor-common 110.25.2 → 110.25.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 +15 -0
- package/dist/cjs/messages/block-menu.js +1 -6
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/index.js +8 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/block-menu.js +1 -6
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +8 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/block-menu.js +1 -6
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +8 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/block-menu.d.ts +0 -5
- package/dist/types-ts4.5/messages/block-menu.d.ts +0 -5
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`be55d2a043969`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be55d2a043969) -
|
|
8
|
+
Use shorter localIds and fix duplicate bug to store less data.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 110.25.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`3432c4a4a074c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3432c4a4a074c) -
|
|
16
|
+
[ux] EDITOR-2525 update block menu convert to sync block to support all fishfooding node types
|
|
17
|
+
|
|
3
18
|
## 110.25.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -64,12 +64,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
64
64
|
createSyncedBlock: {
|
|
65
65
|
id: 'fabric.editor.block.menu.create.synced.block',
|
|
66
66
|
defaultMessage: 'Create synced block',
|
|
67
|
-
description: 'Create a synced block at this
|
|
68
|
-
},
|
|
69
|
-
convertToSyncedBlock: {
|
|
70
|
-
id: 'fabric.editor.block.menu.convert.to.synced.block',
|
|
71
|
-
defaultMessage: 'Convert to synced block',
|
|
72
|
-
description: 'Convert the selection to a synced block by putting all of the content inside a new synced block'
|
|
67
|
+
description: 'Create a synced block at this line, converting the selection to a synced block if applicable'
|
|
73
68
|
},
|
|
74
69
|
newLozenge: {
|
|
75
70
|
id: 'fabric.editor.block.menu.new.lozenge',
|
|
@@ -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 = "
|
|
19
|
+
var packageVersion = "0.0.0-development";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -136,13 +136,20 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
136
136
|
if (!view) {
|
|
137
137
|
return undefined;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var nodeIdProvider = (0, _nodeAnchorProvider.getNodeIdProvider)(view);
|
|
140
|
+
var cachedId = nodeIdProvider.getIdForNode(node);
|
|
140
141
|
if (cachedId) {
|
|
141
142
|
return cachedId;
|
|
142
143
|
}
|
|
143
144
|
if (pos < 0) {
|
|
144
145
|
return undefined;
|
|
145
146
|
}
|
|
147
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_ai_local_id_short')) {
|
|
148
|
+
var generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
149
|
+
if (generatedId) {
|
|
150
|
+
return generatedId;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
146
153
|
var nodeDOM = view.nodeDOM(pos);
|
|
147
154
|
if (nodeDOM instanceof HTMLElement) {
|
|
148
155
|
return nodeDOM.getAttribute('data-node-anchor') || undefined;
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -58,12 +58,7 @@ export const messages = defineMessages({
|
|
|
58
58
|
createSyncedBlock: {
|
|
59
59
|
id: 'fabric.editor.block.menu.create.synced.block',
|
|
60
60
|
defaultMessage: 'Create synced block',
|
|
61
|
-
description: 'Create a synced block at this
|
|
62
|
-
},
|
|
63
|
-
convertToSyncedBlock: {
|
|
64
|
-
id: 'fabric.editor.block.menu.convert.to.synced.block',
|
|
65
|
-
defaultMessage: 'Convert to synced block',
|
|
66
|
-
description: 'Convert the selection to a synced block by putting all of the content inside a new synced block'
|
|
61
|
+
description: 'Create a synced block at this line, converting the selection to a synced block if applicable'
|
|
67
62
|
},
|
|
68
63
|
newLozenge: {
|
|
69
64
|
id: 'fabric.editor.block.menu.new.lozenge',
|
|
@@ -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 = "
|
|
4
|
+
const packageVersion = "0.0.0-development";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -138,13 +138,20 @@ export const corePlugin = ({
|
|
|
138
138
|
if (!view) {
|
|
139
139
|
return undefined;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const nodeIdProvider = getNodeIdProvider(view);
|
|
142
|
+
const cachedId = nodeIdProvider.getIdForNode(node);
|
|
142
143
|
if (cachedId) {
|
|
143
144
|
return cachedId;
|
|
144
145
|
}
|
|
145
146
|
if (pos < 0) {
|
|
146
147
|
return undefined;
|
|
147
148
|
}
|
|
149
|
+
if (fg('platform_editor_ai_local_id_short')) {
|
|
150
|
+
const generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
151
|
+
if (generatedId) {
|
|
152
|
+
return generatedId;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
148
155
|
const nodeDOM = view.nodeDOM(pos);
|
|
149
156
|
if (nodeDOM instanceof HTMLElement) {
|
|
150
157
|
return nodeDOM.getAttribute('data-node-anchor') || undefined;
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -58,12 +58,7 @@ export var messages = defineMessages({
|
|
|
58
58
|
createSyncedBlock: {
|
|
59
59
|
id: 'fabric.editor.block.menu.create.synced.block',
|
|
60
60
|
defaultMessage: 'Create synced block',
|
|
61
|
-
description: 'Create a synced block at this
|
|
62
|
-
},
|
|
63
|
-
convertToSyncedBlock: {
|
|
64
|
-
id: 'fabric.editor.block.menu.convert.to.synced.block',
|
|
65
|
-
defaultMessage: 'Convert to synced block',
|
|
66
|
-
description: 'Convert the selection to a synced block by putting all of the content inside a new synced block'
|
|
61
|
+
description: 'Create a synced block at this line, converting the selection to a synced block if applicable'
|
|
67
62
|
},
|
|
68
63
|
newLozenge: {
|
|
69
64
|
id: 'fabric.editor.block.menu.new.lozenge',
|
|
@@ -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 = "
|
|
10
|
+
var packageVersion = "0.0.0-development";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -131,13 +131,20 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
131
131
|
if (!view) {
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var nodeIdProvider = getNodeIdProvider(view);
|
|
135
|
+
var cachedId = nodeIdProvider.getIdForNode(node);
|
|
135
136
|
if (cachedId) {
|
|
136
137
|
return cachedId;
|
|
137
138
|
}
|
|
138
139
|
if (pos < 0) {
|
|
139
140
|
return undefined;
|
|
140
141
|
}
|
|
142
|
+
if (fg('platform_editor_ai_local_id_short')) {
|
|
143
|
+
var generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
144
|
+
if (generatedId) {
|
|
145
|
+
return generatedId;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
141
148
|
var nodeDOM = view.nodeDOM(pos);
|
|
142
149
|
if (nodeDOM instanceof HTMLElement) {
|
|
143
150
|
return nodeDOM.getAttribute('data-node-anchor') || undefined;
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.25.
|
|
3
|
+
"version": "110.25.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/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
72
72
|
"@atlaskit/popper": "^7.1.0",
|
|
73
73
|
"@atlaskit/primitives": "^16.1.0",
|
|
74
|
-
"@atlaskit/profilecard": "^24.
|
|
74
|
+
"@atlaskit/profilecard": "^24.21.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^4.14.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.9.0",
|
|
@@ -186,6 +186,9 @@
|
|
|
186
186
|
"platform_editor_multi_body_extension_extensibility": {
|
|
187
187
|
"type": "boolean"
|
|
188
188
|
},
|
|
189
|
+
"platform_editor_ai_local_id_short": {
|
|
190
|
+
"type": "boolean"
|
|
191
|
+
},
|
|
189
192
|
"platform_editor_link_popup_position_fix_aifc": {
|
|
190
193
|
"type": "boolean"
|
|
191
194
|
},
|