Skip to content

Declare ui.markdown and plugin API 20 props - #34

Closed
gegnep wants to merge 1 commit into
noctalia-dev:mainfrom
gegnep:ui-markdown-typings
Closed

Declare ui.markdown and plugin API 20 props#34
gegnep wants to merge 1 commit into
noctalia-dev:mainfrom
gegnep:ui-markdown-typings

Conversation

@gegnep

@gegnep gegnep commented Jul 30, 2026

Copy link
Copy Markdown

Companion to noctalia-dev/noctalia#3327 (plugin API 20). Requested in
that PR's review: noctalia.d.luau did not declare ui.markdown.

Adds markdown to the declare ui table and documents the new
API-20-gated props with the file's existing comment conventions:

  • ui.markdown: renders the text prop (headings, lists, code
    blocks, tables) as a read-only block. The host re-parses only when
    the text or the surface scale changes, so streaming re-renders with
    unchanged text are cheap.
  • ui.input submitOnEnter: chat-style submit for multiline inputs.
    Enter fires onSubmit, Shift+Enter inserts the newline, Ctrl+Enter
    still submits. Default off, existing behavior unchanged.
  • ui.scroll stickToBottom / onScroll / scrollToBottomRev:
    follow-scroll while content grows, an (offset, maxOffset) scroll
    callback, and a deferred jump-to-bottom trigger.

Tested live by a chat panel plugin (streaming markdown, follow-scroll,
Enter-to-send composer) against a shell carrying the #3327 patches.

Matches noctalia PR #3327: the ui.markdown node, input submitOnEnter,
and scroll stickToBottom / onScroll / scrollToBottomRev, all gated
plugin_api >= 20.

Assisted-by: Fable 5 (main session), claude-code v2.1.217
@ItsLemmy

Copy link
Copy Markdown
Contributor

already updated

@ItsLemmy ItsLemmy closed this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants