@reltio/components 1.4.2270 → 1.4.2272
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/ActionButton/ActionButton.d.ts +1 -1
- package/ActionButton/ActionButton.js +1 -1
- package/ActionsPanel/types.d.ts +1 -1
- package/AsyncReactSelect/AsyncReactSelect.d.ts +1 -5
- package/AttributesFiltersBuilder/AttributesFiltersBuilder.js +2 -1
- package/AttributesFiltersButton/AttributesFiltersButton.js +1 -1
- package/AttributesValuesEditor/AttributesValuesEditor.js +3 -1
- package/AutoSizeList/AutoSizeList.js +1 -1
- package/BasicAttributeSelector/BasicAttributeSelector.js +1 -1
- package/BasicView/BasicView.d.ts +2 -10
- package/BubbleChart/BubbleChart.d.ts +1 -4
- package/CloudChart/CloudChart.d.ts +1 -4
- package/CollaborationItem/CollaborationItem.js +1 -1
- package/CollaborationItem/components/Comment/Comment.js +1 -1
- package/CollaborationItem/components/RepliedComment/RepliedComment.js +1 -1
- package/ConfigureColumnsPopup/ConfigureColumnsPopup.js +2 -1
- package/CreatableReactSelect/CreatableReactSelect.d.ts +1 -5
- package/DataTypeValueEditor/useEditorContext.test.js +1 -1
- package/DependentLookupEditor/styles.d.ts +1 -1
- package/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/DropDownMenuButton/DropDownMenuButton.js +4 -2
- package/DropDownSelector/DropDownSelector.js +2 -1
- package/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.d.ts +4 -2
- package/EditModeAttributesList/EditModeAttributesList.d.ts +3 -2
- package/EmptyState/styles.d.ts +1 -1
- package/EntitySelector/EntitySelector.js +3 -1
- package/EntityUriLink/EntityUriLink.d.ts +4 -2
- package/ErrorBoundary/ErrorBoundary.d.ts +1 -0
- package/ExpandedValueTooltip/ExpandedValueTooltip.js +1 -1
- package/FacetsSelector/components/AttributeSelectorPopup/AttributeSelectorPopup.js +1 -1
- package/GaugeChart/GaugeChart.js +1 -1
- package/HOCs/withAsyncMount/withAsyncMount.js +2 -1
- package/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +2 -1
- package/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +1 -5
- package/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.js +3 -6
- package/HierarchyNodeTitle/useEntityDetails.test.js +1 -1
- package/ImageActionsOverlay/styles.d.ts +1 -1
- package/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/ImageDetailsView/components/MetaInfo/useEditMetaInfo.d.ts +9 -2
- package/InlineSimpleAttribute/InlineSimpleAttribute.js +1 -1
- package/MapChart/MapChart.d.ts +5 -4
- package/MetadataTypesSelector/MetadataTypesSelector.js +1 -1
- package/MetadataTypesSelector/components/ListLabel/ListLabel.js +1 -1
- package/MoreAttributesButton/MoreAttributesButton.js +1 -1
- package/MultiSelect/MultiSelect.d.ts +22 -40
- package/MultiSelect/MultiSelect.js +8 -18
- package/MultiSelect/styles.d.ts +1 -1
- package/MultiValueSelector/MultiValueSelector.js +3 -1
- package/PieChart/PieChart.d.ts +1 -5
- package/Popper/Popper.d.ts +5 -9
- package/Popper/Popper.js +5 -5
- package/PopupWithArrow/PopupWithArrow.d.ts +2 -1
- package/ProfileBandNavigation/useSearchNavigation.test.js +123 -123
- package/ProfilesList/ProfilesList.d.ts +1 -1
- package/RCTree/RCTree.d.ts +3 -4
- package/RCTree/RCTree.js +10 -2
- package/RCTree/RCTreeSwitchRenderer.d.ts +4 -4
- package/RCTree/index.d.ts +1 -0
- package/RCTree/types.d.ts +2 -0
- package/RCTree/useDelayedDragEventCall.d.ts +4 -1
- package/RCTree/useDnd.js +20 -9
- package/ReactSelect/ReactSelect.d.ts +1 -5
- package/ReactSortableTree/ReactSortableTree.js +0 -2
- package/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.d.ts +36 -64
- package/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +8 -18
- package/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.d.ts +4 -10
- package/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.js +1 -5
- package/ReactSortableTree/components/TreeNode/TreeNode.d.ts +23 -37
- package/ReactSortableTree/components/TreeNode/TreeNode.js +4 -10
- package/ReltioGridLayout/ReltioGridLayout.js +1 -1
- package/ReltioGridLayout/ReltioGridLayout.test.js +3 -3
- package/ResizablePanes/ResizablePanes.js +1 -1
- package/RowCellAutoSizer/RowCellAutoSizer.js +1 -1
- package/SegmentIdLink/SegmentIdLink.d.ts +4 -2
- package/SidePanelEmptyState/styles.d.ts +1 -1
- package/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +6 -11
- package/SimpleAttributeEditor/styles.d.ts +1 -1
- package/SimpleAttributeEditor/useAutopopulationContextValue.test.js +1 -1
- package/SimpleDropDownSelector/styles.d.ts +1 -1
- package/SmallIconButton/SmallIconButton.d.ts +4 -2
- package/SyncedValueHeight/ValueHeightReporter.js +1 -1
- package/UploadFileButton/components/UploadMode/UploadMode.js +1 -1
- package/UserSelector/UserSelector.js +1 -1
- package/VirtualGroupedList/useScrollToFocusItem.d.ts +4 -1
- package/VirtualGroupedList/useScrollToFocusItem.test.js +1 -1
- package/cjs/ActionButton/ActionButton.d.ts +1 -1
- package/cjs/ActionButton/ActionButton.js +1 -1
- package/cjs/ActionsPanel/types.d.ts +1 -1
- package/cjs/AsyncReactSelect/AsyncReactSelect.d.ts +1 -5
- package/cjs/AttributesFiltersBuilder/AttributesFiltersBuilder.js +2 -1
- package/cjs/AttributesFiltersButton/AttributesFiltersButton.js +1 -1
- package/cjs/AttributesValuesEditor/AttributesValuesEditor.js +3 -1
- package/cjs/AutoSizeList/AutoSizeList.js +1 -1
- package/cjs/BasicAttributeSelector/BasicAttributeSelector.js +1 -1
- package/cjs/BasicView/BasicView.d.ts +2 -10
- package/cjs/BubbleChart/BubbleChart.d.ts +1 -4
- package/cjs/CloudChart/CloudChart.d.ts +1 -4
- package/cjs/CollaborationItem/CollaborationItem.js +1 -1
- package/cjs/CollaborationItem/components/Comment/Comment.js +1 -1
- package/cjs/CollaborationItem/components/RepliedComment/RepliedComment.js +1 -1
- package/cjs/ConfigureColumnsPopup/ConfigureColumnsPopup.js +2 -1
- package/cjs/CreatableReactSelect/CreatableReactSelect.d.ts +1 -5
- package/cjs/DataTypeValueEditor/useEditorContext.test.js +2 -2
- package/cjs/DependentLookupEditor/styles.d.ts +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.js +4 -2
- package/cjs/DropDownSelector/DropDownSelector.js +2 -1
- package/cjs/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.d.ts +4 -2
- package/cjs/EditModeAttributesList/EditModeAttributesList.d.ts +3 -2
- package/cjs/EmptyState/styles.d.ts +1 -1
- package/cjs/EntitySelector/EntitySelector.js +3 -1
- package/cjs/EntityUriLink/EntityUriLink.d.ts +4 -2
- package/cjs/ErrorBoundary/ErrorBoundary.d.ts +1 -0
- package/cjs/ExpandedValueTooltip/ExpandedValueTooltip.js +1 -1
- package/cjs/FacetsSelector/components/AttributeSelectorPopup/AttributeSelectorPopup.js +1 -1
- package/cjs/GaugeChart/GaugeChart.js +1 -1
- package/cjs/HOCs/withAsyncMount/withAsyncMount.js +2 -1
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +2 -1
- package/cjs/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/cjs/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +1 -5
- package/cjs/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.js +3 -6
- package/cjs/HierarchyNodeTitle/useEntityDetails.test.js +18 -18
- package/cjs/ImageActionsOverlay/styles.d.ts +1 -1
- package/cjs/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/cjs/ImageDetailsView/components/MetaInfo/useEditMetaInfo.d.ts +9 -2
- package/cjs/InlineSimpleAttribute/InlineSimpleAttribute.js +1 -1
- package/cjs/MapChart/MapChart.d.ts +5 -4
- package/cjs/MetadataTypesSelector/MetadataTypesSelector.js +1 -1
- package/cjs/MetadataTypesSelector/components/ListLabel/ListLabel.js +1 -1
- package/cjs/MoreAttributesButton/MoreAttributesButton.js +1 -1
- package/cjs/MultiSelect/MultiSelect.d.ts +22 -40
- package/cjs/MultiSelect/MultiSelect.js +7 -17
- package/cjs/MultiSelect/styles.d.ts +1 -1
- package/cjs/MultiValueSelector/MultiValueSelector.js +3 -1
- package/cjs/PieChart/PieChart.d.ts +1 -5
- package/cjs/Popper/Popper.d.ts +5 -9
- package/cjs/Popper/Popper.js +5 -5
- package/cjs/PopupWithArrow/PopupWithArrow.d.ts +2 -1
- package/cjs/ProfileBandNavigation/useSearchNavigation.test.js +177 -177
- package/cjs/ProfilesList/ProfilesList.d.ts +1 -1
- package/cjs/RCTree/RCTree.d.ts +3 -4
- package/cjs/RCTree/RCTree.js +10 -2
- package/cjs/RCTree/RCTreeSwitchRenderer.d.ts +4 -4
- package/cjs/RCTree/index.d.ts +1 -0
- package/cjs/RCTree/types.d.ts +2 -0
- package/cjs/RCTree/useDelayedDragEventCall.d.ts +4 -1
- package/cjs/RCTree/useDnd.js +19 -8
- package/cjs/ReactSelect/ReactSelect.d.ts +1 -5
- package/cjs/ReactSortableTree/ReactSortableTree.js +0 -2
- package/cjs/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.d.ts +36 -64
- package/cjs/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +8 -18
- package/cjs/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.d.ts +4 -10
- package/cjs/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.js +1 -5
- package/cjs/ReactSortableTree/components/TreeNode/TreeNode.d.ts +23 -37
- package/cjs/ReactSortableTree/components/TreeNode/TreeNode.js +4 -10
- package/cjs/ReltioGridLayout/ReltioGridLayout.js +1 -1
- package/cjs/ReltioGridLayout/ReltioGridLayout.test.js +3 -3
- package/cjs/ResizablePanes/ResizablePanes.js +1 -1
- package/cjs/RowCellAutoSizer/RowCellAutoSizer.js +1 -1
- package/cjs/SegmentIdLink/SegmentIdLink.d.ts +4 -2
- package/cjs/SidePanelEmptyState/styles.d.ts +1 -1
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +6 -11
- package/cjs/SimpleAttributeEditor/styles.d.ts +1 -1
- package/cjs/SimpleAttributeEditor/useAutopopulationContextValue.test.js +2 -2
- package/cjs/SimpleDropDownSelector/styles.d.ts +1 -1
- package/cjs/SmallIconButton/SmallIconButton.d.ts +4 -2
- package/cjs/SyncedValueHeight/ValueHeightReporter.js +1 -1
- package/cjs/UploadFileButton/components/UploadMode/UploadMode.js +1 -1
- package/cjs/UserSelector/UserSelector.js +1 -1
- package/cjs/VirtualGroupedList/useScrollToFocusItem.d.ts +4 -1
- package/cjs/VirtualGroupedList/useScrollToFocusItem.test.js +5 -5
- package/cjs/contexts/AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js +2 -2
- package/cjs/contexts/ReloadDataContext/ReloadDataContext.spec.js +4 -4
- package/cjs/features/activity-log/ActivityFilterButton/ActivityFilterButton.js +1 -1
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +10 -3
- package/cjs/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +11 -6
- package/cjs/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +15 -10
- package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +11 -6
- package/cjs/features/crosswalks/hooks/useAttributeActions.test.js +26 -26
- package/cjs/features/crosswalks/hooks/useCrosswalkActions.test.js +12 -12
- package/cjs/features/crosswalks/hooks/useModifiedEntity.js +4 -4
- package/cjs/features/crosswalks/hooks/useModifiedEntity.test.js +17 -17
- package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +17 -28
- package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +10 -10
- package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +3 -3
- package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +4 -4
- package/cjs/features/graph/hooks/useLoopRenderer.test.js +3 -3
- package/cjs/features/graph/hooks/useSigmaCustomRenderers.test.js +28 -28
- package/cjs/features/history/HistoryFilterButton/HistoryFilterButton.js +1 -1
- package/cjs/features/history/hooks/useHistory.test.js +36 -36
- package/cjs/features/history/hooks/useHistoryDiff.test.js +2 -2
- package/cjs/features/history/hooks/useHistoryEnabled.test.js +2 -2
- package/cjs/features/history/hooks/useHistorySlice.test.js +8 -8
- package/cjs/features/history/hooks/useHistoryTree.test.js +2 -2
- package/cjs/features/workflow/AddWorkflowDialog/styles.d.ts +1 -1
- package/cjs/features/workflow/hooks/useChangeRequest.test.js +7 -7
- package/cjs/features/workflow/hooks/useWorkflowCheckPermission.test.js +2 -2
- package/cjs/features/workflow/hooks/useWorkflowColor.test.js +2 -2
- package/cjs/helpers/customScript.test.js +3 -3
- package/cjs/hooks/useAPI/useAPI.js +2 -2
- package/cjs/hooks/useAPI/useAPI.test.js +134 -134
- package/cjs/hooks/useChangedAttributes/useChangedAttributes.js +2 -2
- package/cjs/hooks/useCollaboration/useCollaboration.d.ts +47 -9
- package/cjs/hooks/useCollaboration/useCollaboration.js +10 -13
- package/cjs/hooks/useCollaboration/useCollaboration.test.js +55 -54
- package/cjs/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +8 -8
- package/cjs/hooks/useCommentsEntitiesMap/useCommentsEntitiesMap.test.js +10 -10
- package/cjs/hooks/useConfigPermissions/useConfigPermissions.test.js +2 -2
- package/cjs/hooks/useCustomScripts/useCustomScripts.test.js +25 -25
- package/cjs/hooks/useDndBasicTableScrollModifier/useDndBasicTableScrollModifier.js +1 -1
- package/cjs/hooks/useEditableConnection/useEditableConnection.test.js +2 -2
- package/cjs/hooks/useFilterAutoFocus/useFilterAutoFocus.d.ts +3 -3
- package/cjs/hooks/useHiddenAttributes/useHiddenAttributes.test.js +2 -2
- package/cjs/hooks/useHtmlSanitizer/useHtmlSanitizer.test.js +2 -2
- package/cjs/hooks/useKeyboardNavigation/useKeyboardNavigation.d.ts +1 -1
- package/cjs/hooks/useKeyboardNavigation/useKeyboardNavigation.test.js +3 -3
- package/cjs/hooks/useMatchesLoader/useMatchesLoader.test.js +24 -16
- package/cjs/hooks/usePrevious/usePrevious.js +1 -1
- package/cjs/hooks/useReadableSearchState/useReadableSearchState.test.js +5 -5
- package/cjs/hooks/useRelationsLoader/useRelationsLoader.test.js +50 -50
- package/cjs/hooks/useSavedSearchesRequest/useSavedSearchesRequest.test.js +36 -36
- package/cjs/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +20 -16
- package/cjs/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +3 -3
- package/cjs/hooks/useUsers/useUsers.test.js +14 -15
- package/cjs/hooks/useWhyDidYouUpdate/useWhyDidYouUpdate.js +1 -1
- package/cjs/test-utils/dndKit/DndContextComponent.js +3 -0
- package/cjs/test-utils/dndKit/index.d.ts +1 -0
- package/cjs/test-utils/dndKit/useDndMonitorProvider.d.ts +4 -1
- package/cjs/test-utils/dndKit/useDraggable.d.ts +1 -0
- package/cjs/test-utils/dndKit/useDraggable.js +8 -1
- package/cjs/test-utils/index.d.ts +1 -1
- package/cjs/test-utils/index.js +4 -1
- package/cjs/test-utils/mockStoreHooks.d.ts +4 -0
- package/cjs/test-utils/mockStoreHooks.js +21 -0
- package/cjs/utils/withChildrenProp.d.ts +10 -0
- package/cjs/utils/withChildrenProp.js +13 -0
- package/contexts/AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js +1 -1
- package/contexts/ReloadDataContext/ReloadDataContext.spec.js +1 -1
- package/features/activity-log/ActivityFilterButton/ActivityFilterButton.js +1 -1
- package/features/crosswalks/AttributesTable/AttributesTable.test.js +11 -4
- package/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +11 -6
- package/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +15 -10
- package/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +11 -6
- package/features/crosswalks/hooks/useAttributeActions.test.js +1 -1
- package/features/crosswalks/hooks/useCrosswalkActions.test.js +1 -1
- package/features/crosswalks/hooks/useModifiedEntity.js +4 -4
- package/features/crosswalks/hooks/useModifiedEntity.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +14 -25
- package/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +1 -1
- package/features/graph/hooks/useLoopRenderer.test.js +1 -1
- package/features/graph/hooks/useSigmaCustomRenderers.test.js +1 -1
- package/features/history/HistoryFilterButton/HistoryFilterButton.js +1 -1
- package/features/history/hooks/useHistory.test.js +1 -1
- package/features/history/hooks/useHistoryDiff.test.js +1 -1
- package/features/history/hooks/useHistoryEnabled.test.js +1 -1
- package/features/history/hooks/useHistorySlice.test.js +1 -1
- package/features/history/hooks/useHistoryTree.test.js +1 -1
- package/features/workflow/AddWorkflowDialog/styles.d.ts +1 -1
- package/features/workflow/hooks/useChangeRequest.test.js +1 -1
- package/features/workflow/hooks/useWorkflowCheckPermission.test.js +1 -1
- package/features/workflow/hooks/useWorkflowColor.test.js +1 -1
- package/helpers/customScript.test.js +1 -1
- package/hooks/useAPI/useAPI.js +2 -2
- package/hooks/useAPI/useAPI.test.js +44 -44
- package/hooks/useChangedAttributes/useChangedAttributes.js +2 -2
- package/hooks/useCollaboration/useCollaboration.d.ts +47 -9
- package/hooks/useCollaboration/useCollaboration.js +10 -13
- package/hooks/useCollaboration/useCollaboration.test.js +3 -2
- package/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +1 -1
- package/hooks/useCommentsEntitiesMap/useCommentsEntitiesMap.test.js +1 -1
- package/hooks/useConfigPermissions/useConfigPermissions.test.js +1 -1
- package/hooks/useCustomScripts/useCustomScripts.test.js +11 -11
- package/hooks/useDndBasicTableScrollModifier/useDndBasicTableScrollModifier.js +1 -1
- package/hooks/useEditableConnection/useEditableConnection.test.js +1 -1
- package/hooks/useFilterAutoFocus/useFilterAutoFocus.d.ts +3 -3
- package/hooks/useHiddenAttributes/useHiddenAttributes.test.js +1 -1
- package/hooks/useHtmlSanitizer/useHtmlSanitizer.test.js +1 -1
- package/hooks/useKeyboardNavigation/useKeyboardNavigation.d.ts +1 -1
- package/hooks/useKeyboardNavigation/useKeyboardNavigation.test.js +1 -1
- package/hooks/useMatchesLoader/useMatchesLoader.test.js +23 -15
- package/hooks/usePrevious/usePrevious.js +1 -1
- package/hooks/useReadableSearchState/useReadableSearchState.test.js +3 -3
- package/hooks/useRelationsLoader/useRelationsLoader.test.js +38 -38
- package/hooks/useSavedSearchesRequest/useSavedSearchesRequest.test.js +1 -1
- package/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +7 -3
- package/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +1 -1
- package/hooks/useUsers/useUsers.test.js +12 -13
- package/hooks/useWhyDidYouUpdate/useWhyDidYouUpdate.js +1 -1
- package/package.json +5 -6
- package/test-utils/dndKit/DndContextComponent.js +3 -0
- package/test-utils/dndKit/index.d.ts +1 -0
- package/test-utils/dndKit/useDndMonitorProvider.d.ts +4 -1
- package/test-utils/dndKit/useDraggable.d.ts +1 -0
- package/test-utils/dndKit/useDraggable.js +8 -1
- package/test-utils/index.d.ts +1 -1
- package/test-utils/index.js +1 -0
- package/test-utils/mockStoreHooks.d.ts +4 -0
- package/test-utils/mockStoreHooks.js +16 -0
- package/utils/withChildrenProp.d.ts +10 -0
- package/utils/withChildrenProp.js +9 -0
|
@@ -56,7 +56,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
56
56
|
}
|
|
57
57
|
return t;
|
|
58
58
|
};
|
|
59
|
-
import { renderHook, act } from '@testing-library/react
|
|
59
|
+
import { renderHook, act } from '@testing-library/react';
|
|
60
60
|
import { last, omit } from 'ramda';
|
|
61
61
|
import { useSigma, useSetSettings, useRegisterEvents } from '@react-sigma/core';
|
|
62
62
|
import { DASHED_EDGE_COLOR, EDGE_COLOR, INACTIVE_EDGE_COLOR, INACTIVE_LABEL_COLOR, RELATED_DASHED_EDGE_COLOR, RELATED_EDGE_COLOR, SELECTED_EDGE_COLOR, useDataModelGraphAppearance } from './useDataModelGraphAppearance';
|
|
@@ -117,102 +117,91 @@ describe('useDataModelGraphAppearance tests', function () {
|
|
|
117
117
|
return (__assign(__assign({}, attributes), { type: 'image', size: 28, color: 'rgba(55, 71, 79, 1)' }));
|
|
118
118
|
};
|
|
119
119
|
it('should apply default node style', function () {
|
|
120
|
-
var
|
|
120
|
+
var graph = setUp().graph;
|
|
121
121
|
var nodeReducer = getNodeReducer();
|
|
122
122
|
expect(nodeReducer('hcp', graph.getNodeAttributes('hcp'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hcp'))), { image: 'HCP.svg', label: 'HCP', nodeType: DataModelGraphNodeType.entityType }));
|
|
123
123
|
expect(nodeReducer('hca', graph.getNodeAttributes('hca'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hca'))), { image: 'HCA.svg', label: 'HCA', nodeType: DataModelGraphNodeType.entityType }));
|
|
124
124
|
expect(nodeReducer('gpo', graph.getNodeAttributes('gpo'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('gpo'))), { label: 'GPO', nodeType: DataModelGraphNodeType.entityType }));
|
|
125
125
|
expect(nodeReducer('prescriptions', graph.getNodeAttributes('prescriptions'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('prescriptions'))), { hasBorder: true, image: expect.stringContaining('data:image/svg+xml'), label: 'Prescriptions', nodeType: DataModelGraphNodeType.interactionType }));
|
|
126
|
-
expect(result.error).toBeUndefined();
|
|
127
126
|
});
|
|
128
127
|
it('should apply hovered node style', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
-
var
|
|
130
|
-
return __generator(this, function (
|
|
131
|
-
|
|
128
|
+
var graph, enterNode, nodeReducer;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
graph = setUp().graph;
|
|
132
131
|
enterNode = getEnterNode();
|
|
133
132
|
act(function () {
|
|
134
133
|
enterNode({ node: 'hcp' });
|
|
135
134
|
});
|
|
136
135
|
nodeReducer = getNodeReducer();
|
|
137
136
|
expect(nodeReducer('hcp', graph.getNodeAttributes('hcp'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hcp'))), { image: 'HCP.svg', label: 'HCP', secondaryLabel: '12 attributes', nodeType: DataModelGraphNodeType.entityType }));
|
|
138
|
-
expect(result.error).toBeUndefined();
|
|
139
137
|
return [2 /*return*/];
|
|
140
138
|
});
|
|
141
139
|
}); });
|
|
142
140
|
it('should apply correct styles when selectedNode is specified', function () {
|
|
143
|
-
var
|
|
141
|
+
var graph = setUp({ selectedNode: 'hcp' }).graph;
|
|
144
142
|
var nodeReducer = getNodeReducer();
|
|
145
143
|
expect(nodeReducer('hcp', graph.getNodeAttributes('hcp'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hcp'))), { image: 'HCP.svg', label: 'HCP', secondaryLabel: '12 attributes', selected: true, zIndex: 100, nodeType: DataModelGraphNodeType.entityType }));
|
|
146
144
|
expect(nodeReducer('hca', graph.getNodeAttributes('hca'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hca'))), { image: 'HCA.svg', label: 'HCA', nodeType: DataModelGraphNodeType.entityType }));
|
|
147
145
|
expect(nodeReducer('gpo', graph.getNodeAttributes('gpo'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('gpo'))), { label: 'GPO', nodeType: DataModelGraphNodeType.entityType, inactive: true, labelColor: INACTIVE_LABEL_COLOR, secondaryLabelColor: INACTIVE_LABEL_COLOR }));
|
|
148
146
|
expect(nodeReducer('prescriptions', graph.getNodeAttributes('prescriptions'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('prescriptions'))), { hasBorder: true, image: expect.stringContaining('data:image/svg+xml'), label: 'Prescriptions', nodeType: DataModelGraphNodeType.interactionType }));
|
|
149
|
-
expect(result.error).toBeUndefined();
|
|
150
147
|
});
|
|
151
148
|
it('should apply correct styles when selectedEdges is specified', function () {
|
|
152
|
-
var
|
|
149
|
+
var graph = setUp({ selectedEdges: ['hcp->hca'] }).graph;
|
|
153
150
|
var nodeReducer = getNodeReducer();
|
|
154
151
|
expect(nodeReducer('hcp', graph.getNodeAttributes('hcp'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hcp'))), { image: 'HCP.svg', label: 'HCP', nodeType: DataModelGraphNodeType.entityType }));
|
|
155
152
|
expect(nodeReducer('hca', graph.getNodeAttributes('hca'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('hca'))), { image: 'HCA.svg', label: 'HCA', nodeType: DataModelGraphNodeType.entityType }));
|
|
156
153
|
expect(nodeReducer('gpo', graph.getNodeAttributes('gpo'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('gpo'))), { label: 'GPO', nodeType: DataModelGraphNodeType.entityType, inactive: true, labelColor: INACTIVE_LABEL_COLOR, secondaryLabelColor: INACTIVE_LABEL_COLOR }));
|
|
157
154
|
expect(nodeReducer('prescriptions', graph.getNodeAttributes('prescriptions'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('prescriptions'))), { hasBorder: true, image: expect.stringContaining('data:image/svg+xml'), label: 'Prescriptions', nodeType: DataModelGraphNodeType.interactionType, inactive: true, labelColor: INACTIVE_LABEL_COLOR, secondaryLabelColor: INACTIVE_LABEL_COLOR }));
|
|
158
|
-
expect(result.error).toBeUndefined();
|
|
159
155
|
});
|
|
160
156
|
it('should hide interaction types when hideInteractionTypes is true', function () {
|
|
161
|
-
var
|
|
157
|
+
var graph = setUp({ hideInteractionTypes: true }).graph;
|
|
162
158
|
var nodeReducer = getNodeReducer();
|
|
163
159
|
expect(nodeReducer('prescriptions', graph.getNodeAttributes('prescriptions'))).toEqual(__assign(__assign({}, getDefaultNodeAttributes(graph.getNodeAttributes('prescriptions'))), { hasBorder: true, image: expect.stringContaining('data:image/svg+xml'), label: 'Prescriptions', nodeType: DataModelGraphNodeType.interactionType, hidden: true }));
|
|
164
|
-
expect(result.error).toBeUndefined();
|
|
165
160
|
});
|
|
166
161
|
});
|
|
167
162
|
describe('edges reducer behavior', function () {
|
|
168
163
|
var getDefaultEdgeAttributes = function (attributes) { return (__assign(__assign({}, attributes), { size: 1 })); };
|
|
169
164
|
it('should apply default edge style', function () {
|
|
170
|
-
var
|
|
165
|
+
var graph = setUp().graph;
|
|
171
166
|
var edgeReducer = getEdgeReducer();
|
|
172
167
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca'))), { color: EDGE_COLOR }));
|
|
173
168
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo'))), { color: EDGE_COLOR }));
|
|
174
169
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', color: DASHED_EDGE_COLOR }));
|
|
175
|
-
expect(result.error).toBeUndefined();
|
|
176
170
|
});
|
|
177
171
|
it('should apply correct styles when selectedNode is specified', function () {
|
|
178
|
-
var
|
|
172
|
+
var graph = setUp({ selectedNode: 'hcp' }).graph;
|
|
179
173
|
var edgeReducer = getEdgeReducer();
|
|
180
174
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca'))), { color: RELATED_EDGE_COLOR }));
|
|
181
175
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo'))), { color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
182
176
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', color: RELATED_DASHED_EDGE_COLOR }));
|
|
183
|
-
expect(result.error).toBeUndefined();
|
|
184
177
|
});
|
|
185
178
|
it('should apply correct styles when selectedEdges is specified', function () {
|
|
186
|
-
var
|
|
179
|
+
var graph = setUp({ selectedEdges: ['hcp->hca'] }).graph;
|
|
187
180
|
var edgeReducer = getEdgeReducer();
|
|
188
181
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca'))), { color: SELECTED_EDGE_COLOR, selected: true }));
|
|
189
182
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo'))), { selected: false, color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
190
183
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', selected: false, color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
191
|
-
expect(result.error).toBeUndefined();
|
|
192
184
|
});
|
|
193
185
|
it('should remove edge label prop when relations edges amount bigger than relationEdgesLabelsAmountThreshold', function () {
|
|
194
|
-
var
|
|
186
|
+
var graph = setUp({ relationEdgesLabelsAmountThreshold: 1 }).graph;
|
|
195
187
|
var edgeReducer = getEdgeReducer();
|
|
196
188
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, omit(['label'], getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca')))), { color: EDGE_COLOR }));
|
|
197
189
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, omit(['label'], getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo')))), { color: EDGE_COLOR }));
|
|
198
190
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', color: DASHED_EDGE_COLOR }));
|
|
199
|
-
expect(result.error).toBeUndefined();
|
|
200
191
|
});
|
|
201
192
|
it('should keep edge label prop for edge related with selected node even if relations edges amount bigger than relationEdgesLabelsAmountThreshold', function () {
|
|
202
|
-
var
|
|
193
|
+
var graph = setUp({ relationEdgesLabelsAmountThreshold: 1, selectedNode: 'hcp' }).graph;
|
|
203
194
|
var edgeReducer = getEdgeReducer();
|
|
204
195
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca'))), { color: RELATED_EDGE_COLOR }));
|
|
205
196
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, omit(['label'], getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo')))), { color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
206
197
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', color: RELATED_DASHED_EDGE_COLOR }));
|
|
207
|
-
expect(result.error).toBeUndefined();
|
|
208
198
|
});
|
|
209
199
|
it('should keep edge label prop for selected edge even if relations edges amount bigger than relationEdgesLabelsAmountThreshold', function () {
|
|
210
|
-
var
|
|
200
|
+
var graph = setUp({ relationEdgesLabelsAmountThreshold: 1, selectedEdges: ['hcp->hca'] }).graph;
|
|
211
201
|
var edgeReducer = getEdgeReducer();
|
|
212
202
|
expect(edgeReducer('hcp->hca', graph.getEdgeAttributes('hcp->hca'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->hca'))), { color: SELECTED_EDGE_COLOR, selected: true }));
|
|
213
203
|
expect(edgeReducer('hca->gpo', graph.getEdgeAttributes('hca->gpo'))).toEqual(__assign(__assign({}, omit(['label'], getDefaultEdgeAttributes(graph.getEdgeAttributes('hca->gpo')))), { selected: false, color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
214
204
|
expect(edgeReducer('hcp->prescriptions', graph.getEdgeAttributes('hcp->prescriptions'))).toEqual(__assign(__assign({}, getDefaultEdgeAttributes(graph.getEdgeAttributes('hcp->prescriptions'))), { type: 'dashed', selected: false, color: INACTIVE_EDGE_COLOR, labelColor: INACTIVE_LABEL_COLOR }));
|
|
215
|
-
expect(result.error).toBeUndefined();
|
|
216
205
|
});
|
|
217
206
|
});
|
|
218
207
|
});
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { renderHook, act } from '@testing-library/react
|
|
12
|
+
import { renderHook, act } from '@testing-library/react';
|
|
13
13
|
import { last } from 'ramda';
|
|
14
14
|
import { useRegisterEvents, useSigma } from '@react-sigma/core';
|
|
15
15
|
import { useSigmaCustomRenderers } from '../../hooks/useSigmaCustomRenderers';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderHook, act } from '@testing-library/react
|
|
1
|
+
import { renderHook, act } from '@testing-library/react';
|
|
2
2
|
import { useSigma } from '@react-sigma/core';
|
|
3
3
|
import { FAKE_CENTER_NODE_ID, useFakeCenterNode } from './useFakeCenterNode';
|
|
4
4
|
import { createDefaultGraph } from './defaultGraph.test-data';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderHook, act } from '@testing-library/react
|
|
1
|
+
import { renderHook, act } from '@testing-library/react';
|
|
2
2
|
import { useSigma } from '@react-sigma/core';
|
|
3
3
|
import { useSigmaCustomRenderers } from '../../hooks/useSigmaCustomRenderers';
|
|
4
4
|
import { useSelectedNodeRenderer } from './useSelectedNodeRenderer';
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { renderHook, act } from '@testing-library/react
|
|
12
|
+
import { renderHook, act } from '@testing-library/react';
|
|
13
13
|
import { MultiGraph } from 'graphology';
|
|
14
14
|
import { useSigma } from '@react-sigma/core';
|
|
15
15
|
import { RelationTypeDirection } from '@reltio/mdm-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderHook, act } from '@testing-library/react
|
|
1
|
+
import { renderHook, act } from '@testing-library/react';
|
|
2
2
|
import { useSigmaContext } from '@react-sigma/core';
|
|
3
3
|
import { pipe, findLast, path, nth, equals } from 'ramda';
|
|
4
4
|
import { useSigmaCustomRenderers } from './useSigmaCustomRenderers';
|
|
@@ -31,7 +31,7 @@ import { useStyles } from './styles';
|
|
|
31
31
|
export var HistoryFilterButton = function (_a) {
|
|
32
32
|
var className = _a.className, filter = _a.filter, onApplyFilter = _a.onApplyFilter, entityType = _a.entityType;
|
|
33
33
|
var styles = useStyles();
|
|
34
|
-
var buttonRef = useRef();
|
|
34
|
+
var buttonRef = useRef(null);
|
|
35
35
|
var _b = useState(false), isOpen = _b[0], setIsOpen = _b[1];
|
|
36
36
|
var _c = useState(filter), currentValue = _c[0], setCurrentValue = _c[1];
|
|
37
37
|
var _d = currentValue || {}, _e = _d.activities, activities = _e === void 0 ? [] : _e, _f = _d.attributes, attributes = _f === void 0 ? [] : _f, _g = _d.dateRange, dateRange = _g === void 0 ? null : _g, _h = _d.users, users = _h === void 0 ? [] : _h;
|
|
@@ -54,7 +54,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
54
54
|
}
|
|
55
55
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
56
56
|
};
|
|
57
|
-
import { renderHook, act } from '@testing-library/react
|
|
57
|
+
import { renderHook, act } from '@testing-library/react';
|
|
58
58
|
import { HistoryActivityType } from '../types';
|
|
59
59
|
import { getHistoricUris, getHistoryWithTotal } from '@reltio/mdm-sdk';
|
|
60
60
|
import { buildHistoryFilterString } from '../helpers/filters';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { renderHook } from '@testing-library/react
|
|
2
|
+
import { renderHook } from '@testing-library/react';
|
|
3
3
|
import { HistoryMode } from '@reltio/mdm-sdk';
|
|
4
4
|
import { MdmModuleProvider } from '../../../contexts/MdmModuleContext';
|
|
5
5
|
import { DEFAULT_HISTORY_DIFF } from '../constants';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { renderHook } from '@testing-library/react
|
|
1
|
+
import { renderHook } from '@testing-library/react';
|
|
2
2
|
import * as PerspectivesSettingsContext from '../../../contexts/PerspectivesSettingsContext';
|
|
3
3
|
import { useHistoryEnabled } from './useHistoryEnabled';
|
|
4
4
|
describe('useHistoryEnabled behaviour', function () {
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import React from 'react';
|
|
49
|
-
import { renderHook, act } from '@testing-library/react
|
|
49
|
+
import { renderHook, act } from '@testing-library/react';
|
|
50
50
|
import { Mode, getEntityTimeSlice } from '@reltio/mdm-sdk';
|
|
51
51
|
import { MdmModuleProvider } from '../../../contexts/MdmModuleContext';
|
|
52
52
|
import { useHistorySlice } from './useHistorySlice';
|
|
@@ -45,7 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { renderHook } from '@testing-library/react
|
|
48
|
+
import { renderHook } from '@testing-library/react';
|
|
49
49
|
import { fullHistoryChanges, halfHistoryChanges, complexUnmergeChanges, complexFakeUnmergeChanges } from './history.test-data';
|
|
50
50
|
import { deepFreeze } from '../../../test-utils';
|
|
51
51
|
import { useHistoryTree } from './useHistoryTree';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "input" | "footer" | "select" | "inputRoot" | "asterisk" | "cancelButton" | "inputLabelRoot" | "popoverPaper" | "simpleDropDownSelector">;
|
|
@@ -45,7 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { renderHook, act } from '@testing-library/react
|
|
48
|
+
import { renderHook, act } from '@testing-library/react';
|
|
49
49
|
import { getDataChangeRequest, getEntitiesByUris } from '@reltio/mdm-sdk';
|
|
50
50
|
import { ErrorPopup } from '../../../ErrorPopup';
|
|
51
51
|
import { useChangeRequest } from './useChangeRequest';
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { renderHook } from '@testing-library/react
|
|
13
|
+
import { renderHook } from '@testing-library/react';
|
|
14
14
|
import { MdmModuleProvider } from '../../../contexts/MdmModuleContext';
|
|
15
15
|
import { useWorkflowCheckPermission } from './useWorkflowCheckPermission';
|
|
16
16
|
var createUser = function (permissions) {
|
|
@@ -45,7 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { act } from '
|
|
48
|
+
import { act } from '@testing-library/react';
|
|
49
49
|
import { nanoid } from 'nanoid';
|
|
50
50
|
import { getWorkerURL, resetHtml, getFilesWithArrayBuffer, setUpRequestInterceptor, setUpResponseInterceptor, isValidCustomScript, getRequestFakeUrl, getResponseFakeUrl, getProcessedTask } from './customScript';
|
|
51
51
|
import { CustomAction, CustomScriptPlatform, RequestAction } from '@reltio/mdm-sdk';
|
package/hooks/useAPI/useAPI.js
CHANGED
|
@@ -31,8 +31,8 @@ export var useAPI = function (config) {
|
|
|
31
31
|
var _g = useState(), popup = _g[0], setPopup = _g[1];
|
|
32
32
|
var _h = useState(null), tooltip = _h[0], setTooltip = _h[1];
|
|
33
33
|
var _j = useState({}), customStyles = _j[0], setCustomStyles = _j[1];
|
|
34
|
-
var workerRef = useRef();
|
|
35
|
-
var entityRef = useRef();
|
|
34
|
+
var workerRef = useRef(null);
|
|
35
|
+
var entityRef = useRef(null);
|
|
36
36
|
var requestListeners = useRef({});
|
|
37
37
|
var responseListeners = useRef({});
|
|
38
38
|
var sanitizeHtml = useHtmlSanitizer();
|