Skip to content

v2.2.1

Latest

Choose a tag to compare

@tomgould tomgould released this 20 Nov 10:45

Added

  • Component::setAdditions() takes ComponentLink objects, making the whole component tappable, serialized as additions. Apple News Format allows it on Photo, Image, Figure, Portrait, Logo, ArticleThumbnail, ArticleLink, ReplicaAdvertisement and the containers (Container, Aside, Chapter, Header, Section). Other additions, or the call on any other non-text component, throw InvalidArgumentException

Changed

  • TextComponent::setAdditions() also takes AdditionInterface objects such as LinkAddition, stored serialized. Arrays are kept as given, and the JSON output is unchanged