box-ui-elements 15.1.0-beta.10 → 15.1.0-beta.13
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/DEVELOPING.md +1 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +13 -13
- package/dist/openwith.js +3 -3
- package/dist/picker.js +6 -6
- package/dist/preview.css +1 -1
- package/dist/preview.js +15 -15
- package/dist/sharing.js +5 -5
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +16 -16
- package/dist/uploader.js +4 -4
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +2 -3
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +2 -3
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +4 -12
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +3 -16
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +0 -5
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +13 -28
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +8 -32
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/messages.js +0 -4
- package/es/elements/content-sidebar/versions/messages.js.flow +0 -5
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +1 -3
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +16 -20
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/flowTypes.js.flow +0 -2
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/i18n/bn-IN.js +0 -1
- package/i18n/bn-IN.properties +0 -2
- package/i18n/da-DK.js +0 -1
- package/i18n/da-DK.properties +0 -2
- package/i18n/de-DE.js +0 -1
- package/i18n/de-DE.properties +0 -2
- package/i18n/en-AU.js +0 -1
- package/i18n/en-AU.properties +0 -2
- package/i18n/en-CA.js +0 -1
- package/i18n/en-CA.properties +0 -2
- package/i18n/en-GB.js +0 -1
- package/i18n/en-GB.properties +0 -2
- package/i18n/en-US.js +0 -1
- package/i18n/en-US.properties +0 -2
- package/i18n/en-x-pseudo.js +842 -843
- package/i18n/en-x-pseudo.properties +853 -831
- package/i18n/es-419.js +0 -1
- package/i18n/es-419.properties +0 -2
- package/i18n/es-ES.js +0 -1
- package/i18n/es-ES.properties +0 -2
- package/i18n/fi-FI.js +0 -1
- package/i18n/fi-FI.properties +0 -2
- package/i18n/fr-CA.js +0 -1
- package/i18n/fr-CA.properties +0 -2
- package/i18n/fr-FR.js +0 -1
- package/i18n/fr-FR.properties +0 -2
- package/i18n/hi-IN.js +0 -1
- package/i18n/hi-IN.properties +0 -2
- package/i18n/it-IT.js +0 -1
- package/i18n/it-IT.properties +0 -2
- package/i18n/ja-JP.js +0 -1
- package/i18n/ja-JP.properties +0 -2
- package/i18n/ko-KR.js +0 -1
- package/i18n/ko-KR.properties +0 -2
- package/i18n/nb-NO.js +0 -1
- package/i18n/nb-NO.properties +0 -2
- package/i18n/nl-NL.js +0 -1
- package/i18n/nl-NL.properties +0 -2
- package/i18n/pl-PL.js +0 -1
- package/i18n/pl-PL.properties +0 -2
- package/i18n/pt-BR.js +0 -1
- package/i18n/pt-BR.properties +0 -2
- package/i18n/ru-RU.js +0 -1
- package/i18n/ru-RU.properties +0 -2
- package/i18n/sv-SE.js +0 -1
- package/i18n/sv-SE.properties +0 -2
- package/i18n/tr-TR.js +0 -1
- package/i18n/tr-TR.properties +0 -2
- package/i18n/zh-CN.js +0 -1
- package/i18n/zh-CN.properties +0 -2
- package/i18n/zh-TW.js +0 -1
- package/i18n/zh-TW.properties +0 -2
- package/package.json +2 -2
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +2 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +3 -16
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +0 -5
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +8 -32
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +1 -18
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +1 -26
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +13 -47
- package/src/elements/content-sidebar/versions/messages.js +0 -5
- package/src/features/unified-share-modal/UnifiedShareForm.js +16 -20
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +0 -12
- package/src/features/unified-share-modal/flowTypes.js +0 -2
|
@@ -1,74 +1,40 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`elements/content-sidebar/versions/VersionsSidebarContainer handleFetchError should create StaticVersionSidebar if
|
|
3
|
+
exports[`elements/content-sidebar/versions/VersionsSidebarContainer handleFetchError should create StaticVersionSidebar if onUpgradeClick is present 1`] = `
|
|
4
4
|
<StaticVersionsSidebar
|
|
5
5
|
error={
|
|
6
6
|
Object {
|
|
7
|
-
"defaultMessage": "
|
|
8
|
-
"id": "be.sidebarVersions.
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
errorTitle={
|
|
12
|
-
Object {
|
|
13
|
-
"defaultMessage": "You don't have access to versioning",
|
|
14
|
-
"id": "be.sidebarVersions.accessError",
|
|
7
|
+
"defaultMessage": "File versions could not be retrieved.",
|
|
8
|
+
"id": "be.sidebarVersions.fetchError",
|
|
15
9
|
}
|
|
16
10
|
}
|
|
17
11
|
isLoading={false}
|
|
18
12
|
isWatermarked={false}
|
|
19
13
|
onUpgradeClick={[Function]}
|
|
20
14
|
parentName=""
|
|
21
|
-
showUpsellWithPicture={false}
|
|
22
15
|
versionCount={0}
|
|
23
16
|
versionLimit={Infinity}
|
|
24
17
|
versions={Array []}
|
|
25
18
|
/>
|
|
26
19
|
`;
|
|
27
20
|
|
|
28
|
-
exports[`elements/content-sidebar/versions/VersionsSidebarContainer handleFetchError should
|
|
29
|
-
<
|
|
30
|
-
error={
|
|
31
|
-
Object {
|
|
32
|
-
"defaultMessage": "Sorry, version history is not available with your current account plan. To access versioning, select from one of our paid plans.",
|
|
33
|
-
"id": "be.sidebarVersions.notAvailable",
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
errorTitle={
|
|
37
|
-
Object {
|
|
38
|
-
"defaultMessage": "You don't have access to versioning",
|
|
39
|
-
"id": "be.sidebarVersions.accessError",
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
isLoading={false}
|
|
43
|
-
isWatermarked={false}
|
|
44
|
-
onUpgradeClick={[Function]}
|
|
45
|
-
parentName=""
|
|
46
|
-
showUpsellWithPicture={true}
|
|
47
|
-
versionCount={0}
|
|
48
|
-
versionLimit={Infinity}
|
|
49
|
-
versions={Array []}
|
|
50
|
-
/>
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
exports[`elements/content-sidebar/versions/VersionsSidebarContainer handleFetchError should set state to default values with error upsell message if onUpgradeClick is set 1`] = `
|
|
54
|
-
<StaticVersionsSidebar
|
|
21
|
+
exports[`elements/content-sidebar/versions/VersionsSidebarContainer handleFetchError should set state to default values with error message 1`] = `
|
|
22
|
+
<VersionsSidebar
|
|
55
23
|
error={
|
|
56
24
|
Object {
|
|
57
|
-
"defaultMessage": "
|
|
58
|
-
"id": "be.sidebarVersions.
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
errorTitle={
|
|
62
|
-
Object {
|
|
63
|
-
"defaultMessage": "You don't have access to versioning",
|
|
64
|
-
"id": "be.sidebarVersions.accessError",
|
|
25
|
+
"defaultMessage": "File versions could not be retrieved.",
|
|
26
|
+
"id": "be.sidebarVersions.fetchError",
|
|
65
27
|
}
|
|
66
28
|
}
|
|
29
|
+
fileId="12345"
|
|
67
30
|
isLoading={false}
|
|
68
31
|
isWatermarked={false}
|
|
69
|
-
|
|
32
|
+
onDelete={[Function]}
|
|
33
|
+
onDownload={[Function]}
|
|
34
|
+
onPreview={[Function]}
|
|
35
|
+
onPromote={[Function]}
|
|
36
|
+
onRestore={[Function]}
|
|
70
37
|
parentName=""
|
|
71
|
-
showUpsellWithPicture={false}
|
|
72
38
|
versionCount={0}
|
|
73
39
|
versionLimit={Infinity}
|
|
74
40
|
versions={Array []}
|
|
@@ -147,11 +147,6 @@ const messages = defineMessages({
|
|
|
147
147
|
defaultMessage: 'Server Error',
|
|
148
148
|
description: 'Heading for inline error messages displayed due to a remote server issue.',
|
|
149
149
|
},
|
|
150
|
-
versionAccessError: {
|
|
151
|
-
id: 'be.sidebarVersions.accessError',
|
|
152
|
-
defaultMessage: "You don't have access to versioning",
|
|
153
|
-
description: 'Heading for inline error messages with upsell.',
|
|
154
|
-
},
|
|
155
150
|
versionUpgradeLink: {
|
|
156
151
|
id: 'be.sidebarVersions.upgradeLink',
|
|
157
152
|
defaultMessage: 'Upgrade Now',
|
|
@@ -575,32 +575,28 @@ class UnifiedShareForm extends React.Component<USFProps, State> {
|
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
renderUpgradeLinkDescription() {
|
|
578
|
-
const { openUpgradePlanModal = () => {},
|
|
578
|
+
const { openUpgradePlanModal = () => {}, trackingProps = {} } = this.props;
|
|
579
579
|
const { inviteCollabsEmailTracking = {} } = trackingProps;
|
|
580
580
|
const { upgradeLinkProps = {} } = inviteCollabsEmailTracking;
|
|
581
581
|
|
|
582
582
|
return (
|
|
583
583
|
<div className="upgrade-description">
|
|
584
584
|
<UpgradeBadge />
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}}
|
|
601
|
-
{...messages.upgradeGetMoreAccessControlsDescription}
|
|
602
|
-
/>
|
|
603
|
-
)}
|
|
585
|
+
<FormattedMessage
|
|
586
|
+
values={{
|
|
587
|
+
upgradeGetMoreAccessControlsLink: (
|
|
588
|
+
<PlainButton
|
|
589
|
+
className="upgrade-link"
|
|
590
|
+
onClick={openUpgradePlanModal}
|
|
591
|
+
type="button"
|
|
592
|
+
{...upgradeLinkProps}
|
|
593
|
+
>
|
|
594
|
+
<FormattedMessage {...messages.upgradeGetMoreAccessControlsLink} />
|
|
595
|
+
</PlainButton>
|
|
596
|
+
),
|
|
597
|
+
}}
|
|
598
|
+
{...messages.upgradeGetMoreAccessControlsDescription}
|
|
599
|
+
/>
|
|
604
600
|
</div>
|
|
605
601
|
);
|
|
606
602
|
}
|
|
@@ -215,18 +215,6 @@ describe('features/unified-share-modal/UnifiedShareForm', () => {
|
|
|
215
215
|
expect(wrapper.exists('UpgradeBadge')).toBe(true);
|
|
216
216
|
});
|
|
217
217
|
|
|
218
|
-
test('should render correct copy of upgrade CTA when showUpgradeOptions and showNewUpgradeText is enabled', () => {
|
|
219
|
-
const wrapper = getWrapper({
|
|
220
|
-
canInvite: true,
|
|
221
|
-
isFetching: false,
|
|
222
|
-
showNewUpgradeText: true,
|
|
223
|
-
showUpgradeOptions: true,
|
|
224
|
-
});
|
|
225
|
-
expect(wrapper.exists('UpgradeBadge')).toBe(true);
|
|
226
|
-
const msg = wrapper.find('FormattedCompMessage');
|
|
227
|
-
expect(msg.prop('id')).toEqual('boxui.unifiedShare.upgradeCollaboratorAccessDescription');
|
|
228
|
-
});
|
|
229
|
-
|
|
230
218
|
test('should render correct upgrade inline notice when showUpgradeInlineNotice and showUpgradeOptions is enabled', () => {
|
|
231
219
|
const wrapper = getWrapper({
|
|
232
220
|
canInvite: true,
|
|
@@ -393,8 +393,6 @@ export type USFProps = BaseUnifiedShareProps & {
|
|
|
393
393
|
sharedLinkLoaded: boolean,
|
|
394
394
|
/** Whether the FTUX tooltip should be rendered */
|
|
395
395
|
shouldRenderFTUXTooltip: boolean,
|
|
396
|
-
/** Whether the new upgrade text should be rendered */
|
|
397
|
-
showNewUpgradeText?: boolean,
|
|
398
396
|
/** Whether the upgrade inline notice should be rendered */
|
|
399
397
|
showUpgradeInlineNotice?: boolean,
|
|
400
398
|
};
|