@zimbra/zimlet-cli 12.12.0 → 14.0.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/.browserslistrc +1 -0
- package/dist/cli.js +11 -17
- package/dist/commands/create.js +206 -324
- package/dist/commands/package.js +144 -93
- package/dist/entry.js +14 -12
- package/dist/index.js +89 -114
- package/dist/lib/async-command.js +8 -14
- package/dist/lib/setup.js +55 -133
- package/dist/lib/webpack/transform-config.js +8 -8
- package/dist/shims/@apollo/client/index.js +92 -82
- package/dist/shims/@apollo/client/react/components/index.js +6 -6
- package/dist/shims/@apollo/client/react/hoc/index.js +8 -8
- package/dist/shims/@apollo/client/react/index.js +16 -16
- package/dist/shims/@zimbra-client/blocks/index.js +28 -28
- package/dist/shims/@zimbra-client/browser/index.js +4 -4
- package/dist/shims/@zimbra-client/components/index.js +53 -49
- package/dist/shims/@zimbra-client/constants/index.js +7 -7
- package/dist/shims/@zimbra-client/enhancers/index.js +10 -10
- package/dist/shims/@zimbra-client/errors/index.js +5 -5
- package/dist/shims/@zimbra-client/graphql/index.js +32 -26
- package/dist/shims/@zimbra-client/hooks/graphql/index.js +8 -8
- package/dist/shims/@zimbra-client/hooks/index.js +10 -6
- package/dist/shims/@zimbra-client/platform/index.js +5 -5
- package/dist/shims/@zimbra-client/util/contacts/index.js +4 -4
- package/dist/shims/@zimbra-client/util/index.js +15 -11
- package/dist/shims/@zimbra-client/util/redux/index.js +8 -8
- package/dist/shims/clipboard-polyfill/index.js +4 -4
- package/dist/shims/index.js +2 -2
- package/dist/shims/moment/index.js +43 -43
- package/dist/shims/preact/compat/index.js +40 -52
- package/dist/shims/preact/hooks/index.js +14 -14
- package/dist/shims/preact/index.js +15 -15
- package/dist/shims/preact-context-provider/index.js +6 -6
- package/dist/shims/preact-i18n/index.js +12 -12
- package/dist/shims/preact-pwa-install/index.js +3 -3
- package/dist/shims/preact-render-to-string/index.js +5 -5
- package/dist/shims/preact-router/index.js +9 -9
- package/dist/shims/preact-router/match/index.js +4 -4
- package/dist/shims/react-redux/index.js +16 -16
- package/dist/shims/recompose/index.js +46 -46
- package/dist/shims/redux-actions/index.js +9 -9
- package/dist/util.js +11 -11
- package/dist/zimlet-style-loader.js +8 -4
- package/package-lock.json +5450 -5941
- package/package.json +42 -45
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = exports.ZimletSlot = exports.ToolbarButton = exports.TinyMceComposer = exports.TextInput = exports.TextArea = exports.SmartList = exports.Sidebar = exports.Select = exports.SMIMEOperationDropDown = exports.ResponsiveModal = exports.PdfjsViewer = exports.NestedActionMenuItem = exports.NakedButton = exports.ModalDrawerToolbar = exports.ModalDrawer = exports.ModalDialog = exports.MenuItem = exports.MailSidebar = exports.InfiniteScroll = exports.HelpButton = exports.GenericMobileUIToolbar = exports.GenericMobileUISidebar = exports.FormGroup = exports.FolderListLight = exports.FolderList = exports.DropDownWrapper = exports.DraggableCard = exports.ContextMenu = exports.ContactList = exports.ContactHoverCardWrapper = exports.ContactEditor = exports.ConfirmModalDialog = exports.ColorPicker = exports.CollapsedSubmenu = exports.CertificateModal = exports.CaptureBeforeUnload = exports.BackArrow = exports.Avatar = exports.AttachmentItem = exports.AppointmentEdit = exports.AlignedLabel = exports.AddressField = exports.AddMore = exports.ActionMenuMoveFolder = exports.ActionMenuItem = exports.ActionMenuGroup = exports.ActionMenu = exports.ActionButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,99 +13,103 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/components'], '@zimbra-client/components');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const MenuItem = wrap('MenuItem');
|
|
19
19
|
exports.MenuItem = MenuItem;
|
|
20
|
-
|
|
20
|
+
const Sidebar = wrap('Sidebar');
|
|
21
21
|
exports.Sidebar = Sidebar;
|
|
22
|
-
|
|
22
|
+
const MailSidebar = wrap('MailSidebar');
|
|
23
23
|
exports.MailSidebar = MailSidebar;
|
|
24
|
-
|
|
24
|
+
const FolderList = wrap('FolderList');
|
|
25
25
|
exports.FolderList = FolderList;
|
|
26
|
-
|
|
26
|
+
const SmartList = wrap('SmartList');
|
|
27
27
|
exports.SmartList = SmartList;
|
|
28
|
-
|
|
28
|
+
const ActionMenuMoveFolder = wrap('ActionMenuMoveFolder');
|
|
29
29
|
exports.ActionMenuMoveFolder = ActionMenuMoveFolder;
|
|
30
|
-
|
|
30
|
+
const ActionButton = wrap('ActionButton');
|
|
31
31
|
exports.ActionButton = ActionButton;
|
|
32
|
-
|
|
32
|
+
const CaptureBeforeUnload = wrap('CaptureBeforeUnload');
|
|
33
33
|
exports.CaptureBeforeUnload = CaptureBeforeUnload;
|
|
34
|
-
|
|
34
|
+
const ConfirmModalDialog = wrap('ConfirmModalDialog');
|
|
35
35
|
exports.ConfirmModalDialog = ConfirmModalDialog;
|
|
36
|
-
|
|
36
|
+
const ModalDialog = wrap('ModalDialog');
|
|
37
37
|
exports.ModalDialog = ModalDialog;
|
|
38
|
-
|
|
38
|
+
const ActionMenu = wrap('ActionMenu');
|
|
39
39
|
exports.ActionMenu = ActionMenu;
|
|
40
|
-
|
|
40
|
+
const DropDownWrapper = wrap('DropDownWrapper');
|
|
41
41
|
exports.DropDownWrapper = DropDownWrapper;
|
|
42
|
-
|
|
42
|
+
const ActionMenuItem = wrap('ActionMenuItem');
|
|
43
43
|
exports.ActionMenuItem = ActionMenuItem;
|
|
44
|
-
|
|
44
|
+
const ActionMenuGroup = wrap('ActionMenuGroup');
|
|
45
45
|
exports.ActionMenuGroup = ActionMenuGroup;
|
|
46
|
-
|
|
46
|
+
const DraggableCard = wrap('DraggableCard');
|
|
47
47
|
exports.DraggableCard = DraggableCard;
|
|
48
|
-
|
|
48
|
+
const ContextMenu = wrap('ContextMenu');
|
|
49
49
|
exports.ContextMenu = ContextMenu;
|
|
50
|
-
|
|
50
|
+
const ToolbarButton = wrap('ToolbarButton');
|
|
51
51
|
exports.ToolbarButton = ToolbarButton;
|
|
52
|
-
|
|
52
|
+
const CollapsedSubmenu = wrap('CollapsedSubmenu');
|
|
53
53
|
exports.CollapsedSubmenu = CollapsedSubmenu;
|
|
54
|
-
|
|
54
|
+
const InfiniteScroll = wrap('InfiniteScroll');
|
|
55
55
|
exports.InfiniteScroll = InfiniteScroll;
|
|
56
|
-
|
|
56
|
+
const ContactList = wrap('ContactList');
|
|
57
57
|
exports.ContactList = ContactList;
|
|
58
|
-
|
|
58
|
+
const ContactEditor = wrap('ContactEditor');
|
|
59
59
|
exports.ContactEditor = ContactEditor;
|
|
60
|
-
|
|
60
|
+
const HelpButton = wrap('HelpButton');
|
|
61
61
|
exports.HelpButton = HelpButton;
|
|
62
|
-
|
|
62
|
+
const AppointmentEdit = wrap('AppointmentEdit');
|
|
63
63
|
exports.AppointmentEdit = AppointmentEdit;
|
|
64
|
-
|
|
64
|
+
const ColorPicker = wrap('ColorPicker');
|
|
65
65
|
exports.ColorPicker = ColorPicker;
|
|
66
|
-
|
|
66
|
+
const ModalDrawer = wrap('ModalDrawer');
|
|
67
67
|
exports.ModalDrawer = ModalDrawer;
|
|
68
|
-
|
|
68
|
+
const ModalDrawerToolbar = wrap('ModalDrawerToolbar');
|
|
69
69
|
exports.ModalDrawerToolbar = ModalDrawerToolbar;
|
|
70
|
-
|
|
70
|
+
const BackArrow = wrap('BackArrow');
|
|
71
71
|
exports.BackArrow = BackArrow;
|
|
72
|
-
|
|
72
|
+
const Select = wrap('Select');
|
|
73
73
|
exports.Select = Select;
|
|
74
|
-
|
|
74
|
+
const NakedButton = wrap('NakedButton');
|
|
75
75
|
exports.NakedButton = NakedButton;
|
|
76
|
-
|
|
76
|
+
const TextInput = wrap('TextInput');
|
|
77
77
|
exports.TextInput = TextInput;
|
|
78
|
-
|
|
78
|
+
const TinyMceComposer = wrap('TinyMceComposer');
|
|
79
79
|
exports.TinyMceComposer = TinyMceComposer;
|
|
80
|
-
|
|
80
|
+
const TextArea = wrap('TextArea');
|
|
81
81
|
exports.TextArea = TextArea;
|
|
82
|
-
|
|
82
|
+
const AddMore = wrap('AddMore');
|
|
83
83
|
exports.AddMore = AddMore;
|
|
84
|
-
|
|
84
|
+
const FormGroup = wrap('FormGroup');
|
|
85
85
|
exports.FormGroup = FormGroup;
|
|
86
|
-
|
|
86
|
+
const AlignedLabel = wrap('AlignedLabel');
|
|
87
87
|
exports.AlignedLabel = AlignedLabel;
|
|
88
|
-
|
|
88
|
+
const AttachmentItem = wrap('AttachmentItem');
|
|
89
89
|
exports.AttachmentItem = AttachmentItem;
|
|
90
|
-
|
|
90
|
+
const ResponsiveModal = wrap('ResponsiveModal');
|
|
91
91
|
exports.ResponsiveModal = ResponsiveModal;
|
|
92
|
-
|
|
92
|
+
const NestedActionMenuItem = wrap('NestedActionMenuItem');
|
|
93
93
|
exports.NestedActionMenuItem = NestedActionMenuItem;
|
|
94
|
-
|
|
94
|
+
const PdfjsViewer = wrap('PdfjsViewer');
|
|
95
95
|
exports.PdfjsViewer = PdfjsViewer;
|
|
96
|
-
|
|
96
|
+
const FolderListLight = wrap('FolderListLight');
|
|
97
97
|
exports.FolderListLight = FolderListLight;
|
|
98
|
-
|
|
98
|
+
const GenericMobileUIToolbar = wrap('GenericMobileUIToolbar');
|
|
99
99
|
exports.GenericMobileUIToolbar = GenericMobileUIToolbar;
|
|
100
|
-
|
|
100
|
+
const GenericMobileUISidebar = wrap('GenericMobileUISidebar');
|
|
101
101
|
exports.GenericMobileUISidebar = GenericMobileUISidebar;
|
|
102
|
-
|
|
102
|
+
const ZimletSlot = wrap('ZimletSlot');
|
|
103
103
|
exports.ZimletSlot = ZimletSlot;
|
|
104
|
-
|
|
104
|
+
const AddressField = wrap('AddressField');
|
|
105
105
|
exports.AddressField = AddressField;
|
|
106
|
-
|
|
106
|
+
const Avatar = wrap('Avatar');
|
|
107
107
|
exports.Avatar = Avatar;
|
|
108
|
-
|
|
108
|
+
const ContactHoverCardWrapper = wrap('ContactHoverCardWrapper');
|
|
109
109
|
exports.ContactHoverCardWrapper = ContactHoverCardWrapper;
|
|
110
|
+
const CertificateModal = wrap('CertificateModal');
|
|
111
|
+
exports.CertificateModal = CertificateModal;
|
|
112
|
+
const SMIMEOperationDropDown = wrap('SMIMEOperationDropDown');
|
|
113
|
+
exports.SMIMEOperationDropDown = SMIMEOperationDropDown;
|
|
110
114
|
var _default = global.shims['@zimbra-client/components'];
|
|
111
|
-
exports
|
|
115
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.supportedMimes = exports.default = exports.ZIMBRA_ZIMLET_EVENTS = exports.PARTICIPATION_STATUS = exports.ATTENDEE_ROLE = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,15 +13,15 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/constants'], '@zimbra-client/constants');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const ATTENDEE_ROLE = wrap('ATTENDEE_ROLE');
|
|
19
19
|
exports.ATTENDEE_ROLE = ATTENDEE_ROLE;
|
|
20
|
-
|
|
20
|
+
const PARTICIPATION_STATUS = wrap('PARTICIPATION_STATUS');
|
|
21
21
|
exports.PARTICIPATION_STATUS = PARTICIPATION_STATUS;
|
|
22
|
-
|
|
22
|
+
const supportedMimes = wrap('supportedMimes');
|
|
23
23
|
exports.supportedMimes = supportedMimes;
|
|
24
|
-
|
|
24
|
+
const ZIMBRA_ZIMLET_EVENTS = wrap('ZIMBRA_ZIMLET_EVENTS');
|
|
25
25
|
exports.ZIMBRA_ZIMLET_EVENTS = ZIMBRA_ZIMLET_EVENTS;
|
|
26
26
|
var _default = global.shims['@zimbra-client/constants'];
|
|
27
|
-
exports
|
|
27
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.withZimletIntlWrapper = exports.withTracking = exports.withTabManager = exports.withMediaQuery = exports.withIntlWrapper = exports.withIntlConsumer = exports.default = exports.clientConfiguration = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,21 +13,21 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/enhancers'], '@zimbra-client/enhancers');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const withMediaQuery = wrap('withMediaQuery');
|
|
19
19
|
exports.withMediaQuery = withMediaQuery;
|
|
20
|
-
|
|
20
|
+
const withTabManager = wrap('withTabManager');
|
|
21
21
|
exports.withTabManager = withTabManager;
|
|
22
|
-
|
|
22
|
+
const withIntlWrapper = wrap('withIntlWrapper');
|
|
23
23
|
exports.withIntlWrapper = withIntlWrapper;
|
|
24
|
-
|
|
24
|
+
const withZimletIntlWrapper = wrap('withZimletIntlWrapper');
|
|
25
25
|
exports.withZimletIntlWrapper = withZimletIntlWrapper;
|
|
26
|
-
|
|
26
|
+
const clientConfiguration = wrap('clientConfiguration');
|
|
27
27
|
exports.clientConfiguration = clientConfiguration;
|
|
28
|
-
|
|
28
|
+
const withTracking = wrap('withTracking');
|
|
29
29
|
exports.withTracking = withTracking;
|
|
30
|
-
|
|
30
|
+
const withIntlConsumer = wrap('withIntlConsumer');
|
|
31
31
|
exports.withIntlConsumer = withIntlConsumer;
|
|
32
32
|
var _default = global.shims['@zimbra-client/enhancers'];
|
|
33
|
-
exports
|
|
33
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.faultCode = exports.errorMessage = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/errors'], '@zimbra-client/errors');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const errorMessage = wrap('errorMessage');
|
|
19
19
|
exports.errorMessage = errorMessage;
|
|
20
|
-
|
|
20
|
+
const faultCode = wrap('faultCode');
|
|
21
21
|
exports.faultCode = faultCode;
|
|
22
22
|
var _default = global.shims['@zimbra-client/errors'];
|
|
23
|
-
exports
|
|
23
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
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.default = exports.SetMailboxMetadataMutation = exports.SendShareNotificationMutation = exports.SearchFragment = exports.GetMailboxMetadataQuery = exports.GetDocumentShareURLQuery = exports.CalendarsAndAppointmentsQuery = exports.CalendarCreateMutation = exports.AppointmentsQuery = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,53 +13,59 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/graphql'], '@zimbra-client/graphql');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const AppointmentsQuery = wrap('AppointmentsQuery');
|
|
19
19
|
exports.AppointmentsQuery = AppointmentsQuery;
|
|
20
|
-
|
|
20
|
+
const CalendarsAndAppointmentsQuery = wrap('CalendarsAndAppointmentsQuery');
|
|
21
21
|
exports.CalendarsAndAppointmentsQuery = CalendarsAndAppointmentsQuery;
|
|
22
|
-
|
|
22
|
+
const GetDocumentShareURLQuery = wrap('GetDocumentShareURLQuery');
|
|
23
23
|
exports.GetDocumentShareURLQuery = GetDocumentShareURLQuery;
|
|
24
|
-
|
|
24
|
+
const GetMailboxMetadataQuery = wrap('GetMailboxMetadataQuery');
|
|
25
25
|
exports.GetMailboxMetadataQuery = GetMailboxMetadataQuery;
|
|
26
|
-
|
|
26
|
+
const withCreateAppointment = wrap('withCreateAppointment');
|
|
27
27
|
exports.withCreateAppointment = withCreateAppointment;
|
|
28
|
-
|
|
28
|
+
const withCalendars = wrap('withCalendars');
|
|
29
29
|
exports.withCalendars = withCalendars;
|
|
30
|
-
|
|
30
|
+
const withSearch = wrap('withSearch');
|
|
31
31
|
exports.withSearch = withSearch;
|
|
32
|
-
|
|
32
|
+
const withAccountInfo = wrap('withAccountInfo');
|
|
33
33
|
exports.withAccountInfo = withAccountInfo;
|
|
34
|
-
|
|
34
|
+
const withPreference = wrap('withPreference');
|
|
35
35
|
exports.withPreference = withPreference;
|
|
36
|
-
|
|
36
|
+
const withIdentities = wrap('withIdentities');
|
|
37
37
|
exports.withIdentities = withIdentities;
|
|
38
|
-
|
|
38
|
+
const withCreateContact = wrap('withCreateContact');
|
|
39
39
|
exports.withCreateContact = withCreateContact;
|
|
40
|
-
|
|
40
|
+
const withContactAction = wrap('withContactAction');
|
|
41
41
|
exports.withContactAction = withContactAction;
|
|
42
|
-
|
|
42
|
+
const CalendarCreateMutation = wrap('CalendarCreateMutation');
|
|
43
43
|
exports.CalendarCreateMutation = CalendarCreateMutation;
|
|
44
|
-
|
|
44
|
+
const withCreateCalendar = wrap('withCreateCalendar');
|
|
45
45
|
exports.withCreateCalendar = withCreateCalendar;
|
|
46
|
-
|
|
46
|
+
const withSetCustomMetaData = wrap('withSetCustomMetaData');
|
|
47
47
|
exports.withSetCustomMetaData = withSetCustomMetaData;
|
|
48
|
-
|
|
48
|
+
const withGetCustomMetaData = wrap('withGetCustomMetaData');
|
|
49
49
|
exports.withGetCustomMetaData = withGetCustomMetaData;
|
|
50
|
-
|
|
50
|
+
const withActionMutation = wrap('withActionMutation');
|
|
51
51
|
exports.withActionMutation = withActionMutation;
|
|
52
|
-
|
|
52
|
+
const withTags = wrap('withTags');
|
|
53
53
|
exports.withTags = withTags;
|
|
54
|
-
|
|
54
|
+
const withTagCreate = wrap('withTagCreate');
|
|
55
55
|
exports.withTagCreate = withTagCreate;
|
|
56
|
-
|
|
56
|
+
const withTagAction = wrap('withTagAction');
|
|
57
57
|
exports.withTagAction = withTagAction;
|
|
58
|
-
|
|
58
|
+
const SearchFragment = wrap('SearchFragment');
|
|
59
59
|
exports.SearchFragment = SearchFragment;
|
|
60
|
-
|
|
60
|
+
const SendShareNotificationMutation = wrap('SendShareNotificationMutation');
|
|
61
61
|
exports.SendShareNotificationMutation = SendShareNotificationMutation;
|
|
62
|
-
|
|
62
|
+
const SetMailboxMetadataMutation = wrap('SetMailboxMetadataMutation');
|
|
63
63
|
exports.SetMailboxMetadataMutation = SetMailboxMetadataMutation;
|
|
64
|
+
const withDataSources = wrap('withDataSources');
|
|
65
|
+
exports.withDataSources = withDataSources;
|
|
66
|
+
const withGetSmimeCertificateInfo = wrap('withGetSmimeCertificateInfo');
|
|
67
|
+
exports.withGetSmimeCertificateInfo = withGetSmimeCertificateInfo;
|
|
68
|
+
const withSaveSmimeCertificate = wrap('withSaveSmimeCertificate');
|
|
69
|
+
exports.withSaveSmimeCertificate = withSaveSmimeCertificate;
|
|
64
70
|
var _default = global.shims['@zimbra-client/graphql'];
|
|
65
|
-
exports
|
|
71
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.useSaveDocumentMutation = exports.useFoldersQuery = exports.useDocumentAction = exports.useBriefcaseFoldersQuery = exports.useAccountInfo = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../");
|
|
9
9
|
|
|
@@ -13,17 +13,17 @@ var _ = require("../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks/graphql'], '@zimbra-client/hooks/graphql');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const useFoldersQuery = wrap('useFoldersQuery');
|
|
19
19
|
exports.useFoldersQuery = useFoldersQuery;
|
|
20
|
-
|
|
20
|
+
const useAccountInfo = wrap('useAccountInfo');
|
|
21
21
|
exports.useAccountInfo = useAccountInfo;
|
|
22
|
-
|
|
22
|
+
const useDocumentAction = wrap('useDocumentAction');
|
|
23
23
|
exports.useDocumentAction = useDocumentAction;
|
|
24
|
-
|
|
24
|
+
const useBriefcaseFoldersQuery = wrap('useBriefcaseFoldersQuery');
|
|
25
25
|
exports.useBriefcaseFoldersQuery = useBriefcaseFoldersQuery;
|
|
26
|
-
|
|
26
|
+
const useSaveDocumentMutation = wrap('useSaveDocumentMutation');
|
|
27
27
|
exports.useSaveDocumentMutation = useSaveDocumentMutation;
|
|
28
28
|
var _default = global.shims['@zimbra-client/hooks/graphql'];
|
|
29
|
-
exports
|
|
29
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.useTracking = exports.useSendMessageMutation = exports.usePreferences = exports.useMediaQuery = exports.useClientConfig = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,13 +13,17 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks'], '@zimbra-client/hooks');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const useClientConfig = wrap('useClientConfig');
|
|
19
19
|
exports.useClientConfig = useClientConfig;
|
|
20
|
-
|
|
20
|
+
const useTracking = wrap('useTracking');
|
|
21
21
|
exports.useTracking = useTracking;
|
|
22
|
-
|
|
22
|
+
const useMediaQuery = wrap('useMediaQuery');
|
|
23
23
|
exports.useMediaQuery = useMediaQuery;
|
|
24
|
+
const usePreferences = wrap('usePreferences');
|
|
25
|
+
exports.usePreferences = usePreferences;
|
|
26
|
+
const useSendMessageMutation = wrap('useSendMessageMutation');
|
|
27
|
+
exports.useSendMessageMutation = useSendMessageMutation;
|
|
24
28
|
var _default = global.shims['@zimbra-client/hooks'];
|
|
25
|
-
exports
|
|
29
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.getPlatformType = exports.default = exports.PLATFORM_TYPES = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/platform'], '@zimbra-client/platform');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const getPlatformType = wrap('getPlatformType');
|
|
19
19
|
exports.getPlatformType = getPlatformType;
|
|
20
|
-
|
|
20
|
+
const PLATFORM_TYPES = wrap('PLATFORM_TYPES');
|
|
21
21
|
exports.PLATFORM_TYPES = PLATFORM_TYPES;
|
|
22
22
|
var _default = global.shims['@zimbra-client/platform'];
|
|
23
|
-
exports
|
|
23
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.getName = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../");
|
|
9
9
|
|
|
@@ -13,9 +13,9 @@ var _ = require("../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/contacts'], '@zimbra-client/util/contacts');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const getName = wrap('getName');
|
|
19
19
|
exports.getName = getName;
|
|
20
20
|
var _default = global.shims['@zimbra-client/util/contacts'];
|
|
21
|
-
exports
|
|
21
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.zimletEventEmitter = exports.smimeHandler = exports.setDataTransferJSON = exports.pruneEmpty = exports.isServerSMIMEFeatureAvailable = exports.getDataTransferJSON = exports.default = exports.callWith = exports.breakpoints = exports.array = exports.PageVisibility = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../");
|
|
9
9
|
|
|
@@ -13,23 +13,27 @@ var _ = require("../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util'], '@zimbra-client/util');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const array = wrap('array');
|
|
19
19
|
exports.array = array;
|
|
20
|
-
|
|
20
|
+
const getDataTransferJSON = wrap('getDataTransferJSON');
|
|
21
21
|
exports.getDataTransferJSON = getDataTransferJSON;
|
|
22
|
-
|
|
22
|
+
const setDataTransferJSON = wrap('setDataTransferJSON');
|
|
23
23
|
exports.setDataTransferJSON = setDataTransferJSON;
|
|
24
|
-
|
|
24
|
+
const breakpoints = wrap('breakpoints');
|
|
25
25
|
exports.breakpoints = breakpoints;
|
|
26
|
-
|
|
26
|
+
const callWith = wrap('callWith');
|
|
27
27
|
exports.callWith = callWith;
|
|
28
|
-
|
|
28
|
+
const pruneEmpty = wrap('pruneEmpty');
|
|
29
29
|
exports.pruneEmpty = pruneEmpty;
|
|
30
|
-
|
|
30
|
+
const PageVisibility = wrap('PageVisibility');
|
|
31
31
|
exports.PageVisibility = PageVisibility;
|
|
32
|
-
|
|
32
|
+
const zimletEventEmitter = wrap('zimletEventEmitter');
|
|
33
33
|
exports.zimletEventEmitter = zimletEventEmitter;
|
|
34
|
+
const smimeHandler = wrap('smimeHandler');
|
|
35
|
+
exports.smimeHandler = smimeHandler;
|
|
36
|
+
const isServerSMIMEFeatureAvailable = wrap('isServerSMIMEFeatureAvailable');
|
|
37
|
+
exports.isServerSMIMEFeatureAvailable = isServerSMIMEFeatureAvailable;
|
|
34
38
|
var _default = global.shims['@zimbra-client/util'];
|
|
35
|
-
exports
|
|
39
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.rejectedAction = exports.pendingAction = exports.paginate = exports.fulfilledAction = exports.default = exports.createAsyncAction = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../../../");
|
|
9
9
|
|
|
@@ -13,17 +13,17 @@ var _ = require("../../../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/redux'], '@zimbra-client/util/redux');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const paginate = wrap('paginate');
|
|
19
19
|
exports.paginate = paginate;
|
|
20
|
-
|
|
20
|
+
const createAsyncAction = wrap('createAsyncAction');
|
|
21
21
|
exports.createAsyncAction = createAsyncAction;
|
|
22
|
-
|
|
22
|
+
const pendingAction = wrap('pendingAction');
|
|
23
23
|
exports.pendingAction = pendingAction;
|
|
24
|
-
|
|
24
|
+
const fulfilledAction = wrap('fulfilledAction');
|
|
25
25
|
exports.fulfilledAction = fulfilledAction;
|
|
26
|
-
|
|
26
|
+
const rejectedAction = wrap('rejectedAction');
|
|
27
27
|
exports.rejectedAction = rejectedAction;
|
|
28
28
|
var _default = global.shims['@zimbra-client/util/redux'];
|
|
29
|
-
exports
|
|
29
|
+
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.writeText = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require("../");
|
|
9
9
|
|
|
@@ -13,9 +13,9 @@ var _ = require("../");
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/* eslint-disable camelcase, dot-notation */
|
|
16
|
-
|
|
16
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['clipboard-polyfill'], 'clipboard-polyfill');
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const writeText = wrap('writeText');
|
|
19
19
|
exports.writeText = writeText;
|
|
20
20
|
var _default = global.shims['clipboard-polyfill'];
|
|
21
|
-
exports
|
|
21
|
+
exports.default = _default;
|
package/dist/shims/index.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.SHIMMED_MODULES = [['preact', 'compat', 'hooks'], ['preact-router', 'mat
|
|
|
20
20
|
'@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
21
|
|
|
22
22
|
exports.getShimPath = function (module) {
|
|
23
|
-
return require.resolve(
|
|
23
|
+
return require.resolve(`./${module}`).replace(/index\.js$/, '');
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Modify the shimmed module function to throw a meaningful error message
|
|
@@ -33,6 +33,6 @@ exports.getShimPath = function (module) {
|
|
|
33
33
|
|
|
34
34
|
exports.warnOnMissingExport = function (m, moduleName, namedExport) {
|
|
35
35
|
return m && typeof m[namedExport] !== 'undefined' ? m[namedExport] : function () {
|
|
36
|
-
throw new Error(
|
|
36
|
+
throw new Error(`[ZimletCli]: Export ${moduleName}.${namedExport} was not found in the ${moduleName} instance passed down from ZimbraX.`);
|
|
37
37
|
};
|
|
38
38
|
};
|