@atlaskit/emoji 69.5.13 → 69.6.1
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 +20 -43
- package/dist/cjs/components/common/ResourcedEmojiComponent.js +5 -1
- package/dist/cjs/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/es2019/components/common/ResourcedEmojiComponent.js +5 -1
- package/dist/es2019/components/picker/EmojiPickerComponent.js +1 -1
- package/dist/esm/components/common/ResourcedEmojiComponent.js +5 -1
- package/dist/esm/components/picker/EmojiPickerComponent.js +1 -1
- package/package.json +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4614dcddb640f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4614dcddb640f) -
|
|
8
|
+
fix wrong feature gate usage for emoji width: auto gate
|
|
9
|
+
|
|
10
|
+
## 69.6.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`9d77230acd685`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d77230acd685) -
|
|
15
|
+
[ux] add escape key support to close emoji picker component for reactions (A11y)
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`c46d8779440a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c46d8779440a9) -
|
|
20
|
+
Use width: auto when fitToHeight is defined
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 69.5.13
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -2161,7 +2181,6 @@
|
|
|
2161
2181
|
|
|
2162
2182
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
2163
2183
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
2164
|
-
|
|
2165
2184
|
- @atlaskit/docs@8.3.2
|
|
2166
2185
|
- @atlaskit/visual-regression@0.1.9
|
|
2167
2186
|
- @atlaskit/analytics-next@6.3.5
|
|
@@ -2448,12 +2467,10 @@ Bumped dependencies.
|
|
|
2448
2467
|
safety. Flow types are no longer provided. No behavioural changes.
|
|
2449
2468
|
|
|
2450
2469
|
**Breaking changes**
|
|
2451
|
-
|
|
2452
2470
|
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
2453
2471
|
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
2454
2472
|
|
|
2455
2473
|
**Breaking changes to TypeScript annotations**
|
|
2456
|
-
|
|
2457
2474
|
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
|
|
2458
2475
|
props as a generic type.
|
|
2459
2476
|
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
|
|
@@ -2534,7 +2551,6 @@ Bumped dependencies.
|
|
|
2534
2551
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
2535
2552
|
|
|
2536
2553
|
In this PR, we are:
|
|
2537
|
-
|
|
2538
2554
|
- Re-introducing dist build folders
|
|
2539
2555
|
- Adding back cjs
|
|
2540
2556
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -2583,7 +2599,6 @@ Bumped dependencies.
|
|
|
2583
2599
|
### Minor Changes
|
|
2584
2600
|
|
|
2585
2601
|
- [minor][11cb8d8626](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/11cb8d8626):
|
|
2586
|
-
|
|
2587
2602
|
- Remove @atlaskit/analytics dependency.
|
|
2588
2603
|
|
|
2589
2604
|
## 62.1.7
|
|
@@ -2608,7 +2623,6 @@ Bumped dependencies.
|
|
|
2608
2623
|
## 62.1.5
|
|
2609
2624
|
|
|
2610
2625
|
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
2611
|
-
|
|
2612
2626
|
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
2613
2627
|
Request #5942 for details
|
|
2614
2628
|
|
|
@@ -2623,13 +2637,11 @@ Bumped dependencies.
|
|
|
2623
2637
|
## 62.1.3
|
|
2624
2638
|
|
|
2625
2639
|
- [patch][ee970b5526](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ee970b5526):
|
|
2626
|
-
|
|
2627
2640
|
- Detect emoji gender and skintone correctly on selection
|
|
2628
2641
|
|
|
2629
2642
|
## 62.1.2
|
|
2630
2643
|
|
|
2631
2644
|
- [patch][9eb495b1e0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9eb495b1e0):
|
|
2632
|
-
|
|
2633
2645
|
- Remove completely canvas-prebuilt as it does not seem to be used
|
|
2634
2646
|
|
|
2635
2647
|
## 62.1.1
|
|
@@ -2643,13 +2655,11 @@ Bumped dependencies.
|
|
|
2643
2655
|
## 62.1.0
|
|
2644
2656
|
|
|
2645
2657
|
- [minor][f120090dfe](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f120090dfe):
|
|
2646
|
-
|
|
2647
2658
|
- Add GASv3 analytics to Emoji TypeAhead.
|
|
2648
2659
|
|
|
2649
2660
|
## 62.0.0
|
|
2650
2661
|
|
|
2651
2662
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
2652
|
-
|
|
2653
2663
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
2654
2664
|
this package, please ensure you use at least this version of react and react-dom.
|
|
2655
2665
|
|
|
@@ -2692,13 +2702,11 @@ Bumped dependencies.
|
|
|
2692
2702
|
## 59.2.5
|
|
2693
2703
|
|
|
2694
2704
|
- [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
|
|
2695
|
-
|
|
2696
2705
|
- Removes babel-runtime in favour of @babel/runtime
|
|
2697
2706
|
|
|
2698
2707
|
## 59.2.4
|
|
2699
2708
|
|
|
2700
2709
|
- [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
|
|
2701
|
-
|
|
2702
2710
|
- Bump tslib
|
|
2703
2711
|
|
|
2704
2712
|
## 59.2.3
|
|
@@ -2717,7 +2725,6 @@ Bumped dependencies.
|
|
|
2717
2725
|
## 59.2.2
|
|
2718
2726
|
|
|
2719
2727
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
2720
|
-
|
|
2721
2728
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
2722
2729
|
supplied from itself.
|
|
2723
2730
|
|
|
@@ -2738,25 +2745,21 @@ Bumped dependencies.
|
|
|
2738
2745
|
## 59.2.0
|
|
2739
2746
|
|
|
2740
2747
|
- [minor][b81d427d5c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b81d427d5c):
|
|
2741
|
-
|
|
2742
2748
|
- ED-5373: Refactor emoji plugin to use new type ahead
|
|
2743
2749
|
|
|
2744
2750
|
## 59.1.1
|
|
2745
2751
|
|
|
2746
2752
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
2747
|
-
|
|
2748
2753
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
2749
2754
|
|
|
2750
2755
|
## 59.1.0
|
|
2751
2756
|
|
|
2752
2757
|
- [minor][ce6fec11a3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ce6fec11a3):
|
|
2753
|
-
|
|
2754
2758
|
- code split for emoji
|
|
2755
2759
|
|
|
2756
2760
|
## 59.0.1
|
|
2757
2761
|
|
|
2758
2762
|
- [patch][3fa12076fd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3fa12076fd):
|
|
2759
|
-
|
|
2760
2763
|
- Fix import statement in emoji analytics
|
|
2761
2764
|
|
|
2762
2765
|
## 59.0.0
|
|
@@ -2770,31 +2773,26 @@ Bumped dependencies.
|
|
|
2770
2773
|
## 58.3.0
|
|
2771
2774
|
|
|
2772
2775
|
- [minor][fdc41108fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/fdc41108fa):
|
|
2773
|
-
|
|
2774
2776
|
- Updated analytics to modern form
|
|
2775
2777
|
|
|
2776
2778
|
## 58.2.0
|
|
2777
2779
|
|
|
2778
2780
|
- [minor][b0210d7ccc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0210d7ccc):
|
|
2779
|
-
|
|
2780
2781
|
- reset jest modules before hydration
|
|
2781
2782
|
|
|
2782
2783
|
## 58.1.1
|
|
2783
2784
|
|
|
2784
2785
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
2785
|
-
|
|
2786
2786
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
2787
2787
|
|
|
2788
2788
|
## 58.1.0
|
|
2789
2789
|
|
|
2790
2790
|
- [minor][b684722884](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b684722884):
|
|
2791
|
-
|
|
2792
2791
|
- improvement of SSR tests and examples for Fabric Elements
|
|
2793
2792
|
|
|
2794
2793
|
## 58.0.0
|
|
2795
2794
|
|
|
2796
2795
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
2797
|
-
|
|
2798
2796
|
- Dropped ES5 distributables from the typescript packages
|
|
2799
2797
|
|
|
2800
2798
|
- Updated dependencies
|
|
@@ -2847,13 +2845,11 @@ Bumped dependencies.
|
|
|
2847
2845
|
## 56.2.0
|
|
2848
2846
|
|
|
2849
2847
|
- [minor][4072865c1c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4072865c1c):
|
|
2850
|
-
|
|
2851
2848
|
- added SSR tests to task-decision
|
|
2852
2849
|
|
|
2853
2850
|
## 56.1.0
|
|
2854
2851
|
|
|
2855
2852
|
- [minor][36bb743af0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36bb743af0):
|
|
2856
|
-
|
|
2857
2853
|
- added/cleaned up ssr tests
|
|
2858
2854
|
|
|
2859
2855
|
## 56.0.0
|
|
@@ -2867,13 +2863,11 @@ Bumped dependencies.
|
|
|
2867
2863
|
## 55.1.0
|
|
2868
2864
|
|
|
2869
2865
|
- [minor][9ab9e467d2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ab9e467d2):
|
|
2870
|
-
|
|
2871
2866
|
- Bump version of typestyle for ssr compatibility
|
|
2872
2867
|
|
|
2873
2868
|
## 55.0.2
|
|
2874
2869
|
|
|
2875
2870
|
- [patch][2d691c1e48](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2d691c1e48):
|
|
2876
|
-
|
|
2877
2871
|
- Added aria labels to Emoji upload component
|
|
2878
2872
|
|
|
2879
2873
|
## 55.0.1
|
|
@@ -2893,7 +2887,6 @@ Bumped dependencies.
|
|
|
2893
2887
|
## 54.1.0
|
|
2894
2888
|
|
|
2895
2889
|
- [minor][cf6799312a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cf6799312a):
|
|
2896
|
-
|
|
2897
2890
|
- Enable striter types for emoji package
|
|
2898
2891
|
|
|
2899
2892
|
## 54.0.0
|
|
@@ -2934,13 +2927,11 @@ Bumped dependencies.
|
|
|
2934
2927
|
## 51.2.0
|
|
2935
2928
|
|
|
2936
2929
|
- [minor][6ef7a45](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6ef7a45):
|
|
2937
|
-
|
|
2938
2930
|
- FS-1230 New standalone emoji upload component added
|
|
2939
2931
|
|
|
2940
2932
|
## 51.1.0
|
|
2941
2933
|
|
|
2942
2934
|
- [minor][e60d7aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e60d7aa):
|
|
2943
|
-
|
|
2944
2935
|
- updated i18n translations
|
|
2945
2936
|
|
|
2946
2937
|
## 51.0.0
|
|
@@ -2959,15 +2950,12 @@ Bumped dependencies.
|
|
|
2959
2950
|
## 49.1.0
|
|
2960
2951
|
|
|
2961
2952
|
- [patch][53cb129](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/53cb129):
|
|
2962
|
-
|
|
2963
2953
|
- show emoji preview error in a tooltip, render spinner outside button, css changes
|
|
2964
2954
|
|
|
2965
2955
|
- [minor][514790b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/514790b):
|
|
2966
|
-
|
|
2967
2956
|
- added i18n support to emoji
|
|
2968
2957
|
|
|
2969
2958
|
- [patch][686de31](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/686de31):
|
|
2970
|
-
|
|
2971
2959
|
- added maxWidth to other buttons
|
|
2972
2960
|
|
|
2973
2961
|
## 49.0.0
|
|
@@ -2979,24 +2967,20 @@ Bumped dependencies.
|
|
|
2979
2967
|
## 48.0.2
|
|
2980
2968
|
|
|
2981
2969
|
- [patch][0f19693](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0f19693):
|
|
2982
|
-
|
|
2983
2970
|
- added tests for xregexp transformer, updated README and simplified code
|
|
2984
2971
|
|
|
2985
2972
|
- [patch][b789b3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b789b3a):
|
|
2986
|
-
|
|
2987
2973
|
- removed xregexp library dependency from emoji and mention components, added xregexp-transformer
|
|
2988
2974
|
package to compile xregexp expressions to unicode charsets
|
|
2989
2975
|
|
|
2990
2976
|
## 48.0.1
|
|
2991
2977
|
|
|
2992
2978
|
- [patch][015fcd0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/015fcd0):
|
|
2993
|
-
|
|
2994
2979
|
- Adjusted unit tests to test for the bug noticed in FS-3259. Added multiple atlassian-ftfy emoji
|
|
2995
2980
|
to test this, so updated a unit test to confirm that there are 14 Atlassian emoji, and also
|
|
2996
2981
|
added an additional unit test to confirm that FS-3259 was corrected.
|
|
2997
2982
|
|
|
2998
2983
|
- [patch][18203e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18203e6):
|
|
2999
|
-
|
|
3000
2984
|
- FS-3259 Fixed bug that caused an emoji to be automatically inserted for a query including a
|
|
3001
2985
|
closing colon even if there are multiple (an odd number specifically) emoji with an exact
|
|
3002
2986
|
shortName match.
|
|
@@ -3010,7 +2994,6 @@ Bumped dependencies.
|
|
|
3010
2994
|
## 47.0.8
|
|
3011
2995
|
|
|
3012
2996
|
- [patch][b81da9b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b81da9b):
|
|
3013
|
-
|
|
3014
2997
|
- Fix typescript types to support strictFunctionTypes
|
|
3015
2998
|
|
|
3016
2999
|
## 47.0.7
|
|
@@ -3044,13 +3027,11 @@ Bumped dependencies.
|
|
|
3044
3027
|
## 47.0.5
|
|
3045
3028
|
|
|
3046
3029
|
- [patch][31ac424](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/31ac424):
|
|
3047
|
-
|
|
3048
3030
|
- FS-1596 Changed sizes of example emojis in test00.
|
|
3049
3031
|
|
|
3050
3032
|
## 47.0.4
|
|
3051
3033
|
|
|
3052
3034
|
- [patch][90c4702](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/90c4702):
|
|
3053
|
-
|
|
3054
3035
|
- FS-1734 Removed the try it out section from Emoji and Mentions documentation pages to match
|
|
3055
3036
|
other pages. The section only contained a link to the same page, so was essentially redundant
|
|
3056
3037
|
and potentially confusing.
|
|
@@ -3058,7 +3039,6 @@ Bumped dependencies.
|
|
|
3058
3039
|
## 47.0.3
|
|
3059
3040
|
|
|
3060
3041
|
- [patch][3061b52](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3061b52):
|
|
3061
|
-
|
|
3062
3042
|
- AK-5723 - adjust files in package.json to ensure correct publishing of dist/package.json
|
|
3063
3043
|
|
|
3064
3044
|
## 47.0.2
|
|
@@ -3090,7 +3070,6 @@ Bumped dependencies.
|
|
|
3090
3070
|
## 46.0.1
|
|
3091
3071
|
|
|
3092
3072
|
- [patch][49a2a58](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49a2a58):
|
|
3093
|
-
|
|
3094
3073
|
- Use onClick from button in emoji
|
|
3095
3074
|
|
|
3096
3075
|
## 46.0.0
|
|
@@ -3102,13 +3081,11 @@ Bumped dependencies.
|
|
|
3102
3081
|
## 45.0.4
|
|
3103
3082
|
|
|
3104
3083
|
- [patch][36c362f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36c362f):
|
|
3105
|
-
|
|
3106
3084
|
- FS-3174 - Fix usage of gridSize() and borderRadius()
|
|
3107
3085
|
|
|
3108
3086
|
## 45.0.3
|
|
3109
3087
|
|
|
3110
3088
|
- [patch][527b954](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/527b954):
|
|
3111
|
-
|
|
3112
3089
|
- FS-3174 - Remove usage of util-shared-styles from elements components
|
|
3113
3090
|
|
|
3114
3091
|
## 45.0.2
|
|
@@ -19,6 +19,7 @@ var _EmojiPlaceholder = _interopRequireDefault(require("./EmojiPlaceholder"));
|
|
|
19
19
|
var _analytics = require("../../util/analytics");
|
|
20
20
|
var _EmojiCommonProvider = require("../../context/EmojiCommonProvider");
|
|
21
21
|
var _ufoExperiences = require("../../util/analytics/ufoExperiences");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
23
24
|
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; }
|
|
24
25
|
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) { (0, _defineProperty2.default)(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; }
|
|
@@ -220,6 +221,9 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
220
221
|
var handleOnLoadSuccess = (0, _react.useCallback)(function (emojiId) {
|
|
221
222
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
222
223
|
}, [onEmojiLoadSuccess]);
|
|
224
|
+
|
|
225
|
+
// use width: auto as long as fitToHeight is defined
|
|
226
|
+
var autoWidth = (0, _platformFeatureFlags.fg)('platform_emoji_width_auto_fittoheight') ? !!fitToHeight : !!emoji ? false : true;
|
|
223
227
|
return /*#__PURE__*/_react.default.createElement(_EmojiCommonProvider.EmojiCommonProvider, {
|
|
224
228
|
emojiProvider: resolvedEmojiProvider
|
|
225
229
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -240,7 +244,7 @@ var ResourcedEmojiComponent = exports.ResourcedEmojiComponent = function Resourc
|
|
|
240
244
|
onLoadSuccess: handleOnLoadSuccess,
|
|
241
245
|
showTooltip: showTooltip,
|
|
242
246
|
fitToHeight: fitToHeight,
|
|
243
|
-
autoWidth:
|
|
247
|
+
autoWidth: autoWidth,
|
|
244
248
|
editorEmoji: editorEmoji
|
|
245
249
|
})));
|
|
246
250
|
};
|
|
@@ -434,7 +434,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
434
434
|
// stop all key propagation to other event listeners
|
|
435
435
|
var suppressKeyPress = function suppressKeyPress(e) {
|
|
436
436
|
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
437
|
-
if ((e.key === 'Escape' || e.key === 'Esc') && (0, _platformFeatureFlags.fg)('platform_emoji_picker_escape_propagation')) {
|
|
437
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && ((0, _platformFeatureFlags.fg)('platform_emoji_picker_escape_propagation') || (0, _platformFeatureFlags.fg)('platform_jira_emoji_picker_escape_propagation'))) {
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
e.stopPropagation();
|
|
@@ -7,6 +7,7 @@ import EmojiPlaceholder from './EmojiPlaceholder';
|
|
|
7
7
|
import { sampledUfoRenderedEmoji } from '../../util/analytics';
|
|
8
8
|
import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
|
|
9
9
|
import { hasUfoMarked } from '../../util/analytics/ufoExperiences';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
var ResourcedEmojiComponentRenderStatesEnum = /*#__PURE__*/function (ResourcedEmojiComponentRenderStatesEnum) {
|
|
11
12
|
ResourcedEmojiComponentRenderStatesEnum["INITIAL"] = "INITIAL";
|
|
12
13
|
ResourcedEmojiComponentRenderStatesEnum["FALLBACK"] = "FALLBACK";
|
|
@@ -175,6 +176,9 @@ export const ResourcedEmojiComponent = ({
|
|
|
175
176
|
const handleOnLoadSuccess = useCallback(emojiId => {
|
|
176
177
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
177
178
|
}, [onEmojiLoadSuccess]);
|
|
179
|
+
|
|
180
|
+
// use width: auto as long as fitToHeight is defined
|
|
181
|
+
const autoWidth = fg('platform_emoji_width_auto_fittoheight') ? !!fitToHeight : !!emoji ? false : true;
|
|
178
182
|
return /*#__PURE__*/React.createElement(EmojiCommonProvider, {
|
|
179
183
|
emojiProvider: resolvedEmojiProvider
|
|
180
184
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -195,7 +199,7 @@ export const ResourcedEmojiComponent = ({
|
|
|
195
199
|
onLoadSuccess: handleOnLoadSuccess,
|
|
196
200
|
showTooltip: showTooltip,
|
|
197
201
|
fitToHeight: fitToHeight,
|
|
198
|
-
autoWidth:
|
|
202
|
+
autoWidth: autoWidth,
|
|
199
203
|
editorEmoji: editorEmoji
|
|
200
204
|
})));
|
|
201
205
|
};
|
|
@@ -372,7 +372,7 @@ const EmojiPickerComponent = ({
|
|
|
372
372
|
// stop all key propagation to other event listeners
|
|
373
373
|
const suppressKeyPress = e => {
|
|
374
374
|
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
375
|
-
if ((e.key === 'Escape' || e.key === 'Esc') && fg('platform_emoji_picker_escape_propagation')) {
|
|
375
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && (fg('platform_emoji_picker_escape_propagation') || fg('platform_jira_emoji_picker_escape_propagation'))) {
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
378
|
e.stopPropagation();
|
|
@@ -13,6 +13,7 @@ import EmojiPlaceholder from './EmojiPlaceholder';
|
|
|
13
13
|
import { sampledUfoRenderedEmoji } from '../../util/analytics';
|
|
14
14
|
import { EmojiCommonProvider } from '../../context/EmojiCommonProvider';
|
|
15
15
|
import { hasUfoMarked } from '../../util/analytics/ufoExperiences';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
var ResourcedEmojiComponentRenderStatesEnum = /*#__PURE__*/function (ResourcedEmojiComponentRenderStatesEnum) {
|
|
17
18
|
ResourcedEmojiComponentRenderStatesEnum["INITIAL"] = "INITIAL";
|
|
18
19
|
ResourcedEmojiComponentRenderStatesEnum["FALLBACK"] = "FALLBACK";
|
|
@@ -211,6 +212,9 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
211
212
|
var handleOnLoadSuccess = useCallback(function (emojiId) {
|
|
212
213
|
onEmojiLoadSuccess && onEmojiLoadSuccess(emojiId.id);
|
|
213
214
|
}, [onEmojiLoadSuccess]);
|
|
215
|
+
|
|
216
|
+
// use width: auto as long as fitToHeight is defined
|
|
217
|
+
var autoWidth = fg('platform_emoji_width_auto_fittoheight') ? !!fitToHeight : !!emoji ? false : true;
|
|
214
218
|
return /*#__PURE__*/React.createElement(EmojiCommonProvider, {
|
|
215
219
|
emojiProvider: resolvedEmojiProvider
|
|
216
220
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -231,7 +235,7 @@ export var ResourcedEmojiComponent = function ResourcedEmojiComponent(_ref) {
|
|
|
231
235
|
onLoadSuccess: handleOnLoadSuccess,
|
|
232
236
|
showTooltip: showTooltip,
|
|
233
237
|
fitToHeight: fitToHeight,
|
|
234
|
-
autoWidth:
|
|
238
|
+
autoWidth: autoWidth,
|
|
235
239
|
editorEmoji: editorEmoji
|
|
236
240
|
})));
|
|
237
241
|
};
|
|
@@ -425,7 +425,7 @@ var EmojiPickerComponent = function EmojiPickerComponent(_ref) {
|
|
|
425
425
|
// stop all key propagation to other event listeners
|
|
426
426
|
var suppressKeyPress = function suppressKeyPress(e) {
|
|
427
427
|
// Allow escape key to propagate so parent components can handle it (behind feature gate)
|
|
428
|
-
if ((e.key === 'Escape' || e.key === 'Esc') && fg('platform_emoji_picker_escape_propagation')) {
|
|
428
|
+
if ((e.key === 'Escape' || e.key === 'Esc') && (fg('platform_emoji_picker_escape_propagation') || fg('platform_jira_emoji_picker_escape_propagation'))) {
|
|
429
429
|
return;
|
|
430
430
|
}
|
|
431
431
|
e.stopPropagation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.
|
|
3
|
+
"version": "69.6.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"@atlaskit/afm-i18n-platform-elements-emoji": "2.7.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
39
39
|
"@atlaskit/button": "^23.5.0",
|
|
40
|
-
"@atlaskit/css": "^0.
|
|
40
|
+
"@atlaskit/css": "^0.15.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
42
|
"@atlaskit/icon": "^28.5.0",
|
|
43
43
|
"@atlaskit/media-client": "^35.5.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
47
|
-
"@atlaskit/primitives": "^
|
|
48
|
-
"@atlaskit/react-ufo": "^4.
|
|
47
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
48
|
+
"@atlaskit/react-ufo": "^4.12.0",
|
|
49
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
50
|
"@atlaskit/textfield": "^8.0.0",
|
|
51
51
|
"@atlaskit/theme": "^21.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
53
|
-
"@atlaskit/tokens": "^6.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^13.12.0",
|
|
53
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
54
54
|
"@atlaskit/tooltip": "^20.5.0",
|
|
55
55
|
"@atlaskit/ufo": "^0.4.0",
|
|
56
56
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
57
57
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
|
-
"@compiled/react": "^0.18.
|
|
59
|
+
"@compiled/react": "^0.18.6",
|
|
60
60
|
"@tanstack/react-virtual": "3.0.0-beta.60",
|
|
61
61
|
"js-search": "^2.0.0",
|
|
62
62
|
"lru_map": "^0.4.1",
|
|
@@ -127,8 +127,14 @@
|
|
|
127
127
|
"platform_emoji_picker_escape_propagation": {
|
|
128
128
|
"type": "boolean"
|
|
129
129
|
},
|
|
130
|
+
"platform_jira_emoji_picker_escape_propagation": {
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
130
133
|
"platform_emoji_ssr_width_auto_allowed": {
|
|
131
134
|
"type": "boolean"
|
|
135
|
+
},
|
|
136
|
+
"platform_emoji_width_auto_fittoheight": {
|
|
137
|
+
"type": "boolean"
|
|
132
138
|
}
|
|
133
139
|
},
|
|
134
140
|
"scripts": {
|