@atlaskit/editor-core 191.0.7 → 191.0.9

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.
Files changed (127) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +3 -3
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/presets/universal.js +2 -1
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  6. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/presets/universal.js +2 -1
  10. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  11. package/dist/es2019/ui/ContentStyles/index.js +1 -1
  12. package/dist/es2019/version-wrapper.js +1 -1
  13. package/dist/esm/plugins/index.js +0 -1
  14. package/dist/esm/presets/universal.js +2 -1
  15. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
  16. package/dist/esm/ui/ContentStyles/index.js +1 -1
  17. package/dist/esm/version-wrapper.js +1 -1
  18. package/dist/types/plugins/index.d.ts +0 -1
  19. package/dist/types/types/editor-props.d.ts +1 -1
  20. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  21. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  22. package/package.json +9 -9
  23. package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +0 -166
  24. package/dist/cjs/plugins/find-replace/actions.js +0 -19
  25. package/dist/cjs/plugins/find-replace/commands-with-analytics.js +0 -101
  26. package/dist/cjs/plugins/find-replace/commands.js +0 -255
  27. package/dist/cjs/plugins/find-replace/index.js +0 -94
  28. package/dist/cjs/plugins/find-replace/keymap.js +0 -24
  29. package/dist/cjs/plugins/find-replace/plugin-key.js +0 -8
  30. package/dist/cjs/plugins/find-replace/plugin.js +0 -138
  31. package/dist/cjs/plugins/find-replace/reducer.js +0 -61
  32. package/dist/cjs/plugins/find-replace/styles.js +0 -16
  33. package/dist/cjs/plugins/find-replace/types.js +0 -5
  34. package/dist/cjs/plugins/find-replace/ui/Find.js +0 -308
  35. package/dist/cjs/plugins/find-replace/ui/FindReplace.js +0 -103
  36. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +0 -132
  37. package/dist/cjs/plugins/find-replace/ui/FindReplaceTooltipButton.js +0 -76
  38. package/dist/cjs/plugins/find-replace/ui/Replace.js +0 -174
  39. package/dist/cjs/plugins/find-replace/ui/styles.js +0 -44
  40. package/dist/cjs/plugins/find-replace/utils/batch-decorations.js +0 -310
  41. package/dist/cjs/plugins/find-replace/utils/commands.js +0 -16
  42. package/dist/cjs/plugins/find-replace/utils/index.js +0 -290
  43. package/dist/cjs/utils/array.js +0 -13
  44. package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +0 -153
  45. package/dist/es2019/plugins/find-replace/actions.js +0 -13
  46. package/dist/es2019/plugins/find-replace/commands-with-analytics.js +0 -72
  47. package/dist/es2019/plugins/find-replace/commands.js +0 -240
  48. package/dist/es2019/plugins/find-replace/index.js +0 -89
  49. package/dist/es2019/plugins/find-replace/keymap.js +0 -16
  50. package/dist/es2019/plugins/find-replace/plugin-key.js +0 -2
  51. package/dist/es2019/plugins/find-replace/plugin.js +0 -117
  52. package/dist/es2019/plugins/find-replace/reducer.js +0 -56
  53. package/dist/es2019/plugins/find-replace/styles.js +0 -17
  54. package/dist/es2019/plugins/find-replace/types.js +0 -1
  55. package/dist/es2019/plugins/find-replace/ui/Find.js +0 -284
  56. package/dist/es2019/plugins/find-replace/ui/FindReplace.js +0 -78
  57. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +0 -122
  58. package/dist/es2019/plugins/find-replace/ui/FindReplaceTooltipButton.js +0 -50
  59. package/dist/es2019/plugins/find-replace/ui/Replace.js +0 -152
  60. package/dist/es2019/plugins/find-replace/ui/styles.js +0 -48
  61. package/dist/es2019/plugins/find-replace/utils/batch-decorations.js +0 -189
  62. package/dist/es2019/plugins/find-replace/utils/commands.js +0 -6
  63. package/dist/es2019/plugins/find-replace/utils/index.js +0 -249
  64. package/dist/es2019/utils/array.js +0 -3
  65. package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +0 -157
  66. package/dist/esm/plugins/find-replace/actions.js +0 -13
  67. package/dist/esm/plugins/find-replace/commands-with-analytics.js +0 -95
  68. package/dist/esm/plugins/find-replace/commands.js +0 -248
  69. package/dist/esm/plugins/find-replace/index.js +0 -87
  70. package/dist/esm/plugins/find-replace/keymap.js +0 -18
  71. package/dist/esm/plugins/find-replace/plugin-key.js +0 -2
  72. package/dist/esm/plugins/find-replace/plugin.js +0 -133
  73. package/dist/esm/plugins/find-replace/reducer.js +0 -54
  74. package/dist/esm/plugins/find-replace/styles.js +0 -10
  75. package/dist/esm/plugins/find-replace/types.js +0 -1
  76. package/dist/esm/plugins/find-replace/ui/Find.js +0 -302
  77. package/dist/esm/plugins/find-replace/ui/FindReplace.js +0 -97
  78. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +0 -126
  79. package/dist/esm/plugins/find-replace/ui/FindReplaceTooltipButton.js +0 -69
  80. package/dist/esm/plugins/find-replace/ui/Replace.js +0 -168
  81. package/dist/esm/plugins/find-replace/ui/styles.js +0 -37
  82. package/dist/esm/plugins/find-replace/utils/batch-decorations.js +0 -304
  83. package/dist/esm/plugins/find-replace/utils/commands.js +0 -10
  84. package/dist/esm/plugins/find-replace/utils/index.js +0 -280
  85. package/dist/esm/utils/array.js +0 -7
  86. package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +0 -4
  87. package/dist/types/plugins/find-replace/actions.d.ts +0 -64
  88. package/dist/types/plugins/find-replace/commands-with-analytics.d.ts +0 -27
  89. package/dist/types/plugins/find-replace/commands.d.ts +0 -12
  90. package/dist/types/plugins/find-replace/index.d.ts +0 -3
  91. package/dist/types/plugins/find-replace/keymap.d.ts +0 -4
  92. package/dist/types/plugins/find-replace/plugin-key.d.ts +0 -3
  93. package/dist/types/plugins/find-replace/plugin.d.ts +0 -6
  94. package/dist/types/plugins/find-replace/reducer.d.ts +0 -4
  95. package/dist/types/plugins/find-replace/styles.d.ts +0 -3
  96. package/dist/types/plugins/find-replace/types.d.ts +0 -79
  97. package/dist/types/plugins/find-replace/ui/Find.d.ts +0 -71
  98. package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +0 -43
  99. package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +0 -21
  100. package/dist/types/plugins/find-replace/ui/FindReplaceTooltipButton.d.ts +0 -18
  101. package/dist/types/plugins/find-replace/ui/Replace.d.ts +0 -27
  102. package/dist/types/plugins/find-replace/ui/styles.d.ts +0 -6
  103. package/dist/types/plugins/find-replace/utils/batch-decorations.d.ts +0 -36
  104. package/dist/types/plugins/find-replace/utils/commands.d.ts +0 -2
  105. package/dist/types/plugins/find-replace/utils/index.d.ts +0 -49
  106. package/dist/types/utils/array.d.ts +0 -1
  107. package/dist/types-ts4.5/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +0 -4
  108. package/dist/types-ts4.5/plugins/find-replace/actions.d.ts +0 -64
  109. package/dist/types-ts4.5/plugins/find-replace/commands-with-analytics.d.ts +0 -27
  110. package/dist/types-ts4.5/plugins/find-replace/commands.d.ts +0 -12
  111. package/dist/types-ts4.5/plugins/find-replace/index.d.ts +0 -3
  112. package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +0 -4
  113. package/dist/types-ts4.5/plugins/find-replace/plugin-key.d.ts +0 -3
  114. package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +0 -6
  115. package/dist/types-ts4.5/plugins/find-replace/reducer.d.ts +0 -4
  116. package/dist/types-ts4.5/plugins/find-replace/styles.d.ts +0 -3
  117. package/dist/types-ts4.5/plugins/find-replace/types.d.ts +0 -79
  118. package/dist/types-ts4.5/plugins/find-replace/ui/Find.d.ts +0 -71
  119. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplace.d.ts +0 -43
  120. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +0 -21
  121. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceTooltipButton.d.ts +0 -18
  122. package/dist/types-ts4.5/plugins/find-replace/ui/Replace.d.ts +0 -27
  123. package/dist/types-ts4.5/plugins/find-replace/ui/styles.d.ts +0 -6
  124. package/dist/types-ts4.5/plugins/find-replace/utils/batch-decorations.d.ts +0 -36
  125. package/dist/types-ts4.5/plugins/find-replace/utils/commands.d.ts +0 -2
  126. package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +0 -49
  127. package/dist/types-ts4.5/utils/array.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 191.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#66388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66388) [`1698d83da05f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1698d83da05f) - ED-21743: Extract find replace plugin from editor-core
