@zimbra/zimlet-cli 15.0.0 → 16.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/.eslintrc.js +15 -0
- package/dist/cli.js +9 -10
- package/dist/commands/create.js +39 -75
- package/dist/commands/package.js +9 -40
- package/dist/entry.js +5 -7
- package/dist/index.js +65 -89
- 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 +1 -3
- package/dist/shims/@apollo/client/react/components/index.js +1 -3
- package/dist/shims/@apollo/client/react/hoc/index.js +1 -3
- package/dist/shims/@apollo/client/react/index.js +1 -3
- package/dist/shims/@zimbra-client/blocks/index.js +1 -3
- package/dist/shims/@zimbra-client/browser/index.js +1 -3
- package/dist/shims/@zimbra-client/components/index.js +4 -4
- package/dist/shims/@zimbra-client/constants/index.js +1 -3
- package/dist/shims/@zimbra-client/enhancers/index.js +1 -3
- package/dist/shims/@zimbra-client/errors/index.js +1 -3
- package/dist/shims/@zimbra-client/graphql/index.js +1 -3
- package/dist/shims/@zimbra-client/hooks/graphql/index.js +1 -3
- package/dist/shims/@zimbra-client/hooks/index.js +1 -3
- package/dist/shims/@zimbra-client/platform/index.js +1 -3
- package/dist/shims/@zimbra-client/util/contacts/index.js +1 -3
- package/dist/shims/@zimbra-client/util/index.js +1 -3
- package/dist/shims/@zimbra-client/util/redux/index.js +1 -3
- package/dist/shims/dompurify/index.js +1 -3
- package/dist/shims/index.js +3 -4
- package/dist/shims/moment/index.js +1 -3
- package/dist/shims/preact/compat/index.js +71 -65
- package/dist/shims/preact/hooks/index.js +18 -18
- package/dist/shims/preact/index.js +17 -19
- package/dist/shims/preact/jsx-runtime/index.js +25 -0
- package/dist/shims/preact-context-provider/index.js +1 -5
- package/dist/shims/preact-i18n/index.js +1 -5
- package/dist/shims/preact-pwa-install/index.js +1 -4
- package/dist/shims/preact-render-to-string/index.js +1 -3
- package/dist/shims/preact-router/index.js +1 -3
- package/dist/shims/preact-router/match/index.js +1 -3
- package/dist/shims/react-redux/index.js +6 -10
- package/dist/shims/recompose/index.js +1 -3
- package/dist/shims/redux-actions/index.js +1 -3
- package/dist/util.js +0 -15
- package/dist/zimlet-style-loader.js +2 -11
- package/package-lock.json +3644 -7386
- package/package.json +42 -46
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/graphql'], '@zimbra-client/graphql');
|
|
18
16
|
const AppointmentsQuery = wrap('AppointmentsQuery');
|
|
19
17
|
exports.AppointmentsQuery = AppointmentsQuery;
|
|
20
18
|
const CalendarsAndAppointmentsQuery = wrap('CalendarsAndAppointmentsQuery');
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks/graphql'], '@zimbra-client/hooks/graphql');
|
|
18
16
|
const useFoldersQuery = wrap('useFoldersQuery');
|
|
19
17
|
exports.useFoldersQuery = useFoldersQuery;
|
|
20
18
|
const useAccountInfo = wrap('useAccountInfo');
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/hooks'], '@zimbra-client/hooks');
|
|
18
16
|
const useClientConfig = wrap('useClientConfig');
|
|
19
17
|
exports.useClientConfig = useClientConfig;
|
|
20
18
|
const useTracking = wrap('useTracking');
|
|
@@ -4,17 +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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/platform'], '@zimbra-client/platform');
|
|
18
16
|
const getPlatformType = wrap('getPlatformType');
|
|
19
17
|
exports.getPlatformType = getPlatformType;
|
|
20
18
|
const PLATFORM_TYPES = wrap('PLATFORM_TYPES');
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/contacts'], '@zimbra-client/util/contacts');
|
|
18
16
|
const getName = wrap('getName');
|
|
19
17
|
exports.getName = getName;
|
|
20
18
|
var _default = global.shims['@zimbra-client/util/contacts'];
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util'], '@zimbra-client/util');
|
|
18
16
|
const array = wrap('array');
|
|
19
17
|
exports.array = array;
|
|
20
18
|
const getDataTransferJSON = wrap('getDataTransferJSON');
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['@zimbra-client/util/redux'], '@zimbra-client/util/redux');
|
|
18
16
|
const paginate = wrap('paginate');
|
|
19
17
|
exports.paginate = paginate;
|
|
20
18
|
const createAsyncAction = wrap('createAsyncAction');
|
|
@@ -4,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['dompurify'], 'dompurify');
|
|
18
16
|
const version = wrap('version');
|
|
19
17
|
exports.version = version;
|
|
20
18
|
const removed = wrap('removed');
|
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,17 +4,15 @@ 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
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['moment'], 'moment');
|
|
18
16
|
const momentProperties = wrap('momentProperties');
|
|
19
17
|
exports.momentProperties = momentProperties;
|
|
20
18
|
const suppressDeprecationWarnings = wrap('suppressDeprecationWarnings');
|
|
@@ -3,93 +3,99 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.version = exports.useState = exports.useRef = exports.useReducer = exports.useMemo = exports.useLayoutEffect = exports.useImperativeHandle = exports.useErrorBoundary = exports.useEffect = exports.useDebugValue = exports.useContext = exports.useCallback = exports.unstable_batchedUpdates = exports.unmountComponentAtNode = exports.render = exports.memo = exports.lazy = exports.isValidElement = exports.hydrate = exports.forwardRef = exports.flushSync = exports.findDOMNode = exports.default = exports.createRef = exports.createPortal = exports.createFactory = exports.createElement = exports.createContext = exports.cloneElement = exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = exports.SuspenseList = exports.Suspense = exports.StrictMode = exports.PureComponent = exports.Fragment = exports.Component = exports.Children = void 0;
|
|
7
|
-
|
|
6
|
+
exports.version = exports.useTransition = exports.useSyncExternalStore = exports.useState = exports.useRef = exports.useReducer = exports.useMemo = exports.useLayoutEffect = exports.useInsertionEffect = exports.useImperativeHandle = exports.useId = exports.useErrorBoundary = exports.useEffect = exports.useDeferredValue = exports.useDebugValue = exports.useContext = exports.useCallback = exports.unstable_batchedUpdates = exports.unmountComponentAtNode = exports.startTransition = exports.render = exports.memo = exports.lazy = exports.isValidElement = exports.hydrate = exports.forwardRef = exports.flushSync = exports.findDOMNode = exports.default = exports.createRef = exports.createPortal = exports.createFactory = exports.createElement = exports.createContext = exports.cloneElement = exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = exports.SuspenseList = exports.Suspense = exports.StrictMode = exports.PureComponent = exports.Fragment = exports.Component = exports.Children = void 0;
|
|
8
7
|
var _ = require("../../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact/compat" in the webpack config.
|
|
11
9
|
* When components import 'preact/compat', 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['preact/compat'], 'preact/compat');
|
|
17
14
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.useEffect = useEffect;
|
|
24
|
-
const useLayoutEffect = wrap('useLayoutEffect');
|
|
25
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
26
|
-
const useRef = wrap('useRef');
|
|
27
|
-
exports.useRef = useRef;
|
|
28
|
-
const useImperativeHandle = wrap('useImperativeHandle');
|
|
29
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
30
|
-
const useMemo = wrap('useMemo');
|
|
31
|
-
exports.useMemo = useMemo;
|
|
32
|
-
const useCallback = wrap('useCallback');
|
|
33
|
-
exports.useCallback = useCallback;
|
|
34
|
-
const useContext = wrap('useContext');
|
|
35
|
-
exports.useContext = useContext;
|
|
36
|
-
const useDebugValue = wrap('useDebugValue');
|
|
37
|
-
exports.useDebugValue = useDebugValue;
|
|
38
|
-
const useErrorBoundary = wrap('useErrorBoundary');
|
|
39
|
-
exports.useErrorBoundary = useErrorBoundary;
|
|
40
|
-
const createElement = wrap('createElement');
|
|
41
|
-
exports.createElement = createElement;
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact/compat'], 'preact/compat');
|
|
16
|
+
const Component = wrap('Component');
|
|
17
|
+
exports.Component = Component;
|
|
18
|
+
const Fragment = wrap('Fragment');
|
|
19
|
+
exports.Fragment = Fragment;
|
|
42
20
|
const createContext = wrap('createContext');
|
|
43
21
|
exports.createContext = createContext;
|
|
22
|
+
const createElement = wrap('createElement');
|
|
23
|
+
exports.createElement = createElement;
|
|
44
24
|
const createRef = wrap('createRef');
|
|
45
25
|
exports.createRef = createRef;
|
|
46
|
-
const Fragment = wrap('Fragment');
|
|
47
|
-
exports.Fragment = Fragment;
|
|
48
|
-
const Component = wrap('Component');
|
|
49
|
-
exports.Component = Component;
|
|
50
|
-
const version = wrap('version');
|
|
51
|
-
exports.version = version;
|
|
52
26
|
const Children = wrap('Children');
|
|
53
27
|
exports.Children = Children;
|
|
54
|
-
const render = wrap('render');
|
|
55
|
-
exports.render = render;
|
|
56
|
-
const hydrate = wrap('hydrate');
|
|
57
|
-
exports.hydrate = hydrate;
|
|
58
|
-
const unmountComponentAtNode = wrap('unmountComponentAtNode');
|
|
59
|
-
exports.unmountComponentAtNode = unmountComponentAtNode;
|
|
60
|
-
const createPortal = wrap('createPortal');
|
|
61
|
-
exports.createPortal = createPortal;
|
|
62
|
-
const createFactory = wrap('createFactory');
|
|
63
|
-
exports.createFactory = createFactory;
|
|
64
|
-
const cloneElement = wrap('cloneElement');
|
|
65
|
-
exports.cloneElement = cloneElement;
|
|
66
|
-
const isValidElement = wrap('isValidElement');
|
|
67
|
-
exports.isValidElement = isValidElement;
|
|
68
|
-
const findDOMNode = wrap('findDOMNode');
|
|
69
|
-
exports.findDOMNode = findDOMNode;
|
|
70
28
|
const PureComponent = wrap('PureComponent');
|
|
71
29
|
exports.PureComponent = PureComponent;
|
|
72
|
-
const memo = wrap('memo');
|
|
73
|
-
exports.memo = memo;
|
|
74
|
-
const forwardRef = wrap('forwardRef');
|
|
75
|
-
exports.forwardRef = forwardRef;
|
|
76
|
-
const flushSync = wrap('flushSync');
|
|
77
|
-
exports.flushSync = flushSync;
|
|
78
|
-
const unstable_batchedUpdates = wrap('unstable_batchedUpdates');
|
|
79
|
-
exports.unstable_batchedUpdates = unstable_batchedUpdates;
|
|
80
30
|
const StrictMode = wrap('StrictMode');
|
|
81
31
|
exports.StrictMode = StrictMode;
|
|
82
32
|
const Suspense = wrap('Suspense');
|
|
83
33
|
exports.Suspense = Suspense;
|
|
84
34
|
const SuspenseList = wrap('SuspenseList');
|
|
85
35
|
exports.SuspenseList = SuspenseList;
|
|
86
|
-
const lazy = wrap('lazy');
|
|
87
|
-
exports.lazy = lazy;
|
|
88
|
-
|
|
89
36
|
const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = wrap('__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED');
|
|
90
|
-
|
|
91
37
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
92
|
-
|
|
38
|
+
const cloneElement = wrap('cloneElement');
|
|
39
|
+
exports.cloneElement = cloneElement;
|
|
40
|
+
const createFactory = wrap('createFactory');
|
|
41
|
+
exports.createFactory = createFactory;
|
|
42
|
+
const createPortal = wrap('createPortal');
|
|
43
|
+
exports.createPortal = createPortal;
|
|
93
44
|
var _default = wrap('default');
|
|
94
|
-
|
|
95
|
-
|
|
45
|
+
exports.default = _default;
|
|
46
|
+
const findDOMNode = wrap('findDOMNode');
|
|
47
|
+
exports.findDOMNode = findDOMNode;
|
|
48
|
+
const flushSync = wrap('flushSync');
|
|
49
|
+
exports.flushSync = flushSync;
|
|
50
|
+
const forwardRef = wrap('forwardRef');
|
|
51
|
+
exports.forwardRef = forwardRef;
|
|
52
|
+
const hydrate = wrap('hydrate');
|
|
53
|
+
exports.hydrate = hydrate;
|
|
54
|
+
const isValidElement = wrap('isValidElement');
|
|
55
|
+
exports.isValidElement = isValidElement;
|
|
56
|
+
const lazy = wrap('lazy');
|
|
57
|
+
exports.lazy = lazy;
|
|
58
|
+
const memo = wrap('memo');
|
|
59
|
+
exports.memo = memo;
|
|
60
|
+
const render = wrap('render');
|
|
61
|
+
exports.render = render;
|
|
62
|
+
const startTransition = wrap('startTransition');
|
|
63
|
+
exports.startTransition = startTransition;
|
|
64
|
+
const unmountComponentAtNode = wrap('unmountComponentAtNode');
|
|
65
|
+
exports.unmountComponentAtNode = unmountComponentAtNode;
|
|
66
|
+
const unstable_batchedUpdates = wrap('unstable_batchedUpdates');
|
|
67
|
+
exports.unstable_batchedUpdates = unstable_batchedUpdates;
|
|
68
|
+
const useDeferredValue = wrap('useDeferredValue');
|
|
69
|
+
exports.useDeferredValue = useDeferredValue;
|
|
70
|
+
const useInsertionEffect = wrap('useInsertionEffect');
|
|
71
|
+
exports.useInsertionEffect = useInsertionEffect;
|
|
72
|
+
const useSyncExternalStore = wrap('useSyncExternalStore');
|
|
73
|
+
exports.useSyncExternalStore = useSyncExternalStore;
|
|
74
|
+
const useTransition = wrap('useTransition');
|
|
75
|
+
exports.useTransition = useTransition;
|
|
76
|
+
const version = wrap('version');
|
|
77
|
+
exports.version = version;
|
|
78
|
+
const useCallback = wrap('useCallback');
|
|
79
|
+
exports.useCallback = useCallback;
|
|
80
|
+
const useContext = wrap('useContext');
|
|
81
|
+
exports.useContext = useContext;
|
|
82
|
+
const useDebugValue = wrap('useDebugValue');
|
|
83
|
+
exports.useDebugValue = useDebugValue;
|
|
84
|
+
const useEffect = wrap('useEffect');
|
|
85
|
+
exports.useEffect = useEffect;
|
|
86
|
+
const useErrorBoundary = wrap('useErrorBoundary');
|
|
87
|
+
exports.useErrorBoundary = useErrorBoundary;
|
|
88
|
+
const useId = wrap('useId');
|
|
89
|
+
exports.useId = useId;
|
|
90
|
+
const useImperativeHandle = wrap('useImperativeHandle');
|
|
91
|
+
exports.useImperativeHandle = useImperativeHandle;
|
|
92
|
+
const useLayoutEffect = wrap('useLayoutEffect');
|
|
93
|
+
exports.useLayoutEffect = useLayoutEffect;
|
|
94
|
+
const useMemo = wrap('useMemo');
|
|
95
|
+
exports.useMemo = useMemo;
|
|
96
|
+
const useReducer = wrap('useReducer');
|
|
97
|
+
exports.useReducer = useReducer;
|
|
98
|
+
const useRef = wrap('useRef');
|
|
99
|
+
exports.useRef = useRef;
|
|
100
|
+
const useState = wrap('useState');
|
|
101
|
+
exports.useState = useState;
|
|
@@ -3,39 +3,39 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useState = exports.useRef = exports.useReducer = exports.useMemo = exports.useLayoutEffect = exports.useImperativeHandle = exports.useErrorBoundary = exports.useEffect = exports.useDebugValue = exports.useContext = exports.useCallback = exports.default = void 0;
|
|
7
|
-
|
|
6
|
+
exports.useState = exports.useRef = exports.useReducer = exports.useMemo = exports.useLayoutEffect = exports.useImperativeHandle = exports.useId = exports.useErrorBoundary = exports.useEffect = exports.useDebugValue = exports.useContext = exports.useCallback = exports.default = void 0;
|
|
8
7
|
var _ = require("../../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact/hooks" in the webpack config.
|
|
11
9
|
* When components import 'preact/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['preact/hooks'], 'preact/hooks');
|
|
17
14
|
|
|
18
|
-
const
|
|
19
|
-
exports.useState = useState;
|
|
20
|
-
const useReducer = wrap('useReducer');
|
|
21
|
-
exports.useReducer = useReducer;
|
|
22
|
-
const useEffect = wrap('useEffect');
|
|
23
|
-
exports.useEffect = useEffect;
|
|
24
|
-
const useLayoutEffect = wrap('useLayoutEffect');
|
|
25
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
26
|
-
const useRef = wrap('useRef');
|
|
27
|
-
exports.useRef = useRef;
|
|
28
|
-
const useImperativeHandle = wrap('useImperativeHandle');
|
|
29
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
30
|
-
const useMemo = wrap('useMemo');
|
|
31
|
-
exports.useMemo = useMemo;
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact/hooks'], 'preact/hooks');
|
|
32
16
|
const useCallback = wrap('useCallback');
|
|
33
17
|
exports.useCallback = useCallback;
|
|
34
18
|
const useContext = wrap('useContext');
|
|
35
19
|
exports.useContext = useContext;
|
|
36
20
|
const useDebugValue = wrap('useDebugValue');
|
|
37
21
|
exports.useDebugValue = useDebugValue;
|
|
22
|
+
const useEffect = wrap('useEffect');
|
|
23
|
+
exports.useEffect = useEffect;
|
|
38
24
|
const useErrorBoundary = wrap('useErrorBoundary');
|
|
39
25
|
exports.useErrorBoundary = useErrorBoundary;
|
|
26
|
+
const useId = wrap('useId');
|
|
27
|
+
exports.useId = useId;
|
|
28
|
+
const useImperativeHandle = wrap('useImperativeHandle');
|
|
29
|
+
exports.useImperativeHandle = useImperativeHandle;
|
|
30
|
+
const useLayoutEffect = wrap('useLayoutEffect');
|
|
31
|
+
exports.useLayoutEffect = useLayoutEffect;
|
|
32
|
+
const useMemo = wrap('useMemo');
|
|
33
|
+
exports.useMemo = useMemo;
|
|
34
|
+
const useReducer = wrap('useReducer');
|
|
35
|
+
exports.useReducer = useReducer;
|
|
36
|
+
const useRef = wrap('useRef');
|
|
37
|
+
exports.useRef = useRef;
|
|
38
|
+
const useState = wrap('useState');
|
|
39
|
+
exports.useState = useState;
|
|
40
40
|
var _default = global.shims['preact/hooks'];
|
|
41
41
|
exports.default = _default;
|
|
@@ -4,40 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.toChildArray = exports.render = exports.options = exports.isValidElement = exports.hydrate = exports.h = exports.default = exports.createRef = exports.createElement = exports.createContext = exports.cloneElement = exports.Fragment = exports.Component = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact" in the webpack config.
|
|
11
9
|
* When components import 'preact', 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['preact'], 'preact');
|
|
17
14
|
|
|
18
|
-
const
|
|
19
|
-
exports.render = render;
|
|
20
|
-
const hydrate = wrap('hydrate');
|
|
21
|
-
exports.hydrate = hydrate;
|
|
22
|
-
const createElement = wrap('createElement');
|
|
23
|
-
exports.createElement = createElement;
|
|
24
|
-
const h = wrap('h');
|
|
25
|
-
exports.h = h;
|
|
26
|
-
const Fragment = wrap('Fragment');
|
|
27
|
-
exports.Fragment = Fragment;
|
|
28
|
-
const createRef = wrap('createRef');
|
|
29
|
-
exports.createRef = createRef;
|
|
30
|
-
const isValidElement = wrap('isValidElement');
|
|
31
|
-
exports.isValidElement = isValidElement;
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact'], 'preact');
|
|
32
16
|
const Component = wrap('Component');
|
|
33
17
|
exports.Component = Component;
|
|
18
|
+
const Fragment = wrap('Fragment');
|
|
19
|
+
exports.Fragment = Fragment;
|
|
34
20
|
const cloneElement = wrap('cloneElement');
|
|
35
21
|
exports.cloneElement = cloneElement;
|
|
36
22
|
const createContext = wrap('createContext');
|
|
37
23
|
exports.createContext = createContext;
|
|
38
|
-
const
|
|
39
|
-
exports.
|
|
24
|
+
const createElement = wrap('createElement');
|
|
25
|
+
exports.createElement = createElement;
|
|
26
|
+
const createRef = wrap('createRef');
|
|
27
|
+
exports.createRef = createRef;
|
|
28
|
+
const h = wrap('h');
|
|
29
|
+
exports.h = h;
|
|
30
|
+
const hydrate = wrap('hydrate');
|
|
31
|
+
exports.hydrate = hydrate;
|
|
32
|
+
const isValidElement = wrap('isValidElement');
|
|
33
|
+
exports.isValidElement = isValidElement;
|
|
40
34
|
const options = wrap('options');
|
|
41
35
|
exports.options = options;
|
|
36
|
+
const render = wrap('render');
|
|
37
|
+
exports.render = render;
|
|
38
|
+
const toChildArray = wrap('toChildArray');
|
|
39
|
+
exports.toChildArray = toChildArray;
|
|
42
40
|
var _default = global.shims['preact'];
|
|
43
41
|
exports.default = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.jsxs = exports.jsxDEV = exports.jsx = exports.default = exports.Fragment = void 0;
|
|
7
|
+
var _ = require("../../");
|
|
8
|
+
/** This file is an auto-generated shim, aliased in for "preact/jsx-runtime" in the webpack config.
|
|
9
|
+
* When components import 'preact/jsx-runtime', we want to give them back the copy
|
|
10
|
+
* Zimbra passed down when it called the factory provided to zimlet().
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* eslint-disable camelcase, dot-notation */
|
|
14
|
+
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact/jsx-runtime'], 'preact/jsx-runtime');
|
|
16
|
+
const Fragment = wrap('Fragment');
|
|
17
|
+
exports.Fragment = Fragment;
|
|
18
|
+
const jsx = wrap('jsx');
|
|
19
|
+
exports.jsx = jsx;
|
|
20
|
+
const jsxDEV = wrap('jsxDEV');
|
|
21
|
+
exports.jsxDEV = jsxDEV;
|
|
22
|
+
const jsxs = wrap('jsxs');
|
|
23
|
+
exports.jsxs = jsxs;
|
|
24
|
+
var _default = global.shims['preact/jsx-runtime'];
|
|
25
|
+
exports.default = _default;
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.provide = exports.mergingProvide = exports.default = exports.MergingProvider = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact-context-provider" in the webpack config.
|
|
11
9
|
* When components import 'preact-context-provider', 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['preact-context-provider'], 'preact-context-provider');
|
|
17
14
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-context-provider'], 'preact-context-provider');
|
|
18
16
|
const MergingProvider = wrap('MergingProvider');
|
|
19
17
|
exports.MergingProvider = MergingProvider;
|
|
20
|
-
|
|
21
18
|
var _default = wrap('default');
|
|
22
|
-
|
|
23
19
|
exports.default = _default;
|
|
24
20
|
const mergingProvide = wrap('mergingProvide');
|
|
25
21
|
exports.mergingProvide = mergingProvide;
|
|
@@ -4,17 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.withText = exports.useText = exports.translate = exports.intl = exports.default = exports.Text = exports.MarkupText = exports.Localizer = exports.IntlProvider = exports.IntlContext = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact-i18n" in the webpack config.
|
|
11
9
|
* When components import 'preact-i18n', 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['preact-i18n'], 'preact-i18n');
|
|
17
14
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-i18n'], 'preact-i18n');
|
|
18
16
|
const IntlContext = wrap('IntlContext');
|
|
19
17
|
exports.IntlContext = IntlContext;
|
|
20
18
|
const IntlProvider = wrap('IntlProvider');
|
|
@@ -25,9 +23,7 @@ const MarkupText = wrap('MarkupText');
|
|
|
25
23
|
exports.MarkupText = MarkupText;
|
|
26
24
|
const Text = wrap('Text');
|
|
27
25
|
exports.Text = Text;
|
|
28
|
-
|
|
29
26
|
var _default = wrap('default');
|
|
30
|
-
|
|
31
27
|
exports.default = _default;
|
|
32
28
|
const intl = wrap('intl');
|
|
33
29
|
exports.intl = intl;
|
|
@@ -4,18 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact-pwa-install" in the webpack config.
|
|
11
9
|
* When components import 'preact-pwa-install', 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['preact-pwa-install'], 'preact-pwa-install');
|
|
17
14
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-pwa-install'], 'preact-pwa-install');
|
|
18
16
|
var _default = wrap('default');
|
|
19
|
-
|
|
20
17
|
exports.default = _default;
|
|
21
18
|
module.exports = exports.default;
|
|
@@ -4,17 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.shallowRender = exports.render = exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact-render-to-string" in the webpack config.
|
|
11
9
|
* When components import 'preact-render-to-string', 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['preact-render-to-string'], 'preact-render-to-string');
|
|
17
14
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-render-to-string'], 'preact-render-to-string');
|
|
18
16
|
const render = wrap('render');
|
|
19
17
|
exports.render = render;
|
|
20
18
|
const shallowRender = wrap('shallowRender');
|
|
@@ -4,17 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.subscribers = exports.route = exports.getCurrentUrl = exports.default = exports.Router = exports.Route = exports.Link = void 0;
|
|
7
|
-
|
|
8
7
|
var _ = require("../");
|
|
9
|
-
|
|
10
8
|
/** This file is an auto-generated shim, aliased in for "preact-router" in the webpack config.
|
|
11
9
|
* When components import 'preact-router', 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['preact-router'], 'preact-router');
|
|
17
14
|
|
|
15
|
+
const wrap = _.warnOnMissingExport.bind(null, global.shims['preact-router'], 'preact-router');
|
|
18
16
|
const subscribers = wrap('subscribers');
|
|
19
17
|
exports.subscribers = subscribers;
|
|
20
18
|
const getCurrentUrl = wrap('getCurrentUrl');
|