@lumx/core 4.19.1-alpha.6 → 4.19.1-alpha.7
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.
|
@@ -93,6 +93,11 @@ export interface ComboboxHandle {
|
|
|
93
93
|
destroy(): void;
|
|
94
94
|
/** Subscribe to a combobox event. Returns an unsubscribe function. */
|
|
95
95
|
subscribe<K extends keyof ComboboxEventMap>(event: K, callback: (value: ComboboxEventMap[K]) => void): () => void;
|
|
96
|
+
/**
|
|
97
|
+
* Read the last known value of an event synchronously, for pull-based subscribers such as
|
|
98
|
+
* React's `useSyncExternalStore`. Returns `undefined` until the event has fired at least once.
|
|
99
|
+
*/
|
|
100
|
+
getSnapshot<K extends keyof ComboboxEventMap>(event: K): ComboboxEventMap[K] | undefined;
|
|
96
101
|
/** The current trigger element (may be null before registration). */
|
|
97
102
|
readonly trigger: HTMLInputElement | HTMLButtonElement | null;
|
|
98
103
|
/** The current listbox/grid element (may be null before registration). */
|
|
@@ -4,6 +4,8 @@ export interface BaseLightboxProps extends HasClassName, HasTheme, Pick<AriaAttr
|
|
|
4
4
|
isOpen?: boolean;
|
|
5
5
|
/** Whether to keep the dialog open on clickaway or escape press. */
|
|
6
6
|
preventAutoClose?: boolean;
|
|
7
|
+
/** Whether to keep the dialog open on clickaway (overridden by `preventAutoClose`). */
|
|
8
|
+
preventCloseOnClick?: boolean;
|
|
7
9
|
/** Z-axis position. */
|
|
8
10
|
zIndex?: number;
|
|
9
11
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/dom": "^1.7.5",
|
|
10
|
-
"@lumx/icons": "^4.19.1-alpha.
|
|
10
|
+
"@lumx/icons": "^4.19.1-alpha.7",
|
|
11
11
|
"classnames": "^2.3.2",
|
|
12
12
|
"focus-visible": "^5.0.2",
|
|
13
13
|
"lodash": "4.18.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"version": "4.19.1-alpha.
|
|
69
|
+
"version": "4.19.1-alpha.7",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|