@box/unified-share-modal 2.12.1 → 2.12.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.
@@ -1,5 +1,5 @@
1
1
  import { useIntl as u } from "react-intl";
2
- import { CardTooltipV2 as _, Status as l, Text as e } from "@box/blueprint-web";
2
+ import { CardTooltip as _, Status as l, Text as e } from "@box/blueprint-web";
3
3
  import { Shield as d } from "@box/blueprint-web-assets/icons/Line";
4
4
  import h from "./messages.js";
5
5
  import { jsx as t, jsxs as o } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { useRef as G, useCallback as I, useEffect as V } from "react";
1
+ import { useRef as G, useCallback as w, useEffect as V } from "react";
2
2
  import { useIntl as q } from "react-intl";
3
3
  import { useNotification as H, Text as y, Tooltip as C, Focusable as J, Switch as Q, Status as W, Link as X, Button as Y } from "@box/blueprint-web";
4
4
  import { ClockBadge as Z } from "@box/blueprint-web-assets/icons/Line";
@@ -23,7 +23,7 @@ import '../../../../../styles/shared-link-section.css';const de = "_container_j9
23
23
  access: pe,
24
24
  icon: ge
25
25
  };
26
- function Ie() {
26
+ function we() {
27
27
  const {
28
28
  formatMessage: e
29
29
  } = q(), {
@@ -53,7 +53,7 @@ function Ie() {
53
53
  notifications: E,
54
54
  sharedLinkAutoCopy: R,
55
55
  sharedLinkAutoCreate: D
56
- } = s, a = !!r.url, c = R && !m.current && !L, j = D && !n.current && !L, U = I(async () => {
56
+ } = s, a = !!r.url, c = R && !m.current && !L, I = D && !n.current && !L, U = w(async () => {
57
57
  const d = await N();
58
58
  return c ? {
59
59
  messages: []
@@ -62,9 +62,9 @@ function Ie() {
62
62
  onAction: b
63
63
  } = re(U, "create-shared-link");
64
64
  V(() => {
65
- (async () => x || o || ((c || j) && !a && !n.current && (n.current = !0, await b()), c && a && f.current && f.current.click()))();
66
- }, [a, c, j, x, m, n, o, b]);
67
- const z = I((d) => {
65
+ (async () => x || o || ((c || I) && !a && !n.current && (n.current = !0, await b()), c && a && f.current && f.current.click()))();
66
+ }, [a, c, I, x, m, n, o, b]);
67
+ const z = w((d) => {
68
68
  if (S && S(d), !c)
69
69
  return;
70
70
  m.current = !0;
@@ -79,7 +79,7 @@ function Ie() {
79
79
  return;
80
80
  }
81
81
  T("remove-shared-link");
82
- }, w = () => {
82
+ }, j = () => {
83
83
  if (A) {
84
84
  A();
85
85
  return;
@@ -127,8 +127,8 @@ function Ie() {
127
127
  "aria-haspopup": "dialog",
128
128
  className: l.settings,
129
129
  "data-target-id": "PlainButton-SharedLinkSettings",
130
- onClick: w,
131
- onKeyDown: le(w, {
130
+ onClick: j,
131
+ onKeyDown: le(j, {
132
132
  canPreventDefault: !0
133
133
  }),
134
134
  role: "button",
@@ -154,7 +154,7 @@ function Ie() {
154
154
  "aria-label": e(t.sharedLinkEmailLabel),
155
155
  "data-target-id": "Button-SendSharedLink",
156
156
  disabled: o,
157
- icon: $,
157
+ endIcon: $,
158
158
  onClick: () => B("email"),
159
159
  size: "large",
160
160
  variant: "secondary"
@@ -187,5 +187,5 @@ function Ie() {
187
187
  });
188
188
  }
189
189
  export {
190
- Ie as SharedLinkSection
190
+ we as SharedLinkSection
191
191
  };
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^13.19.0",
7
- "@box/blueprint-web-assets": "^4.111.14",
8
- "@box/copy-input": "^1.40.18",
9
- "@box/user-selector": "^1.74.19",
6
+ "@box/blueprint-web": "^14.0.0",
7
+ "@box/blueprint-web-assets": "^4.111.15",
8
+ "@box/copy-input": "^1.40.19",
9
+ "@box/user-selector": "^1.74.20",
10
10
  "lodash": "^4.17.15",
11
11
  "react": "^18.0.0",
12
12
  "react-dom": "^18.0.0",
13
13
  "react-intl": "^6.4.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@box/blueprint-web": "^13.19.0",
17
- "@box/blueprint-web-assets": "^4.111.14",
18
- "@box/copy-input": "^1.40.18",
19
- "@box/eslint-plugin-blueprint": "1.1.7",
20
- "@box/storybook-utils": "0.17.14",
16
+ "@box/blueprint-web": "^14.0.0",
17
+ "@box/blueprint-web-assets": "^4.111.15",
18
+ "@box/copy-input": "^1.40.19",
19
+ "@box/eslint-plugin-blueprint": "1.1.8",
20
+ "@box/storybook-utils": "0.17.15",
21
21
  "react-intl": "^6.4.2"
22
22
  },
23
23
  "publishConfig": {