@atlaskit/editor-plugin-limited-mode 16.0.2 → 16.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-plugin-limited-mode
2
2
 
3
+ ## 16.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 16.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`fc26bfc51dd5c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc26bfc51dd5c) -
14
+ Add sparse block-control surface anchors, intersection-driven candidates, and explicit visibility
15
+ invalidation for registry-backed block controls. Expose registration change subscriptions from the
16
+ UI control registry model, and refresh cached visibility from suggestion and collapse transaction
17
+ metadata. Under `platform_editor_block_control_migration`, use native node-anchor identity across
18
+ Editor and Block Controls, and route expand keyboard focus through the shared Block Controls
19
+ command. Preserve Show Diff visibility checks in both migration cohorts so block controls stay
20
+ hidden while a diff is displayed. Keep the block menu closed when a migrated layout-column handle
21
+ opens the layout menu, and close the layout menu when the selection moves away from its selected
22
+ columns.
23
+ - Updated dependencies
24
+
3
25
  ## 16.0.2
4
26
 
5
27
  ### Patch Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.limitedModePlugin = void 0;
7
7
  var _nodeAnchor = require("@atlaskit/editor-common/node-anchor");
8
8
  var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
9
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
9
10
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
10
11
  var _main = require("./pm-plugins/main");
11
12
  var _pluginKey = require("./pm-plugins/plugin-key");
@@ -40,7 +41,7 @@ var limitedModePlugin = exports.limitedModePlugin = function limitedModePlugin(_
40
41
  var editorView = _ref2.editorView;
41
42
  (0, _usePluginStateEffect.usePluginStateEffect)(api, ['limitedMode'], function (_ref3) {
42
43
  var limitedModeState = _ref3.limitedModeState;
43
- if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
44
+ if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration')) {
44
45
  var _limitedModeState$ena;
45
46
  var isEnabled = (_limitedModeState$ena = limitedModeState === null || limitedModeState === void 0 ? void 0 : limitedModeState.enabled) !== null && _limitedModeState$ena !== void 0 ? _limitedModeState$ena : false;
46
47
  var nodeIdProvider = (0, _nodeAnchor.getNodeIdProvider)(editorView);
@@ -1,5 +1,6 @@
1
1
  import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
2
2
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
3
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
3
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  import { createPlugin } from './pm-plugins/main';
5
6
  import { limitedModePluginKey } from './pm-plugins/plugin-key';
@@ -35,7 +36,7 @@ export const limitedModePlugin = ({
35
36
  usePluginStateEffect(api, ['limitedMode'], ({
36
37
  limitedModeState
37
38
  }) => {
38
- if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
39
+ if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || isExperimentEnabled('platform_editor_block_control_migration')) {
39
40
  var _limitedModeState$ena;
40
41
  const isEnabled = (_limitedModeState$ena = limitedModeState === null || limitedModeState === void 0 ? void 0 : limitedModeState.enabled) !== null && _limitedModeState$ena !== void 0 ? _limitedModeState$ena : false;
41
42
  const nodeIdProvider = getNodeIdProvider(editorView);
@@ -1,5 +1,6 @@
1
1
  import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
2
2
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
3
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
3
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  import { createPlugin } from './pm-plugins/main';
5
6
  import { limitedModePluginKey } from './pm-plugins/plugin-key';
@@ -34,7 +35,7 @@ export var limitedModePlugin = function limitedModePlugin(_ref) {
34
35
  var editorView = _ref2.editorView;
35
36
  usePluginStateEffect(api, ['limitedMode'], function (_ref3) {
36
37
  var limitedModeState = _ref3.limitedModeState;
37
- if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
38
+ if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || isExperimentEnabled('platform_editor_block_control_migration')) {
38
39
  var _limitedModeState$ena;
39
40
  var isEnabled = (_limitedModeState$ena = limitedModeState === null || limitedModeState === void 0 ? void 0 : limitedModeState.enabled) !== null && _limitedModeState$ena !== void 0 ? _limitedModeState$ena : false;
40
41
  var nodeIdProvider = getNodeIdProvider(editorView);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-limited-mode",
3
- "version": "16.0.2",
3
+ "version": "16.0.4",
4
4
  "description": "LimitedMode plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,12 +25,12 @@
25
25
  "@atlaskit/feature-gate-js-client": "^6.0.0",
26
26
  "@atlaskit/platform-feature-experiments": "^0.3.0",
27
27
  "@atlaskit/platform-feature-flags": "^2.2.0",
28
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "bind-event-listener": "^3.0.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^123.2.0",
33
+ "@atlaskit/editor-common": "^123.5.0",
34
34
  "react": "^18.2.0 || ^19.2.0",
35
35
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
36
36
  },