@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.
Files changed (45) hide show
  1. package/dist/esm/lib/components/classification-status/classification-status.js +76 -0
  2. package/dist/esm/lib/components/classification-status/index.js +4 -0
  3. package/dist/esm/lib/components/classification-status/messages.js +14 -0
  4. package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +64 -58
  5. package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +54 -60
  6. package/dist/esm/lib/hooks/use-form-validation.js +10 -10
  7. package/dist/esm/lib/messages.js +8 -8
  8. package/dist/i18n/bn-IN.js +8 -3
  9. package/dist/i18n/da-DK.js +8 -3
  10. package/dist/i18n/de-DE.js +8 -3
  11. package/dist/i18n/en-AU.js +8 -3
  12. package/dist/i18n/en-CA.js +8 -3
  13. package/dist/i18n/en-GB.js +8 -3
  14. package/dist/i18n/en-US.js +5 -3
  15. package/dist/i18n/en-US.properties +7 -3
  16. package/dist/i18n/en-x-pseudo.js +8 -3
  17. package/dist/i18n/es-419.js +8 -3
  18. package/dist/i18n/es-ES.js +8 -3
  19. package/dist/i18n/fi-FI.js +8 -3
  20. package/dist/i18n/fr-CA.js +8 -3
  21. package/dist/i18n/fr-FR.js +8 -3
  22. package/dist/i18n/hi-IN.js +8 -3
  23. package/dist/i18n/it-IT.js +8 -3
  24. package/dist/i18n/ja-JP.js +8 -3
  25. package/dist/i18n/json/src/lib/components/classification-status/messages.json +1 -0
  26. package/dist/i18n/json/src/lib/messages.json +1 -1
  27. package/dist/i18n/ko-KR.js +8 -3
  28. package/dist/i18n/nb-NO.js +8 -3
  29. package/dist/i18n/nl-NL.js +8 -3
  30. package/dist/i18n/pl-PL.js +8 -3
  31. package/dist/i18n/pt-BR.js +8 -3
  32. package/dist/i18n/ru-RU.js +8 -3
  33. package/dist/i18n/sv-SE.js +8 -3
  34. package/dist/i18n/tr-TR.js +8 -3
  35. package/dist/i18n/zh-CN.js +8 -3
  36. package/dist/i18n/zh-TW.js +8 -3
  37. package/dist/styles/classification-status.css +1 -0
  38. package/dist/styles/shared-link-settings-modal.css +1 -1
  39. package/dist/styles/unified-share-form-modal.css +1 -1
  40. package/dist/types/lib/components/classification-status/classification-status.d.ts +1 -0
  41. package/dist/types/lib/components/classification-status/index.d.ts +1 -0
  42. package/dist/types/lib/components/classification-status/messages.d.ts +13 -0
  43. package/dist/types/lib/messages.d.ts +7 -7
  44. package/dist/types/lib/stories/shared.d.ts +1 -0
  45. 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,4 @@
