@atlaskit/editor-plugin-find-replace 10.2.1 → 10.2.2
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 +9 -0
- package/dist/cjs/pm-plugins/utils/index.js +2 -3
- package/dist/es2019/pm-plugins/utils/index.js +2 -3
- package/dist/esm/pm-plugins/utils/index.js +2 -3
- package/dist/types/pm-plugins/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/index.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 10.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cec76b6d3aeaa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cec76b6d3aeaa) -
|
|
8
|
+
Cleanup feature gate `platform_synced_block_patch_11`. Jira work-item issue-type icons,
|
|
9
|
+
product-specific copy, and Relay environment initialisation are now permanently enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.2.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -20,7 +20,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
20
20
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
21
21
|
var _resource = require("@atlaskit/mention/resource");
|
|
22
22
|
var _types = require("@atlaskit/mention/types");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
24
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
26
25
|
var _tokens = require("@atlaskit/tokens");
|
|
@@ -85,7 +84,7 @@ var createDecorations = exports.createDecorations = function createDecorations(s
|
|
|
85
84
|
});
|
|
86
85
|
};
|
|
87
86
|
var isElement = function isElement(nodeType) {
|
|
88
|
-
return ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && (0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
87
|
+
return ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && (0, _experiments.editorExperiment)('platform_synced_block', true);
|
|
89
88
|
};
|
|
90
89
|
var isExpandTitle = function isExpandTitle(match) {
|
|
91
90
|
return ['expand', 'nestedExpand'].includes(match.nodeType || '') && !match.canReplace;
|
|
@@ -279,7 +278,7 @@ function findMatches(_ref2) {
|
|
|
279
278
|
break;
|
|
280
279
|
case 'syncBlock':
|
|
281
280
|
{
|
|
282
|
-
if ((0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
281
|
+
if ((0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
283
282
|
var _api$syncedBlock, _instance$data;
|
|
284
283
|
var syncBlockStore = api === null || api === void 0 || (_api$syncedBlock = api.syncedBlock) === null || _api$syncedBlock === void 0 || (_api$syncedBlock = _api$syncedBlock.sharedState.currentState()) === null || _api$syncedBlock === void 0 ? void 0 : _api$syncedBlock.syncBlockStore;
|
|
285
284
|
var instance = syncBlockStore === null || syncBlockStore === void 0 ? void 0 : syncBlockStore.referenceManager.getFromCache(node.attrs.resourceId);
|
|
@@ -4,7 +4,6 @@ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state
|
|
|
4
4
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
6
6
|
import { isPromise, MentionNameStatus } from '@atlaskit/mention/types';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
9
|
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
@@ -54,7 +53,7 @@ export const createDecorations = (selectedIndex, matches) => matches.map(({
|
|
|
54
53
|
canReplace,
|
|
55
54
|
nodeType
|
|
56
55
|
}, i === selectedIndex));
|
|
57
|
-
const isElement = nodeType => ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && editorExperiment('platform_synced_block', true)
|
|
56
|
+
const isElement = nodeType => ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && editorExperiment('platform_synced_block', true);
|
|
58
57
|
const isExpandTitle = match => ['expand', 'nestedExpand'].includes(match.nodeType || '') && !match.canReplace;
|
|
59
58
|
export const createDecoration = (match, isSelected) => {
|
|
60
59
|
const {
|
|
@@ -263,7 +262,7 @@ export function findMatches({
|
|
|
263
262
|
break;
|
|
264
263
|
case 'syncBlock':
|
|
265
264
|
{
|
|
266
|
-
if (editorExperiment('platform_synced_block', true)
|
|
265
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
267
266
|
var _api$syncedBlock, _api$syncedBlock$shar, _instance$data;
|
|
268
267
|
const syncBlockStore = api === null || api === void 0 ? void 0 : (_api$syncedBlock = api.syncedBlock) === null || _api$syncedBlock === void 0 ? void 0 : (_api$syncedBlock$shar = _api$syncedBlock.sharedState.currentState()) === null || _api$syncedBlock$shar === void 0 ? void 0 : _api$syncedBlock$shar.syncBlockStore;
|
|
269
268
|
const instance = syncBlockStore === null || syncBlockStore === void 0 ? void 0 : syncBlockStore.referenceManager.getFromCache(node.attrs.resourceId);
|
|
@@ -8,7 +8,6 @@ import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state
|
|
|
8
8
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import { isResolvingMentionProvider } from '@atlaskit/mention/resource';
|
|
10
10
|
import { isPromise, MentionNameStatus } from '@atlaskit/mention/types';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
13
|
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
@@ -71,7 +70,7 @@ export var createDecorations = function createDecorations(selectedIndex, matches
|
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
72
|
var isElement = function isElement(nodeType) {
|
|
74
|
-
return ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && editorExperiment('platform_synced_block', true)
|
|
73
|
+
return ['blockCard', 'embedCard', 'inlineCard', 'status', 'mention', 'date'].includes(nodeType || '') || nodeType === 'syncBlock' && editorExperiment('platform_synced_block', true);
|
|
75
74
|
};
|
|
76
75
|
var isExpandTitle = function isExpandTitle(match) {
|
|
77
76
|
return ['expand', 'nestedExpand'].includes(match.nodeType || '') && !match.canReplace;
|
|
@@ -265,7 +264,7 @@ export function findMatches(_ref2) {
|
|
|
265
264
|
break;
|
|
266
265
|
case 'syncBlock':
|
|
267
266
|
{
|
|
268
|
-
if (editorExperiment('platform_synced_block', true)
|
|
267
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
269
268
|
var _api$syncedBlock, _instance$data;
|
|
270
269
|
var syncBlockStore = api === null || api === void 0 || (_api$syncedBlock = api.syncedBlock) === null || _api$syncedBlock === void 0 || (_api$syncedBlock = _api$syncedBlock.sharedState.currentState()) === null || _api$syncedBlock === void 0 ? void 0 : _api$syncedBlock.syncBlockStore;
|
|
271
270
|
var instance = syncBlockStore === null || syncBlockStore === void 0 ? void 0 : syncBlockStore.referenceManager.getFromCache(node.attrs.resourceId);
|
|
@@ -13,12 +13,12 @@ import type { Match } from '../../types';
|
|
|
13
13
|
* Used to search inside reference sync blocks whose content lives outside the PM document.
|
|
14
14
|
*/
|
|
15
15
|
type SimpleADFNode = {
|
|
16
|
-
type?: string;
|
|
17
16
|
attrs?: {
|
|
18
17
|
title?: string;
|
|
19
18
|
};
|
|
20
19
|
content?: SimpleADFNode[];
|
|
21
20
|
text?: string;
|
|
21
|
+
type?: string;
|
|
22
22
|
};
|
|
23
23
|
export declare function extractTextFromADFContent(nodes: SimpleADFNode[]): string;
|
|
24
24
|
export declare function getSelectedText(selection: TextSelection): string;
|
|
@@ -13,12 +13,12 @@ import type { Match } from '../../types';
|
|
|
13
13
|
* Used to search inside reference sync blocks whose content lives outside the PM document.
|
|
14
14
|
*/
|
|
15
15
|
type SimpleADFNode = {
|
|
16
|
-
type?: string;
|
|
17
16
|
attrs?: {
|
|
18
17
|
title?: string;
|
|
19
18
|
};
|
|
20
19
|
content?: SimpleADFNode[];
|
|
21
20
|
text?: string;
|
|
21
|
+
type?: string;
|
|
22
22
|
};
|
|
23
23
|
export declare function extractTextFromADFContent(nodes: SimpleADFNode[]): string;
|
|
24
24
|
export declare function getSelectedText(selection: TextSelection): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.2",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
40
40
|
"@atlaskit/form": "^15.5.0",
|
|
41
|
-
"@atlaskit/icon": "^34.
|
|
41
|
+
"@atlaskit/icon": "^34.6.0",
|
|
42
42
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
43
43
|
"@atlaskit/mention": "^25.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -112,9 +112,6 @@
|
|
|
112
112
|
"platform-feature-flags": {
|
|
113
113
|
"platform_editor_toolbar_responsive_fixes": {
|
|
114
114
|
"type": "boolean"
|
|
115
|
-
},
|
|
116
|
-
"platform_synced_block_patch_11": {
|
|
117
|
-
"type": "boolean"
|
|
118
115
|
}
|
|
119
116
|
}
|
|
120
117
|
}
|