Commit graph

1748 commits

Author SHA1 Message Date
dependabot[bot]
ace29db9ac
build(deps): bump django from 4.2.21 to 4.2.22
Bumps [django](https://github.com/django/django) from 4.2.21 to 4.2.22.
- [Commits](https://github.com/django/django/compare/4.2.21...4.2.22)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 4.2.22
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 23:26:51 +00:00
Juro Oravec
04737412d9
docs: fix changelog links (#1238) 2025-06-05 08:47:51 +02:00
components-release-bot
b2e053118b Add benchmark results for 0.140.1 2025-06-04 22:42:14 +00:00
Juro Oravec
7b24b86f4a
Update pyproject.toml (#1237)
* Update pyproject.toml

* chore: bump v0.140.1
2025-06-05 00:35:21 +02:00
Juro Oravec
468abaf92f
fix: ctx_with_fills.fill (#1235) 2025-06-05 00:30:23 +02:00
Juro Oravec
593c66db7f
chore: bump v0.140 (#1234) 2025-06-04 23:41:34 +02:00
Juro Oravec
04f79a6e6b
refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots (#1233)
* refactor: deprecate Component.input and add raw_args, raw_kwargs, raw_slots

* docs: update changelog
2025-06-04 23:38:50 +02:00
Juro Oravec
eceebb9696
feat: on_render (#1231)
* feat: on_render

* docs: fix typos

* refactor: fix linter errors

* refactor: make `error` in on_render_after optional to fix benchmarks

* refactor: benchmark attempt 2

* refactor: fix linter errors

* refactor: fix formatting
2025-06-04 19:30:03 +02:00
Juro Oravec
46e524e37d
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
2025-06-03 12:58:48 +02:00
dependabot[bot]
abc6be343e
build(deps-dev): bump mypy from 1.15.0 to 1.16.0 (#1226)
Bumps [mypy](https://github.com/python/mypy) from 1.15.0 to 1.16.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 08:51:34 +02:00
github-actions[bot]
87eb1f8479
Merge pull request #1228 from django-components/dependabot/pip/mkdocs-git-revision-date-localized-plugin-1.4.7
build(deps): bump mkdocs-git-revision-date-localized-plugin from 1.4.6 to 1.4.7
2025-06-03 08:51:03 +02:00
dependabot[bot]
c5a4a81852
build(deps): bump mkdocs-git-revision-date-localized-plugin
Bumps [mkdocs-git-revision-date-localized-plugin](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin) from 1.4.6 to 1.4.7.
- [Release notes](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases)
- [Commits](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.4.6...v1.4.7)

---
updated-dependencies:
- dependency-name: mkdocs-git-revision-date-localized-plugin
  dependency-version: 1.4.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 17:40:14 +00:00
Juro Oravec
09cb8714cc
refactor: don't inherit media if child set to None (#1224)
* refactor: don't inherit media if child set to None

* refactor: fix typing errors

* refactor: more type fixes
2025-06-02 16:24:27 +02:00
Juro Oravec
8677ee7941
refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls (#1222)
* refactor: deprecate template caching, get_template_name, get_template, assoc template with Comp cls

* refactor: change implementation

* refactor: handle cached template loader

* refactor: fix tests

* refactor: fix test on windows

* refactor: try to  fix type errors

* refactor: Re-cast `context` to fix type errors

* refactor: fix linter error

* refactor: fix typing

* refactor: more linter fixes

* refactor: more linter errors

* refactor: revert extra node metadata
2025-06-01 19:20:22 +02:00
Juro Oravec
fa9ae9892f
feat: Slot.extra and Slot.source metadata (#1221) 2025-05-31 11:22:45 +02:00
Juro Oravec
bb129aefab
feat: extension defaults + docs + API cleanup (#1215) 2025-05-26 23:36:19 +02:00
github-actions[bot]
7df8019544
Merge pull request #1219 from django-components/dependabot/pip/mkdocstrings-python-1.16.11
build(deps): bump mkdocstrings-python from 1.16.10 to 1.16.11
2025-05-26 17:44:44 +00:00
dependabot[bot]
42eb6f93ae
build(deps): bump mkdocstrings-python from 1.16.10 to 1.16.11
Bumps [mkdocstrings-python](https://github.com/mkdocstrings/python) from 1.16.10 to 1.16.11.
- [Release notes](https://github.com/mkdocstrings/python/releases)
- [Changelog](https://github.com/mkdocstrings/python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mkdocstrings/python/compare/1.16.10...1.16.11)

---
updated-dependencies:
- dependency-name: mkdocstrings-python
  dependency-version: 1.16.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:36:58 +00:00
github-actions[bot]
dfb90c4005
Merge pull request #1217 from django-components/dependabot/pip/mkdocs-autorefs-1.4.2
build(deps): bump mkdocs-autorefs from 1.4.1 to 1.4.2
2025-05-26 17:35:48 +00:00
dependabot[bot]
26845fe60a
build(deps): bump mkdocs-autorefs from 1.4.1 to 1.4.2
Bumps [mkdocs-autorefs](https://github.com/mkdocstrings/autorefs) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mkdocstrings/autorefs/releases)
- [Changelog](https://github.com/mkdocstrings/autorefs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mkdocstrings/autorefs/compare/1.4.1...1.4.2)

---
updated-dependencies:
- dependency-name: mkdocs-autorefs
  dependency-version: 1.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:28:24 +00:00
github-actions[bot]
e8eb296897
Merge pull request #1218 from django-components/dependabot/pip/zipp-3.22.0
build(deps): bump zipp from 3.21.0 to 3.22.0
2025-05-26 17:27:25 +00:00
dependabot[bot]
6aec2d23dc
build(deps): bump zipp from 3.21.0 to 3.22.0
Bumps [zipp](https://github.com/jaraco/zipp) from 3.21.0 to 3.22.0.
- [Release notes](https://github.com/jaraco/zipp/releases)
- [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
- [Commits](https://github.com/jaraco/zipp/compare/v3.21.0...v3.22.0)

---
updated-dependencies:
- dependency-name: zipp
  dependency-version: 3.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:17:52 +00:00
github-actions[bot]
7884705869
Merge pull request #1216 from django-components/dependabot/pip/mkdocs-git-revision-date-localized-plugin-1.4.6
build(deps): bump mkdocs-git-revision-date-localized-plugin from 1.4.5 to 1.4.6
2025-05-26 19:16:51 +02:00
dependabot[bot]
d7fee43dd9
build(deps): bump mkdocs-git-revision-date-localized-plugin
Bumps [mkdocs-git-revision-date-localized-plugin](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases)
- [Commits](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/compare/v1.4.5...v1.4.6)

---
updated-dependencies:
- dependency-name: mkdocs-git-revision-date-localized-plugin
  dependency-version: 1.4.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:05:33 +00:00
Juro Oravec
55b1c8bc62
refecator: move defaults applying back to ext, raise on passing Slot to Slot, and docs cleanup (#1214)
* refecator: move defaults applying back to ext, raise on passing Slot to Slot, and docs cleanup

* docs: fix typo
2025-05-26 11:59:17 +02:00
Juro Oravec
bae0f28813
refactor: Instantiate component when rendering, and remove metadata stack (#1212)
* refactor: Instantiate component when rendering, and remove metadata stack

* refactor: update test

* refactor: fix linter errors

* docs: remove example from changelog
2025-05-25 23:33:38 +02:00
Juro Oravec
2e08af9a13
refactor: move slot escaping inside Slot, remve Slot.escaped, and remove render kwarg escape_slots_content (#1211) 2025-05-25 17:24:45 +02:00
Juro Oravec
046569e16d
fix: KeyError on component_context_cache when slot rendered outside (#1210) 2025-05-25 11:58:17 +02:00
Juro Oravec
6ff2d78a2f
feat: on_slot_rendered extension hook + refactor debug highlight as extension (#1209)
* feat: on_slot_rendered extension hook + refactor debug highlight as extension

* refactor: fix whitespace in test output
2025-05-25 11:20:32 +02:00
Juro Oravec
223fc2c68c
docs: update docs on slots (#1208) 2025-05-25 08:53:09 +02:00
Juro Oravec
e054a68715
feat: Component.args/kwargs/slots and {{ component_vars.args/kwargs/s… (#1205)
* feat: Component.args/kwargs/slots and {{ component_vars.args/kwargs/slots }}

* docs: fix typo in changelog
2025-05-24 23:24:34 +02:00
Juro Oravec
d514694788
feat: Pass Slots to {% fill %} with 'body' kwarg (#1203) 2025-05-22 08:01:21 +02:00
Juro Oravec
f069255b64
refactor: simplify slot API (#1202)
Closes #1096
2025-05-20 09:48:45 +02:00
dependabot[bot]
7a49a7806c
build(deps): bump cairosvg from 2.8.0 to 2.8.2 (#1201)
Bumps [cairosvg](https://github.com/Kozea/CairoSVG) from 2.8.0 to 2.8.2.
- [Release notes](https://github.com/Kozea/CairoSVG/releases)
- [Changelog](https://github.com/Kozea/CairoSVG/blob/main/NEWS.rst)
- [Commits](https://github.com/Kozea/CairoSVG/compare/2.8.0...2.8.2)

---
updated-dependencies:
- dependency-name: cairosvg
  dependency-version: 2.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juro Oravec <juraj.oravec.josefson@gmail.com>
2025-05-19 20:43:39 +02:00
github-actions[bot]
0718b4cac6
Merge pull request #1200 from django-components/dependabot/pip/pyyaml-env-tag-1.1
build(deps): bump pyyaml-env-tag from 1.0 to 1.1
2025-05-19 18:23:53 +00:00
Juro Oravec
4f15ad8360
Merge branch 'master' into dependabot/pip/pyyaml-env-tag-1.1 2025-05-19 20:09:31 +02:00
Juro Oravec
49ad23b21d
refactor: slots cleanup (#1199) 2025-05-19 19:56:27 +02:00
dependabot[bot]
71db46d5ca
build(deps): bump pyyaml-env-tag from 1.0 to 1.1
Bumps [pyyaml-env-tag](https://github.com/waylan/pyyaml-env-tag) from 1.0 to 1.1.
- [Commits](https://github.com/waylan/pyyaml-env-tag/compare/1.0...1.1)

---
updated-dependencies:
- dependency-name: pyyaml-env-tag
  dependency-version: '1.1'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 17:47:21 +00:00
Juro Oravec
79c42da2f9
feat: slot caching (#1196)
* feat: slot caching

Closes #1164

* refactor: fix linter
2025-05-19 19:26:57 +02:00
Juro Oravec
b6b574d875
refactor: Rename {% fill default=... %} to {% fill fallback=... %} (#1190) 2025-05-19 19:05:39 +02:00
Juro Oravec
0d05ef4cb2
feat: Expose slot input as Slot.contents (#1180)
* feat: expose slot input as Slot.contents

* refactor: fix linter errors
2025-05-14 11:17:09 +02:00
github-actions[bot]
53d80684bb
Merge pull request #1181 from django-components/dependabot/pip/mkdocs-material-9.6.13
build(deps): bump mkdocs-material from 9.6.12 to 9.6.13
2025-05-14 09:15:37 +00:00
Juro Oravec
2eb9f5d43d
Merge branch 'master' into dependabot/pip/mkdocs-material-9.6.13 2025-05-14 11:05:48 +02:00
Juro Oravec
1bb7c3fdfe
Update requirements-docs.txt 2025-05-14 11:05:36 +02:00
Juro Oravec
f80457e964
Update attributes.py (#1188) 2025-05-13 23:18:48 +02:00
github-actions[bot]
a96f5fdd2f
Merge pull request #1182 from django-components/dependabot/pip/platformdirs-4.3.8
build(deps): bump platformdirs from 4.3.7 to 4.3.8
2025-05-13 11:53:36 +02:00
Juro Oravec
b83eaefcd0
Merge branch 'master' into dependabot/pip/mkdocs-material-9.6.13 2025-05-13 09:24:40 +02:00
Juro Oravec
9dda6f8c16
Merge branch 'master' into dependabot/pip/platformdirs-4.3.8 2025-05-13 09:24:30 +02:00
dependabot[bot]
5fb0c9032b
build(deps): bump pyyaml-env-tag from 0.1 to 1.0 (#1183)
Bumps [pyyaml-env-tag](https://github.com/waylan/pyyaml-env-tag) from 0.1 to 1.0.
- [Commits](https://github.com/waylan/pyyaml-env-tag/compare/0.1...1.0)

---
updated-dependencies:
- dependency-name: pyyaml-env-tag
  dependency-version: '1.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-13 09:24:11 +02:00
dependabot[bot]
e5126b04ef
build(deps): bump platformdirs from 4.3.7 to 4.3.8
Bumps [platformdirs](https://github.com/tox-dev/platformdirs) from 4.3.7 to 4.3.8.
- [Release notes](https://github.com/tox-dev/platformdirs/releases)
- [Changelog](https://github.com/tox-dev/platformdirs/blob/main/CHANGES.rst)
- [Commits](https://github.com/tox-dev/platformdirs/compare/4.3.7...4.3.8)

---
updated-dependencies:
- dependency-name: platformdirs
  dependency-version: 4.3.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-13 07:23:59 +00:00