This should bring the typings up to date with ANF 1.26.0 in regards to the documentation supplied by Apple
- Added new
territoryproperty toConditiontyping - Updated
MochaDonetoMocha.Donedue to deprecation - Marked
autoPlacementandsubtitleonArticleDoucmentas deprecated - Added
fontScalingtoComponentTextStyleBase- Available in iOS 13, iPadOS 13, and macOS 10.15. - Added
hyphenationMinimumCharactersAftertoComponentTextStyleBase- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationMinimumCharactersBeforetoComponentTextStyleBase- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationMinimumWordLengthtoComponentTextStyleBase- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Added
hyphenationZonetoComponentTextStyleBase- Available in iOS 17, iPadOS 17, and macOS 14 beta release. - Updated
articleIdentifieronArticleLinkto optional - If articleIdentifier is not provided, the identifier of the article is used. - Added "allow" as a valid value for
widowsonCollectionDisplay - Added optional
captionproperty toAudio - Added optional
captionproperty toEmbedWebVideo - Removed
stillURLproperty fromEmbedWebVideo - Added required
URLproperty toARKit - Added the following new values to
SupportedFileExtensions- "usdz" for
ARKitsupport - "webp" for images - Animated image format with the animation removed when used
- "usdz" for
- Updated
ArticleThumbnailextension to omitURLproperty to re-declare as deprecated - Updated
ArticleTitleextension to omittextproperty to re-declare as optional - Marked
URL,aspectRatio,fillMode,horizontalAlignmentandverticalAlignmentonArticleThumbnailas deprecated - Updated
URLproperty onArticleThumbnailto optional due to deprecation - Added optional
inlineTextStylesproperty toCaptionDescriptor - Updated
Dividerto extend fromComponentinstead ofContainerComponent - Moved optional
allowAutoplacedAdsfromComponenttoContainerComponent - Fixed
typeproperty value forFormattedTextto "formatted_text" instead of previous "formatted_test" - Updated
inlineTextStylesandtextStylesproperties to optional forFormattedText - Updated
conditionalproperty onTextComponentto support ConditionalText or ConditionalText[] - previously just ConditionalText[] - Split
ComponentAnimationinto seperate interfaces- Created
AppearAnimation - Created
FadeInAnimation - Created
MoveInAnimation - Created
ScaleFadeAnimation - Exported new components
- Export new union type for
ComponentAnimation
- Created
- Added new value for
typeproperty onAddition- "calendar_event" - Added new required properties
type,rangeLengthandrangeStarttoLinkAddition - Updated @see reference for
LinkAdditionto point at new documentation - Split
Sceneinto seperate interfaces- Created
FadingStickyHeader - Created
ParallaxScaleHeader - Exported new components
- Export new union type for
Scene
- Created
- Added optional
tocBylineproperty toIssue - Added optional
contentGenerationTypeproperty toMetadata - Split
Shadowinto seperate interfaces - Component shadows have greater value unit support- Created
TextShadow - Created
ComponentShadow - Exported new components
- Added optional
shadowproperty toComponentStyleBase - Updated
textShadowproperty onTextStyleBaseto useTextShadow- previously justShadow - Split
Offsetinto seperate interfaces - Component shadow offsets have greater value unit support- Created
TextShadowOffset - Created
ComponentShadowOffset
- Created
- Created
- Update
ComponentStylejsdoc to add@extends {ComponentStyleBase}- previously onComponentStyleBaseitself which seemed incorrect - Marked the following as deprecated
AdvertisementAutoPlacementAutoPlacementBaseAutoPlacementConditionalAutoPlacementAutoPlacementLayout
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->FacebookPostto 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
ColorSchemainterface. - Removed unsupported advertisement classes:
MediumRectangleAdvertisementandBannerAdvertisment - Add missing fields to several A/V components
- Other minor housecleaning changes