@atlaskit/smart-card 32.7.0 → 32.7.2
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/analytics.spec.yaml +63 -9
- package/dist/cjs/classNames.js +14 -82
- package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +53 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +57 -0
- package/dist/cjs/extractors/action/extract-invoke-preview-action.js +78 -0
- package/dist/cjs/extractors/action/extract-invoke-view-action.js +60 -0
- package/dist/cjs/extractors/action/extractDownloadActionProps.js +4 -0
- package/dist/cjs/extractors/action/extractPreviewActionProps.js +4 -0
- package/dist/cjs/extractors/action/extractViewActionProps.js +4 -0
- package/dist/cjs/extractors/common/actions/extractActions.js +1 -67
- package/dist/cjs/extractors/flexible/actions/extract-copy-link-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-view-action.js +3 -0
- package/dist/cjs/extractors/flexible/actions/index.js +40 -3
- package/dist/cjs/extractors/flexible/extract-state.js +19 -5
- package/dist/cjs/extractors/flexible/index.js +22 -8
- package/dist/cjs/i18n/cs.js +2 -4
- package/dist/cjs/i18n/da.js +2 -4
- package/dist/cjs/i18n/de.js +2 -4
- package/dist/cjs/i18n/en.js +2 -4
- package/dist/cjs/i18n/en_GB.js +2 -4
- package/dist/cjs/i18n/en_ZZ.js +2 -4
- package/dist/cjs/i18n/es.js +8 -10
- package/dist/cjs/i18n/fi.js +5 -7
- package/dist/cjs/i18n/fr.js +2 -4
- package/dist/cjs/i18n/hu.js +2 -4
- package/dist/cjs/i18n/it.js +2 -4
- package/dist/cjs/i18n/ja.js +8 -10
- package/dist/cjs/i18n/ko.js +2 -4
- package/dist/cjs/i18n/nb.js +2 -4
- package/dist/cjs/i18n/nl.js +2 -4
- package/dist/cjs/i18n/pl.js +2 -4
- package/dist/cjs/i18n/pt_BR.js +2 -4
- package/dist/cjs/i18n/ru.js +2 -4
- package/dist/cjs/i18n/sv.js +2 -4
- package/dist/cjs/i18n/th.js +2 -4
- package/dist/cjs/i18n/tr.js +8 -10
- package/dist/cjs/i18n/uk.js +2 -4
- package/dist/cjs/i18n/vi.js +2 -4
- package/dist/cjs/i18n/zh.js +2 -4
- package/dist/cjs/i18n/zh_TW.js +2 -4
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +56 -17
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +22 -3
- package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +7 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/mocks.js +4 -1
- package/dist/cjs/view/BlockCard/components/Action.js +1 -58
- package/dist/cjs/view/BlockCard/index.js +29 -218
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/cjs/view/CardWithUrl/component.js +2 -5
- package/dist/cjs/view/EmbedModal/index.js +72 -51
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
- package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +36 -28
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
- package/dist/cjs/view/FlexibleCard/components/utils.js +4 -0
- package/dist/cjs/view/FlexibleCard/index.js +11 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/classNames.js +12 -10
- package/dist/es2019/extractors/action/extract-invoke-copy-link-action.js +29 -0
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +31 -0
- package/dist/es2019/extractors/action/extract-invoke-preview-action.js +57 -0
- package/dist/es2019/extractors/action/extract-invoke-view-action.js +34 -0
- package/dist/es2019/extractors/action/extractDownloadActionProps.js +5 -0
- package/dist/es2019/extractors/action/extractPreviewActionProps.js +5 -0
- package/dist/es2019/extractors/action/extractViewActionProps.js +5 -0
- package/dist/es2019/extractors/common/actions/extractActions.js +1 -55
- package/dist/es2019/extractors/flexible/actions/extract-copy-link-action.js +11 -0
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +12 -0
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +12 -0
- package/dist/es2019/extractors/flexible/actions/extract-view-action.js +4 -0
- package/dist/es2019/extractors/flexible/actions/index.js +48 -3
- package/dist/es2019/extractors/flexible/extract-state.js +17 -5
- package/dist/es2019/extractors/flexible/index.js +17 -6
- package/dist/es2019/i18n/cs.js +2 -4
- package/dist/es2019/i18n/da.js +2 -4
- package/dist/es2019/i18n/de.js +2 -4
- package/dist/es2019/i18n/en.js +2 -4
- package/dist/es2019/i18n/en_GB.js +2 -4
- package/dist/es2019/i18n/en_ZZ.js +2 -4
- package/dist/es2019/i18n/es.js +8 -10
- package/dist/es2019/i18n/fi.js +5 -7
- package/dist/es2019/i18n/fr.js +2 -4
- package/dist/es2019/i18n/hu.js +2 -4
- package/dist/es2019/i18n/it.js +2 -4
- package/dist/es2019/i18n/ja.js +8 -10
- package/dist/es2019/i18n/ko.js +2 -4
- package/dist/es2019/i18n/nb.js +2 -4
- package/dist/es2019/i18n/nl.js +2 -4
- package/dist/es2019/i18n/pl.js +2 -4
- package/dist/es2019/i18n/pt_BR.js +2 -4
- package/dist/es2019/i18n/ru.js +2 -4
- package/dist/es2019/i18n/sv.js +2 -4
- package/dist/es2019/i18n/th.js +2 -4
- package/dist/es2019/i18n/tr.js +8 -10
- package/dist/es2019/i18n/uk.js +2 -4
- package/dist/es2019/i18n/vi.js +2 -4
- package/dist/es2019/i18n/zh.js +2 -4
- package/dist/es2019/i18n/zh_TW.js +2 -4
- package/dist/es2019/state/hooks/use-invoke-client-action/index.js +91 -43
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +21 -3
- package/dist/es2019/utils/analytics/LinkAnalyticsContext.js +3 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/mocks.js +4 -1
- package/dist/es2019/view/BlockCard/components/Action.js +1 -48
- package/dist/es2019/view/BlockCard/index.js +27 -163
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/es2019/view/CardWithUrl/component.js +2 -5
- package/dist/es2019/view/EmbedModal/index.js +41 -20
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +31 -16
- package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +20 -12
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +25 -17
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +14 -7
- package/dist/es2019/view/FlexibleCard/components/utils.js +4 -0
- package/dist/es2019/view/FlexibleCard/index.js +12 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/classNames.js +12 -10
- package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +46 -0
- package/dist/esm/extractors/action/extract-invoke-download-action.js +50 -0
- package/dist/esm/extractors/action/extract-invoke-preview-action.js +71 -0
- package/dist/esm/extractors/action/extract-invoke-view-action.js +53 -0
- package/dist/esm/extractors/action/extractDownloadActionProps.js +5 -0
- package/dist/esm/extractors/action/extractPreviewActionProps.js +5 -0
- package/dist/esm/extractors/action/extractViewActionProps.js +5 -0
- package/dist/esm/extractors/common/actions/extractActions.js +1 -65
- package/dist/esm/extractors/flexible/actions/extract-copy-link-action.js +11 -0
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +12 -0
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +12 -0
- package/dist/esm/extractors/flexible/actions/extract-view-action.js +4 -0
- package/dist/esm/extractors/flexible/actions/index.js +42 -5
- package/dist/esm/extractors/flexible/extract-state.js +19 -5
- package/dist/esm/extractors/flexible/index.js +19 -8
- package/dist/esm/i18n/cs.js +2 -4
- package/dist/esm/i18n/da.js +2 -4
- package/dist/esm/i18n/de.js +2 -4
- package/dist/esm/i18n/en.js +2 -4
- package/dist/esm/i18n/en_GB.js +2 -4
- package/dist/esm/i18n/en_ZZ.js +2 -4
- package/dist/esm/i18n/es.js +8 -10
- package/dist/esm/i18n/fi.js +5 -7
- package/dist/esm/i18n/fr.js +2 -4
- package/dist/esm/i18n/hu.js +2 -4
- package/dist/esm/i18n/it.js +2 -4
- package/dist/esm/i18n/ja.js +8 -10
- package/dist/esm/i18n/ko.js +2 -4
- package/dist/esm/i18n/nb.js +2 -4
- package/dist/esm/i18n/nl.js +2 -4
- package/dist/esm/i18n/pl.js +2 -4
- package/dist/esm/i18n/pt_BR.js +2 -4
- package/dist/esm/i18n/ru.js +2 -4
- package/dist/esm/i18n/sv.js +2 -4
- package/dist/esm/i18n/th.js +2 -4
- package/dist/esm/i18n/tr.js +8 -10
- package/dist/esm/i18n/uk.js +2 -4
- package/dist/esm/i18n/vi.js +2 -4
- package/dist/esm/i18n/zh.js +2 -4
- package/dist/esm/i18n/zh_TW.js +2 -4
- package/dist/esm/state/hooks/use-invoke-client-action/index.js +56 -17
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +22 -3
- package/dist/esm/utils/analytics/LinkAnalyticsContext.js +7 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +4 -1
- package/dist/esm/view/BlockCard/components/Action.js +1 -54
- package/dist/esm/view/BlockCard/index.js +29 -164
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/esm/view/CardWithUrl/component.js +2 -5
- package/dist/esm/view/EmbedModal/index.js +73 -52
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
- package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +36 -28
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
- package/dist/esm/view/FlexibleCard/components/utils.js +4 -0
- package/dist/esm/view/FlexibleCard/index.js +11 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/classNames.d.ts +12 -10
- package/dist/types/common/analytics/generated/analytics.types.d.ts +63 -2
- package/dist/types/common/analytics/types.d.ts +2 -0
- package/dist/types/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
- package/dist/types/extractors/action/extract-invoke-download-action.d.ts +3 -0
- package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +11 -0
- package/dist/types/extractors/action/extract-invoke-view-action.d.ts +3 -0
- package/dist/types/extractors/action/extractDownloadActionProps.d.ts +4 -0
- package/dist/types/extractors/action/extractPreviewActionProps.d.ts +5 -1
- package/dist/types/extractors/action/extractViewActionProps.d.ts +4 -0
- package/dist/types/extractors/action/types.d.ts +9 -0
- package/dist/types/extractors/common/actions/extractActions.d.ts +0 -8
- package/dist/types/extractors/common/actions/types.d.ts +0 -9
- package/dist/types/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-download-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-view-action.d.ts +3 -0
- package/dist/types/extractors/flexible/actions/index.d.ts +21 -4
- package/dist/types/extractors/flexible/extract-state.d.ts +5 -2
- package/dist/types/extractors/flexible/index.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +1 -3
- package/dist/types/i18n/da.d.ts +1 -3
- package/dist/types/i18n/de.d.ts +1 -3
- package/dist/types/i18n/en.d.ts +1 -3
- package/dist/types/i18n/en_GB.d.ts +1 -3
- package/dist/types/i18n/en_ZZ.d.ts +1 -3
- package/dist/types/i18n/es.d.ts +1 -3
- package/dist/types/i18n/fi.d.ts +1 -3
- package/dist/types/i18n/fr.d.ts +1 -3
- package/dist/types/i18n/hu.d.ts +1 -3
- package/dist/types/i18n/it.d.ts +1 -3
- package/dist/types/i18n/ja.d.ts +1 -3
- package/dist/types/i18n/ko.d.ts +1 -3
- package/dist/types/i18n/nb.d.ts +1 -3
- package/dist/types/i18n/nl.d.ts +1 -3
- package/dist/types/i18n/pl.d.ts +1 -3
- package/dist/types/i18n/pt_BR.d.ts +1 -3
- package/dist/types/i18n/ru.d.ts +1 -3
- package/dist/types/i18n/sv.d.ts +1 -3
- package/dist/types/i18n/th.d.ts +1 -3
- package/dist/types/i18n/tr.d.ts +1 -3
- package/dist/types/i18n/uk.d.ts +1 -3
- package/dist/types/i18n/vi.d.ts +1 -3
- package/dist/types/i18n/zh.d.ts +1 -3
- package/dist/types/i18n/zh_TW.d.ts +1 -3
- package/dist/types/state/flexible-ui-context/types.d.ts +9 -3
- package/dist/types/state/hooks/use-invoke/types.d.ts +7 -1
- package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +2 -2
- package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +24 -2
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -0
- package/dist/types/utils/analytics/click.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Action.d.ts +0 -4
- package/dist/types/view/BlockCard/index.d.ts +2 -17
- package/dist/types/view/BlockCard/types.d.ts +1 -6
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/EmbedModal/index.d.ts +4 -0
- package/dist/types/view/EmbedModal/types.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/utils.d.ts +4 -1
- package/dist/types/view/FlexibleCard/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +12 -3
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types-ts4.5/classNames.d.ts +12 -10
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +63 -2
- package/dist/types-ts4.5/common/analytics/types.d.ts +2 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-download-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +11 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-view-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extractDownloadActionProps.d.ts +4 -0
- package/dist/types-ts4.5/extractors/action/extractPreviewActionProps.d.ts +5 -1
- package/dist/types-ts4.5/extractors/action/extractViewActionProps.d.ts +4 -0
- package/dist/types-ts4.5/extractors/action/types.d.ts +9 -0
- package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +0 -8
- package/dist/types-ts4.5/extractors/common/actions/types.d.ts +0 -9
- package/dist/types-ts4.5/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-download-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-view-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +21 -4
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +5 -2
- package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -3
- package/dist/types-ts4.5/i18n/da.d.ts +1 -3
- package/dist/types-ts4.5/i18n/de.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -3
- package/dist/types-ts4.5/i18n/es.d.ts +1 -3
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -3
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -3
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -3
- package/dist/types-ts4.5/i18n/it.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -3
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -3
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -3
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -3
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -3
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -3
- package/dist/types-ts4.5/i18n/th.d.ts +1 -3
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -3
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -3
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -3
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -3
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -3
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +9 -3
- package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +7 -1
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +24 -2
- package/dist/types-ts4.5/state/hooks/use-resolve/index.d.ts +1 -0
- package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/index.d.ts +2 -17
- package/dist/types-ts4.5/view/BlockCard/types.d.ts +1 -6
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/index.d.ts +8 -0
- package/dist/types-ts4.5/view/EmbedModal/types.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +4 -1
- package/dist/types-ts4.5/view/FlexibleCard/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +12 -3
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/package.json +4 -1
- package/dist/cjs/extractors/block/index.js +0 -96
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +0 -106
- package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +0 -22
- package/dist/cjs/view/BlockCard/actions/DownloadAction.js +0 -21
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +0 -35
- package/dist/cjs/view/BlockCard/actions/RetryAction.js +0 -35
- package/dist/cjs/view/BlockCard/actions/ViewAction.js +0 -21
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +0 -57
- package/dist/cjs/view/BlockCard/components/ActionList.js +0 -78
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +0 -52
- package/dist/cjs/view/BlockCard/components/Content.js +0 -45
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +0 -41
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +0 -45
- package/dist/cjs/view/BlockCard/components/Emoji.js +0 -33
- package/dist/cjs/view/BlockCard/components/Link.js +0 -31
- package/dist/cjs/view/BlockCard/components/Name.js +0 -61
- package/dist/cjs/view/BlockCard/components/Provider.js +0 -57
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +0 -62
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +0 -24
- package/dist/cjs/view/BlockCard/views/ErroredView.js +0 -91
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +0 -121
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +0 -82
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +0 -143
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +0 -57
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +0 -72
- package/dist/cjs/view/BlockCard/views/styled.js +0 -18
- package/dist/cjs/view/CardWithData/component.js +0 -66
- package/dist/cjs/view/CardWithData/types.js +0 -5
- package/dist/cjs/view/common/Byline.js +0 -52
- package/dist/cjs/view/common/Metadata.js +0 -56
- package/dist/cjs/view/common/MetadataList.js +0 -43
- package/dist/es2019/extractors/block/index.js +0 -86
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +0 -91
- package/dist/es2019/view/BlockCard/actions/AuthorizeAction.js +0 -9
- package/dist/es2019/view/BlockCard/actions/DownloadAction.js +0 -11
- package/dist/es2019/view/BlockCard/actions/PreviewAction.js +0 -23
- package/dist/es2019/view/BlockCard/actions/RetryAction.js +0 -8
- package/dist/es2019/view/BlockCard/actions/ViewAction.js +0 -11
- package/dist/es2019/view/BlockCard/components/ActionIcon.js +0 -51
- package/dist/es2019/view/BlockCard/components/ActionList.js +0 -63
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +0 -42
- package/dist/es2019/view/BlockCard/components/Content.js +0 -36
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +0 -32
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +0 -39
- package/dist/es2019/view/BlockCard/components/Emoji.js +0 -26
- package/dist/es2019/view/BlockCard/components/Link.js +0 -24
- package/dist/es2019/view/BlockCard/components/Name.js +0 -54
- package/dist/es2019/view/BlockCard/components/Provider.js +0 -51
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +0 -58
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +0 -18
- package/dist/es2019/view/BlockCard/views/ErroredView.js +0 -78
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +0 -104
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +0 -71
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +0 -121
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +0 -46
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +0 -60
- package/dist/es2019/view/BlockCard/views/styled.js +0 -10
- package/dist/es2019/view/CardWithData/component.js +0 -43
- package/dist/es2019/view/common/Byline.js +0 -44
- package/dist/es2019/view/common/Metadata.js +0 -49
- package/dist/es2019/view/common/MetadataList.js +0 -34
- package/dist/esm/extractors/block/index.js +0 -89
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +0 -99
- package/dist/esm/state/reducers/types.js +0 -1
- package/dist/esm/view/BlockCard/actions/AuthorizeAction.js +0 -15
- package/dist/esm/view/BlockCard/actions/DownloadAction.js +0 -14
- package/dist/esm/view/BlockCard/actions/PreviewAction.js +0 -30
- package/dist/esm/view/BlockCard/actions/RetryAction.js +0 -28
- package/dist/esm/view/BlockCard/actions/ViewAction.js +0 -14
- package/dist/esm/view/BlockCard/components/ActionIcon.js +0 -50
- package/dist/esm/view/BlockCard/components/ActionList.js +0 -69
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +0 -44
- package/dist/esm/view/BlockCard/components/Content.js +0 -38
- package/dist/esm/view/BlockCard/components/ContentFooter.js +0 -34
- package/dist/esm/view/BlockCard/components/ContentHeader.js +0 -38
- package/dist/esm/view/BlockCard/components/Emoji.js +0 -25
- package/dist/esm/view/BlockCard/components/Link.js +0 -24
- package/dist/esm/view/BlockCard/components/Name.js +0 -54
- package/dist/esm/view/BlockCard/components/Provider.js +0 -50
- package/dist/esm/view/BlockCard/components/Thumbnail.js +0 -57
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +0 -17
- package/dist/esm/view/BlockCard/views/ErroredView.js +0 -87
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +0 -113
- package/dist/esm/view/BlockCard/views/NotFoundView.js +0 -78
- package/dist/esm/view/BlockCard/views/ResolvedView.js +0 -135
- package/dist/esm/view/BlockCard/views/ResolvingView.js +0 -49
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +0 -68
- package/dist/esm/view/BlockCard/views/styled.js +0 -10
- package/dist/esm/view/CardWithData/component.js +0 -59
- package/dist/esm/view/CardWithData/types.js +0 -1
- package/dist/esm/view/common/Byline.js +0 -45
- package/dist/esm/view/common/Metadata.js +0 -48
- package/dist/esm/view/common/MetadataList.js +0 -35
- package/dist/types/extractors/block/index.d.ts +0 -10
- package/dist/types/extractors/block/types.d.ts +0 -13
- package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +0 -14
- package/dist/types/state/reducers/types.d.ts +0 -4
- package/dist/types/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types/view/BlockCard/actions/DownloadAction.d.ts +0 -4
- package/dist/types/view/BlockCard/actions/PreviewAction.d.ts +0 -27
- package/dist/types/view/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types/view/BlockCard/actions/ViewAction.d.ts +0 -4
- package/dist/types/view/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types/view/BlockCard/components/ActionList.d.ts +0 -10
- package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +0 -18
- package/dist/types/view/BlockCard/components/Content.d.ts +0 -18
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +0 -12
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +0 -19
- package/dist/types/view/BlockCard/components/Emoji.d.ts +0 -10
- package/dist/types/view/BlockCard/components/Link.d.ts +0 -11
- package/dist/types/view/BlockCard/components/Name.d.ts +0 -21
- package/dist/types/view/BlockCard/components/Provider.d.ts +0 -11
- package/dist/types/view/BlockCard/components/Thumbnail.d.ts +0 -13
- package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +0 -11
- package/dist/types/view/BlockCard/views/ErroredView.d.ts +0 -19
- package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +0 -35
- package/dist/types/view/BlockCard/views/NotFoundView.d.ts +0 -26
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +0 -46
- package/dist/types/view/BlockCard/views/ResolvingView.d.ts +0 -18
- package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
- package/dist/types/view/BlockCard/views/styled.d.ts +0 -5
- package/dist/types/view/CardWithData/component.d.ts +0 -5
- package/dist/types/view/CardWithData/types.d.ts +0 -15
- package/dist/types/view/common/Byline.d.ts +0 -13
- package/dist/types/view/common/Metadata.d.ts +0 -13
- package/dist/types/view/common/MetadataList.d.ts +0 -12
- package/dist/types-ts4.5/extractors/block/index.d.ts +0 -10
- package/dist/types-ts4.5/extractors/block/types.d.ts +0 -13
- package/dist/types-ts4.5/extractors/common/actions/extractPreviewAction.d.ts +0 -14
- package/dist/types-ts4.5/state/reducers/types.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types-ts4.5/view/BlockCard/actions/DownloadAction.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/actions/PreviewAction.d.ts +0 -27
- package/dist/types-ts4.5/view/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types-ts4.5/view/BlockCard/actions/ViewAction.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types-ts4.5/view/BlockCard/components/ActionList.d.ts +0 -10
- package/dist/types-ts4.5/view/BlockCard/components/CollaboratorList.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/components/Content.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +0 -12
- package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/components/Emoji.d.ts +0 -10
- package/dist/types-ts4.5/view/BlockCard/components/Link.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +0 -21
- package/dist/types-ts4.5/view/BlockCard/components/Provider.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/components/Thumbnail.d.ts +0 -13
- package/dist/types-ts4.5/view/BlockCard/components/UnresolvedText.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/views/ErroredView.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/views/ForbiddenView.d.ts +0 -35
- package/dist/types-ts4.5/view/BlockCard/views/NotFoundView.d.ts +0 -26
- package/dist/types-ts4.5/view/BlockCard/views/ResolvedView.d.ts +0 -46
- package/dist/types-ts4.5/view/BlockCard/views/ResolvingView.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/views/styled.d.ts +0 -5
- package/dist/types-ts4.5/view/CardWithData/component.d.ts +0 -5
- package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -15
- package/dist/types-ts4.5/view/common/Byline.d.ts +0 -13
- package/dist/types-ts4.5/view/common/Metadata.d.ts +0 -13
- package/dist/types-ts4.5/view/common/MetadataList.d.ts +0 -12
- /package/dist/cjs/{extractors/block → common/analytics}/types.js +0 -0
- /package/dist/cjs/{state/reducers → extractors/action}/types.js +0 -0
- /package/dist/es2019/{extractors/block → common/analytics}/types.js +0 -0
- /package/dist/es2019/{state/reducers → extractors/action}/types.js +0 -0
- /package/dist/{es2019/view/CardWithData → esm/common/analytics}/types.js +0 -0
- /package/dist/esm/extractors/{block → action}/types.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { extractLink } from '@atlaskit/link-extractors';
|
|
2
|
+
import { ActionName, CardAction } from '../../index';
|
|
3
|
+
import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/helpers';
|
|
4
|
+
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
5
|
+
export const extractInvokeCopyLinkAction = ({
|
|
6
|
+
actionOptions,
|
|
7
|
+
appearance,
|
|
8
|
+
id,
|
|
9
|
+
response
|
|
10
|
+
}) => {
|
|
11
|
+
if (!canShowAction(CardAction.CopyLinkAction, actionOptions)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const data = response.data;
|
|
15
|
+
const url = extractLink(data);
|
|
16
|
+
if (!url) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
actionFn: async () => navigator.clipboard.writeText(url),
|
|
21
|
+
actionSubjectId: 'copyLink',
|
|
22
|
+
actionType: ActionName.CopyLinkAction,
|
|
23
|
+
definitionId: getDefinitionId(response),
|
|
24
|
+
display: appearance,
|
|
25
|
+
extensionKey: getExtensionKey(response),
|
|
26
|
+
id,
|
|
27
|
+
resourceType: getResourceType(response)
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ActionName, CardAction } from '../../index';
|
|
2
|
+
import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/helpers';
|
|
3
|
+
import { downloadUrl as download } from '../../utils';
|
|
4
|
+
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
5
|
+
import { getActionsFromJsonLd } from '../common/actions/extractActions';
|
|
6
|
+
import { extractDownloadUrl } from '../common/detail';
|
|
7
|
+
export const extractInvokeDownloadAction = ({
|
|
8
|
+
actionOptions,
|
|
9
|
+
appearance,
|
|
10
|
+
id,
|
|
11
|
+
response
|
|
12
|
+
}) => {
|
|
13
|
+
if (!canShowAction(CardAction.DownloadAction, actionOptions)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const data = response.data;
|
|
17
|
+
const downloadActionExists = getActionsFromJsonLd(data).find(action => action['@type'] === 'DownloadAction');
|
|
18
|
+
if (downloadActionExists) {
|
|
19
|
+
const downloadUrl = extractDownloadUrl(data);
|
|
20
|
+
return {
|
|
21
|
+
actionFn: async () => download(downloadUrl),
|
|
22
|
+
actionSubjectId: 'downloadDocument',
|
|
23
|
+
actionType: ActionName.DownloadAction,
|
|
24
|
+
definitionId: getDefinitionId(response),
|
|
25
|
+
display: appearance,
|
|
26
|
+
extensionKey: getExtensionKey(response),
|
|
27
|
+
id,
|
|
28
|
+
resourceType: getResourceType(response)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { extractLink, extractPreview as extractPreviewData, extractProvider, extractTitle } from '@atlaskit/link-extractors';
|
|
2
|
+
import { ActionName, CardAction } from '../../index';
|
|
3
|
+
import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/helpers';
|
|
4
|
+
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
5
|
+
import { openEmbedModal } from '../../view/EmbedModal/utils';
|
|
6
|
+
import { extractIsSupportTheming } from '../common/meta/extractIsSupportTheming';
|
|
7
|
+
import { extractIsTrusted } from '../common/meta/extractIsTrusted';
|
|
8
|
+
import { extractLinkIcon } from '../flexible/icon';
|
|
9
|
+
import { extractInvokeDownloadAction } from './extract-invoke-download-action';
|
|
10
|
+
import { extractInvokeViewAction } from './extract-invoke-view-action';
|
|
11
|
+
export const extractInvokePreviewAction = param => {
|
|
12
|
+
var _extractPreviewData;
|
|
13
|
+
const {
|
|
14
|
+
actionOptions,
|
|
15
|
+
appearance: display,
|
|
16
|
+
fireEvent,
|
|
17
|
+
onClose,
|
|
18
|
+
id,
|
|
19
|
+
origin,
|
|
20
|
+
response
|
|
21
|
+
} = param;
|
|
22
|
+
if (!canShowAction(CardAction.PreviewAction, actionOptions)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const data = response.data;
|
|
26
|
+
const meta = response.meta;
|
|
27
|
+
const src = (_extractPreviewData = extractPreviewData(data, 'web')) === null || _extractPreviewData === void 0 ? void 0 : _extractPreviewData.src;
|
|
28
|
+
if (src) {
|
|
29
|
+
const url = extractLink(data);
|
|
30
|
+
return {
|
|
31
|
+
actionFn: async () => {
|
|
32
|
+
var _extractProvider;
|
|
33
|
+
return openEmbedModal({
|
|
34
|
+
fireEvent,
|
|
35
|
+
invokeDownloadAction: extractInvokeDownloadAction(param),
|
|
36
|
+
isSupportTheming: extractIsSupportTheming(meta),
|
|
37
|
+
isTrusted: extractIsTrusted(meta),
|
|
38
|
+
linkIcon: extractLinkIcon(response),
|
|
39
|
+
providerName: (_extractProvider = extractProvider(data)) === null || _extractProvider === void 0 ? void 0 : _extractProvider.text,
|
|
40
|
+
onClose,
|
|
41
|
+
origin,
|
|
42
|
+
src,
|
|
43
|
+
title: extractTitle(data),
|
|
44
|
+
url,
|
|
45
|
+
invokeViewAction: extractInvokeViewAction(param, true)
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
actionSubjectId: 'invokePreviewScreen',
|
|
49
|
+
actionType: ActionName.PreviewAction,
|
|
50
|
+
definitionId: getDefinitionId(response),
|
|
51
|
+
display,
|
|
52
|
+
extensionKey: getExtensionKey(response),
|
|
53
|
+
id,
|
|
54
|
+
resourceType: getResourceType(response)
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { extractLink } from '@atlaskit/link-extractors';
|
|
2
|
+
import { CardAction } from '../../index';
|
|
3
|
+
import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/helpers';
|
|
4
|
+
import { openUrl } from '../../utils';
|
|
5
|
+
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
6
|
+
import { getActionsFromJsonLd } from '../common/actions/extractActions';
|
|
7
|
+
export const extractInvokeViewAction = ({
|
|
8
|
+
actionOptions,
|
|
9
|
+
appearance,
|
|
10
|
+
id,
|
|
11
|
+
response
|
|
12
|
+
}, force) => {
|
|
13
|
+
if (!canShowAction(CardAction.ViewAction, actionOptions)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const data = response.data;
|
|
17
|
+
if (!data) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const url = extractLink(data);
|
|
21
|
+
const viewActionExists = getActionsFromJsonLd(data).find(action => action['@type'] === 'ViewAction');
|
|
22
|
+
if (url && (viewActionExists || force)) {
|
|
23
|
+
return {
|
|
24
|
+
actionFn: async () => openUrl(url),
|
|
25
|
+
actionSubjectId: 'shortcutGoToLink',
|
|
26
|
+
actionType: 'ViewAction',
|
|
27
|
+
definitionId: getDefinitionId(response),
|
|
28
|
+
display: appearance,
|
|
29
|
+
extensionKey: getExtensionKey(response),
|
|
30
|
+
id,
|
|
31
|
+
resourceType: getResourceType(response)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ActionName } from '../../constants';
|
|
2
2
|
import { downloadUrl } from '../../utils';
|
|
3
3
|
import { extractDownloadAction as extractDownloadActionData } from '../flexible/actions/extract-download-action';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
7
|
+
* Replace with platform/packages/linking-platform/smart-card/src/extractors/action/extract-invoke-download-action.ts
|
|
8
|
+
*/
|
|
4
9
|
export const extractDownloadActionProps = ({
|
|
5
10
|
response,
|
|
6
11
|
actionOptions,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ActionName } from '../../constants';
|
|
2
2
|
import { openEmbedModal } from '../../view/EmbedModal/utils';
|
|
3
3
|
import { extractPreviewAction as extractPreviewActionData } from '../flexible/actions/extract-preview-action';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
7
|
+
* Replaced with platform/packages/linking-platform/smart-card/src/extractors/action/extract-invoke-preview-action.ts
|
|
8
|
+
*/
|
|
4
9
|
export const extractPreviewActionProps = ({
|
|
5
10
|
response,
|
|
6
11
|
analytics,
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { openUrl } from '../../utils';
|
|
2
2
|
import { extractViewAction as extractViewActionData } from '../flexible/actions/extract-view-action';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
6
|
+
* Replace with platform/packages/linking-platform/smart-card/src/extractors/action/extract-invoke-view-action.ts
|
|
7
|
+
*/
|
|
3
8
|
export const extractViewActionProps = ({
|
|
4
9
|
response,
|
|
5
10
|
actionOptions,
|
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
2
|
-
import { DownloadAction } from '../../../view/BlockCard/actions/DownloadAction';
|
|
3
|
-
import { ViewAction } from '../../../view/BlockCard/actions/ViewAction';
|
|
4
|
-
import { CardAction } from '../../../view/Card/types';
|
|
5
|
-
const isClientAction = action => ['ViewAction', 'DownloadAction'].indexOf(action['@type']) > -1;
|
|
6
|
-
const getClientAction = (jsonLd, action) => {
|
|
7
|
-
switch (action['@type']) {
|
|
8
|
-
case 'ViewAction':
|
|
9
|
-
return ViewAction({
|
|
10
|
-
url: jsonLd.url
|
|
11
|
-
});
|
|
12
|
-
case 'DownloadAction':
|
|
13
|
-
return DownloadAction({
|
|
14
|
-
url: jsonLd['atlassian:downloadUrl']
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const isActionEnabled = (action, actionOptions) => {
|
|
19
|
-
switch (action['@type']) {
|
|
20
|
-
case 'ViewAction':
|
|
21
|
-
return canShowAction(CardAction.ViewAction, actionOptions);
|
|
22
|
-
case 'DownloadAction':
|
|
23
|
-
return canShowAction(CardAction.DownloadAction, actionOptions);
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
};
|
|
27
|
-
const getClientActionProps = (jsonLd, action, handler) => {
|
|
28
|
-
const clientAction = getClientAction(jsonLd, action);
|
|
29
|
-
const clientActionInvokeOpts = {
|
|
30
|
-
type: 'client',
|
|
31
|
-
key: action.identifier,
|
|
32
|
-
action: {
|
|
33
|
-
type: action['@type'],
|
|
34
|
-
promise: clientAction.promise
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
// Send client actions through common invocation flow; for analytics
|
|
38
|
-
// and, in future, in order to propagate state changes.
|
|
39
|
-
return {
|
|
40
|
-
...clientAction,
|
|
41
|
-
promise: () => handler(clientActionInvokeOpts)
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
1
|
export const getActionsFromJsonLd = jsonLd => {
|
|
45
2
|
let actions = jsonLd && jsonLd['schema:potentialAction'];
|
|
46
3
|
if (!actions) {
|
|
@@ -50,15 +7,4 @@ export const getActionsFromJsonLd = jsonLd => {
|
|
|
50
7
|
actions = [actions];
|
|
51
8
|
}
|
|
52
9
|
return actions;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @private
|
|
57
|
-
* @deprecated - use flexible extractors instead
|
|
58
|
-
*/
|
|
59
|
-
export function extractClientActions(jsonLd, handler, actionOptions) {
|
|
60
|
-
const actions = getActionsFromJsonLd(jsonLd);
|
|
61
|
-
const clientActions = actions.filter(action => isClientAction(action) && isActionEnabled(action, actionOptions));
|
|
62
|
-
const clientActionImpls = clientActions.map(action => getClientActionProps(jsonLd, action, handler));
|
|
63
|
-
return clientActionImpls;
|
|
64
|
-
}
|
|
10
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { extractLink } from '@atlaskit/link-extractors';
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
|
+
import { extractInvokeCopyLinkAction } from '../../action/extract-invoke-copy-link-action';
|
|
5
|
+
/**
|
|
6
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
7
|
+
* Replaced with extractCopyLinkClientAction()
|
|
8
|
+
*/
|
|
4
9
|
export const extractCopyLinkAction = (data, actionOptions) => {
|
|
5
10
|
if (!canShowAction(CardAction.CopyLinkAction, actionOptions)) {
|
|
6
11
|
return;
|
|
@@ -12,4 +17,10 @@ export const extractCopyLinkAction = (data, actionOptions) => {
|
|
|
12
17
|
return {
|
|
13
18
|
url
|
|
14
19
|
};
|
|
20
|
+
};
|
|
21
|
+
export const extractCopyLinkClientAction = param => {
|
|
22
|
+
const invokeAction = extractInvokeCopyLinkAction(param);
|
|
23
|
+
return invokeAction ? {
|
|
24
|
+
invokeAction
|
|
25
|
+
} : undefined;
|
|
15
26
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
2
2
|
import { CardAction } from '../../../view/Card/types';
|
|
3
|
+
import { extractInvokeDownloadAction } from '../../action/extract-invoke-download-action';
|
|
3
4
|
import { getActionsFromJsonLd } from '../../common/actions/extractActions';
|
|
4
5
|
import { extractDownloadUrl } from '../../common/detail';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
9
|
+
* Replaced with extractDownloadClientAction()
|
|
10
|
+
*/
|
|
5
11
|
export const extractDownloadAction = (data, actionOptions) => {
|
|
6
12
|
if (!canShowAction(CardAction.DownloadAction, actionOptions)) {
|
|
7
13
|
return;
|
|
@@ -13,4 +19,10 @@ export const extractDownloadAction = (data, actionOptions) => {
|
|
|
13
19
|
};
|
|
14
20
|
}
|
|
15
21
|
return;
|
|
22
|
+
};
|
|
23
|
+
export const extractDownloadClientAction = param => {
|
|
24
|
+
const invokeAction = extractInvokeDownloadAction(param);
|
|
25
|
+
return invokeAction ? {
|
|
26
|
+
invokeAction
|
|
27
|
+
} : undefined;
|
|
16
28
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { extractLink, extractPreview as extractPreviewData, extractProvider, extractTitle } from '@atlaskit/link-extractors';
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
|
+
import { extractInvokePreviewAction } from '../../action/extract-invoke-preview-action';
|
|
4
5
|
import { extractDownloadUrl } from '../../common/detail';
|
|
5
6
|
import { extractIsSupportTheming } from '../../common/meta/extractIsSupportTheming';
|
|
6
7
|
import { extractIsTrusted } from '../../common/meta/extractIsTrusted';
|
|
7
8
|
import { extractLinkIcon } from '../icon';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
12
|
+
* Replaced with extractPreviewClientAction()
|
|
13
|
+
*/
|
|
8
14
|
export const extractPreviewAction = (response, actionOptions) => {
|
|
9
15
|
var _extractPreviewData;
|
|
10
16
|
if (!canShowAction(CardAction.PreviewAction, actionOptions)) {
|
|
@@ -26,4 +32,10 @@ export const extractPreviewAction = (response, actionOptions) => {
|
|
|
26
32
|
isTrusted: extractIsTrusted(meta)
|
|
27
33
|
};
|
|
28
34
|
}
|
|
35
|
+
};
|
|
36
|
+
export const extractPreviewClientAction = param => {
|
|
37
|
+
const invokeAction = extractInvokePreviewAction(param);
|
|
38
|
+
return invokeAction ? {
|
|
39
|
+
invokeAction
|
|
40
|
+
} : undefined;
|
|
29
41
|
};
|
|
@@ -2,6 +2,10 @@ import { extractLink } from '@atlaskit/link-extractors';
|
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
4
|
import { getActionsFromJsonLd } from '../../common/actions/extractActions';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
8
|
+
*/
|
|
5
9
|
export const extractViewAction = (data, actionOptions) => {
|
|
6
10
|
if (!canShowAction(CardAction.ViewAction, actionOptions)) {
|
|
7
11
|
return;
|
|
@@ -2,11 +2,56 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
2
2
|
import { ActionName, InternalActionName } from '../../../constants';
|
|
3
3
|
import { extractAISummaryAction } from './extract-ai-summary-action';
|
|
4
4
|
import { extractAutomationAction } from './extract-automation-action';
|
|
5
|
-
import { extractCopyLinkAction } from './extract-copy-link-action';
|
|
6
|
-
import { extractDownloadAction } from './extract-download-action';
|
|
5
|
+
import { extractCopyLinkAction, extractCopyLinkClientAction } from './extract-copy-link-action';
|
|
6
|
+
import { extractDownloadAction, extractDownloadClientAction } from './extract-download-action';
|
|
7
7
|
import extractFollowAction from './extract-follow-action';
|
|
8
|
-
import { extractPreviewAction } from './extract-preview-action';
|
|
8
|
+
import { extractPreviewAction, extractPreviewClientAction } from './extract-preview-action';
|
|
9
9
|
import { extractViewRelatedLinksAction } from './extract-view-related-links-action';
|
|
10
|
+
export const extractFlexibleCardActions = ({
|
|
11
|
+
actionOptions,
|
|
12
|
+
aiSummaryConfig,
|
|
13
|
+
appearance,
|
|
14
|
+
fireEvent,
|
|
15
|
+
id,
|
|
16
|
+
origin,
|
|
17
|
+
response,
|
|
18
|
+
url
|
|
19
|
+
}) => {
|
|
20
|
+
const action = {
|
|
21
|
+
[ActionName.CopyLinkAction]: extractCopyLinkClientAction({
|
|
22
|
+
actionOptions,
|
|
23
|
+
appearance,
|
|
24
|
+
id,
|
|
25
|
+
response
|
|
26
|
+
}),
|
|
27
|
+
[ActionName.DownloadAction]: extractDownloadClientAction({
|
|
28
|
+
actionOptions,
|
|
29
|
+
appearance,
|
|
30
|
+
id,
|
|
31
|
+
response
|
|
32
|
+
}),
|
|
33
|
+
[ActionName.FollowAction]: extractFollowAction(response, actionOptions, id),
|
|
34
|
+
[ActionName.PreviewAction]: extractPreviewClientAction({
|
|
35
|
+
actionOptions,
|
|
36
|
+
appearance,
|
|
37
|
+
fireEvent,
|
|
38
|
+
id,
|
|
39
|
+
origin,
|
|
40
|
+
response
|
|
41
|
+
}),
|
|
42
|
+
[ActionName.AutomationAction]: extractAutomationAction(response),
|
|
43
|
+
[InternalActionName.AISummaryAction]: extractAISummaryAction(response, url, actionOptions, aiSummaryConfig),
|
|
44
|
+
...(fg('platform-smart-card-view-related-urls-action') ? {
|
|
45
|
+
[InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
|
|
46
|
+
} : {})
|
|
47
|
+
};
|
|
48
|
+
return Object.values(action).some(value => Boolean(value)) ? action : undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
53
|
+
* Replaced with extractFlexibleCardActions()
|
|
54
|
+
*/
|
|
10
55
|
const extractActions = (response, url, actionOptions, id, aiSummaryConfig) => {
|
|
11
56
|
const data = response.data;
|
|
12
57
|
const action = {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { extractLink } from '@atlaskit/link-extractors';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { getExtensionKey } from '../../state/helpers';
|
|
3
4
|
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
4
5
|
import { CardAction } from '../../view/Card/types';
|
|
6
|
+
import { extractInvokePreviewAction } from '../action/extract-invoke-preview-action';
|
|
5
7
|
import { extractLozenge } from '../common/lozenge';
|
|
6
8
|
import { extractPreviewAction } from './actions/extract-preview-action';
|
|
7
9
|
import extractServerAction from './extract-server-action';
|
|
@@ -18,7 +20,7 @@ const toInvokeRequest = (extensionKey, resourceIdentifiers, actionType, details)
|
|
|
18
20
|
details
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
|
-
const extractAction = (response, id) => {
|
|
23
|
+
const extractAction = (response, id, actionOptions, appearance, origin, fireEvent, resolve) => {
|
|
22
24
|
var _action$dataRetrieval, _action$dataUpdateAct;
|
|
23
25
|
const extensionKey = getExtensionKey(response);
|
|
24
26
|
const data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -32,11 +34,21 @@ const extractAction = (response, id) => {
|
|
|
32
34
|
}
|
|
33
35
|
const read = toInvokeRequest(extensionKey, action.resourceIdentifiers, (_action$dataRetrieval = action.dataRetrievalAction) === null || _action$dataRetrieval === void 0 ? void 0 : _action$dataRetrieval.name);
|
|
34
36
|
const url = extractLink(data);
|
|
35
|
-
const previewData = response ? extractPreviewAction(response) : null;
|
|
37
|
+
const previewData = !fg('platform-smart-card-migrate-embed-modal-analytics') ? response ? extractPreviewAction(response) : null : undefined;
|
|
38
|
+
const invokePreviewAction = response && fg('platform-smart-card-migrate-embed-modal-analytics') ? extractInvokePreviewAction({
|
|
39
|
+
actionOptions,
|
|
40
|
+
appearance,
|
|
41
|
+
fireEvent,
|
|
42
|
+
id,
|
|
43
|
+
onClose: resolve ? () => url && resolve(url, true) : undefined,
|
|
44
|
+
origin,
|
|
45
|
+
response
|
|
46
|
+
}) : undefined;
|
|
36
47
|
const details = {
|
|
37
48
|
id,
|
|
38
49
|
url,
|
|
39
|
-
previewData
|
|
50
|
+
previewData,
|
|
51
|
+
invokePreviewAction
|
|
40
52
|
};
|
|
41
53
|
const update = toInvokeRequest(extensionKey, action.resourceIdentifiers, (_action$dataUpdateAct = action.dataUpdateAction) === null || _action$dataUpdateAct === void 0 ? void 0 : _action$dataUpdateAct.name, details);
|
|
42
54
|
return read || update ? {
|
|
@@ -44,7 +56,7 @@ const extractAction = (response, id) => {
|
|
|
44
56
|
update
|
|
45
57
|
} : undefined;
|
|
46
58
|
};
|
|
47
|
-
const extractState = (response, actionOptions, id) => {
|
|
59
|
+
const extractState = (response, actionOptions, id, appearance, origin, fireEvent, resolve) => {
|
|
48
60
|
if (!response || !response.data) {
|
|
49
61
|
return;
|
|
50
62
|
}
|
|
@@ -55,7 +67,7 @@ const extractState = (response, actionOptions, id) => {
|
|
|
55
67
|
if (!canShowAction(CardAction.ChangeStatusAction, actionOptions)) {
|
|
56
68
|
return lozenge;
|
|
57
69
|
}
|
|
58
|
-
const action = extractAction(response, id);
|
|
70
|
+
const action = extractAction(response, id, actionOptions, appearance, origin, fireEvent, resolve);
|
|
59
71
|
return {
|
|
60
72
|
...lozenge,
|
|
61
73
|
action
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extractAri, extractDateCreated, extractDateUpdated, extractLink, extractPersonCreatedBy, extractPersonOwnedBy, extractTitle } from '@atlaskit/link-extractors';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { extractSummary } from '../common/primitives';
|
|
3
|
-
import extractActions from './actions';
|
|
4
|
-
import { extractViewAction } from './actions/extract-view-action';
|
|
4
|
+
import extractActions, { extractFlexibleCardActions } from './actions';
|
|
5
5
|
import { extractPersonsUpdatedBy } from './collaboratorGroup';
|
|
6
6
|
import extractPreview from './extract-preview';
|
|
7
7
|
import extractPriority from './extract-priority';
|
|
@@ -11,8 +11,12 @@ import extractProviderIcon from './icon/extract-provider-icon';
|
|
|
11
11
|
import { extractLatestCommit } from './latest-commit';
|
|
12
12
|
import { extractAssignedTo, extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractDueOn, extractLocation, extractModifiedBy, extractOwnedBy, extractPersonAssignedToAsArray, extractProgrammingLanguage, extractReactCount, extractReadTime, extractSentOn, extractSourceBranch, extractStoryPoints, extractSubscriberCount, extractSubTasksProgress, extractTargetBranch, extractViewCount, extractVoteCount } from './utils';
|
|
13
13
|
const extractFlexibleUiContext = ({
|
|
14
|
+
appearance,
|
|
15
|
+
fireEvent,
|
|
14
16
|
id,
|
|
17
|
+
origin,
|
|
15
18
|
renderers,
|
|
19
|
+
resolve,
|
|
16
20
|
actionOptions,
|
|
17
21
|
response,
|
|
18
22
|
aiSummaryConfig,
|
|
@@ -24,8 +28,16 @@ const extractFlexibleUiContext = ({
|
|
|
24
28
|
const data = response.data;
|
|
25
29
|
const url = extractLink(data);
|
|
26
30
|
return {
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
actions: fg('platform-smart-card-migrate-embed-modal-analytics') ? extractFlexibleCardActions({
|
|
32
|
+
actionOptions,
|
|
33
|
+
aiSummaryConfig,
|
|
34
|
+
appearance,
|
|
35
|
+
fireEvent,
|
|
36
|
+
id,
|
|
37
|
+
origin,
|
|
38
|
+
response,
|
|
39
|
+
url: props.url // Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
40
|
+
}) : extractActions(response, props.url, actionOptions, id, aiSummaryConfig),
|
|
29
41
|
assignedToGroup: extractPersonAssignedToAsArray(data),
|
|
30
42
|
attachmentCount: extractAttachmentCount(data),
|
|
31
43
|
authorGroup: extractPersonCreatedBy(data),
|
|
@@ -41,7 +53,6 @@ const extractFlexibleUiContext = ({
|
|
|
41
53
|
assignedTo: extractAssignedTo(data),
|
|
42
54
|
createdOn: extractDateCreated(data),
|
|
43
55
|
dueOn: extractDueOn(data),
|
|
44
|
-
viewAction: extractViewAction(data, actionOptions),
|
|
45
56
|
latestCommit: extractLatestCommit(data),
|
|
46
57
|
linkIcon: extractLinkIcon(response, renderers),
|
|
47
58
|
location: extractLocation(data),
|
|
@@ -56,7 +67,7 @@ const extractFlexibleUiContext = ({
|
|
|
56
67
|
snippet: extractSummary(data) || undefined,
|
|
57
68
|
// Explicitly set here to remove an empty string
|
|
58
69
|
sourceBranch: extractSourceBranch(data),
|
|
59
|
-
state: extractState(response, actionOptions, id),
|
|
70
|
+
state: extractState(response, actionOptions, id, appearance, origin, fireEvent, resolve),
|
|
60
71
|
subscriberCount: extractSubscriberCount(data),
|
|
61
72
|
subTasksProgress: extractSubTasksProgress(data),
|
|
62
73
|
storyPoints: extractStoryPoints(data),
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Použijte automatizaci u položky <b>{name}</b>.{br}Dostupné výběry jsou určeny správci Confluence a prostorů.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Automatizace stránek',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Ikona automatizace',
|
|
41
|
-
'fabric.linking.automation-action.title': 'Zobrazit pravidla automatizace
|
|
41
|
+
'fabric.linking.automation-action.title': 'Zobrazit pravidla automatizace',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Vyberte pravidlo automatizace, které chcete spustit.',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'Zrušit',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Omezený obsah',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Pokud si chcete zobrazit tento náhled, požádejte o přístup nebo vyzkoušejte jiný účet.',
|
|
92
92
|
'fabric.linking.join_to_view': 'Chcete-li si zobrazit tento požadavek, připojte se ke službě {context}.',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Naposledy zmíněno v:',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Další informace o propojení účtu s produkty Atlassian.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Další informace o chytrých odkazech',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'Odkaz {unsafeLinkText} vás přesměruje na jiný web (<a>actual link here</a>)',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'Žádné nedávné odkazy',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Nebyly nalezeny žádné odkazy, které bychom tu mohli zobrazit. Neustále kontrolujeme a přidáváme odkazy na nedávno aktualizované stránky nebo jiné typy obsahu.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Nebyly nalezeny žádné odkazy, které bychom tu mohli zobrazit.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Tento odkaz není nikde jinde zmíněn.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'Zobrazit nedávné odkazy',
|
|
136
134
|
'fabric.linking.request_access': 'Požádat o přístup',
|
|
137
135
|
'fabric.linking.request_access_description': 'Váš tým spolupracuje v {product}. Pošlete správci žádost o přístup.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Čeká na schválení',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Anvend en automatisering til <b>{name}</b>.{br}De tilgængelige valg styres af Confluence- og områdeadministratorer.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Sideautomatiseringer',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Ikon for automatisering',
|
|
41
|
-
'fabric.linking.automation-action.title': '
|
|
41
|
+
'fabric.linking.automation-action.title': 'Vis automatiseringsregler',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Vælg en automatiseringsregel, der skal køres',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'Annuller',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Begrænset indhold',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Anmod om adgang, eller prøv med en anden konto for at se denne forhåndsvisning.',
|
|
92
92
|
'fabric.linking.join_to_view': 'Deltag i {context} for at se denne sag',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Sidst omtalt i',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Få mere at vide om, hvordan du knytter din konto til Atlassian-produkter.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Få mere at vide om intelligente links.',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'Linket {unsafeLinkText} fører dig til et andet websted, <a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'Ingen nylige links',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Vi fandt ikke nogen links at vise her. Vi gennemgår løbende og tilføjer nylige links til opdaterede sider eller andre indholdstyper.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Vi fandt ikke nogen links.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Dette link omtales ikke andre steder.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'Vis nylige links',
|
|
136
134
|
'fabric.linking.request_access': 'Anmod om adgang',
|
|
137
135
|
'fabric.linking.request_access_description': 'Dit team bruger {product} til at samarbejde. Send din administrator en anmodning om adgang.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Afventer godkendelse',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Wenden Sie eine Automatisierung auf <b>{name}</b> an.{br}Die verfügbaren Auswahlen werden von Confluence- und Bereichsadministratoren gesteuert.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Seitenautomatisierungen',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Symbol: Automatisierung',
|
|
41
|
-
'fabric.linking.automation-action.title': 'Automatisierungsregeln anzeigen
|
|
41
|
+
'fabric.linking.automation-action.title': 'Automatisierungsregeln anzeigen',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Wählen Sie eine Automatisierungsregel aus, die ausgeführt werden soll.',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'Abbrechen',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Inhalt mit Beschränkungen',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Bitte senden Sie eine Zugriffsanfrage oder versuchen Sie, die Vorschau über ein anderes Konto anzusehen.',
|
|
92
92
|
'fabric.linking.join_to_view': '{context} beitreten, um diesen Vorgang anzuzeigen',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Zuletzt erwähnt in',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Weitere Informationen zum Verbinden Ihres Kontos mit Atlassian-Produkten',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Mehr über intelligente Links erfahren',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'Über den Link {unsafeLinkText} gelangen Sie zu einer anderen Site, <a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'Keine zuletzt aufgerufenen Links',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Es wurden keine Links zum Anzeigen gefunden. Die zuletzt aufgerufenen Links werden fortlaufend auf aktualisierte Seiten oder andere Inhaltstypen geprüft und ggf. hinzugefügt.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Es wurden keine Links zum Anzeigen gefunden.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Dieser Link wird nirgendwo sonst erwähnt.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'Letzte Links anzeigen',
|
|
136
134
|
'fabric.linking.request_access': 'Zugriff anfordern',
|
|
137
135
|
'fabric.linking.request_access_description': 'Ihr Team verwendet {product} zur Zusammenarbeit. Senden Sie Ihrem Administrator eine Zugriffsanfrage.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Genehmigung ausstehend',
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Apply an automation to <b>{name}</b>.{br}The available selections are controlled by Confluence and space administrators.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Page automations',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Automation icon',
|
|
41
|
-
'fabric.linking.automation-action.title': 'View automation rules
|
|
41
|
+
'fabric.linking.automation-action.title': 'View automation rules',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Select an automation rule to run',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'Cancel',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Restricted content',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': "You'll need to request access or try a different account to view this preview.",
|
|
92
92
|
'fabric.linking.join_to_view': 'Join {context} to view this issue',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Last mentioned in',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Learn more about connecting your account to Atlassian products.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Learn more about Smart Links.',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'The link {unsafeLinkText} is taking you to a different site, <a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'No recent links',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': "We didn't find any links to show here. We continuously review and add recent links for updated pages or other content types.",
|
|
133
132
|
'fabric.linking.related_links_not_found': "We didn't find any links to show here.",
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'This link is not mentioned anywhere else.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'View recent links',
|
|
136
134
|
'fabric.linking.request_access': 'Request access',
|
|
137
135
|
'fabric.linking.request_access_description': 'Your team uses {product} to collaborate. Send your admin a request for access.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Pending approval',
|