@atlaskit/editor-common 74.2.1 → 74.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 +39 -0
- package/dist/cjs/i18n/en_ZZ.js +35 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/table.js +4 -4
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +1 -3
- package/dist/cjs/utils/compareNodes.js +66 -51
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/en_ZZ.js +35 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/table.js +4 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -3
- package/dist/es2019/utils/compareNodes.js +61 -47
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/en_ZZ.js +35 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/table.js +4 -4
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -3
- package/dist/esm/utils/compareNodes.js +65 -51
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +35 -2
- package/dist/types/types/feature-flags.d.ts +0 -11
- package/dist/types/utils/compareNodes.d.ts +3 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +35 -2
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -11
- package/dist/types-ts4.5/utils/compareNodes.d.ts +3 -1
- package/package.json +6 -5
|
@@ -385,17 +385,6 @@ export type FeatureFlags = {
|
|
|
385
385
|
* @default false
|
|
386
386
|
*/
|
|
387
387
|
preventPopupOverflow?: boolean;
|
|
388
|
-
/**
|
|
389
|
-
* @description
|
|
390
|
-
* Use the new editor next component which uses a preset to configure the editor plugins used.
|
|
391
|
-
*
|
|
392
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/EA/pages/3356459260/MAKE+Project+Poster+Editor+Presets+for+Easy+Adoption
|
|
393
|
-
* @see https://product-fabric.atlassian.net/browse/ED-16576
|
|
394
|
-
* @see https://product-fabric.atlassian.net/browse/ED-16577
|
|
395
|
-
* DUE DATE: April 2023
|
|
396
|
-
* @default false
|
|
397
|
-
*/
|
|
398
|
-
useEditorNext?: boolean;
|
|
399
388
|
/**
|
|
400
389
|
* @description
|
|
401
390
|
* Alter the default navigation behaviour of the typeahead insertion
|
|
@@ -18,7 +18,9 @@ interface NodeMetaGenerator<Type, Value> {
|
|
|
18
18
|
}
|
|
19
19
|
type TextNodeMeta = NodeMetaGenerator<ContentType.TEXT, string>;
|
|
20
20
|
type NodeMeta = TextNodeMeta | NodeMetaGenerator<ContentType.NUMBER, number> | NodeMetaGenerator<ContentType.STATUS, string> | NodeMetaGenerator<ContentType.DATE, number> | NodeMetaGenerator<ContentType.MENTION, string> | NodeMetaGenerator<ContentType.LINK, string>;
|
|
21
|
-
|
|
21
|
+
type NormalizeTextParser = (text: string) => string | number | null;
|
|
22
|
+
export declare function createNormalizeTextParser(): NormalizeTextParser;
|
|
23
|
+
export declare function extractMetaFromTextNode(textNode: PMNode, normalizeTextParser: NormalizeTextParser): NodeMeta;
|
|
22
24
|
/**
|
|
23
25
|
* Compare 2 prosemirror nodes and check if it's greater, equal or less than the other node
|
|
24
26
|
* based on the sort order.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
|
+
'fabric.editor.addMediaFiles': string;
|
|
10
11
|
'fabric.editor.alignImageCenter': string;
|
|
11
12
|
'fabric.editor.alignImageLeft': string;
|
|
12
13
|
'fabric.editor.alignImageRight': string;
|
|
@@ -16,6 +17,8 @@ declare const _default: {
|
|
|
16
17
|
'fabric.editor.codeBidiWarningLabel': string;
|
|
17
18
|
'fabric.editor.codeBlockCopyButton.copiedToClipboard': string;
|
|
18
19
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
20
|
+
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
21
|
+
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
19
22
|
'fabric.editor.collapseNode': string;
|
|
20
23
|
'fabric.editor.columns': string;
|
|
21
24
|
'fabric.editor.columns.description': string;
|
|
@@ -35,8 +38,6 @@ declare const _default: {
|
|
|
35
38
|
'fabric.editor.expandPlaceholder': string;
|
|
36
39
|
'fabric.editor.feedbackDialog': string;
|
|
37
40
|
'fabric.editor.feedbackDialog.description': string;
|
|
38
|
-
'fabric.editor.filesAndImages': string;
|
|
39
|
-
'fabric.editor.filesAndImages.description': string;
|
|
40
41
|
'fabric.editor.help': string;
|
|
41
42
|
'fabric.editor.help.description': string;
|
|
42
43
|
'fabric.editor.horizontalRule': string;
|
|
@@ -48,6 +49,8 @@ declare const _default: {
|
|
|
48
49
|
'fabric.editor.layoutWide': string;
|
|
49
50
|
'fabric.editor.link': string;
|
|
50
51
|
'fabric.editor.link.description': string;
|
|
52
|
+
'fabric.editor.mediaFiles': string;
|
|
53
|
+
'fabric.editor.mediaFiles.description': string;
|
|
51
54
|
'fabric.editor.mention': string;
|
|
52
55
|
'fabric.editor.mention.description': string;
|
|
53
56
|
'fabric.editor.openLink': string;
|
|
@@ -75,12 +78,32 @@ declare const _default: {
|
|
|
75
78
|
'fabric.editor.viewMore': string;
|
|
76
79
|
'fabric.editor.visit': string;
|
|
77
80
|
'fabric.theme.blue': string;
|
|
81
|
+
'fabric.theme.bold-blue': string;
|
|
82
|
+
'fabric.theme.bold-gray': string;
|
|
83
|
+
'fabric.theme.bold-green': string;
|
|
84
|
+
'fabric.theme.bold-magenta': string;
|
|
85
|
+
'fabric.theme.bold-orange': string;
|
|
86
|
+
'fabric.theme.bold-purple': string;
|
|
87
|
+
'fabric.theme.bold-red': string;
|
|
88
|
+
'fabric.theme.bold-teal': string;
|
|
89
|
+
'fabric.theme.bold-yellow': string;
|
|
90
|
+
'fabric.theme.bolder-blue': string;
|
|
91
|
+
'fabric.theme.bolder-gray': string;
|
|
92
|
+
'fabric.theme.bolder-green': string;
|
|
93
|
+
'fabric.theme.bolder-magenta': string;
|
|
94
|
+
'fabric.theme.bolder-orange': string;
|
|
95
|
+
'fabric.theme.bolder-purple': string;
|
|
96
|
+
'fabric.theme.bolder-red': string;
|
|
97
|
+
'fabric.theme.bolder-teal': string;
|
|
98
|
+
'fabric.theme.bolder-yellow': string;
|
|
78
99
|
'fabric.theme.dark-blue': string;
|
|
100
|
+
'fabric.theme.dark-gray': string;
|
|
79
101
|
'fabric.theme.dark-green': string;
|
|
80
102
|
'fabric.theme.dark-purple': string;
|
|
81
103
|
'fabric.theme.dark-red': string;
|
|
82
104
|
'fabric.theme.dark-teal': string;
|
|
83
105
|
'fabric.theme.dark-yellow': string;
|
|
106
|
+
'fabric.theme.default': string;
|
|
84
107
|
'fabric.theme.gray': string;
|
|
85
108
|
'fabric.theme.green': string;
|
|
86
109
|
'fabric.theme.light-blue': string;
|
|
@@ -90,9 +113,19 @@ declare const _default: {
|
|
|
90
113
|
'fabric.theme.light-red': string;
|
|
91
114
|
'fabric.theme.light-teal': string;
|
|
92
115
|
'fabric.theme.light-yellow': string;
|
|
116
|
+
'fabric.theme.magenta': string;
|
|
93
117
|
'fabric.theme.orange': string;
|
|
94
118
|
'fabric.theme.purple': string;
|
|
95
119
|
'fabric.theme.red': string;
|
|
120
|
+
'fabric.theme.subtle-blue': string;
|
|
121
|
+
'fabric.theme.subtle-gray': string;
|
|
122
|
+
'fabric.theme.subtle-green': string;
|
|
123
|
+
'fabric.theme.subtle-magenta': string;
|
|
124
|
+
'fabric.theme.subtle-orange': string;
|
|
125
|
+
'fabric.theme.subtle-purple': string;
|
|
126
|
+
'fabric.theme.subtle-red': string;
|
|
127
|
+
'fabric.theme.subtle-teal': string;
|
|
128
|
+
'fabric.theme.subtle-yellow': string;
|
|
96
129
|
'fabric.theme.teal': string;
|
|
97
130
|
'fabric.theme.white': string;
|
|
98
131
|
'fabric.theme.yellow': string;
|
|
@@ -385,17 +385,6 @@ export type FeatureFlags = {
|
|
|
385
385
|
* @default false
|
|
386
386
|
*/
|
|
387
387
|
preventPopupOverflow?: boolean;
|
|
388
|
-
/**
|
|
389
|
-
* @description
|
|
390
|
-
* Use the new editor next component which uses a preset to configure the editor plugins used.
|
|
391
|
-
*
|
|
392
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/EA/pages/3356459260/MAKE+Project+Poster+Editor+Presets+for+Easy+Adoption
|
|
393
|
-
* @see https://product-fabric.atlassian.net/browse/ED-16576
|
|
394
|
-
* @see https://product-fabric.atlassian.net/browse/ED-16577
|
|
395
|
-
* DUE DATE: April 2023
|
|
396
|
-
* @default false
|
|
397
|
-
*/
|
|
398
|
-
useEditorNext?: boolean;
|
|
399
388
|
/**
|
|
400
389
|
* @description
|
|
401
390
|
* Alter the default navigation behaviour of the typeahead insertion
|
|
@@ -18,7 +18,9 @@ interface NodeMetaGenerator<Type, Value> {
|
|
|
18
18
|
}
|
|
19
19
|
type TextNodeMeta = NodeMetaGenerator<ContentType.TEXT, string>;
|
|
20
20
|
type NodeMeta = TextNodeMeta | NodeMetaGenerator<ContentType.NUMBER, number> | NodeMetaGenerator<ContentType.STATUS, string> | NodeMetaGenerator<ContentType.DATE, number> | NodeMetaGenerator<ContentType.MENTION, string> | NodeMetaGenerator<ContentType.LINK, string>;
|
|
21
|
-
|
|
21
|
+
type NormalizeTextParser = (text: string) => string | number | null;
|
|
22
|
+
export declare function createNormalizeTextParser(): NormalizeTextParser;
|
|
23
|
+
export declare function extractMetaFromTextNode(textNode: PMNode, normalizeTextParser: NormalizeTextParser): NodeMeta;
|
|
22
24
|
/**
|
|
23
25
|
* Compare 2 prosemirror nodes and check if it's greater, equal or less than the other node
|
|
24
26
|
* based on the sort order.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.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/"
|
|
@@ -88,16 +88,16 @@
|
|
|
88
88
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
89
89
|
"@atlaskit/media-card": "^76.0.0",
|
|
90
90
|
"@atlaskit/media-client": "^22.0.0",
|
|
91
|
-
"@atlaskit/media-picker": "^
|
|
91
|
+
"@atlaskit/media-picker": "^66.0.0",
|
|
92
92
|
"@atlaskit/mention": "^22.1.0",
|
|
93
93
|
"@atlaskit/menu": "^1.7.0",
|
|
94
94
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
95
95
|
"@atlaskit/profilecard": "^19.4.0",
|
|
96
|
-
"@atlaskit/smart-card": "^26.
|
|
96
|
+
"@atlaskit/smart-card": "^26.5.0",
|
|
97
97
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
98
98
|
"@atlaskit/task-decision": "^17.6.0",
|
|
99
99
|
"@atlaskit/theme": "^12.5.0",
|
|
100
|
-
"@atlaskit/tokens": "^1.
|
|
100
|
+
"@atlaskit/tokens": "^1.5.0",
|
|
101
101
|
"@atlaskit/tooltip": "^17.8.0",
|
|
102
102
|
"@atlaskit/ufo": "^0.2.0",
|
|
103
103
|
"@atlaskit/width-detector": "^4.1.0",
|
|
@@ -135,10 +135,11 @@
|
|
|
135
135
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@atlaskit/editor-core": "^
|
|
138
|
+
"@atlaskit/editor-core": "^185.0.0",
|
|
139
139
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
140
140
|
"@atlaskit/editor-plugin-analytics": "^0.0.1",
|
|
141
141
|
"@atlaskit/editor-plugin-content-insertion": "^0.0.1",
|
|
142
|
+
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
142
143
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
143
144
|
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
144
145
|
"@atlaskit/editor-plugin-table": "^1.5.0",
|