@atlaskit/editor-plugin-card 1.8.0 → 1.8.2

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,18 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 1.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
8
+ - Updated dependencies
9
+
10
+ ## 1.8.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#92530](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92530) [`4f0d59f56914`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f0d59f56914) - The changes here fixes a bug where the toolbar shows smartlink icons when the node does not have a url.
15
+
3
16
  ## 1.8.0
4
17
 
5
18
  ### Minor Changes
@@ -398,6 +398,10 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
398
398
  });
399
399
  }
400
400
  var canShowMainToolbar = function canShowMainToolbar() {
401
+ // we do not show smart-link or the datasource icons when the node does not have a url to resolve
402
+ if (!metadata.url) {
403
+ return false;
404
+ }
401
405
  if (
402
406
  // FF that controls visibily of the additional toolbar buttons
403
407
  !(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
@@ -389,6 +389,10 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
389
389
  });
390
390
  }
391
391
  const canShowMainToolbar = () => {
392
+ // we do not show smart-link or the datasource icons when the node does not have a url to resolve
393
+ if (!metadata.url) {
394
+ return false;
395
+ }
392
396
  if (
393
397
  // FF that controls visibily of the additional toolbar buttons
394
398
  !getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
@@ -388,6 +388,10 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
388
388
  });
389
389
  }
390
390
  var canShowMainToolbar = function canShowMainToolbar() {
391
+ // we do not show smart-link or the datasource icons when the node does not have a url to resolve
392
+ if (!metadata.url) {
393
+ return false;
394
+ }
391
395
  if (
392
396
  // FF that controls visibily of the additional toolbar buttons
393
397
  !getBooleanFF('platform.linking-platform.enable-datasource-appearance-toolbar')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,10 +32,10 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^35.9.0",
35
+ "@atlaskit/adf-schema": "^35.9.2",
36
36
  "@atlaskit/analytics-next": "^9.2.0",
37
- "@atlaskit/custom-steps": "^0.0.18",
38
- "@atlaskit/editor-common": "^78.28.0",
37
+ "@atlaskit/custom-steps": "^0.0.19",
38
+ "@atlaskit/editor-common": "^78.30.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.0.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
@@ -50,12 +50,12 @@
50
50
  "@atlaskit/icon": "^22.1.0",
51
51
  "@atlaskit/link-analytics": "^8.3.0",
52
52
  "@atlaskit/link-client-extension": "^1.8.0",
53
- "@atlaskit/link-datasource": "^1.27.0",
53
+ "@atlaskit/link-datasource": "^1.28.0",
54
54
  "@atlaskit/linking-common": "^5.6.0",
55
55
  "@atlaskit/linking-types": "^8.8.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.2.0",
57
57
  "@atlaskit/primitives": "^5.5.0",
58
- "@atlaskit/smart-card": "^26.56.0",
58
+ "@atlaskit/smart-card": "^26.57.0",
59
59
  "@atlaskit/theme": "^12.7.0",
60
60
  "@atlaskit/tokens": "^1.43.0",
61
61
  "@babel/runtime": "^7.0.0",