Skip to content

Commit 3017b99

Browse files
committed
PREAPPS-7343: changed build-shim file to export components and functions for zimlet
1 parent d392214 commit 3017b99

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

build-shims.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ mockery.registerMock('@zimbra-client/util', {
2929
zimletEventEmitter: 1,
3030
smimeHandler: 1,
3131
isServerSMIMEFeatureAvailable: 1,
32-
htmlToText: 1
32+
htmlToText: 1,
33+
flattenFolders: 1
3334
});
3435

3536
mockery.registerMock('@zimbra-client/browser', {
@@ -82,6 +83,7 @@ mockery.registerMock('@zimbra-client/graphql', {
8283
withTagCreate: 1,
8384
withTagAction: 1,
8485
SearchFragment: 1,
86+
GetFolder: 1,
8587
SendShareNotificationMutation: 1,
8688
SetMailboxMetadataMutation: 1,
8789
withDataSources: 1,
@@ -104,6 +106,7 @@ mockery.registerMock('@zimbra-client/constants', {
104106
PARTICIPATION_STATUS: 1,
105107
supportedMimes: 1,
106108
ZIMBRA_ZIMLET_EVENTS: 1,
109+
USER_FOLDER_IDS: 1
107110
});
108111

109112
mockery.registerMock('@zimbra-client/hooks', {
@@ -119,7 +122,8 @@ mockery.registerMock('@zimbra-client/hooks/graphql', {
119122
useAccountInfo: 1,
120123
useDocumentAction: 1,
121124
useBriefcaseFoldersQuery: 1,
122-
useSaveDocumentMutation: 1
125+
useSaveDocumentMutation: 1,
126+
useCreateFolderMutation: 1
123127
});
124128

125129
mockery.registerMock('@zimbra-client/blocks', {
@@ -201,7 +205,8 @@ mockery.registerMock('@zimbra-client/components', {
201205
SMIMEOperationDropDown: 1,
202206
ErrorAlert: 1,
203207
SignatureBox: 1,
204-
DeleteWrapper: 1
208+
DeleteWrapper: 1,
209+
ToolbarActionButton: 1
205210
});
206211

207212
mockery.registerMock('@zimbra-client/errors', {

src/shims/@zimbra-client/components/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ export const SMIMEOperationDropDown = wrap('SMIMEOperationDropDown');
5858
export const ErrorAlert = wrap('ErrorAlert');
5959
export const SignatureBox = wrap('SignatureBox');
6060
export const DeleteWrapper = wrap('DeleteWrapper');
61+
export const ToolbarActionButton = wrap('ToolbarActionButton');
6162

6263
export default global.shims['@zimbra-client/components'];

src/shims/@zimbra-client/constants/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export const ATTENDEE_ROLE = wrap('ATTENDEE_ROLE');
1111
export const PARTICIPATION_STATUS = wrap('PARTICIPATION_STATUS');
1212
export const supportedMimes = wrap('supportedMimes');
1313
export const ZIMBRA_ZIMLET_EVENTS = wrap('ZIMBRA_ZIMLET_EVENTS');
14+
export const USER_FOLDER_IDS = wrap('USER_FOLDER_IDS');
1415

1516
export default global.shims['@zimbra-client/constants'];

src/shims/@zimbra-client/graphql/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const withTags = wrap('withTags');
3131
export const withTagCreate = wrap('withTagCreate');
3232
export const withTagAction = wrap('withTagAction');
3333
export const SearchFragment = wrap('SearchFragment');
34+
export const GetFolder = wrap('GetFolder');
3435
export const SendShareNotificationMutation = wrap('SendShareNotificationMutation');
3536
export const SetMailboxMetadataMutation = wrap('SetMailboxMetadataMutation');
3637
export const withDataSources = wrap('withDataSources');

src/shims/@zimbra-client/hooks/graphql/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ export const useAccountInfo = wrap('useAccountInfo');
1212
export const useDocumentAction = wrap('useDocumentAction');
1313
export const useBriefcaseFoldersQuery = wrap('useBriefcaseFoldersQuery');
1414
export const useSaveDocumentMutation = wrap('useSaveDocumentMutation');
15+
export const useCreateFolderMutation = wrap('useCreateFolderMutation');
1516

1617
export default global.shims['@zimbra-client/hooks/graphql'];

src/shims/@zimbra-client/util/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ export const zimletEventEmitter = wrap('zimletEventEmitter');
1818
export const smimeHandler = wrap('smimeHandler');
1919
export const isServerSMIMEFeatureAvailable = wrap('isServerSMIMEFeatureAvailable');
2020
export const htmlToText = wrap('htmlToText');
21+
export const flattenFolders = wrap('flattenFolders');
2122

2223
export default global.shims['@zimbra-client/util'];

0 commit comments

Comments
 (0)