@atlaskit/renderer 127.5.0 → 128.0.1
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 +17 -0
- package/dist/cjs/react/nodes/blockCard.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +1 -1
- package/dist/cjs/react/nodes/inlineCard.js +1 -4
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +2 -2
- package/dist/es2019/react/nodes/inlineCard.js +2 -5
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +2 -2
- package/dist/esm/react/nodes/inlineCard.js +2 -5
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 128.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 128.0.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`0fda7892b26bc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fda7892b26bc) -
|
|
14
|
+
[ux] Remove useSmartCardReloadAfterCache hook
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 127.5.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -192,7 +192,7 @@ function BlockCard(props) {
|
|
|
192
192
|
}
|
|
193
193
|
return (0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
194
194
|
url: url || '',
|
|
195
|
-
appearance: _editorSmartLinkDraggable.
|
|
195
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.BLOCK,
|
|
196
196
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
197
|
}, (0, _react.jsx)(_analyticsNext.AnalyticsContext, {
|
|
198
198
|
data: analyticsData
|
|
@@ -204,7 +204,7 @@ function EmbedCardInternal(props) {
|
|
|
204
204
|
// Ignored via go/ees005
|
|
205
205
|
(0, _react.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
206
206
|
url: url || '',
|
|
207
|
-
appearance: _editorSmartLinkDraggable.
|
|
207
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.EMBED,
|
|
208
208
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
209
209
|
}, (0, _react.jsx)(_fallback.CardErrorBoundary, (0, _extends2.default)({
|
|
210
210
|
unsupportedComponent: _ui.UnsupportedBlock,
|
|
@@ -15,7 +15,6 @@ var _utils = require("@atlaskit/linking-common/utils");
|
|
|
15
15
|
var _hooks = require("@atlaskit/smart-card/hooks");
|
|
16
16
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
17
17
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
18
|
-
var _hooks2 = require("@atlaskit/editor-common/hooks");
|
|
19
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
20
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
@@ -171,8 +170,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
171
170
|
isResolvedViewRendered = _useState2[0],
|
|
172
171
|
setIsResolvedViewRendered = _useState2[1];
|
|
173
172
|
var cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
174
|
-
var cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
175
|
-
(0, _hooks2.useSmartCardReloadAfterCache)(url, cardStatus, (smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.ssr) || false);
|
|
176
173
|
var onClick = (0, _getCardClickHandler.getCardClickHandler)(eventHandlers, url);
|
|
177
174
|
var cardProps = {
|
|
178
175
|
url: url,
|
|
@@ -304,7 +301,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
304
301
|
}
|
|
305
302
|
return (0, _react2.jsx)(_editorSmartLinkDraggable.SmartLinkDraggable, {
|
|
306
303
|
url: url || '',
|
|
307
|
-
appearance: _editorSmartLinkDraggable.
|
|
304
|
+
appearance: _editorSmartLinkDraggable.SMART_LINK_APPEARANCE.INLINE,
|
|
308
305
|
source: _editorSmartLinkDraggable.SMART_LINK_DRAG_TYPES.RENDERER
|
|
309
306
|
}, (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
310
307
|
data: analyticsData
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "
|
|
74
|
+
var packageVersion = "128.0.0";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -8,7 +8,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { Card } from '@atlaskit/smart-card';
|
|
9
9
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { CardErrorBoundary } from './fallback';
|
|
11
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
12
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
13
13
|
import InlineCard from './inlineCard';
|
|
14
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -181,7 +181,7 @@ export default function BlockCard(props) {
|
|
|
181
181
|
}
|
|
182
182
|
return jsx(SmartLinkDraggable, {
|
|
183
183
|
url: url || '',
|
|
184
|
-
appearance:
|
|
184
|
+
appearance: SMART_LINK_APPEARANCE.BLOCK,
|
|
185
185
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
186
186
|
}, jsx(AnalyticsContext, {
|
|
187
187
|
data: analyticsData
|
|
@@ -17,7 +17,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import { CardErrorBoundary } from './fallback';
|
|
20
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
20
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
21
21
|
import { RendererCssClassName } from '../../consts';
|
|
22
22
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
23
23
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -192,7 +192,7 @@ function EmbedCardInternal(props) {
|
|
|
192
192
|
// Ignored via go/ees005
|
|
193
193
|
jsx(SmartLinkDraggable, {
|
|
194
194
|
url: url || '',
|
|
195
|
-
appearance:
|
|
195
|
+
appearance: SMART_LINK_APPEARANCE.EMBED,
|
|
196
196
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
197
197
|
}, jsx(CardErrorBoundary, _extends({
|
|
198
198
|
unsupportedComponent: UnsupportedBlock,
|
|
@@ -13,14 +13,13 @@ import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
|
13
13
|
import { useSmartLinkActions } from '@atlaskit/smart-card/hooks';
|
|
14
14
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
15
15
|
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
16
|
-
import { useSmartCardReloadAfterCache } from '@atlaskit/editor-common/hooks';
|
|
17
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
19
18
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
20
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
23
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
22
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
24
23
|
import { CardErrorBoundary } from './fallback';
|
|
25
24
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
26
25
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -154,8 +153,6 @@ const InlineCard = props => {
|
|
|
154
153
|
} = (cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$value5 = cardContext.value) === null || _cardContext$value5 === void 0 ? void 0 : _cardContext$value5.store) || {};
|
|
155
154
|
const [isResolvedViewRendered, setIsResolvedViewRendered] = useState(false);
|
|
156
155
|
const cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
157
|
-
const cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
158
|
-
useSmartCardReloadAfterCache(url, cardStatus, (smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.ssr) || false);
|
|
159
156
|
const onClick = getCardClickHandler(eventHandlers, url);
|
|
160
157
|
const cardProps = {
|
|
161
158
|
url,
|
|
@@ -289,7 +286,7 @@ const InlineCard = props => {
|
|
|
289
286
|
}
|
|
290
287
|
return jsx(SmartLinkDraggable, {
|
|
291
288
|
url: url || '',
|
|
292
|
-
appearance:
|
|
289
|
+
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
293
290
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
294
291
|
}, jsx(AnalyticsContext, {
|
|
295
292
|
data: analyticsData
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "
|
|
60
|
+
const packageVersion = "128.0.0";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -8,7 +8,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { Card } from '@atlaskit/smart-card';
|
|
9
9
|
import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { CardErrorBoundary } from './fallback';
|
|
11
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
11
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
12
12
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
13
13
|
import InlineCard from './inlineCard';
|
|
14
14
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -184,7 +184,7 @@ export default function BlockCard(props) {
|
|
|
184
184
|
}
|
|
185
185
|
return jsx(SmartLinkDraggable, {
|
|
186
186
|
url: url || '',
|
|
187
|
-
appearance:
|
|
187
|
+
appearance: SMART_LINK_APPEARANCE.BLOCK,
|
|
188
188
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
189
189
|
}, jsx(AnalyticsContext, {
|
|
190
190
|
data: analyticsData
|
|
@@ -18,7 +18,7 @@ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
20
|
import { CardErrorBoundary } from './fallback';
|
|
21
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
21
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
22
22
|
import { RendererCssClassName } from '../../consts';
|
|
23
23
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
24
24
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -196,7 +196,7 @@ function EmbedCardInternal(props) {
|
|
|
196
196
|
// Ignored via go/ees005
|
|
197
197
|
jsx(SmartLinkDraggable, {
|
|
198
198
|
url: url || '',
|
|
199
|
-
appearance:
|
|
199
|
+
appearance: SMART_LINK_APPEARANCE.EMBED,
|
|
200
200
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
201
201
|
}, jsx(CardErrorBoundary, _extends({
|
|
202
202
|
unsupportedComponent: UnsupportedBlock,
|
|
@@ -14,14 +14,13 @@ import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
|
14
14
|
import { useSmartLinkActions } from '@atlaskit/smart-card/hooks';
|
|
15
15
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
16
16
|
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
17
|
-
import { useSmartCardReloadAfterCache } from '@atlaskit/editor-common/hooks';
|
|
18
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
20
19
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
21
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
22
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
24
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES,
|
|
23
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
25
24
|
import { CardErrorBoundary } from './fallback';
|
|
26
25
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
27
26
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -162,8 +161,6 @@ var InlineCard = function InlineCard(props) {
|
|
|
162
161
|
isResolvedViewRendered = _useState2[0],
|
|
163
162
|
setIsResolvedViewRendered = _useState2[1];
|
|
164
163
|
var cardState = getSmartlinkState === null || getSmartlinkState === void 0 ? void 0 : getSmartlinkState()[url || ''];
|
|
165
|
-
var cardStatus = cardState === null || cardState === void 0 ? void 0 : cardState.status;
|
|
166
|
-
useSmartCardReloadAfterCache(url, cardStatus, (smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.ssr) || false);
|
|
167
164
|
var onClick = getCardClickHandler(eventHandlers, url);
|
|
168
165
|
var cardProps = {
|
|
169
166
|
url: url,
|
|
@@ -295,7 +292,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
295
292
|
}
|
|
296
293
|
return jsx(SmartLinkDraggable, {
|
|
297
294
|
url: url || '',
|
|
298
|
-
appearance:
|
|
295
|
+
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
299
296
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
300
297
|
}, jsx(AnalyticsContext, {
|
|
301
298
|
data: analyticsData
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "
|
|
65
|
+
var packageVersion = "128.0.0";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "128.0.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
42
|
"@atlaskit/icon": "^32.0.0",
|
|
43
43
|
"@atlaskit/link": "^3.3.0",
|
|
44
|
-
"@atlaskit/link-datasource": "^4.
|
|
44
|
+
"@atlaskit/link-datasource": "^4.34.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
46
46
|
"@atlaskit/linking-common": "^9.10.0",
|
|
47
47
|
"@atlaskit/media-card": "^79.15.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/status": "^3.1.0",
|
|
60
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
61
61
|
"@atlaskit/theme": "^22.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^11.1.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.14.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^
|
|
76
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
77
77
|
"@atlaskit/link-provider": "^4.2.0",
|
|
78
78
|
"@atlaskit/media-core": "^37.0.0",
|
|
79
79
|
"react": "^18.2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
86
86
|
"@atlaskit/checkbox": "^17.3.0",
|
|
87
87
|
"@atlaskit/link-provider": "^4.2.0",
|
|
88
|
-
"@atlaskit/link-test-helpers": "^9.
|
|
88
|
+
"@atlaskit/link-test-helpers": "^9.1.0",
|
|
89
89
|
"@atlaskit/media-core": "^37.0.0",
|
|
90
90
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
91
91
|
"@atlaskit/media-test-helpers": "^40.0.0",
|