diff --git a/editors/jetbrains/htmx.web-types b/editors/jetbrains/htmx.web-types.json similarity index 87% rename from editors/jetbrains/htmx.web-types rename to editors/jetbrains/htmx.web-types.json index e5409e0f..5694760e 100644 --- a/editors/jetbrains/htmx.web-types +++ b/editors/jetbrains/htmx.web-types.json @@ -1,7 +1,7 @@ { - "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/v2-preview/web-types.json", + "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json", "name": "htmx", - "version": "0.0.0", + "version": "1.0.0", "js-types-syntax": "typescript", "description-markup": "markdown", "contributions": { @@ -248,8 +248,35 @@ "doc-url": "https://htmx.org/attributes/hx-ws" } ] + }, + "css": { + "classes": [ + { + "name": "htmx-added", + "description": "Applied to a new piece of content before it is swapped, removed after it is settled.", + "doc-url": "https://htmx.org/reference/#classes" + }, + { + "name": "htmx-indicator", + "description": "A dynamically generated class that will toggle visible (opacity:1) when a `htmx-request` class is present.", + "doc-url": "https://htmx.org/reference/#classes" + }, + { + "name": "htmx-request", + "description": "Applied to either the element or the element specified with `hx-indicator` while a request is ongoing.", + "doc-url": "https://htmx.org/reference/#classes" + }, + { + "name": "htmx-settling", + "description": "Applied to a target after content is swapped, removed after it is settled. The duration can be modified via `hx-swap`.", + "doc-url": "https://htmx.org/reference/#classes" + }, + { + "name": "htmx-swapping", + "description": "Applied to a target before any content is swapped, removed after it is swapped. The duration can be modified via `hx-swap`.", + "doc-url": "https://htmx.org/reference/#classes" + } + ] } } } - -| [`hx-ws`](/extensions/websockets) | has been moved to an extension. [Documentation for older versions](/attributes/hx-ws) \ No newline at end of file diff --git a/package.json b/package.json index fa479845..834bb7dc 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "main": "dist/htmx.min.js", "types": "src/htmx.d.ts", "unpkg": "dist/htmx.min.js", + "web-types": "editors/jetbrains/htmx.web-types.json", "scripts": { "test": "mocha-chrome test/index.html", "test-types": "tsc --project ./jsconfig.json", diff --git a/www/examples/active-search.md b/www/examples/active-search.md index b8d2ff04..b21e48dd 100644 --- a/www/examples/active-search.md +++ b/www/examples/active-search.md @@ -17,7 +17,7 @@ We start with a search input and an empty table: diff --git a/www/headers/hx-location.md b/www/headers/hx-location.md index a9310b0e..aa23edcb 100644 --- a/www/headers/hx-location.md +++ b/www/headers/hx-location.md @@ -10,7 +10,7 @@ This response header can be used to trigger a client side redirection without re A sample response would be: -``` +```html HX-Location: /test ``` @@ -19,7 +19,7 @@ Which would push the client to test as if the user had clicked on `