@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,53 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { extractLink } from '@atlaskit/link-extractors';
|
|
4
|
+
import { CardAction } from '../../index';
|
|
5
|
+
import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/helpers';
|
|
6
|
+
import { openUrl } from '../../utils';
|
|
7
|
+
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
8
|
+
import { getActionsFromJsonLd } from '../common/actions/extractActions';
|
|
9
|
+
export var extractInvokeViewAction = function extractInvokeViewAction(_ref, force) {
|
|
10
|
+
var actionOptions = _ref.actionOptions,
|
|
11
|
+
appearance = _ref.appearance,
|
|
12
|
+
id = _ref.id,
|
|
13
|
+
response = _ref.response;
|
|
14
|
+
if (!canShowAction(CardAction.ViewAction, actionOptions)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
var data = response.data;
|
|
18
|
+
if (!data) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
var url = extractLink(data);
|
|
22
|
+
var viewActionExists = getActionsFromJsonLd(data).find(function (action) {
|
|
23
|
+
return action['@type'] === 'ViewAction';
|
|
24
|
+
});
|
|
25
|
+
if (url && (viewActionExists || force)) {
|
|
26
|
+
return {
|
|
27
|
+
actionFn: function () {
|
|
28
|
+
var _actionFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
29
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
30
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31
|
+
case 0:
|
|
32
|
+
return _context.abrupt("return", openUrl(url));
|
|
33
|
+
case 1:
|
|
34
|
+
case "end":
|
|
35
|
+
return _context.stop();
|
|
36
|
+
}
|
|
37
|
+
}, _callee);
|
|
38
|
+
}));
|
|
39
|
+
function actionFn() {
|
|
40
|
+
return _actionFn.apply(this, arguments);
|
|
41
|
+
}
|
|
42
|
+
return actionFn;
|
|
43
|
+
}(),
|
|
44
|
+
actionSubjectId: 'shortcutGoToLink',
|
|
45
|
+
actionType: 'ViewAction',
|
|
46
|
+
definitionId: getDefinitionId(response),
|
|
47
|
+
display: appearance,
|
|
48
|
+
extensionKey: getExtensionKey(response),
|
|
49
|
+
id: id,
|
|
50
|
+
resourceType: getResourceType(response)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -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 var extractDownloadActionProps = function extractDownloadActionProps(_ref) {
|
|
5
10
|
var response = _ref.response,
|
|
6
11
|
actionOptions = _ref.actionOptions,
|
|
@@ -4,6 +4,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { ActionName } from '../../constants';
|
|
5
5
|
import { openEmbedModal } from '../../view/EmbedModal/utils';
|
|
6
6
|
import { extractPreviewAction as extractPreviewActionData } from '../flexible/actions/extract-preview-action';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
10
|
+
* Replaced with platform/packages/linking-platform/smart-card/src/extractors/action/extract-invoke-preview-action.ts
|
|
11
|
+
*/
|
|
7
12
|
export var extractPreviewActionProps = function extractPreviewActionProps(_ref) {
|
|
8
13
|
var response = _ref.response,
|
|
9
14
|
analytics = _ref.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 var extractViewActionProps = function extractViewActionProps(_ref) {
|
|
4
9
|
var response = _ref.response,
|
|
5
10
|
actionOptions = _ref.actionOptions,
|
|
@@ -1,52 +1,3 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
5
|
-
import { DownloadAction } from '../../../view/BlockCard/actions/DownloadAction';
|
|
6
|
-
import { ViewAction } from '../../../view/BlockCard/actions/ViewAction';
|
|
7
|
-
import { CardAction } from '../../../view/Card/types';
|
|
8
|
-
var isClientAction = function isClientAction(action) {
|
|
9
|
-
return ['ViewAction', 'DownloadAction'].indexOf(action['@type']) > -1;
|
|
10
|
-
};
|
|
11
|
-
var getClientAction = function getClientAction(jsonLd, action) {
|
|
12
|
-
switch (action['@type']) {
|
|
13
|
-
case 'ViewAction':
|
|
14
|
-
return ViewAction({
|
|
15
|
-
url: jsonLd.url
|
|
16
|
-
});
|
|
17
|
-
case 'DownloadAction':
|
|
18
|
-
return DownloadAction({
|
|
19
|
-
url: jsonLd['atlassian:downloadUrl']
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var isActionEnabled = function isActionEnabled(action, actionOptions) {
|
|
24
|
-
switch (action['@type']) {
|
|
25
|
-
case 'ViewAction':
|
|
26
|
-
return canShowAction(CardAction.ViewAction, actionOptions);
|
|
27
|
-
case 'DownloadAction':
|
|
28
|
-
return canShowAction(CardAction.DownloadAction, actionOptions);
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
};
|
|
32
|
-
var getClientActionProps = function getClientActionProps(jsonLd, action, handler) {
|
|
33
|
-
var clientAction = getClientAction(jsonLd, action);
|
|
34
|
-
var clientActionInvokeOpts = {
|
|
35
|
-
type: 'client',
|
|
36
|
-
key: action.identifier,
|
|
37
|
-
action: {
|
|
38
|
-
type: action['@type'],
|
|
39
|
-
promise: clientAction.promise
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
// Send client actions through common invocation flow; for analytics
|
|
43
|
-
// and, in future, in order to propagate state changes.
|
|
44
|
-
return _objectSpread(_objectSpread({}, clientAction), {}, {
|
|
45
|
-
promise: function promise() {
|
|
46
|
-
return handler(clientActionInvokeOpts);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
1
|
export var getActionsFromJsonLd = function getActionsFromJsonLd(jsonLd) {
|
|
51
2
|
var actions = jsonLd && jsonLd['schema:potentialAction'];
|
|
52
3
|
if (!actions) {
|
|
@@ -56,19 +7,4 @@ export var getActionsFromJsonLd = function getActionsFromJsonLd(jsonLd) {
|
|
|
56
7
|
actions = [actions];
|
|
57
8
|
}
|
|
58
9
|
return actions;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @private
|
|
63
|
-
* @deprecated - use flexible extractors instead
|
|
64
|
-
*/
|
|
65
|
-
export function extractClientActions(jsonLd, handler, actionOptions) {
|
|
66
|
-
var actions = getActionsFromJsonLd(jsonLd);
|
|
67
|
-
var clientActions = actions.filter(function (action) {
|
|
68
|
-
return isClientAction(action) && isActionEnabled(action, actionOptions);
|
|
69
|
-
});
|
|
70
|
-
var clientActionImpls = clientActions.map(function (action) {
|
|
71
|
-
return getClientActionProps(jsonLd, action, handler);
|
|
72
|
-
});
|
|
73
|
-
return clientActionImpls;
|
|
74
|
-
}
|
|
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 var extractCopyLinkAction = function extractCopyLinkAction(data, actionOptions) {
|
|
5
10
|
if (!canShowAction(CardAction.CopyLinkAction, actionOptions)) {
|
|
6
11
|
return;
|
|
@@ -12,4 +17,10 @@ export var extractCopyLinkAction = function extractCopyLinkAction(data, actionOp
|
|
|
12
17
|
return {
|
|
13
18
|
url: url
|
|
14
19
|
};
|
|
20
|
+
};
|
|
21
|
+
export var extractCopyLinkClientAction = function extractCopyLinkClientAction(param) {
|
|
22
|
+
var invokeAction = extractInvokeCopyLinkAction(param);
|
|
23
|
+
return invokeAction ? {
|
|
24
|
+
invokeAction: 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 var extractDownloadAction = function extractDownloadAction(data, actionOptions) {
|
|
6
12
|
if (!canShowAction(CardAction.DownloadAction, actionOptions)) {
|
|
7
13
|
return;
|
|
@@ -15,4 +21,10 @@ export var extractDownloadAction = function extractDownloadAction(data, actionOp
|
|
|
15
21
|
};
|
|
16
22
|
}
|
|
17
23
|
return;
|
|
24
|
+
};
|
|
25
|
+
export var extractDownloadClientAction = function extractDownloadClientAction(param) {
|
|
26
|
+
var invokeAction = extractInvokeDownloadAction(param);
|
|
27
|
+
return invokeAction ? {
|
|
28
|
+
invokeAction: invokeAction
|
|
29
|
+
} : undefined;
|
|
18
30
|
};
|
|
@@ -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 var extractPreviewAction = function extractPreviewAction(response, actionOptions) {
|
|
9
15
|
var _extractPreviewData;
|
|
10
16
|
if (!canShowAction(CardAction.PreviewAction, actionOptions)) {
|
|
@@ -26,4 +32,10 @@ export var extractPreviewAction = function extractPreviewAction(response, action
|
|
|
26
32
|
isTrusted: extractIsTrusted(meta)
|
|
27
33
|
};
|
|
28
34
|
}
|
|
35
|
+
};
|
|
36
|
+
export var extractPreviewClientAction = function extractPreviewClientAction(param) {
|
|
37
|
+
var invokeAction = extractInvokePreviewAction(param);
|
|
38
|
+
return invokeAction ? {
|
|
39
|
+
invokeAction: 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 var extractViewAction = function extractViewAction(data, actionOptions) {
|
|
6
10
|
if (!canShowAction(CardAction.ViewAction, actionOptions)) {
|
|
7
11
|
return;
|
|
@@ -5,15 +5,52 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
5
5
|
import { ActionName, InternalActionName } from '../../../constants';
|
|
6
6
|
import { extractAISummaryAction } from './extract-ai-summary-action';
|
|
7
7
|
import { extractAutomationAction } from './extract-automation-action';
|
|
8
|
-
import { extractCopyLinkAction } from './extract-copy-link-action';
|
|
9
|
-
import { extractDownloadAction } from './extract-download-action';
|
|
8
|
+
import { extractCopyLinkAction, extractCopyLinkClientAction } from './extract-copy-link-action';
|
|
9
|
+
import { extractDownloadAction, extractDownloadClientAction } from './extract-download-action';
|
|
10
10
|
import extractFollowAction from './extract-follow-action';
|
|
11
|
-
import { extractPreviewAction } from './extract-preview-action';
|
|
11
|
+
import { extractPreviewAction, extractPreviewClientAction } from './extract-preview-action';
|
|
12
12
|
import { extractViewRelatedLinksAction } from './extract-view-related-links-action';
|
|
13
|
-
var
|
|
13
|
+
export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref) {
|
|
14
14
|
var _objectSpread2;
|
|
15
|
+
var actionOptions = _ref.actionOptions,
|
|
16
|
+
aiSummaryConfig = _ref.aiSummaryConfig,
|
|
17
|
+
appearance = _ref.appearance,
|
|
18
|
+
fireEvent = _ref.fireEvent,
|
|
19
|
+
id = _ref.id,
|
|
20
|
+
origin = _ref.origin,
|
|
21
|
+
response = _ref.response,
|
|
22
|
+
url = _ref.url;
|
|
23
|
+
var action = _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, ActionName.CopyLinkAction, extractCopyLinkClientAction({
|
|
24
|
+
actionOptions: actionOptions,
|
|
25
|
+
appearance: appearance,
|
|
26
|
+
id: id,
|
|
27
|
+
response: response
|
|
28
|
+
})), _defineProperty(_objectSpread2, ActionName.DownloadAction, extractDownloadClientAction({
|
|
29
|
+
actionOptions: actionOptions,
|
|
30
|
+
appearance: appearance,
|
|
31
|
+
id: id,
|
|
32
|
+
response: response
|
|
33
|
+
})), _defineProperty(_objectSpread2, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_objectSpread2, ActionName.PreviewAction, extractPreviewClientAction({
|
|
34
|
+
actionOptions: actionOptions,
|
|
35
|
+
appearance: appearance,
|
|
36
|
+
fireEvent: fireEvent,
|
|
37
|
+
id: id,
|
|
38
|
+
origin: origin,
|
|
39
|
+
response: response
|
|
40
|
+
})), _defineProperty(_objectSpread2, ActionName.AutomationAction, extractAutomationAction(response)), _defineProperty(_objectSpread2, InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), _objectSpread2), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
|
|
41
|
+
return Object.values(action).some(function (value) {
|
|
42
|
+
return Boolean(value);
|
|
43
|
+
}) ? action : undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
48
|
+
* Replaced with extractFlexibleCardActions()
|
|
49
|
+
*/
|
|
50
|
+
var extractActions = function extractActions(response, url, actionOptions, id, aiSummaryConfig) {
|
|
51
|
+
var _objectSpread3;
|
|
15
52
|
var data = response.data;
|
|
16
|
-
var action = _objectSpread((
|
|
53
|
+
var action = _objectSpread((_objectSpread3 = {}, _defineProperty(_objectSpread3, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), _defineProperty(_objectSpread3, ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), _defineProperty(_objectSpread3, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_objectSpread3, ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), _defineProperty(_objectSpread3, ActionName.AutomationAction, extractAutomationAction(response)), _defineProperty(_objectSpread3, InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), _objectSpread3), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
|
|
17
54
|
return Object.values(action).some(function (value) {
|
|
18
55
|
return Boolean(value);
|
|
19
56
|
}) ? action : undefined;
|
|
@@ -2,9 +2,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import { extractLink } from '@atlaskit/link-extractors';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { getExtensionKey } from '../../state/helpers';
|
|
6
7
|
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
7
8
|
import { CardAction } from '../../view/Card/types';
|
|
9
|
+
import { extractInvokePreviewAction } from '../action/extract-invoke-preview-action';
|
|
8
10
|
import { extractLozenge } from '../common/lozenge';
|
|
9
11
|
import { extractPreviewAction } from './actions/extract-preview-action';
|
|
10
12
|
import extractServerAction from './extract-server-action';
|
|
@@ -21,7 +23,7 @@ var toInvokeRequest = function toInvokeRequest(extensionKey, resourceIdentifiers
|
|
|
21
23
|
details: details
|
|
22
24
|
};
|
|
23
25
|
};
|
|
24
|
-
var extractAction = function extractAction(response, id) {
|
|
26
|
+
var extractAction = function extractAction(response, id, actionOptions, appearance, origin, fireEvent, resolve) {
|
|
25
27
|
var _action$dataRetrieval, _action$dataUpdateAct;
|
|
26
28
|
var extensionKey = getExtensionKey(response);
|
|
27
29
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -37,11 +39,23 @@ var extractAction = function extractAction(response, id) {
|
|
|
37
39
|
}
|
|
38
40
|
var read = toInvokeRequest(extensionKey, action.resourceIdentifiers, (_action$dataRetrieval = action.dataRetrievalAction) === null || _action$dataRetrieval === void 0 ? void 0 : _action$dataRetrieval.name);
|
|
39
41
|
var url = extractLink(data);
|
|
40
|
-
var previewData = response ? extractPreviewAction(response) : null;
|
|
42
|
+
var previewData = !fg('platform-smart-card-migrate-embed-modal-analytics') ? response ? extractPreviewAction(response) : null : undefined;
|
|
43
|
+
var invokePreviewAction = response && fg('platform-smart-card-migrate-embed-modal-analytics') ? extractInvokePreviewAction({
|
|
44
|
+
actionOptions: actionOptions,
|
|
45
|
+
appearance: appearance,
|
|
46
|
+
fireEvent: fireEvent,
|
|
47
|
+
id: id,
|
|
48
|
+
onClose: resolve ? function () {
|
|
49
|
+
return url && resolve(url, true);
|
|
50
|
+
} : undefined,
|
|
51
|
+
origin: origin,
|
|
52
|
+
response: response
|
|
53
|
+
}) : undefined;
|
|
41
54
|
var details = {
|
|
42
55
|
id: id,
|
|
43
56
|
url: url,
|
|
44
|
-
previewData: previewData
|
|
57
|
+
previewData: previewData,
|
|
58
|
+
invokePreviewAction: invokePreviewAction
|
|
45
59
|
};
|
|
46
60
|
var update = toInvokeRequest(extensionKey, action.resourceIdentifiers, (_action$dataUpdateAct = action.dataUpdateAction) === null || _action$dataUpdateAct === void 0 ? void 0 : _action$dataUpdateAct.name, details);
|
|
47
61
|
return read || update ? {
|
|
@@ -49,7 +63,7 @@ var extractAction = function extractAction(response, id) {
|
|
|
49
63
|
update: update
|
|
50
64
|
} : undefined;
|
|
51
65
|
};
|
|
52
|
-
var extractState = function extractState(response, actionOptions, id) {
|
|
66
|
+
var extractState = function extractState(response, actionOptions, id, appearance, origin, fireEvent, resolve) {
|
|
53
67
|
if (!response || !response.data) {
|
|
54
68
|
return;
|
|
55
69
|
}
|
|
@@ -60,7 +74,7 @@ var extractState = function extractState(response, actionOptions, id) {
|
|
|
60
74
|
if (!canShowAction(CardAction.ChangeStatusAction, actionOptions)) {
|
|
61
75
|
return lozenge;
|
|
62
76
|
}
|
|
63
|
-
var action = extractAction(response, id);
|
|
77
|
+
var action = extractAction(response, id, actionOptions, appearance, origin, fireEvent, resolve);
|
|
64
78
|
return _objectSpread(_objectSpread({}, lozenge), {}, {
|
|
65
79
|
action: action
|
|
66
80
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
var _excluded = ["id", "renderers", "actionOptions", "response", "aiSummaryConfig"];
|
|
2
|
+
var _excluded = ["appearance", "fireEvent", "id", "origin", "renderers", "resolve", "actionOptions", "response", "aiSummaryConfig"];
|
|
3
3
|
import { extractAri, extractDateCreated, extractDateUpdated, extractLink, extractPersonCreatedBy, extractPersonOwnedBy, extractTitle } from '@atlaskit/link-extractors';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { extractSummary } from '../common/primitives';
|
|
5
|
-
import extractActions from './actions';
|
|
6
|
-
import { extractViewAction } from './actions/extract-view-action';
|
|
6
|
+
import extractActions, { extractFlexibleCardActions } from './actions';
|
|
7
7
|
import { extractPersonsUpdatedBy } from './collaboratorGroup';
|
|
8
8
|
import extractPreview from './extract-preview';
|
|
9
9
|
import extractPriority from './extract-priority';
|
|
@@ -14,8 +14,12 @@ import { extractLatestCommit } from './latest-commit';
|
|
|
14
14
|
import { extractAssignedTo, extractAttachmentCount, extractChecklistProgress, extractCommentCount, extractCreatedBy, extractDueOn, extractLocation, extractModifiedBy, extractOwnedBy, extractPersonAssignedToAsArray, extractProgrammingLanguage, extractReactCount, extractReadTime, extractSentOn, extractSourceBranch, extractStoryPoints, extractSubscriberCount, extractSubTasksProgress, extractTargetBranch, extractViewCount, extractVoteCount } from './utils';
|
|
15
15
|
var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
16
16
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17
|
-
var
|
|
17
|
+
var appearance = _ref.appearance,
|
|
18
|
+
fireEvent = _ref.fireEvent,
|
|
19
|
+
id = _ref.id,
|
|
20
|
+
origin = _ref.origin,
|
|
18
21
|
renderers = _ref.renderers,
|
|
22
|
+
resolve = _ref.resolve,
|
|
19
23
|
actionOptions = _ref.actionOptions,
|
|
20
24
|
response = _ref.response,
|
|
21
25
|
aiSummaryConfig = _ref.aiSummaryConfig,
|
|
@@ -26,8 +30,16 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
26
30
|
var data = response.data;
|
|
27
31
|
var url = extractLink(data);
|
|
28
32
|
return {
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
actions: fg('platform-smart-card-migrate-embed-modal-analytics') ? extractFlexibleCardActions({
|
|
34
|
+
actionOptions: actionOptions,
|
|
35
|
+
aiSummaryConfig: aiSummaryConfig,
|
|
36
|
+
appearance: appearance,
|
|
37
|
+
fireEvent: fireEvent,
|
|
38
|
+
id: id,
|
|
39
|
+
origin: origin,
|
|
40
|
+
response: response,
|
|
41
|
+
url: props.url // Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
42
|
+
}) : extractActions(response, props.url, actionOptions, id, aiSummaryConfig),
|
|
31
43
|
assignedToGroup: extractPersonAssignedToAsArray(data),
|
|
32
44
|
attachmentCount: extractAttachmentCount(data),
|
|
33
45
|
authorGroup: extractPersonCreatedBy(data),
|
|
@@ -43,7 +55,6 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
43
55
|
assignedTo: extractAssignedTo(data),
|
|
44
56
|
createdOn: extractDateCreated(data),
|
|
45
57
|
dueOn: extractDueOn(data),
|
|
46
|
-
viewAction: extractViewAction(data, actionOptions),
|
|
47
58
|
latestCommit: extractLatestCommit(data),
|
|
48
59
|
linkIcon: extractLinkIcon(response, renderers),
|
|
49
60
|
location: extractLocation(data),
|
|
@@ -58,7 +69,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
58
69
|
snippet: extractSummary(data) || undefined,
|
|
59
70
|
// Explicitly set here to remove an empty string
|
|
60
71
|
sourceBranch: extractSourceBranch(data),
|
|
61
|
-
state: extractState(response, actionOptions, id),
|
|
72
|
+
state: extractState(response, actionOptions, id, appearance, origin, fireEvent, resolve),
|
|
62
73
|
subscriberCount: extractSubscriberCount(data),
|
|
63
74
|
subTasksProgress: extractSubTasksProgress(data),
|
|
64
75
|
storyPoints: extractStoryPoints(data),
|
package/dist/esm/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/esm/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/esm/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/esm/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',
|
package/dist/esm/i18n/en_GB.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',
|
package/dist/esm/i18n/en_ZZ.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',
|