@box/unified-share-modal 1.18.0 → 1.19.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/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +90 -91
- package/dist/esm/lib/hooks/use-collaboration-form.js +42 -43
- package/dist/esm/lib/hooks/use-sharing-action.js +12 -12
- package/dist/esm/lib/utils/date.js +1 -1
- package/dist/esm/lib/utils/form.js +11 -12
- package/dist/i18n/bn-IN.properties +10 -0
- package/dist/i18n/da-DK.properties +10 -0
- package/dist/i18n/de-DE.properties +10 -0
- package/dist/i18n/en-AU.properties +10 -0
- package/dist/i18n/en-CA.properties +10 -0
- package/dist/i18n/en-GB.properties +10 -0
- package/dist/i18n/en-x-pseudo.js +126 -126
- package/dist/i18n/en-x-pseudo.properties +131 -121
- package/dist/i18n/es-419.properties +10 -0
- package/dist/i18n/es-ES.properties +10 -0
- package/dist/i18n/fi-FI.properties +10 -0
- package/dist/i18n/fr-CA.properties +10 -0
- package/dist/i18n/fr-FR.properties +10 -0
- package/dist/i18n/hi-IN.properties +10 -0
- package/dist/i18n/it-IT.properties +10 -0
- package/dist/i18n/ja-JP.properties +10 -0
- package/dist/i18n/ko-KR.properties +10 -0
- package/dist/i18n/nb-NO.properties +10 -0
- package/dist/i18n/nl-NL.properties +10 -0
- package/dist/i18n/pl-PL.properties +10 -0
- package/dist/i18n/pt-BR.properties +10 -0
- package/dist/i18n/ru-RU.properties +10 -0
- package/dist/i18n/sv-SE.properties +10 -0
- package/dist/i18n/tr-TR.properties +10 -0
- package/dist/i18n/zh-CN.properties +10 -0
- package/dist/i18n/zh-TW.properties +10 -0
- package/dist/styles/collaborators-view.css +1 -1
- package/dist/styles/unified-share-form-modal.css +1 -1
- package/package.json +9 -9
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { useMemo as
|
|
2
|
-
import { useIntl as
|
|
3
|
-
import { Modal as i, Text as
|
|
4
|
-
import { DownloadSection as
|
|
5
|
-
import { ExpirationSection as
|
|
6
|
-
import { PasswordSection as
|
|
7
|
-
import { VanitySection as
|
|
1
|
+
import { useMemo as U } from "react";
|
|
2
|
+
import { useIntl as z } from "react-intl";
|
|
3
|
+
import { Modal as i, Text as H, Link as R } from "@box/blueprint-web";
|
|
4
|
+
import { DownloadSection as q } from "./download-section.js";
|
|
5
|
+
import { ExpirationSection as G } from "./expiration-section.js";
|
|
6
|
+
import { PasswordSection as J } from "./password-section.js";
|
|
7
|
+
import { VanitySection as K } from "./vanity-section.js";
|
|
8
8
|
import d from "./messages.js";
|
|
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:
|
|
9
|
+
import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
import { useAccessLevels as Q } from "../../hooks/use-access-levels.js";
|
|
11
|
+
import { formatDateFromTimestampToCalendarDate as W } from "../../utils/date.js";
|
|
12
|
+
import { useLinkSettingsForm as X } from "../../hooks/use-link-settings-form.js";
|
|
13
|
+
import { useUnifiedShareModalContext as Y } from "../../contexts/unified-share-modal-context.js";
|
|
14
|
+
import '../../../../styles/shared-link-settings-modal.css';const Z = "_content_1wiic_1", $ = "_body_1wiic_5", v = {
|
|
15
|
+
content: Z,
|
|
16
|
+
body: $
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
isOpen:
|
|
20
|
-
onOpenChange:
|
|
18
|
+
function he({
|
|
19
|
+
isOpen: y,
|
|
20
|
+
onOpenChange: b
|
|
21
21
|
}) {
|
|
22
22
|
const {
|
|
23
|
-
formatMessage:
|
|
24
|
-
} =
|
|
25
|
-
eventService:
|
|
26
|
-
isSubmitting:
|
|
27
|
-
sharedLink:
|
|
28
|
-
} =
|
|
23
|
+
formatMessage: s
|
|
24
|
+
} = z(), {
|
|
25
|
+
eventService: C,
|
|
26
|
+
isSubmitting: f,
|
|
27
|
+
sharedLink: S
|
|
28
|
+
} = Y(), {
|
|
29
29
|
expiresAt: c = 0,
|
|
30
30
|
settings: n = {},
|
|
31
|
-
vanityDomain:
|
|
31
|
+
vanityDomain: E = "",
|
|
32
32
|
vanityName: m = ""
|
|
33
|
-
} = x, {
|
|
34
|
-
onSharedLinkSettingsClose: w
|
|
35
33
|
} = S, {
|
|
36
|
-
|
|
37
|
-
} =
|
|
38
|
-
|
|
34
|
+
onSharedLinkSettingsClose: u
|
|
35
|
+
} = C, {
|
|
36
|
+
selectedAccess: x
|
|
37
|
+
} = Q(), g = U(() => ({
|
|
38
|
+
expiration: c ? W(c) : null,
|
|
39
39
|
isDownloadEnabled: !!n.isDownloadEnabled,
|
|
40
40
|
isExpirationEnabled: !!c,
|
|
41
41
|
isPasswordEnabled: !!n.isPasswordEnabled,
|
|
@@ -43,114 +43,113 @@ function pe({
|
|
|
43
43
|
password: "",
|
|
44
44
|
vanityName: m
|
|
45
45
|
}), [c, n, m]), {
|
|
46
|
-
errors:
|
|
46
|
+
errors: h,
|
|
47
47
|
formData: o,
|
|
48
|
-
handleFormReset:
|
|
49
|
-
handleFormSubmit:
|
|
50
|
-
isUpdating:
|
|
51
|
-
setErrors:
|
|
52
|
-
setFieldError:
|
|
48
|
+
handleFormReset: k,
|
|
49
|
+
handleFormSubmit: D,
|
|
50
|
+
isUpdating: L,
|
|
51
|
+
setErrors: N,
|
|
52
|
+
setFieldError: t,
|
|
53
53
|
setFieldValue: r,
|
|
54
|
-
validatePassword:
|
|
55
|
-
} =
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
await
|
|
54
|
+
validatePassword: P
|
|
55
|
+
} = X(g), w = () => {
|
|
56
|
+
k(), u && u(), b(!1);
|
|
57
|
+
}, F = async () => {
|
|
58
|
+
await D() || (N({}), b(!1));
|
|
59
|
+
}, T = (e) => {
|
|
60
|
+
t("expiration", void 0), r("isExpirationEnabled", e);
|
|
59
61
|
}, B = (e) => {
|
|
60
|
-
|
|
61
|
-
}, V = (e) => {
|
|
62
|
-
s("expiration", void 0), r("expiration", e);
|
|
62
|
+
t("expiration", void 0), r("expiration", e);
|
|
63
63
|
}, A = (e) => {
|
|
64
|
-
|
|
64
|
+
t("vanityName", void 0), r("isVanityNameEnabled", e);
|
|
65
|
+
}, V = (e) => {
|
|
66
|
+
t("vanityName", void 0), r("vanityName", e.target.value);
|
|
65
67
|
}, M = (e) => {
|
|
66
|
-
|
|
68
|
+
t("password", void 0), r("isPasswordEnabled", e);
|
|
67
69
|
}, _ = (e) => {
|
|
68
|
-
|
|
70
|
+
t("password", void 0), r("password", e.target.value);
|
|
69
71
|
}, I = (e) => {
|
|
70
|
-
s("password", void 0), r("password", e.target.value);
|
|
71
|
-
}, j = (e) => {
|
|
72
72
|
r("isDownloadEnabled", e);
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, l = E || N;
|
|
73
|
+
}, j = (e) => {
|
|
74
|
+
const O = document.getElementById("usm-SharedLinkSettingsModal-primaryButton")?.contains(e.relatedTarget);
|
|
75
|
+
g.isPasswordEnabled && !o.password || O || P(o.password);
|
|
76
|
+
}, l = f || L;
|
|
78
77
|
return /* @__PURE__ */ a(i, {
|
|
79
|
-
onOpenChange:
|
|
80
|
-
open:
|
|
81
|
-
children: /* @__PURE__ */
|
|
82
|
-
className:
|
|
78
|
+
onOpenChange: w,
|
|
79
|
+
open: y,
|
|
80
|
+
children: /* @__PURE__ */ p(i.Content, {
|
|
81
|
+
className: v.content,
|
|
83
82
|
size: "medium",
|
|
84
83
|
children: [/* @__PURE__ */ a(i.Header, {
|
|
85
|
-
children:
|
|
86
|
-
}), /* @__PURE__ */
|
|
87
|
-
className:
|
|
88
|
-
children: [/* @__PURE__ */ a(
|
|
84
|
+
children: s(d.title)
|
|
85
|
+
}), /* @__PURE__ */ p(i.Body, {
|
|
86
|
+
className: v.body,
|
|
87
|
+
children: [/* @__PURE__ */ a(H, {
|
|
89
88
|
as: "p",
|
|
90
89
|
color: "textOnLightSecondary",
|
|
91
|
-
children:
|
|
92
|
-
learnSharedLinkSettingsLink: /* @__PURE__ */ a(
|
|
90
|
+
children: s(d.subtitle, {
|
|
91
|
+
learnSharedLinkSettingsLink: /* @__PURE__ */ a(R, {
|
|
93
92
|
href: "https://support.box.com/hc/en-us/articles/360043697554-Configuring-Individual-Shared-Link-Settings",
|
|
94
93
|
rel: "noreferrer",
|
|
95
94
|
target: "_blank",
|
|
96
|
-
children:
|
|
95
|
+
children: s(d.learnSharedLinkSettingsLink)
|
|
97
96
|
})
|
|
98
97
|
})
|
|
99
|
-
}), /* @__PURE__ */ a(
|
|
98
|
+
}), /* @__PURE__ */ a(G, {
|
|
100
99
|
canChange: !!n.canChangeExpiration,
|
|
101
|
-
error:
|
|
100
|
+
error: h.expiration,
|
|
102
101
|
expiration: o.expiration,
|
|
103
102
|
isChecked: o.isExpirationEnabled,
|
|
104
103
|
isDisabled: l,
|
|
105
|
-
onChange:
|
|
106
|
-
onToggle:
|
|
107
|
-
}), /* @__PURE__ */ a(
|
|
104
|
+
onChange: B,
|
|
105
|
+
onToggle: T
|
|
106
|
+
}), /* @__PURE__ */ a(J, {
|
|
108
107
|
canChange: !!n.canChangePassword,
|
|
109
|
-
error:
|
|
110
|
-
isAvailable: n.isPasswordAvailable &&
|
|
108
|
+
error: h.password,
|
|
109
|
+
isAvailable: n.isPasswordAvailable && x?.id === "open",
|
|
111
110
|
isChecked: o.isPasswordEnabled,
|
|
112
|
-
isDefaultChecked:
|
|
111
|
+
isDefaultChecked: g.isPasswordEnabled,
|
|
113
112
|
isDisabled: l,
|
|
114
|
-
onBlur:
|
|
115
|
-
onChange:
|
|
116
|
-
onFocus: () =>
|
|
117
|
-
onToggle:
|
|
113
|
+
onBlur: j,
|
|
114
|
+
onChange: _,
|
|
115
|
+
onFocus: () => t("password", void 0),
|
|
116
|
+
onToggle: M,
|
|
118
117
|
password: o.password
|
|
119
|
-
}), /* @__PURE__ */ a(
|
|
118
|
+
}), /* @__PURE__ */ a(K, {
|
|
120
119
|
canChange: !!n.canChangeVanityName,
|
|
121
|
-
error:
|
|
120
|
+
error: h.vanityName,
|
|
122
121
|
isAvailable: !!n.isVanityNameAvailable,
|
|
123
122
|
isChecked: o.isVanityNameEnabled,
|
|
124
123
|
isDisabled: l,
|
|
125
|
-
onChange:
|
|
124
|
+
onChange: V,
|
|
126
125
|
onToggle: A,
|
|
127
|
-
vanityDomain:
|
|
126
|
+
vanityDomain: E,
|
|
128
127
|
vanityName: o.vanityName
|
|
129
|
-
}), /* @__PURE__ */ a(
|
|
128
|
+
}), /* @__PURE__ */ a(q, {
|
|
130
129
|
canChange: !!n.canChangeDownload,
|
|
131
130
|
isAvailable: !!n.isDownloadAvailable,
|
|
132
131
|
isChecked: o.isDownloadEnabled,
|
|
133
132
|
isDisabled: l,
|
|
134
|
-
onToggle:
|
|
133
|
+
onToggle: I
|
|
135
134
|
})]
|
|
136
|
-
}), /* @__PURE__ */
|
|
135
|
+
}), /* @__PURE__ */ p(i.Footer, {
|
|
137
136
|
children: [/* @__PURE__ */ a(i.Footer.SecondaryButton, {
|
|
138
137
|
disabled: l,
|
|
139
|
-
onClick:
|
|
140
|
-
children:
|
|
138
|
+
onClick: w,
|
|
139
|
+
children: s(d.cancelButton)
|
|
141
140
|
}), /* @__PURE__ */ a(i.Footer.PrimaryButton, {
|
|
142
141
|
id: "usm-SharedLinkSettingsModal-primaryButton",
|
|
143
142
|
loading: l,
|
|
144
|
-
loadingAriaLabel:
|
|
145
|
-
onClick:
|
|
146
|
-
children:
|
|
143
|
+
loadingAriaLabel: s(d.loadingLabel),
|
|
144
|
+
onClick: F,
|
|
145
|
+
children: s(d.saveButton)
|
|
147
146
|
})]
|
|
148
147
|
}), /* @__PURE__ */ a(i.Close, {
|
|
149
|
-
"aria-label":
|
|
148
|
+
"aria-label": s(d.closeButton)
|
|
150
149
|
})]
|
|
151
150
|
})
|
|
152
151
|
});
|
|
153
152
|
}
|
|
154
153
|
export {
|
|
155
|
-
|
|
154
|
+
he as SharedLinkSettingsModal
|
|
156
155
|
};
|
|
@@ -1,78 +1,77 @@
|
|
|
1
|
-
import { useCallback as
|
|
1
|
+
import { useCallback as r } from "react";
|
|
2
2
|
import { useFormValidation as E } from "./use-form-validation.js";
|
|
3
3
|
import { useSharingAction as A } from "./use-sharing-action.js";
|
|
4
4
|
import { useUnifiedShareFormContext as M } from "../contexts/unified-share-form-context.js";
|
|
5
5
|
import { useUnifiedShareModalContext as O } from "../contexts/unified-share-modal-context.js";
|
|
6
|
-
const I = (
|
|
6
|
+
const I = (S, h) => {
|
|
7
7
|
const {
|
|
8
|
-
errors:
|
|
8
|
+
errors: u,
|
|
9
9
|
setFieldError: a,
|
|
10
|
-
validateUserContact:
|
|
11
|
-
validateUserSelector:
|
|
10
|
+
validateUserContact: m,
|
|
11
|
+
validateUserSelector: c
|
|
12
12
|
} = E(), {
|
|
13
|
-
contactService:
|
|
13
|
+
contactService: p
|
|
14
14
|
} = O(), {
|
|
15
|
-
collaborationRole:
|
|
16
|
-
messageValue:
|
|
17
|
-
setContactValue:
|
|
18
|
-
setMessageValue:
|
|
19
|
-
setUserContacts:
|
|
20
|
-
shareView:
|
|
15
|
+
collaborationRole: v,
|
|
16
|
+
messageValue: F,
|
|
17
|
+
setContactValue: s,
|
|
18
|
+
setMessageValue: b,
|
|
19
|
+
setUserContacts: n,
|
|
20
|
+
shareView: U,
|
|
21
21
|
userContacts: o
|
|
22
22
|
} = M(), {
|
|
23
|
-
isLoading:
|
|
24
|
-
onAction:
|
|
25
|
-
} = A(
|
|
26
|
-
getContactByEmail:
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
a("user-contact", ""),
|
|
31
|
-
}, [
|
|
23
|
+
isLoading: x,
|
|
24
|
+
onAction: y
|
|
25
|
+
} = A(S, h), {
|
|
26
|
+
getContactByEmail: i
|
|
27
|
+
} = p, d = () => {
|
|
28
|
+
n([]), s(""), b(""), a("user-contact", "");
|
|
29
|
+
}, V = r((t) => {
|
|
30
|
+
a("user-contact", ""), s(t);
|
|
31
|
+
}, [s, a]), f = r(async (t) => {
|
|
32
32
|
if (t.id)
|
|
33
33
|
return t;
|
|
34
|
-
if (
|
|
35
|
-
const e = await
|
|
34
|
+
if (i) {
|
|
35
|
+
const e = await i(t.value);
|
|
36
36
|
if (e && e.id)
|
|
37
37
|
return e;
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return m(t.value) ? null : {
|
|
40
40
|
email: t.value,
|
|
41
41
|
id: 0,
|
|
42
42
|
isExternalUser: !0,
|
|
43
43
|
name: t.value,
|
|
44
44
|
value: t.value
|
|
45
45
|
};
|
|
46
|
-
}, [
|
|
47
|
-
if (a("user-contact", ""),
|
|
48
|
-
|
|
46
|
+
}, [i, m]), l = r(async (t) => {
|
|
47
|
+
if (a("user-contact", ""), c(t), o.length >= t.length) {
|
|
48
|
+
n(t);
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
const [e,
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
(c = document.querySelector('div[role="listbox"][aria-labelledby^="user-contacts"]')) != null && c.contains(t.relatedTarget) || e || m([...o, {
|
|
51
|
+
const [e, C] = [t.slice(0, -1), t[t.length - 1]], g = await f(C), B = g ? [...e, g] : e;
|
|
52
|
+
n(B.filter(Boolean));
|
|
53
|
+
}, [f, a, n, c, o]), w = r((t) => {
|
|
54
|
+
const e = t.relatedTarget?.closest(".collaboration-user-selector");
|
|
55
|
+
document.querySelector('div[role="listbox"][aria-labelledby^="user-contacts"]')?.contains(t.relatedTarget) || e || l([...o, {
|
|
57
56
|
value: t.target.value
|
|
58
57
|
}]);
|
|
59
|
-
}, [
|
|
58
|
+
}, [l, o]);
|
|
60
59
|
return {
|
|
61
|
-
errors:
|
|
62
|
-
handleFormReset:
|
|
60
|
+
errors: u,
|
|
61
|
+
handleFormReset: d,
|
|
63
62
|
handleFormSubmit: async () => {
|
|
64
|
-
if (
|
|
63
|
+
if (u["user-contact"] || c(o))
|
|
65
64
|
return !0;
|
|
66
65
|
const t = {
|
|
67
66
|
contacts: o,
|
|
68
|
-
message:
|
|
67
|
+
message: F
|
|
69
68
|
};
|
|
70
|
-
return
|
|
69
|
+
return U === "invite" && (t.role = v.id), await y(t), d(), !1;
|
|
71
70
|
},
|
|
72
|
-
handleSelectedUsersChange:
|
|
73
|
-
handleUserSelectorBlur:
|
|
74
|
-
isFormSubmitting:
|
|
75
|
-
updateContactValue:
|
|
71
|
+
handleSelectedUsersChange: l,
|
|
72
|
+
handleUserSelectorBlur: w,
|
|
73
|
+
isFormSubmitting: x,
|
|
74
|
+
updateContactValue: V
|
|
76
75
|
};
|
|
77
76
|
};
|
|
78
77
|
export {
|
|
@@ -9,16 +9,16 @@ const f = (s, e) => ({
|
|
|
9
9
|
sensitivity: "foreground",
|
|
10
10
|
typeIconAriaLabel: s(e === "success" ? i.successNoticeIcon : i.errorNoticeIcon),
|
|
11
11
|
variant: e
|
|
12
|
-
}), N = (s, e, t,
|
|
12
|
+
}), N = (s, e, t, r) => {
|
|
13
13
|
if (!t)
|
|
14
14
|
return "";
|
|
15
15
|
const l = b(t), n = i[`${l}${e === "success" ? "Success" : "Error"}NoticeText`];
|
|
16
|
-
return n ? s(n,
|
|
16
|
+
return n ? s(n, r) : e === "error" ? s(i.defaultErrorNoticeText) : "";
|
|
17
17
|
}, O = (s, e) => {
|
|
18
18
|
const {
|
|
19
19
|
formatMessage: t
|
|
20
20
|
} = E(), {
|
|
21
|
-
addNotification:
|
|
21
|
+
addNotification: r
|
|
22
22
|
} = S(), [l, u] = C(!1), {
|
|
23
23
|
config: n,
|
|
24
24
|
item: h
|
|
@@ -32,13 +32,13 @@ const f = (s, e) => ({
|
|
|
32
32
|
u(!0);
|
|
33
33
|
try {
|
|
34
34
|
if (s) {
|
|
35
|
-
const o = await s(...p),
|
|
36
|
-
|
|
35
|
+
const o = await s(...p), c = a && !!o && !!o.messages, y = a && !c;
|
|
36
|
+
c && o.messages.forEach(({
|
|
37
37
|
text: x,
|
|
38
38
|
type: A,
|
|
39
39
|
...T
|
|
40
40
|
}) => {
|
|
41
|
-
|
|
41
|
+
r({
|
|
42
42
|
...f(t, A),
|
|
43
43
|
styledText: x,
|
|
44
44
|
...T
|
|
@@ -47,22 +47,22 @@ const f = (s, e) => ({
|
|
|
47
47
|
const g = N(t, "success", e, {
|
|
48
48
|
itemName: d
|
|
49
49
|
});
|
|
50
|
-
y && g &&
|
|
50
|
+
y && g && r({
|
|
51
51
|
...f(t, "success"),
|
|
52
52
|
styledText: g
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
} catch (o) {
|
|
56
|
-
const
|
|
57
|
-
if (a &&
|
|
56
|
+
const c = N(t, "error", e);
|
|
57
|
+
if (a && c && r({
|
|
58
58
|
...f(t, "error"),
|
|
59
|
-
styledText:
|
|
60
|
-
}), o
|
|
59
|
+
styledText: c
|
|
60
|
+
}), o?.fields && Object.values(o.fields).length)
|
|
61
61
|
throw o.fields;
|
|
62
62
|
} finally {
|
|
63
63
|
u(!1);
|
|
64
64
|
}
|
|
65
|
-
}, [s,
|
|
65
|
+
}, [s, r, t, a, d, e]),
|
|
66
66
|
isLoading: l
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toCalendarDate as e, fromAbsolute as o, getLocalTimeZone as a, DateFormatter as m } from "@box/blueprint-web";
|
|
2
|
-
const D = 1e3, c =
|
|
2
|
+
const D = 1e3, c = 1440 * 60 * D, s = (t) => e(o(t, a())), u = (t) => {
|
|
3
3
|
const r = navigator.language || "en-US", n = s(t).toDate(a());
|
|
4
4
|
return new m(r, {
|
|
5
5
|
day: "numeric",
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
var E;
|
|
1
|
+
const b = (E, n) => {
|
|
3
2
|
const {
|
|
4
|
-
expiration:
|
|
5
|
-
isDownloadEnabled:
|
|
6
|
-
isExpirationEnabled:
|
|
7
|
-
isPasswordEnabled:
|
|
8
|
-
isVanityNameEnabled:
|
|
9
|
-
password:
|
|
10
|
-
vanityName:
|
|
11
|
-
} =
|
|
12
|
-
return
|
|
3
|
+
expiration: o,
|
|
4
|
+
isDownloadEnabled: t,
|
|
5
|
+
isExpirationEnabled: a,
|
|
6
|
+
isPasswordEnabled: s,
|
|
7
|
+
isVanityNameEnabled: d,
|
|
8
|
+
password: e,
|
|
9
|
+
vanityName: l
|
|
10
|
+
} = E, i = {};
|
|
11
|
+
return t !== n.isDownloadEnabled && (i.isDownloadEnabled = t), (a !== n.isExpirationEnabled || o?.toString() !== n.expiration?.toString()) && (i.isExpirationEnabled = a, i.expiration = a ? o : null), (s !== n.isPasswordEnabled || e !== n.password) && (i.isPasswordEnabled = s, i.password = s ? e : null), (d !== n.isVanityNameEnabled || l !== n.vanityName) && (i.isVanityNameEnabled = d, i.vanityName = d ? l : null), i;
|
|
13
12
|
};
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
b as getUpdatedLinkSettingsFormData
|
|
16
15
|
};
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = শেয়ারকৃ
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = বাতিল করুন
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = বন্ধ করুন
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = শেয়ার করা লিঙ্ক সহ ব্যবহারকারীদের এই আইটেমটি ডাউনলোড করার অনুমতি দিন
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = শেয়ারকৃত লিঙ্ক তৈরি করা হয়েছে এবং ক্লিপবোর্ডে কপি করা হয়েছে।
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = দেখতে ও ডাউনলোড করতে পারবে
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = সম্পাদনা করা যাবে
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = Fjern delt link
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = Annuller
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = Luk
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = Tillad brugere med det delt link at downloade dette element
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = Delt link oprettet og kopieret til udklipsholder.
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = Kan se og downloade
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = Kan redigere
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = Freigabe-Link entfernen
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = Abbrechen
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = Schließen
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = Benutzern mit dem Freigabe-Link das Herunterladen dieses Elements gestatten
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = Der Freigabe-Link wurde generiert und in die Zwischenablage kopiert.
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = Anzeige und Download erlaubt
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = Bearbeiten erlaubt
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = Remove Shared Link
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = Cancel
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = Close
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = Allow users with the shared link to download this item
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = Shared link created and copied to clipboard.
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = Can view and download
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = Can edit
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = Remove Shared Link
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = Cancel
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = Close
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = Allow users with the shared link to download this item
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = Shared link created and copied to clipboard.
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = Can view and download
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = Can edit
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|
|
@@ -48,6 +48,14 @@ groupSharedFeatures.usm.removeSharedLinkModal.title = Remove Shared Link
|
|
|
48
48
|
groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton = Cancel
|
|
49
49
|
# Aria label for the button to close the Shared Link Settings modal
|
|
50
50
|
groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton = Close
|
|
51
|
+
# Tooltip message when the direct link is blocked due to access policy with classification
|
|
52
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification = Download has been disabled for content due to the classification.
|
|
53
|
+
# Tooltip message when the direct link is blocked due to access policy without classification
|
|
54
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithoutClassification = Download has been disabled for content without classification.
|
|
55
|
+
# Tooltip message when the direct link is blocked due to malicious content
|
|
56
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByMaliciousContent = Download for this content has been disabled due to a security policy.
|
|
57
|
+
# Label for the direct link to download the shared item
|
|
58
|
+
groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkLabel = Direct link
|
|
51
59
|
# Label for the download settings toggle
|
|
52
60
|
groupSharedFeatures.usm.sharedLinkSettingsModal.downloadSettingsToggleText = Allow users with the shared link to download this item
|
|
53
61
|
# Link to learn more about shared link settings
|
|
@@ -176,6 +184,8 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyEr
|
|
|
176
184
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = Shared link created and copied to clipboard.
|
|
177
185
|
# Label for the permission level where shared link users can download the item
|
|
178
186
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel = Can view and download
|
|
187
|
+
# Tooltip on the can edit permission level when it is disabled for Box Notes
|
|
188
|
+
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip = This permission can only be changed in Box Notes
|
|
179
189
|
# Label for the permission level where shared link users can edit the item
|
|
180
190
|
groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel = Can edit
|
|
181
191
|
# Label for the permission level where shared link users can preview the item
|