@atlaskit/editor-core 216.6.5 → 216.6.6
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 +6 -0
- package/afm-products/tsconfig.json +1 -1
- package/dist/cjs/ui/CollapsedEditor/index.js +3 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/CollapsedEditor/index.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/CollapsedEditor/index.js +3 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/docs/0-intro.tsx +22 -20
- package/docs/1-legacy-editor.tsx +22 -20
- package/docs/2-labs.tsx +3 -1
- package/docs/3-autoformatting.tsx +3 -1
- package/docs/4-annotations.tsx +17 -15
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -46,7 +46,9 @@ var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
46
46
|
}
|
|
47
47
|
}, {
|
|
48
48
|
key: "render",
|
|
49
|
-
value:
|
|
49
|
+
value:
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
+
function render() {
|
|
50
52
|
var _this2 = this;
|
|
51
53
|
var child = _react.default.Children.only(this.props.children);
|
|
52
54
|
this.functionalEditor = typeof child.type === 'function';
|
|
@@ -21,6 +21,7 @@ export default class CollapsedEditor extends React.Component {
|
|
|
21
21
|
}
|
|
22
22
|
this.previouslyExpanded = this.props.isExpanded;
|
|
23
23
|
}
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
render() {
|
|
25
26
|
const child = React.Children.only(this.props.children);
|
|
26
27
|
this.functionalEditor = typeof child.type === 'function';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "216.6.5";
|
|
@@ -39,7 +39,9 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
39
39
|
}
|
|
40
40
|
}, {
|
|
41
41
|
key: "render",
|
|
42
|
-
value:
|
|
42
|
+
value:
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
+
function render() {
|
|
43
45
|
var _this2 = this;
|
|
44
46
|
var child = React.Children.only(this.props.children);
|
|
45
47
|
this.functionalEditor = typeof child.type === 'function';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "216.6.5";
|
package/docs/0-intro.tsx
CHANGED
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
const _default_1: any = md`
|
|
6
7
|
${(<AtlassianInternalWarning />)}
|
|
7
8
|
## Introduction
|
|
8
9
|
|
|
@@ -387,26 +388,27 @@ function EditorInternal() {
|
|
|
387
388
|
|
|
388
389
|
|
|
389
390
|
${(
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
)}
|
|
391
|
+
<Example
|
|
392
|
+
packageName="@atlaskit/editor-core/composable-editor"
|
|
393
|
+
// Ignored via go/ees005
|
|
394
|
+
// eslint-disable-next-line import/no-commonjs
|
|
395
|
+
Component={require('../examples/1-basic-composable-editor').default}
|
|
396
|
+
title="Basic"
|
|
397
|
+
// Ignored via go/ees005
|
|
398
|
+
// eslint-disable-next-line import/no-commonjs
|
|
399
|
+
source={require('!!raw-loader!../examples/1-basic-composable-editor')}
|
|
400
|
+
/>
|
|
401
|
+
)}
|
|
401
402
|
|
|
402
403
|
${(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
404
|
+
<Props
|
|
405
|
+
shouldCollapseProps
|
|
406
|
+
heading="Props"
|
|
407
|
+
// Ignored via go/ees005
|
|
408
|
+
// eslint-disable-next-line import/no-commonjs
|
|
409
|
+
props={require('!!extract-react-types-loader!../src/composable-editor/composable-editor')}
|
|
410
|
+
/>
|
|
411
|
+
)}
|
|
411
412
|
|
|
412
413
|
`;
|
|
414
|
+
export default _default_1;
|
package/docs/1-legacy-editor.tsx
CHANGED
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
const _default_1: any = md`
|
|
6
7
|
${(<AtlassianInternalWarning />)}
|
|
7
8
|
|
|
8
9
|
### Note:
|
|
@@ -250,25 +251,26 @@ ${code`
|
|
|
250
251
|
`}
|
|
251
252
|
|
|
252
253
|
${(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
)}
|
|
254
|
+
<Example
|
|
255
|
+
packageName="@atlaskit/editor-core"
|
|
256
|
+
// Ignored via go/ees005
|
|
257
|
+
// eslint-disable-next-line import/no-commonjs
|
|
258
|
+
Component={require('../examples/1-basic-composable-editor').default}
|
|
259
|
+
title="Basic"
|
|
260
|
+
// Ignored via go/ees005
|
|
261
|
+
// eslint-disable-next-line import/no-commonjs
|
|
262
|
+
source={require('!!raw-loader!../examples/1-basic-composable-editor')}
|
|
263
|
+
/>
|
|
264
|
+
)}
|
|
264
265
|
|
|
265
266
|
${(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
<Props
|
|
268
|
+
shouldCollapseProps
|
|
269
|
+
heading="Props"
|
|
270
|
+
// Ignored via go/ees005
|
|
271
|
+
// eslint-disable-next-line import/no-commonjs
|
|
272
|
+
props={require('!!extract-react-types-loader!../src/editor')}
|
|
273
|
+
/>
|
|
274
|
+
)}
|
|
274
275
|
`;
|
|
276
|
+
export default _default_1;
|
package/docs/2-labs.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { code, md } from '@atlaskit/docs';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
const _default_1: any = md`
|
|
4
5
|
# Editor Labs
|
|
5
6
|
|
|
6
7
|
Where API changes can sit for experimental use
|
|
@@ -108,3 +109,4 @@ ${code`
|
|
|
108
109
|
)
|
|
109
110
|
`}
|
|
110
111
|
`;
|
|
112
|
+
export default _default_1;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { code, md } from '@atlaskit/docs';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
const _default_1: any = md`
|
|
4
5
|
# Autoformatting Provider
|
|
5
6
|
|
|
6
7
|
The custom autoformatting provider lets you specify your own function that triggers on particular regex strings, and asynchronously replace them with some content. More precisely, it returns a Promise containing ADF to replace the trigger text with.
|
|
@@ -41,3 +42,4 @@ ${code`export const autoformattingProvider: AutoformattingProvider = {
|
|
|
41
42
|
|
|
42
43
|
At the moment, only text or \`inlineCard\` ADF nodes are permitted to be replaced.
|
|
43
44
|
`;
|
|
45
|
+
export default _default_1;
|
package/docs/4-annotations.tsx
CHANGED
|
@@ -230,7 +230,8 @@ class SplitExample extends React.Component<{ initialAdf: object }> {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
234
|
+
const _default_1: any = md`
|
|
234
235
|
# Annotations
|
|
235
236
|
|
|
236
237
|
## Introduction
|
|
@@ -244,20 +245,20 @@ Currently, there is only the \`inlineComment\` type of annotation. In the future
|
|
|
244
245
|
These denote a comment thread about the given text, and are denoted by a yellow highlight. This is commonly seen within Confluence after selecting some text in View mode.
|
|
245
246
|
|
|
246
247
|
${(
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
)}
|
|
248
|
+
<div
|
|
249
|
+
style={{
|
|
250
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
251
|
+
margin: token('space.100', '8px'),
|
|
252
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
253
|
+
padding: token('space.100', '8px'),
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
255
|
+
backgroundColor: N20,
|
|
256
|
+
border: `${token('border.width')} solid ${N30}`,
|
|
257
|
+
}}
|
|
258
|
+
>
|
|
259
|
+
{inlineCommentEditor(initialExample)}
|
|
260
|
+
</div>
|
|
261
|
+
)}
|
|
261
262
|
|
|
262
263
|
### Example ADF
|
|
263
264
|
|
|
@@ -386,3 +387,4 @@ It is unmounted when exiting a region of text with an annotation.
|
|
|
386
387
|
|
|
387
388
|
* [ADF change proposal](https://product-fabric.atlassian.net/wiki/spaces/E/pages/853377081/ADF+Change+38+Annotation+mark)
|
|
388
389
|
`;
|
|
390
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "216.6.
|
|
3
|
+
"version": "216.6.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
57
57
|
"@atlaskit/editor-ssr-renderer": "^2.0.0",
|
|
58
58
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
59
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
59
|
+
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
60
60
|
"@atlaskit/emoji": "^69.10.0",
|
|
61
61
|
"@atlaskit/icon": "^29.4.0",
|
|
62
62
|
"@atlaskit/link": "^3.3.0",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^4.17.0",
|
|
68
68
|
"@atlaskit/task-decision": "^19.2.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
70
|
-
"@atlaskit/tokens": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
70
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
73
73
|
"@babel/runtime": "^7.0.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
108
108
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
109
109
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
110
|
-
"@atlaskit/renderer": "^
|
|
110
|
+
"@atlaskit/renderer": "^126.0.0",
|
|
111
111
|
"@atlaskit/section-message": "^8.12.0",
|
|
112
112
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
113
113
|
"@atlaskit/toggle": "^15.2.0",
|