@atlaskit/editor-plugin-hyperlink 1.0.2 → 1.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 +13 -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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 1.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#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
|
|
15
|
+
|
|
3
16
|
## 1.0.2
|
|
4
17
|
|
|
5
18
|
### 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 _hooks = require("@atlaskit/editor-common/hooks");
|
|
16
17
|
var _link2 = require("@atlaskit/editor-common/link");
|
|
17
18
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
@@ -104,7 +105,7 @@ var getSettingsButtonGroup = function getSettingsButtonGroup(intl, editorAnalyti
|
|
|
104
105
|
icon: _settings.default,
|
|
105
106
|
title: intl.formatMessage(_messages.linkToolbarMessages.settingsLink),
|
|
106
107
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
107
|
-
href: '
|
|
108
|
+
href: process.env.NODE_ENV === 'production' ? _constants.productionLinkPreferencesUrl : _constants.stagingLinkPreferencesUrl,
|
|
108
109
|
target: '_blank'
|
|
109
110
|
}];
|
|
110
111
|
};
|
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_ID, buildOpenedSettingsPayload, buildVisitedLinkPayload, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
5
|
+
import { productionLinkPreferencesUrl, stagingLinkPreferencesUrl } from '@atlaskit/editor-common/constants';
|
|
5
6
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
6
7
|
import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
7
8
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
@@ -88,7 +89,7 @@ const getSettingsButtonGroup = (intl, editorAnalyticsApi) => [{
|
|
|
88
89
|
icon: CogIcon,
|
|
89
90
|
title: intl.formatMessage(linkToolbarCommonMessages.settingsLink),
|
|
90
91
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
91
|
-
href:
|
|
92
|
+
href: process.env.NODE_ENV === 'production' ? productionLinkPreferencesUrl : stagingLinkPreferencesUrl,
|
|
92
93
|
target: '_blank'
|
|
93
94
|
}];
|
|
94
95
|
export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, providerFactory) => {
|
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_ID, buildOpenedSettingsPayload, buildVisitedLinkPayload, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
9
|
+
import { productionLinkPreferencesUrl, stagingLinkPreferencesUrl } from '@atlaskit/editor-common/constants';
|
|
9
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
10
11
|
import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
11
12
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
@@ -96,7 +97,7 @@ var getSettingsButtonGroup = function getSettingsButtonGroup(intl, editorAnalyti
|
|
|
96
97
|
icon: CogIcon,
|
|
97
98
|
title: intl.formatMessage(linkToolbarCommonMessages.settingsLink),
|
|
98
99
|
onClick: openLinkSettings(editorAnalyticsApi),
|
|
99
|
-
href:
|
|
100
|
+
href: process.env.NODE_ENV === 'production' ? productionLinkPreferencesUrl : stagingLinkPreferencesUrl,
|
|
100
101
|
target: '_blank'
|
|
101
102
|
}];
|
|
102
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^35.5.
|
|
35
|
+
"@atlaskit/adf-schema": "^35.5.2",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
37
|
-
"@atlaskit/editor-common": "^78.
|
|
37
|
+
"@atlaskit/editor-common": "^78.10.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
40
40
|
"@atlaskit/icon": "^22.1.0",
|