@mittwald/flow-remote-react-components 0.2.0-alpha.45 → 0.2.0-alpha.46

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.
@@ -2,13 +2,16 @@
2
2
  /* */
3
3
  "use client";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import React, { Suspense } from "react";
6
5
  import { useIsMounted } from "./hooks/useIsMounted.mjs";
6
+ import React, { Suspense } from "react";
7
+ import { HostDataProvider } from "./components/HostDataContextProvider.mjs";
7
8
  const ClientComponent = React.lazy(() => import("./components/RemoteRootClient.mjs"));
8
9
  const RemoteRoot = (props) => {
9
- const { children, ...rest } = props;
10
10
  const isMounted = useIsMounted();
11
- return isMounted ? /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(ClientComponent, { ...rest, children }) }) : null;
11
+ if (!isMounted) {
12
+ return null;
13
+ }
14
+ return /* @__PURE__ */ jsx(Suspense, { fallback: props.fallback, children: /* @__PURE__ */ jsx(HostDataProvider, { children: /* @__PURE__ */ jsx(ClientComponent, { ...props }) }) });
12
15
  };
13
16
  export {
14
17
  RemoteRoot,
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRoot.mjs","sources":["../../src/components/RemoteRoot.tsx"],"sourcesContent":["\"use client\";\nimport { type FC, Suspense } from \"react\";\nimport React from \"react\";\nimport { useIsMounted } from \"@/hooks/useIsMounted\";\nimport type { RootClientProps } from \"@/components/RemoteRootClient\";\n\nconst ClientComponent = React.lazy(() => import(\"./RemoteRootClient\"));\n\nexport const RemoteRoot: FC<RootClientProps> = (props) => {\n const { children, ...rest } = props;\n const isMounted = useIsMounted();\n return isMounted ? (\n <Suspense>\n <ClientComponent {...rest}>{children}</ClientComponent>\n </Suspense>\n ) : null;\n};\n\nexport default RemoteRoot;\n"],"names":[],"mappings":";;;;AAMA,MAAM,kBAAkB,MAAM,KAAK,MAAM,OAAO,mCAAoB,CAAC;AAExD,MAAA,aAAkC,CAAC,UAAU;AACxD,QAAM,EAAE,UAAU,GAAG,KAAA,IAAS;AAC9B,QAAM,YAAY,aAAa;AACxB,SAAA,gCACJ,UACC,EAAA,UAAA,oBAAC,mBAAiB,GAAG,MAAO,UAAS,EAAA,CACvC,IACE;AACN;"}
1
+ {"version":3,"file":"RemoteRoot.mjs","sources":["../../src/components/RemoteRoot.tsx"],"sourcesContent":["\"use client\";\nimport type { RootClientProps } from \"@/components/RemoteRootClient\";\nimport { useIsMounted } from \"@/hooks/useIsMounted\";\nimport React, { type FC, Suspense } from \"react\";\nimport { HostDataProvider } from \"./HostDataContextProvider\";\n\nconst ClientComponent = React.lazy(() => import(\"./RemoteRootClient\"));\n\nexport const RemoteRoot: FC<RootClientProps> = (props) => {\n const isMounted = useIsMounted();\n\n if (!isMounted) {\n return null;\n }\n\n return (\n <Suspense fallback={props.fallback}>\n <HostDataProvider>\n <ClientComponent {...props} />\n </HostDataProvider>\n </Suspense>\n );\n};\n\nexport default RemoteRoot;\n"],"names":[],"mappings":";;;;;AAMA,MAAM,kBAAkB,MAAM,KAAK,MAAM,OAAO,mCAAoB,CAAC;AAExD,MAAA,aAAkC,CAAC,UAAU;AACxD,QAAM,YAAY,aAAa;AAE/B,MAAI,CAAC,WAAW;AACP,WAAA;AAAA,EAAA;AAGT,SACG,oBAAA,UAAA,EAAS,UAAU,MAAM,UACxB,UAAA,oBAAC,kBACC,EAAA,UAAA,oBAAC,iBAAiB,EAAA,GAAG,MAAO,CAAA,EAC9B,CAAA,GACF;AAEJ;"}
@@ -0,0 +1,28 @@
1
+ "use client"
2
+ /* */
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { createContext, useContext, useState, useEffect } from "react";
5
+ const hostDataContext = createContext({});
6
+ const useHostData = () => useContext(hostDataContext).data;
7
+ const HostDataProvider = (props) => {
8
+ const { children } = props;
9
+ const [data, setData] = useState(void 0);
10
+ const handleDataRecevied = (event) => {
11
+ if (event instanceof CustomEvent) {
12
+ setData(event.detail);
13
+ }
14
+ };
15
+ useEffect(() => {
16
+ window.addEventListener("flr-data-received", handleDataRecevied);
17
+ return () => {
18
+ window.removeEventListener("flr-data-received", handleDataRecevied);
19
+ };
20
+ });
21
+ return /* @__PURE__ */ jsx(hostDataContext.Provider, { value: { data }, children });
22
+ };
23
+ export {
24
+ HostDataProvider,
25
+ hostDataContext,
26
+ useHostData
27
+ };
28
+ //# sourceMappingURL=HostDataContextProvider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HostDataContextProvider.mjs","sources":["../../../src/components/HostDataContextProvider.tsx"],"sourcesContent":["import {\n createContext,\n useContext,\n useEffect,\n useState,\n type FC,\n type PropsWithChildren,\n} from \"react\";\n\ninterface Context {\n data?: unknown;\n}\n\nexport const hostDataContext = createContext<Context>({});\n\ntype Props = PropsWithChildren;\n\nexport const useHostData = () => useContext(hostDataContext).data;\n\nexport const HostDataProvider: FC<Props> = (props) => {\n const { children } = props;\n\n const [data, setData] = useState<unknown>(undefined);\n\n const handleDataRecevied = (event: Event) => {\n if (event instanceof CustomEvent) {\n setData(event.detail);\n }\n };\n\n useEffect(() => {\n window.addEventListener(\"flr-data-received\", handleDataRecevied);\n return () => {\n window.removeEventListener(\"flr-data-received\", handleDataRecevied);\n };\n });\n\n return (\n <hostDataContext.Provider value={{ data }}>\n {children}\n </hostDataContext.Provider>\n );\n};\n"],"names":[],"mappings":";;AAaa,MAAA,kBAAkB,cAAuB,CAAE,CAAA;AAIjD,MAAM,cAAc,MAAM,WAAW,eAAe,EAAE;AAEhD,MAAA,mBAA8B,CAAC,UAAU;AAC9C,QAAA,EAAE,aAAa;AAErB,QAAM,CAAC,MAAM,OAAO,IAAI,SAAkB,MAAS;AAE7C,QAAA,qBAAqB,CAAC,UAAiB;AAC3C,QAAI,iBAAiB,aAAa;AAChC,cAAQ,MAAM,MAAM;AAAA,IAAA;AAAA,EAExB;AAEA,YAAU,MAAM;AACP,WAAA,iBAAiB,qBAAqB,kBAAkB;AAC/D,WAAO,MAAM;AACJ,aAAA,oBAAoB,qBAAqB,kBAAkB;AAAA,IACpE;AAAA,EAAA,CACD;AAGC,SAAA,oBAAC,gBAAgB,UAAhB,EAAyB,OAAO,EAAE,KAAA,GAChC,UACH;AAEJ;"}
@@ -10,10 +10,10 @@ const RemoteRenderer = React.lazy(async () => {
10
10
  return { default: Fallback };
11
11
  }
12
12
  });
