retouche-dev 0.0.0-stage → 0.1.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.
@@ -0,0 +1,7 @@
1
+ interface LayerProps {
2
+ config: unknown;
3
+ rememberDotVisibility?: boolean;
4
+ voice?: boolean;
5
+ }
6
+ export declare function Retouche(props: LayerProps): import("react").JSX.Element | null;
7
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use client";
2
+ import { c } from "react/compiler-runtime";
3
+ import { Suspense, lazy, useSyncExternalStore } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ // src/retouche.tsx
6
+ const Layer = process.env.NODE_ENV === "production" ? null : lazy(async () => await import("./layer-Ce6QQdAy.js"));
7
+ function subscribeToNothing() {
8
+ return () => {};
9
+ }
10
+ function Retouche(props) {
11
+ const $ = c(2);
12
+ const isHydrated = useSyncExternalStore(subscribeToNothing, _temp, _temp2);
13
+ if (!(Layer && isHydrated)) return null;
14
+ let t0;
15
+ if ($[0] !== props) {
16
+ t0 = /* @__PURE__ */ jsx(Suspense, {
17
+ fallback: null,
18
+ children: /* @__PURE__ */ jsx(Layer, { ...props })
19
+ });
20
+ $[0] = props;
21
+ $[1] = t0;
22
+ } else t0 = $[1];
23
+ return t0;
24
+ }
25
+ function _temp2() {
26
+ return false;
27
+ }
28
+ function _temp() {
29
+ return true;
30
+ }
31
+ export { Retouche };
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,3 @@
1
+ import { s as k } from "./rdt-hook-D5CYLcRL.js";
2
+ // src/instrument.ts
3
+ if (process.env.NODE_ENV !== "production") k();