@onereach/idw-ui-components 0.5.0 → 0.6.0-beta.51.0

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.
package/README.md CHANGED
@@ -54,7 +54,7 @@ const skill = {
54
54
 
55
55
  Presentational feed envelope. It owns the type chip, status, author, title thumbnail, collapsed summary, engagement row, and expand/collapse. The card body stays in the `#body` slot.
56
56
 
57
- List cards use the Cockpit feed frame tokens. An unread shell is `primary-opacity-12` and a read shell is `primary-opacity-8`. The collapsed summary is `surface-1`. The open body is `surface-2` while the post is unread and `surface-1` once it is read. The type chip is `primary` / `on-primary`, and meta text is `outline`. Fullscreen has no list shell fill. Typography is `typography-caption-regular`, `typography-headline-3` (list title), `typography-headline-1` (fullscreen title), `typography-body-2-regular`, and `typography-body-2-bold` for Show more / summary choices.
57
+ List cards use the Cockpit feed frame tokens. The list shell, collapsed summary and open body all use `surface-1`, independent of read/highlighted state. The outer border and top/bottom body dividers use `outline-variant` with the existing library 1px border width in both modes. The type chip is `primary` / `on-primary`, and meta text is `outline`. Fullscreen has no list shell fill. Typography is `typography-caption-regular`, `typography-headline-3` (list title), `typography-headline-1` (fullscreen title), `typography-body-2-regular`, and `typography-body-2-bold` for Show more / summary choices.
58
58
 
59
59
  ```vue
60
60
  <script setup lang="ts">
@@ -398,3 +398,11 @@ Not in v1 (AC/Copilot extras we skipped on purpose): Refresh, Authentication, Ca
398
398
  Helpers: `cardFromMarkdown`, `cardFromHtml`, `cardFromFile`, `cardFromSkill`, `validateIdwCard`, `bindIdwCard`, `resolveCardRendererSource`.
399
399
 
400
400
  Html/file embeds reuse `FEED_EMBED_SANDBOX` and it is not configurable from the card.
401
+
402
+ ### Host expansion coordination
403
+
404
+ List cards open through the native full-card opener; collapsed Show more is omitted. Header/preview and free footer areas collapse an open card; buttons, links, inputs/editors and body content stay independent. Show less and fullscreen controls retain their roles. Keyboard activation focuses the title; explicit collapse restores the opener.
405
+
406
+ The optional expanded prop coordinates a host-owned state through update:expanded. Undefined retains independent operation. expand/collapse methods are exposed for existing comments/reactions navigation. The app FeedList defaults singleOpen to true; passing false restores independent cards.
407
+
408
+ Motion uses shared FEED_MOTION behavior settings (expand 320ms/cubic-bezier(0.22,1,0.36,1), collapse 260ms/cubic-bezier(0.4,0,0.2,1)). A stable inner layout is revealed by animating shell height; interrupted motion preserves the current frame and reduced motion skips animation. The host scroller marks data-feed-scroll and disables scroll anchoring. Opening follows only overflow; user wheel/touch/pointer input cancels following. No palette/font values or CSS token aliases are introduced.