Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class GistBlock(EmbedBlock):
_type = "gist"
class DriveBlock(EmbedBlock):
_type = "drive"
class FigmaBlock(EmbedBlock):
_type = "figma"
class LoomBlock(EmbedBlock):
_type = "loom"
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
_type = "codepen"
class MapsBlock(EmbedBlock):
class DriveBlock(EmbedBlock):
_type = "drive"
class FigmaBlock(EmbedBlock):
_type = "figma"
class LoomBlock(EmbedBlock):
_type = "loom"
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
_type = "codepen"
class MapsBlock(EmbedBlock):
_type = "maps"
class InvisionBlock(EmbedBlock):
class TweetBlock(EmbedBlock):
_type = "tweet"
class GistBlock(EmbedBlock):
_type = "gist"
class DriveBlock(EmbedBlock):
_type = "drive"
class FigmaBlock(EmbedBlock):
_type = "figma"
class LoomBlock(EmbedBlock):
_type = "loom"
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
)
_type = "collection_view_page"
class FramerBlock(EmbedBlock):
_type = "framer"
class TweetBlock(EmbedBlock):
_type = "tweet"
class GistBlock(EmbedBlock):
_type = "gist"
class DriveBlock(EmbedBlock):
_type = "drive"
class FigmaBlock(EmbedBlock):
_type = "figma"
class LoomBlock(EmbedBlock):
icon = field_map(
"format.page_icon",
api_to_python=add_signed_prefix_as_needed,
python_to_api=remove_signed_prefix_as_needed,
)
_type = "collection_view_page"
class FramerBlock(EmbedBlock):
_type = "framer"
class TweetBlock(EmbedBlock):
_type = "tweet"
class GistBlock(EmbedBlock):
_type = "gist"
class DriveBlock(EmbedBlock):
_type = "drive"
class FigmaBlock(EmbedBlock):
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
_type = "codepen"
class MapsBlock(EmbedBlock):
_type = "maps"
class InvisionBlock(EmbedBlock):
_type = "invision"
class CalloutBlock(BasicBlock):
icon = field_map("format.page_icon")
_type = "callout"
BLOCK_TYPES = {
cls._type: cls
for cls in locals().values()
if type(cls) == type and issubclass(cls, Block) and hasattr(cls, "_type")
}
class LoomBlock(EmbedBlock):
_type = "loom"
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
_type = "codepen"
class MapsBlock(EmbedBlock):
_type = "maps"
class InvisionBlock(EmbedBlock):
_type = "invision"
class CalloutBlock(BasicBlock):
icon = field_map("format.page_icon")
_type = "callout"
class AudioBlock(EmbedOrUploadBlock):
_type = "audio"
class PDFBlock(EmbedOrUploadBlock):
_type = "pdf"
class ImageBlock(EmbedOrUploadBlock):
_type = "image"
class BookmarkBlock(EmbedBlock):
_type = "bookmark"
bookmark_cover = field_map("format.bookmark_cover")
bookmark_icon = field_map("format.bookmark_icon")
description = property_map("description")
link = property_map("link")
title = property_map("title")
def set_new_link(self, url):
self._client.post("setBookmarkMetadata", {"blockId": self.id, "url": url})
self.refresh()
class LinkToCollectionBlock(MediaBlock):
time.sleep(3)
return view
class CollectionViewPageBlock(CollectionViewBlock):
icon = field_map(
"format.page_icon",
api_to_python=add_signed_prefix_as_needed,
python_to_api=remove_signed_prefix_as_needed,
)
_type = "collection_view_page"
class FramerBlock(EmbedBlock):
_type = "framer"
class TweetBlock(EmbedBlock):
_type = "tweet"
class GistBlock(EmbedBlock):
_type = "gist"
class DriveBlock(EmbedBlock):
class FigmaBlock(EmbedBlock):
_type = "figma"
class LoomBlock(EmbedBlock):
_type = "loom"
class TypeformBlock(EmbedBlock):
_type = "typeform"
class CodepenBlock(EmbedBlock):
_type = "codepen"
class MapsBlock(EmbedBlock):
_type = "maps"
class InvisionBlock(EmbedBlock):
_type = "invision"
class CalloutBlock(BasicBlock):