@atlaskit/teams-public 1.5.0 → 2.0.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 +35 -0
- package/assets/package.json +1 -8
- package/container-icon/package.json +1 -8
- package/i18n/package.json +1 -8
- package/loom-avatar/main/package.json +1 -8
- package/loom-avatar/package.json +1 -8
- package/main/package.json +1 -8
- package/next/add-container-card/package.json +1 -8
- package/next/package.json +1 -8
- package/next/team-container-skeleton/package.json +1 -8
- package/next/team-link-card/package.json +1 -8
- package/package.json +25 -33
- package/separator/package.json +1 -8
- package/space-invite-scheduler/package.json +1 -8
- package/team-containers/package.json +1 -8
- package/team-containers/types/package.json +1 -8
- package/team-containers-skeleton/package.json +1 -8
- package/team-link-card/package.json +1 -8
- package/types/package.json +1 -8
- package/use-create-containers/package.json +1 -8
- package/use-product-permission/package.json +1 -8
- package/use-team-containers/package.json +1 -8
- package/use-team-links-and-containers/package.json +1 -8
- package/use-team-web-links/package.json +1 -8
- package/utils/get-container-properties/package.json +1 -8
- package/utils/get-is-experiment-enabled/package.json +1 -8
- package/utils/package.json +1 -8
- package/utils/space-invite-scheduler/package.json +1 -8
- package/dist/types-ts4.5/common/assets/index.d.ts +0 -3
- package/dist/types-ts4.5/common/hooks/useSpaceInviteScheduler.d.ts +0 -10
- package/dist/types-ts4.5/common/types.d.ts +0 -38
- package/dist/types-ts4.5/common/ui/container-icon/index.d.ts +0 -10
- package/dist/types-ts4.5/common/ui/loom-avatar/index.d.ts +0 -1
- package/dist/types-ts4.5/common/ui/loom-avatar/main.d.ts +0 -10
- package/dist/types-ts4.5/common/ui/loom-avatar/utils.d.ts +0 -16
- package/dist/types-ts4.5/common/ui/separator/index.d.ts +0 -2
- package/dist/types-ts4.5/common/ui/team-containers-skeleton/index.d.ts +0 -5
- package/dist/types-ts4.5/common/ui/team-containers-skeleton/linked-container-card-skeleton/index.d.ts +0 -5
- package/dist/types-ts4.5/common/ui/team-link-card-actions/index.d.ts +0 -15
- package/dist/types-ts4.5/common/utils/analytics.d.ts +0 -34
- package/dist/types-ts4.5/common/utils/get-container-properties.d.ts +0 -74
- package/dist/types-ts4.5/common/utils/get-is-experiment-enabled.d.ts +0 -23
- package/dist/types-ts4.5/common/utils/get-link-domain.d.ts +0 -16
- package/dist/types-ts4.5/common/utils/spaceInviteScheduler.d.ts +0 -23
- package/dist/types-ts4.5/common/utils/team-web-link-converters.d.ts +0 -10
- package/dist/types-ts4.5/controllers/hooks/use-create-containers/index.d.ts +0 -24
- package/dist/types-ts4.5/controllers/hooks/use-product-permission/index.d.ts +0 -5
- package/dist/types-ts4.5/controllers/hooks/use-refresh-containers-on-container-created/index.d.ts +0 -3
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/index.d.ts +0 -59
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/mocks.d.ts +0 -127
- package/dist/types-ts4.5/controllers/hooks/use-team-containers/multi-team.d.ts +0 -63
- package/dist/types-ts4.5/controllers/hooks/use-team-links-and-containers/index.d.ts +0 -18
- package/dist/types-ts4.5/controllers/hooks/use-team-web-links/index.d.ts +0 -165
- package/dist/types-ts4.5/controllers/hooks/use-team-web-links/multi-team.d.ts +0 -43
- package/dist/types-ts4.5/controllers/hooks/use-team-web-links/types.d.ts +0 -21
- package/dist/types-ts4.5/controllers/index.d.ts +0 -3
- package/dist/types-ts4.5/controllers/product-permission/main.d.ts +0 -6
- package/dist/types-ts4.5/controllers/product-permission/types.d.ts +0 -59
- package/dist/types-ts4.5/controllers/product-permission/utils.d.ts +0 -7
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/index.d.ts +0 -35
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/index.d.ts +0 -19
- package/dist/types-ts4.5/next/common/ui/team-container-skeleton/index.d.ts +0 -3
- package/dist/types-ts4.5/next/index.d.ts +0 -3
- package/dist/types-ts4.5/next/ui/team-containers/add-container-card/index.d.ts +0 -10
- package/dist/types-ts4.5/next/ui/team-containers/team-link-card/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/team-containers/add-container-card/add-container-card-button/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/team-containers/add-container-card/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/team-containers/disconnect-dialog/async.d.ts +0 -3
- package/dist/types-ts4.5/ui/team-containers/disconnect-dialog/index.d.ts +0 -46
- package/dist/types-ts4.5/ui/team-containers/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/team-containers/main.d.ts +0 -6
- package/dist/types-ts4.5/ui/team-containers/no-product-access-empty-state/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/team-containers/no-product-access-empty-state/no-product-access-icon/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/team-containers/team-link-card/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/team-containers/team-link-card/team-link-card-title.d.ts +0 -9
- package/dist/types-ts4.5/ui/team-containers/types.d.ts +0 -84
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { TeamContainers } from './ui/team-containers';
|
|
2
|
-
export { TeamLinkCard } from './ui/team-containers/team-link-card';
|
|
3
|
-
export type { TeamLinkCardProps } from './ui/team-containers';
|
|
4
|
-
export type { TeamContainersSkeletonProps } from './ui/team-containers';
|
|
5
|
-
export type { TeamContainerProps } from './ui/team-containers/types';
|
|
6
|
-
export { ContainerIcon } from './common/ui/container-icon';
|
|
7
|
-
export type { ContainerIconProps } from './common/ui/container-icon';
|
|
8
|
-
export { useTeamContainers, useConnectedTeams } from './controllers/hooks/use-team-containers';
|
|
9
|
-
export { useTeamWebLinks, useTeamWebLinksActions } from './controllers/hooks/use-team-web-links';
|
|
10
|
-
export { useCreateContainers } from './controllers/hooks/use-create-containers';
|
|
11
|
-
export { useTeamLinksAndContainers } from './controllers/hooks/use-team-links-and-containers';
|
|
12
|
-
export type { TeamContainer, ContainerSubTypes, ContainerTypes } from './common/types';
|
|
13
|
-
export { useProductPermissions } from './controllers/hooks/use-product-permission';
|
|
14
|
-
export { hasProductPermission } from './controllers/product-permission/utils';
|
|
15
|
-
export { getContainerProperties } from './common/utils/get-container-properties';
|
|
16
|
-
export { ConfluenceIcon, JiraIcon, LoomIcon } from './common/assets';
|
|
17
|
-
export { Separator } from './common/ui/separator';
|
|
18
|
-
export { getIsExperimentEnabled } from './common/utils/get-is-experiment-enabled';
|
|
19
|
-
export { spaceInviteScheduler } from './common/utils/spaceInviteScheduler';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ContainerTypes } from '../../../../common/types';
|
|
3
|
-
interface AddContainerCardProps {
|
|
4
|
-
containerType: ContainerTypes;
|
|
5
|
-
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading, isDisabled, }: AddContainerCardProps) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ContainerSubTypes, type ContainerTypes } from '../../../../common/types';
|
|
3
|
-
export interface TeamLinkCardProps {
|
|
4
|
-
containerType: ContainerTypes;
|
|
5
|
-
title: string;
|
|
6
|
-
containerId?: string;
|
|
7
|
-
containerIcon?: string;
|
|
8
|
-
link?: string;
|
|
9
|
-
onDisconnectButtonClick: () => void;
|
|
10
|
-
onEditLinkClick?: () => void;
|
|
11
|
-
containerTypeProperties?: {
|
|
12
|
-
subType?: ContainerSubTypes;
|
|
13
|
-
name?: string;
|
|
14
|
-
};
|
|
15
|
-
openInNewTab?: boolean;
|
|
16
|
-
isReadOnly?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick, openInNewTab, isReadOnly, }: TeamLinkCardProps) => React.JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ContainerTypes } from '../../../common/types';
|
|
3
|
-
export interface AddContainerCardProps {
|
|
4
|
-
containerType: ContainerTypes;
|
|
5
|
-
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
canCreateContainers?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use the new AddContainerCard component in teams-public/src/next/ui instead.
|
|
11
|
-
*/
|
|
12
|
-
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading, canCreateContainers, }: AddContainerCardProps) => React.JSX.Element;
|
|
13
|
-
type Container = {
|
|
14
|
-
canAdd: boolean;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
};
|
|
17
|
-
type GetAddContainerCardsProps = {
|
|
18
|
-
containers: {
|
|
19
|
-
Jira: Container;
|
|
20
|
-
Confluence: Container;
|
|
21
|
-
Loom: Container;
|
|
22
|
-
WebLink: Container;
|
|
23
|
-
};
|
|
24
|
-
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>, containerType: 'Confluence' | 'Jira' | 'Loom' | 'WebLink') => void;
|
|
25
|
-
CustomAddContainerCard?: React.ComponentType<AddContainerCardProps>;
|
|
26
|
-
canCreateContainers?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare const getAddContainerCards: ({ containers, onAddAContainerClick, CustomAddContainerCard, canCreateContainers, }: GetAddContainerCardsProps) => React.JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ContainerTypes } from '../../../common/types';
|
|
3
|
-
export declare const messages: {
|
|
4
|
-
disconnectDialogTitle: {
|
|
5
|
-
id: string;
|
|
6
|
-
defaultMessage: string;
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
9
|
-
disconnectDialogDescription: {
|
|
10
|
-
id: string;
|
|
11
|
-
defaultMessage: string;
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
|
-
disconnectDialogDisclaimer: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
|
-
disconnectDialogDisclaimerNew: {
|
|
20
|
-
id: string;
|
|
21
|
-
defaultMessage: string;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
disconnectDialogDisclaimerFallback: {
|
|
25
|
-
id: string;
|
|
26
|
-
defaultMessage: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
disconnectDialogCancelButton: {
|
|
30
|
-
id: string;
|
|
31
|
-
defaultMessage: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
disconnectDialogRemoveButton: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
description: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export interface DisconnectDialogProps {
|
|
41
|
-
containerName: string;
|
|
42
|
-
containerType: ContainerTypes;
|
|
43
|
-
onDisconnect: () => Promise<void>;
|
|
44
|
-
onClose: () => void;
|
|
45
|
-
}
|
|
46
|
-
export declare const DisconnectDialog: ({ containerName, containerType, onDisconnect, onClose, }: DisconnectDialogProps) => React.JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TeamContainerProps } from './types';
|
|
3
|
-
export declare const ICON_BACKGROUND: 'var(--ds-icon-inverse)';
|
|
4
|
-
export declare const ICON_COLOR: 'var(--ds-icon-subtle)';
|
|
5
|
-
export declare const MAX_NUMBER_OF_CONTAINERS_TO_SHOW = 4;
|
|
6
|
-
export declare const TeamContainers: ({ teamId, onAddAContainerClick, onEditContainerClick, components, userId, cloudId, filterContainerId, isDisplayedOnProfileCard, isReadOnly, onError, maxNumberOfContainersToShow, elemBeforeCards, hideSubTextIcon, }: TeamContainerProps) => React.JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ContainerSubTypes, type ContainerTypes } from '../../../common/types';
|
|
3
|
-
export interface TeamLinkCardProps {
|
|
4
|
-
containerType: ContainerTypes;
|
|
5
|
-
title: string;
|
|
6
|
-
containerId?: string;
|
|
7
|
-
containerIcon?: string;
|
|
8
|
-
link?: string;
|
|
9
|
-
onDisconnectButtonClick: () => void;
|
|
10
|
-
onEditLinkClick?: () => void;
|
|
11
|
-
containerTypeProperties?: {
|
|
12
|
-
subType?: ContainerSubTypes;
|
|
13
|
-
name?: string;
|
|
14
|
-
};
|
|
15
|
-
openInNewTab?: boolean;
|
|
16
|
-
isReadOnly?: boolean;
|
|
17
|
-
hideSubTextIcon?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick, openInNewTab, isReadOnly, hideSubTextIcon, }: TeamLinkCardProps) => React.JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TeamLinkCardTitleProps {
|
|
3
|
-
isTeamLensInHomeEnabled: boolean;
|
|
4
|
-
isOpenWebLinkInNewTabEnabled: boolean;
|
|
5
|
-
link: string;
|
|
6
|
-
handleLinkClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TeamLinkCardTitle: ({ isTeamLensInHomeEnabled, isOpenWebLinkInNewTabEnabled, link, handleLinkClick, title, }: TeamLinkCardTitleProps) => React.JSX.Element;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { type ComponentType } from 'react';
|
|
2
|
-
import type { GridProps } from '@atlaskit/primitives/compiled';
|
|
3
|
-
import { type TeamContainersSkeletonProps } from '../../common/ui/team-containers-skeleton';
|
|
4
|
-
import type { AddContainerCardProps } from './add-container-card';
|
|
5
|
-
import { type TeamLinkCardProps } from './team-link-card';
|
|
6
|
-
export type FlagType = FlagAppearance;
|
|
7
|
-
type FlagAppearance = 'error' | 'info' | 'normal' | 'success' | 'warning';
|
|
8
|
-
export interface Flag {
|
|
9
|
-
id: number | string;
|
|
10
|
-
title?: string | React.ReactNode;
|
|
11
|
-
description?: string | React.ReactNode;
|
|
12
|
-
type?: FlagType;
|
|
13
|
-
appearance?: FlagAppearance;
|
|
14
|
-
actions?: {
|
|
15
|
-
content: React.ReactNode;
|
|
16
|
-
onClick?: () => void;
|
|
17
|
-
href?: string;
|
|
18
|
-
target?: string;
|
|
19
|
-
}[];
|
|
20
|
-
icon?: JSX.Element;
|
|
21
|
-
}
|
|
22
|
-
export interface TeamContainerProps {
|
|
23
|
-
/**
|
|
24
|
-
* The team id to fetch the team container for
|
|
25
|
-
*/
|
|
26
|
-
teamId: string;
|
|
27
|
-
/**
|
|
28
|
-
* The function to call when the add a container button is clicked
|
|
29
|
-
*/
|
|
30
|
-
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>, containerType: 'Confluence' | 'Jira' | 'Loom' | 'WebLink') => void;
|
|
31
|
-
/**
|
|
32
|
-
* The function to call when the edit container button is clicked
|
|
33
|
-
*/
|
|
34
|
-
onEditContainerClick?: (containerId: string, containerLink: string, containerTitle: string) => void;
|
|
35
|
-
/**
|
|
36
|
-
* The component to replace current components
|
|
37
|
-
*/
|
|
38
|
-
components?: TeamContainersComponent;
|
|
39
|
-
/**
|
|
40
|
-
* The user id of the current user
|
|
41
|
-
*/
|
|
42
|
-
userId: string;
|
|
43
|
-
/**
|
|
44
|
-
* The cloud id of the current site
|
|
45
|
-
*/
|
|
46
|
-
cloudId: string;
|
|
47
|
-
/**
|
|
48
|
-
* The container id to filter out from the list
|
|
49
|
-
*/
|
|
50
|
-
filterContainerId?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The container id to filter out from the list
|
|
53
|
-
*/
|
|
54
|
-
isDisplayedOnProfileCard?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* The maximum number of containers to show
|
|
57
|
-
*/
|
|
58
|
-
maxNumberOfContainersToShow?: number;
|
|
59
|
-
addFlag?: (flag: Flag) => void;
|
|
60
|
-
isReadOnly?: boolean;
|
|
61
|
-
onError?: (error: Error | boolean) => void;
|
|
62
|
-
/**
|
|
63
|
-
* Component to render in the grid before any results
|
|
64
|
-
**/
|
|
65
|
-
elemBeforeCards?: ComponentType<{}>;
|
|
66
|
-
/**
|
|
67
|
-
* Whether to hide the subtext icon
|
|
68
|
-
*/
|
|
69
|
-
hideSubTextIcon?: boolean;
|
|
70
|
-
}
|
|
71
|
-
export interface TeamContainersEmptyStateProps {
|
|
72
|
-
hasNoPermissions?: boolean;
|
|
73
|
-
}
|
|
74
|
-
export interface TeamContainersEmptyStateProps {
|
|
75
|
-
hasNoPermissions?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface TeamContainersComponent {
|
|
78
|
-
ContainerCard?: ComponentType<TeamLinkCardProps>;
|
|
79
|
-
TeamContainersSkeleton?: ComponentType<TeamContainersSkeletonProps>;
|
|
80
|
-
TeamContainersEmptyState?: ComponentType<TeamContainersEmptyStateProps>;
|
|
81
|
-
AddContainerCard?: ComponentType<AddContainerCardProps>;
|
|
82
|
-
Grid?: ComponentType<GridProps>;
|
|
83
|
-
}
|
|
84
|
-
export {};
|