@atlaskit/editor-common 84.2.0 → 84.3.1
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 +23 -0
- package/afm-jira/tsconfig.json +3 -0
- package/dist/cjs/element-browser/components/CategoryList.js +5 -18
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +5 -5
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +20 -31
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -2
- package/dist/cjs/mark/commands.js +2 -7
- package/dist/cjs/messages/annotation.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +3 -2
- package/dist/cjs/styles/shared/annotation.js +2 -34
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/annotation/index.js +10 -18
- package/dist/cjs/utils/index.js +5 -1
- package/dist/cjs/utils/scroll-gutter.js +3 -0
- package/dist/cjs/utils/validator.js +5 -5
- package/dist/cjs/whitespace/index.js +18 -0
- package/dist/es2019/element-browser/components/CategoryList.js +5 -14
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +6 -6
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +20 -31
- package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/es2019/mark/commands.js +3 -10
- package/dist/es2019/messages/annotation.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -1
- package/dist/es2019/styles/shared/annotation.js +3 -35
- package/dist/es2019/styles/shared/smartCard.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/annotation/index.js +11 -21
- package/dist/es2019/utils/index.js +4 -1
- package/dist/es2019/utils/scroll-gutter.js +3 -0
- package/dist/es2019/utils/validator.js +6 -6
- package/dist/es2019/whitespace/index.js +1 -0
- package/dist/esm/element-browser/components/CategoryList.js +5 -18
- package/dist/esm/element-browser/components/ElementList/ElementList.js +6 -6
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +20 -31
- package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/esm/mark/commands.js +3 -8
- package/dist/esm/messages/annotation.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -1
- package/dist/esm/styles/shared/annotation.js +3 -35
- package/dist/esm/styles/shared/smartCard.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/annotation/index.js +11 -19
- package/dist/esm/utils/index.js +4 -1
- package/dist/esm/utils/scroll-gutter.js +3 -0
- package/dist/esm/utils/validator.js +6 -6
- package/dist/esm/whitespace/index.js +1 -0
- package/dist/types/types/annotation/index.d.ts +2 -2
- package/dist/types/utils/annotation/index.d.ts +2 -2
- package/dist/types/utils/index.d.ts +4 -1
- package/dist/types/utils/scroll-gutter.d.ts +3 -0
- package/dist/types/whitespace/index.d.ts +1 -0
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/index.d.ts +4 -1
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +3 -0
- package/dist/types-ts4.5/whitespace/index.d.ts +1 -0
- package/package.json +3 -8
- package/whitespace/package.json +15 -0
- /package/dist/cjs/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/es2019/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/esm/{utils → whitespace}/whitespace.js +0 -0
- /package/dist/types/{utils → whitespace}/whitespace.d.ts +0 -0
- /package/dist/types-ts4.5/{utils → whitespace}/whitespace.d.ts +0 -0
|
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function returns a list of node types that are wrapped by an annotation mark.
|
|
23
23
|
*
|
|
24
|
-
* The `undefined` will be returned if `
|
|
24
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
25
25
|
*
|
|
26
26
|
* @todo: Do not forget to remove `undefined` when the
|
|
27
|
-
* `
|
|
27
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
28
28
|
*/
|
|
29
29
|
export declare function getAnnotationInlineNodeTypes(state: {
|
|
30
30
|
doc: PMNode;
|
|
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
|
|
|
35
35
|
export { createCompareNodes } from './compareNodes';
|
|
36
36
|
export { compose } from './compose';
|
|
37
37
|
export { isTextInput } from './is-text-input';
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
|
|
40
|
+
*/
|
|
41
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
|
|
39
42
|
export type { Diff } from './types';
|
|
40
43
|
export { shouldForceTracking } from './should-force-tracking';
|
|
41
44
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
|
|
@@ -85,10 +85,10 @@ export type InlineCommentViewComponentProps = {
|
|
|
85
85
|
* Return a list of inline node types, which are wrapped by the annotation,
|
|
86
86
|
* for annotation with given ID.
|
|
87
87
|
*
|
|
88
|
-
* The `undefined` will be returned if `
|
|
88
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
89
89
|
*
|
|
90
90
|
* @todo: Do not forget to remove `undefined` when the
|
|
91
|
-
* `
|
|
91
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
92
92
|
*/
|
|
93
93
|
getInlineNodeTypes: (annotationId: string) => string[] | undefined;
|
|
94
94
|
};
|
|
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
|
|
|
21
21
|
/**
|
|
22
22
|
* This function returns a list of node types that are wrapped by an annotation mark.
|
|
23
23
|
*
|
|
24
|
-
* The `undefined` will be returned if `
|
|
24
|
+
* The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
|
|
25
25
|
*
|
|
26
26
|
* @todo: Do not forget to remove `undefined` when the
|
|
27
|
-
* `
|
|
27
|
+
* `editor_inline_comments_on_inline_nodes` is removed.
|
|
28
28
|
*/
|
|
29
29
|
export declare function getAnnotationInlineNodeTypes(state: {
|
|
30
30
|
doc: PMNode;
|
|
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
|
|
|
35
35
|
export { createCompareNodes } from './compareNodes';
|
|
36
36
|
export { compose } from './compose';
|
|
37
37
|
export { isTextInput } from './is-text-input';
|
|
38
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
|
|
40
|
+
*/
|
|
41
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
|
|
39
42
|
export type { Diff } from './types';
|
|
40
43
|
export { shouldForceTracking } from './should-force-tracking';
|
|
41
44
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "84.
|
|
3
|
+
"version": "84.3.1",
|
|
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/"
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"runReact18": true
|
|
31
31
|
},
|
|
32
32
|
"af:exports": {
|
|
33
|
+
"./whitespace": "./src/whitespace/index.ts",
|
|
33
34
|
"./event-dispatcher": "./src/event-dispatcher/index.ts",
|
|
34
35
|
"./extensions": "./src/extensions.ts",
|
|
35
36
|
"./extensibility": "./src/extensibility/index.ts",
|
|
@@ -232,18 +233,12 @@
|
|
|
232
233
|
"platform.editor.inline_extension.extended_lcqdn": {
|
|
233
234
|
"type": "boolean"
|
|
234
235
|
},
|
|
235
|
-
"
|
|
236
|
-
"type": "boolean"
|
|
237
|
-
},
|
|
238
|
-
"platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz": {
|
|
236
|
+
"editor_inline_comments_on_inline_nodes": {
|
|
239
237
|
"type": "boolean"
|
|
240
238
|
},
|
|
241
239
|
"platform.editor.mbe-update-params-change": {
|
|
242
240
|
"type": "boolean"
|
|
243
241
|
},
|
|
244
|
-
"platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1": {
|
|
245
|
-
"type": "boolean"
|
|
246
|
-
},
|
|
247
242
|
"platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
|
|
248
243
|
"type": "boolean"
|
|
249
244
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/whitespace",
|
|
3
|
+
"main": "../dist/cjs/whitespace/index.js",
|
|
4
|
+
"module": "../dist/esm/whitespace/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/whitespace/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/whitespace/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/whitespace/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|