@atlaskit/editor-plugin-card 1.1.4 → 1.2.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#77720](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77720) [`5b0f2fbdda16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b0f2fbdda16) - [ux] Added link preferences button to datasources (feature-flagged)
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 1.1.5
14
+
15
+ ### Patch Changes
16
+
17
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679) [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) - ED-22553 Updating adf-schema version to 35.6.0
18
+ - Updated dependencies
19
+
3
20
  ## 1.1.4
4
21
 
5
22
  ### Patch Changes
@@ -438,7 +438,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
438
438
  type: 'separator'
439
439
  });
440
440
  }
441
- toolbarItems.push({
441
+ toolbarItems.push.apply(toolbarItems, [{
442
442
  type: 'copy-button',
443
443
  items: [{
444
444
  state: state,
@@ -447,7 +447,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
447
447
  }, {
448
448
  type: 'separator'
449
449
  }]
450
- }, {
450
+ }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor-add-link-preferences-button-to-datasources_xt1sh') ? getSettingsButtonGroup(intl, editorAnalyticsApi) : []), [{
451
451
  id: 'editor.link.delete',
452
452
  focusEditoronEnter: true,
453
453
  type: 'button',
@@ -459,7 +459,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
459
459
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
460
460
  title: intl.formatMessage(_messages.default.remove),
461
461
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
462
- });
462
+ }]));
463
463
  return toolbarItems;
464
464
  };
465
465
  var shouldRenderToolbarPulse = exports.shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -440,7 +440,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
440
440
  }, {
441
441
  type: 'separator'
442
442
  }]
443
- }, {
443
+ }, ...(getBooleanFF('platform.editor-add-link-preferences-button-to-datasources_xt1sh') ? getSettingsButtonGroup(intl, editorAnalyticsApi) : []), {
444
444
  id: 'editor.link.delete',
445
445
  focusEditoronEnter: true,
446
446
  type: 'button',
@@ -1 +0,0 @@
1
- export {};
@@ -428,7 +428,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
428
428
  type: 'separator'
429
429
  });
430
430
  }
431
- toolbarItems.push({
431
+ toolbarItems.push.apply(toolbarItems, [{
432
432
  type: 'copy-button',
433
433
  items: [{
434
434
  state: state,
@@ -437,7 +437,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
437
437
  }, {
438
438
  type: 'separator'
439
439
  }]
440
- }, {
440
+ }].concat(_toConsumableArray(getBooleanFF('platform.editor-add-link-preferences-button-to-datasources_xt1sh') ? getSettingsButtonGroup(intl, editorAnalyticsApi) : []), [{
441
441
  id: 'editor.link.delete',
442
442
  focusEditoronEnter: true,
443
443
  type: 'button',
@@ -449,7 +449,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
449
449
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
450
450
  title: intl.formatMessage(commonMessages.remove),
451
451
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
452
- });
452
+ }]));
453
453
  return toolbarItems;
454
454
  };
455
455
  export var shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
@@ -1 +0,0 @@
1
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
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.5.2",
35
+ "@atlaskit/adf-schema": "^35.6.0",
36
36
  "@atlaskit/analytics-next": "^9.2.0",
37
- "@atlaskit/custom-steps": "^0.0.14",
38
- "@atlaskit/editor-common": "^78.11.0",
37
+ "@atlaskit/custom-steps": "^0.0.15",
38
+ "@atlaskit/editor-common": "^78.13.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.0.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
@@ -53,10 +53,10 @@
53
53
  "@atlaskit/linking-common": "^5.4.0",
54
54
  "@atlaskit/linking-types": "^8.7.0",
55
55
  "@atlaskit/platform-feature-flags": "^0.2.0",
56
- "@atlaskit/primitives": "^4.0.0",
56
+ "@atlaskit/primitives": "^4.1.0",
57
57
  "@atlaskit/smart-card": "^26.49.0",
58
58
  "@atlaskit/theme": "^12.6.0",
59
- "@atlaskit/tokens": "^1.39.0",
59
+ "@atlaskit/tokens": "^1.41.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@emotion/react": "^11.7.1",
62
62
  "lodash": "^4.17.21",
@@ -115,6 +115,9 @@
115
115
  "platform.linking-platform.enable-datasource-appearance-toolbar": {
116
116
  "type": "boolean"
117
117
  },
118
+ "platform.editor-add-link-preferences-button-to-datasources_xt1sh": {
119
+ "type": "boolean"
120
+ },
118
121
  "platform.editor.card.fix-embed-card-select-all": {
119
122
  "type": "boolean"
120
123
  }