@atlaskit/profilecard 23.11.2 → 23.13.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
  3. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  4. package/dist/cjs/components/Agent/Actions.js +12 -113
  5. package/dist/cjs/components/team-profile-card/main.compiled.css +5 -0
  6. package/dist/cjs/components/team-profile-card/main.js +113 -11
  7. package/dist/cjs/components/team-profile-card/mocks.js +22 -0
  8. package/dist/cjs/components/team-profile-card/team-actions/index.js +13 -45
  9. package/dist/cjs/components/team-profile-card/team-actions/messages.js +0 -5
  10. package/dist/cjs/components/team-profile-card/team-connections/main.js +52 -1
  11. package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.compiled.css +3 -1
  12. package/dist/cjs/components/team-profile-card/team-containers-skeleton/index.js +6 -3
  13. package/dist/cjs/util/analytics.js +1 -1
  14. package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
  15. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  16. package/dist/es2019/components/Agent/Actions.js +4 -106
  17. package/dist/es2019/components/team-profile-card/main.compiled.css +5 -0
  18. package/dist/es2019/components/team-profile-card/main.js +116 -14
  19. package/dist/es2019/components/team-profile-card/mocks.js +22 -0
  20. package/dist/es2019/components/team-profile-card/team-actions/index.js +10 -43
  21. package/dist/es2019/components/team-profile-card/team-actions/messages.js +0 -5
  22. package/dist/es2019/components/team-profile-card/team-connections/main.js +53 -0
  23. package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.compiled.css +3 -1
  24. package/dist/es2019/components/team-profile-card/team-containers-skeleton/index.js +6 -3
  25. package/dist/es2019/util/analytics.js +1 -1
  26. package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
  27. package/dist/esm/client/getTeamFromAGG.js +1 -1
  28. package/dist/esm/components/Agent/Actions.js +13 -114
  29. package/dist/esm/components/team-profile-card/main.compiled.css +5 -0
  30. package/dist/esm/components/team-profile-card/main.js +116 -14
  31. package/dist/esm/components/team-profile-card/mocks.js +22 -0
  32. package/dist/esm/components/team-profile-card/team-actions/index.js +12 -44
  33. package/dist/esm/components/team-profile-card/team-actions/messages.js +0 -5
  34. package/dist/esm/components/team-profile-card/team-connections/main.js +50 -0
  35. package/dist/esm/components/team-profile-card/team-containers-skeleton/index.compiled.css +3 -1
  36. package/dist/esm/components/team-profile-card/team-containers-skeleton/index.js +6 -3
  37. package/dist/esm/util/analytics.js +1 -1
  38. package/dist/types/components/team-profile-card/main.d.ts +2 -2
  39. package/dist/types/components/team-profile-card/team-actions/index.d.ts +6 -7
  40. package/dist/types/components/team-profile-card/team-actions/messages.d.ts +0 -5
  41. package/dist/types/components/team-profile-card/team-connections/main.d.ts +1 -0
  42. package/dist/types-ts4.5/components/team-profile-card/main.d.ts +2 -2
  43. package/dist/types-ts4.5/components/team-profile-card/team-actions/index.d.ts +6 -7
  44. package/dist/types-ts4.5/components/team-profile-card/team-actions/messages.d.ts +0 -5
  45. package/dist/types-ts4.5/components/team-profile-card/team-connections/main.d.ts +1 -0
  46. package/package.json +1 -4
  47. package/dist/cjs/components/team-profile-card/team-actions/index.compiled.css +0 -7
  48. package/dist/es2019/components/team-profile-card/team-actions/index.compiled.css +0 -7
  49. package/dist/esm/components/team-profile-card/team-actions/index.compiled.css +0 -7
