@genesislcap/foundation-layout 14.418.2 → 14.419.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.
@@ -0,0 +1,77 @@
1
+ /**
2
+ * AUTO-GENERATED FILE - DO NOT EDIT.
3
+ * Generated from custom-elements manifest.
4
+ */
5
+
6
+ import type React from 'react';
7
+ import type { FoundationLayoutItem as FoundationLayoutItemWC } from './main/layout-item';
8
+ import type { FoundationLayout as FoundationLayoutWC } from './main/layout-main';
9
+ import type { FoundationLayoutPopoutController as FoundationLayoutPopoutControllerWC } from './main/layout-popout-controller';
10
+ import type { FoundationLayoutRegion as FoundationLayoutRegionWC } from './main/layout-region';
11
+
12
+ /** @internal Maps a web component class to its public props only.
13
+ * keyof T skips private/protected members, so this avoids the TS error
14
+ * "property may not be private or protected" on exported anonymous types. */
15
+ type PublicOf<T> = { [K in keyof T]?: T[K] };
16
+
17
+ /** @internal Safe React HTML attributes for web component wrappers.
18
+ * onChange/onInput use method signatures for bivariant parameter checking so both
19
+ * native Event and CustomEvent callbacks are accepted. */
20
+ interface HTMLWCProps extends React.AriaAttributes {
21
+ className?: string; style?: React.CSSProperties; id?: string; slot?: string;
22
+ tabIndex?: number; dir?: string; lang?: string; title?: string;
23
+ onClick?: React.MouseEventHandler<HTMLElement>;
24
+ onDoubleClick?: React.MouseEventHandler<HTMLElement>;
25
+ onContextMenu?: React.MouseEventHandler<HTMLElement>;
26
+ onMouseEnter?: React.MouseEventHandler<HTMLElement>;
27
+ onMouseLeave?: React.MouseEventHandler<HTMLElement>;
28
+ onMouseDown?: React.MouseEventHandler<HTMLElement>;
29
+ onMouseUp?: React.MouseEventHandler<HTMLElement>;
30
+ onMouseMove?: React.MouseEventHandler<HTMLElement>;
31
+ onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
32
+ onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
33
+ onFocus?: React.FocusEventHandler<HTMLElement>;
34
+ onBlur?: React.FocusEventHandler<HTMLElement>;
35
+ onScroll?: React.UIEventHandler<HTMLElement>;
36
+ onWheel?: React.WheelEventHandler<HTMLElement>;
37
+ onChange?(e: Event): void;
38
+ onInput?(e: Event): void;
39
+ }
40
+
41
+ export declare const FoundationLayoutItem: React.ForwardRefExoticComponent<
42
+ React.PropsWithChildren<
43
+ Omit<PublicOf<FoundationLayoutItemWC>, 'children' | 'style'> &
44
+ HTMLWCProps & {
45
+ }
46
+ > & React.RefAttributes<FoundationLayoutItemWC>
47
+ >;
48
+
49
+ export declare const FoundationLayout: React.ForwardRefExoticComponent<
50
+ React.PropsWithChildren<
51
+ Omit<PublicOf<FoundationLayoutWC>, 'children' | 'style'> &
52
+ HTMLWCProps & {
53
+ onFirstLoaded?: (event: CustomEvent<unknown>) => void;
54
+ onItemAdded?: (event: CustomEvent<unknown>) => void;
55
+ onItemRemoved?: (event: CustomEvent<unknown>) => void;
56
+ onItemResized?: (event: CustomEvent<unknown>) => void;
57
+ }
58
+ > & React.RefAttributes<FoundationLayoutWC>
59
+ >;
60
+
61
+ export declare const FoundationLayoutPopoutController: React.ForwardRefExoticComponent<
62
+ React.PropsWithChildren<
63
+ Omit<PublicOf<FoundationLayoutPopoutControllerWC>, 'children' | 'style'> &
64
+ HTMLWCProps & {
65
+ }
66
+ > & React.RefAttributes<FoundationLayoutPopoutControllerWC>
67
+ >;
68
+
69
+ export declare const FoundationLayoutRegion: React.ForwardRefExoticComponent<
70
+ React.PropsWithChildren<
71
+ Omit<PublicOf<FoundationLayoutRegionWC>, 'children' | 'style'> &
72
+ HTMLWCProps & {
73
+ }
74
+ > & React.RefAttributes<FoundationLayoutRegionWC>
75
+ >;
76
+
77
+ export {};
package/dist/react.cjs ADDED
@@ -0,0 +1,37 @@
1
+ /**
2
+ * AUTO-GENERATED FILE - DO NOT EDIT.
3
+ * Generated from custom-elements manifest.
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
9
+ const React = require('react');
10
+ const { FoundationLayoutItem: FoundationLayoutItemWC } = require('./esm/main/layout-item.js');
11
+ const { FoundationLayout: FoundationLayoutWC } = require('./esm/main/layout-main.js');
12
+ const { FoundationLayoutPopoutController: FoundationLayoutPopoutControllerWC } = require('./esm/main/layout-popout-controller.js');
13
+ const { FoundationLayoutRegion: FoundationLayoutRegionWC } = require('./esm/main/layout-region.js');
14
+
15
+ const { wrap } = provideReactWrapper(React);
16
+
17
+ const FoundationLayoutItem = wrap(FoundationLayoutItemWC);
18
+
19
+ const FoundationLayout = wrap(FoundationLayoutWC, {
20
+ events: {
21
+ onFirstLoaded: 'first-loaded',
22
+ onItemAdded: 'item-added',
23
+ onItemRemoved: 'item-removed',
24
+ onItemResized: 'item-resized',
25
+ },
26
+ });
27
+
28
+ const FoundationLayoutPopoutController = wrap(FoundationLayoutPopoutControllerWC);
29
+
30
+ const FoundationLayoutRegion = wrap(FoundationLayoutRegionWC);
31
+
32
+ module.exports = {
33
+ FoundationLayoutItem,
34
+ FoundationLayout,
35
+ FoundationLayoutPopoutController,
36
+ FoundationLayoutRegion,
37
+ };
package/dist/react.mjs ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * AUTO-GENERATED FILE - DO NOT EDIT.
3
+ * Generated from custom-elements manifest.
4
+ */
5
+
6
+ import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
7
+ import React from 'react';
8
+ import { FoundationLayoutItem as FoundationLayoutItemWC } from './esm/main/layout-item.js';
9
+ import { FoundationLayout as FoundationLayoutWC } from './esm/main/layout-main.js';
10
+ import { FoundationLayoutPopoutController as FoundationLayoutPopoutControllerWC } from './esm/main/layout-popout-controller.js';
11
+ import { FoundationLayoutRegion as FoundationLayoutRegionWC } from './esm/main/layout-region.js';
12
+
13
+ const { wrap } = provideReactWrapper(React);
14
+
15
+ export const FoundationLayoutItem = wrap(FoundationLayoutItemWC);
16
+
17
+ export const FoundationLayout = wrap(FoundationLayoutWC, {
18
+ events: {
19
+ onFirstLoaded: 'first-loaded',
20
+ onItemAdded: 'item-added',
21
+ onItemRemoved: 'item-removed',
22
+ onItemResized: 'item-resized',
23
+ },
24
+ });
25
+
26
+ export const FoundationLayoutPopoutController = wrap(FoundationLayoutPopoutControllerWC);
27
+
28
+ export const FoundationLayoutRegion = wrap(FoundationLayoutRegionWC);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-layout",
3
3
  "description": "Genesis Foundation UI App Layout",
