djhtmx 1.2.1__tar.gz → 1.2.2__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.
- {djhtmx-1.2.1 → djhtmx-1.2.2}/CHANGELOG.md +9 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/PKG-INFO +1 -1
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/__init__.py +1 -1
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/django.js +0 -11
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/urls.py +2 -1
- {djhtmx-1.2.1 → djhtmx-1.2.2}/.gitignore +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/LICENSE +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/MANIFEST.in +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/README.md +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/pyproject.toml +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/apps.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/command_queue.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/commands.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/component.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/consumer.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/context.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/exceptions.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/global_events.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/introspection.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/json.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/management/commands/htmx.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/middleware.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/query.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/repo.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/settings.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/ext/ws.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.amd.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.cjs.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.esm.d.ts +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.esm.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/static/htmx/2.0.4/htmx.min.js +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/templates/htmx/headers.html +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/templates/htmx/lazy.html +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/templatetags/__init__.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/templatetags/htmx.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/testing.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/tracing.py +0 -0
- {djhtmx-1.2.1 → djhtmx-1.2.2}/src/djhtmx/utils.py +0 -0
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.2] - 2025-10-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fixed tests related to component template names
|
|
14
|
+
- Removed CSRF verification on endpoint
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Removed redundant code-quality workflow
|
|
18
|
+
|
|
10
19
|
## [1.2.1] - 2025-10-01
|
|
11
20
|
|
|
12
21
|
### Added
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
(function () {
|
|
2
|
-
document.body.addEventListener("htmx:configRequest", (event) => {
|
|
3
|
-
const csrf_header = document
|
|
4
|
-
.querySelector("meta[name=django-csrf-header-name]")
|
|
5
|
-
.getAttribute("content");
|
|
6
|
-
const csrf_token = document
|
|
7
|
-
.querySelector("meta[name=django-csrf-token]")
|
|
8
|
-
.getAttribute("content");
|
|
9
|
-
|
|
10
|
-
event.detail.headers[csrf_header] = csrf_token;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
2
|
// WebSocket Management
|
|
14
3
|
let sentComponents = new Set();
|
|
15
4
|
|
|
@@ -8,6 +8,7 @@ from django.http.request import HttpRequest
|
|
|
8
8
|
from django.http.response import HttpResponse
|
|
9
9
|
from django.urls import path, re_path
|
|
10
10
|
from django.utils.html import format_html
|
|
11
|
+
from django.views.decorators.csrf import csrf_exempt
|
|
11
12
|
|
|
12
13
|
from .commands import PushURL, ReplaceURL, SendHtml
|
|
13
14
|
from .component import REGISTRY, Destroy, DispatchDOMEvent, Focus, Open, Redirect, Triggers
|
|
@@ -95,7 +96,7 @@ def app_name_of_component(cls: type):
|
|
|
95
96
|
urlpatterns = [
|
|
96
97
|
path(
|
|
97
98
|
f"{app_name_of_component(component)}/{component_name}/<component_id>/<event_handler>",
|
|
98
|
-
partial(endpoint, component_name=component_name),
|
|
99
|
+
csrf_exempt(partial(endpoint, component_name=component_name)),
|
|
99
100
|
name=f"djhtmx.{component_name}",
|
|
100
101
|
)
|
|
101
102
|
for component_name, component in REGISTRY.items()
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|