@box/unified-share-modal 2.15.26 → 2.15.28
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.
|
@@ -20,19 +20,20 @@ import '../styles/unified-share-form-modal.css';var p = {
|
|
|
20
20
|
isLoading: "_isLoading_1i180_56"
|
|
21
21
|
};
|
|
22
22
|
function m({ children: m, isOpen: h, onOpenChange: g }) {
|
|
23
|
-
let { formatMessage: _ } = c(), { isCollaboratorsOpen: v, setContainerRef: y, setForm: b } = t(), {
|
|
23
|
+
let { formatMessage: _ } = c(), { isCollaboratorsOpen: v, setContainerRef: y, setForm: b } = t(), { eventService: x, isFetching: S, isSubmitting: C, item: w, variant: T } = e(), { onCloseAutoFocus: E } = x, { form: D } = t(), { name: O } = w, k = T === "desktop", A = D === "default" && !v;
|
|
24
24
|
return /* @__PURE__ */ f(u, {
|
|
25
25
|
onOpenChange: o((e) => {
|
|
26
|
-
|
|
26
|
+
C || (b("default"), g(e));
|
|
27
27
|
}, [
|
|
28
|
-
|
|
28
|
+
C,
|
|
29
29
|
g,
|
|
30
30
|
b
|
|
31
31
|
]),
|
|
32
32
|
open: h,
|
|
33
33
|
children: [!!m && /* @__PURE__ */ d(u.Trigger, { children: m }), /* @__PURE__ */ f(u.Content, {
|
|
34
34
|
ref: y,
|
|
35
|
-
className: s(p.content,
|
|
35
|
+
className: s(p.content, k && p.isFullscreen),
|
|
36
|
+
onCloseAutoFocus: E,
|
|
36
37
|
onPointerDownOutside: (e) => {
|
|
37
38
|
e.preventDefault();
|
|
38
39
|
},
|
|
@@ -40,24 +41,24 @@ function m({ children: m, isOpen: h, onOpenChange: g }) {
|
|
|
40
41
|
children: [
|
|
41
42
|
/* @__PURE__ */ f(u.Header, { children: [/* @__PURE__ */ d("div", {
|
|
42
43
|
className: p.title,
|
|
43
|
-
children: _(r.title, { itemName:
|
|
44
|
+
children: _(r.title, { itemName: O })
|
|
44
45
|
}), /* @__PURE__ */ d(n, {})] }),
|
|
45
46
|
/* @__PURE__ */ f(u.Body, {
|
|
46
|
-
className: s(p.body, !
|
|
47
|
-
children: [
|
|
47
|
+
className: s(p.body, !A && p.hasFooter),
|
|
48
|
+
children: [S && /* @__PURE__ */ d("div", {
|
|
48
49
|
className: p.loading,
|
|
49
50
|
children: /* @__PURE__ */ d(l, {
|
|
50
51
|
"aria-label": _(r.loadingLabel),
|
|
51
52
|
size: "large"
|
|
52
53
|
})
|
|
53
54
|
}), /* @__PURE__ */ d("div", {
|
|
54
|
-
className: s(p.form,
|
|
55
|
+
className: s(p.form, S && p.isLoading),
|
|
55
56
|
children: d(v ? i : a, {})
|
|
56
57
|
})]
|
|
57
58
|
}),
|
|
58
|
-
!
|
|
59
|
+
!k && A && /* @__PURE__ */ d(u.Close, {
|
|
59
60
|
"aria-label": _(r.closeButton),
|
|
60
|
-
disabled:
|
|
61
|
+
disabled: C
|
|
61
62
|
})
|
|
62
63
|
]
|
|
63
64
|
})]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePickerProps } from '@box/blueprint-web';
|
|
1
|
+
import { DatePickerProps, ModalContentProps } from '@box/blueprint-web';
|
|
2
2
|
import { FetchedAvatarUrls, UserContactType } from '@box/user-selector';
|
|
3
3
|
/**
|
|
4
4
|
* The date value type returned from the DatePicker component.
|
|
@@ -391,6 +391,12 @@ export interface EventService {
|
|
|
391
391
|
* Called when the user opens the view for the shared link settings.
|
|
392
392
|
*/
|
|
393
393
|
onSharedLinkSettingsLoad?: () => void;
|
|
394
|
+
/**
|
|
395
|
+
* Function called when auto-focusing after the Unified Share Modal closes.
|
|
396
|
+
*
|
|
397
|
+
* The event can be prevented to customize focus restoration.
|
|
398
|
+
*/
|
|
399
|
+
onCloseAutoFocus?: ModalContentProps['onCloseAutoFocus'];
|
|
394
400
|
}
|
|
395
401
|
export interface ContactService {
|
|
396
402
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/unified-share-modal",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.28",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^14.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.120.
|
|
8
|
-
"@box/copy-input": "^1.42.
|
|
9
|
-
"@box/user-selector": "^1.76.
|
|
6
|
+
"@box/blueprint-web": "^14.38.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.120.5",
|
|
8
|
+
"@box/copy-input": "^1.42.27",
|
|
9
|
+
"@box/user-selector": "^1.76.27",
|
|
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": "^14.
|
|
17
|
-
"@box/blueprint-web-assets": "^4.120.
|
|
18
|
-
"@box/copy-input": "^1.42.
|
|
16
|
+
"@box/blueprint-web": "^14.38.0",
|
|
17
|
+
"@box/blueprint-web-assets": "^4.120.5",
|
|
18
|
+
"@box/copy-input": "^1.42.27",
|
|
19
19
|
"@box/eslint-plugin-blueprint": "1.2.4",
|
|
20
|
-
"@box/storybook-utils": "0.19.
|
|
20
|
+
"@box/storybook-utils": "0.19.20",
|
|
21
21
|
"react-intl": "^6.4.2"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|