@mittwald/flow-remote-elements 0.2.0-alpha.308 → 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.
@@ -0,0 +1,18 @@
1
+ import { FlowRemoteElement } from '../../../lib/FlowRemoteElement.mjs';
2
+
3
+ class RemoteRhfFormElement extends FlowRemoteElement {
4
+ static get remoteEvents() {
5
+ return {
6
+ submit: {}
7
+ };
8
+ }
9
+ static get remoteProperties() {
10
+ return {
11
+ id: {}
12
+ };
13
+ }
14
+ }
15
+ customElements.define("flr-rhf-form", RemoteRhfFormElement);
16
+
17
+ export { RemoteRhfFormElement };
18
+ //# sourceMappingURL=Form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.mjs","sources":["../../../../../src/integrations/react-hook-form/Form/Form.ts"],"sourcesContent":["import { FlowRemoteElement } from \"@/lib/FlowRemoteElement\";\n\nexport interface RemoteRhfFormElementProps {\n id?: string;\n onSubmit?: (event: never) => void;\n}\n\nexport class RemoteRhfFormElement extends FlowRemoteElement<RemoteRhfFormElementProps> {\n static override get remoteEvents() {\n return {\n submit: {},\n };\n }\n\n static override get remoteProperties() {\n return {\n id: {},\n };\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"flr-rhf-form\": InstanceType<typeof RemoteRhfFormElement>;\n }\n}\n\ncustomElements.define(\"flr-rhf-form\", RemoteRhfFormElement);\n"],"names":[],"mappings":";;AAOO,MAAM,6BAA6B,iBAA6C,CAAA;AAAA,EACrF,WAAoB,YAAe,GAAA;AACjC,IAAO,OAAA;AAAA,MACL,QAAQ;AAAC,KACX;AAAA;AACF,EAEA,WAAoB,gBAAmB,GAAA;AACrC,IAAO,OAAA;AAAA,MACL,IAAI;AAAC,KACP;AAAA;AAEJ;AAQA,cAAe,CAAA,MAAA,CAAO,gBAAgB,oBAAoB,CAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { RemoteRhfFormElement } from './integrations/react-hook-form/Form/Form.mjs';
2
+ //# sourceMappingURL=react-hook-form.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-hook-form.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { FlowRemoteElement } from '../../../lib/FlowRemoteElement';
2
+ export interface RemoteRhfFormElementProps {
3
+ id?: string;
4
+ onSubmit?: (event: never) => void;
5
+ }
6
+ export declare class RemoteRhfFormElement extends FlowRemoteElement<RemoteRhfFormElementProps> {
7
+ static get remoteEvents(): {
8
+ submit: {};
9
+ };
10
+ static get remoteProperties(): {
11
+ id: {};
12
+ };
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ "flr-rhf-form": InstanceType<typeof RemoteRhfFormElement>;
17
+ }
18
+ }
19
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/react-hook-form/Form/Form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACnC;AAED,qBAAa,oBAAqB,SAAQ,iBAAiB,CAAC,yBAAyB,CAAC;IACpF,WAAoB,YAAY;;MAI/B;IAED,WAAoB,gBAAgB;;MAInC;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC;KAC3D;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './Form/Form';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/react-hook-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-elements",
3
- "version": "0.2.0-alpha.308",
3
+ "version": "0.2.0-alpha.309",
4
4
  "type": "module",
5
5
  "description": "Flow compatible remote elements that can be used in a remote environment",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -9,6 +9,10 @@
9
9
  ".": {
10
10
  "types": "./dist/types/index.d.ts",
11
11
  "default": "./dist/js/index.mjs"
12
+ },
13
+ "./react-hook-form": {
14
+ "types": "./dist/types/integrations/react-hook-form/index.d.ts",
15
+ "import": "./dist/js/react-hook-form.mjs"
12
16
  }
13
17
  },
14
18
  "files": [
@@ -24,12 +28,12 @@
24
28
  "test:compile": "tsc --noEmit"
25
29
  },
26
30
  "dependencies": {
27
- "@mittwald/flow-remote-core": "0.2.0-alpha.308",
31
+ "@mittwald/flow-remote-core": "0.2.0-alpha.309",
28
32
  "remeda": "^2.22.3",
29
33
  "type-fest": "^4.41.0"
30
34
  },
31
35
  "devDependencies": {
32
- "@mittwald/flow-react-components": "0.2.0-alpha.308",
36
+ "@mittwald/flow-react-components": "0.2.0-alpha.309",
33
37
  "@mittwald/typescript-config": "",
34
38
  "@types/node": "^22.15.23",
35
39
  "nx": "^20.8.2",
@@ -45,5 +49,5 @@
45
49
  "peerDependencies": {
46
50
  "@mittwald/flow-react-components": "*"
47
51
  },
48
- "gitHead": "39b1f6162950303e18d03f4938e5c598e500a02e"
52
+ "gitHead": "cb0a2766cb0c9785e808303e54fbc4332456295a"
49
53
  }