Skip to content

Commit

Permalink
feat(json-crdt-extensions): 🎸 add more slice types
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Dec 9, 2024
1 parent e3f407a commit ee4081b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/json-crdt-extensions/peritext/slice/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ export const enum SliceTypeCon {
bg = -18, // <span style="background: ...">
kbd = -19, // <kbd>
hidden = -20, // <span style="color: transparent; background: black">
footnote = -21, // <sup> or <a> with href="#footnote-..." and title="Footnote ..."
ref = -22, // <a> with href="#ref-..." and title="Reference ..." (Reference to some element in the document)
iaside = -23, // Inline <aside>
iembed = -24, // inline embed (any media, dropdown, Google Docs-like chips: date, person, file, etc.)
bookmark = -25, // UI for creating a link to this slice
q = -21, // <q> (inline quote)
cite = -22, // <cite> (inline citation)
footnote = -23, // <sup> or <a> with href="#footnote-..." and title="Footnote ..."
ref = -24, // <a> with href="#ref-..." and title="Reference ..." (Reference to some element in the document)
iaside = -25, // Inline <aside>
iembed = -26, // inline embed (any media, dropdown, Google Docs-like chips: date, person, file, etc.)
bookmark = -27, // UI for creating a link to this slice
}

/**
Expand Down

0 comments on commit ee4081b

Please sign in to comment.