1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Editor | Nested styling for media placeholders (#2409)

This commit is contained in:
Evgenii Kozlov 2022-07-18 22:49:29 +03:00 committed by GitHub
parent b7091e85f8
commit 28c341e327
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1067 additions and 541 deletions

View file

@ -83,6 +83,29 @@ fun StubParagraph(
backgroundColor = backgroundColor
)
fun StubFile(
id: Id = MockDataFactory.randomUuid(),
children: List<Id> = emptyList(),
backgroundColor: String? = null,
hash: String = MockDataFactory.randomString(),
name: String = MockDataFactory.randomString(),
size: Long = MockDataFactory.randomLong(),
type: Block.Content.File.Type? = null,
state: Block.Content.File.State? = null
) : Block = Block(
id = id,
children = children,
fields = Block.Fields.empty(),
backgroundColor = backgroundColor,
content = Block.Content.File(
size = size,
name = name,
hash = hash,
type = type,
state = state
)
)
fun StubBulleted(
text: String = MockDataFactory.randomString(),
children: List<Id> = emptyList(),