4
- "version": "14.418.2",
4
+ "version": "14.419.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-layout.d.ts",
@@ -38,22 +38,22 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.418.2",
42
- "@genesislcap/genx": "14.418.2",
43
- "@genesislcap/rollup-builder": "14.418.2",
44
- "@genesislcap/ts-builder": "14.418.2",
45
- "@genesislcap/uvu-playwright-builder": "14.418.2",
46
- "@genesislcap/vite-builder": "14.418.2",
47
- "@genesislcap/webpack-builder": "14.418.2"
41
+ "@genesislcap/foundation-testing": "14.419.1",
42
+ "@genesislcap/genx": "14.419.1",
43
+ "@genesislcap/rollup-builder": "14.419.1",
44
+ "@genesislcap/ts-builder": "14.419.1",
45
+ "@genesislcap/uvu-playwright-builder": "14.419.1",
46
+ "@genesislcap/vite-builder": "14.419.1",
47
+ "@genesislcap/webpack-builder": "14.419.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "@genesis-community/golden-layout": "^2.11.0",
51
- "@genesislcap/foundation-broadcast-channel": "14.418.2",
52
- "@genesislcap/foundation-comms": "14.418.2",
53
- "@genesislcap/foundation-events": "14.418.2",
54
- "@genesislcap/foundation-logger": "14.418.2",
55
- "@genesislcap/foundation-ui": "14.418.2",
56
- "@genesislcap/foundation-utils": "14.418.2",
51
+ "@genesislcap/foundation-broadcast-channel": "14.419.1",
52
+ "@genesislcap/foundation-comms": "14.419.1",
53
+ "@genesislcap/foundation-events": "14.419.1",
54
+ "@genesislcap/foundation-logger": "14.419.1",
55
+ "@genesislcap/foundation-ui": "14.419.1",
56
+ "@genesislcap/foundation-utils": "14.419.1",
57
57
  "@microsoft/fast-components": "2.30.6",
58
58
  "@microsoft/fast-element": "1.14.0",
59
59
  "@microsoft/fast-foundation": "2.50.0"
@@ -67,5 +67,5 @@
67
67
  "access": "public"
68
68
  },
69
69
  "customElements": "dist/custom-elements.json",
70
- "gitHead": "ae9a9252a0ca0d35759886db9b502921e3a3e831"
70
+ "gitHead": "e4880f9a62bd7ebb0a0e4798c8dfdd98de5c6e14"
71
71
  }