@atlaskit/editor-plugin-highlight 1.19.3 → 1.19.4

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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/{commands → editor-commands}/change-color.js +1 -1
  3. package/dist/cjs/{plugin.js → highlightPlugin.js} +2 -2
  4. package/dist/cjs/highlightPluginType.js +5 -0
  5. package/dist/cjs/index.js +2 -2
  6. package/dist/cjs/pm-plugins/keymap.js +2 -2
  7. package/dist/cjs/pm-plugins/main.js +2 -2
  8. package/dist/cjs/ui/PrimaryToolbarHighlightColor.js +2 -2
  9. package/dist/cjs/ui/shared/useDropdownEvents.js +2 -2
  10. package/dist/es2019/{commands → editor-commands}/change-color.js +1 -1
  11. package/dist/es2019/{plugin.js → highlightPlugin.js} +1 -1
  12. package/dist/es2019/highlightPluginType.js +1 -0
  13. package/dist/es2019/index.js +4 -1
  14. package/dist/es2019/pm-plugins/keymap.js +1 -1
  15. package/dist/es2019/pm-plugins/main.js +2 -2
  16. package/dist/es2019/ui/PrimaryToolbarHighlightColor.js +1 -1
  17. package/dist/es2019/ui/shared/useDropdownEvents.js +1 -1
  18. package/dist/esm/{commands → editor-commands}/change-color.js +1 -1
  19. package/dist/esm/{plugin.js → highlightPlugin.js} +1 -1
  20. package/dist/esm/highlightPluginType.js +1 -0
  21. package/dist/esm/index.js +4 -1
  22. package/dist/esm/pm-plugins/keymap.js +1 -1
  23. package/dist/esm/pm-plugins/main.js +2 -2
  24. package/dist/esm/ui/PrimaryToolbarHighlightColor.js +1 -1
  25. package/dist/esm/ui/shared/useDropdownEvents.js +1 -1
  26. package/dist/types/{commands → editor-commands}/palette.d.ts +1 -1
  27. package/dist/types/highlightPlugin.d.ts +2 -0
  28. package/dist/types/{plugin.d.ts → highlightPluginType.d.ts} +0 -1
  29. package/dist/types/index.d.ts +2 -2
  30. package/dist/types/pm-plugins/keymap.d.ts +1 -1
  31. package/dist/types/pm-plugins/main.d.ts +1 -1
  32. package/dist/types/ui/FloatingToolbarHighlightColor.d.ts +1 -1
  33. package/dist/types/ui/PrimaryToolbarHighlightColor.d.ts +1 -1
  34. package/dist/types/ui/shared/useDropdownEvents.d.ts +1 -1
  35. package/dist/types-ts4.5/{commands → editor-commands}/palette.d.ts +1 -1
  36. package/dist/types-ts4.5/highlightPlugin.d.ts +2 -0
  37. package/dist/types-ts4.5/{plugin.d.ts → highlightPluginType.d.ts} +0 -1
  38. package/dist/types-ts4.5/index.d.ts +2 -2
  39. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +1 -1
  40. package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
  41. package/dist/types-ts4.5/ui/FloatingToolbarHighlightColor.d.ts +1 -1
  42. package/dist/types-ts4.5/ui/PrimaryToolbarHighlightColor.d.ts +1 -1
  43. package/dist/types-ts4.5/ui/shared/useDropdownEvents.d.ts +1 -1
  44. package/package.json +7 -4
  45. /package/dist/cjs/{utils → editor-commands}/color.js +0 -0
  46. /package/dist/cjs/{utils → editor-commands}/disabled.js +0 -0
  47. /package/dist/cjs/{commands → editor-commands}/index.js +0 -0
  48. /package/dist/cjs/{commands → editor-commands}/palette.js +0 -0
  49. /package/dist/es2019/{utils → editor-commands}/color.js +0 -0
  50. /package/dist/es2019/{utils → editor-commands}/disabled.js +0 -0
  51. /package/dist/es2019/{commands → editor-commands}/index.js +0 -0
  52. /package/dist/es2019/{commands → editor-commands}/palette.js +0 -0
  53. /package/dist/esm/{utils → editor-commands}/color.js +0 -0
  54. /package/dist/esm/{utils → editor-commands}/disabled.js +0 -0
  55. /package/dist/esm/{commands → editor-commands}/index.js +0 -0
  56. /package/dist/esm/{commands → editor-commands}/palette.js +0 -0
  57. /package/dist/types/{commands → editor-commands}/change-color.d.ts +0 -0
  58. /package/dist/types/{utils → editor-commands}/color.d.ts +0 -0
  59. /package/dist/types/{utils → editor-commands}/disabled.d.ts +0 -0
  60. /package/dist/types/{commands → editor-commands}/index.d.ts +0 -0
  61. /package/dist/types-ts4.5/{commands → editor-commands}/change-color.d.ts +0 -0
  62. /package/dist/types-ts4.5/{utils → editor-commands}/color.d.ts +0 -0
  63. /package/dist/types-ts4.5/{utils → editor-commands}/disabled.d.ts +0 -0
  64. /package/dist/types-ts4.5/{commands → editor-commands}/index.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 1.19.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#176534](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176534)
