@mittwald/flow-react-components 0.2.0-alpha.74 → 0.2.0-alpha.75

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 +1 @@
1
- {"version":3,"file":"cloneElement.mjs","sources":["../../../../src/lib/react/cloneElement.ts"],"sourcesContent":["import type { Attributes, ReactElement } from \"react\";\nimport React from \"react\";\nimport type { RemoteComponentRendererProps } from \"@remote-dom/react/host\";\n\nfunction isRemoteComponentRendererProps(\n props: unknown,\n): props is RemoteComponentRendererProps {\n return (\n typeof props === \"object\" &&\n props !== null &&\n \"element\" in props &&\n \"components\" in props &&\n \"receiver\" in props\n );\n}\n\nexport const cloneElement = <P>(\n element: ReactElement<P>,\n props?: Partial<P> & Attributes,\n) => {\n const existingProps = element.props;\n if (isRemoteComponentRendererProps(existingProps)) {\n Object.assign(existingProps.element.properties, props);\n }\n return React.cloneElement(element, props);\n};\n"],"names":[],"mappings":";;AAIA,SAAS,+BACP,KACuC,EAAA;AACvC,EACE,OAAA,OAAO,UAAU,QACjB,IAAA,KAAA,KAAU,QACV,SAAa,IAAA,KAAA,IACb,YAAgB,IAAA,KAAA,IAChB,UAAc,IAAA,KAAA;AAElB;AAEa,MAAA,YAAA,GAAe,CAC1B,OAAA,EACA,KACG,KAAA;AACH,EAAA,MAAM,gBAAgB,OAAQ,CAAA,KAAA;AAC9B,EAAI,IAAA,8BAAA,CAA+B,aAAa,CAAG,EAAA;AACjD,IAAA,MAAA,CAAO,MAAO,CAAA,aAAA,CAAc,OAAQ,CAAA,UAAA,EAAY,KAAK,CAAA;AAAA;AAEvD,EAAO,OAAA,KAAA,CAAM,YAAa,CAAA,OAAA,EAAS,KAAK,CAAA;AAC1C;;;;"}
1
+ {"version":3,"file":"cloneElement.mjs","sources":["../../../../src/lib/react/cloneElement.ts"],"sourcesContent":["import type { RemoteComponentRendererProps } from \"@mfalkenberg/remote-dom-react/host\";\nimport type { Attributes, ReactElement } from \"react\";\nimport React from \"react\";\n\nfunction isRemoteComponentRendererProps(\n props: unknown,\n): props is RemoteComponentRendererProps {\n return (\n typeof props === \"object\" &&\n props !== null &&\n \"element\" in props &&\n \"components\" in props &&\n \"receiver\" in props\n );\n}\n\nexport const cloneElement = <P>(\n element: ReactElement<P>,\n props?: Partial<P> & Attributes,\n) => {\n const existingProps = element.props;\n if (isRemoteComponentRendererProps(existingProps)) {\n Object.assign(existingProps.element.properties, props);\n }\n return React.cloneElement(element, props);\n};\n"],"names":[],"mappings":";;AAIA,SAAS,+BACP,KACuC,EAAA;AACvC,EACE,OAAA,OAAO,UAAU,QACjB,IAAA,KAAA,KAAU,QACV,SAAa,IAAA,KAAA,IACb,YAAgB,IAAA,KAAA,IAChB,UAAc,IAAA,KAAA;AAElB;AAEa,MAAA,YAAA,GAAe,CAC1B,OAAA,EACA,KACG,KAAA;AACH,EAAA,MAAM,gBAAgB,OAAQ,CAAA,KAAA;AAC9B,EAAI,IAAA,8BAAA,CAA+B,aAAa,CAAG,EAAA;AACjD,IAAA,MAAA,CAAO,MAAO,CAAA,aAAA,CAAc,OAAQ,CAAA,UAAA,EAAY,KAAK,CAAA;AAAA;AAEvD,EAAO,OAAA,KAAA,CAAM,YAAa,CAAA,OAAA,EAAS,KAAK,CAAA;AAC1C;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"cloneElement.d.ts","sourceRoot":"","sources":["../../../../src/lib/react/cloneElement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,eAAO,MAAM,YAAY,GAAI,CAAC,WACnB,YAAY,CAAC,CAAC,CAAC,UAChB,OAAO,CAAC,CAAC,CAAC,GAAG,UAAU,+DAOhC,CAAC"}
1
+ {"version":3,"file":"cloneElement.d.ts","sourceRoot":"","sources":["../../../../src/lib/react/cloneElement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,eAAO,MAAM,YAAY,GAAI,CAAC,WACnB,YAAY,CAAC,CAAC,CAAC,UAChB,OAAO,CAAC,CAAC,CAAC,GAAG,UAAU,+DAOhC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.74",
3
+ "version": "0.2.0-alpha.75",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "@chakra-ui/live-region": "^2.1.0",
54
54
  "@internationalized/string-compiler": "^3.2.6",
55
- "@mittwald/react-tunnel": "0.2.0-alpha.74",
55
+ "@mittwald/react-tunnel": "0.2.0-alpha.75",
56
56
  "@mittwald/react-use-promise": "^2.6.0",
57
57
  "@react-aria/form": "^3.0.12",
58
58
  "@react-aria/utils": "^3.27.0",
@@ -90,11 +90,11 @@
90
90
  "devDependencies": {
91
91
  "@faker-js/faker": "^9.5.0",
92
92
  "@internationalized/date": "^3.7.0",
93
- "@mittwald/flow-design-tokens": "0.2.0-alpha.74",
93
+ "@mfalkenberg/remote-dom-react": "^1.2.2",
94
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.75",
94
95
  "@mittwald/react-use-promise": "^2.6.0",
95
96
  "@mittwald/typescript-config": "",
96
97
  "@nx/storybook": "^20.4.5",
97
- "@remote-dom/react": "^1.2.2",
98
98
  "@storybook/addon-a11y": "^8.5.8",
99
99
  "@storybook/addon-actions": "^8.5.8",
100
100
  "@storybook/addon-essentials": "^8.5.8",
@@ -168,5 +168,5 @@
168
168
  "optional": true
169
169
  }
170
170
  },
171
- "gitHead": "913d6dcefe47ce1c75579d91b7ae1df9c81e07da"
171
+ "gitHead": "e84a262421bc1b5beef79cbc5344287af43d0671"
172
172
  }