@mittwald/flow-remote-react-components 0.2.0-alpha.567 → 0.2.0-alpha.568

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.
@@ -1,6 +1,7 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { version } from '../version.mjs';
4
+ import { useControlledRemoteValueProps } from '@mittwald/flow-react-components';
4
5
  import { FlowRemoteElement } from '@mittwald/flow-remote-elements';
5
6
  import { createRemoteComponent as createRemoteComponent$1 } from '@mittwald/remote-dom-react';
6
7
  import { createElement } from 'react';
@@ -8,7 +9,7 @@ import { createElement } from 'react';
8
9
  const createRemoteComponent = (name, element, options) => {
9
10
  const RemoteComponent = createRemoteComponent$1(name, element, options);
10
11
  return (props) => createElement(RemoteComponent, {
11
- ...props,
12
+ ...useControlledRemoteValueProps(props),
12
13
  [FlowRemoteElement.initializationPropertyName]: true,
13
14
  [FlowRemoteElement.versionPropertyName]: version
14
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"createRemoteComponent.mjs","sources":["../../../src/lib/createRemoteComponent.ts"],"sourcesContent":["import { version } from \"@/version\";\nimport { FlowRemoteElement } from \"@mittwald/flow-remote-elements\";\nimport { createRemoteComponent as libCreateRemoteComponent } from \"@mittwald/remote-dom-react\";\nimport { createElement } from \"react\";\n\nexport const createRemoteComponent: typeof libCreateRemoteComponent = (\n name,\n element,\n options,\n) => {\n const RemoteComponent = libCreateRemoteComponent(name, element, options);\n return (props) =>\n createElement(RemoteComponent, {\n ...props,\n [FlowRemoteElement.initializationPropertyName]: true,\n [FlowRemoteElement.versionPropertyName]: version,\n });\n};\n"],"names":["libCreateRemoteComponent"],"mappings":";;;;;AAKO,MAAM,qBAAA,GAAyD,CACpE,IAAA,EACA,OAAA,EACA,OAAA,KACG;AACH,EAAA,MAAM,eAAA,GAAkBA,uBAAA,CAAyB,IAAA,EAAM,OAAA,EAAS,OAAO,CAAA;AACvE,EAAA,OAAO,CAAC,KAAA,KACN,aAAA,CAAc,eAAA,EAAiB;AAAA,IAC7B,GAAG,KAAA;AAAA,IACH,CAAC,iBAAA,CAAkB,0BAA0B,GAAG,IAAA;AAAA,IAChD,CAAC,iBAAA,CAAkB,mBAAmB,GAAG;AAAA,GAC1C,CAAA;AACL;;;;"}
1
+ {"version":3,"file":"createRemoteComponent.mjs","sources":["../../../src/lib/createRemoteComponent.ts"],"sourcesContent":["import { version } from \"@/version\";\nimport { useControlledRemoteValueProps } from \"@mittwald/flow-react-components\";\nimport { FlowRemoteElement } from \"@mittwald/flow-remote-elements\";\nimport { createRemoteComponent as libCreateRemoteComponent } from \"@mittwald/remote-dom-react\";\nimport { createElement } from \"react\";\n\nexport const createRemoteComponent: typeof libCreateRemoteComponent = (\n name,\n element,\n options,\n) => {\n const RemoteComponent = libCreateRemoteComponent(name, element, options);\n return (props) =>\n createElement(RemoteComponent, {\n ...useControlledRemoteValueProps(props),\n [FlowRemoteElement.initializationPropertyName]: true,\n [FlowRemoteElement.versionPropertyName]: version,\n });\n};\n"],"names":["libCreateRemoteComponent"],"mappings":";;;;;;AAMO,MAAM,qBAAA,GAAyD,CACpE,IAAA,EACA,OAAA,EACA,OAAA,KACG;AACH,EAAA,MAAM,eAAA,GAAkBA,uBAAA,CAAyB,IAAA,EAAM,OAAA,EAAS,OAAO,CAAA;AACvE,EAAA,OAAO,CAAC,KAAA,KACN,aAAA,CAAc,eAAA,EAAiB;AAAA,IAC7B,GAAG,8BAA8B,KAAK,CAAA;AAAA,IACtC,CAAC,iBAAA,CAAkB,0BAA0B,GAAG,IAAA;AAAA,IAChD,CAAC,iBAAA,CAAkB,mBAAmB,GAAG;AAAA,GAC1C,CAAA;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createRemoteComponent.d.ts","sourceRoot":"","sources":["../../../src/lib/createRemoteComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAG/F,eAAO,MAAM,qBAAqB,EAAE,OAAO,wBAY1C,CAAC"}
1
+ {"version":3,"file":"createRemoteComponent.d.ts","sourceRoot":"","sources":["../../../src/lib/createRemoteComponent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAG/F,eAAO,MAAM,qBAAqB,EAAE,OAAO,wBAY1C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export declare const remoteTestServerPort = 6022;
2
- export declare const renderRemoteTest: (testName: string) => import('vitest-browser-react').RenderResult;
2
+ export declare const renderRemoteTest: (testName: string) => Promise<import('vitest-browser-react').RenderResult>;
3
3
  //# sourceMappingURL=renderRemoteTest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderRemoteTest.d.ts","sourceRoot":"","sources":["../../../src/tests/renderRemoteTest.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,gDAiBhD,CAAC"}
1
+ {"version":3,"file":"renderRemoteTest.d.ts","sourceRoot":"","sources":["../../../src/tests/renderRemoteTest.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,gBAAgB,GAAU,UAAU,MAAM,yDA4BtD,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.567",
3
+ "version": "0.2.0-alpha.568",
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.567",
40
- "@mittwald/flow-remote-core": "0.2.0-alpha.567",
41
- "@mittwald/flow-remote-elements": "0.2.0-alpha.567",
39
+ "@mittwald/flow-react-components": "0.2.0-alpha.568",
40
+ "@mittwald/flow-remote-core": "0.2.0-alpha.568",
41
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.568",
42
42
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
43
43
  "@testing-library/jest-dom": "6.9.1",
44
44
  "@types/react": "^19.2.2",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@internationalized/date": "^3.10.0",
49
- "@mittwald/ext-bridge": "0.2.0-alpha.567",
50
- "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.567",
49
+ "@mittwald/ext-bridge": "0.2.0-alpha.568",
50
+ "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.568",
51
51
  "@mittwald/typescript-config": "",
52
52
  "@testing-library/dom": "^10.4.1",
53
53
  "@testing-library/jest-dom": "^6.9.1",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@internationalized/date": "^3.10.0",
81
- "@mittwald/ext-bridge": "0.2.0-alpha.566",
81
+ "@mittwald/ext-bridge": "0.2.0-alpha.567",
82
82
  "react": "^19.2.0",
83
83
  "react-hook-form": "*"
84
84
  },
@@ -93,5 +93,5 @@
93
93
  "optional": true
94
94
  }
95
95
  },
96
- "gitHead": "fbba37c897566ad19b962ea79d6de74b921aa21a"
96
+ "gitHead": "704f128615aeefb0f5be23ae3f9e748e009b34dd"
97
97
  }