8
+ [`a62f4ab06923e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a62f4ab06923e) -
9
+ updated folder structure of highlight plugin to match ees003
10
+
3
11
  ## 1.19.3
4
12
 
5
13
  ### Patch Changes
@@ -8,7 +8,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
8
8
  var _mark = require("@atlaskit/editor-common/mark");
9
9
  var _uiColor = require("@atlaskit/editor-common/ui-color");
10
10
  var _main = require("../pm-plugins/main");
11
- var _color = require("../utils/color");
11
+ var _color = require("./color");
12
12
  var changeColor = exports.changeColor = function changeColor(editorAnalyticsAPI) {
13
13
  return function (_ref) {
14
14
  var color = _ref.color,
@@ -8,7 +8,7 @@ exports.highlightPlugin = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
11
- var _commands = require("./commands");
11
+ var _editorCommands = require("./editor-commands");
12
12
  var _keymap = require("./pm-plugins/keymap");
13
13
  var _main = require("./pm-plugins/main");
14
14
  var _FloatingToolbarHighlightColor = require("./ui/FloatingToolbarHighlightColor");
@@ -48,7 +48,7 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
48
48
  }];
49
49
  },
50
50
  commands: {
51
- changeColor: (0, _commands.changeColor)(editorAnalyticsAPI)
51
+ changeColor: (0, _editorCommands.changeColor)(editorAnalyticsAPI)
52
52
  },
53
53
  pmPlugins: function pmPlugins() {
54
54
  return [{
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "highlightPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.highlightPlugin;
9
+ return _highlightPlugin.highlightPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _highlightPlugin = require("./highlightPlugin");
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.keymapPlugin = keymapPlugin;
7
7
  var _analytics = require("@atlaskit/editor-common/analytics");
8
8
  var _keymaps = require("@atlaskit/editor-common/keymaps");
9
- var _commands = require("../commands");
9
+ var _editorCommands = require("../editor-commands");
10
10
  function keymapPlugin(_ref) {
11
11
  var api = _ref.api;
12
12
  var list = {};
13
- (0, _keymaps.bindKeymapWithCommand)(_keymaps.toggleHighlightPalette.common, (0, _commands.togglePalette)(api)({
13
+ (0, _keymaps.bindKeymapWithCommand)(_keymaps.toggleHighlightPalette.common, (0, _editorCommands.togglePalette)(api)({
14
14
  inputMethod: _analytics.INPUT_METHOD.SHORTCUT
15
15
  }), list);
16
16
  return (0, _keymaps.keymap)(list);
@@ -8,8 +8,8 @@ exports.highlightPluginKey = exports.createPlugin = exports.HighlightPluginActio
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
- var _color = require("../utils/color");
12
- var _disabled = require("../utils/disabled");
11
+ var _color = require("../editor-commands/color");
12
+ var _disabled = require("../editor-commands/disabled");
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
15
  var highlightPluginKey = exports.highlightPluginKey = new _state.PluginKey('highlight');
@@ -21,7 +21,7 @@ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-
21
21
  var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
23
  var _primitives = require("@atlaskit/primitives");
24
- var _commands = require("../commands");
24
+ var _editorCommands = require("../editor-commands");
25
25
  var _EditorHighlightIcon = require("./shared/EditorHighlightIcon");
26
26
  var _PaletteDropdown = require("./shared/PaletteDropdown");
27
27
  var _useDropdownEvents2 = require("./shared/useDropdownEvents");
@@ -48,7 +48,7 @@ var PrimaryToolbarHighlightColor = function PrimaryToolbarHighlightColor(_ref) {
48
48
  if (!(highlightState !== null && highlightState !== void 0 && highlightState.disabled)) {
49
49
  var state = editorView.state,
50
50
  dispatch = editorView.dispatch;
51
- (0, _commands.setPalette)(pluginInjectionApi)({
51
+ (0, _editorCommands.setPalette)(pluginInjectionApi)({
52
52
  isPaletteOpen: isOpen,
53
53
  inputMethod: _analytics.INPUT_METHOD.TOOLBAR
54
54
  })(state, dispatch);
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.useDropdownEvents = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = require("react");
10
- var _commands = require("../../commands");
10
+ var _editorCommands = require("../../editor-commands");
11
11
  var useDropdownEvents = exports.useDropdownEvents = function useDropdownEvents(args) {
12
12
  var toolbarItemRef = args.toolbarItemRef,
13
13
  setIsDropdownOpen = args.setIsDropdownOpen,
@@ -47,7 +47,7 @@ var useDropdownEvents = exports.useDropdownEvents = function useDropdownEvents(a
47
47
  var _pluginInjectionApi$c, _pluginInjectionApi$a;
48
48
  var color = _ref.color,
49
49
  inputMethod = _ref.inputMethod;
50
- pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.core) === null || _pluginInjectionApi$c === void 0 || _pluginInjectionApi$c.actions.execute((0, _commands.changeColor)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)({
50
+ pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.core) === null || _pluginInjectionApi$c === void 0 || _pluginInjectionApi$c.actions.execute((0, _editorCommands.changeColor)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)({
51
51
  color: color,
52
52
  inputMethod: inputMethod
53
53
  }));
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit
2
2
  import { removeMark, toggleMark } from '@atlaskit/editor-common/mark';
3
3
  import { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from '@atlaskit/editor-common/ui-color';
4
4
  import { HighlightPluginAction, highlightPluginKey } from '../pm-plugins/main';
5
- import { getActiveColor } from '../utils/color';
5
+ import { getActiveColor } from './color';
6
6
  export const changeColor = editorAnalyticsAPI => ({
7
7
  color,
8
8
  inputMethod
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { backgroundColor } from '@atlaskit/adf-schema';
3
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
- import { changeColor } from './commands';
4
+ import { changeColor } from './editor-commands';
5
5
  import { keymapPlugin } from './pm-plugins/keymap';
6
6
  import { createPlugin, highlightPluginKey } from './pm-plugins/main';
7
7
  import { FloatingToolbarHighlightColorWithIntl as FloatingToolbarHighlightColor } from './ui/FloatingToolbarHighlightColor';
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,4 @@
1
- export { highlightPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { highlightPlugin } from './highlightPlugin';
@@ -1,6 +1,6 @@
1
1
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { bindKeymapWithCommand, keymap, toggleHighlightPalette } from '@atlaskit/editor-common/keymaps';
3
- import { togglePalette } from '../commands';
3
+ import { togglePalette } from '../editor-commands';
4
4
  export function keymapPlugin({
5
5
  api
6
6
  }) {
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { getActiveColor } from '../utils/color';
4
- import { getDisabledState } from '../utils/disabled';
3
+ import { getActiveColor } from '../editor-commands/color';
4
+ import { getDisabledState } from '../editor-commands/disabled';
5
5
  export const highlightPluginKey = new PluginKey('highlight');
6
6
  export let HighlightPluginAction = /*#__PURE__*/function (HighlightPluginAction) {
7
7
  HighlightPluginAction[HighlightPluginAction["CHANGE_COLOR"] = 0] = "CHANGE_COLOR";
@@ -20,7 +20,7 @@ import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
20
20
  import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import { Flex } from '@atlaskit/primitives';
23
- import { setPalette } from '../commands';
23
+ import { setPalette } from '../editor-commands';
24
24
  import { EditorHighlightIcon } from './shared/EditorHighlightIcon';
25
25
  import { PaletteDropdown } from './shared/PaletteDropdown';
26
26
  import { useDropdownEvents } from './shared/useDropdownEvents';
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { changeColor } from '../../commands';
2
+ import { changeColor } from '../../editor-commands';
3
3
  export const useDropdownEvents = args => {
4
4
  const {
5
5
  toolbarItemRef,
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit
2
2
  import { removeMark, toggleMark } from '@atlaskit/editor-common/mark';
3
3
  import { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from '@atlaskit/editor-common/ui-color';
4
4
  import { HighlightPluginAction, highlightPluginKey } from '../pm-plugins/main';
5
- import { getActiveColor } from '../utils/color';
5
+ import { getActiveColor } from './color';
6
6
  export var changeColor = function changeColor(editorAnalyticsAPI) {
7
7
  return function (_ref) {
8
8
  var color = _ref.color,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { backgroundColor } from '@atlaskit/adf-schema';
3
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
- import { changeColor } from './commands';
4
+ import { changeColor } from './editor-commands';
5
5
  import { keymapPlugin } from './pm-plugins/keymap';
6
6
  import { createPlugin, highlightPluginKey } from './pm-plugins/main';
7
7
  import { FloatingToolbarHighlightColorWithIntl as FloatingToolbarHighlightColor } from './ui/FloatingToolbarHighlightColor';
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
- export { highlightPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { highlightPlugin } from './highlightPlugin';
@@ -1,6 +1,6 @@
1
1
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { bindKeymapWithCommand, keymap, toggleHighlightPalette } from '@atlaskit/editor-common/keymaps';
3
- import { togglePalette } from '../commands';
3
+ import { togglePalette } from '../editor-commands';
4
4
  export function keymapPlugin(_ref) {
5
5
  var api = _ref.api;
6
6
  var list = {};
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
- import { getActiveColor } from '../utils/color';
7
- import { getDisabledState } from '../utils/disabled';
6
+ import { getActiveColor } from '../editor-commands/color';
7
+ import { getDisabledState } from '../editor-commands/disabled';
8
8
  export var highlightPluginKey = new PluginKey('highlight');
9
9
  export var HighlightPluginAction = /*#__PURE__*/function (HighlightPluginAction) {
10
10
  HighlightPluginAction[HighlightPluginAction["CHANGE_COLOR"] = 0] = "CHANGE_COLOR";
@@ -20,7 +20,7 @@ import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
20
20
  import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import { Flex } from '@atlaskit/primitives';
23
- import { setPalette } from '../commands';
23
+ import { setPalette } from '../editor-commands';
24
24
  import { EditorHighlightIcon } from './shared/EditorHighlightIcon';
25
25
  import { PaletteDropdown } from './shared/PaletteDropdown';
26
26
  import { useDropdownEvents } from './shared/useDropdownEvents';
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { useState } from 'react';
3
- import { changeColor } from '../../commands';
3
+ import { changeColor } from '../../editor-commands';
4
4
  export var useDropdownEvents = function useDropdownEvents(args) {
5
5
  var toolbarItemRef = args.toolbarItemRef,
6
6
  setIsDropdownOpen = args.setIsDropdownOpen,
@@ -1,6 +1,6 @@
1
1
  import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { HighlightPlugin } from '../plugin';
3
+ import type { HighlightPlugin } from '../highlightPluginType';
4
4
  export declare const togglePalette: (api: ExtractInjectionAPI<HighlightPlugin>) => ({ inputMethod }: {
5
5
  inputMethod: INPUT_METHOD;
6
6
  }) => Command;
@@ -0,0 +1,2 @@
1
+ import type { HighlightPlugin } from './highlightPluginType';
2
+ export declare const highlightPlugin: HighlightPlugin;
@@ -22,4 +22,3 @@ export type HighlightPlugin = NextEditorPlugin<'highlight', {
22
22
  }) => EditorCommand;
23
23
  };
24
24
  }>;
25
- export declare const highlightPlugin: HighlightPlugin;
@@ -1,3 +1,3 @@
1
- export { highlightPlugin } from './plugin';
2
- export type { HighlightPlugin } from './plugin';
1
+ export { highlightPlugin } from './highlightPlugin';
2
+ export type { HighlightPlugin } from './highlightPluginType';
3
3
  export type { HighlightPluginState } from './pm-plugins/main';
@@ -1,6 +1,6 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { HighlightPlugin } from '../plugin';
3
+ import type { HighlightPlugin } from '../highlightPluginType';
4
4
  export declare function keymapPlugin({ api }: {
5
5
  api: ExtractInjectionAPI<HighlightPlugin> | undefined;
6
6
  }): SafePlugin<any>;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- import type { HighlightPlugin } from '../plugin';
4
+ import type { HighlightPlugin } from '../highlightPluginType';
5
5
  export declare const highlightPluginKey: PluginKey<HighlightPluginState>;
6
6
  export type HighlightPluginState = {
7
7
  activeColor: string | null;
@@ -2,7 +2,7 @@
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
- import type { HighlightPlugin } from '../plugin';
5
+ import type { HighlightPlugin } from '../highlightPluginType';
6
6
  export declare const FloatingToolbarHighlightColorWithIntl: import("react").FC<import("react-intl-next").WithIntlProps<{
7
7
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined;
8
8
  pluginInjectionApi: ExtractInjectionAPI<HighlightPlugin> | undefined;
@@ -2,7 +2,7 @@
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { HighlightPlugin } from '../plugin';
5
+ import type { HighlightPlugin } from '../highlightPluginType';
6
6
  export declare const PrimaryToolbarHighlightColorWithIntl: import("react").FC<import("react-intl-next").WithIntlProps<{
7
7
  popupsMountPoint?: HTMLElement | undefined;
8
8
  popupsBoundariesElement?: HTMLElement | undefined;
@@ -2,7 +2,7 @@
2
2
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { ToolbarButtonRef } from '@atlaskit/editor-common/ui-menu';
5
- import type { HighlightPlugin } from '../../plugin';
5
+ import type { HighlightPlugin } from '../../highlightPluginType';
6
6
  type UseDropdownEventArgs = {
7
7
  setIsDropdownOpen: (isOpen: boolean) => void;
8
8
  isDropdownOpen: boolean;
@@ -1,6 +1,6 @@
1
1
  import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { HighlightPlugin } from '../plugin';
3
+ import type { HighlightPlugin } from '../highlightPluginType';
4
4
  export declare const togglePalette: (api: ExtractInjectionAPI<HighlightPlugin>) => ({ inputMethod }: {
5
5
  inputMethod: INPUT_METHOD;
6
6
  }) => Command;
@@ -0,0 +1,2 @@
1
+ import type { HighlightPlugin } from './highlightPluginType';
2
+ export declare const highlightPlugin: HighlightPlugin;
@@ -22,4 +22,3 @@ export type HighlightPlugin = NextEditorPlugin<'highlight', {
22
22
  }) => EditorCommand;
23
23
  };
24
24
  }>;
25
- export declare const highlightPlugin: HighlightPlugin;
@@ -1,3 +1,3 @@
1
- export { highlightPlugin } from './plugin';
2
- export type { HighlightPlugin } from './plugin';
1
+ export { highlightPlugin } from './highlightPlugin';
2
+ export type { HighlightPlugin } from './highlightPluginType';
3
3
  export type { HighlightPluginState } from './pm-plugins/main';
@@ -1,6 +1,6 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { HighlightPlugin } from '../plugin';
3
+ import type { HighlightPlugin } from '../highlightPluginType';
4
4
  export declare function keymapPlugin({ api }: {
5
5
  api: ExtractInjectionAPI<HighlightPlugin> | undefined;
6
6
  }): SafePlugin<any>;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- import type { HighlightPlugin } from '../plugin';
4
+ import type { HighlightPlugin } from '../highlightPluginType';
5
5
  export declare const highlightPluginKey: PluginKey<HighlightPluginState>;
6
6
  export type HighlightPluginState = {
7
7
  activeColor: string | null;
@@ -2,7 +2,7 @@
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
- import type { HighlightPlugin } from '../plugin';
5
+ import type { HighlightPlugin } from '../highlightPluginType';
6
6
  export declare const FloatingToolbarHighlightColorWithIntl: import("react").FC<import("react-intl-next").WithIntlProps<{
7
7
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined;
8
8
  pluginInjectionApi: ExtractInjectionAPI<HighlightPlugin> | undefined;
@@ -2,7 +2,7 @@
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { HighlightPlugin } from '../plugin';
5
+ import type { HighlightPlugin } from '../highlightPluginType';
6
6
  export declare const PrimaryToolbarHighlightColorWithIntl: import("react").FC<import("react-intl-next").WithIntlProps<{
7
7
  popupsMountPoint?: HTMLElement | undefined;
8
8
  popupsBoundariesElement?: HTMLElement | undefined;
@@ -2,7 +2,7 @@
2
2
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { ToolbarButtonRef } from '@atlaskit/editor-common/ui-menu';
5
- import type { HighlightPlugin } from '../../plugin';
5
+ import type { HighlightPlugin } from '../../highlightPluginType';
6
6
  type UseDropdownEventArgs = {
7
7
  setIsDropdownOpen: (isOpen: boolean) => void;
8
8
  isDropdownOpen: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/adf-schema": "^46.1.0",
40
- "@atlaskit/editor-common": "^96.1.0",
40
+ "@atlaskit/editor-common": "^96.5.0",
41
41
  "@atlaskit/editor-palette": "1.6.3",
42
42
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
43
43
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
@@ -45,10 +45,10 @@
45
45
  "@atlaskit/editor-prosemirror": "6.2.1",
46
46
  "@atlaskit/editor-shared-styles": "^3.2.0",
47
47
  "@atlaskit/editor-tables": "^2.8.0",
48
- "@atlaskit/icon": "^23.0.0",
48
+ "@atlaskit/icon": "^23.1.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
50
  "@atlaskit/primitives": "^13.3.0",
51
- "@atlaskit/tmp-editor-statsig": "^2.22.0",
51
+ "@atlaskit/tmp-editor-statsig": "^2.26.0",
52
52
  "@atlaskit/tokens": "^2.4.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1"
@@ -67,6 +67,9 @@
67
67
  ],
68
68
  "circular-dependencies": [
69
69
  "file-and-folder-level"
70
+ ],
71
+ "code-structure": [
72
+ "editor-plugin"
70
73
  ]
71
74
  },
72
75
  "@repo/internal": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes