@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.
- package/.eslintrc.js +15 -0
- package/dist/cli.js +9 -10
- package/dist/commands/create.js +43 -83
- package/dist/commands/package.js +10 -42
- package/dist/entry.js +5 -7
- package/dist/index.js +67 -91
- package/dist/lib/async-command.js +2 -6
- package/dist/lib/setup.js +3 -12
- package/dist/lib/webpack/transform-config.js +0 -11
- package/dist/shims/@apollo/client/index.js +66 -120
- package/dist/shims/@apollo/client/react/components/index.js +5 -11
- package/dist/shims/@apollo/client/react/hoc/index.js +7 -15
- package/dist/shims/@apollo/client/react/index.js +15 -31
- package/dist/shims/@zimbra-client/blocks/index.js +27 -55
- package/dist/shims/@zimbra-client/browser/index.js +3 -7
- package/dist/shims/@zimbra-client/components/index.js +53 -107
- package/dist/shims/@zimbra-client/constants/index.js +6 -13
- package/dist/shims/@zimbra-client/enhancers/index.js +9 -19
- package/dist/shims/@zimbra-client/errors/index.js +4 -9
- package/dist/shims/@zimbra-client/graphql/index.js +31 -63
- package/dist/shims/@zimbra-client/hooks/graphql/index.js +7 -15
- package/dist/shims/@zimbra-client/hooks/index.js +7 -15
- package/dist/shims/@zimbra-client/platform/index.js +4 -9
- package/dist/shims/@zimbra-client/util/contacts/index.js +3 -7
- package/dist/shims/@zimbra-client/util/index.js +13 -27
- package/dist/shims/@zimbra-client/util/redux/index.js +7 -15
- package/dist/shims/dompurify/index.js +5 -11
- package/dist/shims/index.js +3 -4
- package/dist/shims/moment/index.js +42 -85
- package/dist/shims/preact/compat/index.js +47 -82
- package/dist/shims/preact/hooks/index.js +15 -28
- package/dist/shims/preact/index.js +14 -29
- package/dist/shims/preact/jsx-runtime/index.js +20 -0
- package/dist/shims/preact-context-provider/index.js +5 -13
- package/dist/shims/preact-i18n/index.js +11 -25
- package/dist/shims/preact-pwa-install/index.js +2 -6
- package/dist/shims/preact-render-to-string/index.js +4 -9
- package/dist/shims/preact-router/index.js +8 -17
- package/dist/shims/preact-router/match/index.js +3 -7
- package/dist/shims/react-redux/index.js +14 -30
- package/dist/shims/recompose/index.js +45 -91
- package/dist/shims/redux-actions/index.js +8 -17
- package/dist/util.js +0 -15
- package/dist/zimlet-style-loader.js +2 -11
- package/package-lock.json +4526 -9373
- 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
|
|
19
|
-
exports.AppointmentsQuery = AppointmentsQuery;
|
|
20
|
-
const CalendarsAndAppointmentsQuery = wrap('CalendarsAndAppointmentsQuery');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
const
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
35
|
-
exports.
|
|
36
|
-
const
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
exports.
|
|
42
|
-
const
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
45
|
-
exports.
|
|
46
|
-
const
|
|
47
|
-
exports.
|
|
48
|
-
|
|
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
|
|
19
|
-
exports.useFoldersQuery = useFoldersQuery;
|
|
20
|
-
const useAccountInfo = wrap('useAccountInfo');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
|
|
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
|
|
19
|
-
exports.useClientConfig = useClientConfig;
|
|
20
|
-
const useTracking = wrap('useTracking');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
|
|
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
|
|
19
|
-
exports.getPlatformType = getPlatformType;
|
|
20
|
-
const PLATFORM_TYPES = wrap('PLATFORM_TYPES');
|
|
21
|
-
exports.
|
|
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
|
|
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
|
|
19
|
-
exports.array = array;
|
|
20
|
-
const getDataTransferJSON = wrap('getDataTransferJSON');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
const
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
29
|
-
exports.
|
|
30
|
-
|
|
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
|
|
19
|
-
exports.paginate = paginate;
|
|
20
|
-
const createAsyncAction = wrap('createAsyncAction');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
|
|
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
|
|
19
|
-
exports.version = version;
|
|
20
|
-
const removed = wrap('removed');
|
|
21
|
-
exports.
|
|
22
|
-
|
|
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'];
|
package/dist/shims/index.js
CHANGED
|
@@ -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'],
|
|
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
|
|
19
|
-
exports.momentProperties = momentProperties;
|
|
20
|
-
const suppressDeprecationWarnings = wrap('suppressDeprecationWarnings');
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
23
|
-
exports.
|
|
24
|
-
const
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
35
|
-
exports.
|
|
36
|
-
const
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
exports.
|
|
42
|
-
const
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
45
|
-
exports.
|
|
46
|
-
const
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
49
|
-
exports.
|
|
50
|
-
const
|
|
51
|
-
exports.
|
|
52
|
-
const
|
|
53
|
-
exports.
|
|
54
|
-
const
|
|
55
|
-
exports.
|
|
56
|
-
const
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
59
|
-
exports.
|
|
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'];
|