@atlaskit/editor-plugin-card 24.0.8 → 24.0.10
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 +15 -0
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +2 -2
- package/dist/cjs/ui/Pulse/index.js +2 -2
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +1 -1
- package/dist/es2019/ui/Pulse/index.js +1 -1
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +1 -1
- package/dist/esm/ui/Pulse/index.js +1 -1
- package/dist/types/ui/datasourceErrorBoundary.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 24.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 24.0.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2bbc1c84de468`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2bbc1c84de468) -
|
|
14
|
+
Migrate Volt consumer imports to existing definitions and align affected test mocks without
|
|
15
|
+
changing runtime behavior.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 24.0.8
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
13
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
15
|
var _extractSmartLinkEmbed = require("@atlaskit/link-extractors/extract-smart-link-embed");
|
|
16
|
-
var
|
|
16
|
+
var _isWithinPreviewPanelIframe = require("@atlaskit/linking-common/utils/is-within-preview-panel-iframe");
|
|
17
17
|
var _smartCard = require("@atlaskit/smart-card");
|
|
18
18
|
var _useSmartLinkDestinationUrl = require("@atlaskit/smart-card/hook/use-smart-link-destination-url");
|
|
19
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -183,7 +183,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
183
183
|
// otherwise a use can click on smartlink itself to open the link in a new tab.
|
|
184
184
|
var isPreviewAvailable = isPreviewPanelAvailable || isPreviewModalAvailable;
|
|
185
185
|
// When inside preview panel iframe, hide the overlay button
|
|
186
|
-
var isInPreviewPanel = (0,
|
|
186
|
+
var isInPreviewPanel = (0, _isWithinPreviewPanelIframe.isWithinPreviewPanelIFrame)();
|
|
187
187
|
var showPanelButton = isInPreviewPanel ? isPreviewPanelAvailable : isPreviewAvailable;
|
|
188
188
|
if (isPreviewAvailable) {
|
|
189
189
|
var _pluginInjectionApi$a4;
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.DiscoveryPulse = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
10
|
-
var
|
|
10
|
+
var _pulse = require("@atlaskit/linking-common/pulse/pulse");
|
|
11
11
|
var _localStorage = require("../local-storage");
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
13
|
var DiscoveryPulse = exports.DiscoveryPulse = function DiscoveryPulse(_ref) {
|
|
@@ -40,7 +40,7 @@ var DiscoveryPulse = exports.DiscoveryPulse = function DiscoveryPulse(_ref) {
|
|
|
40
40
|
(0, _localStorage.markLocalStorageKeyDiscovered)(localStorageKey, localStorageKeyExpirationInMs);
|
|
41
41
|
}
|
|
42
42
|
}, [discovered, localStorageKey, localStorageKeyExpirationInMs]);
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_pulse.Pulse, {
|
|
44
44
|
onAnimationIteration: discoveryMode === 'iteration' ? onDiscovery : undefined,
|
|
45
45
|
onAnimationStart: discoveryMode === 'start' ? onDiscovery : undefined,
|
|
46
46
|
showPulse: showPulse,
|
|
@@ -4,7 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { HoverLinkOverlay } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
7
|
-
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
7
|
+
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils/is-within-preview-panel-iframe';
|
|
8
8
|
import { getObjectAri, getObjectName, getObjectIconUrl } from '@atlaskit/smart-card';
|
|
9
9
|
import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-link-destination-url';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
|
-
import { Pulse } from '@atlaskit/linking-common';
|
|
3
|
+
import { Pulse } from '@atlaskit/linking-common/pulse/pulse';
|
|
4
4
|
import { isLocalStorageKeyDiscovered, markLocalStorageKeyDiscovered } from '../local-storage';
|
|
5
5
|
export const DiscoveryPulse = ({
|
|
6
6
|
children,
|
|
@@ -5,7 +5,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
5
5
|
import { HoverLinkOverlay } from '@atlaskit/editor-common/ui';
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
8
|
-
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
8
|
+
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils/is-within-preview-panel-iframe';
|
|
9
9
|
import { getObjectAri, getObjectName, getObjectIconUrl } from '@atlaskit/smart-card';
|
|
10
10
|
import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-link-destination-url';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
|
-
import { Pulse } from '@atlaskit/linking-common';
|
|
3
|
+
import { Pulse } from '@atlaskit/linking-common/pulse/pulse';
|
|
4
4
|
import { isLocalStorageKeyDiscovered, markLocalStorageKeyDiscovered } from '../local-storage';
|
|
5
5
|
export var DiscoveryPulse = function DiscoveryPulse(_ref) {
|
|
6
6
|
var children = _ref.children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatasourceModalType } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { APIError } from '@atlaskit/linking-common';
|
|
3
|
+
import type { APIError } from '@atlaskit/linking-common/api-error';
|
|
4
4
|
import type { DatasourceProps } from '../nodeviews/datasource';
|
|
5
5
|
export type DatasourceErrorBoundaryProps = React.PropsWithChildren<{
|
|
6
6
|
datasourceId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.10",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^57.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.5.0",
|
|
25
25
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
26
26
|
"@atlaskit/button": "^25.3.0",
|
|
27
27
|
"@atlaskit/css": "^1.1.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/link-client-extension": "^7.3.0",
|
|
55
55
|
"@atlaskit/link-datasource": "^6.13.0",
|
|
56
56
|
"@atlaskit/link-extractors": "^4.2.0",
|
|
57
|
-
"@atlaskit/linking-common": "^12.
|
|
57
|
+
"@atlaskit/linking-common": "^12.3.0",
|
|
58
58
|
"@atlaskit/linking-types": "^15.3.0",
|
|
59
59
|
"@atlaskit/menu": "^10.2.0",
|
|
60
60
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
63
63
|
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
65
|
-
"@atlaskit/smart-card": "^45.
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/smart-card": "^45.24.0",
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
67
67
|
"@atlaskit/tokens": "^17.0.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"uuid": "^11.1.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^122.
|
|
77
|
-
"@atlaskit/link-provider": "^5.
|
|
76
|
+
"@atlaskit/editor-common": "^122.10.0",
|
|
77
|
+
"@atlaskit/link-provider": "^5.7.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.2.0",
|
|
79
79
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
80
80
|
},
|