mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1043 Editor | Enhancement | Inline collection block (#3020)
* DROID-1043 data view block, isCollection param + mapping to views * DROID-1043 data view holders + design * DROID-1043 dv collection change, diff * DROID-1043 collection block icon * DROID-1043 inline block click * DROID-1043 update fun name * DROID-1043 blockDataviewIsCollectionSet event
This commit is contained in:
parent
5ee6443ebb
commit
feab2d0a3e
17 changed files with 125 additions and 33 deletions
|
@ -327,12 +327,14 @@ fun StubDataViewBlock(
|
|||
targetObjectId: Id = "",
|
||||
viewers: List<Block.Content.DataView.Viewer> = emptyList(),
|
||||
relationsIndex: List<RelationLink> = emptyList(),
|
||||
isCollection : Boolean = false
|
||||
): Block = Block(
|
||||
id = id,
|
||||
content = Block.Content.DataView(
|
||||
viewers = viewers,
|
||||
relationLinks = relationsIndex,
|
||||
targetObjectId = targetObjectId
|
||||
targetObjectId = targetObjectId,
|
||||
isCollection = isCollection
|
||||
),
|
||||
children = children,
|
||||
fields = fields,
|
||||
|
|
|
@ -6,13 +6,15 @@ fun StubDataView(
|
|||
id: Id = MockDataFactory.randomUuid(),
|
||||
views: List<DVViewer> = emptyList(),
|
||||
relationLinks: List<RelationLink> = emptyList(),
|
||||
targetObjectId: Id = MockDataFactory.randomUuid()
|
||||
targetObjectId: Id = MockDataFactory.randomUuid(),
|
||||
isCollection: Boolean = false
|
||||
): Block = Block(
|
||||
id = id,
|
||||
content = DV(
|
||||
relationLinks = relationLinks,
|
||||
viewers = views,
|
||||
targetObjectId = targetObjectId
|
||||
targetObjectId = targetObjectId,
|
||||
isCollection = isCollection
|
||||
),
|
||||
children = emptyList(),
|
||||
fields = Block.Fields.empty()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue