Skip to content

Releases: sevenwestmedia-labs/apple-news-format

v2.0.3

11 Apr 09:15
c1f8884
Compare
Choose a tag to compare

Patch Changes

  • #7 983c762 Thanks @shaw-t! - Update repository and homepage fields in package.json

v2.0.2

11 Apr 08:08
27f689d
Compare
Choose a tag to compare

Patch Changes

v2.0.1

11 Apr 08:39
65be97c
Compare
Choose a tag to compare

Patch Changes

v2.0.0

11 Apr 08:36
3fdf454
Compare
Choose a tag to compare

Major Changes

This should bring the typings up to date with ANF 1.26.0 in regards to the documentation supplied by Apple

Changes:

  • Added new territory property to Condition typing
  • Updated MochaDone to Mocha.Done due to deprecation
  • Marked autoPlacement and subtitle on ArticleDoucment as deprecated
  • Added fontScaling to ComponentTextStyleBase - Available in iOS 13, iPadOS 13, and macOS 10.15.
  • Added hyphenationMinimumCharactersAfter to ComponentTextStyleBase - Available in iOS 17, iPadOS 17, and macOS 14 beta release.
  • Added hyphenationMinimumCharactersBefore to ComponentTextStyleBase - Available in iOS 17, iPadOS 17, and macOS 14 beta release.
  • Added hyphenationMinimumWordLength to ComponentTextStyleBase - Available in iOS 17, iPadOS 17, and macOS 14 beta release.
  • Added hyphenationZone to ComponentTextStyleBase - Available in iOS 17, iPadOS 17, and macOS 14 beta release.
  • Updated articleIdentifier on ArticleLink to optional - If articleIdentifier is not provided, the identifier of the article is used.
  • Added "allow" as a valid value for widows on CollectionDisplay
  • Added optional caption property to Audio
  • Added optional caption property to EmbedWebVideo
  • Removed stillURL property from EmbedWebVideo
  • Added required URL property to ARKit
  • Added the following new values to SupportedFileExtensions
    • "usdz" for ARKit support
    • "webp" for images - Animated image format with the animation removed when used
  • Updated ArticleThumbnail extension to omit URL property to re-declare as deprecated
  • Updated ArticleTitle extension to omit text property to re-declare as optional
  • Marked URL, aspectRatio, fillMode, horizontalAlignment and verticalAlignment on ArticleThumbnail as deprecated
  • Updated URL property on ArticleThumbnail to optional due to deprecation
  • Added optional inlineTextStyles property to CaptionDescriptor
  • Updated Divider to extend from Component instead of ContainerComponent
  • Moved optional allowAutoplacedAds from Component to ContainerComponent
  • Fixed type property value for FormattedText to "formatted_text" instead of previous "formatted_test"
  • Updated inlineTextStyles and textStyles properties to optional for FormattedText
  • Updated conditional property on TextComponent to support ConditionalText or ConditionalText[] - previously just ConditionalText[]
  • Split ComponentAnimation into seperate interfaces
    • Created AppearAnimation
    • Created FadeInAnimation
    • Created MoveInAnimation
    • Created ScaleFadeAnimation
    • Exported new components
    • Export new union type for ComponentAnimation
  • Added new value for type property on Addition - "calendar_event"
  • Added new required properties type, rangeLength and rangeStart to LinkAddition
  • Updated @see reference for LinkAddition to point at new documentation
  • Split Scene into seperate interfaces
    • Created FadingStickyHeader
    • Created ParallaxScaleHeader
    • Exported new components
    • Export new union type for Scene
  • Added optional tocByline property to Issue
  • Added optional contentGenerationType property to Metadata
  • Split Shadow into seperate interfaces - Component shadows have greater value unit support
    • Created TextShadow
    • Created ComponentShadow
    • Exported new components
    • Added optional shadow property to ComponentStyleBase
    • Updated textShadow property on TextStyleBase to use TextShadow - previously just Shadow
    • Split Offset into seperate interfaces - Component shadow offsets have greater value unit support
      • Created TextShadowOffset
      • Created ComponentShadowOffset
  • Update ComponentStyle jsdoc to add @extends {ComponentStyleBase} - previously on ComponentStyleBase itself which seemed incorrect
  • Marked the following as deprecated
    • AdvertisementAutoPlacement
    • AutoPlacementBase
    • AutoPlacement
    • ConditionalAutoPlacement
    • AutoPlacementLayout