Package-level declarations

Types

Link copied to clipboard
class BuilderScope(tileHolderBuilderManager: TileHolderBuilderManager, eventHolderBuilderManager: EventHolderBuilderManager, serializer: MosaicSerializer, koinScope: Scope)

Scope handed as the extension receiver to every dev.catbit.mosaic.client.ui.sdui.foundation.tiles.holder.tile.TileHolderBuilder.build and dev.catbit.mosaic.client.ui.sdui.foundation.tiles.holder.event.EventHolderBuilder.build call — the toolbox a HolderBuilder uses to turn a TileSchema/EventSchema into its live Holder counterpart.

Link copied to clipboard
class TileEventScope(builderScope: BuilderScope)

Receiver passed to a TileHolder's onTileEvent/onTileGroupEvent overrides — a narrow slice of BuilderScope, exposing only the "build a new holder" helpers those two callbacks might need.

Link copied to clipboard
class UpdateScope(val serializer: MosaicSerializer, val builderScope: BuilderScope)

Receiver passed to dev.catbit.mosaic.client.ui.sdui.foundation.tiles.holder.tile.TileHolder.update/ dev.catbit.mosaic.client.ui.sdui.foundation.tiles.holder.event.EventHolder.update — bundles the two collaborators a JSON-patch merge needs: serializer to encode the current schema, merge the patch, and decode the result back into a typed instance, and builderScope to rebuild events holders when the patch changes an owner's own events list.