@burdenoff/microfe-workspaces 2026.1120.1 → 2026.1123.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/dist/WorkspacesRoot.js +39 -31
- package/dist/WorkspacesRoutes.js +91 -59
- package/dist/components/ProjectCard.js +48 -47
- package/dist/constants/navigationV2.d.ts +5 -0
- package/dist/constants/navigationV2.js +2 -2
- package/dist/generated/global-operations.d.ts +11 -1
- package/dist/generated/global-types.d.ts +9866 -574
- package/dist/generated/wspace-operations.d.ts +631 -2
- package/dist/generated/wspace-operations.js +5428 -1376
- package/dist/generated/wspace-types.d.ts +200319 -48046
- package/dist/generated/wspace-types.js +19 -0
- package/dist/hooks/useCollaboration.d.ts +143 -0
- package/dist/hooks/useCollaboration.js +119 -0
- package/dist/hooks/useCollaborationMutations.d.ts +177 -0
- package/dist/hooks/useCollaborationMutations.js +126 -0
- package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
- package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
- package/dist/index.d.ts +1 -1
- package/dist/node_modules/sonner/dist/index.js +167 -0
- package/dist/pages/CollaborationConsolePage.d.ts +1 -0
- package/dist/pages/CollaborationConsolePage.js +1059 -0
- package/dist/pages/MembersListPage.js +101 -100
- package/dist/pages/ProjectMembersPage.js +116 -115
- package/dist/pages/ProjectsListPage.js +233 -232
- package/dist/pages/WorkspacesListPage.js +79 -68
- package/dist/pages/v2/ActivityPage.d.ts +1 -0
- package/dist/pages/v2/ActivityPage.js +150 -0
- package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
- package/dist/pages/v2/InvitePeopleDialog.js +208 -0
- package/dist/pages/v2/InvitedTab.d.ts +9 -0
- package/dist/pages/v2/InvitedTab.js +223 -0
- package/dist/pages/v2/MembersPage.d.ts +1 -0
- package/dist/pages/v2/MembersPage.js +120 -0
- package/dist/pages/v2/PeopleTab.d.ts +20 -0
- package/dist/pages/v2/PeopleTab.js +253 -0
- package/dist/pages/v2/ProjectsPage.d.ts +1 -0
- package/dist/pages/v2/ProjectsPage.js +242 -0
- package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
- package/dist/pages/v2/WorkspacesPage.js +247 -0
- package/dist/pages/v2/activitySentences.d.ts +50 -0
- package/dist/pages/v2/activitySentences.js +288 -0
- package/dist/pages/v2/inviteEmails.d.ts +12 -0
- package/dist/pages/v2/inviteEmails.js +18 -0
- package/dist/pages/v2/memberRows.d.ts +54 -0
- package/dist/pages/v2/memberRows.js +51 -0
- package/dist/pages/v2/projectRows.d.ts +10 -0
- package/dist/pages/v2/projectRows.js +10 -0
- package/dist/pages/v2/relativeTime.d.ts +6 -0
- package/dist/pages/v2/relativeTime.js +30 -0
- package/dist/store/workspacesStore.d.ts +2 -1
- package/dist/store/workspacesStore.js +1 -1
- package/dist/translations/en.d.ts +436 -0
- package/dist/translations/en.js +436 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/utils/nativeBridge.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { useWorkspacesContext as e } from "../../providers/WorkspacesProvider.js";
|
|
2
|
+
import { GetMyProjectsWithDetailsDocument as t, GetWorkspaceActivityLogDocument as n, GetWorkspaceActorRolesDocument as r, GetWorkspaceInvitationsWithEmailStatusDocument as i, GetWorkspaceMembersWithStatusDocument as a } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { GetGlobalMyWorkspacesDocument as o } from "../../generated/global-operations.js";
|
|
4
|
+
import { activeRoleNames as s } from "../../pages/v2/memberRows.js";
|
|
5
|
+
import { useQuery as c } from "@tanstack/react-query";
|
|
6
|
+
import { print as l } from "graphql";
|
|
7
|
+
import { graphqlFetch as u } from "@burdenoff/fe-libs/shared/graphql";
|
|
8
|
+
async function d(e, t = 100, n = 100) {
|
|
9
|
+
let r = [];
|
|
10
|
+
for (let i = 0; i < n; i += 1) {
|
|
11
|
+
let n = await e(i * t, t);
|
|
12
|
+
if (r.push(...n.items), !n.hasMore || n.items.length === 0) break;
|
|
13
|
+
}
|
|
14
|
+
return r;
|
|
15
|
+
}
|
|
16
|
+
function f(e, t) {
|
|
17
|
+
if (e?.length) throw Error(e[0]?.message || t);
|
|
18
|
+
}
|
|
19
|
+
function p(t) {
|
|
20
|
+
let { authToken: n } = e();
|
|
21
|
+
return c({
|
|
22
|
+
queryKey: [
|
|
23
|
+
"workspaceMembers",
|
|
24
|
+
t,
|
|
25
|
+
"v2-all"
|
|
26
|
+
],
|
|
27
|
+
enabled: !!t,
|
|
28
|
+
staleTime: 6e4,
|
|
29
|
+
queryFn: ({ signal: e }) => d(async (r, i) => {
|
|
30
|
+
let o = await u({
|
|
31
|
+
gateway: "workspace",
|
|
32
|
+
authToken: n || void 0,
|
|
33
|
+
query: l(a),
|
|
34
|
+
variables: {
|
|
35
|
+
workspaceId: t,
|
|
36
|
+
pagination: {
|
|
37
|
+
limit: i,
|
|
38
|
+
offset: r
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
workspaceId: t,
|
|
42
|
+
workspaceToken: !0,
|
|
43
|
+
signal: e
|
|
44
|
+
});
|
|
45
|
+
f(o.errors, "Couldn’t load the members");
|
|
46
|
+
let s = o.data?.workspaceMembers;
|
|
47
|
+
if (!s) throw Error("Couldn’t load the members");
|
|
48
|
+
return {
|
|
49
|
+
items: s.items,
|
|
50
|
+
hasMore: s.hasMore
|
|
51
|
+
};
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function m(t, n = !0) {
|
|
56
|
+
let { authToken: r } = e();
|
|
57
|
+
return c({
|
|
58
|
+
queryKey: [
|
|
59
|
+
"workspaceInvitations",
|
|
60
|
+
t,
|
|
61
|
+
"v2-all"
|
|
62
|
+
],
|
|
63
|
+
enabled: n && !!t,
|
|
64
|
+
staleTime: 6e4,
|
|
65
|
+
queryFn: ({ signal: e }) => d(async (n, a) => {
|
|
66
|
+
let o = await u({
|
|
67
|
+
gateway: "workspace",
|
|
68
|
+
authToken: r || void 0,
|
|
69
|
+
query: l(i),
|
|
70
|
+
variables: { pagination: {
|
|
71
|
+
limit: a,
|
|
72
|
+
offset: n
|
|
73
|
+
} },
|
|
74
|
+
workspaceId: t,
|
|
75
|
+
workspaceToken: !0,
|
|
76
|
+
signal: e
|
|
77
|
+
});
|
|
78
|
+
f(o.errors, "Couldn’t load the invites");
|
|
79
|
+
let s = o.data?.workspaceInvitations;
|
|
80
|
+
if (!s) throw Error("Couldn’t load the invites");
|
|
81
|
+
return {
|
|
82
|
+
items: s.items,
|
|
83
|
+
hasMore: s.hasMore
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function h(t) {
|
|
89
|
+
let { authToken: n } = e();
|
|
90
|
+
return c({
|
|
91
|
+
queryKey: ["workspaceActorRoles", t],
|
|
92
|
+
enabled: !!t,
|
|
93
|
+
staleTime: 6e4,
|
|
94
|
+
retry: !1,
|
|
95
|
+
queryFn: async ({ signal: e }) => {
|
|
96
|
+
let i = await d(async (i, a) => {
|
|
97
|
+
let o = await u({
|
|
98
|
+
gateway: "workspace",
|
|
99
|
+
authToken: n || void 0,
|
|
100
|
+
query: l(r),
|
|
101
|
+
variables: {
|
|
102
|
+
scopeId: t,
|
|
103
|
+
pagination: {
|
|
104
|
+
limit: a,
|
|
105
|
+
offset: i
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
workspaceId: t,
|
|
109
|
+
workspaceToken: !0,
|
|
110
|
+
signal: e
|
|
111
|
+
});
|
|
112
|
+
f(o.errors, "Couldn’t load the roles");
|
|
113
|
+
let s = o.data?.actorsPage;
|
|
114
|
+
if (!s) throw Error("Couldn’t load the roles");
|
|
115
|
+
return {
|
|
116
|
+
items: s.items,
|
|
117
|
+
hasMore: s.pageInfo.hasNextPage
|
|
118
|
+
};
|
|
119
|
+
}), a = {};
|
|
120
|
+
for (let e of i) a[e.actorId] = s(e.roleAssignments);
|
|
121
|
+
return a;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function g(t) {
|
|
126
|
+
let { authToken: n } = e();
|
|
127
|
+
return c({
|
|
128
|
+
queryKey: ["myWorkspaces", "v2-all"],
|
|
129
|
+
enabled: t,
|
|
130
|
+
staleTime: 3e5,
|
|
131
|
+
queryFn: ({ signal: e }) => d(async (t, r) => {
|
|
132
|
+
let i = await u({
|
|
133
|
+
gateway: "global",
|
|
134
|
+
authToken: n || void 0,
|
|
135
|
+
query: l(o),
|
|
136
|
+
variables: {
|
|
137
|
+
limit: r,
|
|
138
|
+
offset: t
|
|
139
|
+
},
|
|
140
|
+
signal: e
|
|
141
|
+
});
|
|
142
|
+
f(i.errors, "Couldn’t load your workspaces");
|
|
143
|
+
let a = i.data?.myWorkspaces;
|
|
144
|
+
if (!a) throw Error("Couldn’t load your workspaces");
|
|
145
|
+
return {
|
|
146
|
+
items: a.items,
|
|
147
|
+
hasMore: a.hasMore
|
|
148
|
+
};
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function _(t) {
|
|
153
|
+
let { authToken: r } = e();
|
|
154
|
+
return c({
|
|
155
|
+
queryKey: [
|
|
156
|
+
"workspaceActivityLog",
|
|
157
|
+
t,
|
|
158
|
+
200
|
|
159
|
+
],
|
|
160
|
+
enabled: !!t,
|
|
161
|
+
staleTime: 6e4,
|
|
162
|
+
queryFn: async ({ signal: e }) => {
|
|
163
|
+
let i = await u({
|
|
164
|
+
gateway: "workspace",
|
|
165
|
+
authToken: r || void 0,
|
|
166
|
+
query: l(n),
|
|
167
|
+
variables: {
|
|
168
|
+
workspaceId: t,
|
|
169
|
+
limit: 200
|
|
170
|
+
},
|
|
171
|
+
workspaceId: t,
|
|
172
|
+
workspaceToken: !0,
|
|
173
|
+
signal: e
|
|
174
|
+
});
|
|
175
|
+
return f(i.errors, "Couldn’t load the activity"), i.data?.getWorkspaceActivities ?? [];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
function v() {
|
|
180
|
+
let { authToken: n, workspaceId: r } = e();
|
|
181
|
+
return c({
|
|
182
|
+
queryKey: [
|
|
183
|
+
"myProjects",
|
|
184
|
+
r,
|
|
185
|
+
"v2-details"
|
|
186
|
+
],
|
|
187
|
+
staleTime: 6e4,
|
|
188
|
+
queryFn: ({ signal: e }) => d(async (i, a) => {
|
|
189
|
+
let o = await u({
|
|
190
|
+
gateway: "workspace",
|
|
191
|
+
authToken: n || void 0,
|
|
192
|
+
query: l(t),
|
|
193
|
+
variables: { pagination: {
|
|
194
|
+
limit: a,
|
|
195
|
+
offset: i
|
|
196
|
+
} },
|
|
197
|
+
workspaceId: r || void 0,
|
|
198
|
+
workspaceToken: !0,
|
|
199
|
+
signal: e
|
|
200
|
+
});
|
|
201
|
+
f(o.errors, "Couldn’t load the projects");
|
|
202
|
+
let s = o.data?.myProjects;
|
|
203
|
+
if (!s) throw Error("Couldn’t load the projects");
|
|
204
|
+
return {
|
|
205
|
+
items: s.items,
|
|
206
|
+
hasMore: s.hasMore
|
|
207
|
+
};
|
|
208
|
+
})
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export { d as readAllPages, g as useAllMyWorkspaces, m as useAllWorkspaceInvitations, p as useAllWorkspaceMembers, v as useMyProjectsWithDetails, _ as useWorkspaceActivityLog, h as useWorkspaceActorRoles };
|
package/dist/index.d.ts
CHANGED
|
@@ -32,4 +32,4 @@ export * from './hooks';
|
|
|
32
32
|
export * from './components';
|
|
33
33
|
export * from './utils';
|
|
34
34
|
export { enTranslations } from './translations/en';
|
|
35
|
-
export type { WorkspacesRootProps, WorkspacesVariant, Workspace, WorkspaceType, WorkspaceStatus, WorkspaceMember, WorkspaceRole, WorkspaceSettings, WorkspaceFeature, WorkspaceIntegration, Project, ProjectStatus, Activity, ActivityType, WorkspaceFilters, ProjectFilters, ViewMode, SortBy, SortDirection, CreateWorkspaceInput, UpdateWorkspaceInput, CreateProjectInput, UpdateProjectInput, NavItem, FooterItem, } from './types';
|
|
35
|
+
export type { WorkspacesRootProps, WorkspacesVariant, WorkspacesInvitesForYouSlot, Workspace, WorkspaceType, WorkspaceStatus, WorkspaceMember, WorkspaceRole, WorkspaceSettings, WorkspaceFeature, WorkspaceIntegration, Project, ProjectStatus, Activity, ActivityType, WorkspaceFilters, ProjectFilters, ViewMode, SortBy, SortDirection, CreateWorkspaceInput, UpdateWorkspaceInput, CreateProjectInput, UpdateProjectInput, NavItem, FooterItem, } from './types';
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
// node_modules/sonner/dist/index.mjs
|
|
5
|
+
function t(e) {
|
|
6
|
+
if (!e || typeof document > "u") return;
|
|
7
|
+
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
8
|
+
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
9
|
+
}
|
|
10
|
+
Array(12).fill(0);
|
|
11
|
+
var n = 1, r = 100, i = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : n++, a = new class {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
|
|
14
|
+
let t = this.subscribers.indexOf(e);
|
|
15
|
+
this.subscribers.splice(t, 1);
|
|
16
|
+
}), this.publish = (e) => {
|
|
17
|
+
this.subscribers.forEach((t) => t(e));
|
|
18
|
+
}, this.addToast = (e) => {
|
|
19
|
+
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
|
|
20
|
+
}, this.trimHistory = () => {
|
|
21
|
+
let e = this.toasts.length - r;
|
|
22
|
+
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
|
|
23
|
+
}, this.create = (e) => {
|
|
24
|
+
let { message: t, ...n } = e, r = i(e), a = this.pendingDismissals.get(r);
|
|
25
|
+
a !== void 0 && (cancelAnimationFrame(a), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
|
|
26
|
+
let o = this.dismissedToasts.has(r), s = e.dismissible === void 0 || e.dismissible;
|
|
27
|
+
return o && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !o && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
28
|
+
...n,
|
|
29
|
+
...e,
|
|
30
|
+
id: r,
|
|
31
|
+
title: t
|
|
32
|
+
}), {
|
|
33
|
+
...n,
|
|
34
|
+
...e,
|
|
35
|
+
id: r,
|
|
36
|
+
dismissible: s,
|
|
37
|
+
title: t
|
|
38
|
+
}) : n) : this.addToast({
|
|
39
|
+
title: t,
|
|
40
|
+
...n,
|
|
41
|
+
dismissible: s,
|
|
42
|
+
id: r
|
|
43
|
+
}), r;
|
|
44
|
+
}, this.dismiss = (e) => {
|
|
45
|
+
if (e == null) return this.getActiveToasts().forEach((e) => {
|
|
46
|
+
this.dismissedToasts.add(e.id), this.subscribers.forEach((t) => t({
|
|
47
|
+
id: e.id,
|
|
48
|
+
dismiss: !0
|
|
49
|
+
}));
|
|
50
|
+
}), e;
|
|
51
|
+
this.dismissedToasts.add(e);
|
|
52
|
+
let t = this.pendingDismissals.get(e);
|
|
53
|
+
return t !== void 0 && cancelAnimationFrame(t), this.pendingDismissals.set(e, requestAnimationFrame(() => {
|
|
54
|
+
this.pendingDismissals.delete(e), this.subscribers.forEach((t) => t({
|
|
55
|
+
id: e,
|
|
56
|
+
dismiss: !0
|
|
57
|
+
}));
|
|
58
|
+
})), e;
|
|
59
|
+
}, this.message = (e, t) => this.create({
|
|
60
|
+
...t,
|
|
61
|
+
message: e,
|
|
62
|
+
type: void 0
|
|
63
|
+
}), this.error = (e, t) => this.create({
|
|
64
|
+
...t,
|
|
65
|
+
message: e,
|
|
66
|
+
type: "error"
|
|
67
|
+
}), this.success = (e, t) => this.create({
|
|
68
|
+
...t,
|
|
69
|
+
type: "success",
|
|
70
|
+
message: e
|
|
71
|
+
}), this.info = (e, t) => this.create({
|
|
72
|
+
...t,
|
|
73
|
+
type: "info",
|
|
74
|
+
message: e
|
|
75
|
+
}), this.warning = (e, t) => this.create({
|
|
76
|
+
...t,
|
|
77
|
+
type: "warning",
|
|
78
|
+
message: e
|
|
79
|
+
}), this.loading = (e, t) => this.create({
|
|
80
|
+
...t,
|
|
81
|
+
type: "loading",
|
|
82
|
+
message: e
|
|
83
|
+
}), this.promise = (t, n) => {
|
|
84
|
+
if (!n) return;
|
|
85
|
+
let r;
|
|
86
|
+
n.loading !== void 0 && (r = this.create({
|
|
87
|
+
...n,
|
|
88
|
+
promise: t,
|
|
89
|
+
type: "loading",
|
|
90
|
+
message: n.loading,
|
|
91
|
+
description: typeof n.description == "function" ? void 0 : n.description
|
|
92
|
+
}));
|
|
93
|
+
let i = Promise.resolve(t instanceof Function ? t() : t), a = r !== void 0, o, c = i.then(async (t) => {
|
|
94
|
+
if (o = ["resolve", t], e.isValidElement(t)) a = !1, this.create({
|
|
95
|
+
id: r,
|
|
96
|
+
type: "default",
|
|
97
|
+
message: t
|
|
98
|
+
});
|
|
99
|
+
else if (s(t) && !t.ok) {
|
|
100
|
+
a = !1;
|
|
101
|
+
let i = typeof n.error == "function" ? await n.error(`HTTP error! status: ${t.status}`) : n.error, o = typeof n.description == "function" ? await n.description(`HTTP error! status: ${t.status}`) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
102
|
+
this.create({
|
|
103
|
+
id: r,
|
|
104
|
+
type: "error",
|
|
105
|
+
description: o,
|
|
106
|
+
...s
|
|
107
|
+
});
|
|
108
|
+
} else if (t instanceof Error) {
|
|
109
|
+
a = !1;
|
|
110
|
+
let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
111
|
+
this.create({
|
|
112
|
+
id: r,
|
|
113
|
+
type: "error",
|
|
114
|
+
description: o,
|
|
115
|
+
...s
|
|
116
|
+
});
|
|
117
|
+
} else if (n.success !== void 0) {
|
|
118
|
+
a = !1;
|
|
119
|
+
let i = typeof n.success == "function" ? await n.success(t) : n.success, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
120
|
+
this.create({
|
|
121
|
+
id: r,
|
|
122
|
+
type: "success",
|
|
123
|
+
description: o,
|
|
124
|
+
...s
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}).catch(async (t) => {
|
|
128
|
+
if (o = ["reject", t], n.error !== void 0) {
|
|
129
|
+
a = !1;
|
|
130
|
+
let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
131
|
+
this.create({
|
|
132
|
+
id: r,
|
|
133
|
+
type: "error",
|
|
134
|
+
description: o,
|
|
135
|
+
...s
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}).finally(() => {
|
|
139
|
+
a && (this.dismiss(r), r = void 0), n.finally == null || n.finally.call(n);
|
|
140
|
+
}), l = () => new Promise((e, t) => c.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
|
|
141
|
+
return typeof r != "string" && typeof r != "number" ? { unwrap: l } : Object.assign(r, { unwrap: l });
|
|
142
|
+
}, this.custom = (e, t) => {
|
|
143
|
+
let n = i(t);
|
|
144
|
+
return this.create({
|
|
145
|
+
...t,
|
|
146
|
+
jsx: e(n),
|
|
147
|
+
id: n,
|
|
148
|
+
type: void 0
|
|
149
|
+
}), n;
|
|
150
|
+
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
|
|
151
|
+
}
|
|
152
|
+
}(), o = (e, t) => a.message(e, t), s = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", c = Object.assign(o, {
|
|
153
|
+
success: a.success,
|
|
154
|
+
info: a.info,
|
|
155
|
+
warning: a.warning,
|
|
156
|
+
error: a.error,
|
|
157
|
+
custom: a.custom,
|
|
158
|
+
message: a.message,
|
|
159
|
+
promise: a.promise,
|
|
160
|
+
dismiss: a.dismiss,
|
|
161
|
+
loading: a.loading
|
|
162
|
+
}, {
|
|
163
|
+
getHistory: () => a.toasts,
|
|
164
|
+
getToasts: () => a.getActiveToasts()
|
|
165
|
+
});
|
|
166
|
+
t("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
167
|
+
export { c as toast };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CollaborationConsolePage(): import('react').JSX.Element;
|