8
+ - Updated dependencies
9
+
10
+ ## 191.0.8
11
+
12
+ ### Patch Changes
13
+
14
+ - [#57215](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57215) [`73841c209537`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/73841c209537) - [ux] ECA11Y-107: Add basic keyboard navigation for resize sliders
15
+ - Updated dependencies
16
+
3
17
  ## 191.0.7
4
18
 
5
19
  ### Patch Changes
@@ -133,6 +133,9 @@
133
133
  {
134
134
  "path": "../../editor-plugin-feedback-dialog/afm-cc/tsconfig.json"
135
135
  },
136
+ {
137
+ "path": "../../editor-plugin-find-replace/afm-cc/tsconfig.json"
138
+ },
136
139
  {
137
140
  "path": "../../editor-plugin-floating-toolbar/afm-cc/tsconfig.json"
138
141
  },
@@ -277,9 +280,6 @@
277
280
  {
278
281
  "path": "../../../elements/task-decision/afm-cc/tsconfig.json"
279
282
  },
280
- {
281
- "path": "../../../design-system/textfield/afm-cc/tsconfig.json"
282
- },
283
283
  {
284
284
  "path": "../../../design-system/theme/afm-cc/tsconfig.json"
285
285
  },
@@ -10,12 +10,6 @@ Object.defineProperty(exports, "avatarGroupPlugin", {
10
10
  return _avatarGroup.default;
11
11
  }
12
12
  });
