@fctc/widget-logic 6.1.3 → 6.1.5

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
@@ -147,6 +147,7 @@ var useCallAction = () => {
147
147
  const [actionData, setActionData] = (0, import_react.useState)(
148
148
  void 0
149
149
  );
150
+ console.log("env?.context", env?.context);
150
151
  const callAction = (0, import_react.useCallback)(
151
152
  async ({
152
153
  aid,
@@ -583,8 +584,10 @@ var useCompany = ({ service }) => {
583
584
  }
584
585
  }, [current_company_id]);
585
586
  (0, import_react7.useEffect)(() => {
587
+ console.log("wesapCompany.data", wesapCompany.data);
586
588
  if (wesapCompany.data) {
587
589
  const allowedCompanies = currentCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
590
+ console.log("allowedCompanies", allowedCompanies);
588
591
  if (allowedCompanies.length) {
589
592
  setAllowCompanies(allowedCompanies);
590
593
  }
package/dist/hooks.mjs CHANGED
@@ -127,6 +127,7 @@ var useCallAction = () => {
127
127
  const [actionData, setActionData] = useState(
128
128
  void 0
129
129
  );
130
+ console.log("env?.context", env?.context);
130
131
  const callAction = useCallback(
131
132
  async ({
132
133
  aid,
@@ -564,8 +565,10 @@ var useCompany = ({ service }) => {
564
565
  }
565
566
  }, [current_company_id]);
566
567
  useEffect4(() => {
568
+ console.log("wesapCompany.data", wesapCompany.data);
567
569
  if (wesapCompany.data) {
568
570
  const allowedCompanies = currentCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
571
+ console.log("allowedCompanies", allowedCompanies);
569
572
  if (allowedCompanies.length) {
570
573
  setAllowCompanies(allowedCompanies);
571
574
  }
package/dist/index.js CHANGED
@@ -4198,6 +4198,7 @@ var useCallAction = () => {
4198
4198
  const [actionData, setActionData] = (0, import_react.useState)(
4199
4199
  void 0
4200
4200
  );
4201
+ console.log("env?.context", env?.context);
4201
4202
  const callAction = (0, import_react.useCallback)(
4202
4203
  async ({
4203
4204
  aid,
@@ -4657,8 +4658,10 @@ var useCompany = ({ service }) => {
4657
4658
  }
4658
4659
  }, [current_company_id]);
4659
4660
  (0, import_react7.useEffect)(() => {
4661
+ console.log("wesapCompany.data", wesapCompany.data);
4660
4662
  if (wesapCompany.data) {
4661
4663
  const allowedCompanies = currentCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
4664
+ console.log("allowedCompanies", allowedCompanies);
4662
4665
  if (allowedCompanies.length) {
4663
4666
  setAllowCompanies(allowedCompanies);
4664
4667
  }
package/dist/index.mjs CHANGED
@@ -4287,6 +4287,7 @@ var useCallAction = () => {
4287
4287
  const [actionData, setActionData] = useState(
4288
4288
  void 0
4289
4289
  );
4290
+ console.log("env?.context", env?.context);
4290
4291
  const callAction = useCallback(
4291
4292
  async ({
4292
4293
  aid,
@@ -4747,8 +4748,10 @@ var useCompany = ({ service }) => {
4747
4748
  }
4748
4749
  }, [current_company_id]);
4749
4750
  useEffect4(() => {
4751
+ console.log("wesapCompany.data", wesapCompany.data);
4750
4752
  if (wesapCompany.data) {
4751
4753
  const allowedCompanies = currentCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
4754
+ console.log("allowedCompanies", allowedCompanies);
4752
4755
  if (allowedCompanies.length) {
4753
4756
  setAllowCompanies(allowedCompanies);
4754
4757
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "6.1.3",
3
+ "version": "6.1.5",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",