@atlaskit/editor-plugin-card 12.3.0 → 12.3.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,19 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 12.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7ba3979b92b42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ba3979b92b42) -
8
+ Remove platform_synced_block_dogfooding feature gate
9
+ - Updated dependencies
10
+
11
+ ## 12.3.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 12.3.0
4
18
 
5
19
  ### Minor Changes
@@ -14,7 +14,6 @@ var _card = require("@atlaskit/editor-common/card");
14
14
  var _link = require("@atlaskit/editor-common/link");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
19
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
19
  var _actions = require("./actions");
@@ -398,7 +397,7 @@ var setSelectedCardAppearance = exports.setSelectedCardAppearance = function set
398
397
  if ((0, _utils2.appearanceForNodeType)(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
399
398
  return false;
400
399
  }
401
- var attrs = (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
400
+ var attrs = (0, _experiments.editorExperiment)('platform_synced_block', true) ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
402
401
  var _state$selection = state.selection,
403
402
  from = _state$selection.from,
404
403
  to = _state$selection.to;
@@ -17,7 +17,6 @@ var _react2 = require("@emotion/react");
17
17
  var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _utils = require("@atlaskit/editor-prosemirror/utils");
19
19
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
20
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
20
  var _smartCard = require("@atlaskit/smart-card");
22
21
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
23
22
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -112,7 +111,7 @@ var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Compone
112
111
  bodiedSyncBlock = _this$props$view$stat.bodiedSyncBlock;
113
112
 
114
113
  // Hide resizing guideline when embed is nested
115
- if (_this.$pos && !!(0, _utils.findParentNodeOfTypeClosestToPos)(_this.$pos, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
114
+ if (_this.$pos && !!(0, _utils.findParentNodeOfTypeClosestToPos)(_this.$pos, (0, _experiments.editorExperiment)('platform_synced_block', true) ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
116
115
  return [];
117
116
  }
118
117
  if (snapWidth > _this.wideLayoutWidth) {
@@ -5,7 +5,6 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
5
5
  import { getActiveLinkMark } from '@atlaskit/editor-common/link';
6
6
  import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
7
7
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { closeHistory } from '@atlaskit/prosemirror-history';
10
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
10
  import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
@@ -368,7 +367,7 @@ export const setSelectedCardAppearance = (appearance, editorAnalyticsApi) => (st
368
367
  if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
369
368
  return false;
370
369
  }
371
- const attrs = editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
370
+ const attrs = editorExperiment('platform_synced_block', true) ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
372
371
  const {
373
372
  from,
374
373
  to
@@ -11,7 +11,6 @@ import { jsx } from '@emotion/react';
11
11
  import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns, handleSides, imageAlignmentMap, Resizer, snapTo, wrappedLayouts, wrapperStyle } from '@atlaskit/editor-common/ui';
12
12
  import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
13
13
  import { akEditorBreakoutPadding, akEditorMediaResizeHandlerPadding, akEditorWideLayoutWidth, breakoutWideScaleRatio, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { embedHeaderHeight } from '@atlaskit/smart-card';
16
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
16
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -105,7 +104,7 @@ export default class ResizableEmbedCard extends React.Component {
105
104
  } = this.props.view.state.schema.nodes;
106
105
 
107
106
  // Hide resizing guideline when embed is nested
108
- if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
107
+ if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, editorExperiment('platform_synced_block', true) ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
109
108
  return [];
110
109
  }
111
110
  if (snapWidth > this.wideLayoutWidth) {
@@ -9,7 +9,6 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
9
9
  import { getActiveLinkMark } from '@atlaskit/editor-common/link';
10
10
  import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
11
11
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { closeHistory } from '@atlaskit/prosemirror-history';
14
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
14
  import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
@@ -392,7 +391,7 @@ export var setSelectedCardAppearance = function setSelectedCardAppearance(appear
392
391
  if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
393
392
  return false;
394
393
  }
395
- var attrs = editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
394
+ var attrs = editorExperiment('platform_synced_block', true) ? getAttrsForAppearance(appearance, selectedNode, state.selection.$from.parent.type.name === 'bodiedSyncBlock') : getAttrsForAppearance(appearance, selectedNode);
396
395
  var _state$selection = state.selection,
397
396
  from = _state$selection.from,
398
397
  to = _state$selection.to;
@@ -20,7 +20,6 @@ import { jsx } from '@emotion/react';
20
20
  import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns, handleSides, imageAlignmentMap, Resizer, snapTo, wrappedLayouts, wrapperStyle } from '@atlaskit/editor-common/ui';
21
21
  import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
22
22
  import { akEditorBreakoutPadding, akEditorMediaResizeHandlerPadding, akEditorWideLayoutWidth, breakoutWideScaleRatio, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
23
- import { fg } from '@atlaskit/platform-feature-flags';
24
23
  import { embedHeaderHeight } from '@atlaskit/smart-card';
25
24
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
26
25
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -108,7 +107,7 @@ var ResizableEmbedCard = /*#__PURE__*/function (_React$Component) {
108
107
  bodiedSyncBlock = _this$props$view$stat.bodiedSyncBlock;
109
108
 
110
109
  // Hide resizing guideline when embed is nested
111
- if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
110
+ if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, editorExperiment('platform_synced_block', true) ? [layoutColumn, table, expand, nestedExpand, bodiedSyncBlock] : [layoutColumn, table, expand, nestedExpand])) {
112
111
  return [];
113
112
  }
114
113
  if (snapWidth > _this.wideLayoutWidth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "12.3.0",
3
+ "version": "12.3.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -59,9 +59,9 @@
59
59
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
60
60
  "@atlaskit/primitives": "^18.0.0",
61
61
  "@atlaskit/prosemirror-history": "^0.2.0",
62
- "@atlaskit/smart-card": "^43.23.0",
62
+ "@atlaskit/smart-card": "^43.24.0",
63
63
  "@atlaskit/theme": "^21.0.0",
64
- "@atlaskit/tmp-editor-statsig": "^21.2.0",
64
+ "@atlaskit/tmp-editor-statsig": "^22.1.0",
65
65
  "@atlaskit/tokens": "^11.0.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
@@ -118,9 +118,6 @@
118
118
  },
119
119
  "platform_editor_adf_with_localid": {
120
120
  "type": "boolean"
121
- },
122
- "platform_synced_block_dogfooding": {
123
- "type": "boolean"
124
121
  }
125
122
  },
126
123
  "stricter": {