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:
parent
b7091e85f8
commit
28c341e327
33 changed files with 1067 additions and 541 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue