@atlaskit/editor-plugin-card 12.1.1 → 12.1.3
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 +14 -0
- package/dist/cjs/pm-plugins/doc.js +3 -7
- package/dist/cjs/ui/InlineCardOverlay/index.js +1 -1
- package/dist/es2019/pm-plugins/doc.js +3 -7
- package/dist/es2019/ui/InlineCardOverlay/index.js +1 -1
- package/dist/esm/pm-plugins/doc.js +3 -7
- package/dist/esm/ui/InlineCardOverlay/index.js +1 -1
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 12.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`7080196995b11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7080196995b11) -
|
|
14
|
+
Cleaning up FG platform_editor_ai_generic_prep_for_aifc
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 12.1.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -322,11 +322,7 @@ var changeSelectedCardToLinkFallback = exports.changeSelectedCardToLinkFallback
|
|
|
322
322
|
})(tr);
|
|
323
323
|
}
|
|
324
324
|
if (dispatch) {
|
|
325
|
-
|
|
326
|
-
dispatch(tr.setMeta('addToHistory', false));
|
|
327
|
-
} else {
|
|
328
|
-
dispatch(tr.scrollIntoView());
|
|
329
|
-
}
|
|
325
|
+
dispatch(tr.setMeta('addToHistory', false));
|
|
330
326
|
}
|
|
331
327
|
return true;
|
|
332
328
|
};
|
|
@@ -551,11 +547,11 @@ var getAttrsForAppearance = exports.getAttrsForAppearance = function getAttrsFor
|
|
|
551
547
|
var _selectedNode$attrs$w;
|
|
552
548
|
return _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
|
|
553
549
|
layout: 'center'
|
|
554
|
-
}, isInsideBodiedSyncBlock
|
|
550
|
+
}, isInsideBodiedSyncBlock ?
|
|
555
551
|
// When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
|
|
556
552
|
// For editor, width is not required to render the embed card, but it's required in renderer
|
|
557
553
|
// Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
|
|
558
|
-
|
|
554
|
+
{
|
|
559
555
|
width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
|
|
560
556
|
} : {});
|
|
561
557
|
}
|
|
@@ -83,7 +83,7 @@ var iconStyles = (0, _react2.css)({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
var labelStyles = (0, _react2.css)({
|
|
86
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
86
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
87
87
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
88
88
|
width: 'max-content'
|
|
89
89
|
});
|
|
@@ -294,11 +294,7 @@ export const changeSelectedCardToLinkFallback = (text, href, sendAnalytics, node
|
|
|
294
294
|
})(tr);
|
|
295
295
|
}
|
|
296
296
|
if (dispatch) {
|
|
297
|
-
|
|
298
|
-
dispatch(tr.setMeta('addToHistory', false));
|
|
299
|
-
} else {
|
|
300
|
-
dispatch(tr.scrollIntoView());
|
|
301
|
-
}
|
|
297
|
+
dispatch(tr.setMeta('addToHistory', false));
|
|
302
298
|
}
|
|
303
299
|
return true;
|
|
304
300
|
};
|
|
@@ -533,11 +529,11 @@ export const getAttrsForAppearance = (appearance, selectedNode, isInsideBodiedSy
|
|
|
533
529
|
return {
|
|
534
530
|
...selectedNode.attrs,
|
|
535
531
|
layout: 'center',
|
|
536
|
-
...(isInsideBodiedSyncBlock
|
|
532
|
+
...(isInsideBodiedSyncBlock ?
|
|
537
533
|
// When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
|
|
538
534
|
// For editor, width is not required to render the embed card, but it's required in renderer
|
|
539
535
|
// Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
|
|
540
|
-
|
|
536
|
+
{
|
|
541
537
|
width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
|
|
542
538
|
} : {})
|
|
543
539
|
};
|
|
@@ -76,7 +76,7 @@ const iconStyles = css({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
const labelStyles = css({
|
|
79
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
79
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
80
80
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
81
81
|
width: 'max-content'
|
|
82
82
|
});
|
|
@@ -316,11 +316,7 @@ export var changeSelectedCardToLinkFallback = function changeSelectedCardToLinkF
|
|
|
316
316
|
})(tr);
|
|
317
317
|
}
|
|
318
318
|
if (dispatch) {
|
|
319
|
-
|
|
320
|
-
dispatch(tr.setMeta('addToHistory', false));
|
|
321
|
-
} else {
|
|
322
|
-
dispatch(tr.scrollIntoView());
|
|
323
|
-
}
|
|
319
|
+
dispatch(tr.setMeta('addToHistory', false));
|
|
324
320
|
}
|
|
325
321
|
return true;
|
|
326
322
|
};
|
|
@@ -545,11 +541,11 @@ export var getAttrsForAppearance = function getAttrsForAppearance(appearance, se
|
|
|
545
541
|
var _selectedNode$attrs$w;
|
|
546
542
|
return _objectSpread(_objectSpread({}, selectedNode.attrs), {}, {
|
|
547
543
|
layout: 'center'
|
|
548
|
-
}, isInsideBodiedSyncBlock
|
|
544
|
+
}, isInsideBodiedSyncBlock ?
|
|
549
545
|
// When converting to embed, width attribute is set to null and when the document is published, the width attribute is set to 100 as per schema default
|
|
550
546
|
// For editor, width is not required to render the embed card, but it's required in renderer
|
|
551
547
|
// Because sync block has nested renderer in editor, we need width to be defined even in editor so embed in reference sync block can be rendered properly
|
|
552
|
-
|
|
548
|
+
{
|
|
553
549
|
width: (_selectedNode$attrs$w = selectedNode.attrs.width) !== null && _selectedNode$attrs$w !== void 0 ? _selectedNode$attrs$w : 100
|
|
554
550
|
} : {});
|
|
555
551
|
}
|
|
@@ -75,7 +75,7 @@ var iconStyles = css({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
var labelStyles = css({
|
|
78
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
78
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
79
79
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
80
80
|
width: 'max-content'
|
|
81
81
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.3",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-feature-flags": "^6.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-grid": "^7.0.0",
|
|
44
|
-
"@atlaskit/editor-plugin-toolbar": "^4.
|
|
44
|
+
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-width": "^8.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
49
|
-
"@atlaskit/icon": "^
|
|
49
|
+
"@atlaskit/icon": "^30.0.0",
|
|
50
50
|
"@atlaskit/link": "^3.3.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
60
60
|
"@atlaskit/primitives": "^17.1.0",
|
|
61
61
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
62
|
-
"@atlaskit/smart-card": "^43.
|
|
62
|
+
"@atlaskit/smart-card": "^43.22.0",
|
|
63
63
|
"@atlaskit/theme": "^21.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
65
|
-
"@atlaskit/tokens": "^10.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
65
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"lodash": "^4.17.21",
|
|
@@ -127,9 +127,6 @@
|
|
|
127
127
|
},
|
|
128
128
|
"platform_editor_ai_generic_prep_for_aifc_2": {
|
|
129
129
|
"type": "boolean"
|
|
130
|
-
},
|
|
131
|
-
"platform_editor_ai_generic_prep_for_aifc": {
|
|
132
|
-
"type": "boolean"
|
|
133
130
|
}
|
|
134
131
|
},
|
|
135
132
|
"stricter": {
|