@fctc/widget-logic 2.5.2 → 2.5.3

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.js CHANGED
@@ -491,10 +491,10 @@ var useViewV2 = ({
491
491
  context,
492
492
  id: isNaN(Number(aid)) ? action?.id : aid
493
493
  };
494
- }, [action, context, aid]);
494
+ }, [action, context, aid, model, views]);
495
495
  const view = useGetView2(
496
- viewParams || {},
497
- !!viewParams
496
+ viewParams,
497
+ !!model
498
498
  );
499
499
  return {
500
500
  ...view,
package/dist/hooks.mjs CHANGED
@@ -472,10 +472,10 @@ var useViewV2 = ({
472
472
  context,
473
473
  id: isNaN(Number(aid)) ? action?.id : aid
474
474
  };
475
- }, [action, context, aid]);
475
+ }, [action, context, aid, model, views]);
476
476
  const view = useGetView2(
477
- viewParams || {},
478
- !!viewParams
477
+ viewParams,
478
+ !!model
479
479
  );
480
480
  return {
481
481
  ...view,
package/dist/index.js CHANGED
@@ -4541,10 +4541,10 @@ var useViewV2 = ({
4541
4541
  context,
4542
4542
  id: isNaN(Number(aid)) ? action?.id : aid
4543
4543
  };
4544
- }, [action, context, aid]);
4544
+ }, [action, context, aid, model, views]);
4545
4545
  const view = useGetView2(
4546
- viewParams || {},
4547
- !!viewParams
4546
+ viewParams,
4547
+ !!model
4548
4548
  );
4549
4549
  return {
4550
4550
  ...view,
package/dist/index.mjs CHANGED
@@ -4616,10 +4616,10 @@ var useViewV2 = ({
4616
4616
  context,
4617
4617
  id: isNaN(Number(aid)) ? action?.id : aid
4618
4618
  };
4619
- }, [action, context, aid]);
4619
+ }, [action, context, aid, model, views]);
4620
4620
  const view = useGetView2(
4621
- viewParams || {},
4622
- !!viewParams
4621
+ viewParams,
4622
+ !!model
4623
4623
  );
4624
4624
  return {
4625
4625
  ...view,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",