@mittwald/flow-remote-react-renderer 0.2.0-alpha.9 → 0.2.0-alpha.91
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/RemoteRenderer.mjs +16 -0
- package/dist/js/RemoteRenderer.mjs.map +1 -0
- package/dist/js/RemoteRendererClient.mjs +75 -0
- package/dist/js/RemoteRendererClient.mjs.map +1 -0
- package/dist/js/auto-generated/index.mjs +116 -0
- package/dist/js/auto-generated/index.mjs.map +1 -0
- package/dist/js/components/Form.mjs +22 -0
- package/dist/js/components/Form.mjs.map +1 -0
- package/dist/js/components/lib/getFormDataObject.mjs +7 -0
- package/dist/js/components/lib/getFormDataObject.mjs.map +1 -0
- package/dist/js/components.mjs +26 -0
- package/dist/js/components.mjs.map +1 -0
- package/dist/js/hooks/useIsMounted.mjs +14 -0
- package/dist/js/hooks/useIsMounted.mjs.map +1 -0
- package/dist/js/index.mjs +7 -0
- package/dist/js/index.mjs.map +1 -0
- package/dist/js/lib/createFlowRemoteComponentRenderer.mjs +36 -0
- package/dist/js/lib/createFlowRemoteComponentRenderer.mjs.map +1 -0
- package/dist/js/lib/elementFactory.mjs +19 -0
- package/dist/js/lib/elementFactory.mjs.map +1 -0
- package/dist/js/lib/mapAttributeToReactProperty.mjs +14 -0
- package/dist/js/lib/mapAttributeToReactProperty.mjs.map +1 -0
- package/dist/js/lib/propClassifiers.mjs +13 -0
- package/dist/js/lib/propClassifiers.mjs.map +1 -0
- package/dist/types/RemoteRenderer.d.ts +4 -7
- package/dist/types/RemoteRenderer.d.ts.map +1 -0
- package/dist/types/RemoteRendererClient.d.ts +9 -0
- package/dist/types/RemoteRendererClient.d.ts.map +1 -0
- package/dist/types/auto-generated/index.d.ts +102 -109
- package/dist/types/auto-generated/index.d.ts.map +1 -0
- package/dist/types/components/Form.d.ts +1 -0
- package/dist/types/components/Form.d.ts.map +1 -0
- package/dist/types/components/lib/getFormDataObject.d.ts +1 -0
- package/dist/types/components/lib/getFormDataObject.d.ts.map +1 -0
- package/dist/types/components.d.ts +108 -114
- package/dist/types/components.d.ts.map +1 -0
- package/dist/types/hooks/useIsMounted.d.ts +2 -0
- package/dist/types/hooks/useIsMounted.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/createFlowRemoteComponentRenderer.d.ts +3 -2
- package/dist/types/lib/createFlowRemoteComponentRenderer.d.ts.map +1 -0
- package/dist/types/lib/elementFactory.d.ts +4 -2
- package/dist/types/lib/elementFactory.d.ts.map +1 -0
- package/dist/types/lib/mapAttributeToReactProperty.d.ts +2 -0
- package/dist/types/lib/mapAttributeToReactProperty.d.ts.map +1 -0
- package/dist/types/lib/propClassifiers.d.ts +3 -0
- package/dist/types/lib/propClassifiers.d.ts.map +1 -0
- package/dist/types/lib/stringChildrenExtractor.d.ts +1 -0
- package/dist/types/lib/stringChildrenExtractor.d.ts.map +1 -0
- package/dist/types/lib/types.d.ts +2 -1
- package/dist/types/lib/types.d.ts.map +1 -0
- package/package.json +34 -29
- package/dist/index.js +0 -770
- package/dist/polyfill.js +0 -2
- package/dist/types/lib/mapReactElementAttributes.d.ts +0 -6
- package/dist/types/lib/possibleStandardNames.d.ts +0 -495
- package/dist/types/polyfill.d.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RemoteComponentRendererProps } from '@mfalkenberg/remote-dom-react/host';
|
|
1
2
|
import { ComponentType } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
export declare const createFlowRemoteComponentRenderer: <P extends object>(Component: ComponentType<P>) => ComponentType<RemoteComponentRendererProps>;
|
|
4
|
+
//# sourceMappingURL=createFlowRemoteComponentRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFlowRemoteComponentRenderer.d.ts","sourceRoot":"","sources":["../../../src/lib/createFlowRemoteComponentRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAGvF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAkB3C,eAAO,MAAM,iCAAiC,GAAI,CAAC,SAAS,MAAM,EAChE,WAAW,aAAa,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,4BAA4B,CAS5C,CAAC"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const elementFactory: <E extends keyof ElementTagNameMap>(element: E) => (props:
|
|
1
|
+
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
|
|
2
|
+
export declare const elementFactory: <E extends keyof ElementTagNameMap>(element: E) => (props: Record<string, unknown>) => import('react').DOMElement<Record<string, unknown>, Element>;
|
|
3
|
+
export {};
|
|
4
|
+
//# sourceMappingURL=elementFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementFactory.d.ts","sourceRoot":"","sources":["../../../src/lib/elementFactory.ts"],"names":[],"mappings":"AAKA,KAAK,iBAAiB,GAAG,qBAAqB,GAC5C,IAAI,CACF,oBAAoB,EACpB,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,qBAAqB,CAAC,CACjE,CAAC;AAEJ,eAAO,MAAM,cAAc,GACxB,CAAC,SAAS,MAAM,iBAAiB,EAAE,SAAS,CAAC,MAC7C,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,iEAY9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapAttributeToReactProperty.d.ts","sourceRoot":"","sources":["../../../src/lib/mapAttributeToReactProperty.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,GAAI,KAAK,MAAM,WAMtD,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { EventHandler } from '@mittwald/flow-remote-core';
|
|
2
2
|
export declare const isEventProp: (name: string, value: unknown) => value is EventHandler;
|
|
3
|
+
export declare const isStyleProp: (name: string) => boolean;
|
|
4
|
+
export declare const isReactSuspendedStyle: (value: unknown) => boolean;
|
|
5
|
+
//# sourceMappingURL=propClassifiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propClassifiers.d.ts","sourceRoot":"","sources":["../../../src/lib/propClassifiers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI/D,eAAO,MAAM,WAAW,GACtB,MAAM,MAAM,EACZ,OAAO,OAAO,KACb,KAAK,IAAI,YACgD,CAAC;AAE7D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAA2B,CAAC;AAEvE,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,OAChB,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
export declare const stringChildrenExtractor: <P extends PropsWithChildren>(component: FunctionComponent<P>) => (props: PropsWithChildren<P>) => import('react').FunctionComponentElement<P>;
|
|
3
|
+
//# sourceMappingURL=stringChildrenExtractor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stringChildrenExtractor.d.ts","sourceRoot":"","sources":["../../../src/lib/stringChildrenExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAWhF,eAAO,MAAM,uBAAuB,GACjC,CAAC,SAAS,iBAAiB,EAAE,WAAW,iBAAiB,CAAC,CAAC,CAAC,MAC5D,OAAO,iBAAiB,CAAC,CAAC,CAAC,gDAqB3B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RemoteComponentRendererProps } from '@mfalkenberg/remote-dom-react/host';
|
|
1
2
|
import { ComponentType } from 'react';
|
|
2
|
-
import { RemoteComponentRendererProps } from '@remote-dom/react/host';
|
|
3
3
|
export type RemoteComponentsMap<T extends string> = Record<T, ComponentType<RemoteComponentRendererProps>>;
|
|
4
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CACxD,CAAC,EACD,aAAa,CAAC,4BAA4B,CAAC,CAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-react-renderer",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React rendering for Flow Remote Elements",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/types/index.d.ts",
|
|
11
|
-
"default": "./dist/index.
|
|
11
|
+
"default": "./dist/js/index.mjs"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
14
|
-
"types": "./dist/types/
|
|
15
|
-
"
|
|
13
|
+
"./RemoteRenderer": {
|
|
14
|
+
"types": "./dist/types/RemoteRenderer.d.ts",
|
|
15
|
+
"default": "./dist/js/RemoteRenderer.mjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
@@ -22,37 +22,42 @@
|
|
|
22
22
|
"node": ">=20.11"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "
|
|
26
|
-
"
|
|
27
|
-
"test": "",
|
|
28
|
-
"test:compile": "
|
|
25
|
+
"build": "vite build --config vite.build.config.ts",
|
|
26
|
+
"clean": "rimraf dist",
|
|
27
|
+
"test": "exit 0",
|
|
28
|
+
"test:compile": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@mittwald/flow-remote-core": "0.2.0-alpha.
|
|
33
|
-
"@mittwald/flow-remote-elements": "0.2.0-alpha.
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
31
|
+
"@mfalkenberg/remote-dom-react": "1.2.3",
|
|
32
|
+
"@mittwald/flow-remote-core": "0.2.0-alpha.91",
|
|
33
|
+
"@mittwald/flow-remote-elements": "0.2.0-alpha.91",
|
|
34
|
+
"@types/react": "^19.0.10",
|
|
35
|
+
"clsx": "^2.1.1",
|
|
36
36
|
"react-children-utilities": "^2.10.0",
|
|
37
|
-
"remeda": "^2.
|
|
37
|
+
"remeda": "^2.21.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"react
|
|
40
|
+
"@mittwald/flow-react-components": "0.2.0-alpha.91",
|
|
41
|
+
"@mittwald/typescript-config": "",
|
|
42
|
+
"@types/node": "^22.13.10",
|
|
43
|
+
"nx": "^20.5.0",
|
|
44
|
+
"prettier": "^3.5.3",
|
|
45
|
+
"react": "^19.0.0",
|
|
46
|
+
"react-dom": "^19.0.0",
|
|
46
47
|
"react-hook-form": "^7.54.2",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"vite
|
|
51
|
-
"vite-plugin-
|
|
48
|
+
"rimraf": "^6.0.1",
|
|
49
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
50
|
+
"typescript": "^5.8.2",
|
|
51
|
+
"vite": "^6.2.1",
|
|
52
|
+
"vite-plugin-banner": "^0.8.0",
|
|
53
|
+
"vite-plugin-checker": "^0.9.0",
|
|
54
|
+
"vite-plugin-dts": "^4.5.3",
|
|
55
|
+
"vite-plugin-externalize-deps": "^0.9.0"
|
|
52
56
|
},
|
|
53
57
|
"peerDependencies": {
|
|
54
|
-
"react": "
|
|
55
|
-
"react
|
|
58
|
+
"@mittwald/flow-react-components": "*",
|
|
59
|
+
"react": "^19",
|
|
60
|
+
"react-dom": "^19",
|
|
56
61
|
"react-hook-form": "*"
|
|
57
62
|
},
|
|
58
63
|
"peerDependenciesMeta": {
|
|
@@ -60,5 +65,5 @@
|
|
|
60
65
|
"optional": true
|
|
61
66
|
}
|
|
62
67
|
},
|
|
63
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5af564582b459f887e440028171d544f2faa0f39"
|
|
64
69
|
}
|