@m4l/components 9.24.0-beta-feature-731-m4l-components-code-editor.6 → 9.24.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.
Files changed (70) hide show
  1. package/@types/types.d.ts +0 -11
  2. package/components/AppBar/AppBar.d.ts.map +1 -1
  3. package/components/AppBar/AppBar.js +36 -29
  4. package/components/AppBar/types.d.ts +2 -2
  5. package/components/AppBar/types.d.ts.map +1 -1
  6. package/components/GridLayout/subcomponents/GridItem/index.d.ts.map +1 -1
  7. package/components/GridLayout/subcomponents/GridItem/index.js +21 -20
  8. package/components/MFLoader/MFLoader.d.ts.map +1 -1
  9. package/components/MFLoader/MFLoader.js +39 -39
  10. package/components/MFLoader/types.d.ts +16 -0
  11. package/components/MFLoader/types.d.ts.map +1 -1
  12. package/components/SideBar/context/sideBarContext/index.d.ts.map +1 -1
  13. package/components/SideBar/context/sideBarContext/index.js +15 -14
  14. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +2 -1
  15. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts.map +1 -1
  16. package/components/SideBar/hooks/useCollapse/useCollapse.js +9 -9
  17. package/components/SideBar/index.d.ts +1 -1
  18. package/components/SideBar/index.d.ts.map +1 -1
  19. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
  20. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +1 -1
  21. package/components/SideBar/types.d.ts +8 -1
  22. package/components/SideBar/types.d.ts.map +1 -1
  23. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
  24. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +66 -52
  25. package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
  26. package/components/areas/contexts/AreasContext/store.js +142 -141
  27. package/components/extended/index.d.ts +0 -1
  28. package/components/extended/index.d.ts.map +1 -1
  29. package/components/hook-form/index.d.ts +0 -1
  30. package/components/hook-form/index.d.ts.map +1 -1
  31. package/index.js +559 -572
  32. package/package.json +7 -10
  33. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +0 -6
  34. package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +0 -1
  35. package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +0 -266
  36. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +0 -3
  37. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +0 -1
  38. package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +0 -311
  39. package/components/extended/ReactSimpleCodeEditor/constants.d.ts +0 -82
  40. package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +0 -1
  41. package/components/extended/ReactSimpleCodeEditor/constants.js +0 -148
  42. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +0 -11
  43. package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +0 -1
  44. package/components/extended/ReactSimpleCodeEditor/dictionary.js +0 -7
  45. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +0 -58
  46. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +0 -1
  47. package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +0 -1063
  48. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +0 -6
  49. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +0 -1
  50. package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +0 -7
  51. package/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.d.ts +0 -6
  52. package/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.d.ts.map +0 -1
  53. package/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.js +0 -9
  54. package/components/extended/ReactSimpleCodeEditor/index.d.ts +0 -4
  55. package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +0 -1
  56. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +0 -18
  57. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +0 -1
  58. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +0 -4
  59. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +0 -84
  60. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +0 -1
  61. package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +0 -64
  62. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +0 -3
  63. package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +0 -1
  64. package/components/extended/ReactSimpleCodeEditor/types.d.ts +0 -452
  65. package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +0 -1
  66. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +0 -7
  67. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +0 -1
  68. package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +0 -6
  69. package/components/hook-form/RHFCodeEditor/index.d.ts +0 -3
  70. package/components/hook-form/RHFCodeEditor/index.d.ts.map +0 -1
package/@types/types.d.ts CHANGED
@@ -373,10 +373,6 @@ import {
373
373
  ReactJsonViewerOwnerState,
374
374
  ReactJsonViewerSlotsType,
375
375
  } from '../components/extended/React-Json-Viewer/types';
