@atlaskit/teams-public 1.5.0 → 2.0.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 +26 -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 +23 -31
- 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,43 +0,0 @@
|
|
|
1
|
-
import { type BoundActions, type HookFunction } from 'react-sweet-state';
|
|
2
|
-
import type { TeamLink } from '@atlaskit/teams-client/types';
|
|
3
|
-
import { type NewTeamWebLink, type TeamWebLink } from '../../../common/types';
|
|
4
|
-
import { type StoreApi, type TeamLinkIconData, type TeamWebLinksState as TeamWebLinksStateType } from './types';
|
|
5
|
-
type TeamWebLinksTeamState = {
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
hasLoaded: boolean;
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
errorType: Error | null;
|
|
10
|
-
shouldReload: boolean;
|
|
11
|
-
links: TeamWebLink[];
|
|
12
|
-
linkIcons: TeamLinkIconData[];
|
|
13
|
-
iconsLoading: boolean;
|
|
14
|
-
iconsError: boolean;
|
|
15
|
-
iconHasLoaded: boolean;
|
|
16
|
-
};
|
|
17
|
-
type TeamWebLinksState = {
|
|
18
|
-
teams: Record<string, TeamWebLinksTeamState>;
|
|
19
|
-
currentTeamId: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const actions: {
|
|
22
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
23
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
24
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
25
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
26
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
27
|
-
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
28
|
-
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
29
|
-
};
|
|
30
|
-
export declare const useTeamWebLinks: (teamId: string) => [
|
|
31
|
-
TeamWebLinksStateType,
|
|
32
|
-
BoundActions<TeamWebLinksState, typeof actions>
|
|
33
|
-
];
|
|
34
|
-
export declare const useTeamWebLinksActions: HookFunction<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
35
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
36
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
37
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
38
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
39
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
40
|
-
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
41
|
-
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
42
|
-
}>, void>;
|
|
43
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type StoreActionApi } from 'react-sweet-state';
|
|
2
|
-
import { type TeamWebLink } from '../../../common/types';
|
|
3
|
-
export interface TeamLinkIconData {
|
|
4
|
-
linkUrl?: string;
|
|
5
|
-
iconUrl?: string;
|
|
6
|
-
productName?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TeamWebLinksState {
|
|
9
|
-
teamId: string;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
hasLoaded: boolean;
|
|
12
|
-
hasError: boolean;
|
|
13
|
-
errorType: Error | null;
|
|
14
|
-
shouldReload: boolean;
|
|
15
|
-
links: TeamWebLink[];
|
|
16
|
-
linkIcons: TeamLinkIconData[];
|
|
17
|
-
iconsLoading: boolean;
|
|
18
|
-
iconsError: boolean;
|
|
19
|
-
iconHasLoaded: boolean;
|
|
20
|
-
}
|
|
21
|
-
export type StoreApi<T = TeamWebLinksState> = StoreActionApi<T>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type BoundActions, type HookFunction } from 'react-sweet-state';
|
|
2
|
-
import type { ProductPermissionsActions, ProductPermissionsStore } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use useProductPermissionsStore from "@atlaskit/teams-app-internal-product-permissions" instead
|
|
5
|
-
*/
|
|
6
|
-
export declare const useProductPermissionsStore: HookFunction<ProductPermissionsStore, BoundActions<ProductPermissionsStore, ProductPermissionsActions>, void>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { StoreActionApi } from 'react-sweet-state';
|
|
2
|
-
export declare const SUPPORTED_PRODUCTS: readonly [
|
|
3
|
-
"confluence",
|
|
4
|
-
"jira",
|
|
5
|
-
"loom"
|
|
6
|
-
];
|
|
7
|
-
export type ProductPermissionRequestBodyType = {
|
|
8
|
-
permissionId: keyof ProductPermissionsType;
|
|
9
|
-
resourceId: string;
|
|
10
|
-
principalId: string;
|
|
11
|
-
dontRequirePrincipalInSite: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type ProductPermissionsResponse = {
|
|
14
|
-
permissionId: string;
|
|
15
|
-
resourceId: string;
|
|
16
|
-
permitted: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type ProductPermissionsType = {
|
|
19
|
-
write?: boolean;
|
|
20
|
-
read?: boolean;
|
|
21
|
-
manage?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export type SupportedProductKeys = (typeof SUPPORTED_PRODUCTS)[number];
|
|
24
|
-
export type UserProductPermissions = {
|
|
25
|
-
[Key in SupportedProductKeys]?: ProductPermissionsType;
|
|
26
|
-
};
|
|
27
|
-
export type ProductPermissionsServiceResult = {
|
|
28
|
-
loading: boolean;
|
|
29
|
-
error?: Error;
|
|
30
|
-
data?: UserProductPermissions;
|
|
31
|
-
};
|
|
32
|
-
export type ProductPermissions = (params: {
|
|
33
|
-
userId?: string;
|
|
34
|
-
cloudId?: string;
|
|
35
|
-
permissionIds?: Array<keyof ProductPermissionsType>;
|
|
36
|
-
}, options?: {
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
}) => ProductPermissionsServiceResult;
|
|
39
|
-
export type ProductPermissionsStore = {
|
|
40
|
-
error?: Error;
|
|
41
|
-
hasLoaded: boolean;
|
|
42
|
-
isLoading: boolean;
|
|
43
|
-
permissions: UserProductPermissions;
|
|
44
|
-
permissionsResponse?: ProductPermissionsResponse[];
|
|
45
|
-
};
|
|
46
|
-
type StoreApi = StoreActionApi<ProductPermissionsStore>;
|
|
47
|
-
type Action = (api: StoreApi) => void;
|
|
48
|
-
export type ProductPermissionsActions = {
|
|
49
|
-
setError: (error: Error) => Action;
|
|
50
|
-
setLoading: (isLoading: boolean) => Action;
|
|
51
|
-
setPermissions: (permissions: ProductPermissionsResponse[]) => Action;
|
|
52
|
-
getPermissions: (props: {
|
|
53
|
-
userId?: string;
|
|
54
|
-
cloudId?: string;
|
|
55
|
-
enabled: boolean;
|
|
56
|
-
permissionIds: Array<keyof ProductPermissionsType>;
|
|
57
|
-
}) => Action;
|
|
58
|
-
};
|
|
59
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ProductPermissionsResponse, type ProductPermissionsType, type UserProductPermissions } from './types';
|
|
2
|
-
export declare const transformPermissions: (permissions: ProductPermissionsResponse[]) => UserProductPermissions;
|
|
3
|
-
export declare const getProductPermissionRequestBody: (cloudId: string, userId: string, permissionIds: Array<keyof ProductPermissionsType>) => string;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use hasProductPermission from "@atlaskit/teams-app-internal-product-permissions" instead
|
|
6
|
-
*/
|
|
7
|
-
export declare const hasProductPermission: (permissions: UserProductPermissions, product: keyof UserProductPermissions, permissionIds?: string[]) => boolean | undefined;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/en_GB';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/en_ZZ';
|
|
8
|
-
export default translations;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file was generated by i18n-tools which has been deprecated.
|
|
5
|
-
* It now requires manual updates.
|
|
6
|
-
*/
|
|
7
|
-
export { default as cs } from './cs';
|
|
8
|
-
export { default as da } from './da';
|
|
9
|
-
export { default as de } from './de';
|
|
10
|
-
export { default as en } from './en';
|
|
11
|
-
export { default as en_GB } from './en_GB';
|
|
12
|
-
export { default as en_ZZ } from './en_ZZ';
|
|
13
|
-
export { default as es } from './es';
|
|
14
|
-
export { default as fi } from './fi';
|
|
15
|
-
export { default as fr } from './fr';
|
|
16
|
-
export { default as hr } from './hr';
|
|
17
|
-
export { default as hu } from './hu';
|
|
18
|
-
export { default as it } from './it';
|
|
19
|
-
export { default as ja } from './ja';
|
|
20
|
-
export { default as ko } from './ko';
|
|
21
|
-
export { default as nb } from './nb';
|
|
22
|
-
export { default as nl } from './nl';
|
|
23
|
-
export { default as pl } from './pl';
|
|
24
|
-
export { default as pt_BR } from './pt_BR';
|
|
25
|
-
export { default as ru } from './ru';
|
|
26
|
-
export { default as sl } from './sl';
|
|
27
|
-
export { default as sr_RS } from './sr_RS';
|
|
28
|
-
export { default as sr_YR } from './sr_YR';
|
|
29
|
-
export { default as sv } from './sv';
|
|
30
|
-
export { default as th } from './th';
|
|
31
|
-
export { default as tr } from './tr';
|
|
32
|
-
export { default as uk } from './uk';
|
|
33
|
-
export { default as vi } from './vi';
|
|
34
|
-
export { default as zh } from './zh';
|
|
35
|
-
export { default as zh_TW } from './zh_TW';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/pt_BR';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/sr_RS';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/sr_YR';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-people-and-teams-teams-public/i18n/zh_TW';
|
|
8
|
-
export default translations;
|
|
@@ -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;
|