@vc-shell/framework 2.5.0-pr345.356b508 → 2.5.0-pr346.16b7d63

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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/usePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,GAAG,EAEH,QAAQ,EAER,SAAS,EAEV,MAAM,KAAK,CAAC;AAEb,OAAO,KAAK,EAAiC,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAerG,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,SAAS;IACjB,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;IACd,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC9E;AAmBD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAuPzG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/usePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,GAAG,EAEH,QAAQ,EAER,SAAS,EAEV,MAAM,KAAK,CAAC;AAEb,OAAO,KAAK,EAAiC,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAerG,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,SAAS;IACjB,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;IACd,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC9E;AAmBD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CA0OzG"}
@@ -22,4 +22,18 @@
22
22
  * `getTarget` is a callback because the target often does not exist yet at call time.
23
23
  */
24
24
  export declare function focusIfLoose(getTarget: () => HTMLElement | null | undefined): void;
25
+ /**
26
+ * The region focus falls back to when nothing more specific is available —
27
+ * the shell's workspace, which carries `tabindex="-1"` for exactly this.
28
+ *
29
+ * Somewhere has to own "focus has nowhere to go". A dialog that was opened
30
+ * while focus was already loose has no opener to return it to, and leaving it
31
+ * on `<body>` makes the next Tab restart at the top of the document. The
32
+ * workspace at least resumes from the content the user was working in.
33
+ *
34
+ * Looked up by selector rather than imported: this is `core/`, and the element
35
+ * belongs to `ui/`. Returns null outside the shell — a popup used standalone
36
+ * simply has no fallback, which is the pre-existing behaviour.
37
+ */
38
+ export declare function focusFallbackTarget(): HTMLElement | null;
25
39
  //# sourceMappingURL=focus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../core/utilities/focus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAWlF"}
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../core/utilities/focus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAWlF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,IAAI,WAAW,GAAG,IAAI,CAExD"}