@fctc/interface-logic 1.4.10 → 1.5.1

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
@@ -4229,7 +4229,7 @@ var model_service_default = ModelService;
4229
4229
  var UserService = {
4230
4230
  async getProfile(path) {
4231
4231
  const env2 = getEnv();
4232
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4232
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4233
4233
  headers: {
4234
4234
  "Content-Type": "application/x-www-form-urlencoded"
4235
4235
  }
@@ -4548,8 +4548,7 @@ var ViewService = {
4548
4548
  },
4549
4549
  async getVersion() {
4550
4550
  const env2 = getEnv();
4551
- console.log("env?.requests", env2, env2?.requests);
4552
- return env2?.requests?.get("", {
4551
+ return env2?.requests.get("", {
4553
4552
  headers: {
4554
4553
  "Content-Type": "application/json"
4555
4554
  }
@@ -1,16 +1,15 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import { ReactNode } from 'react';
3
2
 
4
3
  declare const MainProvider: ({ children }: {
5
4
  children: ReactNode;
6
- }) => react_jsx_runtime.JSX.Element;
5
+ }) => JSX.Element;
7
6
 
8
7
  declare const ReactQueryProvider: ({ children }: {
9
8
  children: ReactNode;
10
- }) => react_jsx_runtime.JSX.Element;
9
+ }) => JSX.Element;
11
10
 
12
11
  declare const VersionGate: ({ children }: {
13
12
  children: ReactNode;
14
- }) => react_jsx_runtime.JSX.Element | null;
13
+ }) => JSX.Element | null;
15
14
 
16
15
  export { MainProvider, ReactQueryProvider, VersionGate };
package/dist/provider.js CHANGED
@@ -3376,8 +3376,7 @@ var ViewService = {
3376
3376
  },
3377
3377
  async getVersion() {
3378
3378
  const env2 = getEnv();
3379
- console.log("env?.requests", env2, env2?.requests);
3380
- return env2?.requests?.get("", {
3379
+ return env2?.requests.get("", {
3381
3380
  headers: {
3382
3381
  "Content-Type": "application/json"
3383
3382
  }
@@ -3574,7 +3573,6 @@ var VersionGate = ({ children }) => {
3574
3573
  };
3575
3574
  const validateVersion = async () => {
3576
3575
  const serverVersion = await view_service_default.getVersion();
3577
- console.log("serverVersion", serverVersion);
3578
3576
  const cached = localStorage.getItem("__api_version__");
3579
3577
  if (cached !== serverVersion?.api_version) {
3580
3578
  clearVersion();
package/dist/services.js CHANGED
@@ -4145,7 +4145,7 @@ var model_service_default = ModelService;
4145
4145
  var UserService = {
4146
4146
  async getProfile(path) {
4147
4147
  const env2 = getEnv();
4148
- return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4148
+ return env2?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4149
4149
  headers: {
4150
4150
  "Content-Type": "application/x-www-form-urlencoded"
4151
4151
  }
@@ -4464,8 +4464,7 @@ var ViewService = {
4464
4464
  },
4465
4465
  async getVersion() {
4466
4466
  const env2 = getEnv();
4467
- console.log("env?.requests", env2, env2?.requests);
4468
- return env2?.requests?.get("", {
4467
+ return env2?.requests.get("", {
4469
4468
  headers: {
4470
4469
  "Content-Type": "application/json"
4471
4470
  }
package/dist/store.js CHANGED
@@ -535,10 +535,6 @@ var selectSearch = (state) => state.search;
535
535
  var selectSearchMap = (state) => state.search.searchMap;
536
536
  var search_slice_default = searchSlice.reducer;
537
537
 
538
- // src/store/index.ts
539
- var useAppDispatch = import_react_redux.useDispatch;
540
- var useAppSelector = import_react_redux.useSelector;
541
-
542
538
  // src/store/store.ts
543
539
  var import_toolkit11 = require("@reduxjs/toolkit");
544
540
 
@@ -730,6 +726,10 @@ var envStore = (0, import_toolkit11.configureStore)({
730
726
  serializableCheck: false
731
727
  })
732
728
  });
729
+
730
+ // src/store/index.ts
731
+ var useAppDispatch = import_react_redux.useDispatch;
732
+ var useAppSelector = import_react_redux.useSelector;
733
733
  // Annotate the CommonJS export names for ESM import in node:
734
734
  0 && (module.exports = {
735
735
  breadcrumbsSlice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.4.10",
3
+ "version": "1.5.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1,15 +0,0 @@
1
- import { EnvStore } from './environment.mjs';
2
- import '@reduxjs/toolkit';
3
-
4
- declare const axiosClient: {
5
- init(config: EnvStore): {
6
- get: (url: string, headers: any) => Promise<any>;
7
- post: (url: string, body: any, headers: any) => Promise<any>;
8
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
9
- put: (url: string, body: any, headers: any) => Promise<any>;
10
- patch: (url: string, body: any) => Promise<any>;
11
- delete: (url: string, body: any) => Promise<any>;
12
- };
13
- };
14
-
15
- export { axiosClient };