376
- import {
377
- CodeEditorOwnerState,
378
- CodeEditorSlotsType,
379
- } from '../components/extended/ReactSimpleCodeEditor/types';
380
376
  import {
381
377
  ResizableOwnerState as ReactResizableOwnerState,
382
378
  ResizableSlotsType,
@@ -503,7 +499,6 @@ declare module '@mui/material/styles' {
503
499
  M4LFixedSizeList: FixedSizeListSlotsType;
504
500
  M4LVariableSizeList: VariableSizeListSlotsType;
505
501
  M4LReactJsonViewer: ReactJsonViewerSlotsType;
506
- M4LCodeEditor: CodeEditorSlotsType;
507
502
  M4LResizable: ResizableSlotsType;
508
503
  M4LResizableBox: ResizableBoxSlotsType;
509
504
  M4LImageSelector: ImageSelectorSlotsType;
@@ -619,7 +614,6 @@ declare module '@mui/material/styles' {
619
614
  M4LFixedSizeList: Partial<FixedSizeListOwnerState>;
620
615
  M4LVariableSizeList: Partial<VariableSizeListOwnerState>;
621
616
  M4LReactJsonViewer: Partial<ReactJsonViewerOwnerState>;
622
- M4LCodeEditor: Partial<CodeEditorOwnerState>;
623
617
  M4LResizable: Partial<ReactResizableOwnerState>;
624
618
  M4LResizableBox: Partial<ResizableBoxOwnerState>;
625
619
  M4LImageSelector: Partial<ImageSelectorOwnerState>;
@@ -1174,11 +1168,6 @@ declare module '@mui/material/styles' {
1174
1168
  styleOverrides?: ComponentsOverrides<Theme>['M4LReactJsonViewer'];
1175
1169
  variants?: ComponentsVariants['M4LReactJsonViewer'];
1176
1170
  };
1177
- M4LCodeEditor?: {
1178
- defaultProps?: ComponentsPropsList['M4LCodeEditor'];
1179
- styleOverrides?: ComponentsOverrides<Theme>['M4LCodeEditor'];
1180
- variants?: ComponentsVariants['M4LCodeEditor'];
1181
- };
1182
1171
  M4LResizable?: {
1183
1172
  defaultProps?: ComponentsPropsList['M4LResizable'];
1184
1173
  styleOverrides?: ComponentsOverrides<Theme>['M4LResizable'];
@@ -1 +1 @@
1
- {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/AppBar.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAaxD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,qDAwExC,CAAC"}
1
+ {"version":3,"file":"AppBar.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/AppBar.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAaxD;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,qDAuFxC,CAAC"}
@@ -1,73 +1,80 @@
1
- import { jsxs as p, jsx as a } from "@emotion/react/jsx-runtime";
2
- import { useEnvironment as T, useModuleDictionary as M } from "@m4l/core";
3
- import { useIsMobile as S } from "@m4l/graphics";
1
+ import { jsxs as u, jsx as a } from "@emotion/react/jsx-runtime";
2
+ import { useEnvironment as M, useModuleDictionary as S } from "@m4l/core";
3
+ import { useIsMobile as y } from "@m4l/graphics";
4
4
  import { TEST_PROP_ID as m } from "../../test/constants_no_mock.js";
5
- import { getComponentSlotRoot as C } from "../../utils/getComponentSlotRoot.js";
6
- import { PATH_IMG_HAMBURGUER as y, APP_BAR_KEY as R } from "./constants.js";
7
- import { AppBarRootStyled as I, PrimarySectionStyled as N, MenuIconButtonStyled as P, ContentStyled as D, EndContentStyled as x } from "./slots/AppBarSlots.js";
8
- import { getNameDataTestId as u } from "./tests/utils.js";
9
- function O(e, n) {
5
+ import { getComponentSlotRoot as P } from "../../utils/getComponentSlotRoot.js";
6
+ import { PATH_IMG_HAMBURGUER as R, APP_BAR_KEY as D } from "./constants.js";
7
+ import { AppBarRootStyled as I, PrimarySectionStyled as N, MenuIconButtonStyled as x, ContentStyled as O, EndContentStyled as L } from "./slots/AppBarSlots.js";
8
+ import { getNameDataTestId as g } from "./tests/utils.js";
9
+ function V(e, n) {
10
10
  return n ? e("appbar.tooltip_toogle_menu") || "Open navigation menu" : "Toggle navigation sidebar";
11
11
  }
12
- const w = (e) => {
12
+ const K = (e) => {
13
13
  const {
14
14
  onToggleVisible: n,
15
- onToggleAnchored: g,
15
+ onToggleAnchored: f,
16
16
  sidebarAnchored: r,
17
- children: b,
18
- content: h,
17
+ children: h,
18
+ content: b,
19
19
  endContent: i,
20
20
  dataTestid: _,
21
21
  orientation: l = "vertical",
22
22
  size: s,
23
- hasExpandedModule: f = !1
24
- } = e, o = S(), { host_static_assets: v, environment_assets: A } = T(), { getLabel: E } = M(), B = C(R), d = O(E, o), c = h ?? b, t = {
23
+ hasExpandedModule: v = !1
24
+ } = e, o = y(), { host_static_assets: A, environment_assets: E } = M(), { getLabel: T } = S(), B = P(D), c = V(T, o), d = b ?? h, t = {
25
25
  hasEndContent: !!i,
26
- hasExpandedModule: f,
26
+ hasExpandedModule: v,
27
27
  isMobile: o,
28
28
  orientation: l,
29
29
  sidebarAnchored: r,
30
30
  size: s
31
31
  };
32
- return /* @__PURE__ */ p(
32
+ function C(p) {
33
+ if (o) {
34
+ p.preventDefault(), p.stopPropagation(), n();
35
+ return;
36
+ }
37
+ f();
38
+ }
39
+ return /* @__PURE__ */ u(
33
40
  I,
34
41
  {
35
42
  className: B,
36
43
  "data-orientation": l,
37
44
  ownerState: t,
38
- ...process.env.NODE_ENV !== "production" ? { [m]: u(_) } : {},
45
+ ...process.env.NODE_ENV !== "production" ? { [m]: g(_) } : {},
39
46
  children: [
40
- /* @__PURE__ */ p(N, { ownerState: t, children: [
47
+ /* @__PURE__ */ u(N, { ownerState: t, children: [
41
48
  /* @__PURE__ */ a(
42
- P,
49
+ x,
43
50
  {
44
- "aria-label": d,
51
+ "aria-label": c,
45
52
  dataTestId: o ? "AppBarMobileMenuButton" : "AppBarAnchoredButton",
46
- onClick: o ? n : g,
53
+ onClick: C,
47
54
  role: o ? "button" : "anchored-button",
48
55
  rotationAngle: o ? void 0 : r ? 0 : 180,
49
56
  selected: o ? void 0 : r,
50
57
  size: s,
51
- src: `${v}/${A}/${y}`,
52
- tooltip: d,
58
+ src: `${A}/${E}/${R}`,
59
+ tooltip: c,
53
60
  variant: "outline",
54
61
  color: "default"
55
62
  }
56
63
  ),
57
- c ? /* @__PURE__ */ a(
58
- D,
64
+ d ? /* @__PURE__ */ a(
65
+ O,
59
66
  {
60
67
  ownerState: t,
61
- ...process.env.NODE_ENV !== "production" ? { [m]: u("containerChilds") } : {},
62
- children: c
68
+ ...process.env.NODE_ENV !== "production" ? { [m]: g("containerChilds") } : {},
69
+ children: d
63
70
  }
64
71
  ) : null
65
72
  ] }),
66
- i ? /* @__PURE__ */ a(x, { ownerState: t, children: i }) : null
73
+ i ? /* @__PURE__ */ a(L, { ownerState: t, children: i }) : null
67
74
  ]
68
75
  }
69
76
  );
70
77
  };
71
78
  export {
72
- w as AppBar
79
+ K as AppBar
73
80
  };
@@ -29,11 +29,11 @@ export interface AppBarProps {
29
29
  /**
30
30
  * Toggle handler for the temporary mobile sidebar drawer.
31
31
  */
32
- onToggleVisible: () => void;
32
+ onToggleVisible: (nextVisible?: boolean) => void;
33
33
  /**
34
34
  * Toggle handler for the anchored desktop sidebar state.
35
35
  */
36
- onToggleAnchored: () => void;
36
+ onToggleAnchored: (nextAnchored?: boolean) => void;
37
37
  /**
38
38
  * Primary content rendered after the internal toggle control.
39
39
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,WAAW,EAClB,KAAK,CACN,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/AppBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO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,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,WAAW,EAClB,KAAK,CACN,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/GridLayout/subcomponents/GridItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,aAAa,EAA2B,MAAM,SAAS,CAAC;AAcjE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAskB5C;AACD,eAAO,MAAM,iBAAiB,4CAE5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/GridLayout/subcomponents/GridItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAaf,OAAO,EAAE,aAAa,EAA2B,MAAM,SAAS,CAAC;AAcjE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAukB5C;AACD,eAAO,MAAM,iBAAiB,4CAE5B,CAAC"}
@@ -12,7 +12,7 @@ function et(z) {
12
12
  const {
13
13
  layoutItemRender: P,
14
14
  type: N,
15
- i: p,
15
+ i: f,
16
16
  x: w,
17
17
  y: W,
18
18
  w: A,
@@ -23,7 +23,7 @@ function et(z) {
23
23
  containerHeight: O = qe,
24
24
  margin: G = Je,
25
25
  containerPadding: U = Ke,
26
- transformScale: f = Qe,
26
+ transformScale: h = Qe,
27
27
  colapsedHeight: T = Ve,
28
28
  isBounded: de,
29
29
  maxRows: B = 1 / 0,
@@ -131,16 +131,16 @@ function et(z) {
131
131
  const r = { top: 0, left: 0 }, { offsetParent: c } = t;
132
132
  if (!c)
133
133
  return;
134
- const o = c.getBoundingClientRect(), i = t.getBoundingClientRect(), s = i.left / f, l = o.left / f, E = i.top / f, I = o.top / f;
134
+ const o = c.getBoundingClientRect(), i = t.getBoundingClientRect(), s = i.left / h, l = o.left / h, E = i.top / h, I = o.top / h;
135
135
  r.left = s - l + c.scrollLeft, r.top = E - I + c.scrollTop, u.current.dragging = r, _((J) => ({ ...J, dragging: r }));
136
- const { x: h, y: q } = V(
136
+ const { x: p, y: q } = V(
137
137
  H(),
138
138
  r.top,
139
139
  r.left,
140
140
  e.current.w,
141
141
  e.current.h
142
142
  );
143
- re(p, h, q, {
143
+ re(f, p, q, {
144
144
  e: n,
145
145
  node: t,
146
146
  newPosition: r
@@ -152,9 +152,9 @@ function et(z) {
152
152
  let o = u.current.dragging.top + c, i = u.current.dragging.left + r;
153
153
  const s = H();
154
154
  if (de) {
155
- const { offsetParent: h } = t;
156
- if (h) {
157
- const q = h.clientHeight - le(
155
+ const { offsetParent: p } = t;
156
+ if (p) {
157
+ const q = p.clientHeight - le(
158
158
  e.current.h,
159
159
  e.current.rowHeight,
160
160
  e.current.margin[1]
@@ -165,7 +165,7 @@ function et(z) {
165
165
  }
166
166
  }
167
167
  const l = { top: o, left: i };
168
- u.current.dragging = l, _((h) => ({ ...h, dragging: l }));
168
+ u.current.dragging = l, _((p) => ({ ...p, dragging: l }));
169
169
  const { x: E, y: I } = V(
170
170
  s,
171
171
  o,
@@ -173,7 +173,7 @@ function et(z) {
173
173
  e.current.w,
174
174
  e.current.h
175
175
  );
176
- ie(p, E, I, {
176
+ ie(f, E, I, {
177
177
  e: n,
178
178
  node: t,
179
179
  newPosition: l
@@ -193,7 +193,7 @@ function et(z) {
193
193
  e.current.w,
194
194
  e.current.h
195
195
  );
196
- return oe(p, i, s, {
196
+ return oe(f, i, s, {
197
197
  e: n,
198
198
  node: t,
199
199
  newPosition: o
@@ -213,10 +213,10 @@ function et(z) {
213
213
  const l = Math.max(e.current.minW, 1), E = Math.min(e.current.maxW, e.current.cols - e.current.x);
214
214
  i = v(i, l, E), s = v(s, e.current.minH, e.current.maxH);
215
215
  const I = c === "onResizeStop" ? void 0 : r;
216
- _((h) => ({
217
- ...h,
216
+ _((p) => ({
217
+ ...p,
218
218
  resizing: I
219
- })), u.current.resizing = I, o(p, i, s, { e: n, node: t, size: r });
219
+ })), u.current.resizing = I, o(f, i, s, { e: n, node: t, size: r });
220
220
  },
221
221
  // eslint-disable-next-line react-hooks/exhaustive-deps
222
222
  []
@@ -225,7 +225,7 @@ function et(z) {
225
225
  }, []), ze = d((n, t) => {
226
226
  j(n, t, "onResizeStart");
227
227
  }, []), Se = d(() => {
228
- ce && ce(p);
228
+ ce && ce(f);
229
229
  }, []), Te = d(
230
230
  (n, t, r) => {
231
231
  const c = F(r, 0, 0, S - w, 0, m).width, o = F(r, 0, 0, y, D, m), i = F(r, 0, 0, b, C, m), s = [o.width, o.height], l = [
@@ -246,7 +246,7 @@ function et(z) {
246
246
  onResizeStop: Ie,
247
247
  onResizeStart: ze,
248
248
  onResize: ye,
249
- transformScale: f,
249
+ transformScale: h,
250
250
  resizeHandles: ee,
251
251
  handle: te,
252
252
  children: n
@@ -262,7 +262,7 @@ function et(z) {
262
262
  b,
263
263
  C,
264
264
  X,
265
- f,
265
+ h,
266
266
  ee,
267
267
  te,
268
268
  m,
@@ -278,13 +278,13 @@ function et(z) {
278
278
  onStop: He,
279
279
  handle: Z,
280
280
  cancel: ".react-resizable-handle" + (k ? "," + k : ""),
281
- scale: f,
281
+ scale: h,
282
282
  nodeRef: ae,
283
283
  children: n
284
284
  }
285
285
  ),
286
286
  // eslint-disable-next-line react-hooks/exhaustive-deps
287
- [Y, Z, f, k, m]
287
+ [Y, Z, h, k, m]
288
288
  ), ye = d((n, t) => {
289
289
  j(n, t, "onResize");
290
290
  }, []), Ce = H(R, O), se = F(
@@ -315,9 +315,10 @@ function et(z) {
315
315
  ...fe,
316
316
  ...Re(se)
317
317
  //TODO: Delegar el estilo en el ItemRender
318
- }, Le = Fe(() => /* @__PURE__ */ L(P, { type: N, i: p }), [N, p]), We = De(Te(/* @__PURE__ */ L(
318
+ }, Le = Fe(() => /* @__PURE__ */ L(P, { type: N, i: f }), [N, f]), We = De(Te(/* @__PURE__ */ L(
319
319
  "div",
320
320
  {
321
+ "data-grid-item-id": f,
321
322
  className: be,
322
323
  ref: ae,
323
324
  style: Ee,
@@ -1 +1 @@
1
- {"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAehD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAkP5C;AACD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MFLoader.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/MFLoader.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAehD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,oDAkP5C;AACD,eAAe,QAAQ,CAAC"}
@@ -1,18 +1,18 @@
1
1
  import { jsxs as _, jsx as o } from "@emotion/react/jsx-runtime";
2
2
  import { useRef as d, useEffect as ee } from "react";
3
- import { useNetwork as te, useEnvironment as oe, useHostTools as re } from "@m4l/core";
4
- import { useHostTheme as ne, useFormatter as se, useLocales as ie } from "@m4l/graphics";
5
- import { ProggessLoadingMF as de } from "./subcomponents/ProggessLoadingMF/index.js";
6
- import { LoadingError as ce } from "../LoadingError/LoadingError.js";
7
- import { useHostRuntime as ae } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
8
- import { useShellObservability as le } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
9
- import { projectMFHostRuntimeTools as me } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
10
- import { useMFTelemetry as ue } from "./hooks/useMFTelemetry/useMFTelemetry.js";
11
- import { useMFSwap as pe } from "./hooks/useMFSwap/useMFSwap.js";
12
- import { useMFLifecycle as fe } from "./hooks/useMFLifecycle/useMFLifecycle.js";
13
- import { useMFRender as he } from "./hooks/useMFRender/useMFRender.js";
14
- import { MFLoaderRootStyled as Se, MFLoaderMountContainerStyled as T, MFLoaderOverlayStyled as I } from "./slots/MFLoaderSlots.js";
15
- function Ee(O) {
3
+ import { useNetwork as te, useEnvironment as oe, useHostTools as re, resolveLocalLoopbackOrigin as ne } from "@m4l/core";
4
+ import { useHostTheme as se, useFormatter as ie, useLocales as de } from "@m4l/graphics";
5
+ import { ProggessLoadingMF as ce } from "./subcomponents/ProggessLoadingMF/index.js";
6
+ import { LoadingError as ae } from "../LoadingError/LoadingError.js";
7
+ import { useHostRuntime as le } from "../../contexts/HostRuntimeContext/HostRuntimeContext.js";
8
+ import { useShellObservability as me } from "../../contexts/ShellObservabilityContext/ShellObservabilityContext.js";
9
+ import { projectMFHostRuntimeTools as ue } from "./helpers/projectMFHostRuntimeTools/projectMFHostRuntimeTools.js";
10
+ import { useMFTelemetry as pe } from "./hooks/useMFTelemetry/useMFTelemetry.js";
11
+ import { useMFSwap as fe } from "./hooks/useMFSwap/useMFSwap.js";
12
+ import { useMFLifecycle as Le } from "./hooks/useMFLifecycle/useMFLifecycle.js";
13
+ import { useMFRender as Se } from "./hooks/useMFRender/useMFRender.js";
14
+ import { MFLoaderRootStyled as he, MFLoaderMountContainerStyled as T, MFLoaderOverlayStyled as O } from "./slots/MFLoaderSlots.js";
15
+ function qe(I) {
16
16
  const {
17
17
  prefix: r,
18
18
  moduleId: C,
@@ -24,31 +24,31 @@ function Ee(O) {
24
24
  windowTools: q,
25
25
  emergeType: P,
26
26
  loggedUser: j
27
- } = O, G = ae(), V = le(), $ = me(H ?? G), k = x ?? V, { hostThemeOptions: A, fnComponentsOverrides: B } = ne(), { networkOperation: N } = te(), s = oe(), D = re(), U = se(), z = { hostThemeOptions: A, fnComponentsOverrides: B }, p = d(null), f = d(null), h = d("progress"), S = d(
27
+ } = I, k = le(), G = me(), V = ue(H ?? k), A = x ?? G, { hostThemeOptions: B, fnComponentsOverrides: N } = se(), { networkOperation: $ } = te(), s = oe(), D = re(), U = ie(), z = { hostThemeOptions: B, fnComponentsOverrides: N }, p = d(null), f = d(null), L = d("progress"), S = d(
28
28
  null
29
- ), { currentLocale: J } = ie(), K = !s.isLocalhost || Number.isInteger(n) && n > 0, {
30
- activeSwapRef: L,
29
+ ), { currentLocale: J } = de(), K = !s.isLocalhost || Number.isInteger(n) && n > 0, {
30
+ activeSwapRef: h,
31
31
  createTelemetryContext: a,
32
32
  emitAbandonedLoadTelemetry: Q,
33
33
  emitSwapStartedTelemetry: g,
34
34
  emitSwapFailedTelemetry: l,
35
- reportLoaderError: R
36
- } = ue({
35
+ reportLoaderError: v
36
+ } = pe({
37
37
  cache: c,
38
38
  prefix: r,
39
39
  mountedScriptRefBridge: p,
40
40
  requestedScriptRefBridge: f,
41
41
  setStatusLoaderRef: S,
42
- statusLoaderRef: h
42
+ statusLoaderRef: L
43
43
  }), {
44
44
  mountedScript: m,
45
45
  requestedScript: e,
46
46
  isSwappingModule: W,
47
- mountedScriptRef: v,
47
+ mountedScriptRef: R,
48
48
  requestedScriptRef: y,
49
49
  promoteRequestedScript: b
50
- } = pe({
51
- activeSwapRef: L,
50
+ } = fe({
51
+ activeSwapRef: h,
52
52
  cache: c,
53
53
  createTelemetryContext: a,
54
54
  emitAbandonedLoadTelemetry: Q,
@@ -56,10 +56,10 @@ function Ee(O) {
56
56
  emitSwapStartedTelemetry: g,
57
57
  moduleId: C,
58
58
  prefix: r,
59
- reportLoaderError: R
59
+ reportLoaderError: v
60
60
  });
61
- p.current = v, f.current = y;
62
- const X = s.isLocalhost ? `https://localhost:${n}` : `https://${window.location.host}/mf/${e.moduleId}`, {
61
+ p.current = R, f.current = y;
62
+ const X = s.isLocalhost ? ne(n) : `https://${window.location.host}/mf/${e.moduleId}`, {
63
63
  statusLoader: t,
64
64
  setStatusLoader: F,
65
65
  loadingProgress: Y,
@@ -67,23 +67,23 @@ function Ee(O) {
67
67
  loadGeneration: i,
68
68
  completedGeneration: M,
69
69
  renderedGeneration: u
70
- } = fe({
70
+ } = Le({
71
71
  activeHost: X,
72
72
  cache: c,
73
73
  createTelemetryContext: a,
74
74
  environmentIsLocalhost: s.isLocalhost,
75
75
  hasValidLocalDebugPort: K,
76
- mountedScriptRef: v,
77
- networkOperation: N,
76
+ mountedScriptRef: R,
77
+ networkOperation: $,
78
78
  prefix: r,
79
79
  requestedScript: e,
80
80
  requestedScriptRef: y,
81
- activeSwapRef: L,
81
+ activeSwapRef: h,
82
82
  emitSwapFailedTelemetry: l,
83
83
  emitSwapStartedTelemetry: g
84
84
  });
85
- h.current = t, S.current = F;
86
- const { renderMicroFrontend: w } = he({
85
+ L.current = t, S.current = F;
86
+ const { renderMicroFrontend: w } = Se({
87
87
  prefix: r,
88
88
  debugPort: n,
89
89
  dynamicMFStore: E,
@@ -95,9 +95,9 @@ function Ee(O) {
95
95
  currentLocale: J,
96
96
  hostTheme: z,
97
97
  formatter: U,
98
- resolvedHostRuntime: $,
99
- resolvedObservability: k,
100
- reportLoaderError: R,
98
+ resolvedHostRuntime: V,
99
+ resolvedObservability: A,
100
+ reportLoaderError: v,
101
101
  emitSwapFailedTelemetry: l,
102
102
  setStatusLoader: F,
103
103
  createTelemetryContext: a
@@ -118,7 +118,7 @@ function Ee(O) {
118
118
  u,
119
119
  e,
120
120
  t
121
- ]), /* @__PURE__ */ _(Se, { children: [
121
+ ]), /* @__PURE__ */ _(he, { children: [
122
122
  /* @__PURE__ */ o(
123
123
  T,
124
124
  {
@@ -135,11 +135,11 @@ function Ee(O) {
135
135
  },
136
136
  e.divContainerId
137
137
  ) : null,
138
- t === "progress" ? /* @__PURE__ */ o(I, { children: /* @__PURE__ */ o(de, { loadingProgress: Y }) }) : null,
139
- t === "error" ? /* @__PURE__ */ o(I, { children: /* @__PURE__ */ o(ce, { status: t, action: Z }) }) : null
138
+ t === "progress" ? /* @__PURE__ */ o(O, { children: /* @__PURE__ */ o(ce, { loadingProgress: Y }) }) : null,
139
+ t === "error" ? /* @__PURE__ */ o(O, { children: /* @__PURE__ */ o(ae, { status: t, action: Z }) }) : null
140
140
  ] });
141
141
  }
142
142
  export {
143
- Ee as MFLoader,
144
- Ee as default
143
+ qe as MFLoader,
144
+ qe as default
145
145
  };
@@ -39,6 +39,14 @@ export interface MFRealtimeProducerToolsContract {
39
39
  * sin enseñarle a `@m4l/components` los tipos de parámetros concretos de cada paquete realtime.
40
40
  */
41
41
  subscribe: (...args: never[]) => void;
42
+ /**
43
+ * Subscribe to recovered transport events through one host-owned realtime engine.
44
+ * Se suscribe a eventos de transporte recuperado a través de un motor realtime propiedad del host.
45
+ *
46
+ * The `never[]` rest shape is intentional for the same reason as `subscribe`.
47
+ * La forma rest `never[]` es intencional por la misma razón que en `subscribe`.
48
+ */
49
+ subscribeTransportReconnect: (...args: never[]) => void;
42
50
  /**
43
51
  * Unsubscribe through one host-owned realtime engine.
44
52
  * Cancela la suscripción a través de un motor realtime propiedad del host.
@@ -47,6 +55,14 @@ export interface MFRealtimeProducerToolsContract {
47
55
  * La forma rest `never[]` es intencional por la misma razón que en `subscribe`.
48
56
  */
49
57
  unsubscribe: (...args: never[]) => void;
58
+ /**
59
+ * Unsubscribe from recovered transport events through one host-owned realtime engine.
60
+ * Cancela la suscripción a eventos de transporte recuperado a través de un motor realtime propiedad del host.
61
+ *
62
+ * The `never[]` rest shape is intentional for the same reason as `unsubscribe`.
63
+ * La forma rest `never[]` es intencional por la misma razón que en `unsubscribe`.
64
+ */
65
+ unsubscribeTransportReconnect: (...args: never[]) => void;
50
66
  /**
51
67
  * Publish one synthetic realtime batch through the shared producer pipeline.
52
68
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB;CACF;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;;;;;;;;OAWG;IACH,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IACtC;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IACxC;;;;;OAKG;IACH,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IAC5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,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,mBAAmB,EAChC,SAAS,EAAE,aAAa,EACxB,aAAa,EAAE,UAAU,EACzB,SAAS,EAAE,aAAa,EACxB,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,EACrB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,aAAa,EAC1B,OAAO,EAAE,qBAAqB,KAC3B,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CACrC,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,KACpB,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/MFLoader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,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QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,KACpB,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/context/sideBarContext/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAyBrE;;;;GAIG;AACH,QAAA,MAAM,cAAc,+CAA8B,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,qDAsDnD,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/context/sideBarContext/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6BrE;;;;GAIG;AACH,QAAA,MAAM,cAAc,+CAA8B,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,oBAAoB,qDAsDnD,CAAC;AACF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import { jsx as e, Fragment as n } from "@emotion/react/jsx-runtime";
2
- import { createContext as L } from "react";
3
- import { getComponentClasses as _ } from "../../../../utils/getComponentSlotRoot.js";
1
+ import { jsx as e, Fragment as t } from "@emotion/react/jsx-runtime";
2
+ import { createContext as x } from "react";
3
+ import { getComponentClasses as L } from "../../../../utils/getComponentSlotRoot.js";
4
4
  import { ALL_SIDEBAR_SLOTS as I, SIDEBAR_KEY_COMPONENT as T } from "../../constants.js";
5
- const t = _(T, I), b = {
5
+ const a = L(T, I), b = {
6
6
  anchored: !1,
7
7
  visible: !0,
8
8
  onToggleAnchored: (o) => {
@@ -12,16 +12,17 @@ const t = _(T, I), b = {
12
12
  menuData: [],
13
13
  companyLogoUrl: "",
14
14
  companyLogoSmallUrl: "",
15
- onMenuItemClick: (o) => {
15
+ /** Ignore menu clicks until a real sidebar provider is mounted. */
16
+ onMenuItemClick: (o, n) => {
16
17
  },
17
18
  expandedWidth: "",
18
19
  companyName: "",
19
20
  companySlogan: "",
20
- classes: t,
21
- headerComponent: /* @__PURE__ */ e(n, {}),
22
- footerComponent: /* @__PURE__ */ e(n, {})
23
- }, A = L(b), P = (o) => {
24
- const { value: a, children: r } = o, {
21
+ classes: a,
22
+ headerComponent: /* @__PURE__ */ e(t, {}),
23
+ footerComponent: /* @__PURE__ */ e(t, {})
24
+ }, A = x(b), P = (o) => {
25
+ const { value: n, children: r } = o, {
25
26
  anchored: m,
26
27
  visible: l,
27
28
  onToggleAnchored: i,
@@ -37,8 +38,8 @@ const t = _(T, I), b = {
37
38
  urlIconPrefix: f,
38
39
  headerComponent: v,
39
40
  footerComponent: y,
40
- variant: x
41
- } = a;
41
+ variant: _
42
+ } = n;
42
43
  return (
43
44
  // Proporcionar el contexto con las propiedades desestructuradas
44
45
  /* @__PURE__ */ e(
@@ -58,10 +59,10 @@ const t = _(T, I), b = {
58
59
  companyName: h,
59
60
  companySlogan: u,
60
61
  urlIconPrefix: f,
61
- classes: t,
62
+ classes: a,
62
63
  headerComponent: v,
63
64
  footerComponent: y,
64
- variant: x
65
+ variant: _
65
66
  },
66
67
  children: r
67
68
  }
@@ -1,4 +1,5 @@
1
1
  import { IMenuDataWithState } from '../../types';
2
+ import { MouseEvent } from 'react';
2
3
  /**
3
4
  * Manage the expanded state for one sidebar menu item.
4
5
  * @param {IMenuDataWithState} item - Sidebar item to control.
@@ -6,7 +7,7 @@ import { IMenuDataWithState } from '../../types';
6
7
  */
7
8
  export declare const useCollapse: (item: IMenuDataWithState, defaultOpen?: boolean) => {
8
9
  isOpen: boolean;
9
- handlerClick: () => void;
10
+ handlerClick: (event?: MouseEvent<HTMLElement>) => void;
10
11
  hasChildren: boolean | undefined;
11
12
  };
12
13
  //# sourceMappingURL=useCollapse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCollapse.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/hooks/useCollapse/useCollapse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjD;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,kBAAkB,EAAE,qBAAmB;;;;CAsBxE,CAAC"}
1
+ {"version":3,"file":"useCollapse.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/SideBar/hooks/useCollapse/useCollapse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,kBAAkB,EAAE,qBAAmB;;2BASzC,UAAU,CAAC,WAAW,CAAC;;CAiBtD,CAAC"}