diff --git a/README.md b/README.md index 872c85d3f78f3..dfb401c50c21e 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ dependencyResolutionManagement { versionCatalogs { create("kotlinWrappers") { - val wrappersVersion = "2025.6.6" + val wrappersVersion = "2025.6.8" from("org.jetbrains.kotlin-wrappers:kotlin-wrappers-catalog:$wrappersVersion") } } diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Abortable.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Abortable.kt index 32fb0bf67d2df..ae2d38d29f378 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Abortable.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Abortable.kt @@ -9,7 +9,7 @@ external interface Abortable { /** * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. */ - val signal: AbortSignal? + var signal: AbortSignal? } """.trimIndent() diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/ArortInternal.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/ArortInternal.kt deleted file mode 100644 index 96e372ae8765c..0000000000000 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/ArortInternal.kt +++ /dev/null @@ -1,22 +0,0 @@ -package karakum.browser - -// language=kotlin -private val AWAIT_INTERNAL_BODY: String = """ -internal fun patchAbortOptions( - options: JsAny?, - controller: JsAny, -): JsAny = TODO("--placeholder--") - -@Suppress("RedundantSuppressModifier") -internal suspend fun awaitPromiseLike( - promise: JsAny?, - controller: JsAny?, -): JsAny = TODO("--placeholder--") -""".trimIndent() - -internal fun abortInternal(): ConversionResult = - ConversionResult( - name = "await", - body = AWAIT_INTERNAL_BODY, - pkg = "web.abort.internal", - ) diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventInstance.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventInstance.kt index 05a9f532b27ef..aa83b3d469016 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventInstance.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventInstance.kt @@ -12,7 +12,6 @@ import kotlinx.coroutines.channels.ReceiveChannel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import kotlin.coroutines.resume -import web.events.internal.createAddEventListenerOptions @JsName("Array") external class EventInstance( @@ -89,7 +88,7 @@ suspend fun EventInstance val unsubscribe = addHandler( handler = continuation::resume, - options = createAddEventListenerOptions(once = true), + options = unsafeJso { once = true }, ) continuation.invokeOnCancellation { @@ -125,22 +124,6 @@ fun EventInstance.asFlow(): Flow } """.trimIndent() -// language=kotlin -private val CREATE_ADD_EVENT_LISTENER_OPTIONS: String = """ -internal fun createAddEventListenerOptions( - once: Boolean, -): AddEventListenerOptions = - unsafeJso { - this.once = once - } - -@JsPlainObject -private external interface MutableAddEventListenerOptions : - AddEventListenerOptions { - override var once: Boolean? -} -""".trimIndent() - internal fun eventInstanceTypes(): Sequence = sequenceOf( ConversionResult( @@ -148,9 +131,4 @@ internal fun eventInstanceTypes(): Sequence = body = EVENT_INSTANCE_BODY, pkg = "web.events", ), - ConversionResult( - name = "createAddEventListenerOptions", - body = CREATE_ADD_EVENT_LISTENER_OPTIONS, - pkg = "web.events.internal", - ) ) diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventTarget.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventTarget.kt index c5b659af3d4a6..11e7ae8bd20f9 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventTarget.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/EventTarget.kt @@ -160,8 +160,8 @@ fun C.addEventHandler( private val OBSERVABLE_EVENT_LISTENER_OPTIONS_BODY: String = """ @JsPlainObject external interface ObservableEventListenerOptions { - val capture: Boolean? - val passive: Boolean? + var capture: Boolean? + var passive: Boolean? } """.trimIndent() @@ -177,13 +177,4 @@ internal fun eventTargetTypes(): Sequence = body = OBSERVABLE_EVENT_LISTENER_OPTIONS_BODY, pkg = "web.events", ), - ConversionResult( - name = "Observable", - body = """ - // PLACEHOLDER - external class Observable - // PLACEHOLDER - """.trimIndent(), - pkg = "web.observable", - ), ) diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Events.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Events.kt index 839e05a79c40a..9c6264f9c1a4d 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Events.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Events.kt @@ -170,14 +170,12 @@ private fun event( val members = if (membersSource.isNotEmpty()) { membersSource .splitToSequence(";\n") - // TODO: move to patches? - .map { "readonly $it" } .mapNotNull { convertMember(it, typeProvider) } .joinToString("\n") } else "" val declaration = initName - .replace("", "") + + .replace("", "") + " $parentDeclaration" sequenceOf( @@ -218,21 +216,6 @@ private fun event( .joinToString("\n") // Event .replace("val type: String", " // val type: String") - .let { - if (eventIsInitLike) { - val modifier = when (name) { - EVENT -> "open" - else -> "override" - } - - val resultType = initName.replace("", "") - - it + "\n\n" + """ - @JsAlias(THIS) - $modifier fun asInit(): $resultType - """.trimIndent() - } else it - } val eventClassBody = source .substringAfter("\ndeclare var $name: {\n") @@ -258,7 +241,7 @@ private fun event( val eventType = "EventType<$name$typeParameter>" val eventParameters = constructorSource - .split(", ") + .splitToSequence(", ") .map { p -> if ("?: " in p) { p.replace("?: ", ": ") + " = definedExternally" @@ -283,19 +266,20 @@ private fun event( val companionSource = eventClassBody .substringAfter("\n", "") - val companionMembers = listOfNotNull( - if (companionSource.isNotEmpty()) { - companionSource - .splitToSequence(";\n") - .mapNotNull { convertMember(it, typeProvider) } - .joinToString("\n") - } else null, - types, - ).joinToString("\n\n") + val companionMembers = if (companionSource.isNotEmpty()) { + companionSource + .splitToSequence(";\n") + .mapNotNull { convertMember(it, typeProvider) } + .joinToString("\n") + } else null - val companion = if (companionMembers.isNotEmpty()) { + val companion = if (companionMembers != null) { "companion object {\n$companionMembers\n}" - } else null + } else if (types != null) { + "companion object" + } else { + null + } val modifier = if (eventConstructor.isNotEmpty()) "open" else "" if (eventConstructor.isEmpty()) { @@ -322,6 +306,11 @@ private fun event( } """.trimIndent() + // WA for desktop Safari + if (name == "TouchEvent") { + eventBody = "@JsName(\"globalThis.$name\")\n$eventBody" + } + eventBody = eventBody .withComment( fullSource = source, @@ -333,6 +322,22 @@ private fun event( source = "interface $name<", ) + if (eventIsInitLike) { + val receiver = name + (if (typeParameters.isNotEmpty()) "" else "") + val extensionTypeParameters = typeParameters.replace("", "") + + eventBody += "\n\n" + """ + inline fun $extensionTypeParameters $receiver.asInit(): $resultType = + unsafeCast(this) + """.trimIndent() + } + + if (types != null) { + eventBody += "\n\n$types" + } + if (name == "MediaQueryListEvent") { initBody = initBody.applyMediaQueryPatch() eventBody = eventBody.applyMediaQueryPatch() @@ -402,8 +407,8 @@ private fun eventTypes( .uppercase() """ - @JsValue("$name") - val $memberName: $EVENT_TYPE<$eventType> + inline val $eventName.Companion.$memberName: $EVENT_TYPE<$eventType> + get() = $EVENT_TYPE("$name") """.trimIndent() } } diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Html.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Html.kt index 9e6e52b7385b4..c8ff35f740b55 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Html.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Html.kt @@ -685,7 +685,6 @@ internal fun htmlDeclarations( ) ) .plus(Abortable()) - .plus(abortInternal()) .plus(Ed25519()) } @@ -1206,7 +1205,7 @@ internal fun convertInterface( else -> { if (abortable) { - result.replace("val signal: AbortSignal?", "override val signal: AbortSignal?") + result.replace("var signal: AbortSignal?", "override var signal: AbortSignal?") } else result } } @@ -1941,7 +1940,6 @@ private fun convertProperty( typeProvider: TypeProvider, ): String? { val isVal = source.startsWith("readonly ") - || typeProvider.readonlyMode val modifier = if (isVal) "val" else "var" var (name, type) = source.removePrefix("readonly ").let { diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/IDL.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/IDL.kt index 482c195177cba..853162dcf5059 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/IDL.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/IDL.kt @@ -332,6 +332,14 @@ internal object IDLRegistry { fun isPlainObjectInterface( name: String, ): Boolean { + // TEMP workaround + when (name) { + "CSPViolationReportBody", + "Report", + "ReportBody", + -> return false + } + if (name in plainObjectInterfaces) return true diff --git a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Numbers.kt b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Numbers.kt index 07809eb8030e2..3051e5b1a9b1a 100644 --- a/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Numbers.kt +++ b/build-logic/generatorlegacybuild/src/main/kotlin/karakum/browser/Numbers.kt @@ -108,9 +108,6 @@ internal class TypeProvider( else -> error("Unable to find array type for `$parentType.$propertyName`") } - val readonlyMode: Boolean = - IDLRegistry.isPlainObjectInterface(parentType) - fun isDefined(): Boolean = parentType in Mixins.ALL diff --git a/examples/browser/src/jsMain/kotlin/example/EventHandler.kt b/examples/browser/src/jsMain/kotlin/example/EventHandler.kt index 00b06918c47f1..b152eeb74e6c1 100644 --- a/examples/browser/src/jsMain/kotlin/example/EventHandler.kt +++ b/examples/browser/src/jsMain/kotlin/example/EventHandler.kt @@ -5,6 +5,7 @@ import web.dom.Document import web.dom.document import web.events.addEventHandler import web.events.addHandler +import web.uievents.DRAG_OVER import web.uievents.DragEvent private fun preventDefaultExample_handler() { diff --git a/examples/gradle.properties b/examples/gradle.properties index bb9c2dafb95e8..42773396af46d 100644 --- a/examples/gradle.properties +++ b/examples/gradle.properties @@ -8,5 +8,5 @@ kotlin.js.ir.output.granularity=per-file kotlin.version=2.1.21 seskar.version=4.9.0 -kotlin-wrappers.version=2025.6.6 +kotlin-wrappers.version=2025.6.8 kotlinx-serialization.version=1.8.1 diff --git a/gradle.properties b/gradle.properties index 1ad34be6b6f39..7df971acc79fd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=org.jetbrains.kotlin-wrappers -wrappers.version=2025.6.6 +wrappers.version=2025.6.8 org.gradle.jvmargs=-Xms2g -Xmx4g org.gradle.caching=true @@ -163,13 +163,13 @@ semver.npm.version=^7.6.3 types-semver.npm.version=^7.5.8 # https://www.npmjs.com/package/@tanstack/query-core -tanstack-query-core.npm.version=^5.80.7 +tanstack-query-core.npm.version=^5.81.2 # https://www.npmjs.com/package/@tanstack/react-query -tanstack-react-query.npm.version=^5.80.7 +tanstack-react-query.npm.version=^5.81.2 # https://www.npmjs.com/package/@tanstack/react-query-devtools -tanstack-react-query-devtools.npm.version=^5.80.7 +tanstack-react-query-devtools.npm.version=^5.81.2 # https://www.npmjs.com/package/@tanstack/react-table tanstack-react-table.npm.version=^8.21.3 diff --git a/kotlin-browser/karakum/build.gradle.kts b/kotlin-browser/karakum/build.gradle.kts index 1364fe4384515..d03646584983f 100644 --- a/kotlin-browser/karakum/build.gradle.kts +++ b/kotlin-browser/karakum/build.gradle.kts @@ -13,11 +13,6 @@ dependencies { } object Includes { - val INTERNAL = setOf( - "web/abort/internal", - "web/observable", - ) - val JS_INCLUDE = setOf( "js", ) @@ -83,7 +78,6 @@ enum class WrapperProject( fun getWrapperProject(path: String): WrapperProject? = when (path) { - in Includes.INTERNAL -> null in Includes.JS_INCLUDE -> WrapperProject.JS in Includes.WEB_INCLUDE -> WrapperProject.WEB in Includes.BROWSER_INCLUDE -> WrapperProject.BROWSER diff --git a/kotlin-browser/karakum/gradle.properties b/kotlin-browser/karakum/gradle.properties index 13bbb88ea4f3a..dd9736dde074e 100644 --- a/kotlin-browser/karakum/gradle.properties +++ b/kotlin-browser/karakum/gradle.properties @@ -17,4 +17,4 @@ typescript.npm.version=5.8.3 webref-events.npm.version=1.18.6 # https://www.npmjs.com/package/@webref/idl -webref-idl.npm.version=3.65.0 +webref-idl.npm.version=3.65.1 diff --git a/kotlin-browser/src/commonMain/generated/web/animations/AnimationEvent.kt b/kotlin-browser/src/commonMain/generated/web/animations/AnimationEvent.kt index 63d385fe48b6e..60e419eedb3be 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/AnimationEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/AnimationEvent.kt @@ -2,9 +2,7 @@ package web.animations -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -39,20 +37,20 @@ open external class AnimationEvent( */ val pseudoElement: String - @JsAlias(THIS) - override fun asInit(): AnimationEventInit + companion object +} - companion object { - @JsValue("animationcancel") - val ANIMATION_CANCEL: EventType +inline fun AnimationEvent.asInit(): AnimationEventInit = + unsafeCast(this) - @JsValue("animationend") - val ANIMATION_END: EventType +inline val AnimationEvent.Companion.ANIMATION_CANCEL: EventType + get() = EventType("animationcancel") - @JsValue("animationiteration") - val ANIMATION_ITERATION: EventType +inline val AnimationEvent.Companion.ANIMATION_END: EventType + get() = EventType("animationend") - @JsValue("animationstart") - val ANIMATION_START: EventType - } -} +inline val AnimationEvent.Companion.ANIMATION_ITERATION: EventType + get() = EventType("animationiteration") + +inline val AnimationEvent.Companion.ANIMATION_START: EventType + get() = EventType("animationstart") diff --git a/kotlin-browser/src/commonMain/generated/web/animations/AnimationEventInit.kt b/kotlin-browser/src/commonMain/generated/web/animations/AnimationEventInit.kt index 1c7c9bb4d34e6..c32b5f3de9719 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/AnimationEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/AnimationEventInit.kt @@ -8,7 +8,7 @@ import web.events.EventInit @JsPlainObject external interface AnimationEventInit : EventInit { - val animationName: String? - val elapsedTime: Double? - val pseudoElement: String? + var animationName: String? + var elapsedTime: Double? + var pseudoElement: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEvent.kt b/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEvent.kt index 01ccddaa8260e..fcd82530b615a 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEvent.kt @@ -2,9 +2,7 @@ package web.animations -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -32,17 +30,17 @@ open external class AnimationPlaybackEvent( */ val timelineTime: CSSNumberish? - @JsAlias(THIS) - override fun asInit(): AnimationPlaybackEventInit + companion object +} - companion object { - @JsValue("cancel") - val CANCEL: EventType +inline fun AnimationPlaybackEvent.asInit(): AnimationPlaybackEventInit = + unsafeCast(this) - @JsValue("finish") - val FINISH: EventType +inline val AnimationPlaybackEvent.Companion.CANCEL: EventType + get() = EventType("cancel") - @JsValue("remove") - val REMOVE: EventType - } -} +inline val AnimationPlaybackEvent.Companion.FINISH: EventType + get() = EventType("finish") + +inline val AnimationPlaybackEvent.Companion.REMOVE: EventType + get() = EventType("remove") diff --git a/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEventInit.kt b/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEventInit.kt index 850f57d8db98b..ad0d38d617780 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/AnimationPlaybackEventInit.kt @@ -8,6 +8,6 @@ import web.events.EventInit @JsPlainObject external interface AnimationPlaybackEventInit : EventInit { - val currentTime: CSSNumberish? - val timelineTime: CSSNumberish? + var currentTime: CSSNumberish? + var timelineTime: CSSNumberish? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/ComputedEffectTiming.kt b/kotlin-browser/src/commonMain/generated/web/animations/ComputedEffectTiming.kt index 742e2bfd8c250..098558df99cdc 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/ComputedEffectTiming.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/ComputedEffectTiming.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface ComputedEffectTiming : EffectTiming { - val activeDuration: CSSNumberish? - val currentIteration: Double? - val endTime: CSSNumberish? - val localTime: CSSNumberish? - val progress: Double? - val startTime: CSSNumberish? + var activeDuration: CSSNumberish? + var currentIteration: Double? + var endTime: CSSNumberish? + var localTime: CSSNumberish? + var progress: Double? + var startTime: CSSNumberish? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/DocumentTimelineOptions.kt b/kotlin-browser/src/commonMain/generated/web/animations/DocumentTimelineOptions.kt index 5f01a11162db9..87a0da584e142 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/DocumentTimelineOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/DocumentTimelineOptions.kt @@ -7,5 +7,5 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface DocumentTimelineOptions { - val originTime: DOMHighResTimeStamp? + var originTime: DOMHighResTimeStamp? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/EffectTiming.kt b/kotlin-browser/src/commonMain/generated/web/animations/EffectTiming.kt index 055c97f782320..d48371e91e5bd 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/EffectTiming.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/EffectTiming.kt @@ -7,13 +7,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface EffectTiming { - val delay: Double? - val direction: PlaybackDirection? - val duration: JsAny /* number | CSSNumericValue | string */? - val easing: String? - val endDelay: Double? - val fill: FillMode? - val iterationStart: Double? - val iterations: Double? - val playbackRate: Double? + var delay: Double? + var direction: PlaybackDirection? + var duration: JsAny /* number | CSSNumericValue | string */? + var easing: String? + var endDelay: Double? + var fill: FillMode? + var iterationStart: Double? + var iterations: Double? + var playbackRate: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/KeyframeAnimationOptions.kt b/kotlin-browser/src/commonMain/generated/web/animations/KeyframeAnimationOptions.kt index 1fa0dffc1bf85..5bee4e3d2a764 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/KeyframeAnimationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/KeyframeAnimationOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface KeyframeAnimationOptions : KeyframeEffectOptions { - val id: String? - val timeline: AnimationTimeline? + var id: String? + var timeline: AnimationTimeline? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/KeyframeEffectOptions.kt b/kotlin-browser/src/commonMain/generated/web/animations/KeyframeEffectOptions.kt index 6db82a854012d..0bdaf8eec5eb5 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/KeyframeEffectOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/KeyframeEffectOptions.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface KeyframeEffectOptions : EffectTiming { - val composite: CompositeOperation? - val iterationComposite: IterationCompositeOperation? - val pseudoElement: String? + var composite: CompositeOperation? + var iterationComposite: IterationCompositeOperation? + var pseudoElement: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/animations/OptionalEffectTiming.kt b/kotlin-browser/src/commonMain/generated/web/animations/OptionalEffectTiming.kt index 5d589f80817da..1708246b746fb 100644 --- a/kotlin-browser/src/commonMain/generated/web/animations/OptionalEffectTiming.kt +++ b/kotlin-browser/src/commonMain/generated/web/animations/OptionalEffectTiming.kt @@ -6,13 +6,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface OptionalEffectTiming { - val delay: Double? - val direction: PlaybackDirection? - val duration: Double? - val easing: String? - val endDelay: Double? - val fill: FillMode? - val iterationStart: Double? - val iterations: Double? - val playbackRate: Double? + var delay: Double? + var direction: PlaybackDirection? + var duration: Double? + var easing: String? + var endDelay: Double? + var fill: FillMode? + var iterationStart: Double? + var iterations: Double? + var playbackRate: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AnalyserOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AnalyserOptions.kt index c759a129c7507..30c1c14eb62c0 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AnalyserOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AnalyserOptions.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface AnalyserOptions : AudioNodeOptions { - val fftSize: Int? - val maxDecibels: Double? - val minDecibels: Double? - val smoothingTimeConstant: Double? + var fftSize: Int? + var maxDecibels: Double? + var minDecibels: Double? + var smoothingTimeConstant: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferOptions.kt index 486cc91d921f4..7bbab7bf1969f 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioBufferOptions { - val length: Int - val numberOfChannels: Int? - val sampleRate: Float + var length: Int + var numberOfChannels: Int? + var sampleRate: Float } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferSourceOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferSourceOptions.kt index fa4433363ebce..721d111da36de 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferSourceOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioBufferSourceOptions.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioBufferSourceOptions { - val buffer: AudioBuffer? - val detune: Float? - val loop: Boolean? - val loopEnd: Double? - val loopStart: Double? - val playbackRate: Float? + var buffer: AudioBuffer? + var detune: Float? + var loop: Boolean? + var loopEnd: Double? + var loopStart: Double? + var playbackRate: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioContextOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioContextOptions.kt index dfe3dd79f8704..4a0c26c464ac0 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioContextOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioContextOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioContextOptions { - val latencyHint: JsAny /* AudioContextLatencyCategory | number */? - val sampleRate: Float? + var latencyHint: JsAny /* AudioContextLatencyCategory | number */? + var sampleRate: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioNodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioNodeOptions.kt index dd8957c49a269..6e6b22f7b6840 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioNodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioNodeOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioNodeOptions { - val channelCount: Int? - val channelCountMode: ChannelCountMode? - val channelInterpretation: ChannelInterpretation? + var channelCount: Int? + var channelCountMode: ChannelCountMode? + var channelInterpretation: ChannelInterpretation? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioTimestamp.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioTimestamp.kt index cf9b49330e62b..5f565c0775178 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioTimestamp.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioTimestamp.kt @@ -7,6 +7,6 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface AudioTimestamp { - val contextTime: Double? - val performanceTime: DOMHighResTimeStamp? + var contextTime: Double? + var performanceTime: DOMHighResTimeStamp? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/AudioWorkletNodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/AudioWorkletNodeOptions.kt index da2b346c4901e..f2714c2ec9b19 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/AudioWorkletNodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/AudioWorkletNodeOptions.kt @@ -13,9 +13,9 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface AudioWorkletNodeOptions : AudioNodeOptions { - val numberOfInputs: Int? - val numberOfOutputs: Int? - val outputChannelCount: ReadonlyArray? - val parameterData: ReadonlyRecord? - val processorOptions: JsAny? + var numberOfInputs: Int? + var numberOfOutputs: Int? + var outputChannelCount: ReadonlyArray? + var parameterData: ReadonlyRecord? + var processorOptions: JsAny? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/BiquadFilterOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/BiquadFilterOptions.kt index 17c81fedf3689..d79c202465ac6 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/BiquadFilterOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/BiquadFilterOptions.kt @@ -7,9 +7,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface BiquadFilterOptions : AudioNodeOptions { - val Q: Float? - val detune: Float? - val frequency: Float? - val gain: Float? - val type: BiquadFilterType? + var Q: Float? + var detune: Float? + var frequency: Float? + var gain: Float? + var type: BiquadFilterType? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/ChannelMergerOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/ChannelMergerOptions.kt index 464a32a869529..384a56b528807 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/ChannelMergerOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/ChannelMergerOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ChannelMergerOptions : AudioNodeOptions { - val numberOfInputs: Int? + var numberOfInputs: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/ChannelSplitterOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/ChannelSplitterOptions.kt index a45b93ca7825f..47213e3e34d78 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/ChannelSplitterOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/ChannelSplitterOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ChannelSplitterOptions : AudioNodeOptions { - val numberOfOutputs: Int? + var numberOfOutputs: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/ConstantSourceOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/ConstantSourceOptions.kt index 0b94558de958b..35f2ccf3be1bf 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/ConstantSourceOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/ConstantSourceOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConstantSourceOptions { - val offset: Float? + var offset: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/ConvolverOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/ConvolverOptions.kt index 78bfb39215b15..a6a03924bb0f5 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/ConvolverOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/ConvolverOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConvolverOptions : AudioNodeOptions { - val buffer: AudioBuffer? - val disableNormalization: Boolean? + var buffer: AudioBuffer? + var disableNormalization: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/DelayOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/DelayOptions.kt index 8b3d6cdb65881..bb9695806ca9c 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/DelayOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/DelayOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface DelayOptions : AudioNodeOptions { - val delayTime: Double? - val maxDelayTime: Double? + var delayTime: Double? + var maxDelayTime: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/DynamicsCompressorOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/DynamicsCompressorOptions.kt index e64bb51e38ab9..e21ba937b53d9 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/DynamicsCompressorOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/DynamicsCompressorOptions.kt @@ -7,9 +7,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface DynamicsCompressorOptions : AudioNodeOptions { - val attack: Float? - val knee: Float? - val ratio: Float? - val release: Float? - val threshold: Float? + var attack: Float? + var knee: Float? + var ratio: Float? + var release: Float? + var threshold: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/GainOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/GainOptions.kt index 77a2ad2d9605d..f3e8f40bea73c 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/GainOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/GainOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GainOptions : AudioNodeOptions { - val gain: Float? + var gain: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/IIRFilterOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/IIRFilterOptions.kt index 101a63a8293f5..b123fd0545bb8 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/IIRFilterOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/IIRFilterOptions.kt @@ -9,6 +9,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface IIRFilterOptions : AudioNodeOptions { - val feedback: ReadonlyArray - val feedforward: ReadonlyArray + var feedback: ReadonlyArray + var feedforward: ReadonlyArray } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/MediaElementAudioSourceOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/MediaElementAudioSourceOptions.kt index bea56c9690551..959af32c45c92 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/MediaElementAudioSourceOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/MediaElementAudioSourceOptions.kt @@ -7,5 +7,5 @@ import web.html.HTMLMediaElement @JsPlainObject external interface MediaElementAudioSourceOptions { - val mediaElement: HTMLMediaElement + var mediaElement: HTMLMediaElement } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/MediaStreamAudioSourceOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/MediaStreamAudioSourceOptions.kt index 0d6679b10f2ac..3b9cca8b259b3 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/MediaStreamAudioSourceOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/MediaStreamAudioSourceOptions.kt @@ -7,5 +7,5 @@ import web.mediastreams.MediaStream @JsPlainObject external interface MediaStreamAudioSourceOptions { - val mediaStream: MediaStream + var mediaStream: MediaStream } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEvent.kt b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEvent.kt index fa924898c03dc..49aee2d655237 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEvent.kt @@ -2,9 +2,7 @@ package web.audio -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,11 +22,11 @@ open external class OfflineAudioCompletionEvent( */ val renderedBuffer: AudioBuffer - @JsAlias(THIS) - override fun asInit(): OfflineAudioCompletionEventInit - - companion object { - @JsValue("complete") - val COMPLETE: EventType - } + companion object } + +inline fun OfflineAudioCompletionEvent.asInit(): OfflineAudioCompletionEventInit = + unsafeCast(this) + +inline val OfflineAudioCompletionEvent.Companion.COMPLETE: EventType + get() = EventType("complete") diff --git a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEventInit.kt index c33d2f2aef8f1..ea5765c980e9d 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioCompletionEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface OfflineAudioCompletionEventInit : EventInit { - val renderedBuffer: AudioBuffer + var renderedBuffer: AudioBuffer } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioContextOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioContextOptions.kt index 4a6fecc97043e..1067b5111fd16 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioContextOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/OfflineAudioContextOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface OfflineAudioContextOptions { - val length: Int - val numberOfChannels: Int? - val sampleRate: Float + var length: Int + var numberOfChannels: Int? + var sampleRate: Float } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/OscillatorOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/OscillatorOptions.kt index fac3a7cc417c2..04609bb22ba12 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/OscillatorOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/OscillatorOptions.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface OscillatorOptions : AudioNodeOptions { - val detune: Float? - val frequency: Float? - val periodicWave: PeriodicWave? - val type: OscillatorType? + var detune: Float? + var frequency: Float? + var periodicWave: PeriodicWave? + var type: OscillatorType? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/PannerOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/PannerOptions.kt index 752d369ddece0..cee0655ef8dfa 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/PannerOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/PannerOptions.kt @@ -7,18 +7,18 @@ import js.objects.JsPlainObject @JsPlainObject external interface PannerOptions : AudioNodeOptions { - val coneInnerAngle: Double? - val coneOuterAngle: Double? - val coneOuterGain: Double? - val distanceModel: DistanceModelType? - val maxDistance: Double? - val orientationX: Float? - val orientationY: Float? - val orientationZ: Float? - val panningModel: PanningModelType? - val positionX: Float? - val positionY: Float? - val positionZ: Float? - val refDistance: Double? - val rolloffFactor: Double? + var coneInnerAngle: Double? + var coneOuterAngle: Double? + var coneOuterGain: Double? + var distanceModel: DistanceModelType? + var maxDistance: Double? + var orientationX: Float? + var orientationY: Float? + var orientationZ: Float? + var panningModel: PanningModelType? + var positionX: Float? + var positionY: Float? + var positionZ: Float? + var refDistance: Double? + var rolloffFactor: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveConstraints.kt b/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveConstraints.kt index 43ca5aa473a24..161f3f63dfca3 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveConstraints.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveConstraints.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface PeriodicWaveConstraints { - val disableNormalization: Boolean? + var disableNormalization: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveOptions.kt index ce5977e6a5430..605e600ec5322 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/PeriodicWaveOptions.kt @@ -9,6 +9,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PeriodicWaveOptions : PeriodicWaveConstraints { - val imag: ReadonlyArray /* | Float32Array */? - val real: ReadonlyArray /* | Float32Array */? + var imag: ReadonlyArray /* | Float32Array */? + var real: ReadonlyArray /* | Float32Array */? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/StereoPannerOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/StereoPannerOptions.kt index ed366e42bddce..766d3c35ba7e3 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/StereoPannerOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/StereoPannerOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface StereoPannerOptions : AudioNodeOptions { - val pan: Float? + var pan: Float? } diff --git a/kotlin-browser/src/commonMain/generated/web/audio/WaveShaperOptions.kt b/kotlin-browser/src/commonMain/generated/web/audio/WaveShaperOptions.kt index 10e1b2e1af691..ed43592c49001 100644 --- a/kotlin-browser/src/commonMain/generated/web/audio/WaveShaperOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/audio/WaveShaperOptions.kt @@ -9,6 +9,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface WaveShaperOptions : AudioNodeOptions { - val curve: ReadonlyArray /* | Float32Array */? - val oversample: OverSampleType? + var curve: ReadonlyArray /* | Float32Array */? + var oversample: OverSampleType? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputs.kt index d60bec6bf177b..b60100e778893 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputs.kt @@ -6,12 +6,12 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsClientInputs { - val appid: String? - val credProps: Boolean? - val credentialProtectionPolicy: String? - val enforceCredentialProtectionPolicy: Boolean? - val hmacCreateSecret: Boolean? - val largeBlob: AuthenticationExtensionsLargeBlobInputs? - val minPinLength: Boolean? - val prf: AuthenticationExtensionsPRFInputs? + var appid: String? + var credProps: Boolean? + var credentialProtectionPolicy: String? + var enforceCredentialProtectionPolicy: Boolean? + var hmacCreateSecret: Boolean? + var largeBlob: AuthenticationExtensionsLargeBlobInputs? + var minPinLength: Boolean? + var prf: AuthenticationExtensionsPRFInputs? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputsJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputsJSON.kt index 469ff5855133f..45c82471f287f 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputsJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientInputsJSON.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsClientInputsJSON { - val appid: String? - val credProps: Boolean? - val largeBlob: AuthenticationExtensionsLargeBlobInputsJSON? - val prf: AuthenticationExtensionsPRFInputsJSON? + var appid: String? + var credProps: Boolean? + var largeBlob: AuthenticationExtensionsLargeBlobInputsJSON? + var prf: AuthenticationExtensionsPRFInputsJSON? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientOutputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientOutputs.kt index b44d2326f9ad6..fa517fdef35b1 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientOutputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsClientOutputs.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsClientOutputs { - val appid: Boolean? - val credProps: CredentialPropertiesOutput? - val hmacCreateSecret: Boolean? - val largeBlob: AuthenticationExtensionsLargeBlobOutputs? - val prf: AuthenticationExtensionsPRFOutputs? + var appid: Boolean? + var credProps: CredentialPropertiesOutput? + var hmacCreateSecret: Boolean? + var largeBlob: AuthenticationExtensionsLargeBlobOutputs? + var prf: AuthenticationExtensionsPRFOutputs? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputs.kt index 58daafa5ea2ea..fe6dd70f886af 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputs.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsLargeBlobInputs { - val read: Boolean? - val support: String? - val write: BufferSource? + var read: Boolean? + var support: String? + var write: BufferSource? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputsJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputsJSON.kt index 7039f97f23a01..818af0d7eeddf 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputsJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobInputsJSON.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsLargeBlobInputsJSON { - val read: Boolean? - val support: String? - val write: Base64URLString? + var read: Boolean? + var support: String? + var write: Base64URLString? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobOutputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobOutputs.kt index 0e548e1804581..2cc645ac04229 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobOutputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsLargeBlobOutputs.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsLargeBlobOutputs { - val blob: ArrayBuffer? - val supported: Boolean? - val written: Boolean? + var blob: ArrayBuffer? + var supported: Boolean? + var written: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputs.kt index 8c8993c55bd98..18865835dbb86 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputs.kt @@ -8,6 +8,6 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface AuthenticationExtensionsPRFInputs { - val eval: AuthenticationExtensionsPRFValues? - val evalByCredential: ReadonlyRecord? + var eval: AuthenticationExtensionsPRFValues? + var evalByCredential: ReadonlyRecord? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputsJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputsJSON.kt index 38bd9c3d13737..8da0808afc58e 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputsJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFInputsJSON.kt @@ -8,6 +8,6 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface AuthenticationExtensionsPRFInputsJSON { - val eval: AuthenticationExtensionsPRFValuesJSON? - val evalByCredential: ReadonlyRecord? + var eval: AuthenticationExtensionsPRFValuesJSON? + var evalByCredential: ReadonlyRecord? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFOutputs.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFOutputs.kt index 566b84e4f7f2b..e359f6710e535 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFOutputs.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFOutputs.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsPRFOutputs { - val enabled: Boolean? - val results: AuthenticationExtensionsPRFValues? + var enabled: Boolean? + var results: AuthenticationExtensionsPRFValues? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValues.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValues.kt index 416f80c4cca51..d3feb7a146f7e 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValues.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValues.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsPRFValues { - val first: BufferSource - val second: BufferSource? + var first: BufferSource + var second: BufferSource? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValuesJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValuesJSON.kt index 5b8818a2a8888..7572256d2b49c 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValuesJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticationExtensionsPRFValuesJSON.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticationExtensionsPRFValuesJSON { - val first: Base64URLString - val second: Base64URLString? + var first: Base64URLString + var second: Base64URLString? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticatorSelectionCriteria.kt b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticatorSelectionCriteria.kt index 45b04bd9892f1..9b24dca8161fb 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/AuthenticatorSelectionCriteria.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/AuthenticatorSelectionCriteria.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface AuthenticatorSelectionCriteria { - val authenticatorAttachment: AuthenticatorAttachment? - val requireResidentKey: Boolean? - val residentKey: ResidentKeyRequirement? - val userVerification: UserVerificationRequirement? + var authenticatorAttachment: AuthenticatorAttachment? + var requireResidentKey: Boolean? + var residentKey: ResidentKeyRequirement? + var userVerification: UserVerificationRequirement? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/CredentialPropertiesOutput.kt b/kotlin-browser/src/commonMain/generated/web/authn/CredentialPropertiesOutput.kt index 7f52dc1b1fa68..de3efd7c5ee2a 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/CredentialPropertiesOutput.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/CredentialPropertiesOutput.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface CredentialPropertiesOutput { - val rk: Boolean? + var rk: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptions.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptions.kt index c0f1066d4991e..4652f786da329 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptions.kt @@ -8,13 +8,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialCreationOptions { - val attestation: AttestationConveyancePreference? - val authenticatorSelection: AuthenticatorSelectionCriteria? - val challenge: BufferSource - val excludeCredentials: ReadonlyArray? - val extensions: AuthenticationExtensionsClientInputs? - val pubKeyCredParams: ReadonlyArray - val rp: PublicKeyCredentialRpEntity - val timeout: Int? - val user: PublicKeyCredentialUserEntity + var attestation: AttestationConveyancePreference? + var authenticatorSelection: AuthenticatorSelectionCriteria? + var challenge: BufferSource + var excludeCredentials: ReadonlyArray? + var extensions: AuthenticationExtensionsClientInputs? + var pubKeyCredParams: ReadonlyArray + var rp: PublicKeyCredentialRpEntity + var timeout: Int? + var user: PublicKeyCredentialUserEntity } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptionsJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptionsJSON.kt index 4aeae62ef9d4a..094f7223b8f3e 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptionsJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialCreationOptionsJSON.kt @@ -8,14 +8,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialCreationOptionsJSON { - val attestation: String? - val authenticatorSelection: AuthenticatorSelectionCriteria? - val challenge: Base64URLString - val excludeCredentials: ReadonlyArray? - val extensions: AuthenticationExtensionsClientInputsJSON? - val hints: ReadonlyArray? - val pubKeyCredParams: ReadonlyArray - val rp: PublicKeyCredentialRpEntity - val timeout: Int? - val user: PublicKeyCredentialUserEntityJSON + var attestation: String? + var authenticatorSelection: AuthenticatorSelectionCriteria? + var challenge: Base64URLString + var excludeCredentials: ReadonlyArray? + var extensions: AuthenticationExtensionsClientInputsJSON? + var hints: ReadonlyArray? + var pubKeyCredParams: ReadonlyArray + var rp: PublicKeyCredentialRpEntity + var timeout: Int? + var user: PublicKeyCredentialUserEntityJSON } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptor.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptor.kt index 75b5ed278e479..aa5bcb4f91994 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptor.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptor.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialDescriptor { - val id: BufferSource - val transports: ReadonlyArray? - val type: PublicKeyCredentialType + var id: BufferSource + var transports: ReadonlyArray? + var type: PublicKeyCredentialType } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptorJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptorJSON.kt index 6dfc9df0b8b72..7d2b4c6aa4543 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptorJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialDescriptorJSON.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialDescriptorJSON { - val id: Base64URLString - val transports: ReadonlyArray? - val type: String + var id: Base64URLString + var transports: ReadonlyArray? + var type: String } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialEntity.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialEntity.kt index e3e8b0e4bf41d..0c5bb8def7152 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialEntity.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialEntity.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialEntity { - val name: String + var name: String } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialParameters.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialParameters.kt index 3c0faf3011ba4..bee571a0e37b3 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialParameters.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialParameters { - val alg: COSEAlgorithmIdentifier - val type: PublicKeyCredentialType + var alg: COSEAlgorithmIdentifier + var type: PublicKeyCredentialType } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptions.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptions.kt index 45e02c407c7e7..50e38c9327b93 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptions.kt @@ -8,10 +8,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialRequestOptions { - val allowCredentials: ReadonlyArray? - val challenge: BufferSource - val extensions: AuthenticationExtensionsClientInputs? - val rpId: String? - val timeout: Int? - val userVerification: UserVerificationRequirement? + var allowCredentials: ReadonlyArray? + var challenge: BufferSource + var extensions: AuthenticationExtensionsClientInputs? + var rpId: String? + var timeout: Int? + var userVerification: UserVerificationRequirement? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptionsJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptionsJSON.kt index b4449768e2a81..cea348c483fdf 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptionsJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRequestOptionsJSON.kt @@ -8,11 +8,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialRequestOptionsJSON { - val allowCredentials: ReadonlyArray? - val challenge: Base64URLString - val extensions: AuthenticationExtensionsClientInputsJSON? - val hints: ReadonlyArray? - val rpId: String? - val timeout: Int? - val userVerification: String? + var allowCredentials: ReadonlyArray? + var challenge: Base64URLString + var extensions: AuthenticationExtensionsClientInputsJSON? + var hints: ReadonlyArray? + var rpId: String? + var timeout: Int? + var userVerification: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRpEntity.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRpEntity.kt index 7b55cf9e15343..57ea443c8ee38 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRpEntity.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialRpEntity.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialRpEntity : PublicKeyCredentialEntity { - val id: String? + var id: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntity.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntity.kt index 37ffc19f2d83c..0103ef23e4ac8 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntity.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntity.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialUserEntity : PublicKeyCredentialEntity { - val displayName: String - val id: BufferSource + var displayName: String + var id: BufferSource } diff --git a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntityJSON.kt b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntityJSON.kt index 786db563e4124..1c03e8c9d805f 100644 --- a/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntityJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/authn/PublicKeyCredentialUserEntityJSON.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PublicKeyCredentialUserEntityJSON { - val displayName: String - val id: Base64URLString - val name: String + var displayName: String + var id: Base64URLString + var name: String } diff --git a/kotlin-browser/src/commonMain/generated/web/cache/CacheQueryOptions.kt b/kotlin-browser/src/commonMain/generated/web/cache/CacheQueryOptions.kt index 07b7447fea60e..be5c6a7b3d73c 100644 --- a/kotlin-browser/src/commonMain/generated/web/cache/CacheQueryOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/cache/CacheQueryOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface CacheQueryOptions { - val ignoreMethod: Boolean? - val ignoreSearch: Boolean? - val ignoreVary: Boolean? + var ignoreMethod: Boolean? + var ignoreSearch: Boolean? + var ignoreVary: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/cache/MultiCacheQueryOptions.kt b/kotlin-browser/src/commonMain/generated/web/cache/MultiCacheQueryOptions.kt index f3636f77a279b..325a8bad13082 100644 --- a/kotlin-browser/src/commonMain/generated/web/cache/MultiCacheQueryOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/cache/MultiCacheQueryOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface MultiCacheQueryOptions : CacheQueryOptions { - val cacheName: String? + var cacheName: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/canvas/CanvasRenderingContext2DSettings.kt b/kotlin-browser/src/commonMain/generated/web/canvas/CanvasRenderingContext2DSettings.kt index 45498002f94e7..2d15c432da779 100644 --- a/kotlin-browser/src/commonMain/generated/web/canvas/CanvasRenderingContext2DSettings.kt +++ b/kotlin-browser/src/commonMain/generated/web/canvas/CanvasRenderingContext2DSettings.kt @@ -7,8 +7,8 @@ import web.images.PredefinedColorSpace @JsPlainObject external interface CanvasRenderingContext2DSettings { - val alpha: Boolean? - val colorSpace: PredefinedColorSpace? - val desynchronized: Boolean? - val willReadFrequently: Boolean? + var alpha: Boolean? + var colorSpace: PredefinedColorSpace? + var desynchronized: Boolean? + var willReadFrequently: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/canvas/ImageEncodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/canvas/ImageEncodeOptions.kt index 910f9f494c679..82d6334db5cc0 100644 --- a/kotlin-browser/src/commonMain/generated/web/canvas/ImageEncodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/canvas/ImageEncodeOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageEncodeOptions { - val quality: Double? - val type: String? + var quality: Double? + var type: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEvent.kt b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEvent.kt index 9d8f73dcbc22a..b37be999741ce 100644 --- a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEvent.kt @@ -2,9 +2,7 @@ package web.clipboard -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.data.DataTransfer import web.events.Event import web.events.EventType @@ -26,17 +24,17 @@ open external class ClipboardEvent( */ val clipboardData: DataTransfer? - @JsAlias(THIS) - override fun asInit(): ClipboardEventInit + companion object +} - companion object { - @JsValue("copy") - val COPY: EventType +inline fun ClipboardEvent.asInit(): ClipboardEventInit = + unsafeCast(this) - @JsValue("cut") - val CUT: EventType +inline val ClipboardEvent.Companion.COPY: EventType + get() = EventType("copy") - @JsValue("paste") - val PASTE: EventType - } -} +inline val ClipboardEvent.Companion.CUT: EventType + get() = EventType("cut") + +inline val ClipboardEvent.Companion.PASTE: EventType + get() = EventType("paste") diff --git a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEventInit.kt b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEventInit.kt index 6e5d772e46e68..02aae5685c94d 100644 --- a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardEventInit.kt @@ -9,5 +9,5 @@ import web.events.EventInit @JsPlainObject external interface ClipboardEventInit : EventInit { - val clipboardData: DataTransfer? + var clipboardData: DataTransfer? } diff --git a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardItemOptions.kt b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardItemOptions.kt index 49547abdd3ec6..f63a48996ebd5 100644 --- a/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardItemOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/clipboard/ClipboardItemOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ClipboardItemOptions { - val presentationStyle: PresentationStyle? + var presentationStyle: PresentationStyle? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataCopyToOptions.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataCopyToOptions.kt index e45e267e1e414..723eac368215d 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataCopyToOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataCopyToOptions.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioDataCopyToOptions { - val format: AudioSampleFormat? - val frameCount: Int? - val frameOffset: Int? - val planeIndex: Int + var format: AudioSampleFormat? + var frameCount: Int? + var frameOffset: Int? + var planeIndex: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataInit.kt index 3564e4769f96f..7e95df43bcaa6 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDataInit.kt @@ -10,11 +10,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioDataInit { - val data: BufferSource - val format: AudioSampleFormat - val numberOfChannels: Int - val numberOfFrames: Int - val sampleRate: Float - val timestamp: Int53 - val transfer: ReadonlyArray? + var data: BufferSource + var format: AudioSampleFormat + var numberOfChannels: Int + var numberOfFrames: Int + var sampleRate: Float + var timestamp: Int53 + var transfer: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderConfig.kt index 1be61be57c97d..196f083e39d11 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderConfig.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioDecoderConfig { - val codec: String - val description: AllowSharedBufferSource? - val numberOfChannels: Int - val sampleRate: Int + var codec: String + var description: AllowSharedBufferSource? + var numberOfChannels: Int + var sampleRate: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderInit.kt index 5a549d78e0264..f806cd8a6396b 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioDecoderInit { - val error: WebCodecsErrorCallback - val output: AudioDataOutputCallback + var error: WebCodecsErrorCallback + var output: AudioDataOutputCallback } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderSupport.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderSupport.kt index 7eb8b151e3a02..c9e4541253abb 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderSupport.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioDecoderSupport.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioDecoderSupport { - val config: AudioDecoderConfig? - val supported: Boolean? + var config: AudioDecoderConfig? + var supported: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderConfig.kt index 98d8c2e286857..d8ce7705fc0e8 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderConfig.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioEncoderConfig { - val bitrate: UInt53? - val bitrateMode: BitrateMode? - val codec: String - val numberOfChannels: Int - val opus: OpusEncoderConfig? - val sampleRate: Int + var bitrate: UInt53? + var bitrateMode: BitrateMode? + var codec: String + var numberOfChannels: Int + var opus: OpusEncoderConfig? + var sampleRate: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderInit.kt index 09662d4c8ee03..c6d081e454ee8 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioEncoderInit { - val error: WebCodecsErrorCallback - val output: EncodedAudioChunkOutputCallback + var error: WebCodecsErrorCallback + var output: EncodedAudioChunkOutputCallback } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderSupport.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderSupport.kt index 98ce563880c1b..73590f99a4d77 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderSupport.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AudioEncoderSupport.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioEncoderSupport { - val config: AudioEncoderConfig? - val supported: Boolean? + var config: AudioEncoderConfig? + var supported: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/AvcEncoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/AvcEncoderConfig.kt index 3e1f10b459dff..c596b8577a186 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/AvcEncoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/AvcEncoderConfig.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AvcEncoderConfig { - val format: AvcBitstreamFormat? + var format: AvcBitstreamFormat? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkInit.kt index 1a42328f8cc01..20b8c9cc22407 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkInit.kt @@ -11,9 +11,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface EncodedAudioChunkInit { - val data: AllowSharedBufferSource - val duration: UInt53? - val timestamp: Int53 - val transfer: ReadonlyArray? - val type: EncodedAudioChunkType + var data: AllowSharedBufferSource + var duration: UInt53? + var timestamp: Int53 + var transfer: ReadonlyArray? + var type: EncodedAudioChunkType } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkMetadata.kt b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkMetadata.kt index 059ab2342a328..1d9f188e3a7b4 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedAudioChunkMetadata.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EncodedAudioChunkMetadata { - val decoderConfig: AudioDecoderConfig? + var decoderConfig: AudioDecoderConfig? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkInit.kt index a45bae48878ce..d970acb7c9164 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkInit.kt @@ -9,8 +9,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface EncodedVideoChunkInit { - val data: AllowSharedBufferSource - val duration: UInt53? - val timestamp: Int53 - val type: EncodedVideoChunkType + var data: AllowSharedBufferSource + var duration: UInt53? + var timestamp: Int53 + var type: EncodedVideoChunkType } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkMetadata.kt b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkMetadata.kt index ac134171e5bb1..4eea7194550e1 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/EncodedVideoChunkMetadata.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EncodedVideoChunkMetadata { - val decoderConfig: VideoDecoderConfig? + var decoderConfig: VideoDecoderConfig? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeOptions.kt index f318456ab9b7e..0fc92386078c6 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageDecodeOptions { - val completeFramesOnly: Boolean? - val frameIndex: Int? + var completeFramesOnly: Boolean? + var frameIndex: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeResult.kt b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeResult.kt index 6325274aeb39c..c3dca81d031d4 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeResult.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecodeResult.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageDecodeResult { - val complete: Boolean - val image: VideoFrame + var complete: Boolean + var image: VideoFrame } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecoderInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecoderInit.kt index 528806027bbfb..7084093a04a44 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecoderInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/ImageDecoderInit.kt @@ -9,11 +9,11 @@ import web.images.ColorSpaceConversion @JsPlainObject external interface ImageDecoderInit { - val colorSpaceConversion: ColorSpaceConversion? - val data: ImageBufferSource - val desiredHeight: Int? - val desiredWidth: Int? - val preferAnimation: Boolean? - val transfer: ReadonlyArray? - val type: String + var colorSpaceConversion: ColorSpaceConversion? + var data: ImageBufferSource + var desiredHeight: Int? + var desiredWidth: Int? + var preferAnimation: Boolean? + var transfer: ReadonlyArray? + var type: String } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/OpusEncoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/OpusEncoderConfig.kt index 7780bd5fa53d2..3fa930d9c51a1 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/OpusEncoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/OpusEncoderConfig.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface OpusEncoderConfig { - val complexity: Int? - val format: OpusBitstreamFormat? - val frameDuration: UInt53? - val packetlossperc: Int? - val usedtx: Boolean? - val useinbandfec: Boolean? + var complexity: Int? + var format: OpusBitstreamFormat? + var frameDuration: UInt53? + var packetlossperc: Int? + var usedtx: Boolean? + var useinbandfec: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/PlaneLayout.kt b/kotlin-browser/src/commonMain/generated/web/codecs/PlaneLayout.kt index 8be23d9d2fa6c..4ead9baee234b 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/PlaneLayout.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/PlaneLayout.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlaneLayout { - val offset: Int - val stride: Int + var offset: Int + var stride: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoColorSpaceInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoColorSpaceInit.kt index 145b5ed21797f..870134b0787ae 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoColorSpaceInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoColorSpaceInit.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoColorSpaceInit { - val fullRange: Boolean? - val matrix: VideoMatrixCoefficients? - val primaries: VideoColorPrimaries? - val transfer: VideoTransferCharacteristics? + var fullRange: Boolean? + var matrix: VideoMatrixCoefficients? + var primaries: VideoColorPrimaries? + var transfer: VideoTransferCharacteristics? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderConfig.kt index 554b4207dff4d..e9544bf58314a 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderConfig.kt @@ -7,13 +7,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoDecoderConfig { - val codec: String - val codedHeight: Int? - val codedWidth: Int? - val colorSpace: VideoColorSpaceInit? - val description: AllowSharedBufferSource? - val displayAspectHeight: Int? - val displayAspectWidth: Int? - val hardwareAcceleration: HardwareAcceleration? - val optimizeForLatency: Boolean? + var codec: String + var codedHeight: Int? + var codedWidth: Int? + var colorSpace: VideoColorSpaceInit? + var description: AllowSharedBufferSource? + var displayAspectHeight: Int? + var displayAspectWidth: Int? + var hardwareAcceleration: HardwareAcceleration? + var optimizeForLatency: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderInit.kt index 3723611847d38..852acead825b6 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoDecoderInit { - val error: WebCodecsErrorCallback - val output: VideoFrameOutputCallback + var error: WebCodecsErrorCallback + var output: VideoFrameOutputCallback } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderSupport.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderSupport.kt index bcb43f40294fa..53ea1cdfe1c59 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderSupport.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoDecoderSupport.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoDecoderSupport { - val config: VideoDecoderConfig? - val supported: Boolean? + var config: VideoDecoderConfig? + var supported: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderConfig.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderConfig.kt index 161f29a511d10..5587cc2e9c32a 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderConfig.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderConfig.kt @@ -7,18 +7,18 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoEncoderConfig { - val alpha: AlphaOption? - val avc: AvcEncoderConfig? - val bitrate: UInt53? - val bitrateMode: VideoEncoderBitrateMode? - val codec: String - val contentHint: String? - val displayHeight: Int? - val displayWidth: Int? - val framerate: Double? - val hardwareAcceleration: HardwareAcceleration? - val height: Int - val latencyMode: LatencyMode? - val scalabilityMode: String? - val width: Int + var alpha: AlphaOption? + var avc: AvcEncoderConfig? + var bitrate: UInt53? + var bitrateMode: VideoEncoderBitrateMode? + var codec: String + var contentHint: String? + var displayHeight: Int? + var displayWidth: Int? + var framerate: Double? + var hardwareAcceleration: HardwareAcceleration? + var height: Int + var latencyMode: LatencyMode? + var scalabilityMode: String? + var width: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptions.kt index 0cc2e7bb3d0ac..b5722ceb0a463 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoEncoderEncodeOptions { - val avc: VideoEncoderEncodeOptionsForAvc? - val keyFrame: Boolean? + var avc: VideoEncoderEncodeOptionsForAvc? + var keyFrame: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptionsForAvc.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptionsForAvc.kt index cfff3660d7376..24999d8180286 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptionsForAvc.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderEncodeOptionsForAvc.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoEncoderEncodeOptionsForAvc { - val quantizer: Short? + var quantizer: Short? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderInit.kt index 2ce13967508db..ef85deae55ad5 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoEncoderInit { - val error: WebCodecsErrorCallback - val output: EncodedVideoChunkOutputCallback + var error: WebCodecsErrorCallback + var output: EncodedVideoChunkOutputCallback } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderSupport.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderSupport.kt index 8fd482ab972f8..175f431f8df3d 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderSupport.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoEncoderSupport.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoEncoderSupport { - val config: VideoEncoderConfig? - val supported: Boolean? + var config: VideoEncoderConfig? + var supported: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameBufferInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameBufferInit.kt index 04fa5e82ff4f0..e51faeb09d59d 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameBufferInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameBufferInit.kt @@ -10,14 +10,14 @@ import web.geometry.DOMRectReadOnly @JsPlainObject external interface VideoFrameBufferInit { - val codedHeight: Int - val codedWidth: Int - val colorSpace: VideoColorSpaceInit? - val displayHeight: Int? - val displayWidth: Int? - val duration: UInt53? - val format: VideoPixelFormat - val layout: ReadonlyArray? - val timestamp: Int53 - val visibleRect: DOMRectReadOnly? + var codedHeight: Int + var codedWidth: Int + var colorSpace: VideoColorSpaceInit? + var displayHeight: Int? + var displayWidth: Int? + var duration: UInt53? + var format: VideoPixelFormat + var layout: ReadonlyArray? + var timestamp: Int53 + var visibleRect: DOMRectReadOnly? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameCopyToOptions.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameCopyToOptions.kt index 72d39a765ec64..493085c6a65ad 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameCopyToOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameCopyToOptions.kt @@ -9,8 +9,8 @@ import web.images.PredefinedColorSpace @JsPlainObject external interface VideoFrameCopyToOptions { - val colorSpace: PredefinedColorSpace? - val format: VideoPixelFormat? - val layout: ReadonlyArray? - val rect: DOMRectReadOnly? + var colorSpace: PredefinedColorSpace? + var format: VideoPixelFormat? + var layout: ReadonlyArray? + var rect: DOMRectReadOnly? } diff --git a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameInit.kt b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameInit.kt index a10a307095bf8..16a15ff514ba3 100644 --- a/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/codecs/VideoFrameInit.kt @@ -9,10 +9,10 @@ import web.geometry.DOMRectReadOnly @JsPlainObject external interface VideoFrameInit { - val alpha: AlphaOption? - val displayHeight: Int? - val displayWidth: Int? - val duration: UInt53? - val timestamp: Int53? - val visibleRect: DOMRectReadOnly? + var alpha: AlphaOption? + var displayHeight: Int? + var displayWidth: Int? + var duration: UInt53? + var timestamp: Int53? + var visibleRect: DOMRectReadOnly? } diff --git a/kotlin-browser/src/commonMain/generated/web/components/AssignedNodesOptions.kt b/kotlin-browser/src/commonMain/generated/web/components/AssignedNodesOptions.kt index 2bf8fec4225d4..105ba74c5587f 100644 --- a/kotlin-browser/src/commonMain/generated/web/components/AssignedNodesOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/components/AssignedNodesOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AssignedNodesOptions { - val flatten: Boolean? + var flatten: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/components/ElementDefinitionOptions.kt b/kotlin-browser/src/commonMain/generated/web/components/ElementDefinitionOptions.kt index 259e11cda6b24..750d452a09a4f 100644 --- a/kotlin-browser/src/commonMain/generated/web/components/ElementDefinitionOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/components/ElementDefinitionOptions.kt @@ -8,5 +8,5 @@ import web.html.HtmlTagName @JsPlainObject external interface ElementDefinitionOptions { - val extends: HtmlTagName? + var extends: HtmlTagName? } diff --git a/kotlin-browser/src/commonMain/generated/web/components/ShadowRootInit.kt b/kotlin-browser/src/commonMain/generated/web/components/ShadowRootInit.kt index 7347c68b49aa5..409e985dde187 100644 --- a/kotlin-browser/src/commonMain/generated/web/components/ShadowRootInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/components/ShadowRootInit.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface ShadowRootInit { - val clonable: Boolean? - val customElementRegistry: CustomElementRegistry? - val delegatesFocus: Boolean? - val mode: ShadowRootMode - val serializable: Boolean? - val slotAssignment: SlotAssignmentMode? + var clonable: Boolean? + var customElementRegistry: CustomElementRegistry? + var delegatesFocus: Boolean? + var mode: ShadowRootMode + var serializable: Boolean? + var slotAssignment: SlotAssignmentMode? } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEvent.kt index 19a7b5ee86a56..38556a5493167 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEvent.kt @@ -3,9 +3,7 @@ package web.cookie import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -34,11 +32,11 @@ open external class CookieChangeEvent( */ val deleted: ReadonlyArray - @JsAlias(THIS) - override fun asInit(): CookieChangeEventInit - - companion object { - @JsValue("change") - val CHANGE: EventType - } + companion object } + +inline fun CookieChangeEvent.asInit(): CookieChangeEventInit = + unsafeCast(this) + +inline val CookieChangeEvent.Companion.CHANGE: EventType + get() = EventType("change") diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEventInit.kt index cdd80debe581a..f7c9c348a0a2e 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieChangeEventInit.kt @@ -8,6 +8,6 @@ import web.events.EventInit @JsPlainObject external interface CookieChangeEventInit : EventInit { - val changed: CookieList? - val deleted: CookieList? + var changed: CookieList? + var deleted: CookieList? } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieInit.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieInit.kt index f4bac266ef9f4..f79d2b66a7ba1 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieInit.kt @@ -7,11 +7,11 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface CookieInit { - val domain: String? - val expires: DOMHighResTimeStamp? - val name: String - val partitioned: Boolean? - val path: String? - val sameSite: CookieSameSite? - val value: String + var domain: String? + var expires: DOMHighResTimeStamp? + var name: String + var partitioned: Boolean? + var path: String? + var sameSite: CookieSameSite? + var value: String } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieListItem.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieListItem.kt index 066cf999451b2..42463a2c509ad 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieListItem.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieListItem.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface CookieListItem { - val name: String? - val value: String? + var name: String? + var value: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreDeleteOptions.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreDeleteOptions.kt index bbb5571221d54..af7435d85b26b 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreDeleteOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreDeleteOptions.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface CookieStoreDeleteOptions { - val domain: String? - val name: String - val partitioned: Boolean? - val path: String? + var domain: String? + var name: String + var partitioned: Boolean? + var path: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreGetOptions.kt b/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreGetOptions.kt index a57b22cafb30d..44e9703e064c9 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreGetOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/CookieStoreGetOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface CookieStoreGetOptions { - val name: String? - val url: String? + var name: String? + var url: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEvent.kt index 4375c2979f7a8..0dc4048ddddd2 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEvent.kt @@ -3,9 +3,7 @@ package web.cookie import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.serviceworker.ExtendableEvent import kotlin.js.definedExternally @@ -33,11 +31,11 @@ open external class ExtendableCookieChangeEvent( */ val deleted: ReadonlyArray - @JsAlias(THIS) - override fun asInit(): ExtendableCookieChangeEventInit - - companion object { - @JsValue("cookiechange") - val COOKIECHANGE: EventType - } + companion object } + +inline fun ExtendableCookieChangeEvent.asInit(): ExtendableCookieChangeEventInit = + unsafeCast(this) + +inline val ExtendableCookieChangeEvent.Companion.COOKIECHANGE: EventType + get() = EventType("cookiechange") diff --git a/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEventInit.kt index 36aa4fa1531aa..74b9e380f50df 100644 --- a/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cookie/ExtendableCookieChangeEventInit.kt @@ -8,6 +8,6 @@ import web.serviceworker.ExtendableEventInit @JsPlainObject external interface ExtendableCookieChangeEventInit : ExtendableEventInit { - val changed: CookieList? - val deleted: CookieList? + var changed: CookieList? + var deleted: CookieList? } diff --git a/kotlin-browser/src/commonMain/generated/web/credentials/CredentialCreationOptions.kt b/kotlin-browser/src/commonMain/generated/web/credentials/CredentialCreationOptions.kt index dc611952e7106..3b06647e5be72 100644 --- a/kotlin-browser/src/commonMain/generated/web/credentials/CredentialCreationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/credentials/CredentialCreationOptions.kt @@ -10,6 +10,6 @@ import web.authn.PublicKeyCredentialCreationOptions @JsPlainObject external interface CredentialCreationOptions : Abortable { - val publicKey: PublicKeyCredentialCreationOptions? - override val signal: AbortSignal? + var publicKey: PublicKeyCredentialCreationOptions? + override var signal: AbortSignal? } diff --git a/kotlin-browser/src/commonMain/generated/web/credentials/CredentialRequestOptions.kt b/kotlin-browser/src/commonMain/generated/web/credentials/CredentialRequestOptions.kt index f835122318aa4..dd77dbe4cacb0 100644 --- a/kotlin-browser/src/commonMain/generated/web/credentials/CredentialRequestOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/credentials/CredentialRequestOptions.kt @@ -10,7 +10,7 @@ import web.authn.PublicKeyCredentialRequestOptions @JsPlainObject external interface CredentialRequestOptions : Abortable { - val mediation: CredentialMediationRequirement? - val publicKey: PublicKeyCredentialRequestOptions? - override val signal: AbortSignal? + var mediation: CredentialMediationRequirement? + var publicKey: PublicKeyCredentialRequestOptions? + override var signal: AbortSignal? } diff --git a/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEvent.kt b/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEvent.kt index dd99bbe8dc932..4534acc84d220 100644 --- a/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEvent.kt @@ -2,9 +2,7 @@ package web.csp -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -102,11 +100,11 @@ open external class SecurityPolicyViolationEvent( */ val violatedDirective: String - @JsAlias(THIS) - override fun asInit(): SecurityPolicyViolationEventInit - - companion object { - @JsValue("securitypolicyviolation") - val SECURITY_POLICY_VIOLATION: EventType - } + companion object } + +inline fun SecurityPolicyViolationEvent.asInit(): SecurityPolicyViolationEventInit = + unsafeCast(this) + +inline val SecurityPolicyViolationEvent.Companion.SECURITY_POLICY_VIOLATION: EventType + get() = EventType("securitypolicyviolation") diff --git a/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEventInit.kt b/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEventInit.kt index f23ee3b0d8396..a24ae793795e1 100644 --- a/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/csp/SecurityPolicyViolationEventInit.kt @@ -8,16 +8,16 @@ import web.events.EventInit @JsPlainObject external interface SecurityPolicyViolationEventInit : EventInit { - val blockedURI: String? - val columnNumber: Int? - val disposition: SecurityPolicyViolationEventDisposition? - val documentURI: String? - val effectiveDirective: String? - val lineNumber: Int? - val originalPolicy: String? - val referrer: String? - val sample: String? - val sourceFile: String? - val statusCode: Short? - val violatedDirective: String? + var blockedURI: String? + var columnNumber: Int? + var disposition: SecurityPolicyViolationEventDisposition? + var documentURI: String? + var effectiveDirective: String? + var lineNumber: Int? + var originalPolicy: String? + var referrer: String? + var sample: String? + var sourceFile: String? + var statusCode: Short? + var violatedDirective: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/CSSMatrixComponentOptions.kt b/kotlin-browser/src/commonMain/generated/web/cssom/CSSMatrixComponentOptions.kt index 28d919df114f1..bc27fc99c5487 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/CSSMatrixComponentOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/CSSMatrixComponentOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface CSSMatrixComponentOptions { - val is2D: Boolean? + var is2D: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/CSSNumericType.kt b/kotlin-browser/src/commonMain/generated/web/cssom/CSSNumericType.kt index 7c6640ae8cfb4..60fd5c607ed43 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/CSSNumericType.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/CSSNumericType.kt @@ -6,12 +6,12 @@ import js.objects.JsPlainObject @JsPlainObject external interface CSSNumericType { - val angle: Int? - val flex: Int? - val frequency: Int? - val length: Int? - val percent: Int? - val percentHint: CSSNumericBaseType? - val resolution: Int? - val time: Int? + var angle: Int? + var flex: Int? + var frequency: Int? + var length: Int? + var percent: Int? + var percentHint: CSSNumericBaseType? + var resolution: Int? + var time: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/CSSStyleSheetInit.kt b/kotlin-browser/src/commonMain/generated/web/cssom/CSSStyleSheetInit.kt index 2837557e9977f..0e150e249947b 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/CSSStyleSheetInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/CSSStyleSheetInit.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface CSSStyleSheetInit { - val baseURL: String? - val disabled: Boolean? - val media: JsAny /* MediaList | string */? + var baseURL: String? + var disabled: Boolean? + var media: JsAny /* MediaList | string */? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEvent.kt index 12cbaabd937b1..f0a9482a147c8 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEvent.kt @@ -2,8 +2,7 @@ package web.cssom -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -23,7 +22,7 @@ open external class ContentVisibilityAutoStateChangeEvent( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ val skipped: Boolean - - @JsAlias(THIS) - override fun asInit(): ContentVisibilityAutoStateChangeEventInit } + +inline fun ContentVisibilityAutoStateChangeEvent.asInit(): ContentVisibilityAutoStateChangeEventInit = + unsafeCast(this) diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEventInit.kt index 2a2a8d232b08e..8c521d9c1490b 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/ContentVisibilityAutoStateChangeEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface ContentVisibilityAutoStateChangeEventInit : EventInit { - val skipped: Boolean? + var skipped: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEvent.kt b/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEvent.kt index 1c38618bf8df6..9d6bc4e733f14 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEvent.kt @@ -2,9 +2,7 @@ package web.cssom -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -32,11 +30,11 @@ open external class MediaQueryListEvent( */ val media: MediaQuery - @JsAlias(THIS) - override fun asInit(): MediaQueryListEventInit - - companion object { - @JsValue("change") - val CHANGE: EventType - } + companion object } + +inline fun MediaQueryListEvent.asInit(): MediaQueryListEventInit = + unsafeCast(this) + +inline val MediaQueryListEvent.Companion.CHANGE: EventType + get() = EventType("change") diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEventInit.kt b/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEventInit.kt index 69fa5fe86b491..e21600a6ee444 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/MediaQueryListEventInit.kt @@ -8,6 +8,6 @@ import web.events.EventInit @JsPlainObject external interface MediaQueryListEventInit : EventInit { - val matches: Boolean? - val media: MediaQuery? + var matches: Boolean? + var media: MediaQuery? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/PropertyDefinition.kt b/kotlin-browser/src/commonMain/generated/web/cssom/PropertyDefinition.kt index a2a12a58c86a0..917106943855e 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/PropertyDefinition.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/PropertyDefinition.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PropertyDefinition { - val inherits: Boolean - val initialValue: String? - val name: String - val syntax: String? + var inherits: Boolean + var initialValue: String? + var name: String + var syntax: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEvent.kt b/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEvent.kt index cc18c61c7e320..9c11da3530039 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEvent.kt @@ -2,9 +2,7 @@ package web.cssom -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -39,20 +37,20 @@ open external class TransitionEvent( */ val pseudoElement: String - @JsAlias(THIS) - override fun asInit(): TransitionEventInit + companion object +} - companion object { - @JsValue("transitioncancel") - val TRANSITION_CANCEL: EventType +inline fun TransitionEvent.asInit(): TransitionEventInit = + unsafeCast(this) - @JsValue("transitionend") - val TRANSITION_END: EventType +inline val TransitionEvent.Companion.TRANSITION_CANCEL: EventType + get() = EventType("transitioncancel") - @JsValue("transitionrun") - val TRANSITION_RUN: EventType +inline val TransitionEvent.Companion.TRANSITION_END: EventType + get() = EventType("transitionend") - @JsValue("transitionstart") - val TRANSITION_START: EventType - } -} +inline val TransitionEvent.Companion.TRANSITION_RUN: EventType + get() = EventType("transitionrun") + +inline val TransitionEvent.Companion.TRANSITION_START: EventType + get() = EventType("transitionstart") diff --git a/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEventInit.kt index fdf093128704a..cd5eef3ab8e27 100644 --- a/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/cssom/TransitionEventInit.kt @@ -8,7 +8,7 @@ import web.events.EventInit @JsPlainObject external interface TransitionEventInit : EventInit { - val elapsedTime: Double? - val propertyName: String? - val pseudoElement: String? + var elapsedTime: Double? + var propertyName: String? + var pseudoElement: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEvent.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEvent.kt index ef18dc7766235..fe6c4979dec85 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEvent.kt @@ -2,9 +2,7 @@ package web.device -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -47,11 +45,11 @@ open external class DeviceMotionEvent( */ val rotationRate: DeviceMotionEventRotationRate? - @JsAlias(THIS) - override fun asInit(): DeviceMotionEventInit - - companion object { - @JsValue("devicemotion") - val DEVICE_MOTION: EventType - } + companion object } + +inline fun DeviceMotionEvent.asInit(): DeviceMotionEventInit = + unsafeCast(this) + +inline val DeviceMotionEvent.Companion.DEVICE_MOTION: EventType + get() = EventType("devicemotion") diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventAccelerationInit.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventAccelerationInit.kt index d6205048f6615..512aac32d2c3f 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventAccelerationInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventAccelerationInit.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface DeviceMotionEventAccelerationInit { - val x: Double? - val y: Double? - val z: Double? + var x: Double? + var y: Double? + var z: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventInit.kt index d4705ec867819..efe40363d0f16 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventInit.kt @@ -8,8 +8,8 @@ import web.events.EventInit @JsPlainObject external interface DeviceMotionEventInit : EventInit { - val acceleration: DeviceMotionEventAccelerationInit? - val accelerationIncludingGravity: DeviceMotionEventAccelerationInit? - val interval: Double? - val rotationRate: DeviceMotionEventRotationRateInit? + var acceleration: DeviceMotionEventAccelerationInit? + var accelerationIncludingGravity: DeviceMotionEventAccelerationInit? + var interval: Double? + var rotationRate: DeviceMotionEventRotationRateInit? } diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventRotationRateInit.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventRotationRateInit.kt index c7c35641f7ad2..be94a459a75d0 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventRotationRateInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceMotionEventRotationRateInit.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface DeviceMotionEventRotationRateInit { - val alpha: Double? - val beta: Double? - val gamma: Double? + var alpha: Double? + var beta: Double? + var gamma: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEvent.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEvent.kt index c0581f952a2e8..a2eea0e4ca635 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEvent.kt @@ -2,9 +2,7 @@ package web.device -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -47,14 +45,14 @@ open external class DeviceOrientationEvent( */ val gamma: Double? - @JsAlias(THIS) - override fun asInit(): DeviceOrientationEventInit + companion object +} - companion object { - @JsValue("deviceorientation") - val DEVICE_ORIENTATION: EventType +inline fun DeviceOrientationEvent.asInit(): DeviceOrientationEventInit = + unsafeCast(this) - @JsValue("deviceorientationabsolute") - val DEVICE_ORIENTATION_ABSOLUTE: EventType - } -} +inline val DeviceOrientationEvent.Companion.DEVICE_ORIENTATION: EventType + get() = EventType("deviceorientation") + +inline val DeviceOrientationEvent.Companion.DEVICE_ORIENTATION_ABSOLUTE: EventType + get() = EventType("deviceorientationabsolute") diff --git a/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEventInit.kt b/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEventInit.kt index bda4299fd7daf..403a04acd22dc 100644 --- a/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/device/DeviceOrientationEventInit.kt @@ -8,8 +8,8 @@ import web.events.EventInit @JsPlainObject external interface DeviceOrientationEventInit : EventInit { - val absolute: Boolean? - val alpha: Double? - val beta: Double? - val gamma: Double? + var absolute: Boolean? + var alpha: Double? + var beta: Double? + var gamma: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/CaretPositionFromPointOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/CaretPositionFromPointOptions.kt index 63e83f7f9332b..55e9aad414cf9 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/CaretPositionFromPointOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/CaretPositionFromPointOptions.kt @@ -8,5 +8,5 @@ import web.components.ShadowRoot @JsPlainObject external interface CaretPositionFromPointOptions { - val shadowRoots: ReadonlyArray? + var shadowRoots: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/CheckVisibilityOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/CheckVisibilityOptions.kt index 2e166fe218e7a..2cca86452af45 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/CheckVisibilityOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/CheckVisibilityOptions.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface CheckVisibilityOptions { - val checkOpacity: Boolean? - val checkVisibilityCSS: Boolean? - val contentVisibilityAuto: Boolean? - val opacityProperty: Boolean? - val visibilityProperty: Boolean? + var checkOpacity: Boolean? + var checkVisibilityCSS: Boolean? + var contentVisibilityAuto: Boolean? + var opacityProperty: Boolean? + var visibilityProperty: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/ElementCreationOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/ElementCreationOptions.kt index ab4d34bb48a1a..2ab64637bf5eb 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/ElementCreationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/ElementCreationOptions.kt @@ -7,6 +7,6 @@ import web.components.CustomElementRegistry @JsPlainObject external interface ElementCreationOptions { - val customElementRegistry: CustomElementRegistry? - val `is`: String? + var customElementRegistry: CustomElementRegistry? + var `is`: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/FocusOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/FocusOptions.kt index 7c0bc74a93b4d..870df03c750fa 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/FocusOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/FocusOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FocusOptions { - val preventScroll: Boolean? + var preventScroll: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/GetAnimationsOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/GetAnimationsOptions.kt index 6f5bf6fb9da7e..359137ccf90cb 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/GetAnimationsOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/GetAnimationsOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GetAnimationsOptions { - val subtree: Boolean? + var subtree: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/GetHTMLOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/GetHTMLOptions.kt index 5c97b7c456ada..39d26c88f1774 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/GetHTMLOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/GetHTMLOptions.kt @@ -8,6 +8,6 @@ import web.components.ShadowRoot @JsPlainObject external interface GetHTMLOptions { - val serializableShadowRoots: Boolean? - val shadowRoots: ReadonlyArray? + var serializableShadowRoots: Boolean? + var shadowRoots: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/GetRootNodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/GetRootNodeOptions.kt index e6853c87aabbd..62d02d74e367a 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/GetRootNodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/GetRootNodeOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GetRootNodeOptions { - val composed: Boolean? + var composed: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/ImportNodeOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/ImportNodeOptions.kt index bfe3438c614fa..035a8bf5a4495 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/ImportNodeOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/ImportNodeOptions.kt @@ -7,6 +7,6 @@ import web.components.CustomElementRegistry @JsPlainObject external interface ImportNodeOptions { - val customElementRegistry: CustomElementRegistry? - val selfOnly: Boolean? + var customElementRegistry: CustomElementRegistry? + var selfOnly: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/dom/PointerLockOptions.kt b/kotlin-browser/src/commonMain/generated/web/dom/PointerLockOptions.kt index 7c43e3a31a468..436425de2daf6 100644 --- a/kotlin-browser/src/commonMain/generated/web/dom/PointerLockOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/dom/PointerLockOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface PointerLockOptions { - val unadjustedMovement: Boolean? + var unadjustedMovement: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/errors/ErrorEvent.kt b/kotlin-browser/src/commonMain/generated/web/errors/ErrorEvent.kt index fd241a21a1f80..2e753d68b3892 100644 --- a/kotlin-browser/src/commonMain/generated/web/errors/ErrorEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/errors/ErrorEvent.kt @@ -3,9 +3,7 @@ package web.errors import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -54,14 +52,14 @@ open external class ErrorEvent( */ val message: String - @JsAlias(THIS) - override fun asInit(): ErrorEventInit + companion object +} - companion object { - @JsValue("error") - val ERROR: EventType +inline fun ErrorEvent.asInit(): ErrorEventInit = + unsafeCast(this) - @JsValue("processorerror") - val PROCESSOR_ERROR: EventType - } -} +inline val ErrorEvent.Companion.ERROR: EventType + get() = EventType("error") + +inline val ErrorEvent.Companion.PROCESSOR_ERROR: EventType + get() = EventType("processorerror") diff --git a/kotlin-browser/src/commonMain/generated/web/errors/ErrorEventInit.kt b/kotlin-browser/src/commonMain/generated/web/errors/ErrorEventInit.kt index 6ae00fddda465..3c9ed71984eb2 100644 --- a/kotlin-browser/src/commonMain/generated/web/errors/ErrorEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/errors/ErrorEventInit.kt @@ -9,9 +9,9 @@ import web.events.EventInit @JsPlainObject external interface ErrorEventInit : EventInit { - val colno: Int? - val error: JsAny? - val filename: String? - val lineno: Int? - val message: String? + var colno: Int? + var error: JsAny? + var filename: String? + var lineno: Int? + var message: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceDescriptors.kt b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceDescriptors.kt index 7ed6870d1aa13..1b3b830f40919 100644 --- a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceDescriptors.kt +++ b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceDescriptors.kt @@ -6,13 +6,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface FontFaceDescriptors { - val ascentOverride: String? - val descentOverride: String? - val display: FontDisplay? - val featureSettings: String? - val lineGapOverride: String? - val stretch: String? - val style: String? - val unicodeRange: String? - val weight: String? + var ascentOverride: String? + var descentOverride: String? + var display: FontDisplay? + var featureSettings: String? + var lineGapOverride: String? + var stretch: String? + var style: String? + var unicodeRange: String? + var weight: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEvent.kt b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEvent.kt index 12a14d543c75e..3de68c41e0ec9 100644 --- a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEvent.kt @@ -3,9 +3,7 @@ package web.fonts import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -26,17 +24,17 @@ open external class FontFaceSetLoadEvent( */ val fontfaces: ReadonlyArray - @JsAlias(THIS) - override fun asInit(): FontFaceSetLoadEventInit + companion object +} - companion object { - @JsValue("loading") - val LOADING: EventType +inline fun FontFaceSetLoadEvent.asInit(): FontFaceSetLoadEventInit = + unsafeCast(this) - @JsValue("loadingdone") - val LOADING_DONE: EventType +inline val FontFaceSetLoadEvent.Companion.LOADING: EventType + get() = EventType("loading") - @JsValue("loadingerror") - val LOADING_ERROR: EventType - } -} +inline val FontFaceSetLoadEvent.Companion.LOADING_DONE: EventType + get() = EventType("loadingdone") + +inline val FontFaceSetLoadEvent.Companion.LOADING_ERROR: EventType + get() = EventType("loadingerror") diff --git a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEventInit.kt b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEventInit.kt index 24060535db3e4..8ff8f99d7c485 100644 --- a/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/fonts/FontFaceSetLoadEventInit.kt @@ -9,5 +9,5 @@ import web.events.EventInit @JsPlainObject external interface FontFaceSetLoadEventInit : EventInit { - val fontfaces: ReadonlyArray? + var fontfaces: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/form/FormDataEvent.kt b/kotlin-browser/src/commonMain/generated/web/form/FormDataEvent.kt index 0894ac3c23111..204d7c8e49d1c 100644 --- a/kotlin-browser/src/commonMain/generated/web/form/FormDataEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/form/FormDataEvent.kt @@ -2,9 +2,7 @@ package web.form -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,11 +22,11 @@ open external class FormDataEvent( */ val formData: FormData - @JsAlias(THIS) - override fun asInit(): FormDataEventInit - - companion object { - @JsValue("formdata") - val FORM_DATA: EventType - } + companion object } + +inline fun FormDataEvent.asInit(): FormDataEventInit = + unsafeCast(this) + +inline val FormDataEvent.Companion.FORM_DATA: EventType + get() = EventType("formdata") diff --git a/kotlin-browser/src/commonMain/generated/web/form/FormDataEventInit.kt b/kotlin-browser/src/commonMain/generated/web/form/FormDataEventInit.kt index c76dffd567100..dd8ab80d0722c 100644 --- a/kotlin-browser/src/commonMain/generated/web/form/FormDataEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/form/FormDataEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface FormDataEventInit : EventInit { - val formData: FormData + var formData: FormData } diff --git a/kotlin-browser/src/commonMain/generated/web/form/SubmitEvent.kt b/kotlin-browser/src/commonMain/generated/web/form/SubmitEvent.kt index e94e408a87c7c..f459d19165627 100644 --- a/kotlin-browser/src/commonMain/generated/web/form/SubmitEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/form/SubmitEvent.kt @@ -2,9 +2,7 @@ package web.form -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import web.html.HTMLElement @@ -26,11 +24,11 @@ open external class SubmitEvent( */ val submitter: HTMLElement? - @JsAlias(THIS) - override fun asInit(): SubmitEventInit - - companion object { - @JsValue("submit") - val SUBMIT: EventType - } + companion object } + +inline fun SubmitEvent.asInit(): SubmitEventInit = + unsafeCast(this) + +inline val SubmitEvent.Companion.SUBMIT: EventType + get() = EventType("submit") diff --git a/kotlin-browser/src/commonMain/generated/web/form/SubmitEventInit.kt b/kotlin-browser/src/commonMain/generated/web/form/SubmitEventInit.kt index 1ebe1566d5ab9..b0dccced9663f 100644 --- a/kotlin-browser/src/commonMain/generated/web/form/SubmitEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/form/SubmitEventInit.kt @@ -9,5 +9,5 @@ import web.html.HTMLElement @JsPlainObject external interface SubmitEventInit : EventInit { - val submitter: HTMLElement? + var submitter: HTMLElement? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemCreateWritableOptions.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemCreateWritableOptions.kt index 4ea9bcd575874..d3ab554222540 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemCreateWritableOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemCreateWritableOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemCreateWritableOptions { - val keepExistingData: Boolean? + var keepExistingData: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemFlags.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemFlags.kt index 707f37fd5f62d..5673338ce2014 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemFlags.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemFlags.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemFlags { - val create: Boolean? - val exclusive: Boolean? + var create: Boolean? + var exclusive: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetDirectoryOptions.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetDirectoryOptions.kt index 0941e7ee0435f..3e0601e71f345 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetDirectoryOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetDirectoryOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemGetDirectoryOptions { - val create: Boolean? + var create: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetFileOptions.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetFileOptions.kt index 78de5ec83729b..f5c0399d7845f 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetFileOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemGetFileOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemGetFileOptions { - val create: Boolean? + var create: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemReadWriteOptions.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemReadWriteOptions.kt index fb20d66a7f8ba..fcff6043157eb 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemReadWriteOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemReadWriteOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemReadWriteOptions { - val at: UInt53? + var at: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemRemoveOptions.kt b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemRemoveOptions.kt index 8c800ebef8a55..f8c8f62ef7da8 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/FileSystemRemoveOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/FileSystemRemoveOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FileSystemRemoveOptions { - val recursive: Boolean? + var recursive: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/fs/WriteParams.kt b/kotlin-browser/src/commonMain/generated/web/fs/WriteParams.kt index a923b36cbfecd..63c459e46f874 100644 --- a/kotlin-browser/src/commonMain/generated/web/fs/WriteParams.kt +++ b/kotlin-browser/src/commonMain/generated/web/fs/WriteParams.kt @@ -8,8 +8,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface WriteParams { - val data: JsAny /* BufferSource | Blob | string */? - val position: UInt53? - val size: UInt53? - val type: WriteCommandType + var data: JsAny /* BufferSource | Blob | string */? + var position: UInt53? + var size: UInt53? + var type: WriteCommandType } diff --git a/kotlin-browser/src/commonMain/generated/web/fullscreen/FullscreenOptions.kt b/kotlin-browser/src/commonMain/generated/web/fullscreen/FullscreenOptions.kt index d2217cdefa073..ddc02d3d03209 100644 --- a/kotlin-browser/src/commonMain/generated/web/fullscreen/FullscreenOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/fullscreen/FullscreenOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface FullscreenOptions { - val navigationUI: FullscreenNavigationUI? + var navigationUI: FullscreenNavigationUI? } diff --git a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEffectParameters.kt b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEffectParameters.kt index 1461aaea2fc7a..dd2b31f1920e3 100644 --- a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEffectParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEffectParameters.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface GamepadEffectParameters { - val duration: UInt53? - val leftTrigger: Double? - val rightTrigger: Double? - val startDelay: UInt53? - val strongMagnitude: Double? - val weakMagnitude: Double? + var duration: UInt53? + var leftTrigger: Double? + var rightTrigger: Double? + var startDelay: UInt53? + var strongMagnitude: Double? + var weakMagnitude: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEvent.kt b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEvent.kt index f652aaea182a9..0bf4bdbc9fc68 100644 --- a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEvent.kt @@ -2,9 +2,7 @@ package web.gamepad -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,14 +22,14 @@ open external class GamepadEvent( */ val gamepad: Gamepad - @JsAlias(THIS) - override fun asInit(): GamepadEventInit + companion object +} - companion object { - @JsValue("gamepadconnected") - val GAMEPAD_CONNECTED: EventType +inline fun GamepadEvent.asInit(): GamepadEventInit = + unsafeCast(this) - @JsValue("gamepaddisconnected") - val GAMEPAD_DISCONNECTED: EventType - } -} +inline val GamepadEvent.Companion.GAMEPAD_CONNECTED: EventType + get() = EventType("gamepadconnected") + +inline val GamepadEvent.Companion.GAMEPAD_DISCONNECTED: EventType + get() = EventType("gamepaddisconnected") diff --git a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEventInit.kt b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEventInit.kt index 39d49251f430d..1b7389947876d 100644 --- a/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/gamepad/GamepadEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface GamepadEventInit : EventInit { - val gamepad: Gamepad + var gamepad: Gamepad } diff --git a/kotlin-browser/src/commonMain/generated/web/geolocation/PositionOptions.kt b/kotlin-browser/src/commonMain/generated/web/geolocation/PositionOptions.kt index 2da9c9786ba64..506634165aa45 100644 --- a/kotlin-browser/src/commonMain/generated/web/geolocation/PositionOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/geolocation/PositionOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PositionOptions { - val enableHighAccuracy: Boolean? - val maximumAge: Int? - val timeout: Int? + var enableHighAccuracy: Boolean? + var maximumAge: Int? + var timeout: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEvent.kt b/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEvent.kt index ca81342419747..aa6578235d6a9 100644 --- a/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEvent.kt @@ -2,8 +2,7 @@ package web.gl -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -23,7 +22,7 @@ open external class WebGLContextEvent( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */ val statusMessage: String - - @JsAlias(THIS) - override fun asInit(): WebGLContextEventInit } + +inline fun WebGLContextEvent.asInit(): WebGLContextEventInit = + unsafeCast(this) diff --git a/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEventInit.kt b/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEventInit.kt index ccbd1e34ac5a9..340dee42db93b 100644 --- a/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/gl/WebGLContextEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface WebGLContextEventInit : EventInit { - val statusMessage: String? + var statusMessage: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/gpu/GPUCanvasConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/gpu/GPUCanvasConfiguration.kt index 1f0e49403dd13..37bec298c8a6d 100644 --- a/kotlin-browser/src/commonMain/generated/web/gpu/GPUCanvasConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/gpu/GPUCanvasConfiguration.kt @@ -8,11 +8,11 @@ import web.images.PredefinedColorSpace @JsPlainObject external interface GPUCanvasConfiguration { - val alphaMode: GPUCanvasAlphaMode? - val colorSpace: PredefinedColorSpace? - val device: GPUDevice - val format: GPUTextureFormat - val toneMapping: GPUCanvasToneMapping? - val usage: GPUTextureUsageFlags? - val viewFormats: ReadonlyArray? + var alphaMode: GPUCanvasAlphaMode? + var colorSpace: PredefinedColorSpace? + var device: GPUDevice + var format: GPUTextureFormat + var toneMapping: GPUCanvasToneMapping? + var usage: GPUTextureUsageFlags? + var viewFormats: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/history/HashChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/history/HashChangeEvent.kt index 30ff623525f24..9809d1628f6f6 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/HashChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/HashChangeEvent.kt @@ -2,9 +2,7 @@ package web.history -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -32,11 +30,11 @@ open external class HashChangeEvent( */ val oldURL: String - @JsAlias(THIS) - override fun asInit(): HashChangeEventInit - - companion object { - @JsValue("hashchange") - val HASH_CHANGE: EventType - } + companion object } + +inline fun HashChangeEvent.asInit(): HashChangeEventInit = + unsafeCast(this) + +inline val HashChangeEvent.Companion.HASH_CHANGE: EventType + get() = EventType("hashchange") diff --git a/kotlin-browser/src/commonMain/generated/web/history/HashChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/history/HashChangeEventInit.kt index 3ac70169f855d..f07bbc770dd2b 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/HashChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/HashChangeEventInit.kt @@ -8,6 +8,6 @@ import web.events.EventInit @JsPlainObject external interface HashChangeEventInit : EventInit { - val newURL: String? - val oldURL: String? + var newURL: String? + var oldURL: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEvent.kt b/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEvent.kt index 56bebe0e4a55e..670512d2446dc 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEvent.kt @@ -2,9 +2,7 @@ package web.history -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -25,14 +23,14 @@ open external class PageTransitionEvent( */ val persisted: Boolean - @JsAlias(THIS) - override fun asInit(): PageTransitionEventInit + companion object +} - companion object { - @JsValue("pagehide") - val PAGE_HIDE: EventType +inline fun PageTransitionEvent.asInit(): PageTransitionEventInit = + unsafeCast(this) - @JsValue("pageshow") - val PAGE_SHOW: EventType - } -} +inline val PageTransitionEvent.Companion.PAGE_HIDE: EventType + get() = EventType("pagehide") + +inline val PageTransitionEvent.Companion.PAGE_SHOW: EventType + get() = EventType("pageshow") diff --git a/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEventInit.kt index 70e7e8503269a..4540369110fe6 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/PageTransitionEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface PageTransitionEventInit : EventInit { - val persisted: Boolean? + var persisted: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/history/PopStateEvent.kt b/kotlin-browser/src/commonMain/generated/web/history/PopStateEvent.kt index 016c61e759609..8ea37e2e35042 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/PopStateEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/PopStateEvent.kt @@ -3,9 +3,7 @@ package web.history import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -33,11 +31,11 @@ open external class PopStateEvent( */ val state: JsAny? - @JsAlias(THIS) - override fun asInit(): PopStateEventInit - - companion object { - @JsValue("popstate") - val POP_STATE: EventType - } + companion object } + +inline fun PopStateEvent.asInit(): PopStateEventInit = + unsafeCast(this) + +inline val PopStateEvent.Companion.POP_STATE: EventType + get() = EventType("popstate") diff --git a/kotlin-browser/src/commonMain/generated/web/history/PopStateEventInit.kt b/kotlin-browser/src/commonMain/generated/web/history/PopStateEventInit.kt index cdf84b41e65f1..618e9dfefd8f5 100644 --- a/kotlin-browser/src/commonMain/generated/web/history/PopStateEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/history/PopStateEventInit.kt @@ -9,5 +9,5 @@ import web.events.EventInit @JsPlainObject external interface PopStateEventInit : EventInit { - val state: JsAny? + var state: JsAny? } diff --git a/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEvent.kt b/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEvent.kt index 8d70ddf49a88f..f1c4e1087dc98 100644 --- a/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEvent.kt @@ -3,9 +3,7 @@ package web.html import js.buffer.ArrayBuffer -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -33,11 +31,11 @@ open external class MediaEncryptedEvent( */ val initDataType: String - @JsAlias(THIS) - override fun asInit(): MediaEncryptedEventInit - - companion object { - @JsValue("encrypted") - val ENCRYPTED: EventType - } + companion object } + +inline fun MediaEncryptedEvent.asInit(): MediaEncryptedEventInit = + unsafeCast(this) + +inline val MediaEncryptedEvent.Companion.ENCRYPTED: EventType + get() = EventType("encrypted") diff --git a/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEventInit.kt b/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEventInit.kt index 5b2203671810e..73c981687ca26 100644 --- a/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/html/MediaEncryptedEventInit.kt @@ -9,6 +9,6 @@ import web.events.EventInit @JsPlainObject external interface MediaEncryptedEventInit : EventInit { - val initData: ArrayBuffer? - val initDataType: String? + var initData: ArrayBuffer? + var initDataType: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/html/VideoFrameCallbackMetadata.kt b/kotlin-browser/src/commonMain/generated/web/html/VideoFrameCallbackMetadata.kt index adef975a62ef4..802e7509e7bae 100644 --- a/kotlin-browser/src/commonMain/generated/web/html/VideoFrameCallbackMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/html/VideoFrameCallbackMetadata.kt @@ -7,14 +7,14 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface VideoFrameCallbackMetadata { - val captureTime: DOMHighResTimeStamp? - val expectedDisplayTime: DOMHighResTimeStamp - val height: Int - val mediaTime: Double - val presentationTime: DOMHighResTimeStamp - val presentedFrames: Int - val processingDuration: Double? - val receiveTime: DOMHighResTimeStamp? - val rtpTimestamp: Int? - val width: Int + var captureTime: DOMHighResTimeStamp? + var expectedDisplayTime: DOMHighResTimeStamp + var height: Int + var mediaTime: Double + var presentationTime: DOMHighResTimeStamp + var presentedFrames: Int + var processingDuration: Double? + var receiveTime: DOMHighResTimeStamp? + var rtpTimestamp: Int? + var width: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBDatabaseInfo.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBDatabaseInfo.kt index 7e4f9e4d67e87..5ec1f3ee0f3ca 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBDatabaseInfo.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBDatabaseInfo.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface IDBDatabaseInfo { - val name: String? - val version: UInt53? + var name: String? + var version: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBIndexParameters.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBIndexParameters.kt index 5b49cf69ff44c..3ae179f629221 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBIndexParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBIndexParameters.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface IDBIndexParameters { - val multiEntry: Boolean? - val unique: Boolean? + var multiEntry: Boolean? + var unique: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBObjectStoreParameters.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBObjectStoreParameters.kt index 2f98a3073d6a6..b4762d4dfb1dc 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBObjectStoreParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBObjectStoreParameters.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface IDBObjectStoreParameters { - val autoIncrement: Boolean? - val keyPath: JsAny /* string | string[] */? + var autoIncrement: Boolean? + var keyPath: JsAny /* string | string[] */? } diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBTransactionOptions.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBTransactionOptions.kt index c8ef016f62cba..6456bb5cf7214 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBTransactionOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBTransactionOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface IDBTransactionOptions { - val durability: IDBTransactionDurability? + var durability: IDBTransactionDurability? } diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEvent.kt index def8d8bb79f38..c0fbff6809119 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEvent.kt @@ -3,9 +3,7 @@ package web.idb import js.core.UInt53 -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -33,20 +31,20 @@ open external class IDBVersionChangeEvent( */ val oldVersion: UInt53 - @JsAlias(THIS) - override fun asInit(): IDBVersionChangeEventInit + companion object +} - companion object { - @JsValue("blocked") - val BLOCKED: EventType +inline fun IDBVersionChangeEvent.asInit(): IDBVersionChangeEventInit = + unsafeCast(this) - @JsValue("success") - val SUCCESS: EventType +inline val IDBVersionChangeEvent.Companion.BLOCKED: EventType + get() = EventType("blocked") - @JsValue("upgradeneeded") - val UPGRADENEEDED: EventType +inline val IDBVersionChangeEvent.Companion.SUCCESS: EventType + get() = EventType("success") - @JsValue("versionchange") - val VERSION_CHANGE: EventType - } -} +inline val IDBVersionChangeEvent.Companion.UPGRADENEEDED: EventType + get() = EventType("upgradeneeded") + +inline val IDBVersionChangeEvent.Companion.VERSION_CHANGE: EventType + get() = EventType("versionchange") diff --git a/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEventInit.kt index b109cad31c432..a84b74c717938 100644 --- a/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/idb/IDBVersionChangeEventInit.kt @@ -9,6 +9,6 @@ import web.events.EventInit @JsPlainObject external interface IDBVersionChangeEventInit : EventInit { - val newVersion: UInt53? - val oldVersion: UInt53? + var newVersion: UInt53? + var oldVersion: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/imagecapture/MediaSettingsRange.kt b/kotlin-browser/src/commonMain/generated/web/imagecapture/MediaSettingsRange.kt index a6a568db65e1d..7786e33117106 100644 --- a/kotlin-browser/src/commonMain/generated/web/imagecapture/MediaSettingsRange.kt +++ b/kotlin-browser/src/commonMain/generated/web/imagecapture/MediaSettingsRange.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaSettingsRange { - val max: Double? - val min: Double? - val step: Double? + var max: Double? + var min: Double? + var step: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoCapabilities.kt b/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoCapabilities.kt index 5b28bbfd3e2ff..05c7e865a92ec 100644 --- a/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoCapabilities.kt +++ b/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoCapabilities.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PhotoCapabilities { - val fillLightMode: ReadonlyArray? - val imageHeight: MediaSettingsRange? - val imageWidth: MediaSettingsRange? - val redEyeReduction: RedEyeReduction? + var fillLightMode: ReadonlyArray? + var imageHeight: MediaSettingsRange? + var imageWidth: MediaSettingsRange? + var redEyeReduction: RedEyeReduction? } diff --git a/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoSettings.kt b/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoSettings.kt index 65477b7a7c11c..df6ed27549af6 100644 --- a/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoSettings.kt +++ b/kotlin-browser/src/commonMain/generated/web/imagecapture/PhotoSettings.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PhotoSettings { - val fillLightMode: FillLightMode? - val imageHeight: Double? - val imageWidth: Double? - val redEyeReduction: Boolean? + var fillLightMode: FillLightMode? + var imageHeight: Double? + var imageWidth: Double? + var redEyeReduction: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/images/ImageBitmapRenderingContextSettings.kt b/kotlin-browser/src/commonMain/generated/web/images/ImageBitmapRenderingContextSettings.kt index 233559c77821d..1714a55ce64c1 100644 --- a/kotlin-browser/src/commonMain/generated/web/images/ImageBitmapRenderingContextSettings.kt +++ b/kotlin-browser/src/commonMain/generated/web/images/ImageBitmapRenderingContextSettings.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageBitmapRenderingContextSettings { - val alpha: Boolean? + var alpha: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/intersection/IntersectionObserverInit.kt b/kotlin-browser/src/commonMain/generated/web/intersection/IntersectionObserverInit.kt index 5cfc615baeff1..3897b0ddf7b5b 100644 --- a/kotlin-browser/src/commonMain/generated/web/intersection/IntersectionObserverInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/intersection/IntersectionObserverInit.kt @@ -9,7 +9,7 @@ import web.dom.ParentNode @JsPlainObject external interface IntersectionObserverInit { - val root: ParentNode /* Element | Document */? - val rootMargin: String? - val threshold: ReadonlyArray? + var root: ParentNode /* Element | Document */? + var rootMargin: String? + var threshold: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/locks/LockInfo.kt b/kotlin-browser/src/commonMain/generated/web/locks/LockInfo.kt index 7cc88c335e4eb..d8fe625b0b819 100644 --- a/kotlin-browser/src/commonMain/generated/web/locks/LockInfo.kt +++ b/kotlin-browser/src/commonMain/generated/web/locks/LockInfo.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface LockInfo { - val clientId: String? - val mode: LockMode? - val name: String? + var clientId: String? + var mode: LockMode? + var name: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/locks/LockManagerSnapshot.kt b/kotlin-browser/src/commonMain/generated/web/locks/LockManagerSnapshot.kt index 58ebc90d6cf18..15f8bc805673c 100644 --- a/kotlin-browser/src/commonMain/generated/web/locks/LockManagerSnapshot.kt +++ b/kotlin-browser/src/commonMain/generated/web/locks/LockManagerSnapshot.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface LockManagerSnapshot { - val held: ReadonlyArray? - val pending: ReadonlyArray? + var held: ReadonlyArray? + var pending: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/locks/LockOptions.kt b/kotlin-browser/src/commonMain/generated/web/locks/LockOptions.kt index 083627c3a3f0c..74627e9952707 100644 --- a/kotlin-browser/src/commonMain/generated/web/locks/LockOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/locks/LockOptions.kt @@ -9,8 +9,8 @@ import web.abort.Abortable @JsPlainObject external interface LockOptions : Abortable { - val ifAvailable: Boolean? - val mode: LockMode? - override val signal: AbortSignal? - val steal: Boolean? + var ifAvailable: Boolean? + var mode: LockMode? + override var signal: AbortSignal? + var steal: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/AudioConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/AudioConfiguration.kt index 26349f632be5d..326064d1ab3fb 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/AudioConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/AudioConfiguration.kt @@ -7,9 +7,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface AudioConfiguration { - val bitrate: UInt53? - val channels: String? - val contentType: String - val samplerate: Int? - val spatialRendering: Boolean? + var bitrate: UInt53? + var channels: String? + var contentType: String + var samplerate: Int? + var spatialRendering: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/KeySystemTrackConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/KeySystemTrackConfiguration.kt index 0ec4e2d968177..53d09cd6562d2 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/KeySystemTrackConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/KeySystemTrackConfiguration.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface KeySystemTrackConfiguration { - val robustness: String? + var robustness: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesDecodingInfo.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesDecodingInfo.kt index d4b8e18824401..23973aa932060 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesDecodingInfo.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesDecodingInfo.kt @@ -8,5 +8,5 @@ import web.mediakey.MediaKeySystemAccess @JsPlainObject external interface MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo { - val keySystemAccess: MediaKeySystemAccess? + var keySystemAccess: MediaKeySystemAccess? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesInfo.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesInfo.kt index c8b909884a5d5..3ec980c3d0d33 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesInfo.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesInfo.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaCapabilitiesInfo { - val powerEfficient: Boolean - val smooth: Boolean - val supported: Boolean + var powerEfficient: Boolean + var smooth: Boolean + var supported: Boolean } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesKeySystemConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesKeySystemConfiguration.kt index 35a3f9692bca9..13859e4431d2d 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesKeySystemConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaCapabilitiesKeySystemConfiguration.kt @@ -9,11 +9,11 @@ import web.mediakey.MediaKeysRequirement @JsPlainObject external interface MediaCapabilitiesKeySystemConfiguration { - val audio: KeySystemTrackConfiguration? - val distinctiveIdentifier: MediaKeysRequirement? - val initDataType: String? - val keySystem: String - val persistentState: MediaKeysRequirement? - val sessionTypes: ReadonlyArray? - val video: KeySystemTrackConfiguration? + var audio: KeySystemTrackConfiguration? + var distinctiveIdentifier: MediaKeysRequirement? + var initDataType: String? + var keySystem: String + var persistentState: MediaKeysRequirement? + var sessionTypes: ReadonlyArray? + var video: KeySystemTrackConfiguration? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaConfiguration.kt index 5c687522ea7be..286b4c0c9b3e7 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaConfiguration.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaConfiguration { - val audio: AudioConfiguration? - val video: VideoConfiguration? + var audio: AudioConfiguration? + var video: VideoConfiguration? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaDecodingConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaDecodingConfiguration.kt index d9b1f1407f1fd..f043257d58f97 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaDecodingConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaDecodingConfiguration.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaDecodingConfiguration : MediaConfiguration { - val keySystemConfiguration: MediaCapabilitiesKeySystemConfiguration? - val type: MediaDecodingType + var keySystemConfiguration: MediaCapabilitiesKeySystemConfiguration? + var type: MediaDecodingType } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaEncodingConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaEncodingConfiguration.kt index 92f89f038b951..bce0700cf0b22 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaEncodingConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/MediaEncodingConfiguration.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaEncodingConfiguration : MediaConfiguration { - val type: MediaEncodingType + var type: MediaEncodingType } diff --git a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/VideoConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/VideoConfiguration.kt index c64479aaa1e71..4a781eb51e4a5 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediacapabilities/VideoConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediacapabilities/VideoConfiguration.kt @@ -7,14 +7,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface VideoConfiguration { - val bitrate: UInt53 - val colorGamut: ColorGamut? - val contentType: String - val framerate: Double - val hasAlphaChannel: Boolean? - val hdrMetadataType: HdrMetadataType? - val height: Int - val scalabilityMode: String? - val transferFunction: TransferFunction? - val width: Int + var bitrate: UInt53 + var colorGamut: ColorGamut? + var contentType: String + var framerate: Double + var hasAlphaChannel: Boolean? + var hdrMetadataType: HdrMetadataType? + var height: Int + var scalabilityMode: String? + var transferFunction: TransferFunction? + var width: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/mediadevices/DisplayMediaStreamOptions.kt b/kotlin-browser/src/commonMain/generated/web/mediadevices/DisplayMediaStreamOptions.kt index d1cf3e0f1d9b0..4d08d52410040 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediadevices/DisplayMediaStreamOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediadevices/DisplayMediaStreamOptions.kt @@ -7,6 +7,6 @@ import web.mediastreams.MediaTrackConstraints @JsPlainObject external interface DisplayMediaStreamOptions { - val audio: MediaTrackConstraints /* | Boolean */? - val video: MediaTrackConstraints /* | Boolean */? + var audio: MediaTrackConstraints /* | Boolean */? + var video: MediaTrackConstraints /* | Boolean */? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEvent.kt b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEvent.kt index 1b8c2ea6036bf..4a27be0196fea 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEvent.kt @@ -3,9 +3,7 @@ package web.mediakey import js.buffer.ArrayBuffer -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -33,11 +31,11 @@ open external class MediaKeyMessageEvent( */ val messageType: MediaKeyMessageType - @JsAlias(THIS) - override fun asInit(): MediaKeyMessageEventInit - - companion object { - @JsValue("message") - val MESSAGE: EventType - } + companion object } + +inline fun MediaKeyMessageEvent.asInit(): MediaKeyMessageEventInit = + unsafeCast(this) + +inline val MediaKeyMessageEvent.Companion.MESSAGE: EventType + get() = EventType("message") diff --git a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEventInit.kt b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEventInit.kt index 214777a814e47..d4768919d3de2 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeyMessageEventInit.kt @@ -9,6 +9,6 @@ import web.events.EventInit @JsPlainObject external interface MediaKeyMessageEventInit : EventInit { - val message: ArrayBuffer - val messageType: MediaKeyMessageType + var message: ArrayBuffer + var messageType: MediaKeyMessageType } diff --git a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemConfiguration.kt index e781de660850d..323028707a991 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemConfiguration.kt @@ -8,11 +8,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaKeySystemConfiguration { - val audioCapabilities: ReadonlyArray? - val distinctiveIdentifier: MediaKeysRequirement? - val initDataTypes: ReadonlyArray? - val label: String? - val persistentState: MediaKeysRequirement? - val sessionTypes: ReadonlyArray? - val videoCapabilities: ReadonlyArray? + var audioCapabilities: ReadonlyArray? + var distinctiveIdentifier: MediaKeysRequirement? + var initDataTypes: ReadonlyArray? + var label: String? + var persistentState: MediaKeysRequirement? + var sessionTypes: ReadonlyArray? + var videoCapabilities: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemMediaCapability.kt b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemMediaCapability.kt index 20723d605041c..b348c57a98107 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemMediaCapability.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeySystemMediaCapability.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaKeySystemMediaCapability { - val contentType: String? - val encryptionScheme: String? - val robustness: String? + var contentType: String? + var encryptionScheme: String? + var robustness: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeysPolicy.kt b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeysPolicy.kt index e19e3e64a4fa0..05a3cbe943a1d 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeysPolicy.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediakey/MediaKeysPolicy.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaKeysPolicy { - val minHdcpVersion: String? + var minHdcpVersion: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEvent.kt b/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEvent.kt index 7b94da1a8eaa8..6ef39083d21d8 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEvent.kt @@ -2,9 +2,7 @@ package web.mediarecorder -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.blob.Blob import web.events.Event import web.events.EventType @@ -33,11 +31,11 @@ open external class BlobEvent( */ val timecode: DOMHighResTimeStamp - @JsAlias(THIS) - override fun asInit(): BlobEventInit - - companion object { - @JsValue("dataavailable") - val DATA_AVAILABLE: EventType - } + companion object } + +inline fun BlobEvent.asInit(): BlobEventInit = + unsafeCast(this) + +inline val BlobEvent.Companion.DATA_AVAILABLE: EventType + get() = EventType("dataavailable") diff --git a/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEventInit.kt b/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEventInit.kt index c1e28df81e198..154bfee7a161c 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediarecorder/BlobEventInit.kt @@ -10,6 +10,6 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface BlobEventInit : EventInit { - val data: Blob - val timecode: DOMHighResTimeStamp? + var data: Blob + var timecode: DOMHighResTimeStamp? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediarecorder/MediaRecorderOptions.kt b/kotlin-browser/src/commonMain/generated/web/mediarecorder/MediaRecorderOptions.kt index 7f2db62788e64..f45d861214c11 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediarecorder/MediaRecorderOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediarecorder/MediaRecorderOptions.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaRecorderOptions { - val audioBitsPerSecond: Int? - val bitsPerSecond: Int? - val mimeType: String? - val videoBitsPerSecond: Int? + var audioBitsPerSecond: Int? + var bitsPerSecond: Int? + var mimeType: String? + var videoBitsPerSecond: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaImage.kt b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaImage.kt index 27eda91aae55c..8b3fc739cce33 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaImage.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaImage.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaImage { - val sizes: String? - val src: String - val type: String? + var sizes: String? + var src: String + var type: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaMetadataInit.kt b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaMetadataInit.kt index a158bb1f82638..00b1e45642021 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaMetadataInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaMetadataInit.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaMetadataInit { - val album: String? - val artist: String? - val artwork: ReadonlyArray? - val title: String? + var album: String? + var artist: String? + var artwork: ReadonlyArray? + var title: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaPositionState.kt b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaPositionState.kt index 5e3542c7aa4a6..1e471c4bc457e 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaPositionState.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaPositionState.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaPositionState { - val duration: Double? - val playbackRate: Double? - val position: Double? + var duration: Double? + var playbackRate: Double? + var position: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaSessionActionDetails.kt b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaSessionActionDetails.kt index e959084854981..64fba74f72c5d 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediasession/MediaSessionActionDetails.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediasession/MediaSessionActionDetails.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaSessionActionDetails { - val action: MediaSessionAction - val fastSeek: Boolean? - val seekOffset: Double? - val seekTime: Double? + var action: MediaSessionAction + var fastSeek: Boolean? + var seekOffset: Double? + var seekTime: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainBooleanParameters.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainBooleanParameters.kt index 8ea25180f1ec0..505ae4b04471c 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainBooleanParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainBooleanParameters.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConstrainBooleanParameters { - val exact: Boolean? - val ideal: Boolean? + var exact: Boolean? + var ideal: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDOMStringParameters.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDOMStringParameters.kt index 54ac5e1f5816c..7477683e57d29 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDOMStringParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDOMStringParameters.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConstrainDOMStringParameters { - val exact: JsAny /* string | string[] */? - val ideal: JsAny /* string | string[] */? + var exact: JsAny /* string | string[] */? + var ideal: JsAny /* string | string[] */? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDoubleRange.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDoubleRange.kt index 46d211acd3c67..a8a46196a53bf 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDoubleRange.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainDoubleRange.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConstrainDoubleRange : DoubleRange { - val exact: Double? - val ideal: Double? + var exact: Double? + var ideal: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainULongRange.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainULongRange.kt index c30d9610ccffa..302ab8dd42933 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainULongRange.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/ConstrainULongRange.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ConstrainULongRange : ULongRange { - val exact: Int? - val ideal: Int? + var exact: Int? + var ideal: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/DoubleRange.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/DoubleRange.kt index c19a628eff4ec..0fa3dfad70778 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/DoubleRange.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/DoubleRange.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface DoubleRange { - val max: Double? - val min: Double? + var max: Double? + var min: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamConstraints.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamConstraints.kt index 8bdb1f2afeca2..00a29af42238a 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamConstraints.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamConstraints.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaStreamConstraints { - val audio: MediaTrackConstraints /* | Boolean */? - val peerIdentity: String? - val preferCurrentTab: Boolean? - val video: MediaTrackConstraints /* | Boolean */? + var audio: MediaTrackConstraints /* | Boolean */? + var peerIdentity: String? + var preferCurrentTab: Boolean? + var video: MediaTrackConstraints /* | Boolean */? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEvent.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEvent.kt index 4b61e0544e38a..0b9dbc64b5e6a 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEvent.kt @@ -2,9 +2,7 @@ package web.mediastreams -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,14 +22,14 @@ open external class MediaStreamTrackEvent( */ val track: MediaStreamTrack - @JsAlias(THIS) - override fun asInit(): MediaStreamTrackEventInit + companion object +} - companion object { - @JsValue("addtrack") - val ADD_TRACK: EventType +inline fun MediaStreamTrackEvent.asInit(): MediaStreamTrackEventInit = + unsafeCast(this) - @JsValue("removetrack") - val REMOVE_TRACK: EventType - } -} +inline val MediaStreamTrackEvent.Companion.ADD_TRACK: EventType + get() = EventType("addtrack") + +inline val MediaStreamTrackEvent.Companion.REMOVE_TRACK: EventType + get() = EventType("removetrack") diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEventInit.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEventInit.kt index 55001ba56e8f7..f685009670248 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaStreamTrackEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface MediaStreamTrackEventInit : EventInit { - val track: MediaStreamTrack + var track: MediaStreamTrack } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackCapabilities.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackCapabilities.kt index 2059e997c57cb..f51a35d3917b0 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackCapabilities.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackCapabilities.kt @@ -9,19 +9,19 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaTrackCapabilities { - val aspectRatio: DoubleRange? - val autoGainControl: ReadonlyArray? - val backgroundBlur: ReadonlyArray? - val channelCount: ULongRange? - val deviceId: String? - val displaySurface: String? - val echoCancellation: ReadonlyArray? - val facingMode: ReadonlyArray? - val frameRate: DoubleRange? - val groupId: String? - val height: ULongRange? - val noiseSuppression: ReadonlyArray? - val sampleRate: ULongRange? - val sampleSize: ULongRange? - val width: ULongRange? + var aspectRatio: DoubleRange? + var autoGainControl: ReadonlyArray? + var backgroundBlur: ReadonlyArray? + var channelCount: ULongRange? + var deviceId: String? + var displaySurface: String? + var echoCancellation: ReadonlyArray? + var facingMode: ReadonlyArray? + var frameRate: DoubleRange? + var groupId: String? + var height: ULongRange? + var noiseSuppression: ReadonlyArray? + var sampleRate: ULongRange? + var sampleSize: ULongRange? + var width: ULongRange? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraintSet.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraintSet.kt index 0e97b14c38f71..22b1ba502f4ab 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraintSet.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraintSet.kt @@ -6,19 +6,19 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaTrackConstraintSet { - val aspectRatio: ConstrainDouble? - val autoGainControl: ConstrainBoolean? - val backgroundBlur: ConstrainBoolean? - val channelCount: ConstrainULong? - val deviceId: ConstrainDOMString? - val displaySurface: ConstrainDOMString? - val echoCancellation: ConstrainBoolean? - val facingMode: ConstrainDOMString? - val frameRate: ConstrainDouble? - val groupId: ConstrainDOMString? - val height: ConstrainULong? - val noiseSuppression: ConstrainBoolean? - val sampleRate: ConstrainULong? - val sampleSize: ConstrainULong? - val width: ConstrainULong? + var aspectRatio: ConstrainDouble? + var autoGainControl: ConstrainBoolean? + var backgroundBlur: ConstrainBoolean? + var channelCount: ConstrainULong? + var deviceId: ConstrainDOMString? + var displaySurface: ConstrainDOMString? + var echoCancellation: ConstrainBoolean? + var facingMode: ConstrainDOMString? + var frameRate: ConstrainDouble? + var groupId: ConstrainDOMString? + var height: ConstrainULong? + var noiseSuppression: ConstrainBoolean? + var sampleRate: ConstrainULong? + var sampleSize: ConstrainULong? + var width: ConstrainULong? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraints.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraints.kt index ea34b594343bc..36457c8accf03 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraints.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackConstraints.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaTrackConstraints : MediaTrackConstraintSet { - val advanced: ReadonlyArray? + var advanced: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSettings.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSettings.kt index fd92fdd6472b0..b37834a80678d 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSettings.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSettings.kt @@ -6,22 +6,22 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaTrackSettings { - val aspectRatio: Double? - val autoGainControl: Boolean? - val backgroundBlur: Boolean? - val channelCount: Int? - val deviceId: String? - val displaySurface: String? - val echoCancellation: Boolean? - val facingMode: String? - val frameRate: Double? - val groupId: String? - val height: Int? - val noiseSuppression: Boolean? - val sampleRate: Int? - val sampleSize: Int? - val torch: Boolean? - val whiteBalanceMode: String? - val width: Int? - val zoom: Double? + var aspectRatio: Double? + var autoGainControl: Boolean? + var backgroundBlur: Boolean? + var channelCount: Int? + var deviceId: String? + var displaySurface: String? + var echoCancellation: Boolean? + var facingMode: String? + var frameRate: Double? + var groupId: String? + var height: Int? + var noiseSuppression: Boolean? + var sampleRate: Int? + var sampleSize: Int? + var torch: Boolean? + var whiteBalanceMode: String? + var width: Int? + var zoom: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSupportedConstraints.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSupportedConstraints.kt index 3d4e77b562457..ba868fcd4589c 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSupportedConstraints.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/MediaTrackSupportedConstraints.kt @@ -6,19 +6,19 @@ import js.objects.JsPlainObject @JsPlainObject external interface MediaTrackSupportedConstraints { - val aspectRatio: Boolean? - val autoGainControl: Boolean? - val backgroundBlur: Boolean? - val channelCount: Boolean? - val deviceId: Boolean? - val displaySurface: Boolean? - val echoCancellation: Boolean? - val facingMode: Boolean? - val frameRate: Boolean? - val groupId: Boolean? - val height: Boolean? - val noiseSuppression: Boolean? - val sampleRate: Boolean? - val sampleSize: Boolean? - val width: Boolean? + var aspectRatio: Boolean? + var autoGainControl: Boolean? + var backgroundBlur: Boolean? + var channelCount: Boolean? + var deviceId: Boolean? + var displaySurface: Boolean? + var echoCancellation: Boolean? + var facingMode: Boolean? + var frameRate: Boolean? + var groupId: Boolean? + var height: Boolean? + var noiseSuppression: Boolean? + var sampleRate: Boolean? + var sampleSize: Boolean? + var width: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/mediastreams/ULongRange.kt b/kotlin-browser/src/commonMain/generated/web/mediastreams/ULongRange.kt index 074c2f4662cd5..6e8fccc0138d1 100644 --- a/kotlin-browser/src/commonMain/generated/web/mediastreams/ULongRange.kt +++ b/kotlin-browser/src/commonMain/generated/web/mediastreams/ULongRange.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ULongRange { - val max: Int? - val min: Int? + var max: Int? + var min: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEvent.kt b/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEvent.kt index c2cef229e5918..e742d24f04cb5 100644 --- a/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEvent.kt @@ -2,9 +2,7 @@ package web.midi -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -26,11 +24,11 @@ open external class MIDIConnectionEvent( */ val port: MIDIPort? - @JsAlias(THIS) - override fun asInit(): MIDIConnectionEventInit - - companion object { - @JsValue("statechange") - val STATE_CHANGE: EventType - } + companion object } + +inline fun MIDIConnectionEvent.asInit(): MIDIConnectionEventInit = + unsafeCast(this) + +inline val MIDIConnectionEvent.Companion.STATE_CHANGE: EventType + get() = EventType("statechange") diff --git a/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEventInit.kt index 38b2ec924f051..988895c6a8269 100644 --- a/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/midi/MIDIConnectionEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface MIDIConnectionEventInit : EventInit { - val port: MIDIPort? + var port: MIDIPort? } diff --git a/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEvent.kt b/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEvent.kt index 194c80c4c8f94..058d2b3b26848 100644 --- a/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEvent.kt @@ -3,10 +3,8 @@ package web.midi import js.buffer.ArrayBuffer +import js.reflect.unsafeCast import js.typedarrays.Uint8Array -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -28,11 +26,11 @@ open external class MIDIMessageEvent( */ val data: Uint8Array? - @JsAlias(THIS) - override fun asInit(): MIDIMessageEventInit - - companion object { - @JsValue("midimessage") - val MIDI_MESSAGE: EventType - } + companion object } + +inline fun MIDIMessageEvent.asInit(): MIDIMessageEventInit = + unsafeCast(this) + +inline val MIDIMessageEvent.Companion.MIDI_MESSAGE: EventType + get() = EventType("midimessage") diff --git a/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEventInit.kt b/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEventInit.kt index cb802a65f9441..379e398dce1dc 100644 --- a/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/midi/MIDIMessageEventInit.kt @@ -10,5 +10,5 @@ import web.events.EventInit @JsPlainObject external interface MIDIMessageEventInit : EventInit { - val data: Uint8Array? + var data: Uint8Array? } diff --git a/kotlin-browser/src/commonMain/generated/web/midi/MIDIOptions.kt b/kotlin-browser/src/commonMain/generated/web/midi/MIDIOptions.kt index 1c29ab0a011dc..8fdea4c1f5003 100644 --- a/kotlin-browser/src/commonMain/generated/web/midi/MIDIOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/midi/MIDIOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface MIDIOptions { - val software: Boolean? - val sysex: Boolean? + var software: Boolean? + var sysex: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/mutation/MutationObserverInit.kt b/kotlin-browser/src/commonMain/generated/web/mutation/MutationObserverInit.kt index a0cc9cc25f65f..7389155601e94 100644 --- a/kotlin-browser/src/commonMain/generated/web/mutation/MutationObserverInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/mutation/MutationObserverInit.kt @@ -11,35 +11,35 @@ external interface MutationObserverInit { /** * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ - val attributeFilter: ReadonlyArray? + var attributeFilter: ReadonlyArray? /** * Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ - val attributeOldValue: Boolean? + var attributeOldValue: Boolean? /** * Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ - val attributes: Boolean? + var attributes: Boolean? /** * Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ - val characterData: Boolean? + var characterData: Boolean? /** * Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ - val characterDataOldValue: Boolean? + var characterDataOldValue: Boolean? /** * Set to true if mutations to target's children are to be observed. */ - val childList: Boolean? + var childList: Boolean? /** * Set to true if mutations to not just target, but also target's descendants are to be observed. */ - val subtree: Boolean? + var subtree: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/notifications/NotificationOptions.kt b/kotlin-browser/src/commonMain/generated/web/notifications/NotificationOptions.kt index 8a5460aefef9d..51bb572895e11 100644 --- a/kotlin-browser/src/commonMain/generated/web/notifications/NotificationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/notifications/NotificationOptions.kt @@ -7,13 +7,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface NotificationOptions { - val badge: String? - val body: String? - val data: JsAny? - val dir: NotificationDirection? - val icon: String? - val lang: String? - val requireInteraction: Boolean? - val silent: Boolean? - val tag: String? + var badge: String? + var body: String? + var data: JsAny? + var dir: NotificationDirection? + var icon: String? + var lang: String? + var requireInteraction: Boolean? + var silent: Boolean? + var tag: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/AddressErrors.kt b/kotlin-browser/src/commonMain/generated/web/payment/AddressErrors.kt index e4acbf7423847..006896d75fd90 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/AddressErrors.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/AddressErrors.kt @@ -6,14 +6,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface AddressErrors { - val addressLine: String? - val city: String? - val country: String? - val dependentLocality: String? - val organization: String? - val phone: String? - val postalCode: String? - val recipient: String? - val region: String? - val sortingCode: String? + var addressLine: String? + var city: String? + var country: String? + var dependentLocality: String? + var organization: String? + var phone: String? + var postalCode: String? + var recipient: String? + var region: String? + var sortingCode: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PayerErrors.kt b/kotlin-browser/src/commonMain/generated/web/payment/PayerErrors.kt index 112254fe4db51..2a6f87cc40e70 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PayerErrors.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PayerErrors.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PayerErrors { - val email: String? - val name: String? - val phone: String? + var email: String? + var name: String? + var phone: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentCurrencyAmount.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentCurrencyAmount.kt index 8c78e6fdb5003..910d16ba5e73a 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentCurrencyAmount.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentCurrencyAmount.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentCurrencyAmount { - val currency: String - val value: String + var currency: String + var value: String } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsBase.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsBase.kt index 0e5934656f497..88ad4b6bd4c83 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsBase.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsBase.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentDetailsBase { - val displayItems: ReadonlyArray? - val modifiers: ReadonlyArray? - val shippingOptions: ReadonlyArray? + var displayItems: ReadonlyArray? + var modifiers: ReadonlyArray? + var shippingOptions: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsInit.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsInit.kt index e5c98131c10a1..48289bfbcc0db 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsInit.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentDetailsInit : PaymentDetailsBase { - val id: String? - val total: PaymentItem + var id: String? + var total: PaymentItem } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsModifier.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsModifier.kt index 9ebfc16a7fe8f..60d479db4e010 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsModifier.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsModifier.kt @@ -8,8 +8,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentDetailsModifier { - val additionalDisplayItems: ReadonlyArray? - val data: JsAny? - val supportedMethods: String - val total: PaymentItem? + var additionalDisplayItems: ReadonlyArray? + var data: JsAny? + var supportedMethods: String + var total: PaymentItem? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsUpdate.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsUpdate.kt index 67eed219b014b..2698f5042b8ec 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsUpdate.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentDetailsUpdate.kt @@ -8,8 +8,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentDetailsUpdate : PaymentDetailsBase { - val error: String? - val paymentMethodErrors: JsAny? - val shippingAddressErrors: AddressErrors? - val total: PaymentItem? + var error: String? + var paymentMethodErrors: JsAny? + var shippingAddressErrors: AddressErrors? + var total: PaymentItem? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentItem.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentItem.kt index 776d431a7a498..4a7c18a342df5 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentItem.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentItem.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentItem { - val amount: PaymentCurrencyAmount - val label: String - val pending: Boolean? + var amount: PaymentCurrencyAmount + var label: String + var pending: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEvent.kt index 94e5ea09ba683..80d85791658c0 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEvent.kt @@ -3,9 +3,7 @@ package web.payment import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import kotlin.js.definedExternally @@ -33,11 +31,11 @@ open external class PaymentMethodChangeEvent( */ val methodName: String - @JsAlias(THIS) - override fun asInit(): PaymentMethodChangeEventInit - - companion object { - @JsValue("paymentmethodchange") - val PAYMENT_METHOD_CHANGE: EventType - } + companion object } + +inline fun PaymentMethodChangeEvent.asInit(): PaymentMethodChangeEventInit = + unsafeCast(this) + +inline val PaymentMethodChangeEvent.Companion.PAYMENT_METHOD_CHANGE: EventType + get() = EventType("paymentmethodchange") diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEventInit.kt index 3820b5973da5c..31dd5eaa0170e 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodChangeEventInit.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentMethodChangeEventInit : PaymentRequestUpdateEventInit { - val methodDetails: JsAny? - val methodName: String? + var methodDetails: JsAny? + var methodName: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodData.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodData.kt index d8ed3ad37d610..522eca8c09895 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodData.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentMethodData.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentMethodData { - val data: JsAny? - val supportedMethods: String + var data: JsAny? + var supportedMethods: String } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentOptions.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentOptions.kt index 3a59f30d9fe18..77ed1a93e79a6 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentOptions.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentOptions { - val requestPayerEmail: Boolean? - val requestPayerName: Boolean? - val requestPayerPhone: Boolean? - val requestShipping: Boolean? - val shippingType: PaymentShippingType? + var requestPayerEmail: Boolean? + var requestPayerName: Boolean? + var requestPayerPhone: Boolean? + var requestShipping: Boolean? + var shippingType: PaymentShippingType? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentRequestUpdateEvent.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentRequestUpdateEvent.kt index d72b17fb5ce5d..1aaf4ee4dd52c 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentRequestUpdateEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentRequestUpdateEvent.kt @@ -3,9 +3,7 @@ package web.payment import js.promise.PromiseLike -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -28,17 +26,17 @@ open external class PaymentRequestUpdateEvent( fun updateWith(detailsPromise: PaymentDetailsUpdate) fun updateWith(detailsPromise: PromiseLike) - @JsAlias(THIS) - override fun asInit(): PaymentRequestUpdateEventInit + companion object +} - companion object { - @JsValue("payerdetailchange") - val PAYER_DETAIL_CHANGE: EventType +inline fun PaymentRequestUpdateEvent.asInit(): PaymentRequestUpdateEventInit = + unsafeCast(this) - @JsValue("shippingaddresschange") - val SHIPPING_ADDRESS_CHANGE: EventType +inline val PaymentRequestUpdateEvent.Companion.PAYER_DETAIL_CHANGE: EventType + get() = EventType("payerdetailchange") - @JsValue("shippingoptionchange") - val SHIPPING_OPTION_CHANGE: EventType - } -} +inline val PaymentRequestUpdateEvent.Companion.SHIPPING_ADDRESS_CHANGE: EventType + get() = EventType("shippingaddresschange") + +inline val PaymentRequestUpdateEvent.Companion.SHIPPING_OPTION_CHANGE: EventType + get() = EventType("shippingoptionchange") diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentShippingOption.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentShippingOption.kt index dfba452ba020d..9fe68f250ea66 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentShippingOption.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentShippingOption.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentShippingOption { - val amount: PaymentCurrencyAmount - val id: String - val label: String - val selected: Boolean? + var amount: PaymentCurrencyAmount + var id: String + var label: String + var selected: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/payment/PaymentValidationErrors.kt b/kotlin-browser/src/commonMain/generated/web/payment/PaymentValidationErrors.kt index 3372fa83ec90e..81e2cd8ae5810 100644 --- a/kotlin-browser/src/commonMain/generated/web/payment/PaymentValidationErrors.kt +++ b/kotlin-browser/src/commonMain/generated/web/payment/PaymentValidationErrors.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PaymentValidationErrors { - val error: String? - val payer: PayerErrors? - val shippingAddress: AddressErrors? + var error: String? + var payer: PayerErrors? + var shippingAddress: AddressErrors? } diff --git a/kotlin-browser/src/commonMain/generated/web/permissions/PermissionDescriptor.kt b/kotlin-browser/src/commonMain/generated/web/permissions/PermissionDescriptor.kt index a9966f595f048..4a1311b589cbf 100644 --- a/kotlin-browser/src/commonMain/generated/web/permissions/PermissionDescriptor.kt +++ b/kotlin-browser/src/commonMain/generated/web/permissions/PermissionDescriptor.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface PermissionDescriptor { - val name: PermissionName + var name: PermissionName } diff --git a/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEvent.kt b/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEvent.kt index 5948256ce8eb8..177ecbc567b1d 100644 --- a/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEvent.kt @@ -2,9 +2,7 @@ package web.pip -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,14 +22,14 @@ open external class PictureInPictureEvent( */ val pictureInPictureWindow: PictureInPictureWindow - @JsAlias(THIS) - override fun asInit(): PictureInPictureEventInit + companion object +} - companion object { - @JsValue("enterpictureinpicture") - val ENTER_PICTURE_IN_PICTURE: EventType +inline fun PictureInPictureEvent.asInit(): PictureInPictureEventInit = + unsafeCast(this) - @JsValue("leavepictureinpicture") - val LEAVE_PICTURE_IN_PICTURE: EventType - } -} +inline val PictureInPictureEvent.Companion.ENTER_PICTURE_IN_PICTURE: EventType + get() = EventType("enterpictureinpicture") + +inline val PictureInPictureEvent.Companion.LEAVE_PICTURE_IN_PICTURE: EventType + get() = EventType("leavepictureinpicture") diff --git a/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEventInit.kt b/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEventInit.kt index 989877adb757c..cd80293a09261 100644 --- a/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/pip/PictureInPictureEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface PictureInPictureEventInit : EventInit { - val pictureInPictureWindow: PictureInPictureWindow + var pictureInPictureWindow: PictureInPictureWindow } diff --git a/kotlin-browser/src/commonMain/generated/web/popover/ToggleEvent.kt b/kotlin-browser/src/commonMain/generated/web/popover/ToggleEvent.kt index d2a86fca211ad..1aae5c1ab5126 100644 --- a/kotlin-browser/src/commonMain/generated/web/popover/ToggleEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/popover/ToggleEvent.kt @@ -2,9 +2,7 @@ package web.popover -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -32,14 +30,14 @@ open external class ToggleEvent( */ val oldState: ToggleState - @JsAlias(THIS) - override fun asInit(): ToggleEventInit + companion object +} - companion object { - @JsValue("beforetoggle") - val BEFORE_TOGGLE: EventType +inline fun ToggleEvent.asInit(): ToggleEventInit = + unsafeCast(this) - @JsValue("toggle") - val TOGGLE: EventType - } -} +inline val ToggleEvent.Companion.BEFORE_TOGGLE: EventType + get() = EventType("beforetoggle") + +inline val ToggleEvent.Companion.TOGGLE: EventType + get() = EventType("toggle") diff --git a/kotlin-browser/src/commonMain/generated/web/popover/ToggleEventInit.kt b/kotlin-browser/src/commonMain/generated/web/popover/ToggleEventInit.kt index 57c7a1a97e26c..32329e4457847 100644 --- a/kotlin-browser/src/commonMain/generated/web/popover/ToggleEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/popover/ToggleEventInit.kt @@ -8,6 +8,6 @@ import web.events.EventInit @JsPlainObject external interface ToggleEventInit : EventInit { - val newState: ToggleState? - val oldState: ToggleState? + var newState: ToggleState? + var oldState: ToggleState? } diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushEvent.kt b/kotlin-browser/src/commonMain/generated/web/push/PushEvent.kt index 025bc2857988e..6882be88e026e 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushEvent.kt @@ -2,9 +2,7 @@ package web.push -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.serviceworker.ExtendableEvent import kotlin.js.definedExternally @@ -26,11 +24,11 @@ open external class PushEvent( */ val data: PushMessageData? - @JsAlias(THIS) - override fun asInit(): PushEventInit - - companion object { - @JsValue("push") - val PUSH: EventType - } + companion object } + +inline fun PushEvent.asInit(): PushEventInit = + unsafeCast(this) + +inline val PushEvent.Companion.PUSH: EventType + get() = EventType("push") diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushEventInit.kt b/kotlin-browser/src/commonMain/generated/web/push/PushEventInit.kt index 69290c52640ec..eafead6eadef4 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushEventInit.kt @@ -8,5 +8,5 @@ import web.serviceworker.ExtendableEventInit @JsPlainObject external interface PushEventInit : ExtendableEventInit { - val data: PushMessageDataInit? + var data: PushMessageDataInit? } diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEvent.kt index 8074fa0419595..f439349a2feb4 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEvent.kt @@ -2,8 +2,7 @@ package web.push -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast import web.events.EventType import web.serviceworker.ExtendableEvent import kotlin.js.definedExternally @@ -17,7 +16,7 @@ open external class PushSubscriptionChangeEvent( ) : ExtendableEvent { val newSubscription: PushSubscription? val oldSubscription: PushSubscription? - - @JsAlias(THIS) - override fun asInit(): PushSubscriptionChangeEventInit } + +inline fun PushSubscriptionChangeEvent.asInit(): PushSubscriptionChangeEventInit = + unsafeCast(this) diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEventInit.kt index f449f2df9f3dc..fc9f559b9a9bb 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionChangeEventInit.kt @@ -8,6 +8,6 @@ import web.serviceworker.ExtendableEventInit @JsPlainObject external interface PushSubscriptionChangeEventInit : ExtendableEventInit { - val newSubscription: PushSubscription? - val oldSubscription: PushSubscription? + var newSubscription: PushSubscription? + var oldSubscription: PushSubscription? } diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionJSON.kt b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionJSON.kt index b82dc2b7632a4..2e08cae6bef18 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionJSON.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionJSON.kt @@ -9,7 +9,7 @@ import web.time.EpochTimeStamp @JsPlainObject external interface PushSubscriptionJSON { - val endpoint: String? - val expirationTime: EpochTimeStamp? - val keys: ReadonlyRecord? + var endpoint: String? + var expirationTime: EpochTimeStamp? + var keys: ReadonlyRecord? } diff --git a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionOptionsInit.kt b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionOptionsInit.kt index a0fd39a2037a5..d6bee2c6c699f 100644 --- a/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionOptionsInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/push/PushSubscriptionOptionsInit.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface PushSubscriptionOptionsInit { - val applicationServerKey: BufferSource /* | String */? - val userVisibleOnly: Boolean? + var applicationServerKey: BufferSource /* | String */? + var userVisibleOnly: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/ranges/StaticRangeInit.kt b/kotlin-browser/src/commonMain/generated/web/ranges/StaticRangeInit.kt index 69944ccb7cd83..0a1e890af9bbc 100644 --- a/kotlin-browser/src/commonMain/generated/web/ranges/StaticRangeInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/ranges/StaticRangeInit.kt @@ -7,8 +7,8 @@ import web.dom.Node @JsPlainObject external interface StaticRangeInit { - val endContainer: Node - val endOffset: Int - val startContainer: Node - val startOffset: Int + var endContainer: Node + var endOffset: Int + var startContainer: Node + var startOffset: Int } diff --git a/kotlin-browser/src/commonMain/generated/web/reporting/ReportingObserverOptions.kt b/kotlin-browser/src/commonMain/generated/web/reporting/ReportingObserverOptions.kt index a013b742dcfee..0b680dbc1458e 100644 --- a/kotlin-browser/src/commonMain/generated/web/reporting/ReportingObserverOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/reporting/ReportingObserverOptions.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ReportingObserverOptions { - val buffered: Boolean? - val types: ReadonlyArray? + var buffered: Boolean? + var types: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/resize/ResizeObserverOptions.kt b/kotlin-browser/src/commonMain/generated/web/resize/ResizeObserverOptions.kt index 5a246a5fedf5f..8f68a6ae6f772 100644 --- a/kotlin-browser/src/commonMain/generated/web/resize/ResizeObserverOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/resize/ResizeObserverOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResizeObserverOptions { - val box: ResizeObserverBoxOptions? + var box: ResizeObserverBoxOptions? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCCertificateExpiration.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCCertificateExpiration.kt index 7fc404a2d310f..4679a3dcb004f 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCCertificateExpiration.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCCertificateExpiration.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCCertificateExpiration { - val expires: UInt53? + var expires: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCConfiguration.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCConfiguration.kt index ce083280359ab..47579ead87249 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCConfiguration.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCConfiguration.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCConfiguration { - val bundlePolicy: RTCBundlePolicy? - val certificates: ReadonlyArray? - val iceCandidatePoolSize: Short /* unsigned byte */? - val iceServers: ReadonlyArray? - val iceTransportPolicy: RTCIceTransportPolicy? - val rtcpMuxPolicy: RTCRtcpMuxPolicy? + var bundlePolicy: RTCBundlePolicy? + var certificates: ReadonlyArray? + var iceCandidatePoolSize: Short /* unsigned byte */? + var iceServers: ReadonlyArray? + var iceTransportPolicy: RTCIceTransportPolicy? + var rtcpMuxPolicy: RTCRtcpMuxPolicy? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt index 1ecd4c860db9d..f97393a5a8c7d 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEvent.kt @@ -2,9 +2,7 @@ package web.rtc -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -25,11 +23,11 @@ open external class RTCDTMFToneChangeEvent( */ val tone: String - @JsAlias(THIS) - override fun asInit(): RTCDTMFToneChangeEventInit - - companion object { - @JsValue("tonechange") - val TONE_CHANGE: EventType - } + companion object } + +inline fun RTCDTMFToneChangeEvent.asInit(): RTCDTMFToneChangeEventInit = + unsafeCast(this) + +inline val RTCDTMFToneChangeEvent.Companion.TONE_CHANGE: EventType + get() = EventType("tonechange") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEventInit.kt index f72cf9f5983f7..bdcfd9c1c294a 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDTMFToneChangeEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface RTCDTMFToneChangeEventInit : EventInit { - val tone: String? + var tone: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEvent.kt index 3515eb63e6f9d..429e59ff52cd7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEvent.kt @@ -2,9 +2,7 @@ package web.rtc -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,11 +22,11 @@ open external class RTCDataChannelEvent( */ val channel: RTCDataChannel - @JsAlias(THIS) - override fun asInit(): RTCDataChannelEventInit - - companion object { - @JsValue("datachannel") - val DATA_CHANNEL: EventType - } + companion object } + +inline fun RTCDataChannelEvent.asInit(): RTCDataChannelEventInit = + unsafeCast(this) + +inline val RTCDataChannelEvent.Companion.DATA_CHANNEL: EventType + get() = EventType("datachannel") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEventInit.kt index b1be486bb6466..ff9c548154f12 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface RTCDataChannelEventInit : EventInit { - val channel: RTCDataChannel + var channel: RTCDataChannel } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelInit.kt index ed6d4f89e00df..ccc5ad1d19d2b 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDataChannelInit.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCDataChannelInit { - val id: Short? - val maxPacketLifeTime: Short? - val maxRetransmits: Short? - val negotiated: Boolean? - val ordered: Boolean? - val protocol: String? + var id: Short? + var maxPacketLifeTime: Short? + var maxRetransmits: Short? + var negotiated: Boolean? + var ordered: Boolean? + var protocol: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDtlsFingerprint.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDtlsFingerprint.kt index 8dc35480ed591..48d1835db046d 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCDtlsFingerprint.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCDtlsFingerprint.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCDtlsFingerprint { - val algorithm: String? - val value: String? + var algorithm: String? + var value: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedAudioFrameMetadata.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedAudioFrameMetadata.kt index 11f7032059136..834999fb95b55 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedAudioFrameMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedAudioFrameMetadata.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCEncodedAudioFrameMetadata : RTCEncodedFrameMetadata { - val sequenceNumber: Short? + var sequenceNumber: Short? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedFrameMetadata.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedFrameMetadata.kt index 355e35393c1ea..f00989e5ae9d3 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedFrameMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedFrameMetadata.kt @@ -8,9 +8,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCEncodedFrameMetadata { - val contributingSources: ReadonlyArray? - val mimeType: String? - val payloadType: Short /* unsigned byte */? - val rtpTimestamp: Int? - val synchronizationSource: Int? + var contributingSources: ReadonlyArray? + var mimeType: String? + var payloadType: Short /* unsigned byte */? + var rtpTimestamp: Int? + var synchronizationSource: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedVideoFrameMetadata.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedVideoFrameMetadata.kt index 0358cab320c0b..7e91b847c2db7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedVideoFrameMetadata.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCEncodedVideoFrameMetadata.kt @@ -11,11 +11,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata { - val dependencies: ReadonlyArray? - val frameId: UInt53? - val height: Short? - val spatialIndex: Int? - val temporalIndex: Int? - val timestamp: Int53? - val width: Short? + var dependencies: ReadonlyArray? + var frameId: UInt53? + var height: Short? + var spatialIndex: Int? + var temporalIndex: Int? + var timestamp: Int53? + var width: Short? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEvent.kt index f7fe1e618ae31..c93e3467db9ef 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEvent.kt @@ -2,9 +2,7 @@ package web.rtc -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -24,11 +22,11 @@ open external class RTCErrorEvent( */ val error: RTCError - @JsAlias(THIS) - override fun asInit(): RTCErrorEventInit - - companion object { - @JsValue("error") - val ERROR: EventType - } + companion object } + +inline fun RTCErrorEvent.asInit(): RTCErrorEventInit = + unsafeCast(this) + +inline val RTCErrorEvent.Companion.ERROR: EventType + get() = EventType("error") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEventInit.kt index 48c324f433439..c246a5a841f0e 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface RTCErrorEventInit : EventInit { - val error: RTCError + var error: RTCError } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorInit.kt index e6e9a77f020a2..3a235c5a80624 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCErrorInit.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCErrorInit { - val errorDetail: RTCErrorDetailType - val httpRequestStatusCode: Int? - val receivedAlert: Int? - val sctpCauseCode: Int? - val sdpLineNumber: Int? - val sentAlert: Int? + var errorDetail: RTCErrorDetailType + var httpRequestStatusCode: Int? + var receivedAlert: Int? + var sctpCauseCode: Int? + var sdpLineNumber: Int? + var sentAlert: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidateInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidateInit.kt index 7228ba97b4ae5..0682ba15a3b42 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidateInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidateInit.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCIceCandidateInit { - val candidate: String? - val sdpMLineIndex: Short? - val sdpMid: String? - val usernameFragment: String? + var candidate: String? + var sdpMLineIndex: Short? + var sdpMid: String? + var usernameFragment: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidatePairStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidatePairStats.kt index 862bf5509a6c0..1baa59ad6adce 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidatePairStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceCandidatePairStats.kt @@ -9,26 +9,26 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface RTCIceCandidatePairStats : RTCStats { - val availableIncomingBitrate: Double? - val availableOutgoingBitrate: Double? - val bytesDiscardedOnSend: UInt53? - val bytesReceived: UInt53? - val bytesSent: UInt53? - val consentRequestsSent: UInt53? - val currentRoundTripTime: Double? - val lastPacketReceivedTimestamp: DOMHighResTimeStamp? - val lastPacketSentTimestamp: DOMHighResTimeStamp? - val localCandidateId: String - val nominated: Boolean? - val packetsDiscardedOnSend: Int? - val packetsReceived: UInt53? - val packetsSent: UInt53? - val remoteCandidateId: String - val requestsReceived: UInt53? - val requestsSent: UInt53? - val responsesReceived: UInt53? - val responsesSent: UInt53? - val state: RTCStatsIceCandidatePairState - val totalRoundTripTime: Double? - val transportId: String + var availableIncomingBitrate: Double? + var availableOutgoingBitrate: Double? + var bytesDiscardedOnSend: UInt53? + var bytesReceived: UInt53? + var bytesSent: UInt53? + var consentRequestsSent: UInt53? + var currentRoundTripTime: Double? + var lastPacketReceivedTimestamp: DOMHighResTimeStamp? + var lastPacketSentTimestamp: DOMHighResTimeStamp? + var localCandidateId: String + var nominated: Boolean? + var packetsDiscardedOnSend: Int? + var packetsReceived: UInt53? + var packetsSent: UInt53? + var remoteCandidateId: String + var requestsReceived: UInt53? + var requestsSent: UInt53? + var responsesReceived: UInt53? + var responsesSent: UInt53? + var state: RTCStatsIceCandidatePairState + var totalRoundTripTime: Double? + var transportId: String } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceServer.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceServer.kt index 9a3907f69dbff..aedbf5368023d 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceServer.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCIceServer.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCIceServer { - val credential: String? - val urls: JsAny /* string | string[] */ - val username: String? + var credential: String? + var urls: JsAny /* string | string[] */ + var username: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCInboundRtpStreamStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCInboundRtpStreamStats.kt index 1c37dddcdad8e..0ca22d0133fdc 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCInboundRtpStreamStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCInboundRtpStreamStats.kt @@ -9,56 +9,56 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats { - val audioLevel: Double? - val bytesReceived: UInt53? - val concealedSamples: UInt53? - val concealmentEvents: UInt53? - val decoderImplementation: String? - val estimatedPlayoutTimestamp: DOMHighResTimeStamp? - val fecBytesReceived: UInt53? - val fecPacketsDiscarded: UInt53? - val fecPacketsReceived: UInt53? - val fecSsrc: Int? - val firCount: Int? - val frameHeight: Int? - val frameWidth: Int? - val framesAssembledFromMultiplePackets: Int? - val framesDecoded: Int? - val framesDropped: Int? - val framesPerSecond: Double? - val framesReceived: Int? - val framesRendered: Int? - val freezeCount: Int? - val headerBytesReceived: UInt53? - val insertedSamplesForDeceleration: UInt53? - val jitterBufferDelay: Double? - val jitterBufferEmittedCount: UInt53? - val jitterBufferMinimumDelay: Double? - val jitterBufferTargetDelay: Double? - val keyFramesDecoded: Int? - val lastPacketReceivedTimestamp: DOMHighResTimeStamp? - val mid: String? - val nackCount: Int? - val packetsDiscarded: UInt53? - val pauseCount: Int? - val playoutId: String? - val pliCount: Int? - val qpSum: UInt53? - val remoteId: String? - val removedSamplesForAcceleration: UInt53? - val retransmittedBytesReceived: UInt53? - val retransmittedPacketsReceived: UInt53? - val rtxSsrc: Int? - val silentConcealedSamples: UInt53? - val totalAssemblyTime: Double? - val totalAudioEnergy: Double? - val totalDecodeTime: Double? - val totalFreezesDuration: Double? - val totalInterFrameDelay: Double? - val totalPausesDuration: Double? - val totalProcessingDelay: Double? - val totalSamplesDuration: Double? - val totalSamplesReceived: UInt53? - val totalSquaredInterFrameDelay: Double? - val trackIdentifier: String + var audioLevel: Double? + var bytesReceived: UInt53? + var concealedSamples: UInt53? + var concealmentEvents: UInt53? + var decoderImplementation: String? + var estimatedPlayoutTimestamp: DOMHighResTimeStamp? + var fecBytesReceived: UInt53? + var fecPacketsDiscarded: UInt53? + var fecPacketsReceived: UInt53? + var fecSsrc: Int? + var firCount: Int? + var frameHeight: Int? + var frameWidth: Int? + var framesAssembledFromMultiplePackets: Int? + var framesDecoded: Int? + var framesDropped: Int? + var framesPerSecond: Double? + var framesReceived: Int? + var framesRendered: Int? + var freezeCount: Int? + var headerBytesReceived: UInt53? + var insertedSamplesForDeceleration: UInt53? + var jitterBufferDelay: Double? + var jitterBufferEmittedCount: UInt53? + var jitterBufferMinimumDelay: Double? + var jitterBufferTargetDelay: Double? + var keyFramesDecoded: Int? + var lastPacketReceivedTimestamp: DOMHighResTimeStamp? + var mid: String? + var nackCount: Int? + var packetsDiscarded: UInt53? + var pauseCount: Int? + var playoutId: String? + var pliCount: Int? + var qpSum: UInt53? + var remoteId: String? + var removedSamplesForAcceleration: UInt53? + var retransmittedBytesReceived: UInt53? + var retransmittedPacketsReceived: UInt53? + var rtxSsrc: Int? + var silentConcealedSamples: UInt53? + var totalAssemblyTime: Double? + var totalAudioEnergy: Double? + var totalDecodeTime: Double? + var totalFreezesDuration: Double? + var totalInterFrameDelay: Double? + var totalPausesDuration: Double? + var totalProcessingDelay: Double? + var totalSamplesDuration: Double? + var totalSamplesReceived: UInt53? + var totalSquaredInterFrameDelay: Double? + var trackIdentifier: String } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCLocalSessionDescriptionInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCLocalSessionDescriptionInit.kt index d8e598de6c72e..699fa9b0ef61e 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCLocalSessionDescriptionInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCLocalSessionDescriptionInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCLocalSessionDescriptionInit { - val sdp: String? - val type: RTCSdpType? + var sdp: String? + var type: RTCSdpType? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCOfferOptions.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCOfferOptions.kt index ef2bc45fcf437..84d27cd4740a4 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCOfferOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCOfferOptions.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCOfferOptions : RTCOfferAnswerOptions { - val iceRestart: Boolean? - val offerToReceiveAudio: Boolean? - val offerToReceiveVideo: Boolean? + var iceRestart: Boolean? + var offerToReceiveAudio: Boolean? + var offerToReceiveVideo: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCOutboundRtpStreamStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCOutboundRtpStreamStats.kt index b411e3499070c..f64be049baa6e 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCOutboundRtpStreamStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCOutboundRtpStreamStats.kt @@ -11,32 +11,32 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface RTCOutboundRtpStreamStats : RTCSentRtpStreamStats { - val active: Boolean? - val firCount: Int? - val frameHeight: Int? - val frameWidth: Int? - val framesEncoded: Int? - val framesPerSecond: Double? - val framesSent: Int? - val headerBytesSent: UInt53? - val hugeFramesSent: Int? - val keyFramesEncoded: Int? - val mediaSourceId: String? - val mid: String? - val nackCount: Int? - val pliCount: Int? - val qpSum: UInt53? - val qualityLimitationDurations: ReadonlyRecord? - val qualityLimitationReason: RTCQualityLimitationReason? - val qualityLimitationResolutionChanges: Int? - val remoteId: String? - val retransmittedBytesSent: UInt53? - val retransmittedPacketsSent: UInt53? - val rid: String? - val rtxSsrc: Int? - val scalabilityMode: String? - val targetBitrate: Double? - val totalEncodeTime: Double? - val totalEncodedBytesTarget: UInt53? - val totalPacketSendDelay: Double? + var active: Boolean? + var firCount: Int? + var frameHeight: Int? + var frameWidth: Int? + var framesEncoded: Int? + var framesPerSecond: Double? + var framesSent: Int? + var headerBytesSent: UInt53? + var hugeFramesSent: Int? + var keyFramesEncoded: Int? + var mediaSourceId: String? + var mid: String? + var nackCount: Int? + var pliCount: Int? + var qpSum: UInt53? + var qualityLimitationDurations: ReadonlyRecord? + var qualityLimitationReason: RTCQualityLimitationReason? + var qualityLimitationResolutionChanges: Int? + var remoteId: String? + var retransmittedBytesSent: UInt53? + var retransmittedPacketsSent: UInt53? + var rid: String? + var rtxSsrc: Int? + var scalabilityMode: String? + var targetBitrate: Double? + var totalEncodeTime: Double? + var totalEncodedBytesTarget: UInt53? + var totalPacketSendDelay: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt index ec85404024c9d..15974ce1f1979 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEvent.kt @@ -2,9 +2,7 @@ package web.rtc -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -28,11 +26,11 @@ open external class RTCPeerConnectionIceErrorEvent( val port: Short? val url: String - @JsAlias(THIS) - override fun asInit(): RTCPeerConnectionIceErrorEventInit - - companion object { - @JsValue("icecandidateerror") - val ICE_CANDIDATE_ERROR: EventType - } + companion object } + +inline fun RTCPeerConnectionIceErrorEvent.asInit(): RTCPeerConnectionIceErrorEventInit = + unsafeCast(this) + +inline val RTCPeerConnectionIceErrorEvent.Companion.ICE_CANDIDATE_ERROR: EventType + get() = EventType("icecandidateerror") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEventInit.kt index c48f7fe6ddeb9..ec7216ecd472e 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceErrorEventInit.kt @@ -8,9 +8,9 @@ import web.events.EventInit @JsPlainObject external interface RTCPeerConnectionIceErrorEventInit : EventInit { - val address: String? - val errorCode: Short - val errorText: String? - val port: Short? - val url: String? + var address: String? + var errorCode: Short + var errorText: String? + var port: Short? + var url: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt index 8473ba422ea77..90f82508376f7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEvent.kt @@ -2,9 +2,7 @@ package web.rtc -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -25,11 +23,11 @@ open external class RTCPeerConnectionIceEvent( */ val candidate: RTCIceCandidate? - @JsAlias(THIS) - override fun asInit(): RTCPeerConnectionIceEventInit - - companion object { - @JsValue("icecandidate") - val ICE_CANDIDATE: EventType - } + companion object } + +inline fun RTCPeerConnectionIceEvent.asInit(): RTCPeerConnectionIceEventInit = + unsafeCast(this) + +inline val RTCPeerConnectionIceEvent.Companion.ICE_CANDIDATE: EventType + get() = EventType("icecandidate") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEventInit.kt index f847c6b840104..b2b779bc7d87f 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCPeerConnectionIceEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface RTCPeerConnectionIceEventInit : EventInit { - val candidate: RTCIceCandidate? + var candidate: RTCIceCandidate? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCReceivedRtpStreamStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCReceivedRtpStreamStats.kt index 8be3d9ea062b5..265e8414f2293 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCReceivedRtpStreamStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCReceivedRtpStreamStats.kt @@ -9,7 +9,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCReceivedRtpStreamStats : RTCRtpStreamStats { - val jitter: Double? - val packetsLost: Int53? - val packetsReceived: UInt53? + var jitter: Double? + var packetsLost: Int53? + var packetsReceived: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtcpParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtcpParameters.kt index 5705c35298e4d..409acf99114dd 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtcpParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtcpParameters.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtcpParameters { - val cname: String? - val reducedSize: Boolean? + var cname: String? + var reducedSize: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCapabilities.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCapabilities.kt index 0307cd18ce04a..79dceedbd1b18 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCapabilities.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCapabilities.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpCapabilities { - val codecs: ReadonlyArray - val headerExtensions: ReadonlyArray + var codecs: ReadonlyArray + var headerExtensions: ReadonlyArray } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodec.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodec.kt index a60c600cf12a3..9c17fb40606e7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodec.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodec.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpCodec { - val channels: Short? - val clockRate: Int - val mimeType: String - val sdpFmtpLine: String? + var channels: Short? + var clockRate: Int + var mimeType: String + var sdpFmtpLine: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodecParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodecParameters.kt index f9066a8e37c26..239e39f74f8f7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodecParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodecParameters.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpCodecParameters : RTCRtpCodec { - val payloadType: Short /* unsigned byte */ + var payloadType: Short /* unsigned byte */ } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodingParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodingParameters.kt index 95a51228acced..37ad3e33af1f7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodingParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpCodingParameters.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpCodingParameters { - val rid: String? + var rid: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpContributingSource.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpContributingSource.kt index 3ffe00010ed15..f608d00d8228c 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpContributingSource.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpContributingSource.kt @@ -7,8 +7,8 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface RTCRtpContributingSource { - val audioLevel: Double? - val rtpTimestamp: Int - val source: Int - val timestamp: DOMHighResTimeStamp + var audioLevel: Double? + var rtpTimestamp: Int + var source: Int + var timestamp: DOMHighResTimeStamp } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpEncodingParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpEncodingParameters.kt index 4be86caca81e4..2aea387104a40 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpEncodingParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpEncodingParameters.kt @@ -7,10 +7,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpEncodingParameters : RTCRtpCodingParameters { - val active: Boolean? - val maxBitrate: Int? - val maxFramerate: Double? - val networkPriority: RTCPriorityType? - val priority: RTCPriorityType? - val scaleResolutionDownBy: Double? + var active: Boolean? + var maxBitrate: Int? + var maxFramerate: Double? + var networkPriority: RTCPriorityType? + var priority: RTCPriorityType? + var scaleResolutionDownBy: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionCapability.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionCapability.kt index 17861af6f9ef8..cd33e36b2e56b 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionCapability.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionCapability.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpHeaderExtensionCapability { - val uri: String + var uri: String } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionParameters.kt index 1a7392b67c5fd..b36c430bec244 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpHeaderExtensionParameters.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpHeaderExtensionParameters { - val encrypted: Boolean? - val id: Short - val uri: String + var encrypted: Boolean? + var id: Short + var uri: String } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpParameters.kt index 760239b20b43d..0df7dc943379e 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpParameters.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpParameters { - val codecs: ReadonlyArray - val headerExtensions: ReadonlyArray - val rtcp: RTCRtcpParameters + var codecs: ReadonlyArray + var headerExtensions: ReadonlyArray + var rtcp: RTCRtcpParameters } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpSendParameters.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpSendParameters.kt index 5c37da8a0f4a4..12255dd62fb98 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpSendParameters.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpSendParameters.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpSendParameters : RTCRtpParameters { - val degradationPreference: RTCDegradationPreference? - val encodings: ReadonlyArray - val transactionId: String + var degradationPreference: RTCDegradationPreference? + var encodings: ReadonlyArray + var transactionId: String } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpStreamStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpStreamStats.kt index cd63c71fa7721..5029c70293512 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpStreamStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpStreamStats.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCRtpStreamStats : RTCStats { - val codecId: String? - val kind: String - val ssrc: Int - val transportId: String? + var codecId: String? + var kind: String + var ssrc: Int + var transportId: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpTransceiverInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpTransceiverInit.kt index dc03f0ce43c0b..170aba4e9c9bc 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpTransceiverInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCRtpTransceiverInit.kt @@ -8,7 +8,7 @@ import web.mediastreams.MediaStream @JsPlainObject external interface RTCRtpTransceiverInit { - val direction: RTCRtpTransceiverDirection? - val sendEncodings: ReadonlyArray? - val streams: ReadonlyArray? + var direction: RTCRtpTransceiverDirection? + var sendEncodings: ReadonlyArray? + var streams: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCSentRtpStreamStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCSentRtpStreamStats.kt index 42c7c3dc9ac4c..c4fc3dcf0ad01 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCSentRtpStreamStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCSentRtpStreamStats.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCSentRtpStreamStats : RTCRtpStreamStats { - val bytesSent: UInt53? - val packetsSent: UInt53? + var bytesSent: UInt53? + var packetsSent: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCSessionDescriptionInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCSessionDescriptionInit.kt index d6f9427cc55dd..4ef286ba9c14d 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCSessionDescriptionInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCSessionDescriptionInit.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCSessionDescriptionInit { - val sdp: String? - val type: RTCSdpType + var sdp: String? + var type: RTCSdpType } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCStats.kt index af285eafd9dad..6dd5902bc68dd 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCStats.kt @@ -7,7 +7,7 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface RTCStats { - val id: String - val timestamp: DOMHighResTimeStamp - val type: RTCStatsType + var id: String + var timestamp: DOMHighResTimeStamp + var type: RTCStatsType } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEvent.kt index c92b78a850524..c2468d4ea22a7 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEvent.kt @@ -3,9 +3,7 @@ package web.rtc import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import web.mediastreams.MediaStream @@ -48,11 +46,11 @@ open external class RTCTrackEvent( */ val transceiver: RTCRtpTransceiver - @JsAlias(THIS) - override fun asInit(): RTCTrackEventInit - - companion object { - @JsValue("track") - val TRACK: EventType - } + companion object } + +inline fun RTCTrackEvent.asInit(): RTCTrackEventInit = + unsafeCast(this) + +inline val RTCTrackEvent.Companion.TRACK: EventType + get() = EventType("track") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEventInit.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEventInit.kt index 2fde0e49f56ef..f8a6bdd617926 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTrackEventInit.kt @@ -11,8 +11,8 @@ import web.mediastreams.MediaStreamTrack @JsPlainObject external interface RTCTrackEventInit : EventInit { - val receiver: RTCRtpReceiver - val streams: ReadonlyArray? - val track: MediaStreamTrack - val transceiver: RTCRtpTransceiver + var receiver: RTCRtpReceiver + var streams: ReadonlyArray? + var track: MediaStreamTrack + var transceiver: RTCRtpTransceiver } diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransformEvent.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransformEvent.kt index 5cd393eadba9f..ebff8815a9a6d 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransformEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransformEvent.kt @@ -2,7 +2,6 @@ package web.rtc -import seskar.js.JsValue import web.events.Event import web.events.EventType @@ -21,8 +20,8 @@ private constructor() : */ val transformer: RTCRtpScriptTransformer - companion object { - @JsValue("rtctransform") - val RTC_TRANSFORM: EventType - } + companion object } + +inline val RTCTransformEvent.Companion.RTC_TRANSFORM: EventType + get() = EventType("rtctransform") diff --git a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransportStats.kt b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransportStats.kt index 5046cc65dcce5..9e1cf5dcafebe 100644 --- a/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransportStats.kt +++ b/kotlin-browser/src/commonMain/generated/web/rtc/RTCTransportStats.kt @@ -8,20 +8,20 @@ import js.objects.JsPlainObject @JsPlainObject external interface RTCTransportStats : RTCStats { - val bytesReceived: UInt53? - val bytesSent: UInt53? - val dtlsCipher: String? - val dtlsRole: RTCDtlsRole? - val dtlsState: RTCDtlsTransportState - val iceLocalUsernameFragment: String? - val iceRole: RTCIceRole? - val iceState: RTCIceTransportState? - val localCertificateId: String? - val packetsReceived: UInt53? - val packetsSent: UInt53? - val remoteCertificateId: String? - val selectedCandidatePairChanges: Int? - val selectedCandidatePairId: String? - val srtpCipher: String? - val tlsVersion: String? + var bytesReceived: UInt53? + var bytesSent: UInt53? + var dtlsCipher: String? + var dtlsRole: RTCDtlsRole? + var dtlsState: RTCDtlsTransportState + var iceLocalUsernameFragment: String? + var iceRole: RTCIceRole? + var iceState: RTCIceTransportState? + var localCertificateId: String? + var packetsReceived: UInt53? + var packetsSent: UInt53? + var remoteCertificateId: String? + var selectedCandidatePairChanges: Int? + var selectedCandidatePairId: String? + var srtpCipher: String? + var tlsVersion: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/scheduling/IdleRequestOptions.kt b/kotlin-browser/src/commonMain/generated/web/scheduling/IdleRequestOptions.kt index 9848bb5ce54cb..35afc7ecc7a46 100644 --- a/kotlin-browser/src/commonMain/generated/web/scheduling/IdleRequestOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/scheduling/IdleRequestOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface IdleRequestOptions { - val timeout: Int? + var timeout: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollIntoViewOptions.kt b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollIntoViewOptions.kt index c3c91fe28836c..3f0f354912b7c 100644 --- a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollIntoViewOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollIntoViewOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ScrollIntoViewOptions : ScrollOptions { - val block: ScrollLogicalPosition? - val inline: ScrollLogicalPosition? + var block: ScrollLogicalPosition? + var inline: ScrollLogicalPosition? } diff --git a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollOptions.kt b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollOptions.kt index 3c9728e3da935..6b360b8d04add 100644 --- a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ScrollOptions { - val behavior: ScrollBehavior? + var behavior: ScrollBehavior? } diff --git a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollToOptions.kt b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollToOptions.kt index 18fcfa2847dd2..f8f8bd175608d 100644 --- a/kotlin-browser/src/commonMain/generated/web/scroll/ScrollToOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/scroll/ScrollToOptions.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ScrollToOptions : ScrollOptions { - val left: Double? - val top: Double? + var left: Double? + var top: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/selection/GetComposedRangesOptions.kt b/kotlin-browser/src/commonMain/generated/web/selection/GetComposedRangesOptions.kt index 6c86a89375f68..04b004fe1daaf 100644 --- a/kotlin-browser/src/commonMain/generated/web/selection/GetComposedRangesOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/selection/GetComposedRangesOptions.kt @@ -8,5 +8,5 @@ import web.components.ShadowRoot @JsPlainObject external interface GetComposedRangesOptions { - val shadowRoots: ReadonlyArray? + var shadowRoots: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/ClientQueryOptions.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/ClientQueryOptions.kt index b8841f382bf1d..4f6018bf138a2 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/ClientQueryOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/ClientQueryOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ClientQueryOptions { - val includeUncontrolled: Boolean? - val type: ClientTypes? + var includeUncontrolled: Boolean? + var type: ClientTypes? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableEvent.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableEvent.kt index 9c3db7e271f62..9b8212e5114df 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableEvent.kt @@ -3,9 +3,7 @@ package web.serviceworker import js.promise.Promise -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -26,14 +24,14 @@ open external class ExtendableEvent( */ fun waitUntil(f: Promise<*>) - @JsAlias(THIS) - override fun asInit(): ExtendableEventInit + companion object +} - companion object { - @JsValue("activate") - val ACTIVATE: EventType +inline fun ExtendableEvent.asInit(): ExtendableEventInit = + unsafeCast(this) - @JsValue("install") - val INSTALL: EventType - } -} +inline val ExtendableEvent.Companion.ACTIVATE: EventType + get() = EventType("activate") + +inline val ExtendableEvent.Companion.INSTALL: EventType + get() = EventType("install") diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEvent.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEvent.kt index ddc2cce5d1ecb..c6401c6e33383 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEvent.kt @@ -4,9 +4,7 @@ package web.serviceworker import js.array.ReadonlyArray import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.messaging.MessagePort import kotlin.js.definedExternally @@ -55,11 +53,11 @@ open external class ExtendableMessageEvent( */ val source: JsAny /* Client | ServiceWorker | MessagePort */? - @JsAlias(THIS) - override fun asInit(): ExtendableMessageEventInit - - companion object { - @JsValue("message") - val MESSAGE: EventType - } + companion object } + +inline fun ExtendableMessageEvent.asInit(): ExtendableMessageEventInit = + unsafeCast(this) + +inline val ExtendableMessageEvent.Companion.MESSAGE: EventType + get() = EventType("message") diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEventInit.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEventInit.kt index 8644f4aaec7e2..fb2c60ec6f9e1 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/ExtendableMessageEventInit.kt @@ -10,9 +10,9 @@ import web.messaging.MessagePort @JsPlainObject external interface ExtendableMessageEventInit : ExtendableEventInit { - val data: JsAny? - val lastEventId: String? - val origin: String? - val ports: ReadonlyArray? - val source: JsAny /* Client | ServiceWorker | MessagePort */? + var data: JsAny? + var lastEventId: String? + var origin: String? + var ports: ReadonlyArray? + var source: JsAny /* Client | ServiceWorker | MessagePort */? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEvent.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEvent.kt index ef119c824982a..827c8155dc08f 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEvent.kt @@ -5,9 +5,7 @@ package web.serviceworker import js.core.Void import js.promise.Promise import js.promise.PromiseLike -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.http.Request import web.http.Response @@ -64,11 +62,11 @@ open external class FetchEvent( fun respondWith(r: Response) fun respondWith(r: PromiseLike) - @JsAlias(THIS) - override fun asInit(): FetchEventInit - - companion object { - @JsValue("fetch") - val FETCH: EventType - } + companion object } + +inline fun FetchEvent.asInit(): FetchEventInit = + unsafeCast(this) + +inline val FetchEvent.Companion.FETCH: EventType + get() = EventType("fetch") diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEventInit.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEventInit.kt index 92dd4261ccf8b..9475182a66c28 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/FetchEventInit.kt @@ -10,9 +10,9 @@ import web.http.Request @JsPlainObject external interface FetchEventInit : ExtendableEventInit { - val clientId: String? - val handled: Promise? - val preloadResponse: Promise<*>? - val request: Request - val resultingClientId: String? + var clientId: String? + var handled: Promise? + var preloadResponse: Promise<*>? + var request: Request + var resultingClientId: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/GetNotificationOptions.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/GetNotificationOptions.kt index fa20ff7610899..b98f45b37c3ca 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/GetNotificationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/GetNotificationOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GetNotificationOptions { - val tag: String? + var tag: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/NavigationPreloadState.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/NavigationPreloadState.kt index f0ca2879ba311..4f3d5300461cb 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/NavigationPreloadState.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/NavigationPreloadState.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface NavigationPreloadState { - val enabled: Boolean? - val headerValue: String? + var enabled: Boolean? + var headerValue: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEvent.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEvent.kt index 731b37c3b3368..8c1d565731d87 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEvent.kt @@ -2,9 +2,7 @@ package web.serviceworker -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.notifications.Notification @@ -31,14 +29,14 @@ open external class NotificationEvent( */ val notification: Notification - @JsAlias(THIS) - override fun asInit(): NotificationEventInit + companion object +} - companion object { - @JsValue("notificationclick") - val NOTIFICATION_CLICK: EventType +inline fun NotificationEvent.asInit(): NotificationEventInit = + unsafeCast(this) - @JsValue("notificationclose") - val NOTIFICATION_CLOSE: EventType - } -} +inline val NotificationEvent.Companion.NOTIFICATION_CLICK: EventType + get() = EventType("notificationclick") + +inline val NotificationEvent.Companion.NOTIFICATION_CLOSE: EventType + get() = EventType("notificationclose") diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEventInit.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEventInit.kt index aa0bc86a7af29..25563483d536f 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/NotificationEventInit.kt @@ -8,6 +8,6 @@ import web.notifications.Notification @JsPlainObject external interface NotificationEventInit : ExtendableEventInit { - val action: String? - val notification: Notification + var action: String? + var notification: Notification } diff --git a/kotlin-browser/src/commonMain/generated/web/serviceworker/RegistrationOptions.kt b/kotlin-browser/src/commonMain/generated/web/serviceworker/RegistrationOptions.kt index 4ce1289820c6c..9f60df3bd57ec 100644 --- a/kotlin-browser/src/commonMain/generated/web/serviceworker/RegistrationOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/serviceworker/RegistrationOptions.kt @@ -7,7 +7,7 @@ import web.workers.WorkerType @JsPlainObject external interface RegistrationOptions { - val scope: String? - val type: WorkerType? - val updateViaCache: ServiceWorkerUpdateViaCache? + var scope: String? + var type: WorkerType? + var updateViaCache: ServiceWorkerUpdateViaCache? } diff --git a/kotlin-browser/src/commonMain/generated/web/share/ShareData.kt b/kotlin-browser/src/commonMain/generated/web/share/ShareData.kt index 9de66e64413fc..fef9784857c8c 100644 --- a/kotlin-browser/src/commonMain/generated/web/share/ShareData.kt +++ b/kotlin-browser/src/commonMain/generated/web/share/ShareData.kt @@ -8,8 +8,8 @@ import web.file.File @JsPlainObject external interface ShareData { - val files: ReadonlyArray? - val text: String? - val title: String? - val url: String? + var files: ReadonlyArray? + var text: String? + var title: String? + var url: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEvent.kt b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEvent.kt index f9c9fcf0b824d..a573d37c7af4e 100644 --- a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEvent.kt @@ -2,9 +2,7 @@ package web.speech -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType /** @@ -23,11 +21,11 @@ open external class SpeechSynthesisErrorEvent( */ val error: SpeechSynthesisErrorCode - @JsAlias(THIS) - override fun asInit(): SpeechSynthesisErrorEventInit - - companion object { - @JsValue("error") - val ERROR: EventType - } + companion object } + +inline fun SpeechSynthesisErrorEvent.asInit(): SpeechSynthesisErrorEventInit = + unsafeCast(this) + +inline val SpeechSynthesisErrorEvent.Companion.ERROR: EventType + get() = EventType("error") diff --git a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEventInit.kt b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEventInit.kt index 7b99fb2ff913d..9b2ef1ff13ebc 100644 --- a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisErrorEventInit.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit { - val error: SpeechSynthesisErrorCode + var error: SpeechSynthesisErrorCode } diff --git a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEvent.kt b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEvent.kt index af9d23c93a0ae..fa2159a4d6ad3 100644 --- a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEvent.kt @@ -2,9 +2,7 @@ package web.speech -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -52,26 +50,26 @@ open external class SpeechSynthesisEvent( */ val utterance: SpeechSynthesisUtterance - @JsAlias(THIS) - override fun asInit(): SpeechSynthesisEventInit + companion object +} - companion object { - @JsValue("boundary") - val BOUNDARY: EventType +inline fun SpeechSynthesisEvent.asInit(): SpeechSynthesisEventInit = + unsafeCast(this) - @JsValue("end") - val END: EventType +inline val SpeechSynthesisEvent.Companion.BOUNDARY: EventType + get() = EventType("boundary") - @JsValue("mark") - val MARK: EventType +inline val SpeechSynthesisEvent.Companion.END: EventType + get() = EventType("end") - @JsValue("pause") - val PAUSE: EventType +inline val SpeechSynthesisEvent.Companion.MARK: EventType + get() = EventType("mark") - @JsValue("resume") - val RESUME: EventType +inline val SpeechSynthesisEvent.Companion.PAUSE: EventType + get() = EventType("pause") - @JsValue("start") - val START: EventType - } -} +inline val SpeechSynthesisEvent.Companion.RESUME: EventType + get() = EventType("resume") + +inline val SpeechSynthesisEvent.Companion.START: EventType + get() = EventType("start") diff --git a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEventInit.kt b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEventInit.kt index f974f8768e445..80d2e8c636647 100644 --- a/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/speech/SpeechSynthesisEventInit.kt @@ -8,9 +8,9 @@ import web.events.EventInit @JsPlainObject external interface SpeechSynthesisEventInit : EventInit { - val charIndex: Int? - val charLength: Int? - val elapsedTime: Float? - val name: String? - val utterance: SpeechSynthesisUtterance + var charIndex: Int? + var charLength: Int? + var elapsedTime: Float? + var name: String? + var utterance: SpeechSynthesisUtterance } diff --git a/kotlin-browser/src/commonMain/generated/web/sse/EventSourceInit.kt b/kotlin-browser/src/commonMain/generated/web/sse/EventSourceInit.kt index 25d66ee5b878f..e532d45ed4ed8 100644 --- a/kotlin-browser/src/commonMain/generated/web/sse/EventSourceInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/sse/EventSourceInit.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EventSourceInit { - val withCredentials: Boolean? + var withCredentials: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/storage/StorageEstimate.kt b/kotlin-browser/src/commonMain/generated/web/storage/StorageEstimate.kt index 9c346c4bab377..86a44fb6a4dca 100644 --- a/kotlin-browser/src/commonMain/generated/web/storage/StorageEstimate.kt +++ b/kotlin-browser/src/commonMain/generated/web/storage/StorageEstimate.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface StorageEstimate { - val quota: UInt53? - val usage: UInt53? + var quota: UInt53? + var usage: UInt53? } diff --git a/kotlin-browser/src/commonMain/generated/web/storage/StorageEvent.kt b/kotlin-browser/src/commonMain/generated/web/storage/StorageEvent.kt index 309d5a99ae3fc..226d6838c7fb0 100644 --- a/kotlin-browser/src/commonMain/generated/web/storage/StorageEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/storage/StorageEvent.kt @@ -2,9 +2,7 @@ package web.storage -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -53,11 +51,11 @@ open external class StorageEvent( */ val url: String - @JsAlias(THIS) - override fun asInit(): StorageEventInit - - companion object { - @JsValue("storage") - val STORAGE: EventType - } + companion object } + +inline fun StorageEvent.asInit(): StorageEventInit = + unsafeCast(this) + +inline val StorageEvent.Companion.STORAGE: EventType + get() = EventType("storage") diff --git a/kotlin-browser/src/commonMain/generated/web/storage/StorageEventInit.kt b/kotlin-browser/src/commonMain/generated/web/storage/StorageEventInit.kt index 4e639776ed31c..666e65208fa88 100644 --- a/kotlin-browser/src/commonMain/generated/web/storage/StorageEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/storage/StorageEventInit.kt @@ -8,9 +8,9 @@ import web.events.EventInit @JsPlainObject external interface StorageEventInit : EventInit { - val key: String? - val newValue: String? - val oldValue: String? - val storageArea: Storage? - val url: String? + var key: String? + var newValue: String? + var oldValue: String? + var storageArea: Storage? + var url: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/svg/SVGBoundingBoxOptions.kt b/kotlin-browser/src/commonMain/generated/web/svg/SVGBoundingBoxOptions.kt index c8e146d7c9bed..5bfa995056d43 100644 --- a/kotlin-browser/src/commonMain/generated/web/svg/SVGBoundingBoxOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/svg/SVGBoundingBoxOptions.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface SVGBoundingBoxOptions { - val clipped: Boolean? - val fill: Boolean? - val markers: Boolean? - val stroke: Boolean? + var clipped: Boolean? + var fill: Boolean? + var markers: Boolean? + var stroke: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportCloseInfo.kt b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportCloseInfo.kt index 269815c741362..244a8340681dd 100644 --- a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportCloseInfo.kt +++ b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportCloseInfo.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebTransportCloseInfo { - val closeCode: Int? - val reason: String? + var closeCode: Int? + var reason: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportErrorOptions.kt b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportErrorOptions.kt index d283ac135bcaa..dafd714078d90 100644 --- a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportErrorOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportErrorOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebTransportErrorOptions { - val source: WebTransportErrorSource? - val streamErrorCode: Int? + var source: WebTransportErrorSource? + var streamErrorCode: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportHash.kt b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportHash.kt index 8a82c70444115..d3fd0036257df 100644 --- a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportHash.kt +++ b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportHash.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebTransportHash { - val algorithm: String? - val value: BufferSource? + var algorithm: String? + var value: BufferSource? } diff --git a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportOptions.kt b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportOptions.kt index 5bc25569a5696..b774b57cfefd4 100644 --- a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportOptions.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebTransportOptions { - val allowPooling: Boolean? - val congestionControl: WebTransportCongestionControl? - val requireUnreliable: Boolean? - val serverCertificateHashes: ReadonlyArray? + var allowPooling: Boolean? + var congestionControl: WebTransportCongestionControl? + var requireUnreliable: Boolean? + var serverCertificateHashes: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportSendOptions.kt b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportSendOptions.kt index 42824c0036983..cfd66a66a2f9f 100644 --- a/kotlin-browser/src/commonMain/generated/web/transport/WebTransportSendOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/transport/WebTransportSendOptions.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebTransportSendOptions { - val sendOrder: Int53? + var sendOrder: Int53? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEvent.kt index 2716d4ac03256..3f995fb9bfbe0 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import kotlin.js.definedExternally @@ -24,17 +22,17 @@ open external class CompositionEvent( */ val data: String - @JsAlias(THIS) - override fun asInit(): CompositionEventInit + companion object +} - companion object { - @JsValue("compositionend") - val COMPOSITION_END: EventType +inline fun CompositionEvent.asInit(): CompositionEventInit = + unsafeCast(this) - @JsValue("compositionstart") - val COMPOSITION_START: EventType +inline val CompositionEvent.Companion.COMPOSITION_END: EventType + get() = EventType("compositionend") - @JsValue("compositionupdate") - val COMPOSITION_UPDATE: EventType - } -} +inline val CompositionEvent.Companion.COMPOSITION_START: EventType + get() = EventType("compositionstart") + +inline val CompositionEvent.Companion.COMPOSITION_UPDATE: EventType + get() = EventType("compositionupdate") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEventInit.kt index ae6dbe859a3d8..3bb7fb524fe9b 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/CompositionEventInit.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface CompositionEventInit : UIEventInit { - val data: String? + var data: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/DragEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/DragEvent.kt index 47f0c4f702360..a2ff297f4b39e 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/DragEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/DragEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.data.DataTransfer import web.events.EventType import kotlin.js.definedExternally @@ -25,29 +23,29 @@ open external class DragEvent( */ val dataTransfer: DataTransfer? - @JsAlias(THIS) - override fun asInit(): DragEventInit + companion object +} - companion object { - @JsValue("drag") - val DRAG: EventType +inline fun DragEvent.asInit(): DragEventInit = + unsafeCast(this) - @JsValue("dragend") - val DRAG_END: EventType +inline val DragEvent.Companion.DRAG: EventType + get() = EventType("drag") - @JsValue("dragenter") - val DRAG_ENTER: EventType +inline val DragEvent.Companion.DRAG_END: EventType + get() = EventType("dragend") - @JsValue("dragleave") - val DRAG_LEAVE: EventType +inline val DragEvent.Companion.DRAG_ENTER: EventType + get() = EventType("dragenter") - @JsValue("dragover") - val DRAG_OVER: EventType +inline val DragEvent.Companion.DRAG_LEAVE: EventType + get() = EventType("dragleave") - @JsValue("dragstart") - val DRAG_START: EventType +inline val DragEvent.Companion.DRAG_OVER: EventType + get() = EventType("dragover") - @JsValue("drop") - val DROP: EventType - } -} +inline val DragEvent.Companion.DRAG_START: EventType + get() = EventType("dragstart") + +inline val DragEvent.Companion.DROP: EventType + get() = EventType("drop") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/DragEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/DragEventInit.kt index c9d9239f69a0a..fb49bfa8927fe 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/DragEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/DragEventInit.kt @@ -8,5 +8,5 @@ import web.data.DataTransfer @JsPlainObject external interface DragEventInit : MouseEventInit { - val dataTransfer: DataTransfer? + var dataTransfer: DataTransfer? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/FocusEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/FocusEvent.kt index 179f0cc4b0d2d..4ee1af41c5888 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/FocusEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/FocusEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventTarget import web.events.EventType import kotlin.js.definedExternally @@ -25,20 +23,20 @@ open external class FocusEvent( */ val relatedTarget: EventTarget? - @JsAlias(THIS) - override fun asInit(): FocusEventInit + companion object +} - companion object { - @JsValue("blur") - val BLUR: EventType +inline fun FocusEvent.asInit(): FocusEventInit = + unsafeCast(this) - @JsValue("focus") - val FOCUS: EventType +inline val FocusEvent.Companion.BLUR: EventType + get() = EventType("blur") - @JsValue("focusin") - val FOCUS_IN: EventType +inline val FocusEvent.Companion.FOCUS: EventType + get() = EventType("focus") - @JsValue("focusout") - val FOCUS_OUT: EventType - } -} +inline val FocusEvent.Companion.FOCUS_IN: EventType + get() = EventType("focusin") + +inline val FocusEvent.Companion.FOCUS_OUT: EventType + get() = EventType("focusout") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/FocusEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/FocusEventInit.kt index 2b65328b400f5..e9b9aad3d3f58 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/FocusEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/FocusEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventTarget @JsPlainObject external interface FocusEventInit : UIEventInit { - val relatedTarget: EventTarget? + var relatedTarget: EventTarget? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/InputEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/InputEvent.kt index 6710e9a7d6442..2cbc3a1faae0a 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/InputEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/InputEvent.kt @@ -3,9 +3,7 @@ package web.uievents import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.data.DataTransfer import web.events.EventType import web.ranges.StaticRange @@ -55,14 +53,14 @@ open external class InputEvent( */ fun getTargetRanges(): ReadonlyArray - @JsAlias(THIS) - override fun asInit(): InputEventInit + companion object +} - companion object { - @JsValue("beforeinput") - val BEFORE_INPUT: EventType +inline fun InputEvent.asInit(): InputEventInit = + unsafeCast(this) - @JsValue("input") - val INPUT: EventType - } -} +inline val InputEvent.Companion.BEFORE_INPUT: EventType + get() = EventType("beforeinput") + +inline val InputEvent.Companion.INPUT: EventType + get() = EventType("input") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/InputEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/InputEventInit.kt index c837e0df57d3b..92062e795528e 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/InputEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/InputEventInit.kt @@ -10,9 +10,9 @@ import web.ranges.StaticRange @JsPlainObject external interface InputEventInit : UIEventInit { - val data: String? - val dataTransfer: DataTransfer? - val inputType: String? - val isComposing: Boolean? - val targetRanges: ReadonlyArray? + var data: String? + var dataTransfer: DataTransfer? + var inputType: String? + var isComposing: Boolean? + var targetRanges: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEvent.kt index 6c4bc9038102f..34bf75f341ea4 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import web.keyboard.KeyCode import web.keyboard.ModifierKeyCode @@ -93,22 +91,22 @@ open external class KeyboardEvent( val DOM_KEY_LOCATION_RIGHT: KeyLocation val DOM_KEY_LOCATION_NUMPAD: KeyLocation - @JsAlias(THIS) - override fun asInit(): KeyboardEventInit - companion object { val DOM_KEY_LOCATION_STANDARD: KeyLocation val DOM_KEY_LOCATION_LEFT: KeyLocation val DOM_KEY_LOCATION_RIGHT: KeyLocation val DOM_KEY_LOCATION_NUMPAD: KeyLocation + } +} - @JsValue("keydown") - val KEY_DOWN: EventType +inline fun KeyboardEvent.asInit(): KeyboardEventInit = + unsafeCast(this) - @JsValue("keypress") - val KEY_PRESS: EventType +inline val KeyboardEvent.Companion.KEY_DOWN: EventType + get() = EventType("keydown") - @JsValue("keyup") - val KEY_UP: EventType - } -} +inline val KeyboardEvent.Companion.KEY_PRESS: EventType + get() = EventType("keypress") + +inline val KeyboardEvent.Companion.KEY_UP: EventType + get() = EventType("keyup") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEventInit.kt index bdfb3176d7adf..01e7a7ec93632 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/KeyboardEventInit.kt @@ -8,9 +8,9 @@ import web.keyboard.KeyCode @JsPlainObject external interface KeyboardEventInit : EventModifierInit { - val code: KeyCode? - val isComposing: Boolean? - val key: String? - val location: KeyLocation? - val repeat: Boolean? + var code: KeyCode? + var isComposing: Boolean? + var key: String? + var location: KeyLocation? + var repeat: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/MouseEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/MouseEvent.kt index 2b79601ebdcfa..a9549af6846e9 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/MouseEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/MouseEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventTarget import web.events.EventType import web.keyboard.ModifierKeyCode @@ -173,32 +171,32 @@ open external class MouseEvent( */ fun getModifierState(keyArg: ModifierKeyCode): Boolean - @JsAlias(THIS) - override fun asInit(): MouseEventInit + companion object +} - companion object { - @JsValue("dblclick") - val DBL_CLICK: EventType +inline fun MouseEvent.asInit(): MouseEventInit = + unsafeCast(this) - @JsValue("mousedown") - val MOUSE_DOWN: EventType +inline val MouseEvent.Companion.DBL_CLICK: EventType + get() = EventType("dblclick") - @JsValue("mouseenter") - val MOUSE_ENTER: EventType +inline val MouseEvent.Companion.MOUSE_DOWN: EventType + get() = EventType("mousedown") - @JsValue("mouseleave") - val MOUSE_LEAVE: EventType +inline val MouseEvent.Companion.MOUSE_ENTER: EventType + get() = EventType("mouseenter") - @JsValue("mousemove") - val MOUSE_MOVE: EventType +inline val MouseEvent.Companion.MOUSE_LEAVE: EventType + get() = EventType("mouseleave") - @JsValue("mouseout") - val MOUSE_OUT: EventType +inline val MouseEvent.Companion.MOUSE_MOVE: EventType + get() = EventType("mousemove") - @JsValue("mouseover") - val MOUSE_OVER: EventType +inline val MouseEvent.Companion.MOUSE_OUT: EventType + get() = EventType("mouseout") - @JsValue("mouseup") - val MOUSE_UP: EventType - } -} +inline val MouseEvent.Companion.MOUSE_OVER: EventType + get() = EventType("mouseover") + +inline val MouseEvent.Companion.MOUSE_UP: EventType + get() = EventType("mouseup") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/MouseEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/MouseEventInit.kt index 047b510afedcf..fe5019438e4f3 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/MouseEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/MouseEventInit.kt @@ -8,13 +8,13 @@ import web.events.EventTarget @JsPlainObject external interface MouseEventInit : EventModifierInit { - val button: MouseButton? - val buttons: MouseButtons? - val clientX: Int? - val clientY: Int? - val movementX: Double? - val movementY: Double? - val relatedTarget: EventTarget? - val screenX: Int? - val screenY: Int? + var button: MouseButton? + var buttons: MouseButtons? + var clientX: Int? + var clientY: Int? + var movementX: Double? + var movementY: Double? + var relatedTarget: EventTarget? + var screenX: Int? + var screenY: Int? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/PointerEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/PointerEvent.kt index 2239bc2f5923e..f40f35d551a32 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/PointerEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/PointerEvent.kt @@ -3,9 +3,7 @@ package web.uievents import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import kotlin.js.definedExternally @@ -117,47 +115,47 @@ open external class PointerEvent( */ fun getPredictedEvents(): ReadonlyArray - @JsAlias(THIS) - override fun asInit(): PointerEventInit + companion object +} - companion object { - @JsValue("auxclick") - val AUX_CLICK: EventType +inline fun PointerEvent.asInit(): PointerEventInit = + unsafeCast(this) - @JsValue("click") - val CLICK: EventType +inline val PointerEvent.Companion.AUX_CLICK: EventType + get() = EventType("auxclick") - @JsValue("contextmenu") - val CONTEXT_MENU: EventType +inline val PointerEvent.Companion.CLICK: EventType + get() = EventType("click") - @JsValue("gotpointercapture") - val GOT_POINTER_CAPTURE: EventType +inline val PointerEvent.Companion.CONTEXT_MENU: EventType + get() = EventType("contextmenu") - @JsValue("lostpointercapture") - val LOST_POINTER_CAPTURE: EventType +inline val PointerEvent.Companion.GOT_POINTER_CAPTURE: EventType + get() = EventType("gotpointercapture") - @JsValue("pointercancel") - val POINTER_CANCEL: EventType +inline val PointerEvent.Companion.LOST_POINTER_CAPTURE: EventType + get() = EventType("lostpointercapture") - @JsValue("pointerdown") - val POINTER_DOWN: EventType +inline val PointerEvent.Companion.POINTER_CANCEL: EventType + get() = EventType("pointercancel") - @JsValue("pointerenter") - val POINTER_ENTER: EventType +inline val PointerEvent.Companion.POINTER_DOWN: EventType + get() = EventType("pointerdown") - @JsValue("pointerleave") - val POINTER_LEAVE: EventType +inline val PointerEvent.Companion.POINTER_ENTER: EventType + get() = EventType("pointerenter") - @JsValue("pointermove") - val POINTER_MOVE: EventType +inline val PointerEvent.Companion.POINTER_LEAVE: EventType + get() = EventType("pointerleave") - @JsValue("pointerout") - val POINTER_OUT: EventType +inline val PointerEvent.Companion.POINTER_MOVE: EventType + get() = EventType("pointermove") - @JsValue("pointerover") - val POINTER_OVER: EventType +inline val PointerEvent.Companion.POINTER_OUT: EventType + get() = EventType("pointerout") - @JsValue("pointerup") - val POINTER_UP: EventType - } -} +inline val PointerEvent.Companion.POINTER_OVER: EventType + get() = EventType("pointerover") + +inline val PointerEvent.Companion.POINTER_UP: EventType + get() = EventType("pointerup") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/PointerEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/PointerEventInit.kt index 2d7e39baf363f..28352aaad4a21 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/PointerEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/PointerEventInit.kt @@ -8,18 +8,18 @@ import js.objects.JsPlainObject @JsPlainObject external interface PointerEventInit : MouseEventInit { - val altitudeAngle: Double? - val azimuthAngle: Double? - val coalescedEvents: ReadonlyArray? - val height: Double? - val isPrimary: Boolean? - val pointerId: Int? - val pointerType: String? - val predictedEvents: ReadonlyArray? - val pressure: Float? - val tangentialPressure: Float? - val tiltX: Int? - val tiltY: Int? - val twist: Int? - val width: Double? + var altitudeAngle: Double? + var azimuthAngle: Double? + var coalescedEvents: ReadonlyArray? + var height: Double? + var isPrimary: Boolean? + var pointerId: Int? + var pointerType: String? + var predictedEvents: ReadonlyArray? + var pressure: Float? + var tangentialPressure: Float? + var tiltX: Int? + var tiltY: Int? + var twist: Int? + var width: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/TouchEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/TouchEvent.kt index 3572903bb02ac..3bd4f867162fc 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/TouchEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/TouchEvent.kt @@ -2,10 +2,9 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType +import kotlin.js.JsName import kotlin.js.definedExternally /** @@ -13,6 +12,7 @@ import kotlin.js.definedExternally * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent) */ +@JsName("globalThis.TouchEvent") open external class TouchEvent( override val type: EventType, init: TouchEventInit = definedExternally, @@ -66,20 +66,20 @@ open external class TouchEvent( */ val touches: TouchList - @JsAlias(THIS) - override fun asInit(): TouchEventInit + companion object +} - companion object { - @JsValue("touchcancel") - val TOUCH_CANCEL: EventType +inline fun TouchEvent.asInit(): TouchEventInit = + unsafeCast(this) - @JsValue("touchend") - val TOUCH_END: EventType +inline val TouchEvent.Companion.TOUCH_CANCEL: EventType + get() = EventType("touchcancel") - @JsValue("touchmove") - val TOUCH_MOVE: EventType +inline val TouchEvent.Companion.TOUCH_END: EventType + get() = EventType("touchend") - @JsValue("touchstart") - val TOUCH_START: EventType - } -} +inline val TouchEvent.Companion.TOUCH_MOVE: EventType + get() = EventType("touchmove") + +inline val TouchEvent.Companion.TOUCH_START: EventType + get() = EventType("touchstart") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/TouchEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/TouchEventInit.kt index 53afd7cff33c8..f8a8620ed57ac 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/TouchEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/TouchEventInit.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface TouchEventInit : EventModifierInit { - val changedTouches: ReadonlyArray? - val targetTouches: ReadonlyArray? - val touches: ReadonlyArray? + var changedTouches: ReadonlyArray? + var targetTouches: ReadonlyArray? + var touches: ReadonlyArray? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/TouchInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/TouchInit.kt index 25d818952419d..b011dac855444 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/TouchInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/TouchInit.kt @@ -7,19 +7,19 @@ import web.events.EventTarget @JsPlainObject external interface TouchInit { - val altitudeAngle: Double? - val azimuthAngle: Double? - val clientX: Double? - val clientY: Double? - val force: Float? - val identifier: Int - val pageX: Double? - val pageY: Double? - val radiusX: Float? - val radiusY: Float? - val rotationAngle: Float? - val screenX: Double? - val screenY: Double? - val target: EventTarget - val touchType: TouchType? + var altitudeAngle: Double? + var azimuthAngle: Double? + var clientX: Double? + var clientY: Double? + var force: Float? + var identifier: Int + var pageX: Double? + var pageY: Double? + var radiusX: Float? + var radiusY: Float? + var rotationAngle: Float? + var screenX: Double? + var screenY: Double? + var target: EventTarget + var touchType: TouchType? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/UIEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/UIEvent.kt index 09961fd55d15d..3c28a7328e1b4 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/UIEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/UIEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import web.window.Window @@ -33,14 +31,14 @@ open external class UIEvent( */ val view: Window? - @JsAlias(THIS) - override fun asInit(): UIEventInit + companion object +} - companion object { - @JsValue("abort") - val ABORT: EventType +inline fun UIEvent.asInit(): UIEventInit = + unsafeCast(this) - @JsValue("resize") - val RESIZE: EventType - } -} +inline val UIEvent.Companion.ABORT: EventType + get() = EventType("abort") + +inline val UIEvent.Companion.RESIZE: EventType + get() = EventType("resize") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/UIEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/UIEventInit.kt index 4bfb89f12029e..5e2b08e6db3d8 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/UIEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/UIEventInit.kt @@ -9,6 +9,6 @@ import web.window.Window @JsPlainObject external interface UIEventInit : EventInit { - val detail: Int? - val view: Window? + var detail: Int? + var view: Window? } diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/WheelEvent.kt b/kotlin-browser/src/commonMain/generated/web/uievents/WheelEvent.kt index b7ad82c70bc00..480ad95a9405f 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/WheelEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/WheelEvent.kt @@ -2,9 +2,7 @@ package web.uievents -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.EventType import kotlin.js.definedExternally @@ -48,15 +46,15 @@ open external class WheelEvent( val DOM_DELTA_LINE: DeltaMode val DOM_DELTA_PAGE: DeltaMode - @JsAlias(THIS) - override fun asInit(): WheelEventInit - companion object { val DOM_DELTA_PIXEL: DeltaMode val DOM_DELTA_LINE: DeltaMode val DOM_DELTA_PAGE: DeltaMode - - @JsValue("wheel") - val WHEEL: EventType } } + +inline fun WheelEvent.asInit(): WheelEventInit = + unsafeCast(this) + +inline val WheelEvent.Companion.WHEEL: EventType + get() = EventType("wheel") diff --git a/kotlin-browser/src/commonMain/generated/web/uievents/WheelEventInit.kt b/kotlin-browser/src/commonMain/generated/web/uievents/WheelEventInit.kt index 2e323609fa30b..1f953210f1dd3 100644 --- a/kotlin-browser/src/commonMain/generated/web/uievents/WheelEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/uievents/WheelEventInit.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface WheelEventInit : MouseEventInit { - val deltaMode: DeltaMode? - val deltaX: Double? - val deltaY: Double? - val deltaZ: Double? + var deltaMode: DeltaMode? + var deltaX: Double? + var deltaY: Double? + var deltaZ: Double? } diff --git a/kotlin-browser/src/commonMain/generated/web/validation/ValidityStateFlags.kt b/kotlin-browser/src/commonMain/generated/web/validation/ValidityStateFlags.kt index 6e1824641f6ce..bdd7e926761d0 100644 --- a/kotlin-browser/src/commonMain/generated/web/validation/ValidityStateFlags.kt +++ b/kotlin-browser/src/commonMain/generated/web/validation/ValidityStateFlags.kt @@ -6,14 +6,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface ValidityStateFlags { - val badInput: Boolean? - val customError: Boolean? - val patternMismatch: Boolean? - val rangeOverflow: Boolean? - val rangeUnderflow: Boolean? - val stepMismatch: Boolean? - val tooLong: Boolean? - val tooShort: Boolean? - val typeMismatch: Boolean? - val valueMissing: Boolean? + var badInput: Boolean? + var customError: Boolean? + var patternMismatch: Boolean? + var rangeOverflow: Boolean? + var rangeUnderflow: Boolean? + var stepMismatch: Boolean? + var tooLong: Boolean? + var tooShort: Boolean? + var typeMismatch: Boolean? + var valueMissing: Boolean? } diff --git a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEvent.kt b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEvent.kt index ca019fd380135..3761d93b0df2a 100644 --- a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEvent.kt @@ -2,9 +2,7 @@ package web.viewtransition -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -25,11 +23,11 @@ open external class PageRevealEvent( */ val viewTransition: ViewTransition? - @JsAlias(THIS) - override fun asInit(): PageRevealEventInit - - companion object { - @JsValue("pagereveal") - val PAGE_REVEAL: EventType - } + companion object } + +inline fun PageRevealEvent.asInit(): PageRevealEventInit = + unsafeCast(this) + +inline val PageRevealEvent.Companion.PAGE_REVEAL: EventType + get() = EventType("pagereveal") diff --git a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEventInit.kt b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEventInit.kt index 11e0429e148ee..91905e99142c3 100644 --- a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageRevealEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface PageRevealEventInit : EventInit { - val viewTransition: ViewTransition? + var viewTransition: ViewTransition? } diff --git a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEvent.kt b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEvent.kt index b4b33eae2abfc..08950d5659baf 100644 --- a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEvent.kt @@ -2,9 +2,7 @@ package web.viewtransition -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import web.navigation.NavigationActivation @@ -33,11 +31,11 @@ open external class PageSwapEvent( */ val viewTransition: ViewTransition? - @JsAlias(THIS) - override fun asInit(): PageSwapEventInit - - companion object { - @JsValue("pageswap") - val PAGE_SWAP: EventType - } + companion object } + +inline fun PageSwapEvent.asInit(): PageSwapEventInit = + unsafeCast(this) + +inline val PageSwapEvent.Companion.PAGE_SWAP: EventType + get() = EventType("pageswap") diff --git a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEventInit.kt b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEventInit.kt index 4a27987ed6211..1a6841c4ca4bb 100644 --- a/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/viewtransition/PageSwapEventInit.kt @@ -9,6 +9,6 @@ import web.navigation.NavigationActivation @JsPlainObject external interface PageSwapEventInit : EventInit { - val activation: NavigationActivation? - val viewTransition: ViewTransition? + var activation: NavigationActivation? + var viewTransition: ViewTransition? } diff --git a/kotlin-browser/src/commonMain/generated/web/viewtransition/StartViewTransitionOptions.kt b/kotlin-browser/src/commonMain/generated/web/viewtransition/StartViewTransitionOptions.kt index 2d2c63d9df799..e4ef3d9661aca 100644 --- a/kotlin-browser/src/commonMain/generated/web/viewtransition/StartViewTransitionOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/viewtransition/StartViewTransitionOptions.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface StartViewTransitionOptions { - val types: ReadonlyArray? - val update: ViewTransitionUpdateCallback? + var types: ReadonlyArray? + var update: ViewTransitionUpdateCallback? } diff --git a/kotlin-browser/src/commonMain/generated/web/vtt/TrackEvent.kt b/kotlin-browser/src/commonMain/generated/web/vtt/TrackEvent.kt index e813bb3770f93..797fd08c3d16d 100644 --- a/kotlin-browser/src/commonMain/generated/web/vtt/TrackEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/vtt/TrackEvent.kt @@ -2,9 +2,7 @@ package web.vtt -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -25,14 +23,14 @@ open external class TrackEvent( */ val track: TextTrack? - @JsAlias(THIS) - override fun asInit(): TrackEventInit + companion object +} - companion object { - @JsValue("addtrack") - val ADD_TRACK: EventType +inline fun TrackEvent.asInit(): TrackEventInit = + unsafeCast(this) - @JsValue("removetrack") - val REMOVE_TRACK: EventType - } -} +inline val TrackEvent.Companion.ADD_TRACK: EventType + get() = EventType("addtrack") + +inline val TrackEvent.Companion.REMOVE_TRACK: EventType + get() = EventType("removetrack") diff --git a/kotlin-browser/src/commonMain/generated/web/vtt/TrackEventInit.kt b/kotlin-browser/src/commonMain/generated/web/vtt/TrackEventInit.kt index 1f91b146c2997..fec4797a3418a 100644 --- a/kotlin-browser/src/commonMain/generated/web/vtt/TrackEventInit.kt +++ b/kotlin-browser/src/commonMain/generated/web/vtt/TrackEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface TrackEventInit : EventInit { - val track: TextTrack? + var track: TextTrack? } diff --git a/kotlin-browser/src/commonMain/generated/web/window/BeforeUnloadEvent.kt b/kotlin-browser/src/commonMain/generated/web/window/BeforeUnloadEvent.kt index 575713476587c..a9c8da54d36ba 100644 --- a/kotlin-browser/src/commonMain/generated/web/window/BeforeUnloadEvent.kt +++ b/kotlin-browser/src/commonMain/generated/web/window/BeforeUnloadEvent.kt @@ -2,7 +2,6 @@ package web.window -import seskar.js.JsValue import web.events.Event import web.events.EventType @@ -16,8 +15,8 @@ private constructor() : Event { - companion object { - @JsValue("beforeunload") - val BEFORE_UNLOAD: EventType - } + companion object } + +inline val BeforeUnloadEvent.Companion.BEFORE_UNLOAD: EventType + get() = EventType("beforeunload") diff --git a/kotlin-browser/src/commonMain/generated/web/window/WindowPostMessageOptions.kt b/kotlin-browser/src/commonMain/generated/web/window/WindowPostMessageOptions.kt index 01bff6d061ac2..dcb4f1c3cde09 100644 --- a/kotlin-browser/src/commonMain/generated/web/window/WindowPostMessageOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/window/WindowPostMessageOptions.kt @@ -8,5 +8,5 @@ import web.serialization.StructuredSerializeOptions @JsPlainObject external interface WindowPostMessageOptions : StructuredSerializeOptions { - val targetOrigin: String? + var targetOrigin: String? } diff --git a/kotlin-browser/src/commonMain/generated/web/workers/WorkerOptions.kt b/kotlin-browser/src/commonMain/generated/web/workers/WorkerOptions.kt index 21b977b307a65..11b1f8286116a 100644 --- a/kotlin-browser/src/commonMain/generated/web/workers/WorkerOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/workers/WorkerOptions.kt @@ -7,7 +7,7 @@ import web.http.RequestCredentials @JsPlainObject external interface WorkerOptions { - val credentials: RequestCredentials? - val name: String? - val type: WorkerType? + var credentials: RequestCredentials? + var name: String? + var type: WorkerType? } diff --git a/kotlin-browser/src/commonMain/generated/web/worklets/WorkletOptions.kt b/kotlin-browser/src/commonMain/generated/web/worklets/WorkletOptions.kt index 92abd1474c5c5..f81950c34ce95 100644 --- a/kotlin-browser/src/commonMain/generated/web/worklets/WorkletOptions.kt +++ b/kotlin-browser/src/commonMain/generated/web/worklets/WorkletOptions.kt @@ -7,5 +7,5 @@ import web.http.RequestCredentials @JsPlainObject external interface WorkletOptions { - val credentials: RequestCredentials? + var credentials: RequestCredentials? } diff --git a/kotlin-browser/src/jsTest/kotlin/web/uievents/EventTypesTest.kt b/kotlin-browser/src/jsTest/kotlin/web/uievents/EventTypesTest.kt index 13fcc6e4cba93..872f9f7c1e64f 100644 --- a/kotlin-browser/src/jsTest/kotlin/web/uievents/EventTypesTest.kt +++ b/kotlin-browser/src/jsTest/kotlin/web/uievents/EventTypesTest.kt @@ -1,17 +1,16 @@ package web.uievents -import web.uievents.WheelEvent.Companion.WHEEL import kotlin.test.Test import kotlin.test.assertEquals class EventTypesTest { @Test - fun import() { + fun import1() { assertEquals("click", PointerEvent.CLICK) } @Test - fun staticImport() { - assertEquals("wheel", WHEEL) + fun import2() { + assertEquals("wheel", WheelEvent.WHEEL) } } diff --git a/kotlin-js/src/commonMain/generated/js/intl/CollatorOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/CollatorOptions.kt index b746960e2715a..0690f02c8e5b2 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/CollatorOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/CollatorOptions.kt @@ -6,11 +6,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface CollatorOptions { - val usage: CollatorUsage? - val localeMatcher: LocaleMatcher? - val numeric: Boolean? - val caseFirst: CaseFirst? - val sensitivity: Sensitivity? - val collation: Collation? - val ignorePunctuation: Boolean? + var usage: CollatorUsage? + var localeMatcher: LocaleMatcher? + var numeric: Boolean? + var caseFirst: CaseFirst? + var sensitivity: Sensitivity? + var collation: Collation? + var ignorePunctuation: Boolean? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/DateTimeFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/DateTimeFormatOptions.kt index 4db964154b05a..90abcbbbe6fb1 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/DateTimeFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/DateTimeFormatOptions.kt @@ -6,24 +6,24 @@ import js.objects.JsPlainObject @JsPlainObject external interface DateTimeFormatOptions { - val localeMatcher: LocaleMatcher? - val weekday: WeekdayFormat? - val era: EraFormat? - val year: YearFormat? - val month: MonthFormat? - val day: DayFormat? - val hour: HourFormat? - val minute: MinuteFormat? - val second: SecondFormat? - val timeZoneName: TimeZoneNameFormat? - val formatMatcher: FormatMatcher? - val hour12: Boolean? - val timeZone: String? - val calendar: String? - val dayPeriod: DayPeriod? - val numberingSystem: String? - val dateStyle: DateStyle? - val timeStyle: TimeStyle? - val hourCycle: HourCycle? - val fractionalSecondDigits: Int /* 1 | 2 | 3 */? + var localeMatcher: LocaleMatcher? + var weekday: WeekdayFormat? + var era: EraFormat? + var year: YearFormat? + var month: MonthFormat? + var day: DayFormat? + var hour: HourFormat? + var minute: MinuteFormat? + var second: SecondFormat? + var timeZoneName: TimeZoneNameFormat? + var formatMatcher: FormatMatcher? + var hour12: Boolean? + var timeZone: String? + var calendar: String? + var dayPeriod: DayPeriod? + var numberingSystem: String? + var dateStyle: DateStyle? + var timeStyle: TimeStyle? + var hourCycle: HourCycle? + var fractionalSecondDigits: Int /* 1 | 2 | 3 */? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/DisplayNamesOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/DisplayNamesOptions.kt index 704342dfa06e0..e5d2a2359497f 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/DisplayNamesOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/DisplayNamesOptions.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface DisplayNamesOptions { - val localeMatcher: LocaleMatcher? - val style: RelativeTimeFormatStyle? - val type: DisplayNamesType - val languageDisplay: DisplayNamesLanguageDisplay? - val fallback: DisplayNamesFallback? + var localeMatcher: LocaleMatcher? + var style: RelativeTimeFormatStyle? + var type: DisplayNamesType + var languageDisplay: DisplayNamesLanguageDisplay? + var fallback: DisplayNamesFallback? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ListFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ListFormatOptions.kt index 136aa2b1f2a35..fe9c6bf902f84 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ListFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ListFormatOptions.kt @@ -9,15 +9,15 @@ external interface ListFormatOptions { /** * The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ - val localeMatcher: ListFormatLocaleMatcher? + var localeMatcher: ListFormatLocaleMatcher? /** * The format of output message. */ - val type: ListFormatType? + var type: ListFormatType? /** * The length of the internationalized message. */ - val style: ListFormatStyle? + var style: ListFormatStyle? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/NumberFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/NumberFormatOptions.kt index 06f798c2a6d07..0dcea46acf4e5 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/NumberFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/NumberFormatOptions.kt @@ -6,25 +6,25 @@ import js.objects.JsPlainObject @JsPlainObject external interface NumberFormatOptions { - val localeMatcher: LocaleMatcher? - val style: NumberFormatOptionsStyle? - val currency: String? - val currencyDisplay: NumberFormatOptionsCurrencyDisplay? - val useGrouping: NumberFormatOptionsUseGrouping? - val minimumIntegerDigits: Int? - val minimumFractionDigits: Int? - val maximumFractionDigits: Int? - val minimumSignificantDigits: Int? - val maximumSignificantDigits: Int? - val numberingSystem: String? - val compactDisplay: CompactDisplay? - val notation: Notation? - val signDisplay: NumberFormatOptionsSignDisplay? - val unit: String? - val unitDisplay: UnitDisplay? - val currencySign: CurrencySign? - val roundingPriority: RoundingPriority? - val roundingIncrement: Int /* 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 */? - val roundingMode: RoundingMode? - val trailingZeroDisplay: TrailingZeroDisplay? + var localeMatcher: LocaleMatcher? + var style: NumberFormatOptionsStyle? + var currency: String? + var currencyDisplay: NumberFormatOptionsCurrencyDisplay? + var useGrouping: NumberFormatOptionsUseGrouping? + var minimumIntegerDigits: Int? + var minimumFractionDigits: Int? + var maximumFractionDigits: Int? + var minimumSignificantDigits: Int? + var maximumSignificantDigits: Int? + var numberingSystem: String? + var compactDisplay: CompactDisplay? + var notation: Notation? + var signDisplay: NumberFormatOptionsSignDisplay? + var unit: String? + var unitDisplay: UnitDisplay? + var currencySign: CurrencySign? + var roundingPriority: RoundingPriority? + var roundingIncrement: Int /* 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 */? + var roundingMode: RoundingMode? + var trailingZeroDisplay: TrailingZeroDisplay? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/PluralRulesOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/PluralRulesOptions.kt index 70937a7189c09..af8e706b66685 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/PluralRulesOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/PluralRulesOptions.kt @@ -6,11 +6,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface PluralRulesOptions { - val localeMatcher: LocaleMatcher? - val type: PluralRuleType? - val minimumIntegerDigits: Int? - val minimumFractionDigits: Int? - val maximumFractionDigits: Int? - val minimumSignificantDigits: Int? - val maximumSignificantDigits: Int? + var localeMatcher: LocaleMatcher? + var type: PluralRuleType? + var minimumIntegerDigits: Int? + var minimumFractionDigits: Int? + var maximumFractionDigits: Int? + var minimumSignificantDigits: Int? + var maximumSignificantDigits: Int? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/RelativeTimeFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/RelativeTimeFormatOptions.kt index 0d4bcb46495a2..e129e35153382 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/RelativeTimeFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/RelativeTimeFormatOptions.kt @@ -9,15 +9,15 @@ external interface RelativeTimeFormatOptions { /** * The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ - val localeMatcher: LocaleMatcher? + var localeMatcher: LocaleMatcher? /** * The format of output message. */ - val numeric: RelativeTimeFormatNumeric? + var numeric: RelativeTimeFormatNumeric? /** * The length of the internationalized message. */ - val style: RelativeTimeFormatStyle? + var style: RelativeTimeFormatStyle? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedCollatorOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedCollatorOptions.kt index 6a6d53397ecdb..89ecef2e6fb36 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedCollatorOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedCollatorOptions.kt @@ -6,11 +6,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedCollatorOptions { - val locale: String - val usage: String - val sensitivity: String - val ignorePunctuation: Boolean - val collation: String - val caseFirst: String - val numeric: Boolean + var locale: String + var usage: String + var sensitivity: String + var ignorePunctuation: Boolean + var collation: String + var caseFirst: String + var numeric: Boolean } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedDateTimeFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedDateTimeFormatOptions.kt index b4a7a45779d7e..47cf6d1887ae3 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedDateTimeFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedDateTimeFormatOptions.kt @@ -6,24 +6,24 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedDateTimeFormatOptions { - val locale: String - val calendar: String - val numberingSystem: String - val timeZone: String - val hour12: Boolean? - val weekday: String? - val era: String? - val year: String? - val month: String? - val day: String? - val hour: String? - val minute: String? - val second: String? - val timeZoneName: String? - val formatMatcher: FormatMatcher? - val dateStyle: DateStyle? - val timeStyle: TimeStyle? - val hourCycle: HourCycle? - val dayPeriod: DayPeriod? - val fractionalSecondDigits: Int /* 1 | 2 | 3 */? + var locale: String + var calendar: String + var numberingSystem: String + var timeZone: String + var hour12: Boolean? + var weekday: String? + var era: String? + var year: String? + var month: String? + var day: String? + var hour: String? + var minute: String? + var second: String? + var timeZoneName: String? + var formatMatcher: FormatMatcher? + var dateStyle: DateStyle? + var timeStyle: TimeStyle? + var hourCycle: HourCycle? + var dayPeriod: DayPeriod? + var fractionalSecondDigits: Int /* 1 | 2 | 3 */? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedDisplayNamesOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedDisplayNamesOptions.kt index 86d25ef4683e5..8954d7499a73a 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedDisplayNamesOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedDisplayNamesOptions.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedDisplayNamesOptions { - val locale: UnicodeBCP47LocaleIdentifier - val style: RelativeTimeFormatStyle - val type: DisplayNamesType - val fallback: DisplayNamesFallback - val languageDisplay: DisplayNamesLanguageDisplay? + var locale: UnicodeBCP47LocaleIdentifier + var style: RelativeTimeFormatStyle + var type: DisplayNamesType + var fallback: DisplayNamesFallback + var languageDisplay: DisplayNamesLanguageDisplay? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedListFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedListFormatOptions.kt index 6b341d4c27126..870b798c81ef9 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedListFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedListFormatOptions.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedListFormatOptions { - val locale: String - val style: ListFormatStyle - val type: ListFormatType + var locale: String + var style: ListFormatStyle + var type: ListFormatType } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedNumberFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedNumberFormatOptions.kt index 03b60fa9dbb97..2bd2f3889ac6c 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedNumberFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedNumberFormatOptions.kt @@ -6,25 +6,25 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedNumberFormatOptions { - val locale: String - val numberingSystem: String - val style: NumberFormatOptionsStyle - val currency: String? - val currencyDisplay: NumberFormatOptionsCurrencyDisplay? - val minimumIntegerDigits: Int - val minimumFractionDigits: Int? - val maximumFractionDigits: Int? - val minimumSignificantDigits: Int? - val maximumSignificantDigits: Int? - val useGrouping: ResolvedNumberFormatOptionsUseGrouping - val compactDisplay: CompactDisplay? - val notation: Notation - val signDisplay: NumberFormatOptionsSignDisplay - val unit: String? - val unitDisplay: UnitDisplay? - val currencySign: CurrencySign? - val roundingPriority: RoundingPriority - val roundingMode: RoundingMode - val roundingIncrement: Int /* 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 */ - val trailingZeroDisplay: TrailingZeroDisplay + var locale: String + var numberingSystem: String + var style: NumberFormatOptionsStyle + var currency: String? + var currencyDisplay: NumberFormatOptionsCurrencyDisplay? + var minimumIntegerDigits: Int + var minimumFractionDigits: Int? + var maximumFractionDigits: Int? + var minimumSignificantDigits: Int? + var maximumSignificantDigits: Int? + var useGrouping: ResolvedNumberFormatOptionsUseGrouping + var compactDisplay: CompactDisplay? + var notation: Notation + var signDisplay: NumberFormatOptionsSignDisplay + var unit: String? + var unitDisplay: UnitDisplay? + var currencySign: CurrencySign? + var roundingPriority: RoundingPriority + var roundingMode: RoundingMode + var roundingIncrement: Int /* 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 */ + var trailingZeroDisplay: TrailingZeroDisplay } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedPluralRulesOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedPluralRulesOptions.kt index 12e4a9c96f8c1..8f54127c5e2ed 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedPluralRulesOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedPluralRulesOptions.kt @@ -7,12 +7,12 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedPluralRulesOptions { - val locale: String - val pluralCategories: ReadonlyArray - val type: PluralRuleType - val minimumIntegerDigits: Int - val minimumFractionDigits: Int - val maximumFractionDigits: Int - val minimumSignificantDigits: Int? - val maximumSignificantDigits: Int? + var locale: String + var pluralCategories: ReadonlyArray + var type: PluralRuleType + var minimumIntegerDigits: Int + var minimumFractionDigits: Int + var maximumFractionDigits: Int + var minimumSignificantDigits: Int? + var maximumSignificantDigits: Int? } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedRelativeTimeFormatOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedRelativeTimeFormatOptions.kt index 7ffaf1f0d9978..2849c9bdd3d00 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedRelativeTimeFormatOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedRelativeTimeFormatOptions.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedRelativeTimeFormatOptions { - val locale: UnicodeBCP47LocaleIdentifier - val style: RelativeTimeFormatStyle - val numeric: RelativeTimeFormatNumeric - val numberingSystem: String + var locale: UnicodeBCP47LocaleIdentifier + var style: RelativeTimeFormatStyle + var numeric: RelativeTimeFormatNumeric + var numberingSystem: String } diff --git a/kotlin-js/src/commonMain/generated/js/intl/ResolvedSegmenterOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/ResolvedSegmenterOptions.kt index ad738ab319573..7b3fef58e1780 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/ResolvedSegmenterOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/ResolvedSegmenterOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResolvedSegmenterOptions { - val locale: String - val granularity: Granularity + var locale: String + var granularity: Granularity } diff --git a/kotlin-js/src/commonMain/generated/js/intl/SegmenterOptions.kt b/kotlin-js/src/commonMain/generated/js/intl/SegmenterOptions.kt index eeee0b520c15c..38c5bca8218ab 100644 --- a/kotlin-js/src/commonMain/generated/js/intl/SegmenterOptions.kt +++ b/kotlin-js/src/commonMain/generated/js/intl/SegmenterOptions.kt @@ -9,10 +9,10 @@ external interface SegmenterOptions { /** * The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ - val localeMatcher: LocaleMatcher? + var localeMatcher: LocaleMatcher? /** * The type of input to be split */ - val granularity: Granularity? + var granularity: Granularity? } diff --git a/kotlin-js/src/commonMain/kotlin/js/array/Tuple.kt b/kotlin-js/src/commonMain/kotlin/js/array/Tuple.kt index 7f8ab2a0d0386..8ab52a5c4f640 100644 --- a/kotlin-js/src/commonMain/kotlin/js/array/Tuple.kt +++ b/kotlin-js/src/commonMain/kotlin/js/array/Tuple.kt @@ -1,56 +1,58 @@ package js.array import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast import kotlin.js.JsName sealed external interface Tuple { @JsName("length") val size: Int - @JsAlias(THIS) - fun asArray(): ReadonlyArray + @JsName("at") + fun unsafeGet(index: Int): R } sealed external interface Tuple1 : - Tuple { - @JsAlias("[0]") - operator fun component1(): A -} + Tuple sealed external interface Tuple2 : - Tuple1 { - @JsAlias("[1]") - operator fun component2(): B -} + Tuple1 sealed external interface Tuple3 : - Tuple2 { - @JsAlias("[2]") - operator fun component3(): C -} + Tuple2 sealed external interface Tuple4 : - Tuple3 { - @JsAlias("[3]") - operator fun component4(): D -} + Tuple3 sealed external interface Tuple5 : - Tuple4 { - @JsAlias("[4]") - operator fun component5(): E -} + Tuple4 sealed external interface Tuple6 : - Tuple5 { - @JsAlias("[5]") - operator fun component6(): F -} + Tuple5 sealed external interface Tuple7 : - Tuple6 { - @JsAlias("[6]") - operator fun component7(): G -} + Tuple6 + +inline fun Tuple.asArray(): ReadonlyArray = + unsafeCast(this) + +inline operator fun Tuple1.component1(): A = + unsafeGet(0) + +inline operator fun Tuple2<*, B>.component2(): B = + unsafeGet(1) + +inline operator fun Tuple3<*, *, C>.component3(): C = + unsafeGet(2) + +inline operator fun Tuple4<*, *, *, D>.component4(): D = + unsafeGet(3) + +inline operator fun Tuple5<*, *, *, *, E>.component5(): E = + unsafeGet(4) + +inline operator fun Tuple6<*, *, *, *, *, F>.component6(): F = + unsafeGet(5) + +inline operator fun Tuple7<*, *, *, *, *, *, G>.component7(): G = + unsafeGet(6) diff --git a/kotlin-js/src/commonMain/kotlin/js/buffer/ArrayBufferOptions.kt b/kotlin-js/src/commonMain/kotlin/js/buffer/ArrayBufferOptions.kt index 7b56839ca388f..2fcf78ff75b92 100644 --- a/kotlin-js/src/commonMain/kotlin/js/buffer/ArrayBufferOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/buffer/ArrayBufferOptions.kt @@ -4,5 +4,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ArrayBufferOptions { - val maxByteLength: Int + var maxByteLength: Int } diff --git a/kotlin-js/src/commonMain/kotlin/js/buffer/SharedArrayBufferOptions.kt b/kotlin-js/src/commonMain/kotlin/js/buffer/SharedArrayBufferOptions.kt index 66a29692e01c3..b0983c05b477a 100644 --- a/kotlin-js/src/commonMain/kotlin/js/buffer/SharedArrayBufferOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/buffer/SharedArrayBufferOptions.kt @@ -4,5 +4,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface SharedArrayBufferOptions { - val maxByteLength: Int + var maxByteLength: Int } diff --git a/kotlin-js/src/commonMain/kotlin/js/errors/ErrorOptions.kt b/kotlin-js/src/commonMain/kotlin/js/errors/ErrorOptions.kt index c2f13ba008b87..536dc91593189 100644 --- a/kotlin-js/src/commonMain/kotlin/js/errors/ErrorOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/errors/ErrorOptions.kt @@ -4,5 +4,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ErrorOptions { - val cause: JsError? + var cause: JsError? } diff --git a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGenerator.kt b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGenerator.kt index 878f29f5cf58b..8377b5fc7f567 100644 --- a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGenerator.kt +++ b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGenerator.kt @@ -6,12 +6,12 @@ import js.iterable.AsyncIterator import js.iterable.IteratorResult import js.promise.Promise import js.promise.PromiseLike -import seskar.js.JsSpecialName +import kotlin.js.JsName import kotlin.js.definedExternally private const val ASYNC_GENERATOR: String = "(async function* () {}.constructor.prototype.prototype)" -@JsSpecialName(ASYNC_GENERATOR) +@JsName(ASYNC_GENERATOR) external class AsyncGenerator private constructor() : AsyncIterator { diff --git a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.factory.kt b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.factory.kt index 5e68f1d8a1646..2782dee06ee29 100644 --- a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.factory.kt +++ b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.factory.kt @@ -2,27 +2,27 @@ package js.generator import js.array.* import js.core.JsAny -import seskar.js.JsSpecialName +import kotlin.js.JsName -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( body: String, ): AsyncGeneratorFunction -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, body: String, ): AsyncGeneratorFunction, R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, body: String, ): AsyncGeneratorFunction, R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, @@ -30,7 +30,7 @@ external fun body: String, ): AsyncGeneratorFunction, R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, @@ -39,7 +39,7 @@ external fun , R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, @@ -49,7 +49,7 @@ external fun , R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, @@ -60,7 +60,7 @@ external fun , R> -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) external fun > AsyncGeneratorFunction( p1: String, p2: String, diff --git a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.kt b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.kt index f0d583ef93246..a3f38ee0705f9 100644 --- a/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.kt +++ b/kotlin-js/src/commonMain/kotlin/js/generator/AsyncGeneratorFunction.kt @@ -2,11 +2,11 @@ package js.generator import js.array.Tuple import js.function.JsFunction -import seskar.js.JsSpecialName +import kotlin.js.JsName internal const val ASYNC_GENERATOR_FUNCTION: String = "(async function* () {}.constructor)" -@JsSpecialName(ASYNC_GENERATOR_FUNCTION) +@JsName(ASYNC_GENERATOR_FUNCTION) open external class AsyncGeneratorFunction>( vararg parameterNames: String, body: String, diff --git a/kotlin-js/src/commonMain/kotlin/js/generator/Generator.kt b/kotlin-js/src/commonMain/kotlin/js/generator/Generator.kt index 363586c1989ad..20b63c39d607e 100644 --- a/kotlin-js/src/commonMain/kotlin/js/generator/Generator.kt +++ b/kotlin-js/src/commonMain/kotlin/js/generator/Generator.kt @@ -4,11 +4,11 @@ import js.core.JsAny import js.errors.JsError import js.iterable.IteratorResult import js.iterable.JsIterator -import seskar.js.JsSpecialName +import kotlin.js.JsName private const val GENERATOR: String = "(function* () {}.constructor.prototype.prototype)" -@JsSpecialName(GENERATOR) +@JsName(GENERATOR) external class Generator private constructor() : JsIterator { diff --git a/kotlin-js/src/commonMain/kotlin/js/generator/GeneratorFunction.kt b/kotlin-js/src/commonMain/kotlin/js/generator/GeneratorFunction.kt index 7e34f28a5dc07..1ef8d95aa2d99 100644 --- a/kotlin-js/src/commonMain/kotlin/js/generator/GeneratorFunction.kt +++ b/kotlin-js/src/commonMain/kotlin/js/generator/GeneratorFunction.kt @@ -2,11 +2,11 @@ package js.generator import js.array.Tuple import js.function.JsFunction -import seskar.js.JsSpecialName +import kotlin.js.JsName private const val GENERATOR_FUNCTION: String = "(function* () {}.constructor)" -@JsSpecialName(GENERATOR_FUNCTION) +@JsName(GENERATOR_FUNCTION) open external class GeneratorFunction>( vararg parameterNames: String, body: String, diff --git a/kotlin-js/src/commonMain/kotlin/js/import/ImportCallOptions.kt b/kotlin-js/src/commonMain/kotlin/js/import/ImportCallOptions.kt index 79674cb8ec7c6..bbee9d366e990 100644 --- a/kotlin-js/src/commonMain/kotlin/js/import/ImportCallOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/import/ImportCallOptions.kt @@ -10,5 +10,5 @@ import js.objects.JsPlainObject */ @JsPlainObject external interface ImportCallOptions { - val with: ImportAttributes? + var with: ImportAttributes? } diff --git a/kotlin-js/src/commonMain/kotlin/js/objects/TypedPropertyDescriptor.kt b/kotlin-js/src/commonMain/kotlin/js/objects/TypedPropertyDescriptor.kt index 4d2e43bd86a05..936b339e4acb7 100644 --- a/kotlin-js/src/commonMain/kotlin/js/objects/TypedPropertyDescriptor.kt +++ b/kotlin-js/src/commonMain/kotlin/js/objects/TypedPropertyDescriptor.kt @@ -4,10 +4,10 @@ import js.core.JsAny @JsPlainObject external interface TypedPropertyDescriptor { - val configurable: Boolean? - val enumerable: Boolean? - val value: T? - val writable: Boolean? - val get: (() -> T)? - val set: ((v: T) -> Unit)? + var configurable: Boolean? + var enumerable: Boolean? + var value: T? + var writable: Boolean? + var get: (() -> T)? + var set: ((v: T) -> Unit)? } diff --git a/kotlin-js/src/commonMain/kotlin/js/reflect/ProxyHandler.kt b/kotlin-js/src/commonMain/kotlin/js/reflect/ProxyHandler.kt index 7f87337059683..be72fbfc6cb6b 100644 --- a/kotlin-js/src/commonMain/kotlin/js/reflect/ProxyHandler.kt +++ b/kotlin-js/src/commonMain/kotlin/js/reflect/ProxyHandler.kt @@ -8,18 +8,18 @@ import js.objects.PropertyKey import js.objects.TypedPropertyDescriptor @JsPlainObject -external interface ProxyHandler { - val apply: ((target: T, thisArg: JsAny, argArray: ReadonlyArray) -> JsAny)? - val construct: ((target: T, argArray: ReadonlyArray, newTarget: JsFunction<*, *>) -> JsAny)? - val defineProperty: ((target: T, p: PropertyKey, attributes: TypedPropertyDescriptor<*>) -> Boolean)? - val deleteProperty: ((target: T, p: PropertyKey) -> Boolean)? - val get: ((target: T, p: PropertyKey, receiver: JsAny) -> JsAny)? - val getOwnPropertyDescriptor: ((target: T, p: PropertyKey) -> TypedPropertyDescriptor<*>)? - val getPrototypeOf: ((target: T) -> JsAny?)? - val has: ((target: T, p: PropertyKey) -> Boolean)? - val isExtensible: ((target: T) -> Boolean)? - val ownKeys: ((target: T) -> ReadonlyArray)? - val preventExtensions: ((target: T) -> Boolean)? - val set: ((target: T, p: PropertyKey, value: JsAny, receiver: JsAny) -> Boolean)? - val setPrototypeOf: ((target: T, v: JsAny?) -> Boolean)? +external interface ProxyHandler { + var apply: ((target: T, thisArg: JsAny, argArray: ReadonlyArray) -> JsAny)? + var construct: ((target: T, argArray: ReadonlyArray, newTarget: JsFunction<*, *>) -> JsAny)? + var defineProperty: ((target: T, p: PropertyKey, attributes: TypedPropertyDescriptor<*>) -> Boolean)? + var deleteProperty: ((target: T, p: PropertyKey) -> Boolean)? + var get: ((target: T, p: PropertyKey, receiver: JsAny) -> JsAny)? + var getOwnPropertyDescriptor: ((target: T, p: PropertyKey) -> TypedPropertyDescriptor<*>)? + var getPrototypeOf: ((target: T) -> JsAny?)? + var has: ((target: T, p: PropertyKey) -> Boolean)? + var isExtensible: ((target: T) -> Boolean)? + var ownKeys: ((target: T) -> ReadonlyArray)? + var preventExtensions: ((target: T) -> Boolean)? + var set: ((target: T, p: PropertyKey, value: JsAny, receiver: JsAny) -> Boolean)? + var setPrototypeOf: ((target: T, v: JsAny?) -> Boolean)? } diff --git a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpExecArray.kt b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpExecArray.kt index 5132cff849de5..10b8fa8a411f7 100644 --- a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpExecArray.kt +++ b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpExecArray.kt @@ -5,8 +5,7 @@ import js.array.ReadonlyArray import js.core.JsString import js.objects.ReadonlyRecord import js.reflect.JsExternalInheritorsOnly -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast @JsExternalInheritorsOnly external interface RegExpExecArray : @@ -24,7 +23,7 @@ external interface RegExpExecArray : val groups: ReadonlyRecord? val indices: RegExpIndicesArray? - - @JsAlias(THIS) - fun asArray(): ReadonlyArray } + +inline fun RegExpExecArray.asArray(): ReadonlyArray = + unsafeCast(this) diff --git a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpIndicesArray.kt b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpIndicesArray.kt index e5c70c9933fe7..dea904cfde1a3 100644 --- a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpIndicesArray.kt +++ b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpIndicesArray.kt @@ -5,14 +5,13 @@ import js.array.ReadonlyArray import js.core.JsString import js.objects.ReadonlyRecord import js.reflect.JsExternalInheritorsOnly -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast @JsExternalInheritorsOnly external interface RegExpIndicesArray : ArrayLike { val groups: ReadonlyRecord? - - @JsAlias(THIS) - fun asArray(): ReadonlyArray } + +inline fun RegExpIndicesArray.asArray(): ReadonlyArray = + unsafeCast(this) diff --git a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpMatchArray.kt b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpMatchArray.kt index 09640bf823af3..afa440ac7aa55 100644 --- a/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpMatchArray.kt +++ b/kotlin-js/src/commonMain/kotlin/js/regexp/RegExpMatchArray.kt @@ -5,8 +5,7 @@ import js.array.ReadonlyArray import js.core.JsString import js.objects.ReadonlyRecord import js.reflect.JsExternalInheritorsOnly -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast @JsExternalInheritorsOnly external interface RegExpMatchArray : @@ -24,7 +23,7 @@ external interface RegExpMatchArray : val groups: ReadonlyRecord? val indices: RegExpIndicesArray? - - @JsAlias(THIS) - fun asArray(): ReadonlyArray } + +inline fun RegExpMatchArray.asArray(): ReadonlyArray = + unsafeCast(this) diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ArithmeticOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ArithmeticOptions.kt index 5f8fb9c4736f7..ab2fb31b8a05d 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ArithmeticOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ArithmeticOptions.kt @@ -16,5 +16,5 @@ external interface ArithmeticOptions { * * The default is `'constrain'`. */ - val overflow: Overflow? + var overflow: Overflow? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/AssignmentOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/AssignmentOptions.kt index d57091ac1d52c..8998aef88f683 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/AssignmentOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/AssignmentOptions.kt @@ -18,5 +18,5 @@ external interface AssignmentOptions { * * The default is `'constrain'`. */ - val overflow: Overflow? + var overflow: Overflow? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/DifferenceOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/DifferenceOptions.kt index 0f13dd79bc983..d5998728faf7a 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/DifferenceOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/DifferenceOptions.kt @@ -14,7 +14,7 @@ external interface DifferenceOptions> { * `since()`, because those methods default behavior is not to round. * However, the same property is required for `round()`. */ - val smallestUnit: SmallestUnit? + var smallestUnit: SmallestUnit? /** * The largest unit to allow in the resulting `Temporal.Duration` object. @@ -32,14 +32,14 @@ external interface DifferenceOptions> { * The default is always `'auto'`, though the meaning of this depends on the * type being used. */ - val largestUnit: LargestUnit? + var largestUnit: LargestUnit? /** * Allows rounding to an integer number of units. For example, to round to * increments of a half hour, use `{ smallestUnit: 'minute', * roundingIncrement: 30 }`. */ - val roundingIncrement: Int? + var roundingIncrement: Int? /** * Controls how rounding is performed: @@ -57,5 +57,5 @@ external interface DifferenceOptions> { * negative infinity which is usually unexpected. For this reason, `trunc` * is recommended for most use cases. */ - val roundingMode: RoundingMode? + var roundingMode: RoundingMode? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationArithmeticOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationArithmeticOptions.kt index a0a17d2818ae7..b311533cdb59e 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationArithmeticOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationArithmeticOptions.kt @@ -29,7 +29,7 @@ external interface DurationArithmeticOptions { * this option is omitted), then the operation will ignore time zone * transitions and all days will be assumed to be 24 hours long. */ - val relativeTo: JsAny? /* + var relativeTo: JsAny? /* | Temporal.ZonedDateTime | Temporal.PlainDateTime | ZonedDateTimeLike diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationLike.kt index e166fbff160ba..3ea92d6403899 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationLike.kt @@ -5,14 +5,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface DurationLike { - val years: Int? - val months: Int? - val weeks: Int? - val days: Int? - val hours: Int? - val minutes: Int? - val seconds: Int? - val milliseconds: Int? - val microseconds: Int? - val nanoseconds: Int? + var years: Int? + var months: Int? + var weeks: Int? + var days: Int? + var hours: Int? + var minutes: Int? + var seconds: Int? + var milliseconds: Int? + var microseconds: Int? + var nanoseconds: Int? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationOptions.kt index 00778f68a19ad..2a609fc96e1be 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/DurationOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/DurationOptions.kt @@ -19,5 +19,5 @@ external interface DurationOptions { * * The default is `'constrain'`. */ - val overflow: String? /* "constrain" | "balance" */ + var overflow: String? /* "constrain" | "balance" */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/InstantToStringOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/InstantToStringOptions.kt index 06cd69a9bd95b..db87eac3fdda8 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/InstantToStringOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/InstantToStringOptions.kt @@ -5,5 +5,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface InstantToStringOptions : ToStringPrecisionOptions { - val timeZone: TimeZone + var timeZone: TimeZone } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/MonthCodeOrMonthAndYear.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/MonthCodeOrMonthAndYear.kt index 189b8d3b85edd..1809eb34c1473 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/MonthCodeOrMonthAndYear.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/MonthCodeOrMonthAndYear.kt @@ -5,8 +5,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MonthCodeOrMonthAndYear : YearOrEraAndEraYear { - val month: Int? + var month: Int? // or (single) - val monthCode: String? + var monthCode: String? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/MonthOrMonthCode.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/MonthOrMonthCode.kt index d3a345d51e820..ef46966fd42d6 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/MonthOrMonthCode.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/MonthOrMonthCode.kt @@ -4,8 +4,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface MonthOrMonthCode { - val month: Int? + var month: Int? // or - val monthCode: String? + var monthCode: String? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/OffsetDisambiguationOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/OffsetDisambiguationOptions.kt index 39490e954d7d4..d0f12eeb07a31 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/OffsetDisambiguationOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/OffsetDisambiguationOptions.kt @@ -36,5 +36,5 @@ external interface OffsetDisambiguationOptions { * be used to choose the correct instant. However, if the offset is used * then the `disambiguation` option will be ignored. */ - val offset: String? /* "use" | "prefer" | "ignore" | "reject" */ + var offset: String? /* "use" | "prefer" | "ignore" | "reject" */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateISOFields.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateISOFields.kt index f9ec4de08c2cd..aac0f13ddd173 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateISOFields.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateISOFields.kt @@ -5,8 +5,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainDateISOFields { - val isoYear: Int - val isoMonth: Int - val isoDay: Int - val calendar: JsAny /* String | CalendarProtocol */ + var isoYear: Int + var isoMonth: Int + var isoDay: Int + var calendar: JsAny /* String | CalendarProtocol */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateLike.kt index ca807e1b6cd3f..210adc9b7302f 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateLike.kt @@ -5,11 +5,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainDateLike { - val era: String? - val eraYear: Int? - val year: Int? - val month: Int? - val monthCode: String? - val day: Int? - val calendar: Calendar? + var era: String? + var eraYear: Int? + var year: Int? + var month: Int? + var monthCode: String? + var day: Int? + var calendar: Calendar? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeISOFields.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeISOFields.kt index 64c783628e179..524206fb663c3 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeISOFields.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeISOFields.kt @@ -5,14 +5,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainDateTimeISOFields { - val isoYear: Int - val isoMonth: Int - val isoDay: Int - val isoHour: Int - val isoMinute: Int - val isoSecond: Int - val isoMillisecond: Int - val isoMicrosecond: Int - val isoNanosecond: Int - val calendar: JsAny /* String | CalendarProtocol */ + var isoYear: Int + var isoMonth: Int + var isoDay: Int + var isoHour: Int + var isoMinute: Int + var isoSecond: Int + var isoMillisecond: Int + var isoMicrosecond: Int + var isoNanosecond: Int + var calendar: JsAny /* String | CalendarProtocol */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeLike.kt index 482468f00ca91..6d43764b00743 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainDateTimeLike.kt @@ -5,17 +5,17 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainDateTimeLike { - val era: String? - val eraYear: Int? - val year: Int? - val month: Int? - val monthCode: String? - val day: Int? - val hour: Int? - val minute: Int? - val second: Int? - val millisecond: Int? - val microsecond: Int? - val nanosecond: Int? - val calendar: Calendar? + var era: String? + var eraYear: Int? + var year: Int? + var month: Int? + var monthCode: String? + var day: Int? + var hour: Int? + var minute: Int? + var second: Int? + var millisecond: Int? + var microsecond: Int? + var nanosecond: Int? + var calendar: Calendar? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDay.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDay.kt index 7e1845e52fd78..24ef2111c1de4 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDay.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDay.kt @@ -19,9 +19,9 @@ external class PlainMonthDay( calendar: Calendar = definedExternally, referenceISOYear: Int = definedExternally, ) : LocalizableDateTime { - val monthCode: String - val day: Int - val calendarId: String + var monthCode: String + var day: Int + var calendarId: String // fun equals(other: PlainMonthDay /* | PlainMonthDayLike | string */ ): Boolean fun with( @@ -33,7 +33,7 @@ external class PlainMonthDay( @JsPlainObject interface ToPlainDateOptions { - val year: Int + var year: Int } fun getISOFields(): PlainDateISOFields diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDayLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDayLike.kt index 0f3964f275a6d..d8cb45c11c2f4 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDayLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainMonthDayLike.kt @@ -5,11 +5,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainMonthDayLike { - val era: String? - val eraYear: Int? - val year: Int? - val month: Int? - val monthCode: String? - val day: Int? - val calendar: Calendar? + var era: String? + var eraYear: Int? + var year: Int? + var month: Int? + var monthCode: String? + var day: Int? + var calendar: Calendar? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainTimeISOFields.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainTimeISOFields.kt index bb60080646813..6eb284045395b 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainTimeISOFields.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainTimeISOFields.kt @@ -4,10 +4,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainTimeISOFields { - val isoHour: Int - val isoMinute: Int - val isoSecond: Int - val isoMillisecond: Int - val isoMicrosecond: Int - val isoNanosecond: Int + var isoHour: Int + var isoMinute: Int + var isoSecond: Int + var isoMillisecond: Int + var isoMicrosecond: Int + var isoNanosecond: Int } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonth.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonth.kt index 6eefe6bc6ec3f..a9d5c31099a50 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonth.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonth.kt @@ -20,16 +20,16 @@ external class PlainYearMonth( referenceISODay: Int = definedExternally, ) : HasArithmeticOperations>, LocalizableDateTime { - val era: String? - val eraYear: Int? - val year: Int - val month: Int - val monthCode: String - val calendarId: String - val daysInMonth: Int - val daysInYear: Int - val monthsInYear: Int - val inLeapYear: Boolean + var era: String? + var eraYear: Int? + var year: Int + var month: Int + var monthCode: String + var calendarId: String + var daysInMonth: Int + var daysInYear: Int + var monthsInYear: Int + var inLeapYear: Boolean // fun equals(other: Temporal.PlainYearMonth | PlainYearMonthLike | String): Boolean; fun with( @@ -41,7 +41,7 @@ external class PlainYearMonth( @JsPlainObject interface ToPlainDateOptions { - val day: Int + var day: Int } fun getISOFields(): PlainDateISOFields diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonthLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonthLike.kt index 1a95ac71e37fa..745ffc189f84c 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonthLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/PlainYearMonthLike.kt @@ -5,10 +5,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface PlainYearMonthLike { - val era: String? - val eraYear: Int? - val year: Int? - val month: Int? - val monthCode: String? - val calendar: Calendar? + var era: String? + var eraYear: Int? + var year: Int? + var month: Int? + var monthCode: String? + var calendar: Calendar? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/RoundTo.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/RoundTo.kt index e7f1107abe692..7fddfd9ab2897 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/RoundTo.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/RoundTo.kt @@ -17,14 +17,14 @@ external interface RoundTo> { * same-named property is optional when passed to `until` or `since` * methods, because those methods do no rounding by default. */ - val smallestUnit: SmallestUnit + var smallestUnit: SmallestUnit /** * Allows rounding to an integer number of units. For example, to round to * increments of a half hour, use `{ smallestUnit: 'minute', * roundingIncrement: 30 }`. */ - val roundingIncrement: Int? + var roundingIncrement: Int? /** * Controls how rounding is performed: @@ -40,5 +40,5 @@ external interface RoundTo> { * negative infinity which is usually unexpected. For this reason, `trunc` * is recommended for most use cases. */ - val roundingMode: RoundingMode? + var roundingMode: RoundingMode? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ShowCalendarOption.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ShowCalendarOption.kt index fcba4d0d0a9d9..46c21c6a94cb7 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ShowCalendarOption.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ShowCalendarOption.kt @@ -4,5 +4,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ShowCalendarOption { - val calendarName: String? /* "auto" | "always" | "never" | "critical" */ + var calendarName: String? /* "auto" | "always" | "never" | "critical" */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ToInstantOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ToInstantOptions.kt index d626984336195..c099ff89bfb88 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ToInstantOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ToInstantOptions.kt @@ -29,5 +29,5 @@ external interface ToInstantOptions { * * The default is `'compatible'`. */ - val disambiguation: Disambiguation? + var disambiguation: Disambiguation? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ToStringPrecisionOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ToStringPrecisionOptions.kt index ee2975cbd825d..fa842c31924d7 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ToStringPrecisionOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ToStringPrecisionOptions.kt @@ -8,8 +8,8 @@ import js.objects.JsPlainObject */ @JsPlainObject external interface ToStringPrecisionOptions { - val fractionalSecondDigits: JsAny? /* "auto" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 */ - val smallestUnit: SmallestUnit /* "minute" | "second" | "millisecond" | "microsecond" | "nanosecond" */>? + var fractionalSecondDigits: JsAny? /* "auto" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 */ + var smallestUnit: SmallestUnit /* "minute" | "second" | "millisecond" | "microsecond" | "nanosecond" */>? /** * Controls how rounding is performed: @@ -25,5 +25,5 @@ external interface ToStringPrecisionOptions { * negative infinity which is usually unexpected. For this reason, `trunc` * is recommended for most use cases. */ - val roundingMode: RoundingMode? + var roundingMode: RoundingMode? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/YearOrEraAndEraYear.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/YearOrEraAndEraYear.kt index d4ec263190ff4..90d04dc268d9e 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/YearOrEraAndEraYear.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/YearOrEraAndEraYear.kt @@ -4,9 +4,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface YearOrEraAndEraYear { - val era: String? - val eraYear: Int? + var era: String? + var eraYear: Int? // or - val year: Int? + var year: Int? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeISOFields.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeISOFields.kt index 1798765458b44..9b8256c3813da 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeISOFields.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeISOFields.kt @@ -5,16 +5,16 @@ import js.objects.JsPlainObject @JsPlainObject external interface ZonedDateTimeISOFields { - val isoYear: Int - val isoMonth: Int - val isoDay: Int - val isoHour: Int - val isoMinute: Int - val isoSecond: Int - val isoMillisecond: Int - val isoMicrosecond: Int - val isoNanosecond: Int - val offset: String - val timeZone: JsAny /* string | TimeZoneProtocol */ - val calendar: JsAny /* string | CalendarProtocol */ + var isoYear: Int + var isoMonth: Int + var isoDay: Int + var isoHour: Int + var isoMinute: Int + var isoSecond: Int + var isoMillisecond: Int + var isoMicrosecond: Int + var isoNanosecond: Int + var offset: String + var timeZone: JsAny /* string | TimeZoneProtocol */ + var calendar: JsAny /* string | CalendarProtocol */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeLike.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeLike.kt index 767efdf435006..a80e0ba2c1f83 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeLike.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeLike.kt @@ -5,19 +5,19 @@ import js.objects.JsPlainObject @JsPlainObject external interface ZonedDateTimeLike { - val era: String? - val eraYear: Int? - val year: Int? - val month: Int? - val monthCode: String? - val day: Int? - val hour: Int? - val minute: Int? - val second: Int? - val millisecond: Int? - val microsecond: Int? - val nanosecond: Int? - val offset: String? - val timeZone: TimeZone? - val calendar: Calendar? + var era: String? + var eraYear: Int? + var year: Int? + var month: Int? + var monthCode: String? + var day: Int? + var hour: Int? + var minute: Int? + var second: Int? + var millisecond: Int? + var microsecond: Int? + var nanosecond: Int? + var offset: String? + var timeZone: TimeZone? + var calendar: Calendar? } diff --git a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeToStringOptions.kt b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeToStringOptions.kt index b400d58d4fd95..76805ef82a851 100644 --- a/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeToStringOptions.kt +++ b/kotlin-js/src/commonMain/kotlin/js/temporal/ZonedDateTimeToStringOptions.kt @@ -5,6 +5,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ZonedDateTimeToStringOptions : CalendarTypeToStringOptions { - val timeZoneName: String? /* "auto" | "never" | "critical" */ - val offset: String? /* "auto" | "never" */ + var timeZoneName: String? /* "auto" | "never" | "critical" */ + var offset: String? /* "auto" | "never" */ } diff --git a/kotlin-js/src/commonMain/kotlin/js/typedarrays/FromBase64Options.kt b/kotlin-js/src/commonMain/kotlin/js/typedarrays/FromBase64Options.kt index b373433c66ee1..9529c72ca807c 100644 --- a/kotlin-js/src/commonMain/kotlin/js/typedarrays/FromBase64Options.kt +++ b/kotlin-js/src/commonMain/kotlin/js/typedarrays/FromBase64Options.kt @@ -4,6 +4,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface FromBase64Options { - val alphabet: Alphabet? - val lastChunkHandling: LastChunkHandling? + var alphabet: Alphabet? + var lastChunkHandling: LastChunkHandling? } diff --git a/kotlin-js/src/commonMain/kotlin/js/typedarrays/SetFromResult.kt b/kotlin-js/src/commonMain/kotlin/js/typedarrays/SetFromResult.kt index ff67efff405c8..9bebac915c787 100644 --- a/kotlin-js/src/commonMain/kotlin/js/typedarrays/SetFromResult.kt +++ b/kotlin-js/src/commonMain/kotlin/js/typedarrays/SetFromResult.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject // TODO: merge with `TextEncoderEncodeIntoResult`? @JsPlainObject external interface SetFromResult { - val read: Int53 - val written: Int53 + var read: Int53 + var written: Int53 } diff --git a/kotlin-js/src/commonMain/kotlin/js/typedarrays/ToBase64Options.kt b/kotlin-js/src/commonMain/kotlin/js/typedarrays/ToBase64Options.kt index cf2ee3f9c1a28..f2ae891f58e8c 100644 --- a/kotlin-js/src/commonMain/kotlin/js/typedarrays/ToBase64Options.kt +++ b/kotlin-js/src/commonMain/kotlin/js/typedarrays/ToBase64Options.kt @@ -4,6 +4,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ToBase64Options { - val alphabet: Alphabet? - val omitPadding: Boolean? + var alphabet: Alphabet? + var omitPadding: Boolean? } diff --git a/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArray.kt b/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArray.kt index 348f75780a7b4..61b0f6ab84b35 100644 --- a/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArray.kt +++ b/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArray.kt @@ -10,11 +10,11 @@ import js.collections.ListLike import js.core.JsAny import js.core.JsInt import js.iterable.JsIterator -import seskar.js.JsSpecialName +import kotlin.js.JsName import kotlin.js.definedExternally // language=javascript -@JsSpecialName("(Object.getPrototypeOf(Uint8Array))") +@JsName("(Object.getPrototypeOf(Uint8Array))") sealed external class TypedArray< S : TypedArray, R : TypedArray, diff --git a/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArrayCompanion.kt b/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArrayCompanion.kt index c2f676c3a5bf2..141cedbac2834 100644 --- a/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArrayCompanion.kt +++ b/kotlin-js/src/commonMain/kotlin/js/typedarrays/TypedArrayCompanion.kt @@ -3,10 +3,10 @@ package js.typedarrays import js.array.ArrayLike import js.buffer.ArrayBuffer import js.core.JsAny -import seskar.js.JsSpecialName +import kotlin.js.JsName // language=javascript -@JsSpecialName("(Object.getPrototypeOf(Uint8Array).constructor)") +@JsName("(Object.getPrototypeOf(Uint8Array).constructor)") sealed external class TypedArrayCompanion, T : JsAny /* Number? */> { val BYTES_PER_ELEMENT: Int diff --git a/kotlin-node/src/commonMain/kotlin/node/events/EventInstance.kt b/kotlin-node/src/commonMain/kotlin/node/events/EventInstance.kt index 983dff0b6d644..5618ff2608bd7 100644 --- a/kotlin-node/src/commonMain/kotlin/node/events/EventInstance.kt +++ b/kotlin-node/src/commonMain/kotlin/node/events/EventInstance.kt @@ -2,6 +2,7 @@ package node.events import js.array.Tuple import js.array.Tuple1 +import js.array.asArray import js.coroutines.internal.internalSubscribeJob import js.function.JsFunction import js.function.invoke diff --git a/kotlin-react-core/src/jsMain/kotlin/react/useTransition.kt b/kotlin-react-core/src/jsMain/kotlin/react/useTransition.kt index ab417e46acbe4..d0a72e4a66417 100644 --- a/kotlin-react-core/src/jsMain/kotlin/react/useTransition.kt +++ b/kotlin-react-core/src/jsMain/kotlin/react/useTransition.kt @@ -1,5 +1,7 @@ package react +import js.array.component1 +import js.array.component2 import js.array.tupleOf import react.internal.isolatedVoidPromise import react.raw.useTransitionRaw diff --git a/kotlin-react-core/src/jsTest/kotlin/react/internal/IsolatedJobTest.kt b/kotlin-react-core/src/jsTest/kotlin/react/internal/IsolatedJobTest.kt index fd9da9fbd95f7..69f068333107d 100644 --- a/kotlin-react-core/src/jsTest/kotlin/react/internal/IsolatedJobTest.kt +++ b/kotlin-react-core/src/jsTest/kotlin/react/internal/IsolatedJobTest.kt @@ -1,10 +1,7 @@ package react.internal import kotlinx.coroutines.test.runTest -import web.events.Event -import web.events.EventInstance -import web.events.EventTarget -import web.events.subscribe +import web.events.* import web.window.window import kotlin.test.Test import kotlin.test.assertEquals diff --git a/kotlin-react-dom/src/jsMain/kotlin/react/dom/server/RenderToReadableStreamOptions.kt b/kotlin-react-dom/src/jsMain/kotlin/react/dom/server/RenderToReadableStreamOptions.kt index 0cfff88236a02..6e9a91661bb40 100644 --- a/kotlin-react-dom/src/jsMain/kotlin/react/dom/server/RenderToReadableStreamOptions.kt +++ b/kotlin-react-dom/src/jsMain/kotlin/react/dom/server/RenderToReadableStreamOptions.kt @@ -17,6 +17,6 @@ external interface RenderToReadableStreamOptions : val bootstrapScripts: ReadonlyArray? val bootstrapModules: ReadonlyArray? val progressiveChunkSize: Int? - override val signal: AbortSignal? + override var signal: AbortSignal? val onError: ErrorHandler? } diff --git a/kotlin-react-use/src/jsMain/kotlin/react/use/useUpdate.kt b/kotlin-react-use/src/jsMain/kotlin/react/use/useUpdate.kt index dd33645a12f92..41992bceef856 100644 --- a/kotlin-react-use/src/jsMain/kotlin/react/use/useUpdate.kt +++ b/kotlin-react-use/src/jsMain/kotlin/react/use/useUpdate.kt @@ -1,5 +1,7 @@ package react.use +import js.array.component1 +import js.array.component2 import js.core.Void import js.reflect.unsafeCast import react.useReducer diff --git a/kotlin-styled-next/src/jsMain/kotlin/styled/CssAccess.kt b/kotlin-styled-next/src/jsMain/kotlin/styled/CssAccess.kt index 8fb7430f9e31c..ff21ad2185083 100644 --- a/kotlin-styled-next/src/jsMain/kotlin/styled/CssAccess.kt +++ b/kotlin-styled-next/src/jsMain/kotlin/styled/CssAccess.kt @@ -11,6 +11,7 @@ import web.dom.document import web.html.HTML import web.location.location import web.storage.localStorage +import web.uievents.CLICK import web.uievents.PointerEvent import web.uievents.PointerEventInit import web.url.URL diff --git a/kotlin-web/src/commonMain/generated/web/abort/Abortable.kt b/kotlin-web/src/commonMain/generated/web/abort/Abortable.kt index f9b02802c51b9..7667ff0c3fd5d 100644 --- a/kotlin-web/src/commonMain/generated/web/abort/Abortable.kt +++ b/kotlin-web/src/commonMain/generated/web/abort/Abortable.kt @@ -9,5 +9,5 @@ external interface Abortable { /** * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. */ - val signal: AbortSignal? + var signal: AbortSignal? } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/GlobalDescriptor.kt b/kotlin-web/src/commonMain/generated/web/assembly/GlobalDescriptor.kt index 26526f749c60b..72b98087bd669 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/GlobalDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/GlobalDescriptor.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GlobalDescriptor { - val mutable: Boolean? - val value: ValueType + var mutable: Boolean? + var value: ValueType } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/MemoryDescriptor.kt b/kotlin-web/src/commonMain/generated/web/assembly/MemoryDescriptor.kt index be86599170d3a..271c1d98024dc 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/MemoryDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/MemoryDescriptor.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface MemoryDescriptor { - val initial: Int - val maximum: Int? - val shared: Boolean? + var initial: Int + var maximum: Int? + var shared: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/ModuleExportDescriptor.kt b/kotlin-web/src/commonMain/generated/web/assembly/ModuleExportDescriptor.kt index 588ecd5af584f..2fb4acae70d98 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/ModuleExportDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/ModuleExportDescriptor.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ModuleExportDescriptor { - val kind: ImportExportKind - val name: String + var kind: ImportExportKind + var name: String } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/ModuleImportDescriptor.kt b/kotlin-web/src/commonMain/generated/web/assembly/ModuleImportDescriptor.kt index cd09147c09011..985c215d44d07 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/ModuleImportDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/ModuleImportDescriptor.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface ModuleImportDescriptor { - val kind: ImportExportKind - val module: String - val name: String + var kind: ImportExportKind + var module: String + var name: String } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/TableDescriptor.kt b/kotlin-web/src/commonMain/generated/web/assembly/TableDescriptor.kt index 45180aefd421d..f77f5f0a85430 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/TableDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/TableDescriptor.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface TableDescriptor { - val element: TableKind - val initial: Int - val maximum: Int? + var element: TableKind + var initial: Int + var maximum: Int? } diff --git a/kotlin-web/src/commonMain/generated/web/assembly/WebAssemblyInstantiatedSource.kt b/kotlin-web/src/commonMain/generated/web/assembly/WebAssemblyInstantiatedSource.kt index ded515a9c2710..226010cf687cc 100644 --- a/kotlin-web/src/commonMain/generated/web/assembly/WebAssemblyInstantiatedSource.kt +++ b/kotlin-web/src/commonMain/generated/web/assembly/WebAssemblyInstantiatedSource.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface WebAssemblyInstantiatedSource { - val instance: Instance - val module: Module + var instance: Instance + var module: Module } diff --git a/kotlin-web/src/commonMain/generated/web/blob/BlobPropertyBag.kt b/kotlin-web/src/commonMain/generated/web/blob/BlobPropertyBag.kt index bc64f5dff581a..f8027d9c924ac 100644 --- a/kotlin-web/src/commonMain/generated/web/blob/BlobPropertyBag.kt +++ b/kotlin-web/src/commonMain/generated/web/blob/BlobPropertyBag.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface BlobPropertyBag { - val endings: EndingType? - val type: String? + var endings: EndingType? + var type: String? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesCbcParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesCbcParams.kt index 53bb339955afb..af8c902a9a9a2 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesCbcParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesCbcParams.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesCbcParams : Algorithm { - val iv: BufferSource + var iv: BufferSource } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesCtrParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesCtrParams.kt index 74ae4304fe1f3..167ff4bb0f71a 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesCtrParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesCtrParams.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesCtrParams : Algorithm { - val counter: BufferSource - val length: Short /* unsigned byte */ + var counter: BufferSource + var length: Short /* unsigned byte */ } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesDerivedKeyParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesDerivedKeyParams.kt index 0cc15925fc6be..4fba2a958c6bf 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesDerivedKeyParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesDerivedKeyParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesDerivedKeyParams : Algorithm { - val length: Short + var length: Short } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesGcmParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesGcmParams.kt index 8d520d3731dde..86dadef80a987 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesGcmParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesGcmParams.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesGcmParams : Algorithm { - val additionalData: BufferSource? - val iv: BufferSource - val tagLength: Short /* unsigned byte */? + var additionalData: BufferSource? + var iv: BufferSource + var tagLength: Short /* unsigned byte */? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesKeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesKeyAlgorithm.kt index 6af09bb65a11d..947104ce2f88d 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesKeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesKeyAlgorithm.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesKeyAlgorithm : KeyAlgorithm { - val length: Short + var length: Short } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/AesKeyGenParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/AesKeyGenParams.kt index b30067356c910..b319c9e355983 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/AesKeyGenParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/AesKeyGenParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface AesKeyGenParams : Algorithm { - val length: Short + var length: Short } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/Algorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/Algorithm.kt index 96c8a6cbbac7c..a90c4cbf7f0fe 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/Algorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/Algorithm.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface Algorithm { - val name: String + var name: String } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/CryptoKeyPair.kt b/kotlin-web/src/commonMain/generated/web/crypto/CryptoKeyPair.kt index c8426987647be..f918395dc4cec 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/CryptoKeyPair.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/CryptoKeyPair.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface CryptoKeyPair { - val privateKey: CryptoKey - val publicKey: CryptoKey + var privateKey: CryptoKey + var publicKey: CryptoKey } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyAlgorithm.kt index c31a8b6a36692..afe23347de904 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyAlgorithm.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EcKeyAlgorithm : KeyAlgorithm { - val namedCurve: NamedCurve + var namedCurve: NamedCurve } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyGenParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyGenParams.kt index d44122d447aba..128cbd7e5bfa8 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyGenParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyGenParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EcKeyGenParams : Algorithm { - val namedCurve: NamedCurve + var namedCurve: NamedCurve } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyImportParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyImportParams.kt index 439c528e0efbe..f5a8eff6bed07 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/EcKeyImportParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/EcKeyImportParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EcKeyImportParams : Algorithm { - val namedCurve: NamedCurve + var namedCurve: NamedCurve } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/EcdhKeyDeriveParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/EcdhKeyDeriveParams.kt index e23c677b408e4..558d922d7c91f 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/EcdhKeyDeriveParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/EcdhKeyDeriveParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EcdhKeyDeriveParams : Algorithm { - val public: CryptoKey + var public: CryptoKey } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/EcdsaParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/EcdsaParams.kt index a1cf30b3453b0..3b7dd5de03e3b 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/EcdsaParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/EcdsaParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EcdsaParams : Algorithm { - val hash: HashAlgorithmIdentifier + var hash: HashAlgorithmIdentifier } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/HkdfParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/HkdfParams.kt index 73e0933916bae..652de143908c1 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/HkdfParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/HkdfParams.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface HkdfParams : Algorithm { - val hash: HashAlgorithmIdentifier - val info: BufferSource - val salt: BufferSource + var hash: HashAlgorithmIdentifier + var info: BufferSource + var salt: BufferSource } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/HmacImportParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/HmacImportParams.kt index fafc92bbfd352..3e8717b136d98 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/HmacImportParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/HmacImportParams.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface HmacImportParams : Algorithm { - val hash: HashAlgorithmIdentifier - val length: Int? + var hash: HashAlgorithmIdentifier + var length: Int? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyAlgorithm.kt index a5f03b2cca114..e88169023a17f 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyAlgorithm.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface HmacKeyAlgorithm : KeyAlgorithm { - val hash: KeyAlgorithm - val length: Int + var hash: KeyAlgorithm + var length: Int } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyGenParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyGenParams.kt index 43b151639dd28..82a281fd75c70 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyGenParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/HmacKeyGenParams.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface HmacKeyGenParams : Algorithm { - val hash: HashAlgorithmIdentifier - val length: Int? + var hash: HashAlgorithmIdentifier + var length: Int? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/JsonWebKey.kt b/kotlin-web/src/commonMain/generated/web/crypto/JsonWebKey.kt index 00744346e3e55..258bda526f20b 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/JsonWebKey.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/JsonWebKey.kt @@ -8,22 +8,22 @@ import js.objects.JsPlainObject @JsPlainObject external interface JsonWebKey { - val alg: String? - val crv: String? - val d: String? - val dp: String? - val dq: String? - val e: String? - val ext: Boolean? - val k: String? - val key_ops: ReadonlyArray? - val kty: String? - val n: String? - val oth: ReadonlyArray? - val p: String? - val q: String? - val qi: String? - val use: String? - val x: String? - val y: String? + var alg: String? + var crv: String? + var d: String? + var dp: String? + var dq: String? + var e: String? + var ext: Boolean? + var k: String? + var key_ops: ReadonlyArray? + var kty: String? + var n: String? + var oth: ReadonlyArray? + var p: String? + var q: String? + var qi: String? + var use: String? + var x: String? + var y: String? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/KeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/KeyAlgorithm.kt index 76115ce15100e..47fc881037e6f 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/KeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/KeyAlgorithm.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface KeyAlgorithm { - val name: String + var name: String } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/Pbkdf2Params.kt b/kotlin-web/src/commonMain/generated/web/crypto/Pbkdf2Params.kt index 8d44b0c1b746c..ada20761a0655 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/Pbkdf2Params.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/Pbkdf2Params.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface Pbkdf2Params : Algorithm { - val hash: HashAlgorithmIdentifier - val iterations: Int - val salt: BufferSource + var hash: HashAlgorithmIdentifier + var iterations: Int + var salt: BufferSource } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedImportParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedImportParams.kt index fe0166a173df2..cca12d2f02c5c 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedImportParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedImportParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaHashedImportParams : Algorithm { - val hash: HashAlgorithmIdentifier + var hash: HashAlgorithmIdentifier } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyAlgorithm.kt index 3e1e07ab27051..f9b354799fe5d 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyAlgorithm.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaHashedKeyAlgorithm : RsaKeyAlgorithm { - val hash: KeyAlgorithm + var hash: KeyAlgorithm } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyGenParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyGenParams.kt index e1517e71c140d..90b320b16bebe 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyGenParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaHashedKeyGenParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaHashedKeyGenParams : RsaKeyGenParams { - val hash: HashAlgorithmIdentifier + var hash: HashAlgorithmIdentifier } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyAlgorithm.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyAlgorithm.kt index 803cf9ac98818..00a1a9126e1f5 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyAlgorithm.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyAlgorithm.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaKeyAlgorithm : KeyAlgorithm { - val modulusLength: Int - val publicExponent: BigInteger + var modulusLength: Int + var publicExponent: BigInteger } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyGenParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyGenParams.kt index b62b785f1e732..2a7ed2ec6c8e0 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyGenParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaKeyGenParams.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaKeyGenParams : Algorithm { - val modulusLength: Int - val publicExponent: BigInteger + var modulusLength: Int + var publicExponent: BigInteger } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaOaepParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaOaepParams.kt index c9e7735020382..9c7dfdb4607af 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaOaepParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaOaepParams.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaOaepParams : Algorithm { - val label: BufferSource? + var label: BufferSource? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaOtherPrimesInfo.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaOtherPrimesInfo.kt index cad3425af9151..7326a2cdf67f8 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaOtherPrimesInfo.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaOtherPrimesInfo.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaOtherPrimesInfo { - val d: String? - val r: String? - val t: String? + var d: String? + var r: String? + var t: String? } diff --git a/kotlin-web/src/commonMain/generated/web/crypto/RsaPssParams.kt b/kotlin-web/src/commonMain/generated/web/crypto/RsaPssParams.kt index 886c99b79adde..6e6a657e021a6 100644 --- a/kotlin-web/src/commonMain/generated/web/crypto/RsaPssParams.kt +++ b/kotlin-web/src/commonMain/generated/web/crypto/RsaPssParams.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface RsaPssParams : Algorithm { - val saltLength: Int + var saltLength: Int } diff --git a/kotlin-web/src/commonMain/generated/web/encoding/TextDecodeOptions.kt b/kotlin-web/src/commonMain/generated/web/encoding/TextDecodeOptions.kt index 555a9d10a7d9f..ef153528627cb 100644 --- a/kotlin-web/src/commonMain/generated/web/encoding/TextDecodeOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/encoding/TextDecodeOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface TextDecodeOptions { - val stream: Boolean? + var stream: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/encoding/TextDecoderOptions.kt b/kotlin-web/src/commonMain/generated/web/encoding/TextDecoderOptions.kt index fa132d968ae05..5e969a65bf9a0 100644 --- a/kotlin-web/src/commonMain/generated/web/encoding/TextDecoderOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/encoding/TextDecoderOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface TextDecoderOptions { - val fatal: Boolean? - val ignoreBOM: Boolean? + var fatal: Boolean? + var ignoreBOM: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/encoding/TextEncoderEncodeIntoResult.kt b/kotlin-web/src/commonMain/generated/web/encoding/TextEncoderEncodeIntoResult.kt index 00fe273479d5b..12e9c362e1540 100644 --- a/kotlin-web/src/commonMain/generated/web/encoding/TextEncoderEncodeIntoResult.kt +++ b/kotlin-web/src/commonMain/generated/web/encoding/TextEncoderEncodeIntoResult.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface TextEncoderEncodeIntoResult { - val read: UInt53 - val written: UInt53 + var read: UInt53 + var written: UInt53 } diff --git a/kotlin-web/src/commonMain/generated/web/events/AddEventListenerOptions.kt b/kotlin-web/src/commonMain/generated/web/events/AddEventListenerOptions.kt index 21234c3e7c588..287c64fd627dc 100644 --- a/kotlin-web/src/commonMain/generated/web/events/AddEventListenerOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/events/AddEventListenerOptions.kt @@ -10,7 +10,7 @@ import web.abort.Abortable external interface AddEventListenerOptions : EventListenerOptions, Abortable { - val once: Boolean? - val passive: Boolean? - override val signal: AbortSignal? + var once: Boolean? + var passive: Boolean? + override var signal: AbortSignal? } diff --git a/kotlin-web/src/commonMain/generated/web/events/CustomEvent.kt b/kotlin-web/src/commonMain/generated/web/events/CustomEvent.kt index 89d73930b2ff1..46b1e374d8431 100644 --- a/kotlin-web/src/commonMain/generated/web/events/CustomEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/events/CustomEvent.kt @@ -3,8 +3,7 @@ package web.events import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS +import js.reflect.unsafeCast import kotlin.js.definedExternally /** @@ -22,7 +21,7 @@ open external class CustomEvent( * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ val detail: D - - @JsAlias(THIS) - override fun asInit(): CustomEventInit } + +inline fun CustomEvent.asInit(): CustomEventInit = + unsafeCast(this) diff --git a/kotlin-web/src/commonMain/generated/web/events/CustomEventInit.kt b/kotlin-web/src/commonMain/generated/web/events/CustomEventInit.kt index 8d9310eb6af6a..9c2e40a5a7a5c 100644 --- a/kotlin-web/src/commonMain/generated/web/events/CustomEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/events/CustomEventInit.kt @@ -6,7 +6,7 @@ import js.core.JsAny import js.objects.JsPlainObject @JsPlainObject -external interface CustomEventInit : +external interface CustomEventInit : EventInit { - val detail: D? + var detail: D? } diff --git a/kotlin-web/src/commonMain/generated/web/events/Event.kt b/kotlin-web/src/commonMain/generated/web/events/Event.kt index d49876a928e5b..d2b4ff383c261 100644 --- a/kotlin-web/src/commonMain/generated/web/events/Event.kt +++ b/kotlin-web/src/commonMain/generated/web/events/Event.kt @@ -3,9 +3,7 @@ package web.events import js.array.ReadonlyArray -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.time.DOMHighResTimeStamp import kotlin.js.definedExternally @@ -118,319 +116,319 @@ open external class Event( val AT_TARGET: EventPhase val BUBBLING_PHASE: EventPhase - @JsAlias(THIS) - open fun asInit(): EventInit - companion object { val NONE: EventPhase val CAPTURING_PHASE: EventPhase val AT_TARGET: EventPhase val BUBBLING_PHASE: EventPhase + } +} - @JsValue("DOMContentLoaded") - val DOM_CONTENT_LOADED: EventType +inline fun Event.asInit(): EventInit = + unsafeCast(this) - @JsValue("abort") - val ABORT: EventType +inline val Event.Companion.DOM_CONTENT_LOADED: EventType + get() = EventType("DOMContentLoaded") - @JsValue("addsourcebuffer") - val ADD_SOURCE_BUFFER: EventType +inline val Event.Companion.ABORT: EventType + get() = EventType("abort") - @JsValue("afterprint") - val AFTER_PRINT: EventType +inline val Event.Companion.ADD_SOURCE_BUFFER: EventType + get() = EventType("addsourcebuffer") - @JsValue("beforematch") - val BEFORE_MATCH: EventType +inline val Event.Companion.AFTER_PRINT: EventType + get() = EventType("afterprint") - @JsValue("beforeprint") - val BEFORE_PRINT: EventType +inline val Event.Companion.BEFORE_MATCH: EventType + get() = EventType("beforematch") - @JsValue("bufferedamountlow") - val BUFFERED_AMOUNT_LOW: EventType +inline val Event.Companion.BEFORE_PRINT: EventType + get() = EventType("beforeprint") - @JsValue("cancel") - val CANCEL: EventType +inline val Event.Companion.BUFFERED_AMOUNT_LOW: EventType + get() = EventType("bufferedamountlow") - @JsValue("canplay") - val CAN_PLAY: EventType +inline val Event.Companion.CANCEL: EventType + get() = EventType("cancel") - @JsValue("canplaythrough") - val CAN_PLAY_THROUGH: EventType +inline val Event.Companion.CAN_PLAY: EventType + get() = EventType("canplay") - @JsValue("change") - val CHANGE: EventType +inline val Event.Companion.CAN_PLAY_THROUGH: EventType + get() = EventType("canplaythrough") - @JsValue("click") - val CLICK: EventType +inline val Event.Companion.CHANGE: EventType + get() = EventType("change") - @JsValue("close") - val CLOSE: EventType +inline val Event.Companion.CLICK: EventType + get() = EventType("click") - @JsValue("closing") - val CLOSING: EventType +inline val Event.Companion.CLOSE: EventType + get() = EventType("close") - @JsValue("complete") - val COMPLETE: EventType +inline val Event.Companion.CLOSING: EventType + get() = EventType("closing") - @JsValue("connect") - val CONNECT: EventType +inline val Event.Companion.COMPLETE: EventType + get() = EventType("complete") - @JsValue("connecting") - val CONNECTING: EventType +inline val Event.Companion.CONNECT: EventType + get() = EventType("connect") - @JsValue("connectionstatechange") - val CONNECTION_STATE_CHANGE: EventType +inline val Event.Companion.CONNECTING: EventType + get() = EventType("connecting") - @JsValue("contextlost") - val CONTEXT_LOST: EventType +inline val Event.Companion.CONNECTION_STATE_CHANGE: EventType + get() = EventType("connectionstatechange") - @JsValue("contextrestored") - val CONTEXT_RESTORED: EventType +inline val Event.Companion.CONTEXT_LOST: EventType + get() = EventType("contextlost") - @JsValue("controllerchange") - val CONTROLLER_CHANGE: EventType +inline val Event.Companion.CONTEXT_RESTORED: EventType + get() = EventType("contextrestored") - @JsValue("cuechange") - val CUE_CHANGE: EventType +inline val Event.Companion.CONTROLLER_CHANGE: EventType + get() = EventType("controllerchange") - @JsValue("dequeue") - val DEQUEUE: EventType +inline val Event.Companion.CUE_CHANGE: EventType + get() = EventType("cuechange") - @JsValue("devicechange") - val DEVICE_CHANGE: EventType +inline val Event.Companion.DEQUEUE: EventType + get() = EventType("dequeue") - @JsValue("disconnect") - val DISCONNECT: EventType +inline val Event.Companion.DEVICE_CHANGE: EventType + get() = EventType("devicechange") - @JsValue("dispose") - val DISPOSE: EventType +inline val Event.Companion.DISCONNECT: EventType + get() = EventType("disconnect") - @JsValue("durationchange") - val DURATION_CHANGE: EventType +inline val Event.Companion.DISPOSE: EventType + get() = EventType("dispose") - @JsValue("emptied") - val EMPTIED: EventType +inline val Event.Companion.DURATION_CHANGE: EventType + get() = EventType("durationchange") - @JsValue("ended") - val ENDED: EventType +inline val Event.Companion.EMPTIED: EventType + get() = EventType("emptied") - @JsValue("enter") - val ENTER: EventType +inline val Event.Companion.ENDED: EventType + get() = EventType("ended") - @JsValue("error") - val ERROR: EventType +inline val Event.Companion.ENTER: EventType + get() = EventType("enter") - @JsValue("exit") - val EXIT: EventType +inline val Event.Companion.ERROR: EventType + get() = EventType("error") - @JsValue("fullscreenchange") - val FULLSCREEN_CHANGE: EventType +inline val Event.Companion.EXIT: EventType + get() = EventType("exit") - @JsValue("fullscreenerror") - val FULLSCREEN_ERROR: EventType +inline val Event.Companion.FULLSCREEN_CHANGE: EventType + get() = EventType("fullscreenchange") - @JsValue("gatheringstatechange") - val GATHERING_STATE_CHANGE: EventType +inline val Event.Companion.FULLSCREEN_ERROR: EventType + get() = EventType("fullscreenerror") - @JsValue("iceconnectionstatechange") - val ICE_CONNECTION_STATE_CHANGE: EventType +inline val Event.Companion.GATHERING_STATE_CHANGE: EventType + get() = EventType("gatheringstatechange") - @JsValue("icegatheringstatechange") - val ICE_GATHERING_STATE_CHANGE: EventType +inline val Event.Companion.ICE_CONNECTION_STATE_CHANGE: EventType + get() = EventType("iceconnectionstatechange") - @JsValue("input") - val INPUT: EventType +inline val Event.Companion.ICE_GATHERING_STATE_CHANGE: EventType + get() = EventType("icegatheringstatechange") - @JsValue("invalid") - val INVALID: EventType +inline val Event.Companion.INPUT: EventType + get() = EventType("input") - @JsValue("keystatuseschange") - val KEY_STATUSES_CHANGE: EventType +inline val Event.Companion.INVALID: EventType + get() = EventType("invalid") - @JsValue("languagechange") - val LANGUAGE_CHANGE: EventType +inline val Event.Companion.KEY_STATUSES_CHANGE: EventType + get() = EventType("keystatuseschange") - @JsValue("load") - val LOAD: EventType +inline val Event.Companion.LANGUAGE_CHANGE: EventType + get() = EventType("languagechange") - @JsValue("loadeddata") - val LOADED_DATA: EventType +inline val Event.Companion.LOAD: EventType + get() = EventType("load") - @JsValue("loadedmetadata") - val LOADED_METADATA: EventType +inline val Event.Companion.LOADED_DATA: EventType + get() = EventType("loadeddata") - @JsValue("loadstart") - val LOAD_START: EventType +inline val Event.Companion.LOADED_METADATA: EventType + get() = EventType("loadedmetadata") - @JsValue("mute") - val MUTE: EventType +inline val Event.Companion.LOAD_START: EventType + get() = EventType("loadstart") - @JsValue("negotiationneeded") - val NEGOTIATION_NEEDED: EventType +inline val Event.Companion.MUTE: EventType + get() = EventType("mute") - @JsValue("offline") - val OFFLINE: EventType +inline val Event.Companion.NEGOTIATION_NEEDED: EventType + get() = EventType("negotiationneeded") - @JsValue("online") - val ONLINE: EventType +inline val Event.Companion.OFFLINE: EventType + get() = EventType("offline") - @JsValue("open") - val OPEN: EventType +inline val Event.Companion.ONLINE: EventType + get() = EventType("online") - @JsValue("pause") - val PAUSE: EventType +inline val Event.Companion.OPEN: EventType + get() = EventType("open") - @JsValue("play") - val PLAY: EventType +inline val Event.Companion.PAUSE: EventType + get() = EventType("pause") - @JsValue("playing") - val PLAYING: EventType +inline val Event.Companion.PLAY: EventType + get() = EventType("play") - @JsValue("pointerlockchange") - val POINTER_LOCK_CHANGE: EventType +inline val Event.Companion.PLAYING: EventType + get() = EventType("playing") - @JsValue("pointerlockerror") - val POINTER_LOCK_ERROR: EventType +inline val Event.Companion.POINTER_LOCK_CHANGE: EventType + get() = EventType("pointerlockchange") - @JsValue("pointerrawupdate") - val POINTER_RAW_UPDATE: EventType +inline val Event.Companion.POINTER_LOCK_ERROR: EventType + get() = EventType("pointerlockerror") - @JsValue("progress") - val PROGRESS: EventType +inline val Event.Companion.POINTER_RAW_UPDATE: EventType + get() = EventType("pointerrawupdate") - @JsValue("ratechange") - val RATE_CHANGE: EventType +inline val Event.Companion.PROGRESS: EventType + get() = EventType("progress") - @JsValue("readystatechange") - val READY_STATE_CHANGE: EventType +inline val Event.Companion.RATE_CHANGE: EventType + get() = EventType("ratechange") - @JsValue("release") - val RELEASE: EventType +inline val Event.Companion.READY_STATE_CHANGE: EventType + get() = EventType("readystatechange") - @JsValue("removesourcebuffer") - val REMOVE_SOURCE_BUFFER: EventType +inline val Event.Companion.RELEASE: EventType + get() = EventType("release") - @JsValue("reset") - val RESET: EventType +inline val Event.Companion.REMOVE_SOURCE_BUFFER: EventType + get() = EventType("removesourcebuffer") - @JsValue("resize") - val RESIZE: EventType +inline val Event.Companion.RESET: EventType + get() = EventType("reset") - @JsValue("resourcetimingbufferfull") - val RESOURCE_TIMING_BUFFER_FULL: EventType +inline val Event.Companion.RESIZE: EventType + get() = EventType("resize") - @JsValue("resume") - val RESUME: EventType +inline val Event.Companion.RESOURCE_TIMING_BUFFER_FULL: EventType + get() = EventType("resourcetimingbufferfull") - @JsValue("scroll") - val SCROLL: EventType +inline val Event.Companion.RESUME: EventType + get() = EventType("resume") - @JsValue("scrollend") - val SCROLL_END: EventType +inline val Event.Companion.SCROLL: EventType + get() = EventType("scroll") - @JsValue("seeked") - val SEEKED: EventType +inline val Event.Companion.SCROLL_END: EventType + get() = EventType("scrollend") - @JsValue("seeking") - val SEEKING: EventType +inline val Event.Companion.SEEKED: EventType + get() = EventType("seeked") - @JsValue("select") - val SELECT: EventType +inline val Event.Companion.SEEKING: EventType + get() = EventType("seeking") - @JsValue("selectedcandidatepairchange") - val SELECTED_CANDIDATE_PAIR_CHANGE: EventType +inline val Event.Companion.SELECT: EventType + get() = EventType("select") - @JsValue("selectionchange") - val SELECTION_CHANGE: EventType +inline val Event.Companion.SELECTED_CANDIDATE_PAIR_CHANGE: EventType + get() = EventType("selectedcandidatepairchange") - @JsValue("selectstart") - val SELECT_START: EventType +inline val Event.Companion.SELECTION_CHANGE: EventType + get() = EventType("selectionchange") - @JsValue("show") - val SHOW: EventType +inline val Event.Companion.SELECT_START: EventType + get() = EventType("selectstart") - @JsValue("signalingstatechange") - val SIGNALING_STATE_CHANGE: EventType +inline val Event.Companion.SHOW: EventType + get() = EventType("show") - @JsValue("slotchange") - val SLOT_CHANGE: EventType +inline val Event.Companion.SIGNALING_STATE_CHANGE: EventType + get() = EventType("signalingstatechange") - @JsValue("sourceclose") - val SOURCE_CLOSE: EventType +inline val Event.Companion.SLOT_CHANGE: EventType + get() = EventType("slotchange") - @JsValue("sourceended") - val SOURCE_ENDED: EventType +inline val Event.Companion.SOURCE_CLOSE: EventType + get() = EventType("sourceclose") - @JsValue("sourceopen") - val SOURCE_OPEN: EventType +inline val Event.Companion.SOURCE_ENDED: EventType + get() = EventType("sourceended") - @JsValue("stalled") - val STALLED: EventType +inline val Event.Companion.SOURCE_OPEN: EventType + get() = EventType("sourceopen") - @JsValue("start") - val START: EventType +inline val Event.Companion.STALLED: EventType + get() = EventType("stalled") - @JsValue("statechange") - val STATE_CHANGE: EventType +inline val Event.Companion.START: EventType + get() = EventType("start") - @JsValue("stop") - val STOP: EventType +inline val Event.Companion.STATE_CHANGE: EventType + get() = EventType("statechange") - @JsValue("success") - val SUCCESS: EventType +inline val Event.Companion.STOP: EventType + get() = EventType("stop") - @JsValue("suspend") - val SUSPEND: EventType +inline val Event.Companion.SUCCESS: EventType + get() = EventType("success") - @JsValue("timeupdate") - val TIME_UPDATE: EventType +inline val Event.Companion.SUSPEND: EventType + get() = EventType("suspend") - @JsValue("unload") - val UNLOAD: EventType +inline val Event.Companion.TIME_UPDATE: EventType + get() = EventType("timeupdate") - @JsValue("unmute") - val UNMUTE: EventType +inline val Event.Companion.UNLOAD: EventType + get() = EventType("unload") - @JsValue("update") - val UPDATE: EventType +inline val Event.Companion.UNMUTE: EventType + get() = EventType("unmute") - @JsValue("updateend") - val UPDATE_END: EventType +inline val Event.Companion.UPDATE: EventType + get() = EventType("update") - @JsValue("updatefound") - val UPDATE_FOUND: EventType +inline val Event.Companion.UPDATE_END: EventType + get() = EventType("updateend") - @JsValue("updatestart") - val UPDATE_START: EventType +inline val Event.Companion.UPDATE_FOUND: EventType + get() = EventType("updatefound") - @JsValue("visibilitychange") - val VISIBILITY_CHANGE: EventType +inline val Event.Companion.UPDATE_START: EventType + get() = EventType("updatestart") - @JsValue("voiceschanged") - val VOICES_CHANGED: EventType +inline val Event.Companion.VISIBILITY_CHANGE: EventType + get() = EventType("visibilitychange") - @JsValue("volumechange") - val VOLUME_CHANGE: EventType +inline val Event.Companion.VOICES_CHANGED: EventType + get() = EventType("voiceschanged") - @JsValue("waiting") - val WAITING: EventType +inline val Event.Companion.VOLUME_CHANGE: EventType + get() = EventType("volumechange") - @JsValue("waitingforkey") - val WAITING_FOR_KEY: EventType +inline val Event.Companion.WAITING: EventType + get() = EventType("waiting") - @JsValue("webkitanimationend") - val WEBKIT_ANIMATION_END: EventType +inline val Event.Companion.WAITING_FOR_KEY: EventType + get() = EventType("waitingforkey") - @JsValue("webkitanimationiteration") - val WEBKIT_ANIMATION_ITERATION: EventType +inline val Event.Companion.WEBKIT_ANIMATION_END: EventType + get() = EventType("webkitanimationend") - @JsValue("webkitanimationstart") - val WEBKIT_ANIMATION_START: EventType +inline val Event.Companion.WEBKIT_ANIMATION_ITERATION: EventType + get() = EventType("webkitanimationiteration") - @JsValue("webkitfullscreenchange") - val WEBKIT_FULLSCREEN_CHANGE: EventType +inline val Event.Companion.WEBKIT_ANIMATION_START: EventType + get() = EventType("webkitanimationstart") - @JsValue("webkittransitionend") - val WEBKIT_TRANSITION_END: EventType - } -} +inline val Event.Companion.WEBKIT_FULLSCREEN_CHANGE: EventType + get() = EventType("webkitfullscreenchange") + +inline val Event.Companion.WEBKIT_TRANSITION_END: EventType + get() = EventType("webkittransitionend") diff --git a/kotlin-web/src/commonMain/generated/web/events/EventInit.kt b/kotlin-web/src/commonMain/generated/web/events/EventInit.kt index e4e3f1b7b2988..1e9e9a9cc2b89 100644 --- a/kotlin-web/src/commonMain/generated/web/events/EventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/events/EventInit.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface EventInit { - val bubbles: Boolean? - val cancelable: Boolean? - val composed: Boolean? + var bubbles: Boolean? + var cancelable: Boolean? + var composed: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/events/EventInstance.kt b/kotlin-web/src/commonMain/generated/web/events/EventInstance.kt index 5098400d6ccd1..6b812eb0443b1 100644 --- a/kotlin-web/src/commonMain/generated/web/events/EventInstance.kt +++ b/kotlin-web/src/commonMain/generated/web/events/EventInstance.kt @@ -8,12 +8,12 @@ package web.events import js.coroutines.internal.internalSubscribeJob import js.iterable.SuspendableIterator +import js.objects.unsafeJso import kotlinx.coroutines.* import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.channels.ReceiveChannel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow -import web.events.internal.createAddEventListenerOptions import kotlin.coroutines.resume import kotlin.js.JsName import kotlin.js.undefined @@ -93,7 +93,7 @@ suspend fun EventInstance val unsubscribe = addHandler( handler = continuation::resume, - options = createAddEventListenerOptions(once = true), + options = unsafeJso { once = true }, ) continuation.invokeOnCancellation { diff --git a/kotlin-web/src/commonMain/generated/web/events/EventListenerOptions.kt b/kotlin-web/src/commonMain/generated/web/events/EventListenerOptions.kt index 57a9eb994b052..7c8f456e2d776 100644 --- a/kotlin-web/src/commonMain/generated/web/events/EventListenerOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/events/EventListenerOptions.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface EventListenerOptions { - val capture: Boolean? + var capture: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/events/ObservableEventListenerOptions.kt b/kotlin-web/src/commonMain/generated/web/events/ObservableEventListenerOptions.kt index b081d8f47c9ec..17b36cc0f13d4 100644 --- a/kotlin-web/src/commonMain/generated/web/events/ObservableEventListenerOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/events/ObservableEventListenerOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface ObservableEventListenerOptions { - val capture: Boolean? - val passive: Boolean? + var capture: Boolean? + var passive: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/events/ProgressEvent.kt b/kotlin-web/src/commonMain/generated/web/events/ProgressEvent.kt index 092c3cd86037e..49d7a45e3ee48 100644 --- a/kotlin-web/src/commonMain/generated/web/events/ProgressEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/events/ProgressEvent.kt @@ -2,9 +2,7 @@ package web.events -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import kotlin.js.definedExternally /** @@ -37,29 +35,29 @@ open external class ProgressEvent( */ val total: Double - @JsAlias(THIS) - override fun asInit(): ProgressEventInit + companion object +} - companion object { - @JsValue("abort") - val ABORT: EventType +inline fun ProgressEvent.asInit(): ProgressEventInit = + unsafeCast(this) - @JsValue("error") - val ERROR: EventType +inline val ProgressEvent.Companion.ABORT: EventType + get() = EventType("abort") - @JsValue("load") - val LOAD: EventType +inline val ProgressEvent.Companion.ERROR: EventType + get() = EventType("error") - @JsValue("loadend") - val LOAD_END: EventType +inline val ProgressEvent.Companion.LOAD: EventType + get() = EventType("load") - @JsValue("loadstart") - val LOAD_START: EventType +inline val ProgressEvent.Companion.LOAD_END: EventType + get() = EventType("loadend") - @JsValue("progress") - val PROGRESS: EventType +inline val ProgressEvent.Companion.LOAD_START: EventType + get() = EventType("loadstart") - @JsValue("timeout") - val TIMEOUT: EventType - } -} +inline val ProgressEvent.Companion.PROGRESS: EventType + get() = EventType("progress") + +inline val ProgressEvent.Companion.TIMEOUT: EventType + get() = EventType("timeout") diff --git a/kotlin-web/src/commonMain/generated/web/events/ProgressEventInit.kt b/kotlin-web/src/commonMain/generated/web/events/ProgressEventInit.kt index 987897ffb177b..a53ffd4e20f57 100644 --- a/kotlin-web/src/commonMain/generated/web/events/ProgressEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/events/ProgressEventInit.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface ProgressEventInit : EventInit { - val lengthComputable: Boolean? - val loaded: Double? - val total: Double? + var lengthComputable: Boolean? + var loaded: Double? + var total: Double? } diff --git a/kotlin-web/src/commonMain/generated/web/events/internal/createAddEventListenerOptions.kt b/kotlin-web/src/commonMain/generated/web/events/internal/createAddEventListenerOptions.kt deleted file mode 100644 index 55e66693d0986..0000000000000 --- a/kotlin-web/src/commonMain/generated/web/events/internal/createAddEventListenerOptions.kt +++ /dev/null @@ -1,20 +0,0 @@ -// Automatically generated - do not modify! - -package web.events.internal - -import js.objects.JsPlainObject -import js.objects.unsafeJso -import web.events.AddEventListenerOptions - -internal fun createAddEventListenerOptions( - once: Boolean, -): AddEventListenerOptions = - unsafeJso { - this.once = once - } - -@JsPlainObject -private external interface MutableAddEventListenerOptions : - AddEventListenerOptions { - override var once: Boolean? -} diff --git a/kotlin-web/src/commonMain/generated/web/file/FilePropertyBag.kt b/kotlin-web/src/commonMain/generated/web/file/FilePropertyBag.kt index 26add25ef1171..b45fdf4b7cac7 100644 --- a/kotlin-web/src/commonMain/generated/web/file/FilePropertyBag.kt +++ b/kotlin-web/src/commonMain/generated/web/file/FilePropertyBag.kt @@ -9,5 +9,5 @@ import web.time.EpochTimeStamp @JsPlainObject external interface FilePropertyBag : BlobPropertyBag { - val lastModified: EpochTimeStamp? + var lastModified: EpochTimeStamp? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupDescriptor.kt index e83fffcaeedd1..ad5e73c01e1a9 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupDescriptor.kt @@ -8,6 +8,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBindGroupDescriptor : GPUObjectDescriptorBase { - val entries: ReadonlyArray - val layout: GPUBindGroupLayout + var entries: ReadonlyArray + var layout: GPUBindGroupLayout } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupEntry.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupEntry.kt index 350795c5e79a2..c55a6ab6feb00 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupEntry.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupEntry.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBindGroupEntry { - val binding: GPUIndex32 - val resource: GPUBindingResource + var binding: GPUIndex32 + var resource: GPUBindingResource } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutDescriptor.kt index 9ce6f490f4e26..71e6950004961 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutDescriptor.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase { - val entries: ReadonlyArray + var entries: ReadonlyArray } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt index 28e463ff6cca9..bca927c140867 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBindGroupLayoutEntry.kt @@ -6,11 +6,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBindGroupLayoutEntry { - val binding: GPUIndex32 - val buffer: GPUBufferBindingLayout? - val externalTexture: GPUExternalTextureBindingLayout? - val sampler: GPUSamplerBindingLayout? - val storageTexture: GPUStorageTextureBindingLayout? - val texture: GPUTextureBindingLayout? - val visibility: GPUShaderStageFlags + var binding: GPUIndex32 + var buffer: GPUBufferBindingLayout? + var externalTexture: GPUExternalTextureBindingLayout? + var sampler: GPUSamplerBindingLayout? + var storageTexture: GPUStorageTextureBindingLayout? + var texture: GPUTextureBindingLayout? + var visibility: GPUShaderStageFlags } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendComponent.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendComponent.kt index 13c1eaa0cd457..75b334c8f6c7e 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendComponent.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendComponent.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBlendComponent { - val dstFactor: GPUBlendFactor? - val operation: GPUBlendOperation? - val srcFactor: GPUBlendFactor? + var dstFactor: GPUBlendFactor? + var operation: GPUBlendOperation? + var srcFactor: GPUBlendFactor? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendState.kt index d3c50f5b08eb6..9a955914bbd99 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBlendState.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBlendState { - val alpha: GPUBlendComponent - val color: GPUBlendComponent + var alpha: GPUBlendComponent + var color: GPUBlendComponent } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBinding.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBinding.kt index 29a0b4a4ba1f5..d92f6f23f264e 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBinding.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBinding.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBufferBinding : GPUBindingResource { - val buffer: GPUBuffer - val offset: GPUSize64? - val size: GPUSize64? + var buffer: GPUBuffer + var offset: GPUSize64? + var size: GPUSize64? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBindingLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBindingLayout.kt index f82f5d993a486..1a784f146410b 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBindingLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferBindingLayout.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBufferBindingLayout { - val hasDynamicOffset: Boolean? - val minBindingSize: GPUSize64? - val type: GPUBufferBindingType? + var hasDynamicOffset: Boolean? + var minBindingSize: GPUSize64? + var type: GPUBufferBindingType? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferDescriptor.kt index fd55c66c10d48..1532956899f2b 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUBufferDescriptor.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUBufferDescriptor : GPUObjectDescriptorBase { - val mappedAtCreation: Boolean? - val size: GPUSize64 - val usage: GPUBufferUsageFlags + var mappedAtCreation: Boolean? + var size: GPUSize64 + var usage: GPUBufferUsageFlags } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUCanvasToneMapping.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUCanvasToneMapping.kt index a7a43a1fa86d0..1bda908a14a34 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUCanvasToneMapping.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUCanvasToneMapping.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUCanvasToneMapping { - val mode: GPUCanvasToneMappingMode? + var mode: GPUCanvasToneMappingMode? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUColorDict.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUColorDict.kt index 1ac96f111885e..2ac3bdaa41534 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUColorDict.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUColorDict.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUColorDict { - val a: Double - val b: Double - val g: Double - val r: Double + var a: Double + var b: Double + var g: Double + var r: Double } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUColorTargetState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUColorTargetState.kt index cea7752f4ec3a..80eaa3c678843 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUColorTargetState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUColorTargetState.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUColorTargetState { - val blend: GPUBlendState? - val format: GPUTextureFormat - val writeMask: GPUColorWriteFlags? + var blend: GPUBlendState? + var format: GPUTextureFormat + var writeMask: GPUColorWriteFlags? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassDescriptor.kt index 98ffc7f717248..ff4a19bb3e39a 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassDescriptor.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUComputePassDescriptor : GPUObjectDescriptorBase { - val timestampWrites: GPUComputePassTimestampWrites? + var timestampWrites: GPUComputePassTimestampWrites? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassTimestampWrites.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassTimestampWrites.kt index d5255aba3526c..631c95281ccb9 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassTimestampWrites.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePassTimestampWrites.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUComputePassTimestampWrites { - val beginningOfPassWriteIndex: GPUSize32? - val endOfPassWriteIndex: GPUSize32? - val querySet: GPUQuerySet + var beginningOfPassWriteIndex: GPUSize32? + var endOfPassWriteIndex: GPUSize32? + var querySet: GPUQuerySet } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePipelineDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePipelineDescriptor.kt index ecea5e80e6388..c8b7c25d4f7ac 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePipelineDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUComputePipelineDescriptor.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUComputePipelineDescriptor : GPUPipelineDescriptorBase { - val compute: GPUProgrammableStage + var compute: GPUProgrammableStage } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageDestInfo.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageDestInfo.kt index 96c6c62e35a18..2676ff1d4c863 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageDestInfo.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageDestInfo.kt @@ -8,6 +8,6 @@ import web.images.PredefinedColorSpace @JsPlainObject external interface GPUCopyExternalImageDestInfo : GPUTexelCopyTextureInfo { - val colorSpace: PredefinedColorSpace? - val premultipliedAlpha: Boolean? + var colorSpace: PredefinedColorSpace? + var premultipliedAlpha: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageSourceInfo.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageSourceInfo.kt index d9b1d03519025..903007c5f1e10 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageSourceInfo.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUCopyExternalImageSourceInfo.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUCopyExternalImageSourceInfo { - val flipY: Boolean? - val origin: GPUOrigin2D? - val source: GPUCopyExternalImageSource + var flipY: Boolean? + var origin: GPUOrigin2D? + var source: GPUCopyExternalImageSource } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUDepthStencilState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUDepthStencilState.kt index ef36ac2dc43c9..ae77263298823 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUDepthStencilState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUDepthStencilState.kt @@ -6,14 +6,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUDepthStencilState { - val depthBias: GPUDepthBias? - val depthBiasClamp: Float? - val depthBiasSlopeScale: Float? - val depthCompare: GPUCompareFunction? - val depthWriteEnabled: Boolean? - val format: GPUTextureFormat - val stencilBack: GPUStencilFaceState? - val stencilFront: GPUStencilFaceState? - val stencilReadMask: GPUStencilValue? - val stencilWriteMask: GPUStencilValue? + var depthBias: GPUDepthBias? + var depthBiasClamp: Float? + var depthBiasSlopeScale: Float? + var depthCompare: GPUCompareFunction? + var depthWriteEnabled: Boolean? + var format: GPUTextureFormat + var stencilBack: GPUStencilFaceState? + var stencilFront: GPUStencilFaceState? + var stencilReadMask: GPUStencilValue? + var stencilWriteMask: GPUStencilValue? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUDeviceDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUDeviceDescriptor.kt index d48bb2e903630..51aa69c3d8b8b 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUDeviceDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUDeviceDescriptor.kt @@ -10,7 +10,7 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface GPUDeviceDescriptor : GPUObjectDescriptorBase { - val defaultQueue: GPUQueueDescriptor? - val requiredFeatures: ReadonlyArray? - val requiredLimits: ReadonlyRecord? + var defaultQueue: GPUQueueDescriptor? + var requiredFeatures: ReadonlyArray? + var requiredLimits: ReadonlyRecord? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUExtent3DDict.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUExtent3DDict.kt index a043ccb933bf2..3421cc15cac9b 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUExtent3DDict.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUExtent3DDict.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUExtent3DDict { - val depthOrArrayLayers: GPUIntegerCoordinate? - val height: GPUIntegerCoordinate? - val width: GPUIntegerCoordinate + var depthOrArrayLayers: GPUIntegerCoordinate? + var height: GPUIntegerCoordinate? + var width: GPUIntegerCoordinate } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUExternalTextureDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUExternalTextureDescriptor.kt index 6267ea7d02323..c58972f3929d4 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUExternalTextureDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUExternalTextureDescriptor.kt @@ -9,6 +9,6 @@ import web.images.PredefinedColorSpace @JsPlainObject external interface GPUExternalTextureDescriptor : GPUObjectDescriptorBase { - val colorSpace: PredefinedColorSpace? - val source: CanvasImageSource /* HTMLVideoElement | VideoFrame */ + var colorSpace: PredefinedColorSpace? + var source: CanvasImageSource /* HTMLVideoElement | VideoFrame */ } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUFragmentState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUFragmentState.kt index 5d11949793283..56b9802df4c03 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUFragmentState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUFragmentState.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUFragmentState : GPUProgrammableStage { - val targets: ReadonlyArray + var targets: ReadonlyArray } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUMultisampleState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUMultisampleState.kt index 57e32ab8dc2d6..af92b2f6d90b3 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUMultisampleState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUMultisampleState.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUMultisampleState { - val alphaToCoverageEnabled: Boolean? - val count: GPUSize32? - val mask: GPUSampleMask? + var alphaToCoverageEnabled: Boolean? + var count: GPUSize32? + var mask: GPUSampleMask? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUObjectDescriptorBase.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUObjectDescriptorBase.kt index 9aab64032823c..2b5e6d3d375d0 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUObjectDescriptorBase.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUObjectDescriptorBase.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUObjectDescriptorBase { - val label: String? + var label: String? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin2DDict.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin2DDict.kt index 7af956af05320..1e3a10da6f1af 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin2DDict.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin2DDict.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUOrigin2DDict { - val x: GPUIntegerCoordinate? - val y: GPUIntegerCoordinate? + var x: GPUIntegerCoordinate? + var y: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin3DDict.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin3DDict.kt index b7b2b997a37cd..1b00610ba0ad9 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin3DDict.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUOrigin3DDict.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUOrigin3DDict { - val x: GPUIntegerCoordinate? - val y: GPUIntegerCoordinate? - val z: GPUIntegerCoordinate? + var x: GPUIntegerCoordinate? + var y: GPUIntegerCoordinate? + var z: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineDescriptorBase.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineDescriptorBase.kt index 35cd33525e144..400fe77a996ec 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineDescriptorBase.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineDescriptorBase.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUPipelineDescriptorBase : GPUObjectDescriptorBase { - val layout: JsAny /* GPUPipelineLayout | GPUAutoLayoutMode */ + var layout: JsAny /* GPUPipelineLayout | GPUAutoLayoutMode */ } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineErrorInit.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineErrorInit.kt index 5f3e364c5a6fb..e263c33648773 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineErrorInit.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineErrorInit.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUPipelineErrorInit { - val reason: GPUPipelineErrorReason + var reason: GPUPipelineErrorReason } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineLayoutDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineLayoutDescriptor.kt index 986430548bf1f..16feed6b839c0 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineLayoutDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUPipelineLayoutDescriptor.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUPipelineLayoutDescriptor : GPUObjectDescriptorBase { - val bindGroupLayouts: ReadonlyArray + var bindGroupLayouts: ReadonlyArray } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUPrimitiveState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUPrimitiveState.kt index cb231218e718c..c0b137785b0b3 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUPrimitiveState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUPrimitiveState.kt @@ -6,9 +6,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUPrimitiveState { - val cullMode: GPUCullMode? - val frontFace: GPUFrontFace? - val stripIndexFormat: GPUIndexFormat? - val topology: GPUPrimitiveTopology? - val unclippedDepth: Boolean? + var cullMode: GPUCullMode? + var frontFace: GPUFrontFace? + var stripIndexFormat: GPUIndexFormat? + var topology: GPUPrimitiveTopology? + var unclippedDepth: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUProgrammableStage.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUProgrammableStage.kt index f473853d9bcfd..1bdac1f553927 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUProgrammableStage.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUProgrammableStage.kt @@ -8,7 +8,7 @@ import js.objects.ReadonlyRecord @JsPlainObject external interface GPUProgrammableStage { - val constants: ReadonlyRecord? - val entryPoint: String? - val module: GPUShaderModule + var constants: ReadonlyRecord? + var entryPoint: String? + var module: GPUShaderModule } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUQuerySetDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUQuerySetDescriptor.kt index 143193142c5a4..e5fe0381db6e8 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUQuerySetDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUQuerySetDescriptor.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUQuerySetDescriptor : GPUObjectDescriptorBase { - val count: GPUSize32 - val type: GPUQueryType + var count: GPUSize32 + var type: GPUQueryType } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderBundleEncoderDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderBundleEncoderDescriptor.kt index 6537bce41093d..7fd4b5319e5e1 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderBundleEncoderDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderBundleEncoderDescriptor.kt @@ -7,6 +7,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderBundleEncoderDescriptor : GPURenderPassLayout { - val depthReadOnly: Boolean? - val stencilReadOnly: Boolean? + var depthReadOnly: Boolean? + var stencilReadOnly: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassColorAttachment.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassColorAttachment.kt index 575f206f6a810..d9fb2868e7fff 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassColorAttachment.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassColorAttachment.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPassColorAttachment { - val clearValue: GPUColor? - val depthSlice: GPUIntegerCoordinate? - val loadOp: GPULoadOp - val resolveTarget: GPUTextureView? - val storeOp: GPUStoreOp - val view: GPUTextureView + var clearValue: GPUColor? + var depthSlice: GPUIntegerCoordinate? + var loadOp: GPULoadOp + var resolveTarget: GPUTextureView? + var storeOp: GPUStoreOp + var view: GPUTextureView } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt index 4690d990ad1ef..ad6d7c94d1e30 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDepthStencilAttachment.kt @@ -6,13 +6,13 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPassDepthStencilAttachment { - val depthClearValue: Float? - val depthLoadOp: GPULoadOp? - val depthReadOnly: Boolean? - val depthStoreOp: GPUStoreOp? - val stencilClearValue: GPUStencilValue? - val stencilLoadOp: GPULoadOp? - val stencilReadOnly: Boolean? - val stencilStoreOp: GPUStoreOp? - val view: GPUTextureView + var depthClearValue: Float? + var depthLoadOp: GPULoadOp? + var depthReadOnly: Boolean? + var depthStoreOp: GPUStoreOp? + var stencilClearValue: GPUStencilValue? + var stencilLoadOp: GPULoadOp? + var stencilReadOnly: Boolean? + var stencilStoreOp: GPUStoreOp? + var view: GPUTextureView } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDescriptor.kt index e832a4d82d99c..bed2fc7cd6228 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassDescriptor.kt @@ -8,9 +8,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPassDescriptor : GPUObjectDescriptorBase { - val colorAttachments: ReadonlyArray - val depthStencilAttachment: GPURenderPassDepthStencilAttachment? - val maxDrawCount: GPUSize64? - val occlusionQuerySet: GPUQuerySet? - val timestampWrites: GPURenderPassTimestampWrites? + var colorAttachments: ReadonlyArray + var depthStencilAttachment: GPURenderPassDepthStencilAttachment? + var maxDrawCount: GPUSize64? + var occlusionQuerySet: GPUQuerySet? + var timestampWrites: GPURenderPassTimestampWrites? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassLayout.kt index 185639d53c33f..7eae7ea614342 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassLayout.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPassLayout : GPUObjectDescriptorBase { - val colorFormats: ReadonlyArray - val depthStencilFormat: GPUTextureFormat? - val sampleCount: GPUSize32? + var colorFormats: ReadonlyArray + var depthStencilFormat: GPUTextureFormat? + var sampleCount: GPUSize32? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassTimestampWrites.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassTimestampWrites.kt index 16bfd43d4c58d..3d933dc849ff2 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassTimestampWrites.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPassTimestampWrites.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPassTimestampWrites { - val beginningOfPassWriteIndex: GPUSize32? - val endOfPassWriteIndex: GPUSize32? - val querySet: GPUQuerySet + var beginningOfPassWriteIndex: GPUSize32? + var endOfPassWriteIndex: GPUSize32? + var querySet: GPUQuerySet } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPipelineDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPipelineDescriptor.kt index be6a6b1ef3246..003e596e613fd 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPipelineDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURenderPipelineDescriptor.kt @@ -7,9 +7,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURenderPipelineDescriptor : GPUPipelineDescriptorBase { - val depthStencil: GPUDepthStencilState? - val fragment: GPUFragmentState? - val multisample: GPUMultisampleState? - val primitive: GPUPrimitiveState? - val vertex: GPUVertexState + var depthStencil: GPUDepthStencilState? + var fragment: GPUFragmentState? + var multisample: GPUMultisampleState? + var primitive: GPUPrimitiveState? + var vertex: GPUVertexState } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPURequestAdapterOptions.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPURequestAdapterOptions.kt index 93a2c98a75a90..86418e7600996 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPURequestAdapterOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPURequestAdapterOptions.kt @@ -6,6 +6,6 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPURequestAdapterOptions { - val forceFallbackAdapter: Boolean? - val powerPreference: GPUPowerPreference? + var forceFallbackAdapter: Boolean? + var powerPreference: GPUPowerPreference? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerBindingLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerBindingLayout.kt index 610eb607669e7..c21a42050b58b 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerBindingLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerBindingLayout.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUSamplerBindingLayout { - val type: GPUSamplerBindingType? + var type: GPUSamplerBindingType? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerDescriptor.kt index 55ac2a9543314..ac54a8c5ee0a2 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUSamplerDescriptor.kt @@ -7,14 +7,14 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUSamplerDescriptor : GPUObjectDescriptorBase { - val addressModeU: GPUAddressMode? - val addressModeV: GPUAddressMode? - val addressModeW: GPUAddressMode? - val compare: GPUCompareFunction? - val lodMaxClamp: Float? - val lodMinClamp: Float? - val magFilter: GPUFilterMode? - val maxAnisotropy: Short? - val minFilter: GPUFilterMode? - val mipmapFilter: GPUMipmapFilterMode? + var addressModeU: GPUAddressMode? + var addressModeV: GPUAddressMode? + var addressModeW: GPUAddressMode? + var compare: GPUCompareFunction? + var lodMaxClamp: Float? + var lodMinClamp: Float? + var magFilter: GPUFilterMode? + var maxAnisotropy: Short? + var minFilter: GPUFilterMode? + var mipmapFilter: GPUMipmapFilterMode? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUShaderModuleDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUShaderModuleDescriptor.kt index b9f5a55b3880f..80e6547862422 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUShaderModuleDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUShaderModuleDescriptor.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUShaderModuleDescriptor : GPUObjectDescriptorBase { - val code: String + var code: String } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUStencilFaceState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUStencilFaceState.kt index d521b46fb09d4..695315b6ae924 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUStencilFaceState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUStencilFaceState.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUStencilFaceState { - val compare: GPUCompareFunction? - val depthFailOp: GPUStencilOperation? - val failOp: GPUStencilOperation? - val passOp: GPUStencilOperation? + var compare: GPUCompareFunction? + var depthFailOp: GPUStencilOperation? + var failOp: GPUStencilOperation? + var passOp: GPUStencilOperation? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUStorageTextureBindingLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUStorageTextureBindingLayout.kt index 23b2e78fedeb5..23fa9c7d774b4 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUStorageTextureBindingLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUStorageTextureBindingLayout.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUStorageTextureBindingLayout { - val access: GPUStorageTextureAccess? - val format: GPUTextureFormat - val viewDimension: GPUTextureViewDimension? + var access: GPUStorageTextureAccess? + var format: GPUTextureFormat + var viewDimension: GPUTextureViewDimension? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferInfo.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferInfo.kt index 9da403901f6e8..b2669f01521a7 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferInfo.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferInfo.kt @@ -7,5 +7,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTexelCopyBufferInfo : GPUTexelCopyBufferLayout { - val buffer: GPUBuffer + var buffer: GPUBuffer } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferLayout.kt index 85ab2740d66ff..bedf29eeb6956 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyBufferLayout.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTexelCopyBufferLayout { - val bytesPerRow: GPUSize32? - val offset: GPUSize64? - val rowsPerImage: GPUSize32? + var bytesPerRow: GPUSize32? + var offset: GPUSize64? + var rowsPerImage: GPUSize32? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyTextureInfo.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyTextureInfo.kt index 3b1bfe88c4dc9..44868cf7a6fbd 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyTextureInfo.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTexelCopyTextureInfo.kt @@ -6,8 +6,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTexelCopyTextureInfo { - val aspect: GPUTextureAspect? - val mipLevel: GPUIntegerCoordinate? - val origin: GPUOrigin3D? - val texture: GPUTexture + var aspect: GPUTextureAspect? + var mipLevel: GPUIntegerCoordinate? + var origin: GPUOrigin3D? + var texture: GPUTexture } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureBindingLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureBindingLayout.kt index 55986f9305a32..22a36842da049 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureBindingLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureBindingLayout.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTextureBindingLayout { - val multisampled: Boolean? - val sampleType: GPUTextureSampleType? - val viewDimension: GPUTextureViewDimension? + var multisampled: Boolean? + var sampleType: GPUTextureSampleType? + var viewDimension: GPUTextureViewDimension? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureDescriptor.kt index e84821e8895a9..dc9a6f78b51d8 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureDescriptor.kt @@ -8,11 +8,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTextureDescriptor : GPUObjectDescriptorBase { - val dimension: GPUTextureDimension? - val format: GPUTextureFormat - val mipLevelCount: GPUIntegerCoordinate? - val sampleCount: GPUSize32? - val size: GPUExtent3D - val usage: GPUTextureUsageFlags - val viewFormats: ReadonlyArray? + var dimension: GPUTextureDimension? + var format: GPUTextureFormat + var mipLevelCount: GPUIntegerCoordinate? + var sampleCount: GPUSize32? + var size: GPUExtent3D + var usage: GPUTextureUsageFlags + var viewFormats: ReadonlyArray? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureViewDescriptor.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureViewDescriptor.kt index 42edde3e9025e..621d7403bdab8 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureViewDescriptor.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUTextureViewDescriptor.kt @@ -7,11 +7,11 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUTextureViewDescriptor : GPUObjectDescriptorBase { - val arrayLayerCount: GPUIntegerCoordinate? - val aspect: GPUTextureAspect? - val baseArrayLayer: GPUIntegerCoordinate? - val baseMipLevel: GPUIntegerCoordinate? - val dimension: GPUTextureViewDimension? - val format: GPUTextureFormat? - val mipLevelCount: GPUIntegerCoordinate? + var arrayLayerCount: GPUIntegerCoordinate? + var aspect: GPUTextureAspect? + var baseArrayLayer: GPUIntegerCoordinate? + var baseMipLevel: GPUIntegerCoordinate? + var dimension: GPUTextureViewDimension? + var format: GPUTextureFormat? + var mipLevelCount: GPUIntegerCoordinate? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEvent.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEvent.kt index 94b3c0077742b..294134c1d24da 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEvent.kt @@ -2,9 +2,7 @@ package web.gpu -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -22,11 +20,11 @@ open external class GPUUncapturedErrorEvent( */ val error: GPUError - @JsAlias(THIS) - override fun asInit(): GPUUncapturedErrorEventInit - - companion object { - @JsValue("uncapturederror") - val UNCAPTURED_ERROR: EventType - } + companion object } + +inline fun GPUUncapturedErrorEvent.asInit(): GPUUncapturedErrorEventInit = + unsafeCast(this) + +inline val GPUUncapturedErrorEvent.Companion.UNCAPTURED_ERROR: EventType + get() = EventType("uncapturederror") diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEventInit.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEventInit.kt index 780530d0aec5e..d601a1ad023ff 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUUncapturedErrorEventInit.kt @@ -8,5 +8,5 @@ import web.events.EventInit @JsPlainObject external interface GPUUncapturedErrorEventInit : EventInit { - val error: GPUError + var error: GPUError } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexAttribute.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexAttribute.kt index 366e2865f7514..32f8132ed2f04 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexAttribute.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexAttribute.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUVertexAttribute { - val format: GPUVertexFormat - val offset: GPUSize64 - val shaderLocation: GPUIndex32 + var format: GPUVertexFormat + var offset: GPUSize64 + var shaderLocation: GPUIndex32 } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexBufferLayout.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexBufferLayout.kt index fdf72107de7c3..b7f9ee1a86064 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexBufferLayout.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexBufferLayout.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUVertexBufferLayout { - val arrayStride: GPUSize64 - val attributes: ReadonlyArray - val stepMode: GPUVertexStepMode? + var arrayStride: GPUSize64 + var attributes: ReadonlyArray + var stepMode: GPUVertexStepMode? } diff --git a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexState.kt b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexState.kt index 25e0654779d96..305389819ffbb 100644 --- a/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexState.kt +++ b/kotlin-web/src/commonMain/generated/web/gpu/GPUVertexState.kt @@ -8,5 +8,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface GPUVertexState : GPUProgrammableStage { - val buffers: ReadonlyArray? + var buffers: ReadonlyArray? } diff --git a/kotlin-web/src/commonMain/generated/web/http/RequestInit.kt b/kotlin-web/src/commonMain/generated/web/http/RequestInit.kt index 1edc8329f3419..910c465014569 100644 --- a/kotlin-web/src/commonMain/generated/web/http/RequestInit.kt +++ b/kotlin-web/src/commonMain/generated/web/http/RequestInit.kt @@ -12,61 +12,61 @@ external interface RequestInit : /** * A BodyInit object or null to set request's body. */ - val body: BodyInit? + var body: BodyInit? /** * A string indicating how the request will interact with the browser's cache to set request's cache. */ - val cache: RequestCache? + var cache: RequestCache? /** * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ - val credentials: RequestCredentials? + var credentials: RequestCredentials? /** * A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ - val headers: Headers? + var headers: Headers? /** * A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ - val integrity: String? + var integrity: String? /** * A boolean to set request's keepalive. */ - val keepalive: Boolean? + var keepalive: Boolean? /** * A string to set request's method. */ - val method: RequestMethod? + var method: RequestMethod? /** * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ - val mode: RequestMode? - val priority: RequestPriority? + var mode: RequestMode? + var priority: RequestPriority? /** * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ - val redirect: RequestRedirect? + var redirect: RequestRedirect? /** * A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ - val referrer: String? + var referrer: String? /** * A referrer policy to set request's referrerPolicy. */ - val referrerPolicy: ReferrerPolicy? + var referrerPolicy: ReferrerPolicy? /** * An AbortSignal to set request's signal. */ - override val signal: AbortSignal? + override var signal: AbortSignal? } diff --git a/kotlin-web/src/commonMain/generated/web/http/ResponseInit.kt b/kotlin-web/src/commonMain/generated/web/http/ResponseInit.kt index 550a9315139a9..47ab31f08429f 100644 --- a/kotlin-web/src/commonMain/generated/web/http/ResponseInit.kt +++ b/kotlin-web/src/commonMain/generated/web/http/ResponseInit.kt @@ -6,7 +6,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface ResponseInit { - val headers: Headers? - val status: Short? - val statusText: String? + var headers: Headers? + var status: Short? + var statusText: String? } diff --git a/kotlin-web/src/commonMain/generated/web/images/ImageBitmapOptions.kt b/kotlin-web/src/commonMain/generated/web/images/ImageBitmapOptions.kt index 1b74887af2d33..77783712868bb 100644 --- a/kotlin-web/src/commonMain/generated/web/images/ImageBitmapOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/images/ImageBitmapOptions.kt @@ -6,10 +6,10 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageBitmapOptions { - val colorSpaceConversion: ColorSpaceConversion? - val imageOrientation: ImageOrientation? - val premultiplyAlpha: PremultiplyAlpha? - val resizeHeight: Int? - val resizeQuality: ResizeQuality? - val resizeWidth: Int? + var colorSpaceConversion: ColorSpaceConversion? + var imageOrientation: ImageOrientation? + var premultiplyAlpha: PremultiplyAlpha? + var resizeHeight: Int? + var resizeQuality: ResizeQuality? + var resizeWidth: Int? } diff --git a/kotlin-web/src/commonMain/generated/web/images/ImageDataSettings.kt b/kotlin-web/src/commonMain/generated/web/images/ImageDataSettings.kt index 3706567742786..d16eba9a736d2 100644 --- a/kotlin-web/src/commonMain/generated/web/images/ImageDataSettings.kt +++ b/kotlin-web/src/commonMain/generated/web/images/ImageDataSettings.kt @@ -6,5 +6,5 @@ import js.objects.JsPlainObject @JsPlainObject external interface ImageDataSettings { - val colorSpace: PredefinedColorSpace? + var colorSpace: PredefinedColorSpace? } diff --git a/kotlin-web/src/commonMain/generated/web/messaging/MessageEvent.kt b/kotlin-web/src/commonMain/generated/web/messaging/MessageEvent.kt index 6bbb96a3baba3..ed478c148ac64 100644 --- a/kotlin-web/src/commonMain/generated/web/messaging/MessageEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/messaging/MessageEvent.kt @@ -4,9 +4,7 @@ package web.messaging import js.array.ReadonlyArray import js.core.JsAny -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -55,17 +53,17 @@ open external class MessageEvent( */ val source: MessageEventSource? - @JsAlias(THIS) - override fun asInit(): MessageEventInit + companion object +} - companion object { - @JsValue("connect") - val CONNECT: EventType> +inline fun MessageEvent.asInit(): MessageEventInit = + unsafeCast(this) - @JsValue("message") - val MESSAGE: EventType> +inline val MessageEvent.Companion.CONNECT: EventType> + get() = EventType("connect") - @JsValue("messageerror") - val MESSAGE_ERROR: EventType> - } -} +inline val MessageEvent.Companion.MESSAGE: EventType> + get() = EventType("message") + +inline val MessageEvent.Companion.MESSAGE_ERROR: EventType> + get() = EventType("messageerror") diff --git a/kotlin-web/src/commonMain/generated/web/messaging/MessageEventInit.kt b/kotlin-web/src/commonMain/generated/web/messaging/MessageEventInit.kt index c968caf248f15..c9806f15122e0 100644 --- a/kotlin-web/src/commonMain/generated/web/messaging/MessageEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/messaging/MessageEventInit.kt @@ -8,11 +8,11 @@ import js.objects.JsPlainObject import web.events.EventInit @JsPlainObject -external interface MessageEventInit : +external interface MessageEventInit : EventInit { - val data: D? - val lastEventId: String? - val origin: String? - val ports: ReadonlyArray? - val source: MessageEventSource? + var data: D? + var lastEventId: String? + var origin: String? + var ports: ReadonlyArray? + var source: MessageEventSource? } diff --git a/kotlin-web/src/commonMain/generated/web/performance/PerformanceMarkOptions.kt b/kotlin-web/src/commonMain/generated/web/performance/PerformanceMarkOptions.kt index 25fd966409488..e921dcaa3dbb9 100644 --- a/kotlin-web/src/commonMain/generated/web/performance/PerformanceMarkOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/performance/PerformanceMarkOptions.kt @@ -8,6 +8,6 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface PerformanceMarkOptions { - val detail: JsAny? - val startTime: DOMHighResTimeStamp? + var detail: JsAny? + var startTime: DOMHighResTimeStamp? } diff --git a/kotlin-web/src/commonMain/generated/web/performance/PerformanceMeasureOptions.kt b/kotlin-web/src/commonMain/generated/web/performance/PerformanceMeasureOptions.kt index 2cb84361ac770..e1805bc06e221 100644 --- a/kotlin-web/src/commonMain/generated/web/performance/PerformanceMeasureOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/performance/PerformanceMeasureOptions.kt @@ -8,8 +8,8 @@ import web.time.DOMHighResTimeStamp @JsPlainObject external interface PerformanceMeasureOptions { - val detail: JsAny? - val duration: DOMHighResTimeStamp? - val end: DOMHighResTimeStamp /* | String */? - val start: DOMHighResTimeStamp /* | String */? + var detail: JsAny? + var duration: DOMHighResTimeStamp? + var end: DOMHighResTimeStamp /* | String */? + var start: DOMHighResTimeStamp /* | String */? } diff --git a/kotlin-web/src/commonMain/generated/web/performance/PerformanceObserverInit.kt b/kotlin-web/src/commonMain/generated/web/performance/PerformanceObserverInit.kt index 8e0584a764488..a6c3947d69727 100644 --- a/kotlin-web/src/commonMain/generated/web/performance/PerformanceObserverInit.kt +++ b/kotlin-web/src/commonMain/generated/web/performance/PerformanceObserverInit.kt @@ -8,7 +8,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface PerformanceObserverInit { - val buffered: Boolean? - val entryTypes: ReadonlyArray? - val type: String? + var buffered: Boolean? + var entryTypes: ReadonlyArray? + var type: String? } diff --git a/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEvent.kt b/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEvent.kt index a445baeb35429..21653a96927f7 100644 --- a/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEvent.kt @@ -4,9 +4,7 @@ package web.promise import js.errors.JsError import js.promise.Promise -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType @@ -33,14 +31,14 @@ open external class PromiseRejectionEvent( */ val reason: JsError? - @JsAlias(THIS) - override fun asInit(): PromiseRejectionEventInit + companion object +} - companion object { - @JsValue("rejectionhandled") - val REJECTION_HANDLED: EventType +inline fun PromiseRejectionEvent.asInit(): PromiseRejectionEventInit = + unsafeCast(this) - @JsValue("unhandledrejection") - val UNHANDLED_REJECTION: EventType - } -} +inline val PromiseRejectionEvent.Companion.REJECTION_HANDLED: EventType + get() = EventType("rejectionhandled") + +inline val PromiseRejectionEvent.Companion.UNHANDLED_REJECTION: EventType + get() = EventType("unhandledrejection") diff --git a/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEventInit.kt b/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEventInit.kt index 6d38b07db08c8..ba953f7a2eae8 100644 --- a/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/promise/PromiseRejectionEventInit.kt @@ -10,6 +10,6 @@ import web.events.EventInit @JsPlainObject external interface PromiseRejectionEventInit : EventInit { - val promise: Promise<*> - val reason: JsError? + var promise: Promise<*> + var reason: JsError? } diff --git a/kotlin-web/src/commonMain/generated/web/serialization/StructuredSerializeOptions.kt b/kotlin-web/src/commonMain/generated/web/serialization/StructuredSerializeOptions.kt index c1182eb378112..de41a4f0d71a7 100644 --- a/kotlin-web/src/commonMain/generated/web/serialization/StructuredSerializeOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/serialization/StructuredSerializeOptions.kt @@ -8,5 +8,5 @@ import js.serialization.Transferable @JsPlainObject external interface StructuredSerializeOptions { - val transfer: ReadonlyArray? + var transfer: ReadonlyArray? } diff --git a/kotlin-web/src/commonMain/generated/web/sockets/CloseEvent.kt b/kotlin-web/src/commonMain/generated/web/sockets/CloseEvent.kt index d9a59654e14f8..50ff5502efbc8 100644 --- a/kotlin-web/src/commonMain/generated/web/sockets/CloseEvent.kt +++ b/kotlin-web/src/commonMain/generated/web/sockets/CloseEvent.kt @@ -2,9 +2,7 @@ package web.sockets -import seskar.js.JsAlias -import seskar.js.JsAlias.Companion.THIS -import seskar.js.JsValue +import js.reflect.unsafeCast import web.events.Event import web.events.EventType import kotlin.js.definedExternally @@ -39,11 +37,11 @@ open external class CloseEvent( */ val wasClean: Boolean - @JsAlias(THIS) - override fun asInit(): CloseEventInit - - companion object { - @JsValue("close") - val CLOSE: EventType - } + companion object } + +inline fun CloseEvent.asInit(): CloseEventInit = + unsafeCast(this) + +inline val CloseEvent.Companion.CLOSE: EventType + get() = EventType("close") diff --git a/kotlin-web/src/commonMain/generated/web/sockets/CloseEventInit.kt b/kotlin-web/src/commonMain/generated/web/sockets/CloseEventInit.kt index f8c27f831fc4a..1850256b7f08d 100644 --- a/kotlin-web/src/commonMain/generated/web/sockets/CloseEventInit.kt +++ b/kotlin-web/src/commonMain/generated/web/sockets/CloseEventInit.kt @@ -8,7 +8,7 @@ import web.events.EventInit @JsPlainObject external interface CloseEventInit : EventInit { - val code: Short? - val reason: String? - val wasClean: Boolean? + var code: Short? + var reason: String? + var wasClean: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/QueuingStrategyInit.kt b/kotlin-web/src/commonMain/generated/web/streams/QueuingStrategyInit.kt index ef3782f0bf337..4496aa1cbfa12 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/QueuingStrategyInit.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/QueuingStrategyInit.kt @@ -11,5 +11,5 @@ external interface QueuingStrategyInit { * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ - val highWaterMark: Double + var highWaterMark: Double } diff --git a/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamGetReaderOptions.kt b/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamGetReaderOptions.kt index e4985b9d5f267..f5a36f37158a8 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamGetReaderOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamGetReaderOptions.kt @@ -11,5 +11,5 @@ external interface ReadableStreamGetReaderOptions { * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ - val mode: ReadableStreamReaderMode? + var mode: ReadableStreamReaderMode? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamIteratorOptions.kt b/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamIteratorOptions.kt index 771ba65b514f8..ff35db2c23866 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamIteratorOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/ReadableStreamIteratorOptions.kt @@ -13,5 +13,5 @@ external interface ReadableStreamIteratorOptions { * * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. */ - val preventCancel: Boolean? + var preventCancel: Boolean? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/ReadableWritablePair.kt b/kotlin-web/src/commonMain/generated/web/streams/ReadableWritablePair.kt index 5bf89cd9f73bf..652d85fd5268e 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/ReadableWritablePair.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/ReadableWritablePair.kt @@ -7,12 +7,12 @@ import js.objects.JsPlainObject @JsPlainObject external interface ReadableWritablePair { - val readable: ReadableStream + var readable: ReadableStream /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ - val writable: WritableStream + var writable: WritableStream } diff --git a/kotlin-web/src/commonMain/generated/web/streams/StreamPipeOptions.kt b/kotlin-web/src/commonMain/generated/web/streams/StreamPipeOptions.kt index 8e9b9a9d5afe3..aec2091f18539 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/StreamPipeOptions.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/StreamPipeOptions.kt @@ -9,8 +9,8 @@ import web.abort.Abortable @JsPlainObject external interface StreamPipeOptions : Abortable { - val preventAbort: Boolean? - val preventCancel: Boolean? + var preventAbort: Boolean? + var preventCancel: Boolean? /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. @@ -29,6 +29,6 @@ external interface StreamPipeOptions : * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ - val preventClose: Boolean? - override val signal: AbortSignal? + var preventClose: Boolean? + override var signal: AbortSignal? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/Transformer.kt b/kotlin-web/src/commonMain/generated/web/streams/Transformer.kt index ed5b30a63fe4d..900a55daa26fe 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/Transformer.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/Transformer.kt @@ -7,7 +7,7 @@ import js.objects.JsPlainObject @JsPlainObject external interface Transformer { - val flush: TransformerFlushCallback? - val start: TransformerStartCallback? - val transform: TransformerTransformCallback? + var flush: TransformerFlushCallback? + var start: TransformerStartCallback? + var transform: TransformerTransformCallback? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSink.kt b/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSink.kt index 991a9941a44db..e20442f0c092d 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSink.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSink.kt @@ -7,8 +7,8 @@ import js.objects.JsPlainObject @JsPlainObject external interface UnderlyingSink { - val abort: UnderlyingSinkAbortCallback? - val close: UnderlyingSinkCloseCallback? - val start: UnderlyingSinkStartCallback? - val write: UnderlyingSinkWriteCallback? + var abort: UnderlyingSinkAbortCallback? + var close: UnderlyingSinkCloseCallback? + var start: UnderlyingSinkStartCallback? + var write: UnderlyingSinkWriteCallback? } diff --git a/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSource.kt b/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSource.kt index a4cfce73b87c5..bb3621652313d 100644 --- a/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSource.kt +++ b/kotlin-web/src/commonMain/generated/web/streams/UnderlyingSource.kt @@ -8,9 +8,9 @@ import js.objects.JsPlainObject @JsPlainObject external interface UnderlyingSource { - val autoAllocateChunkSize: UInt53? - val cancel: UnderlyingSourceCancelCallback? - val pull: UnderlyingSourcePullCallback? - val start: UnderlyingSourceStartCallback? - val type: ReadableStreamType? + var autoAllocateChunkSize: UInt53? + var cancel: UnderlyingSourceCancelCallback? + var pull: UnderlyingSourcePullCallback? + var start: UnderlyingSourceStartCallback? + var type: ReadableStreamType? } diff --git a/kotlin-web/src/commonMain/kotlin/web/abort/internal/AbortSignal.safeAny.kt b/kotlin-web/src/commonMain/kotlin/web/abort/internal/AbortSignal.safeAny.kt index 4b681c2917233..81fe1f7acfa52 100644 --- a/kotlin-web/src/commonMain/kotlin/web/abort/internal/AbortSignal.safeAny.kt +++ b/kotlin-web/src/commonMain/kotlin/web/abort/internal/AbortSignal.safeAny.kt @@ -2,6 +2,7 @@ package web.abort.internal import web.abort.AbortController import web.abort.AbortSignal +import web.events.ABORT import web.events.Event import web.events.EventHandler import web.events.addEventHandler diff --git a/kotlin-web/src/commonMain/kotlin/web/abort/internal/createAbortable.kt b/kotlin-web/src/commonMain/kotlin/web/abort/internal/createAbortable.kt index bd1835324e57d..1bbf5e9bcfe79 100644 --- a/kotlin-web/src/commonMain/kotlin/web/abort/internal/createAbortable.kt +++ b/kotlin-web/src/commonMain/kotlin/web/abort/internal/createAbortable.kt @@ -1,6 +1,5 @@ package web.abort.internal -import js.objects.JsPlainObject import js.objects.unsafeJso import web.abort.AbortSignal import web.abort.Abortable @@ -8,12 +7,6 @@ import web.abort.Abortable internal fun createAbortable( signal: AbortSignal?, ): Abortable = - unsafeJso { + unsafeJso { this.signal = signal } - -@JsPlainObject -private external interface MutableAbortable : - Abortable { - override var signal: AbortSignal? -} diff --git a/kotlin-web/src/jsTest/kotlin/web/events/EventTypesTest.kt b/kotlin-web/src/jsTest/kotlin/web/events/EventTypesTest.kt index 9c7e3e70b9e3f..545ebc0936b8a 100644 --- a/kotlin-web/src/jsTest/kotlin/web/events/EventTypesTest.kt +++ b/kotlin-web/src/jsTest/kotlin/web/events/EventTypesTest.kt @@ -1,17 +1,16 @@ package web.events -import web.events.ProgressEvent.Companion.PROGRESS import kotlin.test.Test import kotlin.test.assertEquals class EventTypesTest { @Test - fun import() { + fun import1() { assertEquals("abort", ProgressEvent.ABORT) } @Test - fun staticImport() { - assertEquals("progress", PROGRESS) + fun import2() { + assertEquals("progress", ProgressEvent.PROGRESS) } } diff --git a/kotlin-web/src/jsTest/kotlin/web/http/FetchTest.kt b/kotlin-web/src/jsTest/kotlin/web/http/FetchTest.kt index d0b6d1a0ebc54..7a581cc8600fe 100644 --- a/kotlin-web/src/jsTest/kotlin/web/http/FetchTest.kt +++ b/kotlin-web/src/jsTest/kotlin/web/http/FetchTest.kt @@ -9,6 +9,7 @@ import kotlinx.coroutines.async import kotlinx.coroutines.coroutineScope import kotlinx.coroutines.launch import kotlinx.coroutines.test.runTest +import web.events.ABORT import web.events.Event import web.events.addEventHandler import web.events.addHandler diff --git a/kotlin-wrappers-bom/README.md b/kotlin-wrappers-bom/README.md index dd379d7c4a82a..e78669941b85c 100644 --- a/kotlin-wrappers-bom/README.md +++ b/kotlin-wrappers-bom/README.md @@ -9,7 +9,7 @@ to have version mismatches. Usage: ```kotlin -val kotlinWrappersVersion = "2025.6.6" +val kotlinWrappersVersion = "2025.6.8" dependencies { implementation(platform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:$kotlinWrappersVersion")) diff --git a/package-lock.json b/package-lock.json index d84e2ea9072e7..3b28825f97756 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2309,9 +2309,9 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.80.10", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.80.10.tgz", - "integrity": "sha512-mUNQOtzxkjL6jLbyChZoSBP6A5gQDVRUiPvW+/zw/9ftOAz+H754zCj3D8PwnzPKyHzGkQ9JbH48ukhym9LK1Q==", + "version": "5.81.2", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.81.2.tgz", + "integrity": "sha512-QLYkPdrudoMATDFa3MiLEwRhNnAlzHWDf0LKaXUqJd0/+QxN8uTPi7bahRlxoAyH0UbLMBdeDbYzWALj7THOtw==", "license": "MIT", "funding": { "type": "github", @@ -2319,9 +2319,9 @@ } }, "node_modules/@tanstack/query-devtools": { - "version": "5.80.0", - "resolved": "https://registry.npmjs.org/@tanstack/query-devtools/-/query-devtools-5.80.0.tgz", - "integrity": "sha512-D6gH4asyjaoXrCOt5vG5Og/YSj0D/TxwNQgtLJIgWbhbWCC/emu2E92EFoVHh4ppVWg1qT2gKHvKyQBEFZhCuA==", + "version": "5.81.2", + "resolved": "https://registry.npmjs.org/@tanstack/query-devtools/-/query-devtools-5.81.2.tgz", + "integrity": "sha512-jCeJcDCwKfoyyBXjXe9+Lo8aTkavygHHsUHAlxQKKaDeyT0qyQNLKl7+UyqYH2dDF6UN/14873IPBHchcsU+Zg==", "license": "MIT", "funding": { "type": "github", @@ -2329,12 +2329,12 @@ } }, "node_modules/@tanstack/react-query": { - "version": "5.80.10", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.80.10.tgz", - "integrity": "sha512-6zM098J8sLy9oU60XAdzUlAH4wVzoMVsWUWiiE/Iz4fd67PplxeyL4sw/MPcVJJVhbwGGXCsHn9GrQt2mlAzig==", + "version": "5.81.2", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.81.2.tgz", + "integrity": "sha512-pe8kFlTrL2zFLlcAj2kZk9UaYYHDk9/1hg9EBaoO3cxDhOZf1FRGJeziSXKrVZyxIfs7b3aoOj/bw7Lie0mDUg==", "license": "MIT", "dependencies": { - "@tanstack/query-core": "5.80.10" + "@tanstack/query-core": "5.81.2" }, "funding": { "type": "github", @@ -2345,19 +2345,19 @@ } }, "node_modules/@tanstack/react-query-devtools": { - "version": "5.80.10", - "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.80.10.tgz", - "integrity": "sha512-6JL63fSc7kxyGOLV2w466SxhMn/m7LZk/ximQciy6OpVt+n2A8Mq3S0QwhIzfm4WEwLK/F3OELfzRToQburnYA==", + "version": "5.81.2", + "resolved": "https://registry.npmjs.org/@tanstack/react-query-devtools/-/react-query-devtools-5.81.2.tgz", + "integrity": "sha512-TX0OQ4cbgX6z2uN8c9x0QUNbyePGyUGdcgrGnV6TYEJc7KPT8PqeASuzoA5NGw1CiMGvyFAkIGA2KipvhM9d1g==", "license": "MIT", "dependencies": { - "@tanstack/query-devtools": "5.80.0" + "@tanstack/query-devtools": "5.81.2" }, "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "@tanstack/react-query": "^5.80.10", + "@tanstack/react-query": "^5.81.2", "react": "^18 || ^19" } }, @@ -9743,14 +9743,14 @@ } }, "packages/kotlin-actions-artifact": { - "version": "2025.6.5-2.3.2", + "version": "2025.6.6-2.3.2", "dependencies": { "@actions/artifact": "^2.3.2" }, "devDependencies": {} }, "packages/kotlin-actions-cache": { - "version": "2025.6.5-4.0.3", + "version": "2025.6.6-4.0.3", "dependencies": { "@actions/cache": "^4.0.3", "@actions/http-client": "^2.2.3" @@ -9758,70 +9758,70 @@ "devDependencies": {} }, "packages/kotlin-actions-core": { - "version": "2025.6.5-1.11.1", + "version": "2025.6.6-1.11.1", "dependencies": { "@actions/core": "^1.11.1" }, "devDependencies": {} }, "packages/kotlin-actions-exec": { - "version": "2025.6.5-1.1.1", + "version": "2025.6.6-1.1.1", "dependencies": { "@actions/exec": "^1.1.1" }, "devDependencies": {} }, "packages/kotlin-actions-github": { - "version": "2025.6.5-6.0.1", + "version": "2025.6.6-6.0.1", "dependencies": { "@actions/github": "^6.0.1" }, "devDependencies": {} }, "packages/kotlin-actions-glob": { - "version": "2025.6.5-0.5.0", + "version": "2025.6.6-0.5.0", "dependencies": { "@actions/glob": "^0.5.0" }, "devDependencies": {} }, "packages/kotlin-actions-http-client": { - "version": "2025.6.5-2.2.3", + "version": "2025.6.6-2.2.3", "dependencies": { "@actions/http-client": "^2.2.3" }, "devDependencies": {} }, "packages/kotlin-actions-io": { - "version": "2025.6.5-1.1.3", + "version": "2025.6.6-1.1.3", "dependencies": { "@actions/io": "^1.1.3" }, "devDependencies": {} }, "packages/kotlin-actions-tool-cache": { - "version": "2025.6.5-2.0.2", + "version": "2025.6.6-2.0.2", "dependencies": { "@actions/tool-cache": "^2.0.2" }, "devDependencies": {} }, "packages/kotlin-ajv": { - "version": "2025.6.5-8.17.1", + "version": "2025.6.6-8.17.1", "dependencies": { "ajv": "^8.17.1" }, "devDependencies": {} }, "packages/kotlin-ajv-wasm": { - "version": "2025.6.5-8.17.1", + "version": "2025.6.6-8.17.1", "dependencies": { "ajv": "^8.17.1" }, "devDependencies": {} }, "packages/kotlin-ajv-wasm-test": { - "version": "2025.6.5-8.17.1", + "version": "2025.6.6-8.17.1", "dependencies": { "ajv": "^8.17.1" }, @@ -9840,11 +9840,11 @@ } }, "packages/kotlin-browser": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-browser-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -9860,11 +9860,11 @@ } }, "packages/kotlin-browser-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-browser-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -9880,14 +9880,14 @@ } }, "packages/kotlin-cesium-engine": { - "version": "2025.6.5-18.0.0", + "version": "2025.6.6-18.0.0", "dependencies": { "@cesium/engine": "^18.0.0" }, "devDependencies": {} }, "packages/kotlin-cesium-widgets": { - "version": "2025.6.5-12.1.0", + "version": "2025.6.6-12.1.0", "dependencies": { "@cesium/engine": "^18.0.0", "@cesium/widgets": "^12.1.0" @@ -9895,11 +9895,11 @@ "devDependencies": {} }, "packages/kotlin-css": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-css-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -9915,11 +9915,11 @@ } }, "packages/kotlin-css-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-css-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -9935,19 +9935,19 @@ } }, "packages/kotlin-cssom-core": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "csstype": "^3.1.3" } }, "packages/kotlin-cssom-core-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "csstype": "^3.1.3" } }, "packages/kotlin-cssom-core-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "csstype": "^3.1.3", "karma": "6.4.4", @@ -9964,20 +9964,20 @@ } }, "packages/kotlin-csstype": { - "version": "2025.6.5-3.1.3", + "version": "2025.6.6-3.1.3", "devDependencies": { "csstype": "^3.1.3" } }, "packages/kotlin-electron": { - "version": "2025.6.5-33.2.1", + "version": "2025.6.6-33.2.1", "dependencies": { "electron": "^33.2.1" }, "devDependencies": {} }, "packages/kotlin-emotion-cache": { - "version": "2025.6.5-11.14.0", + "version": "2025.6.6-11.14.0", "dependencies": { "@emotion/cache": "^11.14.0", "@emotion/utils": "^1.4.2" @@ -9985,7 +9985,7 @@ "devDependencies": {} }, "packages/kotlin-emotion-css": { - "version": "2025.6.5-11.13.5", + "version": "2025.6.6-11.13.5", "dependencies": { "@emotion/css": "^11.13.5", "@emotion/utils": "^1.4.2" @@ -9993,7 +9993,7 @@ "devDependencies": {} }, "packages/kotlin-emotion-react": { - "version": "2025.6.5-11.14.0", + "version": "2025.6.6-11.14.0", "dependencies": { "@emotion/css": "^11.13.5", "@emotion/react": "^11.14.0", @@ -10003,7 +10003,7 @@ "devDependencies": {} }, "packages/kotlin-emotion-styled": { - "version": "2025.6.5-11.14.0", + "version": "2025.6.6-11.14.0", "dependencies": { "@emotion/css": "^11.13.5", "@emotion/react": "^11.14.0", @@ -10014,21 +10014,21 @@ "devDependencies": {} }, "packages/kotlin-emotion-utils": { - "version": "2025.6.5-1.4.2", + "version": "2025.6.6-1.4.2", "dependencies": { "@emotion/utils": "^1.4.2" }, "devDependencies": {} }, "packages/kotlin-emotion-utils-wasm": { - "version": "2025.6.5-1.4.2", + "version": "2025.6.6-1.4.2", "dependencies": { "@emotion/utils": "^1.4.2" }, "devDependencies": {} }, "packages/kotlin-emotion-utils-wasm-test": { - "version": "2025.6.5-1.4.2", + "version": "2025.6.6-1.4.2", "dependencies": { "@emotion/utils": "^1.4.2" }, @@ -10047,19 +10047,19 @@ } }, "packages/kotlin-js": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-js-core": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-js-core-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-js-core-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -10075,7 +10075,7 @@ } }, "packages/kotlin-js-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -10092,11 +10092,11 @@ } }, "packages/kotlin-js-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-js-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -10112,21 +10112,21 @@ } }, "packages/kotlin-jszip": { - "version": "2025.6.5-3.10.1", + "version": "2025.6.6-3.10.1", "dependencies": { "jszip": "3.10.1" }, "devDependencies": {} }, "packages/kotlin-jszip-wasm": { - "version": "2025.6.5-3.10.1", + "version": "2025.6.6-3.10.1", "dependencies": { "jszip": "3.10.1" }, "devDependencies": {} }, "packages/kotlin-jszip-wasm-test": { - "version": "2025.6.5-3.10.1", + "version": "2025.6.6-3.10.1", "dependencies": { "jszip": "3.10.1" }, @@ -10145,7 +10145,7 @@ } }, "packages/kotlin-mui-base": { - "version": "2025.6.5-5.0.0-beta.40-1", + "version": "2025.6.6-5.0.0-beta.40-1", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/system": "5.17.1", @@ -10156,7 +10156,7 @@ "devDependencies": {} }, "packages/kotlin-mui-icons-material": { - "version": "2025.6.5-5.17.1", + "version": "2025.6.6-5.17.1", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/icons-material": "5.17.1", @@ -10169,7 +10169,7 @@ "devDependencies": {} }, "packages/kotlin-mui-lab": { - "version": "2025.6.5-5.0.0-alpha.176", + "version": "2025.6.6-5.0.0-alpha.176", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/lab": "5.0.0-alpha.176", @@ -10183,7 +10183,7 @@ "devDependencies": {} }, "packages/kotlin-mui-material": { - "version": "2025.6.5-5.17.1", + "version": "2025.6.6-5.17.1", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/material": "5.17.1", @@ -10195,7 +10195,7 @@ "devDependencies": {} }, "packages/kotlin-mui-system": { - "version": "2025.6.5-5.17.1", + "version": "2025.6.6-5.17.1", "dependencies": { "@mui/system": "5.17.1", "react": "^19.1.0", @@ -10204,7 +10204,7 @@ "devDependencies": {} }, "packages/kotlin-muix-date-pickers": { - "version": "2025.6.5-7.28.0", + "version": "2025.6.6-7.28.0", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/material": "5.17.1", @@ -10217,7 +10217,7 @@ "devDependencies": {} }, "packages/kotlin-muix-tree-view": { - "version": "2025.6.5-7.28.0", + "version": "2025.6.6-7.28.0", "dependencies": { "@mui/base": "5.0.0-beta.40-1", "@mui/material": "5.17.1", @@ -10230,13 +10230,13 @@ "devDependencies": {} }, "packages/kotlin-node": { - "version": "2025.6.5-22.13.10", + "version": "2025.6.6-22.13.10", "devDependencies": { "@types/node": "^22.13.10" } }, "packages/kotlin-node-test": { - "version": "2025.6.5-22.13.10", + "version": "2025.6.6-22.13.10", "devDependencies": { "@types/node": "^22.13.10", "kotlin-web-helpers": "2.0.0", @@ -10246,28 +10246,28 @@ } }, "packages/kotlin-null-writable": { - "version": "2025.6.5-2.0.1", + "version": "2025.6.6-2.0.1", "dependencies": { "null-writable": "^2.0.1" }, "devDependencies": {} }, "packages/kotlin-popperjs-core": { - "version": "2025.6.5-2.11.8", + "version": "2025.6.6-2.11.8", "dependencies": { "@popperjs/core": "^2.11.8" }, "devDependencies": {} }, "packages/kotlin-popperjs-core-wasm": { - "version": "2025.6.5-2.11.8", + "version": "2025.6.6-2.11.8", "dependencies": { "@popperjs/core": "^2.11.8" }, "devDependencies": {} }, "packages/kotlin-popperjs-core-wasm-test": { - "version": "2025.6.5-2.11.8", + "version": "2025.6.6-2.11.8", "dependencies": { "@popperjs/core": "^2.11.8" }, @@ -10286,21 +10286,21 @@ } }, "packages/kotlin-prantlf-jsonlint": { - "version": "2025.6.5-16.0.0", + "version": "2025.6.6-16.0.0", "dependencies": { "@prantlf/jsonlint": "^16.0.0" }, "devDependencies": {} }, "packages/kotlin-preact-signals-core": { - "version": "2025.6.5-1.8.0", + "version": "2025.6.6-1.8.0", "dependencies": { "@preact/signals-core": "^1.8.0" }, "devDependencies": {} }, "packages/kotlin-preact-signals-react": { - "version": "2025.6.5-3.0.1", + "version": "2025.6.6-3.0.1", "dependencies": { "@preact/signals-core": "^1.8.0", "@preact/signals-react": "^3.0.1", @@ -10309,14 +10309,14 @@ "devDependencies": {} }, "packages/kotlin-react": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-react-beautiful-dnd": { - "version": "2025.6.5-13.1.1", + "version": "2025.6.6-13.1.1", "dependencies": { "react": "^19.1.0", "react-beautiful-dnd": "^13.1.1", @@ -10325,14 +10325,14 @@ "devDependencies": {} }, "packages/kotlin-react-core": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-react-core-test": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0" }, @@ -10351,7 +10351,7 @@ } }, "packages/kotlin-react-dom": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0", "react-dom": "^19.1.0" @@ -10359,7 +10359,7 @@ "devDependencies": {} }, "packages/kotlin-react-dom-legacy": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0", "react-dom": "^19.1.0" @@ -10367,7 +10367,7 @@ "devDependencies": {} }, "packages/kotlin-react-dom-test-utils": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0", "react-dom": "^19.1.0" @@ -10375,14 +10375,14 @@ "devDependencies": {} }, "packages/kotlin-react-legacy": { - "version": "2025.6.5-19.1.0", + "version": "2025.6.6-19.1.0", "dependencies": { "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-react-popper": { - "version": "2025.6.5-2.3.0", + "version": "2025.6.6-2.3.0", "dependencies": { "@popperjs/core": "^2.11.8", "react": "^19.1.0", @@ -10391,7 +10391,7 @@ "devDependencies": {} }, "packages/kotlin-react-router": { - "version": "2025.6.5-6.28.2", + "version": "2025.6.6-6.28.2", "dependencies": { "@remix-run/router": "^1.21.1", "react": "^19.1.0", @@ -10402,7 +10402,7 @@ "devDependencies": {} }, "packages/kotlin-react-select": { - "version": "2025.6.5-5.10.1", + "version": "2025.6.6-5.10.1", "dependencies": { "react": "^19.1.0", "react-dom": "^19.1.0", @@ -10411,14 +10411,14 @@ "devDependencies": {} }, "packages/kotlin-react-use": { - "version": "2025.6.5", + "version": "2025.6.6", "dependencies": { "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-semver": { - "version": "2025.6.5-7.6.3", + "version": "2025.6.6-7.6.3", "dependencies": { "semver": "^7.6.3" }, @@ -10427,7 +10427,7 @@ } }, "packages/kotlin-styled-next": { - "version": "2025.6.5", + "version": "2025.6.6", "dependencies": { "inline-style-prefixer": "^7.0.1", "react": "^19.1.0", @@ -10436,7 +10436,7 @@ "devDependencies": {} }, "packages/kotlin-styled-next-test": { - "version": "2025.6.5", + "version": "2025.6.6", "dependencies": { "inline-style-prefixer": "^7.0.1", "react": "^19.1.0", @@ -10450,7 +10450,7 @@ "karma-webpack": "5.0.1", "kotlin-web-helpers": "2.0.0", "mocha": "10.7.3", - "puppeteer": "^24.10.0", + "puppeteer": "^24.10.2", "source-map-loader": "5.0.0", "typescript": "^5.7.2", "webpack": "5.99.9", @@ -10458,31 +10458,31 @@ } }, "packages/kotlin-tanstack-query-core": { - "version": "2025.6.5-5.80.7", + "version": "2025.6.6-5.81.2", "dependencies": { - "@tanstack/query-core": "^5.80.7" + "@tanstack/query-core": "^5.81.2" }, "devDependencies": {} }, "packages/kotlin-tanstack-react-query": { - "version": "2025.6.5-5.80.7", + "version": "2025.6.6-5.81.2", "dependencies": { - "@tanstack/query-core": "^5.80.7", - "@tanstack/react-query": "^5.80.7", + "@tanstack/query-core": "^5.81.2", + "@tanstack/react-query": "^5.81.2", "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-tanstack-react-query-devtools": { - "version": "2025.6.5-5.80.7", + "version": "2025.6.6-5.81.2", "dependencies": { - "@tanstack/react-query-devtools": "^5.80.7", + "@tanstack/react-query-devtools": "^5.81.2", "react": "^19.1.0" }, "devDependencies": {} }, "packages/kotlin-tanstack-react-table": { - "version": "2025.6.5-8.21.3", + "version": "2025.6.6-8.21.3", "dependencies": { "@tanstack/react-table": "^8.21.3", "@tanstack/table-core": "^8.21.3", @@ -10491,7 +10491,7 @@ "devDependencies": {} }, "packages/kotlin-tanstack-react-virtual": { - "version": "2025.6.5-3.13.10", + "version": "2025.6.6-3.13.10", "dependencies": { "@tanstack/react-virtual": "^3.13.10", "@tanstack/virtual-core": "^3.13.10" @@ -10499,39 +10499,39 @@ "devDependencies": {} }, "packages/kotlin-tanstack-table-core": { - "version": "2025.6.5-8.21.3", + "version": "2025.6.6-8.21.3", "dependencies": { "@tanstack/table-core": "^8.21.3" }, "devDependencies": {} }, "packages/kotlin-tanstack-virtual-core": { - "version": "2025.6.5-3.13.10", + "version": "2025.6.6-3.13.10", "dependencies": { "@tanstack/virtual-core": "^3.13.10" }, "devDependencies": {} }, "packages/kotlin-typescript": { - "version": "2025.6.5-5.7.2", + "version": "2025.6.6-5.7.2", "dependencies": { "typescript": "^5.7.2" }, "devDependencies": {} }, "packages/kotlin-vercel-ncc": { - "version": "2025.6.5-0.38.3", + "version": "2025.6.6-0.38.3", "dependencies": { "@vercel/ncc": "^0.38.3" }, "devDependencies": {} }, "packages/kotlin-web": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-web-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -10548,11 +10548,11 @@ } }, "packages/kotlin-web-wasm": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": {} }, "packages/kotlin-web-wasm-test": { - "version": "2025.6.5", + "version": "2025.6.6", "devDependencies": { "karma": "6.4.4", "karma-chrome-launcher": "3.2.0", @@ -10568,21 +10568,21 @@ } }, "packages/kotlin-yaml": { - "version": "2025.6.5-2.7.1", + "version": "2025.6.6-2.7.1", "dependencies": { "yaml": "^2.7.1" }, "devDependencies": {} }, "packages/kotlin-yaml-wasm": { - "version": "2025.6.5-2.7.1", + "version": "2025.6.6-2.7.1", "dependencies": { "yaml": "^2.7.1" }, "devDependencies": {} }, "packages/kotlin-yaml-wasm-test": { - "version": "2025.6.5-2.7.1", + "version": "2025.6.6-2.7.1", "dependencies": { "yaml": "^2.7.1" },