@atlaskit/editor-plugin-card 12.1.1 → 12.1.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,13 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 12.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7080196995b11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7080196995b11) -
8
+ Cleaning up FG platform_editor_ai_generic_prep_for_aifc
9
+ - Updated dependencies
10
+
3
11
  ## 12.1.1
4
12
 
5
13
  ### Patch Changes
@@ -322,11 +322,7 @@ var changeSelectedCardToLinkFallback = exports.changeSelectedCardToLinkFallback
322
322
  })(tr);
323
323
  }
324
324
  if (dispatch) {
325
- if ((0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc')) {
326
- dispatch(tr.setMeta('addToHistory', false));
327
- } else {
328
- dispatch(tr.scrollIntoView());
329
- }
325
+ dispatch(tr.setMeta('addToHistory', false));
330
326
  }
331
327
  return true;
332
328
  };
@@ -551,11 +547,11 @@ var getAttrsForAppearance = exports.getAttrsForAppearance = function getAttrsFor
551
547
  var _selectedNode$attrs$w;
552
548
  return _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
553
549
  layout: 'center'
554
- }, isInsideBodiedSyncBlock
550
+ }, isInsideBodiedSyncBlock ?
555
551
  // When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
556
552
  // For editor, width is not required to render the embed card, but it's required in renderer
557
553
  // Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
558
- ? {
554
+ {
559
555
  width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
560
556
  } : {});
561
557
  }
@@ -83,7 +83,7 @@ var iconStyles = (0, _react2.css)({
83
83
  }
84
84
  });
85
85
  var labelStyles = (0, _react2.css)({
86
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
86
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
87
87
  fontWeight: "var(--ds-font-weight-semibold, 600)",
88
88
  width: 'max-content'
89
89
  });
@@ -294,11 +294,7 @@ export const changeSelectedCardToLinkFallback = (text, href, sendAnalytics, node
294
294
  })(tr);
295
295
  }
296
296
  if (dispatch) {
297
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
298
- dispatch(tr.setMeta('addToHistory', false));
299
- } else {
300
- dispatch(tr.scrollIntoView());
301
- }
297
+ dispatch(tr.setMeta('addToHistory', false));
302
298
  }
303
299
  return true;
304
300
  };
@@ -533,11 +529,11 @@ export const getAttrsForAppearance = (appearance, selectedNode, isInsideBodiedSy
533
529
  return {
534
530
  ...selectedNode.attrs,
535
531
  layout: 'center',
536
- ...(isInsideBodiedSyncBlock
532
+ ...(isInsideBodiedSyncBlock ?
537
533
  // When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
538
534
  // For editor, width is not required to render the embed card, but it's required in renderer
539
535
  // Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
540
- ? {
536
+ {
541
537
  width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
542
538
  } : {})
543
539
  };
@@ -76,7 +76,7 @@ const iconStyles = css({
76
76
  }
77
77
  });
78
78
  const labelStyles = css({
79
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
79
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
80
80
  fontWeight: "var(--ds-font-weight-semibold, 600)",
81
81
  width: 'max-content'
82
82
  });
@@ -316,11 +316,7 @@ export var changeSelectedCardToLinkFallback = function changeSelectedCardToLinkF
316
316
  })(tr);
317
317
  }
318
318
  if (dispatch) {
319
- if (fg('platform_editor_ai_generic_prep_for_aifc')) {
320
- dispatch(tr.setMeta('addToHistory', false));
321
- } else {
322
- dispatch(tr.scrollIntoView());
323
- }
319
+ dispatch(tr.setMeta('addToHistory', false));
324
320
  }
325
321
  return true;
326
322
  };
@@ -545,11 +541,11 @@ export var getAttrsForAppearance = function getAttrsForAppearance(appearance, se
545
541
  var _selectedNode$attrs$w;
546
542
  return _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
547
543
  layout: 'center'
548
- }, isInsideBodiedSyncBlock
544
+ }, isInsideBodiedSyncBlock ?
549
545
  // When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
550
546
  // For editor, width is not required to render the embed card, but it's required in renderer
551
547
  // Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
552
- ? {
548
+ {
553
549
  width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
554
550
  } : {});
555
551
  }
@@ -75,7 +75,7 @@ var iconStyles = css({
75
75
  }
76
76
  });
77
77
  var labelStyles = css({
78
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
78
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
79
79
  fontWeight: "var(--ds-font-weight-semibold, 600)",
80
80
  width: 'max-content'
81
81
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "12.1.1",
3
+ "version": "12.1.2",
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": "^6.0.0",
42
42
  "@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
43
43
  "@atlaskit/editor-plugin-grid": "^7.0.0",
44
- "@atlaskit/editor-plugin-toolbar": "^4.0.0",
44
+ "@atlaskit/editor-plugin-toolbar": "^4.1.0",
45
45
  "@atlaskit/editor-plugin-width": "^8.0.0",
46
46
  "@atlaskit/editor-prosemirror": "^7.2.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.10.0",
@@ -59,10 +59,10 @@
59
59
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
60
60
  "@atlaskit/primitives": "^17.1.0",
61
61
  "@atlaskit/prosemirror-history": "^0.2.0",
62
- "@atlaskit/smart-card": "^43.20.0",
62
+ "@atlaskit/smart-card": "^43.22.0",
63
63
  "@atlaskit/theme": "^21.0.0",
64
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
65
- "@atlaskit/tokens": "^10.0.0",
64
+ "@atlaskit/tmp-editor-statsig": "^16.30.0",
65
+ "@atlaskit/tokens": "^10.1.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
68
68
  "lodash": "^4.17.21",
@@ -127,9 +127,6 @@
127
127
  },
128
128
  "platform_editor_ai_generic_prep_for_aifc_2": {
129
129
  "type": "boolean"
130
- },
131
- "platform_editor_ai_generic_prep_for_aifc": {
132
- "type": "boolean"
133
130
  }
134
131
  },
135
132
  "stricter": {