@genesislcap/foundation-react-utils 14.431.0 → 14.432.1-FUI-2489.1

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,5 +1,4 @@
1
1
  {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../api-extractor.json"
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../api-extractor.json"
4
4
  }
5
-
@@ -1 +1 @@
1
- {"version":3,"file":"react-layout-factory.d.ts","sourceRoot":"","sources":["../../src/react-layout-factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,EAAE,EACjC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,KAAK,CAAC,EAAE,CAAC,GACR,gBAAgB,CAUlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,EAClC,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,EAChE,YAAY,EAAE,EAAE,EAChB,cAAc,CAAC,EAAE,EAAE,GAClB,gBAAgB,CAclB"}
1
+ {"version":3,"file":"react-layout-factory.d.ts","sourceRoot":"","sources":["../../src/react-layout-factory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,EAAE,EACjC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,KAAK,CAAC,EAAE,CAAC,GACR,gBAAgB,CAUlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EACvD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,EAClC,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,EAChE,YAAY,EAAE,EAAE,EAChB,cAAc,CAAC,EAAE,EAAE,GAClB,gBAAgB,CAclB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-react-utils",
3
3
  "description": "Genesis Foundation React Utils",
4
- "version": "14.431.0",
4
+ "version": "14.432.1-FUI-2489.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,23 +29,23 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.431.0",
33
- "@genesislcap/genx": "14.431.0",
34
- "@genesislcap/rollup-builder": "14.431.0",
35
- "@genesislcap/ts-builder": "14.431.0",
36
- "@genesislcap/uvu-playwright-builder": "14.431.0",
37
- "@genesislcap/vite-builder": "14.431.0",
38
- "@genesislcap/webpack-builder": "14.431.0"
32
+ "@genesislcap/foundation-testing": "14.432.1-FUI-2489.1",
33
+ "@genesislcap/genx": "14.432.1-FUI-2489.1",
34
+ "@genesislcap/rollup-builder": "14.432.1-FUI-2489.1",
35
+ "@genesislcap/ts-builder": "14.432.1-FUI-2489.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.432.1-FUI-2489.1",
37
+ "@genesislcap/vite-builder": "14.432.1-FUI-2489.1",
38
+ "@genesislcap/webpack-builder": "14.432.1-FUI-2489.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0"
43
43
  },
44
44
  "dependencies": {
45
- "@genesislcap/foundation-forms": "14.431.0",
46
- "@genesislcap/foundation-layout": "14.431.0",
47
- "@genesislcap/foundation-logger": "14.431.0",
48
- "@genesislcap/web-core": "14.431.0",
45
+ "@genesislcap/foundation-forms": "14.432.1-FUI-2489.1",
46
+ "@genesislcap/foundation-layout": "14.432.1-FUI-2489.1",
47
+ "@genesislcap/foundation-logger": "14.432.1-FUI-2489.1",
48
+ "@genesislcap/web-core": "14.432.1-FUI-2489.1",
49
49
  "@jsonforms/core": "^3.2.1",
50
50
  "@r2wc/react-to-web-component": "^2.0.2"
51
51
  },
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "4e523b6a77df321a9c70fcdf7c12a4ffcb98769a"
61
+ "gitHead": "9bae1c5f931d4787041aae3536be9493c11e6312"
62
62
  }
@@ -1,15 +1,15 @@
1
1
  import type { ComponentFactory } from '@genesislcap/foundation-layout';
2
- import { createRoot, Root } from 'react-dom/client';
3
2
  import * as React from 'react';
4
- import type { ComponentType, ReactElement } from 'react';
3
+ import type { Root } from 'react-dom/client';
4
+ import { createRoot } from 'react-dom/client';
5
5
 
6
6
  /**
7
7
  * Creates a factory function for rendering React components in layout items.
8
- *
8
+ *
9
9
  * @param Component - React component to render
10
10
  * @param props - Optional props to pass to the component
11
11
  * @returns ComponentFactory compatible with foundation-layout
12
- *
12
+ *
13
13
  * @example
14
14
  * ```tsx
15
15
  * <foundation-layout-item
@@ -21,12 +21,12 @@ import type { ComponentType, ReactElement } from 'react';
21
21
  */
22
22
  export function reactFactory<P = {}>(
23
23
  Component: React.ComponentType<P>,
24
- props?: P
24
+ props?: P,
25
25
  ): ComponentFactory {
26
26
  return (container: HTMLElement) => {
27
27
  const root: Root = createRoot(container);
28
28
  root.render(<Component {...(props || ({} as P))} />);
29
-
29
+
30
30
  // Return cleanup function
31
31
  return () => {
32
32
  root.unmount();
@@ -36,18 +36,18 @@ export function reactFactory<P = {}>(
36
36
 
37
37
  /**
38
38
  * Creates a factory function that wraps a React component with a provider (e.g., Redux Provider, Context Provider).
39
- *
39
+ *
40
40
  * @param Component - React component to render
41
41
  * @param Wrapper - Wrapper component (e.g., Redux Provider, Context Provider)
42
42
  * @param wrapperProps - Props for the wrapper component
43
43
  * @param componentProps - Optional props for the component
44
44
  * @returns ComponentFactory compatible with foundation-layout
45
- *
45
+ *
46
46
  * @example
47
47
  * ```tsx
48
48
  * import { Provider } from 'react-redux';
49
49
  * import { store } from './store';
50
- *
50
+ *
51
51
  * <foundation-layout-item
52
52
  * registration="my-component"
53
53
  * title="My Component"
@@ -64,20 +64,19 @@ export function reactFactoryWithProvider<CP = {}, WP = {}>(
64
64
  Component: React.ComponentType<CP>,
65
65
  Wrapper: React.ComponentType<WP & { children: React.ReactNode }>,
66
66
  wrapperProps: WP,
67
- componentProps?: CP
67
+ componentProps?: CP,
68
68
  ): ComponentFactory {
69
69
  return (container: HTMLElement) => {
70
70
  const root: Root = createRoot(container);
71
71
  root.render(
72
72
  <Wrapper {...wrapperProps}>
73
73
  <Component {...(componentProps || ({} as CP))} />
74
- </Wrapper>
74
+ </Wrapper>,
75
75
  );
76
-
76
+
77
77
  // Return cleanup function
78
78
  return () => {
79
79
  root.unmount();
80
80
  };
81
81
  };
82
82
  }
83
-
package/tsconfig.json CHANGED
@@ -7,8 +7,5 @@
7
7
  "jsx": "react-jsx",
8
8
  "skipLibCheck": true
9
9
  },
10
- "include": [
11
- "src/**/*"
12
- ]
10
+ "include": ["src/**/*"]
13
11
  }
14
-