@fctc/interface-logic 1.8.6 → 1.8.7
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 +133 -161
- package/dist/hooks.mjs +1 -29
- package/dist/provider.js +307 -571
- package/dist/provider.mjs +306 -570
- package/dist/services.js +1 -29
- package/dist/services.mjs +1 -29
- package/package.json +1 -1
package/dist/hooks.mjs
CHANGED
|
@@ -4174,34 +4174,6 @@ var UserService = {
|
|
|
4174
4174
|
};
|
|
4175
4175
|
var user_service_default = UserService;
|
|
4176
4176
|
|
|
4177
|
-
// src/provider/react-query-provider.tsx
|
|
4178
|
-
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
4179
|
-
import { jsx } from "react/jsx-runtime";
|
|
4180
|
-
|
|
4181
|
-
// src/provider/redux-provider.tsx
|
|
4182
|
-
import { Provider } from "react-redux";
|
|
4183
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
4184
|
-
|
|
4185
|
-
// src/provider/main-provider.tsx
|
|
4186
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
4187
|
-
|
|
4188
|
-
// src/provider/version-gate-provider.tsx
|
|
4189
|
-
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
4190
|
-
import { useQueryClient } from "@tanstack/react-query";
|
|
4191
|
-
import { Fragment, jsx as jsx4 } from "react/jsx-runtime";
|
|
4192
|
-
|
|
4193
|
-
// src/provider/env-provider.tsx
|
|
4194
|
-
import { createContext, useContext, useState as useState3, useCallback } from "react";
|
|
4195
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
4196
|
-
var EnvContext = createContext(null);
|
|
4197
|
-
function useEnv() {
|
|
4198
|
-
const context = useContext(EnvContext);
|
|
4199
|
-
if (!context) {
|
|
4200
|
-
throw new Error("useEnv must be used within an EnvProvider");
|
|
4201
|
-
}
|
|
4202
|
-
return context;
|
|
4203
|
-
}
|
|
4204
|
-
|
|
4205
4177
|
// src/services/view-service/index.ts
|
|
4206
4178
|
var ViewService = {
|
|
4207
4179
|
async getView({
|
|
@@ -4462,7 +4434,7 @@ var ViewService = {
|
|
|
4462
4434
|
);
|
|
4463
4435
|
},
|
|
4464
4436
|
async getVersion() {
|
|
4465
|
-
const
|
|
4437
|
+
const env2 = getEnv();
|
|
4466
4438
|
console.log("env?.requests", env2, env2?.requests);
|
|
4467
4439
|
return env2?.requests?.get("", {
|
|
4468
4440
|
headers: {
|