@atlaskit/editor-plugin-hyperlink 4.3.4 → 4.4.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 +19 -0
- package/dist/cjs/hyperlinkPlugin.js +2 -1
- package/dist/es2019/hyperlinkPlugin.js +2 -1
- package/dist/esm/hyperlinkPlugin.js +2 -1
- package/dist/types/hyperlinkPluginType.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/hyperlinkPluginType.d.ts +2 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 4.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 4.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
14
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
15
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
16
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 4.3.4
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ var _preset = require("@atlaskit/editor-common/preset");
|
|
|
15
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
16
16
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
17
17
|
var _linkEditorLink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link--editor-link"));
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
20
|
var _commands = require("./editor-commands/commands");
|
|
20
21
|
var _fakeCursorForToolbar = _interopRequireDefault(require("./pm-plugins/fake-cursor-for-toolbar"));
|
|
@@ -49,7 +50,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
49
50
|
var primaryToolbarComponent;
|
|
50
51
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
51
52
|
exposure: true
|
|
52
|
-
})) {
|
|
53
|
+
}) && !(0, _platformFeatureFlags.fg)('platform_editor_insert_button_on_primary_toolbar')) {
|
|
53
54
|
var _api$primaryToolbar;
|
|
54
55
|
primaryToolbarComponent = function primaryToolbarComponent() {
|
|
55
56
|
var _api$analytics;
|
|
@@ -8,6 +8,7 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
8
8
|
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/migration/link--editor-link';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
14
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
@@ -42,7 +43,7 @@ export const hyperlinkPlugin = ({
|
|
|
42
43
|
let primaryToolbarComponent;
|
|
43
44
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
44
45
|
exposure: true
|
|
45
|
-
})) {
|
|
46
|
+
}) && !fg('platform_editor_insert_button_on_primary_toolbar')) {
|
|
46
47
|
var _api$primaryToolbar;
|
|
47
48
|
primaryToolbarComponent = () => {
|
|
48
49
|
var _api$analytics;
|
|
@@ -8,6 +8,7 @@ import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
|
8
8
|
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/migration/link--editor-link';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
13
14
|
import fakeCursorToolbarPlugin from './pm-plugins/fake-cursor-for-toolbar';
|
|
@@ -42,7 +43,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
42
43
|
var primaryToolbarComponent;
|
|
43
44
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
44
45
|
exposure: true
|
|
45
|
-
})) {
|
|
46
|
+
}) && !fg('platform_editor_insert_button_on_primary_toolbar')) {
|
|
46
47
|
var _api$primaryToolbar;
|
|
47
48
|
primaryToolbarComponent = function primaryToolbarComponent() {
|
|
48
49
|
var _api$analytics;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
2
|
-
import type { EditorCommand, HyperlinkPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorCommand, HyperlinkPluginOptions as CommonHyperlinkPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
5
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
@@ -58,6 +58,7 @@ export type HyperlinkPluginActions = {
|
|
|
58
58
|
insertLink: InsertLink;
|
|
59
59
|
updateLink: UpdateLink;
|
|
60
60
|
};
|
|
61
|
+
export type HyperlinkPluginOptions = CommonHyperlinkPluginOptions;
|
|
61
62
|
export type HyperlinkPluginSharedState = HyperlinkState | undefined;
|
|
62
63
|
export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
63
64
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
2
|
-
export type { HyperlinkPlugin } from './hyperlinkPluginType';
|
|
2
|
+
export type { HyperlinkPlugin, HyperlinkPluginOptions } from './hyperlinkPluginType';
|
|
3
3
|
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from './editor-commands/commands';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HyperlinkState } from '@atlaskit/editor-common/link';
|
|
2
|
-
import type { EditorCommand, HyperlinkPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorCommand, HyperlinkPluginOptions as CommonHyperlinkPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
5
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
@@ -58,6 +58,7 @@ export type HyperlinkPluginActions = {
|
|
|
58
58
|
insertLink: InsertLink;
|
|
59
59
|
updateLink: UpdateLink;
|
|
60
60
|
};
|
|
61
|
+
export type HyperlinkPluginOptions = CommonHyperlinkPluginOptions;
|
|
61
62
|
export type HyperlinkPluginSharedState = HyperlinkState | undefined;
|
|
62
63
|
export type HyperlinkPlugin = NextEditorPlugin<'hyperlink', {
|
|
63
64
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { hyperlinkPlugin } from './hyperlinkPlugin';
|
|
2
|
-
export type { HyperlinkPlugin } from './hyperlinkPluginType';
|
|
2
|
+
export type { HyperlinkPlugin, HyperlinkPluginOptions } from './hyperlinkPluginType';
|
|
3
3
|
export type { HideLinkToolbar, ShowLinkToolbar, InsertLink, UpdateLink, } from './editor-commands/commands';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^104.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-card": "^5.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^3.
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^3.5.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/icon": "^25.6.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^4.16.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"uuid": "^3.1.0"
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
61
61
|
"@atlaskit/link-test-helpers": "^8.0.0",
|
|
62
|
-
"@atlaskit/media-test-helpers": "^
|
|
63
|
-
"@atlaskit/ssr": "
|
|
62
|
+
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
63
|
+
"@atlaskit/ssr": "workspace:^",
|
|
64
64
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
65
|
-
"@atlaskit/visual-regression": "
|
|
65
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
66
66
|
"@testing-library/react": "^13.4.0",
|
|
67
67
|
"raf-stub": "^2.0.1",
|
|
68
68
|
"typescript": "~5.4.2",
|
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
"linking_platform_smart_links_in_live_pages": {
|
|
109
109
|
"type": "boolean"
|
|
110
110
|
},
|
|
111
|
+
"platform_editor_insert_button_on_primary_toolbar": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
111
114
|
"platform_editor_controls_patch_3": {
|
|
112
115
|
"type": "boolean"
|
|
113
116
|
}
|