@cscfi/csc-ui 4.0.0-alpha.24 → 4.0.0-alpha.25

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.24",
4
+ "version": "4.0.0-alpha.25",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -8,7 +8,12 @@
8
8
  * declarations, so this composable computes the same placement with
9
9
  * `@floating-ui/dom` instead: the preferred placement, then the component's
10
10
  * fallback chain in the native order (first one that fits wins, the preferred
11
- * one when none fits), the gap as an offset. The result is a style string the
11
+ * one when none fits), the gap as an offset. When even the chosen placement
12
+ * overflows, the panel is shifted back inside the viewport on both axes, as a
13
+ * native `position-area` box is kept inside its containing block — a panel
14
+ * larger than the viewport starts at its top/left edge. The clamp applies to
15
+ * the margin box natively, so the gap pads the viewport on the placement's
16
+ * axis. The result is a style string the
12
17
  * component appends to its panel style — never written to `el.style` directly,
13
18
  * which Vue's next `:style` patch would wipe.
14
19
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui",
3
- "version": "4.0.0-alpha.24",
3
+ "version": "4.0.0-alpha.25",
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",