@atlaskit/reactions 22.3.0 → 22.3.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 +12 -0
- package/MockReactionsClient/package.json +2 -2
- package/dist/cjs/i18n/cs.js +14 -13
- package/dist/cjs/i18n/da.js +14 -13
- package/dist/cjs/i18n/de.js +13 -13
- package/dist/cjs/i18n/en.js +14 -14
- package/dist/cjs/i18n/en_GB.js +14 -14
- package/dist/cjs/i18n/en_ZZ.js +14 -14
- package/dist/cjs/i18n/es.js +14 -13
- package/dist/cjs/i18n/fi.js +13 -13
- package/dist/cjs/i18n/fr.js +14 -13
- package/dist/cjs/i18n/hu.js +14 -13
- package/dist/cjs/i18n/it.js +14 -13
- package/dist/cjs/i18n/ja.js +14 -13
- package/dist/cjs/i18n/ko.js +13 -13
- package/dist/cjs/i18n/nb.js +13 -13
- package/dist/cjs/i18n/nl.js +14 -13
- package/dist/cjs/i18n/pl.js +14 -13
- package/dist/cjs/i18n/pt_BR.js +14 -13
- package/dist/cjs/i18n/ru.js +13 -13
- package/dist/cjs/i18n/sv.js +14 -13
- package/dist/cjs/i18n/th.js +14 -13
- package/dist/cjs/i18n/tr.js +14 -13
- package/dist/cjs/i18n/uk.js +14 -13
- package/dist/cjs/i18n/vi.js +14 -13
- package/dist/cjs/i18n/zh.js +14 -13
- package/dist/cjs/i18n/zh_TW.js +13 -13
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +14 -13
- package/dist/es2019/i18n/da.js +14 -13
- package/dist/es2019/i18n/de.js +13 -13
- package/dist/es2019/i18n/en.js +14 -14
- package/dist/es2019/i18n/en_GB.js +14 -14
- package/dist/es2019/i18n/en_ZZ.js +14 -14
- package/dist/es2019/i18n/es.js +14 -13
- package/dist/es2019/i18n/fi.js +13 -13
- package/dist/es2019/i18n/fr.js +14 -13
- package/dist/es2019/i18n/hu.js +14 -13
- package/dist/es2019/i18n/it.js +14 -13
- package/dist/es2019/i18n/ja.js +14 -13
- package/dist/es2019/i18n/ko.js +13 -13
- package/dist/es2019/i18n/nb.js +13 -13
- package/dist/es2019/i18n/nl.js +14 -13
- package/dist/es2019/i18n/pl.js +14 -13
- package/dist/es2019/i18n/pt_BR.js +14 -13
- package/dist/es2019/i18n/ru.js +13 -13
- package/dist/es2019/i18n/sv.js +14 -13
- package/dist/es2019/i18n/th.js +14 -13
- package/dist/es2019/i18n/tr.js +14 -13
- package/dist/es2019/i18n/uk.js +14 -13
- package/dist/es2019/i18n/vi.js +14 -13
- package/dist/es2019/i18n/zh.js +14 -13
- package/dist/es2019/i18n/zh_TW.js +13 -13
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +14 -13
- package/dist/esm/i18n/da.js +14 -13
- package/dist/esm/i18n/de.js +13 -13
- package/dist/esm/i18n/en.js +14 -14
- package/dist/esm/i18n/en_GB.js +14 -14
- package/dist/esm/i18n/en_ZZ.js +14 -14
- package/dist/esm/i18n/es.js +14 -13
- package/dist/esm/i18n/fi.js +13 -13
- package/dist/esm/i18n/fr.js +14 -13
- package/dist/esm/i18n/hu.js +14 -13
- package/dist/esm/i18n/it.js +14 -13
- package/dist/esm/i18n/ja.js +14 -13
- package/dist/esm/i18n/ko.js +13 -13
- package/dist/esm/i18n/nb.js +13 -13
- package/dist/esm/i18n/nl.js +14 -13
- package/dist/esm/i18n/pl.js +14 -13
- package/dist/esm/i18n/pt_BR.js +14 -13
- package/dist/esm/i18n/ru.js +13 -13
- package/dist/esm/i18n/sv.js +14 -13
- package/dist/esm/i18n/th.js +14 -13
- package/dist/esm/i18n/tr.js +14 -13
- package/dist/esm/i18n/uk.js +14 -13
- package/dist/esm/i18n/vi.js +14 -13
- package/dist/esm/i18n/zh.js +14 -13
- package/dist/esm/i18n/zh_TW.js +13 -13
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/analytics.d.ts +7 -7
- package/dist/types/components/ReactionDialog/styles.d.ts +2 -1
- package/dist/types/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
- package/dist/types/hooks/useCloseManager.d.ts +1 -1
- package/dist/types/hooks/useFocusTrap.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +16 -15
- package/dist/types/i18n/da.d.ts +16 -15
- package/dist/types/i18n/de.d.ts +15 -15
- package/dist/types/i18n/en.d.ts +16 -16
- package/dist/types/i18n/en_GB.d.ts +16 -16
- package/dist/types/i18n/en_ZZ.d.ts +16 -16
- package/dist/types/i18n/es.d.ts +16 -15
- package/dist/types/i18n/et.d.ts +4 -4
- package/dist/types/i18n/fi.d.ts +15 -15
- package/dist/types/i18n/fr.d.ts +16 -15
- package/dist/types/i18n/hu.d.ts +16 -15
- package/dist/types/i18n/it.d.ts +16 -15
- package/dist/types/i18n/ja.d.ts +16 -15
- package/dist/types/i18n/ko.d.ts +15 -15
- package/dist/types/i18n/nb.d.ts +15 -15
- package/dist/types/i18n/nl.d.ts +16 -15
- package/dist/types/i18n/pl.d.ts +16 -15
- package/dist/types/i18n/pt_BR.d.ts +16 -15
- package/dist/types/i18n/pt_PT.d.ts +4 -4
- package/dist/types/i18n/ru.d.ts +15 -15
- package/dist/types/i18n/sk.d.ts +4 -4
- package/dist/types/i18n/sv.d.ts +16 -15
- package/dist/types/i18n/th.d.ts +16 -15
- package/dist/types/i18n/tr.d.ts +16 -15
- package/dist/types/i18n/uk.d.ts +16 -15
- package/dist/types/i18n/vi.d.ts +16 -15
- package/dist/types/i18n/zh.d.ts +16 -15
- package/dist/types/i18n/zh_TW.d.ts +15 -15
- package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types/store/ReactionConsumer.d.ts +2 -2
- package/dist/types/store/utils.d.ts +2 -2
- package/dist/types/types/Actions.d.ts +2 -2
- package/dist/types/types/Updater.d.ts +1 -1
- package/dist/types/types/User.d.ts +1 -1
- package/dist/types/types/client.d.ts +1 -1
- package/dist/types/types/reaction.d.ts +11 -11
- package/dist/types/types/store.d.ts +3 -3
- package/dist/types-ts4.5/MockReactionsClient.d.ts +27 -0
- package/dist/types-ts4.5/analytics/analytics.d.ts +121 -0
- package/dist/types-ts4.5/analytics/index.d.ts +2 -0
- package/dist/types-ts4.5/analytics/ufo.d.ts +56 -0
- package/dist/types-ts4.5/client/ReactionServiceClient.d.ts +35 -0
- package/dist/types-ts4.5/client/index.d.ts +1 -0
- package/dist/types-ts4.5/components/Counter/Counter.d.ts +44 -0
- package/dist/types-ts4.5/components/Counter/index.d.ts +3 -0
- package/dist/types-ts4.5/components/Counter/styles.d.ts +4 -0
- package/dist/types-ts4.5/components/EmojiButton/EmojiButton.d.ts +22 -0
- package/dist/types-ts4.5/components/EmojiButton/index.d.ts +2 -0
- package/dist/types-ts4.5/components/EmojiButton/styles.d.ts +1 -0
- package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +20 -0
- package/dist/types-ts4.5/components/FlashAnimation/index.d.ts +2 -0
- package/dist/types-ts4.5/components/FlashAnimation/styles.d.ts +5 -0
- package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +48 -0
- package/dist/types-ts4.5/components/Reaction/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Reaction/styles.d.ts +10 -0
- package/dist/types-ts4.5/components/ReactionDialog/ReactionView.d.ts +19 -0
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsDialog.d.ts +32 -0
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsList.d.ts +23 -0
- package/dist/types-ts4.5/components/ReactionDialog/index.d.ts +1 -0
- package/dist/types-ts4.5/components/ReactionDialog/styles.d.ts +11 -0
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +59 -0
- package/dist/types-ts4.5/components/ReactionPicker/RepositionOnUpdate.d.ts +13 -0
- package/dist/types-ts4.5/components/ReactionPicker/index.d.ts +2 -0
- package/dist/types-ts4.5/components/ReactionPicker/styles.d.ts +4 -0
- package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +34 -0
- package/dist/types-ts4.5/components/ReactionTooltip/index.d.ts +2 -0
- package/dist/types-ts4.5/components/ReactionTooltip/styles.d.ts +5 -0
- package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +96 -0
- package/dist/types-ts4.5/components/Reactions/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Reactions/styles.d.ts +3 -0
- package/dist/types-ts4.5/components/Selector/Selector.d.ts +34 -0
- package/dist/types-ts4.5/components/Selector/index.d.ts +3 -0
- package/dist/types-ts4.5/components/Selector/styles.d.ts +12 -0
- package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +35 -0
- package/dist/types-ts4.5/components/ShowMore/index.d.ts +2 -0
- package/dist/types-ts4.5/components/ShowMore/styles.d.ts +3 -0
- package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +36 -0
- package/dist/types-ts4.5/components/Trigger/index.d.ts +2 -0
- package/dist/types-ts4.5/components/Trigger/styles.d.ts +5 -0
- package/dist/types-ts4.5/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +16 -0
- package/dist/types-ts4.5/components/UfoErrorBoundary/index.d.ts +2 -0
- package/dist/types-ts4.5/components/index.d.ts +9 -0
- package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +23 -0
- package/dist/types-ts4.5/containers/ConnectedReactionPicker/index.d.ts +2 -0
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +43 -0
- package/dist/types-ts4.5/containers/ConnectedReactionsView/index.d.ts +2 -0
- package/dist/types-ts4.5/containers/index.d.ts +2 -0
- package/dist/types-ts4.5/hooks/index.d.ts +1 -0
- package/dist/types-ts4.5/hooks/useCloseManager.d.ts +11 -0
- package/dist/types-ts4.5/hooks/useFocusTrap.d.ts +5 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +23 -0
- package/dist/types-ts4.5/i18n/da.d.ts +23 -0
- package/dist/types-ts4.5/i18n/de.d.ts +22 -0
- package/dist/types-ts4.5/i18n/en.d.ts +23 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +23 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +23 -0
- package/dist/types-ts4.5/i18n/es.d.ts +23 -0
- package/dist/types-ts4.5/i18n/et.d.ts +11 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +22 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +23 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +23 -0
- package/dist/types-ts4.5/i18n/index.d.ts +35 -0
- package/dist/types-ts4.5/i18n/is.d.ts +6 -0
- package/dist/types-ts4.5/i18n/it.d.ts +23 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +23 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +22 -0
- package/dist/types-ts4.5/i18n/languages.d.ts +27 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +22 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +23 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +23 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +23 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +11 -0
- package/dist/types-ts4.5/i18n/ro.d.ts +6 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +22 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +11 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +23 -0
- package/dist/types-ts4.5/i18n/th.d.ts +23 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +23 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +23 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +23 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +23 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +22 -0
- package/dist/types-ts4.5/index.d.ts +7 -0
- package/dist/types-ts4.5/shared/constants.d.ts +28 -0
- package/dist/types-ts4.5/shared/i18n.d.ts +72 -0
- package/dist/types-ts4.5/shared/index.d.ts +3 -0
- package/dist/types-ts4.5/shared/utils.d.ts +18 -0
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +94 -0
- package/dist/types-ts4.5/store/ReactionConsumer.d.ts +57 -0
- package/dist/types-ts4.5/store/batched.d.ts +2 -0
- package/dist/types-ts4.5/store/index.d.ts +3 -0
- package/dist/types-ts4.5/store/utils.d.ts +11 -0
- package/dist/types-ts4.5/types/Actions.d.ts +27 -0
- package/dist/types-ts4.5/types/Updater.d.ts +1 -0
- package/dist/types-ts4.5/types/User.d.ts +20 -0
- package/dist/types-ts4.5/types/client.d.ts +38 -0
- package/dist/types-ts4.5/types/index.d.ts +7 -0
- package/dist/types-ts4.5/types/reaction.d.ts +113 -0
- package/dist/types-ts4.5/types/store.d.ts +63 -0
- package/package.json +12 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.left.navigate': string;
|
|
17
|
+
'reactions.dialog.reactions.count': string;
|
|
18
|
+
'reactions.dialog.right.navigate': string;
|
|
19
|
+
'reactions.dialog.viewall': string;
|
|
20
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.error.unexpected': string;
|
|
9
|
+
'fabric.reactions.loading': string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.left.navigate': string;
|
|
17
|
+
'reactions.dialog.reactions.count': string;
|
|
18
|
+
'reactions.dialog.right.navigate': string;
|
|
19
|
+
'reactions.dialog.viewall': string;
|
|
20
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.error.unexpected': string;
|
|
9
|
+
'fabric.reactions.loading': string;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.emoji.name': string;
|
|
17
|
+
'reactions.dialog.left.navigate': string;
|
|
18
|
+
'reactions.dialog.reactions.count': string;
|
|
19
|
+
'reactions.dialog.right.navigate': string;
|
|
20
|
+
'reactions.dialog.viewall': string;
|
|
21
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
'fabric.reactions.add': string;
|
|
9
|
+
'fabric.reactions.error.unexpected': string;
|
|
10
|
+
'fabric.reactions.loading': string;
|
|
11
|
+
'fabric.reactions.more.emojis': string;
|
|
12
|
+
'fabric.reactions.more.info': string;
|
|
13
|
+
'fabric.reactions.other.reacted.users': string;
|
|
14
|
+
'fabric.reactions.reactwithemoji': string;
|
|
15
|
+
'reactions.dialog.close': string;
|
|
16
|
+
'reactions.dialog.left.navigate': string;
|
|
17
|
+
'reactions.dialog.reactions.count': string;
|
|
18
|
+
'reactions.dialog.right.navigate': string;
|
|
19
|
+
'reactions.dialog.viewall': string;
|
|
20
|
+
'reactions.dialog.viewall.tooltip': string;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { UFO } from './analytics';
|
|
2
|
+
export { ReactionServiceClient } from './client';
|
|
3
|
+
export type { Client as ReactionClient, Request as ReactionRequest, Store as ReactionsStore, StorePropInput, State, onDialogSelectReactionChange, } from './types';
|
|
4
|
+
export { constants } from './shared';
|
|
5
|
+
export { Reaction, ReactionPicker, Reactions } from './components';
|
|
6
|
+
export { ConnectedReactionPicker, ConnectedReactionsView } from './containers';
|
|
7
|
+
export { MemoryReactionsStore, ReactionConsumer } from './store';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EmojiId } from '@atlaskit/emoji/types';
|
|
2
|
+
/**
|
|
3
|
+
* Initial list of emoji to pick from
|
|
4
|
+
*/
|
|
5
|
+
export declare const DefaultReactions: EmojiId[];
|
|
6
|
+
/**
|
|
7
|
+
* Extended list of reactions used only for examples
|
|
8
|
+
*/
|
|
9
|
+
export declare const ExtendedReactions: EmojiId[];
|
|
10
|
+
/**
|
|
11
|
+
* ES6 Map object from default emoji reactions (with key => shortName, value => entire emoji item)
|
|
12
|
+
*/
|
|
13
|
+
export declare const DefaultReactionsByShortName: Map<string, EmojiId>;
|
|
14
|
+
/**
|
|
15
|
+
* ES6 Map object from default emoji reactions (with key => shortName, value => entire emoji item)
|
|
16
|
+
* Only for use in extended reaction examples
|
|
17
|
+
*/
|
|
18
|
+
export declare const ExtendedReactionsByShortName: Map<string, EmojiId>;
|
|
19
|
+
/**
|
|
20
|
+
* Maximum number of users to show in the tooltip for an emoji reaction
|
|
21
|
+
*/
|
|
22
|
+
export declare const TOOLTIP_USERS_LIMIT = 5;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum number of reactions that will fit in the horizontal scroll of
|
|
25
|
+
* reactions dialog
|
|
26
|
+
*/
|
|
27
|
+
export declare const NUMBER_OF_REACTIONS_TO_DISPLAY = 9;
|
|
28
|
+
export declare const SAMPLING_RATE_REACTIONS_RENDERED_EXP = 50;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
addReaction: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
loadingReactions: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
moreEmoji: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
moreInfo: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
reactWithEmoji: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
unexpectedError: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
otherUsers: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
closeReactionsDialog: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
reactionsCount: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
leftNavigateLabel: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
rightNavigateLabel: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
emojiName: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
seeWhoReacted: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
seeWhoReactedTooltip: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EmojiId } from '@atlaskit/emoji/types';
|
|
2
|
+
/**
|
|
3
|
+
* Is selected mouse event a left click
|
|
4
|
+
* @param event event data
|
|
5
|
+
*/
|
|
6
|
+
export declare const isLeftClick: (event: React.MouseEvent<HTMLElement>) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Does provided item part of the default emoji ids
|
|
9
|
+
* @param item selected emoji item
|
|
10
|
+
*/
|
|
11
|
+
export declare const isDefaultReaction: (item: EmojiId) => boolean;
|
|
12
|
+
export declare const formatStringWithDecimal: (value: string, decimalPlaces: number) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Truncates numbers >= 1000 to shorthand representations with a maximum of one decimal point.
|
|
15
|
+
* If the first decimal number is a zero then it's also truncated.
|
|
16
|
+
* (Ex: 9085 will return 9K, 787555 will return 787.5M)
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatLargeNumber: (value: number) => string;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import * as Types from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Set of all available UFO experiences relating to reaction element
|
|
5
|
+
*/
|
|
6
|
+
export declare const ufoExperiences: {
|
|
7
|
+
/**
|
|
8
|
+
* Experience when a reaction emoji gets added
|
|
9
|
+
*/
|
|
10
|
+
add: import("@atlaskit/ufo").ConcurrentExperience;
|
|
11
|
+
/**
|
|
12
|
+
* Experience when a reaction emoji gets removed/decrement
|
|
13
|
+
*/
|
|
14
|
+
remove: import("@atlaskit/ufo").ConcurrentExperience;
|
|
15
|
+
/**
|
|
16
|
+
* Experience when the list of reactions gets rendered with sampling
|
|
17
|
+
*/
|
|
18
|
+
render: (instanceId: string) => import("@atlaskit/emoji").WithSamplingUFOExperience;
|
|
19
|
+
/**
|
|
20
|
+
* Experience when a reaction details gets fetched
|
|
21
|
+
*/
|
|
22
|
+
fetchDetails: import("@atlaskit/ufo").ConcurrentExperience;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Optional metadata information in the store used in sending the API client requests
|
|
26
|
+
*/
|
|
27
|
+
interface StoreMetadata {
|
|
28
|
+
subproduct?: string;
|
|
29
|
+
[k: string]: any;
|
|
30
|
+
}
|
|
31
|
+
export declare class MemoryReactionsStore implements Types.Store {
|
|
32
|
+
private client;
|
|
33
|
+
private state;
|
|
34
|
+
private metadata;
|
|
35
|
+
private callbacks;
|
|
36
|
+
private createAnalyticsEvent?;
|
|
37
|
+
/**
|
|
38
|
+
* default initial store data
|
|
39
|
+
*/
|
|
40
|
+
private initialState;
|
|
41
|
+
constructor(client: Types.Client, state?: Types.State, metadata?: StoreMetadata);
|
|
42
|
+
/**
|
|
43
|
+
* Update the store state data with a new data
|
|
44
|
+
* @param newState new store data
|
|
45
|
+
*/
|
|
46
|
+
private setState;
|
|
47
|
+
/**
|
|
48
|
+
* Calls any onChange callbacks in the store using latest state data.
|
|
49
|
+
*/
|
|
50
|
+
private triggerOnChange;
|
|
51
|
+
private setReactions;
|
|
52
|
+
private getReactionsState;
|
|
53
|
+
private handleDetailedReactionResponse;
|
|
54
|
+
private setFlash;
|
|
55
|
+
private flash;
|
|
56
|
+
private optmisticUpdate;
|
|
57
|
+
/**
|
|
58
|
+
* Utility function to help execute a callback to Reaction if its state is ready.
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* @param containerAri
|
|
62
|
+
* @param ari
|
|
63
|
+
*
|
|
64
|
+
* @returns (updater: Updater<ReactionsReadyState>) => ReactionsState?
|
|
65
|
+
* A function that will execute the received callback with the ReactionsState if
|
|
66
|
+
* ready. If some state is returned, the new state will be applied.
|
|
67
|
+
*/
|
|
68
|
+
private withReadyReaction;
|
|
69
|
+
/**
|
|
70
|
+
* Utility function to help execute actions with a reaction. It handles reaction discovery
|
|
71
|
+
* and branching between reacted and not reacted.
|
|
72
|
+
*
|
|
73
|
+
* @param reactedCallback callback that will be executed when the user has already reacted
|
|
74
|
+
* with the emoji
|
|
75
|
+
* @param notReactedCallback callback that will be executed when the user hasn't reacted
|
|
76
|
+
* with the emoji
|
|
77
|
+
*
|
|
78
|
+
* @returns (containerAri: string, ari: string, emojiId: string) => ReactionsState?
|
|
79
|
+
* A function that will execute the correct callback to the triple containerAri, ari and
|
|
80
|
+
* emojiId. If some state is returned, the new state will be applied.
|
|
81
|
+
*/
|
|
82
|
+
private withReaction;
|
|
83
|
+
private doAddReaction;
|
|
84
|
+
private doRemoveReaction;
|
|
85
|
+
setCreateAnalyticsEvent: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => void;
|
|
86
|
+
getReactions: (key: string, ...args: string[]) => void;
|
|
87
|
+
toggleReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
88
|
+
addReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
89
|
+
getDetailedReaction: (containerAri: string, ari: string, emojiId: string) => void;
|
|
90
|
+
getState: () => Types.State;
|
|
91
|
+
onChange: (callback: Types.OnChangeCallback) => void;
|
|
92
|
+
removeOnChangeListener: (toRemove: Types.OnChangeCallback) => void;
|
|
93
|
+
}
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Actions, State, StorePropInput, Store } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Props type for the ReactionConsumer class component
|
|
5
|
+
*/
|
|
6
|
+
export type ReactioConsumerProps<PropsFromState, PropsFromActions> = {
|
|
7
|
+
/**
|
|
8
|
+
* Return a plain object containing the data that the connected component needs
|
|
9
|
+
*/
|
|
10
|
+
mapStateToProps?: (state: State) => PropsFromState;
|
|
11
|
+
/**
|
|
12
|
+
* Specify which actions the child component might need to dispatch from its props
|
|
13
|
+
*/
|
|
14
|
+
mapActionsToProps?: (actions: Actions) => PropsFromActions;
|
|
15
|
+
/**
|
|
16
|
+
* Component to render
|
|
17
|
+
*/
|
|
18
|
+
children: (props: PropsFromState & PropsFromActions) => React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Reference to the store.
|
|
21
|
+
* @remarks
|
|
22
|
+
* This was initially implemented with a sync and Async versions and will be replaced with just a sync Store in a future release (Please use only the sync version)
|
|
23
|
+
*/
|
|
24
|
+
store: StorePropInput;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* State type for the ReactionConsumer class component
|
|
28
|
+
*/
|
|
29
|
+
export type ReactionConsumerState = {
|
|
30
|
+
store?: Store;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A custom mapper class that takes the store instance and mapper functions "mapStateToProps" and "mapActionsToProps" to return the renderProps pattern as a child component
|
|
34
|
+
* @deprecated please avoid using this class as it will be removed in a future release
|
|
35
|
+
*/
|
|
36
|
+
export declare class ReactionConsumer<PropsFromState, PropsFromActions> extends React.PureComponent<ReactioConsumerProps<PropsFromState, PropsFromActions>, ReactionConsumerState> {
|
|
37
|
+
private previousActions;
|
|
38
|
+
private propsFromActions;
|
|
39
|
+
constructor(props: ReactioConsumerProps<PropsFromState, PropsFromActions>);
|
|
40
|
+
componentDidMount(): void;
|
|
41
|
+
componentWillUnmount(): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Get the actions the child component might need to dispatch from its props
|
|
44
|
+
*/
|
|
45
|
+
private getPropsFromActions;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param state Internal state data
|
|
49
|
+
* @returns object containing the data that the connected component needs
|
|
50
|
+
*/
|
|
51
|
+
private getPropsFromState;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
private handleOnChange;
|
|
56
|
+
render(): React.ReactNode;
|
|
57
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Updater, ReactionsReadyState, ReactionSummary } from '../types';
|
|
2
|
+
type ReactionSummarySortFunction = (a: ReactionSummary, b: ReactionSummary) => number;
|
|
3
|
+
export declare const readyState: (reactions: ReactionSummary[]) => ReactionsReadyState;
|
|
4
|
+
export declare const byEmojiId: (emojiId: string) => (reaction: ReactionSummary) => boolean;
|
|
5
|
+
export declare const addOne: (reaction: ReactionSummary) => ReactionSummary;
|
|
6
|
+
export declare const removeOne: (reaction: ReactionSummary) => ReactionSummary;
|
|
7
|
+
export declare const updateByEmojiId: (emojiId: string, updater: Updater<ReactionSummary> | ReactionSummary) => (reaction: ReactionSummary) => void | ReactionSummary;
|
|
8
|
+
export declare const getReactionsSortFunction: (reactions?: ReactionSummary[]) => ReactionSummarySortFunction;
|
|
9
|
+
export declare const flattenAris: (a: string[], b: string[]) => string[];
|
|
10
|
+
export declare function isRealErrorFromService(errorCode?: number): boolean;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event callback by the client to the API
|
|
3
|
+
* @param containerAri the container for reactions/ari in the page (attached to the "quickReactionEmojis" prop)
|
|
4
|
+
* @param ariunique Atlassian identifier for an emoji (attached to the "quickReactionEmojis" prop)
|
|
5
|
+
* @param emojiId unique identifier guid for the emoji
|
|
6
|
+
*/
|
|
7
|
+
export type ReactionAction = (containerAri: string, ari: string, emojiId: string) => void;
|
|
8
|
+
export type Actions = {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve reaction collection api
|
|
11
|
+
* @param containerId the container for reactions/ari in the page
|
|
12
|
+
* @param aris collection of Asset ids in the container
|
|
13
|
+
*/
|
|
14
|
+
getReactions: (containerId: string, aris: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Select/deselect a rection callback
|
|
17
|
+
*/
|
|
18
|
+
toggleReaction: ReactionAction;
|
|
19
|
+
/**
|
|
20
|
+
* Add a new reation api
|
|
21
|
+
*/
|
|
22
|
+
addReaction: ReactionAction;
|
|
23
|
+
/**
|
|
24
|
+
* Hover an existing reaction emoji api
|
|
25
|
+
*/
|
|
26
|
+
getDetailedReaction: ReactionAction;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Updater<T> = (original: T) => T | void;
|