Skip to content

Commit

Permalink
Remove all public data classes, add API dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Oct 19, 2023
1 parent 44ee2ee commit 6780ae0
Show file tree
Hide file tree
Showing 30 changed files with 4,832 additions and 116 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/jewel-check-public-api.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ tasks {
val validatePublicApi = register<ValidatePublicApiTask>("validatePublicApi") {
include { it.file.extension == "api" }
source(project.fileTree("api"))
dependsOn(named("apiCheck"))
}

named("check") {
Expand Down
2,334 changes: 2,334 additions & 0 deletions core/api/core.api

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions core/src/main/kotlin/org/jetbrains/jewel/foundation/Stroke.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.isUnspecified
import androidx.compose.ui.unit.Dp
import dev.drewhamilton.poko.Poko

sealed class Stroke {
@Immutable
Expand All @@ -15,15 +16,17 @@ sealed class Stroke {
}

@Immutable
data class Solid internal constructor(
@Poko
class Solid internal constructor(
val width: Dp,
val color: Color,
val alignment: Alignment,
val expand: Dp,
) : Stroke()

@Immutable
data class Brush internal constructor(
@Poko
class Brush internal constructor(
val width: Dp,
val brush: androidx.compose.ui.graphics.Brush,
val alignment: Alignment,
Expand Down
197 changes: 197 additions & 0 deletions decorated-window/api/decorated-window.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
public abstract interface class com/jetbrains/DesktopActions {
public abstract fun setHandler (Lcom/jetbrains/DesktopActions$Handler;)V
}

public abstract interface class com/jetbrains/DesktopActions$Handler {
public fun browse (Ljava/net/URI;)V
public fun edit (Ljava/io/File;)V
public fun mail (Ljava/net/URI;)V
public fun open (Ljava/io/File;)V
public fun print (Ljava/io/File;)V
}

public class com/jetbrains/JBR {
public static fun getApiVersion ()Ljava/lang/String;
public static fun getDesktopActions ()Lcom/jetbrains/DesktopActions;
public static fun getRoundedCornersManager ()Lcom/jetbrains/RoundedCornersManager;
public static fun getWindowDecorations ()Lcom/jetbrains/WindowDecorations;
public static fun getWindowMove ()Lcom/jetbrains/WindowMove;
public static fun isAvailable ()Z
public static fun isDesktopActionsSupported ()Z
public static fun isRoundedCornersManagerSupported ()Z
public static fun isWindowDecorationsSupported ()Z
public static fun isWindowMoveSupported ()Z
}

public abstract interface class com/jetbrains/RoundedCornersManager {
public abstract fun setRoundedCorners (Ljava/awt/Window;Ljava/lang/Object;)V
}

public abstract interface class com/jetbrains/WindowDecorations {
public abstract fun createCustomTitleBar ()Lcom/jetbrains/WindowDecorations$CustomTitleBar;
public abstract fun setCustomTitleBar (Ljava/awt/Dialog;Lcom/jetbrains/WindowDecorations$CustomTitleBar;)V
public abstract fun setCustomTitleBar (Ljava/awt/Frame;Lcom/jetbrains/WindowDecorations$CustomTitleBar;)V
}

public abstract interface class com/jetbrains/WindowDecorations$CustomTitleBar {
public abstract fun forceHitTest (Z)V
public abstract fun getContainingWindow ()Ljava/awt/Window;
public abstract fun getHeight ()F
public abstract fun getLeftInset ()F
public abstract fun getProperties ()Ljava/util/Map;
public abstract fun getRightInset ()F
public abstract fun putProperties (Ljava/util/Map;)V
public abstract fun putProperty (Ljava/lang/String;Ljava/lang/Object;)V
public abstract fun setHeight (F)V
}

public abstract interface class com/jetbrains/WindowMove {
public abstract fun startMovingTogetherWithMouse (Ljava/awt/Window;I)V
}

public final class org/jetbrains/jewel/window/DecoratedWindowKt {
public static final fun DecoratedWindow (Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/window/WindowState;ZLjava/lang/String;Landroidx/compose/ui/graphics/painter/Painter;ZZZZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lorg/jetbrains/jewel/window/styling/DecoratedWindowStyle;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;III)V
}

public abstract interface class org/jetbrains/jewel/window/DecoratedWindowScope : androidx/compose/ui/window/FrameWindowScope {
public abstract fun getState-VA8cQZQ ()J
public abstract fun getWindow ()Landroidx/compose/ui/awt/ComposeWindow;
}

public final class org/jetbrains/jewel/window/DecoratedWindowState {
public static final field Companion Lorg/jetbrains/jewel/window/DecoratedWindowState$Companion;
public static final synthetic fun box-impl (J)Lorg/jetbrains/jewel/window/DecoratedWindowState;
public static fun constructor-impl (J)J
public static final fun copy-zAQEbgo (JZZZZ)J
public static synthetic fun copy-zAQEbgo$default (JZZZZILjava/lang/Object;)J
public fun equals (Ljava/lang/Object;)Z
public static fun equals-impl (JLjava/lang/Object;)Z
public static final fun equals-impl0 (JJ)Z
public final fun getState-s-VKNKU ()J
public fun hashCode ()I
public static fun hashCode-impl (J)I
public static final fun isActive-impl (J)Z
public static final fun isFullscreen-impl (J)Z
public static final fun isMaximized-impl (J)Z
public static final fun isMinimized-impl (J)Z
public fun toString ()Ljava/lang/String;
public static fun toString-impl (J)Ljava/lang/String;
public final synthetic fun unbox-impl ()J
}

public final class org/jetbrains/jewel/window/DecoratedWindowState$Companion {
public final fun getActive-s-VKNKU ()J
public final fun getFullscreen-s-VKNKU ()J
public final fun getMaximize-s-VKNKU ()J
public final fun getMinimize-s-VKNKU ()J
public final fun of-LPCgXDc (Landroidx/compose/ui/awt/ComposeWindow;)J
public final fun of-zAQEbgo (ZZZZ)J
public static synthetic fun of-zAQEbgo$default (Lorg/jetbrains/jewel/window/DecoratedWindowState$Companion;ZZZZILjava/lang/Object;)J
}

public final class org/jetbrains/jewel/window/ThemeKt {
public static final fun getDefaultDecoratedWindowStyle (Lorg/jetbrains/jewel/IntelliJTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/window/styling/DecoratedWindowStyle;
public static final fun getDefaultTitleBarStyle (Lorg/jetbrains/jewel/IntelliJTheme$Companion;Landroidx/compose/runtime/Composer;I)Lorg/jetbrains/jewel/window/styling/TitleBarStyle;
}

public final class org/jetbrains/jewel/window/TitleBarKt {
public static final fun TitleBar-T042LqI (Lorg/jetbrains/jewel/window/DecoratedWindowScope;Landroidx/compose/ui/Modifier;JLorg/jetbrains/jewel/window/styling/TitleBarStyle;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
}

public abstract interface class org/jetbrains/jewel/window/TitleBarScope {
public abstract fun align (Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment$Horizontal;)Landroidx/compose/ui/Modifier;
public abstract fun getIcon ()Landroidx/compose/ui/graphics/painter/Painter;
public abstract fun getTitle ()Ljava/lang/String;
}

public final class org/jetbrains/jewel/window/TitleBar_MacOSKt {
public static final fun newFullscreenControls (Landroidx/compose/ui/Modifier;Z)Landroidx/compose/ui/Modifier;
public static synthetic fun newFullscreenControls$default (Landroidx/compose/ui/Modifier;ZILjava/lang/Object;)Landroidx/compose/ui/Modifier;
}

public abstract interface class org/jetbrains/jewel/window/styling/DecoratedWindowColors {
public abstract fun borderFor-3hEOMOc (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;
public abstract fun getBorder-0d7_KjU ()J
public abstract fun getBorderInactive-0d7_KjU ()J
}

public final class org/jetbrains/jewel/window/styling/DecoratedWindowColors$DefaultImpls {
public static fun borderFor-3hEOMOc (Lorg/jetbrains/jewel/window/styling/DecoratedWindowColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;
}

public abstract interface class org/jetbrains/jewel/window/styling/DecoratedWindowMetrics {
public abstract fun getBorderWidth-D9Ej5fM ()F
}

public abstract interface class org/jetbrains/jewel/window/styling/DecoratedWindowStyle {
public abstract fun getColors ()Lorg/jetbrains/jewel/window/styling/DecoratedWindowColors;
public abstract fun getMetrics ()Lorg/jetbrains/jewel/window/styling/DecoratedWindowMetrics;
}

public final class org/jetbrains/jewel/window/styling/DecoratedWindowStylingKt {
public static final fun getLocalDecoratedWindowStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal;
}

public abstract interface class org/jetbrains/jewel/window/styling/TitleBarColors {
public abstract fun backgroundFor-3hEOMOc (JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;
public abstract fun getBackground-0d7_KjU ()J
public abstract fun getBorder-0d7_KjU ()J
public abstract fun getContent-0d7_KjU ()J
public abstract fun getDropdownHoverBackground-0d7_KjU ()J
public abstract fun getDropdownPressBackground-0d7_KjU ()J
public abstract fun getFullscreenControlButtonsBackground-0d7_KjU ()J
public abstract fun getIconButtonHoverBackground-0d7_KjU ()J
public abstract fun getIconButtonPressBackground-0d7_KjU ()J
public abstract fun getInactiveBackground-0d7_KjU ()J
public abstract fun getTitlePaneButtonHoverBackground-0d7_KjU ()J
public abstract fun getTitlePaneButtonPressBackground-0d7_KjU ()J
public abstract fun getTitlePaneCloseButtonHoverBackground-0d7_KjU ()J
public abstract fun getTitlePaneCloseButtonPressBackground-0d7_KjU ()J
}

public final class org/jetbrains/jewel/window/styling/TitleBarColors$DefaultImpls {
public static fun backgroundFor-3hEOMOc (Lorg/jetbrains/jewel/window/styling/TitleBarColors;JLandroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;
}

public abstract interface class org/jetbrains/jewel/window/styling/TitleBarIcons {
public abstract fun getCloseButton ()Lorg/jetbrains/jewel/painter/PainterProvider;
public abstract fun getMaximizeButton ()Lorg/jetbrains/jewel/painter/PainterProvider;
public abstract fun getMinimizeButton ()Lorg/jetbrains/jewel/painter/PainterProvider;
public abstract fun getRestoreButton ()Lorg/jetbrains/jewel/painter/PainterProvider;
}

public abstract interface class org/jetbrains/jewel/window/styling/TitleBarMetrics {
public abstract fun getGradientEndX-D9Ej5fM ()F
public abstract fun getGradientStartX-D9Ej5fM ()F
public abstract fun getHeight-D9Ej5fM ()F
public abstract fun getTitlePaneButtonSize-MYxV2XQ ()J
}

public abstract interface class org/jetbrains/jewel/window/styling/TitleBarStyle {
public abstract fun getColors ()Lorg/jetbrains/jewel/window/styling/TitleBarColors;
public abstract fun getDropdownStyle ()Lorg/jetbrains/jewel/styling/DropdownStyle;
public abstract fun getIconButtonStyle ()Lorg/jetbrains/jewel/styling/IconButtonStyle;
public abstract fun getIcons ()Lorg/jetbrains/jewel/window/styling/TitleBarIcons;
public abstract fun getMetrics ()Lorg/jetbrains/jewel/window/styling/TitleBarMetrics;
public abstract fun getPaneButtonStyle ()Lorg/jetbrains/jewel/styling/IconButtonStyle;
public abstract fun getPaneCloseButtonStyle ()Lorg/jetbrains/jewel/styling/IconButtonStyle;
}

public final class org/jetbrains/jewel/window/styling/TitleBarStylingKt {
public static final fun getLocalTitleBarStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal;
}

public final class org/jetbrains/jewel/window/utils/DesktopPlatform : java/lang/Enum {
public static final field Companion Lorg/jetbrains/jewel/window/utils/DesktopPlatform$Companion;
public static final field Linux Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
public static final field MacOS Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
public static final field Unknown Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
public static final field Windows Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
public static fun valueOf (Ljava/lang/String;)Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
public static fun values ()[Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
}

public final class org/jetbrains/jewel/window/utils/DesktopPlatform$Companion {
public final fun getCurrent ()Lorg/jetbrains/jewel/window/utils/DesktopPlatform;
}

91 changes: 91 additions & 0 deletions ide-laf-bridge/api/ide-laf-bridge.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
public final class org/jetbrains/jewel/bridge/BridgeResourceResolverKt {
public static final fun bridgePainterProvider (Ljava/lang/String;)Lorg/jetbrains/jewel/painter/ResourcePainterProvider;
}

public final class org/jetbrains/jewel/bridge/BridgeThemeColorPalette : org/jetbrains/jewel/intui/core/IntUiThemeColorPalette {
public static final field $stable I
public static final field Companion Lorg/jetbrains/jewel/bridge/BridgeThemeColorPalette$Companion;
public synthetic fun <init> (Ljava/util/Map;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;JLkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun blue ()Ljava/util/List;
public fun blue-vNxB06k (I)J
public fun getRawMap ()Ljava/util/Map;
public fun green ()Ljava/util/List;
public fun green-vNxB06k (I)J
public fun grey ()Ljava/util/List;
public fun grey-vNxB06k (I)J
public fun lookup-ijrfgN4 (Ljava/lang/String;)Landroidx/compose/ui/graphics/Color;
public fun orange ()Ljava/util/List;
public fun orange-vNxB06k (I)J
public fun purple ()Ljava/util/List;
public fun purple-vNxB06k (I)J
public fun red ()Ljava/util/List;
public fun red-vNxB06k (I)J
public fun teal ()Ljava/util/List;
public fun teal-vNxB06k (I)J
public fun yellow ()Ljava/util/List;
public fun yellow-vNxB06k (I)J
}

public final class org/jetbrains/jewel/bridge/BridgeThemeColorPalette$Companion {
public final fun readFromLaF ()Lorg/jetbrains/jewel/bridge/BridgeThemeColorPalette;
}

public final class org/jetbrains/jewel/bridge/BridgeUtilsKt {
public static final fun createVerticalBrush-8A-3gB4 (Ljava/util/List;FFI)Landroidx/compose/ui/graphics/Brush;
public static synthetic fun createVerticalBrush-8A-3gB4$default (Ljava/util/List;FFIILjava/lang/Object;)Landroidx/compose/ui/graphics/Brush;
public static final fun getDp (Lcom/intellij/util/ui/JBValue;)F
public static final fun retrieveArcAsCornerSize (Ljava/lang/String;)Landroidx/compose/foundation/shape/CornerSize;
public static final fun retrieveArcAsCornerSizeWithFallbacks ([Ljava/lang/String;)Landroidx/compose/foundation/shape/CornerSize;
public static final fun retrieveColorOrNull (Ljava/lang/String;)Landroidx/compose/ui/graphics/Color;
public static final fun retrieveColorOrUnspecified (Ljava/lang/String;)J
public static final fun retrieveColorsOrUnspecified ([Ljava/lang/String;)Ljava/util/List;
public static final fun retrieveInsetsAsPaddingValues (Ljava/lang/String;)Landroidx/compose/foundation/layout/PaddingValues;
public static final fun retrieveIntAsDp (Ljava/lang/String;)F
public static final fun retrieveIntAsDpOrUnspecified (Ljava/lang/String;)F
public static final fun retrieveTextStyle (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun retrieveTextStyle$default (Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static final fun retrieveTextStyle-_Wfy91w (Ljava/lang/String;JJZIJLkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun retrieveTextStyle-_Wfy91w$default (Ljava/lang/String;JJZIJLkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static final fun toComposeColor (Ljava/awt/Color;)J
public static final fun toComposeColorOrUnspecified (Ljava/awt/Color;)J
public static final fun toDpSize (Lcom/intellij/util/ui/JBDimension;)J
public static final fun toDpSize (Ljava/awt/Dimension;)J
public static final fun toFontFamily (Ljava/awt/Font;)Landroidx/compose/ui/text/font/FontFamily;
public static final fun toPaddingValues (Lcom/intellij/util/ui/JBInsets;)Landroidx/compose/foundation/layout/PaddingValues;
public static final fun toPaddingValues (Ljava/awt/Insets;)Landroidx/compose/foundation/layout/PaddingValues;
}

public abstract class org/jetbrains/jewel/bridge/JewelBridgeException : java/lang/RuntimeException {
public static final field $stable I
public synthetic fun <init> (Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun getMessage ()Ljava/lang/String;
}

public final class org/jetbrains/jewel/bridge/JewelBridgeException$KeyNotFoundException : org/jetbrains/jewel/bridge/JewelBridgeException {
public static final field $stable I
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
}

public final class org/jetbrains/jewel/bridge/JewelBridgeException$KeysNotFoundException : org/jetbrains/jewel/bridge/JewelBridgeException {
public static final field $stable I
public fun <init> (Ljava/util/List;Ljava/lang/String;)V
}

public final class org/jetbrains/jewel/bridge/SwingBridgeThemeKt {
public static final fun SwingBridgeTheme (Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V
}

public abstract interface annotation class org/jetbrains/jewel/bridge/SwingLafKey : java/lang/annotation/Annotation {
public abstract fun key ()Ljava/lang/String;
}

public final class org/jetbrains/jewel/bridge/ToolWindowExtensionsKt {
public static final fun addComposeTab (Lcom/intellij/openapi/wm/ToolWindow;Ljava/lang/String;ZZLkotlin/jvm/functions/Function2;)V
public static synthetic fun addComposeTab$default (Lcom/intellij/openapi/wm/ToolWindow;Ljava/lang/String;ZZLkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class org/jetbrains/jewel/bridge/actionSystem/ProvideDataKt {
public static final fun ComponentDataProviderBridge (Ljavax/swing/JComponent;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V
public static final fun provideData (Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;)Landroidx/compose/ui/Modifier;
}

11 changes: 11 additions & 0 deletions ide-laf-bridge/ide-laf-bridge-232/api/ide-laf-bridge-232.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
public final class org/jetbrains/jewel/bridge/BridgeIconData$Companion {
public final fun readFromLaF ()Lorg/jetbrains/jewel/bridge/BridgeIconData;
}

public final class org/jetbrains/jewel/bridge/BridgePainterHintsProvider$Companion {
public final fun invoke (Z)Lorg/jetbrains/jewel/intui/core/IntUiPainterHintsProvider;
}

public final class org/jetbrains/jewel/bridge/UiThemeExtensionsKt {
}

8 changes: 8 additions & 0 deletions ide-laf-bridge/ide-laf-bridge-233/api/ide-laf-bridge-233.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public final class org/jetbrains/jewel/bridge/BridgeIconData$Companion {
public final fun readFromLaF ()Lorg/jetbrains/jewel/bridge/BridgeIconData;
}

public final class org/jetbrains/jewel/bridge/BridgePainterHintsProvider$Companion {
public final fun invoke (Z)Lorg/jetbrains/jewel/intui/core/IntUiPainterHintsProvider;
}

Loading

0 comments on commit 6780ae0

Please sign in to comment.