@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  6. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  7. package/dist/cjs/components/Team/TeamProfileCard.js +43 -4
  8. package/dist/cjs/components/Team/TeamProfileCardTrigger.js +30 -4
  9. package/dist/cjs/components/team-profile-card/main.compiled.css +6 -7
  10. package/dist/cjs/components/team-profile-card/main.js +30 -40
  11. package/dist/cjs/messages.js +5 -0
  12. package/dist/cjs/util/analytics.js +1 -1
  13. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  14. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  15. package/dist/es2019/components/Team/TeamProfileCard.js +41 -4
  16. package/dist/es2019/components/Team/TeamProfileCardTrigger.js +31 -5
  17. package/dist/es2019/components/team-profile-card/main.compiled.css +6 -7
  18. package/dist/es2019/components/team-profile-card/main.js +19 -28
  19. package/dist/es2019/messages.js +5 -0
  20. package/dist/es2019/util/analytics.js +1 -1
  21. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  22. package/dist/esm/client/getTeamFromAGG.js +1 -1
  23. package/dist/esm/components/Team/TeamProfileCard.js +43 -4
  24. package/dist/esm/components/Team/TeamProfileCardTrigger.js +31 -5
  25. package/dist/esm/components/team-profile-card/main.compiled.css +6 -7
  26. package/dist/esm/components/team-profile-card/main.js +29 -39
  27. package/dist/esm/messages.js +5 -0
  28. package/dist/esm/util/analytics.js +1 -1
  29. package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +6 -19
  30. package/dist/types/messages.d.ts +5 -0
  31. package/dist/types/types.d.ts +12 -4
  32. package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +6 -19
  33. package/dist/types-ts4.5/messages.d.ts +5 -0
  34. package/dist/types-ts4.5/types.d.ts +12 -4
  35. 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
- Currently this is unused, but will become necessary in the future.
259
+ Optional orgId. The id of the organization that the team belongs to.
260
+ Not in use.
260
261
  */
261
- orgId: string;
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
- * Optional cloudId. Pass this if rendering card within a sited context.
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.0",
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.1.0",
68
- "@atlaskit/people-teams-ui-public": "^3.0.0",
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.1.0",
72
- "@atlaskit/rovo-agent-components": "^2.2.0",
73
- "@atlaskit/rovo-triggers": "^2.3.0",
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": [