@box/unified-share-modal 1.6.0 → 1.6.2

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.
@@ -12,7 +12,7 @@ import { jsxs as u, jsx as o, Fragment as ce } from "react/jsx-runtime";
12
12
  import { useCollaborationForm as me } from "../../../hooks/use-collaboration-form.js";
13
13
  import { useUnifiedShareFormContext as ue } from "../../../contexts/unified-share-form-context.js";
14
14
  import { useUnifiedShareModalContext as de } from "../../../contexts/unified-share-modal-context.js";
15
- import '../../../../../styles/collaboration-section.css';const fe = "_container_19jv3_1", be = "_label_19jv3_7", B = {
15
+ import '../../../../../styles/collaboration-section.css';const fe = "_container_1o05j_2", be = "_label_1o05j_8", B = {
16
16
  container: fe,
17
17
  label: be
18
18
  };
@@ -1,34 +1,34 @@
1
1
  import { useIntl as p } from "react-intl";
2
- import { Text as v, Avatar as x } from "@box/blueprint-web";
3
- import { Gray10 as b } from "@box/blueprint-web-assets/tokens/tokens";
2
+ import { Text as v, Avatar as b } from "@box/blueprint-web";
3
+ import { Gray10 as x } from "@box/blueprint-web-assets/tokens/tokens";
4
4
  import { CollaboratorAvatar as g } from "../collaborators-view/collaborator-avatar.js";
5
5
  import A from "./messages.js";
6
6
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
7
7
  import { callOnKeyboardEvent as _ } from "../../../utils/event.js";
8
8
  import { useUnifiedShareModalContext as C } from "../../../contexts/unified-share-modal-context.js";
9
9
  import { useUnifiedShareFormContext as S } from "../../../contexts/unified-share-form-context.js";
10
- import '../../../../../styles/shared-with-avatars.css';const y = "_container_ixnh3_1", I = "_avatars_ixnh3_18", l = {
10
+ import '../../../../../styles/shared-with-avatars.css';const y = "_container_1ku5s_2", I = "_avatars_1ku5s_19", l = {
11
11
  container: y,
12
12
  avatars: I
13
13
  }, c = 3;
14
- function K() {
14
+ function z() {
15
15
  const {
16
16
  formatMessage: m
17
17
  } = p(), {
18
18
  collaborators: d,
19
- currentUser: h,
19
+ currentUser: f,
20
20
  isSubmitting: o
21
21
  } = C(), {
22
22
  onShareViewChange: a
23
23
  } = S(), {
24
- id: n
25
- } = h, t = d.filter(({
24
+ id: s
25
+ } = f, t = d.filter(({
26
26
  isCurrentUser: r,
27
27
  userId: u
28
- }) => !(r || n && n === u));
28
+ }) => !(r || s && s === u));
29
29
  if (!t.length)
30
30
  return null;
31
- const f = t.slice(0, c), s = t.length - c;
31
+ const h = t.slice(0, c), n = t.length - c;
32
32
  return /* @__PURE__ */ i("div", {
33
33
  "aria-disabled": o,
34
34
  className: l.container,
@@ -42,17 +42,17 @@ function K() {
42
42
  children: m(A.sharedWithLabel)
43
43
  }), /* @__PURE__ */ i("div", {
44
44
  className: l.avatars,
45
- children: [f.map((r) => /* @__PURE__ */ e(g, {
45
+ children: [h.map((r) => /* @__PURE__ */ e(g, {
46
46
  collaborator: r,
47
47
  size: "medium"
48
- }, r.id)), s > 0 && /* @__PURE__ */ e(x, {
49
- color: b,
48
+ }, r.id)), n > 0 && /* @__PURE__ */ e(b, {
49
+ color: x,
50
50
  size: "medium",
51
- text: `+${s}`
51
+ text: `+${n}`
52
52
  })]
53
53
  })]
54
54
  });
55
55
  }
56
56
  export {
57
- K as SharedWithAvatars
57
+ z as SharedWithAvatars
58
58
  };
@@ -1 +1 @@
1
- ._container_19jv3_1{display:flex;flex-direction:column;gap:var(--space-4)}._label_19jv3_7{font-weight:var(--body-default-bold-font-weight);font-size:var(--body-default-bold-font-size);font-family:var(--body-default-bold-font-family);line-height:var(--body-default-bold-line-height);letter-spacing:var(--body-default-bold-letter-spacing);text-transform:var(--body-default-bold-text-case);text-decoration:var(--body-default-bold-text-decoration);display:block;margin-block-end:var(--space-2);padding:var(--space-1) 0;color:var(--text-text-on-light);overflow-wrap:break-word}
1
+ ._container_1o05j_2{display:flex;flex-direction:column;gap:var(--space-4)}._label_1o05j_8{font-weight:var(--body-default-bold-font-weight);font-size:var(--body-default-bold-font-size);font-family:var(--body-default-bold-font-family);line-height:var(--body-default-bold-line-height);letter-spacing:var(--body-default-bold-letter-spacing);text-transform:var(--body-default-bold-text-case);text-decoration:var(--body-default-bold-text-decoration);display:block;margin-block-end:var(--space-2);padding:var(--space-1) 0;color:var(--text-text-on-light);overflow-wrap:break-word}
@@ -1 +1 @@
1
- ._container_ixnh3_1{display:flex;gap:var(--space-2);align-items:center;float:right;border-radius:var(--radius-2);outline:none;cursor:pointer}._container_ixnh3_1[aria-disabled=true]{opacity:.3;pointer-events:none}._container_ixnh3_1:focus-visible{box-shadow:0 0 0 var(--border-1, 1px) var(--background-background),0 0 0 var(--border-3) var(--outline-focus-on-light)}._avatars_ixnh3_18{display:flex;gap:var(--space-1);align-items:center}
1
+ ._container_1ku5s_2{display:flex;gap:var(--space-2);align-items:center;float:right;border-radius:var(--radius-2);outline:none;cursor:pointer}._container_1ku5s_2[aria-disabled=true]{opacity:.3;pointer-events:none}._container_1ku5s_2:focus-visible{box-shadow:0 0 0 var(--border-1, 1px) var(--background-background),0 0 0 var(--border-3) var(--outline-focus-on-light)}._avatars_1ku5s_19{display:flex;gap:var(--space-1);align-items:center}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^9.18.13",
@@ -13,10 +13,10 @@
13
13
  "react-intl": "^6.4.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@box/blueprint-web": "^12.92.0",
17
- "@box/blueprint-web-assets": "^4.76.0",
18
- "@box/copy-input": "^1.5.0",
19
- "@box/storybook-utils": "0.14.12",
16
+ "@box/blueprint-web": "^12.92.2",
17
+ "@box/blueprint-web-assets": "^4.76.2",
18
+ "@box/copy-input": "^1.5.2",
19
+ "@box/storybook-utils": "0.14.13",
20
20
  "@box/eslint-plugin-blueprint": "1.0.5",
21
21
  "react-intl": "^6.4.2"
22
22
  },