13
- Object.defineProperty(exports, "findReplacePlugin", {
14
- enumerable: true,
15
- get: function get() {
16
- return _findReplace.default;
17
- }
18
- });
19
13
  Object.defineProperty(exports, "jiraIssuePlugin", {
20
14
  enumerable: true,
21
15
  get: function get() {
@@ -23,5 +17,4 @@ Object.defineProperty(exports, "jiraIssuePlugin", {
23
17
  }
24
18
  });
25
19
  var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
26
- var _findReplace = _interopRequireDefault(require("./find-replace"));
27
20
  var _avatarGroup = _interopRequireDefault(require("./avatar-group"));
@@ -53,6 +53,7 @@ var _plugins = require("../plugins");
53
53
  var _editorPluginExtension = require("@atlaskit/editor-plugin-extension");
54
54
  var _editorPluginBeforePrimaryToolbar = require("@atlaskit/editor-plugin-before-primary-toolbar");
55
55
  var _editorPluginFeedbackDialog = require("@atlaskit/editor-plugin-feedback-dialog");
56
+ var _editorPluginFindReplace = require("@atlaskit/editor-plugin-find-replace");
56
57
  var _utils = require("@atlaskit/editor-common/utils");
57
58
  var _isFullPage = require("../utils/is-full-page");
58
59
  var _default = require("./default");
@@ -397,7 +398,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
397
398
  }]);
398
399
  }
399
400
  return builder;
