@reltio/components 1.4.2103 → 1.4.2105
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/HOCs/withBlockNavigation/index.d.ts +1 -0
- package/HOCs/withBlockNavigation/index.js +1 -0
- package/HOCs/withBlockNavigation/withBlockNavigation.d.ts +5 -0
- package/HOCs/withBlockNavigation/withBlockNavigation.js +21 -0
- package/cjs/HOCs/withBlockNavigation/index.d.ts +1 -0
- package/cjs/HOCs/withBlockNavigation/index.js +5 -0
- package/cjs/HOCs/withBlockNavigation/withBlockNavigation.d.ts +5 -0
- package/cjs/HOCs/withBlockNavigation/withBlockNavigation.js +28 -0
- package/cjs/contexts/BlockNavigationContext/index.d.ts +10 -0
- package/cjs/contexts/BlockNavigationContext/index.js +39 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +7 -3
- package/contexts/BlockNavigationContext/index.d.ts +10 -0
- package/contexts/BlockNavigationContext/index.js +12 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withBlockNavigation } from './withBlockNavigation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withBlockNavigation } from './withBlockNavigation';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { BlockNavigationContextProvider } from '../../contexts/BlockNavigationContext';
|
|
14
|
+
export var withBlockNavigation = function (Component) {
|
|
15
|
+
var WithBlockNavigation = function (props) {
|
|
16
|
+
return (React.createElement(BlockNavigationContextProvider, null,
|
|
17
|
+
React.createElement(Component, __assign({}, props))));
|
|
18
|
+
};
|
|
19
|
+
WithBlockNavigation.displayName = 'WithBlockNavigation';
|
|
20
|
+
return WithBlockNavigation;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withBlockNavigation } from './withBlockNavigation';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withBlockNavigation = void 0;
|
|
4
|
+
var withBlockNavigation_1 = require("./withBlockNavigation");
|
|
5
|
+
Object.defineProperty(exports, "withBlockNavigation", { enumerable: true, get: function () { return withBlockNavigation_1.withBlockNavigation; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.withBlockNavigation = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var BlockNavigationContext_1 = require("../../contexts/BlockNavigationContext");
|
|
20
|
+
var withBlockNavigation = function (Component) {
|
|
21
|
+
var WithBlockNavigation = function (props) {
|
|
22
|
+
return (react_1.default.createElement(BlockNavigationContext_1.BlockNavigationContextProvider, null,
|
|
23
|
+
react_1.default.createElement(Component, __assign({}, props))));
|
|
24
|
+
};
|
|
25
|
+
WithBlockNavigation.displayName = 'WithBlockNavigation';
|
|
26
|
+
return WithBlockNavigation;
|
|
27
|
+
};
|
|
28
|
+
exports.withBlockNavigation = withBlockNavigation;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type BlockNavigationContextType = {
|
|
3
|
+
isNavigationBlocked: boolean;
|
|
4
|
+
setIsNavigationBlocked: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const BlockNavigationContext: React.Context<BlockNavigationContextType>;
|
|
7
|
+
export declare const BlockNavigationContextProvider: ({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.BlockNavigationContextProvider = exports.BlockNavigationContext = void 0;
|
|
27
|
+
var react_1 = __importStar(require("react"));
|
|
28
|
+
exports.BlockNavigationContext = (0, react_1.createContext)({
|
|
29
|
+
isNavigationBlocked: false,
|
|
30
|
+
setIsNavigationBlocked: function () { }
|
|
31
|
+
});
|
|
32
|
+
exports.BlockNavigationContext.displayName = 'BlockNavigationContext';
|
|
33
|
+
var BlockNavigationContextProvider = function (_a) {
|
|
34
|
+
var children = _a.children;
|
|
35
|
+
var _b = (0, react_1.useState)(false), isNavigationBlocked = _b[0], setIsNavigationBlocked = _b[1];
|
|
36
|
+
var contextValue = (0, react_1.useMemo)(function () { return ({ isNavigationBlocked: isNavigationBlocked, setIsNavigationBlocked: setIsNavigationBlocked }); }, [isNavigationBlocked]);
|
|
37
|
+
return react_1.default.createElement(exports.BlockNavigationContext.Provider, { value: contextValue }, children);
|
|
38
|
+
};
|
|
39
|
+
exports.BlockNavigationContextProvider = BlockNavigationContextProvider;
|
package/cjs/index.d.ts
CHANGED
|
@@ -191,11 +191,13 @@ export { withChartDataPercents as withPercents } from './HOCs/withChartDataPerce
|
|
|
191
191
|
export { withFilterAtBottom } from './HOCs/withFilterAtBottom';
|
|
192
192
|
export { withTableContext } from './HOCs/withTableContext';
|
|
193
193
|
export { withCollapseButton } from './HOCs/withCollapseButton';
|
|
194
|
+
export { withBlockNavigation } from './HOCs/withBlockNavigation';
|
|
194
195
|
export { MdmModuleProvider } from './contexts/MdmModuleContext';
|
|
195
196
|
export { AsyncMountContext } from './contexts/AsyncMountContext';
|
|
196
197
|
export { HistoryDiffContext } from './contexts/HistoryAppearanceContext';
|
|
197
198
|
export { PopupBoundariesContext } from './contexts/PopupBoundariesContext';
|
|
198
199
|
export { BlockImageGalleryDialogContext } from './contexts/BlockImageGalleryDialogContext';
|
|
200
|
+
export { BlockNavigationContext } from './contexts/BlockNavigationContext';
|
|
199
201
|
export { CollaborationContext, CollaborationContextProvider, InitialCollaborationContextValue } from './contexts/CollaborationContext';
|
|
200
202
|
export { UsersContext } from './contexts/UsersContext';
|
|
201
203
|
export { PivotingAttributeContext } from './contexts/PivotingAttributeContext';
|
package/cjs/index.js
CHANGED
|
@@ -18,9 +18,9 @@ exports.NestedAttributeEditor = exports.NestedAttribute = exports.MoreAttributes
|
|
|
18
18
|
exports.DropDownSelector = exports.ReactSelectOptionWithCheckIcon = exports.ReactSelectMenuWithPopper = exports.ReactSelectMenuList = exports.ReactSelectLoadMoreButton = exports.ReactSelectDropdownIndicatorWithIconButton = exports.ReactSelectDropdownIndicator = exports.Highlighter = exports.HierarchyNodeTitle = exports.HierarchicalAttributeTooltip = exports.HideOnShrink = exports.ExpandableSearchInput = exports.ErrorPopup = exports.ErrorBoundary = exports.SegmentIdLink = exports.EntityUriLink = exports.EntityTypesSelector = exports.EntityTypeIcon = exports.EntityTypeBadge = exports.EntityAvatar = exports.EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_ICONS = exports.EmptyState = exports.Drawer = exports.DataTypeValue = exports.DataTenantBadge = exports.ConnectionRelationTypeSelector = exports.CollaborationItem = exports.ConfirmationDialog = exports.CommentsContainer = exports.ColoredSourceIcon = exports.CollapseButton = exports.TreeChart = exports.TableWithBars = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = exports.SimpleAttributeEditor = exports.SimpleAttribute = exports.RowCellAutoSizer = exports.RelationTypeSelector = exports.ReferenceAttributeEditor = exports.ReferenceAttribute = exports.ImageAttributesLine = exports.ReadOnlyAttributesPager = exports.ReadOnlyAttributesList = exports.ReadOnlyAttribute = exports.ReadOnlyAttributeValuesBlock = exports.PieChart = exports.OvIcon = void 0;
|
|
19
19
|
exports.MultipleInput = exports.ModeSwitcherSelect = exports.ModeSwitcher = exports.TransitiveMatchBlock = exports.SimpleMatchRulesBuilder = exports.SimpleMatchRulesBlock = exports.SimpleMatchRules = exports.MatchRulesBlock = exports.LoadingSpinner = exports.Link = exports.LinearLoadIndicator = exports.ImportButton = exports.ReadableSearchQueryBuilder = exports.ReadableSearchQuery = exports.LogicOperator = exports.TableSkeleton = exports.StepNavigation = exports.TenantLabel = exports.RelevanceScoreBadge = exports.RequiredMark = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = exports.ProfilesList = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.ImageGalleryDialog = exports.RelationTypesSelector = exports.ScreenProfileBand = exports.ProfileBandNavigation = exports.EmptyStub = exports.MaskingSwitcher = exports.FileTypeEditor = exports.EmptySearchResult = exports.DropDownEditor = exports.FilterValueEditor = exports.MultiValueChip = exports.TextEditor = exports.DateRangeEditor = exports.NumberEditor = exports.DataTypeValueEditor = exports.DateEditor = exports.ErrorWrapper = exports.ErrorMessage = exports.ConfigureColumnsPopup = exports.ConnectionEditor = void 0;
|
|
20
20
|
exports.withTableContext = exports.withFilterAtBottom = exports.withPercents = exports.withContext = exports.withDateRangeSelector = exports.withDragHandle = exports.withAsyncMount = exports.withTooltip = exports.DefaultHeadCellRendererWithTooltip = exports.LazyRenderer = exports.MetadataTypesSelector = exports.DateRangeSelector = exports.UpSetChart = exports.GaugeChart = exports.RelationEditor = exports.ReltioMap = exports.Marginator = exports.LightArrowTooltip = exports.ScrollableTabs = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = exports.SideButtonsPanel = exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopup = exports.WhiteSearchInput = exports.SearchInput = exports.ProfileResizablePanes = exports.ResizablePanes = exports.ReltioGridLayout = exports.RCTreeSwitchRenderer = exports.RCTreeLevelLines = exports.RCTree = exports.reactSortableTreeHelpers = exports.ReactSortableTree = exports.MultiSelect = exports.QueryBuilderRowsGroup = exports.QueryBuilderRow = exports.ProfileCard = exports.ProfileBand = exports.PotentialMatchReviewCard = exports.PopupWithArrow = exports.Popper = void 0;
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.mockComputedStyles = exports.FakeMouseEvent = exports.rerenderWrapper = exports.mockElementSizes = exports.fixClicksOnResizablePanes = exports.mockBasicTableSizing = exports.getMuiIconsByName = exports.getMuiIconByName = exports.deepFreeze = exports.awaitMockPromises = exports.TestStylesProvider = exports.TestPerspectivesSettingsProvider = exports.getAttrPathFromColumnId = exports.getAttributeHeight = exports.getNestedPathByColumnId = exports.applyCompactValuesCountConstraint = exports.getAttributeSelectorItems = exports.mergeClasses = exports.isControlOrCommandPressed = exports.getValue = exports.getChecked = exports.showErrorMessage = exports.showDefaultErrorMessage = exports.enrichDataWithPercents = exports.defaultRenderRowCell = exports.defaultGetRowCellHeight = exports.columnFilterToMdmFilter = exports.buildColumnsSizeById = exports.buildColumnsFilter = exports.useSegmentsLoader = exports.useDndBasicTableScrollModifier = exports.useDynamicYAxisWidth = exports.useFilterAutoFocus = exports.useSegmentationRequest = exports.resolveMarkers = exports.useMarkers = exports.useMaskedAttribute = exports.useKeyboardNavigation = exports.useDynamicRowCellHeight = exports.useClickableStyle = void 0;
|
|
21
|
+
exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.InitialCollaborationContextValue = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockNavigationContext = exports.BlockImageGalleryDialogContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = exports.MdmModuleProvider = exports.withBlockNavigation = exports.withCollapseButton = void 0;
|
|
22
|
+
exports.useHiddenAttributes = exports.useSavedSearchesRequest = exports.useRequestDCRReview = exports.useAutoFocus = exports.useExpandInvalidRelations = exports.useLayoutResetter = exports.useIsMountedRef = exports.useSnackbar = exports.useSavedStateForEntityType = exports.useReadableSearchState = exports.useEditableConnection = exports.useCustomScripts = exports.useMarkAsNotMatchRequest = exports.useMergeAllRequest = exports.usePagingSimulator = exports.useMatchesLoader = exports.useConfigPermissions = exports.useWhyDidYouUpdate = exports.useUsers = exports.useSavedState = exports.useSafePromise = exports.useRunOnceAfterValueInitialization = exports.useRelationsLoader = exports.useRelationTypeSelector = exports.usePrevious = exports.useDidUpdateEffect = exports.useCommentsEntitiesMap = exports.useCollaboration = exports.useAsyncMount = exports.useAPI = exports.useActions = exports.useMatchesColumnsData = exports.useScrollToAttributeError = exports.ThemeProvider = exports.ProfileTablesContext = exports.HiddenAttributesContext = exports.BasicTableContext = exports.BasicTableRowCollapseContext = exports.useDeleteUnmaskedAttributeForRelation = exports.useUnmaskedAttributeValue = exports.useUnmaskAttributeValue = exports.useMaskAttributeValue = exports.MaskedAttributesProvider = exports.useReloadData = exports.ReloadDataProvider = exports.useAttributeValueConfigPermissions = exports.ConfigPermissionsContextProvider = exports.ConfigPermissionsContext = exports.useActionsHook = exports.ActionsHookProvider = void 0;
|
|
23
|
+
exports.mockComputedStyles = exports.FakeMouseEvent = exports.rerenderWrapper = exports.mockElementSizes = exports.fixClicksOnResizablePanes = exports.mockBasicTableSizing = exports.getMuiIconsByName = exports.getMuiIconByName = exports.deepFreeze = exports.awaitMockPromises = exports.TestStylesProvider = exports.TestPerspectivesSettingsProvider = exports.getAttrPathFromColumnId = exports.getAttributeHeight = exports.getNestedPathByColumnId = exports.applyCompactValuesCountConstraint = exports.getAttributeSelectorItems = exports.mergeClasses = exports.isControlOrCommandPressed = exports.getValue = exports.getChecked = exports.showErrorMessage = exports.showDefaultErrorMessage = exports.enrichDataWithPercents = exports.defaultRenderRowCell = exports.defaultGetRowCellHeight = exports.columnFilterToMdmFilter = exports.buildColumnsSizeById = exports.buildColumnsFilter = exports.useSegmentsLoader = exports.useDndBasicTableScrollModifier = exports.useDynamicYAxisWidth = exports.useFilterAutoFocus = exports.useSegmentationRequest = exports.resolveMarkers = exports.useMarkers = exports.useMaskedAttribute = exports.useKeyboardNavigation = exports.useDynamicRowCellHeight = exports.useClickableStyle = exports.BasicTableCellRenderer = exports.useBasicTableCellRenderer = void 0;
|
|
24
24
|
// components
|
|
25
25
|
var ActionButton_1 = require("./ActionButton");
|
|
26
26
|
Object.defineProperty(exports, "ActionButton", { enumerable: true, get: function () { return ActionButton_1.ActionButton; } });
|
|
@@ -416,6 +416,8 @@ var withTableContext_1 = require("./HOCs/withTableContext");
|
|
|
416
416
|
Object.defineProperty(exports, "withTableContext", { enumerable: true, get: function () { return withTableContext_1.withTableContext; } });
|
|
417
417
|
var withCollapseButton_1 = require("./HOCs/withCollapseButton");
|
|
418
418
|
Object.defineProperty(exports, "withCollapseButton", { enumerable: true, get: function () { return withCollapseButton_1.withCollapseButton; } });
|
|
419
|
+
var withBlockNavigation_1 = require("./HOCs/withBlockNavigation");
|
|
420
|
+
Object.defineProperty(exports, "withBlockNavigation", { enumerable: true, get: function () { return withBlockNavigation_1.withBlockNavigation; } });
|
|
419
421
|
// contexts
|
|
420
422
|
var MdmModuleContext_1 = require("./contexts/MdmModuleContext");
|
|
421
423
|
Object.defineProperty(exports, "MdmModuleProvider", { enumerable: true, get: function () { return MdmModuleContext_1.MdmModuleProvider; } });
|
|
@@ -427,6 +429,8 @@ var PopupBoundariesContext_1 = require("./contexts/PopupBoundariesContext");
|
|
|
427
429
|
Object.defineProperty(exports, "PopupBoundariesContext", { enumerable: true, get: function () { return PopupBoundariesContext_1.PopupBoundariesContext; } });
|
|
428
430
|
var BlockImageGalleryDialogContext_1 = require("./contexts/BlockImageGalleryDialogContext");
|
|
429
431
|
Object.defineProperty(exports, "BlockImageGalleryDialogContext", { enumerable: true, get: function () { return BlockImageGalleryDialogContext_1.BlockImageGalleryDialogContext; } });
|
|
432
|
+
var BlockNavigationContext_1 = require("./contexts/BlockNavigationContext");
|
|
433
|
+
Object.defineProperty(exports, "BlockNavigationContext", { enumerable: true, get: function () { return BlockNavigationContext_1.BlockNavigationContext; } });
|
|
430
434
|
var CollaborationContext_1 = require("./contexts/CollaborationContext");
|
|
431
435
|
Object.defineProperty(exports, "CollaborationContext", { enumerable: true, get: function () { return CollaborationContext_1.CollaborationContext; } });
|
|
432
436
|
Object.defineProperty(exports, "CollaborationContextProvider", { enumerable: true, get: function () { return CollaborationContext_1.CollaborationContextProvider; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type BlockNavigationContextType = {
|
|
3
|
+
isNavigationBlocked: boolean;
|
|
4
|
+
setIsNavigationBlocked: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const BlockNavigationContext: React.Context<BlockNavigationContextType>;
|
|
7
|
+
export declare const BlockNavigationContextProvider: ({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { createContext, useMemo, useState } from 'react';
|
|
2
|
+
export var BlockNavigationContext = createContext({
|
|
3
|
+
isNavigationBlocked: false,
|
|
4
|
+
setIsNavigationBlocked: function () { }
|
|
5
|
+
});
|
|
6
|
+
BlockNavigationContext.displayName = 'BlockNavigationContext';
|
|
7
|
+
export var BlockNavigationContextProvider = function (_a) {
|
|
8
|
+
var children = _a.children;
|
|
9
|
+
var _b = useState(false), isNavigationBlocked = _b[0], setIsNavigationBlocked = _b[1];
|
|
10
|
+
var contextValue = useMemo(function () { return ({ isNavigationBlocked: isNavigationBlocked, setIsNavigationBlocked: setIsNavigationBlocked }); }, [isNavigationBlocked]);
|
|
11
|
+
return React.createElement(BlockNavigationContext.Provider, { value: contextValue }, children);
|
|
12
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -191,11 +191,13 @@ export { withChartDataPercents as withPercents } from './HOCs/withChartDataPerce
|
|
|
191
191
|
export { withFilterAtBottom } from './HOCs/withFilterAtBottom';
|
|
192
192
|
export { withTableContext } from './HOCs/withTableContext';
|
|
193
193
|
export { withCollapseButton } from './HOCs/withCollapseButton';
|
|
194
|
+
export { withBlockNavigation } from './HOCs/withBlockNavigation';
|
|
194
195
|
export { MdmModuleProvider } from './contexts/MdmModuleContext';
|
|
195
196
|
export { AsyncMountContext } from './contexts/AsyncMountContext';
|
|
196
197
|
export { HistoryDiffContext } from './contexts/HistoryAppearanceContext';
|
|
197
198
|
export { PopupBoundariesContext } from './contexts/PopupBoundariesContext';
|
|
198
199
|
export { BlockImageGalleryDialogContext } from './contexts/BlockImageGalleryDialogContext';
|
|
200
|
+
export { BlockNavigationContext } from './contexts/BlockNavigationContext';
|
|
199
201
|
export { CollaborationContext, CollaborationContextProvider, InitialCollaborationContextValue } from './contexts/CollaborationContext';
|
|
200
202
|
export { UsersContext } from './contexts/UsersContext';
|
|
201
203
|
export { PivotingAttributeContext } from './contexts/PivotingAttributeContext';
|
package/index.js
CHANGED
|
@@ -192,12 +192,14 @@ export { withChartDataPercents as withPercents } from './HOCs/withChartDataPerce
|
|
|
192
192
|
export { withFilterAtBottom } from './HOCs/withFilterAtBottom';
|
|
193
193
|
export { withTableContext } from './HOCs/withTableContext';
|
|
194
194
|
export { withCollapseButton } from './HOCs/withCollapseButton';
|
|
195
|
+
export { withBlockNavigation } from './HOCs/withBlockNavigation';
|
|
195
196
|
// contexts
|
|
196
197
|
export { MdmModuleProvider } from './contexts/MdmModuleContext';
|
|
197
198
|
export { AsyncMountContext } from './contexts/AsyncMountContext';
|
|
198
199
|
export { HistoryDiffContext } from './contexts/HistoryAppearanceContext';
|
|
199
200
|
export { PopupBoundariesContext } from './contexts/PopupBoundariesContext';
|
|
200
201
|
export { BlockImageGalleryDialogContext } from './contexts/BlockImageGalleryDialogContext';
|
|
202
|
+
export { BlockNavigationContext } from './contexts/BlockNavigationContext';
|
|
201
203
|
export { CollaborationContext, CollaborationContextProvider, InitialCollaborationContextValue } from './contexts/CollaborationContext';
|
|
202
204
|
export { UsersContext } from './contexts/UsersContext';
|
|
203
205
|
export { PivotingAttributeContext } from './contexts/PivotingAttributeContext';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2105",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.1942",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|