us.polhem.skywrite.defs
Details · defs
| Kind | defs |
|---|---|
| Authority | skywrite.polhem.us |
| Commit rev | 3n2z4ouuzgg2j |
| Indexed |
#backlink
objectRecords of another collection that link to the record being edited, such as a list's items. They're found by the link, so nothing is stored in the record itself.
Properties
anyRepo
booleanInclude linking records from any account's repo, not only the repo of the record being edited.
The collection the linking records are in, such as 'app.bsky.graph.listitem'.
descending
booleanWhether the largest comes first when sorting by a field. Absent: false (smallest first).
display
stringHow the records are shown in the editor: 'list', each previewed (the default); 'chips', each by its title, in a row; 'count', just how many there are.
knownValues: list | chips | count
filters
arrayShow only linking records that match every filter.
maxLength: 8
limit
integerThe most records there should be; 1 for a single record, such as a list's starter pack. No limit when absent.
minimum: 1
Names the field in the editor and its layout. Must differ from the collection's own fields.
minLength: 1maxLength: 640maxGraphemes: 64
Field path to the link in those records, such as 'list', or 'subject.uri' for a strong reference.
maxLength: 640
How to preview these records in the editor, in place of the collection's own preview: parts left out are left out of the preview. The collection's preview applies when absent.
sortBy
stringA field of the linking records to sort them by, such as 'position'. Dates sort by time and numbers by value; when it's an integer field, the records can be put in order by dragging, which rewrites it. Absent: newest first.
maxLength: 640maxGraphemes: 64
#customColumn
objectA table column whose value is worked out for each record, like a preview field.
Properties
The column's heading, and its name in tableColumnFields. Must differ from the collection's own fields.
minLength: 1maxLength: 640maxGraphemes: 64
#fieldPath
objectA value read from the input: a field path such as 'title' or 'subject.uri', or a lookup function: getRecord() (AT URI to record), describeRepo() (handle, DID, AT URI or record to its repo's DID and handle), getBskyProfile() (handle, DID, AT URI or record to that account's Bluesky profile record), getUri() (record to its AT URI) getRkey() (record to its record key) or getDef() (lexicon path such as 'community.lexicon.calendar.rsvp#going' to that definition's description). A blob read from a record becomes its URL.
Properties
Field path or lookup function name.
#fieldTemplate
objectA value rendered from a Mustache template. The template can use the record's fields, plus any variables defined in vars.
Properties
Mustache template, such as '{{name}} ({{slug}})'.
vars
arrayExtra template variables, each computed from the record.
#previewFields
objectWhich parts of a record to show when previewing it in a list.
#quickCompose
objectWhat a Quick Compose box asks for when writing a new record in a collection. Taken whole: with these settings saved, nothing is guessed from the lexicon. Required properties the box can't fill in itself are always asked for.
Properties
defaults
unknownValues the box starts with, by field name, for fields it asks for: any value the field can hold, such as a document's 'site' or a post's 'tags'.
fields
arrayThe fields the box asks for, taken from the collection's editor fields. They're shown in the order the editor has them. The text goes in the first rich text field (or text field such as 'text') among them, and a field such as 'title' is the title.
maxLength: 64
maxLength: 640
#reference
objectA field of the record that links to records of one collection.
Properties
The collection the linked records are in.
The record's field holding the link: an AT URI, or a strong reference.
maxLength: 640
#richText
objectText written in one of the record's fields and edited with a rich text editor, which fills in other fields from it as it's written: a plain text copy, Bluesky-style facets, a short summary.
Properties
The field written in, such as 'text' or 'content'. Names the rich text field in the editor and its layout.
maxLength: 640
How it's written: 'text', plain text whose mentions, links and hashtags are facets (as in a Bluesky post: give it a 'facets' output), or 'markdown'.
knownValues: text | markdown
markdownType
stringFor Markdown: how it's saved, as text, as an at.markpub.markdown object, or as the blocks of a Leaflet, pckt or Offprint document. Absent: text if the lexicon makes the field a string, else at.markpub.markdown.
knownValues: text | at.markpub.markdown | pub.leaflet.content | blog.pckt.content | app.offprint.content
outputs
array#richTextOutput
objectA field a rich text field fills in from what's written.
Properties
The field to fill in.
maxLength: 640
What goes in it: 'plainText', the text without its formatting; 'facets', the facets of the text (of the plain text copy, for Markdown), as app.bsky.richtext.facet or pub.leaflet.richtext.facet, whichever the field holds; 'summary', the plain text cut short.
knownValues: plainText | facets | summary
maxLength
integerFor a summary, the most characters it has. Absent: 300, or the field's own limit.
minimum: 1
#templateVar
objectA named template variable and how to compute its value.
Properties
Variable name used in the template.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A table column whose value is worked out for each record, like a preview field.
-
A record containing user settings for how to manage a collection in Skywrite.
-
A record containing user settings for how to manage a collection in Skywrite.
-
us.polhem.skywrite.widget
recordA box on Skywrite's dashboard: what it shows, and its settings. Skywrite's built-in widgets are records in skywrite.polhem.us's repo; widgets someone adds are records in their own repo. The dashboard in us.polhem.skywrite.settings places widgets by their AT URIs.