@atlaskit/editor-plugin-card 2.6.4 → 2.6.5
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 +10 -0
- package/dist/cjs/nodeviews/datasource.js +4 -1
- package/dist/cjs/pm-plugins/doc.js +15 -5
- package/dist/cjs/ui/AwarenessWrapper/index.js +4 -1
- package/dist/cjs/ui/ConfigureOverlay/index.js +4 -1
- package/dist/cjs/ui/DatasourceAppearanceButton.js +4 -1
- package/dist/cjs/ui/EditDatasourceButton.js +4 -1
- package/dist/cjs/ui/EditToolbarButton/EditToolbarButtonPresentation.js +4 -1
- package/dist/cjs/ui/EditToolbarButton/index.js +4 -1
- package/dist/cjs/ui/InlineCardOverlay/index.js +4 -1
- package/dist/cjs/ui/LayoutButton/index.js +4 -1
- package/dist/cjs/ui/ResizableEmbedCard.js +4 -1
- package/dist/cjs/ui/useFetchDatasourceDataInfo.js +4 -1
- package/dist/cjs/ui/useFetchDatasourceInfo.js +4 -1
- package/dist/es2019/nodeviews/datasource.js +4 -1
- package/dist/es2019/pm-plugins/doc.js +17 -7
- package/dist/es2019/ui/AwarenessWrapper/index.js +4 -1
- package/dist/es2019/ui/ConfigureOverlay/index.js +4 -1
- package/dist/es2019/ui/DatasourceAppearanceButton.js +4 -1
- package/dist/es2019/ui/EditDatasourceButton.js +4 -1
- package/dist/es2019/ui/EditToolbarButton/EditToolbarButtonPresentation.js +4 -1
- package/dist/es2019/ui/EditToolbarButton/index.js +4 -1
- package/dist/es2019/ui/InlineCardOverlay/index.js +4 -1
- package/dist/es2019/ui/LayoutButton/index.js +4 -1
- package/dist/es2019/ui/ResizableEmbedCard.js +4 -1
- package/dist/es2019/ui/useFetchDatasourceDataInfo.js +4 -1
- package/dist/es2019/ui/useFetchDatasourceInfo.js +4 -1
- package/dist/esm/nodeviews/datasource.js +4 -1
- package/dist/esm/pm-plugins/doc.js +17 -7
- package/dist/esm/ui/AwarenessWrapper/index.js +4 -1
- package/dist/esm/ui/ConfigureOverlay/index.js +4 -1
- package/dist/esm/ui/DatasourceAppearanceButton.js +4 -1
- package/dist/esm/ui/EditDatasourceButton.js +4 -1
- package/dist/esm/ui/EditToolbarButton/EditToolbarButtonPresentation.js +4 -1
- package/dist/esm/ui/EditToolbarButton/index.js +4 -1
- package/dist/esm/ui/InlineCardOverlay/index.js +4 -1
- package/dist/esm/ui/LayoutButton/index.js +4 -1
- package/dist/esm/ui/ResizableEmbedCard.js +4 -1
- package/dist/esm/ui/useFetchDatasourceDataInfo.js +4 -1
- package/dist/esm/ui/useFetchDatasourceInfo.js +4 -1
- package/dist/types/nodeviews/datasource.d.ts +4 -1
- package/dist/types/ui/InlineCardOverlay/index.d.ts +4 -1
- package/dist/types/ui/ResizableEmbedCard.d.ts +4 -1
- package/dist/types-ts4.5/nodeviews/datasource.d.ts +4 -1
- package/dist/types-ts4.5/ui/InlineCardOverlay/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/ResizableEmbedCard.d.ts +4 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 2.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122612)
|
|
8
|
+
[`01a85ce0a88ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01a85ce0a88ec) -
|
|
9
|
+
[ux] ED-23705 Add logic to handle annotations on inline nodes when they are inserted or pasted.
|
|
10
|
+
Covers the following inline nodes: emoji, status, mention, date, inlineCard
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 2.6.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -29,7 +29,10 @@ var _EditorAnalyticsContext = require("../ui/EditorAnalyticsContext");
|
|
|
29
29
|
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; }
|
|
30
30
|
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; }
|
|
31
31
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
32
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
33
|
+
* @jsxRuntime classic
|
|
34
|
+
* @jsx jsx
|
|
35
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
36
|
var getPosSafely = function getPosSafely(pos) {
|
|
34
37
|
if (!pos || typeof pos === 'boolean') {
|
|
35
38
|
return;
|
|
@@ -34,6 +34,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
34
34
|
// replace all the outstanding links with their cards
|
|
35
35
|
var pos = tr.mapping.map(request.pos);
|
|
36
36
|
var $pos = tr.doc.resolve(pos);
|
|
37
|
+
var $head = tr.selection.$head;
|
|
37
38
|
var node = tr.doc.nodeAt(pos);
|
|
38
39
|
if (!node || !node.type.isText) {
|
|
39
40
|
return;
|
|
@@ -49,6 +50,15 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
49
50
|
nodes.push(schema.text(' '));
|
|
50
51
|
}
|
|
51
52
|
tr.replaceWith(pos, pos + (node.text || url).length, nodes);
|
|
53
|
+
if ((0, _platformFeatureFlags.fg)('editor_inline_comments_paste_insert_nodes')) {
|
|
54
|
+
var annotationMarksForPos = (0, _utils.getAnnotationMarksForPos)($head);
|
|
55
|
+
if (annotationMarksForPos && annotationMarksForPos.length > 0) {
|
|
56
|
+
annotationMarksForPos.forEach(function (annotationMark) {
|
|
57
|
+
// Add the annotation mark on to the inlineCard node and the trailing space node.
|
|
58
|
+
tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
52
62
|
return $pos.node($pos.depth - 1).type.name;
|
|
53
63
|
}
|
|
54
64
|
var replaceQueuedUrlWithCard = exports.replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) {
|
|
@@ -371,7 +381,7 @@ var setSelectedCardAppearance = exports.setSelectedCardAppearance = function set
|
|
|
371
381
|
return false;
|
|
372
382
|
}
|
|
373
383
|
var attrs;
|
|
374
|
-
if ((0, _platformFeatureFlags.
|
|
384
|
+
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
375
385
|
if ((0, _utils2.appearanceForNodeType)(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
|
|
376
386
|
return false;
|
|
377
387
|
}
|
|
@@ -461,7 +471,7 @@ var updateCardViaDatasource = exports.updateCardViaDatasource = function updateC
|
|
|
461
471
|
if (isColumnChange || isUrlChange) {
|
|
462
472
|
tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
|
|
463
473
|
}
|
|
464
|
-
} else if ((0, _platformFeatureFlags.
|
|
474
|
+
} else if (node.type.isText && (0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
465
475
|
// url to datasource
|
|
466
476
|
var link;
|
|
467
477
|
state.doc.nodesBetween(from, to, function (node, pos) {
|
|
@@ -533,7 +543,7 @@ var getAttrsForAppearance = exports.getAttrsForAppearance = function getAttrsFor
|
|
|
533
543
|
layout: 'center'
|
|
534
544
|
});
|
|
535
545
|
}
|
|
536
|
-
if ((0, _platformFeatureFlags.
|
|
546
|
+
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.editor-datasource-typeguards')) {
|
|
537
547
|
if ((0, _utils2.isDatasourceNode)(selectedNode)) {
|
|
538
548
|
return {
|
|
539
549
|
url: selectedNode.attrs.url
|
|
@@ -549,8 +559,8 @@ var getAttrsForAppearance = exports.getAttrsForAppearance = function getAttrsFor
|
|
|
549
559
|
return selectedNode.attrs;
|
|
550
560
|
};
|
|
551
561
|
var updateDatasourceStash = function updateDatasourceStash(tr, selectedNode) {
|
|
552
|
-
if ((0, _platformFeatureFlags.
|
|
553
|
-
if ((0, _platformFeatureFlags.
|
|
562
|
+
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
563
|
+
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.editor-datasource-typeguards')) {
|
|
554
564
|
if ((0, _utils2.isDatasourceNode)(selectedNode) && !(0, _utils2.isDatasourceConfigEditable)(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
|
|
555
565
|
(0, _actions.setDatasourceStash)(tr, {
|
|
556
566
|
url: selectedNode.attrs.url,
|
|
@@ -14,7 +14,10 @@ var _localStorage = require("../../common/local-storage");
|
|
|
14
14
|
var _utils = require("../../utils");
|
|
15
15
|
var _InlineCardOverlay = _interopRequireDefault(require("../InlineCardOverlay"));
|
|
16
16
|
var _Pulse = require("../Pulse");
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
* @jsx jsx
|
|
20
|
+
*/
|
|
18
21
|
|
|
19
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
23
|
|
|
@@ -9,7 +9,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _link = require("@atlaskit/editor-common/link");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
|
|
14
17
|
// not permitted to migrate atlaskit packages to compiled yet, see https://hello.atlassian.net/wiki/spaces/UAF/pages/3006969423/Migrating+AFM+platform+components+to+Compiled+a+guide
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
@@ -18,7 +18,10 @@ var _pluginKey = require("../pm-plugins/plugin-key");
|
|
|
18
18
|
var _CardContextProvider = require("./CardContextProvider");
|
|
19
19
|
var _DatasourceIcon = require("./DatasourceIcon");
|
|
20
20
|
var _useFetchDatasourceInfo = require("./useFetchDatasourceInfo");
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
24
|
+
*/
|
|
22
25
|
|
|
23
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
27
|
|
|
@@ -15,7 +15,10 @@ var _actions = require("../pm-plugins/actions");
|
|
|
15
15
|
var _utils2 = require("../utils");
|
|
16
16
|
var _CardContextProvider = require("./CardContextProvider");
|
|
17
17
|
var _useFetchDatasourceInfo = require("./useFetchDatasourceInfo");
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
* @jsx jsx
|
|
21
|
+
*/
|
|
19
22
|
|
|
20
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
24
|
|
|
@@ -17,7 +17,10 @@ var _menu = require("@atlaskit/menu");
|
|
|
17
17
|
var _primitives = require("@atlaskit/primitives");
|
|
18
18
|
var _utils = require("../../utils");
|
|
19
19
|
var _EditDatasourceButton = require("../EditDatasourceButton");
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
* @jsx jsx
|
|
23
|
+
*/
|
|
21
24
|
|
|
22
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
26
|
|
|
@@ -24,7 +24,10 @@ var _useFetchDatasourceDataInfo = require("../useFetchDatasourceDataInfo");
|
|
|
24
24
|
var _useFetchDatasourceInfo = require("../useFetchDatasourceInfo");
|
|
25
25
|
var _EditToolbarButtonPresentation = _interopRequireDefault(require("./EditToolbarButtonPresentation"));
|
|
26
26
|
var _excluded = ["extensionKey"];
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* @jsxRuntime classic
|
|
29
|
+
* @jsx jsx
|
|
30
|
+
*/
|
|
28
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
32
|
var dropdownExpandContainer = (0, _react2.css)({
|
|
30
33
|
margin: "0px ".concat("var(--ds-space-negative-050, -4px)")
|
|
@@ -23,7 +23,10 @@ var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
|
|
|
23
23
|
var _active;
|
|
24
24
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
25
25
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* @jsxRuntime classic
|
|
28
|
+
* @jsx jsx
|
|
29
|
+
*/
|
|
27
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
31
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
29
32
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -22,7 +22,10 @@ var _actions = require("../../pm-plugins/actions");
|
|
|
22
22
|
var _utils2 = require("../../utils");
|
|
23
23
|
var _utils3 = require("./utils");
|
|
24
24
|
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; }
|
|
25
|
-
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; } /**
|
|
25
|
+
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; } /**
|
|
26
|
+
* @jsxRuntime classic
|
|
27
|
+
* @jsx jsx
|
|
28
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
29
|
var toolbarButtonWrapperStyles = (0, _react2.css)({
|
|
27
30
|
background: "".concat("var(--ds-background-neutral, ".concat(_colors.N20A, ")")),
|
|
28
31
|
color: "".concat("var(--ds-icon, ".concat(_colors.N300, ")")),
|
|
@@ -22,7 +22,10 @@ var _smartCard = require("@atlaskit/smart-card");
|
|
|
22
22
|
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; }
|
|
23
23
|
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; }
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
26
|
+
* @jsxRuntime classic
|
|
27
|
+
* @jsx jsx
|
|
28
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
29
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
27
30
|
var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
28
31
|
(0, _inherits2.default)(ResizableEmbedCard, _React$Component);
|
|
@@ -10,7 +10,10 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _linkClientExtension = require("@atlaskit/link-client-extension");
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
|
|
15
18
|
var useFetchDatasourceDataInfo = exports.useFetchDatasourceDataInfo = function useFetchDatasourceDataInfo(_ref) {
|
|
16
19
|
var datasourceId = _ref.datasourceId,
|
|
@@ -9,7 +9,10 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
|
|
14
17
|
var useFetchDatasourceInfo = exports.useFetchDatasourceInfo = function useFetchDatasourceInfo(_ref) {
|
|
15
18
|
var isRegularCardNode = _ref.isRegularCardNode,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,10 +2,10 @@ import isEqual from 'lodash/isEqual';
|
|
|
2
2
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, SMART_LINK_TYPE, unlinkPayload } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
5
|
-
import { getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
7
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import {
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { appearanceForNodeType, isDatasourceConfigEditable, isDatasourceNode, selectedCardAppearance } from '../utils';
|
|
10
10
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
11
11
|
import { pluginKey } from './plugin-key';
|
|
@@ -28,6 +28,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
28
28
|
// replace all the outstanding links with their cards
|
|
29
29
|
const pos = tr.mapping.map(request.pos);
|
|
30
30
|
const $pos = tr.doc.resolve(pos);
|
|
31
|
+
const $head = tr.selection.$head;
|
|
31
32
|
const node = tr.doc.nodeAt(pos);
|
|
32
33
|
if (!node || !node.type.isText) {
|
|
33
34
|
return;
|
|
@@ -43,6 +44,15 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
43
44
|
nodes.push(schema.text(' '));
|
|
44
45
|
}
|
|
45
46
|
tr.replaceWith(pos, pos + (node.text || url).length, nodes);
|
|
47
|
+
if (fg('editor_inline_comments_paste_insert_nodes')) {
|
|
48
|
+
const annotationMarksForPos = getAnnotationMarksForPos($head);
|
|
49
|
+
if (annotationMarksForPos && annotationMarksForPos.length > 0) {
|
|
50
|
+
annotationMarksForPos.forEach(annotationMark => {
|
|
51
|
+
// Add the annotation mark on to the inlineCard node and the trailing space node.
|
|
52
|
+
tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
return $pos.node($pos.depth - 1).type.name;
|
|
47
57
|
}
|
|
48
58
|
export const replaceQueuedUrlWithCard = (url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) => (editorState, dispatch) => {
|
|
@@ -345,7 +355,7 @@ export const setSelectedCardAppearance = (appearance, editorAnalyticsApi) => (st
|
|
|
345
355
|
return false;
|
|
346
356
|
}
|
|
347
357
|
let attrs;
|
|
348
|
-
if (
|
|
358
|
+
if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
349
359
|
if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
|
|
350
360
|
return false;
|
|
351
361
|
}
|
|
@@ -442,7 +452,7 @@ export const updateCardViaDatasource = args => {
|
|
|
442
452
|
...newAdf.attrs
|
|
443
453
|
});
|
|
444
454
|
}
|
|
445
|
-
} else if (
|
|
455
|
+
} else if (node.type.isText && fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
446
456
|
// url to datasource
|
|
447
457
|
let link;
|
|
448
458
|
state.doc.nodesBetween(from, to, (node, pos) => {
|
|
@@ -521,7 +531,7 @@ export const getAttrsForAppearance = (appearance, selectedNode) => {
|
|
|
521
531
|
layout: 'center'
|
|
522
532
|
};
|
|
523
533
|
}
|
|
524
|
-
if (
|
|
534
|
+
if (fg('platform.linking-platform.editor-datasource-typeguards')) {
|
|
525
535
|
if (isDatasourceNode(selectedNode)) {
|
|
526
536
|
return {
|
|
527
537
|
url: selectedNode.attrs.url
|
|
@@ -537,8 +547,8 @@ export const getAttrsForAppearance = (appearance, selectedNode) => {
|
|
|
537
547
|
return selectedNode.attrs;
|
|
538
548
|
};
|
|
539
549
|
const updateDatasourceStash = (tr, selectedNode) => {
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
550
|
+
if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
551
|
+
if (fg('platform.linking-platform.editor-datasource-typeguards')) {
|
|
542
552
|
if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
|
|
543
553
|
setDatasourceStash(tr, {
|
|
544
554
|
url: selectedNode.attrs.url,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { useCallback, useState } from 'react';
|
|
3
6
|
|
|
4
7
|
// not permitted to migrate atlaskit packages to compiled yet, see https://hello.atlassian.net/wiki/spaces/UAF/pages/3006969423/Migrating+AFM+platform+components+to+Compiled+a+guide
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
6
9
|
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
import React from 'react';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import { useEffect, useState } from 'react';
|
|
3
6
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
4
7
|
export const useFetchDatasourceDataInfo = ({
|
|
@@ -11,7 +11,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
11
11
|
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) { _defineProperty(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; }
|
|
12
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
import React from 'react';
|
|
16
19
|
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -6,10 +6,10 @@ import isEqual from 'lodash/isEqual';
|
|
|
6
6
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, SMART_LINK_TYPE, unlinkPayload } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
9
|
-
import { getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
9
|
+
import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
11
11
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
-
import {
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
import { appearanceForNodeType, isDatasourceConfigEditable, isDatasourceNode, selectedCardAppearance } from '../utils';
|
|
14
14
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
15
15
|
import { pluginKey } from './plugin-key';
|
|
@@ -28,6 +28,7 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
28
28
|
// replace all the outstanding links with their cards
|
|
29
29
|
var pos = tr.mapping.map(request.pos);
|
|
30
30
|
var $pos = tr.doc.resolve(pos);
|
|
31
|
+
var $head = tr.selection.$head;
|
|
31
32
|
var node = tr.doc.nodeAt(pos);
|
|
32
33
|
if (!node || !node.type.isText) {
|
|
33
34
|
return;
|
|
@@ -43,6 +44,15 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
|
|
|
43
44
|
nodes.push(schema.text(' '));
|
|
44
45
|
}
|
|
45
46
|
tr.replaceWith(pos, pos + (node.text || url).length, nodes);
|
|
47
|
+
if (fg('editor_inline_comments_paste_insert_nodes')) {
|
|
48
|
+
var annotationMarksForPos = getAnnotationMarksForPos($head);
|
|
49
|
+
if (annotationMarksForPos && annotationMarksForPos.length > 0) {
|
|
50
|
+
annotationMarksForPos.forEach(function (annotationMark) {
|
|
51
|
+
// Add the annotation mark on to the inlineCard node and the trailing space node.
|
|
52
|
+
tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
return $pos.node($pos.depth - 1).type.name;
|
|
47
57
|
}
|
|
48
58
|
export var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData, analyticsAction, editorAnalyticsApi, createAnalyticsEvent) {
|
|
@@ -365,7 +375,7 @@ export var setSelectedCardAppearance = function setSelectedCardAppearance(appear
|
|
|
365
375
|
return false;
|
|
366
376
|
}
|
|
367
377
|
var attrs;
|
|
368
|
-
if (
|
|
378
|
+
if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
369
379
|
if (appearanceForNodeType(selectedNode.type) === appearance && !selectedNode.attrs.datasource) {
|
|
370
380
|
return false;
|
|
371
381
|
}
|
|
@@ -455,7 +465,7 @@ export var updateCardViaDatasource = function updateCardViaDatasource(args) {
|
|
|
455
465
|
if (isColumnChange || isUrlChange) {
|
|
456
466
|
tr.setNodeMarkup(from, schemaNodes.blockCard, _objectSpread(_objectSpread({}, oldAttrs), newAdf.attrs));
|
|
457
467
|
}
|
|
458
|
-
} else if (
|
|
468
|
+
} else if (node.type.isText && fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
459
469
|
// url to datasource
|
|
460
470
|
var link;
|
|
461
471
|
state.doc.nodesBetween(from, to, function (node, pos) {
|
|
@@ -527,7 +537,7 @@ export var getAttrsForAppearance = function getAttrsForAppearance(appearance, se
|
|
|
527
537
|
layout: 'center'
|
|
528
538
|
});
|
|
529
539
|
}
|
|
530
|
-
if (
|
|
540
|
+
if (fg('platform.linking-platform.editor-datasource-typeguards')) {
|
|
531
541
|
if (isDatasourceNode(selectedNode)) {
|
|
532
542
|
return {
|
|
533
543
|
url: selectedNode.attrs.url
|
|
@@ -543,8 +553,8 @@ export var getAttrsForAppearance = function getAttrsForAppearance(appearance, se
|
|
|
543
553
|
return selectedNode.attrs;
|
|
544
554
|
};
|
|
545
555
|
var updateDatasourceStash = function updateDatasourceStash(tr, selectedNode) {
|
|
546
|
-
if (
|
|
547
|
-
if (
|
|
556
|
+
if (fg('platform.linking-platform.enable-datasource-appearance-toolbar')) {
|
|
557
|
+
if (fg('platform.linking-platform.editor-datasource-typeguards')) {
|
|
548
558
|
if (isDatasourceNode(selectedNode) && !isDatasourceConfigEditable(selectedNode.attrs.datasource.id) && selectedNode.attrs.url) {
|
|
549
559
|
setDatasourceStash(tr, {
|
|
550
560
|
url: selectedNode.attrs.url,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useCallback, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// not permitted to migrate atlaskit packages to compiled yet, see https://hello.atlassian.net/wiki/spaces/UAF/pages/3006969423/Migrating+AFM+platform+components+to+Compiled+a+guide
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { useCallback, useRef, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["extensionKey"];
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
6
9
|
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -6,7 +6,10 @@ var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
|
|
|
6
6
|
var _active;
|
|
7
7
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
11
14
|
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useCallback, useMemo } from 'react';
|
|
6
9
|
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -10,7 +10,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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) { _defineProperty(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; }
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
import React from 'react';
|
|
15
18
|
|
|
16
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useEffect, useState } from 'react';
|
|
6
9
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
7
10
|
export var useFetchDatasourceDataInfo = function useFetchDatasourceDataInfo(_ref) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
import { useEffect, useState } from 'react';
|
|
6
9
|
export var useFetchDatasourceInfo = function useFetchDatasourceInfo(_ref) {
|
|
7
10
|
var isRegularCardNode = _ref.isRegularCardNode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
37
|
"@atlaskit/custom-steps": "^0.4.0",
|
|
38
|
-
"@atlaskit/editor-common": "^86.
|
|
38
|
+
"@atlaskit/editor-common": "^86.4.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
49
49
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
50
|
-
"@atlaskit/icon": "^22.
|
|
50
|
+
"@atlaskit/icon": "^22.7.0",
|
|
51
51
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^1.9.0",
|
|
53
53
|
"@atlaskit/link-datasource": "^2.5.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/menu": "2.8.1",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
58
58
|
"@atlaskit/primitives": "^11.0.0",
|
|
59
|
-
"@atlaskit/smart-card": "^27.
|
|
59
|
+
"@atlaskit/smart-card": "^27.10.0",
|
|
60
60
|
"@atlaskit/theme": "^12.11.0",
|
|
61
61
|
"@atlaskit/tokens": "^1.56.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"raf-schd": "^4.0.3"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@atlaskit/link-provider": "^1.
|
|
69
|
+
"@atlaskit/link-provider": "^1.13.0",
|
|
70
70
|
"react": "^16.8.0",
|
|
71
71
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
72
72
|
},
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
},
|
|
140
140
|
"linking-platform-contenteditable-false-live-view": {
|
|
141
141
|
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
"editor_inline_comments_paste_insert_nodes": {
|
|
144
|
+
"type": "boolean"
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
"stricter": {
|