@box/unified-share-modal 0.46.1 → 0.47.1

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.
Files changed (60) hide show
  1. package/dist/esm/lib/components/shared-link-settings-modal/shared-link-settings-modal.js +7 -7
  2. package/dist/esm/lib/hooks/use-collaboration-form.js +43 -44
  3. package/dist/esm/lib/hooks/use-form-validation.js +5 -5
  4. package/dist/esm/lib/hooks/use-link-settings-form.js +27 -27
  5. package/dist/esm/lib/utils/index.js +8 -8
  6. package/dist/esm/lib/utils/validation.js +7 -7
  7. package/dist/i18n/bn-IN.js +15 -61
  8. package/dist/i18n/bn-IN.properties +24 -96
  9. package/dist/i18n/da-DK.js +15 -61
  10. package/dist/i18n/da-DK.properties +24 -96
  11. package/dist/i18n/de-DE.js +15 -61
  12. package/dist/i18n/de-DE.properties +24 -96
  13. package/dist/i18n/en-AU.js +3 -49
  14. package/dist/i18n/en-AU.properties +22 -94
  15. package/dist/i18n/en-CA.js +2 -48
  16. package/dist/i18n/en-CA.properties +21 -93
  17. package/dist/i18n/en-GB.js +3 -49
  18. package/dist/i18n/en-GB.properties +22 -94
  19. package/dist/i18n/en-x-pseudo.js +109 -155
  20. package/dist/i18n/en-x-pseudo.properties +119 -191
  21. package/dist/i18n/es-419.js +14 -60
  22. package/dist/i18n/es-419.properties +24 -96
  23. package/dist/i18n/es-ES.js +14 -60
  24. package/dist/i18n/es-ES.properties +24 -96
  25. package/dist/i18n/fi-FI.js +15 -61
  26. package/dist/i18n/fi-FI.properties +24 -96
  27. package/dist/i18n/fr-CA.js +14 -60
  28. package/dist/i18n/fr-CA.properties +24 -96
  29. package/dist/i18n/fr-FR.js +14 -60
  30. package/dist/i18n/fr-FR.properties +24 -96
  31. package/dist/i18n/hi-IN.js +15 -61
  32. package/dist/i18n/hi-IN.properties +24 -96
  33. package/dist/i18n/it-IT.js +13 -59
  34. package/dist/i18n/it-IT.properties +24 -96
  35. package/dist/i18n/ja-JP.js +17 -63
  36. package/dist/i18n/ja-JP.properties +26 -98
  37. package/dist/i18n/ko-KR.js +15 -61
  38. package/dist/i18n/ko-KR.properties +24 -96
  39. package/dist/i18n/nb-NO.js +15 -61
  40. package/dist/i18n/nb-NO.properties +24 -96
  41. package/dist/i18n/nl-NL.js +14 -60
  42. package/dist/i18n/nl-NL.properties +24 -96
  43. package/dist/i18n/pl-PL.js +15 -61
  44. package/dist/i18n/pl-PL.properties +24 -96
  45. package/dist/i18n/pt-BR.js +14 -60
  46. package/dist/i18n/pt-BR.properties +24 -96
  47. package/dist/i18n/ru-RU.js +15 -61
  48. package/dist/i18n/ru-RU.properties +24 -96
  49. package/dist/i18n/sv-SE.js +15 -61
  50. package/dist/i18n/sv-SE.properties +24 -96
  51. package/dist/i18n/tr-TR.js +14 -60
  52. package/dist/i18n/tr-TR.properties +24 -96
  53. package/dist/i18n/zh-CN.js +15 -61
  54. package/dist/i18n/zh-CN.properties +24 -96
  55. package/dist/i18n/zh-TW.js +15 -61
  56. package/dist/i18n/zh-TW.properties +24 -96
  57. package/dist/types/lib/stories/shared.d.ts +2 -2
  58. package/dist/types/lib/types.d.ts +2 -2
  59. package/dist/types/lib/utils/validation.d.ts +2 -2
  60. package/package.json +3 -3
