@atlaskit/editor-plugin-selection-marker 5.0.0 → 5.0.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 5.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6e317c17582a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e317c17582a0) -
8
+ [EDITOR-1508] Add Define to old and new toolbar in edit mode for classic/live page
9
+ - Updated dependencies
10
+
3
11
  ## 5.0.0
4
12
 
5
13
  ### Patch Changes
@@ -110,8 +110,7 @@ var selectionMarkerPlugin = exports.selectionMarkerPlugin = function selectionMa
110
110
  * - Disabled: So that it behaves similar to the renderer in live pages/disabled
111
111
  * - Via the API: If another plugin has requested it to be hidden (force hidden).
112
112
  */
113
- var shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false);
114
- true;
113
+ var shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false) || (0, _expValEquals.expValEquals)('platform_editor_ai_aifc', 'isEnabled', true);
115
114
  requestAnimationFrame(function () {
116
115
  return (0, _main.dispatchShouldHideDecorations)(editorView, shouldHide);
117
116
  });
@@ -103,8 +103,7 @@ export const selectionMarkerPlugin = ({
103
103
  * - Disabled: So that it behaves similar to the renderer in live pages/disabled
104
104
  * - Via the API: If another plugin has requested it to be hidden (force hidden).
105
105
  */
106
- const shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false);
107
- true;
106
+ const shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false) || expValEquals('platform_editor_ai_aifc', 'isEnabled', true);
108
107
  requestAnimationFrame(() => dispatchShouldHideDecorations(editorView, shouldHide));
109
108
  }, [editorView, hasFocus, isOpen, isForcedHidden, editorDisabled, showToolbar]);
110
109
  },
@@ -102,8 +102,7 @@ export var selectionMarkerPlugin = function selectionMarkerPlugin(_ref) {
102
102
  * - Disabled: So that it behaves similar to the renderer in live pages/disabled
103
103
  * - Via the API: If another plugin has requested it to be hidden (force hidden).
104
104
  */
105
- var shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false);
106
- true;
105
+ var shouldHide = (config === null || config === void 0 ? void 0 : config.hideCursorOnInit) && editorHasNotBeenFocused.current || hasFocus || (isOpen !== null && isOpen !== void 0 ? isOpen : false) || isForcedHidden || (editorDisabled !== null && editorDisabled !== void 0 ? editorDisabled : false) || expValEquals('platform_editor_toolbar_aifc_patch_1', 'isEnabled', true) && (showToolbar !== null && showToolbar !== void 0 ? showToolbar : false) || expValEquals('platform_editor_ai_aifc', 'isEnabled', true);
107
106
  requestAnimationFrame(function () {
108
107
  return dispatchShouldHideDecorations(editorView, shouldHide);
109
108
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,21 +30,21 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
32
32
  "@atlaskit/editor-plugin-focus": "^4.0.0",
33
- "@atlaskit/editor-plugin-toolbar": "^2.0.0",
33
+ "@atlaskit/editor-plugin-toolbar": "^2.1.0",
34
34
  "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/link": "^3.2.0",
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
38
  "@atlaskit/primitives": "^14.14.0",
39
- "@atlaskit/theme": "^20.0.0",
40
- "@atlaskit/tmp-editor-statsig": "^12.9.0",
39
+ "@atlaskit/theme": "^21.0.0",
40
+ "@atlaskit/tmp-editor-statsig": "^12.10.0",
41
41
  "@atlaskit/tokens": "^6.3.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
44
44
  "lodash": "^4.17.21"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^109.0.0",
47
+ "@atlaskit/editor-common": "^109.1.0",
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0"
50
50
  },