@atlaskit/editor-common 102.12.0 → 102.13.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 +22 -0
- package/dist/cjs/insert/index.js +1 -27
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/insert/index.js +1 -30
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/insert/index.js +1 -27
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130262](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130262)
|
|
8
|
+
[`236c73af67c7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/236c73af67c7b) -
|
|
9
|
+
[ED-24873] This change is cleaning up code from the element templates experiment
|
|
10
|
+
`platform_editor_element_level_templates`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 102.12.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#129972](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129972)
|
|
21
|
+
[`b2d69a39e6687`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2d69a39e6687) -
|
|
22
|
+
Update `@compiled/react` dependency for improved type checking support.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 102.12.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/cjs/insert/index.js
CHANGED
|
@@ -251,20 +251,6 @@ var insertSelectedItem = exports.insertSelectedItem = function insertSelectedIte
|
|
|
251
251
|
*/
|
|
252
252
|
} else if (node instanceof _model.Node && node.isInline || isInputFragment) {
|
|
253
253
|
var fragment = isInputFragment ? node : _model.Fragment.fromArray([node, state.schema.text(' ')]);
|
|
254
|
-
|
|
255
|
-
// For platform_editor_element_level_templates experiment only
|
|
256
|
-
// clean up ticket ED-24873
|
|
257
|
-
// @ts-ignore
|
|
258
|
-
if (opts.isTemplate) {
|
|
259
|
-
return insertTemplateFragment({
|
|
260
|
-
fragment: fragment,
|
|
261
|
-
tr: tr,
|
|
262
|
-
position: {
|
|
263
|
-
start: start,
|
|
264
|
-
end: start
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
254
|
tr = tr.replaceWith(start, start, fragment);
|
|
269
255
|
if (opts.selectInlineNode) {
|
|
270
256
|
// Select inserted node
|
|
@@ -332,16 +318,4 @@ function fragmentContainsNodeType(fragment, nodeType) {
|
|
|
332
318
|
return true;
|
|
333
319
|
});
|
|
334
320
|
return doesContainNodeType;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
// For platform_editor_element_level_templates experiment only
|
|
338
|
-
// clean up ticket ED-24873
|
|
339
|
-
var insertTemplateFragment = function insertTemplateFragment(_ref3) {
|
|
340
|
-
var fragment = _ref3.fragment,
|
|
341
|
-
tr = _ref3.tr,
|
|
342
|
-
position = _ref3.position;
|
|
343
|
-
var start = position.start;
|
|
344
|
-
var trWithInsert = (0, _utils.safeInsert)(fragment, start)(tr);
|
|
345
|
-
tr.setSelection(trWithInsert.selection);
|
|
346
|
-
return tr;
|
|
347
|
-
};
|
|
321
|
+
}
|
|
@@ -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.
|
|
20
|
+
var packageVersion = "102.13.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 = "102.
|
|
26
|
+
var packageVersion = "102.13.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -243,20 +243,6 @@ export const insertSelectedItem = (maybeNode, opts = {}) => (state, tr, start) =
|
|
|
243
243
|
*/
|
|
244
244
|
} else if (node instanceof Node && node.isInline || isInputFragment) {
|
|
245
245
|
const fragment = isInputFragment ? node : Fragment.fromArray([node, state.schema.text(' ')]);
|
|
246
|
-
|
|
247
|
-
// For platform_editor_element_level_templates experiment only
|
|
248
|
-
// clean up ticket ED-24873
|
|
249
|
-
// @ts-ignore
|
|
250
|
-
if (opts.isTemplate) {
|
|
251
|
-
return insertTemplateFragment({
|
|
252
|
-
fragment,
|
|
253
|
-
tr,
|
|
254
|
-
position: {
|
|
255
|
-
start,
|
|
256
|
-
end: start
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
246
|
tr = tr.replaceWith(start, start, fragment);
|
|
261
247
|
if (opts.selectInlineNode) {
|
|
262
248
|
// Select inserted node
|
|
@@ -325,19 +311,4 @@ export function fragmentContainsNodeType(fragment, nodeType) {
|
|
|
325
311
|
return true;
|
|
326
312
|
});
|
|
327
313
|
return doesContainNodeType;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// For platform_editor_element_level_templates experiment only
|
|
331
|
-
// clean up ticket ED-24873
|
|
332
|
-
const insertTemplateFragment = ({
|
|
333
|
-
fragment,
|
|
334
|
-
tr,
|
|
335
|
-
position
|
|
336
|
-
}) => {
|
|
337
|
-
const {
|
|
338
|
-
start
|
|
339
|
-
} = position;
|
|
340
|
-
const trWithInsert = pmSafeInsert(fragment, start)(tr);
|
|
341
|
-
tr.setSelection(trWithInsert.selection);
|
|
342
|
-
return tr;
|
|
343
|
-
};
|
|
314
|
+
}
|
|
@@ -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.
|
|
4
|
+
const packageVersion = "102.13.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 = "102.
|
|
16
|
+
const packageVersion = "102.13.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
package/dist/esm/insert/index.js
CHANGED
|
@@ -241,20 +241,6 @@ export var insertSelectedItem = function insertSelectedItem(maybeNode) {
|
|
|
241
241
|
*/
|
|
242
242
|
} else if (node instanceof Node && node.isInline || isInputFragment) {
|
|
243
243
|
var fragment = isInputFragment ? node : Fragment.fromArray([node, state.schema.text(' ')]);
|
|
244
|
-
|
|
245
|
-
// For platform_editor_element_level_templates experiment only
|
|
246
|
-
// clean up ticket ED-24873
|
|
247
|
-
// @ts-ignore
|
|
248
|
-
if (opts.isTemplate) {
|
|
249
|
-
return insertTemplateFragment({
|
|
250
|
-
fragment: fragment,
|
|
251
|
-
tr: tr,
|
|
252
|
-
position: {
|
|
253
|
-
start: start,
|
|
254
|
-
end: start
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
244
|
tr = tr.replaceWith(start, start, fragment);
|
|
259
245
|
if (opts.selectInlineNode) {
|
|
260
246
|
// Select inserted node
|
|
@@ -322,16 +308,4 @@ export function fragmentContainsNodeType(fragment, nodeType) {
|
|
|
322
308
|
return true;
|
|
323
309
|
});
|
|
324
310
|
return doesContainNodeType;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// For platform_editor_element_level_templates experiment only
|
|
328
|
-
// clean up ticket ED-24873
|
|
329
|
-
var insertTemplateFragment = function insertTemplateFragment(_ref3) {
|
|
330
|
-
var fragment = _ref3.fragment,
|
|
331
|
-
tr = _ref3.tr,
|
|
332
|
-
position = _ref3.position;
|
|
333
|
-
var start = position.start;
|
|
334
|
-
var trWithInsert = pmSafeInsert(fragment, start)(tr);
|
|
335
|
-
tr.setSelection(trWithInsert.selection);
|
|
336
|
-
return tr;
|
|
337
|
-
};
|
|
311
|
+
}
|
|
@@ -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.
|
|
10
|
+
var packageVersion = "102.13.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 = "102.
|
|
23
|
+
var packageVersion = "102.13.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.
|
|
3
|
+
"version": "102.13.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/"
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
125
125
|
"@atlaskit/atlassian-context": "^0.2.0",
|
|
126
126
|
"@atlaskit/button": "^21.1.0",
|
|
127
|
-
"@atlaskit/code": "^16.
|
|
127
|
+
"@atlaskit/code": "^16.1.0",
|
|
128
128
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
129
129
|
"@atlaskit/css": "^0.10.0",
|
|
130
130
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
@@ -138,14 +138,14 @@
|
|
|
138
138
|
"@atlaskit/icon": "^25.0.0",
|
|
139
139
|
"@atlaskit/icon-object": "^7.0.0",
|
|
140
140
|
"@atlaskit/link-datasource": "^4.1.0",
|
|
141
|
-
"@atlaskit/link-picker": "^3.
|
|
141
|
+
"@atlaskit/link-picker": "^3.1.0",
|
|
142
142
|
"@atlaskit/media-card": "^79.0.0",
|
|
143
143
|
"@atlaskit/media-client": "^32.0.0",
|
|
144
144
|
"@atlaskit/media-client-react": "^4.0.0",
|
|
145
145
|
"@atlaskit/media-common": "^12.0.0",
|
|
146
146
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
147
147
|
"@atlaskit/media-picker": "^68.0.0",
|
|
148
|
-
"@atlaskit/media-ui": "^28.
|
|
148
|
+
"@atlaskit/media-ui": "^28.1.0",
|
|
149
149
|
"@atlaskit/media-viewer": "^52.0.0",
|
|
150
150
|
"@atlaskit/mention": "^24.1.0",
|
|
151
151
|
"@atlaskit/menu": "^3.1.0",
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
"@atlaskit/spinner": "^18.0.0",
|
|
161
161
|
"@atlaskit/task-decision": "^19.1.0",
|
|
162
162
|
"@atlaskit/textfield": "^8.0.0",
|
|
163
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
163
|
+
"@atlaskit/tmp-editor-statsig": "^4.2.0",
|
|
164
164
|
"@atlaskit/tokens": "^4.5.0",
|
|
165
165
|
"@atlaskit/tooltip": "^20.0.0",
|
|
166
166
|
"@atlaskit/width-detector": "^5.0.0",
|
|
167
167
|
"@babel/runtime": "^7.0.0",
|
|
168
|
-
"@compiled/react": "^0.18.
|
|
168
|
+
"@compiled/react": "^0.18.3",
|
|
169
169
|
"@emotion/react": "^11.7.1",
|
|
170
170
|
"@sentry/browser": "^6.18.2",
|
|
171
171
|
"@sentry/integrations": "^6.18.2",
|