@atlaskit/editor-plugin-card 2.0.5 → 2.0.6
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 +6 -0
- package/dist/cjs/nodeviews/datasource.js +1 -1
- package/dist/cjs/ui/AwarenessWrapper/index.js +2 -0
- package/dist/cjs/ui/DatasourceAppearanceButton.js +2 -0
- package/dist/cjs/ui/EditDatasourceButton.js +1 -0
- package/dist/cjs/ui/EditToolbarButton.js +2 -0
- package/dist/cjs/ui/InlineCardOverlay/index.js +1 -0
- package/dist/cjs/ui/LayoutButton/index.js +1 -1
- package/dist/cjs/ui/LeftIconOverlay/index.js +1 -0
- package/dist/cjs/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/nodeviews/datasource.js +2 -0
- package/dist/es2019/ui/AwarenessWrapper/index.js +2 -0
- package/dist/es2019/ui/DatasourceAppearanceButton.js +2 -0
- package/dist/es2019/ui/EditDatasourceButton.js +1 -0
- package/dist/es2019/ui/EditToolbarButton.js +2 -0
- package/dist/es2019/ui/InlineCardOverlay/index.js +2 -0
- package/dist/es2019/ui/LayoutButton/index.js +2 -0
- package/dist/es2019/ui/LeftIconOverlay/index.js +2 -0
- package/dist/es2019/ui/ResizableEmbedCard.js +2 -0
- package/dist/esm/nodeviews/datasource.js +2 -0
- package/dist/esm/ui/AwarenessWrapper/index.js +2 -0
- package/dist/esm/ui/DatasourceAppearanceButton.js +2 -0
- package/dist/esm/ui/EditDatasourceButton.js +1 -0
- package/dist/esm/ui/EditToolbarButton.js +2 -0
- package/dist/esm/ui/InlineCardOverlay/index.js +2 -0
- package/dist/esm/ui/LayoutButton/index.js +2 -0
- package/dist/esm/ui/LeftIconOverlay/index.js +2 -0
- package/dist/esm/ui/ResizableEmbedCard.js +2 -0
- package/package.json +36 -18
package/CHANGELOG.md
CHANGED
|
@@ -29,7 +29,7 @@ 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; })(); } /** @jsx jsx */
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
33
|
var getPosSafely = function getPosSafely(pos) {
|
|
34
34
|
if (!pos || typeof pos === 'boolean') {
|
|
35
35
|
return;
|
|
@@ -18,6 +18,8 @@ var _LeftIconOverlay = _interopRequireDefault(require("../LeftIconOverlay"));
|
|
|
18
18
|
var _Pulse = require("../Pulse");
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
|
|
21
23
|
// editor adds a standard line-height that is bigger than an inline smart link
|
|
22
24
|
// due to that the link has a bit of white space around it, which doesn't look right when there is pulse around it
|
|
23
25
|
var loaderWrapperStyles = (0, _react2.css)({
|
|
@@ -20,6 +20,8 @@ var _DatasourceIcon = require("./DatasourceIcon");
|
|
|
20
20
|
var _useFetchDatasourceInfo = require("./useFetchDatasourceInfo");
|
|
21
21
|
/** @jsx jsx */
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
23
25
|
var buttonStyles = (0, _react2.css)({
|
|
24
26
|
pointerEvents: 'auto'
|
|
25
27
|
});
|
|
@@ -13,6 +13,7 @@ var _utils = require("../utils");
|
|
|
13
13
|
var _CardContextProvider = require("./CardContextProvider");
|
|
14
14
|
var _useFetchDatasourceInfo = require("./useFetchDatasourceInfo");
|
|
15
15
|
/** @jsx jsx */
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
|
|
17
18
|
var buttonStyles = (0, _react.css)({
|
|
18
19
|
pointerEvents: 'auto'
|
|
@@ -21,6 +21,8 @@ var _CardContextProvider = require("./CardContextProvider");
|
|
|
21
21
|
var _useFetchDatasourceInfo = require("./useFetchDatasourceInfo");
|
|
22
22
|
/** @jsx jsx */
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
24
26
|
var dropdownExpandContainer = (0, _react2.css)({
|
|
25
27
|
margin: "0px ".concat("var(--ds-space-negative-050, -4px)")
|
|
26
28
|
});
|
|
@@ -24,6 +24,7 @@ var _active;
|
|
|
24
24
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
25
25
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
26
26
|
/** @jsx jsx */
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
28
|
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); }
|
|
28
29
|
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; }
|
|
29
30
|
var DEBOUNCE_IN_MS = 5;
|
|
@@ -22,7 +22,7 @@ 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; } /** @jsx jsx */
|
|
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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var toolbarButtonWrapperStyles = (0, _react2.css)({
|
|
27
27
|
background: "".concat("var(--ds-background-neutral, ".concat(_colors.N20A, ")")),
|
|
28
28
|
color: "".concat("var(--ds-icon, ".concat(_colors.N300, ")")),
|
|
@@ -23,6 +23,7 @@ var _excluded = ["children", "isSelected", "isVisible", "testId"];
|
|
|
23
23
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
24
24
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
25
25
|
/** @jsx jsx */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
27
|
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); }
|
|
27
28
|
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; }
|
|
28
29
|
var DEBOUNCE_IN_MS = 5;
|
|
@@ -22,7 +22,7 @@ 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; })(); } /** @jsx jsx */
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
27
27
|
var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
28
28
|
(0, _inherits2.default)(ResizableEmbedCard, _React$Component);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
7
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
5
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator, SmallerEditIcon } from '@atlaskit/editor-common/ui';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
7
|
import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import debounce from 'lodash/debounce';
|
|
8
10
|
import { useIntl } from 'react-intl-next';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { injectIntl } from 'react-intl-next';
|
|
5
7
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import debounce from 'lodash/debounce';
|
|
8
10
|
import { useIntl } from 'react-intl-next';
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { jsx } from '@emotion/react';
|
|
6
8
|
import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns, handleSides, imageAlignmentMap, Resizer, snapTo, wrappedLayouts, wrapperStyle } from '@atlaskit/editor-common/ui';
|
|
7
9
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -13,6 +13,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
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
|
/** @jsx jsx */
|
|
15
15
|
import React from 'react';
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
18
|
import { jsx } from '@emotion/react';
|
|
17
19
|
import PropTypes from 'prop-types';
|
|
18
20
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
7
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
5
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator, SmallerEditIcon } from '@atlaskit/editor-common/ui';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -8,6 +8,8 @@ var _active;
|
|
|
8
8
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
13
|
import { css, jsx } from '@emotion/react';
|
|
12
14
|
import debounce from 'lodash/debounce';
|
|
13
15
|
import { useIntl } from 'react-intl-next';
|
|
@@ -3,6 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
|
/** @jsx jsx */
|
|
5
5
|
import { useCallback, useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import { injectIntl } from 'react-intl-next';
|
|
8
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -6,6 +6,8 @@ var _excluded = ["children", "isSelected", "isVisible", "testId"];
|
|
|
6
6
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { css, jsx } from '@emotion/react';
|
|
10
12
|
import debounce from 'lodash/debounce';
|
|
11
13
|
import { useIntl } from 'react-intl-next';
|
|
@@ -12,6 +12,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
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
|
/** @jsx jsx */
|
|
14
14
|
import React from 'react';
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
17
|
import { jsx } from '@emotion/react';
|
|
16
18
|
import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns, handleSides, imageAlignmentMap, Resizer, snapTo, wrappedLayouts, wrapperStyle } from '@atlaskit/editor-common/ui';
|
|
17
19
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"types": "dist/types/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
22
22
|
">=4.5 <4.9": {
|
|
23
|
-
"*": [
|
|
23
|
+
"*": [
|
|
24
|
+
"dist/types-ts4.5/*",
|
|
25
|
+
"dist/types-ts4.5/index.d.ts"
|
|
26
|
+
]
|
|
24
27
|
}
|
|
25
28
|
},
|
|
26
29
|
"sideEffects": false,
|
|
@@ -33,31 +36,31 @@
|
|
|
33
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
34
37
|
"@atlaskit/button": "^17.17.1",
|
|
35
38
|
"@atlaskit/custom-steps": "^0.2.0",
|
|
36
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
37
|
-
"@atlaskit/editor-common": "^82.
|
|
39
|
+
"@atlaskit/dropdown-menu": "^12.12.0",
|
|
40
|
+
"@atlaskit/editor-common": "^82.8.0",
|
|
38
41
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
39
42
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
40
43
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.2.0",
|
|
41
44
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
42
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^1.
|
|
45
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.7.0",
|
|
43
46
|
"@atlaskit/editor-plugin-grid": "^1.1.0",
|
|
44
47
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
45
48
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
46
49
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
47
50
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
48
|
-
"@atlaskit/icon": "^22.
|
|
51
|
+
"@atlaskit/icon": "^22.4.0",
|
|
49
52
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
50
53
|
"@atlaskit/link-client-extension": "^1.9.0",
|
|
51
54
|
"@atlaskit/link-datasource": "^2.3.0",
|
|
52
55
|
"@atlaskit/linking-common": "^5.7.0",
|
|
53
56
|
"@atlaskit/linking-types": "^8.9.0",
|
|
54
|
-
"@atlaskit/menu": "2.
|
|
57
|
+
"@atlaskit/menu": "2.5.0",
|
|
55
58
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
56
|
-
"@atlaskit/primitives": "^7.
|
|
59
|
+
"@atlaskit/primitives": "^7.4.0",
|
|
57
60
|
"@atlaskit/smart-card": "^27.6.0",
|
|
58
|
-
"@atlaskit/theme": "^12.
|
|
59
|
-
"@atlaskit/tokens": "^1.
|
|
60
|
-
"@atlaskit/tooltip": "^18.
|
|
61
|
+
"@atlaskit/theme": "^12.10.0",
|
|
62
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
63
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
61
64
|
"@babel/runtime": "^7.0.0",
|
|
62
65
|
"@emotion/react": "^11.7.1",
|
|
63
66
|
"lodash": "^4.17.21",
|
|
@@ -74,17 +77,32 @@
|
|
|
74
77
|
},
|
|
75
78
|
"techstack": {
|
|
76
79
|
"@atlassian/frontend": {
|
|
77
|
-
"import-structure": [
|
|
78
|
-
|
|
80
|
+
"import-structure": [
|
|
81
|
+
"atlassian-conventions"
|
|
82
|
+
],
|
|
83
|
+
"circular-dependencies": [
|
|
84
|
+
"file-and-folder-level"
|
|
85
|
+
]
|
|
79
86
|
},
|
|
80
87
|
"@repo/internal": {
|
|
81
88
|
"dom-events": "use-bind-event-listener",
|
|
82
|
-
"analytics": [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"
|
|
89
|
+
"analytics": [
|
|
90
|
+
"analytics-next"
|
|
91
|
+
],
|
|
92
|
+
"design-tokens": [
|
|
93
|
+
"color"
|
|
94
|
+
],
|
|
95
|
+
"theming": [
|
|
96
|
+
"react-context"
|
|
97
|
+
],
|
|
98
|
+
"ui-components": [
|
|
99
|
+
"lite-mode"
|
|
100
|
+
],
|
|
86
101
|
"deprecation": "no-deprecated-imports",
|
|
87
|
-
"styling": [
|
|
102
|
+
"styling": [
|
|
103
|
+
"emotion",
|
|
104
|
+
"emotion"
|
|
105
|
+
]
|
|
88
106
|
}
|
|
89
107
|
},
|
|
90
108
|
"platform-feature-flags": {
|