@box/unified-share-modal 1.50.3 → 1.51.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/classification-status/classification-status.js +76 -0
- package/dist/esm/lib/components/classification-status/index.js +4 -0
- package/dist/esm/lib/components/classification-status/messages.js +14 -0
- package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +64 -58
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +54 -60
- package/dist/esm/lib/hooks/use-form-validation.js +10 -10
- package/dist/esm/lib/messages.js +8 -8
- package/dist/i18n/bn-IN.js +8 -3
- package/dist/i18n/da-DK.js +8 -3
- package/dist/i18n/de-DE.js +8 -3
- package/dist/i18n/en-AU.js +8 -3
- package/dist/i18n/en-CA.js +8 -3
- package/dist/i18n/en-GB.js +8 -3
- package/dist/i18n/en-US.js +5 -3
- package/dist/i18n/en-US.properties +7 -3
- package/dist/i18n/en-x-pseudo.js +8 -3
- package/dist/i18n/es-419.js +8 -3
- package/dist/i18n/es-ES.js +8 -3
- package/dist/i18n/fi-FI.js +8 -3
- package/dist/i18n/fr-CA.js +8 -3
- package/dist/i18n/fr-FR.js +8 -3
- package/dist/i18n/hi-IN.js +8 -3
- package/dist/i18n/it-IT.js +8 -3
- package/dist/i18n/ja-JP.js +8 -3
- package/dist/i18n/json/src/lib/components/classification-status/messages.json +1 -0
- package/dist/i18n/json/src/lib/messages.json +1 -1
- package/dist/i18n/ko-KR.js +8 -3
- package/dist/i18n/nb-NO.js +8 -3
- package/dist/i18n/nl-NL.js +8 -3
- package/dist/i18n/pl-PL.js +8 -3
- package/dist/i18n/pt-BR.js +8 -3
- package/dist/i18n/ru-RU.js +8 -3
- package/dist/i18n/sv-SE.js +8 -3
- package/dist/i18n/tr-TR.js +8 -3
- package/dist/i18n/zh-CN.js +8 -3
- package/dist/i18n/zh-TW.js +8 -3
- package/dist/styles/classification-status.css +1 -0
- package/dist/styles/shared-link-settings-modal.css +1 -1
- package/dist/styles/unified-share-form-modal.css +1 -1
- package/dist/types/lib/components/classification-status/classification-status.d.ts +1 -0
- package/dist/types/lib/components/classification-status/index.d.ts +1 -0
- package/dist/types/lib/components/classification-status/messages.d.ts +13 -0
- package/dist/types/lib/messages.d.ts +7 -7
- package/dist/types/lib/stories/shared.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useIntl as p } from "react-intl";
|
|
2
|
+
import { CardTooltipV2 as x, Status as l, Text as t } from "@box/blueprint-web";
|
|
3
|
+
import { Shield as d } from "@box/blueprint-web-assets/icons/Line";
|
|
4
|
+
import h from "./messages.js";
|
|
5
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
6
|
+
import { useUnifiedShareModalContext as u } from "../../contexts/unified-share-modal-context.js";
|
|
7
|
+
import '../../../../styles/classification-status.css';const _ = "_container_1lxpo_1", v = "_header_1lxpo_7", b = "_content_1lxpo_13", o = {
|
|
8
|
+
container: _,
|
|
9
|
+
header: v,
|
|
10
|
+
content: b
|
|
11
|
+
};
|
|
12
|
+
function N() {
|
|
13
|
+
const {
|
|
14
|
+
formatMessage: i
|
|
15
|
+
} = p(), {
|
|
16
|
+
item: m
|
|
17
|
+
} = u(), {
|
|
18
|
+
classification: r
|
|
19
|
+
} = m;
|
|
20
|
+
if (!r)
|
|
21
|
+
return null;
|
|
22
|
+
const {
|
|
23
|
+
colorId: a,
|
|
24
|
+
definition: f,
|
|
25
|
+
name: c,
|
|
26
|
+
restrictions: s
|
|
27
|
+
} = r;
|
|
28
|
+
return /* @__PURE__ */ e(x, {
|
|
29
|
+
content: /* @__PURE__ */ n("div", {
|
|
30
|
+
className: o.container,
|
|
31
|
+
children: [/* @__PURE__ */ n("div", {
|
|
32
|
+
className: o.header,
|
|
33
|
+
children: [/* @__PURE__ */ e(l, {
|
|
34
|
+
colorIndex: a + 1,
|
|
35
|
+
hideText: !0,
|
|
36
|
+
icon: d,
|
|
37
|
+
text: ""
|
|
38
|
+
}), /* @__PURE__ */ e(t, {
|
|
39
|
+
as: "h3",
|
|
40
|
+
variant: "bodyDefaultBold",
|
|
41
|
+
children: c
|
|
42
|
+
})]
|
|
43
|
+
}), /* @__PURE__ */ n("div", {
|
|
44
|
+
className: o.content,
|
|
45
|
+
children: [/* @__PURE__ */ n("div", {
|
|
46
|
+
children: [/* @__PURE__ */ e(t, {
|
|
47
|
+
as: "h4",
|
|
48
|
+
variant: "bodyDefaultBold",
|
|
49
|
+
children: i(h.definitionLabel)
|
|
50
|
+
}), /* @__PURE__ */ e(t, {
|
|
51
|
+
as: "p",
|
|
52
|
+
children: f
|
|
53
|
+
})]
|
|
54
|
+
}), s && /* @__PURE__ */ n("div", {
|
|
55
|
+
children: [/* @__PURE__ */ e(t, {
|
|
56
|
+
as: "h4",
|
|
57
|
+
variant: "bodyDefaultBold",
|
|
58
|
+
children: i(h.restrictionsLabel)
|
|
59
|
+
}), /* @__PURE__ */ e(t, {
|
|
60
|
+
as: "p",
|
|
61
|
+
children: s
|
|
62
|
+
})]
|
|
63
|
+
})]
|
|
64
|
+
})]
|
|
65
|
+
}),
|
|
66
|
+
children: /* @__PURE__ */ e(l, {
|
|
67
|
+
colorIndex: a + 1,
|
|
68
|
+
icon: d,
|
|
69
|
+
iconPosition: "left",
|
|
70
|
+
text: c.toUpperCase()
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
N as ClassificationStatus
|
|
76
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineMessages as e } from "react-intl";
|
|
2
|
+
const i = e({
|
|
3
|
+
definitionLabel: {
|
|
4
|
+
id: "groupSharedFeatures.usm.classificationStatus.definitionLabel",
|
|
5
|
+
defaultMessage: "Definition"
|
|
6
|
+
},
|
|
7
|
+
restrictionsLabel: {
|
|
8
|
+
id: "groupSharedFeatures.usm.classificationStatus.restrictionsLabel",
|
|
9
|
+
defaultMessage: "Restrictions"
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
i as default
|
|
14
|
+
};
|
|
@@ -1,89 +1,95 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import { Modal as i, LoadingIndicator as
|
|
5
|
-
import { SharedLinkSettings as
|
|
1
|
+
import d from "clsx";
|
|
2
|
+
import { useState as N, useEffect as x } from "react";
|
|
3
|
+
import { useIntl as D } from "react-intl";
|
|
4
|
+
import { Modal as i, LoadingIndicator as M, Divider as w } from "@box/blueprint-web";
|
|
5
|
+
import { SharedLinkSettings as I } from "./shared-link-settings.js";
|
|
6
6
|
import t from "./messages.js";
|
|
7
|
-
import { jsx as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { ClassificationStatus as P } from "../classification-status/classification-status.js";
|
|
9
|
+
import { useUnifiedShareModalContext as j } from "../../contexts/unified-share-modal-context.js";
|
|
10
|
+
import { useSharedLinkSettingsContext as z } from "../../contexts/shared-link-settings-context.js";
|
|
11
|
+
import '../../../../styles/shared-link-settings-modal.css';const U = "_content_1bhek_1", A = "_isFullscreen_1bhek_4", E = "_body_1bhek_13", H = "_header_1bhek_17", q = "_form_1bhek_34", G = "_isLoading_1bhek_41", J = "_loading_1bhek_45", K = "_divider_1bhek_53", o = {
|
|
12
|
+
content: U,
|
|
13
|
+
isFullscreen: A,
|
|
14
|
+
body: E,
|
|
15
|
+
header: H,
|
|
16
|
+
form: q,
|
|
17
|
+
isLoading: G,
|
|
18
|
+
loading: J,
|
|
19
|
+
divider: K
|
|
18
20
|
};
|
|
19
|
-
function
|
|
20
|
-
isOpen:
|
|
21
|
+
function ee({
|
|
22
|
+
isOpen: a,
|
|
21
23
|
onOpenChange: m
|
|
22
24
|
}) {
|
|
23
25
|
const {
|
|
24
26
|
formatMessage: n
|
|
25
|
-
} =
|
|
27
|
+
} = D(), {
|
|
26
28
|
eventService: _,
|
|
27
|
-
isFetching:
|
|
29
|
+
isFetching: b,
|
|
28
30
|
isSubmitting: L,
|
|
29
31
|
variant: S
|
|
30
|
-
} =
|
|
31
|
-
onSharedLinkSettingsClose:
|
|
32
|
+
} = j(), {
|
|
33
|
+
onSharedLinkSettingsClose: h,
|
|
32
34
|
onSharedLinkSettingsLoad: r
|
|
33
35
|
} = _, l = S === "desktop", {
|
|
34
|
-
isUpdating:
|
|
35
|
-
resetForm:
|
|
36
|
+
isUpdating: k,
|
|
37
|
+
resetForm: g,
|
|
36
38
|
submitForm: p
|
|
37
|
-
} =
|
|
38
|
-
|
|
39
|
-
(async () => r && (
|
|
40
|
-
}, [
|
|
41
|
-
const
|
|
42
|
-
|
|
39
|
+
} = z(), [v, F] = N(!!r);
|
|
40
|
+
x(() => {
|
|
41
|
+
(async () => r && (a && await r(), F(!a)))();
|
|
42
|
+
}, [a, r]);
|
|
43
|
+
const f = () => {
|
|
44
|
+
g(), h && h(), m(!1);
|
|
43
45
|
}, y = async () => {
|
|
44
|
-
await p() || (
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
await p() || (g(), m(!1));
|
|
47
|
+
}, C = (B) => {
|
|
48
|
+
B.preventDefault();
|
|
49
|
+
}, c = b || v, u = L || k;
|
|
50
|
+
return /* @__PURE__ */ e(i, {
|
|
51
|
+
onOpenChange: f,
|
|
52
|
+
open: a,
|
|
53
|
+
children: /* @__PURE__ */ s(i.Content, {
|
|
54
|
+
className: d(o.content, l && o.isFullscreen),
|
|
55
|
+
onPointerDownOutside: C,
|
|
51
56
|
size: "medium",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
children: [/* @__PURE__ */ s(i.Header, {
|
|
58
|
+
className: o.header,
|
|
59
|
+
children: [n(t.title), /* @__PURE__ */ e(P, {})]
|
|
60
|
+
}), /* @__PURE__ */ s("div", {
|
|
61
|
+
className: d(o.form),
|
|
62
|
+
children: [c && /* @__PURE__ */ e("div", {
|
|
63
|
+
className: o.loading,
|
|
64
|
+
children: /* @__PURE__ */ e(M, {
|
|
59
65
|
"aria-label": n(t.loadingLabel),
|
|
60
66
|
size: "large"
|
|
61
67
|
})
|
|
62
|
-
}), /* @__PURE__ */
|
|
63
|
-
className:
|
|
64
|
-
children: [l && /* @__PURE__ */
|
|
65
|
-
className:
|
|
66
|
-
}), /* @__PURE__ */
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
-
className:
|
|
69
|
-
children: [/* @__PURE__ */
|
|
70
|
-
disabled:
|
|
71
|
-
onClick:
|
|
68
|
+
}), /* @__PURE__ */ s(i.Body, {
|
|
69
|
+
className: d(o.body, c && o.isLoading),
|
|
70
|
+
children: [l && /* @__PURE__ */ e(w, {
|
|
71
|
+
className: o.divider
|
|
72
|
+
}), /* @__PURE__ */ e(I, {})]
|
|
73
|
+
}), /* @__PURE__ */ s(i.Footer, {
|
|
74
|
+
className: d(c && o.isLoading),
|
|
75
|
+
children: [/* @__PURE__ */ e(i.Footer.SecondaryButton, {
|
|
76
|
+
disabled: u,
|
|
77
|
+
onClick: f,
|
|
72
78
|
children: n(t.cancelButton)
|
|
73
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ e(i.Footer.PrimaryButton, {
|
|
74
80
|
id: "usm-SharedLinkSettingsModal-primaryButton",
|
|
75
|
-
loading:
|
|
81
|
+
loading: u,
|
|
76
82
|
loadingAriaLabel: n(t.loadingLabel),
|
|
77
83
|
onClick: y,
|
|
78
84
|
children: n(t.saveButton)
|
|
79
85
|
})]
|
|
80
86
|
})]
|
|
81
|
-
}), !l && /* @__PURE__ */
|
|
87
|
+
}), !l && /* @__PURE__ */ e(i.Close, {
|
|
82
88
|
"aria-label": n(t.closeButton)
|
|
83
89
|
})]
|
|
84
90
|
})
|
|
85
91
|
});
|
|
86
92
|
}
|
|
87
93
|
export {
|
|
88
|
-
|
|
94
|
+
ee as SharedLinkSettingsModal
|
|
89
95
|
};
|
|
@@ -1,86 +1,80 @@
|
|
|
1
1
|
import a from "clsx";
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import '../../../../styles/unified-share-form-modal.css';const
|
|
13
|
-
content:
|
|
14
|
-
isFullscreen:
|
|
15
|
-
body:
|
|
16
|
-
header:
|
|
17
|
-
hasFooter:
|
|
18
|
-
loading:
|
|
19
|
-
form:
|
|
20
|
-
isLoading:
|
|
2
|
+
import { useCallback as L } from "react";
|
|
3
|
+
import { useIntl as x } from "react-intl";
|
|
4
|
+
import { Modal as n, LoadingIndicator as y } from "@box/blueprint-web";
|
|
5
|
+
import { UnifiedShareForm as N } from "./unified-share-form.js";
|
|
6
|
+
import i from "./messages.js";
|
|
7
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
8
|
+
import { CollaboratorList as D } from "./collaborator-list/collaborator-list.js";
|
|
9
|
+
import { useUnifiedShareFormContext as h } from "../../contexts/unified-share-form-context.js";
|
|
10
|
+
import { useUnifiedShareModalContext as S } from "../../contexts/unified-share-modal-context.js";
|
|
11
|
+
import { ClassificationStatus as v } from "../classification-status/classification-status.js";
|
|
12
|
+
import '../../../../styles/unified-share-form-modal.css';const M = "_content_uk5qn_1", U = "_isFullscreen_uk5qn_4", O = "_body_uk5qn_13", j = "_header_uk5qn_17", w = "_hasFooter_uk5qn_37", z = "_loading_uk5qn_41", B = "_form_uk5qn_49", I = "_isLoading_uk5qn_54", e = {
|
|
13
|
+
content: M,
|
|
14
|
+
isFullscreen: U,
|
|
15
|
+
body: O,
|
|
16
|
+
header: j,
|
|
17
|
+
hasFooter: w,
|
|
18
|
+
loading: z,
|
|
19
|
+
form: B,
|
|
20
|
+
isLoading: I
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
children:
|
|
22
|
+
function W({
|
|
23
|
+
children: l,
|
|
24
24
|
isOpen: g,
|
|
25
|
-
onOpenChange:
|
|
25
|
+
onOpenChange: m
|
|
26
26
|
}) {
|
|
27
27
|
const {
|
|
28
28
|
formatMessage: s
|
|
29
|
-
} =
|
|
30
|
-
setContainerRef:
|
|
31
|
-
setForm:
|
|
32
|
-
} =
|
|
33
|
-
isFetching:
|
|
29
|
+
} = x(), {
|
|
30
|
+
setContainerRef: p,
|
|
31
|
+
setForm: c
|
|
32
|
+
} = h(), {
|
|
33
|
+
isFetching: d,
|
|
34
34
|
item: F,
|
|
35
35
|
variant: k
|
|
36
|
-
} =
|
|
37
|
-
form:
|
|
38
|
-
} =
|
|
39
|
-
classification: r,
|
|
36
|
+
} = S(), {
|
|
37
|
+
form: f
|
|
38
|
+
} = h(), {
|
|
40
39
|
name: b
|
|
41
|
-
} = F,
|
|
42
|
-
|
|
43
|
-
}, [
|
|
44
|
-
|
|
40
|
+
} = F, u = k === "desktop", _ = f === "default", C = L((r) => {
|
|
41
|
+
c("default"), m(r);
|
|
42
|
+
}, [m, c]), q = (r) => {
|
|
43
|
+
r.preventDefault();
|
|
45
44
|
};
|
|
46
|
-
return /* @__PURE__ */ n
|
|
45
|
+
return /* @__PURE__ */ t(n, {
|
|
47
46
|
onOpenChange: C,
|
|
48
47
|
open: g,
|
|
49
|
-
children: [!!
|
|
50
|
-
children:
|
|
51
|
-
}), /* @__PURE__ */ n
|
|
52
|
-
ref:
|
|
53
|
-
className: a(e.content,
|
|
54
|
-
onPointerDownOutside:
|
|
48
|
+
children: [!!l && /* @__PURE__ */ o(n.Trigger, {
|
|
49
|
+
children: l
|
|
50
|
+
}), /* @__PURE__ */ t(n.Content, {
|
|
51
|
+
ref: p,
|
|
52
|
+
className: a(e.content, u && e.isFullscreen),
|
|
53
|
+
onPointerDownOutside: q,
|
|
55
54
|
size: "medium",
|
|
56
|
-
children: [/* @__PURE__ */ n
|
|
55
|
+
children: [/* @__PURE__ */ t(n.Header, {
|
|
57
56
|
className: e.header,
|
|
58
|
-
children: [s(
|
|
57
|
+
children: [s(i.title, {
|
|
59
58
|
itemName: b
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
text: r.name.toUpperCase()
|
|
65
|
-
})]
|
|
66
|
-
}), /* @__PURE__ */ n(t.Body, {
|
|
67
|
-
className: a(e.body, !p && e.hasFooter),
|
|
68
|
-
children: [f && /* @__PURE__ */ o("div", {
|
|
59
|
+
}), /* @__PURE__ */ o(v, {})]
|
|
60
|
+
}), /* @__PURE__ */ t(n.Body, {
|
|
61
|
+
className: a(e.body, !_ && e.hasFooter),
|
|
62
|
+
children: [d && /* @__PURE__ */ o("div", {
|
|
69
63
|
className: e.loading,
|
|
70
|
-
children: /* @__PURE__ */ o(
|
|
71
|
-
"aria-label": s(
|
|
64
|
+
children: /* @__PURE__ */ o(y, {
|
|
65
|
+
"aria-label": s(i.loadingLabel),
|
|
72
66
|
size: "large"
|
|
73
67
|
})
|
|
74
68
|
}), /* @__PURE__ */ o("div", {
|
|
75
|
-
className: a(e.form,
|
|
76
|
-
children:
|
|
69
|
+
className: a(e.form, d && e.isLoading),
|
|
70
|
+
children: f === "collaborators" ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ o(N, {})
|
|
77
71
|
})]
|
|
78
|
-
}), !
|
|
79
|
-
"aria-label": s(
|
|
72
|
+
}), !u && _ && /* @__PURE__ */ o(n.Close, {
|
|
73
|
+
"aria-label": s(i.closeButton)
|
|
80
74
|
})]
|
|
81
75
|
})]
|
|
82
76
|
});
|
|
83
77
|
}
|
|
84
78
|
export {
|
|
85
|
-
|
|
79
|
+
W as UnifiedShareFormModal
|
|
86
80
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState as h, useCallback as i } from "react";
|
|
2
2
|
import { useIntl as w } from "react-intl";
|
|
3
3
|
import a from "../messages.js";
|
|
4
|
-
import { formatTomorrowDateToCalendarDate as
|
|
5
|
-
import { isVanityNameValid as
|
|
4
|
+
import { formatTomorrowDateToCalendarDate as N } from "../utils/date.js";
|
|
5
|
+
import { isVanityNameValid as y, isEmailValid as P, doesPasswordContainMinCharacters as b, doesPasswordContainInvalidCharacter as V, doesPasswordContainMixedCase as x, doesPasswordContainLetter as l, doesPasswordContainNumber as c, doesPasswordContainSymbol as d } from "../utils/validation.js";
|
|
6
6
|
const U = () => {
|
|
7
7
|
const {
|
|
8
8
|
formatMessage: e
|
|
@@ -14,24 +14,24 @@ const U = () => {
|
|
|
14
14
|
}, []), m = i((r) => {
|
|
15
15
|
if (!r)
|
|
16
16
|
return t("expiration", e(a.expirationRequiredErrorMessage)), !0;
|
|
17
|
-
const o =
|
|
17
|
+
const o = N();
|
|
18
18
|
return r.compare(o) < 0 ? (t("expiration", e(a.expirationFutureDateErrorMessage)), !0) : !1;
|
|
19
|
-
}, [e, t]), C = i((r) => r ?
|
|
19
|
+
}, [e, t]), C = i((r) => r ? y(r) ? !1 : (t("vanityName", e(a.vanityNameInvalidErrorMessage)), !0) : (t("vanityName", e(a.vanityNameRequiredErrorMessage)), !0), [e, t]), g = i((r, o) => {
|
|
20
20
|
const n = r.filter((s) => s.chipVariant === "error");
|
|
21
|
-
return o.isJustificationAllowed && !o.justificationReason ? e(a.
|
|
21
|
+
return o.isJustificationAllowed && !o.justificationReason ? e(a.justificationRequiredErrorNotice, {
|
|
22
22
|
count: n.length
|
|
23
|
-
}) : n.length && !o.isJustificationAllowed ? e(a.
|
|
23
|
+
}) : n.length && !o.isJustificationAllowed ? e(a.restrictedContactsErrorNotice, {
|
|
24
24
|
count: n.length
|
|
25
25
|
}) : "";
|
|
26
|
-
}, [e]), v = i((r) => r.length ? !1 : (t("user-contact", e(a.emailRequiredErrorMessage)), !0), [e, t]),
|
|
26
|
+
}, [e]), v = i((r) => r.length ? !1 : (t("user-contact", e(a.emailRequiredErrorMessage)), !0), [e, t]), E = i((r, o) => r.filter((s) => s.value !== "").length <= o ? !1 : (t("user-contact", e(a.contactsLimitErrorMessage, {
|
|
27
27
|
maxContacts: o
|
|
28
|
-
})), !0), [e, t]), M = i((r) => r === "" ? !0 : P(r) ? !1 : (t("user-contact", e(a.invalidEmailErrorMessage)), !0), [e, t]), p = i((r) => b(r) ?
|
|
28
|
+
})), !0), [e, t]), M = i((r) => r === "" ? !0 : P(r) ? !1 : (t("user-contact", e(a.invalidEmailErrorMessage)), !0), [e, t]), p = i((r) => b(r) ? V(r) ? (t("password", e(a.passwordContainInvalidCharacterErrorMessage)), !0) : !x(r) && !(l(r) && c(r)) && !(l(r) && d(r)) && !(c(r) && d(r)) ? (t("password", e(a.passwordContainLetterNumberOrSymbolErrorMessage)), !0) : !1 : (t("password", e(a.passwordContainMinCharactersErrorMessage)), !0), [e, t]);
|
|
29
29
|
return {
|
|
30
30
|
errors: f,
|
|
31
|
-
validateCollaborationLimit:
|
|
31
|
+
validateCollaborationLimit: E,
|
|
32
32
|
validateExpiration: m,
|
|
33
33
|
validatePassword: p,
|
|
34
|
-
validateShieldRestriction:
|
|
34
|
+
validateShieldRestriction: g,
|
|
35
35
|
validateVanityName: C,
|
|
36
36
|
validateUserContact: M,
|
|
37
37
|
validateUserSelector: v,
|
package/dist/esm/lib/messages.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { defineMessages as e } from "react-intl";
|
|
2
2
|
const a = e({
|
|
3
|
-
contactsExceedLimitError: {
|
|
4
|
-
id: "groupSharedFeatures.usm.contactsExceedLimitError",
|
|
5
|
-
defaultMessage: "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."
|
|
6
|
-
},
|
|
7
3
|
noticeCloseLabel: {
|
|
8
4
|
id: "groupSharedFeatures.usm.noticeCloseLabel",
|
|
9
5
|
defaultMessage: "Close"
|
|
@@ -80,6 +76,10 @@ const a = e({
|
|
|
80
76
|
id: "groupSharedFeatures.usm.emailRequiredErrorMessage",
|
|
81
77
|
defaultMessage: "Enter at least one valid email"
|
|
82
78
|
},
|
|
79
|
+
contactsLimitErrorMessage: {
|
|
80
|
+
id: "groupSharedFeatures.usm.contactsLimitErrorMessage",
|
|
81
|
+
defaultMessage: "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."
|
|
82
|
+
},
|
|
83
83
|
passwordRequiredErrorMessage: {
|
|
84
84
|
id: "groupSharedFeatures.usm.passwordRequiredErrorMessage",
|
|
85
85
|
defaultMessage: "Please enter a password"
|
|
@@ -96,12 +96,12 @@ const a = e({
|
|
|
96
96
|
id: "groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage",
|
|
97
97
|
defaultMessage: "Password must contain at least one upper case letter, number, or special character"
|
|
98
98
|
},
|
|
99
|
-
|
|
100
|
-
id: "groupSharedFeatures.usm.
|
|
99
|
+
justificationRequiredErrorNotice: {
|
|
100
|
+
id: "groupSharedFeatures.usm.justificationRequiredErrorNotice",
|
|
101
101
|
defaultMessage: "Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."
|
|
102
102
|
},
|
|
103
|
-
|
|
104
|
-
id: "groupSharedFeatures.usm.
|
|
103
|
+
restrictedContactsErrorNotice: {
|
|
104
|
+
id: "groupSharedFeatures.usm.restrictedContactsErrorNotice",
|
|
105
105
|
defaultMessage: "Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue."
|
|
106
106
|
}
|
|
107
107
|
});
|
package/dist/i18n/bn-IN.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "একটি শেয়ার করা লিঙ্ক তৈরি করা যায়নি। পরে আবার চেষ্টা করুন।",
|
|
3
|
-
"groupSharedFeatures.usm.
|
|
3
|
+
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "Definition",
|
|
4
|
+
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "Restrictions",
|
|
5
|
+
"groupSharedFeatures.usm.contactsLimitErrorMessage": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
|
|
4
6
|
"groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "একটি শেয়ার করা লিঙ্ক তৈরি করা যায়নি। অনুগ্রহ করে পরে আবার চেষ্টা করুন.",
|
|
5
7
|
"groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "শেয়ারকৃত লিঙ্ক তৈরি হয়েছে।",
|
|
6
8
|
"groupSharedFeatures.usm.defaultErrorNoticeText": "কিছু সমস্যা হয়েছে। পরে আবার চেষ্টা করুন।",
|
|
@@ -12,7 +14,7 @@ export default {
|
|
|
12
14
|
"groupSharedFeatures.usm.expirationFutureDateErrorMessage": "মেয়াদউত্তীর্ণের তারিখ অবশ্যই ভবিষ্যতে হতে হবে",
|
|
13
15
|
"groupSharedFeatures.usm.expirationRequiredErrorMessage": "অনুগ্রহ করে একটি মেয়াদউত্তীর্ণের তারিখ নির্বাচন করুন",
|
|
14
16
|
"groupSharedFeatures.usm.invalidEmailErrorMessage": "ভুল ইমেইল অ্যাড্রেস",
|
|
15
|
-
"groupSharedFeatures.usm.
|
|
17
|
+
"groupSharedFeatures.usm.justificationRequiredErrorNotice": "Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
16
18
|
"groupSharedFeatures.usm.noticeCloseLabel": "বন্ধ করুন",
|
|
17
19
|
"groupSharedFeatures.usm.passwordContainInvalidCharacterErrorMessage": "পাসওয়ার্ডে স্পেস, \"<\" বা \">\" থাকা যাবে না",
|
|
18
20
|
"groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "পাসওয়ার্ডে কমপক্ষে একটি বড় হাতের অক্ষর, সংখ্যা বা বিশেষ অক্ষর থাকতে হবে",
|
|
@@ -32,7 +34,7 @@ export default {
|
|
|
32
34
|
"groupSharedFeatures.usm.removeSharedLinkModal.loadingLabel": "লোড হচ্ছে",
|
|
33
35
|
"groupSharedFeatures.usm.removeSharedLinkModal.okayButton": "ঠিক আছে",
|
|
34
36
|
"groupSharedFeatures.usm.removeSharedLinkModal.title": "শেয়ারকৃত লিঙ্ক অপসারণ করুন",
|
|
35
|
-
"groupSharedFeatures.usm.
|
|
37
|
+
"groupSharedFeatures.usm.restrictedContactsErrorNotice": "Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
36
38
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton": "বাতিল করুন",
|
|
37
39
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton": "বন্ধ করুন",
|
|
38
40
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification": "শ্রেণিবদ্ধকরণের কারণে বিষয়বস্তুর জন্য ডাউনলোড অক্ষম করা হয়েছে।",
|
|
@@ -159,5 +161,8 @@ export default {
|
|
|
159
161
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "শেয়ারকৃত লিঙ্ক সেটিংস সফলভাবে সেভ করা হয়েছে।",
|
|
160
162
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "কাস্টম URL অবশ্যই 12-30 অক্ষরের মধ্যে হতে হবে এবং অক্ষর, সংখ্যা এবং হাইফেন অন্তর্ভুক্ত করতে পারে",
|
|
161
163
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "অনুগ্রহ করে একটি কাস্টম URL লিখুন",
|
|
164
|
+
"groupSharedFeatures.usm.contactsExceedLimitError": "ওহো! একবারে সর্বাধিক যত সংখ্যক সহযোগীদের যোগ করা যাবে তা হল {maxContacts} জন সহযোগী। আপনার আমন্ত্রণ ব্যাচের মধ্যে বিভক্ত করে দিয়ে দয়া করে আবার চেষ্টা করুন।",
|
|
165
|
+
"groupSharedFeatures.usm.justificationRequiredError": "অনুগ্রহ করে একটি যুক্তি নির্বাচন করুন বা অবিরত রাখতে {count,plural,one{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী} other{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী}} পরিষ্কার করুন।",
|
|
166
|
+
"groupSharedFeatures.usm.restrictedContactsError": "অবিরত রাখতে অনুগ্রহ করে {count,plural,one{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী} other{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী}} মুছে ফেলুন।",
|
|
162
167
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.subtitle": "এই বিষয়বস্তুটি লিঙ্ক সহ আপনার সংস্থার যে কারোর কাছে উপলভ্য এবং দেখা বা ডাউনলোড করা যেতে পারে। {learnSharedLinkSettingsLink}"
|
|
163
168
|
}
|
package/dist/i18n/da-DK.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Kunne ikke oprette et delt link. Prøv venligst igen senere.",
|
|
3
|
-
"groupSharedFeatures.usm.
|
|
3
|
+
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "Definition",
|
|
4
|
+
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "Restrictions",
|
|
5
|
+
"groupSharedFeatures.usm.contactsLimitErrorMessage": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
|
|
4
6
|
"groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "Kunne ikke oprette et delt link. Prøv venligst igen senere.",
|
|
5
7
|
"groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "Delt link blev oprettet.",
|
|
6
8
|
"groupSharedFeatures.usm.defaultErrorNoticeText": "Noget gik galt. Prøv venligst igen senere.",
|
|
@@ -12,7 +14,7 @@ export default {
|
|
|
12
14
|
"groupSharedFeatures.usm.expirationFutureDateErrorMessage": "Udløbsdatoen skal være i fremtiden",
|
|
13
15
|
"groupSharedFeatures.usm.expirationRequiredErrorMessage": "Vælg venligst en udløbsdato",
|
|
14
16
|
"groupSharedFeatures.usm.invalidEmailErrorMessage": "Ugyldig e-mailadresse",
|
|
15
|
-
"groupSharedFeatures.usm.
|
|
17
|
+
"groupSharedFeatures.usm.justificationRequiredErrorNotice": "Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
16
18
|
"groupSharedFeatures.usm.noticeCloseLabel": "Luk",
|
|
17
19
|
"groupSharedFeatures.usm.passwordContainInvalidCharacterErrorMessage": "Adgangskoden må ikke indeholde et mellemrum, \"<\" eller \">\"",
|
|
18
20
|
"groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "Adgangskoden skal indeholde mindst ét stort bogstav, tal eller specialtegn",
|
|
@@ -32,7 +34,7 @@ export default {
|
|
|
32
34
|
"groupSharedFeatures.usm.removeSharedLinkModal.loadingLabel": "Indlæser",
|
|
33
35
|
"groupSharedFeatures.usm.removeSharedLinkModal.okayButton": "Okay",
|
|
34
36
|
"groupSharedFeatures.usm.removeSharedLinkModal.title": "Fjern delt link",
|
|
35
|
-
"groupSharedFeatures.usm.
|
|
37
|
+
"groupSharedFeatures.usm.restrictedContactsErrorNotice": "Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
36
38
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton": "Annuller",
|
|
37
39
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton": "Luk",
|
|
38
40
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification": "Download er blevet deaktiveret for indhold på grund af klassificeringen.",
|
|
@@ -159,5 +161,8 @@ export default {
|
|
|
159
161
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Indstillingerne for det delte link blev gemt med succes.",
|
|
160
162
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Brugerdefinerede URL'er skal være mellem 12-30 tegn og kan indeholde bogstaver, tal og bindestreger",
|
|
161
163
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Indtast venligst en tilpasset URL",
|
|
164
|
+
"groupSharedFeatures.usm.contactsExceedLimitError": "Hovsa! Det maksimale antal samarbejdspartnere, der kan tilføjes på én gang, er {maxContacts} samarbejdspartnere. Prøv igen ved at opdele dine invitationer i grupper.",
|
|
165
|
+
"groupSharedFeatures.usm.justificationRequiredError": "Vælg en begrundelse, eller fjern {count,plural,one{{count} begrænset bruger} other{{count} begrænsede brugere}} for at fortsætte.",
|
|
166
|
+
"groupSharedFeatures.usm.restrictedContactsError": "Fjern venligst {count,plural,one{{count} begrænset bruger} other{{count} begrænsede brugere}} for at fortsætte.",
|
|
162
167
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.subtitle": "Dette indhold er tilgængeligt for alle i din virksomhed med linket og kan ses eller downloades. {learnSharedLinkSettingsLink}"
|
|
163
168
|
}
|
package/dist/i18n/de-DE.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "Ein Freigabe-Link kann nicht erzeugt werden. Versuchen Sie es bitte später noch einmal.",
|
|
3
|
-
"groupSharedFeatures.usm.
|
|
3
|
+
"groupSharedFeatures.usm.classificationStatus.definitionLabel": "Definition",
|
|
4
|
+
"groupSharedFeatures.usm.classificationStatus.restrictionsLabel": "Restrictions",
|
|
5
|
+
"groupSharedFeatures.usm.contactsLimitErrorMessage": "Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.",
|
|
4
6
|
"groupSharedFeatures.usm.createSharedLinkErrorNoticeText": "Ein Freigabe-Link kann nicht erstellt werden. Versuchen Sie es bitte später noch einmal.",
|
|
5
7
|
"groupSharedFeatures.usm.createSharedLinkSuccessNoticeText": "Freigabe-Link generiert.",
|
|
6
8
|
"groupSharedFeatures.usm.defaultErrorNoticeText": "Es ist ein Fehler aufgetreten. Versuchen Sie es bitte später noch einmal.",
|
|
@@ -12,7 +14,7 @@ export default {
|
|
|
12
14
|
"groupSharedFeatures.usm.expirationFutureDateErrorMessage": "Das Ablaufdatum muss in der Zukunft liegen",
|
|
13
15
|
"groupSharedFeatures.usm.expirationRequiredErrorMessage": "Wählen Sie bitte ein Ablaufdatum aus",
|
|
14
16
|
"groupSharedFeatures.usm.invalidEmailErrorMessage": "Ungültige E-Mail-Adresse",
|
|
15
|
-
"groupSharedFeatures.usm.
|
|
17
|
+
"groupSharedFeatures.usm.justificationRequiredErrorNotice": "Please select a justification or remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
16
18
|
"groupSharedFeatures.usm.noticeCloseLabel": "Schließen",
|
|
17
19
|
"groupSharedFeatures.usm.passwordContainInvalidCharacterErrorMessage": "Das Kennwort darf kein Leerzeichen, „<“ oder „>“ enthalten",
|
|
18
20
|
"groupSharedFeatures.usm.passwordContainLetterNumberOrSymbolErrorMessage": "Das Kennwort muss mindestens einen Großbuchstaben, eine Zahl oder ein Sonderzeichen enthalten",
|
|
@@ -32,7 +34,7 @@ export default {
|
|
|
32
34
|
"groupSharedFeatures.usm.removeSharedLinkModal.loadingLabel": "Laden",
|
|
33
35
|
"groupSharedFeatures.usm.removeSharedLinkModal.okayButton": "OK",
|
|
34
36
|
"groupSharedFeatures.usm.removeSharedLinkModal.title": "Freigabe-Link entfernen",
|
|
35
|
-
"groupSharedFeatures.usm.
|
|
37
|
+
"groupSharedFeatures.usm.restrictedContactsErrorNotice": "Please remove the {count, plural, one {{count} restricted user} other {{count} restricted users}} to continue.",
|
|
36
38
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.cancelButton": "Abbrechen",
|
|
37
39
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.closeButton": "Schließen",
|
|
38
40
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.directLinkBlockedByAccessPolicyWithClassification": "Der Download der Inhalte wurde aufgrund der Klassifizierung deaktiviert.",
|
|
@@ -159,5 +161,8 @@ export default {
|
|
|
159
161
|
"groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText": "Die Einstellungen des Freigabe-Links wurden erfolgreich gespeichert.",
|
|
160
162
|
"groupSharedFeatures.usm.vanityNameInvalidErrorMessage": "Benutzerdefinierte URLs müssen zwischen 12 und 30 Zeichen lang sein und können Buchstaben, Ziffern und Bindestriche enthalten",
|
|
161
163
|
"groupSharedFeatures.usm.vanityNameRequiredErrorMessage": "Bitte geben Sie eine benutzerdefinierte URL ein",
|
|
164
|
+
"groupSharedFeatures.usm.contactsExceedLimitError": "Hoppla! Die maximale Anzahl an Mitwirkenden, die gleichzeitig hinzugefügt werden können, beträgt {maxContacts} Mitwirkende. Versuchen Sie es erneut, indem Sie Ihre Einladungen in Stapel aufteilen.",
|
|
165
|
+
"groupSharedFeatures.usm.justificationRequiredError": "Bitte wählen Sie eine Begründung aus oder entfernen Sie, {count,plural,one{{count} eingeschränkter Benutzer} other{{count} eingeschränkte Benutzer}} um fortzufahren.",
|
|
166
|
+
"groupSharedFeatures.usm.restrictedContactsError": "Bitte entfernen Sie die {count,plural,one{{count} eingeschränkter Benutzer} other{{count} eingeschränkte Benutzer}} um fortzufahren.",
|
|
162
167
|
"groupSharedFeatures.usm.sharedLinkSettingsModal.subtitle": "Dieser Inhalt ist für jeden in Ihrem Unternehmen mit dem Link verfügbar und kann angezeigt oder heruntergeladen werden. {learnSharedLinkSettingsLink}"
|
|
163
168
|
}
|