mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-26 20:40:41 +00:00
Web Types: rename, update schema, add css classes and register in package.json (#1101)
This commit is contained in:
parent
bc12d80281
commit
57394ce373
@ -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)
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user