@atlaskit/reactions 22.2.3 → 22.2.5
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/MockReactionsClient.js +2 -1
- package/dist/cjs/components/Counter/Counter.js +13 -11
- package/dist/cjs/components/Counter/styles.js +10 -7
- package/dist/cjs/components/Reaction/styles.js +2 -1
- package/dist/cjs/components/ReactionPicker/ReactionPicker.js +11 -4
- package/dist/cjs/components/ShowMore/ShowMore.js +1 -1
- package/dist/cjs/hooks/index.js +3 -3
- package/dist/cjs/hooks/useCloseManager.js +47 -0
- package/dist/cjs/i18n/cs.js +14 -13
- package/dist/cjs/i18n/da.js +14 -13
- package/dist/cjs/i18n/de.js +14 -13
- package/dist/cjs/i18n/en.js +15 -14
- package/dist/cjs/i18n/en_GB.js +15 -14
- package/dist/cjs/i18n/en_ZZ.js +15 -14
- package/dist/cjs/i18n/es.js +14 -13
- package/dist/cjs/i18n/fi.js +14 -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 +14 -13
- package/dist/cjs/i18n/nb.js +14 -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 +14 -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 +14 -13
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/MockReactionsClient.js +3 -1
- package/dist/es2019/components/Counter/Counter.js +14 -10
- package/dist/es2019/components/Counter/styles.js +6 -4
- package/dist/es2019/components/Reaction/styles.js +2 -1
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +9 -3
- package/dist/es2019/components/ShowMore/ShowMore.js +1 -1
- package/dist/es2019/hooks/index.js +1 -1
- package/dist/es2019/hooks/useCloseManager.js +42 -0
- package/dist/es2019/i18n/cs.js +14 -13
- package/dist/es2019/i18n/da.js +14 -13
- package/dist/es2019/i18n/de.js +14 -13
- package/dist/es2019/i18n/en.js +15 -14
- package/dist/es2019/i18n/en_GB.js +15 -14
- package/dist/es2019/i18n/en_ZZ.js +15 -14
- package/dist/es2019/i18n/es.js +14 -13
- package/dist/es2019/i18n/fi.js +14 -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 +14 -13
- package/dist/es2019/i18n/nb.js +14 -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 +14 -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 +14 -13
- package/dist/es2019/version.json +1 -1
- package/dist/esm/MockReactionsClient.js +3 -1
- package/dist/esm/components/Counter/Counter.js +14 -10
- package/dist/esm/components/Counter/styles.js +6 -4
- package/dist/esm/components/Reaction/styles.js +2 -1
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +9 -3
- package/dist/esm/components/ShowMore/ShowMore.js +1 -1
- package/dist/esm/hooks/index.js +1 -1
- package/dist/esm/hooks/useCloseManager.js +42 -0
- package/dist/esm/i18n/cs.js +14 -13
- package/dist/esm/i18n/da.js +14 -13
- package/dist/esm/i18n/de.js +14 -13
- package/dist/esm/i18n/en.js +15 -14
- package/dist/esm/i18n/en_GB.js +15 -14
- package/dist/esm/i18n/en_ZZ.js +15 -14
- package/dist/esm/i18n/es.js +14 -13
- package/dist/esm/i18n/fi.js +14 -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 +14 -13
- package/dist/esm/i18n/nb.js +14 -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 +14 -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 +14 -13
- package/dist/esm/version.json +1 -1
- package/dist/types/components/Counter/styles.d.ts +2 -1
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +4 -0
- package/dist/types/hooks/index.d.ts +1 -1
- package/dist/types/hooks/useCloseManager.d.ts +9 -0
- package/dist/types/i18n/cs.d.ts +13 -13
- package/dist/types/i18n/da.d.ts +13 -13
- package/dist/types/i18n/de.d.ts +13 -13
- package/dist/types/i18n/en.d.ts +14 -14
- package/dist/types/i18n/en_GB.d.ts +14 -14
- package/dist/types/i18n/en_ZZ.d.ts +14 -14
- package/dist/types/i18n/es.d.ts +13 -13
- package/dist/types/i18n/fi.d.ts +13 -13
- package/dist/types/i18n/fr.d.ts +13 -13
- package/dist/types/i18n/hu.d.ts +13 -13
- package/dist/types/i18n/it.d.ts +13 -13
- package/dist/types/i18n/ja.d.ts +13 -13
- package/dist/types/i18n/ko.d.ts +13 -13
- package/dist/types/i18n/nb.d.ts +13 -13
- package/dist/types/i18n/nl.d.ts +13 -13
- package/dist/types/i18n/pl.d.ts +13 -13
- package/dist/types/i18n/pt_BR.d.ts +13 -13
- package/dist/types/i18n/ru.d.ts +13 -13
- package/dist/types/i18n/sv.d.ts +13 -13
- package/dist/types/i18n/th.d.ts +13 -13
- package/dist/types/i18n/tr.d.ts +13 -13
- package/dist/types/i18n/uk.d.ts +13 -13
- package/dist/types/i18n/vi.d.ts +13 -13
- package/dist/types/i18n/zh.d.ts +13 -13
- package/dist/types/i18n/zh_TW.d.ts +13 -13
- package/package.json +6 -7
- package/dist/cjs/hooks/useClickAway.js +0 -36
- package/dist/es2019/hooks/useClickAway.js +0 -28
- package/dist/esm/hooks/useClickAway.js +0 -31
- package/dist/types/hooks/useClickAway.d.ts +0 -10
package/dist/types/i18n/nl.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"fabric.reactions.add": string;
|
|
3
|
+
"fabric.reactions.error.unexpected": string;
|
|
4
|
+
"fabric.reactions.loading": string;
|
|
5
|
+
"fabric.reactions.more.emojis": string;
|
|
6
|
+
"fabric.reactions.more.info": string;
|
|
7
|
+
"fabric.reactions.other.reacted.users": string;
|
|
8
|
+
"fabric.reactions.reactwithemoji": string;
|
|
9
|
+
"reactions.dialog.close": string;
|
|
10
|
+
"reactions.dialog.left.navigate": string;
|
|
11
|
+
"reactions.dialog.reactions.count": string;
|
|
12
|
+
"reactions.dialog.right.navigate": string;
|
|
13
|
+
"reactions.dialog.viewall": string;
|
|
14
|
+
"reactions.dialog.viewall.tooltip": string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* NOTE:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.5",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,19 +28,18 @@
|
|
|
28
28
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
29
29
|
"@atlaskit/analytics-namespaced-context": "^6.6.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
31
|
-
"@atlaskit/avatar": "^21.
|
|
31
|
+
"@atlaskit/avatar": "^21.2.0",
|
|
32
32
|
"@atlaskit/button": "^16.5.0",
|
|
33
|
-
"@atlaskit/
|
|
34
|
-
"@atlaskit/emoji": "^67.0.0",
|
|
33
|
+
"@atlaskit/emoji": "^67.1.0",
|
|
35
34
|
"@atlaskit/icon": "^21.11.0",
|
|
36
35
|
"@atlaskit/modal-dialog": "^12.2.0",
|
|
37
36
|
"@atlaskit/motion": "^1.3.0",
|
|
38
37
|
"@atlaskit/popper": "^5.4.0",
|
|
39
|
-
"@atlaskit/spinner": "^15.
|
|
38
|
+
"@atlaskit/spinner": "^15.4.0",
|
|
40
39
|
"@atlaskit/tabs": "^13.2.12",
|
|
41
40
|
"@atlaskit/theme": "^12.2.0",
|
|
42
41
|
"@atlaskit/tokens": "^1.2.0",
|
|
43
|
-
"@atlaskit/tooltip": "^17.
|
|
42
|
+
"@atlaskit/tooltip": "^17.7.0",
|
|
44
43
|
"@atlaskit/ufo": "^0.1.0",
|
|
45
44
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
46
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
"@atlaskit/editor-test-helpers": "^18.0.0",
|
|
58
57
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
59
58
|
"@atlaskit/section-message": "^6.3.0",
|
|
60
|
-
"@atlaskit/tooltip": "^17.
|
|
59
|
+
"@atlaskit/tooltip": "^17.7.0",
|
|
61
60
|
"@atlaskit/util-data-test": "^17.6.0",
|
|
62
61
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
63
62
|
"@atlassian/ufo": "^0.1.0",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useClickAway = useClickAway;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
/**
|
|
9
|
-
* Custom hook to detect when user action is outside given container ref
|
|
10
|
-
* @param ref ref object to an html element
|
|
11
|
-
* @param callback event callback when detected a click outside the ref object
|
|
12
|
-
* @param type (Optional) type of event to listen to. @default click
|
|
13
|
-
* @param useCapture (Optional) use capture phase of event. @default false
|
|
14
|
-
* @param enabled (Optional) enable/disable the outside click handler. @default true
|
|
15
|
-
*/
|
|
16
|
-
function useClickAway(ref, callback) {
|
|
17
|
-
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'click';
|
|
18
|
-
var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
19
|
-
var enabled = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
20
|
-
(0, _react.useEffect)(function () {
|
|
21
|
-
/**
|
|
22
|
-
* Alert if clicked on outside of element
|
|
23
|
-
*/
|
|
24
|
-
function handleClickOutside(event) {
|
|
25
|
-
if (ref.current && event.target instanceof Node && !ref.current.contains(event.target) && enabled) {
|
|
26
|
-
callback();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
// Bind the event listener
|
|
30
|
-
document.addEventListener(type, handleClickOutside, useCapture);
|
|
31
|
-
return function () {
|
|
32
|
-
// Unbind the event listener on clean up
|
|
33
|
-
document.removeEventListener(type, handleClickOutside, useCapture);
|
|
34
|
-
};
|
|
35
|
-
}, [ref, callback, type, useCapture, enabled]);
|
|
36
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook to detect when user action is outside given container ref
|
|
5
|
-
* @param ref ref object to an html element
|
|
6
|
-
* @param callback event callback when detected a click outside the ref object
|
|
7
|
-
* @param type (Optional) type of event to listen to. @default click
|
|
8
|
-
* @param useCapture (Optional) use capture phase of event. @default false
|
|
9
|
-
* @param enabled (Optional) enable/disable the outside click handler. @default true
|
|
10
|
-
*/
|
|
11
|
-
export function useClickAway(ref, callback, type = 'click', useCapture = false, enabled = true) {
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
/**
|
|
14
|
-
* Alert if clicked on outside of element
|
|
15
|
-
*/
|
|
16
|
-
function handleClickOutside(event) {
|
|
17
|
-
if (ref.current && event.target instanceof Node && !ref.current.contains(event.target) && enabled) {
|
|
18
|
-
callback();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
// Bind the event listener
|
|
22
|
-
document.addEventListener(type, handleClickOutside, useCapture);
|
|
23
|
-
return () => {
|
|
24
|
-
// Unbind the event listener on clean up
|
|
25
|
-
document.removeEventListener(type, handleClickOutside, useCapture);
|
|
26
|
-
};
|
|
27
|
-
}, [ref, callback, type, useCapture, enabled]);
|
|
28
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Custom hook to detect when user action is outside given container ref
|
|
5
|
-
* @param ref ref object to an html element
|
|
6
|
-
* @param callback event callback when detected a click outside the ref object
|
|
7
|
-
* @param type (Optional) type of event to listen to. @default click
|
|
8
|
-
* @param useCapture (Optional) use capture phase of event. @default false
|
|
9
|
-
* @param enabled (Optional) enable/disable the outside click handler. @default true
|
|
10
|
-
*/
|
|
11
|
-
export function useClickAway(ref, callback) {
|
|
12
|
-
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'click';
|
|
13
|
-
var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
14
|
-
var enabled = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
15
|
-
useEffect(function () {
|
|
16
|
-
/**
|
|
17
|
-
* Alert if clicked on outside of element
|
|
18
|
-
*/
|
|
19
|
-
function handleClickOutside(event) {
|
|
20
|
-
if (ref.current && event.target instanceof Node && !ref.current.contains(event.target) && enabled) {
|
|
21
|
-
callback();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// Bind the event listener
|
|
25
|
-
document.addEventListener(type, handleClickOutside, useCapture);
|
|
26
|
-
return function () {
|
|
27
|
-
// Unbind the event listener on clean up
|
|
28
|
-
document.removeEventListener(type, handleClickOutside, useCapture);
|
|
29
|
-
};
|
|
30
|
-
}, [ref, callback, type, useCapture, enabled]);
|
|
31
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook to detect when user action is outside given container ref
|
|
4
|
-
* @param ref ref object to an html element
|
|
5
|
-
* @param callback event callback when detected a click outside the ref object
|
|
6
|
-
* @param type (Optional) type of event to listen to. @default click
|
|
7
|
-
* @param useCapture (Optional) use capture phase of event. @default false
|
|
8
|
-
* @param enabled (Optional) enable/disable the outside click handler. @default true
|
|
9
|
-
*/
|
|
10
|
-
export declare function useClickAway(ref: React.RefObject<HTMLElement>, callback: () => void, type?: 'click' | 'mousedown' | 'touchstart', useCapture?: boolean, enabled?: boolean): void;
|