@atlaskit/editor-plugin-limited-mode 23.0.4 → 23.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,11 @@
1
1
  # @atlaskit/editor-plugin-limited-mode
2
2
 
3
+ ## 23.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 23.0.4
4
10
 
5
11
  ### Patch Changes
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.limitedModePlugin = void 0;
7
- var _nodeAnchor = require("@atlaskit/editor-common/node-anchor");
7
+ var _nodeAnchorProvider = require("@atlaskit/editor-common/node-anchor-provider");
8
8
  var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
9
9
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
10
10
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
@@ -44,7 +44,7 @@ var limitedModePlugin = exports.limitedModePlugin = function limitedModePlugin(_
44
44
  if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration')) {
45
45
  var _limitedModeState$ena;
46
46
  var isEnabled = (_limitedModeState$ena = limitedModeState === null || limitedModeState === void 0 ? void 0 : limitedModeState.enabled) !== null && _limitedModeState$ena !== void 0 ? _limitedModeState$ena : false;
47
- var nodeIdProvider = (0, _nodeAnchor.getNodeIdProvider)(editorView);
47
+ var nodeIdProvider = (0, _nodeAnchorProvider.getNodeIdProvider)(editorView);
48
48
  // When limited mode is enabled first time,
49
49
  // We need to remove all existing data-node-anchor attributes
50
50
  // And nodeIdProvider to limited mode to prevent adding data-node-anchor on new nodes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.createPlugin = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _analytics = require("@atlaskit/editor-common/analytics");
9
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
10
10
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
11
11
  var _shouldEnableLimitedMode = require("@atlaskit/editor-common/should-enable-limited-mode");
12
12
  var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
@@ -117,9 +117,9 @@ var createPlugin = exports.createPlugin = function createPlugin(api, injectedPol
117
117
  // `details` is the policy's own snapshot of what it latched on, taken before it cleared
118
118
  // its evidence buffers, so it reports the closing window rather than an empty one.
119
119
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.fireAnalyticsEvent({
120
- action: _analytics.ACTION.LIMITED_MODE_LATCHED,
121
- actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
122
- eventType: _analytics.EVENT_TYPE.OPERATIONAL,
120
+ action: _enums.ACTION.LIMITED_MODE_LATCHED,
121
+ actionSubject: _enums.ACTION_SUBJECT.EDITOR,
122
+ eventType: _enums.EVENT_TYPE.OPERATIONAL,
123
123
  attributes: _objectSpread(_objectSpread({
124
124
  latched: true,
125
125
  reason: details.reason,
@@ -1,4 +1,4 @@
1
- import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
1
+ import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
2
2
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
3
3
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
1
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { shouldEnableLimitedModeForDocument } from '@atlaskit/editor-common/should-enable-limited-mode';
4
4
  import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
@@ -1,4 +1,4 @@
1
- import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor';
1
+ import { getNodeIdProvider } from '@atlaskit/editor-common/node-anchor-provider';
2
2
  import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
3
3
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
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
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
4
+ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
5
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import { shouldEnableLimitedModeForDocument } from '@atlaskit/editor-common/should-enable-limited-mode';
7
7
  import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
2
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
3
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
4
4
  import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
5
  export type LimitedModePluginState = {
6
6
  /**
@@ -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 { LimitedModePlugin, LimitedModePluginState } from '../limitedModePluginType';
4
4
  import { LatchPolicy } from './utils/latch-policy';
5
5
  export declare const createPlugin: (api?: ExtractInjectionAPI<LimitedModePlugin>,
package/docs/0-intro.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
4
- import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
4
+ import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils/editor-use-only';
5
5
  import { token } from '@atlaskit/tokens';
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-limited-mode",
3
- "version": "23.0.4",
3
+ "version": "23.0.5",
4
4
  "description": "LimitedMode plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
25
25
  "@atlaskit/feature-gate-js-client": "^7.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": "^231.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^232.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "bind-event-listener": "^3.0.0"
31
31
  },