@@ -1,13 +1,11 @@
1
- # Notification text when copying the shared link fails
2
- groupSharedFeatures.usm.autoCopyErrorNoticeText = Shared link created. Click Copy to share.
3
- # Notification text when the shared link is successfully copied to clipboard when link is created
4
- groupSharedFeatures.usm.autoCopySuccessNoticeText = 共用的連結已建立並複製到剪貼簿。
1
+ # Notification text when the shared link is failed to be created
2
+ groupSharedFeatures.usm.autoCopySharedLinkErrorNoticeText = 無法建立共用連結。 請稍後再試一次。
5
3
  # Notification text when the shared link failed to be created
6
4
  groupSharedFeatures.usm.createSharedLinkErrorNoticeText = 無法建立共用連結。 請稍後再試一次。
7
5
  # Notification text when the shared link is successfully created
8
- groupSharedFeatures.usm.createSharedLinkSuccessNoticeText = 共用連結已建立
6
+ groupSharedFeatures.usm.createSharedLinkSuccessNoticeText = 已建立共用的連結。
9
7
  # Default error notification text rendered when API fails
10
- groupSharedFeatures.usm.defaultErrorNoticeText = Something went wrong. Please try again later.
8
+ groupSharedFeatures.usm.defaultErrorNoticeText = 發生問題。 請稍後再試一次。
11
9
  # Notification text when the shared link failed to be removed
12
10
  groupSharedFeatures.usm.deleteSharedLinkErrorNoticeText = 無法移除共用連結。 請稍後再試一次。
13
11
  # Notification text when the shared link is successfully removed
@@ -17,7 +15,7 @@ groupSharedFeatures.usm.emailRequiredErrorMessage = 請輸入至少一個有效
17
15
  # Icon label for the error notifications
18
16
  groupSharedFeatures.usm.errorNoticeIcon = 錯誤
19
17
  # Error message for the expiration date field when expiration date is in the past
20
- groupSharedFeatures.usm.expirationFutureDateRequiredErrorMessage = The expiration date must be in the future
18
+ groupSharedFeatures.usm.expirationFutureDateRequiredErrorMessage = 到期日必須為未來的日期
21
19
  # Error message for the expiration date field when expiration date is not provided
22
20
  groupSharedFeatures.usm.expirationRequiredErrorMessage = 請選取日期
23
21
  # Error message for the email field when email is invalid
@@ -49,7 +47,7 @@ groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationCalendarAriaLabel
49
47
  # Aria label for the clear date picker button in the link expiration settings
50
48
  groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationClearDatePickerAriaLabel = 清除日期選擇工具
51
49
  # Label for the date picker in the link expiration settings
52
- groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationDatePickerLabel = 選取日期
50
+ groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationDatePickerLabel = 到期日期
53
51
  # Aria label for the next month button in the link expiration settings
54
52
  groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationNextMonthAriaLabel = 切換至下個月
55
53
  # Aria label for the open calendar dropdown button in the link expiration settings
@@ -60,6 +58,12 @@ groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationPreviousMonthAriaL
60
58
  groupSharedFeatures.usm.sharedLinkSettingsModal.linkExpirationToggleText = 連結失效
61
59
  # Button aria label when the shared link settings are being updated
62
60
  groupSharedFeatures.usm.sharedLinkSettingsModal.loadingLabel = 載入中
61
+ # Placeholder text for the password input
62
+ groupSharedFeatures.usm.sharedLinkSettingsModal.passwordInputPlaceholder = 輸入密碼
63
+ # Label for the password protection toggle
64
+ groupSharedFeatures.usm.sharedLinkSettingsModal.passwordToggleText = 密碼保護
65
+ # Text for the password settings warning
66
+ groupSharedFeatures.usm.sharedLinkSettingsModal.passwordWarningText = 您的密碼至少必須包括 8 個字元,且應至少包含一個大寫字母、數字或特殊字元。
63
67
  # Button text to confirm saving the shared link settings
64
68
  groupSharedFeatures.usm.sharedLinkSettingsModal.saveButton = 儲存
65
69
  # subtitle of the Shared Link settings modal
@@ -152,12 +156,12 @@ groupSharedFeatures.usm.unifiedShareFormModal.ownerRole = 擁有者
152
156
  groupSharedFeatures.usm.unifiedShareFormModal.previewerRole = 預覽者
153
157
  # Label for the role of a collaborator who can preview and upload to the item
154
158
  groupSharedFeatures.usm.unifiedShareFormModal.previewerUploaderRole = 具預覽權限的上傳者
