@fctc/widget-logic 4.9.2 → 4.9.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 CHANGED
@@ -376,7 +376,6 @@ var useMenu = ({
376
376
  domain,
377
377
  defaultService
378
378
  }) => {
379
- const { env } = (0, provider_exports.useEnv)();
380
379
  const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
381
380
  const [action, callAction] = useCallAction();
382
381
  const [service, setService] = (0, import_react3.useState)("");
@@ -492,7 +491,10 @@ var useProfile = ({ service }) => {
492
491
  if (userInfoQuery.isLoading || !userInfoQuery.data) {
493
492
  return null;
494
493
  }
495
- return { ...userInfoQuery, context };
494
+ return {
495
+ ...userInfoQuery,
496
+ context
497
+ };
496
498
  };
497
499
 
498
500
  // src/hooks/core/use-user.ts
package/dist/hooks.mjs CHANGED
@@ -357,7 +357,6 @@ var useMenu = ({
357
357
  domain,
358
358
  defaultService
359
359
  }) => {
360
- const { env } = (0, provider_exports.useEnv)();
361
360
  const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
362
361
  const [action, callAction] = useCallAction();
363
362
  const [service, setService] = useState2("");
@@ -473,7 +472,10 @@ var useProfile = ({ service }) => {
473
472
  if (userInfoQuery.isLoading || !userInfoQuery.data) {
474
473
  return null;
475
474
  }
476
- return { ...userInfoQuery, context };
475
+ return {
476
+ ...userInfoQuery,
477
+ context
478
+ };
477
479
  };
478
480
 
479
481
  // src/hooks/core/use-user.ts
package/dist/index.js CHANGED
@@ -4448,7 +4448,6 @@ var useMenu = ({
4448
4448
  domain,
4449
4449
  defaultService
4450
4450
  }) => {
4451
- const { env } = (0, provider_exports.useEnv)();
4452
4451
  const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
4453
4452
  const [action, callAction] = useCallAction();
4454
4453
  const [service, setService] = (0, import_react3.useState)("");
@@ -4564,7 +4563,10 @@ var useProfile = ({ service }) => {
4564
4563
  if (userInfoQuery.isLoading || !userInfoQuery.data) {
4565
4564
  return null;
4566
4565
  }
4567
- return { ...userInfoQuery, context };
4566
+ return {
4567
+ ...userInfoQuery,
4568
+ context
4569
+ };
4568
4570
  };
4569
4571
 
4570
4572
  // src/hooks/core/use-user.ts
@@ -6286,8 +6288,8 @@ var binaryFieldController = (props) => {
6286
6288
  const res = await mutateAsync({
6287
6289
  formData,
6288
6290
  service,
6289
- xNode,
6290
- path
6291
+ xNode
6292
+ // path: path,
6291
6293
  });
6292
6294
  const url2 = res?.url;
6293
6295
  methods?.setValue(name, url2, { shouldDirty: true });
package/dist/index.mjs CHANGED
@@ -4538,7 +4538,6 @@ var useMenu = ({
4538
4538
  domain,
4539
4539
  defaultService
4540
4540
  }) => {
4541
- const { env } = (0, provider_exports.useEnv)();
4542
4541
  const { useGetMenu: useGetMenu2 } = (0, provider_exports.useService)();
4543
4542
  const [action, callAction] = useCallAction();
4544
4543
  const [service, setService] = useState2("");
@@ -4654,7 +4653,10 @@ var useProfile = ({ service }) => {
4654
4653
  if (userInfoQuery.isLoading || !userInfoQuery.data) {
4655
4654
  return null;
4656
4655
  }
4657
- return { ...userInfoQuery, context };
4656
+ return {
4657
+ ...userInfoQuery,
4658
+ context
4659
+ };
4658
4660
  };
4659
4661
 
4660
4662
  // src/hooks/core/use-user.ts
@@ -6381,8 +6383,8 @@ var binaryFieldController = (props) => {
6381
6383
  const res = await mutateAsync({
6382
6384
  formData,
6383
6385
  service,
6384
- xNode,
6385
- path
6386
+ xNode
6387
+ // path: path,
6386
6388
  });
6387
6389
  const url2 = res?.url;
6388
6390
  methods?.setValue(name, url2, { shouldDirty: true });
package/dist/widget.js CHANGED
@@ -5526,8 +5526,8 @@ var binaryFieldController = (props) => {
5526
5526
  const res = await mutateAsync({
5527
5527
  formData,
5528
5528
  service,
5529
- xNode,
5530
- path
5529
+ xNode
5530
+ // path: path,
5531
5531
  });
5532
5532
  const url2 = res?.url;
5533
5533
  methods?.setValue(name, url2, { shouldDirty: true });
package/dist/widget.mjs CHANGED
@@ -5598,8 +5598,8 @@ var binaryFieldController = (props) => {
5598
5598
  const res = await mutateAsync({
5599
5599
  formData,
5600
5600
  service,
5601
- xNode,
5602
- path
5601
+ xNode
5602
+ // path: path,
5603
5603
  });
5604
5604
  const url2 = res?.url;
5605
5605
  methods?.setValue(name, url2, { shouldDirty: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "4.9.2",
3
+ "version": "4.9.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -74,7 +74,7 @@
74
74
  "test": "jest"
75
75
  },
76
76
  "dependencies": {
77
- "@fctc/interface-logic": "^4.2.1",
77
+ "@fctc/interface-logic": "^4.2.2",
78
78
  "@headlessui/react": "^2.2.6",
79
79
  "@tanstack/react-query": "^5.84.0",
80
80
  "i18next": "^25.3.2",