orc-shared 1.2.2-dev.0 → 1.2.2
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/dist/actions/applications.js +12 -50
- package/dist/actions/authentication.js +8 -43
- package/dist/actions/countries.js +4 -34
- package/dist/actions/locale.js +12 -52
- package/dist/actions/makeApiAction.js +6 -52
- package/dist/actions/makeOrcApiAction.js +0 -25
- package/dist/actions/metadata.js +60 -171
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +0 -32
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +12 -54
- package/dist/actions/timezones.js +4 -34
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +4 -37
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +0 -52
- package/dist/components/AppFrame/About.js +3 -67
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +21 -90
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -32
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +18 -71
- package/dist/components/AppFrame/Preferences.js +12 -76
- package/dist/components/AppFrame/Sidebar.js +9 -54
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +5 -44
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +25 -80
- package/dist/components/Checkbox.js +4 -42
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +10 -48
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +7 -38
- package/dist/components/Form/FieldElements.js +10 -42
- package/dist/components/Form/FieldList.js +23 -89
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +16 -65
- package/dist/components/Form/Inputs/Button.js +6 -36
- package/dist/components/Form/Inputs/Date.js +3 -29
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +8 -47
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +7 -39
- package/dist/components/Form/Inputs/Text.js +9 -42
- package/dist/components/Form/Inputs/Time.js +5 -34
- package/dist/components/Form/Inputs/Toggles.js +6 -40
- package/dist/components/Form/Inputs/Translation.js +17 -76
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +1 -29
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +3 -43
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +4 -43
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +35 -105
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +0 -28
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +3 -46
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +5 -49
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/Notification.js +12 -66
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +1 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +1 -23
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +14 -54
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +12 -58
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +11 -57
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +21 -68
- package/dist/components/MaterialUI/DataDisplay/Table.js +33 -122
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +1 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +6 -45
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +4 -30
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +1 -22
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +28 -95
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +1 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +1 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +1 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +1 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +3 -66
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +6 -45
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +3 -38
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +3 -42
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +3 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +1 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +0 -39
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +0 -42
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +1 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +1 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -52
- package/dist/components/MaterialUI/Inputs/InputBase.js +5 -54
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -49
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +10 -63
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +1 -41
- package/dist/components/MaterialUI/Inputs/Select.js +6 -70
- package/dist/components/MaterialUI/Inputs/SelectProps.js +1 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +0 -34
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -37
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +1 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +12 -89
- package/dist/components/MaterialUI/Inputs/createInput.js +3 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +1 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +10 -54
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +1 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +21 -102
- package/dist/components/MaterialUI/Navigation/TabLabel.js +5 -39
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +20 -60
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +13 -67
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +13 -53
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +17 -60
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +1 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +1 -36
- package/dist/components/MaterialUI/componentProps.js +0 -28
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +9 -58
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +7 -43
- package/dist/components/MaterialUI/muiThemes.js +2 -56
- package/dist/components/MaterialUI/textProps.js +1 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +6 -42
- package/dist/components/Modules.js +18 -90
- package/dist/components/MultiSelector.js +20 -73
- package/dist/components/Navigation/Bar.js +24 -87
- package/dist/components/Navigation/Tab.js +20 -72
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +85 -172
- package/dist/components/Placeholder.js +6 -44
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +13 -50
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +25 -105
- package/dist/components/Routing/SubPage.js +7 -55
- package/dist/components/Routing/withWaypointing.js +3 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +6 -47
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +24 -93
- package/dist/components/Scope/useScopeConfirmationModalState.js +11 -74
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +14 -75
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +12 -52
- package/dist/components/Text.js +4 -48
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +17 -75
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +15 -55
- package/dist/components/Treeview/index.js +20 -63
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +2 -17
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +0 -21
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +3 -29
- package/dist/hocs/withErrorBoundary.js +4 -39
- package/dist/hocs/withId.js +2 -31
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +3 -30
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +4 -31
- package/dist/hocs/withScrollBox.js +3 -32
- package/dist/hocs/withToggle.js +4 -34
- package/dist/hocs/withUpdateHandler.js +0 -22
- package/dist/hocs/withViewState.js +3 -30
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +3 -102
- package/dist/hooks/useEntityLoader.js +13 -64
- package/dist/hooks/useFullEntityEditState.js +4 -53
- package/dist/hooks/useInfiniteScroll.js +3 -31
- package/dist/hooks/useLabelMessage.js +0 -41
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +0 -39
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +14 -46
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +3 -33
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +4 -35
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +2 -62
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +0 -40
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +1 -44
- package/dist/selectors/modules.js +0 -21
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +5 -36
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +2 -35
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +0 -41
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +0 -22
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +0 -27
- package/dist/utils/setTranslationWithFallback.js +0 -32
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +19 -86
- package/dist/utils/timezoneHelper.js +0 -31
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +2 -27
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +1 -1
- package/src/utils/testUtils.js +10 -1
|
@@ -2,31 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
(function () {
|
|
7
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
7
|
enterModule && enterModule(module);
|
|
9
8
|
})();
|
|
10
|
-
|
|
11
9
|
(function () {
|
|
12
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
11
|
enterModule && enterModule(module);
|
|
14
12
|
})();
|
|
15
|
-
|
|
16
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
|
-
|
|
20
15
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
/* istanbul ignore file */
|
|
31
23
|
// Override values to use Orckestra icon sheet and colors
|
|
32
24
|
// See also orc-shared/src/getTheme.js#setApplicationColors()
|
|
@@ -52,7 +44,6 @@ var colors = {
|
|
|
52
44
|
highlight: "#f1eae0"
|
|
53
45
|
}
|
|
54
46
|
};
|
|
55
|
-
|
|
56
47
|
var getThemeOverrides = function getThemeOverrides(appName) {
|
|
57
48
|
var application = colors[appName] || {
|
|
58
49
|
base: "#ff00ff",
|
|
@@ -65,48 +56,36 @@ var getThemeOverrides = function getThemeOverrides(appName) {
|
|
|
65
56
|
})
|
|
66
57
|
};
|
|
67
58
|
};
|
|
68
|
-
|
|
69
59
|
var _default = getThemeOverrides;
|
|
70
60
|
var _default2 = _default;
|
|
71
61
|
var _default3 = _default2;
|
|
72
62
|
exports.default = _default3;
|
|
73
63
|
;
|
|
74
|
-
|
|
75
64
|
(function () {
|
|
76
65
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
77
|
-
|
|
78
66
|
if (!reactHotLoader) {
|
|
79
67
|
return;
|
|
80
68
|
}
|
|
81
|
-
|
|
82
69
|
reactHotLoader.register(colors, "colors", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
83
70
|
reactHotLoader.register(getThemeOverrides, "getThemeOverrides", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
84
71
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
85
72
|
})();
|
|
86
|
-
|
|
87
73
|
;
|
|
88
|
-
|
|
89
74
|
(function () {
|
|
90
75
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
91
76
|
leaveModule && leaveModule(module);
|
|
92
77
|
})();
|
|
93
|
-
|
|
94
78
|
;
|
|
95
|
-
|
|
96
79
|
(function () {
|
|
97
80
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
98
|
-
|
|
99
81
|
if (!reactHotLoader) {
|
|
100
82
|
return;
|
|
101
83
|
}
|
|
102
|
-
|
|
103
84
|
reactHotLoader.register(colors, "colors", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
104
85
|
reactHotLoader.register(getThemeOverrides, "getThemeOverrides", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
105
86
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/getThemeOverrides.js");
|
|
106
87
|
})();
|
|
107
|
-
|
|
108
88
|
;
|
|
109
|
-
|
|
110
89
|
(function () {
|
|
111
90
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
112
91
|
leaveModule && leaveModule(module);
|
|
@@ -2,81 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _recompose = require("recompose");
|
|
7
|
-
|
|
8
6
|
var _reactRedux = require("react-redux");
|
|
9
|
-
|
|
10
7
|
var _reactRouterDom = require("react-router-dom");
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
17
|
return a;
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
20
|
return a;
|
|
28
21
|
};
|
|
29
|
-
|
|
30
22
|
var deprecate = function deprecate(Comp) {
|
|
31
23
|
console.warn("Higher order component routingConnector has been deprecated in favor of React-Redux and React-Router hooks");
|
|
32
24
|
return Comp;
|
|
33
25
|
};
|
|
34
|
-
|
|
35
26
|
var routingConnector = function routingConnector() {
|
|
36
27
|
return (0, _recompose.compose)(deprecate, _reactRouterDom.withRouter, _reactRedux.connect.apply(void 0, arguments));
|
|
37
28
|
};
|
|
38
|
-
|
|
39
29
|
var _default = routingConnector;
|
|
40
30
|
var _default2 = _default;
|
|
41
31
|
var _default3 = _default2;
|
|
42
32
|
exports.default = _default3;
|
|
43
33
|
;
|
|
44
|
-
|
|
45
34
|
(function () {
|
|
46
35
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
|
|
48
36
|
if (!reactHotLoader) {
|
|
49
37
|
return;
|
|
50
38
|
}
|
|
51
|
-
|
|
52
39
|
reactHotLoader.register(deprecate, "deprecate", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
53
40
|
reactHotLoader.register(routingConnector, "routingConnector", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
54
41
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
55
42
|
})();
|
|
56
|
-
|
|
57
43
|
;
|
|
58
|
-
|
|
59
44
|
(function () {
|
|
60
45
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
61
46
|
leaveModule && leaveModule(module);
|
|
62
47
|
})();
|
|
63
|
-
|
|
64
48
|
;
|
|
65
|
-
|
|
66
49
|
(function () {
|
|
67
50
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
68
|
-
|
|
69
51
|
if (!reactHotLoader) {
|
|
70
52
|
return;
|
|
71
53
|
}
|
|
72
|
-
|
|
73
54
|
reactHotLoader.register(deprecate, "deprecate", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
74
55
|
reactHotLoader.register(routingConnector, "routingConnector", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
75
56
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/routingConnector.js");
|
|
76
57
|
})();
|
|
77
|
-
|
|
78
58
|
;
|
|
79
|
-
|
|
80
59
|
(function () {
|
|
81
60
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
61
|
leaveModule && leaveModule(module);
|
|
@@ -2,35 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _recompose = require("recompose");
|
|
7
|
-
|
|
8
6
|
var _Authenticate = require("../components/Authenticate");
|
|
9
|
-
|
|
10
7
|
var _excluded = ["authedUser", "loading", "requestError", "needLogin"];
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
|
-
|
|
24
17
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
-
|
|
26
18
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27
19
|
return a;
|
|
28
20
|
};
|
|
29
|
-
|
|
30
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
22
|
return a;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
console.warn("Higher order component withAuthentication has been deprecated in favor of component Authenticate");
|
|
35
25
|
var isAuthenticated = (0, _recompose.withProps)(_Authenticate.useAuthenticationData);
|
|
36
26
|
var withAuthentication = (0, _recompose.compose)(isAuthenticated, (0, _recompose.branch)(function (_ref) {
|
|
@@ -41,11 +31,10 @@ var withAuthentication = (0, _recompose.compose)(isAuthenticated, (0, _recompose
|
|
|
41
31
|
return !authedUser;
|
|
42
32
|
}, (0, _recompose.renderComponent)(_Authenticate.Error), (0, _recompose.mapProps)(function (_ref3) {
|
|
43
33
|
var authedUser = _ref3.authedUser,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
loading = _ref3.loading,
|
|
35
|
+
requestError = _ref3.requestError,
|
|
36
|
+
needLogin = _ref3.needLogin,
|
|
37
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
49
38
|
return props;
|
|
50
39
|
})));
|
|
51
40
|
var _default = withAuthentication;
|
|
@@ -53,42 +42,31 @@ var _default2 = _default;
|
|
|
53
42
|
var _default3 = _default2;
|
|
54
43
|
exports.default = _default3;
|
|
55
44
|
;
|
|
56
|
-
|
|
57
45
|
(function () {
|
|
58
46
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
59
|
-
|
|
60
47
|
if (!reactHotLoader) {
|
|
61
48
|
return;
|
|
62
49
|
}
|
|
63
|
-
|
|
64
50
|
reactHotLoader.register(isAuthenticated, "isAuthenticated", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
65
51
|
reactHotLoader.register(withAuthentication, "withAuthentication", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
66
52
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
67
53
|
})();
|
|
68
|
-
|
|
69
54
|
;
|
|
70
|
-
|
|
71
55
|
(function () {
|
|
72
56
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
73
57
|
leaveModule && leaveModule(module);
|
|
74
58
|
})();
|
|
75
|
-
|
|
76
59
|
;
|
|
77
|
-
|
|
78
60
|
(function () {
|
|
79
61
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
62
|
if (!reactHotLoader) {
|
|
82
63
|
return;
|
|
83
64
|
}
|
|
84
|
-
|
|
85
65
|
reactHotLoader.register(isAuthenticated, "isAuthenticated", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
86
66
|
reactHotLoader.register(withAuthentication, "withAuthentication", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
87
67
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withAuthentication.js");
|
|
88
68
|
})();
|
|
89
|
-
|
|
90
69
|
;
|
|
91
|
-
|
|
92
70
|
(function () {
|
|
93
71
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
72
|
leaveModule && leaveModule(module);
|
|
@@ -2,39 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _excluded = ["onClickOutside"];
|
|
9
|
-
|
|
10
7
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
|
|
12
8
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
-
|
|
28
19
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
|
|
30
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
21
|
return a;
|
|
32
22
|
};
|
|
33
|
-
|
|
34
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
24
|
return a;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
26
|
var descendsFrom = function descendsFrom(descendant, ancestor) {
|
|
39
27
|
if (descendant === ancestor) {
|
|
40
28
|
return true;
|
|
@@ -44,13 +32,11 @@ var descendsFrom = function descendsFrom(descendant, ancestor) {
|
|
|
44
32
|
return descendsFrom(descendant.parentNode, ancestor);
|
|
45
33
|
}
|
|
46
34
|
};
|
|
47
|
-
|
|
48
35
|
var withClickOutside = function withClickOutside(Comp) {
|
|
49
36
|
return __signature__(__signature__(function (_ref) {
|
|
50
37
|
var _ref$onClickOutside = _ref.onClickOutside,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
onClickOutside = _ref$onClickOutside === void 0 ? function () {} : _ref$onClickOutside,
|
|
39
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
54
40
|
var elmRef = (0, _react.useRef)(null);
|
|
55
41
|
var handler = (0, _react.useCallback)(function (event) {
|
|
56
42
|
if (!descendsFrom(event.target, elmRef.current)) {
|
|
@@ -68,48 +54,36 @@ var withClickOutside = function withClickOutside(Comp) {
|
|
|
68
54
|
}, props));
|
|
69
55
|
}, "useRef{elmRef}\nuseCallback{handler}\nuseEffect{}"), "useRef{elmRef}\nuseCallback{handler}\nuseEffect{}");
|
|
70
56
|
};
|
|
71
|
-
|
|
72
57
|
var _default = withClickOutside;
|
|
73
58
|
var _default2 = _default;
|
|
74
59
|
var _default3 = _default2;
|
|
75
60
|
exports.default = _default3;
|
|
76
61
|
;
|
|
77
|
-
|
|
78
62
|
(function () {
|
|
79
63
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
80
|
-
|
|
81
64
|
if (!reactHotLoader) {
|
|
82
65
|
return;
|
|
83
66
|
}
|
|
84
|
-
|
|
85
67
|
reactHotLoader.register(descendsFrom, "descendsFrom", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
86
68
|
reactHotLoader.register(withClickOutside, "withClickOutside", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
87
69
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
88
70
|
})();
|
|
89
|
-
|
|
90
71
|
;
|
|
91
|
-
|
|
92
72
|
(function () {
|
|
93
73
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
94
74
|
leaveModule && leaveModule(module);
|
|
95
75
|
})();
|
|
96
|
-
|
|
97
76
|
;
|
|
98
|
-
|
|
99
77
|
(function () {
|
|
100
78
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
101
|
-
|
|
102
79
|
if (!reactHotLoader) {
|
|
103
80
|
return;
|
|
104
81
|
}
|
|
105
|
-
|
|
106
82
|
reactHotLoader.register(descendsFrom, "descendsFrom", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
107
83
|
reactHotLoader.register(withClickOutside, "withClickOutside", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
108
84
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withClickOutside.js");
|
|
109
85
|
})();
|
|
110
|
-
|
|
111
86
|
;
|
|
112
|
-
|
|
113
87
|
(function () {
|
|
114
88
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
115
89
|
leaveModule && leaveModule(module);
|
|
@@ -2,57 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _excluded = ["boundary"];
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
(function () {
|
|
13
9
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
10
|
enterModule && enterModule(module);
|
|
15
11
|
})();
|
|
16
|
-
|
|
17
12
|
(function () {
|
|
18
13
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
14
|
enterModule && enterModule(module);
|
|
20
15
|
})();
|
|
21
|
-
|
|
22
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
-
|
|
26
18
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
-
|
|
28
19
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
20
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
32
21
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
22
|
return a;
|
|
34
23
|
};
|
|
35
|
-
|
|
36
24
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
37
25
|
return a;
|
|
38
26
|
};
|
|
39
|
-
|
|
40
27
|
// Class components are as yet the only way to create error boundaries
|
|
41
28
|
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
42
29
|
_inheritsLoose(ErrorBoundary, _React$Component);
|
|
43
|
-
|
|
44
30
|
function ErrorBoundary(props) {
|
|
45
31
|
var _this;
|
|
46
|
-
|
|
47
32
|
_this = _React$Component.call(this, props) || this;
|
|
48
33
|
var boundary = props.boundary;
|
|
49
34
|
_this.boundary = boundary;
|
|
50
35
|
_this.state = {};
|
|
51
36
|
return _this;
|
|
52
37
|
}
|
|
53
|
-
|
|
54
38
|
var _proto = ErrorBoundary.prototype;
|
|
55
|
-
|
|
56
39
|
_proto.componentDidCatch = function componentDidCatch(error, info) {
|
|
57
40
|
console.error("Caught an error: " + error.message + ", at boundary " + this.boundary.name);
|
|
58
41
|
console.error(info.componentStack);
|
|
@@ -61,29 +44,23 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
61
44
|
});
|
|
62
45
|
this.boundary.handler(error, info);
|
|
63
46
|
};
|
|
64
|
-
|
|
65
47
|
_proto.render = function render() {
|
|
66
48
|
var _this$props = this.props,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
boundary = _this$props.boundary,
|
|
50
|
+
props = _objectWithoutProperties(_this$props, _excluded);
|
|
70
51
|
return /*#__PURE__*/_react.default.createElement(boundary.component, _extends({}, props, this.state));
|
|
71
52
|
};
|
|
72
|
-
|
|
73
53
|
// @ts-ignore
|
|
74
54
|
_proto.__reactstandin__regenerateByEval = function __reactstandin__regenerateByEval(key, code) {
|
|
75
55
|
// @ts-ignore
|
|
76
56
|
this[key] = eval(code);
|
|
77
57
|
};
|
|
78
|
-
|
|
79
58
|
return ErrorBoundary;
|
|
80
59
|
}(_react.default.Component);
|
|
81
|
-
|
|
82
60
|
var withErrorBoundary = function withErrorBoundary(name, handler) {
|
|
83
61
|
if (handler === void 0) {
|
|
84
62
|
handler = function handler() {};
|
|
85
63
|
}
|
|
86
|
-
|
|
87
64
|
return function (component) {
|
|
88
65
|
return function (props) {
|
|
89
66
|
return /*#__PURE__*/_react.default.createElement(ErrorBoundary, _extends({
|
|
@@ -96,48 +73,36 @@ var withErrorBoundary = function withErrorBoundary(name, handler) {
|
|
|
96
73
|
};
|
|
97
74
|
};
|
|
98
75
|
};
|
|
99
|
-
|
|
100
76
|
var _default = withErrorBoundary;
|
|
101
77
|
var _default2 = _default;
|
|
102
78
|
var _default3 = _default2;
|
|
103
79
|
exports.default = _default3;
|
|
104
80
|
;
|
|
105
|
-
|
|
106
81
|
(function () {
|
|
107
82
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
108
|
-
|
|
109
83
|
if (!reactHotLoader) {
|
|
110
84
|
return;
|
|
111
85
|
}
|
|
112
|
-
|
|
113
86
|
reactHotLoader.register(ErrorBoundary, "ErrorBoundary", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
114
87
|
reactHotLoader.register(withErrorBoundary, "withErrorBoundary", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
115
88
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
116
89
|
})();
|
|
117
|
-
|
|
118
90
|
;
|
|
119
|
-
|
|
120
91
|
(function () {
|
|
121
92
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
122
93
|
leaveModule && leaveModule(module);
|
|
123
94
|
})();
|
|
124
|
-
|
|
125
95
|
;
|
|
126
|
-
|
|
127
96
|
(function () {
|
|
128
97
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
129
|
-
|
|
130
98
|
if (!reactHotLoader) {
|
|
131
99
|
return;
|
|
132
100
|
}
|
|
133
|
-
|
|
134
101
|
reactHotLoader.register(ErrorBoundary, "ErrorBoundary", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
135
102
|
reactHotLoader.register(withErrorBoundary, "withErrorBoundary", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
136
103
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withErrorBoundary.js");
|
|
137
104
|
})();
|
|
138
|
-
|
|
139
105
|
;
|
|
140
|
-
|
|
141
106
|
(function () {
|
|
142
107
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
143
108
|
leaveModule && leaveModule(module);
|
package/dist/hocs/withId.js
CHANGED
|
@@ -2,44 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _excluded = ["id"];
|
|
9
|
-
|
|
10
7
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
-
|
|
12
8
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
|
|
14
9
|
(function () {
|
|
15
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
11
|
enterModule && enterModule(module);
|
|
17
12
|
})();
|
|
18
|
-
|
|
19
13
|
(function () {
|
|
20
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
21
15
|
enterModule && enterModule(module);
|
|
22
16
|
})();
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
26
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
-
|
|
28
19
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
|
-
|
|
30
20
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31
21
|
return a;
|
|
32
22
|
};
|
|
33
|
-
|
|
34
23
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
35
24
|
return a;
|
|
36
25
|
};
|
|
37
|
-
|
|
38
26
|
var generators = {};
|
|
39
|
-
|
|
40
27
|
var getGenerator = function getGenerator(name) {
|
|
41
28
|
var idCounter = 0;
|
|
42
|
-
|
|
43
29
|
if (!generators[name]) {
|
|
44
30
|
generators[name] = function () {
|
|
45
31
|
var id = name + idCounter;
|
|
@@ -47,16 +33,13 @@ var getGenerator = function getGenerator(name) {
|
|
|
47
33
|
return id;
|
|
48
34
|
};
|
|
49
35
|
}
|
|
50
|
-
|
|
51
36
|
return generators[name]();
|
|
52
37
|
};
|
|
53
|
-
|
|
54
38
|
var withId = function withId(name) {
|
|
55
39
|
return function (Comp) {
|
|
56
40
|
return __signature__(__signature__(function (_ref) {
|
|
57
41
|
var id = _ref.id,
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
60
43
|
var generatedId = (0, _react.useMemo)(function () {
|
|
61
44
|
return getGenerator(name);
|
|
62
45
|
}, []);
|
|
@@ -66,50 +49,38 @@ var withId = function withId(name) {
|
|
|
66
49
|
}, "useMemo{generatedId}"), "useMemo{generatedId}");
|
|
67
50
|
};
|
|
68
51
|
};
|
|
69
|
-
|
|
70
52
|
var _default = withId;
|
|
71
53
|
var _default2 = _default;
|
|
72
54
|
var _default3 = _default2;
|
|
73
55
|
exports.default = _default3;
|
|
74
56
|
;
|
|
75
|
-
|
|
76
57
|
(function () {
|
|
77
58
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
78
|
-
|
|
79
59
|
if (!reactHotLoader) {
|
|
80
60
|
return;
|
|
81
61
|
}
|
|
82
|
-
|
|
83
62
|
reactHotLoader.register(generators, "generators", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
84
63
|
reactHotLoader.register(getGenerator, "getGenerator", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
85
64
|
reactHotLoader.register(withId, "withId", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
86
65
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
87
66
|
})();
|
|
88
|
-
|
|
89
67
|
;
|
|
90
|
-
|
|
91
68
|
(function () {
|
|
92
69
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
93
70
|
leaveModule && leaveModule(module);
|
|
94
71
|
})();
|
|
95
|
-
|
|
96
72
|
;
|
|
97
|
-
|
|
98
73
|
(function () {
|
|
99
74
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
100
|
-
|
|
101
75
|
if (!reactHotLoader) {
|
|
102
76
|
return;
|
|
103
77
|
}
|
|
104
|
-
|
|
105
78
|
reactHotLoader.register(generators, "generators", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
106
79
|
reactHotLoader.register(getGenerator, "getGenerator", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
107
80
|
reactHotLoader.register(withId, "withId", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
108
81
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/hocs/withId.js");
|
|
109
82
|
})();
|
|
110
|
-
|
|
111
83
|
;
|
|
112
|
-
|
|
113
84
|
(function () {
|
|
114
85
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
115
86
|
leaveModule && leaveModule(module);
|