@@ -1,9 +1,4 @@
1
1
  export declare const messages: {
2
- viewProfile: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
2
  giveKudos: {
8
3
  id: string;
9
4
  defaultMessage: string;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
3
3
  export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
4
+ export declare const NewTeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type AvatarProps } from '@atlaskit/avatar-group';
3
- import { ButtonSectionProps } from './team-actions';
3
+ import { TeamActionsProps } from './team-actions';
4
4
  type TeamProfileCardProps = {
5
5
  containerId: string;
6
6
  teamId: string;
@@ -14,6 +14,6 @@ type TeamProfileCardProps = {
14
14
  userId: string;
15
15
  isVerified?: boolean;
16
16
  teamProfileUrl?: string;
17
- } & ButtonSectionProps;
17
+ } & TeamActionsProps;
18
18
  export declare const TeamProfileCard: ({ containerId, teamId, displayName, description, avatarImageUrl, headerImageUrl, memberAvatars, memberCount, cloudId, userId, isVerified, teamProfileUrl, ...props }: TeamProfileCardProps) => JSX.Element;
19
19
  export {};
@@ -1,20 +1,19 @@
1
1
  import React from 'react';
2
- import { ActionItem } from './more-actions';
3
- type BaseButtonSectionProps = {
4
- teamProfileUrl?: string;
2
+ import { type ActionItem } from './more-actions';
3
+ type BaseTeamActionsProps = {
5
4
  otherActions?: ActionItem[];
6
5
  cloudId: string;
7
6
  teamId: string;
8
7
  loading?: boolean;
9
8
  };
10
- type KudosEnabledProps = BaseButtonSectionProps & {
9
+ type KudosEnabledProps = BaseTeamActionsProps & {
11
10
  isKudosEnabled: true;
12
11
  teamCentralBaseUrl: string;
13
12
  analyticsSource: string;
14
13
  };
15
- type KudosDisabledProps = BaseButtonSectionProps & {
14
+ type KudosDisabledProps = BaseTeamActionsProps & {
16
15
  isKudosEnabled?: false;
17
16
  };
18
- export type ButtonSectionProps = KudosEnabledProps | KudosDisabledProps;
19
- export declare const ButtonSection: ({ teamProfileUrl, isKudosEnabled, otherActions, loading, ...props }: ButtonSectionProps) => React.JSX.Element;
17
+ export type TeamActionsProps = KudosEnabledProps | KudosDisabledProps;
18
+ export declare const TeamActions: ({ isKudosEnabled, otherActions, loading, ...props }: TeamActionsProps) => React.JSX.Element | null;
20
19
  export {};
@@ -1,9 +1,4 @@
1
1
  export declare const messages: {
2
- viewProfile: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
2
  giveKudos: {
8
3
  id: string;
9
4
  defaultMessage: string;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  import { type LinkedContainerCardProps } from '@atlaskit/teams-public';
3
3
  export declare const TeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
4
+ export declare const NewTeamConnections: ({ containerType, title, containerIcon, link, }: LinkedContainerCardProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "23.11.2",
3
+ "version": "23.13.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -136,9 +136,6 @@
136
136
  "platform_agg_user_query_doc_change": {
137
137
  "type": "boolean"
138
138
  },
139
- "rovo_use_agent_permissions": {
140
- "type": "boolean"
141
- },
142
139
  "team_id_to_ari_safe": {
143
140
  "type": "boolean"
144
141
  },
@@ -1,7 +0,0 @@
1
- ._15a5nqa1{border-top-style:solid}
2
- ._16jlkb7n{flex-grow:1}
3
- ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
4
- ._1i53muej{border-top-color:var(--ds-border,#091e4224)}
5
- ._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
6
- ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
7
- ._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
@@ -1,7 +0,0 @@
1
- ._15a5nqa1{border-top-style:solid}
2
- ._16jlkb7n{flex-grow:1}
3
- ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
4
- ._1i53muej{border-top-color:var(--ds-border,#091e4224)}
5
- ._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
6
- ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
7
- ._uwhke4h9{border-top-width:var(--ds-border-width,1px)}
@@ -1,7 +0,0 @@
1
- ._15a5nqa1{border-top-style:solid}
2
- ._16jlkb7n{flex-grow:1}
3
- ._19bv1ejb{padding-left:var(--ds-space-300,24px)}
4
- ._1i53muej{border-top-color:var(--ds-border,#091e4224)}
5
- ._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
6
- ._u5f31ejb{padding-right:var(--ds-space-300,24px)}
7
- ._uwhke4h9{border-top-width:var(--ds-border-width,1px)}