This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function eachHardLine(delta, fn) { | |
let buffer = new Delta(); | |
new Delta(delta).eachLine((line, attributes) => { | |
buffer = buffer.concat(line); | |
if (attributes.br) { | |
buffer.insert('\n', attributes); | |
} else { | |
fn(buffer, attributes); | |
buffer = new Delta(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
entryBody(uuid: "b4c7210f-0593-4ab2-85d9-abab343fcc09") { | |
components { | |
blockquote { | |
paragraphs { | |
ops | |
} | |
} | |
grouping { | |
layout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface EntryRevision { | |
title: String | |
body: EntryBody | |
# etc | |
} | |
# A published unit of content | |
type Entry implements EntryRevision { | |
draft: EntryDraft | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# applies to published revision only | |
"slug_prefix" | |
"comments_closed" | |
"comments_auto_closed_at" | |
# applies to draft revision only / story editor metadata | |
"hidden" | |
"embargoed" | |
"publish_scheduled_for" | |
"trashed_at" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input <%= association %>InlineInput { | |
connect: <%= association %>UniqueIdInput | |
create: <%= association %>CreateInput | |
createOrUpdate: <%= association %>CreateOrUpdateInlineInput | |
# Update-only. Should these be in a separate type? | |
update: <%= association %>UpdateInlineInput | |
disconnect: Boolean | |
} |
OlderNewer