mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-26 20:40:41 +00:00
update release
This commit is contained in:
parent
f751aba86f
commit
c3ecbcc8d8
9
dist/htmx.amd.js
vendored
9
dist/htmx.amd.js
vendored
@ -278,7 +278,7 @@ var htmx = (function() {
|
||||
parseInterval: null,
|
||||
/** @type {typeof internalEval} */
|
||||
_: null,
|
||||
version: '2.0.0'
|
||||
version: '2.0.1'
|
||||
}
|
||||
// Tsc madness part 2
|
||||
htmx.onLoad = onLoadHelper
|
||||
@ -1627,6 +1627,9 @@ var htmx = (function() {
|
||||
* @param {HtmxSettleInfo} settleInfo
|
||||
*/
|
||||
function swapOuterHTML(target, fragment, settleInfo) {
|
||||
if (target instanceof Element && target.tagName === 'BODY') { // special case the body to innerHTML because DocumentFragments can't contain a body elt unfortunately
|
||||
return swapInnerHTML(target, fragment, settleInfo)
|
||||
}
|
||||
/** @type {Node} */
|
||||
let newElt
|
||||
const eltBeforeNewContent = target.previousSibling
|
||||
@ -1852,7 +1855,7 @@ var htmx = (function() {
|
||||
findAndSwapOobElements(fragment, settleInfo)
|
||||
forEach(findAll(fragment, 'template'), /** @param {HTMLTemplateElement} template */function(template) {
|
||||
findAndSwapOobElements(template.content, settleInfo)
|
||||
if (template.content.childElementCount === 0) {
|
||||
if (template.content.childElementCount === 0 && template.content.textContent.trim() === '') {
|
||||
// Avoid polluting the DOM with empty templates that were only used to encapsulate oob swap
|
||||
template.remove()
|
||||
}
|
||||
@ -5034,7 +5037,7 @@ var htmx = (function() {
|
||||
* @property {Element|string} [source]
|
||||
* @property {Event} [event]
|
||||
* @property {HtmxAjaxHandler} [handler]
|
||||
* @property {Element|string} target
|
||||
* @property {Element|string} [target]
|
||||
* @property {HtmxSwapStyle} [swap]
|
||||
* @property {Object|FormData} [values]
|
||||
* @property {Record<string,string>} [headers]
|
||||
|
9
dist/htmx.cjs.js
vendored
9
dist/htmx.cjs.js
vendored
@ -277,7 +277,7 @@ var htmx = (function() {
|
||||
parseInterval: null,
|
||||
/** @type {typeof internalEval} */
|
||||
_: null,
|
||||
version: '2.0.0'
|
||||
version: '2.0.1'
|
||||
}
|
||||
// Tsc madness part 2
|
||||
htmx.onLoad = onLoadHelper
|
||||
@ -1626,6 +1626,9 @@ var htmx = (function() {
|
||||
* @param {HtmxSettleInfo} settleInfo
|
||||
*/
|
||||
function swapOuterHTML(target, fragment, settleInfo) {
|
||||
if (target instanceof Element && target.tagName === 'BODY') { // special case the body to innerHTML because DocumentFragments can't contain a body elt unfortunately
|
||||
return swapInnerHTML(target, fragment, settleInfo)
|
||||
}
|
||||
/** @type {Node} */
|
||||
let newElt
|
||||
const eltBeforeNewContent = target.previousSibling
|
||||
@ -1851,7 +1854,7 @@ var htmx = (function() {
|
||||
findAndSwapOobElements(fragment, settleInfo)
|
||||
forEach(findAll(fragment, 'template'), /** @param {HTMLTemplateElement} template */function(template) {
|
||||
findAndSwapOobElements(template.content, settleInfo)
|
||||
if (template.content.childElementCount === 0) {
|
||||
if (template.content.childElementCount === 0 && template.content.textContent.trim() === '') {
|
||||
// Avoid polluting the DOM with empty templates that were only used to encapsulate oob swap
|
||||
template.remove()
|
||||
}
|
||||
@ -5033,7 +5036,7 @@ var htmx = (function() {
|
||||
* @property {Element|string} [source]
|
||||
* @property {Event} [event]
|
||||
* @property {HtmxAjaxHandler} [handler]
|
||||
* @property {Element|string} target
|
||||
* @property {Element|string} [target]
|
||||
* @property {HtmxSwapStyle} [swap]
|
||||
* @property {Object|FormData} [values]
|
||||
* @property {Record<string,string>} [headers]
|
||||
|
2
dist/htmx.d.ts
vendored
2
dist/htmx.d.ts
vendored
@ -113,7 +113,7 @@ type HtmxAjaxHelperContext = {
|
||||
source?: Element | string;
|
||||
event?: Event;
|
||||
handler?: HtmxAjaxHandler;
|
||||
target: Element | string;
|
||||
target?: Element | string;
|
||||
swap?: HtmxSwapStyle;
|
||||
values?: any | FormData;
|
||||
headers?: Record<string, string>;
|
||||
|
9
dist/htmx.esm.js
vendored
9
dist/htmx.esm.js
vendored
@ -277,7 +277,7 @@ var htmx = (function() {
|
||||
parseInterval: null,
|
||||
/** @type {typeof internalEval} */
|
||||
_: null,
|
||||
version: '2.0.0'
|
||||
version: '2.0.1'
|
||||
}
|
||||
// Tsc madness part 2
|
||||
htmx.onLoad = onLoadHelper
|
||||
@ -1626,6 +1626,9 @@ var htmx = (function() {
|
||||
* @param {HtmxSettleInfo} settleInfo
|
||||
*/
|
||||
function swapOuterHTML(target, fragment, settleInfo) {
|
||||
if (target instanceof Element && target.tagName === 'BODY') { // special case the body to innerHTML because DocumentFragments can't contain a body elt unfortunately
|
||||
return swapInnerHTML(target, fragment, settleInfo)
|
||||
}
|
||||
/** @type {Node} */
|
||||
let newElt
|
||||
const eltBeforeNewContent = target.previousSibling
|
||||
@ -1851,7 +1854,7 @@ var htmx = (function() {
|
||||
findAndSwapOobElements(fragment, settleInfo)
|
||||
forEach(findAll(fragment, 'template'), /** @param {HTMLTemplateElement} template */function(template) {
|
||||
findAndSwapOobElements(template.content, settleInfo)
|
||||
if (template.content.childElementCount === 0) {
|
||||
if (template.content.childElementCount === 0 && template.content.textContent.trim() === '') {
|
||||
// Avoid polluting the DOM with empty templates that were only used to encapsulate oob swap
|
||||
template.remove()
|
||||
}
|
||||
@ -5033,7 +5036,7 @@ var htmx = (function() {
|
||||
* @property {Element|string} [source]
|
||||
* @property {Event} [event]
|
||||
* @property {HtmxAjaxHandler} [handler]
|
||||
* @property {Element|string} target
|
||||
* @property {Element|string} [target]
|
||||
* @property {HtmxSwapStyle} [swap]
|
||||
* @property {Object|FormData} [values]
|
||||
* @property {Record<string,string>} [headers]
|
||||
|
9
dist/htmx.js
vendored
9
dist/htmx.js
vendored
@ -277,7 +277,7 @@ var htmx = (function() {
|
||||
parseInterval: null,
|
||||
/** @type {typeof internalEval} */
|
||||
_: null,
|
||||
version: '2.0.0'
|
||||
version: '2.0.1'
|
||||
}
|
||||
// Tsc madness part 2
|
||||
htmx.onLoad = onLoadHelper
|
||||
@ -1626,6 +1626,9 @@ var htmx = (function() {
|
||||
* @param {HtmxSettleInfo} settleInfo
|
||||
*/
|
||||
function swapOuterHTML(target, fragment, settleInfo) {
|
||||
if (target instanceof Element && target.tagName === 'BODY') { // special case the body to innerHTML because DocumentFragments can't contain a body elt unfortunately
|
||||
return swapInnerHTML(target, fragment, settleInfo)
|
||||
}
|
||||
/** @type {Node} */
|
||||
let newElt
|
||||
const eltBeforeNewContent = target.previousSibling
|
||||
@ -1851,7 +1854,7 @@ var htmx = (function() {
|
||||
findAndSwapOobElements(fragment, settleInfo)
|
||||
forEach(findAll(fragment, 'template'), /** @param {HTMLTemplateElement} template */function(template) {
|
||||
findAndSwapOobElements(template.content, settleInfo)
|
||||
if (template.content.childElementCount === 0) {
|
||||
if (template.content.childElementCount === 0 && template.content.textContent.trim() === '') {
|
||||
// Avoid polluting the DOM with empty templates that were only used to encapsulate oob swap
|
||||
template.remove()
|
||||
}
|
||||
@ -5033,7 +5036,7 @@ var htmx = (function() {
|
||||
* @property {Element|string} [source]
|
||||
* @property {Event} [event]
|
||||
* @property {HtmxAjaxHandler} [handler]
|
||||
* @property {Element|string} target
|
||||
* @property {Element|string} [target]
|
||||
* @property {HtmxSwapStyle} [swap]
|
||||
* @property {Object|FormData} [values]
|
||||
* @property {Record<string,string>} [headers]
|
||||
|
2
dist/htmx.min.js
vendored
2
dist/htmx.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/htmx.min.js.gz
vendored
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user