@atlaskit/editor-plugin-card 6.6.13 → 6.6.15

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,23 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 6.6.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#177081](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177081)
8
+ [`5eaa21607233e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5eaa21607233e) -
9
+ [ux] [ED-28011] Add separator before 'Open link in new tab' button in card toolbar
10
+ - Updated dependencies
11
+
12
+ ## 6.6.14
13
+
14
+ ### Patch Changes
15
+
16
+ - [#175339](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175339)
17
+ [`d4115e4055a0a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4115e4055a0a) -
18
+ ED-28314 Cleanup platform_editor_controls_patch_12
19
+ - Updated dependencies
20
+
3
21
  ## 6.6.13
4
22
 
5
23
  ### Patch Changes
@@ -359,7 +359,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
359
359
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
360
360
  title: intl.formatMessage(_messages.default.remove),
361
361
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
362
- }]) : [].concat(editButtonItems, (0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
362
+ }]) : [].concat(editButtonItems, (0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') ? [].concat((0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
363
+ type: 'separator',
364
+ fullHeight: true
365
+ }]) : getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
363
366
  id: 'editor.link.openLink',
364
367
  type: 'button',
365
368
  icon: _linkExternal.default,
@@ -646,7 +649,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
646
649
 
647
650
  // When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
648
651
  // So only add the link appearance button when canShowAppearanceSwitch is false
649
- if (!canShowAppearanceSwitch() && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_12')) {
652
+ if (!canShowAppearanceSwitch()) {
650
653
  var linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
651
654
  toolbarItems.push({
652
655
  type: 'separator',
@@ -349,7 +349,10 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
349
349
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
350
350
  title: intl.formatMessage(commonMessages.remove),
351
351
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
352
- }] : [...editButtonItems, ...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi), {
352
+ }] : [...editButtonItems, ...(fg('platform_editor_controls_patch_15') ? [...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi), {
353
+ type: 'separator',
354
+ fullHeight: true
355
+ }] : getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), {
353
356
  id: 'editor.link.openLink',
354
357
  type: 'button',
355
358
  icon: LinkExternalIcon,
@@ -633,7 +636,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
633
636
 
634
637
  // When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
635
638
  // So only add the link appearance button when canShowAppearanceSwitch is false
636
- if (!canShowAppearanceSwitch() && fg('platform_editor_controls_patch_12')) {
639
+ if (!canShowAppearanceSwitch()) {
637
640
  const linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
638
641
  toolbarItems.push({
639
642
  type: 'separator',
@@ -350,7 +350,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
350
350
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
351
351
  title: intl.formatMessage(commonMessages.remove),
352
352
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
353
- }]) : [].concat(editButtonItems, _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
353
+ }]) : [].concat(editButtonItems, _toConsumableArray(fg('platform_editor_controls_patch_15') ? [].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
354
+ type: 'separator',
355
+ fullHeight: true
356
+ }]) : getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [{
354
357
  id: 'editor.link.openLink',
355
358
  type: 'button',
356
359
  icon: LinkExternalIcon,
@@ -637,7 +640,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
637
640
 
638
641
  // When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
639
642
  // So only add the link appearance button when canShowAppearanceSwitch is false
640
- if (!canShowAppearanceSwitch() && fg('platform_editor_controls_patch_12')) {
643
+ if (!canShowAppearanceSwitch()) {
641
644
  var linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
642
645
  toolbarItems.push({
643
646
  type: 'separator',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "6.6.13",
3
+ "version": "6.6.15",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -8,7 +8,7 @@
8
8
  "registry": "https://registry.npmjs.org/"
9
9
  },
10
10
  "atlassian": {
11
- "team": "Linking Platform",
11
+ "team": "Editor",
12
12
  "singleton": true,
13
13
  "runReact18": true
14
14
  },
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^11.1.0",
38
38
  "@atlaskit/button": "^23.2.0",
39
39
  "@atlaskit/custom-steps": "^0.11.0",
40
- "@atlaskit/editor-common": "^107.2.0",
40
+ "@atlaskit/editor-common": "^107.3.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
42
42
  "@atlaskit/editor-plugin-base": "^3.0.0",
43
43
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.4.0",
53
53
  "@atlaskit/frontend-utilities": "^3.0.0",
54
- "@atlaskit/icon": "^27.1.0",
54
+ "@atlaskit/icon": "^27.2.0",
55
55
  "@atlaskit/link": "^3.2.0",
56
56
  "@atlaskit/link-analytics": "^10.0.0",
57
57
  "@atlaskit/link-client-extension": "^5.0.0",
@@ -60,10 +60,10 @@
60
60
  "@atlaskit/linking-types": "^13.0.0",
61
61
  "@atlaskit/menu": "^8.0.0",
62
62
  "@atlaskit/platform-feature-flags": "^1.1.0",
63
- "@atlaskit/primitives": "^14.9.0",
64
- "@atlaskit/smart-card": "^38.14.0",
63
+ "@atlaskit/primitives": "^14.10.0",
64
+ "@atlaskit/smart-card": "^38.18.0",
65
65
  "@atlaskit/theme": "^18.0.0",
66
- "@atlaskit/tmp-editor-statsig": "^8.1.0",
66
+ "@atlaskit/tmp-editor-statsig": "^8.5.0",
67
67
  "@atlaskit/tokens": "^5.4.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^3.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/link-provider": "^3.3.0",
76
+ "@atlaskit/link-provider": "^3.4.0",
77
77
  "react": "^18.2.0",
78
78
  "react-intl-next": "npm:react-intl@^5.18.1"
79
79
  },
@@ -126,9 +126,6 @@
126
126
  "platform_ssr_smartlinks_editor": {
127
127
  "type": "boolean"
128
128
  },
129
- "platform_editor_controls_patch_12": {
130
- "type": "boolean"
131
- },
132
129
  "platform_editor_fix_advanced_code_crash": {
133
130
  "type": "boolean"
134
131
  },
@@ -143,6 +140,9 @@
143
140
  },
144
141
  "platform_editor_controls_patch_13": {
145
142
  "type": "boolean"
143
+ },
144
+ "platform_editor_controls_patch_15": {
145
+ "type": "boolean"
146
146
  }
147
147
  },
148
148
  "stricter": {