@atlaskit/editor-common 102.5.2 → 102.5.3
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 +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +2 -0
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#126662](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126662)
|
|
8
|
+
[`317b35c0d1772`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/317b35c0d1772) -
|
|
9
|
+
[ux] update multibodied extension frame default styles
|
|
10
|
+
|
|
3
11
|
## 102.5.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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 && {}.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; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "102.5.
|
|
20
|
+
var packageVersion = "102.5.3";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -57,7 +57,7 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
57
57
|
}
|
|
58
58
|
var state = editorView.state;
|
|
59
59
|
var schema = state.schema;
|
|
60
|
-
var content = Array.isArray(replaceValue) ? (0, _processRawValue.processRawFragmentValue)(schema, replaceValue) : (0, _processRawValue.processRawValue)(schema, replaceValue);
|
|
60
|
+
var content = options !== null && options !== void 0 && options.skipValidation ? (0, _processRawValue.processRawValueWithoutValidation)(schema, replaceValue) : Array.isArray(replaceValue) ? (0, _processRawValue.processRawFragmentValue)(schema, replaceValue) : (0, _processRawValue.processRawValue)(schema, replaceValue);
|
|
61
61
|
if (content) {
|
|
62
62
|
var _options$scrollIntoVi2;
|
|
63
63
|
var tr = state.tr.replaceWith(0, state.doc.nodeSize - 2, content);
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "102.5.
|
|
26
|
+
var packageVersion = "102.5.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -72,7 +72,7 @@ var extensionFrameContent = (0, _react.css)({
|
|
|
72
72
|
padding: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
73
73
|
display: 'block',
|
|
74
74
|
minHeight: '100px',
|
|
75
|
-
background:
|
|
75
|
+
background: 'transparent',
|
|
76
76
|
borderBottomLeftRadius: "var(--ds-border-radius, 3px)",
|
|
77
77
|
borderBottomRightRadius: "var(--ds-border-radius, 3px)",
|
|
78
78
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
@@ -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 = "102.5.
|
|
4
|
+
const packageVersion = "102.5.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { processRawFragmentValue, processRawValue } from '../../utils/processRawValue';
|
|
1
|
+
import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
2
2
|
import { editorCommandToPMCommand } from '../editor-commands';
|
|
3
3
|
import { scheduleDocumentRequest } from './requestDocument';
|
|
4
4
|
|
|
@@ -59,7 +59,7 @@ export const corePlugin = ({
|
|
|
59
59
|
const {
|
|
60
60
|
schema
|
|
61
61
|
} = state;
|
|
62
|
-
const content = Array.isArray(replaceValue) ? processRawFragmentValue(schema, replaceValue) : processRawValue(schema, replaceValue);
|
|
62
|
+
const content = options !== null && options !== void 0 && options.skipValidation ? processRawValueWithoutValidation(schema, replaceValue) : Array.isArray(replaceValue) ? processRawFragmentValue(schema, replaceValue) : processRawValue(schema, replaceValue);
|
|
63
63
|
if (content) {
|
|
64
64
|
var _options$scrollIntoVi2;
|
|
65
65
|
const tr = state.tr.replaceWith(0, state.doc.nodeSize - 2, content);
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "102.5.
|
|
16
|
+
const packageVersion = "102.5.3";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -65,7 +65,7 @@ const extensionFrameContent = css({
|
|
|
65
65
|
padding: `${"var(--ds-space-100, 8px)"} !important`,
|
|
66
66
|
display: 'block',
|
|
67
67
|
minHeight: '100px',
|
|
68
|
-
background:
|
|
68
|
+
background: 'transparent',
|
|
69
69
|
borderBottomLeftRadius: "var(--ds-border-radius, 3px)",
|
|
70
70
|
borderBottomRightRadius: "var(--ds-border-radius, 3px)",
|
|
71
71
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
@@ -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 = "102.5.
|
|
10
|
+
var packageVersion = "102.5.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { processRawFragmentValue, processRawValue } from '../../utils/processRawValue';
|
|
1
|
+
import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
|
|
2
2
|
import { editorCommandToPMCommand } from '../editor-commands';
|
|
3
3
|
import { scheduleDocumentRequest } from './requestDocument';
|
|
4
4
|
|
|
@@ -52,7 +52,7 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
52
52
|
}
|
|
53
53
|
var state = editorView.state;
|
|
54
54
|
var schema = state.schema;
|
|
55
|
-
var content = Array.isArray(replaceValue) ? processRawFragmentValue(schema, replaceValue) : processRawValue(schema, replaceValue);
|
|
55
|
+
var content = options !== null && options !== void 0 && options.skipValidation ? processRawValueWithoutValidation(schema, replaceValue) : Array.isArray(replaceValue) ? processRawFragmentValue(schema, replaceValue) : processRawValue(schema, replaceValue);
|
|
56
56
|
if (content) {
|
|
57
57
|
var _options$scrollIntoVi2;
|
|
58
58
|
var tr = state.tr.replaceWith(0, state.doc.nodeSize - 2, content);
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "102.5.
|
|
23
|
+
var packageVersion = "102.5.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -65,7 +65,7 @@ var extensionFrameContent = css({
|
|
|
65
65
|
padding: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
66
66
|
display: 'block',
|
|
67
67
|
minHeight: '100px',
|
|
68
|
-
background:
|
|
68
|
+
background: 'transparent',
|
|
69
69
|
borderBottomLeftRadius: "var(--ds-border-radius, 3px)",
|
|
70
70
|
borderBottomRightRadius: "var(--ds-border-radius, 3px)",
|
|
71
71
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
@@ -56,10 +56,12 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
56
56
|
* @param replaceValue - The new content to replace the current content. It can be of any type.
|
|
57
57
|
* @param options - Options
|
|
58
58
|
* @param options.scrollIntoView (boolean) if the view should also scroll on replace. True by default
|
|
59
|
+
* @param options.skipValidation (boolean) if the validation should be skipped. False by default
|
|
59
60
|
* @returns A boolean indicating whether the replacement was successful.
|
|
60
61
|
*/
|
|
61
62
|
replaceDocument: (replaceValue: Node | Fragment | Array<Node> | Object | string, options?: {
|
|
62
63
|
scrollIntoView?: boolean;
|
|
64
|
+
skipValidation?: boolean;
|
|
63
65
|
}) => boolean;
|
|
64
66
|
/**
|
|
65
67
|
* Request the editor document.
|
|
@@ -56,10 +56,12 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
56
56
|
* @param replaceValue - The new content to replace the current content. It can be of any type.
|
|
57
57
|
* @param options - Options
|
|
58
58
|
* @param options.scrollIntoView (boolean) if the view should also scroll on replace. True by default
|
|
59
|
+
* @param options.skipValidation (boolean) if the validation should be skipped. False by default
|
|
59
60
|
* @returns A boolean indicating whether the replacement was successful.
|
|
60
61
|
*/
|
|
61
62
|
replaceDocument: (replaceValue: Node | Fragment | Array<Node> | Object | string, options?: {
|
|
62
63
|
scrollIntoView?: boolean;
|
|
64
|
+
skipValidation?: boolean;
|
|
63
65
|
}) => boolean;
|
|
64
66
|
/**
|
|
65
67
|
* Request the editor document.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.5.
|
|
3
|
+
"version": "102.5.3",
|
|
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/"
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
131
131
|
"@atlaskit/dropdown-menu": "^13.0.0",
|
|
132
132
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
133
|
-
"@atlaskit/editor-palette": "^2.
|
|
133
|
+
"@atlaskit/editor-palette": "^2.1.0",
|
|
134
134
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
135
135
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
136
136
|
"@atlaskit/editor-tables": "^2.9.0",
|