@zimbra/zimlet-cli 15.1.0 → 16.1.0

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 (46) hide show
  1. package/.eslintrc.js +15 -0
  2. package/dist/cli.js +9 -10
  3. package/dist/commands/create.js +43 -83
  4. package/dist/commands/package.js +10 -42
  5. package/dist/entry.js +5 -7
  6. package/dist/index.js +67 -91
  7. package/dist/lib/async-command.js +2 -6
  8. package/dist/lib/setup.js +3 -12
  9. package/dist/lib/webpack/transform-config.js +0 -11
  10. package/dist/shims/@apollo/client/index.js +66 -120
  11. package/dist/shims/@apollo/client/react/components/index.js +5 -11
  12. package/dist/shims/@apollo/client/react/hoc/index.js +7 -15
  13. package/dist/shims/@apollo/client/react/index.js +15 -31
  14. package/dist/shims/@zimbra-client/blocks/index.js +27 -55
  15. package/dist/shims/@zimbra-client/browser/index.js +3 -7
  16. package/dist/shims/@zimbra-client/components/index.js +53 -107
  17. package/dist/shims/@zimbra-client/constants/index.js +6 -13
  18. package/dist/shims/@zimbra-client/enhancers/index.js +9 -19
  19. package/dist/shims/@zimbra-client/errors/index.js +4 -9
  20. package/dist/shims/@zimbra-client/graphql/index.js +31 -63
  21. package/dist/shims/@zimbra-client/hooks/graphql/index.js +7 -15
  22. package/dist/shims/@zimbra-client/hooks/index.js +7 -15
  23. package/dist/shims/@zimbra-client/platform/index.js +4 -9
  24. package/dist/shims/@zimbra-client/util/contacts/index.js +3 -7
  25. package/dist/shims/@zimbra-client/util/index.js +13 -27
  26. package/dist/shims/@zimbra-client/util/redux/index.js +7 -15
  27. package/dist/shims/dompurify/index.js +5 -11
  28. package/dist/shims/index.js +3 -4
  29. package/dist/shims/moment/index.js +42 -85
  30. package/dist/shims/preact/compat/index.js +47 -82
  31. package/dist/shims/preact/hooks/index.js +15 -28
  32. package/dist/shims/preact/index.js +14 -29
  33. package/dist/shims/preact/jsx-runtime/index.js +20 -0
  34. package/dist/shims/preact-context-provider/index.js +5 -13
  35. package/dist/shims/preact-i18n/index.js +11 -25
  36. package/dist/shims/preact-pwa-install/index.js +2 -6
  37. package/dist/shims/preact-render-to-string/index.js +4 -9
  38. package/dist/shims/preact-router/index.js +8 -17
  39. package/dist/shims/preact-router/match/index.js +3 -7
  40. package/dist/shims/react-redux/index.js +14 -30
  41. package/dist/shims/recompose/index.js +45 -91
  42. package/dist/shims/redux-actions/index.js +8 -17
  43. package/dist/util.js +0 -15
  44. package/dist/zimlet-style-loader.js +2 -11
  45. package/package-lock.json +4526 -9373
  46. package/package.json +42 -46
