@genesislcap/foundation-utils 14.461.0 → 14.461.2-GENC-1346.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.
@@ -450,7 +450,7 @@
450
450
  },
451
451
  {
452
452
  "kind": "javascript-module",
453
- "path": "src/decorators/index.ts",
453
+ "path": "src/directives/index.ts",
454
454
  "declarations": [],
455
455
  "exports": [
456
456
  {
@@ -458,45 +458,15 @@
458
458
  "name": "*",
459
459
  "declaration": {
460
460
  "name": "*",
461
- "package": "./renderOnChange"
461
+ "package": "./sync"
462
462
  }
463
- }
464
- ]
465
- },
466
- {
467
- "kind": "javascript-module",
468
- "path": "src/decorators/renderOnChange.ts",
469
- "declarations": [
470
- {
471
- "kind": "function",
472
- "name": "renderOnChange",
473
- "parameters": [
474
- {
475
- "name": "target",
476
- "type": {
477
- "text": "FASTElement & { render(): void }"
478
- },
479
- "description": "The target to define the property change handler on."
480
- },
481
- {
482
- "name": "name",
483
- "type": {
484
- "text": "string"
485
- },
486
- "description": "The property name."
487
- }
488
- ],
489
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
490
- "privacy": "public"
491
- }
492
- ],
493
- "exports": [
463
+ },
494
464
  {
495
465
  "kind": "js",
496
- "name": "renderOnChange",
466
+ "name": "*",
497
467
  "declaration": {
498
- "name": "renderOnChange",
499
- "module": "src/decorators/renderOnChange.ts"
468
+ "name": "*",
469
+ "package": "./when-else"
500
470
  }
501
471
  }
502
472
  ]
@@ -705,7 +675,7 @@
705
675
  },
706
676
  {
707
677
  "kind": "javascript-module",
708
- "path": "src/directives/index.ts",
678
+ "path": "src/encoding/index.ts",
709
679
  "declarations": [],
710
680
  "exports": [
711
681
  {
@@ -713,15 +683,7 @@
713
683
  "name": "*",
714
684
  "declaration": {
715
685
  "name": "*",
716
- "package": "./sync"
717
- }
718
- },
719
- {
720
- "kind": "js",
721
- "name": "*",
722
- "declaration": {
723
- "name": "*",
724
- "package": "./when-else"
686
+ "package": "./base64"
725
687
  }
726
688
  }
727
689
  ]
@@ -1203,7 +1165,7 @@
1203
1165
  },
1204
1166
  {
1205
1167
  "kind": "javascript-module",
1206
- "path": "src/encoding/index.ts",
1168
+ "path": "src/decorators/index.ts",
1207
1169
  "declarations": [],
1208
1170
  "exports": [
1209
1171
  {
@@ -1211,7 +1173,45 @@
1211
1173
  "name": "*",
1212
1174
  "declaration": {
1213
1175
  "name": "*",
1214
- "package": "./base64"
1176
+ "package": "./renderOnChange"
1177
+ }
1178
+ }
1179
+ ]
1180
+ },
1181
+ {
1182
+ "kind": "javascript-module",
1183
+ "path": "src/decorators/renderOnChange.ts",
1184
+ "declarations": [
1185
+ {
1186
+ "kind": "function",
1187
+ "name": "renderOnChange",
1188
+ "parameters": [
1189
+ {
1190
+ "name": "target",
1191
+ "type": {
1192
+ "text": "FASTElement & { render(): void }"
1193
+ },
1194
+ "description": "The target to define the property change handler on."
1195
+ },
1196
+ {
1197
+ "name": "name",
1198
+ "type": {
1199
+ "text": "string"
1200
+ },
1201
+ "description": "The property name."
1202
+ }
1203
+ ],
1204
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
+ "privacy": "public"
1206
+ }
1207
+ ],
1208
+ "exports": [
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "renderOnChange",
1212
+ "declaration": {
1213
+ "name": "renderOnChange",
1214
+ "module": "src/decorators/renderOnChange.ts"
1215
1215
  }
1216
1216
  }
1217
1217
  ]
