htmx.org 1.9.9 → 2.0.0-alpha1
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/CHANGELOG.md +8 -0
- package/LICENSE +13 -25
- package/README.md +1 -1
- package/dist/ext/path-params.js +11 -0
- package/dist/htmx.amd.js +3629 -0
- package/dist/htmx.cjs.js +3627 -0
- package/dist/htmx.d.ts +36 -0
- package/dist/htmx.esm.js +3627 -0
- package/dist/htmx.js +3512 -3741
- package/dist/htmx.min.js +1 -1
- package/dist/htmx.min.js.gz +0 -0
- package/package.json +42 -12
- package/dist/ext/ajax-header.js +0 -7
- package/dist/ext/alpine-morph.js +0 -16
- package/dist/ext/class-tools.js +0 -92
- package/dist/ext/client-side-templates.js +0 -96
- package/dist/ext/debug.js +0 -11
- package/dist/ext/disable-element.js +0 -18
- package/dist/ext/event-header.js +0 -37
- package/dist/ext/head-support.js +0 -141
- package/dist/ext/include-vals.js +0 -24
- package/dist/ext/json-enc.js +0 -12
- package/dist/ext/loading-states.js +0 -183
- package/dist/ext/method-override.js +0 -11
- package/dist/ext/morphdom-swap.js +0 -17
- package/dist/ext/multi-swap.js +0 -45
- package/dist/ext/path-deps.js +0 -60
- package/dist/ext/preload.js +0 -147
- package/dist/ext/rails-method.js +0 -10
- package/dist/ext/remove-me.js +0 -27
- package/dist/ext/response-targets.js +0 -130
- package/dist/ext/restored.js +0 -15
- package/dist/ext/sse.js +0 -322
- package/dist/ext/ws.js +0 -477
package/dist/htmx.d.ts
CHANGED
|
@@ -400,6 +400,42 @@ export interface HtmxConfig {
|
|
|
400
400
|
* @default true
|
|
401
401
|
*/
|
|
402
402
|
scrollIntoViewOnBoost?: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* If set, the nonce will be added to inline scripts.
|
|
405
|
+
* @default ''
|
|
406
|
+
*/
|
|
407
|
+
inlineScriptNonce?: string;
|
|
408
|
+
/**
|
|
409
|
+
* The type of binary data being received over the WebSocket connection
|
|
410
|
+
* @default 'blob'
|
|
411
|
+
*/
|
|
412
|
+
wsBinaryType?: 'blob' | 'arraybuffer';
|
|
413
|
+
/**
|
|
414
|
+
* If set to true htmx will include a cache-busting parameter in GET requests to avoid caching partial responses by the browser
|
|
415
|
+
* @default false
|
|
416
|
+
*/
|
|
417
|
+
getCacheBusterParam?: boolean;
|
|
418
|
+
/**
|
|
419
|
+
* If set to true, htmx will use the View Transition API when swapping in new content.
|
|
420
|
+
* @default false
|
|
421
|
+
*/
|
|
422
|
+
globalViewTransitions?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* htmx will format requests with these methods by encoding their parameters in the URL, not the request body
|
|
425
|
+
* @default ["get"]
|
|
426
|
+
*/
|
|
427
|
+
methodsThatUseUrlParams?: ('get' | 'head' | 'post' | 'put' | 'delete' | 'connect' | 'options' | 'trace' | 'patch' )[];
|
|
428
|
+
/**
|
|
429
|
+
* If set to true htmx will not update the title of the document when a title tag is found in new content
|
|
430
|
+
* @default false
|
|
431
|
+
*/
|
|
432
|
+
ignoreTitle:? boolean;
|
|
433
|
+
/**
|
|
434
|
+
* The cache to store evaluated trigger specifications into.
|
|
435
|
+
* You may define a simple object to use a never-clearing cache, or implement your own system using a [proxy object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Proxy)
|
|
436
|
+
* @default null
|
|
437
|
+
*/
|
|
438
|
+
triggerSpecsCache?: {[trigger: string]: HtmxTriggerSpecification[]};
|
|
403
439
|
}
|
|
404
440
|
|
|
405
441
|
/**
|