@@ -4,74 +4,42 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.withTags = exports.withTagCreate = exports.withTagAction = exports.withSetCustomMetaData = exports.withSearch = exports.withSaveSmimeCertificate = exports.withPreference = exports.withIdentities = exports.withGetSmimeCertificateInfo = exports.withGetCustomMetaData = exports.withDataSources = exports.withCreateContact = exports.withCreateCalendar = exports.withCreateAppointment = exports.withContactAction = exports.withCalendars = exports.withActionMutation = exports.withAccountInfo = exports.modifyFilterRules = exports.default = exports.cloneWithoutTypeName = exports.SetMailboxMetadataMutation = exports.SendShareNotificationMutation = exports.SearchFragment = exports.GetMailboxMetadataQuery = exports.GetFilterRules = exports.GetDocumentShareURLQuery = exports.CalendarsAndAppointmentsQuery = exports.CalendarCreateMutation = exports.AppointmentsQuery = void 0;
7
-
8
7
  var _ = require("../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/graphql" in the webpack config.
11
9
  * When components import '@zimbra-client/graphql', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/graphql'], '@zimbra-client/graphql');
17
14
 
18
- const AppointmentsQuery = wrap('AppointmentsQuery');
19
- exports.AppointmentsQuery = AppointmentsQuery;
20
- const CalendarsAndAppointmentsQuery = wrap('CalendarsAndAppointmentsQuery');
21
- exports.CalendarsAndAppointmentsQuery = CalendarsAndAppointmentsQuery;
22
- const GetDocumentShareURLQuery = wrap('GetDocumentShareURLQuery');
23
- exports.GetDocumentShareURLQuery = GetDocumentShareURLQuery;
24
- const GetMailboxMetadataQuery = wrap('GetMailboxMetadataQuery');
25
- exports.GetMailboxMetadataQuery = GetMailboxMetadataQuery;
26
- const GetFilterRules = wrap('GetFilterRules');
27
- exports.GetFilterRules = GetFilterRules;
28
- const modifyFilterRules = wrap('modifyFilterRules');
29
- exports.modifyFilterRules = modifyFilterRules;
30
- const cloneWithoutTypeName = wrap('cloneWithoutTypeName');
31
- exports.cloneWithoutTypeName = cloneWithoutTypeName;
32
- const withCreateAppointment = wrap('withCreateAppointment');
33
- exports.withCreateAppointment = withCreateAppointment;
34
- const withCalendars = wrap('withCalendars');
35
- exports.withCalendars = withCalendars;
36
- const withSearch = wrap('withSearch');
37
- exports.withSearch = withSearch;
38
- const withAccountInfo = wrap('withAccountInfo');
39
- exports.withAccountInfo = withAccountInfo;
40
- const withPreference = wrap('withPreference');
41
- exports.withPreference = withPreference;
42
- const withIdentities = wrap('withIdentities');
43
- exports.withIdentities = withIdentities;
44
- const withCreateContact = wrap('withCreateContact');
45
- exports.withCreateContact = withCreateContact;
46
- const withContactAction = wrap('withContactAction');
47
- exports.withContactAction = withContactAction;
48
- const CalendarCreateMutation = wrap('CalendarCreateMutation');
49
- exports.CalendarCreateMutation = CalendarCreateMutation;
50
- const withCreateCalendar = wrap('withCreateCalendar');
51
- exports.withCreateCalendar = withCreateCalendar;
52
- const withSetCustomMetaData = wrap('withSetCustomMetaData');
53
- exports.withSetCustomMetaData = withSetCustomMetaData;
54
- const withGetCustomMetaData = wrap('withGetCustomMetaData');
55
- exports.withGetCustomMetaData = withGetCustomMetaData;
56
- const withActionMutation = wrap('withActionMutation');
57
- exports.withActionMutation = withActionMutation;
58
- const withTags = wrap('withTags');
59
- exports.withTags = withTags;
60
- const withTagCreate = wrap('withTagCreate');
61
- exports.withTagCreate = withTagCreate;
62
- const withTagAction = wrap('withTagAction');
63
- exports.withTagAction = withTagAction;
64
- const SearchFragment = wrap('SearchFragment');
65
- exports.SearchFragment = SearchFragment;
66
- const SendShareNotificationMutation = wrap('SendShareNotificationMutation');
67
- exports.SendShareNotificationMutation = SendShareNotificationMutation;
68
- const SetMailboxMetadataMutation = wrap('SetMailboxMetadataMutation');
69
- exports.SetMailboxMetadataMutation = SetMailboxMetadataMutation;
70
- const withDataSources = wrap('withDataSources');
71
- exports.withDataSources = withDataSources;
72
- const withGetSmimeCertificateInfo = wrap('withGetSmimeCertificateInfo');
73
- exports.withGetSmimeCertificateInfo = withGetSmimeCertificateInfo;
74
- const withSaveSmimeCertificate = wrap('withSaveSmimeCertificate');
75
- exports.withSaveSmimeCertificate = withSaveSmimeCertificate;
76
- var _default = global.shims['@zimbra-client/graphql'];
77
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/graphql'], '@zimbra-client/graphql');
16
+ const AppointmentsQuery = exports.AppointmentsQuery = wrap('AppointmentsQuery');
17
+ const CalendarsAndAppointmentsQuery = exports.CalendarsAndAppointmentsQuery = wrap('CalendarsAndAppointmentsQuery');
18
+ const GetDocumentShareURLQuery = exports.GetDocumentShareURLQuery = wrap('GetDocumentShareURLQuery');
19
+ const GetMailboxMetadataQuery = exports.GetMailboxMetadataQuery = wrap('GetMailboxMetadataQuery');
20
+ const GetFilterRules = exports.GetFilterRules = wrap('GetFilterRules');
21
+ const modifyFilterRules = exports.modifyFilterRules = wrap('modifyFilterRules');
22
+ const cloneWithoutTypeName = exports.cloneWithoutTypeName = wrap('cloneWithoutTypeName');
23
+ const withCreateAppointment = exports.withCreateAppointment = wrap('withCreateAppointment');
24
+ const withCalendars = exports.withCalendars = wrap('withCalendars');
25
+ const withSearch = exports.withSearch = wrap('withSearch');
26
+ const withAccountInfo = exports.withAccountInfo = wrap('withAccountInfo');
27
+ const withPreference = exports.withPreference = wrap('withPreference');
28
+ const withIdentities = exports.withIdentities = wrap('withIdentities');
29
+ const withCreateContact = exports.withCreateContact = wrap('withCreateContact');
30
+ const withContactAction = exports.withContactAction = wrap('withContactAction');
31
+ const CalendarCreateMutation = exports.CalendarCreateMutation = wrap('CalendarCreateMutation');
32
+ const withCreateCalendar = exports.withCreateCalendar = wrap('withCreateCalendar');
33
+ const withSetCustomMetaData = exports.withSetCustomMetaData = wrap('withSetCustomMetaData');
34
+ const withGetCustomMetaData = exports.withGetCustomMetaData = wrap('withGetCustomMetaData');
35
+ const withActionMutation = exports.withActionMutation = wrap('withActionMutation');
36
+ const withTags = exports.withTags = wrap('withTags');
37
+ const withTagCreate = exports.withTagCreate = wrap('withTagCreate');
38
+ const withTagAction = exports.withTagAction = wrap('withTagAction');
39
+ const SearchFragment = exports.SearchFragment = wrap('SearchFragment');
40
+ const SendShareNotificationMutation = exports.SendShareNotificationMutation = wrap('SendShareNotificationMutation');
41
+ const SetMailboxMetadataMutation = exports.SetMailboxMetadataMutation = wrap('SetMailboxMetadataMutation');
42
+ const withDataSources = exports.withDataSources = wrap('withDataSources');
43
+ const withGetSmimeCertificateInfo = exports.withGetSmimeCertificateInfo = wrap('withGetSmimeCertificateInfo');
44
+ const withSaveSmimeCertificate = exports.withSaveSmimeCertificate = wrap('withSaveSmimeCertificate');
45
+ var _default = exports.default = global.shims['@zimbra-client/graphql'];
@@ -4,26 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useSaveDocumentMutation = exports.useFoldersQuery = exports.useDocumentAction = exports.useBriefcaseFoldersQuery = exports.useAccountInfo = exports.default = void 0;
7
-
8
7
  var _ = require("../../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/hooks/graphql" in the webpack config.
11
9
  * When components import '@zimbra-client/hooks/graphql', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks/graphql'], '@zimbra-client/hooks/graphql');
17
14
 
18
- const useFoldersQuery = wrap('useFoldersQuery');
19
- exports.useFoldersQuery = useFoldersQuery;
20
- const useAccountInfo = wrap('useAccountInfo');
21
- exports.useAccountInfo = useAccountInfo;
22
- const useDocumentAction = wrap('useDocumentAction');
23
- exports.useDocumentAction = useDocumentAction;
24
- const useBriefcaseFoldersQuery = wrap('useBriefcaseFoldersQuery');
25
- exports.useBriefcaseFoldersQuery = useBriefcaseFoldersQuery;
26
- const useSaveDocumentMutation = wrap('useSaveDocumentMutation');
27
- exports.useSaveDocumentMutation = useSaveDocumentMutation;
28
- var _default = global.shims['@zimbra-client/hooks/graphql'];
29
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks/graphql'], '@zimbra-client/hooks/graphql');
16
+ const useFoldersQuery = exports.useFoldersQuery = wrap('useFoldersQuery');
17
+ const useAccountInfo = exports.useAccountInfo = wrap('useAccountInfo');
18
+ const useDocumentAction = exports.useDocumentAction = wrap('useDocumentAction');
19
+ const useBriefcaseFoldersQuery = exports.useBriefcaseFoldersQuery = wrap('useBriefcaseFoldersQuery');
20
+ const useSaveDocumentMutation = exports.useSaveDocumentMutation = wrap('useSaveDocumentMutation');
21
+ var _default = exports.default = global.shims['@zimbra-client/hooks/graphql'];
@@ -4,26 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTracking = exports.useSendMessageMutation = exports.usePreferences = exports.useMediaQuery = exports.useClientConfig = exports.default = void 0;
7
-
8
7
  var _ = require("../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/hooks" in the webpack config.
11
9
  * When components import '@zimbra-client/hooks', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks'], '@zimbra-client/hooks');
17
14
 
18
- const useClientConfig = wrap('useClientConfig');
19
- exports.useClientConfig = useClientConfig;
20
- const useTracking = wrap('useTracking');
21
- exports.useTracking = useTracking;
22
- const useMediaQuery = wrap('useMediaQuery');
23
- exports.useMediaQuery = useMediaQuery;
24
- const usePreferences = wrap('usePreferences');
25
- exports.usePreferences = usePreferences;
26
- const useSendMessageMutation = wrap('useSendMessageMutation');
27
- exports.useSendMessageMutation = useSendMessageMutation;
28
- var _default = global.shims['@zimbra-client/hooks'];
29
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks'], '@zimbra-client/hooks');
16
+ const useClientConfig = exports.useClientConfig = wrap('useClientConfig');
17
+ const useTracking = exports.useTracking = wrap('useTracking');
18
+ const useMediaQuery = exports.useMediaQuery = wrap('useMediaQuery');
19
+ const usePreferences = exports.usePreferences = wrap('usePreferences');
20
+ const useSendMessageMutation = exports.useSendMessageMutation = wrap('useSendMessageMutation');
21
+ var _default = exports.default = global.shims['@zimbra-client/hooks'];
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getPlatformType = exports.default = exports.PLATFORM_TYPES = void 0;
7
-
8
7
  var _ = require("../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/platform" in the webpack config.
11
9
  * When components import '@zimbra-client/platform', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/platform'], '@zimbra-client/platform');
17
14
 
18
- const getPlatformType = wrap('getPlatformType');
19
- exports.getPlatformType = getPlatformType;
20
- const PLATFORM_TYPES = wrap('PLATFORM_TYPES');
21
- exports.PLATFORM_TYPES = PLATFORM_TYPES;
22
- var _default = global.shims['@zimbra-client/platform'];
23
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/platform'], '@zimbra-client/platform');
16
+ const getPlatformType = exports.getPlatformType = wrap('getPlatformType');
17
+ const PLATFORM_TYPES = exports.PLATFORM_TYPES = wrap('PLATFORM_TYPES');
18
+ var _default = exports.default = global.shims['@zimbra-client/platform'];
@@ -4,18 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getName = exports.default = void 0;
7
-
8
7
  var _ = require("../../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/util/contacts" in the webpack config.
11
9
  * When components import '@zimbra-client/util/contacts', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/contacts'], '@zimbra-client/util/contacts');
17
14
 
18
- const getName = wrap('getName');
19
- exports.getName = getName;
20
- var _default = global.shims['@zimbra-client/util/contacts'];
21
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/contacts'], '@zimbra-client/util/contacts');
16
+ const getName = exports.getName = wrap('getName');
17
+ var _default = exports.default = global.shims['@zimbra-client/util/contacts'];
@@ -4,38 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.zimletEventEmitter = exports.smimeHandler = exports.setDataTransferJSON = exports.pruneEmpty = exports.isServerSMIMEFeatureAvailable = exports.htmlToText = exports.getDataTransferJSON = exports.default = exports.callWith = exports.breakpoints = exports.array = exports.PageVisibility = void 0;
7
-
8
7
  var _ = require("../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/util" in the webpack config.
11
9
  * When components import '@zimbra-client/util', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util'], '@zimbra-client/util');
17
14
 
18
- const array = wrap('array');
19
- exports.array = array;
20
- const getDataTransferJSON = wrap('getDataTransferJSON');
21
- exports.getDataTransferJSON = getDataTransferJSON;
22
- const setDataTransferJSON = wrap('setDataTransferJSON');
23
- exports.setDataTransferJSON = setDataTransferJSON;
24
- const breakpoints = wrap('breakpoints');
25
- exports.breakpoints = breakpoints;
26
- const callWith = wrap('callWith');
27
- exports.callWith = callWith;
28
- const pruneEmpty = wrap('pruneEmpty');
29
- exports.pruneEmpty = pruneEmpty;
30
- const PageVisibility = wrap('PageVisibility');
31
- exports.PageVisibility = PageVisibility;
32
- const zimletEventEmitter = wrap('zimletEventEmitter');
33
- exports.zimletEventEmitter = zimletEventEmitter;
34
- const smimeHandler = wrap('smimeHandler');
35
- exports.smimeHandler = smimeHandler;
36
- const isServerSMIMEFeatureAvailable = wrap('isServerSMIMEFeatureAvailable');
37
- exports.isServerSMIMEFeatureAvailable = isServerSMIMEFeatureAvailable;
38
- const htmlToText = wrap('htmlToText');
39
- exports.htmlToText = htmlToText;
40
- var _default = global.shims['@zimbra-client/util'];
41
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util'], '@zimbra-client/util');
16
+ const array = exports.array = wrap('array');
17
+ const getDataTransferJSON = exports.getDataTransferJSON = wrap('getDataTransferJSON');
18
+ const setDataTransferJSON = exports.setDataTransferJSON = wrap('setDataTransferJSON');
19
+ const breakpoints = exports.breakpoints = wrap('breakpoints');
20
+ const callWith = exports.callWith = wrap('callWith');
21
+ const pruneEmpty = exports.pruneEmpty = wrap('pruneEmpty');
22
+ const PageVisibility = exports.PageVisibility = wrap('PageVisibility');
23
+ const zimletEventEmitter = exports.zimletEventEmitter = wrap('zimletEventEmitter');
24
+ const smimeHandler = exports.smimeHandler = wrap('smimeHandler');
25
+ const isServerSMIMEFeatureAvailable = exports.isServerSMIMEFeatureAvailable = wrap('isServerSMIMEFeatureAvailable');
26
+ const htmlToText = exports.htmlToText = wrap('htmlToText');
27
+ var _default = exports.default = global.shims['@zimbra-client/util'];
@@ -4,26 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.rejectedAction = exports.pendingAction = exports.paginate = exports.fulfilledAction = exports.default = exports.createAsyncAction = void 0;
7
-
8
7
  var _ = require("../../../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "@zimbra-client/util/redux" in the webpack config.
11
9
  * When components import '@zimbra-client/util/redux', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/redux'], '@zimbra-client/util/redux');
17
14
 
18
- const paginate = wrap('paginate');
19
- exports.paginate = paginate;
20
- const createAsyncAction = wrap('createAsyncAction');
21
- exports.createAsyncAction = createAsyncAction;
22
- const pendingAction = wrap('pendingAction');
23
- exports.pendingAction = pendingAction;
24
- const fulfilledAction = wrap('fulfilledAction');
25
- exports.fulfilledAction = fulfilledAction;
26
- const rejectedAction = wrap('rejectedAction');
27
- exports.rejectedAction = rejectedAction;
28
- var _default = global.shims['@zimbra-client/util/redux'];
29
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/redux'], '@zimbra-client/util/redux');
16
+ const paginate = exports.paginate = wrap('paginate');
17
+ const createAsyncAction = exports.createAsyncAction = wrap('createAsyncAction');
18
+ const pendingAction = exports.pendingAction = wrap('pendingAction');
19
+ const fulfilledAction = exports.fulfilledAction = wrap('fulfilledAction');
20
+ const rejectedAction = exports.rejectedAction = wrap('rejectedAction');
21
+ var _default = exports.default = global.shims['@zimbra-client/util/redux'];
@@ -4,22 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.removed = exports.isSupported = exports.default = void 0;
7
-
8
7
  var _ = require("../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "dompurify" in the webpack config.
11
9
  * When components import 'dompurify', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['dompurify'], 'dompurify');
17
14
 
18
- const version = wrap('version');
19
- exports.version = version;
20
- const removed = wrap('removed');
21
- exports.removed = removed;
22
- const isSupported = wrap('isSupported');
23
- exports.isSupported = isSupported;
24
- var _default = global.shims['dompurify'];
25
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['dompurify'], 'dompurify');
16
+ const version = exports.version = wrap('version');
17
+ const removed = exports.removed = wrap('removed');
18
+ const isSupported = exports.isSupported = wrap('isSupported');
19
+ var _default = exports.default = global.shims['dompurify'];
@@ -16,12 +16,13 @@
16
16
  * creating an alias to `src/shims/${shim}`; and shim files
17
17
  * at `src/shims/${shim}/index.js` and `src/shims/${shim}/${path}/index.js`
18
18
  */
19
- exports.SHIMMED_MODULES = [['preact', 'compat', 'hooks'], ['preact-router', 'match'], ['@apollo/client', 'react/hoc', 'react/components'], 'react-redux', 'redux-actions', 'recompose', 'moment', 'dompurify', 'preact-context-provider', 'preact-pwa-install', 'preact-i18n', 'preact-render-to-string', ['@zimbra-client/util', 'redux', 'contacts'], // Multiple shim files under one alias (@zimbra/util, @zimbra/util/redux, @zimbra/util/contacts)
19
+ exports.SHIMMED_MODULES = [['preact', 'compat', 'hooks', 'jsx-runtime'], ['preact-router', 'match'], ['@apollo/client', 'react/hoc', 'react/components'], 'react-redux', 'redux-actions', 'recompose', 'moment', 'dompurify', 'preact-context-provider', 'preact-pwa-install', 'preact-i18n', 'preact-render-to-string', ['@zimbra-client/util', 'redux', 'contacts'],
20
+ // Multiple shim files under one alias (@zimbra/util, @zimbra/util/redux, @zimbra/util/contacts)
20
21
  '@zimbra-client/blocks', '@zimbra-client/components', '@zimbra-client/browser', '@zimbra-client/platform', '@zimbra-client/errors', '@zimbra-client/graphql', '@zimbra-client/enhancers', '@zimbra-client/constants', ['@zimbra-client/hooks', 'graphql']];
21
-
22
22
  exports.getShimPath = function (module) {
23
23
  return require.resolve(`./${module}`).replace(/index\.js$/, '');
24
24
  };
25
+
25
26
  /**
26
27
  * Modify the shimmed module function to throw a meaningful error message
27
28
  * in the event that a method we think should be provided by the module is not actually
@@ -29,8 +30,6 @@ exports.getShimPath = function (module) {
29
30
  * @param {String} moduleName The name of the module to be used in the error log
30
31
  * @param {Object} e the `exports` object from a module
31
32
  */
32
-
33
-
34
33
  exports.warnOnMissingExport = function (m, moduleName, namedExport) {
35
34
  return m && typeof m[namedExport] !== 'undefined' ? m[namedExport] : function () {
36
35
  throw new Error(`[ZimletCli]: Export ${moduleName}.${namedExport} was not found in the ${moduleName} instance passed down from ZimbraX.`);
@@ -4,96 +4,53 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.weekdaysShort = exports.weekdaysMin = exports.weekdays = exports.version = exports.utc = exports.updateOffset = exports.updateLocale = exports.unix = exports.suppressDeprecationWarnings = exports.relativeTimeThreshold = exports.relativeTimeRounding = exports.parseZone = exports.parseTwoDigitYear = exports.now = exports.normalizeUnits = exports.monthsShort = exports.months = exports.momentProperties = exports.min = exports.max = exports.locales = exports.localeData = exports.locale = exports.langData = exports.lang = exports.isMoment = exports.isDuration = exports.isDate = exports.invalid = exports.fn = exports.duration = exports.deprecationHandler = exports.defineLocale = exports.defaultFormatUtc = exports.defaultFormat = exports.default = exports.createFromInputFallback = exports.calendarFormat = exports.RFC_2822 = exports.ISO_8601 = exports.HTML5_FMT = void 0;
7
-
8
7
  var _ = require("../");
9
-
10
8
  /** This file is an auto-generated shim, aliased in for "moment" in the webpack config.
11
9
  * When components import 'moment', we want to give them back the copy
12
10
  * Zimbra passed down when it called the factory provided to zimlet().
13
11
  */
14
12
 
15
13
  /* eslint-disable camelcase, dot-notation */
16
- const wrap = _.warnOnMissingExport.bind(null, global.shims['moment'], 'moment');
17
14
 
18
- const momentProperties = wrap('momentProperties');
19
- exports.momentProperties = momentProperties;
20
- const suppressDeprecationWarnings = wrap('suppressDeprecationWarnings');
21
- exports.suppressDeprecationWarnings = suppressDeprecationWarnings;
22
- const deprecationHandler = wrap('deprecationHandler');
23
- exports.deprecationHandler = deprecationHandler;
24
- const parseTwoDigitYear = wrap('parseTwoDigitYear');
25
- exports.parseTwoDigitYear = parseTwoDigitYear;
26
- const createFromInputFallback = wrap('createFromInputFallback');
27
- exports.createFromInputFallback = createFromInputFallback;
28
- const ISO_8601 = wrap('ISO_8601');
29
- exports.ISO_8601 = ISO_8601;
30
- const RFC_2822 = wrap('RFC_2822');
31
- exports.RFC_2822 = RFC_2822;
32
- const updateOffset = wrap('updateOffset');
33
- exports.updateOffset = updateOffset;
34
- const defaultFormat = wrap('defaultFormat');
35
- exports.defaultFormat = defaultFormat;
36
- const defaultFormatUtc = wrap('defaultFormatUtc');
37
- exports.defaultFormatUtc = defaultFormatUtc;
38
- const lang = wrap('lang');
39
- exports.lang = lang;
40
- const langData = wrap('langData');
41
- exports.langData = langData;
42
- const version = wrap('version');
43
- exports.version = version;
44
- const fn = wrap('fn');
45
- exports.fn = fn;
46
- const min = wrap('min');
47
- exports.min = min;
48
- const max = wrap('max');
49
- exports.max = max;
50
- const now = wrap('now');
51
- exports.now = now;
52
- const utc = wrap('utc');
53
- exports.utc = utc;
54
- const unix = wrap('unix');
55
- exports.unix = unix;
56
- const months = wrap('months');
57
- exports.months = months;
58
- const isDate = wrap('isDate');
59
- exports.isDate = isDate;
60
- const locale = wrap('locale');
61
- exports.locale = locale;
62
- const invalid = wrap('invalid');
63
- exports.invalid = invalid;
64
- const duration = wrap('duration');
65
- exports.duration = duration;
66
- const isMoment = wrap('isMoment');
67
- exports.isMoment = isMoment;
68
- const weekdays = wrap('weekdays');
69
- exports.weekdays = weekdays;
70
- const parseZone = wrap('parseZone');
71
- exports.parseZone = parseZone;
72
- const localeData = wrap('localeData');
73
- exports.localeData = localeData;
74
- const isDuration = wrap('isDuration');
75
- exports.isDuration = isDuration;
76
- const monthsShort = wrap('monthsShort');
77
- exports.monthsShort = monthsShort;
78
- const weekdaysMin = wrap('weekdaysMin');
79
- exports.weekdaysMin = weekdaysMin;
80
- const defineLocale = wrap('defineLocale');
81
- exports.defineLocale = defineLocale;
82
- const updateLocale = wrap('updateLocale');
83
- exports.updateLocale = updateLocale;
84
- const locales = wrap('locales');
85
- exports.locales = locales;
86
- const weekdaysShort = wrap('weekdaysShort');
87
- exports.weekdaysShort = weekdaysShort;
88
- const normalizeUnits = wrap('normalizeUnits');
89
- exports.normalizeUnits = normalizeUnits;
90
- const relativeTimeRounding = wrap('relativeTimeRounding');
91
- exports.relativeTimeRounding = relativeTimeRounding;
92
- const relativeTimeThreshold = wrap('relativeTimeThreshold');
93
- exports.relativeTimeThreshold = relativeTimeThreshold;
94
- const calendarFormat = wrap('calendarFormat');
95
- exports.calendarFormat = calendarFormat;
96
- const HTML5_FMT = wrap('HTML5_FMT');
97
- exports.HTML5_FMT = HTML5_FMT;
98
- var _default = global.shims['moment'];
99
- exports.default = _default;
15
+ const wrap = _.warnOnMissingExport.bind(null, global.shims['moment'], 'moment');
16
+ const momentProperties = exports.momentProperties = wrap('momentProperties');
17
+ const suppressDeprecationWarnings = exports.suppressDeprecationWarnings = wrap('suppressDeprecationWarnings');
18
+ const deprecationHandler = exports.deprecationHandler = wrap('deprecationHandler');
19
+ const parseTwoDigitYear = exports.parseTwoDigitYear = wrap('parseTwoDigitYear');
20
+ const createFromInputFallback = exports.createFromInputFallback = wrap('createFromInputFallback');
21
+ const ISO_8601 = exports.ISO_8601 = wrap('ISO_8601');
22
+ const RFC_2822 = exports.RFC_2822 = wrap('RFC_2822');
23
+ const updateOffset = exports.updateOffset = wrap('updateOffset');
24
+ const defaultFormat = exports.defaultFormat = wrap('defaultFormat');
25
+ const defaultFormatUtc = exports.defaultFormatUtc = wrap('defaultFormatUtc');
26
+ const lang = exports.lang = wrap('lang');
27
+ const langData = exports.langData = wrap('langData');
28
+ const version = exports.version = wrap('version');
29
+ const fn = exports.fn = wrap('fn');
30
+ const min = exports.min = wrap('min');
31
+ const max = exports.max = wrap('max');
32
+ const now = exports.now = wrap('now');
33
+ const utc = exports.utc = wrap('utc');
34
+ const unix = exports.unix = wrap('unix');
35
+ const months = exports.months = wrap('months');
36
+ const isDate = exports.isDate = wrap('isDate');
37
+ const locale = exports.locale = wrap('locale');
38
+ const invalid = exports.invalid = wrap('invalid');
39
+ const duration = exports.duration = wrap('duration');
40
+ const isMoment = exports.isMoment = wrap('isMoment');
41
+ const weekdays = exports.weekdays = wrap('weekdays');
42
+ const parseZone = exports.parseZone = wrap('parseZone');
43
+ const localeData = exports.localeData = wrap('localeData');
44
+ const isDuration = exports.isDuration = wrap('isDuration');
45
+ const monthsShort = exports.monthsShort = wrap('monthsShort');
46
+ const weekdaysMin = exports.weekdaysMin = wrap('weekdaysMin');
47
+ const defineLocale = exports.defineLocale = wrap('defineLocale');
48
+ const updateLocale = exports.updateLocale = wrap('updateLocale');
49
+ const locales = exports.locales = wrap('locales');
50
+ const weekdaysShort = exports.weekdaysShort = wrap('weekdaysShort');
51
+ const normalizeUnits = exports.normalizeUnits = wrap('normalizeUnits');
52
+ const relativeTimeRounding = exports.relativeTimeRounding = wrap('relativeTimeRounding');
53
+ const relativeTimeThreshold = exports.relativeTimeThreshold = wrap('relativeTimeThreshold');
54
+ const calendarFormat = exports.calendarFormat = wrap('calendarFormat');
55
+ const HTML5_FMT = exports.HTML5_FMT = wrap('HTML5_FMT');
56
+ var _default = exports.default = global.shims['moment'];