@atlaskit/editor-plugin-hyperlink 8.0.9 → 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,24 @@
|
|
|
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
|
+
|
|
11
|
+
## 8.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
|
|
16
|
+
[EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 8.0.9
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -223,7 +242,6 @@
|
|
|
223
242
|
|
|
224
243
|
- [`286abb4d35eba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286abb4d35eba) -
|
|
225
244
|
[ux] [ED-28960] Finish full page primary toolbar migration
|
|
226
|
-
|
|
227
245
|
- Align with design update (separator, gap, height, icon size)
|
|
228
246
|
- Add keyboard shortcut to focus toolbar and arrow key navigation
|
|
229
247
|
- Address accessibility
|
|
@@ -268,7 +286,6 @@
|
|
|
268
286
|
|
|
269
287
|
- [`3145f278b1f7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3145f278b1f7a) -
|
|
270
288
|
[ux] [ED-28473] minor UI updates for editor-toolbar
|
|
271
|
-
|
|
272
289
|
- Use ADS ButtonGroup for ToolbarButtonGroup
|
|
273
290
|
- Remove groupLocation prop and use CSS instead
|
|
274
291
|
- Use DropdownItemGroup for ToolbarDropdownItemSection and expand props for section separator and
|
|
@@ -410,7 +427,6 @@
|
|
|
410
427
|
shared context or singletons.
|
|
411
428
|
|
|
412
429
|
**HOW TO ADJUST:**
|
|
413
|
-
|
|
414
430
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
415
431
|
any of these editor plugins.
|
|
416
432
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -2131,7 +2147,6 @@
|
|
|
2131
2147
|
|
|
2132
2148
|
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
2133
2149
|
`@atlaskit/editor-common/types`:
|
|
2134
|
-
|
|
2135
2150
|
- InputRuleWrapper
|
|
2136
2151
|
- InputRuleHandler
|
|
2137
2152
|
- OnHandlerApply
|
|
@@ -2141,7 +2156,6 @@
|
|
|
2141
2156
|
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
2142
2157
|
|
|
2143
2158
|
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
2144
|
-
|
|
2145
2159
|
- createPlugin
|
|
2146
2160
|
- createInputRulePlugin
|
|
2147
2161
|
|
|
@@ -2302,7 +2316,6 @@
|
|
|
2302
2316
|
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
2303
2317
|
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
2304
2318
|
feature flags plugin optional in all plugins including:
|
|
2305
|
-
|
|
2306
2319
|
- analytics
|
|
2307
2320
|
- base
|
|
2308
2321
|
- card
|
|
@@ -2561,7 +2574,6 @@
|
|
|
2561
2574
|
- [#37010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37010)
|
|
2562
2575
|
[`8e084d87da5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e084d87da5) - Remove
|
|
2563
2576
|
deprecated hyperlink commands and plugin key including:
|
|
2564
|
-
|
|
2565
2577
|
- isTextAtPos
|
|
2566
2578
|
- isLinkAtPos
|
|
2567
2579
|
- insertLink
|
|
@@ -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.
|
|
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",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.3.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
35
|
-
"@atlaskit/editor-plugin-card": "^11.
|
|
34
|
+
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
|
+
"@atlaskit/editor-plugin-card": "^11.4.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^3.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-toolbar": "^0.15.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"
|