@mittwald/flow-remote-react-components 0.2.0-alpha.307 → 0.2.0-alpha.309
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/integrations/react-hook-form/Form/Form.mjs +14 -2
- package/dist/js/integrations/react-hook-form/Form/Form.mjs.map +1 -1
- package/dist/types/integrations/react-hook-form/Form/Form.d.ts +1 -0
- package/dist/types/integrations/react-hook-form/Form/Form.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -3,11 +3,23 @@
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import { Form as Form$1 } from '@mittwald/flow-react-components/react-hook-form';
|
|
6
|
-
import {
|
|
6
|
+
import { createRemoteComponent } from '../../../lib/createRemoteComponent.mjs';
|
|
7
|
+
import { RemoteRhfFormElement } from '@mittwald/flow-remote-elements/react-hook-form';
|
|
7
8
|
|
|
9
|
+
const BaseForm = createRemoteComponent("flr-rhf-form", RemoteRhfFormElement, {
|
|
10
|
+
eventProps: {
|
|
11
|
+
onSubmit: { event: "submit" }
|
|
12
|
+
}
|
|
13
|
+
});
|
|
8
14
|
const Form = (props) => {
|
|
9
15
|
const { ...rest } = props;
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
Form$1,
|
|
18
|
+
{
|
|
19
|
+
formComponent: (props2) => /* @__PURE__ */ jsx(BaseForm, { ...props2 }),
|
|
20
|
+
...rest
|
|
21
|
+
}
|
|
22
|
+
);
|
|
11
23
|
};
|
|
12
24
|
|
|
13
25
|
export { Form, Form as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.mjs","sources":["../../../../../src/integrations/react-hook-form/Form/Form.tsx"],"sourcesContent":["import React from \"react\";\nimport { Form as RhfForm } from \"@mittwald/flow-react-components/react-hook-form\";\nimport type { FormProps } from \"@mittwald/flow-react-components/react-hook-form\";\nimport type { FieldValues } from \"react-hook-form\";\nimport {
|
|
1
|
+
{"version":3,"file":"Form.mjs","sources":["../../../../../src/integrations/react-hook-form/Form/Form.tsx"],"sourcesContent":["import React, { type ComponentProps } from \"react\";\nimport { Form as RhfForm } from \"@mittwald/flow-react-components/react-hook-form\";\nimport type { FormProps } from \"@mittwald/flow-react-components/react-hook-form\";\nimport type { FieldValues } from \"react-hook-form\";\nimport { createRemoteComponent } from \"@/lib/createRemoteComponent\";\nexport { type RemoteRhfFormElement } from \"@mittwald/flow-remote-elements/react-hook-form\";\nimport { RemoteRhfFormElement } from \"@mittwald/flow-remote-elements/react-hook-form\";\n\nconst BaseForm = createRemoteComponent(\"flr-rhf-form\", RemoteRhfFormElement, {\n eventProps: {\n onSubmit: { event: \"submit\" } as never,\n },\n});\n\nexport const Form = <F extends FieldValues>(props: FormProps<F>) => {\n const { ...rest } = props;\n\n return (\n <RhfForm\n formComponent={(props: ComponentProps<typeof BaseForm>) => (\n <BaseForm {...props} />\n )}\n {...rest}\n />\n );\n};\n\nexport default Form;\n"],"names":["RhfForm","props"],"mappings":";;;;;;AAQA,MAAM,QAAA,GAAW,qBAAsB,CAAA,cAAA,EAAgB,oBAAsB,EAAA;AAAA,EAC3E,UAAY,EAAA;AAAA,IACV,QAAA,EAAU,EAAE,KAAA,EAAO,QAAS;AAAA;AAEhC,CAAC,CAAA;AAEY,MAAA,IAAA,GAAO,CAAwB,KAAwB,KAAA;AAClE,EAAM,MAAA,EAAE,GAAG,IAAA,EAAS,GAAA,KAAA;AAEpB,EACE,uBAAA,GAAA;AAAA,IAACA,MAAA;AAAA,IAAA;AAAA,MACC,eAAe,CAACC,MAAAA,qBACb,GAAA,CAAA,QAAA,EAAA,EAAU,GAAGA,MAAO,EAAA,CAAA;AAAA,MAEtB,GAAG;AAAA;AAAA,GACN;AAEJ;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormProps } from '@mittwald/flow-react-components/react-hook-form';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
export { type RemoteRhfFormElement } from '@mittwald/flow-remote-elements/react-hook-form';
|
|
3
4
|
export declare const Form: <F extends FieldValues>(props: FormProps<F>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default Form;
|
|
5
6
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -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;
|
|
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;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAS3F,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,EAAE,OAAO,SAAS,CAAC,CAAC,CAAC,4CAW9D,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.309",
|
|
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",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"test:unit": "exit 0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mittwald/flow-react-components": "0.2.0-alpha.
|
|
40
|
-
"@mittwald/flow-remote-core": "0.2.0-alpha.
|
|
41
|
-
"@mittwald/flow-remote-elements": "0.2.0-alpha.
|
|
39
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.309",
|
|
40
|
+
"@mittwald/flow-remote-core": "0.2.0-alpha.309",
|
|
41
|
+
"@mittwald/flow-remote-elements": "0.2.0-alpha.309",
|
|
42
42
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.10",
|
|
43
43
|
"@testing-library/jest-dom": "6.6.3",
|
|
44
44
|
"@types/react": "^19.1.6",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@internationalized/date": "^3.8.1",
|
|
49
|
-
"@mittwald/ext-bridge": "0.2.0-alpha.
|
|
50
|
-
"@mittwald/flow-remote-react-renderer": "0.2.0-alpha.
|
|
49
|
+
"@mittwald/ext-bridge": "0.2.0-alpha.309",
|
|
50
|
+
"@mittwald/flow-remote-react-renderer": "0.2.0-alpha.309",
|
|
51
51
|
"@mittwald/typescript-config": "",
|
|
52
52
|
"@testing-library/dom": "^10.4.0",
|
|
53
53
|
"@testing-library/jest-dom": "6.6.3",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"optional": true
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "cb0a2766cb0c9785e808303e54fbc4332456295a"
|
|
97
97
|
}
|