@atlaskit/editor-plugin-card 6.6.12 → 6.6.13

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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 6.6.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.6.12
4
10
 
5
11
  ### Patch Changes
@@ -14,7 +14,6 @@ var _card = require("@atlaskit/editor-common/card");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
16
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _compiled = require("@atlaskit/primitives/compiled");
19
18
  var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
20
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -148,7 +147,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
148
147
  return null;
149
148
  }
150
149
  var dispatchCommand = function dispatchCommand(fn) {
151
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? editorView : undefined);
150
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
152
151
  // Refocus the view to ensure the editor has focus
153
152
  if (editorView && !editorView.hasFocus()) {
154
153
  editorView.focus();
@@ -298,7 +298,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
298
298
  type: 'separator'
299
299
  }] : [];
300
300
  var openLinkInputMethod = _analytics.INPUT_METHOD.FLOATING_TB;
301
- var editButtonItems = cardOptions.allowDatasource && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? [{
301
+ var editButtonItems = cardOptions.allowDatasource ? [{
302
302
  type: 'custom',
303
303
  fallback: [],
304
304
  render: function render(editorView) {
@@ -3,7 +3,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
3
3
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
4
4
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
5
5
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { Flex } from '@atlaskit/primitives/compiled';
8
7
  import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
9
8
  const CustomHyperlinkDropdown = props => {
@@ -69,7 +68,7 @@ const CustomHyperlinkDropdown = props => {
69
68
  return null;
70
69
  }
71
70
  const dispatchCommand = fn => {
72
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
71
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
73
72
  // Refocus the view to ensure the editor has focus
74
73
  if (editorView && !editorView.hasFocus()) {
75
74
  editorView.focus();
@@ -290,7 +290,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
290
290
  type: 'separator'
291
291
  }] : [];
292
292
  const openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
293
- const editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
293
+ const editButtonItems = cardOptions.allowDatasource ? [{
294
294
  type: 'custom',
295
295
  fallback: [],
296
296
  render: editorView => /*#__PURE__*/React.createElement(EditToolbarButton, {
@@ -6,7 +6,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
6
6
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
7
7
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
8
8
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Flex } from '@atlaskit/primitives/compiled';
11
10
  import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
12
11
  var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
@@ -139,7 +138,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
139
138
  return null;
140
139
  }
141
140
  var dispatchCommand = function dispatchCommand(fn) {
142
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
141
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
143
142
  // Refocus the view to ensure the editor has focus
144
143
  if (editorView && !editorView.hasFocus()) {
145
144
  editorView.focus();
@@ -289,7 +289,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
289
289
  type: 'separator'
290
290
  }] : [];
291
291
  var openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
292
- var editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
292
+ var editButtonItems = cardOptions.allowDatasource ? [{
293
293
  type: 'custom',
294
294
  fallback: [],
295
295
  render: function render(editorView) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "6.6.12",
3
+ "version": "6.6.13",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -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.1.0",
40
+ "@atlaskit/editor-common": "^107.2.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",
@@ -57,13 +57,13 @@
57
57
  "@atlaskit/link-client-extension": "^5.0.0",
58
58
  "@atlaskit/link-datasource": "^4.11.0",
59
59
  "@atlaskit/linking-common": "^9.1.0",
60
- "@atlaskit/linking-types": "^12.1.0",
60
+ "@atlaskit/linking-types": "^13.0.0",
61
61
  "@atlaskit/menu": "^8.0.0",
62
62
  "@atlaskit/platform-feature-flags": "^1.1.0",
63
63
  "@atlaskit/primitives": "^14.9.0",
64
- "@atlaskit/smart-card": "^38.13.0",
64
+ "@atlaskit/smart-card": "^38.14.0",
65
65
  "@atlaskit/theme": "^18.0.0",
66
- "@atlaskit/tmp-editor-statsig": "^8.0.0",
66
+ "@atlaskit/tmp-editor-statsig": "^8.1.0",
67
67
  "@atlaskit/tokens": "^5.4.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -126,9 +126,6 @@
126
126
  "platform_ssr_smartlinks_editor": {
127
127
  "type": "boolean"
128
128
  },
129
- "platform_editor_controls_patch_9": {
130
- "type": "boolean"
131
- },
132
129
  "platform_editor_controls_patch_12": {
133
130
  "type": "boolean"
134
131
  },