@cscfi/csc-ui 4.0.0-alpha.30 → 4.0.0-alpha.31

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.30",
4
+ "version": "4.0.0-alpha.31",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Track the host's keyboard modality for the lifetime of the current effect
3
+ * scope. Returns `focusOptions`, which adds `focusVisible: true` to a script
4
+ * focus under keyboard modality and otherwise leaves the browser to decide —
5
+ * never `focusVisible: false`.
6
+ */
7
+ export declare const useKeyboardModality: (host: HTMLElement | null | undefined) => ((options?: FocusOptions) => FocusOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui",
3
- "version": "4.0.0-alpha.30",
3
+ "version": "4.0.0-alpha.31",
4
4
  "description": "Vue 3-based replacement for @cscfi/csc-ui — same custom element tag names, Vue v-model contract.",
5
5
  "type": "module",
6
6
  "main": "./dist/csc-ui.js",