1
+ import { ClassificationStatus as i } from "./classification-status.js";
2
+ export {
3
+ i as ClassificationStatus
4
+ };
@@ -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 a from "clsx";
2
- import { useState as k, useEffect as C } from "react";
3
- import { useIntl as B } from "react-intl";
4
- import { Modal as i, LoadingIndicator as N, Divider as M } from "@box/blueprint-web";
5
- import { SharedLinkSettings as D } from "./shared-link-settings.js";
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 o, jsxs as d } from "react/jsx-runtime";
8
- import { useUnifiedShareModalContext as I } from "../../contexts/unified-share-modal-context.js";
9
- import { useSharedLinkSettingsContext as j } from "../../contexts/shared-link-settings-context.js";
10
- import '../../../../styles/shared-link-settings-modal.css';const w = "_content_4rxb5_1", z = "_isFullscreen_4rxb5_4", U = "_body_4rxb5_13", A = "_form_4rxb5_27", E = "_isLoading_4rxb5_34", H = "_loading_4rxb5_38", P = "_divider_4rxb5_46", e = {
11
- content: w,
12
- isFullscreen: z,
13
- body: U,
14
- form: A,
15
- isLoading: E,
16
- loading: H,
17
- divider: P
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 X({
20
- isOpen: s,
21
+ function ee({
22
+ isOpen: a,
21
23
  onOpenChange: m
22
24
  }) {
23
25
  const {
24
26
  formatMessage: n
25
- } = B(), {
27
+ } = D(), {
26
28
  eventService: _,
27
- isFetching: h,
29
+ isFetching: b,
28
30
  isSubmitting: L,
29
31
  variant: S
30
- } = I(), {
31
- onSharedLinkSettingsClose: g,
32
+ } = j(), {
33
+ onSharedLinkSettingsClose: h,
32
34
  onSharedLinkSettingsLoad: r
33
35
  } = _, l = S === "desktop", {
34
- isUpdating: x,
35
- resetForm: f,
36
+ isUpdating: k,
37
+ resetForm: g,
36
38
  submitForm: p
37
- } = j(), [F, v] = k(!!r);
38
- C(() => {
39
- (async () => r && (s && await r(), v(!s)))();
40
- }, [s, r]);
41
- const u = () => {
42
- f(), g && g(), m(!1);
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() || (f(), m(!1));
45
- }, c = h || F, b = L || x;
46
- return /* @__PURE__ */ o(i, {
47
- onOpenChange: u,
48
- open: s,
49
- children: /* @__PURE__ */ d(i.Content, {
50
- className: a(e.content, l && e.isFullscreen),
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__ */ o(i.Header, {
53
- children: n(t.title)
54
- }), /* @__PURE__ */ d("div", {
55
- className: a(e.form),
56
- children: [c && /* @__PURE__ */ o("div", {
57
- className: e.loading,
58
- children: /* @__PURE__ */ o(N, {
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__ */ d(i.Body, {
63
- className: a(e.body, c && e.isLoading),
64
- children: [l && /* @__PURE__ */ o(M, {
65
- className: e.divider
66
- }), /* @__PURE__ */ o(D, {})]
67
- }), /* @__PURE__ */ d(i.Footer, {
68
- className: a(c && e.isLoading),
69
- children: [/* @__PURE__ */ o(i.Footer.SecondaryButton, {
70
- disabled: b,
71
- onClick: u,
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__ */ o(i.Footer.PrimaryButton, {
79
+ }), /* @__PURE__ */ e(i.Footer.PrimaryButton, {
74
80
  id: "usm-SharedLinkSettingsModal-primaryButton",
75
- loading: b,
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__ */ o(i.Close, {
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
- X as SharedLinkSettingsModal
94
+ ee as SharedLinkSettingsModal
89
95
  };
@@ -1,86 +1,80 @@
1
1
  import a from "clsx";
2
- import { useCallback as y } from "react";
3
- import { useIntl as N } from "react-intl";
4
- import { Modal as t, Status as S, LoadingIndicator as D } from "@box/blueprint-web";
5
- import { Shield as U } from "@box/blueprint-web-assets/icons/Line";
6
- import { UnifiedShareForm as v } from "./unified-share-form.js";
7
- import l from "./messages.js";
8
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
9
- import { CollaboratorList as I } from "./collaborator-list/collaborator-list.js";
10
- import { useUnifiedShareFormContext as u } from "../../contexts/unified-share-form-context.js";
11
- import { useUnifiedShareModalContext as M } from "../../contexts/unified-share-modal-context.js";
12
- import '../../../../styles/unified-share-form-modal.css';const O = "_content_lcxfk_1", P = "_isFullscreen_lcxfk_4", j = "_body_lcxfk_13", w = "_header_lcxfk_17", z = "_hasFooter_lcxfk_38", B = "_loading_lcxfk_42", H = "_form_lcxfk_50", R = "_isLoading_lcxfk_55", e = {
13
- content: O,
14
- isFullscreen: P,
15
- body: j,
16
- header: w,
17
- hasFooter: z,
18
- loading: B,
19
- form: H,
20
- isLoading: R
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 Y({
23
- children: c,
22
+ function W({
23
+ children: l,
24
24
  isOpen: g,
25
- onOpenChange: d
25
+ onOpenChange: m
26
26
  }) {
27
27
  const {
28
28
  formatMessage: s
29
- } = N(), {
30
- setContainerRef: x,
31
- setForm: m
32
- } = u(), {
33
- isFetching: f,
29
+ } = x(), {
30
+ setContainerRef: p,
31
+ setForm: c
32
+ } = h(), {
33
+ isFetching: d,
34
34
  item: F,
35
35
  variant: k
36
- } = M(), {
37
- form: _
38
- } = u(), {
39
- classification: r,
36
+ } = S(), {
37
+ form: f
38
+ } = h(), {
40
39
  name: b
41
- } = F, h = k === "desktop", p = _ === "default", C = y((i) => {
42
- m("default"), d(i);
43
- }, [d, m]), L = (i) => {
44
- i.preventDefault();
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(t, {
45
+ return /* @__PURE__ */ t(n, {
47
46
  onOpenChange: C,
48
47
  open: g,
49
- children: [!!c && /* @__PURE__ */ o(t.Trigger, {
50
- children: c
51
- }), /* @__PURE__ */ n(t.Content, {
52
- ref: x,
53
- className: a(e.content, h && e.isFullscreen),
54
- onPointerDownOutside: L,
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(t.Header, {
55
+ children: [/* @__PURE__ */ t(n.Header, {
57
56
  className: e.header,
58
- children: [s(l.title, {
57
+ children: [s(i.title, {
59
58
  itemName: b
60
- }), r && /* @__PURE__ */ o(S, {
61
- colorIndex: r.colorId + 1,
62
- icon: U,
63
- iconPosition: "left",
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(D, {
71
- "aria-label": s(l.loadingLabel),
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, f && e.isLoading),
76
- children: _ === "collaborators" ? /* @__PURE__ */ o(I, {}) : /* @__PURE__ */ o(v, {})
69
+ className: a(e.form, d && e.isLoading),
70
+ children: f === "collaborators" ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ o(N, {})
77
71
  })]
78
- }), !h && p && /* @__PURE__ */ o(t.Close, {
79
- "aria-label": s(l.closeButton)
72
+ }), !u && _ && /* @__PURE__ */ o(n.Close, {
73
+ "aria-label": s(i.closeButton)
80
74
  })]
81
75
  })]
82
76
  });
83
77
  }
84
78
  export {
85
- Y as UnifiedShareFormModal
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 y } from "../utils/date.js";
5
- import { isVanityNameValid as N, isEmailValid as P, doesPasswordContainMinCharacters as b, doesPasswordContainInvalidCharacter as x, doesPasswordContainMixedCase as V, doesPasswordContainLetter as l, doesPasswordContainNumber as c, doesPasswordContainSymbol as d } from "../utils/validation.js";
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 = y();
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 ? N(r) ? !1 : (t("vanityName", e(a.vanityNameInvalidErrorMessage)), !0) : (t("vanityName", e(a.vanityNameRequiredErrorMessage)), !0), [e, t]), E = i((r, o) => {
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.justificationRequiredError, {
21
+ return o.isJustificationAllowed && !o.justificationReason ? e(a.justificationRequiredErrorNotice, {
22
22
  count: n.length
23
- }) : n.length && !o.isJustificationAllowed ? e(a.restrictedContactsError, {
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]), g = i((r, o) => r.filter((s) => s.value !== "").length <= o ? !1 : (t("user-contact", e(a.contactsExceedLimitError, {
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) ? x(r) ? (t("password", e(a.passwordContainInvalidCharacterErrorMessage)), !0) : !V(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]);
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: g,
31
+ validateCollaborationLimit: E,
32
32
  validateExpiration: m,
33
33
  validatePassword: p,
34
- validateShieldRestriction: E,
34
+ validateShieldRestriction: g,
35
35
  validateVanityName: C,
36
36
  validateUserContact: M,
37
37
  validateUserSelector: v,
@@ -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
- justificationRequiredError: {
100
- id: "groupSharedFeatures.usm.justificationRequiredError",
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
- restrictedContactsError: {
104
- id: "groupSharedFeatures.usm.restrictedContactsError",
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
  });
@@ -1,6 +1,8 @@
1
1
  export default {
2
2
  "groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText": "একটি শেয়ার করা লিঙ্ক তৈরি করা যায়নি। পরে আবার চেষ্টা করুন।",
3
- "groupSharedFeatures.usm.contactsExceedLimitError": "ওহো! একবারে সর্বাধিক যত সংখ্যক সহযোগীদের যোগ করা যাবে তা হল {maxContacts} জন সহযোগী। আপনার আমন্ত্রণ ব্যাচের মধ্যে বিভক্ত করে দিয়ে দয়া করে আবার চেষ্টা করুন।",
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.justificationRequiredError": "অনুগ্রহ করে একটি যুক্তি নির্বাচন করুন বা অবিরত রাখতে {count,plural,one{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী} other{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী}} পরিষ্কার করুন।",
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.restrictedContactsError": "অবিরত রাখতে অনুগ্রহ করে {count,plural,one{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী} other{{count} জন বিধিনিষেধযুক্ত ব্যবহারকারী}} মুছে ফেলুন।",
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
  }
@@ -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.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.",
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.justificationRequiredError": "Vælg en begrundelse, eller fjern {count,plural,one{{count} begrænset bruger} other{{count} begrænsede brugere}} for at fortsætte.",
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.restrictedContactsError": "Fjern venligst {count,plural,one{{count} begrænset bruger} other{{count} begrænsede brugere}} for at fortsætte.",
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
  }
@@ -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.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.",
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.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.",
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.restrictedContactsError": "Bitte entfernen Sie die {count,plural,one{{count} eingeschränkter Benutzer} other{{count} eingeschränkte Benutzer}} um fortzufahren.",
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
  }