@atlaskit/editor-plugin-card 13.1.19 → 14.0.0
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`6bdbecda5afa7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6bdbecda5afa7) -
|
|
8
|
+
Clean up editor_fix_embed_width_expand
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 13.1.20
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 13.1.19
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -28,7 +28,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
28
28
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
29
29
|
var _smartCard = require("@atlaskit/smart-card");
|
|
30
30
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
31
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
32
31
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
33
32
|
var _actions = require("../pm-plugins/actions");
|
|
34
33
|
var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
|
|
@@ -224,7 +223,7 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
|
|
|
224
223
|
}
|
|
225
224
|
if (domNode instanceof HTMLElement) {
|
|
226
225
|
var measuredWidth = domNode.offsetWidth;
|
|
227
|
-
if (measuredWidth <= 1
|
|
226
|
+
if (measuredWidth <= 1) {
|
|
228
227
|
_this.scheduleLineLengthRemeasureRaf(view);
|
|
229
228
|
return originalLineLength;
|
|
230
229
|
}
|
|
@@ -16,7 +16,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
16
16
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
17
17
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
18
18
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
19
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
20
|
import { registerCard, removeCard } from '../pm-plugins/actions';
|
|
22
21
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -216,7 +215,7 @@ export class EmbedCardComponent extends React.PureComponent {
|
|
|
216
215
|
}
|
|
217
216
|
if (domNode instanceof HTMLElement) {
|
|
218
217
|
const measuredWidth = domNode.offsetWidth;
|
|
219
|
-
if (measuredWidth <= 1
|
|
218
|
+
if (measuredWidth <= 1) {
|
|
220
219
|
this.scheduleLineLengthRemeasureRaf(view);
|
|
221
220
|
return originalLineLength;
|
|
222
221
|
}
|
|
@@ -27,7 +27,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
27
27
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
28
28
|
import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
|
|
29
29
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
30
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
30
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
32
31
|
import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
|
|
33
32
|
import ResizableEmbedCard from '../ui/ResizableEmbedCard';
|
|
@@ -218,7 +217,7 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
218
217
|
}
|
|
219
218
|
if (domNode instanceof HTMLElement) {
|
|
220
219
|
var measuredWidth = domNode.offsetWidth;
|
|
221
|
-
if (measuredWidth <= 1
|
|
220
|
+
if (measuredWidth <= 1) {
|
|
222
221
|
_this.scheduleLineLengthRemeasureRaf(view);
|
|
223
222
|
return originalLineLength;
|
|
224
223
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@atlaskit/primitives": "^18.1.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
63
|
"@atlaskit/smart-card": "^43.31.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
-
"@atlaskit/tokens": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^56.0.0",
|
|
65
|
+
"@atlaskit/tokens": "^12.0.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"lodash": "^4.17.21",
|