@atlaskit/editor-plugin-hyperlink 0.4.2 → 0.5.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 +12 -0
- package/dist/cjs/Toolbar.js +3 -3
- package/dist/es2019/Toolbar.js +3 -3
- package/dist/esm/Toolbar.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`9a62c110c14`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a62c110c14) - [ux] ECA11Y-65: Removed aria-pressed from the Hyperlink floating controls toolbar buttons
|
|
8
|
+
|
|
9
|
+
## 0.4.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 0.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/Toolbar.js
CHANGED
|
@@ -161,9 +161,9 @@ var getToolbarConfig = function getToolbarConfig(options, featureFlags, pluginIn
|
|
|
161
161
|
width: 250,
|
|
162
162
|
items: [].concat((0, _toConsumableArray2.default)((_toolbarKey$getState$ = (_toolbarKey$getState = _toolbarButtons.toolbarKey.getState(state)) === null || _toolbarKey$getState === void 0 ? void 0 : _toolbarKey$getState.items(state, intl, providerFactory, link)) !== null && _toolbarKey$getState$ !== void 0 ? _toolbarKey$getState$ : []), [{
|
|
163
163
|
id: 'editor.link.edit',
|
|
164
|
+
testId: 'editor.link.edit',
|
|
164
165
|
type: 'button',
|
|
165
166
|
onClick: (0, _commands.editInsertedLink)(editorAnalyticsApi),
|
|
166
|
-
selected: false,
|
|
167
167
|
title: editLink,
|
|
168
168
|
showTitle: true,
|
|
169
169
|
metadata: metadata
|
|
@@ -171,12 +171,12 @@ var getToolbarConfig = function getToolbarConfig(options, featureFlags, pluginIn
|
|
|
171
171
|
type: 'separator'
|
|
172
172
|
}, {
|
|
173
173
|
id: 'editor.link.openLink',
|
|
174
|
+
testId: 'editor.link.openLink',
|
|
174
175
|
type: 'button',
|
|
175
176
|
disabled: !isValidUrl,
|
|
176
177
|
target: '_blank',
|
|
177
178
|
href: isValidUrl ? link : undefined,
|
|
178
179
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
179
|
-
selected: false,
|
|
180
180
|
title: labelOpenLink,
|
|
181
181
|
icon: _shortcut.default,
|
|
182
182
|
className: 'hyperlink-open-link',
|
|
@@ -186,11 +186,11 @@ var getToolbarConfig = function getToolbarConfig(options, featureFlags, pluginIn
|
|
|
186
186
|
type: 'separator'
|
|
187
187
|
}, {
|
|
188
188
|
id: 'editor.link.unlink',
|
|
189
|
+
testId: 'editor.link.unlink',
|
|
189
190
|
type: 'button',
|
|
190
191
|
onClick: (0, _card.commandWithMetadata)((0, _commands.removeLink)(pos, editorAnalyticsApi), {
|
|
191
192
|
inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
|
|
192
193
|
}),
|
|
193
|
-
selected: false,
|
|
194
194
|
title: labelUnlink,
|
|
195
195
|
icon: _unlink.default,
|
|
196
196
|
tabIndex: null
|
package/dist/es2019/Toolbar.js
CHANGED
|
@@ -152,9 +152,9 @@ export const getToolbarConfig = (options, featureFlags, pluginInjectionApi) => (
|
|
|
152
152
|
width: 250,
|
|
153
153
|
items: [...((_toolbarKey$getState$ = (_toolbarKey$getState = toolbarKey.getState(state)) === null || _toolbarKey$getState === void 0 ? void 0 : _toolbarKey$getState.items(state, intl, providerFactory, link)) !== null && _toolbarKey$getState$ !== void 0 ? _toolbarKey$getState$ : []), {
|
|
154
154
|
id: 'editor.link.edit',
|
|
155
|
+
testId: 'editor.link.edit',
|
|
155
156
|
type: 'button',
|
|
156
157
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
157
|
-
selected: false,
|
|
158
158
|
title: editLink,
|
|
159
159
|
showTitle: true,
|
|
160
160
|
metadata: metadata
|
|
@@ -162,12 +162,12 @@ export const getToolbarConfig = (options, featureFlags, pluginInjectionApi) => (
|
|
|
162
162
|
type: 'separator'
|
|
163
163
|
}, {
|
|
164
164
|
id: 'editor.link.openLink',
|
|
165
|
+
testId: 'editor.link.openLink',
|
|
165
166
|
type: 'button',
|
|
166
167
|
disabled: !isValidUrl,
|
|
167
168
|
target: '_blank',
|
|
168
169
|
href: isValidUrl ? link : undefined,
|
|
169
170
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
170
|
-
selected: false,
|
|
171
171
|
title: labelOpenLink,
|
|
172
172
|
icon: OpenIcon,
|
|
173
173
|
className: 'hyperlink-open-link',
|
|
@@ -177,11 +177,11 @@ export const getToolbarConfig = (options, featureFlags, pluginInjectionApi) => (
|
|
|
177
177
|
type: 'separator'
|
|
178
178
|
}, {
|
|
179
179
|
id: 'editor.link.unlink',
|
|
180
|
+
testId: 'editor.link.unlink',
|
|
180
181
|
type: 'button',
|
|
181
182
|
onClick: commandWithMetadata(removeLink(pos, editorAnalyticsApi), {
|
|
182
183
|
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
183
184
|
}),
|
|
184
|
-
selected: false,
|
|
185
185
|
title: labelUnlink,
|
|
186
186
|
icon: UnlinkIcon,
|
|
187
187
|
tabIndex: null
|
package/dist/esm/Toolbar.js
CHANGED
|
@@ -153,9 +153,9 @@ export var getToolbarConfig = function getToolbarConfig(options, featureFlags, p
|
|
|
153
153
|
width: 250,
|
|
154
154
|
items: [].concat(_toConsumableArray((_toolbarKey$getState$ = (_toolbarKey$getState = toolbarKey.getState(state)) === null || _toolbarKey$getState === void 0 ? void 0 : _toolbarKey$getState.items(state, intl, providerFactory, link)) !== null && _toolbarKey$getState$ !== void 0 ? _toolbarKey$getState$ : []), [{
|
|
155
155
|
id: 'editor.link.edit',
|
|
156
|
+
testId: 'editor.link.edit',
|
|
156
157
|
type: 'button',
|
|
157
158
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
158
|
-
selected: false,
|
|
159
159
|
title: editLink,
|
|
160
160
|
showTitle: true,
|
|
161
161
|
metadata: metadata
|
|
@@ -163,12 +163,12 @@ export var getToolbarConfig = function getToolbarConfig(options, featureFlags, p
|
|
|
163
163
|
type: 'separator'
|
|
164
164
|
}, {
|
|
165
165
|
id: 'editor.link.openLink',
|
|
166
|
+
testId: 'editor.link.openLink',
|
|
166
167
|
type: 'button',
|
|
167
168
|
disabled: !isValidUrl,
|
|
168
169
|
target: '_blank',
|
|
169
170
|
href: isValidUrl ? link : undefined,
|
|
170
171
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
171
|
-
selected: false,
|
|
172
172
|
title: labelOpenLink,
|
|
173
173
|
icon: OpenIcon,
|
|
174
174
|
className: 'hyperlink-open-link',
|
|
@@ -178,11 +178,11 @@ export var getToolbarConfig = function getToolbarConfig(options, featureFlags, p
|
|
|
178
178
|
type: 'separator'
|
|
179
179
|
}, {
|
|
180
180
|
id: 'editor.link.unlink',
|
|
181
|
+
testId: 'editor.link.unlink',
|
|
181
182
|
type: 'button',
|
|
182
183
|
onClick: commandWithMetadata(removeLink(pos, editorAnalyticsApi), {
|
|
183
184
|
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
184
185
|
}),
|
|
185
|
-
selected: false,
|
|
186
186
|
title: labelUnlink,
|
|
187
187
|
icon: UnlinkIcon,
|
|
188
188
|
tabIndex: null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^29.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^75.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
52
|
-
"@atlaskit/link-test-helpers": "^6.
|
|
52
|
+
"@atlaskit/link-test-helpers": "^6.1.0",
|
|
53
53
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
54
54
|
"@atlaskit/ssr": "*",
|
|
55
55
|
"@atlaskit/util-data-test": "^17.8.0",
|