streamtex 0.7.83__tar.gz → 0.7.85__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.
Files changed (198) hide show
  1. {streamtex-0.7.83/streamtex.egg-info → streamtex-0.7.85}/PKG-INFO +1 -1
  2. {streamtex-0.7.83 → streamtex-0.7.85}/pyproject.toml +1 -1
  3. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/book.py +7 -3
  4. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/export_cmd.py +1 -0
  5. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/deploy/stx_auth.py +1 -1
  6. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/export_enrich.py +18 -6
  7. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/list.py +52 -3
  8. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/search.py +10 -3
  9. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/default.css +10 -0
  10. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/__init__.py +1 -1
  11. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/text.py +17 -1
  12. {streamtex-0.7.83 → streamtex-0.7.85/streamtex.egg-info}/PKG-INFO +1 -1
  13. {streamtex-0.7.83 → streamtex-0.7.85}/LICENSE +0 -0
  14. {streamtex-0.7.83 → streamtex-0.7.85}/MANIFEST.in +0 -0
  15. {streamtex-0.7.83 → streamtex-0.7.85}/README.md +0 -0
  16. {streamtex-0.7.83 → streamtex-0.7.85}/setup.cfg +0 -0
  17. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/__init__.py +0 -0
  18. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/__main__.py +0 -0
  19. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/__init__.py +0 -0
  20. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/config.py +0 -0
  21. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/generate.py +0 -0
  22. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/history.py +0 -0
  23. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/metadata.py +0 -0
  24. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/__init__.py +0 -0
  25. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/base.py +0 -0
  26. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/fal.py +0 -0
  27. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/google.py +0 -0
  28. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/openai.py +0 -0
  29. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/ai/providers/registry.py +0 -0
  30. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/auth.py +0 -0
  31. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/banner.py +0 -0
  32. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/bib.py +0 -0
  33. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/bib_preview.py +0 -0
  34. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/block_helpers.py +0 -0
  35. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/blocks.py +0 -0
  36. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/browser.py +0 -0
  37. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/__init__.py +0 -0
  38. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_claude_files.py +0 -0
  39. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_divergence.py +0 -0
  40. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_install_local_packs.py +0 -0
  41. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_shared.py +0 -0
  42. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_stx_toml.py +0 -0
  43. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/_toml_helpers.py +0 -0
  44. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/artifact_cmd.py +0 -0
  45. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/bib_cmd.py +0 -0
  46. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/build_check.py +0 -0
  47. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/cache_cmd.py +0 -0
  48. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/claude_cmd.py +0 -0
  49. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/claude_global.py +0 -0
  50. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/claude_project.py +0 -0
  51. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/commands.py +0 -0
  52. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/component_cmd.py +0 -0
  53. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/console.py +0 -0
  54. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/coolify.py +0 -0
  55. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/deploy_auth_cmd.py +0 -0
  56. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/deploy_cmd.py +0 -0
  57. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/dev_cmd.py +0 -0
  58. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/dev_config.py +0 -0
  59. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/ds_cmd.py +0 -0
  60. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/install_cmd.py +0 -0
  61. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/kit_cmd.py +0 -0
  62. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/main.py +0 -0
  63. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/__init__.py +0 -0
  64. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/base.py +0 -0
  65. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/compat.py +0 -0
  66. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/registry.py +0 -0
  67. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/v0_4_0.py +0 -0
  68. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/migrations/v0_4_6.py +0 -0
  69. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/pack_cmd.py +0 -0
  70. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/project_cmd.py +0 -0
  71. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/project_rules.py +0 -0
  72. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/publish_cmd.py +0 -0
  73. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/published_check.py +0 -0
  74. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/release_cmd.py +0 -0
  75. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/run_cmd.py +0 -0
  76. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/run_set.py +0 -0
  77. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/screenshot_cmd.py +0 -0
  78. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/shortcuts.py +0 -0
  79. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/status_cmd.py +0 -0
  80. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/styles_cmd.py +0 -0
  81. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/sync_cmd.py +0 -0
  82. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/upgrade_cmd.py +0 -0
  83. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/validate_cmd.py +0 -0
  84. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/cli/workspace_cmd.py +0 -0
  85. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/code.py +0 -0
  86. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/collection.py +0 -0
  87. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/constants.py +0 -0
  88. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/container.py +0 -0
  89. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/__init__.py +0 -0
  90. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/__init__.py +0 -0
  91. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/_frontmatter.py +0 -0
  92. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/agent.py +0 -0
  93. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/ai_prompt.py +0 -0
  94. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/archetype.py +0 -0
  95. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/asset.py +0 -0
  96. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/discovery.py +0 -0
  97. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/guideline.py +0 -0
  98. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/install.py +0 -0
  99. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/integration.py +0 -0
  100. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/loaders.py +0 -0
  101. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/palette.py +0 -0
  102. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/skill.py +0 -0
  103. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/spec.py +0 -0
  104. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/artifacts/validation.py +0 -0
  105. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/contracts.py +0 -0
  106. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/discovery.py +0 -0
  107. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/core/validation.py +0 -0
  108. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/countdown.py +0 -0
  109. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/deeplink.py +0 -0
  110. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/deploy/__init__.py +0 -0
  111. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/enums.py +0 -0
  112. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/export.py +0 -0
  113. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/export_paginate.py +0 -0
  114. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/export_widgets.py +0 -0
  115. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/facts.py +0 -0
  116. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/glossary.py +0 -0
  117. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/grid.py +0 -0
  118. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/gsheet.py +0 -0
  119. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/hover_tooltip.py +0 -0
  120. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/i18n.py +0 -0
  121. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/image.py +0 -0
  122. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/image_crop.py +0 -0
  123. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/image_editor.py +0 -0
  124. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/image_utils.py +0 -0
  125. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/inspector.py +0 -0
  126. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/kept.py +0 -0
  127. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/latex.py +0 -0
  128. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/latex_utils.py +0 -0
  129. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/link_config.py +0 -0
  130. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/link_preview.py +0 -0
  131. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/loading.py +0 -0
  132. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/markdown.py +0 -0
  133. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/marker.py +0 -0
  134. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/marker_runtime.py +0 -0
  135. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/media_overlay.py +0 -0
  136. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/mermaid.py +0 -0
  137. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/overlay.py +0 -0
  138. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/pagewalk.py +0 -0
  139. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/pdf_export.py +0 -0
  140. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/plantuml.py +0 -0
  141. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/presentation.py +0 -0
  142. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/presentation_profile.py +0 -0
  143. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/printing.py +0 -0
  144. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/__init__.py +0 -0
  145. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/build.py +0 -0
  146. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/config.py +0 -0
  147. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/coolify.py +0 -0
  148. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/levels.py +0 -0
  149. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/media.py +0 -0
  150. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/ops.py +0 -0
  151. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/passwords.py +0 -0
  152. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/state.py +0 -0
  153. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/target.py +0 -0
  154. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/live/Dockerfile +0 -0
  155. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/live/entrypoint.sh +0 -0
  156. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/live/nginx.conf +0 -0
  157. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/live/stx-http.conf +0 -0
  158. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/live/supervisord.conf +0 -0
  159. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/10-stx-init.sh +0 -0
  160. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/20-stx-auth.sh +0 -0
  161. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/Dockerfile +0 -0
  162. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/closed.html +0 -0
  163. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/nginx.conf +0 -0
  164. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/stx-http.conf +0 -0
  165. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/release/templates/static/stx_auth.py +0 -0
  166. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/runtime_flags.py +0 -0
  167. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/scripts/__init__.py +0 -0
  168. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/scripts/migrate_curves_to_relative.py +0 -0
  169. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/slide.py +0 -0
  170. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/slide_note.py +0 -0
  171. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/source.py +0 -0
  172. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/space.py +0 -0
  173. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/spacing.py +0 -0
  174. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/stage.py +0 -0
  175. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/css/stx_global.css +0 -0
  176. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/js/stx_countdown.js +0 -0
  177. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/js/stx_marker_observer.js +0 -0
  178. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/js/stx_scroll_spy.js +0 -0
  179. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/js/stx_video.js +0 -0
  180. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/logo-stx-tiny.png +0 -0
  181. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/static/logo-stx.png +0 -0
  182. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/base.py +0 -0
  183. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/container.py +0 -0
  184. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/core.py +0 -0
  185. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/scale.py +0 -0
  186. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/scale_curves.toml +0 -0
  187. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/styles/visibility.py +0 -0
  188. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/tikz.py +0 -0
  189. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/toc.py +0 -0
  190. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/utils.py +0 -0
  191. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/watch.py +0 -0
  192. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/write.py +0 -0
  193. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex/zoom.py +0 -0
  194. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex.egg-info/SOURCES.txt +0 -0
  195. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex.egg-info/dependency_links.txt +0 -0
  196. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex.egg-info/entry_points.txt +0 -0
  197. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex.egg-info/requires.txt +0 -0
  198. {streamtex-0.7.83 → streamtex-0.7.85}/streamtex.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamtex
