@m4l/components 9.17.1-beta-feature-731-m4l-components-code-editor.0 → 9.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +0 -11
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts +2 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.d.ts.map +1 -1
- package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +30 -41
- package/components/CommonActions/components/ActionFormCancel/types.d.ts +2 -2
- package/components/CommonActions/index.d.ts +1 -0
- package/components/CommonActions/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +3 -14
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts.map +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +105 -119
- package/components/DragResizeWindowRND/helpers/index.d.ts +1 -0
- package/components/DragResizeWindowRND/helpers/index.d.ts.map +1 -1
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts +15 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.d.ts.map +1 -0
- package/components/DragResizeWindowRND/helpers/resizeHandles.js +68 -0
- package/components/DragResizeWindowRND/types.d.ts +3 -1
- package/components/DragResizeWindowRND/types.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.js +49 -49
- package/components/WindowBase/WindowBase.styles.d.ts +1 -1
- package/components/WindowBase/WindowBase.styles.d.ts.map +1 -1
- package/components/WindowBase/WindowBase.styles.js +37 -12
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts +19 -34
- package/components/WindowBase/contexts/WindowToolsMFContext/types.d.ts.map +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +18 -18
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts +2 -5
- package/components/areas/components/AreasAdmin/AreasAdmin.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +24 -24
- package/components/areas/components/AreasAdmin/helper.d.ts +1 -4
- package/components/areas/components/AreasAdmin/helper.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts +2 -26
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +72 -71
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -24
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts.map +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +58 -57
- package/components/areas/components/AreasAdmin/types.d.ts +9 -9
- package/components/areas/components/AreasViewer/AreasViewer.styles.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.styles.js +174 -6
- package/components/areas/components/AreasViewer/constants.d.ts +12 -0
- package/components/areas/components/AreasViewer/constants.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/constants.js +5 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts +9 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerEnum.js +2 -2
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +27 -0
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +62 -25
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts +1 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +4 -4
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts +1 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +12 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts +78 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/helpers/panelRuntime.js +86 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts +33 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/useOverlayPanelResize.js +91 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePanelsByArea.js +45 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/hooks/usePinnedPanelResize.js +105 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/AreaPanels.js +158 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts +15 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeInteractionLayer.js +19 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts +14 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelResizeRail.js +35 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts +7 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.d.ts.map +1 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/subcomponents/AreaPanels/subcomponents/PanelWindow.js +68 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +61 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts +3 -6
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +45 -45
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +68 -40
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +6 -11
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +77 -76
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts +3 -5
- package/components/areas/contexts/AreasContext/helpers/generateModuleCount.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts +20 -15
- package/components/areas/contexts/AreasContext/helpers/helper.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +8 -7
- package/components/areas/contexts/AreasContext/index.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/index.js +51 -48
- package/components/areas/contexts/AreasContext/store.d.ts +2 -3
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +397 -290
- package/components/areas/contexts/AreasContext/types.d.ts +109 -85
- package/components/areas/contexts/AreasContext/types.d.ts.map +1 -1
- package/components/areas/dictionary.d.ts +3 -0
- package/components/areas/dictionary.d.ts.map +1 -1
- package/components/areas/dictionary.js +9 -6
- package/components/areas/hooks/useAreas/index.d.ts +2 -2
- package/components/areas/hooks/useAreas/index.js +4 -4
- package/components/areas/types.d.ts +173 -47
- package/components/areas/types.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts +2 -1
- package/components/areas/utils/useOnClickOutside/index.d.ts.map +1 -1
- package/components/areas/utils/useOnClickOutside/index.js +15 -0
- package/components/extended/index.d.ts +0 -1
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/index.d.ts +0 -1
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +5 -4
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts.map +1 -1
- package/components/popups/components/PopupsProvider/hooks/usePopups.js +2 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/index.d.ts.map +1 -1
- package/hooks/useWindowCloseGuard/index.d.ts +18 -0
- package/hooks/useWindowCloseGuard/index.d.ts.map +1 -0
- package/hooks/useWindowCloseGuard/index.js +56 -0
- package/index.js +664 -675
- package/package.json +7 -10
- package/test/mocks/dictionary-mock.d.ts +2 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -247
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -297
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +0 -149
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -59
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -63
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +0 -15
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +0 -1
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -127
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
- package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetLabelType, NetworkProps } from '@m4l/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { CookieType, EmmitNewModalProps, EmmitNewPopupProps, EmmitNewWindowProps, AreaWindowProps, EmmitNewLayoutProps } from '../../types';
|
|
3
|
+
import { CookieType, EmmitNewModalProps, AreaPanelSizeUpdate, EmmitNewPopupProps, EmmitNewWindowProps, AreaWindowProps, EmmitNewLayoutProps, EmmitNewPanelProps, WindowQueryCloseHandler, WindowQueryCloseRequest } from '../../types';
|
|
4
4
|
import { DebouncedFunc } from 'lodash';
|
|
5
5
|
import { LayoutItem } from '../../../GridLayout';
|
|
6
6
|
import { ContainerChangeEvent } from '../../../GridLayout/subcomponents/Responsive/types';
|
|
@@ -20,134 +20,142 @@ export type ViewAreaMode = 'multiple' | 'single';
|
|
|
20
20
|
export type AreaStatus = 'init' | 'loading' | 'load' | 'loaded' | 'error';
|
|
21
21
|
export interface Area {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Logical identifier for the work area.
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Display name shown for the work area.
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Current loading status for the work area.
|
|
32
32
|
*/
|
|
33
33
|
status: AreaStatus;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* Legacy popup z-index marker kept for compatibility.
|
|
36
|
+
* @deprecated Popup stacking is now owned by PopupsProvider.
|
|
37
37
|
*/
|
|
38
38
|
zPopUpIndex: number;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
40
|
+
* Whether this area should load its windows.
|
|
41
|
+
* Newly created areas start without windows, but existing areas can lazily
|
|
42
|
+
* load their windows the first time they are opened.
|
|
42
43
|
*/
|
|
43
44
|
loadWindows: boolean;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
46
|
+
* Height of the rendered area container.
|
|
47
|
+
* This state lives per area because resize events only arrive while the area
|
|
48
|
+
* is visible, and new windows depend on this value to compute their size.
|
|
48
49
|
*/
|
|
49
50
|
containerHeight?: number;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Current responsive breakpoint for the work area.
|
|
52
53
|
*/
|
|
53
54
|
currentBreakpoint?: Breakpoint;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
+
* Grid layouts stored for the work area.
|
|
56
57
|
*/
|
|
57
58
|
layouts: Layouts;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Identifier of the maximized window, if the area currently has one.
|
|
60
61
|
*/
|
|
61
62
|
maximizedId?: string | undefined;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* Window ids in insertion order for this area.
|
|
64
65
|
*/
|
|
65
66
|
layoutItemsIds: string[];
|
|
66
67
|
/**
|
|
67
|
-
*
|
|
68
|
+
* Panel window ids in insertion order for this area.
|
|
69
|
+
* The first panel iteration keeps one logical panel per side.
|
|
70
|
+
*/
|
|
71
|
+
panelItemsIds: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the currently selected layout window.
|
|
68
74
|
*/
|
|
69
75
|
currentLayoutId: string;
|
|
70
76
|
/**
|
|
71
|
-
*
|
|
77
|
+
* Responsive breakpoint widths for the work area.
|
|
72
78
|
*/
|
|
73
79
|
breakpoints: Breakpoints;
|
|
74
80
|
/**
|
|
75
|
-
*
|
|
81
|
+
* Number of grid columns available per breakpoint.
|
|
76
82
|
*/
|
|
77
83
|
cols: Cols;
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
|
-
*
|
|
86
|
+
* Loading state for the Areas workspace.
|
|
81
87
|
*/
|
|
82
88
|
export type AreasStatus = 'init' | 'loading' | 'loaded' | 'error';
|
|
83
89
|
export type OwnerState = {
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
91
|
+
* Current lifecycle status for the Areas provider.
|
|
86
92
|
*/
|
|
87
93
|
status: AreasStatus;
|
|
88
94
|
/**
|
|
89
|
-
*
|
|
95
|
+
* Whether the provider has finished its mount-time effect and subscribed to
|
|
96
|
+
* the event emitter. This is commonly relevant in isolation and Storybook.
|
|
90
97
|
*/
|
|
91
98
|
readyForHooks: boolean;
|
|
92
99
|
};
|
|
93
100
|
/**
|
|
94
|
-
*
|
|
101
|
+
* State owned outside the store and synchronized through React hooks.
|
|
95
102
|
*/
|
|
96
103
|
export type ExternalOwnerState = Pick<OwnerState, 'readyForHooks'>;
|
|
97
104
|
/**
|
|
98
|
-
*
|
|
105
|
+
* Store state contract for the Areas runtime.
|
|
99
106
|
*/
|
|
100
107
|
export interface AreasStoreState {
|
|
101
108
|
/**
|
|
102
|
-
*
|
|
109
|
+
* Optional identifier used to distinguish this store instance.
|
|
103
110
|
*/
|
|
104
111
|
storeId?: string;
|
|
105
112
|
/**
|
|
106
|
-
*
|
|
113
|
+
* Whether areas should be loaded from and persisted to the API.
|
|
107
114
|
*/
|
|
108
115
|
loadAreasFromNetwork: boolean;
|
|
109
116
|
/**
|
|
110
|
-
*
|
|
117
|
+
* Whether window cookies should be loaded from and persisted to the API.
|
|
111
118
|
*/
|
|
112
119
|
loadCookiesFromNetwork: boolean;
|
|
113
120
|
/**
|
|
114
|
-
*
|
|
121
|
+
* Identifier of the currently selected work area.
|
|
115
122
|
*/
|
|
116
123
|
currentAreaId: string;
|
|
117
124
|
/**
|
|
118
|
-
*
|
|
125
|
+
* Identifier of the currently selected module.
|
|
119
126
|
*/
|
|
120
127
|
currentModuleId: string;
|
|
121
128
|
/**
|
|
122
|
-
*
|
|
129
|
+
* Owner state consumed by the view layer and styling hooks.
|
|
123
130
|
*/
|
|
124
131
|
ownerState: OwnerState;
|
|
125
132
|
/**
|
|
126
|
-
*
|
|
133
|
+
* Modal window ids in insertion order.
|
|
127
134
|
*/
|
|
128
135
|
windowsModalsIds: string[];
|
|
129
136
|
/**
|
|
130
|
-
*
|
|
137
|
+
* Work-area ids in the order exposed by AreasAdmin.
|
|
131
138
|
*/
|
|
132
139
|
areasIds: string[];
|
|
133
140
|
/**
|
|
134
|
-
*
|
|
141
|
+
* Normalized area registry.
|
|
135
142
|
*/
|
|
136
143
|
hashAreas: Record<string, Area>;
|
|
137
144
|
/**
|
|
138
|
-
*
|
|
145
|
+
* Normalized logical window registry for layouts, popups, and modals.
|
|
139
146
|
*/
|
|
140
147
|
hashWindows: Record<string, AreaWindowProps>;
|
|
141
148
|
/**
|
|
142
|
-
*
|
|
149
|
+
* Network implementation used by the store for API calls.
|
|
143
150
|
*/
|
|
144
151
|
networkOperation: (props: NetworkProps) => Promise<any>;
|
|
145
152
|
/**
|
|
146
|
-
*
|
|
153
|
+
* Dictionary label resolver used by store-side workflows such as area creation.
|
|
147
154
|
*/
|
|
148
155
|
getLabel: GetLabelType;
|
|
149
156
|
/**
|
|
150
|
-
*
|
|
157
|
+
* Zustand cannot read React-context methods directly, so popup shell methods
|
|
158
|
+
* must be injected when the Areas store is created.
|
|
151
159
|
*/
|
|
152
160
|
popupsProviderMethods: {
|
|
153
161
|
addPopup: PopupsProviderStoreStateWithActions['popupsActions']['addPopup'];
|
|
@@ -161,122 +169,131 @@ export interface AreasStoreState {
|
|
|
161
169
|
export interface AreasStoreStateWithActions extends AreasStoreState {
|
|
162
170
|
areasActions: {
|
|
163
171
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
172
|
+
* Initialize the store by loading work areas.
|
|
173
|
+
* Once the flow finishes it updates `ownerState.status` to `loaded`.
|
|
174
|
+
* In production this is normally asynchronous because it calls the Areas API.
|
|
167
175
|
*/
|
|
168
176
|
init: () => void;
|
|
169
177
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* @returns id
|
|
178
|
+
* Add a work area, select it, and clear `currentModuleId`.
|
|
179
|
+
* When `loadAreasFromNetwork` is enabled, this also triggers the Areas POST endpoint.
|
|
180
|
+
* @returns id of the created work area
|
|
173
181
|
*/
|
|
174
182
|
addArea: () => string;
|
|
175
183
|
/**
|
|
176
|
-
*
|
|
177
|
-
* Si está habilitado y sincroniza los cambios en la API.
|
|
178
|
-
* @returns nombre del area de trabajo
|
|
184
|
+
* Update the work-area name and optionally synchronize the change with the API.
|
|
179
185
|
*/
|
|
180
186
|
editArea: (idArea: string, newName: string) => void;
|
|
181
187
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* @param newAreaId Id de area a seleccionar
|
|
187
|
-
* @returns
|
|
188
|
+
* Select the target area and align `currentModuleId` with the selected layout in that area.
|
|
189
|
+
* This keeps the module switch visible in the menu and can lazily load windows the
|
|
190
|
+
* first time the area is selected when `loadAreasFromNetwork` is enabled.
|
|
191
|
+
* @param newAreaId area id to select
|
|
188
192
|
*/
|
|
189
193
|
selectArea: (newAreaId: string) => void;
|
|
190
194
|
/**
|
|
191
|
-
*
|
|
192
|
-
* @param areaId
|
|
193
|
-
* @returns void
|
|
195
|
+
* Delete a work area and optionally propagate the removal to the API.
|
|
196
|
+
* @param areaId area id to delete
|
|
194
197
|
*/
|
|
195
198
|
deleteArea: (areaId: string) => void;
|
|
196
199
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* @
|
|
200
|
+
* Refresh the `getLabel` handler stored in Zustand.
|
|
201
|
+
* The callback identity can change after the module dictionary finishes loading,
|
|
202
|
+
* so the store keeps the latest resolver explicitly.
|
|
203
|
+
* @param newHandler dictionary label resolver
|
|
201
204
|
*/
|
|
202
205
|
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
203
206
|
/**
|
|
204
|
-
*
|
|
205
|
-
* @param newIsMobile
|
|
206
|
-
* @returns
|
|
207
|
+
* Update the externally synchronized owner state.
|
|
207
208
|
*/
|
|
208
209
|
setExternalState: (newExternalState: Partial<ExternalOwnerState>) => void;
|
|
209
210
|
};
|
|
210
211
|
areaActions: {
|
|
211
212
|
/**
|
|
212
|
-
*
|
|
213
|
+
* Add a new window and route it to the correct emergence flow: layout, popup, or modal.
|
|
213
214
|
*/
|
|
214
215
|
addWindow: (newWindow: EmmitNewWindowProps) => void;
|
|
215
216
|
/**
|
|
216
|
-
*
|
|
217
|
+
* Add a layout window to the Area grid.
|
|
217
218
|
*/
|
|
218
219
|
addLayout: (areaId: string, windowId: string, newWindow: EmmitNewLayoutProps) => void;
|
|
219
220
|
/**
|
|
220
|
-
*
|
|
221
|
+
* Close a layout window and remove it from the Area grid.
|
|
221
222
|
*/
|
|
222
223
|
closeLayout: (areaId: string, removePopUpId: string) => void;
|
|
223
224
|
/**
|
|
224
|
-
*
|
|
225
|
+
* Mark a layout as the currently selected one.
|
|
225
226
|
*/
|
|
226
227
|
selectLayout: (areaId: string, layoutId: string, saveCookie?: boolean) => void;
|
|
227
228
|
/**
|
|
228
|
-
*
|
|
229
|
+
* Collapse a layout so only its header remains visible.
|
|
229
230
|
*/
|
|
230
231
|
colapseLayoutItem: (areaId: string, layoutId: string) => void;
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
+
* Expand a previously collapsed layout back to its full size.
|
|
233
234
|
*/
|
|
234
235
|
unColapseLayoutItem: (areaId: string, layoutId: string) => void;
|
|
235
236
|
/**
|
|
236
|
-
*
|
|
237
|
-
* TODO:
|
|
237
|
+
* Return layouts to their normal state and clear the maximized selection.
|
|
238
|
+
* TODO: Revisit how this should coordinate with popups.
|
|
238
239
|
*/
|
|
239
240
|
normalizeLayouts: (areaId: string) => void;
|
|
240
241
|
/**
|
|
241
|
-
*
|
|
242
|
+
* Maximize a layout and update the area's `maximizedId`.
|
|
242
243
|
*/
|
|
243
244
|
maximizeLayout: (areaId: string, layoutId?: string) => void;
|
|
244
245
|
/**
|
|
245
|
-
*
|
|
246
|
+
* Persist the current layouts to the API.
|
|
246
247
|
*/
|
|
247
248
|
saveLayouts: (areaId: string) => void;
|
|
248
249
|
/**
|
|
249
|
-
*
|
|
250
|
-
* siempre y cuando no este maximizada una ventana
|
|
250
|
+
* Update Area grid layouts after a browser resize, as long as no window is maximized.
|
|
251
251
|
*/
|
|
252
252
|
onBreakpointsLayoutsChange: (areaId: string, currentLayout: Layout, newAllLayouts: Layouts) => void;
|
|
253
253
|
/**
|
|
254
|
-
*
|
|
254
|
+
* Register a popup in the Areas logical registry and delegate the visible shell to PopupsProvider.
|
|
255
255
|
*/
|
|
256
256
|
addPopup: (areaId: string, windowId: string, newWindowProps: EmmitNewPopupProps) => void;
|
|
257
257
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
258
|
+
* Register a panel in the Areas logical registry.
|
|
259
|
+
* Panels render inside the area flow and do not use PopupsProvider.
|
|
260
|
+
*/
|
|
261
|
+
addPanel: (areaId: string, windowId: string, newWindowProps: EmmitNewPanelProps) => void;
|
|
262
|
+
/**
|
|
263
|
+
* Remove a panel from the Areas logical registry.
|
|
264
|
+
*/
|
|
265
|
+
closePanel: (areaId: string, removePanelId: string) => void;
|
|
266
|
+
/**
|
|
267
|
+
* Toggle whether a panel stays docked in the area flow.
|
|
268
|
+
*/
|
|
269
|
+
setPanelPinned: (areaId: string, panelId: string, pinned: boolean) => void;
|
|
270
|
+
/**
|
|
271
|
+
* Persist the current panel size in the axis owned by its emergence side.
|
|
272
|
+
*/
|
|
273
|
+
setPanelSize: (areaId: string, panelId: string, nextPanelSize: AreaPanelSizeUpdate) => void;
|
|
274
|
+
/**
|
|
275
|
+
* Remove the popup from the Areas logical registry after the popup-provider teardown path runs.
|
|
276
|
+
* TODO: Revisit this seam if a future popup path can bypass the provider callback.
|
|
260
277
|
*/
|
|
261
278
|
closePopup: (areaId: string, removePopupId: string) => void;
|
|
262
279
|
/**
|
|
263
|
-
*
|
|
280
|
+
* Register a modal in `hashWindows` and `windowsModalsIds`.
|
|
264
281
|
*/
|
|
265
282
|
addWindowModal: (areaId: string, windowId: string, newWindowModalProps: EmmitNewModalProps) => void;
|
|
266
283
|
/**
|
|
267
|
-
*
|
|
284
|
+
* Remove a modal from both `hashWindows` and `windowsModalsIds`.
|
|
268
285
|
*/
|
|
269
286
|
closeWindowModal: (removeModalId: string) => void;
|
|
270
287
|
/**
|
|
271
|
-
*
|
|
288
|
+
* Update area container state after the browser viewport changes size.
|
|
272
289
|
*/
|
|
273
290
|
onContainerChange: (areaId: string, e: ContainerChangeEvent) => void;
|
|
274
291
|
/**
|
|
275
|
-
*
|
|
292
|
+
* Debounced wrapper that persists layouts to the API.
|
|
276
293
|
*/
|
|
277
294
|
bouncedSaveBreakpointsLayouts: DebouncedFunc<(areaId: string) => void>;
|
|
278
295
|
/**
|
|
279
|
-
*
|
|
296
|
+
* Load windows from the API the first time an area is selected.
|
|
280
297
|
*/
|
|
281
298
|
loadWindowsFromApi: (areaId: string) => void;
|
|
282
299
|
};
|
|
@@ -285,13 +302,13 @@ export interface AreasStoreStateWithActions extends AreasStoreState {
|
|
|
285
302
|
getCookie: (windowId: string, id: string) => Record<string, any> | undefined;
|
|
286
303
|
getCookies: (windowId: string, type: CookieType) => Record<string, any>;
|
|
287
304
|
setCookie: (windowId: string, id: string, type: CookieType, cookie: Record<string, any>) => void;
|
|
288
|
-
close: (windowId: string, useFnQueryClose?: boolean) => void;
|
|
305
|
+
close: (windowId: string, useFnQueryClose?: boolean, queryCloseRequest?: WindowQueryCloseRequest) => void;
|
|
289
306
|
startProgress: (windowId: string) => void;
|
|
290
307
|
stopProgress: (windowId: string) => void;
|
|
291
308
|
loadCookiesFromApi: (windowId: string) => void;
|
|
292
309
|
saveModuleCookies: (windowId: string) => void;
|
|
293
310
|
resetModuleCookies: (windowId: string) => void;
|
|
294
|
-
setFnQueryClose: (windowId: string, fnQueryClose:
|
|
311
|
+
setFnQueryClose: (windowId: string, fnQueryClose: WindowQueryCloseHandler) => void;
|
|
295
312
|
setWindowTitle: (windowId: string, title: string) => void;
|
|
296
313
|
setWindowSubTitle: (windowId: string, subTitle: string) => void;
|
|
297
314
|
setWindowEditionInfo: (windowId: string, editionInfo: string) => void;
|
|
@@ -301,17 +318,24 @@ export type DefaultAreasStoreProps = Omit<AreasStoreState, 'currentArea'>;
|
|
|
301
318
|
export type InitialAreasStoreProps = Pick<AreasStoreState, 'networkOperation' | 'loadAreasFromNetwork' | 'loadCookiesFromNetwork' | 'getLabel' | 'ownerState' | 'popupsProviderMethods' | 'storeId'> & Partial<DefaultAreasStoreProps>;
|
|
302
319
|
export interface AreasProviderProps {
|
|
303
320
|
/**
|
|
304
|
-
*
|
|
321
|
+
* Optional identifier for the store instance.
|
|
305
322
|
*/
|
|
306
323
|
storeId?: string;
|
|
307
324
|
/**
|
|
308
|
-
*
|
|
325
|
+
* Whether store devtools should be enabled for this provider instance.
|
|
309
326
|
*/
|
|
310
327
|
storeDevtoolsEnabled?: boolean;
|
|
311
328
|
children: ReactNode;
|
|
312
329
|
loadAreasFromNetwork: boolean;
|
|
313
330
|
loadCookiesFromNetwork: boolean;
|
|
314
331
|
onSelectLayout?: (moduleId: string) => void;
|
|
332
|
+
/**
|
|
333
|
+
* Notify when area data finished loading.
|
|
334
|
+
*/
|
|
315
335
|
onLoad?: () => void;
|
|
336
|
+
/**
|
|
337
|
+
* Notify when the provider is ready to receive host open-window events.
|
|
338
|
+
*/
|
|
339
|
+
onReady?: () => void;
|
|
316
340
|
}
|
|
317
341
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,mCAAmC,EAAE,MAAM,wEAAwE,CAAC;AAC7H,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAClD,MAAM,MAAM,IAAI,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAC3C,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC1E,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAA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I,CAAC;QAChE,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KACvE,CAAC;CACH;AACD,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAE,CAAC;AAC3E,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,eAAe,EACf,kBAAkB,GAAG,sBAAsB,GAAG,wBAAwB,GAAG,UAAU,GAAG,YAAY,GAAG,uBAAuB,GAAG,SAAS,CACzI,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAEpC,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -2,6 +2,7 @@ export declare const AREAS_DICTIONARY_ID = "areas";
|
|
|
2
2
|
export declare function getAreasComponentsDictionary(): string[];
|
|
3
3
|
export declare const LABEL_FILTER_BUTTON = "filter_tooltip";
|
|
4
4
|
export declare const AREAS_DICCTIONARY: {
|
|
5
|
+
readonly label_no_areas_available: "label_no_areas_available";
|
|
5
6
|
readonly label_new_area: "label_new_area";
|
|
6
7
|
readonly label_persist_module_cookies: "label_persist_module_cookies";
|
|
7
8
|
readonly validation_edit_area: "validation_edit_area";
|
|
@@ -20,6 +21,8 @@ export declare const AREAS_DICCTIONARY: {
|
|
|
20
21
|
readonly label_minimize_window: "label_minimize_window";
|
|
21
22
|
readonly label_collapse_window: "label_collapse_window";
|
|
22
23
|
readonly label_uncollapse_window: "label_uncollapse_window";
|
|
24
|
+
readonly label_pin_panel: "label_pin_panel";
|
|
25
|
+
readonly label_unpin_panel: "label_unpin_panel";
|
|
23
26
|
readonly label_module_actions: "label_module_actions";
|
|
24
27
|
readonly label_window: "label_window";
|
|
25
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/areas/dictionary.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,wBAAgB,4BAA4B,aAE3C;AACD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;CAyBpB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,iBAAiB,CAAC;AAC3D,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,mBAAmB,WAEhE,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const e = "areas";
|
|
2
|
-
function
|
|
2
|
+
function l() {
|
|
3
3
|
return [e];
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const _ = "filter_tooltip", o = {
|
|
6
|
+
label_no_areas_available: "label_no_areas_available",
|
|
6
7
|
label_new_area: "label_new_area",
|
|
7
8
|
label_persist_module_cookies: "label_persist_module_cookies",
|
|
8
9
|
validation_edit_area: "validation_edit_area",
|
|
@@ -21,13 +22,15 @@ const l = "filter_tooltip", o = {
|
|
|
21
22
|
label_minimize_window: "label_minimize_window",
|
|
22
23
|
label_collapse_window: "label_collapse_window",
|
|
23
24
|
label_uncollapse_window: "label_uncollapse_window",
|
|
25
|
+
label_pin_panel: "label_pin_panel",
|
|
26
|
+
label_unpin_panel: "label_unpin_panel",
|
|
24
27
|
label_module_actions: "label_module_actions",
|
|
25
28
|
label_window: "label_window"
|
|
26
|
-
},
|
|
29
|
+
}, i = (a) => `${e}.${a}`;
|
|
27
30
|
export {
|
|
28
31
|
o as AREAS_DICCTIONARY,
|
|
29
32
|
e as AREAS_DICTIONARY_ID,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
_ as LABEL_FILTER_BUTTON,
|
|
34
|
+
l as getAreasComponentsDictionary,
|
|
35
|
+
i as getAreasDictionary
|
|
33
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AreasStoreStateWithActions } from '../../contexts/AreasContext/types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Read the shared Areas Zustand store instance from context.
|
|
4
4
|
*/
|
|
5
5
|
export declare function useAreas(): Omit<Omit<import('zustand').StoreApi<AreasStoreStateWithActions>, "setState"> & {
|
|
6
6
|
setState<A extends string | {
|
|
@@ -12,7 +12,7 @@ export declare function useAreas(): Omit<Omit<import('zustand').StoreApi<AreasSt
|
|
|
12
12
|
} | undefined): void;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Select reactive state from the shared Areas store with an optional equality function.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useAreasStore<T>(selector: (state: AreasStoreStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
|
18
18
|
export default useAreas;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useContext as o } from "react";
|
|
2
2
|
import { useStore as s } from "zustand";
|
|
3
3
|
import { AreasContext as n } from "../../contexts/AreasContext/index.js";
|
|
4
|
-
function
|
|
4
|
+
function f(r, t) {
|
|
5
5
|
const e = o(n);
|
|
6
6
|
if (!e)
|
|
7
|
-
throw new Error("useAreasStore
|
|
8
|
-
return s(e,
|
|
7
|
+
throw new Error("useAreasStore must be used inside AreasContext");
|
|
8
|
+
return s(e, r, t);
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
f as useAreasStore
|
|
12
12
|
};
|