This should bring the typings up to date with ANF 1.26.0 in regards to the documentation supplied by Apple
- Added new
territory
property toCondition
typing - Updated
MochaDone
toMocha.Done
due to deprecation - Marked
autoPlacement
andsubtitle
onArticleDoucment
as deprecated - Added
fontScaling
toComponentTextStyleBase
- Available in iOS 13, iPadOS 13, and macOS 10.15. - Added
hyphenationMinimumCharactersAfter
toComponentTextStyleBase
- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationMinimumCharactersBefore
toComponentTextStyleBase
- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationMinimumWordLength
toComponentTextStyleBase
- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationZone
toComponentTextStyleBase
- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Updated
articleIdentifier
onArticleLink
to optional - If articleIdentifier is not provided, the identifier of the article is used. - Added "allow" as a valid value for
widows
onCollectionDisplay
- Added optional
caption
property toAudio
- Added optional
caption
property toEmbedWebVideo
- Removed
stillURL
property fromEmbedWebVideo
- Added required
URL
property toARKit
- Added the following new values to
SupportedFileExtensions
- "usdz" for
ARKit
support - "webp" for images - Animated image format with the animation removed when used
- "usdz" for
- Updated
ArticleThumbnail
extension to omitURL
property to re-declare as deprecated - Updated
ArticleTitle
extension to omittext
property to re-declare as optional - Marked
URL
,aspectRatio
,fillMode
,horizontalAlignment
andverticalAlignment
onArticleThumbnail
as deprecated - Updated
URL
property onArticleThumbnail
to optional due to deprecation - Added optional
inlineTextStyles
property toCaptionDescriptor
- Updated
Divider
to extend fromComponent
instead ofContainerComponent
- Moved optional
allowAutoplacedAds
fromComponent
toContainerComponent
- Fixed
type
property value forFormattedText
to "formatted_text" instead of previous "formatted_test" - Updated
inlineTextStyles
andtextStyles
properties to optional forFormattedText
- Updated
conditional
property onTextComponent
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
- Created
- Added new value for
type
property onAddition
- "calendar_event" - Added new required properties
type
,rangeLength
andrangeStart
toLinkAddition
- 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
- Created
- Added optional
tocByline
property toIssue
- Added optional
contentGenerationType
property toMetadata
- Split
Shadow
into seperate interfaces - Component shadows have greater value unit support- Created
TextShadow
- Created
ComponentShadow
- Exported new components
- Added optional
shadow
property toComponentStyleBase
- Updated
textShadow
property onTextStyleBase
to useTextShadow
- previously justShadow
- Split
Offset
into seperate interfaces - Component shadow offsets have greater value unit support- Created
TextShadowOffset
- Created
ComponentShadowOffset
- Created
- Created
- Update
ComponentStyle
jsdoc to add@extends {ComponentStyleBase}
- previously onComponentStyleBase
itself which seemed incorrect - Marked the following as deprecated
AdvertisementAutoPlacement
AutoPlacementBase
AutoPlacement
ConditionalAutoPlacement
AutoPlacementLayout
This should bring the individual components more or less up to date, but what's lacking is a more thorough audit to be certain.
Some components may still not be exposed at the root level except through the global namespace Component
.
- Globally exposed component renamed
Facebook
->FacebookPost
to match Apple's spec - Updated URI validation method. Now wraps around native URL class and checks against a list of valid file extensions - these may need updating. Couldn't find a canonical list of all valid file types
- Added
ColorSchema
interface. - Removed unsupported advertisement classes:
MediumRectangleAdvertisement
andBannerAdvertisment
- Add missing fields to several A/V components
- Other minor housecleaning changes