@atlaskit/editor-plugin-hyperlink 20.0.9 → 20.0.11
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 20.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
8
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 20.0.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 20.0.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,6 @@ var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
18
18
|
var _link3 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
19
19
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
23
22
|
var _commands = require("./editor-commands/commands");
|
|
@@ -196,9 +195,9 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
196
195
|
floatingToolbar: (0, _Toolbar.getToolbarConfig)(options, api)
|
|
197
196
|
}, !isToolbarAIFCEnabled && {
|
|
198
197
|
selectionToolbar: function selectionToolbar(state, _ref5) {
|
|
199
|
-
var _api$userPreferences
|
|
198
|
+
var _api$userPreferences;
|
|
200
199
|
var formatMessage = _ref5.formatMessage;
|
|
201
|
-
var toolbarDocking =
|
|
200
|
+
var toolbarDocking = 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;
|
|
202
201
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
203
202
|
exposure: true
|
|
204
203
|
})) {
|
|
@@ -9,7 +9,6 @@ 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/fg';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
14
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -176,8 +175,8 @@ export const hyperlinkPlugin = ({
|
|
|
176
175
|
selectionToolbar: (state, {
|
|
177
176
|
formatMessage
|
|
178
177
|
}) => {
|
|
179
|
-
var _api$userPreferences, _api$userPreferences
|
|
180
|
-
const toolbarDocking =
|
|
178
|
+
var _api$userPreferences, _api$userPreferences$;
|
|
179
|
+
const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : _api$userPreferences$.preferences.toolbarDockingPosition;
|
|
181
180
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
182
181
|
exposure: true
|
|
183
182
|
})) {
|
|
@@ -12,7 +12,6 @@ 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/fg';
|
|
16
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
18
17
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -189,9 +188,9 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
189
188
|
floatingToolbar: getToolbarConfig(options, api)
|
|
190
189
|
}, !isToolbarAIFCEnabled && {
|
|
191
190
|
selectionToolbar: function selectionToolbar(state, _ref5) {
|
|
192
|
-
var _api$userPreferences
|
|
191
|
+
var _api$userPreferences;
|
|
193
192
|
var formatMessage = _ref5.formatMessage;
|
|
194
|
-
var toolbarDocking =
|
|
193
|
+
var toolbarDocking = 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;
|
|
195
194
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
196
195
|
exposure: true
|
|
197
196
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.11",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^57.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.5.0",
|
|
25
25
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^18.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-card": "^24.0.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
42
42
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
46
46
|
"uuid": "^11.1.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^122.
|
|
49
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
50
50
|
"react": "^18.2.0 || ^19.2.0",
|
|
51
51
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
52
52
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -62,9 +62,6 @@
|
|
|
62
62
|
"platform-feature-flags": {
|
|
63
63
|
"platform_editor_middle_click_no_link_toolbar": {
|
|
64
64
|
"type": "boolean"
|
|
65
|
-
},
|
|
66
|
-
"platform_editor_use_preferences_plugin": {
|
|
67
|
-
"type": "boolean"
|
|
68
65
|
}
|
|
69
66
|
}
|
|
70
67
|
}
|