@box/unified-share-modal 0.49.0 → 0.50.0
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/esm/lib/components/shared-link-settings-modal/messages.js +2 -6
- package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +79 -79
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-role.js +89 -68
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/collaboration-section.js +119 -102
- package/dist/esm/lib/components/unified-share-form-modal/collaboration-section/messages.js +8 -0
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/messages.js +12 -0
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-access.js +42 -39
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-permission.js +46 -43
- package/dist/esm/lib/components/unified-share-form-modal/shared-link-section/shared-link-section.js +109 -100
- package/dist/esm/lib/components/unified-share-form-modal/unified-share-form-modal.js +56 -47
- package/dist/esm/lib/hooks/use-access-levels.js +18 -17
- package/dist/esm/lib/hooks/use-collaboration-form.js +13 -13
- package/dist/esm/lib/messages.js +11 -7
- package/dist/i18n/bn-IN.js +8 -2
- package/dist/i18n/da-DK.js +8 -2
- package/dist/i18n/de-DE.js +8 -2
- package/dist/i18n/en-AU.js +8 -2
- package/dist/i18n/en-CA.js +8 -2
- package/dist/i18n/en-GB.js +8 -2
- package/dist/i18n/en-US.js +15 -10
- package/dist/i18n/en-US.properties +21 -11
- package/dist/i18n/en-x-pseudo.js +122 -116
- package/dist/i18n/en-x-pseudo.properties +116 -116
- package/dist/i18n/es-419.js +8 -2
- package/dist/i18n/es-ES.js +8 -2
- package/dist/i18n/fi-FI.js +8 -2
- package/dist/i18n/fr-CA.js +8 -2
- package/dist/i18n/fr-FR.js +8 -2
- package/dist/i18n/hi-IN.js +8 -2
- package/dist/i18n/it-IT.js +8 -2
- package/dist/i18n/ja-JP.js +8 -2
- package/dist/i18n/json/src/lib/components/shared-link-settings-modal/messages.json +1 -1
- package/dist/i18n/json/src/lib/components/unified-share-form-modal/collaboration-section/messages.json +1 -1
- package/dist/i18n/json/src/lib/components/unified-share-form-modal/shared-link-section/messages.json +1 -1
- package/dist/i18n/json/src/lib/messages.json +1 -1
- package/dist/i18n/ko-KR.js +8 -2
- package/dist/i18n/nb-NO.js +8 -2
- package/dist/i18n/nl-NL.js +8 -2
- package/dist/i18n/pl-PL.js +8 -2
- package/dist/i18n/pt-BR.js +8 -2
- package/dist/i18n/ru-RU.js +8 -2
- package/dist/i18n/sv-SE.js +8 -2
- package/dist/i18n/tr-TR.js +8 -2
- package/dist/i18n/zh-CN.js +8 -2
- package/dist/i18n/zh-TW.js +8 -2
- package/dist/styles/collaboration-role.css +1 -1
- package/dist/styles/shared-link-section.css +1 -1
- package/dist/styles/unified-share-form-modal.css +1 -1
- package/dist/types/lib/components/shared-link-settings-modal/messages.d.ts +0 -5
- package/dist/types/lib/components/unified-share-form-modal/collaboration-section/messages.d.ts +10 -0
- package/dist/types/lib/components/unified-share-form-modal/shared-link-section/messages.d.ts +15 -0
- package/dist/types/lib/messages.d.ts +5 -0
- package/dist/types/lib/stories/shared.d.ts +10 -0
- package/dist/types/lib/types.d.ts +10 -0
- package/package.json +2 -2
package/dist/types/lib/components/unified-share-form-modal/shared-link-section/messages.d.ts
CHANGED
|
@@ -14,6 +14,16 @@ declare const messages: {
|
|
|
14
14
|
description: string;
|
|
15
15
|
id: string;
|
|
16
16
|
};
|
|
17
|
+
createLinkDisabledTooltip: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
removeLinkDisabledTooltip: {
|
|
23
|
+
defaultMessage: string;
|
|
24
|
+
description: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
17
27
|
sharedLinkSettingsLabel: {
|
|
18
28
|
defaultMessage: string;
|
|
19
29
|
description: string;
|
|
@@ -94,6 +104,11 @@ declare const messages: {
|
|
|
94
104
|
description: string;
|
|
95
105
|
id: string;
|
|
96
106
|
};
|
|
107
|
+
webLinkAccessLevelItem: {
|
|
108
|
+
defaultMessage: string;
|
|
109
|
+
description: string;
|
|
110
|
+
id: string;
|
|
111
|
+
};
|
|
97
112
|
disabledAccessLevelTooltip: {
|
|
98
113
|
defaultMessage: string;
|
|
99
114
|
description: string;
|
|
@@ -44,6 +44,11 @@ declare const messages: {
|
|
|
44
44
|
description: string;
|
|
45
45
|
id: string;
|
|
46
46
|
};
|
|
47
|
+
emailSharedLinkSuccessNoticeText: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
47
52
|
autoCopySharedLinkErrorNoticeText: {
|
|
48
53
|
defaultMessage: string;
|
|
49
54
|
description: string;
|
|
@@ -11,6 +11,16 @@ export declare const mockContactService: {
|
|
|
11
11
|
getContacts: (input: any) => Promise<UserContactType[]>;
|
|
12
12
|
getContactByEmail: (email: any) => Promise<UserContactType>;
|
|
13
13
|
};
|
|
14
|
+
export declare const mockClassification: {
|
|
15
|
+
colorId: number;
|
|
16
|
+
name: string;
|
|
17
|
+
definition: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const mockItemPermissions: {
|
|
20
|
+
canInviteCollaborator: boolean;
|
|
21
|
+
canSetShareAccess: boolean;
|
|
22
|
+
canShare: boolean;
|
|
23
|
+
};
|
|
14
24
|
export declare const mockBoxFile: Item;
|
|
15
25
|
export declare const mockBoxFolder: Item;
|
|
16
26
|
export declare const mockSharedLinkSettings: SharedLinkSettings;
|
|
@@ -49,6 +49,10 @@ export type PermissionLevelType = 'can_edit' | 'can_download' | 'can_preview';
|
|
|
49
49
|
*/
|
|
50
50
|
export type ItemType = 'file' | 'folder' | 'hubs' | 'web_link';
|
|
51
51
|
export interface Item {
|
|
52
|
+
/**
|
|
53
|
+
* The classification of the item.
|
|
54
|
+
*/
|
|
55
|
+
classification?: Classification;
|
|
52
56
|
/**
|
|
53
57
|
* The ID of the item.
|
|
54
58
|
*/
|
|
@@ -99,6 +103,12 @@ export interface Enterprise {
|
|
|
99
103
|
*/
|
|
100
104
|
name?: string;
|
|
101
105
|
}
|
|
106
|
+
export interface Classification {
|
|
107
|
+
colorId: number;
|
|
108
|
+
definition: string;
|
|
109
|
+
name: string;
|
|
110
|
+
restrictions?: string;
|
|
111
|
+
}
|
|
102
112
|
export interface SharedLink {
|
|
103
113
|
/**
|
|
104
114
|
* The access level of the shared link.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/unified-share-modal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@box/blueprint-web": "^9.18.13",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@box/blueprint-web": "^12.76.0",
|
|
17
17
|
"@box/blueprint-web-assets": "^4.68.0",
|
|
18
|
-
"@box/copy-input": "^0.
|
|
18
|
+
"@box/copy-input": "^0.24.0",
|
|
19
19
|
"@box/storybook-utils": "0.14.4",
|
|
20
20
|
"@box/eslint-plugin-blueprint": "1.0.4",
|
|
21
21
|
"react-intl": "^6.4.2"
|