htmx.org 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ directly in HTML, using [attributes](https://htmx.org/reference#attributes), so
17
17
 
18
18
  htmx is small ([~14k min.gz'd](https://unpkg.com/htmx.org/dist/)),
19
19
  [dependency-free](https://github.com/bigskysoftware/htmx/blob/master/package.json) &
20
- [extendable](https://extensions.htmx.org/)
20
+ [extendable](https://htmx.org/extensions)
21
21
 
22
22
  ## motivation
23
23
 
@@ -32,7 +32,7 @@ By removing these arbitrary constraints htmx completes HTML as a
32
32
  ## quick start
33
33
 
34
34
  ```html
35
- <script src="https://unpkg.com/htmx.org@2.0.2"></script>
35
+ <script src="https://unpkg.com/htmx.org@2.0.4"></script>
36
36
  <!-- have a button POST a click via AJAX -->
37
37
  <button hx-post="/clicked" hx-swap="outerHTML">
38
38
  Click Me
@@ -4,6 +4,6 @@ These are legacy extensions for htmx 1.x and are **NOT** actively maintained or
4
4
  They are here because we unfortunately linked to unversioned unpkg URLs in the installation guides for them
5
5
  in 1.x, so we need to keep them here to preserve those URLs and not break existing users functionality.
6
6
 
7
- If you are looking for extensions for htmx 2.x, please see the [htmx 2.0 extensions site](https://extensions.htmx.org),
7
+ If you are looking for extensions for htmx 2.x, please see the [htmx 2.0 extensions site](https://htmx.org/extensions),
8
8
  which has links to the new extensions repos (They have all been moved to their own NPM projects and URLs, like
9
9
  they should have been from the start!)
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('ajax-header', {
6
6
  onEvent: function (name, evt) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('alpine-morph', {
6
6
  isInlineSwap: function (swapStyle) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  if (htmx.version && !htmx.version.startsWith("1.")) {
4
4
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
5
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
5
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
6
6
  }
7
7
 
8
8
  function splitOnWhitespace(trigger) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('client-side-templates', {
6
6
  transformResponse : function(text, xhr, elt) {
package/dist/ext/debug.js CHANGED
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('debug', {
6
6
  onEvent: function (name, evt) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  // Disable Submit Button
6
6
  htmx.defineExtension('disable-element', {
@@ -1,7 +1,7 @@
1
1
  (function(){
2
2
  if (htmx.version && !htmx.version.startsWith("1.")) {
3
3
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
4
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
4
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
5
5
  }
6
6
  function stringifyEvent(event) {
7
7
  var obj = {};
@@ -7,7 +7,7 @@
7
7
 
8
8
  if (htmx.version && !htmx.version.startsWith("1.")) {
9
9
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
10
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
10
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
11
11
  }
12
12
 
13
13
  var api = null;
@@ -1,7 +1,7 @@
1
1
  (function(){
2
2
  if (htmx.version && !htmx.version.startsWith("1.")) {
3
3
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
4
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
4
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
5
5
  }
6
6
 
7
7
  function mergeObjects(obj1, obj2) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('json-enc', {
6
6
  onEvent: function (name, evt) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  if (htmx.version && !htmx.version.startsWith("1.")) {
4
4
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
5
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
5
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
6
6
  }
7
7
 
8
8
  let loadingStatesUndoQueue = []
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('method-override', {
6
6
  onEvent: function (name, evt) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('morphdom-swap', {
6
6
  isInlineSwap: function(swapStyle) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  if (htmx.version && !htmx.version.startsWith("1.")) {
4
4
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
5
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
5
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
6
6
  }
7
7
 
8
8
  /** @type {import("../htmx").HtmxInternalApi} */
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  if (htmx.version && !htmx.version.startsWith("1.")) {
4
4
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
5
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
5
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
6
6
  }
7
7
  // Save a reference to the global object (window in the browser)
8
8
  var _root = this;
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('path-params', {
6
6
  onEvent: function(name, evt) {
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  // This adds the "preload" extension to htmx. By default, this will
6
6
  // preload the targets of any tags with `href` or `hx-get` attributes
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('rails-method', {
6
6
  onEvent: function (name, evt) {
@@ -1,7 +1,7 @@
1
1
  (function(){
2
2
  if (htmx.version && !htmx.version.startsWith("1.")) {
3
3
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
4
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
4
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
5
5
  }
6
6
  function maybeRemoveMe(elt) {
7
7
  var timing = elt.getAttribute("remove-me") || elt.getAttribute("data-remove-me");
@@ -2,7 +2,7 @@
2
2
 
3
3
  if (htmx.version && !htmx.version.startsWith("1.")) {
4
4
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
5
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
5
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
6
6
  }
7
7
 
8
8
  /** @type {import("../htmx").HtmxInternalApi} */
@@ -1,6 +1,6 @@
1
1
  if (htmx.version && !htmx.version.startsWith("1.")) {
2
2
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
3
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
3
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
4
4
  }
5
5
  htmx.defineExtension('restored', {
6
6
  onEvent : function(name, evt) {
package/dist/ext/sse.js CHANGED
@@ -9,7 +9,7 @@ This extension adds support for Server Sent Events to htmx. See /www/extensions
9
9
 
10
10
  if (htmx.version && !htmx.version.startsWith("1.")) {
11
11
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
12
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
12
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
13
13
  }
14
14
 
15
15
  /** @type {import("../htmx").HtmxInternalApi} */
package/dist/ext/ws.js CHANGED
@@ -8,7 +8,7 @@ This extension adds support for WebSockets to htmx. See /www/extensions/ws.md f
8
8
 
9
9
  if (htmx.version && !htmx.version.startsWith("1.")) {
10
10
  console.warn("WARNING: You are using an htmx 1 extension with htmx " + htmx.version +
11
- ". It is recommended that you move to the version of this extension found on https://extensions.htmx.org")
11
+ ". It is recommended that you move to the version of this extension found on https://htmx.org/extensions")
12
12
  }
13
13
 
14
14
  /** @type {import("../htmx").HtmxInternalApi} */