@atlaskit/user-picker 11.7.0 → 11.8.0
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/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/cjs/components/MultiValueContainer.js +8 -3
- package/dist/cjs/components/PopupUserPicker.js +1 -3
- package/dist/cjs/components/UserOption.js +1 -3
- package/dist/cjs/components/UserPicker.js +1 -3
- package/dist/cjs/components/ValueContainerWrapper.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/es2019/components/MultiValueContainer.js +8 -3
- package/dist/es2019/components/PopupUserPicker.js +1 -3
- package/dist/es2019/components/UserOption.js +1 -3
- package/dist/es2019/components/UserPicker.js +1 -3
- package/dist/es2019/components/ValueContainerWrapper.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/esm/components/MultiValueContainer.js +8 -3
- package/dist/esm/components/PopupUserPicker.js +1 -3
- package/dist/esm/components/UserOption.js +1 -3
- package/dist/esm/components/UserPicker.js +1 -3
- package/dist/esm/components/ValueContainerWrapper.js +1 -1
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types/components/PopupUserPicker.d.ts +4 -4
- package/dist/types/components/UserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +4 -4
- package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b699e38a65c1a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b699e38a65c1a) -
|
|
8
|
+
Migrate off findDOMNode to make UserPicker compatible with React 19 (behind a FG for now)
|
|
9
|
+
|
|
10
|
+
## 11.7.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 11.7.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -62,7 +75,6 @@
|
|
|
62
75
|
|
|
63
76
|
- [`d281a835c4897`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d281a835c4897) -
|
|
64
77
|
[ux]
|
|
65
|
-
|
|
66
78
|
- `TeamCreateDialog`
|
|
67
79
|
- Fixed incorrect ariaDescribedBy identifier so that VoiceOver can read out the error message.
|
|
68
80
|
- Programmatically focus the input on submit when there is an error.
|
|
@@ -1534,7 +1546,6 @@
|
|
|
1534
1546
|
moved to its own dedicated package, @atlaskit/smart-user-picker.
|
|
1535
1547
|
|
|
1536
1548
|
### What this means for you as a @atlaskit/user-picker/smart-user-picker consumer
|
|
1537
|
-
|
|
1538
1549
|
- If you require an urgent change to SmartUserPicker, you will need to migrate and make changes to
|
|
1539
1550
|
@atlaskit/smart-user-picker.
|
|
1540
1551
|
|
|
@@ -2670,7 +2681,6 @@
|
|
|
2670
2681
|
|
|
2671
2682
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
2672
2683
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
2673
|
-
|
|
2674
2684
|
- @atlaskit/docs@8.3.2
|
|
2675
2685
|
- @atlaskit/analytics-next@6.3.5
|
|
2676
2686
|
- @atlaskit/avatar@17.1.7
|
|
@@ -2748,7 +2758,6 @@
|
|
|
2748
2758
|
Make PopupSelect correctly pass props. Forcing update of @atlaskit/select for all other packages-
|
|
2749
2759
|
Updated dependencies
|
|
2750
2760
|
[3a20e9a596](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3a20e9a596):
|
|
2751
|
-
|
|
2752
2761
|
- @atlaskit/select@11.0.2
|
|
2753
2762
|
|
|
2754
2763
|
## 4.1.4
|
|
@@ -2838,12 +2847,10 @@
|
|
|
2838
2847
|
safety. Flow types are no longer provided. No behavioural changes.
|
|
2839
2848
|
|
|
2840
2849
|
**Breaking changes**
|
|
2841
|
-
|
|
2842
2850
|
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
2843
2851
|
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
2844
2852
|
|
|
2845
2853
|
**Breaking changes to TypeScript annotations**
|
|
2846
|
-
|
|
2847
2854
|
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
|
|
2848
2855
|
props as a generic type.
|
|
2849
2856
|
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
|
|
@@ -2890,7 +2897,6 @@
|
|
|
2890
2897
|
- [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
|
|
2891
2898
|
|
|
2892
2899
|
In this PR, we are:
|
|
2893
|
-
|
|
2894
2900
|
- Re-introducing dist build folders
|
|
2895
2901
|
- Adding back cjs
|
|
2896
2902
|
- Replacing es5 by cjs and es2015 by esm
|
|
@@ -3038,50 +3044,42 @@
|
|
|
3038
3044
|
## 4.0.0
|
|
3039
3045
|
|
|
3040
3046
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
3041
|
-
|
|
3042
3047
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
3043
3048
|
this package, please ensure you use at least this version of react and react-dom.
|
|
3044
3049
|
|
|
3045
3050
|
## 3.5.5
|
|
3046
3051
|
|
|
3047
3052
|
- [patch][87c47cd667](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/87c47cd667):
|
|
3048
|
-
|
|
3049
3053
|
- Getting updated styles from tag
|
|
3050
3054
|
|
|
3051
3055
|
## 3.5.4
|
|
3052
3056
|
|
|
3053
3057
|
- [patch][b8bc454675](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b8bc454675):
|
|
3054
|
-
|
|
3055
3058
|
- Add inputId prop to allow label to open the user picker
|
|
3056
3059
|
|
|
3057
3060
|
## 3.5.3
|
|
3058
3061
|
|
|
3059
3062
|
- [patch][171feaa473](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/171feaa473):
|
|
3060
|
-
|
|
3061
3063
|
- FS-3792 clear results after selection
|
|
3062
3064
|
|
|
3063
3065
|
## 3.5.2
|
|
3064
3066
|
|
|
3065
3067
|
- [patch][7cb36f2603](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7cb36f2603):
|
|
3066
|
-
|
|
3067
3068
|
- Fixed User Picker showing the spinner forever in some async use cases.
|
|
3068
3069
|
|
|
3069
3070
|
## 3.5.1
|
|
3070
3071
|
|
|
3071
3072
|
- [patch][3fbfd9d7f5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3fbfd9d7f5):
|
|
3072
|
-
|
|
3073
3073
|
- updated byline message for EmailOption based on email validity in user-picker
|
|
3074
3074
|
|
|
3075
3075
|
## 3.5.0
|
|
3076
3076
|
|
|
3077
3077
|
- [minor][e1abf3f31a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1abf3f31a):
|
|
3078
|
-
|
|
3079
3078
|
- Prevent popup user picker from being dismissed on clear.
|
|
3080
3079
|
|
|
3081
3080
|
## 3.4.3
|
|
3082
3081
|
|
|
3083
3082
|
- [patch][2f8c041db5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2f8c041db5):
|
|
3084
|
-
|
|
3085
3083
|
- Corrected asynchronous user picker behaviour
|
|
3086
3084
|
|
|
3087
3085
|
## 3.4.2
|
|
@@ -3102,110 +3100,92 @@
|
|
|
3102
3100
|
## 3.4.1
|
|
3103
3101
|
|
|
3104
3102
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
3105
|
-
|
|
3106
3103
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
3107
3104
|
supplied from itself.
|
|
3108
3105
|
|
|
3109
3106
|
## 3.4.0
|
|
3110
3107
|
|
|
3111
3108
|
- [minor][4a8effc046](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4a8effc046):
|
|
3112
|
-
|
|
3113
3109
|
- FS-3741 expose boundariesElement for integrators to pass in custom boundary
|
|
3114
3110
|
|
|
3115
3111
|
## 3.3.5
|
|
3116
3112
|
|
|
3117
3113
|
- [patch][0f4109e919](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0f4109e919):
|
|
3118
|
-
|
|
3119
3114
|
- FS-3743 remove loading message from user picker
|
|
3120
3115
|
|
|
3121
3116
|
## 3.3.4
|
|
3122
3117
|
|
|
3123
3118
|
- [patch][93464f09e8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/93464f09e8):
|
|
3124
|
-
|
|
3125
3119
|
- TEAMS-328 : Changing byline logic
|
|
3126
3120
|
|
|
3127
3121
|
## 3.3.3
|
|
3128
3122
|
|
|
3129
3123
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
3130
|
-
|
|
3131
3124
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
3132
3125
|
|
|
3133
3126
|
## 3.3.2
|
|
3134
3127
|
|
|
3135
3128
|
- [patch][3718bdc361](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3718bdc361):
|
|
3136
|
-
|
|
3137
3129
|
- Updated InviteAvatorIcon in UserPicker to be not transparent
|
|
3138
3130
|
|
|
3139
3131
|
## 3.3.1
|
|
3140
3132
|
|
|
3141
3133
|
- [patch][83ad0552d4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/83ad0552d4):
|
|
3142
|
-
|
|
3143
3134
|
- Workaround SSR avatar issue in user-picker ssr tests
|
|
3144
3135
|
|
|
3145
3136
|
## 3.3.0
|
|
3146
3137
|
|
|
3147
3138
|
- [minor][4526b178cb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4526b178cb):
|
|
3148
|
-
|
|
3149
3139
|
- Fixed uncaptured Enter key press on Input
|
|
3150
3140
|
|
|
3151
3141
|
## 3.2.0
|
|
3152
3142
|
|
|
3153
3143
|
- [minor][b0210d7ccc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0210d7ccc):
|
|
3154
|
-
|
|
3155
3144
|
- reset jest modules before hydration
|
|
3156
3145
|
|
|
3157
3146
|
## 3.1.1
|
|
3158
3147
|
|
|
3159
3148
|
- [patch][3161a93cdb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3161a93cdb):
|
|
3160
|
-
|
|
3161
3149
|
- FS-3289 update share copy
|
|
3162
3150
|
|
|
3163
3151
|
## 3.1.0
|
|
3164
3152
|
|
|
3165
3153
|
- [minor][1da59f9d31](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1da59f9d31):
|
|
3166
|
-
|
|
3167
3154
|
- added ssr tests to user-picker
|
|
3168
3155
|
|
|
3169
3156
|
## 3.0.0
|
|
3170
3157
|
|
|
3171
3158
|
- [major][3ea3f5ea55](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ea3f5ea55):
|
|
3172
|
-
|
|
3173
3159
|
- FS-3548 integrators must explicitly set the context prop in user-picker
|
|
3174
3160
|
|
|
3175
3161
|
## 2.0.3
|
|
3176
3162
|
|
|
3177
3163
|
- [patch][552843a739](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/552843a739):
|
|
3178
|
-
|
|
3179
3164
|
- FS-3639 fix analytics when no item is removed
|
|
3180
3165
|
|
|
3181
3166
|
## 2.0.2
|
|
3182
3167
|
|
|
3183
3168
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
3184
|
-
|
|
3185
3169
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
3186
3170
|
|
|
3187
3171
|
## 2.0.1
|
|
3188
3172
|
|
|
3189
3173
|
- [patch][de8123519a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de8123519a):
|
|
3190
|
-
|
|
3191
3174
|
- FS-3675 add ability for integrator to add title to popup picker
|
|
3192
3175
|
|
|
3193
3176
|
## 2.0.0
|
|
3194
3177
|
|
|
3195
3178
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
3196
|
-
|
|
3197
3179
|
- Dropped ES5 distributables from the typescript packages
|
|
3198
3180
|
|
|
3199
3181
|
## 1.1.1
|
|
3200
3182
|
|
|
3201
3183
|
- [patch][64c306c904](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/64c306c904):
|
|
3202
|
-
|
|
3203
3184
|
- FS-3599 remove logic to hide add more placeholder
|
|
3204
3185
|
|
|
3205
3186
|
## 1.1.0
|
|
3206
3187
|
|
|
3207
3188
|
- [minor][14af4044ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/14af4044ea):
|
|
3208
|
-
|
|
3209
3189
|
- FS-3354 introduce PopupUserPicker to package
|
|
3210
3190
|
|
|
3211
3191
|
## 1.0.25
|
|
@@ -3228,26 +3208,22 @@
|
|
|
3228
3208
|
## 1.0.24
|
|
3229
3209
|
|
|
3230
3210
|
- [patch][97307d9dd1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97307d9dd1):
|
|
3231
|
-
|
|
3232
3211
|
- FS-3618 add isValidEmail prop to UserPicker
|
|
3233
3212
|
|
|
3234
3213
|
## 1.0.23
|
|
3235
3214
|
|
|
3236
3215
|
- [patch][ad1bd2a92e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ad1bd2a92e):
|
|
3237
|
-
|
|
3238
3216
|
- FS-3605 expose prop to disable input
|
|
3239
3217
|
|
|
3240
3218
|
## 1.0.22
|
|
3241
3219
|
|
|
3242
3220
|
- [patch][46ffd45f21](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/46ffd45f21):
|
|
3243
|
-
|
|
3244
3221
|
- Added ability to toggle animations in atlaskit/select, updated UserPicker to disable animations
|
|
3245
3222
|
using this new behaviour
|
|
3246
3223
|
|
|
3247
3224
|
## 1.0.21
|
|
3248
3225
|
|
|
3249
3226
|
- [patch][b38b2098e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b38b2098e3):
|
|
3250
|
-
|
|
3251
3227
|
- FS-3417 export utils functions
|
|
3252
3228
|
|
|
3253
3229
|
## 1.0.20
|
|
@@ -3259,29 +3235,24 @@
|
|
|
3259
3235
|
## 1.0.19
|
|
3260
3236
|
|
|
3261
3237
|
- [patch][1050084e29](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1050084e29):
|
|
3262
|
-
|
|
3263
3238
|
- TEAMS-242 : Change user picker placeholder
|
|
3264
3239
|
|
|
3265
3240
|
## 1.0.18
|
|
3266
3241
|
|
|
3267
3242
|
- [patch][0809a67d7b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0809a67d7b):
|
|
3268
|
-
|
|
3269
3243
|
- FS-3591 hide selected users from multi picker
|
|
3270
3244
|
|
|
3271
3245
|
## 1.0.17
|
|
3272
3246
|
|
|
3273
3247
|
- [patch][67f0d11134](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f0d11134):
|
|
3274
|
-
|
|
3275
3248
|
- FS-3577 show selected options by default
|
|
3276
3249
|
|
|
3277
3250
|
## 1.0.16
|
|
3278
3251
|
|
|
3279
3252
|
- [patch][c51d1e2e51](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c51d1e2e51):
|
|
3280
|
-
|
|
3281
3253
|
- FS-3573 show user avatar on focus
|
|
3282
3254
|
|
|
3283
3255
|
## 1.0.15
|
|
3284
3256
|
|
|
3285
3257
|
- [patch][1ce3a8812b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1ce3a8812b):
|
|
3286
|
-
|
|
3287
3258
|
- 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.7.1";
|
|
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}$/;
|
|
@@ -33,7 +33,7 @@ var _default = exports.default = function _default() {
|
|
|
33
33
|
return setHoverState(false);
|
|
34
34
|
}, [setHoverState]);
|
|
35
35
|
return (
|
|
36
|
-
// eslint-disable-next-line
|
|
36
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/mouse-events-have-key-events
|
|
37
37
|
(0, _react2.jsx)("div", {
|
|
38
38
|
css: wrapper,
|
|
39
39
|
onMouseEnter: onMouseEnter,
|
|
@@ -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;
|
|
@@ -64,9 +64,7 @@ var PopupUserPickerWithoutAnalytics = exports.PopupUserPickerWithoutAnalytics =
|
|
|
64
64
|
styles = _this$props.styles,
|
|
65
65
|
strategy = _this$props.strategy;
|
|
66
66
|
var width = this.props.width;
|
|
67
|
-
var selectStyles = (0, _styles.getPopupStyles)(width, isMulti, styles,
|
|
68
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
69
|
-
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh'));
|
|
67
|
+
var selectStyles = (0, _styles.getPopupStyles)(width, isMulti, styles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh'));
|
|
70
68
|
return /*#__PURE__*/_react.default.createElement(_BaseUserPicker.BaseUserPickerWithoutAnalytics, (0, _extends2.default)({}, this.props, {
|
|
71
69
|
SelectComponent: _select.PopupSelect,
|
|
72
70
|
width: width,
|
|
@@ -68,9 +68,7 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
68
68
|
avatarUrl = _this$props.user.avatarUrl,
|
|
69
69
|
status = _this$props.status;
|
|
70
70
|
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
71
|
-
appearance:
|
|
72
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
73
|
-
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
71
|
+
appearance: (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
74
72
|
src: avatarUrl,
|
|
75
73
|
presence: status
|
|
76
74
|
});
|
|
@@ -102,9 +102,7 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
|
|
|
102
102
|
SelectComponent: SelectComponent
|
|
103
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
104
104
|
,
|
|
105
|
-
styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles,
|
|
106
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
107
|
-
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh'), false, (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
105
|
+
styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh'), false, (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
108
106
|
components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
|
|
109
107
|
pickerProps: pickerProps
|
|
110
108
|
})))));
|
|
@@ -21,7 +21,7 @@ var ValueContainerWrapper = function ValueContainerWrapper(_ref) {
|
|
|
21
21
|
isEnabled = _ref.isEnabled,
|
|
22
22
|
onMouseDown = _ref.onMouseDown;
|
|
23
23
|
return isEnabled ?
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values,
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
25
25
|
(0, _react.jsx)("div", {
|
|
26
26
|
css: (0, _react.css)({
|
|
27
27
|
flexGrow: 1
|
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.7.1";
|
|
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}$/;
|
|
@@ -16,7 +16,7 @@ export default (() => {
|
|
|
16
16
|
const onMouseEnter = useCallback(() => setHoverState(true), [setHoverState]);
|
|
17
17
|
const onMouseLeave = useCallback(() => setHoverState(false), [setHoverState]);
|
|
18
18
|
return (
|
|
19
|
-
// eslint-disable-next-line
|
|
19
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/mouse-events-have-key-events
|
|
20
20
|
jsx("div", {
|
|
21
21
|
css: wrapper,
|
|
22
22
|
onMouseEnter: onMouseEnter,
|
|
@@ -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;
|
|
@@ -48,9 +48,7 @@ export class PopupUserPickerWithoutAnalytics extends React.Component {
|
|
|
48
48
|
strategy
|
|
49
49
|
} = this.props;
|
|
50
50
|
const width = this.props.width;
|
|
51
|
-
const selectStyles = getPopupStyles(width, isMulti, styles,
|
|
52
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
53
|
-
fg('platform-component-visual-refresh'));
|
|
51
|
+
const selectStyles = getPopupStyles(width, isMulti, styles, fg('platform-component-visual-refresh'));
|
|
54
52
|
return /*#__PURE__*/React.createElement(BaseUserPickerWithoutAnalytics, _extends({}, this.props, {
|
|
55
53
|
SelectComponent: PopupSelect,
|
|
56
54
|
width: width,
|
|
@@ -55,9 +55,7 @@ export class UserOption extends React.PureComponent {
|
|
|
55
55
|
status
|
|
56
56
|
} = this.props;
|
|
57
57
|
return jsx(SizeableAvatar, {
|
|
58
|
-
appearance:
|
|
59
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
60
|
-
fg('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
58
|
+
appearance: fg('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
61
59
|
src: avatarUrl,
|
|
62
60
|
presence: status
|
|
63
61
|
});
|
|
@@ -79,9 +79,7 @@ export class UserPickerWithoutAnalytics extends React.Component {
|
|
|
79
79
|
SelectComponent: SelectComponent
|
|
80
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
81
|
,
|
|
82
|
-
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles,
|
|
83
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
84
|
-
fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
82
|
+
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
85
83
|
components: getComponents(isMulti, anchor, showClearIndicator, (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
|
|
86
84
|
pickerProps: pickerProps
|
|
87
85
|
})))));
|
|
@@ -16,7 +16,7 @@ const ValueContainerWrapper = ({
|
|
|
16
16
|
onMouseDown
|
|
17
17
|
}) => {
|
|
18
18
|
return isEnabled ?
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values,
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
20
20
|
jsx("div", {
|
|
21
21
|
css: css({
|
|
22
22
|
flexGrow: 1
|
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.7.1";
|
|
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}$/;
|
|
@@ -24,7 +24,7 @@ export default (function () {
|
|
|
24
24
|
return setHoverState(false);
|
|
25
25
|
}, [setHoverState]);
|
|
26
26
|
return (
|
|
27
|
-
// eslint-disable-next-line
|
|
27
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/mouse-events-have-key-events
|
|
28
28
|
jsx("div", {
|
|
29
29
|
css: wrapper,
|
|
30
30
|
onMouseEnter: onMouseEnter,
|
|
@@ -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;
|
|
@@ -57,9 +57,7 @@ export var PopupUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
|
|
|
57
57
|
styles = _this$props.styles,
|
|
58
58
|
strategy = _this$props.strategy;
|
|
59
59
|
var width = this.props.width;
|
|
60
|
-
var selectStyles = getPopupStyles(width, isMulti, styles,
|
|
61
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
62
|
-
fg('platform-component-visual-refresh'));
|
|
60
|
+
var selectStyles = getPopupStyles(width, isMulti, styles, fg('platform-component-visual-refresh'));
|
|
63
61
|
return /*#__PURE__*/React.createElement(BaseUserPickerWithoutAnalytics, _extends({}, this.props, {
|
|
64
62
|
SelectComponent: PopupSelect,
|
|
65
63
|
width: width,
|
|
@@ -63,9 +63,7 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
63
63
|
avatarUrl = _this$props.user.avatarUrl,
|
|
64
64
|
status = _this$props.status;
|
|
65
65
|
return jsx(SizeableAvatar, {
|
|
66
|
-
appearance:
|
|
67
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
68
|
-
fg('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
66
|
+
appearance: fg('platform-component-visual-refresh') ? 'medium' : 'big',
|
|
69
67
|
src: avatarUrl,
|
|
70
68
|
presence: status
|
|
71
69
|
});
|
|
@@ -93,9 +93,7 @@ export var UserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component)
|
|
|
93
93
|
SelectComponent: SelectComponent
|
|
94
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
95
95
|
,
|
|
96
|
-
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles,
|
|
97
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
98
|
-
fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
96
|
+
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
99
97
|
components: getComponents(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
|
|
100
98
|
pickerProps: pickerProps
|
|
101
99
|
})))));
|
|
@@ -15,7 +15,7 @@ var ValueContainerWrapper = function ValueContainerWrapper(_ref) {
|
|
|
15
15
|
isEnabled = _ref.isEnabled,
|
|
16
16
|
onMouseDown = _ref.onMouseDown;
|
|
17
17
|
return isEnabled ?
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
19
19
|
jsx("div", {
|
|
20
20
|
css: css({
|
|
21
21
|
flexGrow: 1
|
|
@@ -148,7 +148,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
148
148
|
*/
|
|
149
149
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
150
150
|
width: string | number;
|
|
151
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "
|
|
151
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "footer" | "defaultValue" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "disableInput" | "emailLabel" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "showClearIndicator" | "strategy" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "width" | "pickerProps" | "SelectComponent"> & {
|
|
152
152
|
isClearable?: boolean | undefined;
|
|
153
153
|
isMulti?: boolean | undefined;
|
|
154
154
|
openMenuOnClick?: boolean | undefined;
|
|
@@ -102,6 +102,10 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
102
102
|
placeholder?: React.ReactNode;
|
|
103
103
|
isDisabled?: boolean | undefined;
|
|
104
104
|
offset?: [number, number] | undefined;
|
|
105
|
+
onChange?: import("../types").OnChange | undefined;
|
|
106
|
+
onInputChange?: import("../types").OnInputChange | undefined;
|
|
107
|
+
value?: import("../types").Value;
|
|
108
|
+
appearance?: import("../types").Appearance | undefined;
|
|
105
109
|
autoFocus?: boolean | undefined;
|
|
106
110
|
captureMenuScroll?: boolean | undefined;
|
|
107
111
|
closeMenuOnScroll?: (boolean | EventListener) | undefined;
|
|
@@ -119,16 +123,12 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
119
123
|
inputValue: string;
|
|
120
124
|
}) => string | null | React.ReactNode);
|
|
121
125
|
onBlur?: import("../types").OnPicker | undefined;
|
|
122
|
-
onChange?: import("../types").OnChange | undefined;
|
|
123
126
|
onFocus?: import("../types").OnPicker | undefined;
|
|
124
|
-
onInputChange?: import("../types").OnInputChange | undefined;
|
|
125
127
|
onKeyDown?: ((event: React.KeyboardEvent) => void) | undefined;
|
|
126
128
|
openMenuOnClick?: boolean | undefined;
|
|
127
129
|
options?: import("../types").OptionData[] | undefined;
|
|
128
130
|
styles?: import("@atlaskit/select").StylesConfig | undefined;
|
|
129
|
-
value?: import("../types").Value;
|
|
130
131
|
required?: boolean | undefined;
|
|
131
|
-
appearance?: import("../types").Appearance | undefined;
|
|
132
132
|
footer?: React.ReactNode;
|
|
133
133
|
target?: import("../types").Target | undefined;
|
|
134
134
|
defaultValue?: import("../types").DefaultValue;
|
|
@@ -81,7 +81,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
81
81
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
82
82
|
value?: import("../types").Value;
|
|
83
83
|
width?: number | string;
|
|
84
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "
|
|
84
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "footer" | "defaultValue" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "disableInput" | "emailLabel" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
|
|
85
85
|
isMulti?: boolean | undefined;
|
|
86
86
|
width?: number | string | undefined;
|
|
87
87
|
} & {} & React.RefAttributes<any>>;
|
|
@@ -148,7 +148,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
148
148
|
*/
|
|
149
149
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
150
150
|
width: string | number;
|
|
151
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "
|
|
151
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "footer" | "defaultValue" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "disableInput" | "emailLabel" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "showClearIndicator" | "strategy" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "width" | "pickerProps" | "SelectComponent"> & {
|
|
152
152
|
isClearable?: boolean | undefined;
|
|
153
153
|
isMulti?: boolean | undefined;
|
|
154
154
|
openMenuOnClick?: boolean | undefined;
|
|
@@ -108,6 +108,10 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
108
108
|
number,
|
|
109
109
|
number
|
|
110
110
|
] | undefined;
|
|
111
|
+
onChange?: import("../types").OnChange | undefined;
|
|
112
|
+
onInputChange?: import("../types").OnInputChange | undefined;
|
|
113
|
+
value?: import("../types").Value;
|
|
114
|
+
appearance?: import("../types").Appearance | undefined;
|
|
111
115
|
autoFocus?: boolean | undefined;
|
|
112
116
|
captureMenuScroll?: boolean | undefined;
|
|
113
117
|
closeMenuOnScroll?: (boolean | EventListener) | undefined;
|
|
@@ -125,16 +129,12 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
125
129
|
inputValue: string;
|
|
126
130
|
}) => string | null | React.ReactNode);
|
|
127
131
|
onBlur?: import("../types").OnPicker | undefined;
|
|
128
|
-
onChange?: import("../types").OnChange | undefined;
|
|
129
132
|
onFocus?: import("../types").OnPicker | undefined;
|
|
130
|
-
onInputChange?: import("../types").OnInputChange | undefined;
|
|
131
133
|
onKeyDown?: ((event: React.KeyboardEvent) => void) | undefined;
|
|
132
134
|
openMenuOnClick?: boolean | undefined;
|
|
133
135
|
options?: import("../types").OptionData[] | undefined;
|
|
134
136
|
styles?: import("@atlaskit/select").StylesConfig | undefined;
|
|
135
|
-
value?: import("../types").Value;
|
|
136
137
|
required?: boolean | undefined;
|
|
137
|
-
appearance?: import("../types").Appearance | undefined;
|
|
138
138
|
footer?: React.ReactNode;
|
|
139
139
|
target?: import("../types").Target | undefined;
|
|
140
140
|
defaultValue?: import("../types").DefaultValue;
|
|
@@ -81,7 +81,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
81
81
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
82
82
|
value?: import("../types").Value;
|
|
83
83
|
width?: number | string;
|
|
84
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "
|
|
84
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "footer" | "defaultValue" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "disableInput" | "emailLabel" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
|
|
85
85
|
isMulti?: boolean | undefined;
|
|
86
86
|
width?: number | string | undefined;
|
|
87
87
|
} & {} & React.RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.0",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
|
|
46
46
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
47
|
-
"@atlaskit/avatar": "^25.
|
|
48
|
-
"@atlaskit/icon": "^28.
|
|
49
|
-
"@atlaskit/logo": "^19.
|
|
47
|
+
"@atlaskit/avatar": "^25.4.0",
|
|
48
|
+
"@atlaskit/icon": "^28.5.0",
|
|
49
|
+
"@atlaskit/logo": "^19.9.0",
|
|
50
50
|
"@atlaskit/lozenge": "^13.0.0",
|
|
51
|
-
"@atlaskit/people-teams-ui-public": "^3.
|
|
51
|
+
"@atlaskit/people-teams-ui-public": "^3.5.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/popper": "^7.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^
|
|
54
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
55
55
|
"@atlaskit/select": "^21.3.0",
|
|
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": "^6.
|
|
60
|
-
"@atlaskit/tooltip": "^20.
|
|
59
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
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
|
}
|