@@ -0,0 +1,67 @@
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 { InactivityDialog as InactivityDialogWC } from './inactivity/inactivity-dialog';
8
+ import type { FoundationShortcutListener as FoundationShortcutListenerWC } from './shortcut-manager/shortcut-listener';
9
+ import type { SlottedStyles as SlottedStylesWC } from './styles/slotted-styles';
10
+
11
+ /** @internal Maps a web component class to its public props only.
12
+ * keyof T skips private/protected members, so this avoids the TS error
13
+ * "property may not be private or protected" on exported anonymous types. */
14
+ type PublicOf<T> = { [K in keyof T]?: T[K] };
15
+
16
+ /** @internal Safe React HTML attributes for web component wrappers.
17
+ * onChange/onInput use method signatures for bivariant parameter checking so both
18
+ * native Event and CustomEvent callbacks are accepted. */
19
+ interface HTMLWCProps extends React.AriaAttributes {
20
+ className?: string; style?: React.CSSProperties; id?: string; slot?: string;
21
+ tabIndex?: number; dir?: string; lang?: string; title?: string;
22
+ onClick?: React.MouseEventHandler<HTMLElement>;
23
+ onDoubleClick?: React.MouseEventHandler<HTMLElement>;
24
+ onContextMenu?: React.MouseEventHandler<HTMLElement>;
25
+ onMouseEnter?: React.MouseEventHandler<HTMLElement>;
26
+ onMouseLeave?: React.MouseEventHandler<HTMLElement>;
27
+ onMouseDown?: React.MouseEventHandler<HTMLElement>;
28
+ onMouseUp?: React.MouseEventHandler<HTMLElement>;
29
+ onMouseMove?: React.MouseEventHandler<HTMLElement>;
30
+ onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
31
+ onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
32
+ onFocus?: React.FocusEventHandler<HTMLElement>;
33
+ onBlur?: React.FocusEventHandler<HTMLElement>;
34
+ onScroll?: React.UIEventHandler<HTMLElement>;
35
+ onWheel?: React.WheelEventHandler<HTMLElement>;
36
+ onChange?(e: Event): void;
37
+ onInput?(e: Event): void;
38
+ }
39
+
40
+ export declare const InactivityDialog: React.ForwardRefExoticComponent<
41
+ React.PropsWithChildren<
42
+ Omit<PublicOf<InactivityDialogWC>, 'children' | 'style'> &
43
+ HTMLWCProps & {
44
+ }
45
+ > & React.RefAttributes<InactivityDialogWC>
46
+ >;
47
+ export type InactivityDialogRef = InactivityDialogWC;
48
+
49
+ export declare const FoundationShortcutListener: React.ForwardRefExoticComponent<
50
+ React.PropsWithChildren<
51
+ Omit<PublicOf<FoundationShortcutListenerWC>, 'children' | 'style'> &
52
+ HTMLWCProps & {
53
+ }
54
+ > & React.RefAttributes<FoundationShortcutListenerWC>
55
+ >;
56
+ export type FoundationShortcutListenerRef = FoundationShortcutListenerWC;
57
+
58
+ export declare const SlottedStyles: React.ForwardRefExoticComponent<
59
+ React.PropsWithChildren<
60
+ Omit<PublicOf<SlottedStylesWC>, 'children' | 'style'> &
61
+ HTMLWCProps & {
62
+ }
63
+ > & React.RefAttributes<SlottedStylesWC>
64
+ >;
65
+ export type SlottedStylesRef = SlottedStylesWC;
66
+
67
+ export {};
package/dist/react.cjs ADDED
@@ -0,0 +1,32 @@
1
+ /**
2
+ * AUTO-GENERATED FILE - DO NOT EDIT.
3
+ * Generated from custom-elements manifest.
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ const React = require('react');
9
+ const { InactivityDialog: InactivityDialogWC } = require('./esm/inactivity/inactivity-dialog.js');
10
+ const { FoundationShortcutListener: FoundationShortcutListenerWC } = require('./esm/shortcut-manager/shortcut-listener.js');
11
+ const { SlottedStyles: SlottedStylesWC } = require('./esm/styles/slotted-styles.js');
12
+
13
+ const InactivityDialog = React.forwardRef(function InactivityDialog(props, ref) {
14
+ const { children, ...rest } = props;
15
+ return React.createElement(customElements.getName(InactivityDialogWC) ?? 'inactivity-dialog', { ...rest, ref }, children);
16
+ });
17
+
18
+ const FoundationShortcutListener = React.forwardRef(function FoundationShortcutListener(props, ref) {
19
+ const { children, ...rest } = props;
20
+ return React.createElement(customElements.getName(FoundationShortcutListenerWC) ?? 'foundation-shortcut-listener', { ...rest, ref }, children);
21
+ });
22
+
23
+ const SlottedStyles = React.forwardRef(function SlottedStyles(props, ref) {
24
+ const { children, ...rest } = props;
25
+ return React.createElement(customElements.getName(SlottedStylesWC) ?? 'slotted-styles', { ...rest, ref }, children);
26
+ });
27
+
28
+ module.exports = {
29
+ InactivityDialog,
30
+ FoundationShortcutListener,
31
+ SlottedStyles,
32
+ };
package/dist/react.mjs ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * AUTO-GENERATED FILE - DO NOT EDIT.
3
+ * Generated from custom-elements manifest.
4
+ */
5
+
6
+ import React from 'react';
7
+ import { InactivityDialog as InactivityDialogWC } from './esm/inactivity/inactivity-dialog.js';
8
+ import { FoundationShortcutListener as FoundationShortcutListenerWC } from './esm/shortcut-manager/shortcut-listener.js';
9
+ import { SlottedStyles as SlottedStylesWC } from './esm/styles/slotted-styles.js';
10
+
11
+ export const InactivityDialog = React.forwardRef(function InactivityDialog(props, ref) {
12
+ const { children, ...rest } = props;
13
+ return React.createElement(customElements.getName(InactivityDialogWC) ?? 'inactivity-dialog', { ...rest, ref }, children);
14
+ });
15
+
16
+ export const FoundationShortcutListener = React.forwardRef(function FoundationShortcutListener(props, ref) {
17
+ const { children, ...rest } = props;
18
+ return React.createElement(customElements.getName(FoundationShortcutListenerWC) ?? 'foundation-shortcut-listener', { ...rest, ref }, children);
19
+ });
20
+
21
+ export const SlottedStyles = React.forwardRef(function SlottedStyles(props, ref) {
22
+ const { children, ...rest } = props;
23
+ return React.createElement(customElements.getName(SlottedStylesWC) ?? 'slotted-styles', { ...rest, ref }, children);
24
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.461.0",
4
+ "version": "14.461.2-GENC-1346.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.461.0",
33
- "@genesislcap/genx": "14.461.0",
34
- "@genesislcap/rollup-builder": "14.461.0",
35
- "@genesislcap/ts-builder": "14.461.0",
36
- "@genesislcap/uvu-playwright-builder": "14.461.0",
37
- "@genesislcap/vite-builder": "14.461.0",
38
- "@genesislcap/webpack-builder": "14.461.0",
32
+ "@genesislcap/foundation-testing": "14.461.2-GENC-1346.1",
33
+ "@genesislcap/genx": "14.461.2-GENC-1346.1",
34
+ "@genesislcap/rollup-builder": "14.461.2-GENC-1346.1",
35
+ "@genesislcap/ts-builder": "14.461.2-GENC-1346.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.461.2-GENC-1346.1",
37
+ "@genesislcap/vite-builder": "14.461.2-GENC-1346.1",
38
+ "@genesislcap/webpack-builder": "14.461.2-GENC-1346.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.461.0",
43
- "@genesislcap/foundation-logger": "14.461.0",
42
+ "@genesislcap/expression-builder": "14.461.2-GENC-1346.1",
43
+ "@genesislcap/foundation-logger": "14.461.2-GENC-1346.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "d87c27bf9e91f6f5d1cf51992e7892df9434c9be"
61
+ "gitHead": "0729266a735c8d8d74192119552f0774c6038436"
62
62
  }