-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @SinceKotlin to kotlinx.browser and kotlinx.dom packages
Add @DeprecatedSinceKotlin to kotlin.browser and kotlin.dom packages (cherry picked from commit d86c142)
- Loading branch information
Showing
16 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val document: org.w3c.dom.Document { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val localStorage: org.w3c.dom.Storage { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val sessionStorage: org.w3c.dom.Storage { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val window: org.w3c.dom.Window { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; } | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; } | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public external val document: org.w3c.dom.Document { get; } | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public external val localStorage: org.w3c.dom.Storage { get; } | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public external val sessionStorage: org.w3c.dom.Storage { get; } | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public external val window: org.w3c.dom.Window { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; } | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public val org.w3c.dom.Node.isText: kotlin.Boolean { get; } | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Element.appendElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Node.clear(): kotlin.Unit | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Document.createElement(name: kotlin.String, init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean | ||
/*∆*/ | ||
/*∆*/ @kotlin.SinceKotlin(version = "1.4") | ||
/*∆*/ public fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.document' instead.", replaceWith = kotlin.ReplaceWith(expression = "document", imports = {"kotlinx.browser.document"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val document: org.w3c.dom.Document { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.localStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "localStorage", imports = {"kotlinx.browser.localStorage"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val localStorage: org.w3c.dom.Storage { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.sessionStorage' instead.", replaceWith = kotlin.ReplaceWith(expression = "sessionStorage", imports = {"kotlinx.browser.sessionStorage"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val sessionStorage: org.w3c.dom.Storage { get; } | ||
|
||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.browser.window' instead.", replaceWith = kotlin.ReplaceWith(expression = "window", imports = {"kotlinx.browser.window"})) | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public external val window: org.w3c.dom.Window { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isElement", imports = {"kotlinx.dom.isElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public val org.w3c.dom.Node.isElement: kotlin.Boolean { get; } | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.isText", imports = {"kotlinx.dom.isText"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public val org.w3c.dom.Node.isText: kotlin.Boolean { get; } | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.addClass(cssClasses)", imports = {"kotlinx.dom.addClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.addClass(vararg cssClasses: kotlin.String): kotlin.Boolean | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendElement(name, init)", imports = {"kotlinx.dom.appendElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.appendElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.appendText(text)", imports = {"kotlinx.dom.appendText"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.appendText(text: kotlin.String): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.clear()", imports = {"kotlinx.dom.clear"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Node.clear(): kotlin.Unit | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.createElement(name, init)", imports = {"kotlinx.dom.createElement"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Document.createElement(name: kotlin.String, noinline init: org.w3c.dom.Element.() -> kotlin.Unit): org.w3c.dom.Element | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.hasClass(cssClass)", imports = {"kotlinx.dom.hasClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.hasClass(cssClass: kotlin.String): kotlin.Boolean | ||
|
||
@kotlin.internal.LowPriorityInOverloadResolution | ||
@kotlin.Deprecated(message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.", replaceWith = kotlin.ReplaceWith(expression = "this.removeClass(cssClasses)", imports = {"kotlinx.dom.removeClass"})) | ||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") | ||
public inline fun org.w3c.dom.Element.removeClass(vararg cssClasses: kotlin.String): kotlin.Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters