@atlaskit/editor-plugin-card 0.9.2 → 0.10.1

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,21 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#41921](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41921) [`12d685a4b30`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d685a4b30) - Removed chromeCursorHandlerFixedVersion feature flag
8
+
9
+ ## 0.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#41407](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41407) [`10708446bd2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10708446bd2) - [ux] Added support for passing of new optional url prop to JiraConfigModal
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 0.9.2
4
20
 
5
21
  ### Patch Changes
@@ -56,7 +56,7 @@ function cardKeymap(featureFlags) {
56
56
  var list = {};
57
57
 
58
58
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
59
- if (_utils.browser.chrome && _utils.browser.chrome_version > 90 && featureFlags.chromeCursorHandlerFixedVersion && _utils.browser.chrome_version < featureFlags.chromeCursorHandlerFixedVersion) {
59
+ if (_utils.browser.chrome && _utils.browser.chrome_version > 90) {
60
60
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveUp.common, selectAboveBelowInlineCard('up'), list);
61
61
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveDown.common, selectAboveBelowInlineCard('down'), list);
62
62
  }
@@ -79,6 +79,7 @@ var DatasourceModal = exports.DatasourceModal = function DatasourceModal(_ref) {
79
79
  ,
80
80
  visibleColumnKeys: visibleColumnKeys,
81
81
  parameters: parameters,
82
+ url: existingNode === null || existingNode === void 0 ? void 0 : existingNode.attrs.url,
82
83
  onCancel: onClose,
83
84
  onInsert: onInsert
84
85
  }));
@@ -51,7 +51,7 @@ export function cardKeymap(featureFlags) {
51
51
  const list = {};
52
52
 
53
53
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
54
- if (browser.chrome && browser.chrome_version > 90 && featureFlags.chromeCursorHandlerFixedVersion && browser.chrome_version < featureFlags.chromeCursorHandlerFixedVersion) {
54
+ if (browser.chrome && browser.chrome_version > 90) {
55
55
  bindKeymapWithCommand(moveUp.common, selectAboveBelowInlineCard('up'), list);
56
56
  bindKeymapWithCommand(moveDown.common, selectAboveBelowInlineCard('down'), list);
57
57
  }
@@ -66,6 +66,7 @@ export const DatasourceModal = ({
66
66
  ,
67
67
  visibleColumnKeys: visibleColumnKeys,
68
68
  parameters: parameters,
69
+ url: existingNode === null || existingNode === void 0 ? void 0 : existingNode.attrs.url,
69
70
  onCancel: onClose,
70
71
  onInsert: onInsert
71
72
  }));
@@ -50,7 +50,7 @@ export function cardKeymap(featureFlags) {
50
50
  var list = {};
51
51
 
52
52
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
53
- if (browser.chrome && browser.chrome_version > 90 && featureFlags.chromeCursorHandlerFixedVersion && browser.chrome_version < featureFlags.chromeCursorHandlerFixedVersion) {
53
+ if (browser.chrome && browser.chrome_version > 90) {
54
54
  bindKeymapWithCommand(moveUp.common, selectAboveBelowInlineCard('up'), list);
55
55
  bindKeymapWithCommand(moveDown.common, selectAboveBelowInlineCard('down'), list);
56
56
  }
@@ -69,6 +69,7 @@ export var DatasourceModal = function DatasourceModal(_ref) {
69
69
  ,
70
70
  visibleColumnKeys: visibleColumnKeys,
71
71
  parameters: parameters,
72
+ url: existingNode === null || existingNode === void 0 ? void 0 : existingNode.attrs.url,
72
73
  onCancel: onClose,
73
74
  onInsert: onInsert
74
75
  }));
@@ -1,3 +1,3 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
1
+ import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  export declare function cardKeymap(featureFlags: FeatureFlags): SafePlugin;
@@ -1,3 +1,3 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
1
+ import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
3
  export declare function cardKeymap(featureFlags: FeatureFlags): SafePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.9.2",
3
+ "version": "0.10.1",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/adf-schema": "^32.0.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
36
  "@atlaskit/custom-steps": "^0.0.2",
37
- "@atlaskit/editor-common": "^76.10.0",
37
+ "@atlaskit/editor-common": "^76.13.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^0.2.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
@@ -46,11 +46,11 @@
46
46
  "@atlaskit/editor-shared-styles": "^2.8.0",
47
47
  "@atlaskit/icon": "^21.12.0",
48
48
  "@atlaskit/link-analytics": "^8.3.0",
49
- "@atlaskit/link-datasource": "^1.7.0",
49
+ "@atlaskit/link-datasource": "^1.9.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
51
- "@atlaskit/smart-card": "^26.34.0",
51
+ "@atlaskit/smart-card": "^26.37.0",
52
52
  "@atlaskit/theme": "^12.6.0",
53
- "@atlaskit/tokens": "^1.26.0",
53
+ "@atlaskit/tokens": "^1.28.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@emotion/react": "^11.7.1",
56
56
  "lodash": "^4.17.21",