400
- }).maybeAdd(_plugins.findReplacePlugin, function (plugin, builder) {
401
+ }).maybeAdd(_editorPluginFindReplace.findReplacePlugin, function (plugin, builder) {
401
402
  if (props.allowFindReplace) {
402
403
  return builder.add([plugin, {
403
404
  takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
@@ -70,7 +70,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
70
70
  featureFlags: props.featureFlags || {},
71
71
  editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
72
72
  editorAPI: editorAPI
73
- }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbar({
73
+ }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
74
74
  popupsBoundariesElement: props.popupsBoundariesElement,
75
75
  popupsMountPoint: props.popupsMountPoint,
76
76
  popupsScrollableElement: props.popupsScrollableElement,
@@ -23,7 +23,7 @@ var _panel = require("./panel");
23
23
  var _styles4 = require("@atlaskit/editor-plugin-placeholder-text/styles");
24
24
  var _extension = require("./extension");
25
25
  var _expand = require("./expand");
26
- var _styles5 = require("../../plugins/find-replace/styles");
26
+ var _styles5 = require("@atlaskit/editor-plugin-find-replace/styles");
27
27
  var _tasksAndDecisions = require("./tasks-and-decisions");
28
28
  var _status = require("./status");
29
29
  var _date = require("./date");
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "191.0.7";
8
+ var version = exports.version = "191.0.9";
@@ -1,3 +1,2 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as findReplacePlugin } from './find-replace';
3
2
  export { default as avatarGroupPlugin } from './avatar-group';
@@ -39,10 +39,11 @@ import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
39
39
  import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
40
40
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
41
41
  import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
42
- import { avatarGroupPlugin, findReplacePlugin, jiraIssuePlugin } from '../plugins';
42
+ import { avatarGroupPlugin, jiraIssuePlugin } from '../plugins';
43
43
  import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
44
44
  import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
45
45
  import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
46
+ import { findReplacePlugin } from '@atlaskit/editor-plugin-find-replace';
46
47
  import { shouldForceTracking } from '@atlaskit/editor-common/utils';
47
48
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
48
49
  import { createDefaultPreset } from './default';
@@ -56,7 +56,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
56
56
  featureFlags: props.featureFlags || {},
57
57
  editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
58
58
  editorAPI: editorAPI
59
- }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbar({
59
+ }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
60
60
  popupsBoundariesElement: props.popupsBoundariesElement,
61
61
  popupsMountPoint: props.popupsMountPoint,
62
62
  popupsScrollableElement: props.popupsScrollableElement,
@@ -16,7 +16,7 @@ import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/
16
16
  import { extensionStyles } from './extension';
17
17
  import { expandStyles } from './expand';
18
18
  import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
19
- import { findReplaceStyles } from '../../plugins/find-replace/styles';
19
+ import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
20
20
  import { taskDecisionStyles } from './tasks-and-decisions';
21
21
  import { statusStyles } from './status';
22
22
  import { dateStyles } from './date';
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "191.0.7";
2
+ export const version = "191.0.9";
@@ -1,3 +1,2 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as findReplacePlugin } from './find-replace';
3
2
  export { default as avatarGroupPlugin } from './avatar-group';
@@ -43,10 +43,11 @@ import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
43
43
  import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
44
44
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
45
45
  import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
46
- import { avatarGroupPlugin, findReplacePlugin, jiraIssuePlugin } from '../plugins';
46
+ import { avatarGroupPlugin, jiraIssuePlugin } from '../plugins';
47
47
  import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
48
48
  import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
49
49
  import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
50
+ import { findReplacePlugin } from '@atlaskit/editor-plugin-find-replace';
50
51
  import { shouldForceTracking } from '@atlaskit/editor-common/utils';
51
52
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
52
53
  import { createDefaultPreset } from './default';
@@ -60,7 +60,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
60
60
  featureFlags: props.featureFlags || {},
61
61
  editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
62
62
  editorAPI: editorAPI
63
- }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbar({
63
+ }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
64
64
  popupsBoundariesElement: props.popupsBoundariesElement,
65
65
  popupsMountPoint: props.popupsMountPoint,
66
66
  popupsScrollableElement: props.popupsScrollableElement,
@@ -18,7 +18,7 @@ import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/
18
18
  import { extensionStyles } from './extension';
19
19
  import { expandStyles } from './expand';
20
20
  import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
21
- import { findReplaceStyles } from '../../plugins/find-replace/styles';
21
+ import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
22
22
  import { taskDecisionStyles } from './tasks-and-decisions';
23
23
  import { statusStyles } from './status';
24
24
  import { dateStyles } from './date';
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "191.0.7";
2
+ export var version = "191.0.9";
@@ -1,3 +1,2 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as findReplacePlugin } from './find-replace';
3
2
  export { default as avatarGroupPlugin } from './avatar-group';
@@ -17,7 +17,7 @@ import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type'
17
17
  import type { CodeBlockOptions } from '@atlaskit/editor-plugin-code-block';
18
18
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
19
19
  import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
20
- import type { FindReplaceOptions } from '../plugins/find-replace/types';
20
+ import type { FindReplaceOptions } from '@atlaskit/editor-plugin-find-replace';
21
21
  import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
22
22
  import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
23
23
  import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
@@ -1,3 +1,2 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as findReplacePlugin } from './find-replace';
3
2
  export { default as avatarGroupPlugin } from './avatar-group';
@@ -17,7 +17,7 @@ import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type'
17
17
  import type { CodeBlockOptions } from '@atlaskit/editor-plugin-code-block';
18
18
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
19
19
  import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
20
- import type { FindReplaceOptions } from '../plugins/find-replace/types';
20
+ import type { FindReplaceOptions } from '@atlaskit/editor-plugin-find-replace';
21
21
  import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
22
22
  import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
23
23
  import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "191.0.7",
3
+ "version": "191.0.9",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/avatar": "^21.4.0",
49
49
  "@atlaskit/avatar-group": "^9.5.0",
50
50
  "@atlaskit/button": "^17.2.0",
51
- "@atlaskit/editor-common": "^76.37.0",
51
+ "@atlaskit/editor-common": "^76.39.0",
52
52
  "@atlaskit/editor-json-transformer": "^8.10.0",
53
53
  "@atlaskit/editor-plugin-alignment": "^0.1.0",
54
54
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
@@ -80,6 +80,7 @@
80
80
  "@atlaskit/editor-plugin-extension": "^0.5.0",
81
81
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
82
82
  "@atlaskit/editor-plugin-feedback-dialog": "^0.1.0",
83
+ "@atlaskit/editor-plugin-find-replace": "^0.1.0",
83
84
  "@atlaskit/editor-plugin-floating-toolbar": "^0.7.0",
84
85
  "@atlaskit/editor-plugin-focus": "^0.2.0",
85
86
  "@atlaskit/editor-plugin-fragment": "^0.1.0",
@@ -106,11 +107,11 @@
106
107
  "@atlaskit/editor-plugin-rule": "^0.1.0",
107
108
  "@atlaskit/editor-plugin-save-on-enter": "^0.1.0",
108
109
  "@atlaskit/editor-plugin-scroll-into-view": "^0.1.0",
109
- "@atlaskit/editor-plugin-selection": "^0.1.0",
110
+ "@atlaskit/editor-plugin-selection": "^0.2.0",
110
111
  "@atlaskit/editor-plugin-selection-toolbar": "^0.1.0",
111
112
  "@atlaskit/editor-plugin-status": "^0.2.0",
112
113
  "@atlaskit/editor-plugin-submit-editor": "^0.1.0",
113
- "@atlaskit/editor-plugin-table": "^5.7.0",
114
+ "@atlaskit/editor-plugin-table": "^5.8.0",
114
115
  "@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
115
116
  "@atlaskit/editor-plugin-text-color": "^0.1.0",
116
117
  "@atlaskit/editor-plugin-text-formatting": "^0.4.0",
@@ -129,7 +130,6 @@
129
130
  "@atlaskit/platform-feature-flags": "^0.2.0",
130
131
  "@atlaskit/spinner": "^16.0.0",
131
132
  "@atlaskit/task-decision": "^17.9.0",
132
- "@atlaskit/textfield": "^6.0.0",
133
133
  "@atlaskit/theme": "^12.6.0",
134
134
  "@atlaskit/tokens": "^1.33.0",
135
135
  "@atlaskit/tooltip": "^18.1.0",
@@ -143,7 +143,6 @@
143
143
  "lodash": "^4.17.21",
144
144
  "memoize-one": "^6.0.0",
145
145
  "prop-types": "^15.5.10",
146
- "raf-schd": "^4.0.3",
147
146
  "react-loadable": "^5.1.0",
148
147
  "react-transition-group": "^4.4.1",
149
148
  "uuid": "^3.1.0"
@@ -304,9 +303,6 @@
304
303
  "platform.editor.paste-options-toolbar": {
305
304
  "type": "boolean"
306
305
  },
307
- "platform.editor.a11y-find-replace": {
308
- "type": "boolean"
309
- },
310
306
  "platform.editor.menu.group-items": {
311
307
  "type": "boolean",
312
308
  "referenceOnly": "true"
@@ -369,6 +365,10 @@
369
365
  "type": "boolean",
370
366
  "referenceOnly": "true"
371
367
  },
368
+ "platform.editor.a11y-column-resizing_emcvz": {
369
+ "type": "boolean",
370
+ "referenceOnly": "true"
371
+ },
372
372
  "platform.editor.allow-action-in-list": {
373
373
  "type": "boolean",
374
374
  "referenceOnly": "true"
@@ -1,166 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- var _react = _interopRequireWildcard(require("react"));
11
- var _commandsWithAnalytics = require("./commands-with-analytics");
12
- var _commands = require("./commands");
13
- var _FindReplaceToolbarButton = _interopRequireDefault(require("./ui/FindReplaceToolbarButton"));
14
- var _analytics = require("@atlaskit/editor-common/analytics");
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
- // light implementation of useSharedPluginState(). This is due to findreplace
18
- // being the only plugin that previously used WithPluginState with
19
- // debounce=false. That was implemented because of text sync issues
20
- // between editor & findreplace dialog.
21
- // To address under ENGHEALTH-5853
22
- var useSharedPluginStateNoDebounce = function useSharedPluginStateNoDebounce(api) {
23
- var _useState = (0, _react.useState)(api === null || api === void 0 ? void 0 : api.findReplace.sharedState.currentState()),
24
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
25
- state = _useState2[0],
26
- setState = _useState2[1];
27
- (0, _react.useLayoutEffect)(function () {
28
- var unsub = api === null || api === void 0 ? void 0 : api.findReplace.sharedState.onChange(function (_ref) {
29
- var nextSharedState = _ref.nextSharedState;
30
- setState(nextSharedState);
31
- });
32
- return function () {
33
- unsub === null || unsub === void 0 || unsub();
34
- };
35
- }, [api]);
36
- return {
37
- findReplaceState: state
38
- };
39
- };
40
- var FindReplaceToolbarButtonWithState = function FindReplaceToolbarButtonWithState(_ref2) {
41
- var _api$analytics;
42
- var popupsBoundariesElement = _ref2.popupsBoundariesElement,
43
- popupsMountPoint = _ref2.popupsMountPoint,
44
- popupsScrollableElement = _ref2.popupsScrollableElement,
45
- isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
46
- editorView = _ref2.editorView,
47
- containerElement = _ref2.containerElement,
48
- dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
49
- featureFlags = _ref2.featureFlags,
50
- takeFullWidth = _ref2.takeFullWidth,
51
- api = _ref2.api;
52
- var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
53
- var _useSharedPluginState = useSharedPluginStateNoDebounce(api),
54
- findReplaceState = _useSharedPluginState.findReplaceState;
55
- if (!editorView) {
56
- return null;
57
- }
58
-
59
- // we need the editor to be in focus for scrollIntoView() to work
60
- // so we focus it while we run the command, then put focus back into
61
- // whatever element was previously focused in find replace component
62
- var runWithEditorFocused = function runWithEditorFocused(fn) {
63
- var activeElement = document.activeElement;
64
- editorView.focus();
65
- fn();
66
- activeElement === null || activeElement === void 0 || activeElement.focus();
67
- };
68
- var dispatchCommand = function dispatchCommand(cmd) {
69
- var state = editorView.state,
70
- dispatch = editorView.dispatch;
71
- cmd(state, dispatch);
72
- };
73
- var handleActivate = function handleActivate() {
74
- runWithEditorFocused(function () {
75
- return dispatchCommand((0, _commandsWithAnalytics.activateWithAnalytics)(editorAnalyticsAPI)({
76
- triggerMethod: _analytics.TRIGGER_METHOD.TOOLBAR
77
- }));
78
- });
79
- };
80
- var handleFind = function handleFind(keyword) {
81
- runWithEditorFocused(function () {
82
- return dispatchCommand((0, _commandsWithAnalytics.findWithAnalytics)(editorAnalyticsAPI)({
83
- editorView: editorView,
84
- containerElement: containerElement,
85
- keyword: keyword
86
- }));
87
- });
88
- };
89
- var handleFindNext = function handleFindNext(_ref3) {
90
- var triggerMethod = _ref3.triggerMethod;
91
- runWithEditorFocused(function () {
92
- return dispatchCommand((0, _commandsWithAnalytics.findNextWithAnalytics)(editorAnalyticsAPI)({
93
- triggerMethod: triggerMethod
94
- }));
95
- });
96
- };
97
- var handleFindPrev = function handleFindPrev(_ref4) {
98
- var triggerMethod = _ref4.triggerMethod;
99
- runWithEditorFocused(function () {
100
- return dispatchCommand((0, _commandsWithAnalytics.findPrevWithAnalytics)(editorAnalyticsAPI)({
101
- triggerMethod: triggerMethod
102
- }));
103
- });
104
- };
105
- var handleReplace = function handleReplace(_ref5) {
106
- var triggerMethod = _ref5.triggerMethod,
107
- replaceText = _ref5.replaceText;
108
- runWithEditorFocused(function () {
109
- return dispatchCommand((0, _commandsWithAnalytics.replaceWithAnalytics)(editorAnalyticsAPI)({
110
- triggerMethod: triggerMethod,
111
- replaceText: replaceText
112
- }));
113
- });
114
- };
115
- var handleReplaceAll = function handleReplaceAll(_ref6) {
116
- var replaceText = _ref6.replaceText;
117
- runWithEditorFocused(function () {
118
- return dispatchCommand((0, _commandsWithAnalytics.replaceAllWithAnalytics)(editorAnalyticsAPI)({
119
- replaceText: replaceText
120
- }));
121
- });
122
- };
123
- var handleFindBlur = function handleFindBlur() {
124
- dispatchCommand((0, _commands.blur)());
125
- };
126
- var handleCancel = function handleCancel(_ref7) {
127
- var triggerMethod = _ref7.triggerMethod;
128
- dispatchCommand((0, _commandsWithAnalytics.cancelSearchWithAnalytics)(editorAnalyticsAPI)({
129
- triggerMethod: triggerMethod
130
- }));
131
- editorView.focus();
132
- };
133
- var handleToggleMatchCase = function handleToggleMatchCase() {
134
- dispatchCommand((0, _commands.toggleMatchCase)());
135
- };
136
- var findReplaceMatchCase = featureFlags.findReplaceMatchCase;
137
- if (!findReplaceState) {
138
- return null;
139
- }
140
- return /*#__PURE__*/_react.default.createElement(_FindReplaceToolbarButton.default, {
141
- allowMatchCase: findReplaceMatchCase,
142
- shouldMatchCase: findReplaceState.shouldMatchCase,
143
- onToggleMatchCase: handleToggleMatchCase,
144
- isActive: findReplaceState.isActive,
145
- findText: findReplaceState.findText,
146
- index: findReplaceState.index,
147
- numMatches: findReplaceState.matches.length,
148
- replaceText: findReplaceState.replaceText,
149
- shouldFocus: findReplaceState.shouldFocus,
150
- popupsBoundariesElement: popupsBoundariesElement,
151
- popupsMountPoint: popupsMountPoint,
152
- popupsScrollableElement: popupsScrollableElement,
153
- isReducedSpacing: !!isToolbarReducedSpacing,
154
- dispatchAnalyticsEvent: dispatchAnalyticsEvent,
155
- onFindBlur: handleFindBlur,
156
- onCancel: handleCancel,
157
- onActivate: handleActivate,
158
- onFind: handleFind,
159
- onFindNext: handleFindNext,
160
- onFindPrev: handleFindPrev,
161
- onReplace: handleReplace,
162
- onReplaceAll: handleReplaceAll,
163
- takeFullWidth: !!takeFullWidth
164
- });
165
- };
166
- var _default = exports.default = /*#__PURE__*/_react.default.memo(FindReplaceToolbarButtonWithState);
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FindReplaceActionTypes = void 0;
7
- var FindReplaceActionTypes = exports.FindReplaceActionTypes = /*#__PURE__*/function (FindReplaceActionTypes) {
8
- FindReplaceActionTypes["ACTIVATE"] = "ACTIVATE";
9
- FindReplaceActionTypes["FIND"] = "FIND";
10
- FindReplaceActionTypes["UPDATE_DECORATIONS"] = "UPDATE_DECORATIONS";
11
- FindReplaceActionTypes["FIND_NEXT"] = "FIND_NEXT";
12
- FindReplaceActionTypes["FIND_PREVIOUS"] = "FIND_PREVIOUS";
13
- FindReplaceActionTypes["REPLACE"] = "REPLACE";
14
- FindReplaceActionTypes["REPLACE_ALL"] = "REPLACE_ALL";
15
- FindReplaceActionTypes["CANCEL"] = "CANCEL";
16
- FindReplaceActionTypes["BLUR"] = "BLUR";
17
- FindReplaceActionTypes["TOGGLE_MATCH_CASE"] = "TOGGLE_MATCH_CASE";
18
- return FindReplaceActionTypes;
19
- }({});
@@ -1,101 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.replaceWithAnalytics = exports.replaceAllWithAnalytics = exports.findWithAnalytics = exports.findPrevWithAnalytics = exports.findNextWithAnalytics = exports.cancelSearchWithAnalytics = exports.activateWithAnalytics = void 0;
7
- var _state = require("@atlaskit/editor-prosemirror/state");
8
- var _analytics = require("@atlaskit/editor-common/analytics");
9
- var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
10
- var _commands = require("./commands");
11
- var activateWithAnalytics = exports.activateWithAnalytics = function activateWithAnalytics(editorAnalyticsAPI) {
12
- return function (_ref) {
13
- var triggerMethod = _ref.triggerMethod;
14
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, function (state) {
15
- return {
16
- eventType: _analytics.EVENT_TYPE.UI,
17
- action: _analytics.ACTION.ACTIVATED,
18
- actionSubject: _analytics.ACTION_SUBJECT.FIND_REPLACE_DIALOG,
19
- attributes: {
20
- inputMethod: state.selection instanceof _state.TextSelection && !state.selection.empty ? _analytics.INPUT_METHOD.PREFILL : _analytics.INPUT_METHOD.KEYBOARD,
21
- triggerMethod: triggerMethod
22
- }
23
- };
24
- })((0, _commands.activate)());
25
- };
26
- };
27
- var findWithAnalytics = exports.findWithAnalytics = function findWithAnalytics(editorAnalyticsAPI) {
28
- return function (_ref2) {
29
- var editorView = _ref2.editorView,
30
- containerElement = _ref2.containerElement,
31
- keyword = _ref2.keyword;
32
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
33
- eventType: _analytics.EVENT_TYPE.TRACK,
34
- action: _analytics.ACTION.FIND_PERFORMED,
35
- actionSubject: _analytics.ACTION_SUBJECT.TEXT
36
- })((0, _commands.find)(editorView, containerElement, keyword));
37
- };
38
- };
39
- var findNextWithAnalytics = exports.findNextWithAnalytics = function findNextWithAnalytics(editorAnalyticsAPI) {
40
- return function (_ref3) {
41
- var triggerMethod = _ref3.triggerMethod;
42
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
43
- eventType: _analytics.EVENT_TYPE.TRACK,
44
- action: _analytics.ACTION.FIND_NEXT_PERFORMED,
45
- actionSubject: _analytics.ACTION_SUBJECT.TEXT,
46
- attributes: {
47
- triggerMethod: triggerMethod
48
- }
49
- })((0, _commands.findNext)());
50
- };
51
- };
52
- var findPrevWithAnalytics = exports.findPrevWithAnalytics = function findPrevWithAnalytics(editorAnalyticsAPI) {
53
- return function (_ref4) {
54
- var triggerMethod = _ref4.triggerMethod;
55
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
56
- eventType: _analytics.EVENT_TYPE.TRACK,
57
- action: _analytics.ACTION.FIND_PREV_PERFORMED,
58
- actionSubject: _analytics.ACTION_SUBJECT.TEXT,
59
- attributes: {
60
- triggerMethod: triggerMethod
61
- }
62
- })((0, _commands.findPrevious)());
63
- };
64
- };
65
- var replaceWithAnalytics = exports.replaceWithAnalytics = function replaceWithAnalytics(editorAnalyticsAPI) {
66
- return function (_ref5) {
67
- var triggerMethod = _ref5.triggerMethod,
68
- replaceText = _ref5.replaceText;
69
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
70
- eventType: _analytics.EVENT_TYPE.TRACK,
71
- action: _analytics.ACTION.REPLACED_ONE,
72
- actionSubject: _analytics.ACTION_SUBJECT.TEXT,
73
- attributes: {
74
- triggerMethod: triggerMethod
75
- }
76
- })((0, _commands.replace)(replaceText));
77
- };
78
- };
79
- var replaceAllWithAnalytics = exports.replaceAllWithAnalytics = function replaceAllWithAnalytics(editorAnalyticsAPI) {
80
- return function (_ref6) {
81
- var replaceText = _ref6.replaceText;
82
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
83
- eventType: _analytics.EVENT_TYPE.TRACK,
84
- action: _analytics.ACTION.REPLACED_ALL,
85
- actionSubject: _analytics.ACTION_SUBJECT.TEXT
86
- })((0, _commands.replaceAll)(replaceText));
87
- };
88
- };
89
- var cancelSearchWithAnalytics = exports.cancelSearchWithAnalytics = function cancelSearchWithAnalytics(editorAnalyticsAPI) {
90
- return function (_ref7) {
91
- var triggerMethod = _ref7.triggerMethod;
92
- return (0, _editorAnalytics.withAnalytics)(editorAnalyticsAPI, {
93
- eventType: _analytics.EVENT_TYPE.UI,
94
- action: _analytics.ACTION.DEACTIVATED,
95
- actionSubject: _analytics.ACTION_SUBJECT.FIND_REPLACE_DIALOG,
96
- attributes: {
97
- triggerMethod: triggerMethod
98
- }
99
- })((0, _commands.cancelSearch)());
100
- };
101
- };