@atlaskit/editor-plugin-card 5.2.3 → 5.3.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 +14 -0
- package/dist/cjs/nodeviews/embedCard.js +0 -1
- package/dist/cjs/nodeviews/genericCard.js +2 -0
- package/dist/cjs/nodeviews/toDOM-fixes/blockCard.js +0 -4
- package/dist/cjs/nodeviews/toDOM-fixes/embedCard.js +0 -4
- package/dist/cjs/nodeviews/toDOM-fixes/inlineCard.js +1 -2
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/cjs/ui/OpenButtonOverlay/index.js +1 -1
- package/dist/es2019/nodeviews/embedCard.js +0 -1
- package/dist/es2019/nodeviews/genericCard.js +2 -0
- package/dist/es2019/nodeviews/toDOM-fixes/blockCard.js +0 -4
- package/dist/es2019/nodeviews/toDOM-fixes/embedCard.js +0 -4
- package/dist/es2019/nodeviews/toDOM-fixes/inlineCard.js +1 -2
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/es2019/ui/OpenButtonOverlay/index.js +1 -1
- package/dist/esm/nodeviews/embedCard.js +0 -1
- package/dist/esm/nodeviews/genericCard.js +2 -0
- package/dist/esm/nodeviews/toDOM-fixes/blockCard.js +0 -4
- package/dist/esm/nodeviews/toDOM-fixes/embedCard.js +0 -4
- package/dist/esm/nodeviews/toDOM-fixes/inlineCard.js +1 -2
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/esm/ui/OpenButtonOverlay/index.js +1 -1
- package/dist/types/nodeviews/toDOM-fixes/blockCard.d.ts +24 -1
- package/dist/types/nodeviews/toDOM-fixes/embedCard.d.ts +24 -1
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/blockCard.d.ts +24 -1
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/embedCard.d.ts +24 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 5.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#124727](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124727)
|
|
8
|
+
[`453158fbcf813`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/453158fbcf813) -
|
|
9
|
+
Removed lazy node view experiment from toDOM fix
|
|
10
|
+
|
|
11
|
+
## 5.2.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.2.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -215,7 +215,6 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
|
|
|
215
215
|
(0, _defineProperty2.default)(_this, "saveOriginalDimensionsAttributes", function (height, width) {
|
|
216
216
|
var view = _this.props.view;
|
|
217
217
|
|
|
218
|
-
// TODO: ED-15663
|
|
219
218
|
// Please, do not copy or use this kind of code below
|
|
220
219
|
// @ts-ignore
|
|
221
220
|
var fakeTableResizePluginKey = {
|
|
@@ -46,6 +46,8 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
46
46
|
}
|
|
47
47
|
}, [url, onClickCallback]);
|
|
48
48
|
if ((0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages')) {
|
|
49
|
+
// Ignored via go/ees007
|
|
50
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
49
51
|
/**
|
|
50
52
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
51
53
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -9,14 +9,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
14
|
// @nodeSpecException:toDOM patch
|
|
16
15
|
var blockCardSpecWithFixedToDOM = exports.blockCardSpecWithFixedToDOM = function blockCardSpecWithFixedToDOM() {
|
|
17
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
18
|
-
return _adfSchema.blockCard;
|
|
19
|
-
}
|
|
20
16
|
return _objectSpread(_objectSpread({}, _adfSchema.blockCard), {}, {
|
|
21
17
|
toDOM: function toDOM(node) {
|
|
22
18
|
var _node$attrs;
|
|
@@ -10,7 +10,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
16
15
|
* Some of these functions and styling are duplicated from their custom node view equivalents
|
|
@@ -62,9 +61,6 @@ var LINE_LENGTH = 760;
|
|
|
62
61
|
|
|
63
62
|
// @nodeSpecException:toDOM patch
|
|
64
63
|
var embedCardSpecWithFixedToDOM = exports.embedCardSpecWithFixedToDOM = function embedCardSpecWithFixedToDOM() {
|
|
65
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
66
|
-
return _adfSchema.embedCard;
|
|
67
|
-
}
|
|
68
64
|
return _objectSpread(_objectSpread({}, _adfSchema.embedCard), {}, {
|
|
69
65
|
toDOM: function toDOM(node) {
|
|
70
66
|
var _node$attrs = node.attrs,
|
|
@@ -10,12 +10,11 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
15
|
// @nodeSpecException:toDOM patch
|
|
17
16
|
var inlineCardSpecWithFixedToDOM = exports.inlineCardSpecWithFixedToDOM = function inlineCardSpecWithFixedToDOM() {
|
|
18
|
-
if (
|
|
17
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_ssr_fix_smartlinks')) {
|
|
19
18
|
return _adfSchema.inlineCard;
|
|
20
19
|
}
|
|
21
20
|
return _objectSpread(_objectSpread({}, _adfSchema.inlineCard), {}, {
|
|
@@ -98,7 +98,7 @@ var LinkAppearanceMenu = exports.LinkAppearanceMenu = function LinkAppearanceMen
|
|
|
98
98
|
Icon = settingsConfig.icon;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
101
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
102
102
|
// this implementation doesn't
|
|
103
103
|
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(_menu.Section, null, finalOptions.map(function (option) {
|
|
104
104
|
return /*#__PURE__*/_react.default.createElement(_menu.ButtonItem, {
|
|
@@ -48,7 +48,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
48
48
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
49
49
|
url = _ref.url,
|
|
50
50
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
51
|
-
// TODO add translation
|
|
51
|
+
// TODO: ED-26961 - add translation
|
|
52
52
|
var label = 'Open';
|
|
53
53
|
var handleDoubleClick = function handleDoubleClick() {
|
|
54
54
|
// Double click opens the link in a new tab
|
|
@@ -31,6 +31,8 @@ const WithClickHandler = ({
|
|
|
31
31
|
}
|
|
32
32
|
}, [url, onClickCallback]);
|
|
33
33
|
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
34
|
+
// Ignored via go/ees007
|
|
35
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
34
36
|
/**
|
|
35
37
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
36
38
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { blockCard } from '@atlaskit/adf-schema';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { B400 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
// @nodeSpecException:toDOM patch
|
|
6
5
|
export const blockCardSpecWithFixedToDOM = () => {
|
|
7
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
|
-
return blockCard;
|
|
9
|
-
}
|
|
10
6
|
return {
|
|
11
7
|
...blockCard,
|
|
12
8
|
toDOM: node => {
|
|
@@ -12,7 +12,6 @@ import { embedCard } from '@atlaskit/adf-schema';
|
|
|
12
12
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
13
13
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import { B400 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
// From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
|
|
17
16
|
function calcMargin(layout) {
|
|
18
17
|
switch (layout) {
|
|
@@ -53,9 +52,6 @@ const LINE_LENGTH = 760;
|
|
|
53
52
|
|
|
54
53
|
// @nodeSpecException:toDOM patch
|
|
55
54
|
export const embedCardSpecWithFixedToDOM = () => {
|
|
56
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
57
|
-
return embedCard;
|
|
58
|
-
}
|
|
59
55
|
return {
|
|
60
56
|
...embedCard,
|
|
61
57
|
toDOM: node => {
|
|
@@ -2,10 +2,9 @@ import { inlineCard } from '@atlaskit/adf-schema';
|
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { B400 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
// @nodeSpecException:toDOM patch
|
|
7
6
|
export const inlineCardSpecWithFixedToDOM = () => {
|
|
8
|
-
if (
|
|
7
|
+
if (!fg('platform_editor_ssr_fix_smartlinks')) {
|
|
9
8
|
return inlineCard;
|
|
10
9
|
}
|
|
11
10
|
return {
|
|
@@ -84,7 +84,7 @@ export const LinkAppearanceMenu = ({
|
|
|
84
84
|
Icon = settingsConfig.icon;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
87
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
88
88
|
// this implementation doesn't
|
|
89
89
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(option => {
|
|
90
90
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
@@ -208,7 +208,6 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
208
208
|
_defineProperty(_this, "saveOriginalDimensionsAttributes", function (height, width) {
|
|
209
209
|
var view = _this.props.view;
|
|
210
210
|
|
|
211
|
-
// TODO: ED-15663
|
|
212
211
|
// Please, do not copy or use this kind of code below
|
|
213
212
|
// @ts-ignore
|
|
214
213
|
var fakeTableResizePluginKey = {
|
|
@@ -36,6 +36,8 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
36
36
|
}
|
|
37
37
|
}, [url, onClickCallback]);
|
|
38
38
|
if (fg('linking_platform_smart_links_in_live_pages')) {
|
|
39
|
+
// Ignored via go/ees007
|
|
40
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
39
41
|
/**
|
|
40
42
|
* @todo: Add a check to determine if we're currently in a live page once ED-23920 and plugin
|
|
41
43
|
* is complete. The logic for which should allow navigation if we're in a live page and no callback
|
|
@@ -4,12 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { blockCard } from '@atlaskit/adf-schema';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { B400 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
// @nodeSpecException:toDOM patch
|
|
9
8
|
export var blockCardSpecWithFixedToDOM = function blockCardSpecWithFixedToDOM() {
|
|
10
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
11
|
-
return blockCard;
|
|
12
|
-
}
|
|
13
9
|
return _objectSpread(_objectSpread({}, blockCard), {}, {
|
|
14
10
|
toDOM: function toDOM(node) {
|
|
15
11
|
var _node$attrs;
|
|
@@ -15,7 +15,6 @@ import { embedCard } from '@atlaskit/adf-schema';
|
|
|
15
15
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
16
16
|
import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
17
17
|
import { B400 } from '@atlaskit/theme/colors';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
// From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
|
|
20
19
|
function calcMargin(layout) {
|
|
21
20
|
switch (layout) {
|
|
@@ -56,9 +55,6 @@ var LINE_LENGTH = 760;
|
|
|
56
55
|
|
|
57
56
|
// @nodeSpecException:toDOM patch
|
|
58
57
|
export var embedCardSpecWithFixedToDOM = function embedCardSpecWithFixedToDOM() {
|
|
59
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
60
|
-
return embedCard;
|
|
61
|
-
}
|
|
62
58
|
return _objectSpread(_objectSpread({}, embedCard), {}, {
|
|
63
59
|
toDOM: function toDOM(node) {
|
|
64
60
|
var _node$attrs = node.attrs,
|
|
@@ -5,10 +5,9 @@ import { inlineCard } from '@atlaskit/adf-schema';
|
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { B400 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
// @nodeSpecException:toDOM patch
|
|
10
9
|
export var inlineCardSpecWithFixedToDOM = function inlineCardSpecWithFixedToDOM() {
|
|
11
|
-
if (
|
|
10
|
+
if (!fg('platform_editor_ssr_fix_smartlinks')) {
|
|
12
11
|
return inlineCard;
|
|
13
12
|
}
|
|
14
13
|
return _objectSpread(_objectSpread({}, inlineCard), {}, {
|
|
@@ -91,7 +91,7 @@ export var LinkAppearanceMenu = function LinkAppearanceMenu(_ref) {
|
|
|
91
91
|
Icon = settingsConfig.icon;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// TODO: packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
94
|
+
// TODO: ED-26961 - packages/editor/editor-plugin-card/src/ui/LinkToolbarAppearance.tsx supports change boarding via pulse
|
|
95
95
|
// this implementation doesn't
|
|
96
96
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(function (option) {
|
|
97
97
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
@@ -41,7 +41,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
|
|
|
41
41
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
42
42
|
url = _ref.url,
|
|
43
43
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
// TODO add translation
|
|
44
|
+
// TODO: ED-26961 - add translation
|
|
45
45
|
var label = 'Open';
|
|
46
46
|
var handleDoubleClick = function handleDoubleClick() {
|
|
47
47
|
// Double click opens the link in a new tab
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const blockCardSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const embedCardSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const blockCardSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const embedCardSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
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.0.0",
|
|
38
38
|
"@atlaskit/button": "^21.1.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^102.
|
|
40
|
+
"@atlaskit/editor-common": "^102.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
48
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^3.
|
|
48
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^3.2.0",
|
|
49
49
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
54
|
-
"@atlaskit/icon": "^
|
|
55
|
-
"@atlaskit/link-analytics": "^9.
|
|
54
|
+
"@atlaskit/icon": "^25.0.0",
|
|
55
|
+
"@atlaskit/link-analytics": "^9.1.0",
|
|
56
56
|
"@atlaskit/link-client-extension": "^4.0.0",
|
|
57
57
|
"@atlaskit/link-datasource": "^3.22.0",
|
|
58
58
|
"@atlaskit/linking-common": "^8.0.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/primitives": "^14.1.0",
|
|
63
63
|
"@atlaskit/smart-card": "^35.2.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
66
|
-
"@atlaskit/tokens": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^3.6.0",
|
|
66
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|