@atlaskit/editor-plugin-card 1.0.6 → 1.1.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 +10 -0
- package/dist/cjs/toolbar.js +2 -1
- package/dist/es2019/toolbar.js +2 -1
- package/dist/esm/toolbar.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#76379](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76379) [`1550bb6f5bde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1550bb6f5bde) - Updating links for link-preferences to be dependent on staging environment
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 1.0.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -12,6 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _card = require("@atlaskit/editor-common/card");
|
|
15
|
+
var _constants = require("@atlaskit/editor-common/constants");
|
|
15
16
|
var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/messages"));
|
|
16
17
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
17
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -87,7 +88,7 @@ var openLinkSettings = exports.openLinkSettings = function openLinkSettings(edit
|
|
|
87
88
|
if (!(state.selection instanceof _state.NodeSelection)) {
|
|
88
89
|
return false;
|
|
89
90
|
}
|
|
90
|
-
window.open(
|
|
91
|
+
process.env.NODE_ENV === 'production' ? window.open(_constants.productionLinkPreferencesUrl) : window.open(_constants.stagingLinkPreferencesUrl);
|
|
91
92
|
if (dispatch) {
|
|
92
93
|
var tr = state.tr,
|
|
93
94
|
type = state.selection.node.type;
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, buildOpenedSettingsPayload, buildVisitedLinkPayload, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { buildLayoutButtons, commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
5
|
+
import { productionLinkPreferencesUrl, stagingLinkPreferencesUrl } from '@atlaskit/editor-common/constants';
|
|
5
6
|
import commonMessages, { linkMessages, linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
7
|
import { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
7
8
|
import { SmallerEditIcon } from '@atlaskit/editor-common/ui';
|
|
@@ -75,7 +76,7 @@ export const openLinkSettings = editorAnalyticsApi => (state, dispatch) => {
|
|
|
75
76
|
if (!(state.selection instanceof NodeSelection)) {
|
|
76
77
|
return false;
|
|
77
78
|
}
|
|
78
|
-
window.open(
|
|
79
|
+
process.env.NODE_ENV === 'production' ? window.open(productionLinkPreferencesUrl) : window.open(stagingLinkPreferencesUrl);
|
|
79
80
|
if (dispatch) {
|
|
80
81
|
const {
|
|
81
82
|
tr,
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, buildOpenedSettingsPayload, buildVisitedLinkPayload, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { buildLayoutButtons, commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
9
|
+
import { productionLinkPreferencesUrl, stagingLinkPreferencesUrl } from '@atlaskit/editor-common/constants';
|
|
9
10
|
import commonMessages, { linkMessages, linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
10
11
|
import { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
11
12
|
import { SmallerEditIcon } from '@atlaskit/editor-common/ui';
|
|
@@ -77,7 +78,7 @@ export var openLinkSettings = function openLinkSettings(editorAnalyticsApi) {
|
|
|
77
78
|
if (!(state.selection instanceof NodeSelection)) {
|
|
78
79
|
return false;
|
|
79
80
|
}
|
|
80
|
-
window.open(
|
|
81
|
+
process.env.NODE_ENV === 'production' ? window.open(productionLinkPreferencesUrl) : window.open(stagingLinkPreferencesUrl);
|
|
81
82
|
if (dispatch) {
|
|
82
83
|
var tr = state.tr,
|
|
83
84
|
type = state.selection.node.type;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-floating-toolbar": "^1.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-grid": "^1.0.0",
|
|
44
|
-
"@atlaskit/editor-plugin-hyperlink": "^1.
|
|
44
|
+
"@atlaskit/editor-plugin-hyperlink": "^1.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^1.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/linking-common": "^5.3.0",
|
|
54
54
|
"@atlaskit/linking-types": "^8.6.0",
|
|
55
55
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
56
|
-
"@atlaskit/primitives": "^3.
|
|
56
|
+
"@atlaskit/primitives": "^3.2.0",
|
|
57
57
|
"@atlaskit/smart-card": "^26.48.0",
|
|
58
58
|
"@atlaskit/theme": "^12.6.0",
|
|
59
59
|
"@atlaskit/tokens": "^1.38.0",
|