@atlaskit/editor-plugin-selection-marker 26.0.3 → 26.0.5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 26.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 26.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 26.0.3
4
16
 
5
17
  ### Patch Changes
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.selectionMarkerPlugin = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _hooks = require("@atlaskit/editor-common/hooks");
10
- var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
9
+ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/useSharedPluginStateSelector");
10
+ var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
11
11
  var _main = require("./pm-plugins/main");
12
12
  var _globalStyles = require("./ui/global-styles");
13
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -78,7 +78,7 @@ var selectionMarkerPlugin = exports.selectionMarkerPlugin = function selectionMa
78
78
  // relatch when editorView changes (pretty good signal for reinit)
79
79
  editorHasNotBeenFocused.current = true;
80
80
  }, [editorView]);
81
- var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['focus', 'typeAhead', 'editorDisabled', 'toolbar', 'decorations', 'userIntent'], function (states) {
81
+ var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(api, ['focus', 'typeAhead', 'editorDisabled', 'toolbar', 'decorations', 'userIntent'], function (states) {
82
82
  var _states$focusState, _states$typeAheadStat, _states$editorDisable, _states$toolbarState, _states$decorationsSt, _states$userIntentSta;
83
83
  return {
84
84
  hasFocus: (_states$focusState = states.focusState) === null || _states$focusState === void 0 ? void 0 : _states$focusState.hasFocus,
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
- import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
2
+ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedPluginStateSelector';
3
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
4
4
  import { createPlugin, dispatchShouldHideDecorations, key } from './pm-plugins/main';
5
5
  import { GlobalStylesWrapper } from './ui/global-styles';
6
6
  export const selectionMarkerPlugin = ({
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
- import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
2
+ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedPluginStateSelector';
3
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
4
4
  import { createPlugin, dispatchShouldHideDecorations, key } from './pm-plugins/main';
5
5
  import { GlobalStylesWrapper } from './ui/global-styles';
6
6
  export var selectionMarkerPlugin = function selectionMarkerPlugin(_ref) {
@@ -1,5 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
3
3
  import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
4
4
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,10 +1,10 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
3
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
4
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
5
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
6
- import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
- import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
1
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
2
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPluginType';
3
+ import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled/editorDisabledPluginType';
4
+ import type { FocusPlugin } from '@atlaskit/editor-plugin-focus/focusPluginType';
5
+ import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
6
+ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead/type-ahead-plugin-type';
7
+ import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent/user-intent-plugin-type';
8
8
  export type ReleaseHiddenDecoration = () => boolean | undefined;
9
9
  type SetCleanup = (cb: ReleaseHiddenDecoration | undefined) => void;
10
10
  type CancelQueue = (() => void) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "26.0.3",
3
+ "version": "26.0.5",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/platform-feature-flags": "^2.2.0",
38
38
  "@atlaskit/section-message": "^10.2.0",
39
39
  "@atlaskit/theme": "^28.2.0",
40
- "@atlaskit/tmp-editor-statsig": "^230.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^232.0.0",
41
41
  "@atlaskit/tokens": "^20.4.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",