Skip to content

Commit

Permalink
PREAPPS-7343: changed build-shim file to export components and functi…
Browse files Browse the repository at this point in the history
…ons for zimlet
  • Loading branch information
lavegupta committed Jul 5, 2023
1 parent d392214 commit 3017b99
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ mockery.registerMock('@zimbra-client/util', {
zimletEventEmitter: 1,
smimeHandler: 1,
isServerSMIMEFeatureAvailable: 1,
htmlToText: 1
htmlToText: 1,
flattenFolders: 1
});

mockery.registerMock('@zimbra-client/browser', {
Expand Down Expand Up @@ -82,6 +83,7 @@ mockery.registerMock('@zimbra-client/graphql', {
withTagCreate: 1,
withTagAction: 1,
SearchFragment: 1,
GetFolder: 1,
SendShareNotificationMutation: 1,
SetMailboxMetadataMutation: 1,
withDataSources: 1,
Expand All @@ -104,6 +106,7 @@ mockery.registerMock('@zimbra-client/constants', {
PARTICIPATION_STATUS: 1,
supportedMimes: 1,
ZIMBRA_ZIMLET_EVENTS: 1,
USER_FOLDER_IDS: 1
});

mockery.registerMock('@zimbra-client/hooks', {
Expand All @@ -119,7 +122,8 @@ mockery.registerMock('@zimbra-client/hooks/graphql', {
useAccountInfo: 1,
useDocumentAction: 1,
useBriefcaseFoldersQuery: 1,
useSaveDocumentMutation: 1
useSaveDocumentMutation: 1,
useCreateFolderMutation: 1
});

mockery.registerMock('@zimbra-client/blocks', {
Expand Down Expand Up @@ -201,7 +205,8 @@ mockery.registerMock('@zimbra-client/components', {
SMIMEOperationDropDown: 1,
ErrorAlert: 1,
SignatureBox: 1,
DeleteWrapper: 1
DeleteWrapper: 1,
ToolbarActionButton: 1
});

mockery.registerMock('@zimbra-client/errors', {
Expand Down
1 change: 1 addition & 0 deletions src/shims/@zimbra-client/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ export const SMIMEOperationDropDown = wrap('SMIMEOperationDropDown');
export const ErrorAlert = wrap('ErrorAlert');
export const SignatureBox = wrap('SignatureBox');
export const DeleteWrapper = wrap('DeleteWrapper');
export const ToolbarActionButton = wrap('ToolbarActionButton');

export default global.shims['@zimbra-client/components'];
1 change: 1 addition & 0 deletions src/shims/@zimbra-client/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export const ATTENDEE_ROLE = wrap('ATTENDEE_ROLE');
export const PARTICIPATION_STATUS = wrap('PARTICIPATION_STATUS');
export const supportedMimes = wrap('supportedMimes');
export const ZIMBRA_ZIMLET_EVENTS = wrap('ZIMBRA_ZIMLET_EVENTS');
export const USER_FOLDER_IDS = wrap('USER_FOLDER_IDS');

export default global.shims['@zimbra-client/constants'];
1 change: 1 addition & 0 deletions src/shims/@zimbra-client/graphql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const withTags = wrap('withTags');
export const withTagCreate = wrap('withTagCreate');
export const withTagAction = wrap('withTagAction');
export const SearchFragment = wrap('SearchFragment');
export const GetFolder = wrap('GetFolder');
export const SendShareNotificationMutation = wrap('SendShareNotificationMutation');
export const SetMailboxMetadataMutation = wrap('SetMailboxMetadataMutation');
export const withDataSources = wrap('withDataSources');
Expand Down
1 change: 1 addition & 0 deletions src/shims/@zimbra-client/hooks/graphql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export const useAccountInfo = wrap('useAccountInfo');
export const useDocumentAction = wrap('useDocumentAction');
export const useBriefcaseFoldersQuery = wrap('useBriefcaseFoldersQuery');
export const useSaveDocumentMutation = wrap('useSaveDocumentMutation');
export const useCreateFolderMutation = wrap('useCreateFolderMutation');

export default global.shims['@zimbra-client/hooks/graphql'];
1 change: 1 addition & 0 deletions src/shims/@zimbra-client/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ export const zimletEventEmitter = wrap('zimletEventEmitter');
export const smimeHandler = wrap('smimeHandler');
export const isServerSMIMEFeatureAvailable = wrap('isServerSMIMEFeatureAvailable');
export const htmlToText = wrap('htmlToText');
export const flattenFolders = wrap('flattenFolders');

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

0 comments on commit 3017b99

Please sign in to comment.