Juro Oravec
f069255b64
refactor: simplify slot API ( #1202 )
...
Closes #1096
2025-05-20 09:48:45 +02: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
ccf02fa316
chore: util to manage URLs in the codebase ( #1179 )
...
* chore: util to manage URLs in the codebase
* docs: mentiion validate_links and supported_versions in docs
* refactor: fix linter errors
2025-05-11 14:59:34 +02:00
Juro Oravec
5f4fbe76e5
feat: add BaseNode.contents ( #1177 )
2025-05-11 08:11:07 +02:00
Juro Oravec
661413d4a9
refactor: change caching methods to accept slots + typing fixes ( #1173 )
2025-05-09 10:19:34 +02:00
Juro Oravec
6253042e9e
refactor: remove middleware, add strategy "raw", and call render_deps() from within Template.render() ( #1166 )
...
* refactor: remove middleware, add strategy "raw", and call render_deps() from within Template.render()
* refactor: fix formatting
* refactor: fix benchmark tests
* refactor: avoid processing deps if rendered HTML contains no components
* refactor: remove comments
* refactor: rename "raw" to "ignore"
2025-05-06 21:36:41 +02:00
Juro Oravec
d4d834256a
refactor: rename context_data
field to template_data
( #1162 )
2025-05-04 01:49:54 +02:00
Juro Oravec
28b61c1609
refactor: Update docs and tests to use get_template_data() ( #1161 )
...
* refactor: update docs and tests to use get_template_data()
* refactor: fix linting
* docs: add note about difference between the two methods
2025-05-03 12:04:10 +02:00
Juro Oravec
c69980493d
feat: allow to set query and fragment on get_component_url ( #1160 )
2025-05-03 10:29:38 +02:00
Juro Oravec
bf7a204e92
feat: add "simple", "prepend", and "append" render types ( #1156 )
...
* feat: add "simple", "prepend", and "append" render types
* refactor: explicitly set strategy for "document" in tests
2025-05-02 15:07:16 +02:00
Juro Oravec
59f82307ae
docs: docstrings, fundamentals, and minor changes ( #1145 )
...
* docs: docstrings, fundamentals, and minor changes
* refactor: fix tests + linter errors
2025-04-24 12:47:04 +02:00
Juro Oravec
519529d4e4
refactor: move Url.public to View.public ( #1140 )
...
* refactor: move Url.public to View.public
* refactor: fix tests / imports
2025-04-21 23:12:40 +02:00
Juro Oravec
b49002b545
refactor: change component typing from generics to class attributes ( #1138 )
2025-04-20 22:05:29 +02:00
components-release-bot
912d8e8074
Add benchmark results for 0.139.1
2025-04-20 10:07:16 +00:00
Juro Oravec
c650e7f3a5
refactor: prefix component ID with c
( #1127 )
2025-04-14 12:01:16 +02:00
Juro Oravec
fc026cbd99
docs: update section on working with request object ( #1126 )
...
* docs: update section on working with request object
* refactor: fix linting
2025-04-14 11:35:48 +02:00
Juro Oravec
06cad2ec64
refactor: use typevar defaults + raise on conflicting extensions ( #1125 )
...
* refactor: use typevar defaults + raise on conflicting extensions
* refactor: fix linter errors
2025-04-14 10:00:18 +02:00
components-release-bot
3148557e91
Add benchmark results for 0.139
2025-04-12 07:41:59 +00:00
Juro Oravec
d37291a3b6
docs: document how to access component instance from within View ( #1115 )
2025-04-10 09:39:52 +02:00
components-release-bot
5b01d6c3c6
Add benchmark results for 0.138
2025-04-09 16:37:58 +00:00
components-release-bot
cc249022c4
Add benchmark results for 0.137
2025-04-09 13:22:30 +00:00
Juro Oravec
613dfea379
refactor: cleanup docs, add docs on Render API, allow get_context_data return None ( #1110 )
...
* refactor: cleanup docs, add docs on Render API, allow get_context_data return None
* refactor: fix linter and tests
2025-04-09 15:06:14 +02:00
Juro Oravec
9ede779fa3
docs: update testing, single file comp, and syntax highlight ( #1109 )
2025-04-08 14:32:23 +02:00
Juro Oravec
b6994e9ad3
feat: component caching ( #1097 )
...
* feat: allow to set defaults
* refactor: remove input validation and link to it
* feat: component URL
* feat: component caching
* refactor: Mark `OnComponentRenderedContext` as extension hook for docs
* docs: update changelog
* refactor: simplify hash methods
2025-04-08 11:54:39 +02:00
Juro Oravec
1dfec8fc6d
docs: mention URL auto-gen in README ( #1099 )
2025-04-07 19:26:50 +02:00
Juro Oravec
9f9b1f7232
refactor: fix link in docs + call django.setup() in @djc_test if not done so ( #1098 )
2025-04-07 15:07:46 +02:00
Juro Oravec
bb5de86b69
feat: expose _class_hash as class_id ( #1094 )
...
* feat: expose _class_hash as class_id
* refactor: fix linting
2025-04-07 11:08:02 +02:00
Juro Oravec
a49f5e51dd
feat: component URL ( #1088 )
...
* feat: allow to set defaults
* refactor: remove input validation and link to it
* feat: component URL
* refactor: fix linter errors
* refactor: fix linter errors + update examples to use Component.View..get
* docs: update comment
* refactor: revert change to hash_comp_cls
* docs: update comment
2025-04-07 10:44:41 +02:00
Juro Oravec
3555411f1e
docs: move extension command- and url-related API to own API pages ( #1093 )
...
* docs: move extension command- and url-related API to own API pages
* refactor: fix linters
2025-04-06 14:12:15 +02:00
Juro Oravec
0ed46e4d30
chore: add support for Django 5.2 and drop for 5.0 ( #1092 )
2025-04-06 11:57:41 +02:00
components-release-bot
637e143538
Add benchmark results for 0.136
2025-04-05 07:18:52 +00:00
Juro Oravec
2499126d1f
refactor: fix ext URLs lookup ( #1086 )
...
* refactor: fix ext URLs lookup
2025-04-05 09:10:04 +02:00
Juro Oravec
7e74831599
refactor: remove input validation and link to it ( #1082 )
...
* feat: allow to set defaults
* refactor: remove input validation and link to it
* docs: update changelog
* Update typing_and_validation.md
* Update typing_and_validation.md
2025-04-05 08:19:19 +02:00
components-release-bot
22dac99e4e
Add benchmark results for 0.135
2025-03-31 14:17:45 +00:00
Juro Oravec
f07818fc7d
feat: allow to set defaults ( #1072 )
...
* feat: allow to set defaults
* docs: update changelog
* refactor: fix new linter errors
2025-03-31 10:38:41 +02:00
Juro Oravec
328309a81c
feat: granular handling of class and style in {% html_attrs %} ( #1066 )
...
* feat: granular handling of class and style in {% html_attrs %}
* refactor: fix linter errors
* docs: document deprecation, fix typos, fix broken table of contents
* refactor: remove classes and styles as lists from docs
2025-03-24 17:35:12 +01:00
components-release-bot
1e71f3d656
Add benchmark results for 0.134
2025-03-23 21:40:52 +00:00
components-release-bot
3544402215
Add benchmark results for 0.133
2025-03-23 09:01:44 +00:00
components-release-bot
04dd0c21ba
Add benchmark results for 0.132
2025-03-22 12:20:51 +00:00
Juro Oravec
30f3739499
build: add support for py3.13 windows ( #1055 )
2025-03-22 13:09:58 +01:00
Juro Oravec
ab75cfdb8f
feat: allow globs when specifynigg additionall JS and CSS ( #1043 )
...
* feat: allow globs when specifynigg additionall JS and CSS
* refactor: fix tests and linter errors
2025-03-21 10:23:38 +01:00
components-release-bot
73e94b6714
Add benchmark results for 0.131
2025-03-20 20:48:28 +00:00
Juro Oravec
c034b7da65
chore: bump v0.131 ( #1042 )
...
* Update pyproject.toml
* docs: update changelog and rename "start" command to "create"
2025-03-19 09:57:26 +01:00
Juro Oravec
0f41a62592
feat: add a command to list all components ( #1041 )
...
* feat: add a command to list all components
* refactor: fix tests
* refactor: fix linter errors
* refactor: fix the tests for tests running within tox
* temp: print out test outputs
* refactor: fix tests for windows
* refactor: remove escape from slash?
* refactor: fixes to regex
* refactor: remove print statements
* docs: update API reference
2025-03-19 09:38:25 +01:00
Juro Oravec
107284f474
feat: registry.has(); helpers to get all components and registries; access component from ext class ( #1030 )
...
* feat: registry.has(); helpers to get all components and registries; access component from ext class
* refactor: add missing import
2025-03-18 11:30:53 +01:00
Juro Oravec
99067c4b20
docs: document how to render components in getting started ( #1028 )
...
Closes #990
2025-03-17 12:39:18 +01:00
Juro Oravec
8e7acd82be
docs: fix links in getting started section + few other ( #1026 )
2025-03-17 08:55:42 +01:00
Juro Oravec
12a64f8e41
feat: allow extensions to add url views ( #1025 )
...
* feat: allow extensions to add url views
* refactor: fix linter errors
2025-03-17 08:36:47 +01:00
Juro Oravec
d3d2d0ab08
feat: allow extensions to add commands ( #1017 )
...
* feat: allow extensions to add commands
* refactor: fix tests
* refactor: more test fix
* refactor: more test fixes
* refactor: more linter fixes
2025-03-16 12:03:16 +01:00
Juro Oravec
4d35bc97a2
feat: extensions ( #1009 )
...
* feat: extensions
* refactor: remove support for passing in extensions as instances
2025-03-08 09:41:28 +01:00