@fctc/widget-logic 1.2.3 → 1.2.4
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 +3 -7
- package/dist/hooks.mjs +3 -7
- package/dist/index.js +3 -7
- package/dist/index.mjs +3 -7
- package/package.json +1 -2
package/dist/hooks.js
CHANGED
|
@@ -627,9 +627,7 @@ var AppProvider = ({ children }) => {
|
|
|
627
627
|
return combineContexts([user.context, company.context]);
|
|
628
628
|
}, [user.context, company.context]);
|
|
629
629
|
const menu = useMenu({ context: menuContext });
|
|
630
|
-
const action = (0, import_react10.useMemo)(() =>
|
|
631
|
-
return menu.state.action;
|
|
632
|
-
}, [menu.state.action]);
|
|
630
|
+
const action = (0, import_react10.useMemo)(() => menu.state.action, [menu.state.action]);
|
|
633
631
|
const viewContext = (0, import_react10.useMemo)(() => {
|
|
634
632
|
return combineContexts([
|
|
635
633
|
menuContext,
|
|
@@ -658,15 +656,13 @@ var AppProvider = ({ children }) => {
|
|
|
658
656
|
action,
|
|
659
657
|
view
|
|
660
658
|
},
|
|
661
|
-
children
|
|
659
|
+
children
|
|
662
660
|
}
|
|
663
661
|
);
|
|
664
662
|
};
|
|
665
663
|
var useAppProvider = () => {
|
|
666
664
|
const context = (0, import_react10.useContext)(ReactContext);
|
|
667
|
-
if (!context)
|
|
668
|
-
return AppProviderInitialValue;
|
|
669
|
-
}
|
|
665
|
+
if (!context) return AppProviderInitialValue;
|
|
670
666
|
return context;
|
|
671
667
|
};
|
|
672
668
|
|
package/dist/hooks.mjs
CHANGED
|
@@ -612,9 +612,7 @@ var AppProvider = ({ children }) => {
|
|
|
612
612
|
return combineContexts([user.context, company.context]);
|
|
613
613
|
}, [user.context, company.context]);
|
|
614
614
|
const menu = useMenu({ context: menuContext });
|
|
615
|
-
const action = useMemo7(() =>
|
|
616
|
-
return menu.state.action;
|
|
617
|
-
}, [menu.state.action]);
|
|
615
|
+
const action = useMemo7(() => menu.state.action, [menu.state.action]);
|
|
618
616
|
const viewContext = useMemo7(() => {
|
|
619
617
|
return combineContexts([
|
|
620
618
|
menuContext,
|
|
@@ -643,15 +641,13 @@ var AppProvider = ({ children }) => {
|
|
|
643
641
|
action,
|
|
644
642
|
view
|
|
645
643
|
},
|
|
646
|
-
children
|
|
644
|
+
children
|
|
647
645
|
}
|
|
648
646
|
);
|
|
649
647
|
};
|
|
650
648
|
var useAppProvider = () => {
|
|
651
649
|
const context = useContext(ReactContext);
|
|
652
|
-
if (!context)
|
|
653
|
-
return AppProviderInitialValue;
|
|
654
|
-
}
|
|
650
|
+
if (!context) return AppProviderInitialValue;
|
|
655
651
|
return context;
|
|
656
652
|
};
|
|
657
653
|
|
package/dist/index.js
CHANGED
|
@@ -4754,9 +4754,7 @@ var AppProvider = ({ children }) => {
|
|
|
4754
4754
|
return combineContexts([user.context, company.context]);
|
|
4755
4755
|
}, [user.context, company.context]);
|
|
4756
4756
|
const menu = useMenu({ context: menuContext });
|
|
4757
|
-
const action = (0, import_react10.useMemo)(() =>
|
|
4758
|
-
return menu.state.action;
|
|
4759
|
-
}, [menu.state.action]);
|
|
4757
|
+
const action = (0, import_react10.useMemo)(() => menu.state.action, [menu.state.action]);
|
|
4760
4758
|
const viewContext = (0, import_react10.useMemo)(() => {
|
|
4761
4759
|
return combineContexts([
|
|
4762
4760
|
menuContext,
|
|
@@ -4785,15 +4783,13 @@ var AppProvider = ({ children }) => {
|
|
|
4785
4783
|
action,
|
|
4786
4784
|
view
|
|
4787
4785
|
},
|
|
4788
|
-
children
|
|
4786
|
+
children
|
|
4789
4787
|
}
|
|
4790
4788
|
);
|
|
4791
4789
|
};
|
|
4792
4790
|
var useAppProvider = () => {
|
|
4793
4791
|
const context = (0, import_react10.useContext)(ReactContext);
|
|
4794
|
-
if (!context)
|
|
4795
|
-
return AppProviderInitialValue;
|
|
4796
|
-
}
|
|
4792
|
+
if (!context) return AppProviderInitialValue;
|
|
4797
4793
|
return context;
|
|
4798
4794
|
};
|
|
4799
4795
|
|
package/dist/index.mjs
CHANGED
|
@@ -4724,9 +4724,7 @@ var AppProvider = ({ children }) => {
|
|
|
4724
4724
|
return combineContexts([user.context, company.context]);
|
|
4725
4725
|
}, [user.context, company.context]);
|
|
4726
4726
|
const menu = useMenu({ context: menuContext });
|
|
4727
|
-
const action = useMemo7(() =>
|
|
4728
|
-
return menu.state.action;
|
|
4729
|
-
}, [menu.state.action]);
|
|
4727
|
+
const action = useMemo7(() => menu.state.action, [menu.state.action]);
|
|
4730
4728
|
const viewContext = useMemo7(() => {
|
|
4731
4729
|
return combineContexts([
|
|
4732
4730
|
menuContext,
|
|
@@ -4755,15 +4753,13 @@ var AppProvider = ({ children }) => {
|
|
|
4755
4753
|
action,
|
|
4756
4754
|
view
|
|
4757
4755
|
},
|
|
4758
|
-
children
|
|
4756
|
+
children
|
|
4759
4757
|
}
|
|
4760
4758
|
);
|
|
4761
4759
|
};
|
|
4762
4760
|
var useAppProvider = () => {
|
|
4763
4761
|
const context = useContext(ReactContext);
|
|
4764
|
-
if (!context)
|
|
4765
|
-
return AppProviderInitialValue;
|
|
4766
|
-
}
|
|
4762
|
+
if (!context) return AppProviderInitialValue;
|
|
4767
4763
|
return context;
|
|
4768
4764
|
};
|
|
4769
4765
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
53
53
|
"react-dom": "^19.1.1",
|
|
54
54
|
"react-i18next": "^15.6.1",
|
|
55
|
-
"react-redux": "^9.2.0",
|
|
56
55
|
"react-tooltip": "^5.29.1"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|