@atlaskit/smart-card 26.5.0 → 26.5.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 +13 -0
- package/dist/cjs/extractors/flexible/extract-state.js +4 -3
- package/dist/cjs/extractors/flexible/index.js +1 -1
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/en.js +1 -0
- package/dist/cjs/i18n/en_GB.js +1 -0
- package/dist/cjs/i18n/en_ZZ.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/feature-discovery/index.js +50 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/feature-discovery/styled.js +32 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/feature-discovery/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +17 -9
- package/dist/cjs/view/FlexibleCard/components/container/index.js +6 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +5 -1
- package/dist/es2019/extractors/flexible/extract-state.js +4 -3
- package/dist/es2019/extractors/flexible/index.js +1 -1
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/en_ZZ.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/feature-discovery/index.js +41 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/feature-discovery/styled.js +29 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/feature-discovery/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +15 -9
- package/dist/es2019/view/FlexibleCard/components/container/index.js +6 -2
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +5 -1
- package/dist/esm/extractors/flexible/extract-state.js +4 -3
- package/dist/esm/extractors/flexible/index.js +1 -1
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/en_ZZ.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/feature-discovery/index.js +42 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/feature-discovery/styled.js +24 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/feature-discovery/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/index.js +18 -10
- package/dist/esm/view/FlexibleCard/components/container/index.js +6 -2
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +5 -1
- package/dist/types/extractors/common/lozenge/types.d.ts +4 -1
- package/dist/types/extractors/flexible/extract-state.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/en.d.ts +1 -0
- package/dist/types/i18n/en_GB.d.ts +1 -0
- package/dist/types/i18n/en_ZZ.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/feature-discovery/index.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/feature-discovery/styled.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/feature-discovery/types.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/common/lozenge-action/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/lozenge/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/types.d.ts +23 -1
- package/dist/types-ts4.5/extractors/common/lozenge/types.d.ts +4 -1
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +2 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -0
- package/dist/types-ts4.5/i18n/da.d.ts +1 -0
- package/dist/types-ts4.5/i18n/de.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -0
- package/dist/types-ts4.5/i18n/es.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
- package/dist/types-ts4.5/i18n/it.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
- package/dist/types-ts4.5/i18n/th.d.ts +1 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/lozenge-action/feature-discovery/index.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/lozenge-action/feature-discovery/styled.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/lozenge-action/feature-discovery/types.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/lozenge-action/lozenge-action-trigger/type.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/lozenge-action/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +23 -1
- package/package.json +8 -9
- package/report.api.md +1 -1
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -51,6 +51,7 @@ declare const _default: {
|
|
|
51
51
|
'fabric.linking.pending_request': string;
|
|
52
52
|
'fabric.linking.preview': string;
|
|
53
53
|
'fabric.linking.preview_close': string;
|
|
54
|
+
'fabric.linking.preview_improved': string;
|
|
54
55
|
'fabric.linking.preview_max_size': string;
|
|
55
56
|
'fabric.linking.preview_min_size': string;
|
|
56
57
|
'fabric.linking.priority_blocker': string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { FeatureDiscoveryProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* This is a hacky solution to help with the feature discovery.
|
|
5
|
+
* This implementation must be removed once the experiment is completed.
|
|
6
|
+
* Cleanup on https://product-fabric.atlassian.net/browse/EDM-5795
|
|
7
|
+
* @see https://team.atlassian.com/project/ATLAS-13099/about
|
|
8
|
+
*/
|
|
9
|
+
declare const FeatureDiscovery: FC<FeatureDiscoveryProps>;
|
|
10
|
+
export default FeatureDiscovery;
|
|
@@ -3,6 +3,7 @@ import type { ThemeAppearance } from '@atlaskit/lozenge';
|
|
|
3
3
|
import type { CustomTriggerProps } from '@atlaskit/dropdown-menu';
|
|
4
4
|
export type LozengeActionTriggerProps = {
|
|
5
5
|
appearance?: ThemeAppearance;
|
|
6
|
+
showFeatureDiscovery?: boolean;
|
|
6
7
|
testId?: string;
|
|
7
8
|
text: string | React.ReactNode;
|
|
8
9
|
} & CustomTriggerProps<HTMLButtonElement>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ThemeAppearance } from '@atlaskit/lozenge';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LinkLozengeInvokeActions } from '../../../../../extractors/common/lozenge/types';
|
|
4
4
|
export type LozengeItem = {
|
|
5
5
|
appearance?: ThemeAppearance;
|
|
6
6
|
id: string;
|
|
7
7
|
text: string;
|
|
8
8
|
};
|
|
9
9
|
export type LozengeActionProps = {
|
|
10
|
-
action:
|
|
10
|
+
action: LinkLozengeInvokeActions;
|
|
11
11
|
appearance?: ThemeAppearance;
|
|
12
12
|
testId?: string;
|
|
13
13
|
text: string | React.ReactNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ElementProps } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { LinkLozengeInvokeActions } from '../../../../../extractors/common/lozenge/types';
|
|
4
4
|
export type LozengeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
5
5
|
export type LozengeProps = ElementProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Action that can be performed on the element
|
|
8
8
|
*/
|
|
9
|
-
action?:
|
|
9
|
+
action?: LinkLozengeInvokeActions;
|
|
10
10
|
/**
|
|
11
11
|
* Determines the appearance of the Atlaskit lozenge.
|
|
12
12
|
*/
|
|
@@ -60,7 +60,7 @@ export type FlexibleCardProps = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Determines whether to show available server actions.
|
|
62
62
|
*/
|
|
63
|
-
showServerActions?: boolean;
|
|
63
|
+
showServerActions?: boolean | ServerActionOptions;
|
|
64
64
|
/**
|
|
65
65
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
66
66
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -120,6 +120,28 @@ export type FlexibleUiOptions = {
|
|
|
120
120
|
*/
|
|
121
121
|
zIndex?: number;
|
|
122
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* Server action options to control action behaviour.
|
|
125
|
+
*
|
|
126
|
+
* If the type is applied to exported component (<Card />, <HoverCard />)
|
|
127
|
+
* please verify with the team if the deprecated prop can be removed prior.
|
|
128
|
+
*
|
|
129
|
+
* In the case that it is being exposed in HoverCard, please remove
|
|
130
|
+
* boolean conversion `Boolean(showServerActions)` in
|
|
131
|
+
* /src/view/FlexibleCard/components/container/index.tsx line 287
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
export type ServerActionOptions = {
|
|
135
|
+
/**
|
|
136
|
+
* DO NOT USE: This prop is part of an experiment. It will be removed once
|
|
137
|
+
* the experiment is completed. To be cleaned up on
|
|
138
|
+
* https://product-fabric.atlassian.net/browse/EDM-5795
|
|
139
|
+
* @see https://team.atlassian.com/project/ATLAS-13099/about
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated
|
|
142
|
+
*/
|
|
143
|
+
showStateActionFeatureDiscovery?: boolean;
|
|
144
|
+
};
|
|
123
145
|
/**
|
|
124
146
|
* Retry options used if Smart Link resolves to an errored state.
|
|
125
147
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.5.
|
|
3
|
+
"version": "26.5.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,19 +36,20 @@
|
|
|
36
36
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
37
37
|
"@atlaskit/button": "^16.7.0",
|
|
38
38
|
"@atlaskit/dropdown-menu": "^11.9.0",
|
|
39
|
+
"@atlaskit/frontend-utilities": "^2.6.0",
|
|
39
40
|
"@atlaskit/icon": "^21.12.0",
|
|
40
41
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
41
42
|
"@atlaskit/icon-object": "^6.3.0",
|
|
42
43
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
43
44
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
44
45
|
"@atlaskit/link-analytics": "^8.0.2",
|
|
45
|
-
"@atlaskit/link-client-extension": "^1.
|
|
46
|
-
"@atlaskit/linking-common": "^2.
|
|
46
|
+
"@atlaskit/link-client-extension": "^1.2.0",
|
|
47
|
+
"@atlaskit/linking-common": "^2.14.0",
|
|
47
48
|
"@atlaskit/linking-types": "^5.0.0",
|
|
48
49
|
"@atlaskit/logo": "^13.14.0",
|
|
49
50
|
"@atlaskit/lozenge": "^11.4.0",
|
|
50
51
|
"@atlaskit/media-common": "^5.0.0",
|
|
51
|
-
"@atlaskit/modal-dialog": "^12.
|
|
52
|
+
"@atlaskit/modal-dialog": "^12.6.0",
|
|
52
53
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
54
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
54
55
|
"@atlaskit/popup": "^1.6.0",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"uuid": "^3.1.0"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/link-provider": "^1.6.
|
|
75
|
+
"@atlaskit/link-provider": "^1.6.4",
|
|
75
76
|
"react": "^16.8.0",
|
|
76
77
|
"react-dom": "^16.8.0",
|
|
77
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -82,21 +83,19 @@
|
|
|
82
83
|
"@atlaskit/code": "^14.6.0",
|
|
83
84
|
"@atlaskit/css-reset": "^6.5.0",
|
|
84
85
|
"@atlaskit/docs": "*",
|
|
85
|
-
"@atlaskit/field-base": "^15.2.0",
|
|
86
86
|
"@atlaskit/form": "^8.11.0",
|
|
87
87
|
"@atlaskit/inline-message": "^11.5.0",
|
|
88
88
|
"@atlaskit/link-test-helpers": "^4.0.0",
|
|
89
89
|
"@atlaskit/lozenge": "^11.4.0",
|
|
90
|
-
"@atlaskit/media-integration-test-helpers": "^
|
|
90
|
+
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
91
91
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
92
92
|
"@atlaskit/page": "^12.3.0",
|
|
93
93
|
"@atlaskit/radio": "^5.6.0",
|
|
94
94
|
"@atlaskit/range": "^7.1.0",
|
|
95
95
|
"@atlaskit/section-message": "^6.4.0",
|
|
96
96
|
"@atlaskit/select": "^16.5.0",
|
|
97
|
-
"@atlaskit/table-tree": "^9.
|
|
97
|
+
"@atlaskit/table-tree": "^9.5.0",
|
|
98
98
|
"@atlaskit/tabs": "^13.4.0",
|
|
99
|
-
"@atlaskit/textarea": "^4.7.0",
|
|
100
99
|
"@atlaskit/textfield": "^5.5.0",
|
|
101
100
|
"@atlaskit/toggle": "^12.6.0",
|
|
102
101
|
"@atlaskit/visual-regression": "*",
|
package/report.api.md
CHANGED