Skip to content

Commit 7916c31

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

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

build-shims.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ mockery.registerMock('@zimbra-client/util', {
2929
zimletEventEmitter: 1,
3030
smimeHandler: 1,
3131
isServerSMIMEFeatureAvailable: 1,
32-
htmlToText: 1
32+
htmlToText: 1,
33+
hasBit: 1,
34+
getAllowedMailItemActions: 1,
35+
flattenFolders: 1
3336
});
3437

3538
mockery.registerMock('@zimbra-client/browser', {
@@ -104,6 +107,7 @@ mockery.registerMock('@zimbra-client/constants', {
104107
PARTICIPATION_STATUS: 1,
105108
supportedMimes: 1,
106109
ZIMBRA_ZIMLET_EVENTS: 1,
110+
USER_FOLDER_IDS: 1
107111
});
108112

109113
mockery.registerMock('@zimbra-client/hooks', {
@@ -119,7 +123,8 @@ mockery.registerMock('@zimbra-client/hooks/graphql', {
119123
useAccountInfo: 1,
120124
useDocumentAction: 1,
121125
useBriefcaseFoldersQuery: 1,
122-
useSaveDocumentMutation: 1
126+
useSaveDocumentMutation: 1,
127+
useCreateFolderHandlerMutation: 1
123128
});
124129

125130
mockery.registerMock('@zimbra-client/blocks', {
@@ -201,7 +206,8 @@ mockery.registerMock('@zimbra-client/components', {
201206
SMIMEOperationDropDown: 1,
202207
ErrorAlert: 1,
203208
SignatureBox: 1,
204-
DeleteWrapper: 1
209+
DeleteWrapper: 1,
210+
ToolbarActionButton: 1
205211
});
206212

207213
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/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 useCreateFolderHandlerMutation = wrap('useCreateFolderHandlerMutation');
1516

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ 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 hasBit = wrap('hasBit');
22+
export const getAllowedMailItemActions = wrap('getAllowedMailItemActions');
23+
export const flattenFolders = wrap('flattenFolders');
2124

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

0 commit comments

Comments
 (0)