site.mochott.block

Record representing a custom block that can be inserted into articles by any user.

Repository @tokimeki.blue did:plc:4tr5dqti7nmu6g2czpthntak namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritymochott.site
Indexed

Record

record · key tid

Properties

category

string

Category for marketplace organization.

  • maxLength: 100

createdAt

requiredstring · datetime

Timestamp when the block was created.

css

requiredstring

Scoped CSS for the block. Uses {{fieldKey}} placeholders for dynamic values like colors.

  • maxLength: 50000

Short description of the block's purpose and usage.

  • maxLength: 3000
  • maxGraphemes: 300

fields

requiredarray

Field definitions for user-configurable parameters.

  • maxLength: 20
itemsref
Reference

html

requiredstring

HTML template. Uses {{fieldKey}} placeholders for dynamic values.

  • maxLength: 50000

name

requiredstring

Display name of the block.

  • maxLength: 500
  • maxGraphemes: 50

Preview thumbnail image for the block marketplace.

  • maxSize: 500000
  • accept: image/png, image/jpeg, image/webp

updatedAt

string · datetime

Timestamp when the block was last updated.

version

integer

Version number, incremented on each update.

  • minimum: 1

#fieldDef

object

Definition of a single configurable field within a custom block.

Properties

default

string

Default value for the field.

  • maxLength: 5000

Help text shown to users when editing the field.

  • maxLength: 1000
  • maxGraphemes: 200

key

requiredstring

Unique identifier for the field, used as {{key}} in HTML/CSS templates.

  • maxLength: 64

label

requiredstring

Display label shown to users in the editor.

  • maxLength: 200
  • maxGraphemes: 50

options

array

Available options for select-type fields.

  • maxLength: 50
itemsref
Reference

required

boolean

Whether this field must be filled in.

type

requiredstring

Input type for the field.

  • knownValues: text | textarea | color | image | url | number | select | boolean

#selectOption

object

A single option for a select-type field.

Properties

label

requiredstring

Display label for this option.

  • maxLength: 200
  • maxGraphemes: 50

value

requiredstring

The stored value when this option is selected.

  • maxLength: 200