@box/unified-share-modal 3.1.37 → 3.1.38
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.
- package/dist/chunks/classification-status.js +1 -62
- package/dist/chunks/collaboration-role.js +1 -89
- package/dist/chunks/collaboration-section.js +1 -159
- package/dist/chunks/collaborator-list-item.js +1 -61
- package/dist/chunks/collaborator-list.js +1 -74
- package/dist/chunks/remove-collaborator-modal.js +1 -61
- package/dist/chunks/remove-shared-link-modal.js +1 -56
- package/dist/chunks/shared-link-access.js +1 -65
- package/dist/chunks/shared-link-permission.js +1 -67
- package/dist/chunks/shared-link-section.js +1 -184
- package/dist/chunks/shared-link-settings-modal.js +1 -86
- package/dist/chunks/shared-with-avatars.js +1 -48
- package/dist/chunks/shield-restriction-notice.js +1 -97
- package/dist/chunks/text-area-container.js +1 -36
- package/dist/chunks/unified-share-form-modal.js +1 -67
- package/dist/chunks/unified-share-form.js +1 -23
- package/dist/esm/index.js +1 -2
- package/dist/esm/lib/components/classification-status/classification-status.js +1 -2
- package/dist/esm/lib/components/classification-status/index.js +1 -2
- package/dist/esm/lib/components/classification-status/messages.js +1 -12
- package/dist/esm/lib/components/index.js +1 -5
- package/dist/esm/lib/components/remove-collaborator-modal/index.js +1 -2
- package/dist/esm/lib/components/remove-collaborator-modal/messages.js +1 -28
- package/dist/esm/lib/components/remove-collaborator-modal/remove-collaborator-modal.js +1 -2
- package/dist/esm/lib/components/remove-shared-link-modal/index.js +1 -2
- package/dist/esm/lib/components/remove-shared-link-modal/messages.js +1 -28
- package/dist/esm/lib/components/remove-shared-link-modal/remove-shared-link-modal.js +1 -2
- package/dist/esm/lib/components/shared-link-settings-modal/download-section.js +1 -36
- package/dist/esm/lib/components/shared-link-settings-modal/expiration-section.js +1 -34
- package/dist/esm/lib/components/shared-link-settings-modal/index.js +1 -2
- package/dist/esm/lib/components/shared-link-settings-modal/messages.js +1 -140
- package/dist/esm/lib/components/shared-link-settings-modal/password-section.js +1 -33
- package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +1 -2
- package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings.js +1 -98
- package/dist/esm/lib/components/shared-link-settings-modal/vanity-section.js +1 -34
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-role.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-section.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/index.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/messages.js +1 -136
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/shared-with-avatars.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/shield-restriction-notice.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/text-area-container.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-avatar.js +1 -49
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-list-item.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-list.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/index.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/messages.js +1 -40
- package/dist/esm/lib/components/unified-share-form-modal/index.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/messages.js +1 -48
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/index.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/messages.js +1 -144
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-access.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-permission.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-section.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +1 -2
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form.js +1 -2
- package/dist/esm/lib/constants.js +1 -47
- package/dist/esm/lib/contexts/index.js +1 -4
- package/dist/esm/lib/contexts/shared-link-settings-context.js +1 -51
- package/dist/esm/lib/contexts/unified-share-form-context.js +1 -61
- package/dist/esm/lib/contexts/unified-share-modal-context.js +1 -70
- package/dist/esm/lib/hooks/index.js +1 -7
- package/dist/esm/lib/hooks/use-access-levels.js +1 -70
- package/dist/esm/lib/hooks/use-collaboration-form.js +1 -76
- package/dist/esm/lib/hooks/use-form-validation.js +1 -33
- package/dist/esm/lib/hooks/use-link-settings-form.js +1 -50
- package/dist/esm/lib/hooks/use-permission-levels.js +1 -34
- package/dist/esm/lib/hooks/use-sharing-action.js +1 -45
- package/dist/esm/lib/messages.js +1 -108
- package/dist/esm/lib/unified-share-base.js +1 -31
- package/dist/esm/lib/unified-share-modal.js +1 -44
- package/dist/esm/lib/utils/collaborator.js +1 -12
- package/dist/esm/lib/utils/date.js +1 -10
- package/dist/esm/lib/utils/email.js +1 -6
- package/dist/esm/lib/utils/event.js +1 -7
- package/dist/esm/lib/utils/form.js +1 -5
- package/dist/esm/lib/utils/index.js +1 -9
- package/dist/esm/lib/utils/notification.js +1 -20
- package/dist/esm/lib/utils/permission.js +1 -16
- package/dist/esm/lib/utils/validation.js +1 -2
- package/package.json +10 -10
|
@@ -1,34 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useIntl as t } from "react-intl";
|
|
3
|
-
import { InlineNotice as n, Switch as r, Text as i, TextInput as a } from "@box/blueprint-web";
|
|
4
|
-
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
function l({ canChange: l, error: u, isAvailable: d, isChecked: f, isDisabled: p, onChange: m, onToggle: h, vanityDomain: g, vanityName: _ }) {
|
|
6
|
-
let { formatMessage: v } = t();
|
|
7
|
-
return d ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(r.Item, {
|
|
8
|
-
checked: f,
|
|
9
|
-
disabled: p || !l,
|
|
10
|
-
label: v(e.vanityNameToggleText),
|
|
11
|
-
onCheckedChange: h,
|
|
12
|
-
value: "vanity-domain-settings"
|
|
13
|
-
}), f && /* @__PURE__ */ c(o, { children: [
|
|
14
|
-
l && /* @__PURE__ */ s(n, {
|
|
15
|
-
variant: "warning",
|
|
16
|
-
variantIconAriaLabel: v(e.warningNoticeIconAriaLabel),
|
|
17
|
-
children: v(e.vanityDomainSettingsWarningText)
|
|
18
|
-
}),
|
|
19
|
-
/* @__PURE__ */ s(a, {
|
|
20
|
-
disabled: p || !l,
|
|
21
|
-
error: u,
|
|
22
|
-
hideLabel: !0,
|
|
23
|
-
label: v(e.vanityNameInputLabel),
|
|
24
|
-
onChange: m,
|
|
25
|
-
placeholder: v(e.vanityNameInputPlaceholder),
|
|
26
|
-
value: _
|
|
27
|
-
}),
|
|
28
|
-
l && /* @__PURE__ */ s(i, {
|
|
29
|
-
as: "p",
|
|
30
|
-
children: `${g}${_}`
|
|
31
|
-
})
|
|
32
|
-
] })] }) : null;
|
|
33
|
-
}
|
|
34
|
-
export { l as VanitySection };
|
|
1
|
+
import messages from"./messages.js";import{useIntl}from"react-intl";import{InlineNotice,Switch,Text,TextInput}from"@box/blueprint-web";import{Fragment,jsx,jsxs}from"react/jsx-runtime";function VanitySection({canChange,error,isAvailable,isChecked,isDisabled,onChange,onToggle,vanityDomain,vanityName}){let{formatMessage}=useIntl();return isAvailable?jsxs(Fragment,{children:[jsx(Switch.Item,{checked:isChecked,disabled:isDisabled||!canChange,label:formatMessage(messages.vanityNameToggleText),onCheckedChange:onToggle,value:`vanity-domain-settings`}),isChecked&&jsxs(Fragment,{children:[canChange&&jsx(InlineNotice,{variant:`warning`,variantIconAriaLabel:formatMessage(messages.warningNoticeIconAriaLabel),children:formatMessage(messages.vanityDomainSettingsWarningText)}),jsx(TextInput,{disabled:isDisabled||!canChange,error,hideLabel:!0,label:formatMessage(messages.vanityNameInputLabel),onChange,placeholder:formatMessage(messages.vanityNameInputPlaceholder),value:vanityName}),canChange&&jsx(Text,{as:`p`,children:`${vanityDomain}${vanityName}`})]})]}):null}export{VanitySection};
|
package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-role.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaborationRole };
|
|
1
|
+
import{t as CollaborationRole}from"../../../../../chunks/collaboration-role.js";export{CollaborationRole};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaborationSection };
|
|
1
|
+
import{t as CollaborationSection}from"../../../../../chunks/collaboration-section.js";export{CollaborationSection};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaborationSection };
|
|
1
|
+
import{t as CollaborationSection}from"../../../../../chunks/collaboration-section.js";export{CollaborationSection};
|
|
@@ -1,136 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
var t = e({
|
|
3
|
-
cancelButton: {
|
|
4
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.cancelButton",
|
|
5
|
-
defaultMessage: "Cancel"
|
|
6
|
-
},
|
|
7
|
-
closeButton: {
|
|
8
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.closeButton",
|
|
9
|
-
defaultMessage: "Close"
|
|
10
|
-
},
|
|
11
|
-
clearButton: {
|
|
12
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.clearButton",
|
|
13
|
-
defaultMessage: "Clear"
|
|
14
|
-
},
|
|
15
|
-
contentSharedWithExternalCollaborators: {
|
|
16
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contentSharedWithExternalCollaborators",
|
|
17
|
-
defaultMessage: "This content will be shared with external collaborators."
|
|
18
|
-
},
|
|
19
|
-
sendButton: {
|
|
20
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.sendButton",
|
|
21
|
-
defaultMessage: "Send"
|
|
22
|
-
},
|
|
23
|
-
loadingLabel: {
|
|
24
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.loadingLabel",
|
|
25
|
-
defaultMessage: "Loading"
|
|
26
|
-
},
|
|
27
|
-
invitePeopleLabel: {
|
|
28
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.invitePeopleLabel",
|
|
29
|
-
defaultMessage: "Invite People"
|
|
30
|
-
},
|
|
31
|
-
invitePeoplePlaceholder: {
|
|
32
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.invitePeoplePlaceholder",
|
|
33
|
-
defaultMessage: "Add names or email addresses"
|
|
34
|
-
},
|
|
35
|
-
emailSharedLinkLabel: {
|
|
36
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.emailSharedLinkLabel",
|
|
37
|
-
defaultMessage: "Email Shared Link"
|
|
38
|
-
},
|
|
39
|
-
inviteAsRoleLabel: {
|
|
40
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteAsRoleLabel",
|
|
41
|
-
defaultMessage: "Invite as {role}"
|
|
42
|
-
},
|
|
43
|
-
sharedWithLabel: {
|
|
44
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.sharedWithLabel",
|
|
45
|
-
defaultMessage: "Shared with"
|
|
46
|
-
},
|
|
47
|
-
shareMessageLabel: {
|
|
48
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessageLabel",
|
|
49
|
-
defaultMessage: "Message (optional)"
|
|
50
|
-
},
|
|
51
|
-
shareMessagePlaceholder: {
|
|
52
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessagePlaceholder",
|
|
53
|
-
defaultMessage: "Add a message"
|
|
54
|
-
},
|
|
55
|
-
shareMessageCharacterCountAriaLabel: {
|
|
56
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessageCharacterCountAriaLabel",
|
|
57
|
-
defaultMessage: "{count} characters remaining"
|
|
58
|
-
},
|
|
59
|
-
coOwnerDescription: {
|
|
60
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.coOwnerDescription",
|
|
61
|
-
defaultMessage: "Manage security, upload, download, preview, share, edit, and delete"
|
|
62
|
-
},
|
|
63
|
-
editorDescription: {
|
|
64
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.editorDescription",
|
|
65
|
-
defaultMessage: "Upload, download, preview, share, and edit"
|
|
66
|
-
},
|
|
67
|
-
editorFolderDescription: {
|
|
68
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.editorFolderDescription",
|
|
69
|
-
defaultMessage: "Upload, download, preview, share, edit, and delete"
|
|
70
|
-
},
|
|
71
|
-
viewerUploaderDescription: {
|
|
72
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.viewerUploaderDescription",
|
|
73
|
-
defaultMessage: "Upload, download, preview, share, and edit"
|
|
74
|
-
},
|
|
75
|
-
previewerUploaderDescription: {
|
|
76
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.previewerUploaderDescription",
|
|
77
|
-
defaultMessage: "Upload and preview"
|
|
78
|
-
},
|
|
79
|
-
viewerDescription: {
|
|
80
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.viewerDescription",
|
|
81
|
-
defaultMessage: "Download, preview, and share"
|
|
82
|
-
},
|
|
83
|
-
previewerDescription: {
|
|
84
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.previewerDescription",
|
|
85
|
-
defaultMessage: "Preview-only"
|
|
86
|
-
},
|
|
87
|
-
uploaderDescription: {
|
|
88
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.uploaderDescription",
|
|
89
|
-
defaultMessage: "Upload-only"
|
|
90
|
-
},
|
|
91
|
-
inviteDisabledTooltip: {
|
|
92
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteDisabledTooltip",
|
|
93
|
-
defaultMessage: "You do not have permission to invite collaborators"
|
|
94
|
-
},
|
|
95
|
-
inviteWebLinkDisabledTooltip: {
|
|
96
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteWebLinkDisabledTooltip",
|
|
97
|
-
defaultMessage: "Collaborators cannot be added to bookmarks"
|
|
98
|
-
},
|
|
99
|
-
justifiableContactRestrictionNotice: {
|
|
100
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justifiableContactRestrictionNotice",
|
|
101
|
-
defaultMessage: "This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below. {justificationSelect} {removeLink}"
|
|
102
|
-
},
|
|
103
|
-
justifiableContactRestrictionRemoveButtonLabel: {
|
|
104
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justifiableContactRestrictionRemoveButtonLabel",
|
|
105
|
-
defaultMessage: "Alternatively, remove to continue"
|
|
106
|
-
},
|
|
107
|
-
contactRestrictionNotice: {
|
|
108
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionNotice",
|
|
109
|
-
defaultMessage: "{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy. {removeLink}"
|
|
110
|
-
},
|
|
111
|
-
contactRestrictionInformationBarrierNotice: {
|
|
112
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionInformationBarrierNotice",
|
|
113
|
-
defaultMessage: "{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy. {removeLink}"
|
|
114
|
-
},
|
|
115
|
-
contactRestrictionRemoveButtonLabel: {
|
|
116
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionRemoveButtonLabel",
|
|
117
|
-
defaultMessage: "Remove to continue"
|
|
118
|
-
},
|
|
119
|
-
justificationSelectPlaceholder: {
|
|
120
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justificationSelectPlaceholder",
|
|
121
|
-
defaultMessage: "Select Justification"
|
|
122
|
-
},
|
|
123
|
-
loadingJustificationReasonsLabel: {
|
|
124
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.loadingJustificationReasonsLabel",
|
|
125
|
-
defaultMessage: "Loading justification reasons"
|
|
126
|
-
},
|
|
127
|
-
errorNoticeIconAriaLabel: {
|
|
128
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.errorNoticeIconAriaLabel",
|
|
129
|
-
defaultMessage: "Error"
|
|
130
|
-
},
|
|
131
|
-
businessJustification: {
|
|
132
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.businessJustification",
|
|
133
|
-
defaultMessage: "Business Justification"
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
export { t as default };
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({cancelButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.cancelButton`,defaultMessage:`Cancel`},closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.closeButton`,defaultMessage:`Close`},clearButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.clearButton`,defaultMessage:`Clear`},contentSharedWithExternalCollaborators:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contentSharedWithExternalCollaborators`,defaultMessage:`This content will be shared with external collaborators.`},sendButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.sendButton`,defaultMessage:`Send`},loadingLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.loadingLabel`,defaultMessage:`Loading`},invitePeopleLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.invitePeopleLabel`,defaultMessage:`Invite People`},invitePeoplePlaceholder:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.invitePeoplePlaceholder`,defaultMessage:`Add names or email addresses`},emailSharedLinkLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.emailSharedLinkLabel`,defaultMessage:`Email Shared Link`},inviteAsRoleLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteAsRoleLabel`,defaultMessage:`Invite as {role}`},sharedWithLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.sharedWithLabel`,defaultMessage:`Shared with`},shareMessageLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessageLabel`,defaultMessage:`Message (optional)`},shareMessagePlaceholder:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessagePlaceholder`,defaultMessage:`Add a message`},shareMessageCharacterCountAriaLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.shareMessageCharacterCountAriaLabel`,defaultMessage:`{count} characters remaining`},coOwnerDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.coOwnerDescription`,defaultMessage:`Manage security, upload, download, preview, share, edit, and delete`},editorDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.editorDescription`,defaultMessage:`Upload, download, preview, share, and edit`},editorFolderDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.editorFolderDescription`,defaultMessage:`Upload, download, preview, share, edit, and delete`},viewerUploaderDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.viewerUploaderDescription`,defaultMessage:`Upload, download, preview, share, and edit`},previewerUploaderDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.previewerUploaderDescription`,defaultMessage:`Upload and preview`},viewerDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.viewerDescription`,defaultMessage:`Download, preview, and share`},previewerDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.previewerDescription`,defaultMessage:`Preview-only`},uploaderDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.uploaderDescription`,defaultMessage:`Upload-only`},inviteDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteDisabledTooltip`,defaultMessage:`You do not have permission to invite collaborators`},inviteWebLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.inviteWebLinkDisabledTooltip`,defaultMessage:`Collaborators cannot be added to bookmarks`},justifiableContactRestrictionNotice:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justifiableContactRestrictionNotice`,defaultMessage:`This content requires a business justification for {count, plural, one {{count} invitation} other {{count} invitations}}. Please select a business justification below. {justificationSelect} {removeLink}`},justifiableContactRestrictionRemoveButtonLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justifiableContactRestrictionRemoveButtonLabel`,defaultMessage:`Alternatively, remove to continue`},contactRestrictionNotice:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionNotice`,defaultMessage:`{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent because external collaboration is restricted due to the applied security policy. {removeLink}`},contactRestrictionInformationBarrierNotice:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionInformationBarrierNotice`,defaultMessage:`{count, plural, one {{count} invitation} other {{count} invitations}} cannot be sent due to a security policy. {removeLink}`},contactRestrictionRemoveButtonLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.contactRestrictionRemoveButtonLabel`,defaultMessage:`Remove to continue`},justificationSelectPlaceholder:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.justificationSelectPlaceholder`,defaultMessage:`Select Justification`},loadingJustificationReasonsLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.loadingJustificationReasonsLabel`,defaultMessage:`Loading justification reasons`},errorNoticeIconAriaLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.errorNoticeIconAriaLabel`,defaultMessage:`Error`},businessJustification:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaborationSection.businessJustification`,defaultMessage:`Business Justification`}});export{messages as default};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as SharedWithAvatars };
|
|
1
|
+
import{t as SharedWithAvatars}from"../../../../../chunks/shared-with-avatars.js";export{SharedWithAvatars};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as ShieldRestrictionNotice };
|
|
1
|
+
import{t as ShieldRestrictionNotice}from"../../../../../chunks/shield-restriction-notice.js";export{ShieldRestrictionNotice};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as TextAreaContainer };
|
|
1
|
+
import{t as TextAreaContainer}from"../../../../../chunks/text-area-container.js";export{TextAreaContainer};
|
package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-avatar.js
CHANGED
|
@@ -1,49 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { formatDateFromTimestampToDateString as n } from "../../../utils/date.js";
|
|
3
|
-
import r from "./messages.js";
|
|
4
|
-
import { useCallback as i } from "react";
|
|
5
|
-
import { useIntl as a } from "react-intl";
|
|
6
|
-
import { Avatar as o, IconBadge as s } from "@box/blueprint-web";
|
|
7
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
8
|
-
function l({ collaborator: l, isBadgeable: u, size: d = "large" }) {
|
|
9
|
-
let { formatMessage: f } = a(), { avatarUrl: p, expiresAt: m, hasCustomAvatar: h, id: g, isExternal: _, name: v } = l, y = h === !1 ? void 0 : p, b = i(() => /* @__PURE__ */ c(o, {
|
|
10
|
-
alt: "",
|
|
11
|
-
colorIndex: parseInt(g, 10),
|
|
12
|
-
size: d,
|
|
13
|
-
src: y,
|
|
14
|
-
text: t(v)
|
|
15
|
-
}), [
|
|
16
|
-
y,
|
|
17
|
-
g,
|
|
18
|
-
v,
|
|
19
|
-
d
|
|
20
|
-
]), x = i(() => /* @__PURE__ */ c(s, {
|
|
21
|
-
offset: {
|
|
22
|
-
bottom: -4,
|
|
23
|
-
right: -4
|
|
24
|
-
},
|
|
25
|
-
size: e(d),
|
|
26
|
-
variant: "collaborator-external",
|
|
27
|
-
children: /* @__PURE__ */ c(b, {})
|
|
28
|
-
}), [b, d]);
|
|
29
|
-
if (u && m) {
|
|
30
|
-
let t = typeof m == "number" ? n(m) : m, i = f(r.expiresBadge, { date: t });
|
|
31
|
-
return /* @__PURE__ */ c(s, {
|
|
32
|
-
offset: {
|
|
33
|
-
bottom: 20,
|
|
34
|
-
right: 20
|
|
35
|
-
},
|
|
36
|
-
showTooltipOnBadge: !0,
|
|
37
|
-
size: e(d),
|
|
38
|
-
tooltipConfig: {
|
|
39
|
-
tooltipAriaLabel: i,
|
|
40
|
-
tooltipContent: i,
|
|
41
|
-
tooltipSide: "right"
|
|
42
|
-
},
|
|
43
|
-
variant: "status-pending",
|
|
44
|
-
children: c(_ ? x : b, {})
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return c(u && _ ? x : b, {});
|
|
48
|
-
}
|
|
49
|
-
export { l as CollaboratorAvatar };
|
|
1
|
+
import{getAvatarBadgeSize,getFirstInitial}from"../../../utils/collaborator.js";import{formatDateFromTimestampToDateString}from"../../../utils/date.js";import messages from"./messages.js";import{useCallback}from"react";import{useIntl}from"react-intl";import{Avatar,IconBadge}from"@box/blueprint-web";import{jsx}from"react/jsx-runtime";function CollaboratorAvatar({collaborator,isBadgeable,size=`large`}){let{formatMessage}=useIntl(),{avatarUrl,expiresAt,hasCustomAvatar,id,isExternal,name}=collaborator,avatarSrc=hasCustomAvatar===!1?void 0:avatarUrl,Avatar$1=useCallback(()=>jsx(Avatar,{alt:``,colorIndex:parseInt(id,10),size,src:avatarSrc,text:getFirstInitial(name)}),[avatarSrc,id,name,size]),AvatarWithExternalBadge=useCallback(()=>jsx(IconBadge,{offset:{bottom:-4,right:-4},size:getAvatarBadgeSize(size),variant:`collaborator-external`,children:jsx(Avatar$1,{})}),[Avatar$1,size]);if(isBadgeable&&expiresAt){let expiresDate=typeof expiresAt==`number`?formatDateFromTimestampToDateString(expiresAt):expiresAt,expiresMessage=formatMessage(messages.expiresBadge,{date:expiresDate});return jsx(IconBadge,{offset:{bottom:20,right:20},showTooltipOnBadge:!0,size:getAvatarBadgeSize(size),tooltipConfig:{tooltipAriaLabel:expiresMessage,tooltipContent:expiresMessage,tooltipSide:`right`},variant:`status-pending`,children:jsx(isExternal?AvatarWithExternalBadge:Avatar$1,{})})}return jsx(isBadgeable&&isExternal?AvatarWithExternalBadge:Avatar$1,{})}export{CollaboratorAvatar};
|
package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-list-item.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaboratorListItem };
|
|
1
|
+
import{t as CollaboratorListItem}from"../../../../../chunks/collaborator-list-item.js";export{CollaboratorListItem};
|
package/dist/esm/lib/components/unified-share-form-modal/collaborator-list/collaborator-list.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaboratorList };
|
|
1
|
+
import{t as CollaboratorList}from"../../../../../chunks/collaborator-list.js";export{CollaboratorList};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as CollaboratorList };
|
|
1
|
+
import{t as CollaboratorList}from"../../../../../chunks/collaborator-list.js";export{CollaboratorList};
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
var t = e({
|
|
3
|
-
closeButton: {
|
|
4
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.closeButton",
|
|
5
|
-
defaultMessage: "Close"
|
|
6
|
-
},
|
|
7
|
-
doneButton: {
|
|
8
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.doneButton",
|
|
9
|
-
defaultMessage: "Done"
|
|
10
|
-
},
|
|
11
|
-
manageAllLink: {
|
|
12
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.manageAllLink",
|
|
13
|
-
defaultMessage: "Manage All"
|
|
14
|
-
},
|
|
15
|
-
listLabel: {
|
|
16
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.listLabel",
|
|
17
|
-
defaultMessage: "Collaborators"
|
|
18
|
-
},
|
|
19
|
-
nameColumn: {
|
|
20
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.nameColumn",
|
|
21
|
-
defaultMessage: "Name"
|
|
22
|
-
},
|
|
23
|
-
roleColumn: {
|
|
24
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.roleColumn",
|
|
25
|
-
defaultMessage: "Role"
|
|
26
|
-
},
|
|
27
|
-
expiresBadge: {
|
|
28
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.expiresBadge",
|
|
29
|
-
defaultMessage: "Access expires on {date}"
|
|
30
|
-
},
|
|
31
|
-
pendingRole: {
|
|
32
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.pendingRole",
|
|
33
|
-
defaultMessage: "Pending"
|
|
34
|
-
},
|
|
35
|
-
removeButton: {
|
|
36
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.removeButton",
|
|
37
|
-
defaultMessage: "Remove"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export { t as default };
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.closeButton`,defaultMessage:`Close`},doneButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.doneButton`,defaultMessage:`Done`},manageAllLink:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.manageAllLink`,defaultMessage:`Manage All`},listLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.listLabel`,defaultMessage:`Collaborators`},nameColumn:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.nameColumn`,defaultMessage:`Name`},roleColumn:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.roleColumn`,defaultMessage:`Role`},expiresBadge:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.expiresBadge`,defaultMessage:`Access expires on {date}`},pendingRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.pendingRole`,defaultMessage:`Pending`},removeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.collaboratorList.removeButton`,defaultMessage:`Remove`}});export{messages as default};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as UnifiedShareFormModal };
|
|
1
|
+
import{t as UnifiedShareFormModal}from"../../../../chunks/unified-share-form-modal.js";export{UnifiedShareFormModal};
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
var t = e({
|
|
3
|
-
title: {
|
|
4
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.title",
|
|
5
|
-
defaultMessage: "Share ‘{itemName}’"
|
|
6
|
-
},
|
|
7
|
-
closeButton: {
|
|
8
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.closeButton",
|
|
9
|
-
defaultMessage: "Close"
|
|
10
|
-
},
|
|
11
|
-
loadingLabel: {
|
|
12
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel",
|
|
13
|
-
defaultMessage: "Loading"
|
|
14
|
-
},
|
|
15
|
-
ownerRole: {
|
|
16
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.ownerRole",
|
|
17
|
-
defaultMessage: "Owner"
|
|
18
|
-
},
|
|
19
|
-
coOwnerRole: {
|
|
20
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.coOwnerRole",
|
|
21
|
-
defaultMessage: "Co-owner"
|
|
22
|
-
},
|
|
23
|
-
editorRole: {
|
|
24
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.editorRole",
|
|
25
|
-
defaultMessage: "Editor"
|
|
26
|
-
},
|
|
27
|
-
viewerUploaderRole: {
|
|
28
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole",
|
|
29
|
-
defaultMessage: "Viewer Uploader"
|
|
30
|
-
},
|
|
31
|
-
previewerUploaderRole: {
|
|
32
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.previewerUploaderRole",
|
|
33
|
-
defaultMessage: "Previewer Uploader"
|
|
34
|
-
},
|
|
35
|
-
viewerRole: {
|
|
36
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.viewerRole",
|
|
37
|
-
defaultMessage: "Viewer"
|
|
38
|
-
},
|
|
39
|
-
previewerRole: {
|
|
40
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.previewerRole",
|
|
41
|
-
defaultMessage: "Previewer"
|
|
42
|
-
},
|
|
43
|
-
uploaderRole: {
|
|
44
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.uploaderRole",
|
|
45
|
-
defaultMessage: "Uploader"
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export { t as default };
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({title:{id:`groupSharedFeatures.usm.unifiedShareFormModal.title`,defaultMessage:`Share ‘{itemName}’`},closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.closeButton`,defaultMessage:`Close`},loadingLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.loadingLabel`,defaultMessage:`Loading`},ownerRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.ownerRole`,defaultMessage:`Owner`},coOwnerRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.coOwnerRole`,defaultMessage:`Co-owner`},editorRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.editorRole`,defaultMessage:`Editor`},viewerUploaderRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.viewerUploaderRole`,defaultMessage:`Viewer Uploader`},previewerUploaderRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.previewerUploaderRole`,defaultMessage:`Previewer Uploader`},viewerRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.viewerRole`,defaultMessage:`Viewer`},previewerRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.previewerRole`,defaultMessage:`Previewer`},uploaderRole:{id:`groupSharedFeatures.usm.unifiedShareFormModal.uploaderRole`,defaultMessage:`Uploader`}});export{messages as default};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as SharedLinkSection };
|
|
1
|
+
import{t as SharedLinkSection}from"../../../../../chunks/shared-link-section.js";export{SharedLinkSection};
|
|
@@ -1,144 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
var t = e({
|
|
3
|
-
closeButton: {
|
|
4
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.closeButton",
|
|
5
|
-
defaultMessage: "Close"
|
|
6
|
-
},
|
|
7
|
-
shareLinkLabel: {
|
|
8
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.shareLinkLabel",
|
|
9
|
-
defaultMessage: "Share Link"
|
|
10
|
-
},
|
|
11
|
-
sharedLinkToggleLabel: {
|
|
12
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleLabel",
|
|
13
|
-
defaultMessage: "Shared link"
|
|
14
|
-
},
|
|
15
|
-
sharedLinkToggleTooltip: {
|
|
16
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleTooltip",
|
|
17
|
-
defaultMessage: "Create and copy link"
|
|
18
|
-
},
|
|
19
|
-
createLinkDisabledTooltip: {
|
|
20
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.createLinkDisabledTooltip",
|
|
21
|
-
defaultMessage: "You do not have permission to create the link"
|
|
22
|
-
},
|
|
23
|
-
removeLinkDisabledTooltip: {
|
|
24
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.removeLinkDisabledTooltip",
|
|
25
|
-
defaultMessage: "You do not have permission to remove the link"
|
|
26
|
-
},
|
|
27
|
-
sharedLinkSettingsLabel: {
|
|
28
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkSettingsLabel",
|
|
29
|
-
defaultMessage: "Link Settings"
|
|
30
|
-
},
|
|
31
|
-
sharedLinkUrlLabel: {
|
|
32
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkUrlLabel",
|
|
33
|
-
defaultMessage: "Shared link URL"
|
|
34
|
-
},
|
|
35
|
-
sharedLinkEmailLabel: {
|
|
36
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEmailLabel",
|
|
37
|
-
defaultMessage: "Send Shared Link"
|
|
38
|
-
},
|
|
39
|
-
sharedLinkPubliclyAvailable: {
|
|
40
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkPubliclyAvailable",
|
|
41
|
-
defaultMessage: "This content is publicly available to anyone with the link."
|
|
42
|
-
},
|
|
43
|
-
sharedLinkEditablePubliclyAvailable: {
|
|
44
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEditablePubliclyAvailable",
|
|
45
|
-
defaultMessage: "Publicly available for anyone to view and download. Any logged in users with the link can edit."
|
|
46
|
-
},
|
|
47
|
-
sharedLinkElevatedEditableCompanyAvailable: {
|
|
48
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkElevatedEditableCompanyAvailable",
|
|
49
|
-
defaultMessage: "People who have access to this link can edit."
|
|
50
|
-
},
|
|
51
|
-
expirationIconLabel: {
|
|
52
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconLabel",
|
|
53
|
-
defaultMessage: "Expires"
|
|
54
|
-
},
|
|
55
|
-
expirationIconTooltip: {
|
|
56
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconTooltip",
|
|
57
|
-
defaultMessage: "This link will expire and be inaccessible on {expirationDate}"
|
|
58
|
-
},
|
|
59
|
-
openAccessLevelLabel: {
|
|
60
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelLabel",
|
|
61
|
-
defaultMessage: "People with the link"
|
|
62
|
-
},
|
|
63
|
-
openAccessLevelDescription: {
|
|
64
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelDescription",
|
|
65
|
-
defaultMessage: "Publicly accessible and no sign-in required"
|
|
66
|
-
},
|
|
67
|
-
companyAccessLevelLabel: {
|
|
68
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelLabel",
|
|
69
|
-
defaultMessage: "People in your company"
|
|
70
|
-
},
|
|
71
|
-
companyAccessLevelDescription: {
|
|
72
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelDescription",
|
|
73
|
-
defaultMessage: "Anyone in your company with the link or people invited to this {item} can access"
|
|
74
|
-
},
|
|
75
|
-
enterpriseAccessLevelLabel: {
|
|
76
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelLabel",
|
|
77
|
-
defaultMessage: "People in {enterprise}"
|
|
78
|
-
},
|
|
79
|
-
enterpriseAccessLevelDescription: {
|
|
80
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelDescription",
|
|
81
|
-
defaultMessage: "Anyone at {enterprise} with the link or people invited to this {item} can access"
|
|
82
|
-
},
|
|
83
|
-
collaboratorsAccessLevelLabel: {
|
|
84
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelLabel",
|
|
85
|
-
defaultMessage: "Invited people only"
|
|
86
|
-
},
|
|
87
|
-
collaboratorsAccessLevelDescription: {
|
|
88
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelDescription",
|
|
89
|
-
defaultMessage: "Only invited people can access this {item}"
|
|
90
|
-
},
|
|
91
|
-
fileAccessLevelItem: {
|
|
92
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.fileAccessLevelItem",
|
|
93
|
-
defaultMessage: "file"
|
|
94
|
-
},
|
|
95
|
-
folderAccessLevelItem: {
|
|
96
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.folderAccessLevelItem",
|
|
97
|
-
defaultMessage: "folder"
|
|
98
|
-
},
|
|
99
|
-
hubsAccessLevelItem: {
|
|
100
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.hubsAccessLevelItem",
|
|
101
|
-
defaultMessage: "hub"
|
|
102
|
-
},
|
|
103
|
-
webLinkAccessLevelItem: {
|
|
104
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.webLinkAccessLevelItem",
|
|
105
|
-
defaultMessage: "bookmark"
|
|
106
|
-
},
|
|
107
|
-
workflowAccessLevelItem: {
|
|
108
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.workflowAccessLevelItem",
|
|
109
|
-
defaultMessage: "workflow"
|
|
110
|
-
},
|
|
111
|
-
disabledAccessLevelTooltip: {
|
|
112
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.disabledAccessLevelTooltip",
|
|
113
|
-
defaultMessage: "This option is not available due to a security policy"
|
|
114
|
-
},
|
|
115
|
-
canEditPermissionLevelLabel: {
|
|
116
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel",
|
|
117
|
-
defaultMessage: "Can edit"
|
|
118
|
-
},
|
|
119
|
-
canDownloadPermissionLevelLabel: {
|
|
120
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel",
|
|
121
|
-
defaultMessage: "Can view and download"
|
|
122
|
-
},
|
|
123
|
-
canPreviewPermissionLevelLabel: {
|
|
124
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canPreviewPermissionLevelLabel",
|
|
125
|
-
defaultMessage: "Can view only"
|
|
126
|
-
},
|
|
127
|
-
canEditBoxNoteDisabledTooltip: {
|
|
128
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip",
|
|
129
|
-
defaultMessage: "This permission can only be changed in Box Notes"
|
|
130
|
-
},
|
|
131
|
-
autoCreateCopyErrorNoticeText: {
|
|
132
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyErrorNoticeText",
|
|
133
|
-
defaultMessage: "Shared link created. Click Copy to share."
|
|
134
|
-
},
|
|
135
|
-
autoCreateCopySuccessNoticeText: {
|
|
136
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText",
|
|
137
|
-
defaultMessage: "Shared link created and copied to clipboard."
|
|
138
|
-
},
|
|
139
|
-
autoCopySuccessNoticeText: {
|
|
140
|
-
id: "groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCopySuccessNoticeText",
|
|
141
|
-
defaultMessage: "Shared link copied to clipboard."
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
export { t as default };
|
|
1
|
+
import{defineMessages}from"react-intl";var messages=defineMessages({closeButton:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.closeButton`,defaultMessage:`Close`},shareLinkLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.shareLinkLabel`,defaultMessage:`Share Link`},sharedLinkToggleLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleLabel`,defaultMessage:`Shared link`},sharedLinkToggleTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkToggleTooltip`,defaultMessage:`Create and copy link`},createLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.createLinkDisabledTooltip`,defaultMessage:`You do not have permission to create the link`},removeLinkDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.removeLinkDisabledTooltip`,defaultMessage:`You do not have permission to remove the link`},sharedLinkSettingsLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkSettingsLabel`,defaultMessage:`Link Settings`},sharedLinkUrlLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkUrlLabel`,defaultMessage:`Shared link URL`},sharedLinkEmailLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEmailLabel`,defaultMessage:`Send Shared Link`},sharedLinkPubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkPubliclyAvailable`,defaultMessage:`This content is publicly available to anyone with the link.`},sharedLinkEditablePubliclyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEditablePubliclyAvailable`,defaultMessage:`Publicly available for anyone to view and download. Any logged in users with the link can edit.`},sharedLinkElevatedEditableCompanyAvailable:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkElevatedEditableCompanyAvailable`,defaultMessage:`People who have access to this link can edit.`},expirationIconLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconLabel`,defaultMessage:`Expires`},expirationIconTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconTooltip`,defaultMessage:`This link will expire and be inaccessible on {expirationDate}`},openAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelLabel`,defaultMessage:`People with the link`},openAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelDescription`,defaultMessage:`Publicly accessible and no sign-in required`},companyAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelLabel`,defaultMessage:`People in your company`},companyAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.companyAccessLevelDescription`,defaultMessage:`Anyone in your company with the link or people invited to this {item} can access`},enterpriseAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelLabel`,defaultMessage:`People in {enterprise}`},enterpriseAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccessLevelDescription`,defaultMessage:`Anyone at {enterprise} with the link or people invited to this {item} can access`},collaboratorsAccessLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelLabel`,defaultMessage:`Invited people only`},collaboratorsAccessLevelDescription:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelDescription`,defaultMessage:`Only invited people can access this {item}`},fileAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.fileAccessLevelItem`,defaultMessage:`file`},folderAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.folderAccessLevelItem`,defaultMessage:`folder`},hubsAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.hubsAccessLevelItem`,defaultMessage:`hub`},webLinkAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.webLinkAccessLevelItem`,defaultMessage:`bookmark`},workflowAccessLevelItem:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.workflowAccessLevelItem`,defaultMessage:`workflow`},disabledAccessLevelTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.disabledAccessLevelTooltip`,defaultMessage:`This option is not available due to a security policy`},canEditPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditPermissionLevelLabel`,defaultMessage:`Can edit`},canDownloadPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canDownloadPermissionLevelLabel`,defaultMessage:`Can view and download`},canPreviewPermissionLevelLabel:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canPreviewPermissionLevelLabel`,defaultMessage:`Can view only`},canEditBoxNoteDisabledTooltip:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.canEditBoxNoteDisabledTooltip`,defaultMessage:`This permission can only be changed in Box Notes`},autoCreateCopyErrorNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyErrorNoticeText`,defaultMessage:`Shared link created. Click Copy to share.`},autoCreateCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText`,defaultMessage:`Shared link created and copied to clipboard.`},autoCopySuccessNoticeText:{id:`groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCopySuccessNoticeText`,defaultMessage:`Shared link copied to clipboard.`}});export{messages as default};
|
package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-access.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as SharedLinkAccess };
|
|
1
|
+
import{t as SharedLinkAccess}from"../../../../../chunks/shared-link-access.js";export{SharedLinkAccess};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as SharedLinkPermission };
|
|
1
|
+
import{t as SharedLinkPermission}from"../../../../../chunks/shared-link-permission.js";export{SharedLinkPermission};
|
package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-section.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as SharedLinkSection };
|
|
1
|
+
import{t as SharedLinkSection}from"../../../../../chunks/shared-link-section.js";export{SharedLinkSection};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as UnifiedShareFormModal };
|
|
1
|
+
import{t as UnifiedShareFormModal}from"../../../../chunks/unified-share-form-modal.js";export{UnifiedShareFormModal};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { e as UnifiedShareForm };
|
|
1
|
+
import{t as UnifiedShareForm}from"../../../../chunks/unified-share-form.js";export{UnifiedShareForm};
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
"invite-collaborators",
|
|
3
|
-
"remove-collaborator",
|
|
4
|
-
"create-shared-link",
|
|
5
|
-
"delete-shared-link",
|
|
6
|
-
"update-shared-link",
|
|
7
|
-
"email-shared-link",
|
|
8
|
-
"auto-copy-shared-link"
|
|
9
|
-
], t = {
|
|
10
|
-
collaboration: !0,
|
|
11
|
-
collaborationLimit: 100,
|
|
12
|
-
collaborationMessage: !0,
|
|
13
|
-
collaborationMessageLimit: 750,
|
|
14
|
-
collaborationRole: !0,
|
|
15
|
-
collaborators: !0,
|
|
16
|
-
collaboratorsLimit: 100,
|
|
17
|
-
collaboratorsManagement: !0,
|
|
18
|
-
notifications: e,
|
|
19
|
-
sharedLink: !0,
|
|
20
|
-
sharedLinkAccess: !0,
|
|
21
|
-
sharedLinkAutoCopy: !1,
|
|
22
|
-
sharedLinkAutoCreate: !1,
|
|
23
|
-
sharedLinkEmail: !0,
|
|
24
|
-
sharedLinkEmailMessage: !0,
|
|
25
|
-
sharedLinkPermission: !0,
|
|
26
|
-
sharedLinkSettings: !0
|
|
27
|
-
}, n = [{
|
|
28
|
-
id: "editor",
|
|
29
|
-
isDefault: !0
|
|
30
|
-
}, { id: "viewer" }], r = [
|
|
31
|
-
"co_owner",
|
|
32
|
-
"editor",
|
|
33
|
-
"previewer",
|
|
34
|
-
"previewer_uploader",
|
|
35
|
-
"uploader",
|
|
36
|
-
"viewer",
|
|
37
|
-
"viewer_uploader"
|
|
38
|
-
], i = ["owner", ...r], a = [
|
|
39
|
-
"open",
|
|
40
|
-
"company",
|
|
41
|
-
"collaborators"
|
|
42
|
-
], o = [
|
|
43
|
-
"can_edit",
|
|
44
|
-
"can_download",
|
|
45
|
-
"can_preview"
|
|
46
|
-
], s = "boxnote";
|
|
47
|
-
export { n as DEFAULT_COLLABORATION_ROLES, t as DEFAULT_CONFIGURATION, e as DEFAULT_NOTIFICATIONS, s as FILE_EXTENSION_BOX_NOTE, a as SUPPORTED_ACCESS_LEVELS, i as SUPPORTED_COLLABORATOR_ROLES, r as SUPPORTED_INVITATION_ROLES, o as SUPPORTED_PERMISSION_LEVELS };
|
|
1
|
+
var DEFAULT_NOTIFICATIONS=[`invite-collaborators`,`remove-collaborator`,`create-shared-link`,`delete-shared-link`,`update-shared-link`,`email-shared-link`,`auto-copy-shared-link`],DEFAULT_CONFIGURATION={collaboration:!0,collaborationLimit:100,collaborationMessage:!0,collaborationMessageLimit:750,collaborationRole:!0,collaborators:!0,collaboratorsLimit:100,collaboratorsManagement:!0,notifications:DEFAULT_NOTIFICATIONS,sharedLink:!0,sharedLinkAccess:!0,sharedLinkAutoCopy:!1,sharedLinkAutoCreate:!1,sharedLinkEmail:!0,sharedLinkEmailMessage:!0,sharedLinkPermission:!0,sharedLinkSettings:!0},DEFAULT_COLLABORATION_ROLES=[{id:`editor`,isDefault:!0},{id:`viewer`}],SUPPORTED_INVITATION_ROLES=[`co_owner`,`editor`,`previewer`,`previewer_uploader`,`uploader`,`viewer`,`viewer_uploader`],SUPPORTED_COLLABORATOR_ROLES=[`owner`,...SUPPORTED_INVITATION_ROLES],SUPPORTED_ACCESS_LEVELS=[`open`,`company`,`collaborators`],SUPPORTED_PERMISSION_LEVELS=[`can_edit`,`can_download`,`can_preview`],FILE_EXTENSION_BOX_NOTE=`boxnote`;export{DEFAULT_COLLABORATION_ROLES,DEFAULT_CONFIGURATION,DEFAULT_NOTIFICATIONS,FILE_EXTENSION_BOX_NOTE,SUPPORTED_ACCESS_LEVELS,SUPPORTED_COLLABORATOR_ROLES,SUPPORTED_INVITATION_ROLES,SUPPORTED_PERMISSION_LEVELS};
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UnifiedShareFormContext as r, UnifiedShareFormProvider as i, useUnifiedShareFormContext as a } from "./unified-share-form-context.js";
|
|
3
|
-
import { SharedLinkSettingsContext as o, SharedLinkSettingsProvider as s, useSharedLinkSettingsContext as c } from "./shared-link-settings-context.js";
|
|
4
|
-
export { o as SharedLinkSettingsContext, s as SharedLinkSettingsProvider, r as UnifiedShareFormContext, i as UnifiedShareFormProvider, e as UnifiedShareModalContext, t as UnifiedShareModalProvider, c as useSharedLinkSettingsContext, a as useUnifiedShareFormContext, n as useUnifiedShareModalContext };
|
|
1
|
+
import{UnifiedShareModalContext,UnifiedShareModalProvider,useUnifiedShareModalContext}from"./unified-share-modal-context.js";import{UnifiedShareFormContext,UnifiedShareFormProvider,useUnifiedShareFormContext}from"./unified-share-form-context.js";import{SharedLinkSettingsContext,SharedLinkSettingsProvider,useSharedLinkSettingsContext}from"./shared-link-settings-context.js";export{SharedLinkSettingsContext,SharedLinkSettingsProvider,UnifiedShareFormContext,UnifiedShareFormProvider,UnifiedShareModalContext,UnifiedShareModalProvider,useSharedLinkSettingsContext,useUnifiedShareFormContext,useUnifiedShareModalContext};
|