diff --git a/.idea/runConfigurations/IDE_sample.xml b/.idea/runConfigurations/IDE_sample.xml index 6292f590a..ac2024999 100644 --- a/.idea/runConfigurations/IDE_sample.xml +++ b/.idea/runConfigurations/IDE_sample.xml @@ -1,25 +1,24 @@ - - - - - - - true - true - false - false - - - + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run_checks.xml b/.idea/runConfigurations/Run_checks.xml index 52cfef043..f3ae0f42b 100644 --- a/.idea/runConfigurations/Run_checks.xml +++ b/.idea/runConfigurations/Run_checks.xml @@ -21,4 +21,4 @@ false - + \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 1db96e8c9..da528dd21 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,12 @@ plugins { dependencies { sarif(projects.foundation) sarif(projects.ideLafBridge) + sarif(projects.intUi.intUiDecoratedWindow) + sarif(projects.intUi.intUiStandalone) + sarif(projects.markdown.core) + sarif(projects.markdown.extension.gfmAlerts) + sarif(projects.markdown.ideLafBridgeStyling) + sarif(projects.markdown.intUiStandaloneStyling) sarif(projects.samples.idePlugin) sarif(projects.ui) } diff --git a/buildSrc/src/main/kotlin/jewel-publish.gradle.kts b/buildSrc/src/main/kotlin/jewel-publish.gradle.kts index 640906a37..8de8495a8 100644 --- a/buildSrc/src/main/kotlin/jewel-publish.gradle.kts +++ b/buildSrc/src/main/kotlin/jewel-publish.gradle.kts @@ -21,14 +21,15 @@ val javadocJar by tasks.registering(Jar::class) { publishing { configureJewelRepositories(project) - val bridgeIjpTarget = project.property("bridge.ijp.target") as String + val ijpTarget = project.property("ijp.target") as String + publications { register("main") { from(components["kotlin"]) artifact(javadocJar) artifact(sourcesJar) version = project.properties["jewel.release.version"] as String - artifactId = "jewel-${project.name}-$bridgeIjpTarget" + artifactId = "jewel-${project.name}-$ijpTarget" pom { configureJewelPom() } } } diff --git a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CurrentIjpTarget.kt b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CurrentIjpTarget.kt index 9bb9e0032..27e93b816 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CurrentIjpTarget.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/jewel/buildlogic/ideversion/CurrentIjpTarget.kt @@ -4,11 +4,11 @@ import org.gradle.api.Project val Project.currentIjpVersion: String get() { - val rawValue = property("bridge.ijp.target") as? String - ?: error("Property bridge.ijp.target not defined. Check your gradle.properties!") + val rawValue = property("ijp.target") as? String + ?: error("Property ijp.target not defined. Check your gradle.properties!") if (rawValue.length != 3 || rawValue.toIntOrNull()?.let { it < 0 } == true) { - error("Invalid bridge.ijp.target property value: '$rawValue'") + error("Invalid ijp.target property value: '$rawValue'") } return rawValue diff --git a/gradle.properties b/gradle.properties index 5f05d75fc..1a493477c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,5 +6,5 @@ kotlin.stdlib.default.dependency=false # See https://jb.gg/intellij-platform-kotlin-oom kotlin.incremental.useClasspathSnapshot=false -bridge.ijp.target=233 -jewel.release.version=0.15.2 +ijp.target=233 +jewel.release.version=0.16.0 diff --git a/ide-laf-bridge/api/ide-laf-bridge.api b/ide-laf-bridge/api/ide-laf-bridge.api index 42235da25..d98769fa2 100644 --- a/ide-laf-bridge/api/ide-laf-bridge.api +++ b/ide-laf-bridge/api/ide-laf-bridge.api @@ -107,6 +107,10 @@ public final class org/jetbrains/jewel/bridge/theme/BridgeThemeColorPaletteKt { public static final fun readFromLaF (Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette$Companion;)Lorg/jetbrains/jewel/foundation/theme/ThemeColorPalette; } +public final class org/jetbrains/jewel/bridge/theme/IntUiBridgeKt { + public static final fun retrieveDefaultTextStyle ()Landroidx/compose/ui/text/TextStyle; +} + public final class org/jetbrains/jewel/bridge/theme/SwingBridgeThemeKt { public static final fun SwingBridgeTheme (Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V } diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/BridgeUtils.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/BridgeUtils.kt index 7f435506e..bf60b70e2 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/BridgeUtils.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/BridgeUtils.kt @@ -28,7 +28,6 @@ import com.intellij.util.ui.JBDimension import com.intellij.util.ui.JBFont import com.intellij.util.ui.JBInsets import com.intellij.util.ui.JBValue -import org.jetbrains.skiko.DependsOnJBR import java.awt.Dimension import java.awt.Insets import javax.swing.UIManager @@ -153,14 +152,12 @@ public fun retrieveArcAsCornerSizeWithFallbacks(vararg keys: String): CornerSize keysNotFound(keys.toList(), "Int") } -@DependsOnJBR public fun retrieveTextStyle(fontKey: String, colorKey: String? = null): TextStyle { val baseColor = colorKey?.let { retrieveColorOrUnspecified(colorKey) } ?: Color.Unspecified return retrieveTextStyle(fontKey, color = baseColor) } @OptIn(ExperimentalTextApi::class) -@DependsOnJBR public fun retrieveTextStyle( key: String, color: Color = Color.Unspecified, diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt index 107e6b1f2..c7dfc11e3 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/theme/IntUiBridge.kt @@ -106,7 +106,6 @@ import org.jetbrains.jewel.ui.component.styling.TextFieldStyle import org.jetbrains.jewel.ui.component.styling.TooltipColors import org.jetbrains.jewel.ui.component.styling.TooltipMetrics import org.jetbrains.jewel.ui.component.styling.TooltipStyle -import org.jetbrains.skiko.DependsOnJBR import javax.swing.UIManager import kotlin.time.Duration.Companion.milliseconds @@ -118,12 +117,14 @@ internal val uiDefaults private val iconsBasePath get() = DirProvider().dir() -@OptIn(DependsOnJBR::class) internal fun createBridgeThemeDefinition(): ThemeDefinition { - val textStyle = retrieveTextStyle("Label.font", "Label.foreground") + val textStyle = retrieveDefaultTextStyle() return createBridgeThemeDefinition(textStyle) } +public fun retrieveDefaultTextStyle(): TextStyle = + retrieveTextStyle("Label.font", "Label.foreground") + internal fun createBridgeThemeDefinition(textStyle: TextStyle): ThemeDefinition { val isDark = !JBColor.isBright() @@ -140,7 +141,6 @@ internal fun createBridgeThemeDefinition(textStyle: TextStyle): ThemeDefinition ) } -@OptIn(DependsOnJBR::class) internal fun createBridgeComponentStyling( theme: ThemeDefinition, ) = diff --git a/markdown/README.md b/markdown/README.md index 8d3161beb..6879c093d 100755 --- a/markdown/README.md +++ b/markdown/README.md @@ -10,7 +10,7 @@ Currently supports the [CommonMark 0.31.2](https://spec.commonmark.org/0.31.2/) Additional supported Markdown, via extensions: -* Alerts ([GitHub Flavored Markdown][alerts-specs]) — see [`extension-gfm-alerts`](extension-gfm-alerts) +* Alerts ([GitHub Flavored Markdown][alerts-specs]) — see [`extension-gfm-alerts`](extension/gfm-alerts) [alerts-specs]: https://github.com/orgs/community/discussions/16925 @@ -46,16 +46,20 @@ Not supported, and not on the roadmap: ## Add the Markdown renderer to your project -You need to add the renderer **alongside** either a `jewel-standalone` or `jewel-ide-laf-bridge-*` dependency in order -for the renderer to work, as it assumes that the necessary `jewel-ui` and `jewel-foundation` are on the classpath -already. +The Jewel Markdown renderer is designed to be run in a project that already has a `jewel-standalone` or +`jewel-ide-laf-bridge-*` dependency. The `core` module doesn't contain any styling, and you're supposed to use either +the `jewel-markdown-int-ui-standalone-styling` or `jewel-markdown-ide-laf-bridge-styling` instead. They will carry the +necessary dependencies. + +> [!CAUTION] +> Don't use the standalone artifact in an IDE plugin, and don't use the bridge artifact in a standalone project! If you want to use extensions, you also need to add them **alongside** the `jewel-markdown-core`: ```kotlin dependencies { implementation(libs.jewel.standalone) - implementation(libs.jewel.markdown.core) + implementation(libs.jewel.markdown.intUiStandaloneStyling) implementation(libs.jewel.markdown.extension.gfm.alerts) // Optional // Et cetera... } diff --git a/markdown/core/api/core.api b/markdown/core/api/core.api index 0f44f669e..14248ba4f 100755 --- a/markdown/core/api/core.api +++ b/markdown/core/api/core.api @@ -369,87 +369,6 @@ public class org/jetbrains/jewel/markdown/rendering/DefaultMarkdownBlockRenderer public fun renderThematicBreak (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Landroidx/compose/runtime/Composer;I)V } -public final class org/jetbrains/jewel/markdown/rendering/DefaultStylingKt { - public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Z)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; - public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; - public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; - public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; - public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;ZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; - public static final fun dark-9ek060M (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; - public static synthetic fun dark-9ek060M$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; - public static final fun dark-EnRY0Kc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; - public static synthetic fun dark-EnRY0Kc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; - public static final fun dark-OgMsbsM (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; - public static synthetic fun dark-OgMsbsM$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; - public static final fun dark-RKTsvxU (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; - public static synthetic fun dark-RKTsvxU$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; - public static final fun dark-Zc45R8w (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; - public static synthetic fun dark-Zc45R8w$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; - public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; - public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; - public static final fun dark-jfnsLPA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; - public static synthetic fun dark-jfnsLPA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; - public static final fun dark-kgLgf-Y (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; - public static synthetic fun dark-kgLgf-Y$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; - public static final fun dark-pI2OzKA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; - public static synthetic fun dark-pI2OzKA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; - public static final fun default-1Fc8zlc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; - public static synthetic fun default-1Fc8zlc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; - public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Z)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; - public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; - public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; - public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; - public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;ZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; - public static final fun light-9ek060M (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; - public static synthetic fun light-9ek060M$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; - public static final fun light-EnRY0Kc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; - public static synthetic fun light-EnRY0Kc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; - public static final fun light-OgMsbsM (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; - public static synthetic fun light-OgMsbsM$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; - public static final fun light-RKTsvxU (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; - public static synthetic fun light-RKTsvxU$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; - public static final fun light-Zc45R8w (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; - public static synthetic fun light-Zc45R8w$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; - public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; - public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; - public static final fun light-jfnsLPA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; - public static synthetic fun light-jfnsLPA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; - public static final fun light-kgLgf-Y (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; - public static synthetic fun light-kgLgf-Y$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; - public static final fun light-pI2OzKA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; - public static synthetic fun light-pI2OzKA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; -} - public abstract interface class org/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer { public static final field Companion Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer$Companion; public abstract fun renderAsAnnotatedString-44Ri3s0 (Ljava/lang/String;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Landroidx/compose/ui/text/AnnotatedString; @@ -505,10 +424,6 @@ public abstract interface class org/jetbrains/jewel/markdown/rendering/MarkdownB } public final class org/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion { - public final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; - public final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; } public final class org/jetbrains/jewel/markdown/rendering/MarkdownStyling { diff --git a/markdown/core/build.gradle.kts b/markdown/core/build.gradle.kts index 8b5c61f1c..d784f1314 100755 --- a/markdown/core/build.gradle.kts +++ b/markdown/core/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } dependencies { - compileOnly(projects.ui) + api(projects.ui) api(libs.commonmark.core) testImplementation(compose.desktop.uiTestJUnit4) @@ -14,10 +14,11 @@ dependencies { } publicApiValidation { - // We don't foresee changes to the data models for now + // TODO Oleg remove this once migrated to value classes excludedClassRegexes = setOf("org.jetbrains.jewel.markdown.MarkdownBlock.*") } publishing.publications.named("main") { - artifactId = "jewel-markdown-${project.name}" + val ijpTarget = project.property("ijp.target") as String + artifactId = "jewel-markdown-${project.name}-$ijpTarget" } diff --git a/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer.kt b/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer.kt index c99bbc116..794f792c1 100755 --- a/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer.kt +++ b/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer.kt @@ -19,7 +19,6 @@ import org.jetbrains.jewel.markdown.MarkdownBlock.ListBlock import org.jetbrains.jewel.markdown.MarkdownBlock.ListBlock.OrderedList import org.jetbrains.jewel.markdown.MarkdownBlock.ListBlock.UnorderedList import org.jetbrains.jewel.markdown.MarkdownBlock.ListItem -import org.jetbrains.jewel.markdown.extensions.MarkdownRendererExtension @ExperimentalJewelApi public interface MarkdownBlockRenderer { @@ -87,20 +86,5 @@ public interface MarkdownBlockRenderer { @Composable public fun render(block: HtmlBlock, styling: MarkdownStyling.HtmlBlock) - public companion object { - - public fun light( - styling: MarkdownStyling = MarkdownStyling.light(), - rendererExtensions: List = emptyList(), - inlineRenderer: InlineMarkdownRenderer = InlineMarkdownRenderer.default(), - onUrlClick: (String) -> Unit = {}, - ): MarkdownBlockRenderer = DefaultMarkdownBlockRenderer(styling, rendererExtensions, inlineRenderer, onUrlClick) - - public fun dark( - styling: MarkdownStyling = MarkdownStyling.dark(), - rendererExtensions: List = emptyList(), - inlineRenderer: InlineMarkdownRenderer = InlineMarkdownRenderer.default(), - onUrlClick: (String) -> Unit = {}, - ): MarkdownBlockRenderer = DefaultMarkdownBlockRenderer(styling, rendererExtensions, inlineRenderer, onUrlClick) - } + public companion object } diff --git a/markdown/extension-gfm-alerts/build.gradle.kts b/markdown/extension-gfm-alerts/build.gradle.kts deleted file mode 100755 index 1bc2ba0d7..000000000 --- a/markdown/extension-gfm-alerts/build.gradle.kts +++ /dev/null @@ -1,26 +0,0 @@ -plugins { - jewel - `jewel-publish` - `jewel-check-public-api` - alias(libs.plugins.composeDesktop) -} - -dependencies { - // This extension should get all dependencies from ui and markdown-core - compileOnly(projects.ui) - compileOnly(projects.markdown.core) - compileOnly(libs.commonmark.core) - - testImplementation(compose.desktop.uiTestJUnit4) - testImplementation(projects.markdown.core) - testImplementation(projects.ui) -} - -publicApiValidation { - // We don't foresee changes to the data models for now - excludedClassRegexes = setOf("org.jetbrains.jewel.markdown.extensions.github.alerts.Alert\\$.*") -} - -publishing.publications.named("main") { - artifactId = "jewel-markdown-${project.name}" -} diff --git a/markdown/extension-gfm-alerts/api/extension-gfm-alerts.api b/markdown/extension/gfm-alerts/api/gfm-alerts.api similarity index 58% rename from markdown/extension-gfm-alerts/api/extension-gfm-alerts.api rename to markdown/extension/gfm-alerts/api/gfm-alerts.api index 6eaf2d215..1ebaa5a29 100755 --- a/markdown/extension-gfm-alerts/api/extension-gfm-alerts.api +++ b/markdown/extension/gfm-alerts/api/gfm-alerts.api @@ -119,33 +119,6 @@ public final class org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubA public fun render (Lorg/jetbrains/jewel/markdown/MarkdownBlock$Extension;Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Landroidx/compose/runtime/Composer;I)V } -public final class org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertDefaultStylingKt { - public static final fun dark (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; - public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; - public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; - public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; - public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; - public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; - public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; - public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; - public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; - public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; - public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; - public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; - public static final fun light (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; - public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; - public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; - public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; - public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; - public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; - public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; - public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; - public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; - public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; - public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; - public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; -} - public final class org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension : org/jetbrains/jewel/markdown/extensions/MarkdownProcessorExtension { public static final field $stable I public static final field INSTANCE Lorg/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension; diff --git a/markdown/extension/gfm-alerts/build.gradle.kts b/markdown/extension/gfm-alerts/build.gradle.kts new file mode 100644 index 000000000..373382dd3 --- /dev/null +++ b/markdown/extension/gfm-alerts/build.gradle.kts @@ -0,0 +1,22 @@ +plugins { + jewel + `jewel-publish` + `jewel-check-public-api` + alias(libs.plugins.composeDesktop) +} + +dependencies { + implementation(projects.markdown.core) + + testImplementation(compose.desktop.uiTestJUnit4) +} + +publicApiValidation { + // TODO Oleg remove this once migrated to value classes + excludedClassRegexes = setOf("org.jetbrains.jewel.markdown.extensions.github.alerts.*") +} + +publishing.publications.named("main") { + val ijpTarget = project.property("ijp.target") as String + artifactId = "jewel-markdown-extension-${project.name}-$ijpTarget" +} diff --git a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/Alert.kt b/markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/Alert.kt similarity index 100% rename from markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/Alert.kt rename to markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/Alert.kt diff --git a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockRenderer.kt b/markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockRenderer.kt similarity index 100% rename from markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockRenderer.kt rename to markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockRenderer.kt diff --git a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension.kt b/markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension.kt similarity index 100% rename from markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension.kt rename to markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertProcessorExtension.kt diff --git a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertStyling.kt b/markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertStyling.kt similarity index 100% rename from markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertStyling.kt rename to markdown/extension/gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertStyling.kt diff --git a/markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-caution.svg b/markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-caution.svg similarity index 100% rename from markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-caution.svg rename to markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-caution.svg diff --git a/markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-important.svg b/markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-important.svg similarity index 100% rename from markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-important.svg rename to markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-important.svg diff --git a/markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-note.svg b/markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-note.svg similarity index 100% rename from markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-note.svg rename to markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-note.svg diff --git a/markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-tip.svg b/markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-tip.svg similarity index 100% rename from markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-tip.svg rename to markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-tip.svg diff --git a/markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-warning.svg b/markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-warning.svg similarity index 100% rename from markdown/extension-gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-warning.svg rename to markdown/extension/gfm-alerts/src/main/resources/icons/markdown/extensions/github/alerts/alert-warning.svg diff --git a/markdown/extension-gfm-alerts/src/test/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockExtensionTest.kt b/markdown/extension/gfm-alerts/src/test/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockExtensionTest.kt similarity index 100% rename from markdown/extension-gfm-alerts/src/test/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockExtensionTest.kt rename to markdown/extension/gfm-alerts/src/test/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertBlockExtensionTest.kt diff --git a/markdown/ide-laf-bridge-styling/api/ide-laf-bridge-styling.api b/markdown/ide-laf-bridge-styling/api/ide-laf-bridge-styling.api new file mode 100644 index 000000000..592651d01 --- /dev/null +++ b/markdown/ide-laf-bridge-styling/api/ide-laf-bridge-styling.api @@ -0,0 +1,64 @@ +public final class org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensionsKt { + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; +} + +public final class org/jetbrains/jewel/intui/markdown/styling/MarkdownBridgeStylingKt { + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Z)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static final fun create (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;ZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static final fun create-9ek060M (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static synthetic fun create-9ek060M$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static final fun create-EnRY0Kc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static synthetic fun create-EnRY0Kc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static final fun create-OgMsbsM (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static synthetic fun create-OgMsbsM$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static final fun create-RKTsvxU (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static synthetic fun create-RKTsvxU$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static final fun create-Zc45R8w (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static synthetic fun create-Zc45R8w$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static final fun create-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static synthetic fun create-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static final fun create-jfnsLPA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static synthetic fun create-jfnsLPA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static final fun create-kgLgf-Y (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static synthetic fun create-kgLgf-Y$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static final fun create-pI2OzKA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; + public static synthetic fun create-pI2OzKA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; + public static final fun default-1Fc8zlc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; + public static synthetic fun default-1Fc8zlc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; + public static final fun retrieveEditorColorScheme ()Lcom/intellij/openapi/editor/colors/EditorColorsScheme; +} + +public final class org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertBridgeStylingKt { + public static final fun create (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static synthetic fun create$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static final fun create-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static final fun create-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static final fun create-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static final fun create-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static final fun create-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; + public static synthetic fun create-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static synthetic fun create-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static synthetic fun create-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static synthetic fun create-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static synthetic fun create-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; +} + diff --git a/markdown/ide-laf-bridge-styling/build.gradle.kts b/markdown/ide-laf-bridge-styling/build.gradle.kts new file mode 100644 index 000000000..0e7c019fb --- /dev/null +++ b/markdown/ide-laf-bridge-styling/build.gradle.kts @@ -0,0 +1,20 @@ +plugins { + jewel + `jewel-publish` + `jewel-check-public-api` + alias(libs.plugins.composeDesktop) +} + +dependencies { + api(projects.markdown.core) + api(projects.ideLafBridge) + compileOnly(projects.markdown.extension.gfmAlerts) + compileOnly(libs.bundles.idea) + + testImplementation(compose.desktop.uiTestJUnit4) +} + +publishing.publications.named("main") { + val ijpTarget = project.property("ijp.target") as String + artifactId = "jewel-markdown-${project.name}-$ijpTarget" +} diff --git a/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt new file mode 100644 index 000000000..ff1bf487b --- /dev/null +++ b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt @@ -0,0 +1,15 @@ +package org.jetbrains.jewel.intui.markdown + +import org.jetbrains.jewel.intui.markdown.styling.create +import org.jetbrains.jewel.markdown.extensions.MarkdownRendererExtension +import org.jetbrains.jewel.markdown.rendering.DefaultMarkdownBlockRenderer +import org.jetbrains.jewel.markdown.rendering.InlineMarkdownRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownBlockRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling + +public fun MarkdownBlockRenderer.Companion.create( + styling: MarkdownStyling = MarkdownStyling.create(), + rendererExtensions: List = emptyList(), + inlineRenderer: InlineMarkdownRenderer = InlineMarkdownRenderer.default(), + onUrlClick: (String) -> Unit = {}, +): MarkdownBlockRenderer = DefaultMarkdownBlockRenderer(styling, rendererExtensions, inlineRenderer, onUrlClick) diff --git a/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownBridgeStyling.kt b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownBridgeStyling.kt new file mode 100644 index 000000000..79b13f927 --- /dev/null +++ b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownBridgeStyling.kt @@ -0,0 +1,390 @@ +package org.jetbrains.jewel.intui.markdown.styling + +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.ui.Alignment +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathEffect +import androidx.compose.ui.graphics.RectangleShape +import androidx.compose.ui.graphics.Shape +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.layout.ContentScale +import androidx.compose.ui.text.ExperimentalTextApi +import androidx.compose.ui.text.SpanStyle +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontStyle +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.platform.asComposeFontFamily +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.text.style.TextDecoration +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import com.intellij.openapi.editor.colors.EditorColorsManager +import com.intellij.openapi.editor.colors.EditorColorsScheme +import com.intellij.openapi.editor.colors.EditorFontType +import com.intellij.openapi.editor.colors.ex.DefaultColorSchemesManager +import com.intellij.openapi.editor.colors.impl.EditorColorsManagerImpl +import com.intellij.ui.JBColor +import com.intellij.util.ui.JBFont +import com.intellij.util.ui.JBUI +import org.jetbrains.jewel.bridge.retrieveColorOrUnspecified +import org.jetbrains.jewel.bridge.theme.retrieveDefaultTextStyle +import org.jetbrains.jewel.bridge.toComposeColor +import org.jetbrains.jewel.markdown.rendering.InlinesStyling +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.BlockQuote +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code.Fenced +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code.Fenced.InfoPosition +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code.Indented +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Heading +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.HtmlBlock +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Image +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.List +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.List.Ordered +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.List.Unordered +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Paragraph +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.ThematicBreak + +public fun MarkdownStyling.Companion.create( + blockVerticalSpacing: Dp = 16.dp, + paragraph: Paragraph = Paragraph.create(), + heading: Heading = Heading.create(), + blockQuote: BlockQuote = BlockQuote.create(), + code: Code = Code.create(), + list: List = List.create(), + image: Image = Image.default(), + thematicBreak: ThematicBreak = ThematicBreak.create(), + htmlBlock: HtmlBlock = HtmlBlock.create(), +): MarkdownStyling = + MarkdownStyling( + blockVerticalSpacing, + paragraph, + heading, + blockQuote, + code, + list, + image, + thematicBreak, + htmlBlock, + ) + +public fun Paragraph.Companion.create( + inlinesStyling: InlinesStyling = InlinesStyling.create(), +): Paragraph = Paragraph(inlinesStyling) + +public fun Heading.Companion.create( + h1: Heading.H1 = Heading.H1.create(), + h2: Heading.H2 = Heading.H2.create(), + h3: Heading.H3 = Heading.H3.create(), + h4: Heading.H4 = Heading.H4.create(), + h5: Heading.H5 = Heading.H5.create(), + h6: Heading.H6 = Heading.H6.create(), +): Heading = Heading(h1, h2, h3, h4, h5, h6) + +public fun Heading.H1.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + fontSize = defaultTextSize * 2, + lineHeight = defaultTextSize * 2 * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 1.dp, + underlineColor: Color = dividerColor, + underlineGap: Dp = 10.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H1 = Heading.H1(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +public fun Heading.H2.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + fontSize = defaultTextSize * 1.5, + lineHeight = defaultTextSize * 1.5 * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 1.dp, + underlineColor: Color = dividerColor, + underlineGap: Dp = 6.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H2 = Heading.H2(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +// This doesn't match Int UI specs as there is no spec for HTML rendering +public fun Heading.H3.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + fontSize = defaultTextSize * 1.25, + lineHeight = defaultTextSize * 1.25 * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 0.dp, + underlineColor: Color = Color.Unspecified, + underlineGap: Dp = 0.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H3 = Heading.H3(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +// This doesn't match Int UI specs as there is no spec for HTML rendering +public fun Heading.H4.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + fontSize = defaultTextSize, + lineHeight = defaultTextSize * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 0.dp, + underlineColor: Color = Color.Unspecified, + underlineGap: Dp = 0.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H4 = Heading.H4(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +// H5 is identical to H4 and H6 +public fun Heading.H5.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + fontSize = defaultTextSize * .875, + lineHeight = defaultTextSize * .875 * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 0.dp, + underlineColor: Color = Color.Unspecified, + underlineGap: Dp = 0.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H5 = Heading.H5(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +// H6 is identical to H4 and H5 +public fun Heading.H6.Companion.create( + inlinesStyling: InlinesStyling = + InlinesStyling.create( + defaultTextStyle.copy( + color = Color(0xFF656d76), + fontSize = defaultTextSize * .85, + lineHeight = defaultTextSize * .85 * 1.25, + fontWeight = FontWeight.SemiBold, + ), + ), + underlineWidth: Dp = 0.dp, + underlineColor: Color = Color.Unspecified, + underlineGap: Dp = 0.dp, + padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp), +): Heading.H6 = Heading.H6(inlinesStyling, underlineWidth, underlineColor, underlineGap, padding) + +public fun BlockQuote.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 4.dp, + lineColor: Color = Color(0xFFD0D7DE), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + textColor: Color = Color(0xFF656d76), +): BlockQuote = BlockQuote(padding, lineWidth, lineColor, pathEffect, strokeCap, textColor) + +public fun List.Companion.create( + ordered: Ordered = Ordered.create(), + unordered: Unordered = Unordered.create(), +): List = List(ordered, unordered) + +public fun Ordered.Companion.create( + numberStyle: TextStyle = defaultTextStyle, + numberContentGap: Dp = 8.dp, + numberMinWidth: Dp = 16.dp, + numberTextAlign: TextAlign = TextAlign.End, + itemVerticalSpacing: Dp = 16.dp, + itemVerticalSpacingTight: Dp = 4.dp, + padding: PaddingValues = PaddingValues(start = 16.dp), +): Ordered = + Ordered( + numberStyle, + numberContentGap, + numberMinWidth, + numberTextAlign, + itemVerticalSpacing, + itemVerticalSpacingTight, + padding, + ) + +public fun Unordered.Companion.create( + bullet: Char? = '•', + bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), + bulletContentGap: Dp = 16.dp, + itemVerticalSpacing: Dp = 16.dp, + itemVerticalSpacingTight: Dp = 4.dp, + padding: PaddingValues = PaddingValues(start = 16.dp), +): Unordered = + Unordered( + bullet, + bulletStyle, + bulletContentGap, + itemVerticalSpacing, + itemVerticalSpacingTight, + padding, + ) + +public fun Code.Companion.create( + indented: Indented = Indented.create(), + fenced: Fenced = Fenced.create(), +): Code = Code(indented, fenced) + +public fun Indented.Companion.create( + textStyle: TextStyle = + defaultTextStyle.copy( + color = blockContentColor, + fontFamily = editorFontFamily, + fontSize = defaultTextSize * .85, + lineHeight = defaultTextSize * .85 * 1.45, + ), + padding: PaddingValues = PaddingValues(16.dp), + shape: Shape = RectangleShape, + background: Color = blockBackgroundColor, + borderWidth: Dp = 0.dp, + borderColor: Color = Color.Unspecified, + fillWidth: Boolean = true, + scrollsHorizontally: Boolean = true, +): Indented = + Indented( + textStyle, + padding, + shape, + background, + borderWidth, + borderColor, + fillWidth, + scrollsHorizontally, + ) + +public fun Fenced.Companion.create( + textStyle: TextStyle = + defaultTextStyle.copy( + color = blockContentColor, + fontFamily = editorFontFamily, + fontSize = defaultTextSize * .85, + lineHeight = defaultTextSize * .85 * 1.45, + ), + padding: PaddingValues = PaddingValues(16.dp), + shape: Shape = RectangleShape, + background: Color = blockBackgroundColor, + borderWidth: Dp = 0.dp, + borderColor: Color = Color.Unspecified, + fillWidth: Boolean = true, + scrollsHorizontally: Boolean = true, + infoTextStyle: TextStyle = TextStyle(color = infoContentColor, fontSize = 12.sp), + infoPadding: PaddingValues = PaddingValues(bottom = 16.dp), + infoPosition: InfoPosition = InfoPosition.Hide, +): Fenced = + Fenced( + textStyle, + padding, + shape, + background, + borderWidth, + borderColor, + fillWidth, + scrollsHorizontally, + infoTextStyle, + infoPadding, + infoPosition, + ) + +public fun Image.Companion.default( + alignment: Alignment = Alignment.Center, + contentScale: ContentScale = ContentScale.Fit, + padding: PaddingValues = PaddingValues(), + shape: Shape = RectangleShape, + background: Color = Color.Unspecified, + borderWidth: Dp = 0.dp, + borderColor: Color = Color.Unspecified, +): Image = Image(alignment, contentScale, padding, shape, background, borderWidth, borderColor) + +public fun ThematicBreak.Companion.create( + padding: PaddingValues = PaddingValues(), + lineWidth: Dp = 2.dp, + lineColor: Color = dividerColor, +): ThematicBreak = ThematicBreak(padding, lineWidth, lineColor) + +public fun HtmlBlock.Companion.create( + textStyle: TextStyle = + defaultTextStyle.copy(color = blockContentColor, fontFamily = editorFontFamily), + padding: PaddingValues = PaddingValues(8.dp), + shape: Shape = RoundedCornerShape(4.dp), + background: Color = blockBackgroundColor, + borderWidth: Dp = 1.dp, + borderColor: Color = dividerColor, + fillWidth: Boolean = true, +): HtmlBlock = HtmlBlock(textStyle, padding, shape, background, borderWidth, borderColor, fillWidth) + +public fun InlinesStyling.Companion.create( + textStyle: TextStyle = defaultTextStyle, + inlineCode: SpanStyle = + textStyle + .copy( + fontSize = textStyle.fontSize * .85, + background = inlineCodeBackgroundColor, + fontFamily = editorFontFamily, + color = blockContentColor, + ) + .toSpanStyle(), + link: SpanStyle = + textStyle.copy( + color = JBUI.CurrentTheme.Link.Foreground.ENABLED.toComposeColor(), + textDecoration = TextDecoration.Underline, + ).toSpanStyle(), + emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), + strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(), + inlineHtml: SpanStyle = textStyle.toSpanStyle(), + renderInlineHtml: Boolean = false, +): InlinesStyling = + InlinesStyling( + textStyle, + inlineCode, + link, + emphasis, + strongEmphasis, + inlineHtml, + renderInlineHtml, + ) + +private val defaultTextSize + get() = (JBFont.labelFontSize() + 1).sp + +@OptIn(ExperimentalTextApi::class) +private val defaultTextStyle + get() = retrieveDefaultTextStyle() + +private val dividerColor + get() = retrieveColorOrUnspecified("Group.separatorColor") + +private val blockBackgroundColor + get() = retrieveColorOrUnspecified("Group.separatorColor") + +private val blockContentColor + get() = retrieveEditorColorScheme().defaultForeground.toComposeColor() + +private val infoContentColor + get() = retrieveColorOrUnspecified("Component.infoForeground") + +// Copied from org.intellij.plugins.markdown.ui.preview.PreviewLAFThemeStyles#createStylesheet +private val inlineCodeBackgroundColor + get() = + if (JBColor.isBright()) { + Color(red = 212, green = 222, blue = 231, alpha = 255 / 4) + } else { + Color(red = 212, green = 222, blue = 231, alpha = 25) + } + +@OptIn(ExperimentalTextApi::class) +private val editorFontFamily + get() = retrieveEditorColorScheme().getFont(EditorFontType.PLAIN).asComposeFontFamily() + +@Suppress("UnstableApiUsage") // We need to use @Internal APIs +public fun retrieveEditorColorScheme(): EditorColorsScheme { + val manager = EditorColorsManager.getInstance() as EditorColorsManagerImpl + return manager.schemeManager.activeScheme ?: DefaultColorSchemesManager.getInstance().firstScheme +} diff --git a/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertBridgeStyling.kt b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertBridgeStyling.kt new file mode 100644 index 000000000..a38337523 --- /dev/null +++ b/markdown/ide-laf-bridge-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertBridgeStyling.kt @@ -0,0 +1,140 @@ +package org.jetbrains.jewel.intui.markdown.styling.extension.github.alerts + +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathEffect +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.dp +import com.intellij.ui.JBColor +import org.jetbrains.jewel.markdown.extensions.github.alerts.AlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.CautionAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.ImportantAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.NoteAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.TipAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.WarningAlertStyling + +public fun AlertStyling.Companion.create( + note: NoteAlertStyling = NoteAlertStyling.create(), + tip: TipAlertStyling = TipAlertStyling.create(), + important: ImportantAlertStyling = ImportantAlertStyling.create(), + warning: WarningAlertStyling = WarningAlertStyling.create(), + caution: CautionAlertStyling = CautionAlertStyling.create(), +): AlertStyling = AlertStyling(note, tip, important, warning, caution) + +public fun NoteAlertStyling.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 3.dp, + lineColor: Color = if (JBColor.isBright()) Color(0xFF0969DA) else Color(0xFF1F6EEB), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + titleTextStyle: TextStyle = TextStyle(fontWeight = FontWeight.Medium, color = lineColor), + titleIconPath: String? = "icons/markdown/extensions/github/alerts/alert-note.svg", + titleIconTint: Color = lineColor, + textColor: Color = Color.Unspecified, +): NoteAlertStyling = + NoteAlertStyling( + padding, + lineWidth, + lineColor, + pathEffect, + strokeCap, + titleTextStyle, + titleIconPath, + titleIconTint, + textColor, + ) + +public fun TipAlertStyling.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 3.dp, + lineColor: Color = if (JBColor.isBright()) Color(0xFF1F883D) else Color(0xFF238636), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + titleTextStyle: TextStyle = TextStyle(fontWeight = FontWeight.Medium, color = lineColor), + titleIconPath: String? = "icons/markdown/extensions/github/alerts/alert-tip.svg", + titleIconTint: Color = lineColor, + textColor: Color = Color.Unspecified, +): TipAlertStyling = + TipAlertStyling( + padding, + lineWidth, + lineColor, + pathEffect, + strokeCap, + titleTextStyle, + titleIconPath, + titleIconTint, + textColor, + ) + +public fun ImportantAlertStyling.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 3.dp, + lineColor: Color = if (JBColor.isBright()) Color(0xFF8250DF) else Color(0xFF8957E5), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + titleTextStyle: TextStyle = TextStyle(fontWeight = FontWeight.Medium, color = lineColor), + titleIconPath: String? = "icons/markdown/extensions/github/alerts/alert-important.svg", + titleIconTint: Color = lineColor, + textColor: Color = Color.Unspecified, +): ImportantAlertStyling = + ImportantAlertStyling( + padding, + lineWidth, + lineColor, + pathEffect, + strokeCap, + titleTextStyle, + titleIconPath, + titleIconTint, + textColor, + ) + +public fun WarningAlertStyling.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 3.dp, + lineColor: Color = if (JBColor.isBright()) Color(0xFF9A6601) else Color(0xFF9E6A02), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + titleTextStyle: TextStyle = TextStyle(fontWeight = FontWeight.Medium, color = lineColor), + titleIconPath: String? = "icons/markdown/extensions/github/alerts/alert-warning.svg", + titleIconTint: Color = lineColor, + textColor: Color = Color.Unspecified, +): WarningAlertStyling = + WarningAlertStyling( + padding, + lineWidth, + lineColor, + pathEffect, + strokeCap, + titleTextStyle, + titleIconPath, + titleIconTint, + textColor, + ) + +public fun CautionAlertStyling.Companion.create( + padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), + lineWidth: Dp = 3.dp, + lineColor: Color = if (JBColor.isBright()) Color(0xFFCF222E) else Color(0xFFDA3633), + pathEffect: PathEffect? = null, + strokeCap: StrokeCap = StrokeCap.Square, + titleTextStyle: TextStyle = TextStyle(fontWeight = FontWeight.Medium, color = lineColor), + titleIconPath: String? = "icons/markdown/extensions/github/alerts/alert-caution.svg", + titleIconTint: Color = lineColor, + textColor: Color = Color.Unspecified, +): CautionAlertStyling = + CautionAlertStyling( + padding, + lineWidth, + lineColor, + pathEffect, + strokeCap, + titleTextStyle, + titleIconPath, + titleIconTint, + textColor, + ) diff --git a/markdown/int-ui-standalone-styling/api/int-ui-standalone-styling.api b/markdown/int-ui-standalone-styling/api/int-ui-standalone-styling.api new file mode 100644 index 000000000..c70cd0973 --- /dev/null +++ b/markdown/int-ui-standalone-styling/api/int-ui-standalone-styling.api @@ -0,0 +1,115 @@ +public final class org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensionsKt { + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling;Ljava/util/List;Lorg/jetbrains/jewel/markdown/rendering/InlineMarkdownRenderer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownBlockRenderer; +} + +public final class org/jetbrains/jewel/intui/markdown/styling/MarkdownIntUiStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Z)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static final fun dark (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;ZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static final fun dark-9ek060M (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static synthetic fun dark-9ek060M$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static final fun dark-EnRY0Kc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static synthetic fun dark-EnRY0Kc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static final fun dark-OgMsbsM (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static synthetic fun dark-OgMsbsM$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static final fun dark-RKTsvxU (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static synthetic fun dark-RKTsvxU$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static final fun dark-Zc45R8w (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static synthetic fun dark-Zc45R8w$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static final fun dark-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static synthetic fun dark-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static final fun dark-jfnsLPA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static synthetic fun dark-jfnsLPA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static final fun dark-kgLgf-Y (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static synthetic fun dark-kgLgf-Y$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static final fun dark-pI2OzKA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; + public static synthetic fun dark-pI2OzKA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; + public static final fun default-1Fc8zlc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; + public static synthetic fun default-1Fc8zlc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image$Companion;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Z)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static final fun light (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;Landroidx/compose/ui/text/SpanStyle;ZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Companion;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph; + public static final fun light-9ek060M (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static synthetic fun light-9ek060M$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered$Companion;Ljava/lang/Character;Landroidx/compose/ui/text/TextStyle;FFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Unordered; + public static final fun light-EnRY0Kc (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static synthetic fun light-EnRY0Kc$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak; + public static final fun light-OgMsbsM (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static synthetic fun light-OgMsbsM$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock; + public static final fun light-RKTsvxU (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static synthetic fun light-RKTsvxU$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Indented; + public static final fun light-Zc45R8w (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static synthetic fun light-Zc45R8w$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$Companion;Landroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Landroidx/compose/ui/graphics/Shape;JFJZZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/layout/PaddingValues;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced$InfoPosition;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code$Fenced; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static final fun light-aX9k8as (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H1; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H2; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H3; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H4; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H5; + public static synthetic fun light-aX9k8as$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6$Companion;Lorg/jetbrains/jewel/markdown/rendering/InlinesStyling;FJFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading$H6; + public static final fun light-jfnsLPA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static synthetic fun light-jfnsLPA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Companion;FLorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Paragraph;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Heading;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Code;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$Image;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$ThematicBreak;Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$HtmlBlock;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling; + public static final fun light-kgLgf-Y (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static synthetic fun light-kgLgf-Y$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered$Companion;Landroidx/compose/ui/text/TextStyle;FFIFFLandroidx/compose/foundation/layout/PaddingValues;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$List$Ordered; + public static final fun light-pI2OzKA (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJ)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; + public static synthetic fun light-pI2OzKA$default (Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;IJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/rendering/MarkdownStyling$BlockQuote; +} + +public final class org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertDefaultStylingKt { + public static final fun dark (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static synthetic fun dark$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static final fun dark-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; + public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static synthetic fun dark-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; + public static final fun light (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static synthetic fun light$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling$Companion;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling;Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling;ILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/AlertStyling; + public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static final fun light-gaOEZmc (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJ)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; + public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/CautionAlertStyling; + public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/ImportantAlertStyling; + public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/NoteAlertStyling; + public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/TipAlertStyling; + public static synthetic fun light-gaOEZmc$default (Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling$Companion;Landroidx/compose/foundation/layout/PaddingValues;FJLandroidx/compose/ui/graphics/PathEffect;ILandroidx/compose/ui/text/TextStyle;Ljava/lang/String;JJILjava/lang/Object;)Lorg/jetbrains/jewel/markdown/extensions/github/alerts/WarningAlertStyling; +} + diff --git a/markdown/int-ui-standalone-styling/build.gradle.kts b/markdown/int-ui-standalone-styling/build.gradle.kts new file mode 100644 index 000000000..57a0ae2ae --- /dev/null +++ b/markdown/int-ui-standalone-styling/build.gradle.kts @@ -0,0 +1,19 @@ +plugins { + jewel + `jewel-publish` + `jewel-check-public-api` + alias(libs.plugins.composeDesktop) +} + +dependencies { + api(projects.markdown.core) + api(projects.intUi.intUiStandalone) + compileOnly(projects.markdown.extension.gfmAlerts) + + testImplementation(compose.desktop.uiTestJUnit4) +} + +publishing.publications.named("main") { + val ijpTarget = project.property("ijp.target") as String + artifactId = "jewel-markdown-${project.name}-$ijpTarget" +} diff --git a/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt new file mode 100644 index 000000000..5400f55f3 --- /dev/null +++ b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/MarkdownBlockRendererExtensions.kt @@ -0,0 +1,23 @@ +package org.jetbrains.jewel.intui.markdown + +import org.jetbrains.jewel.intui.markdown.styling.dark +import org.jetbrains.jewel.intui.markdown.styling.light +import org.jetbrains.jewel.markdown.extensions.MarkdownRendererExtension +import org.jetbrains.jewel.markdown.rendering.DefaultMarkdownBlockRenderer +import org.jetbrains.jewel.markdown.rendering.InlineMarkdownRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownBlockRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling + +public fun MarkdownBlockRenderer.Companion.light( + styling: MarkdownStyling = MarkdownStyling.light(), + rendererExtensions: List = emptyList(), + inlineRenderer: InlineMarkdownRenderer = InlineMarkdownRenderer.default(), + onUrlClick: (String) -> Unit = {}, +): MarkdownBlockRenderer = DefaultMarkdownBlockRenderer(styling, rendererExtensions, inlineRenderer, onUrlClick) + +public fun MarkdownBlockRenderer.Companion.dark( + styling: MarkdownStyling = MarkdownStyling.dark(), + rendererExtensions: List = emptyList(), + inlineRenderer: InlineMarkdownRenderer = InlineMarkdownRenderer.default(), + onUrlClick: (String) -> Unit = {}, +): MarkdownBlockRenderer = DefaultMarkdownBlockRenderer(styling, rendererExtensions, inlineRenderer, onUrlClick) diff --git a/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/DefaultStyling.kt b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownIntUiStyling.kt similarity index 93% rename from markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/DefaultStyling.kt rename to markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownIntUiStyling.kt index 6bf8cf20b..1988411dc 100755 --- a/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/DefaultStyling.kt +++ b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/MarkdownIntUiStyling.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.markdown.rendering +package org.jetbrains.jewel.intui.markdown.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.RoundedCornerShape @@ -19,6 +19,10 @@ import androidx.compose.ui.text.style.TextDecoration import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp +import org.jetbrains.jewel.foundation.theme.JewelTheme +import org.jetbrains.jewel.intui.standalone.theme.createDefaultTextStyle +import org.jetbrains.jewel.markdown.rendering.InlinesStyling +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.BlockQuote import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code import org.jetbrains.jewel.markdown.rendering.MarkdownStyling.Code.Fenced @@ -108,7 +112,7 @@ public fun Heading.Companion.dark( public fun Heading.H1.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 2, lineHeight = defaultTextSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, @@ -123,7 +127,7 @@ public fun Heading.H1.Companion.light( public fun Heading.H1.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 2, lineHeight = defaultTextSize * 2 * 1.25, fontWeight = FontWeight.SemiBold, @@ -138,7 +142,7 @@ public fun Heading.H1.Companion.dark( public fun Heading.H2.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 1.5, lineHeight = defaultTextSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, @@ -153,7 +157,7 @@ public fun Heading.H2.Companion.light( public fun Heading.H2.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 1.5, lineHeight = defaultTextSize * 1.5 * 1.25, fontWeight = FontWeight.SemiBold, @@ -169,7 +173,7 @@ public fun Heading.H2.Companion.dark( public fun Heading.H3.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 1.25, lineHeight = defaultTextSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, @@ -185,7 +189,7 @@ public fun Heading.H3.Companion.light( public fun Heading.H3.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * 1.25, lineHeight = defaultTextSize * 1.25 * 1.25, fontWeight = FontWeight.SemiBold, @@ -201,7 +205,7 @@ public fun Heading.H3.Companion.dark( public fun Heading.H4.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize, lineHeight = defaultTextSize * 1.25, fontWeight = FontWeight.SemiBold, @@ -217,7 +221,7 @@ public fun Heading.H4.Companion.light( public fun Heading.H4.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize, lineHeight = defaultTextSize * 1.25, fontWeight = FontWeight.SemiBold, @@ -233,7 +237,7 @@ public fun Heading.H4.Companion.dark( public fun Heading.H5.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * .875, lineHeight = defaultTextSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, @@ -249,7 +253,7 @@ public fun Heading.H5.Companion.light( public fun Heading.H5.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( fontSize = defaultTextSize * .875, lineHeight = defaultTextSize * .875 * 1.25, fontWeight = FontWeight.SemiBold, @@ -265,7 +269,7 @@ public fun Heading.H5.Companion.dark( public fun Heading.H6.Companion.light( inlinesStyling: InlinesStyling = InlinesStyling.light( - defaultLightTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFF656d76), fontSize = defaultTextSize * .85, lineHeight = defaultTextSize * .85 * 1.25, @@ -282,7 +286,7 @@ public fun Heading.H6.Companion.light( public fun Heading.H6.Companion.dark( inlinesStyling: InlinesStyling = InlinesStyling.dark( - defaultDarkTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFF848d97), fontSize = defaultTextSize * .85, lineHeight = defaultTextSize * .85 * 1.25, @@ -324,7 +328,7 @@ public fun List.Companion.dark( ): List = List(ordered, unordered) public fun Ordered.Companion.light( - numberStyle: TextStyle = defaultLightTextStyle, + numberStyle: TextStyle = defaultTextStyle, numberContentGap: Dp = 8.dp, numberMinWidth: Dp = 16.dp, numberTextAlign: TextAlign = TextAlign.End, @@ -343,7 +347,7 @@ public fun Ordered.Companion.light( ) public fun Ordered.Companion.dark( - numberStyle: TextStyle = defaultDarkTextStyle, + numberStyle: TextStyle = defaultTextStyle, numberContentGap: Dp = 8.dp, numberMinWidth: Dp = 16.dp, numberTextAlign: TextAlign = TextAlign.End, @@ -363,7 +367,7 @@ public fun Ordered.Companion.dark( public fun Unordered.Companion.light( bullet: Char? = '•', - bulletStyle: TextStyle = defaultLightTextStyle.copy(fontWeight = FontWeight.Black), + bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), bulletContentGap: Dp = 16.dp, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, @@ -380,7 +384,7 @@ public fun Unordered.Companion.light( public fun Unordered.Companion.dark( bullet: Char? = '•', - bulletStyle: TextStyle = defaultDarkTextStyle.copy(fontWeight = FontWeight.Black), + bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), bulletContentGap: Dp = 16.dp, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, @@ -407,7 +411,7 @@ public fun Code.Companion.dark( public fun Indented.Companion.light( textStyle: TextStyle = - defaultLightTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFF1F2328), fontFamily = FontFamily.Monospace, fontSize = defaultTextSize * .85, @@ -434,7 +438,7 @@ public fun Indented.Companion.light( public fun Indented.Companion.dark( textStyle: TextStyle = - defaultDarkTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFFe6edf3), fontFamily = FontFamily.Monospace, fontSize = defaultTextSize * .85, @@ -461,7 +465,7 @@ public fun Indented.Companion.dark( public fun Fenced.Companion.light( textStyle: TextStyle = - defaultLightTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFF1F2328), fontFamily = FontFamily.Monospace, fontSize = defaultTextSize * .85, @@ -494,7 +498,7 @@ public fun Fenced.Companion.light( public fun Fenced.Companion.dark( textStyle: TextStyle = - defaultDarkTextStyle.copy( + defaultTextStyle.copy( color = Color(0xFFe6edf3), fontFamily = FontFamily.Monospace, fontSize = defaultTextSize * .85, @@ -549,7 +553,7 @@ public fun ThematicBreak.Companion.dark( public fun HtmlBlock.Companion.light( textStyle: TextStyle = - defaultLightTextStyle.copy(color = Color.DarkGray, fontFamily = FontFamily.Monospace), + defaultTextStyle.copy(color = Color.DarkGray, fontFamily = FontFamily.Monospace), padding: PaddingValues = PaddingValues(8.dp), shape: Shape = RoundedCornerShape(4.dp), background: Color = Color.LightGray, @@ -560,7 +564,7 @@ public fun HtmlBlock.Companion.light( public fun HtmlBlock.Companion.dark( textStyle: TextStyle = - defaultDarkTextStyle.copy(color = Color.Gray, fontFamily = FontFamily.Monospace), + defaultTextStyle.copy(color = Color.Gray, fontFamily = FontFamily.Monospace), padding: PaddingValues = PaddingValues(8.dp), shape: Shape = RoundedCornerShape(4.dp), background: Color = Color.DarkGray, @@ -569,21 +573,8 @@ public fun HtmlBlock.Companion.dark( fillWidth: Boolean = true, ): HtmlBlock = HtmlBlock(textStyle, padding, shape, background, borderWidth, borderColor, fillWidth) -private val defaultTextSize = 14.sp - -private val defaultLightTextStyle = - TextStyle.Default.copy( - color = Color.Unspecified, - fontSize = defaultTextSize, - lineHeight = defaultTextSize * 1.5, - fontWeight = FontWeight.Normal, - ) - -private val defaultDarkTextStyle = - defaultLightTextStyle.copy(color = Color.Unspecified) - public fun InlinesStyling.Companion.light( - textStyle: TextStyle = defaultLightTextStyle, + textStyle: TextStyle = defaultTextStyle, inlineCode: SpanStyle = textStyle .copy( @@ -610,7 +601,7 @@ public fun InlinesStyling.Companion.light( ) public fun InlinesStyling.Companion.dark( - textStyle: TextStyle = defaultDarkTextStyle, + textStyle: TextStyle = defaultTextStyle, inlineCode: SpanStyle = textStyle .copy( @@ -637,3 +628,12 @@ public fun InlinesStyling.Companion.dark( inlineHtml, renderInlineHtml, ) + +private val defaultTextSize = 13.sp + +private val defaultTextStyle + get() = + JewelTheme.createDefaultTextStyle( + fontSize = defaultTextSize, + lineHeight = defaultTextSize * 1.5, + ) diff --git a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertDefaultStyling.kt b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertDefaultStyling.kt similarity index 94% rename from markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertDefaultStyling.kt rename to markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertDefaultStyling.kt index 69150c0ba..2eccabcb1 100755 --- a/markdown/extension-gfm-alerts/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/github/alerts/GitHubAlertDefaultStyling.kt +++ b/markdown/int-ui-standalone-styling/src/main/kotlin/org/jetbrains/jewel/intui/markdown/styling/extension/github/alerts/GitHubAlertDefaultStyling.kt @@ -1,4 +1,4 @@ -package org.jetbrains.jewel.markdown.extensions.github.alerts +package org.jetbrains.jewel.intui.markdown.styling.extension.github.alerts import androidx.compose.foundation.layout.PaddingValues import androidx.compose.ui.graphics.Color @@ -8,6 +8,12 @@ import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp +import org.jetbrains.jewel.markdown.extensions.github.alerts.AlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.CautionAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.ImportantAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.NoteAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.TipAlertStyling +import org.jetbrains.jewel.markdown.extensions.github.alerts.WarningAlertStyling public fun AlertStyling.Companion.light( note: NoteAlertStyling = NoteAlertStyling.light(), diff --git a/samples/ide-plugin/build.gradle.kts b/samples/ide-plugin/build.gradle.kts index 6ee74b96a..8bc029650 100644 --- a/samples/ide-plugin/build.gradle.kts +++ b/samples/ide-plugin/build.gradle.kts @@ -27,6 +27,10 @@ dependencies { exclude(group = "org.jetbrains.kotlinx") } + implementation(projects.markdown.ideLafBridgeStyling) { + exclude(group = "org.jetbrains.kotlinx") + } + implementation(compose.desktop.currentOs) { exclude(group = "org.jetbrains.compose.material") exclude(group = "org.jetbrains.kotlinx") diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt index 3ffeed499..746eefa3c 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/ComponentShowcaseTab.kt @@ -13,6 +13,7 @@ import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.verticalScroll import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue @@ -25,6 +26,7 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import com.intellij.icons.AllIcons import com.intellij.ui.JBColor +import com.intellij.util.ui.JBUI import icons.JewelIcons import org.jetbrains.jewel.bridge.LocalComponent import org.jetbrains.jewel.bridge.toComposeColor @@ -33,11 +35,13 @@ import org.jetbrains.jewel.foundation.modifier.onActivated import org.jetbrains.jewel.foundation.modifier.trackActivation import org.jetbrains.jewel.foundation.modifier.trackComponentActivation import org.jetbrains.jewel.foundation.theme.JewelTheme +import org.jetbrains.jewel.ui.Orientation import org.jetbrains.jewel.ui.Outline import org.jetbrains.jewel.ui.component.CheckboxRow import org.jetbrains.jewel.ui.component.CircularProgressIndicator import org.jetbrains.jewel.ui.component.CircularProgressIndicatorBig import org.jetbrains.jewel.ui.component.DefaultButton +import org.jetbrains.jewel.ui.component.Divider import org.jetbrains.jewel.ui.component.Icon import org.jetbrains.jewel.ui.component.IconButton import org.jetbrains.jewel.ui.component.LazyTree @@ -211,6 +215,24 @@ private fun RowScope.ColumnTwo() { Modifier.trackActivation().weight(1f), verticalArrangement = Arrangement.spacedBy(16.dp), ) { + MarkdownPreview( + """ + |Hi! This is an example of **Markdown** rendering. We support the [CommonMark specs](https://commonmark.org/) + |out of the box, but you can also have _extensions_. + | + |For example: + | * Images + | * Tables + | * And more — I am running out of random things to say 😆 + """.trimMargin(), + Modifier.fillMaxWidth() + .background(JBUI.CurrentTheme.Banner.INFO_BACKGROUND.toComposeColor()) + .border(1.dp, JBUI.CurrentTheme.Banner.INFO_BORDER_COLOR.toComposeColor(), RoundedCornerShape(8.dp)) + .padding(8.dp), + ) + + Divider(Orientation.Horizontal) + var activated by remember { mutableStateOf(false) } Text( "activated: $activated", @@ -218,9 +240,7 @@ private fun RowScope.ColumnTwo() { activated = it }, ) - OutlinedButton({}) { - Text("Outlined") - } + val tree = remember { buildTree { addNode("root 1") { diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/MarkdownViewer.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/MarkdownViewer.kt new file mode 100644 index 000000000..9ce862ef3 --- /dev/null +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/MarkdownViewer.kt @@ -0,0 +1,51 @@ +package org.jetbrains.jewel.samples.ideplugin + +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.text.selection.SelectionContainer +import androidx.compose.runtime.Composable +import androidx.compose.runtime.derivedStateOf +import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember +import androidx.compose.ui.Modifier +import org.intellij.lang.annotations.Language +import org.jetbrains.jewel.foundation.theme.JewelTheme +import org.jetbrains.jewel.intui.markdown.create +import org.jetbrains.jewel.intui.markdown.styling.create +import org.jetbrains.jewel.markdown.processing.MarkdownProcessor +import org.jetbrains.jewel.markdown.rendering.InlineMarkdownRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownBlockRenderer +import org.jetbrains.jewel.markdown.rendering.MarkdownStyling +import java.awt.Desktop +import java.net.URI + +@Composable +internal fun MarkdownPreview(@Language("Markdown") rawMarkdown: String, modifier: Modifier = Modifier) { + val isDark = JewelTheme.isDark + + val markdownStyling = remember(isDark) { MarkdownStyling.create() } + + val processor = remember { MarkdownProcessor() } + // TODO move this away from the composition! + val markdownBlocks by remember { derivedStateOf { processor.processMarkdownDocument(rawMarkdown) } } + + val blockRenderer = + remember(markdownStyling, isDark) { + MarkdownBlockRenderer.create( + styling = markdownStyling, + inlineRenderer = InlineMarkdownRenderer.default(), + ) { url -> + Desktop.getDesktop().browse(URI.create(url)) + } + } + + SelectionContainer(modifier) { + Column( + verticalArrangement = Arrangement.spacedBy(markdownStyling.blockVerticalSpacing), + ) { + for (block in markdownBlocks) { + blockRenderer.render(block) + } + } + } +} diff --git a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/releasessample/ReleasesSampleCompose.kt b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/releasessample/ReleasesSampleCompose.kt index 9d13d0afb..c0476e64b 100644 --- a/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/releasessample/ReleasesSampleCompose.kt +++ b/samples/ide-plugin/src/main/kotlin/org/jetbrains/jewel/samples/ideplugin/releasessample/ReleasesSampleCompose.kt @@ -88,12 +88,10 @@ import org.jetbrains.jewel.ui.component.items import org.jetbrains.jewel.ui.painter.rememberResourcePainterProvider import org.jetbrains.jewel.ui.theme.iconButtonStyle import org.jetbrains.jewel.ui.util.thenIf -import org.jetbrains.skiko.DependsOnJBR import java.time.format.DateTimeFormatter import java.time.format.FormatStyle import kotlin.time.Duration.Companion.seconds -@OptIn(DependsOnJBR::class) @Composable fun ReleasesSampleCompose(project: Project) { var selectedItem: ContentItem? by remember { mutableStateOf(null) } @@ -412,7 +410,6 @@ private fun OverflowMenu( } } -@DependsOnJBR @Composable private fun RightColumn( selectedItem: ContentItem?, @@ -494,7 +491,6 @@ private fun VerticalScrollbarContainer( } } -@DependsOnJBR @Composable private fun ItemDetailsText(selectedItem: ContentItem) { Column( diff --git a/samples/standalone/build.gradle.kts b/samples/standalone/build.gradle.kts index d4e396d91..6cff7ddff 100755 --- a/samples/standalone/build.gradle.kts +++ b/samples/standalone/build.gradle.kts @@ -12,8 +12,8 @@ dependencies { implementation(libs.filePicker) implementation(projects.intUi.intUiStandalone) implementation(projects.intUi.intUiDecoratedWindow) - implementation(projects.markdown.core) - implementation(projects.markdown.extensionGfmAlerts) + implementation(projects.markdown.intUiStandaloneStyling) + implementation(projects.markdown.extension.gfmAlerts) implementation(compose.desktop.currentOs) { exclude(group = "org.jetbrains.compose.material") diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownEditor.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownEditor.kt index 2b1f47331..44afc2364 100755 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownEditor.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownEditor.kt @@ -1,12 +1,12 @@ package org.jetbrains.jewel.samples.standalone.view.markdown +import androidx.compose.foundation.background import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer -import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width @@ -39,9 +39,9 @@ internal fun MarkdownEditor( modifier: Modifier = Modifier, ) { Column(modifier) { - ControlsRow(onMarkdownChange, Modifier.fillMaxWidth().padding(8.dp)) + ControlsRow(onMarkdownChange, Modifier.fillMaxWidth().background(JewelTheme.globalColors.paneBackground).padding(8.dp)) Divider(orientation = Orientation.Horizontal) - Editor(currentMarkdown, onMarkdownChange, Modifier.fillMaxSize()) + Editor(currentMarkdown, onMarkdownChange, Modifier.fillMaxWidth().weight(1f)) } } diff --git a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownPreview.kt b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownPreview.kt index fdd053d0a..8baa7ed87 100755 --- a/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownPreview.kt +++ b/samples/standalone/src/main/kotlin/org/jetbrains/jewel/samples/standalone/view/markdown/MarkdownPreview.kt @@ -24,18 +24,20 @@ import androidx.compose.ui.unit.dp import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import org.jetbrains.jewel.foundation.theme.JewelTheme +import org.jetbrains.jewel.intui.markdown.dark +import org.jetbrains.jewel.intui.markdown.light +import org.jetbrains.jewel.intui.markdown.styling.dark +import org.jetbrains.jewel.intui.markdown.styling.extension.github.alerts.dark +import org.jetbrains.jewel.intui.markdown.styling.extension.github.alerts.light +import org.jetbrains.jewel.intui.markdown.styling.light import org.jetbrains.jewel.markdown.MarkdownBlock import org.jetbrains.jewel.markdown.extensions.github.alerts.AlertStyling import org.jetbrains.jewel.markdown.extensions.github.alerts.GitHubAlertProcessorExtension import org.jetbrains.jewel.markdown.extensions.github.alerts.GitHubAlertRendererExtension -import org.jetbrains.jewel.markdown.extensions.github.alerts.dark -import org.jetbrains.jewel.markdown.extensions.github.alerts.light import org.jetbrains.jewel.markdown.processing.MarkdownProcessor import org.jetbrains.jewel.markdown.rendering.InlineMarkdownRenderer import org.jetbrains.jewel.markdown.rendering.MarkdownBlockRenderer import org.jetbrains.jewel.markdown.rendering.MarkdownStyling -import org.jetbrains.jewel.markdown.rendering.dark -import org.jetbrains.jewel.markdown.rendering.light import org.jetbrains.jewel.ui.component.VerticalScrollbar import java.awt.Desktop import java.net.URI diff --git a/settings.gradle.kts b/settings.gradle.kts index 246c92b3b..7d7e33b08 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -36,7 +36,9 @@ include( ":int-ui:int-ui-decorated-window", ":int-ui:int-ui-standalone", ":markdown:core", - ":markdown:extension-gfm-alerts", + ":markdown:extension:gfm-alerts", + ":markdown:int-ui-standalone-styling", + ":markdown:ide-laf-bridge-styling", ":samples:ide-plugin", ":samples:standalone", ":ui",