plain.htmx 0.10.4__tar.gz → 0.11.1__tar.gz
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.
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/PKG-INFO +1 -1
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/CHANGELOG.md +20 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/plainhtmx.js +7 -0
- plain_htmx-0.11.1/plain/htmx/templates/htmx/js.html +18 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/templates.py +1 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/pyproject.toml +1 -1
- plain_htmx-0.10.4/plain/htmx/templates/htmx/js.html +0 -18
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/.gitignore +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/LICENSE +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/README.md +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/deps.yml +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/package-lock.json +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/package.json +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/README.md +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/__init__.py +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-ext.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-ext.min.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-htmx.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.amd.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.cjs.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.esm.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.min.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/README.md +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/ajax-header.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/alpine-morph.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/class-tools.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/client-side-templates.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/debug.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/disable-element.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/event-header.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/head-support.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/include-vals.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/json-enc.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/loading-states.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/method-override.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/morphdom-swap.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/multi-swap.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/path-deps.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/path-params.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/preload.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/rails-method.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/remove-me.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/response-targets.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/restored.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/sse.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/ws.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.amd.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.cjs.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.esm.d.ts +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.esm.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.min.js +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/htmx.min.js.gz +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/views.py +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/tests/app/settings.py +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/tests/app/urls.py +0 -0
- {plain_htmx-0.10.4 → plain_htmx-0.11.1}/tests/test_views.py +0 -0
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# plain-htmx changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/dropseed/plain/releases/plain-htmx@0.11.1) (2025-10-31)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Added CSP nonce support to all htmx script tags for improved Content Security Policy compatibility ([10f642a](https://github.com/dropseed/plain/commit/10f642a097))
|
|
8
|
+
|
|
9
|
+
### Upgrade instructions
|
|
10
|
+
|
|
11
|
+
- No changes required
|
|
12
|
+
|
|
13
|
+
## [0.11.0](https://github.com/dropseed/plain/releases/plain-htmx@0.11.0) (2025-10-29)
|
|
14
|
+
|
|
15
|
+
### What's changed
|
|
16
|
+
|
|
17
|
+
- Added Content Security Policy (CSP) nonce support for inline scripts and styles generated by htmx ([784f3dd](https://github.com/dropseed/plain/commit/784f3dd972))
|
|
18
|
+
|
|
19
|
+
### Upgrade instructions
|
|
20
|
+
|
|
21
|
+
- No changes required
|
|
22
|
+
|
|
3
23
|
## [0.10.4](https://github.com/dropseed/plain/releases/plain-htmx@0.10.4) (2025-10-20)
|
|
4
24
|
|
|
5
25
|
### What's changed
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
(() => {
|
|
2
|
+
// Get nonce from our own script tag's data attribute
|
|
3
|
+
const nonce = document.currentScript?.getAttribute("data-csp-nonce");
|
|
4
|
+
|
|
5
|
+
// Configure htmx for CSP compatibility
|
|
6
|
+
htmx.config.inlineScriptNonce = nonce;
|
|
7
|
+
htmx.config.inlineStyleNonce = nonce;
|
|
8
|
+
|
|
2
9
|
htmx.defineExtension("plain-views", {
|
|
3
10
|
init() {
|
|
4
11
|
// Set or append this extension to the body hx-ext automatically
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{%- if DEBUG -%}
|
|
2
|
+
<script src="{{ asset('htmx/vendor/src/htmx.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
3
|
+
{%- else -%}
|
|
4
|
+
<script src="{{ asset('htmx/vendor/src/htmx.min.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
5
|
+
{%- endif -%}
|
|
6
|
+
|
|
7
|
+
{%- if DEBUG -%}
|
|
8
|
+
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
9
|
+
{%- else -%}
|
|
10
|
+
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph.min.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
11
|
+
{%- endif -%}
|
|
12
|
+
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph-htmx.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
13
|
+
|
|
14
|
+
{%- for extension in extensions -%}
|
|
15
|
+
<script src="{{ asset('htmx/vendor/src/ext/' ~ extension ~ '.js') }}" defer nonce="{{ csp_nonce }}"></script>
|
|
16
|
+
{%- endfor -%}
|
|
17
|
+
|
|
18
|
+
<script src="{{ asset('htmx/plainhtmx.js') }}" defer nonce="{{ csp_nonce }}" data-csp-nonce="{{ csp_nonce }}"></script>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{%- if DEBUG -%}
|
|
2
|
-
<script src="{{ asset('htmx/vendor/src/htmx.js') }}" defer></script>
|
|
3
|
-
{%- else -%}
|
|
4
|
-
<script src="{{ asset('htmx/vendor/src/htmx.min.js') }}" defer></script>
|
|
5
|
-
{%- endif -%}
|
|
6
|
-
|
|
7
|
-
{%- if DEBUG -%}
|
|
8
|
-
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph.js') }}" defer></script>
|
|
9
|
-
{%- else -%}
|
|
10
|
-
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph.min.js') }}" defer></script>
|
|
11
|
-
{%- endif -%}
|
|
12
|
-
<script src="{{ asset('htmx/vendor/idiomorph/idiomorph-htmx.js') }}" defer></script>
|
|
13
|
-
|
|
14
|
-
{%- for extension in extensions -%}
|
|
15
|
-
<script src="{{ asset('htmx/vendor/src/ext/' ~ extension ~ '.js') }}" defer></script>
|
|
16
|
-
{%- endfor -%}
|
|
17
|
-
|
|
18
|
-
<script src="{{ asset('htmx/plainhtmx.js') }}" defer></script>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-ext.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-ext.min.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph-htmx.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.amd.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.cjs.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.esm.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/idiomorph/idiomorph.min.js
RENAMED
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/ajax-header.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/alpine-morph.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/class-tools.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/disable-element.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/event-header.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/head-support.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/include-vals.js
RENAMED
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/loading-states.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/method-override.js
RENAMED
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/morphdom-swap.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/path-params.js
RENAMED
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/rails-method.js
RENAMED
|
File without changes
|
|
File without changes
|
{plain_htmx-0.10.4 → plain_htmx-0.11.1}/plain/htmx/assets/htmx/vendor/src/ext/response-targets.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|