@atlaskit/user-picker 11.7.1 → 11.8.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 +13 -42
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/MultiValueContainer.js +8 -3
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/MultiValueContainer.js +8 -3
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/MultiValueContainer.js +8 -3
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`b699e38a65c1a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b699e38a65c1a) -
|
|
14
|
+
Migrate off findDOMNode to make UserPicker compatible with React 19 (behind a FG for now)
|
|
15
|
+
|
|
3
16
|
## 11.7.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -68,7 +81,6 @@
|
|
|
68
81
|
|
|
69
82
|
- [`d281a835c4897`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d281a835c4897) -
|
|
70
83
|
[ux]
|
|
71
|
-
|
|
72
84
|
- `TeamCreateDialog`
|
|
73
85
|
- Fixed incorrect ariaDescribedBy identifier so that VoiceOver can read out the error message.
|
|
74
86
|
- Programmatically focus the input on submit when there is an error.
|
|
@@ -1540,7 +1552,6 @@
|
|
|
1540
1552
|
moved to its own dedicated package, @atlaskit/smart-user-picker.
|
|
1541
1553
|
|
|
1542
1554
|
### What this means for you as a @atlaskit/user-picker/smart-user-picker consumer
|
|
1543
|
-
|
|
1544
1555
|
- If you require an urgent change to SmartUserPicker, you will need to migrate and make changes to
|
|
1545
1556
|
@atlaskit/smart-user-picker.
|
|
1546
1557
|
|
|
@@ -2676,7 +2687,6 @@
|
|
|
2676
2687
|
|
|
2677
2688
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
2678
2689
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
2679
|
-
|
|
2680
2690
|
- @atlaskit/docs@8.3.2
|
|
2681
2691
|
- @atlaskit/analytics-next@6.3.5
|
|
2682
2692
|
- @atlaskit/avatar@17.1.7
|
|
@@ -2754,7 +2764,6 @@
|
|
|
2754
2764
|
Make PopupSelect correctly pass props. Forcing update of @atlaskit/select for all other packages-
|
|
2755
2765
|
Updated dependencies
|
|
2756
2766
|
[3a20e9a596](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3a20e9a596):
|
|
2757
|
-
|
|
2758
2767
|
- @atlaskit/select@11.0.2
|
|
2759
2768
|
|
|
2760
2769
|
## 4.1.4
|
|
@@ -2844,12 +2853,10 @@
|
|
|
2844
2853
|
safety. Flow types are no longer provided. No behavioural changes.
|
|
2845
2854
|
|
|
2846
2855
|
**Breaking changes**
|
|
2847
|
-
|
|
2848
2856
|
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
2849
2857
|
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
2850
2858
|
|
|
2851
2859
|
**Breaking changes to TypeScript annotations**
|
|
2852
|
-
|
|
2853
2860
|
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
|
|
2854
2861
|
props as a generic type.
|
|
2855
2862
|
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
|
|
@@ -2896,7 +2903,6 @@
|
|
|
2896
2903
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
2897
2904
|
|
|
2898
2905
|
In this PR, we are:
|
|
2899
|
-
|
|
2900
2906
|
- Re-introducing dist build folders
|
|
2901
2907
|
- Adding back cjs
|
|
2902
2908
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -3044,50 +3050,42 @@
|
|
|
3044
3050
|
## 4.0.0
|
|
3045
3051
|
|
|
3046
3052
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
3047
|
-
|
|
3048
3053
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
3049
3054
|
this package, please ensure you use at least this version of react and react-dom.
|
|
3050
3055
|
|
|
3051
3056
|
## 3.5.5
|
|
3052
3057
|
|
|
3053
3058
|
- [patch][87c47cd667](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/87c47cd667):
|
|
3054
|
-
|
|
3055
3059
|
- Getting updated styles from tag
|
|
3056
3060
|
|
|
3057
3061
|
## 3.5.4
|
|
3058
3062
|
|
|
3059
3063
|
- [patch][b8bc454675](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b8bc454675):
|
|
3060
|
-
|
|
3061
3064
|
- Add inputId prop to allow label to open the user picker
|
|
3062
3065
|
|
|
3063
3066
|
## 3.5.3
|
|
3064
3067
|
|
|
3065
3068
|
- [patch][171feaa473](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/171feaa473):
|
|
3066
|
-
|
|
3067
3069
|
- FS-3792 clear results after selection
|
|
3068
3070
|
|
|
3069
3071
|
## 3.5.2
|
|
3070
3072
|
|
|
3071
3073
|
- [patch][7cb36f2603](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7cb36f2603):
|
|
3072
|
-
|
|
3073
3074
|
- Fixed User Picker showing the spinner forever in some async use cases.
|
|
3074
3075
|
|
|
3075
3076
|
## 3.5.1
|
|
3076
3077
|
|
|
3077
3078
|
- [patch][3fbfd9d7f5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3fbfd9d7f5):
|
|
3078
|
-
|
|
3079
3079
|
- updated byline message for EmailOption based on email validity in user-picker
|
|
3080
3080
|
|
|
3081
3081
|
## 3.5.0
|
|
3082
3082
|
|
|
3083
3083
|
- [minor][e1abf3f31a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1abf3f31a):
|
|
3084
|
-
|
|
3085
3084
|
- Prevent popup user picker from being dismissed on clear.
|
|
3086
3085
|
|
|
3087
3086
|
## 3.4.3
|
|
3088
3087
|
|
|
3089
3088
|
- [patch][2f8c041db5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2f8c041db5):
|
|
3090
|
-
|
|
3091
3089
|
- Corrected asynchronous user picker behaviour
|
|
3092
3090
|
|
|
3093
3091
|
## 3.4.2
|
|
@@ -3108,110 +3106,92 @@
|
|
|
3108
3106
|
## 3.4.1
|
|
3109
3107
|
|
|
3110
3108
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
3111
|
-
|
|
3112
3109
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
3113
3110
|
supplied from itself.
|
|
3114
3111
|
|
|
3115
3112
|
## 3.4.0
|
|
3116
3113
|
|
|
3117
3114
|
- [minor][4a8effc046](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4a8effc046):
|
|
3118
|
-
|
|
3119
3115
|
- FS-3741 expose boundariesElement for integrators to pass in custom boundary
|
|
3120
3116
|
|
|
3121
3117
|
## 3.3.5
|
|
3122
3118
|
|
|
3123
3119
|
- [patch][0f4109e919](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0f4109e919):
|
|
3124
|
-
|
|
3125
3120
|
- FS-3743 remove loading message from user picker
|
|
3126
3121
|
|
|
3127
3122
|
## 3.3.4
|
|
3128
3123
|
|
|
3129
3124
|
- [patch][93464f09e8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/93464f09e8):
|
|
3130
|
-
|
|
3131
3125
|
- TEAMS-328 : Changing byline logic
|
|
3132
3126
|
|
|
3133
3127
|
## 3.3.3
|
|
3134
3128
|
|
|
3135
3129
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
3136
|
-
|
|
3137
3130
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
3138
3131
|
|
|
3139
3132
|
## 3.3.2
|
|
3140
3133
|
|
|
3141
3134
|
- [patch][3718bdc361](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3718bdc361):
|
|
3142
|
-
|
|
3143
3135
|
- Updated InviteAvatorIcon in UserPicker to be not transparent
|
|
3144
3136
|
|
|
3145
3137
|
## 3.3.1
|
|
3146
3138
|
|
|
3147
3139
|
- [patch][83ad0552d4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/83ad0552d4):
|
|
3148
|
-
|
|
3149
3140
|
- Workaround SSR avatar issue in user-picker ssr tests
|
|
3150
3141
|
|
|
3151
3142
|
## 3.3.0
|
|
3152
3143
|
|
|
3153
3144
|
- [minor][4526b178cb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4526b178cb):
|
|
3154
|
-
|
|
3155
3145
|
- Fixed uncaptured Enter key press on Input
|
|
3156
3146
|
|
|
3157
3147
|
## 3.2.0
|
|
3158
3148
|
|
|
3159
3149
|
- [minor][b0210d7ccc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0210d7ccc):
|
|
3160
|
-
|
|
3161
3150
|
- reset jest modules before hydration
|
|
3162
3151
|
|
|
3163
3152
|
## 3.1.1
|
|
3164
3153
|
|
|
3165
3154
|
- [patch][3161a93cdb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3161a93cdb):
|
|
3166
|
-
|
|
3167
3155
|
- FS-3289 update share copy
|
|
3168
3156
|
|
|
3169
3157
|
## 3.1.0
|
|
3170
3158
|
|
|
3171
3159
|
- [minor][1da59f9d31](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1da59f9d31):
|
|
3172
|
-
|
|
3173
3160
|
- added ssr tests to user-picker
|
|
3174
3161
|
|
|
3175
3162
|
## 3.0.0
|
|
3176
3163
|
|
|
3177
3164
|
- [major][3ea3f5ea55](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ea3f5ea55):
|
|
3178
|
-
|
|
3179
3165
|
- FS-3548 integrators must explicitly set the context prop in user-picker
|
|
3180
3166
|
|
|
3181
3167
|
## 2.0.3
|
|
3182
3168
|
|
|
3183
3169
|
- [patch][552843a739](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/552843a739):
|
|
3184
|
-
|
|
3185
3170
|
- FS-3639 fix analytics when no item is removed
|
|
3186
3171
|
|
|
3187
3172
|
## 2.0.2
|
|
3188
3173
|
|
|
3189
3174
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
3190
|
-
|
|
3191
3175
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
3192
3176
|
|
|
3193
3177
|
## 2.0.1
|
|
3194
3178
|
|
|
3195
3179
|
- [patch][de8123519a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de8123519a):
|
|
3196
|
-
|
|
3197
3180
|
- FS-3675 add ability for integrator to add title to popup picker
|
|
3198
3181
|
|
|
3199
3182
|
## 2.0.0
|
|
3200
3183
|
|
|
3201
3184
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
3202
|
-
|
|
3203
3185
|
- Dropped ES5 distributables from the typescript packages
|
|
3204
3186
|
|
|
3205
3187
|
## 1.1.1
|
|
3206
3188
|
|
|
3207
3189
|
- [patch][64c306c904](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/64c306c904):
|
|
3208
|
-
|
|
3209
3190
|
- FS-3599 remove logic to hide add more placeholder
|
|
3210
3191
|
|
|
3211
3192
|
## 1.1.0
|
|
3212
3193
|
|
|
3213
3194
|
- [minor][14af4044ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/14af4044ea):
|
|
3214
|
-
|
|
3215
3195
|
- FS-3354 introduce PopupUserPicker to package
|
|
3216
3196
|
|
|
3217
3197
|
## 1.0.25
|
|
@@ -3234,26 +3214,22 @@
|
|
|
3234
3214
|
## 1.0.24
|
|
3235
3215
|
|
|
3236
3216
|
- [patch][97307d9dd1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97307d9dd1):
|
|
3237
|
-
|
|
3238
3217
|
- FS-3618 add isValidEmail prop to UserPicker
|
|
3239
3218
|
|
|
3240
3219
|
## 1.0.23
|
|
3241
3220
|
|
|
3242
3221
|
- [patch][ad1bd2a92e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ad1bd2a92e):
|
|
3243
|
-
|
|
3244
3222
|
- FS-3605 expose prop to disable input
|
|
3245
3223
|
|
|
3246
3224
|
## 1.0.22
|
|
3247
3225
|
|
|
3248
3226
|
- [patch][46ffd45f21](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/46ffd45f21):
|
|
3249
|
-
|
|
3250
3227
|
- Added ability to toggle animations in atlaskit/select, updated UserPicker to disable animations
|
|
3251
3228
|
using this new behaviour
|
|
3252
3229
|
|
|
3253
3230
|
## 1.0.21
|
|
3254
3231
|
|
|
3255
3232
|
- [patch][b38b2098e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b38b2098e3):
|
|
3256
|
-
|
|
3257
3233
|
- FS-3417 export utils functions
|
|
3258
3234
|
|
|
3259
3235
|
## 1.0.20
|
|
@@ -3265,29 +3241,24 @@
|
|
|
3265
3241
|
## 1.0.19
|
|
3266
3242
|
|
|
3267
3243
|
- [patch][1050084e29](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1050084e29):
|
|
3268
|
-
|
|
3269
3244
|
- TEAMS-242 : Change user picker placeholder
|
|
3270
3245
|
|
|
3271
3246
|
## 1.0.18
|
|
3272
3247
|
|
|
3273
3248
|
- [patch][0809a67d7b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0809a67d7b):
|
|
3274
|
-
|
|
3275
3249
|
- FS-3591 hide selected users from multi picker
|
|
3276
3250
|
|
|
3277
3251
|
## 1.0.17
|
|
3278
3252
|
|
|
3279
3253
|
- [patch][67f0d11134](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f0d11134):
|
|
3280
|
-
|
|
3281
3254
|
- FS-3577 show selected options by default
|
|
3282
3255
|
|
|
3283
3256
|
## 1.0.16
|
|
3284
3257
|
|
|
3285
3258
|
- [patch][c51d1e2e51](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c51d1e2e51):
|
|
3286
|
-
|
|
3287
3259
|
- FS-3573 show user avatar on focus
|
|
3288
3260
|
|
|
3289
3261
|
## 1.0.15
|
|
3290
3262
|
|
|
3291
3263
|
- [patch][1ce3a8812b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1ce3a8812b):
|
|
3292
|
-
|
|
3293
3264
|
- FS-3458 call loadOptions if open prop is controlled
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
|
|
|
12
12
|
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; }
|
|
13
13
|
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; }
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "11.
|
|
15
|
+
var packageVersion = "11.8.0";
|
|
16
16
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
17
17
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
18
18
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -24,6 +24,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
24
24
|
var _i18n = require("./i18n");
|
|
25
25
|
var _utils = require("./utils");
|
|
26
26
|
var _ValueContainerWrapper = _interopRequireDefault(require("./ValueContainerWrapper"));
|
|
27
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
28
|
var _excluded = ["children", "innerProps"];
|
|
28
29
|
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); }
|
|
29
30
|
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; }
|
|
@@ -43,9 +44,13 @@ var MultiValueContainer = exports.MultiValueContainer = /*#__PURE__*/function (_
|
|
|
43
44
|
_this.timeoutId = window.setTimeout(function () {
|
|
44
45
|
var current = _this.valueContainerInnerProps.ref.current;
|
|
45
46
|
if (current !== null) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
if ((0, _platformFeatureFlags.fg)('user-picker-migrate-off-finddomnode')) {
|
|
48
|
+
current.scrollTop = current.scrollHeight;
|
|
49
|
+
} else {
|
|
50
|
+
var container = _reactDom.default.findDOMNode(current);
|
|
51
|
+
if (container instanceof HTMLDivElement) {
|
|
52
|
+
container.scrollTop = container.scrollHeight;
|
|
53
|
+
}
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
_this.timeoutId = null;
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { isCustom, isExternalUser } from './components/utils';
|
|
4
4
|
const packageName = "@atlaskit/user-picker";
|
|
5
|
-
const packageVersion = "11.
|
|
5
|
+
const packageVersion = "11.8.0";
|
|
6
6
|
const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
7
7
|
const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
8
8
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -10,6 +10,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
10
10
|
import { messages } from './i18n';
|
|
11
11
|
import { isChildInput } from './utils';
|
|
12
12
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
const valueContainerStyles = {
|
|
14
15
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bv12x7 _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
15
16
|
};
|
|
@@ -31,9 +32,13 @@ export class MultiValueContainer extends React.PureComponent {
|
|
|
31
32
|
}
|
|
32
33
|
} = this.valueContainerInnerProps;
|
|
33
34
|
if (current !== null) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
if (fg('user-picker-migrate-off-finddomnode')) {
|
|
36
|
+
current.scrollTop = current.scrollHeight;
|
|
37
|
+
} else {
|
|
38
|
+
const container = ReactDOM.findDOMNode(current);
|
|
39
|
+
if (container instanceof HTMLDivElement) {
|
|
40
|
+
container.scrollTop = container.scrollHeight;
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
this.timeoutId = null;
|
package/dist/esm/analytics.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
6
|
import { isCustom, isExternalUser } from './components/utils';
|
|
7
7
|
var packageName = "@atlaskit/user-picker";
|
|
8
|
-
var packageVersion = "11.
|
|
8
|
+
var packageVersion = "11.8.0";
|
|
9
9
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
10
10
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
11
11
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -21,6 +21,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
21
21
|
import { messages } from './i18n';
|
|
22
22
|
import { isChildInput } from './utils';
|
|
23
23
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
24
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
var valueContainerStyles = {
|
|
25
26
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bv12x7 _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
26
27
|
};
|
|
@@ -34,9 +35,13 @@ export var MultiValueContainer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
34
35
|
_this.timeoutId = window.setTimeout(function () {
|
|
35
36
|
var current = _this.valueContainerInnerProps.ref.current;
|
|
36
37
|
if (current !== null) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
if (fg('user-picker-migrate-off-finddomnode')) {
|
|
39
|
+
current.scrollTop = current.scrollHeight;
|
|
40
|
+
} else {
|
|
41
|
+
var container = ReactDOM.findDOMNode(current);
|
|
42
|
+
if (container instanceof HTMLDivElement) {
|
|
43
|
+
container.scrollTop = container.scrollHeight;
|
|
44
|
+
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
42
47
|
_this.timeoutId = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.1",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
58
58
|
"@atlaskit/theme": "^21.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^
|
|
59
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.5.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
|
-
"@compiled/react": "^0.18.
|
|
63
|
+
"@compiled/react": "^0.18.6",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"lodash": "^4.17.21",
|
|
66
66
|
"memoize-one": "^6.0.0",
|
|
@@ -111,6 +111,9 @@
|
|
|
111
111
|
},
|
|
112
112
|
"product-terminology-refresh": {
|
|
113
113
|
"type": "boolean"
|
|
114
|
+
},
|
|
115
|
+
"user-picker-migrate-off-finddomnode": {
|
|
116
|
+
"type": "boolean"
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}
|