155
- # Text inserted in the access level descriptions when the type of the item is a file
156
- groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.accessLevelFileItem = 檔案
157
- # Text inserted in the access level descriptions when the type of the item is a folder
158
- groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.accessLevelFolderItem = 資料夾
159
- # Text inserted in the access level descriptions when the type of the item is a hub
160
- groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.accessLevelHubsItem = 中樞
159
+ # Notification text when the shared link is successfully copied to clipboard
160
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCopySuccessNoticeText = 共用的連結已複製到剪貼簿。
161
+ # Text for the create and copy shared link notification when copy failed but creation succeeded.
162
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopyErrorNoticeText = 已建立共用的連結。 按一下複製以分享。
163
+ # Notification text when the shared link is successfully copied to clipboard after link is created
164
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.autoCreateCopySuccessNoticeText = 共用的連結已建立並複製到剪貼簿。
161
165
  # Description for the access level where only invited users can access the item
162
166
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.collaboratorsAccessLevelDescription = 只有受邀的人員才能存取此 {item}
163
167
  # Label for the access level where only invited users can access the item
@@ -176,14 +180,18 @@ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.enterpriseAccess
176
180
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconLabel = 有效期限
177
181
  # Tooltip for the icon button to indicate the shared link has an expiration date
178
182
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.expirationIconTooltip = 此連結將在 {expirationDate} 到期且無法存取
183
+ # Text inserted in the access level descriptions when the type of the item is a file
184
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.fileAccessLevelItem = 檔案
185
+ # Text inserted in the access level descriptions when the type of the item is a folder
186
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.folderAccessLevelItem = 資料夾
187
+ # Text inserted in the access level descriptions when the type of the item is a hub
188
+ groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.hubsAccessLevelItem = 中樞
179
189
  # Description for the access level where anyone with the URL can access the item
180
190
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelDescription = 公開供人員存取,不需要登入
181
191
  # Label for the access level where anyone with the URL can access the item
182
192
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.openAccessLevelLabel = 擁有連結的人員
183
193
  # Label for the section to manage the shared link of the file / folder
184
194
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.shareLinkLabel = 共用連結
185
- # Success notification displayed when shared link is created and copied to clipboard
186
- groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkCopiedSuccessNoticeText = 共用的連結已建立並複製到剪貼簿。
187
195
  # Aria label and tooltip for the icon button to email the shared link
188
196
  groupSharedFeatures.usm.unifiedShareFormModal.sharedLinkSection.sharedLinkEmailLabel = 傳送共用的連結
189
197
  # Label for the button link to open the Shared Link Settings modal
@@ -208,83 +216,3 @@ groupSharedFeatures.usm.updateSharedLinkSuccessNoticeText = 您的設定已成
208
216
  groupSharedFeatures.usm.vanityNameInvalidErrorMessage = 自訂 URL 應該在 12-30 個字元之間,且可包含字母、數字和連字號。
209
217
  # Error message for the vanity name field when custom URL is not provided
210
218
  groupSharedFeatures.usm.vanityNameRequiredErrorMessage = 請輸入自訂 URL
