@atlaskit/editor-plugin-hyperlink 17.0.13 → 17.0.15
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 +16 -0
- package/dist/cjs/hyperlinkPlugin.js +2 -2
- package/dist/cjs/pm-plugins/decorations.js +2 -2
- package/dist/es2019/hyperlinkPlugin.js +1 -1
- package/dist/es2019/pm-plugins/decorations.js +1 -1
- package/dist/esm/hyperlinkPlugin.js +1 -1
- package/dist/esm/pm-plugins/decorations.js +1 -1
- package/dist/types/editor-commands/commands.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 17.0.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.0.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
14
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
15
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
16
|
+
changes.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 17.0.13
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
18
18
|
var _link2 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
19
19
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
|
-
var
|
|
20
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
23
|
var _commands = require("./editor-commands/commands");
|
|
@@ -198,7 +198,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
198
198
|
selectionToolbar: function selectionToolbar(state, _ref5) {
|
|
199
199
|
var _api$userPreferences, _api$selectionToolbar;
|
|
200
200
|
var formatMessage = _ref5.formatMessage;
|
|
201
|
-
var toolbarDocking = (0,
|
|
201
|
+
var toolbarDocking = (0, _fg.fg)('platform_editor_use_preferences_plugin') ? api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition : api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking;
|
|
202
202
|
if (toolbarDocking === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
203
203
|
exposure: true
|
|
204
204
|
})) {
|
|
@@ -10,12 +10,12 @@ var _reactDom = require("react-dom");
|
|
|
10
10
|
var _client = require("react-dom/client");
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
12
|
var _link = require("@atlaskit/editor-common/link");
|
|
13
|
-
var
|
|
13
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var reactRoots = new WeakMap();
|
|
15
15
|
|
|
16
16
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
|
17
17
|
var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
18
|
-
if ((0,
|
|
18
|
+
if ((0, _fg.fg)('nike_r19_render_unmount')) {
|
|
19
19
|
var root = reactRoots.get(mountPoint);
|
|
20
20
|
if (!root) {
|
|
21
21
|
root = (0, _client.createRoot)(mountPoint);
|
|
@@ -9,7 +9,7 @@ import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
|
9
9
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
15
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -3,7 +3,7 @@ import { render } from 'react-dom';
|
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { IntlProvider } from 'react-intl';
|
|
5
5
|
import { LinkAction, OverlayButton } from '@atlaskit/editor-common/link';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
const reactRoots = new WeakMap();
|
|
8
8
|
|
|
9
9
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
|
@@ -12,7 +12,7 @@ import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
|
12
12
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
14
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
18
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -3,7 +3,7 @@ import { render } from 'react-dom';
|
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { IntlProvider } from 'react-intl';
|
|
5
5
|
import { LinkAction, OverlayButton } from '@atlaskit/editor-common/link';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
var reactRoots = new WeakMap();
|
|
8
8
|
|
|
9
9
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { type CardPluginActions } from '@atlaskit/editor-common/card';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.15",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
42
42
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^160.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
46
46
|
"uuid": "^3.1.0"
|