Check if a style is from a library
style.isFromLibrary()
Check if a style originated from a library, such as a Shared Library or AI Site Generation. This method is synchronous, so it doesn’t require await.
To read the origin as a value rather than a boolean, use the style.source property, which returns 'site' or 'library'.
Syntax
Returns
boolean
Returns true if the style originated from a library (Shared Library or AI Site Generation), and false otherwise.