@conundrum/ts 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blog_post_nav-BZQvuEof.mjs +458 -0
- package/dist/blog_post_nav-BZQvuEof.mjs.map +1 -0
- package/dist/blog_post_nav-BpUDqfSu.js +457 -0
- package/dist/blog_post_nav-BpUDqfSu.js.map +1 -0
- package/dist/codegenTypeshare.cjs +6 -0
- package/dist/codegenTypeshare.cjs.map +1 -1
- package/dist/codegenTypeshare.mjs +6 -0
- package/dist/codegenTypeshare.mjs.map +1 -1
- package/dist/framework.cjs +1 -0
- package/dist/framework.cjs.map +1 -1
- package/dist/framework.mjs +2 -1
- package/dist/server.cjs +155 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.mjs +155 -0
- package/dist/server.mjs.map +1 -0
- package/dist/src/code_gen/typeshare/conundrum.d.ts +62 -48
- package/dist/src/code_gen/typeshare/conundrum.d.ts.map +1 -1
- package/dist/src/prebuilt_ui/blog/components/blog_index.d.ts +34 -0
- package/dist/src/prebuilt_ui/blog/components/blog_index.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/components/blog_post_nav.d.ts +19 -0
- package/dist/src/prebuilt_ui/blog/components/blog_post_nav.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/components/blog_shell.d.ts +16 -0
- package/dist/src/prebuilt_ui/blog/components/blog_shell.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/components/blog_sidebar.d.ts +24 -0
- package/dist/src/prebuilt_ui/blog/components/blog_sidebar.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/components/shared.d.ts +25 -0
- package/dist/src/prebuilt_ui/blog/components/shared.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/index.d.ts +7 -2
- package/dist/src/prebuilt_ui/blog/index.d.ts.map +1 -1
- package/dist/src/prebuilt_ui/blog/index_ssr.d.ts +7 -2
- package/dist/src/prebuilt_ui/blog/index_ssr.d.ts.map +1 -1
- package/dist/src/prebuilt_ui/blog/model/blog_filter.d.ts +26 -0
- package/dist/src/prebuilt_ui/blog/model/blog_filter.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/model/blog_model.d.ts +60 -0
- package/dist/src/prebuilt_ui/blog/model/blog_model.d.ts.map +1 -0
- package/dist/src/prebuilt_ui/blog/{index_page → model}/summarize_blog_post.d.ts +10 -7
- package/dist/src/prebuilt_ui/blog/model/summarize_blog_post.d.ts.map +1 -0
- package/dist/src/server/conundrum_database.d.ts +32 -0
- package/dist/src/server/conundrum_database.d.ts.map +1 -0
- package/dist/src/server/create_search_route.d.ts +28 -0
- package/dist/src/server/create_search_route.d.ts.map +1 -0
- package/dist/src/server/index.d.ts +4 -0
- package/dist/src/server/index.d.ts.map +1 -0
- package/dist/src/server/search_conundrum.d.ts +46 -0
- package/dist/src/server/search_conundrum.d.ts.map +1 -0
- package/dist/uiBlog.cjs +19 -8
- package/dist/uiBlog.cjs.map +1 -1
- package/dist/uiBlog.mjs +144 -133
- package/dist/uiBlog.mjs.map +1 -1
- package/dist/uiBlogSSR.cjs +19 -8
- package/dist/uiBlogSSR.cjs.map +1 -1
- package/dist/uiBlogSSR.mjs +18 -7
- package/package.json +13 -5
- package/src/prebuilt_ui/blog/blog.css +709 -0
- package/dist/blog_index-DbEZPK0j.mjs +0 -223
- package/dist/blog_index-DbEZPK0j.mjs.map +0 -1
- package/dist/blog_index-Dd7fy5LS.js +0 -222
- package/dist/blog_index-Dd7fy5LS.js.map +0 -1
- package/dist/src/prebuilt_ui/blog/index_page/blog_index.d.ts +0 -63
- package/dist/src/prebuilt_ui/blog/index_page/blog_index.d.ts.map +0 -1
- package/dist/src/prebuilt_ui/blog/index_page/summarize_blog_post.d.ts.map +0 -1
- package/src/prebuilt_ui/blog/blog_index.css +0 -355
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegenTypeshare.mjs","sources":["../src/code_gen/typeshare/conundrum.ts"],"sourcesContent":["// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n/*\n Generated by typeshare 1.13.3\n*/\n\n\nexport type CSSColorVariable = string;\n\nexport type ParsedElement = \n\t| { tag: \"Heading\", content: MarkdownHeadingResult }\n\t| { tag: \"BlockQuote\", content: BlockQuoteResult }\n\t| { tag: \"BlockMath\", content: BlockMathResult }\n\t| { tag: \"InlineMath\", content: InlineMathResult }\n\t| { tag: \"Text\", content: string }\n\t| { tag: \"EscapedStr\", content: string }\n\t| { tag: \"Hr\", content: MarkdownHorizontalRule }\n\t| { tag: \"BoldText\", content: MarkdownBoldTextResult }\n\t| { tag: \"ItalicText\", content: MarkdownItalicTextResult }\n\t| { tag: \"StrikeThroughText\", content: MarkdownStrikeThroughTextResult }\n\t| { tag: \"BoldAndItalicText\", content: MarkdownBoldAndItalicTextResult }\n\t| { tag: \"ParsedCodeBlock\", content: ParsedCodeBlockVariant }\n\t| { tag: \"InlineCode\", content: InlineCodeResult }\n\t| { tag: \"MarkdownLink\", content: MarkdownLinkResult }\n\t| { tag: \"MarkdownParagraph\", content: MarkdownParagraphResult }\n\t| { tag: \"UnorderedList\", content: UnorderedListModel }\n\t| { tag: \"OrderedList\", content: OrderedListModel }\n\t| { tag: \"TaskList\", content: UnorderedTaskListModel }\n\t| { tag: \"Table\", content: MarkdownTable }\n\t| { tag: \"FootnoteAnchor\", content: FootnoteAnchor }\n\t| { tag: \"FootnoteFooter\", content: FootnoteFooter }\n\t| { tag: \"Emoji\", content: EmojiResult }\n\t| { tag: \"ReactComponentSelfClosing\", content: ReactComponentSelfClosingResult }\n\t| { tag: \"ReactComponentWithChildren\", content: ReactComponentWithChildrenResult }\n\t| { tag: \"ParsedCitation\", content: ParsedCitation }\n\t| { tag: \"ParsedOutgoingNoteLink\", content: ParsedOutgoingNoteLink }\n\t| { tag: \"Tag\", content: ParsedTag }\n\t| { tag: \"ParsedInspectionRequest\", content: ParsedInspectionRequest }\n\t| { tag: \"HrWithChildren\", content: HrWithChildrenResult }\n\t| { tag: \"Comment\", content: ConundrumCommentResult }\n\t| { tag: \"Children\", content: Children }\n\t| { tag: \"Javascript\", content: ParsedJavascriptElement }\n\t| { tag: \"Logic\", content: ConundrumLogicToken };\n\n/**\n * The representation of 'children', usually other markdown content. Unlike\n * other UI frameworks like React, `children` does not necessarily refer only\n * to the components that go within the main `children` property, but rather\n * any Conundrum content that is rendered inside of any of it's slots. A\n * `title`, a `subtitle` or a `label` might all be represented as children\n * since they accept Conundrum content and are represented in the UI, while\n * something like a `columns` property obviously is not.\n */\nexport type Children = ParsedElement[];\n\nexport type ConundrumBoolean = boolean;\n\n/**\n * ## TODO:\n * - [ ] Move this to dashu asap. Everything down to the database package is\n * depeneding on that sweet arbitrary precision.\n */\nexport type ConundrumFloat = number;\n\nexport type ConundrumString = string;\n\n/**\n * A simple wraper with some utility methods around the lightningcss struct of\n * the same name.\n */\nexport type CssColor = CL;\n\nexport type DOMId = string;\n\nexport type DatabaseId = string;\n\nexport type GridColumnProps = GridColumnsMap;\n\n/**\n * A simple utility around the heading depth, 1-6 just to add some convenience\n * methods.\n */\nexport type HeadingDepth = ConundrumInt;\n\nexport type MarkdownComponentOptionMap<T> = DashMap<MarkdownOutputVariantKey, T>;\n\nexport enum MarkdownTableAlignmentCell {\n\tDefault = \"Default\",\n\tLeft = \"Left\",\n\tRight = \"Right\",\n\tCenter = \"Center\",\n}\n\nexport type MarkdownTableAlignmentRow = MarkdownTableAlignmentCell[];\n\nexport type TableCellData = \n\t/**\n\t * Headings are made unique to allow for customizablity when the\n\t * programming layer finally makes it onboard, but they're really the same\n\t * as the body cells apart from the ablity to accept numeric content.\n\t */\n\t| { tag: \"Heading\", content: Children }\n\t| { tag: \"Conundrum\", content: Children }\n\t| { tag: \"Numeric\", content: ConundrumNumber };\n\nexport interface MarkdownTableHeadingCell {\n\tdata: TableCellData;\n}\n\nexport type MarkdownTableHeadingRow = MarkdownTableHeadingCell[];\n\nexport interface MarkdownTableCell {\n\tdata: TableCellData;\n}\n\nexport type MarkdownTableRow = MarkdownTableCell[];\n\n/**\n * A set of common styles that can be applied as a group to indicate common\n * scenarios. These will become customizable soon so you won't be limited to\n * the default color values.\n * The emphasis documentation can be viewed via the `Emphasis??` command.\n */\nexport enum Emphasis {\n\tInfo = \"info\",\n\tError = \"error\",\n\tWarn = \"warn\",\n\tSuccess = \"success\",\n\tPrimary = \"primary\",\n\tImportant = \"important\",\n\tResearch = \"research\",\n\tHighlight = \"highlight\",\n\tCard = \"card\",\n}\n\n/**\n * The `SizableOption` is a high-level, easy to use size that is independent of\n * units. Instead of relying on the units these properties typically depend on,\n * these sizes respond to where they are applied, meaning that 'large' for the\n * width of a border will be very different for 'large' for the width of an\n * image.\n */\nexport enum SizableOption {\n\tNone = \"none\",\n\tSmall = \"small\",\n\tSmedium = \"smedium\",\n\tMedium = \"medium\",\n\tLarge = \"large\",\n\tXl = \"xl\",\n\tXxl = \"xxl\",\n\tFit = \"fit\",\n\tFull = \"full\",\n}\n\n/**\n * ## SizableProps\n * @userfacing\n * \n * This is applicable to pretty much any component where changing it's size\n * makes sense. Not so much text, where you're changing the content of the text\n * itself, but rather containers, where the size is changing irrespective of\n * the content inside of it.\n * This shouldn't be confused though, since this struct contains a **lot** more\n * properties than just those that can modify _size._ You can also modify\n * color, padding, margin, borders, and more.\n */\nexport interface SizablePropsGroup {\n\t/** Hides the MathJax labels in all child components. */\n\thide_math_labels?: ConundrumBoolean;\n\t/**\n\t * 'Floats' the component to the right. This is often combined with `width`\n\t * or the `sidebar` property to create sidebar layouts.\n\t */\n\tright?: ConundrumBoolean;\n\t/**\n\t * 'Floats' the component to the left. This is often combined with `width`\n\t * or the `sidebar` property to create sidebar layouts.\n\t */\n\tleft?: ConundrumBoolean;\n\t/**\n\t * A utility property that sets a responsive max-width to create sidebar\n\t * like layouts on large screens while allowing for full-width when the\n\t * window is smaller.\n\t */\n\tsidebar?: ConundrumBoolean;\n\tcenter_self?: ConundrumBoolean;\n\t/**\n\t * Centers the content of this component's children, not the component\n\t * itself. pub center_self: Option<ConundrumBoolean>,\n\t */\n\tcenter_content?: ConundrumBoolean;\n\t/** Add a small, muted border to the object. */\n\tborder?: ConundrumBoolean;\n\t/**\n\t * Tells the container to not forcefully create a new line and instead to\n\t * flow with the rest of the content. Unless you're trying to apply\n\t * properties to text inside of a paragraph using the Container component\n\t * this is most likely not what you are looking for. If you want text to\n\t * wrap around an element, use the `right` or `left` properties paired with\n\t * a desired `width`.\n\t */\n\tinline?: ConundrumBoolean;\n\t/** Casts an inset shadow from the object. */\n\tin_shadow?: SizableOption;\n\t/** Casts a shadow from the object. */\n\tshadow?: SizableOption;\n\t/** Rounds the corners of the container. Use `rounded=\\ */\n\trounded?: SizableOption;\n\t/**\n\t * Change the text content of the container's children. Beware though, some\n\t * edge cases might not respond as expected.\n\t */\n\ttext?: SizableOption;\n\t/** Set some custom width properties to create responsive layouts. */\n\twidth?: SizableOption;\n\t/** Set some custom height properties to create responsive layouts. */\n\theight?: SizableOption;\n\t/**\n\t * The `max-width` and `max-height``properties are especially useful for\n\t * images and media.`\n\t */\n\tmax_width?: SizableOption;\n\t/**\n\t * The `max-width` and `max-height``properties are especially useful for\n\t * images and media.`\n\t */\n\tmax_height?: SizableOption;\n\t/**\n\t * Add some padding around the **outside** of an object. If you are looking\n\t * to create space on the _inside_ of an object you are looking for\n\t * `padding`.\n\t */\n\tmargin?: SizableOption;\n\tmargin_left?: SizableOption;\n\tmargin_right?: SizableOption;\n\tmargin_top?: SizableOption;\n\tmargin_bottom?: SizableOption;\n\tmargin_y?: SizableOption;\n\tmargin_x?: SizableOption;\n\t/**\n\t * Create padding on the _inside_ of an object. If you are trying to create\n\t * space _around_ an object. you are probably looking for `margin`.\n\t */\n\tpadding?: SizableOption;\n\tpadding_left?: SizableOption;\n\tpadding_right?: SizableOption;\n\tpadding_top?: SizableOption;\n\tpadding_bottom?: SizableOption;\n\tpadding_y?: SizableOption;\n\tpadding_x?: SizableOption;\n\t/**\n\t * When in Grid mode or in some other select layouts, this property create\n\t * a gap between _all_ children.\n\t */\n\tgap?: SizableOption;\n\tgap_y?: SizableOption;\n\tgap_x?: SizableOption;\n}\n\nexport interface Admonition {\n\ttitle: Children;\n\tid: DOMId;\n\tchildren: Children;\n\t/**\n\t * The title depth between 1-6 for the markdown output. This will have no\n\t * effect on mdx, jsx, or plain text output. Defaults to 5\n\t */\n\tmarkdown_title_depth?: HeadingDepth;\n\temphasis?: Emphasis;\n\tsizable?: SizablePropsGroup;\n\t/** Set to true to make the admonition foldable. Default: `false` */\n\tfoldable?: ConundrumBoolean;\n\t/**\n\t * If the admonition is `foldable`, `folded` can make the admonition folded\n\t * by default. If the `foldable` property is false, this property does\n\t * nothing.\n\t */\n\tfolded?: ConundrumBoolean;\n}\n\n/**\n * All keys must be cast to lowercase and all `_` replaced with `-`.\n * \n * I gave up and used AI 1/2 way through for these... I don't have internet and\n * I haven't written 70% of these languages... so blame a local qwen\n * model for if these are wrong, until I can get some stable time on WIFI. I\n * didn't really feel like basically emoji's was the best use of my precious\n * homeless-wifi time.:\n * \n * This defaults to python for code blocks, unless otherwise specified in the\n * applicat\n */\nexport enum SupportedCodeBlockSyntax {\n\tPlain_Text = \"Plain Text\",\n\tASP = \"ASP\",\n\tHTML_ASP = \"HTML (ASP)\",\n\tActionScript = \"ActionScript\",\n\tAppleScript = \"AppleScript\",\n\tBatch_File = \"Batch File\",\n\tNAnt_Build_File = \"NAnt Build File\",\n\tCSharp = \"C#\",\n\tCpp = \"C++\",\n\tC = \"C\",\n\tCSS = \"CSS\",\n\tClojure = \"Clojure\",\n\tD = \"D\",\n\tDMD_Output = \"DMD Output\",\n\tDiff = \"Diff\",\n\tErlang = \"Erlang\",\n\tHTML_Erlang = \"HTML (Erlang)\",\n\tGit_Attributes = \"Git Attributes\",\n\tGit_Commit = \"Git Commit\",\n\tGit_Common = \"Git Common\",\n\tGit_Config = \"Git Config\",\n\tGit_Ignore = \"Git Ignore\",\n\tGit_Link = \"Git Link\",\n\tGit_Log = \"Git Log\",\n\tGit_Mailmap = \"Git Mailmap\",\n\tGit_Rebase_Todo = \"Git Rebase Todo\",\n\tGo = \"Go\",\n\tGraphviz_DOT = \"Graphviz (DOT)\",\n\tGroovy = \"Groovy\",\n\tHTML = \"HTML\",\n\tHaskell = \"Haskell\",\n\tLiterate_Haskell = \"Literate Haskell\",\n\tJSON = \"JSON\",\n\tJava_Server_Page_JSP = \"Java Server Page (JSP)\",\n\tJava = \"Java\",\n\tJavadoc = \"Javadoc\",\n\tJava_Properties = \"Java Properties\",\n\tJavaScript = \"JavaScript\",\n\tRegular_Expressions_Javascript = \"Regular Expressions (Javascript)\",\n\tBibTeX = \"BibTeX\",\n\tLaTeX_Log = \"LaTeX Log\",\n\tLaTeX = \"LaTeX\",\n\tTeX = \"TeX\",\n\tLisp = \"Lisp\",\n\tLua = \"Lua\",\n\tMake_Output = \"Make Output\",\n\tMakefile = \"Makefile\",\n\tMarkdown = \"Markdown\",\n\tMultiMarkdown = \"MultiMarkdown\",\n\tMATLAB = \"MATLAB\",\n\tOCaml = \"OCaml\",\n\tOCamllex = \"OCamllex\",\n\tOCamlyacc = \"OCamlyacc\",\n\tCamlp4 = \"camlp4\",\n\tObjective_Cpp = \"Objective-C++\",\n\tObjective_C = \"Objective-C\",\n\tPHP_Source = \"PHP Source\",\n\tPHP = \"PHP\",\n\tRegular_Expressions_PHP = \"Regular Expressions (PHP)\",\n\tPascal = \"Pascal\",\n\tPerl = \"Perl\",\n\tPython = \"Python\",\n\tRegular_Expressions_Python = \"Regular Expressions (Python)\",\n\tR_Console = \"R Console\",\n\tR = \"R\",\n\tRd_R_Documentation = \"Rd (R Documentation)\",\n\tHTML_Rails = \"HTML (Rails)\",\n\tJavaScript_Rails = \"JavaScript (Rails)\",\n\tRuby_Haml = \"Ruby Haml\",\n\tRuby_on_Rails = \"Ruby on Rails\",\n\tSQL_Rails = \"SQL (Rails)\",\n\tRegular_Expression = \"Regular Expression\",\n\tReStructuredText = \"reStructuredText\",\n\tRuby = \"Ruby\",\n\tCargo_Build_Results = \"Cargo Build Results\",\n\tRust = \"Rust\",\n\tSQL = \"SQL\",\n\tScala = \"Scala\",\n\tBourne_Again_Shell_bash = \"Bourne Again Shell (bash)\",\n\tShell_Unix_Generic = \"Shell-Unix-Generic\",\n\tCommands_builtin_shell_bash = \"commands-builtin-shell-bash\",\n\tHTML_Tcl = \"HTML (Tcl)\",\n\tTcl = \"Tcl\",\n\tTextile = \"Textile\",\n\tXML = \"XML\",\n\tYAML = \"YAML\",\n\tAWK = \"AWK\",\n\tAda = \"Ada\",\n\tApache_Conf = \"Apache Conf\",\n\tAsciiDoc_Asciidoctor = \"AsciiDoc (Asciidoctor)\",\n\tARM_Assembly = \"ARM Assembly\",\n\tAssembly_x86_64 = \"Assembly (x86_64)\",\n\tCMake_C_Header = \"CMake C Header\",\n\tCMake_Cpp_Header = \"CMake C++ Header\",\n\tCMake = \"CMake\",\n\tCMakeCache = \"CMakeCache\",\n\tCMakeCommands = \"CMakeCommands\",\n\tComma_Separated_Values = \"Comma Separated Values\",\n\tCabal = \"Cabal\",\n\tCoffeeScript = \"CoffeeScript\",\n\tCpuInfo = \"CpuInfo\",\n\tCrontab = \"Crontab\",\n\tCrystal = \"Crystal\",\n\tDart = \"Dart\",\n\tDockerfile = \"Dockerfile\",\n\tDotENV = \"DotENV\",\n\tElixir = \"Elixir\",\n\tHTML_EEx = \"HTML (EEx)\",\n\tRegular_Expressions_Elixir = \"Regular Expressions (Elixir)\",\n\tElm_Compile_Messages = \"Elm Compile Messages\",\n\tElm_Documentation = \"Elm Documentation\",\n\tElm = \"Elm\",\n\tEmail = \"Email\",\n\tFSharp = \"F#\",\n\tFish = \"Fish\",\n\tFortran_Fixed_Form = \"Fortran (Fixed Form)\",\n\tFortran_Modern = \"Fortran (Modern)\",\n\tFortran_Namelist = \"Fortran Namelist\",\n\tGFortran_Build_Results = \"GFortran Build Results\",\n\tOpenMP_Fortran = \"OpenMP (Fortran)\",\n\tFstab = \"fstab\",\n\tGLSL = \"GLSL\",\n\tGraphQL = \"GraphQL\",\n\tGroff_troff = \"Groff/troff\",\n\tGroup = \"group\",\n\tHTML_Twig = \"HTML (Twig)\",\n\tHosts = \"hosts\",\n\tINI = \"INI\",\n\tJavaScript_Babel = \"JavaScript (Babel)\",\n\tHTML_Jinja2 = \"HTML (Jinja2)\",\n\tJinja2 = \"Jinja2\",\n\tJsonnet = \"jsonnet\",\n\tJulia = \"Julia\",\n\tKotlin = \"Kotlin\",\n\tLess = \"Less\",\n\tLLVM = \"LLVM\",\n\tLean = \"Lean\",\n\tLiveScript = \"LiveScript\",\n\tManpage = \"Manpage\",\n\tMediawikerPanel = \"MediawikerPanel\",\n\tMediaWiki = \"MediaWiki\",\n\tMemInfo = \"MemInfo\",\n\tNginx = \"nginx\",\n\tNim = \"Nim\",\n\tNinja = \"Ninja\",\n\tNix = \"Nix\",\n\tOrgmode = \"orgmode\",\n\tPasswd = \"passwd\",\n\tPowerShell = \"PowerShell\",\n\tProtocol_Buffer = \"Protocol Buffer\",\n\tProtocol_Buffer_TEXT = \"Protocol Buffer (TEXT)\",\n\tPuppet = \"Puppet\",\n\tPureScript = \"PureScript\",\n\tQML = \"QML\",\n\tRacket = \"Racket\",\n\tRego = \"Rego\",\n\tRequirementsDottxt = \"Requirements.txt\",\n\tResolv = \"resolv\",\n\tRobot_Framework = \"Robot Framework\",\n\tSCSS = \"SCSS\",\n\tSass = \"Sass\",\n\tSalt_State_SLS = \"Salt State (SLS)\",\n\tSML = \"SML\",\n\tRuby_Slim = \"Ruby Slim\",\n\tStrace = \"Strace\",\n\tStylus = \"Stylus\",\n\tSolidity = \"Solidity\",\n\tVyper = \"Vyper\",\n\tJQ = \"JQ\",\n\tSvelte = \"Svelte\",\n\tSwift = \"Swift\",\n\tSystemVerilog = \"SystemVerilog\",\n\tNavigational_Bar_SV = \"Navigational Bar SV\",\n\tTOML = \"TOML\",\n\tJSON_Terraform = \"JSON (Terraform)\",\n\tTerraform = \"Terraform\",\n\tTodoDottxt = \"Todo.txt\",\n\tTypeScript = \"TypeScript\",\n\tTypeScriptReact = \"TypeScriptReact\",\n\tVerilog = \"Verilog\",\n\tVimHelp = \"VimHelp\",\n\tVimL = \"VimL\",\n\tVue_Component = \"Vue Component\",\n\tZig = \"Zig\",\n\tCommand_Help = \"Command Help\",\n\tGnuplot = \"gnuplot\",\n\tHTTP_Request_and_Response = \"HTTP Request and Response\",\n\tLog = \"log\",\n\tHighlight_non_printables = \"Highlight non-printables\",\n\tAuthorized_Keys = \"Authorized Keys\",\n\tKnown_Hosts = \"Known Hosts\",\n\tPrivate_Key = \"Private Key\",\n\tSSH_Common = \"SSH Common\",\n\tSSH_Config = \"SSH Config\",\n\tSSH_Crypto = \"SSH Crypto\",\n\tSSHD_Config = \"SSHD Config\",\n\tSyslog = \"syslog\",\n\tVarlink = \"varlink\",\n\tConundrumAi = \"conundrum-ai\",\n\tDictionary = \"dictionary\",\n\tMermaid = \"mermaid\",\n}\n\nexport interface GeneralCodeBlock {\n\tlanguage: SupportedCodeBlockSyntax;\n\tmeta_data?: string;\n\tdepth: number;\n\tcontent: string;\n\tfull_match: string;\n\tid: DOMId;\n}\n\nexport interface AiSerializationRequestPhase1 {\n\tparsing_result: GeneralCodeBlock;\n}\n\nexport interface BlockMathResult {\n\tbody: ConundrumString;\n\tid?: ConundrumString;\n\tidx: number;\n}\n\nexport interface BlockQuoteResult {\n\t/**\n\t * The inner content already fully parsed into `ParsedElement`s.\n\t * Nesting is handled recursively: a `> > ...` line becomes a\n\t * `BlockQuote` variant inside this `Vec`.\n\t */\n\tchildren: Children;\n\t/** The full original source text that was consumed. */\n\tfull_match: string;\n}\n\n/**\n * ## TODO\n * - [ ] Add a meta field that can collect arbitrary front-matter.\n */\nexport interface FrontMatterResult {\n\tignored_parsers: string[];\n\ttitle?: string;\n\tuser_defined_id?: string;\n\tfile_path?: string;\n\ttopic?: string;\n\tsubject?: string;\n\tsummary?: string;\n}\n\nexport interface BlogFileSummary {\n\thtml: string;\n\t/**\n\t * ## TODO:\n\t * - [ ] Add a `keywords` field to the front-matter and access it here.\n\t */\n\ttags: string[];\n\trelative_path: string;\n\tfront_matter?: FrontMatterResult;\n}\n\n/**\n * Just a simple card with a title, a body, and an optional description. It can\n * be used as a way to segment your notes without making anything stand out\n * _too_ much.\n * \n * ## Example Usage\n * \n * ```jsx\n * <Card title=\"My card's title\">\n * My card's body goes here.\n * </Card>\n * ```\n * \n * And you can include an optional description if you like:\n * \n * ```jsx\n * <Card title=\"My card's title\" desc=\"My card's description here\">\n * My card's body goes here.\n * </Card>\n * ```\n */\nexport interface Card {\n\ttitle: Children;\n\tsubtitle?: Children;\n\tchildren: Children;\n\t/**\n\t * The title depth between 1-6 for the markdown output. This will have no\n\t * effect on mdx, jsx, or plain text output. Defaults to 5\n\t * ```rust\n\t * let card = Card {\n\t * title: vec![],\n\t * subtitle: None,\n\t * children: vec![],\n\t * markdown_title_depth: None\n\t * }\n\t * assert_eq!(card.markdown_title_depth, Some(5));\n\t * ```\n\t */\n\tmarkdown_title_depth?: HeadingDepth;\n\tsizable?: SizablePropsGroup;\n\tcenter_body?: ConundrumBoolean;\n}\n\nexport interface CitationResult {\n\t/** The parsed citation key. */\n\tcitation_key: string;\n\t/** The complete bibtex entry */\n\tidx: number;\n}\n\nexport interface CitationSummaryData {\n\tcitation_key: string;\n\tbody: string;\n}\n\nexport type ConundrumColor = \n\t| { tag: \"Emphasis\", content: Emphasis }\n\t| { tag: \"Css\", content: CssColor }\n\t/**\n\t * Accepts a css variable string alone, not wrapped in the `var` syntax.\n\t * ## Exmample\n\t * \n\t * ```rs\n\t * ConundrumColor::CSSVariable(String::from(\"--color-emphasis-warn\"))\n\t * ```\n\t */\n\t| { tag: \"CSSVariable\", content: CSSColorVariable };\n\nexport interface ColorComponent {\n\tbackground_dark: ConundrumColor;\n\tforeground_dark?: ConundrumColor;\n\tbackground_light?: ConundrumColor;\n\tforeground_light?: ConundrumColor;\n\tsizable: SizablePropsGroup;\n\tforeground_text?: Children;\n\ttitle?: Children;\n}\n\nexport interface ConundrumCommentResult {\n\tcontent: string;\n}\n\nexport interface DocumentSpan {\n\tstart: number;\n\tend: number;\n}\n\nexport enum ConundrumErrorPurpose {\n\tInfo = \"info\",\n\tWarn = \"warn\",\n\tSuggest = \"suggestion\",\n\tSyntaxError = \"syntax\",\n\tConfigurationBug = \"config\",\n}\n\nexport interface ConundrumError {\n\t/**\n\t * A required message displayed in a toast or card header. Can contain\n\t * regular, swift-inline compatible markdown only.\n\t */\n\tmsg: string;\n\tpos?: DocumentSpan;\n\t/**\n\t * Details is an optional conundrum string offering a more thorough\n\t * explanation to the user if one can be generated.\n\t */\n\tdetails?: string;\n\t/**\n\t * An indicator that can be used when the warning UI is implemented to show\n\t * user's errors that allowed their notes to still compile. There's\n\t * lot's of useful information that can be gathered from these errors,\n\t * inclduding property suggestions & more.\n\t * \n\t * Making it optional for now because I'm too lazy to go back and rewrite\n\t * all of the errors.\n\t */\n\tpurpose?: ConundrumErrorPurpose;\n}\n\nexport type ParsedJavascriptElement = \n\t| { tag: \"Boolean\", content: JavascriptBooleanResult }\n\t| { tag: \"Number\", content: JavascriptNumberResult }\n\t| { tag: \"String\", content: JavascriptStringResult }\n\t| { tag: \"Object\", content: JavascriptObjectResult }\n\t| { tag: \"KeyValuePair\", content: JavascriptObjectKeyValuePair }\n\t| { tag: \"Function\", content: JavascriptFunction };\n\nexport interface ConundrumFunction {\n\tparameters: ParsedJavascriptElement[];\n\tjavascript_body: string;\n}\n\nexport interface ConundrumObject {\n\tdata: DashMap<string, ParsedElement>;\n}\n\nexport interface DictionaryCodeBlock {\n\tleading_char: string;\n\ttitle: Children;\n\tcontent: Children;\n}\n\n/** Both the label and body fields are ***un-compiled*** Conundrum content. */\nexport interface DictionaryEntryResult {\n\tlabel: string;\n\tbody: string;\n}\n\nexport interface DictionaryEntryResultData {\n\tlabel: string;\n\tnote_id?: string;\n}\n\n/** Both the label and body fields are ***un-compiled*** Conundrum content. */\nexport interface DictionaryEntryResultUnCompiled {\n\tlabel: Children;\n\t/** Used for unique-ness comparison. */\n\tlabel_string: string;\n\tbody: Children;\n}\n\n/**\n * ## Template (HTML)\n * \n * ```askama\n * <div class=\"w-full h-full grid grid-cols-1 grid-rows-[1fr_auto]\" onclick=\"window.conundrum.copyString('{{name | safe}}', '{{CopyToClipboardSource::EmojiName}}')\">\n * <div class=\"flex flex-col justify-center items-center w-full h-full [&>svg]:max-h-[120px] [&>svg]:w-auto\">{{html | safe}}</div>\n * <div class=\"w-full max-w-full overflow-y-hidden overflow-x-auto no-scrollbar text-center flex flex-col justify-center items-center text-sm text-fd-card-foreground/80\">{{name | safe}}</div>\n * </div>\n * ```\n */\nexport interface EmojiData {\n\tname: string;\n\thtml: string;\n\twrapped: boolean;\n}\n\n/**\n * This allows you to explore the twemoji set of ~4800 emojis, but don't embed\n * this directly. This is automatically embedded in the docs container when you\n * use the `Emoji??` documentation flag.\n */\nexport interface EmojiDocsDemo {\n}\n\n/**\n * Use the built-in `:smile:` syntax to insert a text sized emoji, or use the\n * `Emoji` component to create a scalable and resizable emoji as an image.\n */\nexport interface EmojiResult {\n\tname: ConundrumString;\n\t/**\n\t * Because images are notoriously finicky to style, you should prefer the\n\t * sizable boolean keys instead of the `width=\"small\"` or similar\n\t * properties. This means that your component might end up looking\n\t * something like:\n\t * \n\t * ```tsx\n\t * <Emoji name=\"smile\" medium border ... />\n\t * ```\n\t * \n\t * Instead of\n\t * \n\t * ```tsx\n\t * <Emoji name=\"smile\" width=\"medium\" border ... />\n\t * ```\n\t * \n\t * The other properties are still available, but these unique boolean\n\t * properties will apply styles that will more reliably shape the\n\t * underlying image.\n\t */\n\tsizable?: SizablePropsGroup;\n\t/** Default: \"small\", text sized. */\n\tsize?: SizableOption;\n}\n\nexport interface EmojiSearchResults {\n\tnames: EmojiData[];\n\t/** The total number of matches */\n\ttotal: number;\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * $$ {#my-equation}\n * e=mc^2\n * $$\n * \n * yada, yada, yada, My equation <EqRef id=\"my-equation\" /> is awesome...\n * ```\n * \n * The above will result in something like:\n * \n * _yada, yada, yada, My equation 1 is awesome..._\n * \n * Or whatever index is represented by that equation, allowing you to reference\n * equations by index without worrying about the structure of your note\n * changing.\n * \n * #### Indices (implementation detail)\n * \n * The equation reference component uses 1 based indices for plain text and\n * markdown since they are likely going to be displayed directly, and zero\n * based indices for everything where the output will be handled by a developer\n * before being displayed (React, HTML, Swift, etc..) because 1 based indices\n * are dumb. True story: One time I told my step-dad he was number 0 to cheer\n * him up. I was like 7.\n */\nexport interface EquationReference {\n\t/**\n\t * The `id` field is a string that can be referenced later to use this\n\t * equation's number.\n\t */\n\tid: ConundrumString;\n\t/**\n\t * This has no effect when `anchor=true`, but will have make the index\n\t * subscript when `anchor` is not set.\n\t */\n\tsubscript?: ConundrumBoolean;\n\t/**\n\t * This has no effect when `anchor=true`, but will have make the index\n\t * superscript when `anchor` is not set.\n\t */\n\tsuperscript?: ConundrumBoolean;\n\t/**\n\t * Style the output index according to one of the available Emphasis styles\n\t * if you like.\n\t */\n\temphasis?: Emphasis;\n}\n\n/**\n * The `[^1]` syntax that goes in the markdown content, _not_ the footnote that\n * goes in the footer.\n * \n * ## Template (HTML)\n * ```askama\n * <sup id=\"{{id}}\" class=\"cdrm-footnote-anchor text-sm text-inherit opacity-70 hover:opacity-100 transition-opacity duration-300 cursor-pointer\">{{self.doc_idx}}</sup>\n * ```\n */\nexport interface FootnoteAnchor {\n\t/** The user provided idx. */\n\tidx: ConundrumInt;\n\tdoc_idx: ConundrumInt;\n\tid: DOMId;\n}\n\nexport interface FootnoteFooter {\n\tidx: ConundrumInt;\n\tcontent: Children;\n}\n\n/**\n * When a component is rendered in a markdown environment, apply these styles\n * if the more complex rendering strategies are not available.\n */\nexport enum InlineMarkdownOverride {\n\tPlain = \"plain\",\n\tBoldItalic = \"bold_italic\",\n\tItalic = \"italic\",\n\tBold = \"bold\",\n}\n\nexport interface Highlight {\n\tchildren: Children;\n\t/** Default: .highlight */\n\temphasis: Emphasis;\n\t/**\n\t * Control the markdown formatting when the output format is a markdown\n\t * variant. This property is common throughout Conundrum, but the default\n\t * is unique to each component.\n\t * Default: `.Italic`\n\t */\n\tmarkdown?: InlineMarkdownOverride;\n}\n\nexport interface Hint {\n\t/**\n\t * Note that `label` is a String and note a vector of children. This means\n\t * that the fragment syntax won't work and markdown may or may not work in\n\t * the label. Default: \"hint\".\n\t */\n\tlabel?: Children;\n\tchildren: Children;\n\temphasis: Emphasis;\n\tsizable?: SizablePropsGroup;\n\tmarkdown_title_depth?: HeadingDepth;\n}\n\n/**\n * ## Example Usage\n * \n * This component unlike most others does not rely on conundrum's jsx-like\n * syntax, but has it's own syntax:\n * \n * ```mdx\n * Some paragraph here...\n * \n * --- My section title ---\n * \n * Some other paragraph here.\n * ```\n * \n * You can still use the component as a regular Conundrum component if you like\n * though:\n * \n * ```jsx\n * <Hr> My section title </Hr>\n * ```\n */\nexport interface HrWithChildrenResult {\n\tchildren: Children;\n}\n\nexport interface Image {\n\tsizable?: SizablePropsGroup;\n\tsrc: ConundrumString;\n\tcaption?: Children;\n\tcaption_left?: ConundrumBoolean;\n\tcaption_right?: ConundrumBoolean;\n\tcontain?: ConundrumBoolean;\n\tcover?: ConundrumBoolean;\n\talt?: ConundrumString;\n\t/** An id is required to make sure all figures are counted. */\n\tid: DOMId;\n}\n\nexport interface InlineCodeResult {\n\tcontent: string;\n\tlang: SupportedCodeBlockSyntax;\n}\n\nexport interface InlineMathResult {\n\tbody: ConundrumString;\n}\n\nexport interface JavascriptBooleanResult {\n\tvalue: boolean;\n}\n\nexport interface JavascriptFunction {\n\tparameters: ParsedJavascriptElement[];\n\tjavascript_body: string;\n}\n\nexport type ConundrumNumber = \n\t| { tag: \"Int\", content: ConundrumInt }\n\t| { tag: \"Float\", content: ConundrumFloat };\n\n/**\n * Creating the distinction between ints and floats will be important as the\n * runtime will execute mostly in Rust, and being able to parse some of the\n * mdx, javascript inputs will be super useful.\n */\nexport interface JavascriptNumberResult {\n\tvalue: ConundrumNumber;\n}\n\nexport interface JavascriptObjectKeyValuePair {\n\tkey: string;\n\tvalue: ParsedElement;\n}\n\nexport interface JavascriptObjectResult {\n\tdata: DashMap<string, ParsedElement>;\n}\n\nexport interface JavascriptStringResult {\n\tvalue: string;\n\tdelimiter: string;\n}\n\nexport interface JsxStringPropertyResult {\n}\n\n/**\n * ## Local Video\n * \n * For embedding a local video in your note.\n * \n * ### Example\n * \n * ```tsx\n * <Video\n * path=\"/Some/local/file/path/myVideo.mp4\"\n * id=\"myOptionalId\"\n * />\n * ```\n * \n * You can then use the id of the video to link to specific time stamps using\n * the `[my link content](video:myOptionalId@4:32)` to jump to 4 minutes and 32\n * seconds.\n */\nexport interface LocalVideoComponent {\n\tpath: ConundrumString;\n\t/** An optional user defined id used for video timestamp links. */\n\tid?: ConundrumString;\n\tsizable: SizablePropsGroup;\n}\n\nexport interface MarkdownBoldAndItalicTextResult {\n\tchildren: Children;\n}\n\nexport interface MarkdownBoldTextResult {\n\tchildren: Children;\n}\n\nexport type MarkdownComponentOptionData<T> = \n\t| { tag: \"AsMap\", content: MarkdownComponentOptionMap<T> }\n\t| { tag: \"AsVariant\", content: T };\n\nexport interface MarkdownComponentOptions<T> {\n\tmarkdown: MarkdownComponentOptionData<T>;\n}\n\nexport interface MarkdownHeadingResult {\n\tdepth: number;\n\t/**\n\t * The indentation level to be used when displaying this in an inline table\n\t * of contents, not necessarily the level of the heading since some heading\n\t * lists will skip a depth.\n\t */\n\ttab_depth: number;\n\tchildren: Children;\n\tsubtitle?: Children;\n\tid: DOMId;\n}\n\n/**\n * The same as the `MarkdownHeadingResult` struct but wth the children\n * rendered.\n */\nexport interface MarkdownHeadingStringifiedResult {\n\tdepth: number;\n\ttab_depth: number;\n\tcontent: string;\n\tid: string;\n}\n\nexport interface MarkdownHorizontalRule {\n}\n\nexport interface MarkdownItalicTextResult {\n\tchildren: Children;\n}\n\nexport type MarkdownLinkTarget = \n\t/**\n\t * Any generic url that is not handled internally by the conundrum\n\t * framework.\n\t */\n\t| { tag: \"Url\", content: string }\n\t/** This currently only supports linking to id's on the same page. */\n\t| { tag: \"DomId\", content: DOMId }\n\t| { tag: \"NoteId\", content: string }\n\t| { tag: \"AudioTimestamp\", content: Timestamp }\n\t| { tag: \"VideoTimestamp\", content: Timestamp };\n\nexport interface MarkdownLinkResult {\n\ttext: Children;\n\turl: MarkdownLinkTarget;\n}\n\nexport interface MarkdownLinkResultStringified {\n\ttext: string;\n\turl: MarkdownLinkTarget;\n}\n\nexport interface MarkdownParagraphResult {\n\tchildren: Children;\n\tterminator: ParsedElement;\n}\n\nexport interface MarkdownStrikeThroughTextResult {\n\tchildren: Children;\n}\n\nexport interface MarkdownTable {\n\theading: MarkdownTableHeadingRow;\n\talignment: MarkdownTableAlignmentRow;\n\trows: MarkdownTableRow[];\n}\n\n/** The 'math' is embedded in `.jsx` as a child. */\nexport interface MathData {\n\tdisplay: boolean;\n\t/**\n\t * The `idx` field will only be set for equations where display=true, for\n\t * obvious reasons.\n\t */\n\tidx?: number;\n\t/** An optional user provided id, only applicable for block-level math. */\n\tid?: string;\n\t/** The primary math content. */\n\tcontent: string;\n}\n\nexport interface TagResult {\n\tbody: string;\n}\n\nexport interface NoteOutgoingLinkResult {\n\t/** The user defined id on the target note. */\n\tlink_to_note_id: string;\n}\n\n/**\n * ## Template (HTML)\n * \n * ```askama\n * <a role=\"button\" data-cdrm-for=\"{{anchor_id}}\" class=\"cdrm-footnote w-full h-full text-foreground/80 hover:text-foreground transition-colors duration-300 flex flex-col justify-start items-start cursor-pointer text-sm py-1 not-prose text-nowrap\">\n * {{idx | safe}}.\n * </a>\n * <div class=\"cdrm-footnote-body w-full not-prose\">\n * {{body | safe}}\n * </div>\n * ```\n */\nexport interface RenderedFootnoteResult {\n\t/** The rendered Conundrum content representing the body of the footnote. */\n\tbody: string;\n\t/** The id of the anchor element associated with this footnote. */\n\tanchor_id: DOMId;\n\t/**\n\t * The 0 based index of the anchor, the way it appears in the document...\n\t * Not necessarily the user provided index that is used as the key of\n\t * the footnote results map.\n\t */\n\tidx: number;\n}\n\n/**\n * Just like the `AnyComponentName`, except this is unique where the\n * AnyComponentName allows for component aliases.\n */\nexport type AnyComponentKey = \n\t| { tag: \"AutoInserted\", content: AutoInsertedComponentName }\n\t| { tag: \"Embeddable\", content: EmbeddableComponentId }\n\t| { tag: \"General\", content: WebGlueCodeGeneralFiles }\n\t| { tag: \"Docs\", content: DocumentationComponentName }\n\t| { tag: \"Markdown\", content: MarkdownElementGlueKey };\n\nexport interface MdxParsingResult {\n\tnote_id?: string;\n\tcontent: string;\n\ttags: TagResult[];\n\tfront_matter?: FrontMatterResult;\n\tordered_citation_keys: string[];\n\tdictionary_entries: DictionaryEntryResult[];\n\toutgoing_links: NoteOutgoingLinkResult[];\n\ttoc: MarkdownHeadingStringifiedResult[];\n\t/**\n\t * Always set to false initially, but can be set to true by certain parsers\n\t * to avoid further parsing.\n\t */\n\tignore_all_parsers: boolean;\n\tai_secondary_parse_requests: AiSerializationRequestPhase1[];\n\t/**\n\t * The map of the user provided equation id (to the `EqRef` component) and\n\t * the index that the equation appears.\n\t */\n\teq_ref_map: Record<string, number>;\n\twarnings: ConundrumError[];\n\t/**\n\t * A map of type `Map<The anchor index of the footnote, FootnoteResult>`.\n\t * This field isn't populated until the footnotes are rendered at the end,\n\t * so don't rely on this data during parsing *or* compilation. Use the\n\t * field on `ParseState` instead.\n\t */\n\tfootnotes: Record<number, RenderedFootnoteResult>;\n\tincluded_components: AnyComponentKey[];\n}\n\nexport enum MermaidRouteStyle {\n\tOrthogonal = \"orthogonal\",\n\tDirect = \"direct\",\n\tPolyline = \"polyline\",\n}\n\nexport enum MermaidLayoutEngine {\n\tFluxLayered = \"flux-layered\",\n\tMermaidLayered = \"mermaid-layered\",\n\tElkLayered = \"elk-layered\",\n\tELkTree = \"elk-mrtree\",\n}\n\nexport enum MermaidTheme {\n\tAuto = \"auto\",\n\tZincLight = \"zinc-light\",\n\tZincDark = \"zinc-dark\",\n\tTokyoNight = \"tokyo-night\",\n\tTokyoNightStorm = \"tokyo-night-storm\",\n\tTokyoNightLight = \"tokyo-night-light\",\n\tCatppuccinMocha = \"catppuccin-mocha\",\n\tCatppuccinLatte = \"catppuccin-latte\",\n\tNord = \"nord\",\n\tNordLight = \"nord-light\",\n\tDracula = \"dracula\",\n\tGithubLight = \"github-light\",\n\tGithubDark = \"github-dark\",\n\tSolarizedLight = \"solarized-light\",\n\tSolarizedDark = \"solarized-dark\",\n\tOneDark = \"one-dark\",\n}\n\nexport interface MermaidCodeBlock {\n\tcontent: string;\n\tscale?: ConundrumNumber;\n\tpadding?: ConundrumNumber;\n\tnode_padding_y?: ConundrumNumber;\n\tnode_padding_x?: ConundrumNumber;\n\troute_style?: MermaidRouteStyle;\n\tlayout?: MermaidLayoutEngine;\n\ttheme: MermaidTheme;\n}\n\nexport interface ModelSelection {\n\t/** Stable provider key, such as `ollama` or `openai`. */\n\tprovider: string;\n\t/** Provider-specific model identifier. */\n\tmodel_id: string;\n}\n\nexport interface NextJsConundrumOutput {\n\tfiles: BlogFileSummary[];\n}\n\nexport interface OrderedListItem {\n\theading: Children;\n\tbody?: Children;\n\t/** n will be none if the `n.` syntax was used instead of `1.`. */\n\tn?: number;\n}\n\nexport interface OrderedListModel {\n\titems: OrderedListItem[];\n}\n\n/**\n * The goal with these modifiers is to have a few different compile targets\n * (markdown, mdx, jsx, eventually straight to html/js, and then to an AST that\n * can be handled by other UI ecosystems), and these modifiers is how we can\n * achieve that.\n * \n * All modifiers that start with `TargetXYZ` are applied as sort of a\n * collection of other modifiers, or at least that's how they're intended to\n * work.\n */\nexport enum ConundrumModifier {\n\tHideEmojis = \"HideEmojis\",\n\t/**\n\t * The goal with this flag is to make **some** components collapsable to be\n\t * inline, even when they traditionally are not. This will likely be\n\t * buggy, producing some good output in some cases but some\n\t * questionable output in others.\n\t * \n\t * As the list of component properties grows, this output will become\n\t * customizable directly in your note.\n\t */\n\tPreferInlineMarkdownSyntax = \"PreferInlineMarkdownSyntax\",\n\t/** Use this alongside a math-mode target to output math in an inline style. */\n\tMathModeInline = \"MathModeInline\",\n\t/**\n\t * This is really only useful for when your environment can't support any\n\t * other output format.\n\t */\n\tDecoratedPlainText = \"DecoratedPlainText\",\n\t/**\n\t * Set this flag when the output is intended to be consumed by AI, probably\n\t * with the `.PreferMarkdownSyntax` flag.\n\t */\n\tForAIInput = \"ForAIInput\",\n\t/**\n\t * When this component is to be used for search text input, all of the\n\t * component jsx and mdx syntax will be removed, leaving only\n\t * searchable text.\n\t */\n\tForSearchInput = \"ForSearchInput\",\n\t/** Don't touch the code blocks, just return them exactly as is. */\n\tCodeBlocksAsIs = \"CodeBlocksAsIs\",\n\t/**\n\t * Output a standalone application capable of being viewed completely\n\t * offline, with all fonts, javascript and rendered math embedded directly\n\t * into a single html file.\n\t */\n\tStandalone = \"Standalone\",\n\t/**\n\t * This is currently required in React environments to work around the\n\t * React render cycle. Since almost everything is wrapepd in a series\n\t * of iiife's, kind of working like React's useEffect hook, embedding\n\t * the javascript as a script tag will ensure that the components\n\t * all have the proper listeners applied. So far it comes out to only about\n\t * 200 lines of javascript.\n\t */\n\tEmbedJavascript = \"EmbedJavascript\",\n}\n\nexport enum EmbeddableComponentName {\n\tToc = \"Toc\",\n\tAdmonition = \"Admonition\",\n\tHl = \"Hl\",\n\tHighlight = \"Highlight\",\n\tUl = \"Ul\",\n\tUnderline = \"Underline\",\n\tColor = \"Color\",\n\tCard = \"Card\",\n\tGrid = \"Grid\",\n\tUtlityContainer = \"Container\",\n\tHrWithChildren = \"Hr\",\n\tHint = \"Hint\",\n\tQuote = \"Quote\",\n\tEmoji = \"Emoji\",\n\tEqRef = \"EqRef\",\n\tTabs = \"Tabs\",\n\tTab = \"Tab\",\n\tImage = \"Image\",\n\tYoutube = \"Youtube\",\n\tLocalVideo = \"Video\",\n}\n\nexport enum SupportedCodeBlockTheme {\n\tThirteenThirtySeven = \"1337\",\n\tColdarkCold = \"Coldark-Cold\",\n\tColdarkDark = \"Coldark-Dark\",\n\tDarkneon = \"DarkNeon\",\n\tDracula = \"Dracula\",\n\tGithub = \"GitHub\",\n\tMonokaiExtended = \"Monokai Extended\",\n\tMonokaiExtendedBright = \"Monokai Extended Bright\",\n\tMonokaiExtendedLight = \"Monokai Extended Light\",\n\tMonoakaiExtendedOrigin = \"Monokai Extended Origin\",\n\tNord = \"Nord\",\n\tOnehalfdark = \"OneHalfDark\",\n\tOnehalflight = \"OneHalfLight\",\n\tSolarizedDark = \"Solarized (dark)\",\n\tSolarizedLight = \"Solarized (light)\",\n\tSublimeSnazzy = \"Sublime Snazzy\",\n\tTwodark = \"TwoDark\",\n\tVisualStudioDarkPlus = \"Visual Studio Dark+\",\n\tAnsi = \"ansi\",\n\tBase16 = \"base16\",\n\tBase16_256 = \"base16-256\",\n\tGruvboxDark = \"gruvbox-dark\",\n\tGruvboxLight = \"gruvbox-light\",\n\tZenburn = \"zenburn\",\n}\n\nexport interface UIParams {\n\tdark_mode: boolean;\n\t/** A number 0-n, where n > 1 increases the fontsize. */\n\tfont_scalar: number;\n\tmath_font_scalar: number;\n\tsyntax_theme?: SupportedCodeBlockTheme;\n}\n\nexport enum ConundrumCompileTarget {\n\tJsx = \"jsx\",\n\tHtml = \"html\",\n\tMarkdown = \"markdown\",\n\tPlainText = \"text\",\n\tMdx = \"mdx\",\n\tMathModeSvg = \"math_svg\",\n}\n\n/** This is the core 'input' for Conundrum. */\nexport interface ParseConundrumOptions {\n\t/**\n\t * The id of your note. This can be generic, unique to each application,\n\t * but so-long as the note has the **concept** of an id the id can be\n\t * inserted into certain components to make it easier for the front-end\n\t * to collect data without the need for complicated outside state.\n\t */\n\tnote_id?: string;\n\t/** Your conundrum content, obviously. */\n\tcontent: string;\n\t/**\n\t * Kind of the core piece of Conundrum, the ability to write in a superset\n\t * of Markdown and to compile to a variety of targets, including just\n\t * regular, traditional markdown (the goal is to comply with the Commonmark\n\t * spec eventually, we're still missing some things that are being cleaned\n\t * up by the runtime environment).\n\t */\n\tmodifiers: ConundrumModifier[];\n\t/**\n\t * Hide specific components that are incompatable with the target output\n\t * environment. This is done automatically with the `.ForAiInput` flag\n\t * for all AI input components so not to confuse the AI, but there\n\t * maybe other use cases as well. Any component added here will render\n\t * _nothing_, but it's state will still be applied to the result.\n\t */\n\thide_components: EmbeddableComponentName[];\n\tui_params: UIParams;\n\ttarget: ConundrumCompileTarget;\n\ttrusted: boolean;\n}\n\n/**\n * ## Template (HTML)\n * ```askama\n * <sup data-cdrm-cit-key=\"{{key}}\">{{idx + 1}}</sup>\n * ```\n */\nexport interface ParsedCitation {\n\tkey: string;\n\tfull_match: string;\n\tidx: number;\n}\n\nexport interface ParsedInspectionRequest {\n\t/** An EmbeddableComponentName or InContentDocumentationId */\n\tkeyword: string;\n\tlevel: number;\n\tfull_match: string;\n}\n\nexport interface ParsedOutgoingNoteLink {\n\t/** The user-defined id of the note which is being linked to. */\n\tnote_id: string;\n\t/** The text content of the link. `[The stuff here](note:MyNote)` */\n\tcontent: Children;\n\t/**\n\t * The full content of the input string that represents this outgoing note\n\t * link.\n\t */\n\tfull_match: string;\n}\n\n/**\n * # Template (HTML)\n * \n * ```askama\n * <span data-cdrm-tag-body=\"{{body}}\" class=\"bg-primary hover:bg-primary/80 transition-colors duration-300 cursor-pointer text-primary-foreground rounded p-1 py-0.5\" onclick=\"window.conundrum.handleTagClick(event)\">#{{body}}</span>\n * ```\n */\nexport interface ParsedTag {\n\t/** The tag's body */\n\tbody: string;\n\t/** The full match of the content that was originally in the note. */\n\tfull_match: string;\n\tmarkdown?: InlineMarkdownOverride;\n}\n\nexport enum QuoteMarkdownVariants {\n\tHide = \"hide\",\n\tBlockQuote = \"blockquote\",\n\tBlockQuoteAndSource = \"blockquote+source\",\n}\n\nexport interface Quote {\n\t/** The primary content of the quote */\n\tcontent: Children;\n\t/** An optional source of the quote */\n\tsource?: Children;\n\t/**\n\t * An optional `sourceId` that can be used to group quotes throughout\n\t * a user's collection of notes based on where they appear.\n\t */\n\tsource_id?: ConundrumString;\n\tsizable: SizablePropsGroup;\n\tmarkdown_options?: MarkdownComponentOptions<QuoteMarkdownVariants>;\n}\n\nexport type ConundrumComponentType = \n\t| { tag: \"Toc\", content: TableOfContents }\n\t| { tag: \"Container\", content: UtilityContainer }\n\t| { tag: \"Card\", content: Card }\n\t| { tag: \"Tabs\", content: TabsGroup }\n\t| { tag: \"Tab\", content: Tab }\n\t| { tag: \"Grid\", content: ResponsiveGrid }\n\t| { tag: \"Hr\", content: HrWithChildrenResult }\n\t| { tag: \"Admonition\", content: Admonition }\n\t| { tag: \"Hint\", content: Hint }\n\t| { tag: \"Ul\", content: Underline }\n\t| { tag: \"Hl\", content: Highlight }\n\t| { tag: \"Emoji\", content: EmojiResult }\n\t| { tag: \"Quote\", content: Quote }\n\t| { tag: \"EqRef\", content: EquationReference }\n\t| { tag: \"EmojiDocsDemo\", content: EmojiDocsDemo }\n\t| { tag: \"Image\", content: Image }\n\t| { tag: \"Color\", content: ColorComponent }\n\t| { tag: \"Youtube\", content: YoutubeComponent }\n\t| { tag: \"LocalVideo\", content: LocalVideoComponent };\n\nexport interface ReactComponentSelfClosingResult {\n\tfull_text: string;\n\tcomponent: ConundrumComponentType;\n}\n\nexport interface ReactComponentWithChildrenResult {\n\tfull_text: string;\n\tcomponent: ConundrumComponentType;\n}\n\nexport type NumberOrSizable = \n\t| { tag: \"Sizable\", content: SizableOption }\n\t| { tag: \"Number\", content: ConundrumNumber };\n\n/**\n * ## Example Usage\n * \n * ```tsx\n * <Grid small={1} large={2}>\n * <Container>\n * My item one\n * </Container>\n * <Container>\n * My item one\n * </Container>\n * </Grid>\n * ```\n * Or if you don't need responsiveness:\n * ```tsx\n * <Grid columns={2}>\n * <Container>\n * My item one\n * </Container>\n * <Container>\n * My item one\n * </Container>\n * </Grid>\n * ```\n */\nexport interface ResponsiveGrid {\n\tsizable?: SizablePropsGroup;\n\tcolumns?: GridColumnProps;\n\tchildren: Children;\n\tresponsive?: NumberOrSizable;\n\tfit?: ConundrumBoolean;\n\temphasis?: Emphasis;\n}\n\nexport interface StringUnion {\n\topts: string[];\n\tvalue: string;\n}\n\nexport interface Tab {\n\t/** The label of the button that toggles this tab. */\n\tlabel: ConundrumString;\n\t/**\n\t * This is only required if the `label` field occurs more than once in the\n\t * same `Tabs` component. Each `Tab` must have a unique `id` field, it's\n\t * just set to the label by default.\n\t */\n\tid?: ConundrumString;\n\tchildren: Children;\n\tinitial?: ConundrumBoolean;\n}\n\nexport interface TableOfContents {\n\texpanded?: ConundrumBoolean;\n\tid: DOMId;\n}\n\n/**\n * Group and organize your notes by swappable tabs. Pretty self explanatory\n * honestly...\n * \n * ### Usage\n * > I know it's called `TabsGroup` here, but in Conundrum it's actually\n * > implemented as `Tabs`.\n * \n * ```jsx\n * <Tabs>\n * <Tab label=\"My label\">\n * My tab content one\n * </Tab>\n * <Tab label=\"My label 2\">\n * My tab content two\n * </Tab>\n * <Tab label=\"My label\"\n * // This id is required because the\n * // label appears more than once!\n * id=\"myUniqueId\">\n * My tab content three\n * </Tab>\n * </Tabs>\n * ```\n */\nexport interface TabsGroup {\n\t/** The styles applied to the active tab. Default: `.card` */\n\temphasis?: Emphasis;\n\tsubtle: ConundrumBoolean;\n\t/**\n\t * The `Tabs` component extends the `SizablePropsGroup` struct, but be\n\t * careful... you're getting into the struggles of a developer now as\n\t * these responsive containers can be difficult to make look good on\n\t * all screen sizes. You'll get the hang of it, but be sure not to be too\n\t * ambitious and implement a look that _barely_ fits, because it almost\n\t * surely **won't** fit when you rotate the device or open another\n\t * window.\n\t */\n\tsizable?: SizablePropsGroup;\n\tchildren: Children;\n\tid: DOMId;\n}\n\n/**\n * If only 2 components are passed, as in `[My link](video:myId@4:30)`, it is\n * assumed to be minutes and seconds. If three components are passed, it will\n * be applied as `minutes:seconds:hours`\n */\nexport interface Timestamp {\n\tmin: number;\n\thours?: number;\n\tsec: number;\n}\n\nexport interface TitleGroup {\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nexport enum MCPToolName {\n\tHelloWorld = \"hello_world\",\n\tQueryWorkspaces = \"query_workspaces\",\n}\n\nexport interface ToolExecution {\n\tid: DatabaseId;\n\ttool_name: MCPToolName;\n\targs?: JsonContent;\n\tconvo_id: DatabaseId;\n\tagent_id?: DatabaseId;\n\tctime: DateTime;\n}\n\nexport interface Underline {\n\tchildren: Children;\n\t/** Default: .highlight */\n\temphasis: Emphasis;\n\tthin?: ConundrumBoolean;\n\tthick?: ConundrumBoolean;\n\t/** Default: .Plain */\n\tmarkdown?: InlineMarkdownOverride;\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * - My normal list item\n * - My cool item's heading\n * My cool list item's body, indented either 2 spaces or 1 tab.\n * Unlike other markdown based parsers, Conundrum seperates the list\n * item's body from it's content in the AST, letting developers treat\n * each piece of data accordingly.\n * - This will be a nested item, indented 4 spaces.\n * ```\n */\nexport interface UnorderedListItem {\n\theading: Children;\n\tbody?: Children;\n}\n\nexport interface UnorderedListModel {\n\titems: UnorderedListItem[];\n}\n\nexport enum TaskListCompletionToken {\n\tUncertain = \"?\",\n\tComplete = \"x\",\n\tPending = \"-\",\n\tImportant = \"!\",\n\tIncomplete = \"\",\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * - My normal list item\n * - My cool item's heading\n * My cool list item's body, indented either 2 spaces or 1 tab.\n * Unlike other markdown based parsers, Conundrum seperates the list\n * item's body from it's content in the AST, letting developers treat\n * each piece of data accordingly.\n * - This will be a nested item, indented 4 spaces.\n * ```\n */\nexport interface UnorderedTaskListItem {\n\theading: Children;\n\tbody?: Children;\n\tstatus: TaskListCompletionToken;\n}\n\nexport interface UnorderedTaskListModel {\n\titems: UnorderedTaskListItem[];\n}\n\nexport interface UserMessage {\n\tid: DatabaseId;\n\tconvo_id: DatabaseId;\n\t/**\n\t * If the sender is the user, this is the agent requested. If the sender is\n\t * AI, this is the AI sending the response.\n\t */\n\tagent_id: DatabaseId;\n\tbody: string;\n\tctime: DateTime;\n}\n\nexport interface UserMessageInput {\n\tconvo_id?: DatabaseId;\n\t/**\n\t * If the sender is the user, this is the agent requested. If the sender is\n\t * AI, this is the AI sending the response.\n\t */\n\tagent_id?: DatabaseId;\n\tmodel?: ModelSelection;\n\tbody: string;\n}\n\n/**\n * The `Container` component is an intentionally almost entirely unstyled\n * component that accepts most of the _generic_ properties accepted elsewhere.\n * This means that it takes an optional `Emphasis` as a boolean, and all of the\n * `SizableObject` properties like `width`, `margin`, `padding`, `text` for\n * font size and a handful of positionable props. The goal with the `Container`\n * component is to provide a blank canvas to allow you to create some\n * responsive & informative layouts that fit your own use case.\n */\nexport interface UtilityContainer {\n\tsizable: SizablePropsGroup;\n\temphasis?: Emphasis;\n\tchildren: Children;\n}\n\n/**\n * ## Youtube\n * \n * For embedding YouTube videos directly in your notes. The video renders in a\n * responsive 16:9 player (capped at `768px` wide) loaded from\n * `youtube-nocookie.com`, and accepts every [`SizablePropsGroup`] property so\n * it can be floated, bordered, rounded, and so on.\n * \n * The full user-facing documentation lives in\n * `embedded/component_docs/youtube-full.mdx` and is registered through\n * [`youtube_component_config`](super::youtube_config::youtube_component_config).\n * \n * ### Properties\n * \n * - `url` (required): any common YouTube url (`watch?v=`, `youtu.be/`,\n * `/embed/`, `/shorts/`, `/live/`) or a bare 11 character video id. A start\n * time in the url (`t=90`, `t=90s`, `start=90`) is honored.\n * - `id` (optional): a user defined id used for timestamp links.\n * - Any sizable property.\n * \n * ### Example\n * \n * ```tsx\n * <Youtube\n * url=\"https://youtube.com/watch?v=someVideoId\"\n * id=\"myOptionalId\"\n * />\n * ```\n * \n * You can then use the id of the video to link to specific time stamps using\n * the `[my link content](video:myOptionalId@4:32)` to jump to 4 minutes and 32\n * seconds.\n */\nexport interface YoutubeComponent {\n\turl: ConundrumString;\n\t/** An optional user defined id used for video timestamp links. */\n\tid?: ConundrumString;\n\tsizable: SizablePropsGroup;\n}\n\nexport type AIError = \n\t| { tag: \"ConundrumError\", content: ConundrumErrorVariant }\n\t| { tag: \"FailToInitializeModel\", content: string }\n\t| { tag: \"SkippingIrrelevantAIOutput\", content?: undefined }\n\t| { tag: \"EmbeddingFail\", content: string }\n\t| { tag: \"InvalidProps\", content: string }\n\t| { tag: \"InvalidEnvironment\", content: string }\n\t| { tag: \"InvalidLocalProvider\", content?: undefined }\n\t| { tag: \"InvalidRemoteProvider\", content?: undefined }\n\t| { tag: \"FailToExtractText\", content: string };\n\nexport enum AiSerializationRequestType {\n\tCreateNoteSpecificStudyGuide = \"CreateNoteSpecificStudyGuide\",\n\tSummarizeNote = \"SummarizeNote\",\n\tRecommendResearch = \"RecommendResearch\",\n}\n\nexport type AnyComponentName = \n\t| { tag: \"UserEmbedded\", content: EmbeddableComponentName }\n\t| { tag: \"Docs\", content: DocumentationComponentName }\n\t| { tag: \"AutoInserted\", content: AutoInsertedComponentName };\n\nexport enum AutoInsertedComponentName {\n\tNoteLink = \"NoteLink\",\n\tAutoInsertedTag = \"AutoInsertedTag\",\n\tFlusterCitation = \"FlusterCitation\",\n\tDictionaryEntry = \"DictionaryEntry\",\n\tFlusterAiParsePendingContainer = \"FlusterAiParsePendingContainer\",\n\tAutoInsertedHeading = \"AutoInsertedHeading\",\n\tAutoInsertedCodeBlock = \"AutoInsertedCodeBlock\",\n\tAutoInsertedBlockQuote = \"AutoInsertedBlockQuote\",\n\tAutoInsertedMathBlock = \"AutoInsertedMathBlock\",\n\tAutoInsertedMarkdownLink = \"AutoInsertedMarkdownLink\",\n\tAutoInsertedMarkdownParagraph = \"AutoInsertedMarkdownParagraph\",\n}\n\nexport enum CdrmEnvVariable {\n\tLogLevel = \"CDRM_LOG_LEVEL\",\n\tServerPort = \"CDRM_SERVER_PORT\",\n\tCSLFilePath = \"CDRM_CSL_FILE_PATH\",\n}\n\nexport type ChatEvent = \n\t/**\n\t * Returned directly after the user sends their message, only attaching an\n\t * id and the ctime.\n\t */\n\t| { type: \"user_message_bounce_back\", content: {\n\tuser_message: UserMessage;\n}}\n\t| { type: \"text_delta\", content: {\n\ttext: string;\n\tis_reasoning: boolean;\n}}\n\t| { type: \"redacted\", content: {\n\ttext: string;\n}}\n\t/** A complete block of reasoning logic. */\n\t| { type: \"reasoning_block\", content: {\n\ttext: string;\n}}\n\t/** A summary of the reasoning content. */\n\t| { type: \"reasoning_summary\", content: {\n\ttext: string;\n}}\n\t| { type: \"encrypted\", content: {\n\ttext: string;\n}}\n\t| { type: \"done\", content: {\n\tinput_tokens: number;\n\toutput_tokens: number;\n\ttotal_tokens: number;\n}}\n\t| { type: \"tool_call\", content: ToolExecution }\n\t| { type: \"tool_result_text\", content: {\n\tcontent: string;\n}}\n\t| { type: \"tool_result_image\", content: {\n\timage_type?: string;\n}}\n\t| { type: \"user_content\", content: {\n\ttext: string;\n}}\n\t| { type: \"many\", content: ChatEvent[] };\n\nexport type CodeBlockLanguage = \n\t| { tag: \"DefaultLanguage\", content?: undefined }\n\t| { tag: \"UserProvided\", content: string };\n\n/**\n * To enforce some uniformity and ease-of-use between components, this enum\n * represents a list of commonly used property keys. The code itself doesn't\n * care that these keys are the same, but the predictability should help new\n * users.\n */\nexport enum CommonComponentPropertyKey {\n\tMarkdownHeading = \"markdownHeading\",\n\t/** Deprecated in favor of a shared struct */\n\tInlineMarkdownOverride = \"markdown\",\n\tComponentMarkdownProps = \"md\",\n}\n\nexport type ConundrumErrorVariant = \n\t| { tag: \"NotImplemented\", content?: undefined }\n\t| { tag: \"MultiThreadingError\", content?: undefined }\n\t| { tag: \"TypeConversionError\", content: {\n\tfrom: string;\n\tto: string;\n}}\n\t| { tag: \"CodeblockMetaDataNotExist\", content?: undefined }\n\t| { tag: \"KeyNotFound\", content?: undefined }\n\t| { tag: \"EmbeddedDataNotFound\", content?: undefined }\n\t| { tag: \"TerminatorNotFound\", content?: undefined }\n\t| { tag: \"FailToFindTitleGroup\", content?: undefined }\n\t| { tag: \"FailToFindComponent\", content: string }\n\t| { tag: \"FailToGenerateString\", content?: undefined }\n\t| { tag: \"FrontMatterError\", content?: undefined }\n\t| { tag: \"UserFacingGeneralParserError\", content: ConundrumError }\n\t/**\n\t * Deprecated in favor of MissingComponentProperty and\n\t * InvalidComponentProperty.\n\t */\n\t| { tag: \"UserFacingMissingOrIncorrectProperty\", content: ConundrumError }\n\t| { tag: \"MissingRequiredComponentProperty\", content: {\n\tcomponent: AnyComponentName;\n\tkey: string;\n\texpected: string;\n}}\n\t| { tag: \"InvalidComponentProperty\", content: {\n\tcomponent: AnyComponentName;\n\tkey: string;\n\texpected: string;\n\t/**\n\t * If the type is not inferible, use `an unknown type` to align with\n\t * the error verbiage.\n\t */\n\treceived: string;\n}}\n\t| { tag: \"InvalidCSSVariableSyntax\", content: string }\n\t| { tag: \"InternalParserError\", content: ConundrumError }\n\t| { tag: \"EnvVarNotFound\", content: CdrmEnvVariable }\n\t| { tag: \"EmojiRenderError\", content: string }\n\t| { tag: \"WasmError\", content: string }\n\t| { tag: \"InvalidColor\", content: string }\n\t| { tag: \"MermaidError\", content: string }\n\t| { tag: \"InvalidCSL\", content?: undefined }\n\t| { tag: \"EmptyBibliography\", content?: undefined }\n\t| { tag: \"InvalidBiblatex\", content: string }\n\t| { tag: \"InvalidSettingKey\", content: string }\n\t| { tag: \"SerializationError\", content: {\n\tentity_name: string;\n}};\n\nexport type ConundrumFSError = \n\t| { tag: \"GeneralFSError\", content?: undefined }\n\t| { tag: \"InvalidDataDirectory\", content?: undefined }\n\t| { tag: \"FileNotChildOfDir\", content: {\n\tparent: string;\n\tchild: string;\n}}\n\t| { tag: \"FsError\", content: string }\n\t| { tag: \"ConundrumError\", content: ConundrumErrorVariant }\n\t| { tag: \"PathSerializationError\", content?: undefined }\n\t| { tag: \"UnsupportedFileExtension\", content: string }\n\t| { tag: \"PathDoesntExist\", content: string }\n\t| { tag: \"NoFileExtensionFound\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidExtension\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidFileMeta\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidDirectory\", content?: undefined };\n\nexport type ConundrumLogicToken = \n\t| { tag: \"Number\", content: ConundrumNumber }\n\t| { tag: \"String\", content: ConundrumString }\n\t| { tag: \"Bool\", content: ConundrumBoolean }\n\t| { tag: \"Object\", content: ConundrumObject }\n\t| { tag: \"Function\", content: ConundrumFunction };\n\nexport enum ConundrumWebEvents {\n\t/**\n\t * Useful for things like resizable pains, to more easily emit your own\n\t * resize event that Conundrum will handle to update the components\n\t * accordingly.\n\t */\n\tManualResize = \"cdrm-manual-resize\",\n\tCdrmContentLoaded = \"cdrm-content-loaded\",\n\tCodeblockCopied = \"cdrm-codeblock-copy\",\n\tNoteLinkClick = \"cdrm-note-id-link-click\",\n\tCopyToClipboard = \"cdrm-content-copied\",\n\tDictionaryEntryLabelClick = \"dictionary-entry-click\",\n\tTocItemClick = \"toc-item-click\",\n\tTagClick = \"tag-click\",\n}\n\nexport enum CopyToClipboardSource {\n\tEmojiName = \"emoji-name\",\n}\n\nexport enum DatabaseTable {\n\tEcosystemLog = \"ecosystem_log\",\n\tApplicationTheme = \"application_theme\",\n\tTag = \"tag\",\n\tTopic = \"topic\",\n\tSubject = \"subject\",\n\tCdrm = \"cdrm\",\n\tHTML = \"html\",\n\tPdf = \"pdf\",\n\tNotebook = \"notebook\",\n\tFrontMatter = \"front_matter\",\n\tTypst = \"typst\",\n\tUserWorkspace = \"user_workspace\",\n\tWorkspacePath = \"workspace_path\",\n\tQAPair = \"qa_pair\",\n\tChatConversation = \"chat_conversation\",\n\tAgentMessage = \"agent_message\",\n\tSystemPromptMessage = \"system_prompt_message\",\n\tUserMessage = \"user_message\",\n\tAgentReasoning = \"reasoning_block\",\n\tToolExecution = \"tool_execution\",\n\tAcademicResultMetric = \"academic_res_metric\",\n\tBibEntry = \"bib_entry\",\n\tAutoTaggable = \"auto_taggable\",\n\tMilestone = \"milestone\",\n\tAssignment = \"assignment\",\n\tAssignmentTag = \"assignment_tag\",\n\tAssignmentTopic = \"assignment_topic\",\n\tAssignmentSubject = \"assignment_subject\",\n\tAgentDescription = \"agent_description\",\n\tGitRepository = \"git_repository\",\n\tKeyboardShortcut = \"keyboard_shortcut\",\n\tEcosystemSetting = \"ecosystem_setting\",\n\tLongTermGoal = \"long_term_goal\",\n\tShortTermGoal = \"short_term_goal\",\n\tAlarm = \"alarm\",\n\tStreetAddress = \"street_address\",\n\tPhoneContact = \"phone_contact\",\n\t/** --- 'Joining' tables --- */\n\tWorkspaceRepository = \"workspace_repository\",\n\tMilestoneAlarm = \"milestone_alarm\",\n\t/** ---- Chunks ---- */\n\tCdrmChunk = \"cdrm_chunk\",\n\tTypstChunk = \"typst_chunk\",\n\tMessageChunk = \"message_chunk\",\n\tMCPToolRecord = \"mcp_tool\",\n\tDocumentationChunk = \"documentation_chunk\",\n\tNotebookCellChunk = \"notebook_cell_chunk\",\n\tHTMLChunk = \"html_chunk\",\n}\n\nexport enum DocumentationComponentName {\n\tInContentDocumentationContainer = \"InContentDocumentationContainer\",\n\tInContentDocsEmphasisTypeList = \"InContentDocsEmphasisTypeList\",\n\tInContentDocsHighlightDemo = \"InContentDocsHighlightDemo\",\n\tInContentDocsUnderlineDemo = \"InContentDocsUnderlineDemo\",\n\tEmojiDocumentationDemo = \"AutoInsertedNestedEmojiDocumentation\",\n}\n\n/** From typescript to swift. */\nexport enum EmbeddableComponentId {\n\tToc = \"toc\",\n\tAdmonition = \"admonition\",\n\tHl = \"highlight\",\n\tUl = \"underline\",\n\tColor = \"color\",\n\tQuote = \"quote\",\n\tCard = \"card\",\n\tGrid = \"grid\",\n\tUtlityContainer = \"util-container\",\n\tImage = \"image\",\n\tHrWithChildren = \"hr-with-children\",\n\tHint = \"embeddable-hint-component\",\n\tEmoji = \"emoji-component\",\n\tTabs = \"tab-group\",\n\tTab = \"tab-group-tab\",\n\tEqRef = \"equation-reference\",\n\tYoutube = \"youtube\",\n\tLocalVideo = \"video\",\n}\n\n/**\n * The code representation of the `?` or `??` flag. When you apply a `?` it\n * sets the documentation to `.Short`, and `.Full` when you apply 2 `??`.\n */\nexport enum InContentDocumentationFormat {\n\tFull = \"full\",\n\tShort = \"short\",\n}\n\n/**\n * These are all of the keys that are available for documentation, apart from\n * component specific documentation.\n * \n * The `Components??` flag described here will print a list of documented\n * components, which you can look into for further docs.\n */\nexport enum InContentDocumentationId {\n\tMarkdown = \"Markdown\",\n\tDocs = \"Docs\",\n\tSyntax = \"Syntax\",\n\tJsx = \"Jsx\",\n\tCode = \"Code\",\n\tSizableObject = \"Sizable\",\n\tEmphasis = \"Emphasis\",\n\tEmoji = \"Emoji\",\n\tComponents = \"Components\",\n\tAI = \"AI\",\n\tConundrum = \"Conundrum\",\n\tMermaid = \"Mermaid\",\n}\n\nexport enum InContentDocumentationSource {\n\tComponentDocs = \"component\",\n\tInternalDocs = \"internal-docs\",\n}\n\nexport enum MarkdownElementGlueKey {\n\tFootnotes = \"footnotes.js\",\n}\n\nexport enum MarkdownOutputVariantKey {\n\tInline = \"inline\",\n\tForAI = \"forAI\",\n\tGeneral = \"general\",\n}\n\nexport type ParsedCodeBlockVariant = \n\t| { tag: \"General\", content: GeneralCodeBlock }\n\t| { tag: \"Dictionary\", content: DictionaryCodeBlock }\n\t| { tag: \"AI\", content: GeneralCodeBlock }\n\t| { tag: \"Mermaid\", content: MermaidCodeBlock };\n\nexport enum ParserId {\n\tTags = \"tags\",\n\tCitations = \"citations\",\n\tDictionary = \"dictionary\",\n\tNoteLink = \"note_link\",\n\tDocumentation = \"docs\",\n\tAiTrigger = \"ai\",\n\tHrWithChildren = \"hr\",\n}\n\nexport enum WebGlueCodeGeneralFiles {\n\tStyles = \"styles.css\",\n\tKatexCss = \"katex.min.css\",\n\tKatex_ams_regular = \"katex_ams_regular.woff2\",\n\tKatex_caligraphic_bold = \"katex_caligraphic_bold.woff2\",\n\tKatex_caligraphic_regular = \"katex_caligraphic_regular.woff2\",\n\tKatex_fraktur_bold = \"katex_fraktur_bold.woff2\",\n\tKatex_fraktur_regular = \"katex_fraktur_regular.woff2\",\n\tKatex_main_bold = \"katex_main_bold.woff2\",\n\tKatex_main_bolditalic = \"katex_main_bolditalic.woff2\",\n\tKatex_main_italic = \"katex_main_italic.woff2\",\n\tKatex_main_regular = \"katex_main_regular.woff2\",\n\tKatex_math_bolditalic = \"katex_math_bolditalic.woff2\",\n\tKatex_math_italic = \"katex_math_italic.woff2\",\n\tKatex_sansserif_bold = \"katex_sansserif_bold.woff2\",\n\tKatex_sansserif_italic = \"katex_sansserif_italic.woff2\",\n\tKatex_sansserif_regular = \"katex_sansserif_regular.woff2\",\n\tKatex_script_regular = \"katex_script_regular.woff2\",\n\tKatex_size1_regular = \"katex_size1_regular.woff2\",\n\tKatex_size2_regular = \"katex_size2_regular.woff2\",\n\tKatex_size3_regular = \"katex_size3_regular.woff2\",\n\tKatex_size4_regular = \"katex_size4_regular.woff2\",\n\tKatex_typewriter_regular = \"katex_typewriter_regular.woff2\",\n\tNerdFont = \"Fira_Code_Regular.ttf\",\n}\n\n"],"names":["MarkdownTableAlignmentCell","Emphasis","SizableOption","SupportedCodeBlockSyntax","ConundrumErrorPurpose","InlineMarkdownOverride","MermaidRouteStyle","MermaidLayoutEngine","MermaidTheme","ConundrumModifier","EmbeddableComponentName","SupportedCodeBlockTheme","ConundrumCompileTarget","QuoteMarkdownVariants","MCPToolName","TaskListCompletionToken","AiSerializationRequestType","AutoInsertedComponentName","CdrmEnvVariable","CommonComponentPropertyKey","ConundrumWebEvents","CopyToClipboardSource","DatabaseTable","DocumentationComponentName","EmbeddableComponentId","InContentDocumentationFormat","InContentDocumentationId","InContentDocumentationSource","MarkdownElementGlueKey","MarkdownOutputVariantKey","ParserId","WebGlueCodeGeneralFiles"],"mappings":"AA0JO,IAAK,+CAAAA,gCAAL;AACNA,8BAAA,SAAA,IAAU;AACVA,8BAAA,MAAA,IAAO;AACPA,8BAAA,OAAA,IAAQ;AACRA,8BAAA,QAAA,IAAS;AAJE,SAAAA;AAA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AAC,8BAAL;AACNA,4BAAA,QAAA,IAAS;AACTA,4BAAA,OAAA,IAAQ;AACRA,4BAAA,SAAA,IAAU;AAHC,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAYL,IAAK,6BAAAC,cAAL;AACNA,YAAA,MAAA,IAAO;AACPA,YAAA,WAAA,IAAY;AACZA,YAAA,YAAA,IAAa;AACbA,YAAA,UAAA,IAAW;AACXA,YAAA,eAAA,IAAgB;AAChBA,YAAA,WAAA,IAAY;AACZA,YAAA,gBAAA,IAAiB;AAPN,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AAUL,IAAK,4CAAAC,6BAAL;AACNA,2BAAA,QAAA,IAAS;AACTA,2BAAA,UAAA,IAAW;AACXA,2BAAA,mBAAA,IAAoB;AACpBA,2BAAA,wBAAA,IAAyB;AACzBA,2BAAA,2BAAA,IAA4B;AAC5BA,2BAAA,oBAAA,IAAqB;AACrBA,2BAAA,uBAAA,IAAwB;AACxBA,2BAAA,iBAAA,IAAkB;AAClBA,2BAAA,uBAAA,IAAwB;AACxBA,2BAAA,mBAAA,IAAoB;AACpBA,2BAAA,oBAAA,IAAqB;AACrBA,2BAAA,uBAAA,IAAwB;AACxBA,2BAAA,mBAAA,IAAoB;AACpBA,2BAAA,sBAAA,IAAuB;AACvBA,2BAAA,wBAAA,IAAyB;AACzBA,2BAAA,yBAAA,IAA0B;AAC1BA,2BAAA,sBAAA,IAAuB;AACvBA,2BAAA,qBAAA,IAAsB;AACtBA,2BAAA,qBAAA,IAAsB;AACtBA,2BAAA,qBAAA,IAAsB;AACtBA,2BAAA,qBAAA,IAAsB;AACtBA,2BAAA,0BAAA,IAA2B;AAC3BA,2BAAA,UAAA,IAAW;AAvBA,SAAAA;AAAA,GAAA,2BAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"codegenTypeshare.mjs","sources":["../src/code_gen/typeshare/conundrum.ts"],"sourcesContent":["// This note has been modified by the build script. All work done here will be lost.\nexport type ConundrumInt = number;\nexport type GridColumnsMap = Map<SizableOption, number>;\nexport type CL = string;\nexport type JsonContent = string;\nexport type DateTime = string | number | Date;\n\n/*\n Generated by typeshare 1.13.3\n*/\n\n\nexport type CSSColorVariable = string;\n\nexport type ParsedElement = \n\t| { tag: \"Heading\", content: MarkdownHeadingResult }\n\t| { tag: \"BlockQuote\", content: BlockQuoteResult }\n\t| { tag: \"BlockMath\", content: BlockMathResult }\n\t| { tag: \"InlineMath\", content: InlineMathResult }\n\t| { tag: \"Text\", content: string }\n\t| { tag: \"EscapedStr\", content: string }\n\t| { tag: \"Hr\", content: MarkdownHorizontalRule }\n\t| { tag: \"BoldText\", content: MarkdownBoldTextResult }\n\t| { tag: \"ItalicText\", content: MarkdownItalicTextResult }\n\t| { tag: \"StrikeThroughText\", content: MarkdownStrikeThroughTextResult }\n\t| { tag: \"BoldAndItalicText\", content: MarkdownBoldAndItalicTextResult }\n\t| { tag: \"ParsedCodeBlock\", content: ParsedCodeBlockVariant }\n\t| { tag: \"InlineCode\", content: InlineCodeResult }\n\t| { tag: \"MarkdownLink\", content: MarkdownLinkResult }\n\t| { tag: \"MarkdownParagraph\", content: MarkdownParagraphResult }\n\t| { tag: \"UnorderedList\", content: UnorderedListModel }\n\t| { tag: \"OrderedList\", content: OrderedListModel }\n\t| { tag: \"TaskList\", content: UnorderedTaskListModel }\n\t| { tag: \"Table\", content: MarkdownTable }\n\t| { tag: \"FootnoteAnchor\", content: FootnoteAnchor }\n\t| { tag: \"FootnoteFooter\", content: FootnoteFooter }\n\t| { tag: \"Emoji\", content: EmojiResult }\n\t| { tag: \"ReactComponentSelfClosing\", content: ReactComponentSelfClosingResult }\n\t| { tag: \"ReactComponentWithChildren\", content: ReactComponentWithChildrenResult }\n\t| { tag: \"ParsedCitation\", content: ParsedCitation }\n\t| { tag: \"ParsedOutgoingNoteLink\", content: ParsedOutgoingNoteLink }\n\t| { tag: \"Tag\", content: ParsedTag }\n\t| { tag: \"ParsedInspectionRequest\", content: ParsedInspectionRequest }\n\t| { tag: \"HrWithChildren\", content: HrWithChildrenResult }\n\t| { tag: \"Comment\", content: ConundrumCommentResult }\n\t| { tag: \"Children\", content: Children }\n\t| { tag: \"Javascript\", content: ParsedJavascriptElement }\n\t| { tag: \"Logic\", content: ConundrumLogicToken };\n\n/**\n * The representation of 'children', usually other markdown content. Unlike\n * other UI frameworks like React, `children` does not necessarily refer only\n * to the components that go within the main `children` property, but rather\n * any Conundrum content that is rendered inside of any of it's slots. A\n * `title`, a `subtitle` or a `label` might all be represented as children\n * since they accept Conundrum content and are represented in the UI, while\n * something like a `columns` property obviously is not.\n */\nexport type Children = ParsedElement[];\n\nexport type ConundrumBoolean = boolean;\n\n/**\n * ## TODO:\n * - [ ] Move this to dashu asap. Everything down to the database package is\n * depeneding on that sweet arbitrary precision.\n */\nexport type ConundrumFloat = number;\n\nexport type ConundrumString = string;\n\n/**\n * A simple wraper with some utility methods around the lightningcss struct of\n * the same name.\n */\nexport type CssColor = CL;\n\nexport type DOMId = string;\n\nexport type DatabaseId = string;\n\nexport type GridColumnProps = GridColumnsMap;\n\n/**\n * A simple utility around the heading depth, 1-6 just to add some convenience\n * methods.\n */\nexport type HeadingDepth = ConundrumInt;\n\nexport type MarkdownComponentOptionMap<T> = Map<MarkdownOutputVariantKey, T>;\n\nexport enum MarkdownTableAlignmentCell {\n\tDefault = \"Default\",\n\tLeft = \"Left\",\n\tRight = \"Right\",\n\tCenter = \"Center\",\n}\n\nexport type MarkdownTableAlignmentRow = MarkdownTableAlignmentCell[];\n\nexport type TableCellData = \n\t/**\n\t * Headings are made unique to allow for customizablity when the\n\t * programming layer finally makes it onboard, but they're really the same\n\t * as the body cells apart from the ablity to accept numeric content.\n\t */\n\t| { tag: \"Heading\", content: Children }\n\t| { tag: \"Conundrum\", content: Children }\n\t| { tag: \"Numeric\", content: ConundrumNumber };\n\nexport interface MarkdownTableHeadingCell {\n\tdata: TableCellData;\n}\n\nexport type MarkdownTableHeadingRow = MarkdownTableHeadingCell[];\n\nexport interface MarkdownTableCell {\n\tdata: TableCellData;\n}\n\nexport type MarkdownTableRow = MarkdownTableCell[];\n\n/**\n * A set of common styles that can be applied as a group to indicate common\n * scenarios. These will become customizable soon so you won't be limited to\n * the default color values.\n * The emphasis documentation can be viewed via the `Emphasis??` command.\n */\nexport enum Emphasis {\n\tInfo = \"info\",\n\tError = \"error\",\n\tWarn = \"warn\",\n\tSuccess = \"success\",\n\tPrimary = \"primary\",\n\tImportant = \"important\",\n\tResearch = \"research\",\n\tHighlight = \"highlight\",\n\tCard = \"card\",\n}\n\n/**\n * The `SizableOption` is a high-level, easy to use size that is independent of\n * units. Instead of relying on the units these properties typically depend on,\n * these sizes respond to where they are applied, meaning that 'large' for the\n * width of a border will be very different for 'large' for the width of an\n * image.\n */\nexport enum SizableOption {\n\tNone = \"none\",\n\tSmall = \"small\",\n\tSmedium = \"smedium\",\n\tMedium = \"medium\",\n\tLarge = \"large\",\n\tXl = \"xl\",\n\tXxl = \"xxl\",\n\tFit = \"fit\",\n\tFull = \"full\",\n}\n\n/**\n * ## SizableProps\n * @userfacing\n * \n * This is applicable to pretty much any component where changing it's size\n * makes sense. Not so much text, where you're changing the content of the text\n * itself, but rather containers, where the size is changing irrespective of\n * the content inside of it.\n * This shouldn't be confused though, since this struct contains a **lot** more\n * properties than just those that can modify _size._ You can also modify\n * color, padding, margin, borders, and more.\n */\nexport interface SizablePropsGroup {\n\t/** Hides the MathJax labels in all child components. */\n\thide_math_labels?: ConundrumBoolean;\n\t/**\n\t * 'Floats' the component to the right. This is often combined with `width`\n\t * or the `sidebar` property to create sidebar layouts.\n\t */\n\tright?: ConundrumBoolean;\n\t/**\n\t * 'Floats' the component to the left. This is often combined with `width`\n\t * or the `sidebar` property to create sidebar layouts.\n\t */\n\tleft?: ConundrumBoolean;\n\t/**\n\t * A utility property that sets a responsive max-width to create sidebar\n\t * like layouts on large screens while allowing for full-width when the\n\t * window is smaller.\n\t */\n\tsidebar?: ConundrumBoolean;\n\tcenter_self?: ConundrumBoolean;\n\t/**\n\t * Centers the content of this component's children, not the component\n\t * itself. pub center_self: Option<ConundrumBoolean>,\n\t */\n\tcenter_content?: ConundrumBoolean;\n\t/** Add a small, muted border to the object. */\n\tborder?: ConundrumBoolean;\n\t/**\n\t * Tells the container to not forcefully create a new line and instead to\n\t * flow with the rest of the content. Unless you're trying to apply\n\t * properties to text inside of a paragraph using the Container component\n\t * this is most likely not what you are looking for. If you want text to\n\t * wrap around an element, use the `right` or `left` properties paired with\n\t * a desired `width`.\n\t */\n\tinline?: ConundrumBoolean;\n\t/** Casts an inset shadow from the object. */\n\tin_shadow?: SizableOption;\n\t/** Casts a shadow from the object. */\n\tshadow?: SizableOption;\n\t/** Rounds the corners of the container. Use `rounded=\\ */\n\trounded?: SizableOption;\n\t/**\n\t * Change the text content of the container's children. Beware though, some\n\t * edge cases might not respond as expected.\n\t */\n\ttext?: SizableOption;\n\t/** Set some custom width properties to create responsive layouts. */\n\twidth?: SizableOption;\n\t/** Set some custom height properties to create responsive layouts. */\n\theight?: SizableOption;\n\t/**\n\t * The `max-width` and `max-height``properties are especially useful for\n\t * images and media.`\n\t */\n\tmax_width?: SizableOption;\n\t/**\n\t * The `max-width` and `max-height``properties are especially useful for\n\t * images and media.`\n\t */\n\tmax_height?: SizableOption;\n\t/**\n\t * Add some padding around the **outside** of an object. If you are looking\n\t * to create space on the _inside_ of an object you are looking for\n\t * `padding`.\n\t */\n\tmargin?: SizableOption;\n\tmargin_left?: SizableOption;\n\tmargin_right?: SizableOption;\n\tmargin_top?: SizableOption;\n\tmargin_bottom?: SizableOption;\n\tmargin_y?: SizableOption;\n\tmargin_x?: SizableOption;\n\t/**\n\t * Create padding on the _inside_ of an object. If you are trying to create\n\t * space _around_ an object. you are probably looking for `margin`.\n\t */\n\tpadding?: SizableOption;\n\tpadding_left?: SizableOption;\n\tpadding_right?: SizableOption;\n\tpadding_top?: SizableOption;\n\tpadding_bottom?: SizableOption;\n\tpadding_y?: SizableOption;\n\tpadding_x?: SizableOption;\n\t/**\n\t * When in Grid mode or in some other select layouts, this property create\n\t * a gap between _all_ children.\n\t */\n\tgap?: SizableOption;\n\tgap_y?: SizableOption;\n\tgap_x?: SizableOption;\n}\n\nexport interface Admonition {\n\ttitle: Children;\n\tid: DOMId;\n\tchildren: Children;\n\t/**\n\t * The title depth between 1-6 for the markdown output. This will have no\n\t * effect on mdx, jsx, or plain text output. Defaults to 5\n\t */\n\tmarkdown_title_depth?: HeadingDepth;\n\temphasis?: Emphasis;\n\tsizable?: SizablePropsGroup;\n\t/** Set to true to make the admonition foldable. Default: `false` */\n\tfoldable?: ConundrumBoolean;\n\t/**\n\t * If the admonition is `foldable`, `folded` can make the admonition folded\n\t * by default. If the `foldable` property is false, this property does\n\t * nothing.\n\t */\n\tfolded?: ConundrumBoolean;\n}\n\n/**\n * All keys must be cast to lowercase and all `_` replaced with `-`.\n * \n * I gave up and used AI 1/2 way through for these... I don't have internet and\n * I haven't written 70% of these languages... so blame a local qwen\n * model for if these are wrong, until I can get some stable time on WIFI. I\n * didn't really feel like basically emoji's was the best use of my precious\n * homeless-wifi time.:\n * \n * This defaults to python for code blocks, unless otherwise specified in the\n * applicat\n */\nexport enum SupportedCodeBlockSyntax {\n\tPlain_Text = \"Plain Text\",\n\tASP = \"ASP\",\n\tHTML_ASP = \"HTML (ASP)\",\n\tActionScript = \"ActionScript\",\n\tAppleScript = \"AppleScript\",\n\tBatch_File = \"Batch File\",\n\tNAnt_Build_File = \"NAnt Build File\",\n\tCSharp = \"C#\",\n\tCpp = \"C++\",\n\tC = \"C\",\n\tCSS = \"CSS\",\n\tClojure = \"Clojure\",\n\tD = \"D\",\n\tDMD_Output = \"DMD Output\",\n\tDiff = \"Diff\",\n\tErlang = \"Erlang\",\n\tHTML_Erlang = \"HTML (Erlang)\",\n\tGit_Attributes = \"Git Attributes\",\n\tGit_Commit = \"Git Commit\",\n\tGit_Common = \"Git Common\",\n\tGit_Config = \"Git Config\",\n\tGit_Ignore = \"Git Ignore\",\n\tGit_Link = \"Git Link\",\n\tGit_Log = \"Git Log\",\n\tGit_Mailmap = \"Git Mailmap\",\n\tGit_Rebase_Todo = \"Git Rebase Todo\",\n\tGo = \"Go\",\n\tGraphviz_DOT = \"Graphviz (DOT)\",\n\tGroovy = \"Groovy\",\n\tHTML = \"HTML\",\n\tHaskell = \"Haskell\",\n\tLiterate_Haskell = \"Literate Haskell\",\n\tJSON = \"JSON\",\n\tJava_Server_Page_JSP = \"Java Server Page (JSP)\",\n\tJava = \"Java\",\n\tJavadoc = \"Javadoc\",\n\tJava_Properties = \"Java Properties\",\n\tJavaScript = \"JavaScript\",\n\tRegular_Expressions_Javascript = \"Regular Expressions (Javascript)\",\n\tBibTeX = \"BibTeX\",\n\tLaTeX_Log = \"LaTeX Log\",\n\tLaTeX = \"LaTeX\",\n\tTeX = \"TeX\",\n\tLisp = \"Lisp\",\n\tLua = \"Lua\",\n\tMake_Output = \"Make Output\",\n\tMakefile = \"Makefile\",\n\tMarkdown = \"Markdown\",\n\tMultiMarkdown = \"MultiMarkdown\",\n\tMATLAB = \"MATLAB\",\n\tOCaml = \"OCaml\",\n\tOCamllex = \"OCamllex\",\n\tOCamlyacc = \"OCamlyacc\",\n\tCamlp4 = \"camlp4\",\n\tObjective_Cpp = \"Objective-C++\",\n\tObjective_C = \"Objective-C\",\n\tPHP_Source = \"PHP Source\",\n\tPHP = \"PHP\",\n\tRegular_Expressions_PHP = \"Regular Expressions (PHP)\",\n\tPascal = \"Pascal\",\n\tPerl = \"Perl\",\n\tPython = \"Python\",\n\tRegular_Expressions_Python = \"Regular Expressions (Python)\",\n\tR_Console = \"R Console\",\n\tR = \"R\",\n\tRd_R_Documentation = \"Rd (R Documentation)\",\n\tHTML_Rails = \"HTML (Rails)\",\n\tJavaScript_Rails = \"JavaScript (Rails)\",\n\tRuby_Haml = \"Ruby Haml\",\n\tRuby_on_Rails = \"Ruby on Rails\",\n\tSQL_Rails = \"SQL (Rails)\",\n\tRegular_Expression = \"Regular Expression\",\n\tReStructuredText = \"reStructuredText\",\n\tRuby = \"Ruby\",\n\tCargo_Build_Results = \"Cargo Build Results\",\n\tRust = \"Rust\",\n\tSQL = \"SQL\",\n\tScala = \"Scala\",\n\tBourne_Again_Shell_bash = \"Bourne Again Shell (bash)\",\n\tShell_Unix_Generic = \"Shell-Unix-Generic\",\n\tCommands_builtin_shell_bash = \"commands-builtin-shell-bash\",\n\tHTML_Tcl = \"HTML (Tcl)\",\n\tTcl = \"Tcl\",\n\tTextile = \"Textile\",\n\tXML = \"XML\",\n\tYAML = \"YAML\",\n\tAWK = \"AWK\",\n\tAda = \"Ada\",\n\tApache_Conf = \"Apache Conf\",\n\tAsciiDoc_Asciidoctor = \"AsciiDoc (Asciidoctor)\",\n\tARM_Assembly = \"ARM Assembly\",\n\tAssembly_x86_64 = \"Assembly (x86_64)\",\n\tCMake_C_Header = \"CMake C Header\",\n\tCMake_Cpp_Header = \"CMake C++ Header\",\n\tCMake = \"CMake\",\n\tCMakeCache = \"CMakeCache\",\n\tCMakeCommands = \"CMakeCommands\",\n\tComma_Separated_Values = \"Comma Separated Values\",\n\tCabal = \"Cabal\",\n\tCoffeeScript = \"CoffeeScript\",\n\tCpuInfo = \"CpuInfo\",\n\tCrontab = \"Crontab\",\n\tCrystal = \"Crystal\",\n\tDart = \"Dart\",\n\tDockerfile = \"Dockerfile\",\n\tDotENV = \"DotENV\",\n\tElixir = \"Elixir\",\n\tHTML_EEx = \"HTML (EEx)\",\n\tRegular_Expressions_Elixir = \"Regular Expressions (Elixir)\",\n\tElm_Compile_Messages = \"Elm Compile Messages\",\n\tElm_Documentation = \"Elm Documentation\",\n\tElm = \"Elm\",\n\tEmail = \"Email\",\n\tFSharp = \"F#\",\n\tFish = \"Fish\",\n\tFortran_Fixed_Form = \"Fortran (Fixed Form)\",\n\tFortran_Modern = \"Fortran (Modern)\",\n\tFortran_Namelist = \"Fortran Namelist\",\n\tGFortran_Build_Results = \"GFortran Build Results\",\n\tOpenMP_Fortran = \"OpenMP (Fortran)\",\n\tFstab = \"fstab\",\n\tGLSL = \"GLSL\",\n\tGraphQL = \"GraphQL\",\n\tGroff_troff = \"Groff/troff\",\n\tGroup = \"group\",\n\tHTML_Twig = \"HTML (Twig)\",\n\tHosts = \"hosts\",\n\tINI = \"INI\",\n\tJavaScript_Babel = \"JavaScript (Babel)\",\n\tHTML_Jinja2 = \"HTML (Jinja2)\",\n\tJinja2 = \"Jinja2\",\n\tJsonnet = \"jsonnet\",\n\tJulia = \"Julia\",\n\tKotlin = \"Kotlin\",\n\tLess = \"Less\",\n\tLLVM = \"LLVM\",\n\tLean = \"Lean\",\n\tLiveScript = \"LiveScript\",\n\tManpage = \"Manpage\",\n\tMediawikerPanel = \"MediawikerPanel\",\n\tMediaWiki = \"MediaWiki\",\n\tMemInfo = \"MemInfo\",\n\tNginx = \"nginx\",\n\tNim = \"Nim\",\n\tNinja = \"Ninja\",\n\tNix = \"Nix\",\n\tOrgmode = \"orgmode\",\n\tPasswd = \"passwd\",\n\tPowerShell = \"PowerShell\",\n\tProtocol_Buffer = \"Protocol Buffer\",\n\tProtocol_Buffer_TEXT = \"Protocol Buffer (TEXT)\",\n\tPuppet = \"Puppet\",\n\tPureScript = \"PureScript\",\n\tQML = \"QML\",\n\tRacket = \"Racket\",\n\tRego = \"Rego\",\n\tRequirementsDottxt = \"Requirements.txt\",\n\tResolv = \"resolv\",\n\tRobot_Framework = \"Robot Framework\",\n\tSCSS = \"SCSS\",\n\tSass = \"Sass\",\n\tSalt_State_SLS = \"Salt State (SLS)\",\n\tSML = \"SML\",\n\tRuby_Slim = \"Ruby Slim\",\n\tStrace = \"Strace\",\n\tStylus = \"Stylus\",\n\tSolidity = \"Solidity\",\n\tVyper = \"Vyper\",\n\tJQ = \"JQ\",\n\tSvelte = \"Svelte\",\n\tSwift = \"Swift\",\n\tSystemVerilog = \"SystemVerilog\",\n\tNavigational_Bar_SV = \"Navigational Bar SV\",\n\tTOML = \"TOML\",\n\tJSON_Terraform = \"JSON (Terraform)\",\n\tTerraform = \"Terraform\",\n\tTodoDottxt = \"Todo.txt\",\n\tTypeScript = \"TypeScript\",\n\tTypeScriptReact = \"TypeScriptReact\",\n\tVerilog = \"Verilog\",\n\tVimHelp = \"VimHelp\",\n\tVimL = \"VimL\",\n\tVue_Component = \"Vue Component\",\n\tZig = \"Zig\",\n\tCommand_Help = \"Command Help\",\n\tGnuplot = \"gnuplot\",\n\tHTTP_Request_and_Response = \"HTTP Request and Response\",\n\tLog = \"log\",\n\tHighlight_non_printables = \"Highlight non-printables\",\n\tAuthorized_Keys = \"Authorized Keys\",\n\tKnown_Hosts = \"Known Hosts\",\n\tPrivate_Key = \"Private Key\",\n\tSSH_Common = \"SSH Common\",\n\tSSH_Config = \"SSH Config\",\n\tSSH_Crypto = \"SSH Crypto\",\n\tSSHD_Config = \"SSHD Config\",\n\tSyslog = \"syslog\",\n\tVarlink = \"varlink\",\n\tConundrumAi = \"conundrum-ai\",\n\tDictionary = \"dictionary\",\n\tMermaid = \"mermaid\",\n}\n\nexport interface GeneralCodeBlock {\n\tlanguage: SupportedCodeBlockSyntax;\n\tmeta_data?: string;\n\tdepth: number;\n\tcontent: string;\n\tfull_match: string;\n\tid: DOMId;\n}\n\nexport interface AiSerializationRequestPhase1 {\n\tparsing_result: GeneralCodeBlock;\n}\n\nexport interface BlockMathResult {\n\tbody: ConundrumString;\n\tid?: ConundrumString;\n\tidx: number;\n}\n\nexport interface BlockQuoteResult {\n\t/**\n\t * The inner content already fully parsed into `ParsedElement`s.\n\t * Nesting is handled recursively: a `> > ...` line becomes a\n\t * `BlockQuote` variant inside this `Vec`.\n\t */\n\tchildren: Children;\n\t/** The full original source text that was consumed. */\n\tfull_match: string;\n}\n\n/**\n * ## TODO\n * - [ ] Add a meta field that can collect arbitrary front-matter.\n */\nexport interface FrontMatterResult {\n\tignored_parsers: string[];\n\ttitle?: string;\n\tuser_defined_id?: string;\n\tfile_path?: string;\n\ttopic?: string;\n\tsubject?: string;\n\tsummary?: string;\n}\n\n/**\n * How a project's notes are presented as a blog: the `blog` section of `cdrm_config`, copied\n * into the builder output for the web components (`@conundrum/ts/ui/blog`).\n * \n * Every field is optional; an empty section lists every note that has a `title` and `summary`.\n */\nexport interface BlogConfig {\n\t/** How `cdrm` stores the compiled notes for the website. Default: `sqlite`. */\n\tstorage?: BlogStorage;\n\t/** The blog's heading. Default: the project's `name`. */\n\ttitle?: string;\n\t/** A sentence or two under the heading. Default: the project's `desc`. */\n\tdescription?: string;\n\t/**\n\t * Posts to feature at the top of the blog, by relative path (e.g.\n\t * `blog_posts/launch.cdrm`). The first is the lead.\n\t */\n\tfeatured: string[];\n\t/** Tags listed first in the sidebar, in this order. */\n\tfeatured_tags: string[];\n\t/** Subjects listed first, in this order. Others follow in the order they first appear. */\n\tsubject_order: string[];\n\t/**\n\t * Colors for subjects, as any CSS color (e.g. `\"#0ba5e9\"`). Subjects without one get a\n\t * color derived from their name. A list rather than a map, because config files can change\n\t * the case of map keys.\n\t */\n\tsubject_colors: BlogSubjectColor[];\n\t/** Subjects left out of the blog's listings. Their posts are still published. */\n\thidden_subjects: string[];\n\t/**\n\t * How many posts each subject shows on the blog's front page, with a link to the rest.\n\t * Default: 5.\n\t */\n\tposts_per_subject?: number;\n\t/**\n\t * Relative path prefixes left out of the blog's listings (e.g. `legal/`). Their notes are\n\t * still published.\n\t */\n\thidden_paths: string[];\n}\n\n/** A subject's color, for `BlogConfig::subject_colors`. */\nexport interface BlogSubjectColor {\n\tsubject: string;\n\t/** Any CSS color. */\n\tcolor: string;\n}\n\nexport interface BlogFileSummary {\n\thtml: string;\n\t/**\n\t * ## TODO:\n\t * - [ ] Add a `keywords` field to the front-matter and access it here.\n\t */\n\ttags: string[];\n\trelative_path: string;\n\tfront_matter?: FrontMatterResult;\n}\n\n/**\n * Just a simple card with a title, a body, and an optional description. It can\n * be used as a way to segment your notes without making anything stand out\n * _too_ much.\n * \n * ## Example Usage\n * \n * ```jsx\n * <Card title=\"My card's title\">\n * My card's body goes here.\n * </Card>\n * ```\n * \n * And you can include an optional description if you like:\n * \n * ```jsx\n * <Card title=\"My card's title\" desc=\"My card's description here\">\n * My card's body goes here.\n * </Card>\n * ```\n */\nexport interface Card {\n\ttitle: Children;\n\tsubtitle?: Children;\n\tchildren: Children;\n\t/**\n\t * The title depth between 1-6 for the markdown output. This will have no\n\t * effect on mdx, jsx, or plain text output. Defaults to 5\n\t * ```rust\n\t * let card = Card {\n\t * title: vec![],\n\t * subtitle: None,\n\t * children: vec![],\n\t * markdown_title_depth: None\n\t * }\n\t * assert_eq!(card.markdown_title_depth, Some(5));\n\t * ```\n\t */\n\tmarkdown_title_depth?: HeadingDepth;\n\tsizable?: SizablePropsGroup;\n\tcenter_body?: ConundrumBoolean;\n}\n\nexport interface CitationResult {\n\t/** The parsed citation key. */\n\tcitation_key: string;\n\t/** The complete bibtex entry */\n\tidx: number;\n}\n\nexport interface CitationSummaryData {\n\tcitation_key: string;\n\tbody: string;\n}\n\nexport type ConundrumColor = \n\t| { tag: \"Emphasis\", content: Emphasis }\n\t| { tag: \"Css\", content: CssColor }\n\t/**\n\t * Accepts a css variable string alone, not wrapped in the `var` syntax.\n\t * ## Exmample\n\t * \n\t * ```rs\n\t * ConundrumColor::CSSVariable(String::from(\"--color-emphasis-warn\"))\n\t * ```\n\t */\n\t| { tag: \"CSSVariable\", content: CSSColorVariable };\n\nexport interface ColorComponent {\n\tbackground_dark: ConundrumColor;\n\tforeground_dark?: ConundrumColor;\n\tbackground_light?: ConundrumColor;\n\tforeground_light?: ConundrumColor;\n\tsizable: SizablePropsGroup;\n\tforeground_text?: Children;\n\ttitle?: Children;\n}\n\nexport interface ConundrumCommentResult {\n\tcontent: string;\n}\n\nexport interface DocumentSpan {\n\tstart: number;\n\tend: number;\n}\n\nexport enum ConundrumErrorPurpose {\n\tInfo = \"info\",\n\tWarn = \"warn\",\n\tSuggest = \"suggestion\",\n\tSyntaxError = \"syntax\",\n\tConfigurationBug = \"config\",\n}\n\nexport interface ConundrumError {\n\t/**\n\t * A required message displayed in a toast or card header. Can contain\n\t * regular, swift-inline compatible markdown only.\n\t */\n\tmsg: string;\n\tpos?: DocumentSpan;\n\t/**\n\t * Details is an optional conundrum string offering a more thorough\n\t * explanation to the user if one can be generated.\n\t */\n\tdetails?: string;\n\t/**\n\t * An indicator that can be used when the warning UI is implemented to show\n\t * user's errors that allowed their notes to still compile. There's\n\t * lot's of useful information that can be gathered from these errors,\n\t * inclduding property suggestions & more.\n\t * \n\t * Making it optional for now because I'm too lazy to go back and rewrite\n\t * all of the errors.\n\t */\n\tpurpose?: ConundrumErrorPurpose;\n}\n\nexport type ParsedJavascriptElement = \n\t| { tag: \"Boolean\", content: JavascriptBooleanResult }\n\t| { tag: \"Number\", content: JavascriptNumberResult }\n\t| { tag: \"String\", content: JavascriptStringResult }\n\t| { tag: \"Object\", content: JavascriptObjectResult }\n\t| { tag: \"KeyValuePair\", content: JavascriptObjectKeyValuePair }\n\t| { tag: \"Function\", content: JavascriptFunction };\n\nexport interface ConundrumFunction {\n\tparameters: ParsedJavascriptElement[];\n\tjavascript_body: string;\n}\n\nexport interface ConundrumObject {\n\tdata: Map<string, ParsedElement>;\n}\n\nexport interface DictionaryCodeBlock {\n\tleading_char: string;\n\ttitle: Children;\n\tcontent: Children;\n}\n\n/** Both the label and body fields are ***un-compiled*** Conundrum content. */\nexport interface DictionaryEntryResult {\n\tlabel: string;\n\tbody: string;\n}\n\nexport interface DictionaryEntryResultData {\n\tlabel: string;\n\tnote_id?: string;\n}\n\n/** Both the label and body fields are ***un-compiled*** Conundrum content. */\nexport interface DictionaryEntryResultUnCompiled {\n\tlabel: Children;\n\t/** Used for unique-ness comparison. */\n\tlabel_string: string;\n\tbody: Children;\n}\n\n/**\n * ## Template (HTML)\n * \n * ```askama\n * <div class=\"w-full h-full grid grid-cols-1 grid-rows-[1fr_auto]\" onclick=\"window.conundrum.copyString('{{name | safe}}', '{{CopyToClipboardSource::EmojiName}}')\">\n * <div class=\"flex flex-col justify-center items-center w-full h-full [&>svg]:max-h-[120px] [&>svg]:w-auto\">{{html | safe}}</div>\n * <div class=\"w-full max-w-full overflow-y-hidden overflow-x-auto no-scrollbar text-center flex flex-col justify-center items-center text-sm text-fd-card-foreground/80\">{{name | safe}}</div>\n * </div>\n * ```\n */\nexport interface EmojiData {\n\tname: string;\n\thtml: string;\n\twrapped: boolean;\n}\n\n/**\n * This allows you to explore the twemoji set of ~4800 emojis, but don't embed\n * this directly. This is automatically embedded in the docs container when you\n * use the `Emoji??` documentation flag.\n */\nexport interface EmojiDocsDemo {\n}\n\n/**\n * Use the built-in `:smile:` syntax to insert a text sized emoji, or use the\n * `Emoji` component to create a scalable and resizable emoji as an image.\n */\nexport interface EmojiResult {\n\tname: ConundrumString;\n\t/**\n\t * Because images are notoriously finicky to style, you should prefer the\n\t * sizable boolean keys instead of the `width=\"small\"` or similar\n\t * properties. This means that your component might end up looking\n\t * something like:\n\t * \n\t * ```tsx\n\t * <Emoji name=\"smile\" medium border ... />\n\t * ```\n\t * \n\t * Instead of\n\t * \n\t * ```tsx\n\t * <Emoji name=\"smile\" width=\"medium\" border ... />\n\t * ```\n\t * \n\t * The other properties are still available, but these unique boolean\n\t * properties will apply styles that will more reliably shape the\n\t * underlying image.\n\t */\n\tsizable?: SizablePropsGroup;\n\t/** Default: \"small\", text sized. */\n\tsize?: SizableOption;\n}\n\nexport interface EmojiSearchResults {\n\tnames: EmojiData[];\n\t/** The total number of matches */\n\ttotal: number;\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * $$ {#my-equation}\n * e=mc^2\n * $$\n * \n * yada, yada, yada, My equation <EqRef id=\"my-equation\" /> is awesome...\n * ```\n * \n * The above will result in something like:\n * \n * _yada, yada, yada, My equation 1 is awesome..._\n * \n * Or whatever index is represented by that equation, allowing you to reference\n * equations by index without worrying about the structure of your note\n * changing.\n * \n * #### Indices (implementation detail)\n * \n * The equation reference component uses 1 based indices for plain text and\n * markdown since they are likely going to be displayed directly, and zero\n * based indices for everything where the output will be handled by a developer\n * before being displayed (React, HTML, Swift, etc..) because 1 based indices\n * are dumb. True story: One time I told my step-dad he was number 0 to cheer\n * him up. I was like 7.\n */\nexport interface EquationReference {\n\t/**\n\t * The `id` field is a string that can be referenced later to use this\n\t * equation's number.\n\t */\n\tid: ConundrumString;\n\t/**\n\t * This has no effect when `anchor=true`, but will have make the index\n\t * subscript when `anchor` is not set.\n\t */\n\tsubscript?: ConundrumBoolean;\n\t/**\n\t * This has no effect when `anchor=true`, but will have make the index\n\t * superscript when `anchor` is not set.\n\t */\n\tsuperscript?: ConundrumBoolean;\n\t/**\n\t * Style the output index according to one of the available Emphasis styles\n\t * if you like.\n\t */\n\temphasis?: Emphasis;\n}\n\n/**\n * The `[^1]` syntax that goes in the markdown content, _not_ the footnote that\n * goes in the footer.\n * \n * ## Template (HTML)\n * ```askama\n * <sup id=\"{{id}}\" class=\"cdrm-footnote-anchor text-sm text-inherit opacity-70 hover:opacity-100 transition-opacity duration-300 cursor-pointer\">{{self.doc_idx}}</sup>\n * ```\n */\nexport interface FootnoteAnchor {\n\t/** The user provided idx. */\n\tidx: ConundrumInt;\n\tdoc_idx: ConundrumInt;\n\tid: DOMId;\n}\n\nexport interface FootnoteFooter {\n\tidx: ConundrumInt;\n\tcontent: Children;\n}\n\n/**\n * When a component is rendered in a markdown environment, apply these styles\n * if the more complex rendering strategies are not available.\n */\nexport enum InlineMarkdownOverride {\n\tPlain = \"plain\",\n\tBoldItalic = \"bold_italic\",\n\tItalic = \"italic\",\n\tBold = \"bold\",\n}\n\nexport interface Highlight {\n\tchildren: Children;\n\t/** Default: .highlight */\n\temphasis: Emphasis;\n\t/**\n\t * Control the markdown formatting when the output format is a markdown\n\t * variant. This property is common throughout Conundrum, but the default\n\t * is unique to each component.\n\t * Default: `.Italic`\n\t */\n\tmarkdown?: InlineMarkdownOverride;\n}\n\nexport interface Hint {\n\t/**\n\t * Note that `label` is a String and note a vector of children. This means\n\t * that the fragment syntax won't work and markdown may or may not work in\n\t * the label. Default: \"hint\".\n\t */\n\tlabel?: Children;\n\tchildren: Children;\n\temphasis: Emphasis;\n\tsizable?: SizablePropsGroup;\n\tmarkdown_title_depth?: HeadingDepth;\n}\n\n/**\n * ## Example Usage\n * \n * This component unlike most others does not rely on conundrum's jsx-like\n * syntax, but has it's own syntax:\n * \n * ```mdx\n * Some paragraph here...\n * \n * --- My section title ---\n * \n * Some other paragraph here.\n * ```\n * \n * You can still use the component as a regular Conundrum component if you like\n * though:\n * \n * ```jsx\n * <Hr> My section title </Hr>\n * ```\n */\nexport interface HrWithChildrenResult {\n\tchildren: Children;\n}\n\nexport interface Image {\n\tsizable?: SizablePropsGroup;\n\tsrc: ConundrumString;\n\tcaption?: Children;\n\tcaption_left?: ConundrumBoolean;\n\tcaption_right?: ConundrumBoolean;\n\tcontain?: ConundrumBoolean;\n\tcover?: ConundrumBoolean;\n\talt?: ConundrumString;\n\t/** An id is required to make sure all figures are counted. */\n\tid: DOMId;\n}\n\nexport interface InlineCodeResult {\n\tcontent: string;\n\tlang: SupportedCodeBlockSyntax;\n}\n\nexport interface InlineMathResult {\n\tbody: ConundrumString;\n}\n\nexport interface JavascriptBooleanResult {\n\tvalue: boolean;\n}\n\nexport interface JavascriptFunction {\n\tparameters: ParsedJavascriptElement[];\n\tjavascript_body: string;\n}\n\nexport type ConundrumNumber = \n\t| { tag: \"Int\", content: ConundrumInt }\n\t| { tag: \"Float\", content: ConundrumFloat };\n\n/**\n * Creating the distinction between ints and floats will be important as the\n * runtime will execute mostly in Rust, and being able to parse some of the\n * mdx, javascript inputs will be super useful.\n */\nexport interface JavascriptNumberResult {\n\tvalue: ConundrumNumber;\n}\n\nexport interface JavascriptObjectKeyValuePair {\n\tkey: string;\n\tvalue: ParsedElement;\n}\n\nexport interface JavascriptObjectResult {\n\tdata: Map<string, ParsedElement>;\n}\n\nexport interface JavascriptStringResult {\n\tvalue: string;\n\tdelimiter: string;\n}\n\nexport interface JsxStringPropertyResult {\n}\n\n/**\n * ## Local Video\n * \n * For embedding a local video in your note.\n * \n * ### Example\n * \n * ```tsx\n * <Video\n * path=\"/Some/local/file/path/myVideo.mp4\"\n * id=\"myOptionalId\"\n * />\n * ```\n * \n * You can then use the id of the video to link to specific time stamps using\n * the `[my link content](video:myOptionalId@4:32)` to jump to 4 minutes and 32\n * seconds.\n */\nexport interface LocalVideoComponent {\n\tpath: ConundrumString;\n\t/** An optional user defined id used for video timestamp links. */\n\tid?: ConundrumString;\n\tsizable: SizablePropsGroup;\n}\n\nexport interface MarkdownBoldAndItalicTextResult {\n\tchildren: Children;\n}\n\nexport interface MarkdownBoldTextResult {\n\tchildren: Children;\n}\n\nexport type MarkdownComponentOptionData<T> = \n\t| { tag: \"AsMap\", content: MarkdownComponentOptionMap<T> }\n\t| { tag: \"AsVariant\", content: T };\n\nexport interface MarkdownComponentOptions<T> {\n\tmarkdown: MarkdownComponentOptionData<T>;\n}\n\nexport interface MarkdownHeadingResult {\n\tdepth: number;\n\t/**\n\t * The indentation level to be used when displaying this in an inline table\n\t * of contents, not necessarily the level of the heading since some heading\n\t * lists will skip a depth.\n\t */\n\ttab_depth: number;\n\tchildren: Children;\n\tsubtitle?: Children;\n\tid: DOMId;\n}\n\n/**\n * The same as the `MarkdownHeadingResult` struct but wth the children\n * rendered.\n */\nexport interface MarkdownHeadingStringifiedResult {\n\tdepth: number;\n\ttab_depth: number;\n\tcontent: string;\n\tid: string;\n}\n\nexport interface MarkdownHorizontalRule {\n}\n\nexport interface MarkdownItalicTextResult {\n\tchildren: Children;\n}\n\nexport type MarkdownLinkTarget = \n\t/**\n\t * Any generic url that is not handled internally by the conundrum\n\t * framework.\n\t */\n\t| { tag: \"Url\", content: string }\n\t/** This currently only supports linking to id's on the same page. */\n\t| { tag: \"DomId\", content: DOMId }\n\t| { tag: \"NoteId\", content: string }\n\t| { tag: \"AudioTimestamp\", content: Timestamp }\n\t| { tag: \"VideoTimestamp\", content: Timestamp };\n\nexport interface MarkdownLinkResult {\n\ttext: Children;\n\turl: MarkdownLinkTarget;\n}\n\nexport interface MarkdownLinkResultStringified {\n\ttext: string;\n\turl: MarkdownLinkTarget;\n}\n\nexport interface MarkdownParagraphResult {\n\tchildren: Children;\n\tterminator: ParsedElement;\n}\n\nexport interface MarkdownStrikeThroughTextResult {\n\tchildren: Children;\n}\n\nexport interface MarkdownTable {\n\theading: MarkdownTableHeadingRow;\n\talignment: MarkdownTableAlignmentRow;\n\trows: MarkdownTableRow[];\n}\n\n/** The 'math' is embedded in `.jsx` as a child. */\nexport interface MathData {\n\tdisplay: boolean;\n\t/**\n\t * The `idx` field will only be set for equations where display=true, for\n\t * obvious reasons.\n\t */\n\tidx?: number;\n\t/** An optional user provided id, only applicable for block-level math. */\n\tid?: string;\n\t/** The primary math content. */\n\tcontent: string;\n}\n\nexport interface TagResult {\n\tbody: string;\n}\n\nexport interface NoteOutgoingLinkResult {\n\t/** The user defined id on the target note. */\n\tlink_to_note_id: string;\n}\n\n/**\n * ## Template (HTML)\n * \n * ```askama\n * <a role=\"button\" data-cdrm-for=\"{{anchor_id}}\" class=\"cdrm-footnote w-full h-full text-foreground/80 hover:text-foreground transition-colors duration-300 flex flex-col justify-start items-start cursor-pointer text-sm py-1 not-prose text-nowrap\">\n * {{idx | safe}}.\n * </a>\n * <div class=\"cdrm-footnote-body w-full not-prose\">\n * {{body | safe}}\n * </div>\n * ```\n */\nexport interface RenderedFootnoteResult {\n\t/** The rendered Conundrum content representing the body of the footnote. */\n\tbody: string;\n\t/** The id of the anchor element associated with this footnote. */\n\tanchor_id: DOMId;\n\t/**\n\t * The 0 based index of the anchor, the way it appears in the document...\n\t * Not necessarily the user provided index that is used as the key of\n\t * the footnote results map.\n\t */\n\tidx: number;\n}\n\n/**\n * Just like the `AnyComponentName`, except this is unique where the\n * AnyComponentName allows for component aliases.\n */\nexport type AnyComponentKey = \n\t| { tag: \"AutoInserted\", content: AutoInsertedComponentName }\n\t| { tag: \"Embeddable\", content: EmbeddableComponentId }\n\t| { tag: \"General\", content: WebGlueCodeGeneralFiles }\n\t| { tag: \"Docs\", content: DocumentationComponentName }\n\t| { tag: \"Markdown\", content: MarkdownElementGlueKey };\n\nexport interface MdxParsingResult {\n\tnote_id?: string;\n\tcontent: string;\n\ttags: TagResult[];\n\tfront_matter?: FrontMatterResult;\n\tordered_citation_keys: string[];\n\tdictionary_entries: DictionaryEntryResult[];\n\toutgoing_links: NoteOutgoingLinkResult[];\n\ttoc: MarkdownHeadingStringifiedResult[];\n\t/**\n\t * Always set to false initially, but can be set to true by certain parsers\n\t * to avoid further parsing.\n\t */\n\tignore_all_parsers: boolean;\n\tai_secondary_parse_requests: AiSerializationRequestPhase1[];\n\t/**\n\t * The map of the user provided equation id (to the `EqRef` component) and\n\t * the index that the equation appears.\n\t */\n\teq_ref_map: Record<string, number>;\n\twarnings: ConundrumError[];\n\t/**\n\t * A map of type `Map<The anchor index of the footnote, FootnoteResult>`.\n\t * This field isn't populated until the footnotes are rendered at the end,\n\t * so don't rely on this data during parsing *or* compilation. Use the\n\t * field on `ParseState` instead.\n\t */\n\tfootnotes: Record<number, RenderedFootnoteResult>;\n\tincluded_components: AnyComponentKey[];\n}\n\nexport enum MermaidRouteStyle {\n\tOrthogonal = \"orthogonal\",\n\tDirect = \"direct\",\n\tPolyline = \"polyline\",\n}\n\nexport enum MermaidLayoutEngine {\n\tFluxLayered = \"flux-layered\",\n\tMermaidLayered = \"mermaid-layered\",\n\tElkLayered = \"elk-layered\",\n\tELkTree = \"elk-mrtree\",\n}\n\nexport enum MermaidTheme {\n\tAuto = \"auto\",\n\tZincLight = \"zinc-light\",\n\tZincDark = \"zinc-dark\",\n\tTokyoNight = \"tokyo-night\",\n\tTokyoNightStorm = \"tokyo-night-storm\",\n\tTokyoNightLight = \"tokyo-night-light\",\n\tCatppuccinMocha = \"catppuccin-mocha\",\n\tCatppuccinLatte = \"catppuccin-latte\",\n\tNord = \"nord\",\n\tNordLight = \"nord-light\",\n\tDracula = \"dracula\",\n\tGithubLight = \"github-light\",\n\tGithubDark = \"github-dark\",\n\tSolarizedLight = \"solarized-light\",\n\tSolarizedDark = \"solarized-dark\",\n\tOneDark = \"one-dark\",\n}\n\nexport interface MermaidCodeBlock {\n\tcontent: string;\n\tscale?: ConundrumNumber;\n\tpadding?: ConundrumNumber;\n\tnode_padding_y?: ConundrumNumber;\n\tnode_padding_x?: ConundrumNumber;\n\troute_style?: MermaidRouteStyle;\n\tlayout?: MermaidLayoutEngine;\n\ttheme: MermaidTheme;\n}\n\nexport interface ModelSelection {\n\t/** Stable provider key, such as `ollama` or `openai`. */\n\tprovider: string;\n\t/** Provider-specific model identifier. */\n\tmodel_id: string;\n}\n\nexport interface NextJsConundrumOutput {\n\tfiles: BlogFileSummary[];\n\t/**\n\t * The project's `blog` settings, with the title and description filled in from the\n\t * project when unset. Missing from output written before it existed.\n\t */\n\tblog: BlogConfig;\n}\n\nexport interface OrderedListItem {\n\theading: Children;\n\tbody?: Children;\n\t/** n will be none if the `n.` syntax was used instead of `1.`. */\n\tn?: number;\n}\n\nexport interface OrderedListModel {\n\titems: OrderedListItem[];\n}\n\n/**\n * The goal with these modifiers is to have a few different compile targets\n * (markdown, mdx, jsx, eventually straight to html/js, and then to an AST that\n * can be handled by other UI ecosystems), and these modifiers is how we can\n * achieve that.\n * \n * All modifiers that start with `TargetXYZ` are applied as sort of a\n * collection of other modifiers, or at least that's how they're intended to\n * work.\n */\nexport enum ConundrumModifier {\n\tHideEmojis = \"HideEmojis\",\n\t/**\n\t * The goal with this flag is to make **some** components collapsable to be\n\t * inline, even when they traditionally are not. This will likely be\n\t * buggy, producing some good output in some cases but some\n\t * questionable output in others.\n\t * \n\t * As the list of component properties grows, this output will become\n\t * customizable directly in your note.\n\t */\n\tPreferInlineMarkdownSyntax = \"PreferInlineMarkdownSyntax\",\n\t/** Use this alongside a math-mode target to output math in an inline style. */\n\tMathModeInline = \"MathModeInline\",\n\t/**\n\t * This is really only useful for when your environment can't support any\n\t * other output format.\n\t */\n\tDecoratedPlainText = \"DecoratedPlainText\",\n\t/**\n\t * Set this flag when the output is intended to be consumed by AI, probably\n\t * with the `.PreferMarkdownSyntax` flag.\n\t */\n\tForAIInput = \"ForAIInput\",\n\t/**\n\t * When this component is to be used for search text input, all of the\n\t * component jsx and mdx syntax will be removed, leaving only\n\t * searchable text.\n\t */\n\tForSearchInput = \"ForSearchInput\",\n\t/** Don't touch the code blocks, just return them exactly as is. */\n\tCodeBlocksAsIs = \"CodeBlocksAsIs\",\n\t/**\n\t * Output a standalone application capable of being viewed completely\n\t * offline, with all fonts, javascript and rendered math embedded directly\n\t * into a single html file.\n\t */\n\tStandalone = \"Standalone\",\n\t/**\n\t * This is currently required in React environments to work around the\n\t * React render cycle. Since almost everything is wrapepd in a series\n\t * of iiife's, kind of working like React's useEffect hook, embedding\n\t * the javascript as a script tag will ensure that the components\n\t * all have the proper listeners applied. So far it comes out to only about\n\t * 200 lines of javascript.\n\t */\n\tEmbedJavascript = \"EmbedJavascript\",\n}\n\nexport enum EmbeddableComponentName {\n\tToc = \"Toc\",\n\tAdmonition = \"Admonition\",\n\tHl = \"Hl\",\n\tHighlight = \"Highlight\",\n\tUl = \"Ul\",\n\tUnderline = \"Underline\",\n\tColor = \"Color\",\n\tCard = \"Card\",\n\tGrid = \"Grid\",\n\tUtlityContainer = \"Container\",\n\tHrWithChildren = \"Hr\",\n\tHint = \"Hint\",\n\tQuote = \"Quote\",\n\tEmoji = \"Emoji\",\n\tEqRef = \"EqRef\",\n\tTabs = \"Tabs\",\n\tTab = \"Tab\",\n\tImage = \"Image\",\n\tYoutube = \"Youtube\",\n\tLocalVideo = \"Video\",\n}\n\nexport enum SupportedCodeBlockTheme {\n\tThirteenThirtySeven = \"1337\",\n\tColdarkCold = \"Coldark-Cold\",\n\tColdarkDark = \"Coldark-Dark\",\n\tDarkneon = \"DarkNeon\",\n\tDracula = \"Dracula\",\n\tGithub = \"GitHub\",\n\tMonokaiExtended = \"Monokai Extended\",\n\tMonokaiExtendedBright = \"Monokai Extended Bright\",\n\tMonokaiExtendedLight = \"Monokai Extended Light\",\n\tMonoakaiExtendedOrigin = \"Monokai Extended Origin\",\n\tNord = \"Nord\",\n\tOnehalfdark = \"OneHalfDark\",\n\tOnehalflight = \"OneHalfLight\",\n\tSolarizedDark = \"Solarized (dark)\",\n\tSolarizedLight = \"Solarized (light)\",\n\tSublimeSnazzy = \"Sublime Snazzy\",\n\tTwodark = \"TwoDark\",\n\tVisualStudioDarkPlus = \"Visual Studio Dark+\",\n\tAnsi = \"ansi\",\n\tBase16 = \"base16\",\n\tBase16_256 = \"base16-256\",\n\tGruvboxDark = \"gruvbox-dark\",\n\tGruvboxLight = \"gruvbox-light\",\n\tZenburn = \"zenburn\",\n}\n\nexport interface UIParams {\n\tdark_mode: boolean;\n\t/** A number 0-n, where n > 1 increases the fontsize. */\n\tfont_scalar: number;\n\tmath_font_scalar: number;\n\tsyntax_theme?: SupportedCodeBlockTheme;\n}\n\n/** How `cdrm` stores the compiled notes for a website. */\nexport enum BlogStorage {\n\t/** One JSON file, imported directly by the site. */\n\tJson = \"json\",\n\t/** One SQLite database with a full-text search index, read by `@conundrum/ts/server`. */\n\tSqlite = \"sqlite\",\n}\n\nexport enum ConundrumCompileTarget {\n\tJsx = \"jsx\",\n\tHtml = \"html\",\n\tMarkdown = \"markdown\",\n\tPlainText = \"text\",\n\tMdx = \"mdx\",\n\tMathModeSvg = \"math_svg\",\n}\n\n/** This is the core 'input' for Conundrum. */\nexport interface ParseConundrumOptions {\n\t/**\n\t * The id of your note. This can be generic, unique to each application,\n\t * but so-long as the note has the **concept** of an id the id can be\n\t * inserted into certain components to make it easier for the front-end\n\t * to collect data without the need for complicated outside state.\n\t */\n\tnote_id?: string;\n\t/** Your conundrum content, obviously. */\n\tcontent: string;\n\t/**\n\t * Kind of the core piece of Conundrum, the ability to write in a superset\n\t * of Markdown and to compile to a variety of targets, including just\n\t * regular, traditional markdown (the goal is to comply with the Commonmark\n\t * spec eventually, we're still missing some things that are being cleaned\n\t * up by the runtime environment).\n\t */\n\tmodifiers: ConundrumModifier[];\n\t/**\n\t * Hide specific components that are incompatable with the target output\n\t * environment. This is done automatically with the `.ForAiInput` flag\n\t * for all AI input components so not to confuse the AI, but there\n\t * maybe other use cases as well. Any component added here will render\n\t * _nothing_, but it's state will still be applied to the result.\n\t */\n\thide_components: EmbeddableComponentName[];\n\tui_params: UIParams;\n\ttarget: ConundrumCompileTarget;\n\ttrusted: boolean;\n}\n\n/**\n * ## Template (HTML)\n * ```askama\n * <sup data-cdrm-cit-key=\"{{key}}\">{{idx + 1}}</sup>\n * ```\n */\nexport interface ParsedCitation {\n\tkey: string;\n\tfull_match: string;\n\tidx: number;\n}\n\nexport interface ParsedInspectionRequest {\n\t/** An EmbeddableComponentName or InContentDocumentationId */\n\tkeyword: string;\n\tlevel: number;\n\tfull_match: string;\n}\n\nexport interface ParsedOutgoingNoteLink {\n\t/** The user-defined id of the note which is being linked to. */\n\tnote_id: string;\n\t/** The text content of the link. `[The stuff here](note:MyNote)` */\n\tcontent: Children;\n\t/**\n\t * The full content of the input string that represents this outgoing note\n\t * link.\n\t */\n\tfull_match: string;\n}\n\n/**\n * # Template (HTML)\n * \n * ```askama\n * <span data-cdrm-tag-body=\"{{body}}\" class=\"bg-primary hover:bg-primary/80 transition-colors duration-300 cursor-pointer text-primary-foreground rounded p-1 py-0.5\" onclick=\"window.conundrum.handleTagClick(event)\">#{{body}}</span>\n * ```\n */\nexport interface ParsedTag {\n\t/** The tag's body */\n\tbody: string;\n\t/** The full match of the content that was originally in the note. */\n\tfull_match: string;\n\tmarkdown?: InlineMarkdownOverride;\n}\n\nexport enum QuoteMarkdownVariants {\n\tHide = \"hide\",\n\tBlockQuote = \"blockquote\",\n\tBlockQuoteAndSource = \"blockquote+source\",\n}\n\nexport interface Quote {\n\t/** The primary content of the quote */\n\tcontent: Children;\n\t/** An optional source of the quote */\n\tsource?: Children;\n\t/**\n\t * An optional `sourceId` that can be used to group quotes throughout\n\t * a user's collection of notes based on where they appear.\n\t */\n\tsource_id?: ConundrumString;\n\tsizable: SizablePropsGroup;\n\tmarkdown_options?: MarkdownComponentOptions<QuoteMarkdownVariants>;\n}\n\nexport type ConundrumComponentType = \n\t| { tag: \"Toc\", content: TableOfContents }\n\t| { tag: \"Container\", content: UtilityContainer }\n\t| { tag: \"Card\", content: Card }\n\t| { tag: \"Tabs\", content: TabsGroup }\n\t| { tag: \"Tab\", content: Tab }\n\t| { tag: \"Grid\", content: ResponsiveGrid }\n\t| { tag: \"Hr\", content: HrWithChildrenResult }\n\t| { tag: \"Admonition\", content: Admonition }\n\t| { tag: \"Hint\", content: Hint }\n\t| { tag: \"Ul\", content: Underline }\n\t| { tag: \"Hl\", content: Highlight }\n\t| { tag: \"Emoji\", content: EmojiResult }\n\t| { tag: \"Quote\", content: Quote }\n\t| { tag: \"EqRef\", content: EquationReference }\n\t| { tag: \"EmojiDocsDemo\", content: EmojiDocsDemo }\n\t| { tag: \"Image\", content: Image }\n\t| { tag: \"Color\", content: ColorComponent }\n\t| { tag: \"Youtube\", content: YoutubeComponent }\n\t| { tag: \"LocalVideo\", content: LocalVideoComponent };\n\nexport interface ReactComponentSelfClosingResult {\n\tfull_text: string;\n\tcomponent: ConundrumComponentType;\n}\n\nexport interface ReactComponentWithChildrenResult {\n\tfull_text: string;\n\tcomponent: ConundrumComponentType;\n}\n\nexport type NumberOrSizable = \n\t| { tag: \"Sizable\", content: SizableOption }\n\t| { tag: \"Number\", content: ConundrumNumber };\n\n/**\n * ## Example Usage\n * \n * ```tsx\n * <Grid small={1} large={2}>\n * <Container>\n * My item one\n * </Container>\n * <Container>\n * My item one\n * </Container>\n * </Grid>\n * ```\n * Or if you don't need responsiveness:\n * ```tsx\n * <Grid columns={2}>\n * <Container>\n * My item one\n * </Container>\n * <Container>\n * My item one\n * </Container>\n * </Grid>\n * ```\n */\nexport interface ResponsiveGrid {\n\tsizable?: SizablePropsGroup;\n\tcolumns?: GridColumnProps;\n\tchildren: Children;\n\tresponsive?: NumberOrSizable;\n\tfit?: ConundrumBoolean;\n\temphasis?: Emphasis;\n}\n\nexport interface StringUnion {\n\topts: string[];\n\tvalue: string;\n}\n\nexport interface Tab {\n\t/** The label of the button that toggles this tab. */\n\tlabel: ConundrumString;\n\t/**\n\t * This is only required if the `label` field occurs more than once in the\n\t * same `Tabs` component. Each `Tab` must have a unique `id` field, it's\n\t * just set to the label by default.\n\t */\n\tid?: ConundrumString;\n\tchildren: Children;\n\tinitial?: ConundrumBoolean;\n}\n\nexport interface TableOfContents {\n\texpanded?: ConundrumBoolean;\n\tid: DOMId;\n}\n\n/**\n * Group and organize your notes by swappable tabs. Pretty self explanatory\n * honestly...\n * \n * ### Usage\n * > I know it's called `TabsGroup` here, but in Conundrum it's actually\n * > implemented as `Tabs`.\n * \n * ```jsx\n * <Tabs>\n * <Tab label=\"My label\">\n * My tab content one\n * </Tab>\n * <Tab label=\"My label 2\">\n * My tab content two\n * </Tab>\n * <Tab label=\"My label\"\n * // This id is required because the\n * // label appears more than once!\n * id=\"myUniqueId\">\n * My tab content three\n * </Tab>\n * </Tabs>\n * ```\n */\nexport interface TabsGroup {\n\t/** The styles applied to the active tab. Default: `.card` */\n\temphasis?: Emphasis;\n\tsubtle: ConundrumBoolean;\n\t/**\n\t * The `Tabs` component extends the `SizablePropsGroup` struct, but be\n\t * careful... you're getting into the struggles of a developer now as\n\t * these responsive containers can be difficult to make look good on\n\t * all screen sizes. You'll get the hang of it, but be sure not to be too\n\t * ambitious and implement a look that _barely_ fits, because it almost\n\t * surely **won't** fit when you rotate the device or open another\n\t * window.\n\t */\n\tsizable?: SizablePropsGroup;\n\tchildren: Children;\n\tid: DOMId;\n}\n\n/**\n * If only 2 components are passed, as in `[My link](video:myId@4:30)`, it is\n * assumed to be minutes and seconds. If three components are passed, it will\n * be applied as `minutes:seconds:hours`\n */\nexport interface Timestamp {\n\tmin: number;\n\thours?: number;\n\tsec: number;\n}\n\nexport interface TitleGroup {\n\ttitle: string;\n\tsubtitle?: string;\n}\n\nexport enum MCPToolName {\n\tHelloWorld = \"hello_world\",\n\tQueryWorkspaces = \"query_workspaces\",\n}\n\nexport interface ToolExecution {\n\tid: DatabaseId;\n\ttool_name: MCPToolName;\n\targs?: JsonContent;\n\tconvo_id: DatabaseId;\n\tagent_id?: DatabaseId;\n\tctime: DateTime;\n}\n\nexport interface Underline {\n\tchildren: Children;\n\t/** Default: .highlight */\n\temphasis: Emphasis;\n\tthin?: ConundrumBoolean;\n\tthick?: ConundrumBoolean;\n\t/** Default: .Plain */\n\tmarkdown?: InlineMarkdownOverride;\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * - My normal list item\n * - My cool item's heading\n * My cool list item's body, indented either 2 spaces or 1 tab.\n * Unlike other markdown based parsers, Conundrum seperates the list\n * item's body from it's content in the AST, letting developers treat\n * each piece of data accordingly.\n * - This will be a nested item, indented 4 spaces.\n * ```\n */\nexport interface UnorderedListItem {\n\theading: Children;\n\tbody?: Children;\n}\n\nexport interface UnorderedListModel {\n\titems: UnorderedListItem[];\n}\n\nexport enum TaskListCompletionToken {\n\tUncertain = \"?\",\n\tComplete = \"x\",\n\tPending = \"-\",\n\tImportant = \"!\",\n\tIncomplete = \"\",\n}\n\n/**\n * ## Example Usage\n * \n * ```mdx\n * - My normal list item\n * - My cool item's heading\n * My cool list item's body, indented either 2 spaces or 1 tab.\n * Unlike other markdown based parsers, Conundrum seperates the list\n * item's body from it's content in the AST, letting developers treat\n * each piece of data accordingly.\n * - This will be a nested item, indented 4 spaces.\n * ```\n */\nexport interface UnorderedTaskListItem {\n\theading: Children;\n\tbody?: Children;\n\tstatus: TaskListCompletionToken;\n}\n\nexport interface UnorderedTaskListModel {\n\titems: UnorderedTaskListItem[];\n}\n\nexport interface UserMessage {\n\tid: DatabaseId;\n\tconvo_id: DatabaseId;\n\t/**\n\t * If the sender is the user, this is the agent requested. If the sender is\n\t * AI, this is the AI sending the response.\n\t */\n\tagent_id: DatabaseId;\n\tbody: string;\n\tctime: DateTime;\n}\n\nexport interface UserMessageInput {\n\tconvo_id?: DatabaseId;\n\t/**\n\t * If the sender is the user, this is the agent requested. If the sender is\n\t * AI, this is the AI sending the response.\n\t */\n\tagent_id?: DatabaseId;\n\tmodel?: ModelSelection;\n\tbody: string;\n}\n\n/**\n * The `Container` component is an intentionally almost entirely unstyled\n * component that accepts most of the _generic_ properties accepted elsewhere.\n * This means that it takes an optional `Emphasis` as a boolean, and all of the\n * `SizableObject` properties like `width`, `margin`, `padding`, `text` for\n * font size and a handful of positionable props. The goal with the `Container`\n * component is to provide a blank canvas to allow you to create some\n * responsive & informative layouts that fit your own use case.\n */\nexport interface UtilityContainer {\n\tsizable: SizablePropsGroup;\n\temphasis?: Emphasis;\n\tchildren: Children;\n}\n\n/**\n * ## Youtube\n * \n * For embedding YouTube videos directly in your notes. The video renders in a\n * responsive 16:9 player (capped at `768px` wide) loaded from\n * `youtube-nocookie.com`, and accepts every [`SizablePropsGroup`] property so\n * it can be floated, bordered, rounded, and so on.\n * \n * The full user-facing documentation lives in\n * `embedded/component_docs/youtube-full.mdx` and is registered through\n * [`youtube_component_config`](super::youtube_config::youtube_component_config).\n * \n * ### Properties\n * \n * - `url` (required): any common YouTube url (`watch?v=`, `youtu.be/`,\n * `/embed/`, `/shorts/`, `/live/`) or a bare 11 character video id. A start\n * time in the url (`t=90`, `t=90s`, `start=90`) is honored.\n * - `id` (optional): a user defined id used for timestamp links.\n * - Any sizable property.\n * \n * ### Example\n * \n * ```tsx\n * <Youtube\n * url=\"https://youtube.com/watch?v=someVideoId\"\n * id=\"myOptionalId\"\n * />\n * ```\n * \n * You can then use the id of the video to link to specific time stamps using\n * the `[my link content](video:myOptionalId@4:32)` to jump to 4 minutes and 32\n * seconds.\n */\nexport interface YoutubeComponent {\n\turl: ConundrumString;\n\t/** An optional user defined id used for video timestamp links. */\n\tid?: ConundrumString;\n\tsizable: SizablePropsGroup;\n}\n\nexport type AIError = \n\t| { tag: \"ConundrumError\", content: ConundrumErrorVariant }\n\t| { tag: \"FailToInitializeModel\", content: string }\n\t| { tag: \"SkippingIrrelevantAIOutput\", content?: undefined }\n\t| { tag: \"EmbeddingFail\", content: string }\n\t| { tag: \"InvalidProps\", content: string }\n\t| { tag: \"InvalidEnvironment\", content: string }\n\t| { tag: \"InvalidLocalProvider\", content?: undefined }\n\t| { tag: \"InvalidRemoteProvider\", content?: undefined }\n\t| { tag: \"FailToExtractText\", content: string };\n\nexport enum AiSerializationRequestType {\n\tCreateNoteSpecificStudyGuide = \"CreateNoteSpecificStudyGuide\",\n\tSummarizeNote = \"SummarizeNote\",\n\tRecommendResearch = \"RecommendResearch\",\n}\n\nexport type AnyComponentName = \n\t| { tag: \"UserEmbedded\", content: EmbeddableComponentName }\n\t| { tag: \"Docs\", content: DocumentationComponentName }\n\t| { tag: \"AutoInserted\", content: AutoInsertedComponentName };\n\nexport enum AutoInsertedComponentName {\n\tNoteLink = \"NoteLink\",\n\tAutoInsertedTag = \"AutoInsertedTag\",\n\tFlusterCitation = \"FlusterCitation\",\n\tDictionaryEntry = \"DictionaryEntry\",\n\tFlusterAiParsePendingContainer = \"FlusterAiParsePendingContainer\",\n\tAutoInsertedHeading = \"AutoInsertedHeading\",\n\tAutoInsertedCodeBlock = \"AutoInsertedCodeBlock\",\n\tAutoInsertedBlockQuote = \"AutoInsertedBlockQuote\",\n\tAutoInsertedMathBlock = \"AutoInsertedMathBlock\",\n\tAutoInsertedMarkdownLink = \"AutoInsertedMarkdownLink\",\n\tAutoInsertedMarkdownParagraph = \"AutoInsertedMarkdownParagraph\",\n}\n\nexport enum CdrmEnvVariable {\n\tLogLevel = \"CDRM_LOG_LEVEL\",\n\tServerPort = \"CDRM_SERVER_PORT\",\n\tCSLFilePath = \"CDRM_CSL_FILE_PATH\",\n}\n\nexport type ChatEvent = \n\t/**\n\t * Returned directly after the user sends their message, only attaching an\n\t * id and the ctime.\n\t */\n\t| { type: \"user_message_bounce_back\", content: {\n\tuser_message: UserMessage;\n}}\n\t| { type: \"text_delta\", content: {\n\ttext: string;\n\tis_reasoning: boolean;\n}}\n\t| { type: \"redacted\", content: {\n\ttext: string;\n}}\n\t/** A complete block of reasoning logic. */\n\t| { type: \"reasoning_block\", content: {\n\ttext: string;\n}}\n\t/** A summary of the reasoning content. */\n\t| { type: \"reasoning_summary\", content: {\n\ttext: string;\n}}\n\t| { type: \"encrypted\", content: {\n\ttext: string;\n}}\n\t| { type: \"done\", content: {\n\tinput_tokens: number;\n\toutput_tokens: number;\n\ttotal_tokens: number;\n}}\n\t| { type: \"tool_call\", content: ToolExecution }\n\t| { type: \"tool_result_text\", content: {\n\tcontent: string;\n}}\n\t| { type: \"tool_result_image\", content: {\n\timage_type?: string;\n}}\n\t| { type: \"user_content\", content: {\n\ttext: string;\n}}\n\t| { type: \"many\", content: ChatEvent[] };\n\nexport type CodeBlockLanguage = \n\t| { tag: \"DefaultLanguage\", content?: undefined }\n\t| { tag: \"UserProvided\", content: string };\n\n/**\n * To enforce some uniformity and ease-of-use between components, this enum\n * represents a list of commonly used property keys. The code itself doesn't\n * care that these keys are the same, but the predictability should help new\n * users.\n */\nexport enum CommonComponentPropertyKey {\n\tMarkdownHeading = \"markdownHeading\",\n\t/** Deprecated in favor of a shared struct */\n\tInlineMarkdownOverride = \"markdown\",\n\tComponentMarkdownProps = \"md\",\n}\n\nexport type ConundrumErrorVariant = \n\t| { tag: \"NotImplemented\", content?: undefined }\n\t| { tag: \"MultiThreadingError\", content?: undefined }\n\t| { tag: \"TypeConversionError\", content: {\n\tfrom: string;\n\tto: string;\n}}\n\t| { tag: \"CodeblockMetaDataNotExist\", content?: undefined }\n\t| { tag: \"KeyNotFound\", content?: undefined }\n\t| { tag: \"EmbeddedDataNotFound\", content?: undefined }\n\t| { tag: \"TerminatorNotFound\", content?: undefined }\n\t| { tag: \"FailToFindTitleGroup\", content?: undefined }\n\t| { tag: \"FailToFindComponent\", content: string }\n\t| { tag: \"FailToGenerateString\", content?: undefined }\n\t| { tag: \"FrontMatterError\", content?: undefined }\n\t| { tag: \"UserFacingGeneralParserError\", content: ConundrumError }\n\t/**\n\t * Deprecated in favor of MissingComponentProperty and\n\t * InvalidComponentProperty.\n\t */\n\t| { tag: \"UserFacingMissingOrIncorrectProperty\", content: ConundrumError }\n\t| { tag: \"MissingRequiredComponentProperty\", content: {\n\tcomponent: AnyComponentName;\n\tkey: string;\n\texpected: string;\n}}\n\t| { tag: \"InvalidComponentProperty\", content: {\n\tcomponent: AnyComponentName;\n\tkey: string;\n\texpected: string;\n\t/**\n\t * If the type is not inferible, use `an unknown type` to align with\n\t * the error verbiage.\n\t */\n\treceived: string;\n}}\n\t| { tag: \"InvalidCSSVariableSyntax\", content: string }\n\t| { tag: \"InternalParserError\", content: ConundrumError }\n\t| { tag: \"EnvVarNotFound\", content: CdrmEnvVariable }\n\t| { tag: \"EmojiRenderError\", content: string }\n\t| { tag: \"WasmError\", content: string }\n\t| { tag: \"InvalidColor\", content: string }\n\t| { tag: \"MermaidError\", content: string }\n\t| { tag: \"InvalidCSL\", content?: undefined }\n\t| { tag: \"EmptyBibliography\", content?: undefined }\n\t| { tag: \"InvalidBiblatex\", content: string }\n\t| { tag: \"InvalidSettingKey\", content: string }\n\t| { tag: \"SerializationError\", content: {\n\tentity_name: string;\n}};\n\nexport type ConundrumFSError = \n\t| { tag: \"GeneralFSError\", content?: undefined }\n\t| { tag: \"InvalidDataDirectory\", content?: undefined }\n\t| { tag: \"FileNotChildOfDir\", content: {\n\tparent: string;\n\tchild: string;\n}}\n\t| { tag: \"FsError\", content: string }\n\t| { tag: \"ConundrumError\", content: ConundrumErrorVariant }\n\t| { tag: \"PathSerializationError\", content?: undefined }\n\t| { tag: \"UnsupportedFileExtension\", content: string }\n\t| { tag: \"PathDoesntExist\", content: string }\n\t| { tag: \"NoFileExtensionFound\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidExtension\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidFileMeta\", content: {\n\ttarget_file: string;\n}}\n\t| { tag: \"InvalidDirectory\", content?: undefined };\n\nexport type ConundrumLogicToken = \n\t| { tag: \"Number\", content: ConundrumNumber }\n\t| { tag: \"String\", content: ConundrumString }\n\t| { tag: \"Bool\", content: ConundrumBoolean }\n\t| { tag: \"Object\", content: ConundrumObject }\n\t| { tag: \"Function\", content: ConundrumFunction };\n\nexport enum ConundrumWebEvents {\n\t/**\n\t * Useful for things like resizable pains, to more easily emit your own\n\t * resize event that Conundrum will handle to update the components\n\t * accordingly.\n\t */\n\tManualResize = \"cdrm-manual-resize\",\n\tCdrmContentLoaded = \"cdrm-content-loaded\",\n\tCodeblockCopied = \"cdrm-codeblock-copy\",\n\tNoteLinkClick = \"cdrm-note-id-link-click\",\n\tCopyToClipboard = \"cdrm-content-copied\",\n\tDictionaryEntryLabelClick = \"dictionary-entry-click\",\n\tTocItemClick = \"toc-item-click\",\n\tTagClick = \"tag-click\",\n}\n\nexport enum CopyToClipboardSource {\n\tEmojiName = \"emoji-name\",\n}\n\nexport enum DatabaseTable {\n\tEcosystemLog = \"ecosystem_log\",\n\tApplicationTheme = \"application_theme\",\n\tTag = \"tag\",\n\tTopic = \"topic\",\n\tSubject = \"subject\",\n\tCdrm = \"cdrm\",\n\tHTML = \"html\",\n\tPdf = \"pdf\",\n\tNotebook = \"notebook\",\n\tFrontMatter = \"front_matter\",\n\tTypst = \"typst\",\n\tUserWorkspace = \"user_workspace\",\n\tWorkspacePath = \"workspace_path\",\n\tQAPair = \"qa_pair\",\n\tChatConversation = \"chat_conversation\",\n\tAgentMessage = \"agent_message\",\n\tSystemPromptMessage = \"system_prompt_message\",\n\tUserMessage = \"user_message\",\n\tAgentReasoning = \"reasoning_block\",\n\tToolExecution = \"tool_execution\",\n\tAcademicResultMetric = \"academic_res_metric\",\n\tBibEntry = \"bib_entry\",\n\tAutoTaggable = \"auto_taggable\",\n\tMilestone = \"milestone\",\n\tAssignment = \"assignment\",\n\tAssignmentTag = \"assignment_tag\",\n\tAssignmentTopic = \"assignment_topic\",\n\tAssignmentSubject = \"assignment_subject\",\n\tAgentDescription = \"agent_description\",\n\tGitRepository = \"git_repository\",\n\tKeyboardShortcut = \"keyboard_shortcut\",\n\tEcosystemSetting = \"ecosystem_setting\",\n\tLongTermGoal = \"long_term_goal\",\n\tShortTermGoal = \"short_term_goal\",\n\tAlarm = \"alarm\",\n\tStreetAddress = \"street_address\",\n\tPhoneContact = \"phone_contact\",\n\t/** --- 'Joining' tables --- */\n\tWorkspaceRepository = \"workspace_repository\",\n\tMilestoneAlarm = \"milestone_alarm\",\n\t/** ---- Chunks ---- */\n\tCdrmChunk = \"cdrm_chunk\",\n\tTypstChunk = \"typst_chunk\",\n\tMessageChunk = \"message_chunk\",\n\tMCPToolRecord = \"mcp_tool\",\n\tDocumentationChunk = \"documentation_chunk\",\n\tNotebookCellChunk = \"notebook_cell_chunk\",\n\tHTMLChunk = \"html_chunk\",\n}\n\nexport enum DocumentationComponentName {\n\tInContentDocumentationContainer = \"InContentDocumentationContainer\",\n\tInContentDocsEmphasisTypeList = \"InContentDocsEmphasisTypeList\",\n\tInContentDocsHighlightDemo = \"InContentDocsHighlightDemo\",\n\tInContentDocsUnderlineDemo = \"InContentDocsUnderlineDemo\",\n\tEmojiDocumentationDemo = \"AutoInsertedNestedEmojiDocumentation\",\n}\n\n/** From typescript to swift. */\nexport enum EmbeddableComponentId {\n\tToc = \"toc\",\n\tAdmonition = \"admonition\",\n\tHl = \"highlight\",\n\tUl = \"underline\",\n\tColor = \"color\",\n\tQuote = \"quote\",\n\tCard = \"card\",\n\tGrid = \"grid\",\n\tUtlityContainer = \"util-container\",\n\tImage = \"image\",\n\tHrWithChildren = \"hr-with-children\",\n\tHint = \"embeddable-hint-component\",\n\tEmoji = \"emoji-component\",\n\tTabs = \"tab-group\",\n\tTab = \"tab-group-tab\",\n\tEqRef = \"equation-reference\",\n\tYoutube = \"youtube\",\n\tLocalVideo = \"video\",\n}\n\n/**\n * The code representation of the `?` or `??` flag. When you apply a `?` it\n * sets the documentation to `.Short`, and `.Full` when you apply 2 `??`.\n */\nexport enum InContentDocumentationFormat {\n\tFull = \"full\",\n\tShort = \"short\",\n}\n\n/**\n * These are all of the keys that are available for documentation, apart from\n * component specific documentation.\n * \n * The `Components??` flag described here will print a list of documented\n * components, which you can look into for further docs.\n */\nexport enum InContentDocumentationId {\n\tMarkdown = \"Markdown\",\n\tDocs = \"Docs\",\n\tSyntax = \"Syntax\",\n\tJsx = \"Jsx\",\n\tCode = \"Code\",\n\tSizableObject = \"Sizable\",\n\tEmphasis = \"Emphasis\",\n\tEmoji = \"Emoji\",\n\tComponents = \"Components\",\n\tAI = \"AI\",\n\tConundrum = \"Conundrum\",\n\tMermaid = \"Mermaid\",\n}\n\nexport enum InContentDocumentationSource {\n\tComponentDocs = \"component\",\n\tInternalDocs = \"internal-docs\",\n}\n\nexport enum MarkdownElementGlueKey {\n\tFootnotes = \"footnotes.js\",\n}\n\nexport enum MarkdownOutputVariantKey {\n\tInline = \"inline\",\n\tForAI = \"forAI\",\n\tGeneral = \"general\",\n}\n\nexport type ParsedCodeBlockVariant = \n\t| { tag: \"General\", content: GeneralCodeBlock }\n\t| { tag: \"Dictionary\", content: DictionaryCodeBlock }\n\t| { tag: \"AI\", content: GeneralCodeBlock }\n\t| { tag: \"Mermaid\", content: MermaidCodeBlock };\n\nexport enum ParserId {\n\tTags = \"tags\",\n\tCitations = \"citations\",\n\tDictionary = \"dictionary\",\n\tNoteLink = \"note_link\",\n\tDocumentation = \"docs\",\n\tAiTrigger = \"ai\",\n\tHrWithChildren = \"hr\",\n}\n\nexport enum WebGlueCodeGeneralFiles {\n\tStyles = \"styles.css\",\n\tKatexCss = \"katex.min.css\",\n\tKatex_ams_regular = \"katex_ams_regular.woff2\",\n\tKatex_caligraphic_bold = \"katex_caligraphic_bold.woff2\",\n\tKatex_caligraphic_regular = \"katex_caligraphic_regular.woff2\",\n\tKatex_fraktur_bold = \"katex_fraktur_bold.woff2\",\n\tKatex_fraktur_regular = \"katex_fraktur_regular.woff2\",\n\tKatex_main_bold = \"katex_main_bold.woff2\",\n\tKatex_main_bolditalic = \"katex_main_bolditalic.woff2\",\n\tKatex_main_italic = \"katex_main_italic.woff2\",\n\tKatex_main_regular = \"katex_main_regular.woff2\",\n\tKatex_math_bolditalic = \"katex_math_bolditalic.woff2\",\n\tKatex_math_italic = \"katex_math_italic.woff2\",\n\tKatex_sansserif_bold = \"katex_sansserif_bold.woff2\",\n\tKatex_sansserif_italic = \"katex_sansserif_italic.woff2\",\n\tKatex_sansserif_regular = \"katex_sansserif_regular.woff2\",\n\tKatex_script_regular = \"katex_script_regular.woff2\",\n\tKatex_size1_regular = \"katex_size1_regular.woff2\",\n\tKatex_size2_regular = \"katex_size2_regular.woff2\",\n\tKatex_size3_regular = \"katex_size3_regular.woff2\",\n\tKatex_size4_regular = \"katex_size4_regular.woff2\",\n\tKatex_typewriter_regular = \"katex_typewriter_regular.woff2\",\n\tNerdFont = \"Fira_Code_Regular.ttf\",\n}\n\n"],"names":["MarkdownTableAlignmentCell","Emphasis","SizableOption","SupportedCodeBlockSyntax","ConundrumErrorPurpose","InlineMarkdownOverride","MermaidRouteStyle","MermaidLayoutEngine","MermaidTheme","ConundrumModifier","EmbeddableComponentName","SupportedCodeBlockTheme","BlogStorage","ConundrumCompileTarget","QuoteMarkdownVariants","MCPToolName","TaskListCompletionToken","AiSerializationRequestType","AutoInsertedComponentName","CdrmEnvVariable","CommonComponentPropertyKey","ConundrumWebEvents","CopyToClipboardSource","DatabaseTable","DocumentationComponentName","EmbeddableComponentId","InContentDocumentationFormat","InContentDocumentationId","InContentDocumentationSource","MarkdownElementGlueKey","MarkdownOutputVariantKey","ParserId","WebGlueCodeGeneralFiles"],"mappings":"AA2FO,IAAK,+CAAAA,gCAAL;AACNA,8BAAA,SAAA,IAAU;AACVA,8BAAA,MAAA,IAAO;AACPA,8BAAA,OAAA,IAAQ;AACRA,8BAAA,QAAA,IAAS;AAJE,SAAAA;AAAA,GAAA,8BAAA,CAAA,CAAA;A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-3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const codegenTypeshare = require("./codegenTypeshare.cjs");
|
|
4
4
|
exports.AiSerializationRequestType = codegenTypeshare.AiSerializationRequestType;
|
|
5
5
|
exports.AutoInsertedComponentName = codegenTypeshare.AutoInsertedComponentName;
|
|
6
|
+
exports.BlogStorage = codegenTypeshare.BlogStorage;
|
|
6
7
|
exports.CdrmEnvVariable = codegenTypeshare.CdrmEnvVariable;
|
|
7
8
|
exports.CommonComponentPropertyKey = codegenTypeshare.CommonComponentPropertyKey;
|
|
8
9
|
exports.ConundrumCompileTarget = codegenTypeshare.ConundrumCompileTarget;
|
package/dist/framework.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"framework.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/framework.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { AiSerializationRequestType, AutoInsertedComponentName, CdrmEnvVariable, CommonComponentPropertyKey, ConundrumCompileTarget, ConundrumErrorPurpose, ConundrumModifier, ConundrumWebEvents, CopyToClipboardSource, DatabaseTable, DocumentationComponentName, EmbeddableComponentId, EmbeddableComponentName, Emphasis, InContentDocumentationFormat, InContentDocumentationId, InContentDocumentationSource, InlineMarkdownOverride, MCPToolName, MarkdownElementGlueKey, MarkdownOutputVariantKey, MarkdownTableAlignmentCell, MermaidLayoutEngine, MermaidRouteStyle, MermaidTheme, ParserId, QuoteMarkdownVariants, SizableOption, SupportedCodeBlockSyntax, SupportedCodeBlockTheme, TaskListCompletionToken, WebGlueCodeGeneralFiles } from "./codegenTypeshare.mjs";
|
|
1
|
+
import { AiSerializationRequestType, AutoInsertedComponentName, BlogStorage, CdrmEnvVariable, CommonComponentPropertyKey, ConundrumCompileTarget, ConundrumErrorPurpose, ConundrumModifier, ConundrumWebEvents, CopyToClipboardSource, DatabaseTable, DocumentationComponentName, EmbeddableComponentId, EmbeddableComponentName, Emphasis, InContentDocumentationFormat, InContentDocumentationId, InContentDocumentationSource, InlineMarkdownOverride, MCPToolName, MarkdownElementGlueKey, MarkdownOutputVariantKey, MarkdownTableAlignmentCell, MermaidLayoutEngine, MermaidRouteStyle, MermaidTheme, ParserId, QuoteMarkdownVariants, SizableOption, SupportedCodeBlockSyntax, SupportedCodeBlockTheme, TaskListCompletionToken, WebGlueCodeGeneralFiles } from "./codegenTypeshare.mjs";
|
|
2
2
|
export {
|
|
3
3
|
AiSerializationRequestType,
|
|
4
4
|
AutoInsertedComponentName,
|
|
5
|
+
BlogStorage,
|
|
5
6
|
CdrmEnvVariable,
|
|
6
7
|
CommonComponentPropertyKey,
|
|
7
8
|
ConundrumCompileTarget,
|
package/dist/server.cjs
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const node_fs = require("node:fs");
|
|
4
|
+
const node_sqlite = require("node:sqlite");
|
|
5
|
+
const relative_path_to_url = require("./relative_path_to_url-CJ7OhKNR.js");
|
|
6
|
+
const CONUNDRUM_DATABASE_VERSION = 1;
|
|
7
|
+
const databases = /* @__PURE__ */ new Map();
|
|
8
|
+
const openConundrumDatabase = (path) => {
|
|
9
|
+
const { mtimeMs } = node_fs.statSync(path);
|
|
10
|
+
const open = databases.get(path);
|
|
11
|
+
if (open?.mtimeMs === mtimeMs) {
|
|
12
|
+
return open.db;
|
|
13
|
+
}
|
|
14
|
+
open?.db.close?.();
|
|
15
|
+
const db = new node_sqlite.DatabaseSync(path, { readOnly: true });
|
|
16
|
+
const { user_version } = db.prepare("PRAGMA user_version").get();
|
|
17
|
+
if (user_version !== CONUNDRUM_DATABASE_VERSION) {
|
|
18
|
+
db.close();
|
|
19
|
+
throw new Error(
|
|
20
|
+
`${path} has schema version ${user_version}, but this version of @conundrum/ts reads version ${CONUNDRUM_DATABASE_VERSION}. Rebuild it with a matching cdrm.`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
databases.set(path, { mtimeMs, db });
|
|
24
|
+
return db;
|
|
25
|
+
};
|
|
26
|
+
const readBlogConfig = (db) => {
|
|
27
|
+
const row = db.prepare("SELECT value FROM meta WHERE key = 'blog'").get();
|
|
28
|
+
return row ? JSON.parse(row.value) : {};
|
|
29
|
+
};
|
|
30
|
+
const toFile = (row) => ({
|
|
31
|
+
relative_path: row.relative_path,
|
|
32
|
+
html: row.html,
|
|
33
|
+
tags: JSON.parse(row.tags),
|
|
34
|
+
front_matter: row.front_matter ? JSON.parse(row.front_matter) : void 0
|
|
35
|
+
});
|
|
36
|
+
const getConundrumNote = (db, relativePath) => {
|
|
37
|
+
const row = db.prepare("SELECT relative_path, front_matter, tags, html FROM notes WHERE relative_path = ?").get(relativePath);
|
|
38
|
+
return row ? toFile(row) : null;
|
|
39
|
+
};
|
|
40
|
+
const listConundrumNotes = (db) => db.prepare("SELECT relative_path, front_matter, tags, html FROM notes ORDER BY relative_path").all().map(toFile);
|
|
41
|
+
const SQLITE_HEADER = "SQLite format 3\0";
|
|
42
|
+
const outputs = /* @__PURE__ */ new Map();
|
|
43
|
+
const loadConundrumOutput = (path) => {
|
|
44
|
+
const { mtimeMs } = node_fs.statSync(path);
|
|
45
|
+
const cached = outputs.get(path);
|
|
46
|
+
if (cached && cached.mtimeMs === mtimeMs) {
|
|
47
|
+
return cached.output;
|
|
48
|
+
}
|
|
49
|
+
const bytes = node_fs.readFileSync(path);
|
|
50
|
+
let output;
|
|
51
|
+
if (bytes.subarray(0, SQLITE_HEADER.length).toString("latin1") === SQLITE_HEADER) {
|
|
52
|
+
const db = openConundrumDatabase(path);
|
|
53
|
+
output = { files: listConundrumNotes(db), blog: readBlogConfig(db) };
|
|
54
|
+
} else {
|
|
55
|
+
output = JSON.parse(bytes.toString("utf8"));
|
|
56
|
+
}
|
|
57
|
+
outputs.set(path, { mtimeMs, output });
|
|
58
|
+
return output;
|
|
59
|
+
};
|
|
60
|
+
const MARK_OPEN = "";
|
|
61
|
+
const MARK_CLOSE = "";
|
|
62
|
+
const escapeHtml = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
63
|
+
const toFtsQuery = (query) => query.split(/\s+/).map((w) => w.replace(/"/g, "")).filter((w) => w.length > 0).map((w) => `"${w}"*`).join(" ");
|
|
64
|
+
const searchConundrum = (db, options) => {
|
|
65
|
+
const match = toFtsQuery(options.query);
|
|
66
|
+
if (!match) {
|
|
67
|
+
return { query: options.query, total: 0, results: [] };
|
|
68
|
+
}
|
|
69
|
+
const where = ["notes_search MATCH ?"];
|
|
70
|
+
const params = [match];
|
|
71
|
+
if (options.listedOnly ?? true) {
|
|
72
|
+
const blog = readBlogConfig(db);
|
|
73
|
+
where.push("n.title IS NOT NULL", "n.summary IS NOT NULL");
|
|
74
|
+
for (const prefix of blog.hidden_paths ?? []) {
|
|
75
|
+
where.push("substr(n.relative_path, 1, ?) != ?");
|
|
76
|
+
params.push(prefix.length, prefix);
|
|
77
|
+
}
|
|
78
|
+
const hidden = blog.hidden_subjects ?? [];
|
|
79
|
+
if (hidden.length > 0) {
|
|
80
|
+
where.push(`(n.subject IS NULL OR n.subject NOT IN (${hidden.map(() => "?").join(", ")}))`);
|
|
81
|
+
params.push(...hidden);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (options.subject) {
|
|
85
|
+
where.push("n.subject = ?");
|
|
86
|
+
params.push(options.subject);
|
|
87
|
+
}
|
|
88
|
+
if (options.topic) {
|
|
89
|
+
where.push("n.topic = ?");
|
|
90
|
+
params.push(options.topic);
|
|
91
|
+
}
|
|
92
|
+
if (options.tag) {
|
|
93
|
+
where.push("EXISTS (SELECT 1 FROM note_tags t WHERE t.relative_path = n.relative_path AND t.tag = ?)");
|
|
94
|
+
params.push(options.tag);
|
|
95
|
+
}
|
|
96
|
+
const from = `FROM notes_search JOIN notes n ON n.relative_path = notes_search.relative_path WHERE ${where.join(" AND ")}`;
|
|
97
|
+
const { total } = db.prepare(`SELECT count(*) AS total ${from}`).get(...params);
|
|
98
|
+
const rows = db.prepare(
|
|
99
|
+
// Column weights: title, summary, subject, topic, tags, body.
|
|
100
|
+
`SELECT n.relative_path, n.title, n.summary, n.subject, n.topic, n.tags,
|
|
101
|
+
snippet(notes_search, 6, char(2), char(3), '…', 24) AS snippet
|
|
102
|
+
${from}
|
|
103
|
+
ORDER BY bm25(notes_search, 0, 10, 5, 2, 2, 3, 1)
|
|
104
|
+
LIMIT ? OFFSET ?`
|
|
105
|
+
).all(...params, options.limit ?? 10, options.offset ?? 0);
|
|
106
|
+
const postUrl = options.postUrl ?? relative_path_to_url.relativePathToBlogUrl;
|
|
107
|
+
return {
|
|
108
|
+
query: options.query,
|
|
109
|
+
total,
|
|
110
|
+
results: rows.map((r) => ({
|
|
111
|
+
relativePath: r.relative_path,
|
|
112
|
+
url: postUrl(r.relative_path),
|
|
113
|
+
title: r.title,
|
|
114
|
+
summary: r.summary,
|
|
115
|
+
subject: r.subject,
|
|
116
|
+
topic: r.topic,
|
|
117
|
+
tags: JSON.parse(r.tags),
|
|
118
|
+
snippet: r.snippet.replaceAll(MARK_OPEN, "").replaceAll(MARK_CLOSE, ""),
|
|
119
|
+
snippetHtml: escapeHtml(r.snippet).replaceAll(MARK_OPEN, "<mark>").replaceAll(MARK_CLOSE, "</mark>")
|
|
120
|
+
}))
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
const toInt = (value, fallback, max) => {
|
|
124
|
+
const n = Number.parseInt(value ?? "", 10);
|
|
125
|
+
return Number.isFinite(n) && n >= 0 ? Math.min(n, max) : fallback;
|
|
126
|
+
};
|
|
127
|
+
const createSearchRoute = (options) => {
|
|
128
|
+
const getDatabase = typeof options.database === "string" ? () => openConundrumDatabase(options.database) : options.database;
|
|
129
|
+
const maxLimit = options.maxLimit ?? 50;
|
|
130
|
+
const cacheControl = options.cacheControl ?? "public, max-age=60, s-maxage=3600, stale-while-revalidate=86400";
|
|
131
|
+
const GET = (request) => {
|
|
132
|
+
const params = new URL(request.url).searchParams;
|
|
133
|
+
const body = searchConundrum(getDatabase(), {
|
|
134
|
+
query: params.get("q") ?? "",
|
|
135
|
+
subject: params.get("subject"),
|
|
136
|
+
topic: params.get("topic"),
|
|
137
|
+
tag: params.get("tag"),
|
|
138
|
+
limit: toInt(params.get("limit"), options.defaultLimit ?? 10, maxLimit),
|
|
139
|
+
offset: toInt(params.get("offset"), 0, Number.MAX_SAFE_INTEGER),
|
|
140
|
+
postUrl: options.postUrl
|
|
141
|
+
});
|
|
142
|
+
return Response.json(body, { headers: { "Cache-Control": cacheControl } });
|
|
143
|
+
};
|
|
144
|
+
return { GET };
|
|
145
|
+
};
|
|
146
|
+
exports.CONUNDRUM_DATABASE_VERSION = CONUNDRUM_DATABASE_VERSION;
|
|
147
|
+
exports.createSearchRoute = createSearchRoute;
|
|
148
|
+
exports.getConundrumNote = getConundrumNote;
|
|
149
|
+
exports.listConundrumNotes = listConundrumNotes;
|
|
150
|
+
exports.loadConundrumOutput = loadConundrumOutput;
|
|
151
|
+
exports.openConundrumDatabase = openConundrumDatabase;
|
|
152
|
+
exports.readBlogConfig = readBlogConfig;
|
|
153
|
+
exports.searchConundrum = searchConundrum;
|
|
154
|
+
exports.toFtsQuery = toFtsQuery;
|
|
155
|
+
//# sourceMappingURL=server.cjs.map
|