@atlaskit/editor-plugin-hyperlink 2.9.24 → 2.9.26
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 2.9.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146891](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146891)
|
|
8
|
+
[`17f2c59f06b04`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/17f2c59f06b04) -
|
|
9
|
+
Migrate smart links in live pages feature flag to Statsig
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.9.25
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.9.24
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -193,14 +193,14 @@ var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
|
|
|
193
193
|
timesViewed: state.timesViewed,
|
|
194
194
|
searchSessionId: state.searchSessionId
|
|
195
195
|
};
|
|
196
|
-
state = _objectSpread(_objectSpread({}, __livePage && (0, _platformFeatureFlags.fg)('
|
|
196
|
+
state = _objectSpread(_objectSpread({}, __livePage && (0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages') && state), {}, {
|
|
197
197
|
activeText: state.activeText,
|
|
198
198
|
canInsertLink: state.canInsertLink,
|
|
199
199
|
inputMethod: inputMethod,
|
|
200
200
|
activeLinkMark: toState(state.activeLinkMark, action, newState),
|
|
201
201
|
editorAppearance: editorAppearance
|
|
202
202
|
}, stateForAnalytics);
|
|
203
|
-
if ((0, _platformFeatureFlags.fg)('
|
|
203
|
+
if ((0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages')) {
|
|
204
204
|
var _pluginInjectionApi$e;
|
|
205
205
|
var isViewMode = (pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 || (_pluginInjectionApi$e = _pluginInjectionApi$e.sharedState.currentState()) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.mode) === 'view';
|
|
206
206
|
if (__livePage && !isViewMode) {
|
|
@@ -284,7 +284,7 @@ var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
|
|
|
284
284
|
key: stateKey,
|
|
285
285
|
props: _objectSpread({
|
|
286
286
|
decorations: function decorations(state) {
|
|
287
|
-
if (__livePage && (0, _platformFeatureFlags.fg)('
|
|
287
|
+
if (__livePage && (0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages')) {
|
|
288
288
|
var _stateKey$getState;
|
|
289
289
|
var _ref = (_stateKey$getState = stateKey.getState(state)) !== null && _stateKey$getState !== void 0 ? _stateKey$getState : {},
|
|
290
290
|
decorations = _ref.decorations;
|
|
@@ -323,7 +323,7 @@ var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
|
|
|
323
323
|
return false;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
}, __livePage && (0, _platformFeatureFlags.fg)('
|
|
326
|
+
}, __livePage && (0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages') && {
|
|
327
327
|
markViews: {
|
|
328
328
|
link: function link(mark, view, inline) {
|
|
329
329
|
var toDOM = mark.type.spec.toDOM;
|
|
@@ -194,7 +194,7 @@ export const plugin = (dispatch, intl, editorAppearance, pluginInjectionApi, onC
|
|
|
194
194
|
searchSessionId: state.searchSessionId
|
|
195
195
|
};
|
|
196
196
|
state = {
|
|
197
|
-
...(__livePage && fg('
|
|
197
|
+
...(__livePage && fg('linking_platform_smart_links_in_live_pages') && state),
|
|
198
198
|
activeText: state.activeText,
|
|
199
199
|
canInsertLink: state.canInsertLink,
|
|
200
200
|
inputMethod,
|
|
@@ -202,7 +202,7 @@ export const plugin = (dispatch, intl, editorAppearance, pluginInjectionApi, onC
|
|
|
202
202
|
editorAppearance,
|
|
203
203
|
...stateForAnalytics
|
|
204
204
|
};
|
|
205
|
-
if (fg('
|
|
205
|
+
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
206
206
|
var _pluginInjectionApi$e, _pluginInjectionApi$e2;
|
|
207
207
|
const isViewMode = (pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 ? void 0 : (_pluginInjectionApi$e2 = _pluginInjectionApi$e.sharedState.currentState()) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.mode) === 'view';
|
|
208
208
|
if (__livePage && !isViewMode) {
|
|
@@ -287,7 +287,7 @@ export const plugin = (dispatch, intl, editorAppearance, pluginInjectionApi, onC
|
|
|
287
287
|
key: stateKey,
|
|
288
288
|
props: {
|
|
289
289
|
decorations: state => {
|
|
290
|
-
if (__livePage && fg('
|
|
290
|
+
if (__livePage && fg('linking_platform_smart_links_in_live_pages')) {
|
|
291
291
|
var _stateKey$getState;
|
|
292
292
|
const {
|
|
293
293
|
decorations
|
|
@@ -333,7 +333,7 @@ export const plugin = (dispatch, intl, editorAppearance, pluginInjectionApi, onC
|
|
|
333
333
|
return false;
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
|
-
...(__livePage && fg('
|
|
336
|
+
...(__livePage && fg('linking_platform_smart_links_in_live_pages') && {
|
|
337
337
|
markViews: {
|
|
338
338
|
link: (mark, view, inline) => {
|
|
339
339
|
const toDOM = mark.type.spec.toDOM;
|
|
@@ -186,14 +186,14 @@ export var plugin = function plugin(dispatch, intl, editorAppearance, pluginInje
|
|
|
186
186
|
timesViewed: state.timesViewed,
|
|
187
187
|
searchSessionId: state.searchSessionId
|
|
188
188
|
};
|
|
189
|
-
state = _objectSpread(_objectSpread({}, __livePage && fg('
|
|
189
|
+
state = _objectSpread(_objectSpread({}, __livePage && fg('linking_platform_smart_links_in_live_pages') && state), {}, {
|
|
190
190
|
activeText: state.activeText,
|
|
191
191
|
canInsertLink: state.canInsertLink,
|
|
192
192
|
inputMethod: inputMethod,
|
|
193
193
|
activeLinkMark: toState(state.activeLinkMark, action, newState),
|
|
194
194
|
editorAppearance: editorAppearance
|
|
195
195
|
}, stateForAnalytics);
|
|
196
|
-
if (fg('
|
|
196
|
+
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
197
197
|
var _pluginInjectionApi$e;
|
|
198
198
|
var isViewMode = (pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e = pluginInjectionApi.editorViewMode) === null || _pluginInjectionApi$e === void 0 || (_pluginInjectionApi$e = _pluginInjectionApi$e.sharedState.currentState()) === null || _pluginInjectionApi$e === void 0 ? void 0 : _pluginInjectionApi$e.mode) === 'view';
|
|
199
199
|
if (__livePage && !isViewMode) {
|
|
@@ -277,7 +277,7 @@ export var plugin = function plugin(dispatch, intl, editorAppearance, pluginInje
|
|
|
277
277
|
key: stateKey,
|
|
278
278
|
props: _objectSpread({
|
|
279
279
|
decorations: function decorations(state) {
|
|
280
|
-
if (__livePage && fg('
|
|
280
|
+
if (__livePage && fg('linking_platform_smart_links_in_live_pages')) {
|
|
281
281
|
var _stateKey$getState;
|
|
282
282
|
var _ref = (_stateKey$getState = stateKey.getState(state)) !== null && _stateKey$getState !== void 0 ? _stateKey$getState : {},
|
|
283
283
|
decorations = _ref.decorations;
|
|
@@ -316,7 +316,7 @@ export var plugin = function plugin(dispatch, intl, editorAppearance, pluginInje
|
|
|
316
316
|
return false;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
}, __livePage && fg('
|
|
319
|
+
}, __livePage && fg('linking_platform_smart_links_in_live_pages') && {
|
|
320
320
|
markViews: {
|
|
321
321
|
link: function link(mark, view, inline) {
|
|
322
322
|
var toDOM = mark.type.spec.toDOM;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.26",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^92.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "3.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "3.4.1",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.20.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"platform.editor.card.inject-settings-button": {
|
|
96
96
|
"type": "boolean"
|
|
97
97
|
},
|
|
98
|
-
"
|
|
98
|
+
"linking_platform_smart_links_in_live_pages": {
|
|
99
99
|
"type": "boolean"
|
|
100
100
|
}
|
|
101
101
|
}
|