@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,165 +0,0 @@
|
|
|
1
|
-
import { type BoundActions, type HookReturnValue } 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 } from './types';
|
|
5
|
-
export declare const actions: {
|
|
6
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
7
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
8
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
9
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
10
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
11
|
-
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
12
|
-
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const useTeamWebLinks: (teamId?: string) => HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
15
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
16
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
17
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
18
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
19
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
20
|
-
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
21
|
-
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
22
|
-
}>>;
|
|
23
|
-
export declare const useTeamWebLinksActions: () => HookReturnValue<{
|
|
24
|
-
teams: Record<string, {
|
|
25
|
-
isLoading: boolean;
|
|
26
|
-
hasLoaded: boolean;
|
|
27
|
-
hasError: boolean;
|
|
28
|
-
errorType: Error | null;
|
|
29
|
-
shouldReload: boolean;
|
|
30
|
-
links: TeamWebLink[];
|
|
31
|
-
linkIcons: TeamLinkIconData[];
|
|
32
|
-
iconsLoading: boolean;
|
|
33
|
-
iconsError: boolean;
|
|
34
|
-
iconHasLoaded: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
currentTeamId: string;
|
|
37
|
-
}, BoundActions<{
|
|
38
|
-
teams: Record<string, {
|
|
39
|
-
isLoading: boolean;
|
|
40
|
-
hasLoaded: boolean;
|
|
41
|
-
hasError: boolean;
|
|
42
|
-
errorType: Error | null;
|
|
43
|
-
shouldReload: boolean;
|
|
44
|
-
links: TeamWebLink[];
|
|
45
|
-
linkIcons: TeamLinkIconData[];
|
|
46
|
-
iconsLoading: boolean;
|
|
47
|
-
iconsError: boolean;
|
|
48
|
-
iconHasLoaded: boolean;
|
|
49
|
-
}>;
|
|
50
|
-
currentTeamId: string;
|
|
51
|
-
}, {
|
|
52
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
53
|
-
teams: Record<string, {
|
|
54
|
-
isLoading: boolean;
|
|
55
|
-
hasLoaded: boolean;
|
|
56
|
-
hasError: boolean;
|
|
57
|
-
errorType: Error | null;
|
|
58
|
-
shouldReload: boolean;
|
|
59
|
-
links: TeamWebLink[];
|
|
60
|
-
linkIcons: TeamLinkIconData[];
|
|
61
|
-
iconsLoading: boolean;
|
|
62
|
-
iconsError: boolean;
|
|
63
|
-
iconHasLoaded: boolean;
|
|
64
|
-
}>;
|
|
65
|
-
currentTeamId: string;
|
|
66
|
-
}>) => Promise<void>;
|
|
67
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState, }: StoreApi<{
|
|
68
|
-
teams: Record<string, {
|
|
69
|
-
isLoading: boolean;
|
|
70
|
-
hasLoaded: boolean;
|
|
71
|
-
hasError: boolean;
|
|
72
|
-
errorType: Error | null;
|
|
73
|
-
shouldReload: boolean;
|
|
74
|
-
links: TeamWebLink[];
|
|
75
|
-
linkIcons: TeamLinkIconData[];
|
|
76
|
-
iconsLoading: boolean;
|
|
77
|
-
iconsError: boolean;
|
|
78
|
-
iconHasLoaded: boolean;
|
|
79
|
-
}>;
|
|
80
|
-
currentTeamId: string;
|
|
81
|
-
}>) => Promise<void>;
|
|
82
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
83
|
-
teams: Record<string, {
|
|
84
|
-
isLoading: boolean;
|
|
85
|
-
hasLoaded: boolean;
|
|
86
|
-
hasError: boolean;
|
|
87
|
-
errorType: Error | null;
|
|
88
|
-
shouldReload: boolean;
|
|
89
|
-
links: TeamWebLink[];
|
|
90
|
-
linkIcons: TeamLinkIconData[];
|
|
91
|
-
iconsLoading: boolean;
|
|
92
|
-
iconsError: boolean;
|
|
93
|
-
iconHasLoaded: boolean;
|
|
94
|
-
}>;
|
|
95
|
-
currentTeamId: string;
|
|
96
|
-
}>) => Promise<TeamLink>;
|
|
97
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
98
|
-
teams: Record<string, {
|
|
99
|
-
isLoading: boolean;
|
|
100
|
-
hasLoaded: boolean;
|
|
101
|
-
hasError: boolean;
|
|
102
|
-
errorType: Error | null;
|
|
103
|
-
shouldReload: boolean;
|
|
104
|
-
links: TeamWebLink[];
|
|
105
|
-
linkIcons: TeamLinkIconData[];
|
|
106
|
-
iconsLoading: boolean;
|
|
107
|
-
iconsError: boolean;
|
|
108
|
-
iconHasLoaded: boolean;
|
|
109
|
-
}>;
|
|
110
|
-
currentTeamId: string;
|
|
111
|
-
}>) => Promise<TeamLink>;
|
|
112
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState, }: StoreApi<{
|
|
113
|
-
teams: Record<string, {
|
|
114
|
-
isLoading: boolean;
|
|
115
|
-
hasLoaded: boolean;
|
|
116
|
-
hasError: boolean;
|
|
117
|
-
errorType: Error | null;
|
|
118
|
-
shouldReload: boolean;
|
|
119
|
-
links: TeamWebLink[];
|
|
120
|
-
linkIcons: TeamLinkIconData[];
|
|
121
|
-
iconsLoading: boolean;
|
|
122
|
-
iconsError: boolean;
|
|
123
|
-
iconHasLoaded: boolean;
|
|
124
|
-
}>;
|
|
125
|
-
currentTeamId: string;
|
|
126
|
-
}>) => Promise<void>;
|
|
127
|
-
fetchWebLinkTitle: (url: string) => ({ setState, }: StoreApi<{
|
|
128
|
-
teams: Record<string, {
|
|
129
|
-
isLoading: boolean;
|
|
130
|
-
hasLoaded: boolean;
|
|
131
|
-
hasError: boolean;
|
|
132
|
-
errorType: Error | null;
|
|
133
|
-
shouldReload: boolean;
|
|
134
|
-
links: TeamWebLink[];
|
|
135
|
-
linkIcons: TeamLinkIconData[];
|
|
136
|
-
iconsLoading: boolean;
|
|
137
|
-
iconsError: boolean;
|
|
138
|
-
iconHasLoaded: boolean;
|
|
139
|
-
}>;
|
|
140
|
-
currentTeamId: string;
|
|
141
|
-
}>) => Promise<string | undefined>;
|
|
142
|
-
initialState: () => ({ setState, }: StoreApi<{
|
|
143
|
-
teams: Record<string, {
|
|
144
|
-
isLoading: boolean;
|
|
145
|
-
hasLoaded: boolean;
|
|
146
|
-
hasError: boolean;
|
|
147
|
-
errorType: Error | null;
|
|
148
|
-
shouldReload: boolean;
|
|
149
|
-
links: TeamWebLink[];
|
|
150
|
-
linkIcons: TeamLinkIconData[];
|
|
151
|
-
iconsLoading: boolean;
|
|
152
|
-
iconsError: boolean;
|
|
153
|
-
iconHasLoaded: boolean;
|
|
154
|
-
}>;
|
|
155
|
-
currentTeamId: string;
|
|
156
|
-
}>) => void;
|
|
157
|
-
}>> | HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
158
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
159
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
160
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
161
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<TeamLink>;
|
|
162
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
163
|
-
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
164
|
-
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
165
|
-
}>>;
|
|
@@ -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;
|