@atlaskit/profilecard 23.4.0 → 23.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +43 -4
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +30 -4
- package/dist/cjs/components/team-profile-card/main.compiled.css +6 -7
- package/dist/cjs/components/team-profile-card/main.js +30 -40
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +41 -4
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +31 -5
- package/dist/es2019/components/team-profile-card/main.compiled.css +6 -7
- package/dist/es2019/components/team-profile-card/main.js +19 -28
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +43 -4
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +31 -5
- package/dist/esm/components/team-profile-card/main.compiled.css +6 -7
- package/dist/esm/components/team-profile-card/main.js +29 -39
- package/dist/esm/messages.js +5 -0
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +6 -19
- package/dist/types/messages.d.ts +5 -0
- package/dist/types/types.d.ts +12 -4
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +6 -19
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/dist/types-ts4.5/types.d.ts +12 -4
- package/package.json +10 -6
|
@@ -206,6 +206,7 @@ export interface TeamProfileCardTriggerState {
|
|
|
206
206
|
shouldShowGiveKudos?: boolean;
|
|
207
207
|
teamCentralBaseUrl?: string;
|
|
208
208
|
kudosDrawerOpen: boolean;
|
|
209
|
+
isTriggeredByKeyboard?: boolean;
|
|
209
210
|
}
|
|
210
211
|
export interface TeamProfilecardCoreProps {
|
|
211
212
|
/**
|
|
@@ -255,10 +256,10 @@ export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
|
255
256
|
/** The id of the team. */
|
|
256
257
|
teamId: string;
|
|
257
258
|
/**
|
|
258
|
-
The id of the organization that the team belongs to.
|
|
259
|
-
|
|
259
|
+
Optional orgId. The id of the organization that the team belongs to.
|
|
260
|
+
Not in use.
|
|
260
261
|
*/
|
|
261
|
-
orgId
|
|
262
|
+
orgId?: string;
|
|
262
263
|
/** An instance of ProfileClient. */
|
|
263
264
|
resourceClient: ProfileClient;
|
|
264
265
|
/**
|
|
@@ -302,6 +303,11 @@ export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
|
302
303
|
|
|
303
304
|
Look at the example on "Trigger Link Types" for more in-depth analysis, or
|
|
304
305
|
ask in #help-people-and-teams-xpc on Slack for our recommendations.
|
|
306
|
+
|
|
307
|
+
@deprecated
|
|
308
|
+
Consumers should always pass it as "none" from now on.
|
|
309
|
+
Consumers should be responsible to implement wrapper of our profilecard trigger, for example a link
|
|
310
|
+
We are keeping the original comments longer for existing exps
|
|
305
311
|
*/
|
|
306
312
|
triggerLinkType?: 'none' | 'link' | 'clickable-link';
|
|
307
313
|
/**
|
|
@@ -314,7 +320,7 @@ export interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
|
314
320
|
*/
|
|
315
321
|
addFlag?: (flag: any) => void;
|
|
316
322
|
/**
|
|
317
|
-
*
|
|
323
|
+
* Mandatory cloudId. Used to fetch team.
|
|
318
324
|
*/
|
|
319
325
|
cloudId?: string;
|
|
320
326
|
/**
|
|
@@ -437,6 +443,8 @@ export interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
|
437
443
|
clientFetchProfile?: () => void;
|
|
438
444
|
/** Details relevant to passing around analytics. */
|
|
439
445
|
analytics: AnalyticsFunction;
|
|
446
|
+
/** Set auto focus for actionable items */
|
|
447
|
+
isTriggeredByKeyboard?: boolean;
|
|
440
448
|
}
|
|
441
449
|
export interface MessageIntlProviderProps {
|
|
442
450
|
children: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "23.4.
|
|
3
|
+
"version": "23.4.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,14 +64,15 @@
|
|
|
64
64
|
"@atlaskit/icon": "^25.0.0",
|
|
65
65
|
"@atlaskit/lozenge": "^12.2.0",
|
|
66
66
|
"@atlaskit/menu": "^3.1.0",
|
|
67
|
-
"@atlaskit/modal-dialog": "^13.
|
|
68
|
-
"@atlaskit/people-teams-ui-public": "^3.
|
|
67
|
+
"@atlaskit/modal-dialog": "^13.4.0",
|
|
68
|
+
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
70
|
"@atlaskit/popup": "^2.0.0",
|
|
71
|
-
"@atlaskit/primitives": "^14.
|
|
72
|
-
"@atlaskit/rovo-agent-components": "^2.
|
|
73
|
-
"@atlaskit/rovo-triggers": "^2.
|
|
71
|
+
"@atlaskit/primitives": "^14.2.0",
|
|
72
|
+
"@atlaskit/rovo-agent-components": "^2.3.0",
|
|
73
|
+
"@atlaskit/rovo-triggers": "^2.4.0",
|
|
74
74
|
"@atlaskit/spinner": "^18.0.0",
|
|
75
|
+
"@atlaskit/teams-avatar": "^2.3.0",
|
|
75
76
|
"@atlaskit/theme": "^18.0.0",
|
|
76
77
|
"@atlaskit/tokens": "^4.5.0",
|
|
77
78
|
"@atlaskit/tooltip": "^20.0.0",
|
|
@@ -153,6 +154,9 @@
|
|
|
153
154
|
},
|
|
154
155
|
"ptc_migrate_buttons": {
|
|
155
156
|
"type": "boolean"
|
|
157
|
+
},
|
|
158
|
+
"enable_team_profilecard_toggletip_a11y_fix": {
|
|
159
|
+
"type": "boolean"
|
|
156
160
|
}
|
|
157
161
|
},
|
|
158
162
|
"sideEffects": [
|