@fctc/widget-logic 1.2.4 → 1.2.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.d.mts CHANGED
@@ -951,6 +951,9 @@ type AppProviderType = {
951
951
  declare const AppProvider: ({ children }: {
952
952
  children: React.ReactNode;
953
953
  }) => JSX.Element;
954
+ declare const MainAppProvider: ({ children, }: {
955
+ children: React.ReactNode;
956
+ }) => JSX.Element;
954
957
  declare const useAppProvider: () => AppProviderType;
955
958
 
956
959
  declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
@@ -1006,4 +1009,4 @@ declare const useResetPasswordHandler: () => {
1006
1009
  error: Error | null;
1007
1010
  };
1008
1011
 
1009
- export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
1012
+ export { type ActionResultType, AppProvider, type Context, MainAppProvider, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
package/dist/hooks.d.ts CHANGED
@@ -951,6 +951,9 @@ type AppProviderType = {
951
951
  declare const AppProvider: ({ children }: {
952
952
  children: React.ReactNode;
953
953
  }) => JSX.Element;
954
+ declare const MainAppProvider: ({ children, }: {
955
+ children: React.ReactNode;
956
+ }) => JSX.Element;
954
957
  declare const useAppProvider: () => AppProviderType;
955
958
 
956
959
  declare const DEFAULT_EVENTS: readonly ["mousedown", "touchstart"];
@@ -1006,4 +1009,4 @@ declare const useResetPasswordHandler: () => {
1006
1009
  error: Error | null;
1007
1010
  };
1008
1011
 
1009
- export { type ActionResultType, AppProvider, type Context, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
1012
+ export { type ActionResultType, AppProvider, type Context, MainAppProvider, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, type useListDataType, useLoginHandler, useMenu, type useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, type useUserType, useViewV2, type useViewV2Type };
package/dist/hooks.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var hooks_exports = {};
22
22
  __export(hooks_exports, {
23
23
  AppProvider: () => AppProvider,
24
+ MainAppProvider: () => MainAppProvider,
24
25
  useAppProvider: () => useAppProvider,
25
26
  useAuth: () => useAuth,
26
27
  useCallAction: () => useCallAction,
@@ -660,6 +661,11 @@ var AppProvider = ({ children }) => {
660
661
  }
661
662
  );
662
663
  };
664
+ var MainAppProvider = ({
665
+ children
666
+ }) => {
667
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_interface_logic10.MainProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppProvider, { children }) });
668
+ };
663
669
  var useAppProvider = () => {
664
670
  const context = (0, import_react10.useContext)(ReactContext);
665
671
  if (!context) return AppProviderInitialValue;
@@ -837,6 +843,7 @@ var useResetPasswordHandler = () => {
837
843
  // Annotate the CommonJS export names for ESM import in node:
838
844
  0 && (module.exports = {
839
845
  AppProvider,
846
+ MainAppProvider,
840
847
  useAppProvider,
841
848
  useAuth,
842
849
  useCallAction,
package/dist/hooks.mjs CHANGED
@@ -645,6 +645,11 @@ var AppProvider = ({ children }) => {
645
645
  }
646
646
  );
647
647
  };
648
+ var MainAppProvider = ({
649
+ children
650
+ }) => {
651
+ return /* @__PURE__ */ jsx(MainProvider, { children: /* @__PURE__ */ jsx(AppProvider, { children }) });
652
+ };
648
653
  var useAppProvider = () => {
649
654
  const context = useContext(ReactContext);
650
655
  if (!context) return AppProviderInitialValue;
@@ -826,6 +831,7 @@ var useResetPasswordHandler = () => {
826
831
  };
827
832
  export {
828
833
  AppProvider,
834
+ MainAppProvider,
829
835
  useAppProvider,
830
836
  useAuth,
831
837
  useCallAction,
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, useListDataType, useLoginHandler, useMenu, useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
1
+ export { ActionResultType, AppProvider, Context, MainAppProvider, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, useListDataType, useLoginHandler, useMenu, useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
2
2
  export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
3
3
  import { IInputFieldProps, ValuePropsType } from './types.mjs';
4
4
  import * as react from 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ActionResultType, AppProvider, Context, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, useListDataType, useLoginHandler, useMenu, useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
1
+ export { ActionResultType, AppProvider, Context, MainAppProvider, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useForgotPasswordHandler, useListData, useListDataType, useLoginHandler, useMenu, useMenuType, useProfile, useResetPasswordHandler, useSwitchLocaleHandler, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
2
2
  export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
3
3
  import { IInputFieldProps, ValuePropsType } from './types.js';
4
4
  import * as react from 'react';
package/dist/index.js CHANGED
@@ -4040,6 +4040,7 @@ __export(index_exports, {
4040
4040
  CloseIcon: () => CloseIcon,
4041
4041
  EyeIcon: () => EyeIcon,
4042
4042
  LoadingIcon: () => LoadingIcon,
4043
+ MainAppProvider: () => MainAppProvider,
4043
4044
  STORAGES: () => STORAGES,
4044
4045
  binaryFieldController: () => binaryFieldController,
4045
4046
  colorFieldController: () => colorFieldController,
@@ -4787,6 +4788,11 @@ var AppProvider = ({ children }) => {
4787
4788
  }
4788
4789
  );
4789
4790
  };
4791
+ var MainAppProvider = ({
4792
+ children
4793
+ }) => {
4794
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_interface_logic10.MainProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppProvider, { children }) });
4795
+ };
4790
4796
  var useAppProvider = () => {
4791
4797
  const context = (0, import_react10.useContext)(ReactContext);
4792
4798
  if (!context) return AppProviderInitialValue;
@@ -7318,6 +7324,7 @@ var binaryFieldController = (props) => {
7318
7324
  CloseIcon,
7319
7325
  EyeIcon,
7320
7326
  LoadingIcon,
7327
+ MainAppProvider,
7321
7328
  STORAGES,
7322
7329
  binaryFieldController,
7323
7330
  colorFieldController,
package/dist/index.mjs CHANGED
@@ -4757,6 +4757,11 @@ var AppProvider = ({ children }) => {
4757
4757
  }
4758
4758
  );
4759
4759
  };
4760
+ var MainAppProvider = ({
4761
+ children
4762
+ }) => {
4763
+ return /* @__PURE__ */ jsx(MainProvider, { children: /* @__PURE__ */ jsx(AppProvider, { children }) });
4764
+ };
4760
4765
  var useAppProvider = () => {
4761
4766
  const context = useContext(ReactContext);
4762
4767
  if (!context) return AppProviderInitialValue;
@@ -7352,6 +7357,7 @@ export {
7352
7357
  CloseIcon,
7353
7358
  EyeIcon,
7354
7359
  LoadingIcon,
7360
+ MainAppProvider,
7355
7361
  STORAGES,
7356
7362
  binaryFieldController,
7357
7363
  colorFieldController,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",