@lark-apaas/client-toolkit-lite 1.1.22 → 1.1.23-beta.0
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/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2465,6 +2465,15 @@ var Watermark = /* @__PURE__ */ __name(() => {
|
|
|
2465
2465
|
}, "Watermark");
|
|
2466
2466
|
var Watermark_default = Watermark;
|
|
2467
2467
|
|
|
2468
|
+
// src/components/AppContainer/standalone.ts
|
|
2469
|
+
var isStandaloneBuild = /* @__PURE__ */ __name(() => {
|
|
2470
|
+
try {
|
|
2471
|
+
return process.env.MIAODA_BUILD_TARGET === "standalone";
|
|
2472
|
+
} catch {
|
|
2473
|
+
return false;
|
|
2474
|
+
}
|
|
2475
|
+
}, "isStandaloneBuild");
|
|
2476
|
+
|
|
2468
2477
|
// src/components/QueryProvider/index.tsx
|
|
2469
2478
|
import React4 from "react";
|
|
2470
2479
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
@@ -2701,6 +2710,7 @@ var TrackKey = /* @__PURE__ */ (function(TrackKey2) {
|
|
|
2701
2710
|
// src/components/AppContainer/index.tsx
|
|
2702
2711
|
var AppContainer = /* @__PURE__ */ __name(({ children }) => {
|
|
2703
2712
|
useAppInfo();
|
|
2713
|
+
const standalone = isStandaloneBuild();
|
|
2704
2714
|
useEffect6(() => {
|
|
2705
2715
|
if (process.env.NODE_ENV === "production") {
|
|
2706
2716
|
reportTeaEvent({
|
|
@@ -2714,7 +2724,7 @@ var AppContainer = /* @__PURE__ */ __name(({ children }) => {
|
|
|
2714
2724
|
reportAppFirstRender();
|
|
2715
2725
|
}
|
|
2716
2726
|
}, []);
|
|
2717
|
-
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, String(process.env.MIAODA_APP_TYPE) !== "7" && /* @__PURE__ */ React5.createElement(safety_default, null), process.env.NODE_ENV !== "production" && /* @__PURE__ */ React5.createElement(MiaodaInspector, null), process.env.NODE_ENV !== "production" && /* @__PURE__ */ React5.createElement(IframeBridge, null), /* @__PURE__ */ React5.createElement(Watermark_default, null), /* @__PURE__ */ React5.createElement(QueryProvider_default, null, children));
|
|
2727
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, !standalone && String(process.env.MIAODA_APP_TYPE) !== "7" && /* @__PURE__ */ React5.createElement(safety_default, null), process.env.NODE_ENV !== "production" && /* @__PURE__ */ React5.createElement(MiaodaInspector, null), process.env.NODE_ENV !== "production" && /* @__PURE__ */ React5.createElement(IframeBridge, null), !standalone && /* @__PURE__ */ React5.createElement(Watermark_default, null), /* @__PURE__ */ React5.createElement(QueryProvider_default, null, children));
|
|
2718
2728
|
}, "AppContainer");
|
|
2719
2729
|
var AppContainer_default = AppContainer;
|
|
2720
2730
|
|