@box/unified-share-modal 2.16.6 → 2.16.8
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,20 +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(), {
|
|
23
|
+
let { formatMessage: _ } = c(), { form: v, isCollaboratorsOpen: y, setContainerRef: b, setForm: x } = t(), { eventService: S, isFetching: C, isSubmitting: w, item: T, variant: E } = e(), { onCloseAutoFocus: D } = S, { name: O } = T, k = E === "desktop", A = v === "default" && !y;
|
|
24
24
|
return /* @__PURE__ */ f(u, {
|
|
25
25
|
onOpenChange: o((e) => {
|
|
26
|
-
|
|
26
|
+
w || (x("default"), g(e));
|
|
27
27
|
}, [
|
|
28
|
-
|
|
28
|
+
w,
|
|
29
29
|
g,
|
|
30
|
-
|
|
30
|
+
x
|
|
31
31
|
]),
|
|
32
32
|
open: h,
|
|
33
33
|
children: [!!m && /* @__PURE__ */ d(u.Trigger, { children: m }), /* @__PURE__ */ f(u.Content, {
|
|
34
|
-
ref:
|
|
34
|
+
ref: b,
|
|
35
35
|
className: s(p.content, k && p.isFullscreen),
|
|
36
|
-
onCloseAutoFocus:
|
|
36
|
+
onCloseAutoFocus: D,
|
|
37
37
|
onPointerDownOutside: (e) => {
|
|
38
38
|
e.preventDefault();
|
|
39
39
|
},
|
|
@@ -45,20 +45,20 @@ function m({ children: m, isOpen: h, onOpenChange: g }) {
|
|
|
45
45
|
}), /* @__PURE__ */ d(n, {})] }),
|
|
46
46
|
/* @__PURE__ */ f(u.Body, {
|
|
47
47
|
className: s(p.body, !A && p.hasFooter),
|
|
48
|
-
children: [
|
|
48
|
+
children: [C && /* @__PURE__ */ d("div", {
|
|
49
49
|
className: p.loading,
|
|
50
50
|
children: /* @__PURE__ */ d(l, {
|
|
51
51
|
"aria-label": _(r.loadingLabel),
|
|
52
52
|
size: "large"
|
|
53
53
|
})
|
|
54
54
|
}), /* @__PURE__ */ d("div", {
|
|
55
|
-
className: s(p.form,
|
|
56
|
-
children: d(
|
|
55
|
+
className: s(p.form, C && p.isLoading),
|
|
56
|
+
children: d(y ? i : a, {})
|
|
57
57
|
})]
|
|
58
58
|
}),
|
|
59
59
|
!k && A && /* @__PURE__ */ d(u.Close, {
|
|
60
60
|
"aria-label": _(r.closeButton),
|
|
61
|
-
disabled:
|
|
61
|
+
disabled: w
|
|
62
62
|
})
|
|
63
63
|
]
|
|
64
64
|
})]
|
|
@@ -345,6 +345,12 @@ export interface CollaborationRole {
|
|
|
345
345
|
label?: string;
|
|
346
346
|
}
|
|
347
347
|
export interface EventService {
|
|
348
|
+
/**
|
|
349
|
+
* Function called when auto-focusing after the Unified Share Modal closes.
|
|
350
|
+
*
|
|
351
|
+
* The event can be prevented to customize focus restoration.
|
|
352
|
+
*/
|
|
353
|
+
onCloseAutoFocus?: ModalContentProps['onCloseAutoFocus'];
|
|
348
354
|
/**
|
|
349
355
|
* Function to observe when the user changes the collaboration role.
|
|
350
356
|
*/
|
|
@@ -391,12 +397,6 @@ export interface EventService {
|
|
|
391
397
|
* Called when the user opens the view for the shared link settings.
|
|
392
398
|
*/
|
|
393
399
|
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'];
|
|
400
400
|
}
|
|
401
401
|
export interface ContactService {
|
|
402
402
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/unified-share-modal",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.8",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^15.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.121.
|
|
8
|
-
"@box/copy-input": "^1.43.
|
|
9
|
-
"@box/user-selector": "^1.77.
|
|
6
|
+
"@box/blueprint-web": "^15.4.0",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.121.7",
|
|
8
|
+
"@box/copy-input": "^1.43.8",
|
|
9
|
+
"@box/user-selector": "^1.77.8",
|
|
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": "^15.
|
|
17
|
-
"@box/blueprint-web-assets": "^4.121.
|
|
18
|
-
"@box/copy-input": "^1.43.
|
|
16
|
+
"@box/blueprint-web": "^15.4.0",
|
|
17
|
+
"@box/blueprint-web-assets": "^4.121.7",
|
|
18
|
+
"@box/copy-input": "^1.43.8",
|
|
19
19
|
"@box/eslint-plugin-blueprint": "1.2.4",
|
|
20
|
-
"@box/storybook-utils": "0.20.
|
|
20
|
+
"@box/storybook-utils": "0.20.7",
|
|
21
21
|
"react-intl": "^6.4.2"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|