@sendbird/actionbook-core 0.10.5 → 0.10.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.
@@ -433,5 +433,26 @@ declare function astNodesToJSONContent(nodes: (InlineNode | BlockNode)[]): JSONC
433
433
  * Used to block save when conditions have syntax errors.
434
434
  */
435
435
  declare function hasInvalidJinjaConditions(state: EditorState): boolean;
436
+ /**
437
+ * Check if any jinjaIfBranch has an empty body (single empty paragraph).
438
+ * Used to block save when branch bodies have no content.
439
+ */
440
+ declare function hasEmptyJinjaBranches(state: EditorState): boolean;
441
+
442
+ /**
443
+ * CSS custom properties for editor text styles.
444
+ *
445
+ * Consumers can override any `--ab-*` variable on the `.ProseMirror` element
446
+ * or a wrapper to customize fonts, sizes, colors, etc.
447
+ *
448
+ * Usage in consumer CSS:
449
+ * .ProseMirror {
450
+ * --ab-font-heading: 'Gellix', sans-serif;
451
+ * --ab-font-body: 'SF Pro Text', -apple-system, sans-serif;
452
+ * --ab-font-code: 'Roboto Mono', monospace;
453
+ * --ab-color-body: #0d0d0d;
454
+ * }
455
+ */
456
+ declare const EDITOR_TEXT_STYLES = "\n/* \u2500\u2500 CSS custom properties (override on .ProseMirror to customize) \u2500\u2500 */\n.ProseMirror {\n /* Font families */\n --ab-font-heading: 'Gellix', sans-serif;\n --ab-font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;\n --ab-font-code: 'Roboto Mono', monospace;\n\n /* Body text */\n --ab-body-size: 14px;\n --ab-body-weight: 400;\n --ab-body-line-height: 20px;\n --ab-body-letter-spacing: -0.1px;\n --ab-color-body: #0d0d0d;\n\n /* H1 */\n --ab-h1-size: 24px;\n --ab-h1-weight: 700;\n --ab-h1-line-height: 32px;\n --ab-h1-letter-spacing: -0.25px;\n\n /* H2 */\n --ab-h2-size: 20px;\n --ab-h2-weight: 700;\n --ab-h2-line-height: 24px;\n --ab-h2-letter-spacing: -0.25px;\n\n /* H3 */\n --ab-h3-size: 18px;\n --ab-h3-weight: 700;\n --ab-h3-line-height: 24px;\n --ab-h3-letter-spacing: -0.25px;\n\n /* Inline code */\n --ab-code-size: 13px;\n --ab-code-weight: 400;\n --ab-code-line-height: 20px;\n --ab-code-letter-spacing: -0.3px;\n --ab-code-bg: #ececec;\n --ab-code-padding: 0 8px;\n --ab-code-radius: 2px;\n\n /* Code block */\n --ab-pre-bg: #ececec;\n --ab-pre-radius: 4px;\n --ab-pre-padding: 16px 8px 16px 24px;\n\n /* Link */\n --ab-link-color: #6210cc;\n --ab-link-weight: 500;\n\n /* Blockquote */\n --ab-blockquote-border-color: #0d0d0d;\n\n /* HR */\n --ab-hr-color: #e0e0e0;\n\n /* Block spacing */\n --ab-block-gap: 16px;\n}\n\n/* \u2500\u2500 Base text \u2500\u2500 */\n.ProseMirror {\n font-family: var(--ab-font-body);\n font-size: var(--ab-body-size);\n font-weight: var(--ab-body-weight);\n line-height: var(--ab-body-line-height);\n letter-spacing: var(--ab-body-letter-spacing);\n color: var(--ab-color-body);\n}\n\n.ProseMirror > * + * {\n margin-top: var(--ab-block-gap);\n}\n\n/* \u2500\u2500 Headings \u2500\u2500 */\n.ProseMirror h1 {\n font-family: var(--ab-font-heading);\n font-size: var(--ab-h1-size);\n font-weight: var(--ab-h1-weight);\n line-height: var(--ab-h1-line-height);\n letter-spacing: var(--ab-h1-letter-spacing);\n}\n\n.ProseMirror h2 {\n font-family: var(--ab-font-heading);\n font-size: var(--ab-h2-size);\n font-weight: var(--ab-h2-weight);\n line-height: var(--ab-h2-line-height);\n letter-spacing: var(--ab-h2-letter-spacing);\n}\n\n.ProseMirror h3 {\n font-family: var(--ab-font-heading);\n font-size: var(--ab-h3-size);\n font-weight: var(--ab-h3-weight);\n line-height: var(--ab-h3-line-height);\n letter-spacing: var(--ab-h3-letter-spacing);\n}\n\n/* \u2500\u2500 Inline code \u2500\u2500 */\n.ProseMirror code {\n font-family: var(--ab-font-code);\n font-size: var(--ab-code-size);\n font-weight: var(--ab-code-weight);\n line-height: var(--ab-code-line-height);\n letter-spacing: var(--ab-code-letter-spacing);\n background: var(--ab-code-bg);\n padding: var(--ab-code-padding);\n border-radius: var(--ab-code-radius);\n}\n\n/* \u2500\u2500 Code block \u2500\u2500 */\n.ProseMirror pre {\n font-family: var(--ab-font-code);\n font-size: var(--ab-code-size);\n font-weight: var(--ab-code-weight);\n line-height: var(--ab-code-line-height);\n letter-spacing: var(--ab-code-letter-spacing);\n color: var(--ab-color-body);\n background: var(--ab-pre-bg);\n border-radius: var(--ab-pre-radius);\n padding: var(--ab-pre-padding);\n overflow-x: auto;\n white-space: pre;\n}\n\n.ProseMirror pre code {\n background: transparent;\n padding: 0;\n border-radius: 0;\n font-size: inherit;\n}\n\n/* \u2500\u2500 Link \u2500\u2500 */\n.ProseMirror a {\n color: var(--ab-link-color);\n font-weight: var(--ab-link-weight);\n text-decoration: none;\n}\n\n.ProseMirror a:hover {\n text-decoration: none;\n}\n\n/* \u2500\u2500 Blockquote \u2500\u2500 */\n.ProseMirror blockquote {\n border-left: 2px solid var(--ab-blockquote-border-color);\n border-radius: 0;\n padding-left: 20px;\n color: var(--ab-color-body);\n}\n\n/* \u2500\u2500 HR \u2500\u2500 */\n.ProseMirror hr {\n border: none;\n height: 1px;\n background: var(--ab-hr-color);\n margin: 8px 0;\n}\n";
436
457
 
