@mittwald/flow-remote-react-components 0.2.0-alpha.17 → 0.2.0-alpha.18

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/README.md CHANGED
@@ -3,3 +3,24 @@
3
3
  This package is part of
4
4
  [Flow – mittwald design system](https://mittwald.github.io/flow/). See the
5
5
  homepage for more details.
6
+
7
+ ## Migrate from Flow to Flow-Remote
8
+
9
+ #### Update `package.json`
10
+
11
+ ```shell
12
+ yarn remove @mittwald/flow-react-components
13
+ yarn add @mittwald/flow-remote-react-components@experimental
14
+ ```
15
+
16
+ #### Adjust imports in your code
17
+
18
+ ```shell
19
+ npx jscodeshift \
20
+ -t https://raw.githubusercontent.com/mittwald/flow/refs/heads/0.2.0/packages/codemods/src/transforms/flowRemote.ts \
21
+ --parser tsx \
22
+ src
23
+ ```
24
+
25
+ Replace `src` with your sources folder. If you do not use TypeScript in your
26
+ project, use `--parser jsx`.
@@ -1,3 +1,5 @@
1
+ "use client"
2
+ /* */
1
3
  import { jsx as e } from "react/jsx-runtime";
2
4
  import { createRemoteComponent as m } from "@remote-dom/react";
3
5
  import { RemoteFormElement as i } from "@mittwald/flow-remote-elements";
package/dist/Icons.js CHANGED
@@ -1 +1,3 @@
1
+ "use client"
2
+ /* */
1
3
  export * from "@mittwald/flow-react-components/Icons";
@@ -1 +1,3 @@
1
+ "use client"
2
+ /* */
1
3
  export * from "@mittwald/flow-react-components/controller";
package/dist/hooks.js CHANGED
@@ -1 +1,3 @@
1
+ "use client"
2
+ /* */
1
3
  export * from "@mittwald/flow-react-components/hooks";
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client"
2
+ /* */
1
3
  import { createElement as v } from "react";
2
4
  import { createRemoteComponent as i } from "@remote-dom/react";
3
5
  import { isFlowComponentName as s } from "@mittwald/flow-react-components/hooks";
@@ -1,3 +1,5 @@
1
+ "use client"
2
+ /* */
1
3
  import { jsx as m } from "react/jsx-runtime";
2
4
  import "react";
3
5
  import { Form as t } from "@mittwald/flow-react-components/react-hook-form/Form";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-react-components",
3
- "version": "0.2.0-alpha.17",
3
+ "version": "0.2.0-alpha.18",
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",
@@ -40,9 +40,9 @@
40
40
  "test:compile": "run tsc --noEmit"
41
41
  },
42
42
  "dependencies": {
43
- "@mittwald/flow-react-components": "0.2.0-alpha.17",
44
- "@mittwald/flow-remote-core": "0.2.0-alpha.17",
45
- "@mittwald/flow-remote-elements": "0.2.0-alpha.17",
43
+ "@mittwald/flow-react-components": "0.2.0-alpha.18",
44
+ "@mittwald/flow-remote-core": "0.2.0-alpha.18",
45
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.18",
46
46
  "@remote-dom/react": "^1.2.1",
47
47
  "@types/react": "^19.0.7"
48
48
  },
@@ -56,6 +56,7 @@
56
56
  "rimraf": "^6.0.1",
57
57
  "typescript": "^5.7.3",
58
58
  "vite": "^6.0.9",
59
+ "vite-plugin-banner": "^0.8.0",
59
60
  "vite-plugin-checker": "^0.8.0",
60
61
  "vite-plugin-dts": "^4.5.0",
61
62
  "vite-plugin-externalize-deps": "^0.9.0"
@@ -69,5 +70,5 @@
69
70
  "optional": true
70
71
  }
71
72
  },
72
- "gitHead": "52f8105bba0245224c02d7a982fd87b94ccd232e"
73
+ "gitHead": "ea59829e1efbe34108b74704b82644b2eb532052"
73
74
  }