@atlaskit/editor-plugin-hyperlink 8.1.0 → 8.1.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 8.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f3e7f3af81cee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f3e7f3af81cee) -
|
|
8
|
+
[ux] NO-ISSUE clean up platform_editor_create_link_on_blur
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 8.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -13,7 +13,6 @@ var _card = require("@atlaskit/editor-common/card");
|
|
|
13
13
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
14
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
15
15
|
var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
|
|
16
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _toolbarButtons = require("./toolbar-buttons");
|
|
18
17
|
/**
|
|
19
18
|
* Called when space after link, but not on enter
|
|
@@ -115,7 +114,7 @@ function createInputRulePlugin(schema, editorAnalyticsApi) {
|
|
|
115
114
|
editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent((0, _utils.getLinkCreationAnalyticsEvent)(_analytics.INPUT_METHOD.FORMATTING, url))(tr);
|
|
116
115
|
return tr;
|
|
117
116
|
});
|
|
118
|
-
return new _safePlugin.SafePlugin((0, _prosemirrorInputRules.createPlugin)('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur
|
|
117
|
+
return new _safePlugin.SafePlugin((0, _prosemirrorInputRules.createPlugin)('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur ? {
|
|
119
118
|
checkOnBlur: true,
|
|
120
119
|
appendTextOnBlur: ' '
|
|
121
120
|
} : undefined));
|
|
@@ -3,7 +3,6 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { createRule, findFilepaths, getLinkCreationAnalyticsEvent, isLinkInMatches, LinkMatcher, normalizeUrl, shouldAutoLinkifyMatch } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { createPlugin } from '@atlaskit/prosemirror-input-rules';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { toolbarKey } from './toolbar-buttons';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -106,7 +105,7 @@ export function createInputRulePlugin(schema, editorAnalyticsApi, autoLinkOnBlur
|
|
|
106
105
|
editorAnalyticsApi === null || editorAnalyticsApi === void 0 ? void 0 : editorAnalyticsApi.attachAnalyticsEvent(getLinkCreationAnalyticsEvent(INPUT_METHOD.FORMATTING, url))(tr);
|
|
107
106
|
return tr;
|
|
108
107
|
});
|
|
109
|
-
return new SafePlugin(createPlugin('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur
|
|
108
|
+
return new SafePlugin(createPlugin('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur ? {
|
|
110
109
|
checkOnBlur: true,
|
|
111
110
|
appendTextOnBlur: ' '
|
|
112
111
|
} : undefined));
|
|
@@ -4,7 +4,6 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { createRule, findFilepaths, getLinkCreationAnalyticsEvent, isLinkInMatches, LinkMatcher, normalizeUrl, shouldAutoLinkifyMatch } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { createPlugin } from '@atlaskit/prosemirror-input-rules';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { toolbarKey } from './toolbar-buttons';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -107,7 +106,7 @@ export function createInputRulePlugin(schema, editorAnalyticsApi) {
|
|
|
107
106
|
editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent(getLinkCreationAnalyticsEvent(INPUT_METHOD.FORMATTING, url))(tr);
|
|
108
107
|
return tr;
|
|
109
108
|
});
|
|
110
|
-
return new SafePlugin(createPlugin('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur
|
|
109
|
+
return new SafePlugin(createPlugin('hyperlink', [urlWithASpaceRule, markdownLinkRule], autoLinkOnBlur ? {
|
|
111
110
|
checkOnBlur: true,
|
|
112
111
|
appendTextOnBlur: ' '
|
|
113
112
|
} : undefined));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"@atlaskit/icon": "^28.5.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.18.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^110.
|
|
54
|
+
"@atlaskit/editor-common": "^110.16.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
57
|
"react-intl-next": "npm:react-intl@^5.18.1"
|