437
- export { type ActionbookPlugin, ActionbookRenderer, type ActionbookRendererProps, DocumentTreeView, type DocumentTreeViewProps, EditorShell, type EditorShellProps, type EditorViewConfig, type EditorViewHandle, FloatingMenu, type FloatingMenuProps, INSERT_LINK_EVENT, type InlineSuggestContext, type InlineSuggestProvider, type InlineSuggestState, JUMP_POINT_ADJACENT_SPEC, JinjaTreeView, type JinjaTreeViewProps, type NodeViewFactory, type ReactNodeViewOptions, type ReactNodeViewProps, type SlashCommandItem, SlashCommandMenu, type SlashCommandMenuProps, type SlashCommandState, actionbookSchema, astNodesToJSONContent, convertBlock, convertInline, createDragHandlePlugin, createHistoryPlugin, createInlineSuggestPlugin, createInlineToolTagNodeViewPlugin, createInputRulesPlugin, createJinjaDecorationPlugin, createJinjaIfBlockPlugin, createJumpPointAdjacentPlugin, createJumpPointNodeViewPlugin, createJumpPointValidationPlugin, createKeymapPlugin, createLinkPlugin, createMarkdownClipboardPlugin, createNoteBlockPlugin, createPlaceholderPlugin, createPluginArray, createReactNodeView, createSlashCommandPlugin, createTodoNodeViewPlugin, hasBrokenAnchorRefs, hasDuplicateJumpPoints, hasInvalidJinjaConditions, inlineSuggestKey, slashCommandKey, toProseMirrorJSON, useEditorView };
458
+ export { type ActionbookPlugin, ActionbookRenderer, type ActionbookRendererProps, DocumentTreeView, type DocumentTreeViewProps, EDITOR_TEXT_STYLES, EditorShell, type EditorShellProps, type EditorViewConfig, type EditorViewHandle, FloatingMenu, type FloatingMenuProps, INSERT_LINK_EVENT, type InlineSuggestContext, type InlineSuggestProvider, type InlineSuggestState, JUMP_POINT_ADJACENT_SPEC, JinjaTreeView, type JinjaTreeViewProps, type NodeViewFactory, type ReactNodeViewOptions, type ReactNodeViewProps, type SlashCommandItem, SlashCommandMenu, type SlashCommandMenuProps, type SlashCommandState, actionbookSchema, astNodesToJSONContent, convertBlock, convertInline, createDragHandlePlugin, createHistoryPlugin, createInlineSuggestPlugin, createInlineToolTagNodeViewPlugin, createInputRulesPlugin, createJinjaDecorationPlugin, createJinjaIfBlockPlugin, createJumpPointAdjacentPlugin, createJumpPointNodeViewPlugin, createJumpPointValidationPlugin, createKeymapPlugin, createLinkPlugin, createMarkdownClipboardPlugin, createNoteBlockPlugin, createPlaceholderPlugin, createPluginArray, createReactNodeView, createSlashCommandPlugin, createTodoNodeViewPlugin, hasBrokenAnchorRefs, hasDuplicateJumpPoints, hasEmptyJinjaBranches, hasInvalidJinjaConditions, inlineSuggestKey, slashCommandKey, toProseMirrorJSON, useEditorView };