@atlaskit/editor-plugin-card 12.4.3 → 13.0.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
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0fda7892b26bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fda7892b26bc) -
|
|
8
|
+
[ux] Remove useSmartCardReloadAfterCache hook
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 12.4.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -52,8 +52,6 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
52
52
|
var _ref2 = (cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store) || {},
|
|
53
53
|
getSmartlinkState = _ref2.getState;
|
|
54
54
|
var cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
55
|
-
var cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
56
|
-
(0, _hooks.useSmartCardReloadAfterCache)(url, cardStatus, isPageSSRed || false);
|
|
57
55
|
(0, _react.useEffect)(function () {
|
|
58
56
|
var id = refId.current;
|
|
59
57
|
return function () {
|
|
@@ -4,7 +4,7 @@ import rafSchedule from 'raf-schd';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
5
|
import uuid from 'uuid/v4';
|
|
6
6
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { useSharedPluginStateWithSelector
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { UnsupportedInline, findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
10
10
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
@@ -43,8 +43,6 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
43
43
|
getState: getSmartlinkState
|
|
44
44
|
} = (cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store) || {};
|
|
45
45
|
const cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
46
|
-
const cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
47
|
-
useSmartCardReloadAfterCache(url, cardStatus, isPageSSRed || false);
|
|
48
46
|
useEffect(() => {
|
|
49
47
|
const id = refId.current;
|
|
50
48
|
return () => {
|
|
@@ -4,7 +4,7 @@ import rafSchedule from 'raf-schd';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
5
|
import uuid from 'uuid/v4';
|
|
6
6
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { useSharedPluginStateWithSelector
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { UnsupportedInline, findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPERANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
10
10
|
import { Card as SmartCard } from '@atlaskit/smart-card';
|
|
@@ -40,8 +40,6 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
40
40
|
var _ref2 = (cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store) || {},
|
|
41
41
|
getSmartlinkState = _ref2.getState;
|
|
42
42
|
var cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
43
|
-
var cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
44
|
-
useSmartCardReloadAfterCache(url, cardStatus, isPageSSRed || false);
|
|
45
43
|
useEffect(function () {
|
|
46
44
|
var id = refId.current;
|
|
47
45
|
return function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^52.2.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
36
|
-
"@atlaskit/editor-plugin-base": "^
|
|
37
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
39
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
40
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
41
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
42
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
43
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
44
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
45
|
-
"@atlaskit/editor-plugin-width": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-base": "^9.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-connectivity": "^8.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^8.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-feature-flags": "^7.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^10.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-grid": "^8.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-toolbar": "^5.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-width": "^9.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/editor-smart-link-draggable": "^0.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/link": "^3.3.0",
|
|
52
52
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
53
53
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
54
|
-
"@atlaskit/link-datasource": "^4.
|
|
54
|
+
"@atlaskit/link-datasource": "^4.34.0",
|
|
55
55
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
56
56
|
"@atlaskit/linking-common": "^9.10.0",
|
|
57
57
|
"@atlaskit/linking-types": "^14.2.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
61
|
"@atlaskit/primitives": "^18.0.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
|
-
"@atlaskit/smart-card": "^43.
|
|
63
|
+
"@atlaskit/smart-card": "^43.26.0",
|
|
64
64
|
"@atlaskit/theme": "^22.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
66
|
-
"@atlaskit/tokens": "^11.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^35.10.0",
|
|
66
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^
|
|
75
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
76
76
|
"@atlaskit/link-provider": "^4.2.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|