Operazioni sugli effetti

3 operazioni di nome effect.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.

Aggiornato il
OperationWhat it doesPermissionConfirmation
effect.listList the effect presets the editor offers, the built-in effects first, then the site's own: each a reveal (meta.reveal), transitions (one transition value in scope, base when absent) or both.site.readnone
effect.saveSave the reveal and the transition declarations of a page node as a site effect preset.site.editnone
effect.deleteDelete a site effect preset; nodes it was applied to keep their reveal and transitions.site.editdestructive

effect.list

List the effect presets the editor offers, the built-in effects first, then the site's own: each a reveal (meta.reveal), transitions (one transition value in scope, base when absent) or both. Apply one with tree.commit: set_meta with the reveal, set_style with the transitions.

permission: site.readreads onlyclass: read

Esempio di input

{}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes

Provala

yarn splash effect.list '{}' --dry-run

effect.save

Save the reveal and the transition declarations of a page node as a site effect preset. The transitions are read from scope, else from the first scope of the node that declares one; a node with neither is refused.

permission: site.editwrites: presetsclass: transactionundo: yes

Esempio di input

{
  "pageId": "6f1d2c3b-4a59-4e8d-9c7b-1a2b3c4d5e6f",
  "nodeId": "claim001",
  "label": "Soft lift",
  "scope": "s::hover"
}

Input

FieldTypeRequiredNotes
pageIdstringyesAt least 1 character.
nodeIdstringyes
labelstringyesAt least 1 character. At most 80 characters.
idstringno
scopestringno

Output

FieldTypeRequiredNotes
idstringyes
labelstringyesAt least 1 character. At most 80 characters.
revealobject | objectno
transitionsarray of objectnoAt least 1 item.
transitions[].propertystringyes
transitions[].durationstringyesAt least 1 character.
transitions[].easingstringnoAt least 1 character.
transitions[].delaystringnoAt least 1 character.
scopestringno
sourcestringyesOne of "builtin", "site".

Provala

yarn splash effect.save '{"pageId":"6f1d2c3b-4a59-4e8d-9c7b-1a2b3c4d5e6f","nodeId":"claim001","label":"Soft lift","scope":"s::hover"}' --dry-run

effect.delete

Delete a site effect preset; nodes it was applied to keep their reveal and transitions.

permission: site.editwrites: presetsclass: transactionconfirm: destructiveundo: yes

Esempio di input

{
  "effectId": "soft-lift"
}

Input

FieldTypeRequiredNotes
effectIdstringyes

Output

FieldTypeRequiredNotes
successtrueyes

Vuole confirmed: ["destructive"] sul batch, che la forma della CLI per una sola operazione non imposta: mettila in un file di batch ed esegui yarn splash apply <file> --dry-run.

Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 29edf0002cbbde1c).

Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.

Guida di Libretto

Colophon. Questa guida è un sito Libretto: 70 pagine in due lingue, 21 pagine della guida importate da Markdown e 42 pagine di riferimento generate dal registro delle operazioni. Composta in Softcore, il codice in IBM Plex Mono. La sua struttura:

/it/ Guida di Libretto /it/start Per iniziare /it/start/request-access Richiedere l'accesso /it/start/workspace Il tuo spazio di lavoro /it/start/first-site Il tuo primo sito /it/start/invite-a-client Invitare un cliente /it/start/connect-claude Connettere Claude a Libretto /it/build Costruire /it/build/first-page Costruire una pagina /it/build/layers-and-canvas Livelli e canvas /it/build/site-components Componenti del sito /it/design-system Design system /it/design-system/tokens Colori, spazi e temi /it/design-system/components Componenti e varianti /it/design-system/fonts Tipografia e font /it/motion Movimento /it/motion/scenes Scene e ricette /it/motion/image-sequences Sequenze di immagini /it/motion/reduced-motion Movimento ridotto /it/publish Pubblicazione /it/publish/languages Le lingue del sito /it/publish/versions Pubblicazione e versioni /it/publish/members-and-forms Iscritti e moduli /it/publish/domains Domini /it/publish/redirects Reindirizzamenti /it/handover Consegnare un sito al cliente /it/glossary Glossario /it/agents Agenti e API /it/agents/mcp Server MCP /it/agents/cli CLI /it/agents/batches Batch /it/agents/errors Errori e segnalazioni /it/agents/operations Operazioni /it/search Cerca