13
- const Preview = () => {
13
+ const Preview = (props) => {
14
14
  const previewUrl = new URL(document.location.href);
15
15
  previewUrl.searchParams.set("preview", "");
16
- return /* @__PURE__ */ jsx(RemoteRenderer, { src: previewUrl.toString() });
16
+ return /* @__PURE__ */ jsx(RemoteRenderer, { src: previewUrl.toString(), ...props });
17
17
  };
18
18
  export {
19
19
  Preview,
@@ -1 +1 @@
1
- {"version":3,"file":"Preview.mjs","sources":["../../../src/components/Preview.tsx"],"sourcesContent":["import React, { type FC } from \"react\";\n\nconst Fallback: FC = () => null;\n\nconst RemoteRenderer = React.lazy(async () => {\n try {\n return await import(\"@mittwald/flow-remote-react-renderer/RemoteRenderer\");\n } catch {\n return { default: Fallback };\n }\n});\n\nexport const Preview: FC = () => {\n const previewUrl = new URL(document.location.href);\n previewUrl.searchParams.set(\"preview\", \"\");\n return <RemoteRenderer src={previewUrl.toString()} />;\n};\n\nexport default Preview;\n"],"names":[],"mappings":";;AAEA,MAAM,WAAe,MAAM;AAE3B,MAAM,iBAAiB,MAAM,KAAK,YAAY;AACxC,MAAA;AACK,WAAA,MAAM,OAAO,qDAAqD;AAAA,EAAA,QACnE;AACC,WAAA,EAAE,SAAS,SAAS;AAAA,EAAA;AAE/B,CAAC;AAEM,MAAM,UAAc,MAAM;AAC/B,QAAM,aAAa,IAAI,IAAI,SAAS,SAAS,IAAI;AACtC,aAAA,aAAa,IAAI,WAAW,EAAE;AACzC,SAAQ,oBAAA,gBAAA,EAAe,KAAK,WAAW,YAAY;AACrD;"}
1
+ {"version":3,"file":"Preview.mjs","sources":["../../../src/components/Preview.tsx"],"sourcesContent":["import React, { type FC, type ReactNode } from \"react\";\n\nconst Fallback: FC = () => null;\n\nconst RemoteRenderer = React.lazy(async () => {\n try {\n return await import(\"@mittwald/flow-remote-react-renderer/RemoteRenderer\");\n } catch {\n return { default: Fallback };\n }\n});\n\ninterface Props {\n data?: unknown;\n fallback?: ReactNode;\n}\n\nexport const Preview: FC<Props> = (props) => {\n const previewUrl = new URL(document.location.href);\n previewUrl.searchParams.set(\"preview\", \"\");\n return <RemoteRenderer src={previewUrl.toString()} {...props} />;\n};\n\nexport default Preview;\n"],"names":[],"mappings":";;AAEA,MAAM,WAAe,MAAM;AAE3B,MAAM,iBAAiB,MAAM,KAAK,YAAY;AACxC,MAAA;AACK,WAAA,MAAM,OAAO,qDAAqD;AAAA,EAAA,QACnE;AACC,WAAA,EAAE,SAAS,SAAS;AAAA,EAAA;AAE/B,CAAC;AAOY,MAAA,UAAqB,CAAC,UAAU;AAC3C,QAAM,aAAa,IAAI,IAAI,SAAS,SAAS,IAAI;AACtC,aAAA,aAAa,IAAI,WAAW,EAAE;AACzC,6BAAQ,gBAAe,EAAA,KAAK,WAAW,SAAS,GAAI,GAAG,OAAO;AAChE;"}
@@ -2,38 +2,26 @@
2
2
  /* */
3
3
  "use client";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import "react";
6
- import { connectHostIframeRef } from "@mittwald/flow-remote-core";
7
- import { ViewComponentContextProvider } from "@mittwald/flow-react-components/internal";
8
5
  import * as index from "../auto-generated/index.mjs";
9
6
  import { Preview } from "./Preview.mjs";
7
+ import { ViewComponentContextProvider } from "@mittwald/flow-react-components/internal";
8
+ import { connectHostRenderRootRef } from "@mittwald/flow-remote-core";
9
+ import "react";
10
10
  const RemoteRootClient = (props) => {
11
- const { children, showPreview = false } = props;
11
+ const { children, showPreview = false, ...previewProps } = props;
12
12
  const params = new URLSearchParams(document.location.search);
13
13
  const isInPreviewFrame = params.has("preview");
14
- const root = /* @__PURE__ */ jsx(
15
- "div",
14
+ const root = /* @__PURE__ */ jsx("div", { ref: connectHostRenderRootRef, children: /* @__PURE__ */ jsx(
15
+ ViewComponentContextProvider,
16
16
  {
17
- ref: connectHostIframeRef,
18
- style: {
19
- height: 0,
20
- width: 0,
21
- left: -9999,
22
- position: "absolute"
23
- },
24
- children: /* @__PURE__ */ jsx(
25
- ViewComponentContextProvider,
26
- {
27
- components: index,
28
- children
29
- }
30
- )
17
+ components: index,
18
+ children
31
19
  }
32
- );
20
+ ) });
33
21
  if (isInPreviewFrame || !showPreview) {
34
22
  return root;
35
23
  }
36
- return /* @__PURE__ */ jsx(Preview, {});
24
+ return /* @__PURE__ */ jsx(Preview, { ...previewProps });
37
25
  };
38
26
  export {
39
27
  RemoteRootClient,
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRootClient.mjs","sources":["../../../src/components/RemoteRootClient.tsx"],"sourcesContent":["\"use client\";\nimport type { FC, PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport { connectHostIframeRef } from \"@mittwald/flow-remote-core\";\nimport { ViewComponentContextProvider } from \"@mittwald/flow-react-components/internal\";\nimport * as viewComponents from \"@/auto-generated\";\nimport Preview from \"@/components/Preview\";\n\nexport interface RootClientProps extends PropsWithChildren {\n showPreview?: boolean;\n}\n\nexport const RemoteRootClient: FC<RootClientProps> = (props) => {\n const { children, showPreview = false } = props;\n\n const params = new URLSearchParams(document.location.search);\n const isInPreviewFrame = params.has(\"preview\");\n\n const root = (\n <div\n ref={connectHostIframeRef}\n style={{\n height: 0,\n width: 0,\n left: -9999,\n position: \"absolute\",\n }}\n >\n <ViewComponentContextProvider\n components={viewComponents as FlowViewComponents}\n >\n {children}\n </ViewComponentContextProvider>\n </div>\n );\n\n if (isInPreviewFrame || !showPreview) {\n return root;\n }\n\n return <Preview />;\n};\n\nexport default RemoteRootClient;\n"],"names":["viewComponents"],"mappings":";;;;;;;AAYa,MAAA,mBAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,UAAU,cAAc,MAAU,IAAA;AAE1C,QAAM,SAAS,IAAI,gBAAgB,SAAS,SAAS,MAAM;AACrD,QAAA,mBAAmB,OAAO,IAAI,SAAS;AAE7C,QAAM,OACJ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,MACZ;AAAA,MAEA,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,YAAYA;AAAAA,UAEX;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EACF;AAGE,MAAA,oBAAoB,CAAC,aAAa;AAC7B,WAAA;AAAA,EAAA;AAGT,6BAAQ,SAAQ,EAAA;AAClB;"}
1
+ {"version":3,"file":"RemoteRootClient.mjs","sources":["../../../src/components/RemoteRootClient.tsx"],"sourcesContent":["\"use client\";\nimport * as viewComponents from \"@/auto-generated\";\nimport Preview from \"@/components/Preview\";\nimport { ViewComponentContextProvider } from \"@mittwald/flow-react-components/internal\";\nimport { connectHostRenderRootRef } from \"@mittwald/flow-remote-core\";\nimport { type FC, type PropsWithChildren, type ReactNode } from \"react\";\n\nexport interface RootClientProps extends PropsWithChildren {\n showPreview?: boolean;\n data?: unknown;\n fallback?: ReactNode;\n}\n\nexport const RemoteRootClient: FC<RootClientProps> = (props) => {\n const { children, showPreview = false, ...previewProps } = props;\n\n const params = new URLSearchParams(document.location.search);\n const isInPreviewFrame = params.has(\"preview\");\n\n const root = (\n <div ref={connectHostRenderRootRef}>\n <ViewComponentContextProvider\n components={viewComponents as FlowViewComponents}\n >\n {children}\n </ViewComponentContextProvider>\n </div>\n );\n\n if (isInPreviewFrame || !showPreview) {\n return root;\n }\n\n return <Preview {...previewProps} />;\n};\n\nexport default RemoteRootClient;\n"],"names":["viewComponents"],"mappings":";;;;;;;AAaa,MAAA,mBAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,UAAU,cAAc,OAAO,GAAG,aAAiB,IAAA;AAE3D,QAAM,SAAS,IAAI,gBAAgB,SAAS,SAAS,MAAM;AACrD,QAAA,mBAAmB,OAAO,IAAI,SAAS;AAE7C,QAAM,OACJ,oBAAC,OAAI,EAAA,KAAK,0BACR,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,YAAYA;AAAAA,MAEX;AAAA,IAAA;AAAA,EAAA,GAEL;AAGE,MAAA,oBAAoB,CAAC,aAAa;AAC7B,WAAA;AAAA,EAAA;AAGF,SAAA,oBAAC,SAAS,EAAA,GAAG,aAAc,CAAA;AACpC;"}
package/dist/js/index.mjs CHANGED
@@ -94,8 +94,9 @@ import { TextField } from "./auto-generated/TextField.mjs";
94
94
  import { TimeField } from "./auto-generated/TimeField.mjs";
95
95
  import { Tooltip } from "./auto-generated/Tooltip.mjs";
96
96
  import { TooltipTrigger } from "./auto-generated/TooltipTrigger.mjs";
97
- import { Form } from "./components/Form.mjs";
98
97
  export * from "@mittwald/flow-react-components/flr-universal";
98
+ import { Form } from "./components/Form.mjs";
99
+ import { useHostData } from "./components/HostDataContextProvider.mjs";
99
100
  export {
100
101
  Accordion,
101
102
  ActionGroup,
@@ -193,6 +194,7 @@ export {
193
194
  TextField,
194
195
  TimeField,
195
196
  Tooltip,
196
- TooltipTrigger
197
+ TooltipTrigger,
198
+ useHostData
197
199
  };
198
200
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ interface Context {
3
+ data?: unknown;
4
+ }
5
+ export declare const hostDataContext: import('react').Context<Context>;
6
+ type Props = PropsWithChildren;
7
+ export declare const useHostData: () => unknown;
8
+ export declare const HostDataProvider: FC<Props>;
9
+ export {};
10
+ //# sourceMappingURL=HostDataContextProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HostDataContextProvider.d.ts","sourceRoot":"","sources":["../../../src/components/HostDataContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAAE,EACP,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAC;AAEf,UAAU,OAAO;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,kCAA6B,CAAC;AAE1D,KAAK,KAAK,GAAG,iBAAiB,CAAC;AAE/B,eAAO,MAAM,WAAW,eAAyC,CAAC;AAElE,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAuBtC,CAAC"}
@@ -1,4 +1,8 @@
1
- import { FC } from 'react';
2
- export declare const Preview: FC;
1
+ import { FC, ReactNode } from 'react';
2
+ interface Props {
3
+ data?: unknown;
4
+ fallback?: ReactNode;
5
+ }
6
+ export declare const Preview: FC<Props>;
3
7
  export default Preview;
4
8
  //# sourceMappingURL=Preview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../src/components/Preview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,OAAO,EAAE,EAIrB,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../src/components/Preview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvD,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,KAAK,CAI7B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { RootClientProps } from './RemoteRootClient';
2
+ import { FC } from 'react';
3
3
  export declare const RemoteRoot: FC<RootClientProps>;
4
4
  export default RemoteRoot;
5
5
  //# sourceMappingURL=RemoteRoot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRoot.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRoot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIrE,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAQ1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RemoteRoot.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAc,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAKjD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAc1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,8 @@
1
- import { FC, PropsWithChildren } from 'react';
1
+ import { FC, PropsWithChildren, ReactNode } from 'react';
2
2
  export interface RootClientProps extends PropsWithChildren {
3
3
  showPreview?: boolean;
4
+ data?: unknown;
5
+ fallback?: ReactNode;
4
6
  }
5
7
  export declare const RemoteRootClient: FC<RootClientProps>;
6
8
  export default RemoteRootClient;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRootClient.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,eAAe,CA6BhD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"RemoteRootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRootClient.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,eAAe,CAqBhD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
- export * from './Form';
2
1
  export * from './FlowRemoteUniversal';
2
+ export * from './Form';
3
+ export { useHostData } from './HostDataContextProvider';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-react-components",
3
- "version": "0.2.0-alpha.45",
3
+ "version": "0.2.0-alpha.46",
4
4
  "type": "module",
5
5
  "description": "React components that can be used in a remote environment",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -32,17 +32,17 @@
32
32
  "test:compile": "tsc --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@mittwald/flow-react-components": "0.2.0-alpha.45",
36
- "@mittwald/flow-remote-core": "0.2.0-alpha.45",
37
- "@mittwald/flow-remote-elements": "0.2.0-alpha.45",
35
+ "@mittwald/flow-react-components": "0.2.0-alpha.46",
36
+ "@mittwald/flow-remote-core": "0.2.0-alpha.46",
37
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.46",
38
38
  "@remote-dom/react": "^1.2.1",
39
39
  "@types/react": "^19.0.10"
40
40
  },
41
41
  "devDependencies": {
42
- "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.45",
42
+ "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.46",
43
43
  "@mittwald/typescript-config": "",
44
44
  "@types/node": "^22.13.4",
45
- "nx": "^20.4.4",
45
+ "nx": "^20.4.5",
46
46
  "prettier": "^3.5.1",
47
47
  "react": "^19.0.0",
48
48
  "react-hook-form": "^7.54.2",
@@ -50,7 +50,7 @@
50
50
  "rollup-plugin-auto-named-exports": "1.0.0-beta.3",
51
51
  "rollup-preserve-directives": "^1.1.3",
52
52
  "typescript": "^5.7.3",
53
- "vite": "^6.1.0",
53
+ "vite": "^6.1.1",
54
54
  "vite-plugin-banner": "^0.8.0",
55
55
  "vite-plugin-checker": "^0.8.0",
56
56
  "vite-plugin-dts": "^4.5.0",
@@ -69,5 +69,5 @@
69
69
  "optional": true
70
70
  }
71
71
  },
72
- "gitHead": "ec17c69f6103b6f015eab5aa833145fda68ea058"
72
+ "gitHead": "ef82ec9b2b1c6a47574ef2e1ec0ecc76a39aad54"
73
73
  }