@atlaskit/smart-card 26.48.7 → 26.49.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 +12 -0
- package/analytics.spec.yaml +95 -0
- package/dist/cjs/__tests_external__/page-objects/BaseCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/BlockCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/EmbedCard.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/InlineCard.js +1 -1
- package/dist/cjs/common/analytics/constants.js +7 -0
- package/dist/cjs/common/analytics/generated/analytics.types.js +5 -0
- package/dist/cjs/common/analytics/generated/create-event-payload.js +45 -0
- package/dist/cjs/common/analytics/generated/use-analytics-events.js +31 -0
- package/dist/cjs/i18n/zh.js +4 -0
- package/dist/cjs/ssr.js +2 -2
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/flexible.js +2 -2
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/mocks.js +1 -1
- package/dist/cjs/view/BlockCard/components/ActionList.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +2 -2
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +2 -2
- package/dist/cjs/view/Card/index.js +1 -1
- package/dist/cjs/view/CardWithData/component.js +1 -1
- package/dist/cjs/view/CardWithData/loader.js +3 -3
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +2 -2
- package/dist/cjs/view/CardWithUrl/component.js +2 -2
- package/dist/cjs/view/CardWithUrl/loader.js +2 -2
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +22 -3
- package/dist/cjs/view/EmbedCard/components/Frame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/styled.js +103 -23
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +2 -2
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +2 -2
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +2 -2
- package/dist/cjs/view/EmbedModal/index.js +2 -2
- package/dist/cjs/view/EmbedModal/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.js +17 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +12 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +2 -5
- package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/preview/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +2 -2
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +2 -2
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/cjs/view/InlineCard/Frame/index.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/index.js +2 -2
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -2
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -2
- package/dist/es2019/common/analytics/constants.js +1 -0
- package/dist/es2019/common/analytics/generated/analytics.types.js +1 -0
- package/dist/es2019/common/analytics/generated/create-event-payload.js +28 -0
- package/dist/es2019/common/analytics/generated/use-analytics-events.js +24 -0
- package/dist/es2019/i18n/zh.js +4 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +21 -4
- package/dist/es2019/view/EmbedCard/components/styled.js +99 -111
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.js +12 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +11 -2
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests_external__/page-objects/BaseCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/BlockCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/EmbedCard.js +1 -1
- package/dist/esm/__tests_external__/page-objects/InlineCard.js +1 -1
- package/dist/esm/common/analytics/constants.js +1 -0
- package/dist/esm/common/analytics/generated/analytics.types.js +1 -0
- package/dist/esm/common/analytics/generated/create-event-payload.js +38 -0
- package/dist/esm/common/analytics/generated/use-analytics-events.js +23 -0
- package/dist/esm/i18n/zh.js +4 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +1 -1
- package/dist/esm/view/Card/index.js +1 -1
- package/dist/esm/view/CardWithData/component.js +1 -1
- package/dist/esm/view/CardWithData/loader.js +1 -1
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +23 -4
- package/dist/esm/view/EmbedCard/components/styled.js +100 -20
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.js +11 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +10 -2
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -3
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/types/common/analytics/constants.d.ts +1 -0
- package/dist/types/common/analytics/generated/analytics.types.d.ts +41 -0
- package/dist/types/common/analytics/generated/create-event-payload.d.ts +27 -0
- package/dist/types/common/analytics/generated/use-analytics-events.d.ts +3 -0
- package/dist/types/i18n/zh.d.ts +4 -0
- package/dist/types/view/EmbedCard/components/styled.d.ts +5 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.d.ts +3 -0
- package/dist/types-ts4.5/common/analytics/constants.d.ts +1 -0
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +41 -0
- package/dist/types-ts4.5/common/analytics/generated/create-event-payload.d.ts +31 -0
- package/dist/types-ts4.5/common/analytics/generated/use-analytics-events.d.ts +7 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +4 -0
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +5 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-error-viewed/index.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-event-summary-viewed/types.d.ts +3 -0
- package/package.json +13 -6
|
@@ -136,6 +136,8 @@ function visible({
|
|
|
136
136
|
}) {
|
|
137
137
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
139
141
|
export const LinkWrapper = styled.div`
|
|
140
142
|
${props => wrapperStyles(props)} &:hover {
|
|
141
143
|
text-decoration: none;
|
|
@@ -143,33 +145,27 @@ export const LinkWrapper = styled.div`
|
|
|
143
145
|
`;
|
|
144
146
|
|
|
145
147
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
146
|
-
export const Wrapper = styled.div
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
`;
|
|
148
|
+
export const Wrapper = styled.div(props => wrapperStyles(props), {
|
|
149
|
+
marginTop: '10px'
|
|
150
|
+
});
|
|
150
151
|
export const embedHeaderHeight = 32;
|
|
151
|
-
export const Header = styled.div
|
|
152
|
-
height:
|
|
153
|
-
position: absolute
|
|
154
|
-
|
|
155
|
-
width: 100
|
|
156
|
-
display: flex
|
|
157
|
-
|
|
158
|
-
color:
|
|
159
|
-
opacity: 0
|
|
160
|
-
transition: 300ms opacity cubic-bezier(0.15, 1, 0.3, 1)
|
|
161
|
-
|
|
162
|
-
${({
|
|
152
|
+
export const Header = styled.div({
|
|
153
|
+
height: `${embedHeaderHeight}px`,
|
|
154
|
+
position: 'absolute',
|
|
155
|
+
zIndex: 1,
|
|
156
|
+
width: '100%',
|
|
157
|
+
display: 'flex',
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
color: `var(--ds-icon, ${colors.N300})`,
|
|
160
|
+
opacity: 0,
|
|
161
|
+
transition: '300ms opacity cubic-bezier(0.15, 1, 0.3, 1)'
|
|
162
|
+
}, ({
|
|
163
163
|
frameStyle
|
|
164
164
|
}) => getBooleanFF('platform.editor.show-embed-card-frame-renderer') && frameStyle === 'show' ? `
|
|
165
165
|
box-sizing: border-box;
|
|
166
166
|
padding: 0 ${"var(--ds-space-100, 8px)"};
|
|
167
|
-
` : ''
|
|
168
|
-
|
|
169
|
-
export const IconWrapper = styled.div`
|
|
170
|
-
${borderRadius}
|
|
171
|
-
${csssize(16)}
|
|
172
|
-
${({
|
|
167
|
+
` : '');
|
|
168
|
+
export const IconWrapper = styled.div(borderRadius, csssize(16), ({
|
|
173
169
|
isPlaceholder
|
|
174
170
|
}) => {
|
|
175
171
|
if (isPlaceholder) {
|
|
@@ -179,10 +175,10 @@ export const IconWrapper = styled.div`
|
|
|
179
175
|
} else {
|
|
180
176
|
return '';
|
|
181
177
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
}, {
|
|
179
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
180
|
+
});
|
|
181
|
+
export const TextWrapper = styled.div(({
|
|
186
182
|
isPlaceholder
|
|
187
183
|
}) => {
|
|
188
184
|
if (isPlaceholder) {
|
|
@@ -195,14 +191,18 @@ export const TextWrapper = styled.div`
|
|
|
195
191
|
} else {
|
|
196
192
|
return '';
|
|
197
193
|
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
194
|
+
}, {
|
|
195
|
+
color: `var(--ds-text-subtlest, ${colors.N300})`,
|
|
196
|
+
fontSize: '12px',
|
|
197
|
+
lineHeight: '16px'
|
|
198
|
+
}, ellipsis('none'));
|
|
199
|
+
export const TooltipWrapper = styled.div({
|
|
200
|
+
overflow: 'hidden'
|
|
201
|
+
});
|
|
203
202
|
// NB: `overflow` is kept as `hidden` since
|
|
204
203
|
// the internal contents of the `iframe` should
|
|
205
204
|
// manage scrolling behaviour.
|
|
205
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
206
206
|
export const Content = styled.div`
|
|
207
207
|
${contentBorderRadius};
|
|
208
208
|
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
@@ -241,88 +241,76 @@ export const Content = styled.div`
|
|
|
241
241
|
top: ${"var(--ds-space-400, 32px)"};
|
|
242
242
|
`}
|
|
243
243
|
`;
|
|
244
|
-
export const Image = styled.img
|
|
245
|
-
${({
|
|
244
|
+
export const Image = styled.img(({
|
|
246
245
|
size
|
|
247
|
-
}) => csssize(size)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
/* hide the alt text when the image cannot be found */
|
|
251
|
-
overflow: hidden;
|
|
252
|
-
`;
|
|
246
|
+
}) => csssize(size), borderRadius, {
|
|
247
|
+
overflow: 'hidden'
|
|
248
|
+
});
|
|
253
249
|
export const maxAvatarCount = 6;
|
|
254
|
-
export const ContentWrapper = styled.div
|
|
255
|
-
display: flex
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
padding:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
${ellipsis('100%')};
|
|
276
|
-
`;
|
|
250
|
+
export const ContentWrapper = styled.div({
|
|
251
|
+
display: 'flex',
|
|
252
|
+
flexDirection: 'row',
|
|
253
|
+
boxSizing: 'border-box',
|
|
254
|
+
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`
|
|
255
|
+
});
|
|
256
|
+
export const Title = styled.div({
|
|
257
|
+
color: `var(--ds-text, ${colors.N900})`,
|
|
258
|
+
fontSize: '16px',
|
|
259
|
+
fontWeight: 500,
|
|
260
|
+
lineHeight: 20 / 16,
|
|
261
|
+
maxHeight: `${20 * 4}px`,
|
|
262
|
+
overflow: 'hidden'
|
|
263
|
+
});
|
|
264
|
+
export const Byline = styled.div({
|
|
265
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
266
|
+
color: `var(--ds-text-subtlest, ${colors.N300})`,
|
|
267
|
+
fontSize: '12px',
|
|
268
|
+
fontWeight: 'normal',
|
|
269
|
+
lineHeight: 16 / 12
|
|
270
|
+
}, ellipsis('100%'));
|
|
277
271
|
|
|
278
272
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
279
|
-
export const Description = styled.div
|
|
280
|
-
|
|
281
|
-
color:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
overflow: hidden
|
|
287
|
-
|
|
288
|
-
export const ResolvedViewIconWrapper = styled.div
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
export const Thumbnail = styled.div
|
|
292
|
-
|
|
293
|
-
${
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
export const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
margin-top: ${"var(--ds-space-050, 4px)"};
|
|
273
|
+
export const Description = styled.div({
|
|
274
|
+
marginTop: '7px',
|
|
275
|
+
color: `var(--ds-text, ${colors.N800})`,
|
|
276
|
+
fontSize: '12px',
|
|
277
|
+
fontWeight: 'normal',
|
|
278
|
+
lineHeight: 18 / 12,
|
|
279
|
+
maxHeight: `${18 * 3}px`,
|
|
280
|
+
overflow: 'hidden'
|
|
281
|
+
});
|
|
282
|
+
export const ResolvedViewIconWrapper = styled.div({
|
|
283
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
284
|
+
});
|
|
285
|
+
export const Thumbnail = styled.div(borderRadius, csssize(48), {
|
|
286
|
+
float: 'right',
|
|
287
|
+
margin: `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
288
|
+
backgroundColor: `var(--ds-skeleton, ${colors.N30})`,
|
|
289
|
+
backgroundImage: `url(${({
|
|
290
|
+
src
|
|
291
|
+
}) => src})`,
|
|
292
|
+
backgroundSize: 'cover'
|
|
293
|
+
});
|
|
294
|
+
export const UsersWrapper = styled.div({
|
|
295
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
296
|
+
});
|
|
297
|
+
export const ActionsWrapper = styled.div({
|
|
298
|
+
marginTop: "var(--ds-space-100, 8px)",
|
|
299
|
+
textAlign: 'right',
|
|
300
|
+
'> *': {
|
|
301
|
+
marginTop: "var(--ds-space-050, 4px)"
|
|
302
|
+
},
|
|
303
|
+
'> * + *': {
|
|
304
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
312
305
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
overflow: hidden;
|
|
325
|
-
pointer-events: none;
|
|
326
|
-
/* z-index has to be 1 higher than the number of avatars in the avatar stack */
|
|
327
|
-
z-index: ${maxAvatarCount + 1};
|
|
328
|
-
`;
|
|
306
|
+
});
|
|
307
|
+
export const AlertWrapper = styled.div({
|
|
308
|
+
position: 'absolute',
|
|
309
|
+
top: 0,
|
|
310
|
+
right: 0,
|
|
311
|
+
bottom: 0,
|
|
312
|
+
left: 0,
|
|
313
|
+
overflow: 'hidden',
|
|
314
|
+
pointerEvents: 'none',
|
|
315
|
+
zIndex: maxAvatarCount + 1
|
|
316
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
|
|
3
|
+
const AIEventErrorViewed = () => {
|
|
4
|
+
const {
|
|
5
|
+
fireEvent
|
|
6
|
+
} = useAnalyticsEvents();
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
fireEvent('ui.error.viewed.aiSummary', {});
|
|
9
|
+
}, [fireEvent]);
|
|
10
|
+
return null;
|
|
11
|
+
};
|
|
12
|
+
export default AIEventErrorViewed;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
|
|
3
|
+
const AIEventSummaryViewed = ({
|
|
4
|
+
fromCache
|
|
5
|
+
}) => {
|
|
6
|
+
const {
|
|
7
|
+
fireEvent
|
|
8
|
+
} = useAnalyticsEvents();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
fireEvent('ui.summary.viewed', {
|
|
11
|
+
fromCache
|
|
12
|
+
});
|
|
13
|
+
}, [fireEvent, fromCache]);
|
|
14
|
+
return null;
|
|
15
|
+
};
|
|
16
|
+
export default AIEventSummaryViewed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,9 @@ import { useAISummary } from '../../../../../../state/hooks/use-ai-summary';
|
|
|
13
13
|
import { useFlexibleUiContext } from '../../../../../../state/flexible-ui-context';
|
|
14
14
|
import AIIcon from '../../../../../common/ai-icon';
|
|
15
15
|
import AISummary from '../../../../../common/ai-summary';
|
|
16
|
+
import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
|
|
17
|
+
import AIEventSummaryViewed from '../ai-event-summary-viewed';
|
|
18
|
+
import AIEventErrorViewed from '../ai-event-error-viewed';
|
|
16
19
|
const AISummaryBlockResolvedView = props => {
|
|
17
20
|
const {
|
|
18
21
|
actions = [],
|
|
@@ -23,6 +26,9 @@ const AISummaryBlockResolvedView = props => {
|
|
|
23
26
|
testId
|
|
24
27
|
} = props;
|
|
25
28
|
const [aiState, setAIState] = useState('ready');
|
|
29
|
+
const {
|
|
30
|
+
fireEvent
|
|
31
|
+
} = useAnalyticsEvents();
|
|
26
32
|
const metadataElements = renderElementItems(metadata);
|
|
27
33
|
const context = useFlexibleUiContext();
|
|
28
34
|
const url = (context === null || context === void 0 ? void 0 : context.url) || '';
|
|
@@ -37,11 +43,12 @@ const AISummaryBlockResolvedView = props => {
|
|
|
37
43
|
isSummarisedOnMount
|
|
38
44
|
} = aiSummary;
|
|
39
45
|
const onAIActionClick = useCallback(() => {
|
|
46
|
+
fireEvent('ui.button.clicked.aiSummary', {});
|
|
40
47
|
setAIState('loading');
|
|
41
48
|
if (onAIActionChange) {
|
|
42
49
|
onAIActionChange('loading');
|
|
43
50
|
}
|
|
44
|
-
}, [onAIActionChange]);
|
|
51
|
+
}, [onAIActionChange, fireEvent]);
|
|
45
52
|
const combinedActions = useMemo(() => {
|
|
46
53
|
if (aiState === 'ready') {
|
|
47
54
|
const aiAction = {
|
|
@@ -67,6 +74,8 @@ const AISummaryBlockResolvedView = props => {
|
|
|
67
74
|
return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
68
75
|
direction: SmartLinkDirection.Vertical,
|
|
69
76
|
testId: `${testId}-resolved-view`
|
|
77
|
+
}), status === 'done' && /*#__PURE__*/React.createElement(AIEventSummaryViewed, {
|
|
78
|
+
fromCache: isSummarisedOnMount
|
|
70
79
|
}), /*#__PURE__*/React.createElement(AISummary, {
|
|
71
80
|
content: content,
|
|
72
81
|
showIcon: isSummarisedOnMount
|
|
@@ -88,7 +97,7 @@ const AISummaryBlockResolvedView = props => {
|
|
|
88
97
|
size: size
|
|
89
98
|
}))), status === 'error' && /*#__PURE__*/React.createElement(Inline, {
|
|
90
99
|
grow: "fill"
|
|
91
|
-
}, /*#__PURE__*/React.createElement(AIStateIndicator, {
|
|
100
|
+
}, /*#__PURE__*/React.createElement(AIEventErrorViewed, null), /*#__PURE__*/React.createElement(AIStateIndicator, {
|
|
92
101
|
state: status,
|
|
93
102
|
testId: testId
|
|
94
103
|
})));
|
|
@@ -88,7 +88,6 @@ const importIcon = importFn => {
|
|
|
88
88
|
loading: () => null
|
|
89
89
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
90
90
|
};
|
|
91
|
-
|
|
92
91
|
const AtlaskitIcon = ({
|
|
93
92
|
icon,
|
|
94
93
|
label,
|
|
@@ -123,7 +122,6 @@ const AtlaskitIcon = ({
|
|
|
123
122
|
iconGradientStop: B200
|
|
124
123
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
125
124
|
});
|
|
126
|
-
|
|
127
125
|
case IconType.Jira:
|
|
128
126
|
// Logo component has a different prop set from other icon components
|
|
129
127
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
@@ -135,7 +133,6 @@ const AtlaskitIcon = ({
|
|
|
135
133
|
iconGradientStop: B200
|
|
136
134
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
137
135
|
});
|
|
138
|
-
|
|
139
136
|
case IconType.Error:
|
|
140
137
|
case IconType.Forbidden:
|
|
141
138
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "26.49.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -5,7 +5,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
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); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
10
10
|
export var BaseCardPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
11
11
|
_inherits(BaseCardPageObject, _InProductTestPageObj);
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { BaseCardPageObject } from './BaseCard';
|
|
9
9
|
export var BlockCardPageObject = /*#__PURE__*/function (_BaseCardPageObject) {
|
|
10
10
|
_inherits(BlockCardPageObject, _BaseCardPageObject);
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { BaseCardPageObject } from './BaseCard';
|
|
9
9
|
export var EmbedCardPageObject = /*#__PURE__*/function (_BaseCardPageObject) {
|
|
10
10
|
_inherits(EmbedCardPageObject, _BaseCardPageObject);
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { BaseCardPageObject } from './BaseCard';
|
|
9
9
|
export var InlineCardPageObject = /*#__PURE__*/function (_BaseCardPageObject) {
|
|
10
10
|
_inherits(InlineCardPageObject, _BaseCardPageObject);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var EVENT_CHANNEL = 'media';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/**
|
|
3
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
4
|
+
*
|
|
5
|
+
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
6
|
+
*
|
|
7
|
+
* @codegen <<SignedSource::0d08fdca953a1eb1130683499e509165>>
|
|
8
|
+
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var createEventPayload = function createEventPayload(eventKey) {
|
|
12
|
+
for (var _len = arguments.length, _ref = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
13
|
+
_ref[_key - 1] = arguments[_key];
|
|
14
|
+
}
|
|
15
|
+
var attributes = _ref[0];
|
|
16
|
+
var _eventKey$split = eventKey.split('.'),
|
|
17
|
+
_eventKey$split2 = _slicedToArray(_eventKey$split, 4),
|
|
18
|
+
eventType = _eventKey$split2[0],
|
|
19
|
+
actionSubject = _eventKey$split2[1],
|
|
20
|
+
action = _eventKey$split2[2],
|
|
21
|
+
actionSubjectId = _eventKey$split2[3];
|
|
22
|
+
if (eventType === 'screen') {
|
|
23
|
+
return {
|
|
24
|
+
eventType: eventType,
|
|
25
|
+
name: actionSubject,
|
|
26
|
+
action: 'viewed',
|
|
27
|
+
attributes: attributes
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
eventType: eventType,
|
|
32
|
+
actionSubject: actionSubject,
|
|
33
|
+
action: action,
|
|
34
|
+
actionSubjectId: actionSubjectId,
|
|
35
|
+
attributes: attributes
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default createEventPayload;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::5fbe35afe0479810b090b1746dd1ae71>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
|
+
*/
|
|
9
|
+
import { useCallback } from 'react';
|
|
10
|
+
import { useAnalyticsEvents as useAnalyticsNextEvents } from '@atlaskit/analytics-next';
|
|
11
|
+
import { EVENT_CHANNEL } from '../constants';
|
|
12
|
+
import createEventPayload from './create-event-payload';
|
|
13
|
+
export var useAnalyticsEvents = function useAnalyticsEvents() {
|
|
14
|
+
var _useAnalyticsNextEven = useAnalyticsNextEvents(),
|
|
15
|
+
createAnalyticsEvent = _useAnalyticsNextEven.createAnalyticsEvent;
|
|
16
|
+
var fireEvent = useCallback(function () {
|
|
17
|
+
var event = createAnalyticsEvent(createEventPayload.apply(void 0, arguments));
|
|
18
|
+
event.fire(EVENT_CHANNEL);
|
|
19
|
+
}, [createAnalyticsEvent]);
|
|
20
|
+
return {
|
|
21
|
+
fireEvent: fireEvent
|
|
22
|
+
};
|
|
23
|
+
};
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -11,6 +11,9 @@ export default {
|
|
|
11
11
|
'fabric.linking.actions': '操作',
|
|
12
12
|
'fabric.linking.add_account': '添加帐户',
|
|
13
13
|
'fabric.linking.ai_summarize': '汇总',
|
|
14
|
+
'fabric.linking.ai_summarized': '由 Atlassian Intelligence 汇总',
|
|
15
|
+
'fabric.linking.ai_summarized_info': '信息质量可能有所不同。<a>了解更多</a>',
|
|
16
|
+
'fabric.linking.ai_summarizing': 'Atlassian Intelligence 正在运行...',
|
|
14
17
|
'fabric.linking.assigned_to': '已分配给 {context}',
|
|
15
18
|
'fabric.linking.cancel': '取消',
|
|
16
19
|
'fabric.linking.cannot_connect': '无法连接,请重试',
|
|
@@ -35,6 +38,7 @@ export default {
|
|
|
35
38
|
'fabric.linking.create_on_relative': '创建时间:{context}',
|
|
36
39
|
'fabric.linking.created_by': '创建者:{context}',
|
|
37
40
|
'fabric.linking.delete': '删除',
|
|
41
|
+
'fabric.linking.direct_access': '立即加入',
|
|
38
42
|
'fabric.linking.direct_access_description': '您的团队使用 {product} 进行协作,而您可以立即开始使用该产品!',
|
|
39
43
|
'fabric.linking.direct_access_title': '加入 {product} 即可查看此内容',
|
|
40
44
|
'fabric.linking.download': '下载',
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "
|
|
18
|
+
packageVersion: "26.49.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/mocks.js
CHANGED
|
@@ -7,7 +7,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
9
|
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); }; }
|
|
10
|
-
function _isNativeReflectConstruct() {
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
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; }
|
|
12
12
|
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; }
|
|
13
13
|
import { CardClient } from '@atlaskit/link-provider';
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
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); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
10
|
import { CardWithDataRenderer } from '../CardWithData/loader';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
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); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
11
11
|
import { extractInlineProps } from '../../extractors/inline';
|
|
@@ -5,7 +5,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
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); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
export var CardWithDataRenderer = /*#__PURE__*/function (_React$PureComponent) {
|
|
11
11
|
_inherits(CardWithDataRenderer, _React$PureComponent);
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
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); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { embedHeaderHeight } from './components/styled';
|
|
12
12
|
export var EmbedResizeMessageListener = /*#__PURE__*/function (_React$Component) {
|