@fctc/widget-logic 4.7.1 → 4.7.2

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/dist/hooks.d.mts CHANGED
@@ -58,6 +58,7 @@ interface RecordMenu {
58
58
  res_model: string;
59
59
  type: string;
60
60
  context: string;
61
+ external_xml_id?: number;
61
62
  };
62
63
  active: boolean;
63
64
  child_id?: RecordMenu[];
package/dist/hooks.d.ts CHANGED
@@ -58,6 +58,7 @@ interface RecordMenu {
58
58
  res_model: string;
59
59
  type: string;
60
60
  context: string;
61
+ external_xml_id?: number;
61
62
  };
62
63
  active: boolean;
63
64
  child_id?: RecordMenu[];
package/dist/hooks.js CHANGED
@@ -410,7 +410,7 @@ var useMenu = ({
410
410
  xNode: xNode2,
411
411
  context: context2
412
412
  }) => {
413
- const aidMenu = menu?.action?.id?.id;
413
+ const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
414
414
  if (menu) {
415
415
  setMenuId(menu.id?.toString() ?? "");
416
416
  }
package/dist/hooks.mjs CHANGED
@@ -391,7 +391,7 @@ var useMenu = ({
391
391
  xNode: xNode2,
392
392
  context: context2
393
393
  }) => {
394
- const aidMenu = menu?.action?.id?.id;
394
+ const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
395
395
  if (menu) {
396
396
  setMenuId(menu.id?.toString() ?? "");
397
397
  }
package/dist/index.js CHANGED
@@ -4460,7 +4460,7 @@ var useMenu = ({
4460
4460
  xNode: xNode2,
4461
4461
  context: context2
4462
4462
  }) => {
4463
- const aidMenu = menu?.action?.id?.id;
4463
+ const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
4464
4464
  if (menu) {
4465
4465
  setMenuId(menu.id?.toString() ?? "");
4466
4466
  }
package/dist/index.mjs CHANGED
@@ -4550,7 +4550,7 @@ var useMenu = ({
4550
4550
  xNode: xNode2,
4551
4551
  context: context2
4552
4552
  }) => {
4553
- const aidMenu = menu?.action?.id?.id;
4553
+ const aidMenu = menu?.action?.external_xml_id || menu?.action?.id?.id;
4554
4554
  if (menu) {
4555
4555
  setMenuId(menu.id?.toString() ?? "");
4556
4556
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "4.7.1",
3
+ "version": "4.7.2",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",