3
- Version: 0.7.83
3
+ Version: 0.7.85
4
4
  Summary: AI-powered content framework for Streamlit — create presentations, courses, and web-books with Claude or Cursor, no coding required.
5
5
  Author-email: Nicolas Guelfi <nicolas.guelfi@laposte.net>
6
6
  License-Expression: BUSL-1.1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "streamtex"
7
- version = "0.7.83"
7
+ version = "0.7.85"
8
8
  description = "AI-powered content framework for Streamlit — create presentations, courses, and web-books with Claude or Cursor, no coding required."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -535,6 +535,7 @@ def _offer_export_downloads(html: str, base_name: str,
535
535
  toc=_cache.get("toc"),
536
536
  markers=_cache.get("markers"),
537
537
  search_index=_cache.get("search_index"),
538
+ search_placeholder=_cache.get("search_placeholder", "Search..."),
538
539
  doc_version=_cache.get("doc_version", ""),
539
540
  lib_version=_cache.get("lib_version", ""),
540
541
  notice=rules["notice"],
@@ -1217,6 +1218,7 @@ def _st_book_impl(module_list, toc_config: TOCConfig = None, marker_config: Mark
1217
1218
  toc_sidebar, markers_sidebar, search_js_ph = build_ToC_sidebar_placeholder(
1218
1219
  has_markers=marker_config is not None,
1219
1220
  has_search=toc_config.search,
1221
+ search_placeholder=toc_config.search_placeholder,
1220
1222
  )
1221
1223
  toc_block = None
1222
1224
  toc_content_style = None
@@ -1420,11 +1422,11 @@ def _waiting(placeholder: Delta, text: str) -> Delta:
1420
1422
  return placeholder
1421
1423
 
1422
1424
 
1423
- def build_ToC_sidebar_placeholder(has_markers=False, has_search=False):
1425
+ def build_ToC_sidebar_placeholder(has_markers=False, has_search=False, search_placeholder="Search..."):
1424
1426
  with st.sidebar:
1425
1427
  # Search input above tabs (always visible regardless of active tab)
1426
1428
  if has_search:
1427
- st.markdown(generate_search_input_html(), unsafe_allow_html=True)
1429
+ st.markdown(generate_search_input_html(search_placeholder), unsafe_allow_html=True)
1428
1430
  if st.button("Refresh search index", key="_stx_refresh_search_cont",
1429
1431
  use_container_width=True, type="tertiary"):
1430
1432
  st.rerun()
@@ -2815,6 +2817,7 @@ def _build_page_cache(module_list, toc_config, marker_config, separator,
2815
2817
  "toc": copy.deepcopy(toc_entries()) if toc_config else [],
2816
2818
  "markers": copy.deepcopy(marker_entries()) if marker_config else [],
2817
2819
  "search_index": search_index,
2820
+ "search_placeholder": toc_config.search_placeholder if toc_config else "Search...",
2818
2821
  }
2819
2822
 
2820
2823
  # Persist cited bibliography keys so st_bibliography(only_cited=True) works
@@ -2833,6 +2836,7 @@ def _build_page_cache(module_list, toc_config, marker_config, separator,
2833
2836
  "paginate_by": _mode,
2834
2837
  "pages": pages,
2835
2838
  "search_index": search_index,
2839
+ "search_placeholder": toc_config.search_placeholder if toc_config else "Search...",
2836
2840
  "cited_keys": _bib_cited,
2837
2841
  "glossary_used": _gloss_used,
2838
2842
  "doc_version": st.session_state.get("_stx_doc_version", ""),
@@ -2898,7 +2902,7 @@ def _build_paginated_sidebar(cache, current_page, total, toc_config, marker_conf
2898
2902
  with st.sidebar:
2899
2903
  # Search input above tabs (always visible regardless of active tab)
2900
2904
  if show_search:
2901
- st.markdown(generate_search_input_html(), unsafe_allow_html=True)
2905
+ st.markdown(generate_search_input_html(toc_config.search_placeholder), unsafe_allow_html=True)
2902
2906
  if st.button("Refresh search index", key="_stx_refresh_search_pag",
2903
2907
  use_container_width=True, type="tertiary"):
2904
2908
  st.session_state[_STX_REFRESH_SEARCH_KEY] = True
@@ -351,6 +351,7 @@ def export_html(path, output, asset_mode, title, no_nav, theme_mode, theme_bg, t
351
351
  toc=nav_toc,
352
352
  markers=nav_markers,
353
353
  search_index=nav_data.get("search_index"),
354
+ search_placeholder=nav_data.get("search_placeholder", "Search..."),
354
355
  doc_version=_cache_data.get("doc_version", ""),
355
356
  lib_version=_cache_data.get("lib_version", ""),
356
357
  page_nav=page_nav,
@@ -107,7 +107,7 @@ from pathlib import Path
107
107
  from urllib.parse import parse_qs, urlsplit
108
108
 
109
109
  #: The library release this file ships with, and its interface number (#135).
110
- STX_VERSION = "0.7.83"
110
+ STX_VERSION = "0.7.85"
111
111
  AUTH_INTERFACE = 3
112
112
 
113
113
  DEFAULT_ROOT = "/var/lib/stx-auth"
@@ -6,6 +6,7 @@ with zero server-side dependencies.
6
6
  """
7
7
 
8
8
  import base64
9
+ import html
9
10
  import json
10
11
  import re
11
12
  from pathlib import Path
@@ -170,14 +171,20 @@ body.stx-sidebar-resizing .streamtex-page { transition: none !important; }
170
171
  color: var(--stx-export-sidebar-fg, #555);
171
172
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
172
173
  }
174
+ /* The search box takes the panel's own colours, so it reads wherever the
175
+ * TOC reads (board rch): a white fallback background under the theme's
176
+ * light text made it white on white on every dark-themed site. */
173
177
  .stx-export-sidebar .stx-search-box {
174
178
  width: 100%; padding: 6px 10px;
175
- border: 1px solid var(--stx-export-sidebar-input-border, #ccc);
179
+ border: 1px solid currentColor;
180
+ border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
176
181
  border-radius: 6px; font-size: 13px; box-sizing: border-box;
177
182
  outline: none; margin-bottom: 10px;
178
- background: var(--stx-export-sidebar-input-bg, #fff);
179
- color: var(--stx-export-sidebar-fg, #333);
183
+ background: transparent;
184
+ color: inherit;
180
185
  }
186
+ .stx-export-sidebar .stx-search-box::placeholder { color: currentColor; opacity: 0.6; }
187
+ .stx-export-sidebar .stx-search-box:focus { border-color: currentColor; }
181
188
  /* Text-truncation lives on the inner <a>, not on the entry, so the active
182
189
  * indicator's ``::before`` (positioned at left:-8px) is not clipped by the
183
190
  * entry's own overflow box. Keeping ``overflow: hidden`` on the entry
@@ -270,7 +277,8 @@ if _LOGO_TINY_PATH.exists():
270
277
 
271
278
  def _build_sidebar_html(toc: list[dict], has_search: bool = False,
272
279
  doc_version: str = "", lib_version: str = "",
273
- page_nav: dict | None = None, notice: str = "") -> str:
280
+ page_nav: dict | None = None, notice: str = "",
281
+ search_placeholder: str = "Search...") -> str:
274
282
  """Build the sidebar TOC HTML from cache data.
275
283
 
276
284
  In a paginated export file (*page_nav*, #106) the table of contents is the
@@ -301,7 +309,7 @@ def _build_sidebar_html(toc: list[dict], has_search: bool = False,
301
309
  if has_search:
302
310
  parts.append(
303
311
  '<input id="stx-search" class="stx-search-box" '
304
- 'type="text" placeholder="Search..." autocomplete="off" />'
312
+ f'type="text" placeholder="{html.escape(search_placeholder)}" autocomplete="off" />'
305
313
  )
306
314
  for entry in toc:
307
315
  level = entry.get("level", 1)
@@ -997,12 +1005,15 @@ def enrich_export_html(
997
1005
  page_nav: dict | None = None,
998
1006
  notice: str = "",
999
1007
  source: dict | None = None,
1008
+ search_placeholder: str = "Search...",
1000
1009
  ) -> str:
1001
1010
  """Transform raw export HTML into a fully navigable static document.
1002
1011
 
1003
1012
  *source* (#157): the payload of the source gesture (``source.page_payload("html")``);
1004
1013
  None (the HTML side off) leaves no source in the page, as before.
1005
1014
 
1015
+ *search_placeholder*: the hint of the search box (``TOCConfig.search_placeholder``).
1016
+
1006
1017
  *page_nav* (#106): in a paginated export, ``{"mode": "paginated", "files":
1007
1018
  [file per page], "here": [pages of this file], "prefix": "",
1008
1019
  "other": "../<continuous>.html" or None}``; in the continuous file of a
@@ -1092,7 +1103,8 @@ def enrich_export_html(
1092
1103
  if has_toc:
1093
1104
  sidebar_html = _build_sidebar_html(toc, has_search=has_search,
1094
1105
  doc_version=doc_version, lib_version=lib_version,
1095
- page_nav=page_nav, notice=notice)
1106
+ page_nav=page_nav, notice=notice,
1107
+ search_placeholder=search_placeholder)
1096
1108
  raw_html = raw_html.replace("<body>", "<body>\n" + sidebar_html, 1)
1097
1109
 
1098
1110
  # --- Build JS block ---
@@ -57,6 +57,30 @@ def _validate_align(param: str, value: str | None,
57
57
  return value
58
58
 
59
59
 
60
+ _ITEM_GAP_FORBIDDEN = re.compile(r'[;{}<>"\\]')
61
+
62
+
63
+ def _normalize_item_gap(value: str | float | None) -> str | None:
64
+ """Return the CSS length of ``st_list(item_gap=…)``, or ``None``.
65
+
66
+ A number is read as ``em`` — relative to the item's own font size, so the
67
+ spacing grows with the text. A string is any CSS length (``"0.6em"``,
68
+ ``"12px"``, ``"1rem"``). ``None`` and ``0`` add nothing.
69
+ """
70
+ if value is None:
71
+ return None
72
+ if isinstance(value, (int, float)) and not isinstance(value, bool):
73
+ if value < 0:
74
+ raise ValueError(f"st_list(item_gap={value!r}): must not be negative")
75
+ return None if value == 0 else f"{value:g}em"
76
+ if isinstance(value, str):
77
+ css = value.strip()
78
+ if not css or _ITEM_GAP_FORBIDDEN.search(css):
79
+ raise ValueError(f"st_list(item_gap={value!r}): expected a CSS length such as '0.6em'")
80
+ return css
81
+ raise ValueError(f"st_list(item_gap={value!r}): expected a number or a CSS length")
82
+
83
+
60
84
  def _list_export_css(text_align: str | None, block_align: str | None) -> str:
61
85
  """Return the CSS declarations added to the exported ``<ul>``/``<ol>``.
62
86
 
@@ -160,8 +184,11 @@ def _export_marker_attr(bullet_content: str, is_ordered: bool) -> str:
160
184
 
161
185
  class ListController:
162
186
  def __init__(self, li_style: Style, bullet_content: str, is_ordered: bool,
163
- alt_li_styles: list[Style] | None = None):
187
+ alt_li_styles: list[Style] | None = None,
188
+ item_gap: str | None = None):
164
189
  self.li_style = li_style
190
+ self.item_gap = item_gap
191
+ self._items_opened = 0
165
192
  self.bullet_content = bullet_content
166
193
  self.is_ordered = is_ordered
167
194
  self.alt_li_styles = alt_li_styles
@@ -180,6 +207,19 @@ class ListController:
180
207
  self._item_index += 1
181
208
  if style:
182
209
  final_style = final_style + style
210
+ # item_gap: the same space above every item but the first, carried by
211
+ # the item itself so the live block and the exported <li> get the very
212
+ # same declaration (and nested lists keep their own spacing).
213
+ gap_before = bool(self.item_gap) and self._items_opened > 0
214
+ self._items_opened += 1
215
+ export_style = final_style
216
+ if gap_before:
217
+ final_style = final_style + Style(f"margin-top: {self.item_gap};", "stx_list_item_gap")
218
+ # An exported <li> keeps default.css's `margin-bottom: 0.3em`, and
219
+ # sibling margins collapse (the larger wins) where live flex items
220
+ # add up. Adding those 0.3em back makes the export gap the same.
221
+ export_style = export_style + Style(
222
+ f"margin-top: calc({self.item_gap} + 0.3em);", "stx_list_item_gap")
183
223
 
184
224
  # We generate a unique ID for the Outer Container (the 'LI')
185
225
  item_id = generate_key("li")
@@ -195,7 +235,7 @@ class ListController:
195
235
  # Export wrapper: <li> (suppresses st_block's own <div>)
196
236
  if is_export_active():
197
237
  marker_attr = _export_marker_attr(self.bullet_content, self.is_ordered)
198
- export_push_wrapper(f'<li style="{final_style}"{marker_attr}>')
238
+ export_push_wrapper(f'<li style="{export_style}"{marker_attr}>')
199
239
 
200
240
  with st_block(style=final_style, _export_wrapper=False):
201
241
  # Per-item bullet stylesheet + sentinel marker span go INSIDE the
@@ -223,6 +263,7 @@ def st_list(
223
263
  block_align: str | None = None,
224
264
  align: str | None = None,
225
265
  alt_li_styles: list[Style] | None = None,
266
+ item_gap: str | float | None = None,
226
267
  ):
227
268
  """
228
269
  A context manager representing a list (ordered or unordered) with optional styles and support for nested lists.
@@ -255,6 +296,12 @@ def st_list(
255
296
  :param alt_li_styles: Optional list of ``Style`` objects to cycle through for each item.
256
297
  Applied after ``li_style`` and before the per-item ``style`` argument.
257
298
  The style at index ``i % len(alt_li_styles)`` is merged for the i-th item.
299
+ :param item_gap: Extra space between consecutive items of THIS list
300
+ (nested lists keep their own). A number is read as ``em`` (relative
301
+ to the item's font size, so it scales with the text): ``item_gap=0.6``;
302
+ a string is any CSS length: ``item_gap="12px"``. Added as
303
+ ``margin-top`` on every item but the first, identically live and in
304
+ the HTML export. ``None`` (default) keeps the current spacing.
258
305
 
259
306
  Notes:
260
307
  - Supports nested lists recursively, with the nesting level affecting the style if `l_style` is a `ListStyle`.
@@ -277,6 +324,7 @@ def st_list(
277
324
  text_align = _validate_align("text_align", text_align, _TEXT_ALIGN_VALUES)
278
325
  block_align = _validate_align("block_align", block_align, _BLOCK_ALIGN_VALUES)
279
326
  align = _validate_align("align", align, _BLOCK_ALIGN_VALUES)
327
+ gap_css = _normalize_item_gap(item_gap)
280
328
  if block_align is None:
281
329
  block_align = align
282
330
 
@@ -331,7 +379,8 @@ def st_list(
331
379
  # mode that `text_align=` switches on.
332
380
  with st_block(style=l_style, _export_wrapper=False):
333
381
  st.html(marker)
334
- yield ListController(li_style=li_style, bullet_content=bullet_content, is_ordered=is_ordered, alt_li_styles=alt_li_styles)
382
+ yield ListController(li_style=li_style, bullet_content=bullet_content, is_ordered=is_ordered, alt_li_styles=alt_li_styles,
383
+ item_gap=gap_css)
335
384
 
336
385
  if is_export_active():
337
386
  export_pop_wrapper(f"</{tag}>")
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import html
5
6
  import json
6
7
  from typing import Optional
7
8
 
@@ -65,11 +66,17 @@ def record_if_active(html: str) -> None:
65
66
  # ---------------------------------------------------------------------------
66
67
 
67
68
  def generate_search_input_html(placeholder: str = "Search...") -> str:
68
- """Return HTML for the search input — rendered via st.markdown."""
69
+ """Return HTML for the search input — rendered via st.markdown.
70
+
71
+ The box takes the panel's own colours (transparent background, inherited
72
+ text), so it reads wherever the TOC reads: light or dark theme, Dark Reader
73
+ (board rch). Its placeholder and focus rules live in ``default.css``.
74
+ """
69
75
  return (
70
76
  f'<div style="margin-bottom:8px;">'
71
- f'<input data-stx-search="1" type="text" placeholder="{placeholder}"'
72
- f' style="width:100%;padding:6px 10px;border:1px solid #ccc;'
77
+ f'<input data-stx-search="1" type="text" placeholder="{html.escape(placeholder)}"'
78
+ f' style="width:100%;padding:6px 10px;background:transparent;color:inherit;'
79
+ f'border:1px solid currentColor;border:1px solid color-mix(in srgb, currentColor 45%, transparent);'
73
80
  f'border-radius:6px;font-size:14px;box-sizing:border-box;outline:none;" />'
74
81
  f'</div>'
75
82
  )
@@ -61,6 +61,16 @@ a {
61
61
  color: var(--stx-link-color);
62
62
  }
63
63
 
64
+ /* Sidebar search box: drawn in the panel's own colours (search.py), so its
65
+ hint and its focus follow them too (board rch) */
66
+ input[data-stx-search]::placeholder {
67
+ color: currentColor;
68
+ opacity: 0.6;
69
+ }
70
+ input[data-stx-search]:focus {
71
+ border-color: currentColor !important;
72
+ }
73
+
64
74
  /* --- Responsive sizing variables --- */
65
75
  /* Desktop defaults (used as fallback values in var() too) */
66
76
  :root {
@@ -11,7 +11,7 @@ from .core import Style, ListStyle, StyleGrid, theme, add_css, remove_css
11
11
  # Text styles
12
12
  from .text import (
13
13
  Decors, Weights, Alignments, Colors, Sizes, Fonts, Wrap,
14
- Titles, Text,
14
+ Leading, Titles, Text,
15
15
  )
16
16
 
17
17
  # Container styles
@@ -1,4 +1,4 @@
1
- """Text-related style definitions: Colors, Sizes, Fonts, Decors, Weights, Alignments, Titles."""
1
+ """Text-related style definitions: Colors, Sizes, Fonts, Decors, Weights, Alignments, Wrap, Leading, Titles."""
2
2
 
3
3
  from typing import Optional, Union
4
4
 
@@ -348,6 +348,21 @@ class Wrap:
348
348
  """Enables automatic hyphenation at line breaks (requires lang attribute on parent)."""
349
349
 
350
350
 
351
+ class Leading:
352
+ """Line-height (leading) presets, unitless so they scale with the font size.
353
+
354
+ Compose with a size: ``s.Large + s.text.leading.snug``.
355
+ """
356
+ tight = Style("line-height: 1.1;", "leading_tight")
357
+ """Line-height 1.1 — titles and one-line labels."""
358
+ snug = Style("line-height: 1.25;", "leading_snug")
359
+ """Line-height 1.25 — large text on slides, short paragraphs."""
360
+ normal = Style("line-height: 1.4;", "leading_normal")
361
+ """Line-height 1.4 — body text."""
362
+ relaxed = Style("line-height: 1.6;", "leading_relaxed")
363
+ """Line-height 1.6 — long reading passages."""
364
+
365
+
351
366
  class Titles:
352
367
  title = Style.create(
353
368
  Weights.bold_weight + Sizes.LARGE_size + Alignments.center_align,
@@ -369,3 +384,4 @@ class Text:
369
384
  fonts = Fonts
370
385
  titles = Titles
371
386
  wrap = Wrap
387
+ leading = Leading
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamtex
3
- Version: 0.7.83
3
+ Version: 0.7.85
4
4
  Summary: AI-powered content framework for Streamlit — create presentations, courses, and web-books with Claude or Cursor, no coding required.
5
5
  Author-email: Nicolas Guelfi <nicolas.guelfi@laposte.net>
6
6
  License-Expression: BUSL-1.1
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