@mittwald/flow-remote-react-components 0.2.0-alpha.84 → 0.2.0-alpha.86
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/js/RemoteRoot.mjs +2 -2
- package/dist/js/RemoteRoot.mjs.map +1 -1
- package/dist/js/components/RemoteRootClient.mjs.map +1 -1
- package/dist/types/components/RemoteRoot.d.ts.map +1 -1
- package/dist/types/components/RemoteRootClient.d.ts +1 -2
- package/dist/types/components/RemoteRootClient.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/Form/Form.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/js/RemoteRoot.mjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useIsMounted } from "./hooks/useIsMounted.mjs";
|
|
6
|
-
import React
|
|
6
|
+
import React from "react";
|
|
7
7
|
const ClientComponent = React.lazy(() => import("./components/RemoteRootClient.mjs"));
|
|
8
8
|
const RemoteRoot = (props) => {
|
|
9
9
|
const isMounted = useIsMounted();
|
|
10
10
|
if (!isMounted) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx(ClientComponent, { ...props });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
16
|
RemoteRoot,
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 } from \"react\";\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 <ClientComponent {...props} />;\n};\n\nexport default RemoteRoot;\n"],"names":[],"mappings":";;;;AAKA,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;AAGF,SAAA,oBAAC,iBAAiB,EAAA,GAAG,MAAO,CAAA;AACrC;"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 } from \"react\";\n\nexport interface RootClientProps extends PropsWithChildren {\n showPreview?: boolean;\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":";;;;;;;AAWa,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;"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EAAE,MAAM,OAAO,CAAC;AAIvC,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAQ1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { FC, PropsWithChildren
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
export interface RootClientProps extends PropsWithChildren {
|
|
3
3
|
showPreview?: boolean;
|
|
4
|
-
fallback?: ReactNode;
|
|
5
4
|
}
|
|
6
5
|
export declare const RemoteRootClient: FC<RootClientProps>;
|
|
7
6
|
export default RemoteRootClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteRootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRootClient.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"RemoteRootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RemoteRootClient.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,eAAe,CAqBhD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-hook-form/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-hook-form/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,EAAE,OAAO,SAAS,CAAC,CAAC,CAAC,4CAI9D,CAAC;AAEF,eAAe,IAAI,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.
|
|
3
|
+
"version": "0.2.0-alpha.86",
|
|
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",
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@mfalkenberg/remote-dom-react": "1.2.3",
|
|
36
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
37
|
-
"@mittwald/flow-remote-core": "0.2.0-alpha.
|
|
38
|
-
"@mittwald/flow-remote-elements": "0.2.0-alpha.
|
|
39
|
-
"@types/react": "^19"
|
|
36
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.86",
|
|
37
|
+
"@mittwald/flow-remote-core": "0.2.0-alpha.86",
|
|
38
|
+
"@mittwald/flow-remote-elements": "0.2.0-alpha.86",
|
|
39
|
+
"@types/react": "^19.0.10"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@mittwald/flow-remote-react-renderer": "0.2.0-alpha.
|
|
42
|
+
"@mittwald/flow-remote-react-renderer": "0.2.0-alpha.86",
|
|
43
43
|
"@mittwald/typescript-config": "",
|
|
44
|
-
"@types/node": "^22.13.
|
|
45
|
-
"nx": "^20.
|
|
46
|
-
"prettier": "^3.5.
|
|
47
|
-
"react": "^19",
|
|
44
|
+
"@types/node": "^22.13.10",
|
|
45
|
+
"nx": "^20.5.0",
|
|
46
|
+
"prettier": "^3.5.3",
|
|
47
|
+
"react": "^19.0.0",
|
|
48
48
|
"react-hook-form": "^7.54.2",
|
|
49
49
|
"rimraf": "^6.0.1",
|
|
50
50
|
"rollup-plugin-auto-named-exports": "1.0.0-beta.3",
|
|
51
51
|
"rollup-preserve-directives": "^1.1.3",
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"vite": "^6.
|
|
52
|
+
"typescript": "^5.8.2",
|
|
53
|
+
"vite": "^6.2.1",
|
|
54
54
|
"vite-plugin-banner": "^0.8.0",
|
|
55
|
-
"vite-plugin-checker": "^0.
|
|
56
|
-
"vite-plugin-dts": "^4.5.
|
|
55
|
+
"vite-plugin-checker": "^0.9.0",
|
|
56
|
+
"vite-plugin-dts": "^4.5.3",
|
|
57
57
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"optional": true
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "e7790e1caf7262074ef04aef4e335f19bd648192"
|
|
73
73
|
}
|