211
- # Text displayed when email input is empty
212
- groupSharedFeatures.usmV1.atLeastOneEmailRequired = 請輸入至少一個有效的電子郵件
213
- # Cancel button text
214
- groupSharedFeatures.usmV1.cancel = 取消
215
- # Close button text to close the modal
216
- groupSharedFeatures.usmV1.close = 關閉
217
- # Label for the download settings toggle
218
- groupSharedFeatures.usmV1.downloadSettingsToggleText = 允許擁有共用連結的使用者下載此項目
219
- # Aria label for the email shared link button
220
- groupSharedFeatures.usmV1.emailSharedLinkButtonAriaLabel = 電子郵件共用連結
221
- # Label for the error notification type
222
- groupSharedFeatures.usmV1.errorNoticeAriaLabel = 錯誤
223
- # Text displayed when email input is invalid
224
- groupSharedFeatures.usmV1.invalidEmail = 無效的電子郵件地址
225
- # Label of the field where a user designates who to invite to collaborate on an item
226
- groupSharedFeatures.usmV1.inviteFieldLabel = 邀請人員
227
- # Placeholder text for the invite people combobox
228
- groupSharedFeatures.usmV1.invitePeoplePlaceholder = 新增名稱或電子郵件地址
229
- # Link to the learn more about shared link settings
230
- groupSharedFeatures.usmV1.learnSharedLinkSettingsLink = 深入瞭解共用的連結設定。
231
- # Label for the link expiration toggle
232
- groupSharedFeatures.usmV1.linkExpirationToggleText = 連結失效
233
- # Text for the link settings button
234
- groupSharedFeatures.usmV1.linkSettingsButtonText = 連結設定
235
- # Aria label for loading state
236
- groupSharedFeatures.usmV1.loadingAriaLabel = 正在載入
237
- # Label for "Message" text box to email the shared Link
238
- groupSharedFeatures.usmV1.message = 訊息 (非必填)
239
- # Placeholder text for message section
240
- groupSharedFeatures.usmV1.messageSelectorPlaceholder = 新增訊息
241
- # Title of the Unified Share Modal. {itemName} is the name of the file / folder being shared
242
- groupSharedFeatures.usmV1.modalTitle = 共用『{itemName}』
243
- # Label for the close button in the notification
244
- groupSharedFeatures.usmV1.noticeCloseAriaLabel = 關閉
245
- # Okay button text
246
- groupSharedFeatures.usmV1.okay = 好的
247
- # Text for the notification when shared link removal fails
248
- groupSharedFeatures.usmV1.removeSharedLinkFailedNoticeText = 無法移除共用連結。 請稍後再試一次。
249
- # Body text of the Remove Shared Link modal
250
- groupSharedFeatures.usmV1.removeSharedLinkModalBodyText = 這將永久移除共用的連結。 如果此項目嵌入其他網站,則也會變得無法存取。任何自訂屬性、設定和到期日也會移除。 是否要繼續?
251
- # Title of the Remove Shared Link modal
252
- groupSharedFeatures.usmV1.removeSharedLinkModalTitle = 移除共用的連結
253
- # Text for the notification when shared link is removed
254
- groupSharedFeatures.usmV1.removeSharedLinkSuccessNoticeText = 已成功移除「{itemName}」的共用連結。
255
- # Send button text
256
- groupSharedFeatures.usmV1.send = 傳送
257
- # Aria label for send button when sending invites
258
- groupSharedFeatures.usmV1.sendingInvites = 正在傳送邀請
259
- # Subtitle of the Shared Link settings modal
260
- groupSharedFeatures.usmV1.shareLinkSettingsModalSubTitleText = 此內容可供您公司中任何有此連結的人使用,且可檢視或下載。{learnSharedLinkSettingsLink}
261
- # Title of the Shared Link settings modal
262
- groupSharedFeatures.usmV1.shareLinkSettingsModalTitle = 共用的連結設定
263
- # Success notification displayed when shared link is created and copied to clipboard
264
- groupSharedFeatures.usmV1.sharedLinkCopiedSuccessNoticeText = 共用的連結已建立並複製到剪貼簿。
265
- # Label for the copy input field
266
- groupSharedFeatures.usmV1.sharedLinkCopyInputLabel = 複製共享連結至剪貼簿
267
- # Text for the notification when shared link is created
268
- groupSharedFeatures.usmV1.sharedLinkCreatedSuccessNoticeText = 共用連結已建立
269
- # Text for the notification when shared link creation fails
270
- groupSharedFeatures.usmV1.sharedLinkCreationFailedNoticeText = 無法建立共用連結。 請稍後再試一次。
271
- # This tooltip appears over the shared link toggle, explaining what happens when it is clicked
272
- groupSharedFeatures.usmV1.sharedLinkDisabledTooltip = 建立與複製連結
273
- # Label for share link toggle
274
- groupSharedFeatures.usmV1.sharedLinkToggleLabel = 共用連結
275
- # Label for share link toggle
276
- groupSharedFeatures.usmV1.sharedLinkToggleText = 共用的連結
277
- # Label for the success notification type
278
- groupSharedFeatures.usmV1.successNoticeAriaLabel = 成功
279
- # Text for the vanity domain settings warning
280
- groupSharedFeatures.usmV1.vanityDomainSettingsWarningText = 在共用機密內容時不應使用自訂 URL。
281
- # Label for the vanity name input
282
- groupSharedFeatures.usmV1.vanityNameInputLabel = 虛名輸入
283
- # Placeholder text for the vanity name input
284
- groupSharedFeatures.usmV1.vanityNameInputPlaceholder = 輸入自訂路徑 (12 或更多個字元)
285
- # Text for the vanity name invalid error
286
- groupSharedFeatures.usmV1.vanityNameInvalidError = 自訂 URL 應該在 12-30 個字元之間,且可包含字母、數字和連字號。
287
- # Label for the vanity name toggle
288
- groupSharedFeatures.usmV1.vanityNameToggleText = 以自訂非私人 URL 廣泛發佈內容
289
- # Label for the warning notification icon
290
- groupSharedFeatures.usmV1.warningNoticeIconAriaLabel = 警告圖示標籤
@@ -1,7 +1,7 @@
1
1
  import { UserContactType } from '@box/user-selector';
