@atlaskit/editor-plugin-card 14.1.0 → 14.1.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 +9 -0
- package/dist/cjs/nodeviews/blockCard.js +1 -2
- package/dist/cjs/pm-plugins/keymap.js +1 -2
- package/dist/es2019/nodeviews/blockCard.js +2 -3
- package/dist/es2019/pm-plugins/keymap.js +2 -3
- package/dist/esm/nodeviews/blockCard.js +2 -3
- package/dist/esm/pm-plugins/keymap.js +2 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 14.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 14.1.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -23,7 +23,6 @@ var _editorSmartLinkDraggable = require("@atlaskit/editor-smart-link-draggable")
|
|
|
23
23
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
24
|
var _smartCard = require("@atlaskit/smart-card");
|
|
25
25
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
26
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
26
|
var _datasource = require("../nodeviews/datasource");
|
|
28
27
|
var _actions = require("../pm-plugins/actions");
|
|
29
28
|
var _utils2 = require("../pm-plugins/utils");
|
|
@@ -66,7 +65,7 @@ var BlockCardComponent = exports.BlockCardComponent = /*#__PURE__*/function (_Re
|
|
|
66
65
|
});
|
|
67
66
|
(0, _defineProperty2.default)(_this, "removeCardDispatched", false);
|
|
68
67
|
(0, _defineProperty2.default)(_this, "gapCursorSpan", function () {
|
|
69
|
-
var browser = (0,
|
|
68
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
70
69
|
// Don't render in EdgeHTMl version <= 18 (Edge version 44)
|
|
71
70
|
// as it forces the edit popup to render 24px lower than it should
|
|
72
71
|
if (browser.ie && browser.ie_version < 79) {
|
|
@@ -9,7 +9,6 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
9
9
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var lookupPixel = 10;
|
|
14
13
|
var getClosestInlineCardPos = function getClosestInlineCardPos(state, editorView, direction) {
|
|
15
14
|
var _editorView$posAtCoor;
|
|
@@ -55,7 +54,7 @@ var selectAboveBelowInlineCard = function selectAboveBelowInlineCard(direction)
|
|
|
55
54
|
};
|
|
56
55
|
function cardKeymap(featureFlags) {
|
|
57
56
|
var list = {};
|
|
58
|
-
var browser = (0,
|
|
57
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
59
58
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
|
|
60
59
|
if (browser.chrome && browser.chrome_version > 90) {
|
|
61
60
|
// Ignored via go/ees005
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import rafSchedule from 'raf-schd';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
5
|
import uuid from 'uuid/v4';
|
|
6
|
-
import {
|
|
6
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
7
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
8
8
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
@@ -11,7 +11,6 @@ import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from
|
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
13
13
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
14
|
import { Datasource } from '../nodeviews/datasource';
|
|
16
15
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
17
16
|
import { isDatasourceNode } from '../pm-plugins/utils';
|
|
@@ -53,7 +52,7 @@ export class BlockCardComponent extends React.PureComponent {
|
|
|
53
52
|
});
|
|
54
53
|
_defineProperty(this, "removeCardDispatched", false);
|
|
55
54
|
_defineProperty(this, "gapCursorSpan", () => {
|
|
56
|
-
const browser =
|
|
55
|
+
const browser = getBrowserInfo();
|
|
57
56
|
// Don't render in EdgeHTMl version <= 18 (Edge version 44)
|
|
58
57
|
// as it forces the edit popup to render 24px lower than it should
|
|
59
58
|
if (browser.ie && browser.ie_version < 79) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { bindKeymapWithCommand, moveDown, moveUp } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { findChildren, flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
const lookupPixel = 10;
|
|
8
7
|
const getClosestInlineCardPos = (state, editorView, direction) => {
|
|
9
8
|
var _editorView$posAtCoor;
|
|
@@ -50,7 +49,7 @@ const selectAboveBelowInlineCard = direction => {
|
|
|
50
49
|
};
|
|
51
50
|
export function cardKeymap(featureFlags) {
|
|
52
51
|
const list = {};
|
|
53
|
-
const browser =
|
|
52
|
+
const browser = getBrowserInfo();
|
|
54
53
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
|
|
55
54
|
if (browser.chrome && browser.chrome_version > 90) {
|
|
56
55
|
// Ignored via go/ees005
|
|
@@ -12,7 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import rafSchedule from 'raf-schd';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
14
|
import uuid from 'uuid/v4';
|
|
15
|
-
import {
|
|
15
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
16
16
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
17
17
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
@@ -20,7 +20,6 @@ import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from
|
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
21
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
22
22
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
23
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
23
|
import { Datasource } from '../nodeviews/datasource';
|
|
25
24
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
26
25
|
import { isDatasourceNode } from '../pm-plugins/utils';
|
|
@@ -61,7 +60,7 @@ export var BlockCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
61
60
|
});
|
|
62
61
|
_defineProperty(_this, "removeCardDispatched", false);
|
|
63
62
|
_defineProperty(_this, "gapCursorSpan", function () {
|
|
64
|
-
var browser =
|
|
63
|
+
var browser = getBrowserInfo();
|
|
65
64
|
// Don't render in EdgeHTMl version <= 18 (Edge version 44)
|
|
66
65
|
// as it forces the edit popup to render 24px lower than it should
|
|
67
66
|
if (browser.ie && browser.ie_version < 79) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { bindKeymapWithCommand, moveDown, moveUp } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { findChildren, flatten } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
var lookupPixel = 10;
|
|
8
7
|
var getClosestInlineCardPos = function getClosestInlineCardPos(state, editorView, direction) {
|
|
9
8
|
var _editorView$posAtCoor;
|
|
@@ -49,7 +48,7 @@ var selectAboveBelowInlineCard = function selectAboveBelowInlineCard(direction)
|
|
|
49
48
|
};
|
|
50
49
|
export function cardKeymap(featureFlags) {
|
|
51
50
|
var list = {};
|
|
52
|
-
var browser =
|
|
51
|
+
var browser = getBrowserInfo();
|
|
53
52
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1227468 introduced since Chrome 91
|
|
54
53
|
if (browser.chrome && browser.chrome_version > 90) {
|
|
55
54
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/editor-smart-link-draggable": "^0.5.0",
|
|
49
49
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
50
|
-
"@atlaskit/icon": "^34.
|
|
50
|
+
"@atlaskit/icon": "^34.1.0",
|
|
51
51
|
"@atlaskit/link": "^3.4.0",
|
|
52
52
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
53
53
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/primitives": "^19.0.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
63
|
"@atlaskit/smart-card": "^44.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
65
65
|
"@atlaskit/tokens": "^13.0.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^112.
|
|
74
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.3.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|