refactor: Add Node metadata (#1229)

* refactor: `Slot.source` replaced with `Slot.fill_node`, new `Component.node` property, and `slot_node` available in `on_slot_rendered()` hook.

* refactor: fix windows path error in tests
This commit is contained in:
Juro Oravec 2025-06-03 12:58:48 +02:00 committed by GitHub
parent abc6be343e
commit 46e524e37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 728 additions and 103 deletions

View file

@ -47,6 +47,10 @@
options:
show_if_no_docstring: true
::: django_components.ComponentNode
options:
show_if_no_docstring: true
::: django_components.ComponentRegistry
options:
show_if_no_docstring: true
@ -83,6 +87,14 @@
options:
show_if_no_docstring: true
::: django_components.FillNode
options:
show_if_no_docstring: true
::: django_components.ProvideNode
options:
show_if_no_docstring: true
::: django_components.RegistrySettings
options:
show_if_no_docstring: true
@ -111,6 +123,10 @@
options:
show_if_no_docstring: true
::: django_components.SlotNode
options:
show_if_no_docstring: true
::: django_components.SlotRef
options:
show_if_no_docstring: true