@atlaskit/editor-plugin-hyperlink 13.1.15 → 14.0.0
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,40 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 13.1.16
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [`027beb2f61316`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/027beb2f61316) -
|
|
34
|
+
Update smart link appearance, if and only if smart link is created from confluence editor quick
|
|
35
|
+
insert menu
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 13.1.15
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
@@ -288,6 +288,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
288
288
|
var displayText = arguments.length > 2 ? arguments[2] : undefined;
|
|
289
289
|
var inputMethod = arguments.length > 3 ? arguments[3] : undefined;
|
|
290
290
|
var analytic = arguments.length > 4 ? arguments[4] : undefined;
|
|
291
|
+
var appearance = arguments.length > 5 ? arguments[5] : undefined;
|
|
291
292
|
var isEdit = isEditLink(activeLinkMark);
|
|
292
293
|
var action = isEdit ? _analytics.ACTION.UPDATED : _analytics.ACTION.INSERTED;
|
|
293
294
|
var skipAnalytics = (_toolbarKey$getState$ = (_toolbarKey$getState = _toolbarButtons.toolbarKey.getState(state)) === null || _toolbarKey$getState === void 0 ? void 0 : _toolbarKey$getState.skipAnalytics) !== null && _toolbarKey$getState$ !== void 0 ? _toolbarKey$getState$ : false;
|
|
@@ -295,7 +296,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
295
296
|
action: action,
|
|
296
297
|
inputMethod: inputMethod,
|
|
297
298
|
sourceEvent: analytic
|
|
298
|
-
}) : (0, _commands.insertLinkWithAnalytics)(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic);
|
|
299
|
+
}) : (0, _commands.insertLinkWithAnalytics)(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic, appearance);
|
|
299
300
|
command(view.state, view.dispatch, view);
|
|
300
301
|
view.focus();
|
|
301
302
|
}
|
|
@@ -265,7 +265,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
265
265
|
onClickAwayCallback: onClickAwayCallback
|
|
266
266
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
267
267
|
,
|
|
268
|
-
onSubmit: (href, title = '', displayText, inputMethod, analytic) => {
|
|
268
|
+
onSubmit: (href, title = '', displayText, inputMethod, analytic, appearance) => {
|
|
269
269
|
var _toolbarKey$getState$, _toolbarKey$getState;
|
|
270
270
|
const isEdit = isEditLink(activeLinkMark);
|
|
271
271
|
const action = isEdit ? ACTION.UPDATED : ACTION.INSERTED;
|
|
@@ -274,7 +274,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
274
274
|
action,
|
|
275
275
|
inputMethod,
|
|
276
276
|
sourceEvent: analytic
|
|
277
|
-
}) : insertLinkWithAnalytics(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic);
|
|
277
|
+
}) : insertLinkWithAnalytics(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic, appearance);
|
|
278
278
|
command(view.state, view.dispatch, view);
|
|
279
279
|
view.focus();
|
|
280
280
|
}
|
|
@@ -279,6 +279,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
279
279
|
var displayText = arguments.length > 2 ? arguments[2] : undefined;
|
|
280
280
|
var inputMethod = arguments.length > 3 ? arguments[3] : undefined;
|
|
281
281
|
var analytic = arguments.length > 4 ? arguments[4] : undefined;
|
|
282
|
+
var appearance = arguments.length > 5 ? arguments[5] : undefined;
|
|
282
283
|
var isEdit = isEditLink(activeLinkMark);
|
|
283
284
|
var action = isEdit ? ACTION.UPDATED : ACTION.INSERTED;
|
|
284
285
|
var skipAnalytics = (_toolbarKey$getState$ = (_toolbarKey$getState = toolbarKey.getState(state)) === null || _toolbarKey$getState === void 0 ? void 0 : _toolbarKey$getState.skipAnalytics) !== null && _toolbarKey$getState$ !== void 0 ? _toolbarKey$getState$ : false;
|
|
@@ -286,7 +287,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
286
287
|
action: action,
|
|
287
288
|
inputMethod: inputMethod,
|
|
288
289
|
sourceEvent: analytic
|
|
289
|
-
}) : insertLinkWithAnalytics(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic);
|
|
290
|
+
}) : insertLinkWithAnalytics(inputMethod, activeLinkMark.from, activeLinkMark.to, href, editorCardActions, editorAnalyticsApi, title, displayText, skipAnalytics, analytic, appearance);
|
|
290
291
|
command(view.state, view.dispatch, view);
|
|
291
292
|
view.focus();
|
|
292
293
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,42 +16,34 @@
|
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
18
18
|
"types": "dist/types/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.5 <4.9": {
|
|
21
|
-
"*": [
|
|
22
|
-
"dist/types-ts4.5/*",
|
|
23
|
-
"dist/types-ts4.5/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
19
|
"sideEffects": [
|
|
28
20
|
"*.compiled.css"
|
|
29
21
|
],
|
|
30
22
|
"atlaskit:src": "src/index.ts",
|
|
31
23
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^
|
|
33
|
-
"@atlaskit/analytics-next": "^
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
35
|
-
"@atlaskit/editor-plugin-card": "^
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
37
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
38
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
39
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
42
|
-
"@atlaskit/editor-prosemirror": "^
|
|
43
|
-
"@atlaskit/editor-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
45
|
-
"@atlaskit/icon": "^
|
|
46
|
-
"@atlaskit/platform-feature-flags": "^
|
|
47
|
-
"@atlaskit/prosemirror-input-rules": "^
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
24
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
25
|
+
"@atlaskit/analytics-next": "^12.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-card": "^18.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-connectivity": "^12.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^13.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^13.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-toolbar": "^9.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-user-intent": "^10.0.0",
|
|
34
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
35
|
+
"@atlaskit/editor-toolbar": "^2.0.0",
|
|
36
|
+
"@atlaskit/editor-toolbar-model": "^1.0.0",
|
|
37
|
+
"@atlaskit/icon": "^36.0.0",
|
|
38
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
39
|
+
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
49
41
|
"@babel/runtime": "^7.0.0",
|
|
50
42
|
"@emotion/react": "^11.7.1",
|
|
51
43
|
"uuid": "^3.1.0"
|
|
52
44
|
},
|
|
53
45
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^
|
|
46
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
55
47
|
"react": "^18.2.0",
|
|
56
48
|
"react-dom": "^18.2.0",
|
|
57
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|