@atlaskit/editor-common 111.11.12 → 111.11.13
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 +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/index.js +3 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +3 -6
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +3 -6
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ui/IntlProviderIfMissingWrapper/index.d.ts +1 -2
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +1 -2
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.11.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d00c391ab0f5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d00c391ab0f5a) -
|
|
8
|
+
Cleanup a flag making local ids shorter
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 111.11.12
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "111.11.12";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.corePlugin = void 0;
|
|
7
7
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var _nodeAnchorProvider = require("../../node-anchor/node-anchor-provider");
|
|
10
9
|
var _processRawValue = require("../../utils/processRawValue");
|
|
11
10
|
var _editorCommands = require("../editor-commands");
|
|
@@ -152,11 +151,9 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
152
151
|
if (pos < 0) {
|
|
153
152
|
return undefined;
|
|
154
153
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return generatedId;
|
|
159
|
-
}
|
|
154
|
+
var generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
155
|
+
if (generatedId) {
|
|
156
|
+
return generatedId;
|
|
160
157
|
}
|
|
161
158
|
var nodeDOM = view.nodeDOM(pos);
|
|
162
159
|
if (nodeDOM instanceof HTMLElement) {
|
|
@@ -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 = "111.11.12";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "111.11.12";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
|
|
4
3
|
import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
5
4
|
import { editorCommandToPMCommand } from '../editor-commands';
|
|
@@ -154,11 +153,9 @@ export const corePlugin = ({
|
|
|
154
153
|
if (pos < 0) {
|
|
155
154
|
return undefined;
|
|
156
155
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return generatedId;
|
|
161
|
-
}
|
|
156
|
+
const generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
157
|
+
if (generatedId) {
|
|
158
|
+
return generatedId;
|
|
162
159
|
}
|
|
163
160
|
const nodeDOM = view.nodeDOM(pos);
|
|
164
161
|
if (nodeDOM instanceof HTMLElement) {
|
|
@@ -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 = "111.11.12";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "111.11.12";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
|
|
4
3
|
import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
5
4
|
import { editorCommandToPMCommand } from '../editor-commands';
|
|
@@ -147,11 +146,9 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
147
146
|
if (pos < 0) {
|
|
148
147
|
return undefined;
|
|
149
148
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
return generatedId;
|
|
154
|
-
}
|
|
149
|
+
var generatedId = nodeIdProvider.getOrGenerateId(node, pos);
|
|
150
|
+
if (generatedId) {
|
|
151
|
+
return generatedId;
|
|
155
152
|
}
|
|
156
153
|
var nodeDOM = view.nodeDOM(pos);
|
|
157
154
|
if (nodeDOM instanceof HTMLElement) {
|
|
@@ -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 = "111.11.12";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface WrapProps {
|
|
3
2
|
children: JSX.Element;
|
|
4
3
|
}
|
|
5
|
-
export default function IntlProviderIfMissingWrapper({ children }: WrapProps):
|
|
4
|
+
export default function IntlProviderIfMissingWrapper({ children }: WrapProps): JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -60,5 +60,5 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
60
60
|
testId?: string;
|
|
61
61
|
title?: React.ReactNode;
|
|
62
62
|
titlePosition?: PositionType;
|
|
63
|
-
} & Pick<ButtonProps, "
|
|
63
|
+
} & Pick<ButtonProps, "onBlur" | "onFocus" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface WrapProps {
|
|
3
2
|
children: JSX.Element;
|
|
4
3
|
}
|
|
5
|
-
export default function IntlProviderIfMissingWrapper({ children }: WrapProps):
|
|
4
|
+
export default function IntlProviderIfMissingWrapper({ children }: WrapProps): JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -60,5 +60,5 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
60
60
|
testId?: string;
|
|
61
61
|
title?: React.ReactNode;
|
|
62
62
|
titlePosition?: PositionType;
|
|
63
|
-
} & Pick<ButtonProps, "
|
|
63
|
+
} & Pick<ButtonProps, "onBlur" | "onFocus" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.11.
|
|
3
|
+
"version": "111.11.13",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^22.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^22.2.0",
|
|
85
85
|
"@atlaskit/tokens": "^11.0.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -181,9 +181,6 @@
|
|
|
181
181
|
"media-perf-uplift-mutation-fix": {
|
|
182
182
|
"type": "boolean"
|
|
183
183
|
},
|
|
184
|
-
"platform_editor_ai_local_id_short": {
|
|
185
|
-
"type": "boolean"
|
|
186
|
-
},
|
|
187
184
|
"platform_editor_link_popup_position_fix_aifc": {
|
|
188
185
|
"type": "boolean"
|
|
189
186
|
},
|