@atlaskit/editor-common 103.15.0 → 103.16.0
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/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/index.js +2 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +2 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/index.js +2 -1
- package/dist/types/extensions/types/extension-handler.d.ts +2 -0
- package/dist/types-ts4.5/extensions/types/extension-handler.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
|
+
## 103.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#145243](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145243)
|
|
8
|
+
[`7d32c3cc54ceb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7d32c3cc54ceb) -
|
|
9
|
+
Exposes a new getNodeWithPosByLocalId(localId: string) function in the ExtensionAPI
|
|
10
|
+
|
|
3
11
|
## 103.15.0
|
|
4
12
|
|
|
5
13
|
### Minor 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 = "103.
|
|
20
|
+
var packageVersion = "103.16.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -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 = "103.
|
|
26
|
+
var packageVersion = "103.16.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -114,7 +114,8 @@ function MediaSingle(_ref) {
|
|
|
114
114
|
}, {
|
|
115
115
|
"data-width": mediaSingleWidth,
|
|
116
116
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
117
|
-
"data-node-type": nodeType
|
|
117
|
+
"data-node-type": nodeType,
|
|
118
|
+
"data-vc": "media-single"
|
|
118
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
119
120
|
,
|
|
120
121
|
className: (0, _classnames.default)('rich-media-item mediaSingleView-content-wrap', "image-".concat(layout), className, {
|
|
@@ -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 = "103.
|
|
4
|
+
const packageVersion = "103.16.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -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 = "103.
|
|
16
|
+
const packageVersion = "103.16.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -99,7 +99,8 @@ export default function MediaSingle({
|
|
|
99
99
|
}, {
|
|
100
100
|
"data-width": mediaSingleWidth,
|
|
101
101
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
102
|
-
"data-node-type": nodeType
|
|
102
|
+
"data-node-type": nodeType,
|
|
103
|
+
"data-vc": "media-single"
|
|
103
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
104
105
|
,
|
|
105
106
|
className: classnames('rich-media-item mediaSingleView-content-wrap', `image-${layout}`, className, {
|
|
@@ -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 = "103.
|
|
10
|
+
var packageVersion = "103.16.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -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 = "103.
|
|
23
|
+
var packageVersion = "103.16.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -106,7 +106,8 @@ export default function MediaSingle(_ref) {
|
|
|
106
106
|
}, {
|
|
107
107
|
"data-width": mediaSingleWidth,
|
|
108
108
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
109
|
-
"data-node-type": nodeType
|
|
109
|
+
"data-node-type": nodeType,
|
|
110
|
+
"data-vc": "media-single"
|
|
110
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
112
|
,
|
|
112
113
|
className: classnames('rich-media-item mediaSingleView-content-wrap', "image-".concat(layout), className, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
+
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
import type { Parameters } from './extension-parameters';
|
|
4
5
|
export interface ExtensionParams<T extends Parameters> {
|
|
5
6
|
extensionKey: string;
|
|
@@ -19,6 +20,7 @@ export type TransformAfter<T extends Parameters = Parameters> = (data: any) => P
|
|
|
19
20
|
export type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
20
21
|
editInContextPanel: (transformBefore: TransformBefore<T>, transformAfter: TransformAfter<T>) => void;
|
|
21
22
|
_editInLegacyMacroBrowser: () => void;
|
|
23
|
+
getNodeWithPosByLocalId: (localId: string) => NodeWithPos;
|
|
22
24
|
doc: {
|
|
23
25
|
insertAfter: (localId: string, adf: ADFEntity, options?: {
|
|
24
26
|
allowSelectionToNewNode?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
+
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
import type { Parameters } from './extension-parameters';
|
|
4
5
|
export interface ExtensionParams<T extends Parameters> {
|
|
5
6
|
extensionKey: string;
|
|
@@ -19,6 +20,7 @@ export type TransformAfter<T extends Parameters = Parameters> = (data: any) => P
|
|
|
19
20
|
export type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
20
21
|
editInContextPanel: (transformBefore: TransformBefore<T>, transformAfter: TransformAfter<T>) => void;
|
|
21
22
|
_editInLegacyMacroBrowser: () => void;
|
|
23
|
+
getNodeWithPosByLocalId: (localId: string) => NodeWithPos;
|
|
22
24
|
doc: {
|
|
23
25
|
insertAfter: (localId: string, adf: ADFEntity, options?: {
|
|
24
26
|
allowSelectionToNewNode?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.16.0",
|
|
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/"
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"@atlaskit/task-decision": "^19.1.0",
|
|
164
164
|
"@atlaskit/textfield": "^8.0.0",
|
|
165
165
|
"@atlaskit/theme": "^18.0.0",
|
|
166
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
166
|
+
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
|
167
167
|
"@atlaskit/tokens": "^4.8.0",
|
|
168
168
|
"@atlaskit/tooltip": "^20.0.0",
|
|
169
169
|
"@atlaskit/width-detector": "^5.0.0",
|