@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,69 +1,70 @@
|
|
|
1
|
-
import { useMemo as k, useEffect as
|
|
2
|
-
import { shallow as
|
|
3
|
-
import { useAreasStore as
|
|
4
|
-
import { useHeaderActions as
|
|
5
|
-
import { usePopupsStore as
|
|
6
|
-
import { useAuth as
|
|
7
|
-
import
|
|
8
|
-
const se = (
|
|
1
|
+
import { useMemo as k, useEffect as R } from "react";
|
|
2
|
+
import { shallow as r } from "zustand/shallow";
|
|
3
|
+
import { useAreasStore as m } from "../../../../../../../hooks/useAreas/index.js";
|
|
4
|
+
import { useHeaderActions as V } from "./useHeaderActions.js";
|
|
5
|
+
import { usePopupsStore as X } from "../../../../../../../../popups/components/PopupsProvider/hooks/usePopupsStore.js";
|
|
6
|
+
import { useAuth as Y } from "@m4l/core";
|
|
7
|
+
import Z from "../../../../../../../../ToastContainer/helpers/toaster.js";
|
|
8
|
+
const se = (t, s) => {
|
|
9
9
|
const [
|
|
10
|
-
|
|
10
|
+
n,
|
|
11
11
|
b,
|
|
12
|
+
v,
|
|
12
13
|
E,
|
|
13
14
|
F,
|
|
14
|
-
|
|
15
|
+
d,
|
|
15
16
|
M,
|
|
16
17
|
U,
|
|
17
18
|
L,
|
|
18
19
|
Q,
|
|
20
|
+
u,
|
|
19
21
|
x,
|
|
20
|
-
|
|
22
|
+
c,
|
|
21
23
|
z,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
] =
|
|
25
|
-
const
|
|
24
|
+
H,
|
|
25
|
+
j
|
|
26
|
+
] = m((e) => {
|
|
27
|
+
const o = e.hashWindows[t], i = s ? e.hashAreas[s]?.currentLayoutId === t : !1;
|
|
26
28
|
return [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
o?.emergeType,
|
|
30
|
+
o?.moduleId,
|
|
31
|
+
o?.winType,
|
|
32
|
+
o?.title,
|
|
33
|
+
o?.subTitle,
|
|
34
|
+
o?.editionInfo,
|
|
35
|
+
o?.iconUrl,
|
|
36
|
+
o?.version,
|
|
37
|
+
o?.buildTime,
|
|
38
|
+
o?.moduleCount,
|
|
39
|
+
i,
|
|
40
|
+
o?.loading,
|
|
41
|
+
o?.status,
|
|
42
|
+
o?.dynamicMFStore,
|
|
43
|
+
o?.winType === "microfrontend" ? o.mfProps : void 0,
|
|
44
|
+
o?.winType === "component" ? o.component : void 0
|
|
41
45
|
];
|
|
42
|
-
},
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
), { setActions: l, getCookie: p, getCookies: f, setCookie: h, close: g, startProgress: a, stopProgress: A, setFnQueryClose: T, setWindowTitle: y, setWindowSubTitle: D, setWindowEditionInfo: G, loadCookiesFromApi: C } = n((e) => e.windowActions, i), { selectLayout: J } = n((e) => e.areaActions, i), { setSelectedPopupId: K } = Y((e) => e.popupsActions, i), N = () => {
|
|
46
|
-
!m && c === "layout" && s && (J(s, o), K(s, void 0));
|
|
47
|
-
}, O = k(
|
|
46
|
+
}, r), { user: q } = Y(), { setActions: l, getCookie: p, getCookies: f, setCookie: T, close: g, startProgress: A, stopProgress: h, setFnQueryClose: a, setWindowTitle: y, setWindowSubTitle: B, setWindowEditionInfo: D, loadCookiesFromApi: C } = m((e) => e.windowActions, r), { selectLayout: G } = m((e) => e.areaActions, r), { setSelectedPopupId: J } = X((e) => e.popupsActions, r), K = () => {
|
|
47
|
+
!u && n === "layout" && s && (G(s, t), J(s, void 0));
|
|
48
|
+
}, N = k(
|
|
48
49
|
() => ({
|
|
49
|
-
getWindowId: () =>
|
|
50
|
+
getWindowId: () => t,
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Update shell actions from the mounted content.
|
|
52
53
|
*/
|
|
53
|
-
setActions: (e,
|
|
54
|
-
l(
|
|
54
|
+
setActions: (e, o, i) => {
|
|
55
|
+
l(t, e, o, i);
|
|
55
56
|
},
|
|
56
|
-
getCookie: (e) => p(
|
|
57
|
-
getCookies: (e) => f(
|
|
58
|
-
setCookie: (e,
|
|
59
|
-
close: (e = !0) => g(
|
|
60
|
-
startProgress: () =>
|
|
61
|
-
stopProgress: () =>
|
|
62
|
-
setFnQueryClose: (e) =>
|
|
63
|
-
toast:
|
|
64
|
-
setWindowTitle: (e) => y(
|
|
65
|
-
setWindowSubTitle: (e) =>
|
|
66
|
-
setWindowEditionInfo: (e) =>
|
|
57
|
+
getCookie: (e) => p(t, e),
|
|
58
|
+
getCookies: (e) => f(t, e),
|
|
59
|
+
setCookie: (e, o, i) => T(t, e, o, i),
|
|
60
|
+
close: (e = !0) => g(t, e),
|
|
61
|
+
startProgress: () => A(t),
|
|
62
|
+
stopProgress: () => h(t),
|
|
63
|
+
setFnQueryClose: (e) => a(t, e),
|
|
64
|
+
toast: Z(t),
|
|
65
|
+
setWindowTitle: (e) => y(t, e),
|
|
66
|
+
setWindowSubTitle: (e) => B(t, e),
|
|
67
|
+
setWindowEditionInfo: (e) => D(t, e),
|
|
67
68
|
hide: () => {
|
|
68
69
|
throw new Error("hide not implemented");
|
|
69
70
|
},
|
|
@@ -72,36 +73,36 @@ const se = (o, s) => {
|
|
|
72
73
|
}
|
|
73
74
|
}),
|
|
74
75
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
75
|
-
[
|
|
76
|
+
[t, l, p, f, T, g, A, h, a, y]
|
|
76
77
|
);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}, [
|
|
80
|
-
const { leftActions: W, insideActions: P, rightActions: S } =
|
|
81
|
-
windowId:
|
|
78
|
+
R(() => {
|
|
79
|
+
c === "init" && C(t);
|
|
80
|
+
}, [c, C, t]);
|
|
81
|
+
const { leftActions: W, insideActions: P, rightActions: S } = V({
|
|
82
|
+
windowId: t,
|
|
82
83
|
areaId: s,
|
|
83
|
-
emergeType:
|
|
84
|
-
}),
|
|
84
|
+
emergeType: n
|
|
85
|
+
}), O = k(() => [...W, ...P, ...S], [W, P, S]);
|
|
85
86
|
return {
|
|
86
|
-
emergeType:
|
|
87
|
+
emergeType: n,
|
|
87
88
|
moduleId: b,
|
|
88
|
-
winType:
|
|
89
|
-
title:
|
|
90
|
-
subTitle:
|
|
91
|
-
editionInfo:
|
|
92
|
-
iconUrl:
|
|
93
|
-
version:
|
|
94
|
-
buildTime:
|
|
95
|
-
moduleCount:
|
|
96
|
-
selected:
|
|
97
|
-
mfProps:
|
|
98
|
-
component:
|
|
99
|
-
loading:
|
|
100
|
-
status:
|
|
101
|
-
dynamicMFStore:
|
|
102
|
-
windowTools:
|
|
103
|
-
onTouch:
|
|
104
|
-
memoizedActions:
|
|
89
|
+
winType: v,
|
|
90
|
+
title: E,
|
|
91
|
+
subTitle: F,
|
|
92
|
+
editionInfo: d,
|
|
93
|
+
iconUrl: M,
|
|
94
|
+
version: U,
|
|
95
|
+
buildTime: L,
|
|
96
|
+
moduleCount: Q,
|
|
97
|
+
selected: u,
|
|
98
|
+
mfProps: H,
|
|
99
|
+
component: j,
|
|
100
|
+
loading: x,
|
|
101
|
+
status: c,
|
|
102
|
+
dynamicMFStore: z,
|
|
103
|
+
windowTools: N,
|
|
104
|
+
onTouch: K,
|
|
105
|
+
memoizedActions: O,
|
|
105
106
|
loggedUser: q
|
|
106
107
|
};
|
|
107
108
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { AreaWindowProps } from '../../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @param hashWindows
|
|
7
|
-
* @returns number con el número de módulos repetidos en una mista area
|
|
3
|
+
* Compute the visible duplicate counter for one module inside a single area.
|
|
4
|
+
* The function walks the logical window registry, keeps only windows from the
|
|
5
|
+
* target area and module, and returns the first available positive counter.
|
|
8
6
|
*/
|
|
9
7
|
export declare const generateModuleCount: (areaId: string, moduleId: string, hashWindows: Record<string, AreaWindowProps>) => number;
|
|
10
8
|
//# sourceMappingURL=generateModuleCount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateModuleCount.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/helpers/generateModuleCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD
|
|
1
|
+
{"version":3,"file":"generateModuleCount.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/helpers/generateModuleCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,MAAM,EAAE,UAAU,MAAM,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,WAejH,CAAC"}
|
|
@@ -42,47 +42,52 @@ export declare const RESPONSIVE_ROW_HEIGHTS: {
|
|
|
42
42
|
export declare const DEFAULT_WINDOW: Pick<WindowState, 'status' | 'moduleActions' | 'cookies' | 'loading'>;
|
|
43
43
|
export declare const DEFAULT_AREA: Omit<Area, 'id' | 'name' | 'viewMode'>;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @param state
|
|
50
|
-
* @returns
|
|
45
|
+
* Create a new work area with the next available generated name.
|
|
46
|
+
* The id combines the current timestamp with a short random suffix, the new
|
|
47
|
+
* area becomes selected by default, and the backend is notified when network
|
|
48
|
+
* persistence is enabled.
|
|
51
49
|
*/
|
|
52
50
|
export declare const addArea: (state: Draft<AreasStoreStateWithActions>) => string;
|
|
53
51
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
52
|
+
* Update utility classes from owner state.
|
|
53
|
+
* This remains commented because class generation moved elsewhere, but the
|
|
54
|
+
* note is kept as a reminder of the previous responsibility split.
|
|
56
55
|
*/
|
|
57
56
|
/**
|
|
58
|
-
*
|
|
57
|
+
* Return the currently selected area from the normalized registry.
|
|
58
|
+
* Throws when the store points to a missing area because callers expect the
|
|
59
|
+
* invariant to hold once the Areas provider is loaded.
|
|
59
60
|
*/
|
|
60
61
|
export declare const getCurrentArea: (state: Draft<AreasStoreStateWithActions> | AreasStoreStateWithActions) => Area;
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Extract and parse a cookie-like value by id from a network response payload.
|
|
64
|
+
* Returns `undefined` when the key is missing or the payload cannot be parsed.
|
|
63
65
|
*/
|
|
64
66
|
export declare const getParmsFromValue: (key: string, data: []) => any;
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
68
|
+
* Apply the collapsed flag for one layout across every breakpoint copy.
|
|
69
|
+
* On `xxs`, free-move items keep their current collapse state.
|
|
67
70
|
*/
|
|
68
71
|
export declare function setColapsedLayoutBreakPoints(state: Draft<Area>, layoutId: string, colapsed: boolean): void;
|
|
69
72
|
/**
|
|
70
|
-
*
|
|
73
|
+
* Remove one layout item from every stored breakpoint representation.
|
|
71
74
|
*/
|
|
72
75
|
export declare function deleteLayoutFromBreakPoints(state: Draft<Area>, layoutId?: string): void;
|
|
73
76
|
/**
|
|
74
|
-
*
|
|
77
|
+
* Rebuild persisted layout state from the Areas cookie payload.
|
|
78
|
+
* This restores the layout breakpoint map and the normalized layout-window ids
|
|
79
|
+
* for API-backed microfrontend layouts.
|
|
75
80
|
*/
|
|
76
81
|
export declare function getDataFromResponse(data: any, state: Draft<AreasStoreStateWithActions>, areaId: string): {
|
|
77
82
|
newBreakPointsLayouts: Layouts;
|
|
78
83
|
newHashLayoutItems: string[];
|
|
79
84
|
};
|
|
80
85
|
/**
|
|
81
|
-
*
|
|
86
|
+
* Collect cookie values belonging to one container id.
|
|
82
87
|
*/
|
|
83
88
|
export declare function getCookiesContainer(data: any, containerId: string): Record<string, any>;
|
|
84
89
|
/**
|
|
85
|
-
*
|
|
90
|
+
* Read the selected area id from the Areas admin cookie payload, when present.
|
|
86
91
|
*/
|
|
87
92
|
export declare function getSelectedAreaIdFromCookies(cookiesResponse: any): string | undefined;
|
|
88
93
|
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/helpers/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAOnC,OAAO,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAIvD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,+BAA+B,UAAU,CAAC;AACvD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,gBAAgB;;;;;;CAAkD,CAAC;AAChF,eAAO,MAAM,eAAe;;;;;;CAA6C,CAAC;AAC1E,eAAO,MAAM,eAAe;;;;;;CAA8C,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;;;CAA8C,CAAC;AAClF,eAAO,MAAM,cAAc,EAAE,IAAI,CAC/B,WAAW,EACX,QAAQ,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,CAOnD,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/helpers/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAOnC,OAAO,KAAK,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAIvD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,+BAA+B,UAAU,CAAC;AACvD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,gBAAgB;;;;;;CAAkD,CAAC;AAChF,eAAO,MAAM,eAAe;;;;;;CAA6C,CAAC;AAC1E,eAAO,MAAM,eAAe;;;;;;CAA8C,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;;;CAA8C,CAAC;AAClF,eAAO,MAAM,cAAc,EAAE,IAAI,CAC/B,WAAW,EACX,QAAQ,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,CAOnD,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAY/D,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,CAAC,0BAA0B,CAAC,WAsC/D,CAAC;AACF;;;;GAIG;AACH;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,KAAK,CAAC,0BAA0B,CAAC,GAAG,0BAA0B,KACpE,IAOF,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,EAAE,MAAM,EAAE,QAWtD,CAAC;AACF;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,QAgBlB;AACD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAYvF;AACD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC,EACxC,MAAM,EAAE,MAAM;;;EA0Ef;AACD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,uBAYjE;AACD;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,eAAe,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAKrF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createDynamicMFStore as y } from "../../../../WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
2
2
|
import { getAreasDictionary as O, AREAS_DICCTIONARY as _ } from "../../../dictionary.js";
|
|
3
3
|
import { addLayoutItemToBreakPointIfNoExists as E } from "../../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
4
|
-
const d = 10, u = 10, h = 500, C = "areas", T = "admin", k = "layoutPros", w = "windows", L = "windowSelected", l = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 1 }, I = { lg: 64, md: 48, sm: 32, xs: 24, xxs: 1 },
|
|
4
|
+
const d = 10, u = 10, h = 500, C = "areas", T = "admin", k = "layoutPros", w = "windows", L = "windowSelected", l = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 1 }, I = { lg: 64, md: 48, sm: 32, xs: 24, xxs: 1 }, p = { lg: [], md: [], sm: [], xs: [], xxs: [] }, x = { xxs: 32, xs: 32, sm: 32, md: 32, lg: 32 }, D = {
|
|
5
5
|
status: "init",
|
|
6
6
|
moduleActions: [],
|
|
7
7
|
cookies: { moduleCookies: {}, windowCookies: {} },
|
|
@@ -9,10 +9,11 @@ const d = 10, u = 10, h = 500, C = "areas", T = "admin", k = "layoutPros", w = "
|
|
|
9
9
|
}, S = {
|
|
10
10
|
status: "init",
|
|
11
11
|
zPopUpIndex: 0,
|
|
12
|
-
layouts:
|
|
12
|
+
layouts: p,
|
|
13
13
|
// colapsedItems: {},
|
|
14
14
|
// windowsLayoutIds: [],
|
|
15
15
|
layoutItemsIds: [],
|
|
16
|
+
panelItemsIds: [],
|
|
16
17
|
currentLayoutId: "",
|
|
17
18
|
breakpoints: l,
|
|
18
19
|
cols: I,
|
|
@@ -78,8 +79,8 @@ function B(e, t, n) {
|
|
|
78
79
|
if (r) {
|
|
79
80
|
for (const s in r) {
|
|
80
81
|
const c = r[s];
|
|
81
|
-
if (c && c.moduleCount && // element['layoutProps'] && //
|
|
82
|
-
c.mfProps && //
|
|
82
|
+
if (c && c.moduleCount && // element['layoutProps'] && // Ensure persisted layout props are present.
|
|
83
|
+
c.mfProps && // Ensure microfrontend launch props are still available.
|
|
83
84
|
c.emergeType === "layout" && c.winType === "microfrontend") {
|
|
84
85
|
a.push(s);
|
|
85
86
|
const m = t.areaActions.closeLayout;
|
|
@@ -102,7 +103,7 @@ function B(e, t, n) {
|
|
|
102
103
|
I,
|
|
103
104
|
[u, u],
|
|
104
105
|
[d, d],
|
|
105
|
-
|
|
106
|
+
x
|
|
106
107
|
);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -139,12 +140,12 @@ export {
|
|
|
139
140
|
L as COOKIE_WINDOW_SELECTED,
|
|
140
141
|
h as DEBOUCED_SAVE_TIME,
|
|
141
142
|
S as DEFAULT_AREA,
|
|
142
|
-
|
|
143
|
+
p as DEFAULT_LAYOUTS,
|
|
143
144
|
D as DEFAULT_WINDOW,
|
|
144
145
|
u as MARGIN_GRIDLAYOUT,
|
|
145
146
|
I as NORMALIZED_COLS,
|
|
146
147
|
d as PADDING_GRIDLAYOUT,
|
|
147
|
-
|
|
148
|
+
x as RESPONSIVE_ROW_HEIGHTS,
|
|
148
149
|
R as addArea,
|
|
149
150
|
b as deleteLayoutFromBreakPoints,
|
|
150
151
|
M as getCookiesContainer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKlD,QAAA,MAAM,YAAY;;;;;;;;UAAyC,CAAC;AAC5D;;GAEG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKlD,QAAA,MAAM,YAAY;;;;;;;;UAAyC,CAAC;AAC5D;;GAEG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,kBAAkB,oDAqH/C;AACD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
1
|
+
import { jsx as W } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as x, useRef as d, useCallback as h, useEffect as o } from "react";
|
|
3
3
|
import { useStore as a } from "zustand";
|
|
4
4
|
import { shallow as u } from "zustand/shallow";
|
|
5
|
-
import { useFirstRender as
|
|
6
|
-
import { useHostTools as
|
|
7
|
-
import { createAreasStore as
|
|
8
|
-
import { usePopupsStore as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
5
|
+
import { useFirstRender as B } from "@m4l/graphics";
|
|
6
|
+
import { useHostTools as V, useModuleDictionary as j, useNetwork as q, useFlagsStore as z, CommonFlags as J, EmitEvents as S } from "@m4l/core";
|
|
7
|
+
import { createAreasStore as K } from "./store.js";
|
|
8
|
+
import { usePopupsStore as Q } from "../../../popups/components/PopupsProvider/hooks/usePopupsStore.js";
|
|
9
|
+
const U = x(null);
|
|
10
|
+
function se(A) {
|
|
11
11
|
const {
|
|
12
|
-
children:
|
|
13
|
-
loadAreasFromNetwork:
|
|
14
|
-
loadCookiesFromNetwork:
|
|
15
|
-
onLoad:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
children: I,
|
|
13
|
+
loadAreasFromNetwork: F,
|
|
14
|
+
loadCookiesFromNetwork: _,
|
|
15
|
+
onLoad: i,
|
|
16
|
+
onReady: c,
|
|
17
|
+
onSelectLayout: l,
|
|
18
|
+
storeId: P,
|
|
19
|
+
storeDevtoolsEnabled: k
|
|
20
|
+
} = A, { events_add_listener: v, events_remove_listener: y } = V(), { getLabel: s } = j(), { networkOperation: M } = q(), g = B([s]), { addFlag: w } = z((e) => e.flagsActions), r = d(null), {
|
|
21
|
+
addPopup: R,
|
|
22
|
+
removePopup: H,
|
|
23
|
+
closePopupsByGroupId: C,
|
|
23
24
|
bringPopupOnFront: N,
|
|
24
25
|
closeAllPopupsByParentId: O,
|
|
25
|
-
setSelectedPopupId:
|
|
26
|
-
} =
|
|
26
|
+
setSelectedPopupId: T
|
|
27
|
+
} = Q(
|
|
27
28
|
(e) => e.popupsActions,
|
|
28
29
|
u
|
|
29
30
|
);
|
|
30
|
-
|
|
31
|
-
storeId:
|
|
32
|
-
getLabel:
|
|
33
|
-
loadAreasFromNetwork:
|
|
34
|
-
loadCookiesFromNetwork:
|
|
35
|
-
networkOperation:
|
|
31
|
+
r.current || (r.current = K({
|
|
32
|
+
storeId: P,
|
|
33
|
+
getLabel: s,
|
|
34
|
+
loadAreasFromNetwork: F,
|
|
35
|
+
loadCookiesFromNetwork: _,
|
|
36
|
+
networkOperation: M,
|
|
36
37
|
ownerState: {
|
|
37
38
|
status: "init",
|
|
38
39
|
readyForHooks: !1
|
|
39
40
|
},
|
|
40
41
|
popupsProviderMethods: {
|
|
41
|
-
addPopup:
|
|
42
|
-
removePopup:
|
|
43
|
-
removePopupsByGroupId:
|
|
42
|
+
addPopup: R,
|
|
43
|
+
removePopup: H,
|
|
44
|
+
removePopupsByGroupId: C,
|
|
44
45
|
bringPopupOnFront: N,
|
|
45
46
|
closeAllPopupsByParentId: O,
|
|
46
|
-
setSelectedPopupId:
|
|
47
|
+
setSelectedPopupId: T
|
|
47
48
|
}
|
|
48
|
-
},
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
}, k), r.current?.getState().areasActions.init());
|
|
50
|
+
const t = a(r.current, (e) => e.ownerState?.status, u), p = a(r.current, (e) => e.ownerState?.readyForHooks, u), n = a(r.current, (e) => e.currentModuleId), f = d(""), m = d(!1), { setHandlerGetLabel: b, setExternalState: D } = a(
|
|
51
|
+
r.current,
|
|
51
52
|
(e) => e.areasActions,
|
|
52
53
|
u
|
|
53
|
-
),
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
), E = h((e) => {
|
|
55
|
+
const G = r.current?.getState().currentAreaId, L = r.current?.getState().areasIds;
|
|
56
|
+
G && L && r.current?.getState().areaActions.addWindow(e);
|
|
56
57
|
}, []);
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
}, [
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
|
|
65
|
-
}
|
|
58
|
+
return o(() => {
|
|
59
|
+
t === "loaded" && (i && i(), w(J.FLAG_AREAS_LOADED));
|
|
60
|
+
}, [t]), o(() => {
|
|
61
|
+
!m.current && t === "loaded" && p && (m.current = !0, c && c());
|
|
62
|
+
}, [c, p, t]), o(() => {
|
|
63
|
+
t === "loaded" && n !== f.current && (l && l(n), f.current = n);
|
|
64
|
+
}, [n, t]), o(() => {
|
|
65
|
+
g || b(s);
|
|
66
|
+
}, [s]), o(() => (v(S.EMMIT_EVENT_HOST_EMERGE_WINDOW, E), D({ readyForHooks: !0 }), () => {
|
|
67
|
+
y(S.EMMIT_EVENT_HOST_EMERGE_WINDOW, E);
|
|
68
|
+
}), []), /* @__PURE__ */ W(U.Provider, { value: r.current, children: I });
|
|
66
69
|
}
|
|
67
70
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
U as AreasContext,
|
|
72
|
+
se as AreasProvider
|
|
70
73
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AreasStoreStateWithActions, InitialAreasStoreProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @param initProps
|
|
5
|
-
* @returns
|
|
3
|
+
* Create the Areas store. It starts in the `init` lifecycle state by default.
|
|
4
|
+
* @param initProps initial store properties
|
|
6
5
|
*/
|
|
7
6
|
export declare const createAreasStore: (initProps: InitialAreasStoreProps, storeDevtoolsEnabled?: boolean) => Omit<Omit<import('zustand').StoreApi<AreasStoreStateWithActions>, "setState"> & {
|
|
8
7
|
setState<A extends string | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/areas/contexts/AreasContext/store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAGV,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAiEjB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,WAAW,sBAAsB,EACjC,8BAA4B;;;;;;;;CAkyC7B,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|