@box/unified-share-modal 1.34.0 → 1.35.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/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +120 -107
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/shared-with-avatars.js +48 -39
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +16 -16
- package/dist/styles/shared-link-settings-modal.css +1 -1
- package/dist/styles/unified-share-form-modal.css +1 -1
- package/dist/types/lib/types.d.ts +23 -4
- package/package.json +1 -1
|
@@ -1,155 +1,168 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { useIntl as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { DownloadSection as
|
|
5
|
-
import { ExpirationSection as
|
|
6
|
-
import { PasswordSection as
|
|
7
|
-
import { VanitySection as
|
|
8
|
-
import
|
|
9
|
-
import { jsx as a, jsxs as
|
|
10
|
-
import { useAccessLevels as
|
|
11
|
-
import { formatDateFromTimestampToCalendarDate as
|
|
12
|
-
import { useLinkSettingsForm as
|
|
13
|
-
import { useUnifiedShareModalContext as
|
|
14
|
-
import '../../../../styles/shared-link-settings-modal.css';const
|
|
15
|
-
content:
|
|
16
|
-
body:
|
|
1
|
+
import { useState as q, useMemo as G, useEffect as J } from "react";
|
|
2
|
+
import { useIntl as K } from "react-intl";
|
|
3
|
+
import { Modal as t, LoadingIndicator as Q, Text as W, Link as X } from "@box/blueprint-web";
|
|
4
|
+
import { DownloadSection as Y } from "./download-section.js";
|
|
5
|
+
import { ExpirationSection as Z } from "./expiration-section.js";
|
|
6
|
+
import { PasswordSection as $ } from "./password-section.js";
|
|
7
|
+
import { VanitySection as O } from "./vanity-section.js";
|
|
8
|
+
import s from "./messages.js";
|
|
9
|
+
import { jsx as a, jsxs as w } from "react/jsx-runtime";
|
|
10
|
+
import { useAccessLevels as ee } from "../../hooks/use-access-levels.js";
|
|
11
|
+
import { formatDateFromTimestampToCalendarDate as ae } from "../../utils/date.js";
|
|
12
|
+
import { useLinkSettingsForm as ne } from "../../hooks/use-link-settings-form.js";
|
|
13
|
+
import { useUnifiedShareModalContext as oe } from "../../contexts/unified-share-modal-context.js";
|
|
14
|
+
import '../../../../styles/shared-link-settings-modal.css';const ie = "_content_1r0kk_1", te = "_body_1r0kk_5", se = "_loading_1r0kk_17", f = {
|
|
15
|
+
content: ie,
|
|
16
|
+
body: te,
|
|
17
|
+
loading: se
|
|
17
18
|
};
|
|
18
|
-
function
|
|
19
|
-
isOpen:
|
|
20
|
-
onOpenChange:
|
|
19
|
+
function ye({
|
|
20
|
+
isOpen: c,
|
|
21
|
+
onOpenChange: v
|
|
21
22
|
}) {
|
|
22
23
|
const {
|
|
23
|
-
formatMessage:
|
|
24
|
-
} =
|
|
25
|
-
eventService:
|
|
26
|
-
isSubmitting:
|
|
27
|
-
sharedLink:
|
|
28
|
-
} =
|
|
29
|
-
expiresAt:
|
|
24
|
+
formatMessage: i
|
|
25
|
+
} = K(), [g, C] = q(!1), {
|
|
26
|
+
eventService: k,
|
|
27
|
+
isSubmitting: E,
|
|
28
|
+
sharedLink: x
|
|
29
|
+
} = oe(), {
|
|
30
|
+
expiresAt: m = 0,
|
|
30
31
|
settings: n = {},
|
|
31
|
-
vanityDomain:
|
|
32
|
-
vanityName:
|
|
33
|
-
} =
|
|
34
|
-
onSharedLinkSettingsClose:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
vanityDomain: L = "",
|
|
33
|
+
vanityName: h = ""
|
|
34
|
+
} = x, {
|
|
35
|
+
onSharedLinkSettingsClose: y,
|
|
36
|
+
onSharedLinkSettingsLoad: p
|
|
37
|
+
} = k, {
|
|
38
|
+
selectedAccess: D
|
|
39
|
+
} = ee(), b = G(() => ({
|
|
40
|
+
expiration: m ? ae(m) : null,
|
|
39
41
|
isDownloadEnabled: !!n.isDownloadEnabled,
|
|
40
|
-
isExpirationEnabled: !!
|
|
42
|
+
isExpirationEnabled: !!m,
|
|
41
43
|
isPasswordEnabled: !!n.isPasswordEnabled,
|
|
42
|
-
isVanityNameEnabled: !!
|
|
44
|
+
isVanityNameEnabled: !!h,
|
|
43
45
|
password: "",
|
|
44
|
-
vanityName:
|
|
45
|
-
}), [
|
|
46
|
-
errors:
|
|
46
|
+
vanityName: h
|
|
47
|
+
}), [m, n, h]), {
|
|
48
|
+
errors: u,
|
|
47
49
|
formData: o,
|
|
48
|
-
handleFormReset:
|
|
49
|
-
handleFormSubmit:
|
|
50
|
-
isUpdating:
|
|
51
|
-
setErrors:
|
|
52
|
-
setFieldError:
|
|
53
|
-
setFieldValue:
|
|
54
|
-
validatePassword:
|
|
55
|
-
} =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
50
|
+
handleFormReset: N,
|
|
51
|
+
handleFormSubmit: F,
|
|
52
|
+
isUpdating: P,
|
|
53
|
+
setErrors: T,
|
|
54
|
+
setFieldError: r,
|
|
55
|
+
setFieldValue: d,
|
|
56
|
+
validatePassword: B
|
|
57
|
+
} = ne(b);
|
|
58
|
+
J(() => {
|
|
59
|
+
(async () => p && (c && await p(), C(!c)))();
|
|
60
|
+
}, [c, p]);
|
|
61
|
+
const S = () => {
|
|
62
|
+
N(), y && y(), v(!1);
|
|
63
|
+
}, A = async () => {
|
|
64
|
+
await F() || (T({}), v(!1));
|
|
65
|
+
}, _ = (e) => {
|
|
66
|
+
r("expiration", void 0), d("isExpirationEnabled", e);
|
|
65
67
|
}, V = (e) => {
|
|
66
|
-
|
|
68
|
+
r("expiration", void 0), d("expiration", e);
|
|
67
69
|
}, M = (e) => {
|
|
68
|
-
|
|
69
|
-
}, _ = (e) => {
|
|
70
|
-
t("password", void 0), r("password", e.target.value);
|
|
70
|
+
r("vanityName", void 0), d("isVanityNameEnabled", e);
|
|
71
71
|
}, I = (e) => {
|
|
72
|
-
r("
|
|
72
|
+
r("vanityName", void 0), d("vanityName", e.target.value);
|
|
73
73
|
}, j = (e) => {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
r("password", void 0), d("isPasswordEnabled", e);
|
|
75
|
+
}, z = (e) => {
|
|
76
|
+
r("password", void 0), d("password", e.target.value);
|
|
77
|
+
}, U = (e) => {
|
|
78
|
+
d("isDownloadEnabled", e);
|
|
79
|
+
}, H = (e) => {
|
|
80
|
+
const R = document.getElementById("usm-SharedLinkSettingsModal-primaryButton")?.contains(e.relatedTarget);
|
|
81
|
+
b.isPasswordEnabled && !o.password || R || B(o.password);
|
|
82
|
+
}, l = E || P;
|
|
83
|
+
return /* @__PURE__ */ a(t, {
|
|
84
|
+
onOpenChange: S,
|
|
85
|
+
open: c,
|
|
86
|
+
children: /* @__PURE__ */ w(t.Content, {
|
|
87
|
+
className: f.content,
|
|
82
88
|
size: "medium",
|
|
83
|
-
children: [/* @__PURE__ */ a(
|
|
84
|
-
children: s
|
|
85
|
-
}), /* @__PURE__ */
|
|
86
|
-
className:
|
|
87
|
-
|
|
89
|
+
children: [/* @__PURE__ */ a(t.Header, {
|
|
90
|
+
children: i(s.title)
|
|
91
|
+
}), /* @__PURE__ */ w(t.Body, {
|
|
92
|
+
className: f.body,
|
|
93
|
+
inert: g ? "" : null,
|
|
94
|
+
children: [g && /* @__PURE__ */ a("div", {
|
|
95
|
+
className: f.loading,
|
|
96
|
+
children: /* @__PURE__ */ a(Q, {
|
|
97
|
+
"aria-label": i(s.loadingLabel),
|
|
98
|
+
size: "large"
|
|
99
|
+
})
|
|
100
|
+
}), /* @__PURE__ */ a(W, {
|
|
88
101
|
as: "p",
|
|
89
102
|
color: "textOnLightSecondary",
|
|
90
|
-
children: s
|
|
91
|
-
learnSharedLinkSettingsLink: /* @__PURE__ */ a(
|
|
103
|
+
children: i(s.subtitle, {
|
|
104
|
+
learnSharedLinkSettingsLink: /* @__PURE__ */ a(X, {
|
|
92
105
|
href: "https://support.box.com/hc/en-us/articles/360043697554-Configuring-Individual-Shared-Link-Settings",
|
|
93
106
|
rel: "noreferrer",
|
|
94
107
|
target: "_blank",
|
|
95
|
-
children: s
|
|
108
|
+
children: i(s.learnSharedLinkSettingsLink)
|
|
96
109
|
})
|
|
97
110
|
})
|
|
98
|
-
}), /* @__PURE__ */ a(
|
|
111
|
+
}), /* @__PURE__ */ a(Z, {
|
|
99
112
|
canChange: !!n.canChangeExpiration,
|
|
100
|
-
error:
|
|
113
|
+
error: u.expiration,
|
|
101
114
|
expiration: o.expiration,
|
|
102
115
|
isChecked: o.isExpirationEnabled,
|
|
103
116
|
isDisabled: l,
|
|
104
|
-
onChange:
|
|
105
|
-
onToggle:
|
|
106
|
-
}), /* @__PURE__ */ a(
|
|
117
|
+
onChange: V,
|
|
118
|
+
onToggle: _
|
|
119
|
+
}), /* @__PURE__ */ a($, {
|
|
107
120
|
canChange: !!n.canChangePassword,
|
|
108
|
-
error:
|
|
109
|
-
isAvailable: n.isPasswordAvailable &&
|
|
121
|
+
error: u.password,
|
|
122
|
+
isAvailable: n.isPasswordAvailable && D?.id === "open",
|
|
110
123
|
isChecked: o.isPasswordEnabled,
|
|
111
|
-
isDefaultChecked:
|
|
124
|
+
isDefaultChecked: b.isPasswordEnabled,
|
|
112
125
|
isDisabled: l,
|
|
113
|
-
onBlur:
|
|
114
|
-
onChange:
|
|
115
|
-
onFocus: () =>
|
|
116
|
-
onToggle:
|
|
126
|
+
onBlur: H,
|
|
127
|
+
onChange: z,
|
|
128
|
+
onFocus: () => r("password", void 0),
|
|
129
|
+
onToggle: j,
|
|
117
130
|
password: o.password
|
|
118
|
-
}), /* @__PURE__ */ a(
|
|
131
|
+
}), /* @__PURE__ */ a(O, {
|
|
119
132
|
canChange: !!n.canChangeVanityName,
|
|
120
|
-
error:
|
|
133
|
+
error: u.vanityName,
|
|
121
134
|
isAvailable: !!n.isVanityNameAvailable,
|
|
122
135
|
isChecked: o.isVanityNameEnabled,
|
|
123
136
|
isDisabled: l,
|
|
124
|
-
onChange:
|
|
125
|
-
onToggle:
|
|
126
|
-
vanityDomain:
|
|
137
|
+
onChange: I,
|
|
138
|
+
onToggle: M,
|
|
139
|
+
vanityDomain: L,
|
|
127
140
|
vanityName: o.vanityName
|
|
128
|
-
}), /* @__PURE__ */ a(
|
|
141
|
+
}), /* @__PURE__ */ a(Y, {
|
|
129
142
|
canChange: !!n.canChangeDownload,
|
|
130
143
|
isAvailable: !!n.isDownloadAvailable,
|
|
131
144
|
isChecked: o.isDownloadEnabled,
|
|
132
145
|
isDisabled: l,
|
|
133
|
-
onToggle:
|
|
146
|
+
onToggle: U
|
|
134
147
|
})]
|
|
135
|
-
}), /* @__PURE__ */
|
|
136
|
-
children: [/* @__PURE__ */ a(
|
|
148
|
+
}), !g && /* @__PURE__ */ w(t.Footer, {
|
|
149
|
+
children: [/* @__PURE__ */ a(t.Footer.SecondaryButton, {
|
|
137
150
|
disabled: l,
|
|
138
|
-
onClick:
|
|
139
|
-
children: s
|
|
140
|
-
}), /* @__PURE__ */ a(
|
|
151
|
+
onClick: S,
|
|
152
|
+
children: i(s.cancelButton)
|
|
153
|
+
}), /* @__PURE__ */ a(t.Footer.PrimaryButton, {
|
|
141
154
|
id: "usm-SharedLinkSettingsModal-primaryButton",
|
|
142
155
|
loading: l,
|
|
143
|
-
loadingAriaLabel: s
|
|
144
|
-
onClick:
|
|
145
|
-
children: s
|
|
156
|
+
loadingAriaLabel: i(s.loadingLabel),
|
|
157
|
+
onClick: A,
|
|
158
|
+
children: i(s.saveButton)
|
|
146
159
|
})]
|
|
147
|
-
}), /* @__PURE__ */ a(
|
|
148
|
-
"aria-label": s
|
|
160
|
+
}), /* @__PURE__ */ a(t.Close, {
|
|
161
|
+
"aria-label": i(s.closeButton)
|
|
149
162
|
})]
|
|
150
163
|
})
|
|
151
164
|
});
|
|
152
165
|
}
|
|
153
166
|
export {
|
|
154
|
-
|
|
167
|
+
ye as SharedLinkSettingsModal
|
|
155
168
|
};
|
|
@@ -1,58 +1,67 @@
|
|
|
1
|
-
import { useIntl as
|
|
2
|
-
import { Text as
|
|
3
|
-
import { Gray10 as
|
|
4
|
-
import { CollaboratorAvatar as
|
|
5
|
-
import
|
|
6
|
-
import { jsxs as
|
|
7
|
-
import { callOnKeyboardEvent as
|
|
8
|
-
import { useUnifiedShareModalContext as
|
|
9
|
-
import { useUnifiedShareFormContext as
|
|
10
|
-
import '../../../../../styles/shared-with-avatars.css';const
|
|
11
|
-
container:
|
|
12
|
-
avatars:
|
|
13
|
-
},
|
|
14
|
-
function
|
|
1
|
+
import { useIntl as x } from "react-intl";
|
|
2
|
+
import { Text as C, Avatar as g } from "@box/blueprint-web";
|
|
3
|
+
import { Gray10 as A } from "@box/blueprint-web-assets/tokens/tokens";
|
|
4
|
+
import { CollaboratorAvatar as S } from "../collaborators-view/collaborator-avatar.js";
|
|
5
|
+
import _ from "./messages.js";
|
|
6
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
7
|
+
import { callOnKeyboardEvent as k } from "../../../utils/event.js";
|
|
8
|
+
import { useUnifiedShareModalContext as y } from "../../../contexts/unified-share-modal-context.js";
|
|
9
|
+
import { useUnifiedShareFormContext as I } from "../../../contexts/unified-share-form-context.js";
|
|
10
|
+
import '../../../../../styles/shared-with-avatars.css';const W = "_container_1ku5s_2", U = "_avatars_1ku5s_19", c = {
|
|
11
|
+
container: W,
|
|
12
|
+
avatars: U
|
|
13
|
+
}, m = 3;
|
|
14
|
+
function V() {
|
|
15
15
|
const {
|
|
16
|
-
formatMessage:
|
|
17
|
-
} =
|
|
18
|
-
collaborators:
|
|
19
|
-
currentUser:
|
|
16
|
+
formatMessage: d
|
|
17
|
+
} = x(), {
|
|
18
|
+
collaborators: f,
|
|
19
|
+
currentUser: h,
|
|
20
|
+
eventService: u,
|
|
20
21
|
isSubmitting: o
|
|
21
|
-
} =
|
|
22
|
-
onShareViewChange:
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
} =
|
|
22
|
+
} = y(), {
|
|
23
|
+
onShareViewChange: v
|
|
24
|
+
} = I(), {
|
|
25
|
+
onCollaboratorsClick: a
|
|
26
|
+
} = u, {
|
|
27
|
+
id: n
|
|
28
|
+
} = h, t = f.filter(({
|
|
26
29
|
isCurrentUser: r,
|
|
27
|
-
userId:
|
|
28
|
-
}) => !(r ||
|
|
30
|
+
userId: b
|
|
31
|
+
}) => !(r || n && n === b));
|
|
29
32
|
if (!t.length)
|
|
30
33
|
return null;
|
|
31
|
-
const
|
|
32
|
-
|
|
34
|
+
const p = t.slice(0, m), s = t.length - m, i = () => {
|
|
35
|
+
if (a) {
|
|
36
|
+
a();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
v("collaborators");
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ l("div", {
|
|
33
42
|
"aria-disabled": o,
|
|
34
|
-
className:
|
|
35
|
-
onClick:
|
|
36
|
-
onKeyDown:
|
|
43
|
+
className: c.container,
|
|
44
|
+
onClick: i,
|
|
45
|
+
onKeyDown: k(i),
|
|
37
46
|
role: "button",
|
|
38
47
|
tabIndex: o ? -1 : 0,
|
|
39
|
-
children: [/* @__PURE__ */ e(
|
|
48
|
+
children: [/* @__PURE__ */ e(C, {
|
|
40
49
|
as: "span",
|
|
41
50
|
color: "textOnLightSecondary",
|
|
42
|
-
children:
|
|
43
|
-
}), /* @__PURE__ */
|
|
44
|
-
className:
|
|
45
|
-
children: [
|
|
51
|
+
children: d(_.sharedWithLabel)
|
|
52
|
+
}), /* @__PURE__ */ l("div", {
|
|
53
|
+
className: c.avatars,
|
|
54
|
+
children: [p.map((r) => /* @__PURE__ */ e(S, {
|
|
46
55
|
collaborator: r,
|
|
47
56
|
size: "medium"
|
|
48
|
-
}, r.id)),
|
|
49
|
-
color:
|
|
57
|
+
}, r.id)), s > 0 && /* @__PURE__ */ e(g, {
|
|
58
|
+
color: A,
|
|
50
59
|
size: "medium",
|
|
51
|
-
text: `+${
|
|
60
|
+
text: `+${s}`
|
|
52
61
|
})]
|
|
53
62
|
})]
|
|
54
63
|
});
|
|
55
64
|
}
|
|
56
65
|
export {
|
|
57
|
-
|
|
66
|
+
V as SharedWithAvatars
|
|
58
67
|
};
|
|
@@ -8,7 +8,7 @@ import l from "./messages.js";
|
|
|
8
8
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
9
9
|
import { UnifiedShareFormProvider as O } from "../../contexts/unified-share-form-context.js";
|
|
10
10
|
import { useUnifiedShareModalContext as V } from "../../contexts/unified-share-modal-context.js";
|
|
11
|
-
import '../../../../styles/unified-share-form-modal.css';const j = "
|
|
11
|
+
import '../../../../styles/unified-share-form-modal.css';const j = "_content_1xtsr_1", z = "_header_1xtsr_5", B = "_body_1xtsr_12", L = "_hasFooter_1xtsr_23", R = "_loading_1xtsr_27", t = {
|
|
12
12
|
content: j,
|
|
13
13
|
header: z,
|
|
14
14
|
body: B,
|
|
@@ -18,21 +18,21 @@ import '../../../../styles/unified-share-form-modal.css';const j = "_content_1tn
|
|
|
18
18
|
function W({
|
|
19
19
|
children: d,
|
|
20
20
|
isOpen: p,
|
|
21
|
-
onOpenChange:
|
|
21
|
+
onOpenChange: r,
|
|
22
22
|
onModalViewChange: u
|
|
23
23
|
}) {
|
|
24
24
|
const {
|
|
25
|
-
formatMessage:
|
|
25
|
+
formatMessage: a
|
|
26
26
|
} = U(), {
|
|
27
27
|
initialContacts: _,
|
|
28
|
-
isFetching:
|
|
29
|
-
item:
|
|
28
|
+
isFetching: x,
|
|
29
|
+
item: C
|
|
30
30
|
} = V(), {
|
|
31
31
|
classification: i,
|
|
32
|
-
name:
|
|
33
|
-
} =
|
|
34
|
-
m("default"),
|
|
35
|
-
}, [
|
|
32
|
+
name: F
|
|
33
|
+
} = C, [S, b] = g(null), [c, m] = g("default"), M = !!d, h = c !== "default", f = N((s) => {
|
|
34
|
+
m("default"), r && r(s);
|
|
35
|
+
}, [r]), y = (s) => {
|
|
36
36
|
s.preventDefault();
|
|
37
37
|
};
|
|
38
38
|
return /* @__PURE__ */ n(o, {
|
|
@@ -41,14 +41,14 @@ function W({
|
|
|
41
41
|
children: [M && /* @__PURE__ */ e(o.Trigger, {
|
|
42
42
|
children: d
|
|
43
43
|
}), /* @__PURE__ */ n(o.Content, {
|
|
44
|
-
ref:
|
|
44
|
+
ref: b,
|
|
45
45
|
className: t.content,
|
|
46
46
|
onPointerDownOutside: y,
|
|
47
47
|
size: "medium",
|
|
48
48
|
children: [/* @__PURE__ */ n(o.Header, {
|
|
49
49
|
className: t.header,
|
|
50
|
-
children: [
|
|
51
|
-
itemName:
|
|
50
|
+
children: [a(l.title, {
|
|
51
|
+
itemName: F
|
|
52
52
|
}), i && /* @__PURE__ */ e(I, {
|
|
53
53
|
colorIndex: i.colorId + 1,
|
|
54
54
|
icon: v,
|
|
@@ -58,22 +58,22 @@ function W({
|
|
|
58
58
|
}), /* @__PURE__ */ e(o.Body, {
|
|
59
59
|
className: w(t.body, h && t.hasFooter),
|
|
60
60
|
children: /* @__PURE__ */ n(O, {
|
|
61
|
-
container:
|
|
61
|
+
container: S,
|
|
62
62
|
initialContacts: _,
|
|
63
63
|
onModalOpenChange: f,
|
|
64
64
|
onModalViewChange: u,
|
|
65
65
|
onShareViewChange: m,
|
|
66
66
|
shareView: c,
|
|
67
|
-
children: [
|
|
67
|
+
children: [x && /* @__PURE__ */ e("div", {
|
|
68
68
|
className: t.loading,
|
|
69
69
|
children: /* @__PURE__ */ e(P, {
|
|
70
|
-
"aria-label":
|
|
70
|
+
"aria-label": a(l.loadingLabel),
|
|
71
71
|
size: "large"
|
|
72
72
|
})
|
|
73
73
|
}), /* @__PURE__ */ e(D, {})]
|
|
74
74
|
})
|
|
75
75
|
}), !h && /* @__PURE__ */ e(o.Close, {
|
|
76
|
-
"aria-label":
|
|
76
|
+
"aria-label": a(l.closeButton)
|
|
77
77
|
})]
|
|
78
78
|
})]
|
|
79
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_1r0kk_1._content_1r0kk_1{max-width:480px}._body_1r0kk_5._body_1r0kk_5{position:relative;display:flex;flex-direction:column;gap:var(--space-4);padding-top:0;padding-bottom:0}._body_1r0kk_5._body_1r0kk_5[inert]{min-height:200px}._loading_1r0kk_17{position:absolute;inset:0;z-index:1;display:flex;align-items:center;padding-bottom:var(--space-8);background-color:var(--gray-white)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_1xtsr_1._content_1xtsr_1{max-width:480px}._header_1xtsr_5{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}._body_1xtsr_12._body_1xtsr_12{position:relative;max-width:432px;padding-top:0;padding-bottom:var(--space-8)}._body_1xtsr_12._body_1xtsr_12:before{display:block;width:100vw;content:""}._body_1xtsr_12._body_1xtsr_12._hasFooter_1xtsr_23{padding-bottom:0}._loading_1xtsr_27{position:absolute;inset:0;z-index:1001;display:flex;align-items:center;padding-bottom:var(--space-8);background-color:var(--gray-white)}@media not (max-width:374px){._content_1xtsr_1{overflow:visible}}@media not (max-width:459px){div:has(>._content_1xtsr_1){display:flex;padding:var(--space-8);overflow:auto}._content_1xtsr_1{max-height:none;margin:auto}}
|
|
@@ -334,14 +334,20 @@ export interface CollaborationRole {
|
|
|
334
334
|
label?: string;
|
|
335
335
|
}
|
|
336
336
|
export interface EventService {
|
|
337
|
+
/**
|
|
338
|
+
* Function to customize the click behavior of the "Shared with ..." list of avatars.
|
|
339
|
+
*
|
|
340
|
+
* If provided, the default behavior is disabled and the list of collaborators will not be rendered.
|
|
341
|
+
*
|
|
342
|
+
* Used to enhance the experience for managing collaborators such as opening the Collaborators Modal.
|
|
343
|
+
*/
|
|
337
344
|
onCollaboratorsClick?: () => void;
|
|
338
345
|
/**
|
|
339
|
-
*
|
|
346
|
+
* Function to customize the click behavior of the "Manage All" link.
|
|
340
347
|
*
|
|
341
|
-
*
|
|
342
|
-
* Useful for opening a CollaboratorsModal or custom dialog without leaving the page.
|
|
348
|
+
* If provided, the default behavior is disabled and the link will be rendered as a button.
|
|
343
349
|
*
|
|
344
|
-
*
|
|
350
|
+
* Used to enhance the experience for managing collaborators or override the default navigation behavior.
|
|
345
351
|
*/
|
|
346
352
|
onCollaboratorsManagementClick?: () => void;
|
|
347
353
|
/**
|
|
@@ -350,8 +356,21 @@ export interface EventService {
|
|
|
350
356
|
* This is usually used for data tracking purposes.
|
|
351
357
|
*/
|
|
352
358
|
onRestrictedUsersRemoveClick?: (contacts: UserContactType[]) => void;
|
|
359
|
+
/**
|
|
360
|
+
* Function to customize the click behavior of the "Link Settings" link.
|
|
361
|
+
*
|
|
362
|
+
* NOTE: This has not been implemented.
|
|
363
|
+
*/
|
|
353
364
|
onSharedLinkSettingsClick?: () => void;
|
|
365
|
+
/**
|
|
366
|
+
* Function to observe when the user closes the view for the shared link settings.
|
|
367
|
+
*/
|
|
354
368
|
onSharedLinkSettingsClose?: () => void;
|
|
369
|
+
/**
|
|
370
|
+
* Function to allow the consumer to fetch data for the shared link settings.
|
|
371
|
+
*
|
|
372
|
+
* Called when the user opens the view for the shared link settings.
|
|
373
|
+
*/
|
|
355
374
|
onSharedLinkSettingsLoad?: () => void;
|
|
356
375
|
}
|
|
357
376
|
export interface ContactService {
|