2
2
  import { UnifiedShareModalContextValue } from '../contexts';
3
3
  import { UnifiedShareModalProps } from '../unified-share-modal';
4
- import { CollaborationRole, Collaborator, Configuration, Item, SharedLink, SharedLinkPermissions } from '../types';
4
+ import { CollaborationRole, Collaborator, Configuration, Item, SharedLink, SharedLinkSettings } from '../types';
5
5
  export declare const mockCollaborationRoles: CollaborationRole[];
6
6
  export declare const mockCollaborators: Collaborator[];
7
7
  export declare const mockCollaboratorsExtended: Collaborator[];
@@ -13,7 +13,7 @@ export declare const mockContactService: {
13
13
  };
14
14
  export declare const mockBoxFile: Item;
15
15
  export declare const mockBoxFolder: Item;
16
- export declare const mockSharedLinkPermissions: SharedLinkPermissions;
16
+ export declare const mockSharedLinkSettings: SharedLinkSettings;
17
17
  export declare const mockSharedLink: SharedLink;
18
18
  export declare const useMockSharedLink: (sharedLinkArg: any) => {
19
19
  sharedLink: SharedLink;
@@ -95,7 +95,7 @@ export interface Enterprise {
95
95
  */
96
96
  name?: string;
97
97
  }
98
- export interface SharedLinkPermissions {
98
+ export interface SharedLinkSettings {
99
99
  canChangeDownload?: boolean;
100
100
  canChangeExpiration?: boolean;
101
101
  canChangePassword?: boolean;
@@ -110,7 +110,7 @@ export interface SharedLink {
110
110
  access?: AccessLevelType;
111
111
  accessLevels?: (AccessLevel | AccessLevelType)[];
112
112
  expiresAt?: number;
113
- permissions?: SharedLinkPermissions;
113
+ settings?: SharedLinkSettings;
114
114
  url: string;
115
115
  vanityDomain?: string;
116
116
  vanityName?: string;
@@ -4,9 +4,9 @@ export declare const doesPasswordContainMinCharacters: (password: string) => boo
4
4
  export declare const doesPasswordContainNumber: (password: string) => boolean;
5
5
  export declare const doesPasswordContainSymbol: (password: string) => boolean;
6
6
  export declare const doesPasswordContainLetter: (password: string) => boolean;
7
- export declare const isPasswordMixedCase: (password: string) => boolean;
7
+ export declare const doesPasswordContainMixedCase: (password: string) => boolean;
8
8
  export declare const doesPasswordContainInvalidCharacter: (password: string) => boolean;
9
- export declare const getSharedLinkFormValidation: (permissions: any, formData: any, initialFormData: any) => {
9
+ export declare const getSharedLinkFormValidation: (settings: any, formData: any, initialFormData: any) => {
10
10
  updatedFormData: {
11
11
  updatedExpiration: any;
12
12
  updatedPassword: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "0.46.1",
3
+ "version": "0.47.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@box/blueprint-web": "^9.18.13",
@@ -13,9 +13,9 @@
13
13
  "react-intl": "^6.4.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@box/blueprint-web": "^12.69.2",
16
+ "@box/blueprint-web": "^12.70.0",
17
17
  "@box/blueprint-web-assets": "^4.67.0",
18
- "@box/copy-input": "^0.21.15",
18
+ "@box/copy-input": "^0.22.1",
19
19
  "@box/storybook-utils": "0.14.3",
20
20
  "@box/eslint-plugin-blueprint": "1.0.4",
21
21
  "react-intl": "^6.4.2"