This issue has been created
There are 3 updates.
 
 
Cristal / cid:jira-generated-image-avatar-c631cff6-d3ba-48f5-9a4d-50f6f235f22e CRISTAL-676 Open

Define a macro API

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f89cadd5-e45a-4f73-ba47-af0c71bfe42d Manuel Leduc created this issue on 01/Oct/25 10:48
 
Summary: Define a macro API
Issue Type: cid:jira-generated-image-avatar-c631cff6-d3ba-48f5-9a4d-50f6f235f22e Improvement
Affects Versions: 0.22
Assignee: Unassigned
Components: Macro
Created: 01/Oct/25 10:48
Priority: cid:jira-generated-image-static-major-a29b318c-0043-4d15-9dd0-759ff9013731 Major
Reporter: Manuel Leduc
Description:

Define a macro api decloupled from react of blocknote.

 
 

3 updates

 
cid:jira-generated-image-avatar-f89cadd5-e45a-4f73-ba47-af0c71bfe42d Changes by Manuel Leduc on 01/Oct/25 10:49
 
Fix Version: 0.23
Description: Define a macro api decloupled from react of blocknote.
* define the api itself, with depencies to uniast
* define the services to be able to list macro and get their definition
* use the services in blocknote initialization to load all the registered macros (which should automatically update the slash action)
* migrate the existing macros (html) to their own packages and register them in the dependency manager

 

Example of packages architecture:
{code:java}
core/macros/macros-api
core/macros/macros-service (list all available macros, get a single macro descript by its id)
core/macros/macros-default
core/messages/messages-macro
core/html/html-macro
core/toc/toc-macro{code}
Assignee: Clément Eraud