@atlaskit/teams-public 1.1.1 → 1.3.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 +14 -0
- package/dist/cjs/controllers/hooks/use-team-web-links/index.js +2 -2
- package/dist/cjs/controllers/hooks/use-team-web-links/multi-team.js +4 -4
- package/dist/cjs/next/ui/team-containers/team-link-card/index.compiled.css +0 -6
- package/dist/cjs/next/ui/team-containers/team-link-card/index.js +2 -9
- package/dist/cjs/ui/team-containers/main.js +0 -6
- package/dist/cjs/ui/team-containers/team-link-card/index.compiled.css +0 -4
- package/dist/cjs/ui/team-containers/team-link-card/index.js +1 -6
- package/dist/es2019/controllers/hooks/use-team-web-links/index.js +1 -1
- package/dist/es2019/controllers/hooks/use-team-web-links/multi-team.js +3 -3
- package/dist/es2019/next/ui/team-containers/team-link-card/index.compiled.css +0 -6
- package/dist/es2019/next/ui/team-containers/team-link-card/index.js +2 -9
- package/dist/es2019/ui/team-containers/main.js +0 -6
- package/dist/es2019/ui/team-containers/team-link-card/index.compiled.css +0 -4
- package/dist/es2019/ui/team-containers/team-link-card/index.js +1 -6
- package/dist/esm/controllers/hooks/use-team-web-links/index.js +2 -2
- package/dist/esm/controllers/hooks/use-team-web-links/multi-team.js +4 -4
- package/dist/esm/next/ui/team-containers/team-link-card/index.compiled.css +0 -6
- package/dist/esm/next/ui/team-containers/team-link-card/index.js +2 -9
- package/dist/esm/ui/team-containers/main.js +0 -6
- package/dist/esm/ui/team-containers/team-link-card/index.compiled.css +0 -4
- package/dist/esm/ui/team-containers/team-link-card/index.js +1 -6
- package/dist/types/common/ui/container-icon/index.d.ts +0 -2
- package/dist/types/controllers/hooks/use-team-web-links/index.d.ts +44 -42
- package/dist/types/controllers/hooks/use-team-web-links/multi-team.d.ts +10 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next/ui/team-containers/team-link-card/index.d.ts +1 -3
- package/dist/types/ui/team-containers/index.d.ts +1 -1
- package/dist/types/ui/team-containers/main.d.ts +2 -2
- package/dist/types/ui/team-containers/team-link-card/index.d.ts +1 -3
- package/dist/types/ui/team-containers/types.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/container-icon/index.d.ts +0 -2
- package/dist/types-ts4.5/controllers/hooks/use-team-web-links/index.d.ts +44 -42
- package/dist/types-ts4.5/controllers/hooks/use-team-web-links/multi-team.d.ts +10 -16
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/next/ui/team-containers/team-link-card/index.d.ts +1 -3
- package/dist/types-ts4.5/ui/team-containers/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/team-containers/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/team-containers/team-link-card/index.d.ts +1 -3
- package/dist/types-ts4.5/ui/team-containers/types.d.ts +2 -2
- package/package.json +8 -11
- package/dist/cjs/ui/team-containers/linked-container-card/index.compiled.css +0 -23
- package/dist/cjs/ui/team-containers/linked-container-card/index.js +0 -173
- package/dist/es2019/ui/team-containers/linked-container-card/index.compiled.css +0 -23
- package/dist/es2019/ui/team-containers/linked-container-card/index.js +0 -157
- package/dist/esm/ui/team-containers/linked-container-card/index.compiled.css +0 -23
- package/dist/esm/ui/team-containers/linked-container-card/index.js +0 -164
- package/dist/types/ui/team-containers/linked-container-card/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/team-containers/linked-container-card/index.d.ts +0 -15
|
@@ -1,163 +1,165 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
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';
|
|
3
5
|
export declare const actions: {
|
|
4
6
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
5
7
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
6
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
7
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
8
10
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
9
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
11
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
10
12
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
11
13
|
};
|
|
12
|
-
export declare const useTeamWebLinks: (teamId?: string) =>
|
|
14
|
+
export declare const useTeamWebLinks: (teamId?: string) => HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
13
15
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
14
16
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
15
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
16
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
17
19
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
18
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
20
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
19
21
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
20
22
|
}>>;
|
|
21
|
-
export declare const useTeamWebLinksActions: () =>
|
|
23
|
+
export declare const useTeamWebLinksActions: () => HookReturnValue<{
|
|
22
24
|
teams: Record<string, {
|
|
23
25
|
isLoading: boolean;
|
|
24
26
|
hasLoaded: boolean;
|
|
25
27
|
hasError: boolean;
|
|
26
28
|
errorType: Error | null;
|
|
27
29
|
shouldReload: boolean;
|
|
28
|
-
links:
|
|
29
|
-
linkIcons:
|
|
30
|
+
links: TeamWebLink[];
|
|
31
|
+
linkIcons: TeamLinkIconData[];
|
|
30
32
|
iconsLoading: boolean;
|
|
31
33
|
iconsError: boolean;
|
|
32
34
|
iconHasLoaded: boolean;
|
|
33
35
|
}>;
|
|
34
36
|
currentTeamId: string;
|
|
35
|
-
},
|
|
37
|
+
}, BoundActions<{
|
|
36
38
|
teams: Record<string, {
|
|
37
39
|
isLoading: boolean;
|
|
38
40
|
hasLoaded: boolean;
|
|
39
41
|
hasError: boolean;
|
|
40
42
|
errorType: Error | null;
|
|
41
43
|
shouldReload: boolean;
|
|
42
|
-
links:
|
|
43
|
-
linkIcons:
|
|
44
|
+
links: TeamWebLink[];
|
|
45
|
+
linkIcons: TeamLinkIconData[];
|
|
44
46
|
iconsLoading: boolean;
|
|
45
47
|
iconsError: boolean;
|
|
46
48
|
iconHasLoaded: boolean;
|
|
47
49
|
}>;
|
|
48
50
|
currentTeamId: string;
|
|
49
51
|
}, {
|
|
50
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<{
|
|
52
|
+
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
51
53
|
teams: Record<string, {
|
|
52
54
|
isLoading: boolean;
|
|
53
55
|
hasLoaded: boolean;
|
|
54
56
|
hasError: boolean;
|
|
55
57
|
errorType: Error | null;
|
|
56
58
|
shouldReload: boolean;
|
|
57
|
-
links:
|
|
58
|
-
linkIcons:
|
|
59
|
+
links: TeamWebLink[];
|
|
60
|
+
linkIcons: TeamLinkIconData[];
|
|
59
61
|
iconsLoading: boolean;
|
|
60
62
|
iconsError: boolean;
|
|
61
63
|
iconHasLoaded: boolean;
|
|
62
64
|
}>;
|
|
63
65
|
currentTeamId: string;
|
|
64
66
|
}>) => Promise<void>;
|
|
65
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<{
|
|
67
|
+
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState, }: StoreApi<{
|
|
66
68
|
teams: Record<string, {
|
|
67
69
|
isLoading: boolean;
|
|
68
70
|
hasLoaded: boolean;
|
|
69
71
|
hasError: boolean;
|
|
70
72
|
errorType: Error | null;
|
|
71
73
|
shouldReload: boolean;
|
|
72
|
-
links:
|
|
73
|
-
linkIcons:
|
|
74
|
+
links: TeamWebLink[];
|
|
75
|
+
linkIcons: TeamLinkIconData[];
|
|
74
76
|
iconsLoading: boolean;
|
|
75
77
|
iconsError: boolean;
|
|
76
78
|
iconHasLoaded: boolean;
|
|
77
79
|
}>;
|
|
78
80
|
currentTeamId: string;
|
|
79
81
|
}>) => Promise<void>;
|
|
80
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<{
|
|
82
|
+
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
81
83
|
teams: Record<string, {
|
|
82
84
|
isLoading: boolean;
|
|
83
85
|
hasLoaded: boolean;
|
|
84
86
|
hasError: boolean;
|
|
85
87
|
errorType: Error | null;
|
|
86
88
|
shouldReload: boolean;
|
|
87
|
-
links:
|
|
88
|
-
linkIcons:
|
|
89
|
+
links: TeamWebLink[];
|
|
90
|
+
linkIcons: TeamLinkIconData[];
|
|
89
91
|
iconsLoading: boolean;
|
|
90
92
|
iconsError: boolean;
|
|
91
93
|
iconHasLoaded: boolean;
|
|
92
94
|
}>;
|
|
93
95
|
currentTeamId: string;
|
|
94
|
-
}>) => Promise<
|
|
95
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<{
|
|
96
|
+
}>) => Promise<TeamLink>;
|
|
97
|
+
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
96
98
|
teams: Record<string, {
|
|
97
99
|
isLoading: boolean;
|
|
98
100
|
hasLoaded: boolean;
|
|
99
101
|
hasError: boolean;
|
|
100
102
|
errorType: Error | null;
|
|
101
103
|
shouldReload: boolean;
|
|
102
|
-
links:
|
|
103
|
-
linkIcons:
|
|
104
|
+
links: TeamWebLink[];
|
|
105
|
+
linkIcons: TeamLinkIconData[];
|
|
104
106
|
iconsLoading: boolean;
|
|
105
107
|
iconsError: boolean;
|
|
106
108
|
iconHasLoaded: boolean;
|
|
107
109
|
}>;
|
|
108
110
|
currentTeamId: string;
|
|
109
|
-
}>) => Promise<
|
|
110
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<{
|
|
111
|
+
}>) => Promise<TeamLink>;
|
|
112
|
+
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState, }: StoreApi<{
|
|
111
113
|
teams: Record<string, {
|
|
112
114
|
isLoading: boolean;
|
|
113
115
|
hasLoaded: boolean;
|
|
114
116
|
hasError: boolean;
|
|
115
117
|
errorType: Error | null;
|
|
116
118
|
shouldReload: boolean;
|
|
117
|
-
links:
|
|
118
|
-
linkIcons:
|
|
119
|
+
links: TeamWebLink[];
|
|
120
|
+
linkIcons: TeamLinkIconData[];
|
|
119
121
|
iconsLoading: boolean;
|
|
120
122
|
iconsError: boolean;
|
|
121
123
|
iconHasLoaded: boolean;
|
|
122
124
|
}>;
|
|
123
125
|
currentTeamId: string;
|
|
124
126
|
}>) => Promise<void>;
|
|
125
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
127
|
+
fetchWebLinkTitle: (url: string) => ({ setState, }: StoreApi<{
|
|
126
128
|
teams: Record<string, {
|
|
127
129
|
isLoading: boolean;
|
|
128
130
|
hasLoaded: boolean;
|
|
129
131
|
hasError: boolean;
|
|
130
132
|
errorType: Error | null;
|
|
131
133
|
shouldReload: boolean;
|
|
132
|
-
links:
|
|
133
|
-
linkIcons:
|
|
134
|
+
links: TeamWebLink[];
|
|
135
|
+
linkIcons: TeamLinkIconData[];
|
|
134
136
|
iconsLoading: boolean;
|
|
135
137
|
iconsError: boolean;
|
|
136
138
|
iconHasLoaded: boolean;
|
|
137
139
|
}>;
|
|
138
140
|
currentTeamId: string;
|
|
139
141
|
}>) => Promise<string | undefined>;
|
|
140
|
-
initialState: () => ({ setState }: StoreApi<{
|
|
142
|
+
initialState: () => ({ setState, }: StoreApi<{
|
|
141
143
|
teams: Record<string, {
|
|
142
144
|
isLoading: boolean;
|
|
143
145
|
hasLoaded: boolean;
|
|
144
146
|
hasError: boolean;
|
|
145
147
|
errorType: Error | null;
|
|
146
148
|
shouldReload: boolean;
|
|
147
|
-
links:
|
|
148
|
-
linkIcons:
|
|
149
|
+
links: TeamWebLink[];
|
|
150
|
+
linkIcons: TeamLinkIconData[];
|
|
149
151
|
iconsLoading: boolean;
|
|
150
152
|
iconsError: boolean;
|
|
151
153
|
iconHasLoaded: boolean;
|
|
152
154
|
}>;
|
|
153
155
|
currentTeamId: string;
|
|
154
156
|
}>) => void;
|
|
155
|
-
}>> |
|
|
157
|
+
}>> | HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
156
158
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
157
159
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
158
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
159
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
160
162
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
161
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
163
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
162
164
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
163
165
|
}>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type BoundActions, type HookFunction } from 'react-sweet-state';
|
|
2
|
+
import type { TeamLink } from '@atlaskit/teams-client/types';
|
|
1
3
|
import { type NewTeamWebLink, type TeamWebLink } from '../../../common/types';
|
|
2
4
|
import { type StoreApi, type TeamLinkIconData, type TeamWebLinksState as TeamWebLinksStateType } from './types';
|
|
3
5
|
type TeamWebLinksTeamState = {
|
|
@@ -19,28 +21,20 @@ type TeamWebLinksState = {
|
|
|
19
21
|
export declare const actions: {
|
|
20
22
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
21
23
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
22
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
23
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
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>;
|
|
24
26
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
25
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
27
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
26
28
|
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
27
29
|
};
|
|
28
|
-
export declare const useTeamWebLinks: (teamId: string) => [TeamWebLinksStateType,
|
|
30
|
+
export declare const useTeamWebLinks: (teamId: string) => [TeamWebLinksStateType, BoundActions<TeamWebLinksState, typeof actions>];
|
|
31
|
+
export declare const useTeamWebLinksActions: HookFunction<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
29
32
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
30
33
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
31
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
32
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
34
|
+
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
35
|
+
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<TeamLink>;
|
|
33
36
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
34
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
35
|
-
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
36
|
-
}>];
|
|
37
|
-
export declare const useTeamWebLinksActions: import("react-sweet-state").HookFunction<TeamWebLinksState, import("react-sweet-state").BoundActions<TeamWebLinksState, {
|
|
38
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
39
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
40
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
|
|
41
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
|
|
42
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
43
|
-
fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
37
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
44
38
|
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
45
39
|
}>, void>;
|
|
46
40
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TeamContainers } from './ui/team-containers';
|
|
2
2
|
export { TeamLinkCard } from './ui/team-containers/team-link-card';
|
|
3
|
-
export type {
|
|
3
|
+
export type { TeamLinkCardProps } from './ui/team-containers';
|
|
4
4
|
export type { TeamContainersSkeletonProps } from './ui/team-containers';
|
|
5
5
|
export type { TeamContainerProps } from './ui/team-containers/types';
|
|
6
6
|
export { ContainerIcon } from './common/ui/container-icon';
|
|
@@ -12,9 +12,7 @@ export interface TeamLinkCardProps {
|
|
|
12
12
|
subType?: ContainerSubTypes;
|
|
13
13
|
name?: string;
|
|
14
14
|
};
|
|
15
|
-
iconsLoading?: boolean;
|
|
16
|
-
iconHasLoaded?: boolean;
|
|
17
15
|
openInNewTab?: boolean;
|
|
18
16
|
isReadOnly?: boolean;
|
|
19
17
|
}
|
|
20
|
-
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick,
|
|
18
|
+
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick, openInNewTab, isReadOnly, }: TeamLinkCardProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TeamContainerProps } from './types';
|
|
3
|
-
export declare const ICON_BACKGROUND:
|
|
4
|
-
export declare const ICON_COLOR:
|
|
3
|
+
export declare const ICON_BACKGROUND: 'var(--ds-icon-inverse)';
|
|
4
|
+
export declare const ICON_COLOR: 'var(--ds-icon-subtle)';
|
|
5
5
|
export declare const MAX_NUMBER_OF_CONTAINERS_TO_SHOW = 4;
|
|
6
6
|
export declare const TeamContainers: ({ teamId, onAddAContainerClick, onEditContainerClick, components, userId, cloudId, filterContainerId, isDisplayedOnProfileCard, isReadOnly, onError, maxNumberOfContainersToShow, elemBeforeCards, hideSubTextIcon, }: TeamContainerProps) => React.JSX.Element;
|
|
@@ -12,10 +12,8 @@ export interface TeamLinkCardProps {
|
|
|
12
12
|
subType?: ContainerSubTypes;
|
|
13
13
|
name?: string;
|
|
14
14
|
};
|
|
15
|
-
iconsLoading?: boolean;
|
|
16
|
-
iconHasLoaded?: boolean;
|
|
17
15
|
openInNewTab?: boolean;
|
|
18
16
|
isReadOnly?: boolean;
|
|
19
17
|
hideSubTextIcon?: boolean;
|
|
20
18
|
}
|
|
21
|
-
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick,
|
|
19
|
+
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick, openInNewTab, isReadOnly, hideSubTextIcon, }: TeamLinkCardProps) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { type ComponentType } from 'react';
|
|
|
2
2
|
import type { GridProps } from '@atlaskit/primitives/compiled';
|
|
3
3
|
import { type TeamContainersSkeletonProps } from '../../common/ui/team-containers-skeleton';
|
|
4
4
|
import type { AddContainerCardProps } from './add-container-card';
|
|
5
|
-
import { type
|
|
5
|
+
import { type TeamLinkCardProps } from './team-link-card';
|
|
6
6
|
export type FlagType = FlagAppearance;
|
|
7
7
|
type FlagAppearance = 'error' | 'info' | 'normal' | 'success' | 'warning';
|
|
8
8
|
export interface Flag {
|
|
@@ -75,7 +75,7 @@ export interface TeamContainersEmptyStateProps {
|
|
|
75
75
|
hasNoPermissions?: boolean;
|
|
76
76
|
}
|
|
77
77
|
export interface TeamContainersComponent {
|
|
78
|
-
ContainerCard?: ComponentType<
|
|
78
|
+
ContainerCard?: ComponentType<TeamLinkCardProps>;
|
|
79
79
|
TeamContainersSkeleton?: ComponentType<TeamContainersSkeletonProps>;
|
|
80
80
|
TeamContainersEmptyState?: ComponentType<TeamContainersEmptyStateProps>;
|
|
81
81
|
AddContainerCard?: ComponentType<AddContainerCardProps>;
|
|
@@ -6,7 +6,5 @@ export interface ContainerIconProps {
|
|
|
6
6
|
containerIcon?: string;
|
|
7
7
|
size?: 'small' | 'medium';
|
|
8
8
|
testId?: string;
|
|
9
|
-
iconsLoading?: boolean;
|
|
10
|
-
iconHasLoaded?: boolean;
|
|
11
9
|
}
|
|
12
10
|
export declare const ContainerIcon: ({ containerType, title, containerIcon, size, }: ContainerIconProps) => React.JSX.Element;
|
|
@@ -1,163 +1,165 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
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';
|
|
3
5
|
export declare const actions: {
|
|
4
6
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
5
7
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
6
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
7
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
8
10
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
9
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
11
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
10
12
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
11
13
|
};
|
|
12
|
-
export declare const useTeamWebLinks: (teamId?: string) =>
|
|
14
|
+
export declare const useTeamWebLinks: (teamId?: string) => HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
13
15
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
14
16
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
15
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
16
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
17
19
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
18
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
20
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
19
21
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
20
22
|
}>>;
|
|
21
|
-
export declare const useTeamWebLinksActions: () =>
|
|
23
|
+
export declare const useTeamWebLinksActions: () => HookReturnValue<{
|
|
22
24
|
teams: Record<string, {
|
|
23
25
|
isLoading: boolean;
|
|
24
26
|
hasLoaded: boolean;
|
|
25
27
|
hasError: boolean;
|
|
26
28
|
errorType: Error | null;
|
|
27
29
|
shouldReload: boolean;
|
|
28
|
-
links:
|
|
29
|
-
linkIcons:
|
|
30
|
+
links: TeamWebLink[];
|
|
31
|
+
linkIcons: TeamLinkIconData[];
|
|
30
32
|
iconsLoading: boolean;
|
|
31
33
|
iconsError: boolean;
|
|
32
34
|
iconHasLoaded: boolean;
|
|
33
35
|
}>;
|
|
34
36
|
currentTeamId: string;
|
|
35
|
-
},
|
|
37
|
+
}, BoundActions<{
|
|
36
38
|
teams: Record<string, {
|
|
37
39
|
isLoading: boolean;
|
|
38
40
|
hasLoaded: boolean;
|
|
39
41
|
hasError: boolean;
|
|
40
42
|
errorType: Error | null;
|
|
41
43
|
shouldReload: boolean;
|
|
42
|
-
links:
|
|
43
|
-
linkIcons:
|
|
44
|
+
links: TeamWebLink[];
|
|
45
|
+
linkIcons: TeamLinkIconData[];
|
|
44
46
|
iconsLoading: boolean;
|
|
45
47
|
iconsError: boolean;
|
|
46
48
|
iconHasLoaded: boolean;
|
|
47
49
|
}>;
|
|
48
50
|
currentTeamId: string;
|
|
49
51
|
}, {
|
|
50
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<{
|
|
52
|
+
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
51
53
|
teams: Record<string, {
|
|
52
54
|
isLoading: boolean;
|
|
53
55
|
hasLoaded: boolean;
|
|
54
56
|
hasError: boolean;
|
|
55
57
|
errorType: Error | null;
|
|
56
58
|
shouldReload: boolean;
|
|
57
|
-
links:
|
|
58
|
-
linkIcons:
|
|
59
|
+
links: TeamWebLink[];
|
|
60
|
+
linkIcons: TeamLinkIconData[];
|
|
59
61
|
iconsLoading: boolean;
|
|
60
62
|
iconsError: boolean;
|
|
61
63
|
iconHasLoaded: boolean;
|
|
62
64
|
}>;
|
|
63
65
|
currentTeamId: string;
|
|
64
66
|
}>) => Promise<void>;
|
|
65
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<{
|
|
67
|
+
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState, }: StoreApi<{
|
|
66
68
|
teams: Record<string, {
|
|
67
69
|
isLoading: boolean;
|
|
68
70
|
hasLoaded: boolean;
|
|
69
71
|
hasError: boolean;
|
|
70
72
|
errorType: Error | null;
|
|
71
73
|
shouldReload: boolean;
|
|
72
|
-
links:
|
|
73
|
-
linkIcons:
|
|
74
|
+
links: TeamWebLink[];
|
|
75
|
+
linkIcons: TeamLinkIconData[];
|
|
74
76
|
iconsLoading: boolean;
|
|
75
77
|
iconsError: boolean;
|
|
76
78
|
iconHasLoaded: boolean;
|
|
77
79
|
}>;
|
|
78
80
|
currentTeamId: string;
|
|
79
81
|
}>) => Promise<void>;
|
|
80
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<{
|
|
82
|
+
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
81
83
|
teams: Record<string, {
|
|
82
84
|
isLoading: boolean;
|
|
83
85
|
hasLoaded: boolean;
|
|
84
86
|
hasError: boolean;
|
|
85
87
|
errorType: Error | null;
|
|
86
88
|
shouldReload: boolean;
|
|
87
|
-
links:
|
|
88
|
-
linkIcons:
|
|
89
|
+
links: TeamWebLink[];
|
|
90
|
+
linkIcons: TeamLinkIconData[];
|
|
89
91
|
iconsLoading: boolean;
|
|
90
92
|
iconsError: boolean;
|
|
91
93
|
iconHasLoaded: boolean;
|
|
92
94
|
}>;
|
|
93
95
|
currentTeamId: string;
|
|
94
|
-
}>) => Promise<
|
|
95
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<{
|
|
96
|
+
}>) => Promise<TeamLink>;
|
|
97
|
+
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch, }: StoreApi<{
|
|
96
98
|
teams: Record<string, {
|
|
97
99
|
isLoading: boolean;
|
|
98
100
|
hasLoaded: boolean;
|
|
99
101
|
hasError: boolean;
|
|
100
102
|
errorType: Error | null;
|
|
101
103
|
shouldReload: boolean;
|
|
102
|
-
links:
|
|
103
|
-
linkIcons:
|
|
104
|
+
links: TeamWebLink[];
|
|
105
|
+
linkIcons: TeamLinkIconData[];
|
|
104
106
|
iconsLoading: boolean;
|
|
105
107
|
iconsError: boolean;
|
|
106
108
|
iconHasLoaded: boolean;
|
|
107
109
|
}>;
|
|
108
110
|
currentTeamId: string;
|
|
109
|
-
}>) => Promise<
|
|
110
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<{
|
|
111
|
+
}>) => Promise<TeamLink>;
|
|
112
|
+
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState, }: StoreApi<{
|
|
111
113
|
teams: Record<string, {
|
|
112
114
|
isLoading: boolean;
|
|
113
115
|
hasLoaded: boolean;
|
|
114
116
|
hasError: boolean;
|
|
115
117
|
errorType: Error | null;
|
|
116
118
|
shouldReload: boolean;
|
|
117
|
-
links:
|
|
118
|
-
linkIcons:
|
|
119
|
+
links: TeamWebLink[];
|
|
120
|
+
linkIcons: TeamLinkIconData[];
|
|
119
121
|
iconsLoading: boolean;
|
|
120
122
|
iconsError: boolean;
|
|
121
123
|
iconHasLoaded: boolean;
|
|
122
124
|
}>;
|
|
123
125
|
currentTeamId: string;
|
|
124
126
|
}>) => Promise<void>;
|
|
125
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
127
|
+
fetchWebLinkTitle: (url: string) => ({ setState, }: StoreApi<{
|
|
126
128
|
teams: Record<string, {
|
|
127
129
|
isLoading: boolean;
|
|
128
130
|
hasLoaded: boolean;
|
|
129
131
|
hasError: boolean;
|
|
130
132
|
errorType: Error | null;
|
|
131
133
|
shouldReload: boolean;
|
|
132
|
-
links:
|
|
133
|
-
linkIcons:
|
|
134
|
+
links: TeamWebLink[];
|
|
135
|
+
linkIcons: TeamLinkIconData[];
|
|
134
136
|
iconsLoading: boolean;
|
|
135
137
|
iconsError: boolean;
|
|
136
138
|
iconHasLoaded: boolean;
|
|
137
139
|
}>;
|
|
138
140
|
currentTeamId: string;
|
|
139
141
|
}>) => Promise<string | undefined>;
|
|
140
|
-
initialState: () => ({ setState }: StoreApi<{
|
|
142
|
+
initialState: () => ({ setState, }: StoreApi<{
|
|
141
143
|
teams: Record<string, {
|
|
142
144
|
isLoading: boolean;
|
|
143
145
|
hasLoaded: boolean;
|
|
144
146
|
hasError: boolean;
|
|
145
147
|
errorType: Error | null;
|
|
146
148
|
shouldReload: boolean;
|
|
147
|
-
links:
|
|
148
|
-
linkIcons:
|
|
149
|
+
links: TeamWebLink[];
|
|
150
|
+
linkIcons: TeamLinkIconData[];
|
|
149
151
|
iconsLoading: boolean;
|
|
150
152
|
iconsError: boolean;
|
|
151
153
|
iconHasLoaded: boolean;
|
|
152
154
|
}>;
|
|
153
155
|
currentTeamId: string;
|
|
154
156
|
}>) => void;
|
|
155
|
-
}>> |
|
|
157
|
+
}>> | HookReturnValue<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
156
158
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi) => Promise<void>;
|
|
157
159
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
158
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
159
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi) => Promise<
|
|
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>;
|
|
160
162
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi) => Promise<void>;
|
|
161
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
163
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi) => Promise<string | undefined>;
|
|
162
164
|
initialState: (state: Partial<TeamWebLinksState>) => ({ setState }: StoreApi) => void;
|
|
163
165
|
}>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type BoundActions, type HookFunction } from 'react-sweet-state';
|
|
2
|
+
import type { TeamLink } from '@atlaskit/teams-client/types';
|
|
1
3
|
import { type NewTeamWebLink, type TeamWebLink } from '../../../common/types';
|
|
2
4
|
import { type StoreApi, type TeamLinkIconData, type TeamWebLinksState as TeamWebLinksStateType } from './types';
|
|
3
5
|
type TeamWebLinksTeamState = {
|
|
@@ -19,31 +21,23 @@ type TeamWebLinksState = {
|
|
|
19
21
|
export declare const actions: {
|
|
20
22
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
21
23
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
22
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
23
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
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>;
|
|
24
26
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
25
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
27
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
26
28
|
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
27
29
|
};
|
|
28
30
|
export declare const useTeamWebLinks: (teamId: string) => [
|
|
29
31
|
TeamWebLinksStateType,
|
|
30
|
-
|
|
31
|
-
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
32
|
-
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
33
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
|
|
34
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<import("@atlaskit/teams-client/types").TeamLink>;
|
|
35
|
-
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
36
|
-
fetchWebLinkTitle: (url: string) => ({ setState: _setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
37
|
-
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
38
|
-
}>
|
|
32
|
+
BoundActions<TeamWebLinksState, typeof actions>
|
|
39
33
|
];
|
|
40
|
-
export declare const useTeamWebLinksActions:
|
|
34
|
+
export declare const useTeamWebLinksActions: HookFunction<TeamWebLinksState, BoundActions<TeamWebLinksState, {
|
|
41
35
|
getTeamWebLinks: (teamId: string) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
42
36
|
getTeamWebLinkIcons: (teamId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
43
|
-
createTeamWebLink: (teamId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
44
|
-
updateTeamWebLink: (teamId: string, linkId: string, newLink: NewTeamWebLink) => ({ getState, setState, dispatch }: StoreApi<TeamWebLinksState>) => Promise<
|
|
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>;
|
|
45
39
|
removeWebLink: (teamId: string, linkId: string) => ({ getState, setState }: StoreApi<TeamWebLinksState>) => Promise<void>;
|
|
46
|
-
fetchWebLinkTitle: (url: string) => ({ setState
|
|
40
|
+
fetchWebLinkTitle: (url: string) => ({ setState }: StoreApi<TeamWebLinksState>) => Promise<string | undefined>;
|
|
47
41
|
initialState: () => ({ setState }: StoreApi<TeamWebLinksState>) => void;
|
|
48
42
|
}>, void>;
|
|
49
43
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TeamContainers } from './ui/team-containers';
|
|
2
2
|
export { TeamLinkCard } from './ui/team-containers/team-link-card';
|
|
3
|
-
export type {
|
|
3
|
+
export type { TeamLinkCardProps } from './ui/team-containers';
|
|
4
4
|
export type { TeamContainersSkeletonProps } from './ui/team-containers';
|
|
5
5
|
export type { TeamContainerProps } from './ui/team-containers/types';
|
|
6
6
|
export { ContainerIcon } from './common/ui/container-icon';
|
|
@@ -12,9 +12,7 @@ export interface TeamLinkCardProps {
|
|
|
12
12
|
subType?: ContainerSubTypes;
|
|
13
13
|
name?: string;
|
|
14
14
|
};
|
|
15
|
-
iconsLoading?: boolean;
|
|
16
|
-
iconHasLoaded?: boolean;
|
|
17
15
|
openInNewTab?: boolean;
|
|
18
16
|
isReadOnly?: boolean;
|
|
19
17
|
}
|
|
20
|
-
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick,
|
|
18
|
+
export declare const TeamLinkCard: ({ containerType, title, containerIcon, link, containerId, containerTypeProperties, onDisconnectButtonClick, onEditLinkClick, openInNewTab, isReadOnly, }: TeamLinkCardProps) => React.JSX.Element;
|