tiddlywiki 5.2.1 → 5.2.2

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 (316) hide show
  1. package/.eslintignore +5 -12
  2. package/.eslintrc.yml +17 -1
  3. package/.github/workflows/ci.yml +3 -0
  4. package/bin/build-site.sh +1 -1
  5. package/bin/build-tw-org.sh +97 -0
  6. package/boot/boot.js +44 -17
  7. package/boot/bootprefix.js +1 -0
  8. package/contributing.md +1 -1
  9. package/core/copyright.tid +1 -1
  10. package/core/language/en-GB/ControlPanel.multids +3 -1
  11. package/core/language/en-GB/Fields.multids +4 -3
  12. package/core/language/en-GB/Misc.multids +1 -1
  13. package/core/modules/commands/init.js +1 -1
  14. package/core/modules/commands/savelibrarytiddlers.js +1 -1
  15. package/core/modules/commands/savewikifolder.js +1 -1
  16. package/core/modules/deserializers.js +7 -10
  17. package/core/modules/editor/operations/text/wrap-lines.js +5 -3
  18. package/core/modules/filters/crypto.js +27 -0
  19. package/core/modules/filters/insertbefore.js +1 -1
  20. package/core/modules/filters/is/draft.js +2 -2
  21. package/core/modules/filters/listops.js +2 -1
  22. package/core/modules/filters/lookup.js +29 -6
  23. package/core/modules/filters/prefix.js +30 -12
  24. package/core/modules/filters/removeprefix.js +16 -6
  25. package/core/modules/filters/removesuffix.js +20 -6
  26. package/core/modules/filters/search.js +1 -0
  27. package/core/modules/filters/suffix.js +32 -10
  28. package/core/modules/filters/untagged.js +1 -1
  29. package/core/modules/filters.js +4 -2
  30. package/core/modules/parsers/parseutils.js +2 -2
  31. package/core/modules/pluginswitcher.js +1 -1
  32. package/core/modules/savers/gitea.js +2 -2
  33. package/core/modules/savers/github.js +2 -2
  34. package/core/modules/savers/gitlab.js +2 -2
  35. package/core/modules/server/routes/put-tiddler.js +1 -1
  36. package/core/modules/server/server.js +37 -12
  37. package/core/modules/startup/browser-messaging.js +2 -2
  38. package/core/modules/startup/render.js +7 -2
  39. package/core/modules/startup/rootwidget.js +14 -0
  40. package/core/modules/startup/windows.js +22 -9
  41. package/core/modules/tiddler.js +3 -3
  42. package/core/modules/upgraders/plugins.js +1 -1
  43. package/core/modules/utils/crypto.js +2 -2
  44. package/core/modules/utils/dom/dragndrop.js +8 -6
  45. package/core/modules/utils/dom/scroller.js +11 -7
  46. package/core/modules/utils/edition-info.js +1 -5
  47. package/core/modules/utils/pluginmaker.js +2 -4
  48. package/core/modules/widgets/action-listops.js +2 -2
  49. package/core/modules/widgets/button.js +1 -1
  50. package/core/modules/widgets/draggable.js +16 -9
  51. package/core/modules/widgets/eventcatcher.js +34 -30
  52. package/core/modules/widgets/image.js +10 -0
  53. package/core/modules/widgets/importvariables.js +1 -1
  54. package/core/modules/widgets/list.js +3 -0
  55. package/core/modules/widgets/navigator.js +2 -17
  56. package/core/modules/widgets/radio.js +2 -2
  57. package/core/modules/widgets/scrollable.js +11 -9
  58. package/core/modules/widgets/widget.js +30 -14
  59. package/core/modules/wiki-bulkops.js +20 -15
  60. package/core/modules/wiki.js +39 -17
  61. package/core/templates/tiddlywiki5.html.tid +1 -1
  62. package/core/ui/ControlPanel/Cascades/FieldEditor.tid +9 -0
  63. package/core/ui/EditTemplate/body/default.tid +2 -2
  64. package/core/ui/EditTemplate/fieldEditor-default.tid +3 -0
  65. package/core/ui/EditTemplate/fields.tid +6 -4
  66. package/core/ui/EditTemplate/type.tid +1 -1
  67. package/core/ui/EditTemplate.tid +2 -2
  68. package/core/ui/MoreSideBar/plugins/Languages.tid +1 -1
  69. package/core/ui/MoreSideBar/plugins/Plugins.tid +1 -1
  70. package/core/ui/MoreSideBar/plugins/Theme.tid +1 -1
  71. package/core/ui/SideBar/Open.tid +2 -2
  72. package/core/wiki/allfields.tid +1 -1
  73. package/core/wiki/config/FieldEditorFilters.multids +4 -0
  74. package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
  75. package/core/wiki/config/ViewTemplateBodyFilters.multids +2 -1
  76. package/core/wiki/macros/list.tid +2 -2
  77. package/core/wiki/tags/ViewTemplateBodyFilter.tid +1 -1
  78. package/editions/dev/tiddlers/from Heigele and Jurke/Syncadaptor.tid +2 -2
  79. package/editions/dynaviewdemo/tiddlers/SideBar-Open.tid +1 -1
  80. package/editions/fr-FR/output/images/Blurry%20Lawn.jpg +0 -0
  81. package/editions/fr-FR/output/images/Newnham%20Horizon.jpg +0 -0
  82. package/editions/fr-FR/output/index.html +5051 -0
  83. package/editions/fr-FR/output/text/Alice%20in%20Wonderland.tid +3709 -0
  84. package/editions/fr-FR/tiddlers/$ _config_ViewTemplateTitleFilters_fr-default.tid +7 -0
  85. package/editions/fr-FR/tiddlers/$ _core_ui_ViewTemplate_title_fr-default.tid +8 -0
  86. package/editions/fr-FR/tiddlers/$__deprecated.tid +9 -0
  87. package/editions/fr-FR/tiddlers/$__editions_fr-FR_util-macros.tid +1 -0
  88. package/editions/fr-FR/tiddlers/$__editions_tw5.com_doc-macros.tid +69 -5
  89. package/editions/fr-FR/tiddlers/$__editions_tw5.com_version-macros.tid +15 -0
  90. package/editions/fr-FR/tiddlers/$__editions_tw5.com_wikitext-macros.tid +2 -2
  91. package/editions/fr-FR/tiddlers/Block_Quotes_in_WikiText.tid +15 -8
  92. package/editions/fr-FR/tiddlers/CamelCase.tid +6 -3
  93. package/editions/fr-FR/tiddlers/Code Blocks in WikiText.tid +27 -16
  94. package/editions/fr-FR/tiddlers/Community Links Aggregator.tid +11 -0
  95. package/editions/fr-FR/tiddlers/Community.tid +6 -4
  96. package/editions/fr-FR/tiddlers/Creating and editing tiddlers.tid +11 -11
  97. package/editions/fr-FR/tiddlers/Deprecated - What does it mean.tid +17 -0
  98. package/editions/fr-FR/tiddlers/Developers.tid +10 -5
  99. package/editions/fr-FR/tiddlers/Federatial.tid +11 -0
  100. package/editions/fr-FR/tiddlers/Formatting in WikiText.tid +12 -12
  101. package/editions/fr-FR/tiddlers/Forums.tid +27 -13
  102. package/editions/fr-FR/tiddlers/GettingStarted.tid +16 -14
  103. package/editions/fr-FR/tiddlers/Glossaire en-GB -_ fr-FR.tid +3 -1
  104. package/editions/fr-FR/tiddlers/HTML in WikiText.tid +77 -28
  105. package/editions/fr-FR/tiddlers/Headings in WikiText.tid +2 -2
  106. package/editions/fr-FR/tiddlers/HelloThere.tid +15 -12
  107. package/editions/fr-FR/tiddlers/How to export tiddlers.tid +31 -0
  108. package/editions/fr-FR/tiddlers/ImageWidget.tid +33 -0
  109. package/editions/fr-FR/tiddlers/Images in WikiText.tid +69 -0
  110. package/editions/fr-FR/tiddlers/Importing Tiddlers.tid +26 -0
  111. package/editions/fr-FR/tiddlers/JeremyRuston.tid +9 -9
  112. package/editions/fr-FR/tiddlers/Linking in WikiText.tid +108 -19
  113. package/editions/fr-FR/tiddlers/ListField.tid +6 -6
  114. package/editions/fr-FR/tiddlers/Macros in WikiText.tid +5 -5
  115. package/editions/fr-FR/tiddlers/Macros.tid +17 -8
  116. package/editions/fr-FR/tiddlers/PermaLinks.tid +19 -19
  117. package/editions/fr-FR/tiddlers/Philosophy of Tiddlers.tid +2 -2
  118. package/editions/fr-FR/tiddlers/Saving.tid +63 -4
  119. package/editions/fr-FR/tiddlers/Share Plugin.tid +15 -0
  120. package/editions/fr-FR/tiddlers/{Sharing_a_TiddlyWiki_on_Dropbox.tid → Sharing a TiddlyWiki on Dropbox.tid } +12 -4
  121. package/editions/fr-FR/tiddlers/Sharing your tiddlers with others.tid +18 -0
  122. package/editions/fr-FR/tiddlers/Structuring TiddlyWiki.tid +6 -6
  123. package/editions/fr-FR/tiddlers/Styles and Classes in WikiText.tid +11 -10
  124. package/editions/fr-FR/tiddlers/Tagging.tid +24 -18
  125. package/editions/fr-FR/tiddlers/TaskManagementExample.tid +3 -1
  126. package/editions/fr-FR/tiddlers/TiddlerLinks.tid +5 -5
  127. package/editions/fr-FR/tiddlers/TiddlyFox Apocalypse.tid +46 -0
  128. package/editions/fr-FR/tiddlers/TiddlyFox.tid +6 -3
  129. package/editions/fr-FR/tiddlers/TiddlyWiki.tid +6 -4
  130. package/editions/fr-FR/tiddlers/_TiddlyWiki for Scholars_ by Alberto Molina.tid +2 -2
  131. package/editions/prerelease/tiddlers/{Release 5.2.2.tid → Release 5.2.3.tid } +15 -11
  132. package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
  133. package/editions/prerelease/tiddlers/system/download-empty.tid +1 -0
  134. package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal-all.tid +33 -0
  135. package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal.tid +43 -0
  136. package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-vertical.tid +43 -0
  137. package/editions/test/tiddlers/tests/test-action-widgets.js +55 -0
  138. package/editions/test/tiddlers/tests/test-filters.js +225 -64
  139. package/editions/test/tiddlers/tests/test-html-parser.js +15 -0
  140. package/editions/test/tiddlers/tests/test-prefixes-filter.js +5 -5
  141. package/editions/test/tiddlers/tests/test-tags.js +19 -0
  142. package/editions/test/tiddlers/tests/test-utils.js +10 -0
  143. package/editions/test/tiddlers/tests/test-wikitext-parser.js +14 -1
  144. package/editions/test/tiddlers/tests/test-wikitext-tabs-macro.js +86 -0
  145. package/editions/tw.org/tiddlers/$__DefaultTiddlers.tid +6 -0
  146. package/editions/tw.org/tiddlers/$__SiteSubtitle.tid +6 -0
  147. package/editions/tw.org/tiddlers/$__SiteTitle.tid +6 -0
  148. package/editions/tw.org/tiddlers/$__StoryList.tid +3 -0
  149. package/editions/tw.org/tiddlers/$__favicon.ico.png +0 -0
  150. package/editions/tw.org/tiddlers/$__favicon.ico.png.meta +4 -0
  151. package/editions/tw.org/tiddlers/$__palette.tid +6 -0
  152. package/editions/tw.org/tiddlers/$__palettes_BlueFlavour +165 -0
  153. package/editions/tw.org/tiddlers/$__palettes_BlueFlavour.meta +8 -0
  154. package/editions/tw.org/tiddlers/$__palettes_FlowingSun +165 -0
  155. package/editions/tw.org/tiddlers/$__palettes_FlowingSun.meta +8 -0
  156. package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_bodyfontsize.tid +6 -0
  157. package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_bodylineheight.tid +6 -0
  158. package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid +6 -0
  159. package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +6 -0
  160. package/editions/tw.org/tiddlers/HelloThere.tid +14 -0
  161. package/editions/tw.org/tiddlers/Table of Contents.tid +11 -0
  162. package/editions/tw.org/tiddlers/TiddlyWiki.tid +8 -0
  163. package/editions/tw.org/tiddlywiki.info +30 -0
  164. package/editions/tw5.com/tiddlers/community/Contributor License Agreement.tid +3 -3
  165. package/editions/tw5.com/tiddlers/community/Forums.tid +16 -13
  166. package/editions/tw5.com/tiddlers/community/Signing the Contributor License Agreement.tid +2 -2
  167. package/editions/tw5.com/tiddlers/community/plugins/TiddlyClip by buggyjay.tid +3 -3
  168. package/editions/tw5.com/tiddlers/concepts/Cascades.tid +1 -0
  169. package/editions/tw5.com/tiddlers/concepts/Customizing EditTemplate Field Rendering.tid +31 -0
  170. package/editions/tw5.com/tiddlers/concepts/Field Editor Cascade.tid +17 -0
  171. package/editions/tw5.com/tiddlers/concepts/Filters.tid +15 -10
  172. package/editions/tw5.com/tiddlers/concepts/Macros.tid +1 -3
  173. package/editions/tw5.com/tiddlers/concepts/Pragma.tid +2 -2
  174. package/editions/tw5.com/tiddlers/concepts/TiddlerFields.tid +2 -1
  175. package/editions/tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid +3707 -4
  176. package/editions/tw5.com/tiddlers/demonstrations/Apple.tid +6 -1
  177. package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +1 -0
  178. package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid +1 -0
  179. package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid +1 -0
  180. package/editions/tw5.com/tiddlers/features/Importing Tiddlers.tid +1 -1
  181. package/editions/tw5.com/tiddlers/features/Modals.tid +2 -1
  182. package/editions/tw5.com/tiddlers/filters/Filter Operators.tid +9 -5
  183. package/editions/tw5.com/tiddlers/filters/all.tid +2 -2
  184. package/editions/tw5.com/tiddlers/filters/butlast.tid +3 -1
  185. package/editions/tw5.com/tiddlers/filters/examples/butlast.tid +4 -3
  186. package/editions/tw5.com/tiddlers/filters/examples/insertbefore Operator (Examples).tid +28 -0
  187. package/editions/tw5.com/tiddlers/filters/examples/lookup Operator (Examples).tid +5 -0
  188. package/editions/tw5.com/tiddlers/filters/examples/prefix.tid +4 -3
  189. package/editions/tw5.com/tiddlers/filters/examples/removeprefix.tid +2 -1
  190. package/editions/tw5.com/tiddlers/filters/examples/removesuffix.tid +2 -3
  191. package/editions/tw5.com/tiddlers/filters/examples/rest.tid +4 -3
  192. package/editions/tw5.com/tiddlers/filters/examples/search.tid +6 -1
  193. package/editions/tw5.com/tiddlers/filters/examples/sortan.tid +5 -1
  194. package/editions/tw5.com/tiddlers/filters/examples/suffix.tid +3 -2
  195. package/editions/tw5.com/tiddlers/filters/insertbefore Operator.tid +21 -5
  196. package/editions/tw5.com/tiddlers/filters/lookup Operator.tid +28 -10
  197. package/editions/tw5.com/tiddlers/filters/prefix.tid +17 -2
  198. package/editions/tw5.com/tiddlers/filters/removeprefix.tid +18 -3
  199. package/editions/tw5.com/tiddlers/filters/removesuffix.tid +18 -3
  200. package/editions/tw5.com/tiddlers/filters/search.tid +10 -9
  201. package/editions/tw5.com/tiddlers/filters/sha256 Operator.tid +18 -0
  202. package/editions/tw5.com/tiddlers/filters/subfilter Operator.tid +2 -2
  203. package/editions/tw5.com/tiddlers/filters/suffix.tid +17 -2
  204. package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid +2 -2
  205. package/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid +1 -1
  206. package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +3 -3
  207. package/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid +4 -14
  208. package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
  209. package/editions/tw5.com/tiddlers/macros/list-links-draggable Macro.tid +1 -1
  210. package/editions/tw5.com/tiddlers/messages/SampleWindowTemplate.tid +2 -2
  211. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-all-windows.tid +20 -0
  212. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-window.tid +39 -0
  213. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-download-file.tid +6 -1
  214. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-open-window.tid +16 -12
  215. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-relink-tiddler.tid +26 -0
  216. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-rename-tiddler.tid +4 -2
  217. package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-scroll.tid +3 -0
  218. package/editions/tw5.com/tiddlers/plugins/Highlight Plugin.tid +3 -1
  219. package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.21.tid +6 -0
  220. package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.22.tid +6 -0
  221. package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.23.tid +6 -0
  222. package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.0.tid +6 -0
  223. package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.1.tid +6 -0
  224. package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.2.tid +162 -0
  225. package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +4 -2
  226. package/editions/tw5.com/tiddlers/saving/Saving on Browser with the File System Access API.tid +21 -0
  227. package/editions/tw5.com/tiddlers/saving/Saving on TidGi.tid +26 -0
  228. package/editions/tw5.com/tiddlers/saving/Saving via WebDAV.tid +3 -1
  229. package/editions/tw5.com/tiddlers/saving/Saving with Polly.tid +29 -0
  230. package/editions/tw5.com/tiddlers/system/doc-macros.tid +25 -1
  231. package/editions/tw5.com/tiddlers/system/doc-styles.tid +5 -1
  232. package/editions/tw5.com/tiddlers/system/download-empty.tid +1 -0
  233. package/editions/tw5.com/tiddlers/system/operator-macros.tid +4 -2
  234. package/editions/tw5.com/tiddlers/system/operator-template.tid +6 -3
  235. package/editions/tw5.com/tiddlers/system/style-guide-macros.tid +5 -1
  236. package/editions/tw5.com/tiddlers/system/variable-macros.tid +4 -2
  237. package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +17 -3
  238. package/editions/tw5.com/tiddlers/webserver/Using HTTPS.tid +17 -2
  239. package/editions/tw5.com/tiddlers/webserver/WebServer API_ Get All Tiddlers.tid +1 -1
  240. package/editions/tw5.com/tiddlers/webserver/WebServer Authorization.tid +15 -3
  241. package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ admin.tid +8 -0
  242. package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ required-plugins.tid +8 -0
  243. package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ tls-passphrase.tid +10 -0
  244. package/editions/tw5.com/tiddlers/widgets/$__editions_tw5.com_widget-examples_qualify-transcluded.tid +14 -0
  245. package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +7 -3
  246. package/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid +1 -1
  247. package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +7 -6
  248. package/editions/tw5.com/tiddlers/widgets/ImageWidget.tid +9 -1
  249. package/editions/tw5.com/tiddlers/widgets/LinkCatcherWidget.tid +2 -1
  250. package/editions/tw5.com/tiddlers/widgets/MacroCallWidget.tid +3 -1
  251. package/editions/tw5.com/tiddlers/widgets/MessageCatcherWidget.tid +2 -2
  252. package/editions/tw5.com/tiddlers/widgets/QualifyWidget.tid +39 -0
  253. package/editions/tw5.com/tiddlers/widgets/TranscludeWidget.tid +7 -6
  254. package/editions/tw5.com/tiddlers/widgets/ViewWidget.tid +26 -8
  255. package/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid +2 -2
  256. package/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid +30 -4
  257. package/editions/tw5.com/tiddlers/wikitext/Images in WikiText.tid +3 -3
  258. package/editions/tw5.com/tiddlers/wikitext/Linking in WikiText.tid +44 -1
  259. package/editions/tw5.com/tiddlers/wikitext/Macro Calls in WikiText.tid +3 -3
  260. package/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid +2 -1
  261. package/editions/tw5.com/tiddlers/wikitext/Widgets in WikiText.tid +3 -3
  262. package/editions/tw5.com/tiddlers/wikitext/parser/Block Mode WikiText (Examples).tid +51 -0
  263. package/editions/tw5.com/tiddlers/wikitext/parser/Block Mode WikiText.tid +35 -0
  264. package/editions/tw5.com/tiddlers/wikitext/parser/Inline Mode WikiText.tid +26 -0
  265. package/editions/tw5.com/tiddlers/wikitext/parser/Places where the parser ignores WikiText.tid +14 -0
  266. package/editions/tw5.com/tiddlers/wikitext/parser/WikiText Parser Modes.tid +16 -0
  267. package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode transitions.tid +59 -0
  268. package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ HTML examples.tid +72 -0
  269. package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ macro examples.tid +55 -0
  270. package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ transclusion examples.tid +56 -0
  271. package/editions/tw5.com/tiddlers/wikitext/parser/table-example.tid +8 -0
  272. package/languages/de-DE/ControlPanel.multids +17 -0
  273. package/languages/de-DE/Fields.multids +6 -5
  274. package/languages/de-DE/SideBar.multids +1 -0
  275. package/languages/pl-PL/ControlPanel.multids +15 -2
  276. package/languages/zh-Hans/ControlPanel.multids +2 -0
  277. package/languages/zh-Hans/Fields.multids +4 -2
  278. package/languages/zh-Hans/Misc.multids +1 -1
  279. package/languages/zh-Hant/ControlPanel.multids +2 -0
  280. package/languages/zh-Hant/Fields.multids +4 -2
  281. package/languages/zh-Hant/Misc.multids +1 -1
  282. package/license +1 -1
  283. package/licenses/cla-individual.md +13 -1
  284. package/package.json +5 -3
  285. package/plugins/tiddlywiki/dynannotate/examples/viewtemplate.tid +3 -4
  286. package/plugins/tiddlywiki/highlight/files/default.min.css +9 -0
  287. package/plugins/tiddlywiki/highlight/files/highlight.min.js +1401 -0
  288. package/plugins/tiddlywiki/highlight/files/tiddlywiki.files +2 -2
  289. package/plugins/tiddlywiki/highlight/highlightblock.js +27 -21
  290. package/plugins/tiddlywiki/highlight/plugin.info +1 -1
  291. package/plugins/tiddlywiki/highlight/readme.tid +18 -47
  292. package/plugins/tiddlywiki/highlight/styles.tid +10 -5
  293. package/plugins/tiddlywiki/highlight/usage.tid +48 -1
  294. package/plugins/tiddlywiki/highlight-legacy/TypeMappings.multids +8 -0
  295. package/plugins/tiddlywiki/{highlight → highlight-legacy}/files/default.css +0 -0
  296. package/plugins/tiddlywiki/{highlight → highlight-legacy}/files/highlight.pack.js +0 -0
  297. package/plugins/tiddlywiki/highlight-legacy/files/tiddlywiki.files +22 -0
  298. package/plugins/tiddlywiki/highlight-legacy/highlightblock.js +44 -0
  299. package/plugins/tiddlywiki/highlight-legacy/license.tid +27 -0
  300. package/plugins/tiddlywiki/highlight-legacy/plugin.info +7 -0
  301. package/plugins/tiddlywiki/highlight-legacy/readme.tid +65 -0
  302. package/plugins/tiddlywiki/highlight-legacy/styles.tid +82 -0
  303. package/plugins/tiddlywiki/highlight-legacy/usage.tid +28 -0
  304. package/plugins/tiddlywiki/internals/editpreviews/raw.tid +1 -0
  305. package/plugins/tiddlywiki/markdown/config_renderWikiTextPragma.tid +1 -1
  306. package/plugins/tiddlywiki/markdown/wrapper.js +33 -22
  307. package/plugins/tiddlywiki/menubar/menu.tid +1 -1
  308. package/readme.md +2 -2
  309. package/themes/tiddlywiki/snowwhite/base.tid +2 -1
  310. package/themes/tiddlywiki/vanilla/base.tid +13 -3
  311. package/themes/tiddlywiki/vanilla/sticky.tid +1 -0
  312. package/editions/fr-FR/tiddlers/$__core_ui_ViewTemplate_title.tid +0 -46
  313. package/editions/fr-FR/tiddlers/Images_in_WikiText.tid +0 -48
  314. package/editions/fr-FR/tiddlers/ImportTiddlers.tid +0 -14
  315. package/editions/fr-FR/tiddlers/Sharing_your_tiddlers_with_others.tid +0 -16
  316. package/plugins/tiddlywiki/highlight/howto.tid +0 -10
@@ -0,0 +1,29 @@
1
+ caption: Polly
2
+ color: #29B6F6
3
+ community-author: TiddlyTweeter
4
+ created: 20220223153410510
5
+ delivery: Service
6
+ description: Batch script for saving downloaded TiddlyWiki files.
7
+ method: save
8
+ modified: 20220223160414274
9
+ tags: Chrome Firefox [[Internet Explorer]] Linux Mac Opera Safari Saving Windows Edge
10
+ title: Saving with Polly
11
+ type: text/vnd.tiddlywiki
12
+
13
+ [[Polly|https://github.com/Marxsal/polly]] is a batch file system using Windows //~PowerShell// to restore ~TiddlyWiki files from a specified download directory to their original home directory.
14
+
15
+ Effectively, this becomes a new way to save your files, but with these features:
16
+
17
+ * No binary executables
18
+ * Human-readable batch script.
19
+ * No special plugins in your ~TiddlyWiki file
20
+ * No special browser required
21
+ * No browser extension required.
22
+ * No need for node.exe running in background
23
+ * Total size expanded package only 100k
24
+ * Backups as regular file and/or zip to specified directories
25
+ * The ability to "parrot" extra copies to target directories (e.g. a Dropbox folder)
26
+
27
+ It should be able to run anywhere that //~PowerShell// runs, including Windows, Linux, and Mac.
28
+
29
+ https://github.com/Marxsal/polly
@@ -1,5 +1,5 @@
1
1
  created: 20150117152607000
2
- modified: 201804111739
2
+ modified: 20211230150413997
3
3
  tags: $:/tags/Macro
4
4
  title: $:/editions/tw5.com/doc-macros
5
5
  type: text/vnd.tiddlywiki
@@ -113,6 +113,20 @@ This is an example tiddler. See [[Table-of-Contents Macros (Examples)]].
113
113
  </$list>
114
114
  \end
115
115
 
116
+ \define .bad-example(eg)
117
+ <table class="doc-bad-example">
118
+ <tbody>
119
+ <tr class="evenRow">
120
+ <td><span class="tc-inline-style" style="font-size:1.5em;">&#9888;</span> Warning:<br> Don't do it this way!</td>
121
+ <td>
122
+
123
+ $eg$
124
+ </td>
125
+ </tr>
126
+ </tbody>
127
+ </table>
128
+ \end
129
+
116
130
  \define .link-badge(text,link,colour)
117
131
  <a href=<<__link__>> class="doc-link-badge" style="background-color:$colour$;" target="_blank" rel="noopener noreferrer"><$text text=<<__text__>>/></a>
118
132
  \end
@@ -147,4 +161,14 @@ This is an example tiddler. See [[Table-of-Contents Macros (Examples)]].
147
161
  </$tiddler>
148
162
  \end
149
163
 
164
+ \define .banner-credits(credit,url)
165
+ <img src=<<__url__>> width="140" style="float:left;margin-right:0.5em;"/>
166
+
167
+ $credit$
168
+
169
+ <div style="clear:both;">
170
+
171
+ </div>
172
+ \end
173
+
150
174
  <pre><$view field="text"/></pre>
@@ -1,5 +1,5 @@
1
1
  created: 20150117152612000
2
- modified: 20211124164948726
2
+ modified: 20211230150725145
3
3
  tags: $:/tags/Stylesheet
4
4
  title: $:/editions/tw5.com/doc-styles
5
5
  type: text/vnd.tiddlywiki
@@ -133,6 +133,10 @@ td svg {
133
133
  padding-left: 20px;
134
134
  }
135
135
 
136
+ .doc-bad-example code, .doc-bad-example pre, table.doc-bad-example {
137
+ background-color:#ffff80;
138
+ }
139
+
136
140
  .doc-table th, .doc-table tr {
137
141
  vertical-align: top;
138
142
  }
@@ -1,4 +1,5 @@
1
1
  title: $:/editions/tw5.com/download-empty
2
+ code-body: yes
2
3
 
3
4
  \define saveTiddlerFilter()
4
5
  [[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
@@ -1,7 +1,7 @@
1
1
  created: 20150117152607000
2
- modified: 20150228114306000
3
- title: $:/editions/tw5.com/operator-macros
2
+ modified: 20220227210111054
4
3
  tags: $:/tags/Macro
4
+ title: $:/editions/tw5.com/operator-macros
5
5
 
6
6
  \define .operator-examples(op,text:"Examples") <$link to="$op$ Operator (Examples)">$text$</$link>
7
7
 
@@ -48,3 +48,5 @@ tags: $:/tags/Macro
48
48
  <$macrocall $name=".note" _="This operator is <<.em not>> available when ~TiddlyWiki is running in a web browser."/>
49
49
 
50
50
  \end
51
+
52
+ <pre><$view field="text"/></pre>
@@ -1,8 +1,8 @@
1
1
  created: 20150203173506000
2
- modified: 20150203181725000
3
- title: $:/editions/tw5.com/operator-template
4
- tags: $:/tags/ViewTemplate
5
2
  list-before: $:/core/ui/ViewTemplate/body
3
+ modified: 20220316121232243
4
+ tags: $:/tags/ViewTemplate
5
+ title: $:/editions/tw5.com/operator-template
6
6
 
7
7
  \define .op-place()
8
8
  <$macrocall $name=".if"
@@ -71,6 +71,9 @@ list-before: $:/core/ui/ViewTemplate/body
71
71
  </$set>
72
72
  <!-- -->
73
73
  </table>
74
+
75
+ [[Learn more about how to use Filters|Filters]]
76
+
74
77
  <$list filter="[all[current]has[from-version]]" variable="listItem">
75
78
  <$macrocall $name=".from-version" version={{!!from-version}}/>
76
79
  </$list>
@@ -1,5 +1,7 @@
1
- title: $:/editions/tw5.com/style-guide-macros
1
+ created: 20220227210120989
2
+ modified: 20220227210123695
2
3
  tags: $:/tags/Macro
4
+ title: $:/editions/tw5.com/style-guide-macros
3
5
 
4
6
  \define style-guide(good,bad)
5
7
  <table>
@@ -15,3 +17,5 @@ tags: $:/tags/Macro
15
17
  </tbody>
16
18
  </table>
17
19
  \end
20
+
21
+ <pre><$view field="text"/></pre>
@@ -1,7 +1,7 @@
1
1
  created: 20150228114241000
2
- modified: 20150228141312000
3
- title: $:/editions/tw5.com/variable-macros
2
+ modified: 20220227210136243
4
3
  tags: $:/tags/Macro
4
+ title: $:/editions/tw5.com/variable-macros
5
5
 
6
6
  \define .variable-examples(v,text:"Examples") <$link to="$v$ Variable (Examples)">$text$</$link>
7
7
  \define .macro-examples(m,text:"Examples") <$link to="$m$ Macro (Examples)">$text$</$link>
@@ -17,3 +17,5 @@ It can be set to <<.value yes>> or <<.value no>> prior to transcluding such a bu
17
17
 
18
18
  The standard page template sets it to the value found in [[$configTiddler$]], with the result that this becomes the default for the whole page. The user can adjust this default by using a tickbox on the <<.controlpanel-tab Settings>> tab of the [[Control Panel|$:/ControlPanel]].
19
19
  \end
20
+
21
+ <pre><$view field="text"/></pre>
@@ -1,7 +1,8 @@
1
1
  created: 20150117184156000
2
- modified: 20150117184616000
3
- title: $:/editions/tw5.com/wikitext-macros
2
+ modified: 20220227210152153
4
3
  tags: $:/tags/Macro
4
+ title: $:/editions/tw5.com/wikitext-macros
5
+ type: text/vnd.tiddlywiki
5
6
 
6
7
  \define wikitext-example(src)
7
8
  <div class="doc-example">
@@ -43,6 +44,17 @@ $$$
43
44
  </div>
44
45
  \end
45
46
 
47
+ \define wikitext-example-table-header() <thead><tr><th/><th>wiki text</th><th>renders as</th></tr></thead>
48
+
49
+ \define wikitext-example-table-row(id, code)
50
+ <tr>
51
+ <th><<__id__>></th><td><$codeblock code=<<__code__>>/></td><td>
52
+
53
+ <<__code__>>
54
+ </td>
55
+ </tr>
56
+ \end
57
+
46
58
  \define tw-code(tiddler)
47
59
  <$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/>
48
60
  \end
@@ -51,4 +63,6 @@ $$$
51
63
  [[$tiddler$]]:
52
64
 
53
65
  <<tw-code $tiddler$>>
54
- \end
66
+ \end
67
+
68
+ <pre><$view field="text"/></pre>
@@ -1,12 +1,14 @@
1
1
  created: 20180702160923664
2
- modified: 20180703100549667
2
+ modified: 20211111023610539
3
3
  tags: [[WebServer Guides]]
4
4
  title: Using HTTPS
5
5
  type: text/vnd.tiddlywiki
6
6
 
7
7
  By default, TiddlyWiki's WebServer serves resources over the insecure HTTP protocol. The risk is minimal if it is only being used within a private, trusted network but in many situations it is desirable to use a secure HTTPS connection.
8
8
 
9
- HTTPS requires the server to be configured with a certificate via a "cert" file and a "key" file, configured via the [[tls-cert|WebServer Parameter: tls-cert]] and [[tls-key|WebServer Parameter: tls-key]] parameters
9
+ HTTPS requires the server to be configured with a certificate via a "cert" file and a "key" file, configured via the [[tls-cert|WebServer Parameter: tls-cert]] and [[tls-key|WebServer Parameter: tls-key]] parameters.
10
+
11
+ <<.from-version "5.2.2">> The optional [[tls-passphrase|WebServer Parameter: tls-passphrase]] parameter allows the server to use certificate files that have been generated with a passphrase/password.
10
12
 
11
13
  Certificates can be obtained from a certification authority such as https://letsencrypt.org/, or you can create a self-signed certificate for internal testing.
12
14
 
@@ -17,3 +19,16 @@ openssl req -newkey rsa:2048 -new -nodes -keyout mywikifolder/key.pem -out mywik
17
19
  openssl x509 -req -days 365 -in mywikifolder/csr.pem -signkey mywikifolder/key.pem -out mywikifolder/server.crt
18
20
  tiddlywiki mywikifolder --listen username=joe password=bloggs tls-key=key.pem tls-cert=server.crt
19
21
  ```
22
+
23
+ If using a [[tls-passphrase|WebServer Parameter: tls-passphrase]] to generate the certificate files, the commands would change as below:
24
+
25
+ * remove the `-nodes` flag, which specifies "no encryption"
26
+ * replace `TLS_PASSPHRASE` in the `-passout` and `-passin` parameters in the below commands with your chosen string.
27
+
28
+ This is the simplest, but __least secure method,__ of passing a passphrase to the certificate utility. See [[this Stack Exchange anwser on openssl certificates|https://security.stackexchange.com/questions/106525/generate-csr-and-private-key-with-password-with-openssl]] and the [[openssl|https://www.openssl.org/docs/man1.0.2/man1/openssl.html]] and [[openssl-passphrase-options|https://www.openssl.org/docs/manmaster/man1/openssl-passphrase-options.html]] page in the openssl utility documentation.
29
+
30
+ ```
31
+ openssl req -newkey rsa:2048 -passout pass:TLS_PASSPHRASE -new -keyout mywikifolder/key.pem -out mywikifolder/csr.pem -passout pass:TLS_PASSPHRASE
32
+ openssl x509 -req -days 365 -in mywikifolder/csr.pem -signkey mywikifolder/key.pem -out mywikifolder/server.crt -passin pass:TLS_PASSPHRASE
33
+ tiddlywiki mywikifolder --listen username=joe password=bloggs tls-key=key.pem tls-cert=server.crt tls-passphrase=TLS_PASSPHRASE
34
+ ```
@@ -20,7 +20,7 @@ In order to avoid denial of service attacks with malformed filters in the defaul
20
20
  To enable a particular filter, create a tiddler with the title "$:/config/Server/ExternalFilters/" concatenated with the filter text, and the text field set to "yes". For example, the TiddlyWeb plugin includes the following shadow tiddler to enable the filter that it requires:
21
21
 
22
22
  ```
23
- title: $:/config/Server/ExternalFilters/[all[tiddlers]] -[[$:/isEncrypted]] -[prefix[$:/temp/]] -[prefix[$:/status/]]
23
+ title: $:/config/Server/ExternalFilters/[all[tiddlers]] -[[$:/isEncrypted]] -[prefix[$:/temp/]] -[prefix[$:/status/]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/library/sjcl.js]] -[[$:/core]]
24
24
  text: yes
25
25
  ```
26
26
 
@@ -1,18 +1,24 @@
1
1
  created: 20180630194006239
2
- modified: 20180904174030250
2
+ modified: 20211122004159427
3
3
  tags: WebServer
4
4
  title: WebServer Authorization
5
5
  type: text/vnd.tiddlywiki
6
6
 
7
- ''Authorization'' is the process of determining which resources may be accessed by a particular user. It occurs after [[authentication|WebServer Authentication]] has determined the identity of the user. TiddlyWiki's WebServer implements a simple authorization scheme which permits independent control of who has read and write access to a wiki.
7
+ ''Authorization'' is the process of determining which resources may be accessed by a particular user. It occurs after [[authentication|WebServer Authentication]] has determined the identity of the user. TiddlyWiki's WebServer implements a simple authorization scheme which permits independent control of who has administrator access to the server, and read and write access to a wiki.
8
8
 
9
- The WebServer parameters [[readers|WebServer Parameter: readers]] and [[writers|WebServer Parameter: writers]] each contain a comma separated list of //principals// (which is to say, either usernames or certain special tokens) which should have read or write access respectively.
9
+ The WebServer parameters [[admin|WebServer Parameter: admin]], [[readers|WebServer Parameter: readers]] and [[writers|WebServer Parameter: writers]] each contain a comma separated list of //principals// (which is to say, either usernames or certain special tokens) which should have read or write access respectively.
10
10
 
11
11
  The available special tokens are:
12
12
 
13
13
  * ''(anon)'' - indicates all anonymous users
14
14
  * ''(authenticated)'' - indicates all authenticated users
15
15
 
16
+ !! Admin Functions
17
+
18
+ <<.tip"""The ''(anon)'' token is not valid for the [[admin|WebServer Parameter: admin]] parameter.""">>
19
+
20
+ At this time, no server functions are restricted to ''admin'' authorized users in the unmodified [[Tiddlywiki server|WebServer]]. Third party plugins can leverage this to restrict routes or commands to a subset of authorized users.
21
+
16
22
  !! Read-only Mode
17
23
 
18
24
  Read-only mode is engaged when the current user is not authorized to write to the current wiki.
@@ -39,3 +45,9 @@ In the following example, read access is granted to all authenticated users, but
39
45
  ```
40
46
  tiddlywiki mywikifolder --listen credentials=myusers.csv "readers=(authenticated)" writers=mary
41
47
  ```
48
+
49
+ In the following example, read and write access is granted to all authenticated users, but only "mary" is granted admin access:
50
+
51
+ ```
52
+ tiddlywiki mywikifolder --listen credentials=myusers.csv "readers=(authenticated)" "writers=(authenticated)" admin=mary
53
+ ```
@@ -0,0 +1,8 @@
1
+ caption: admin
2
+ created: 20211111015634164
3
+ modified: 20211111023141767
4
+ tags: [[WebServer Parameters]]
5
+ title: WebServer Parameter: admin
6
+ type: text/vnd.tiddlywiki
7
+
8
+ <<.from-version "5.2.2">> The [[web server configuration parameter|WebServer Parameters]] ''admin'' is used to specify the security principals with administrator access to the [[WebServer]]. Does not accept the ''(anon)'' special token. See [[WebServer Authorization]] for more details.
@@ -0,0 +1,8 @@
1
+ caption: required-plugins
2
+ created: 20211226160733000
3
+ modified: 20211226160754000
4
+ tags: [[WebServer Parameters]]
5
+ title: WebServer Parameter: required-plugins
6
+ type: text/vnd.tiddlywiki
7
+
8
+ <<.from-version "5.2.2">> The [[web server configuration parameter|WebServer Parameters]] ''required-plugins'' is used to specify the plugins required to start the [[WebServer]]. It take a comma seperated list of plugin titles. The WebServer will issue a warnign in the console if the required plugins are not loaded. This parameter defaults to `$:/plugins/tiddlywiki/filesystem,$:/plugins/tiddlywiki/tiddlyweb`.
@@ -0,0 +1,10 @@
1
+ caption: tls-passphrase
2
+ created: 20211111004416873
3
+ modified: 20211111022120158
4
+ tags: [[WebServer Parameters]]
5
+ title: WebServer Parameter: tls-passphrase
6
+ type: text/vnd.tiddlywiki
7
+
8
+ <<.from-version "5.2.2">> The optional [[web server configuration parameter|WebServer Parameters]] ''tls-passphrase'' contains the "certificate passphrase", a string used to decrypt the certificate file used when running the web server under HTTPS.
9
+
10
+ See [[Using HTTPS]] for details.
@@ -0,0 +1,14 @@
1
+ created: 20220125161941555
2
+ modified: 20220125162920771
3
+ tags: [[Widget Examples]]
4
+ title: $:/editions/tw5.com/widget-examples/qualify-transcluded
5
+ type: text/vnd.tiddlywiki
6
+
7
+ <$macrocall $name=".example" n="1"
8
+ eg="""<$qualify title="BaseTiddler" name="iamnotanumber">
9
+ <ul>
10
+ <li><code><<iamnotanumber>></code></li>
11
+ <li><code><<transclusion>></code></li>
12
+ </ul>
13
+ </$qualify>
14
+ """/>
@@ -1,6 +1,6 @@
1
1
  caption: draggable
2
2
  created: 20170406081938627
3
- modified: 20211009122105437
3
+ modified: 20220223145136863
4
4
  tags: Widgets TriggeringWidgets
5
5
  title: DraggableWidget
6
6
  type: text/vnd.tiddlywiki
@@ -16,8 +16,10 @@ See DragAndDropMechanism for an overview.
16
16
  |!Attribute |!Description |
17
17
  |tiddler |Optional title of the payload tiddler for the drag |
18
18
  |filter |Optional filter defining the payload tiddlers for the drag |
19
- |class |Optional CSS classes to assign to the draggable element. The class `tc-draggable` is added automatically, and the class `tc-dragging` is applied while the element is being dragged |
20
- |tag |Optional tag to override the default "div" element |
19
+ |tag |Optional tag to override the default "div" element created by the widget|
20
+ |selector|<<.from-version 5.2.2>> Optional CSS Selector to identify a DOM element within the widget that will be used as the drag handle |
21
+ |class |Optional CSS classes to assign to the DOM element created by the widget. The class `tc-draggable` is added to the drag handle, which is the same as the DOM element created by the widget unless the <<.param selector>> attribute is used. The class `tc-dragging` is applied to the drag handle while the element is being dragged |
22
+
21
23
  |startactions |Optional action string that gets invoked when dragging ''starts'' |
22
24
  |endactions |Optional action string that gets invoked when dragging ''ends'' |
23
25
  |dragimagetype |<<.from-version "5.2.0">> Optional type of drag image: `dom` (the default) or `blank` to disable the drag image |
@@ -28,5 +30,7 @@ The [[actionTiddler Variable]] is accessible in both //startactions// and //enda
28
30
 
29
31
  <<.tip """Note that the [[actionTiddler Variable]] holds a [[Title List]] quoted with double square brackets. This is unlike the DroppableWidget which uses the same variable to pass a single unquoted title.""">>
30
32
 
33
+ <<.tip """When specifying a DOM node to use as the drag handle with the <<.param selector>> attribute, give it the class `tc-draggable` in order for it to have the appropriate cursor.""">>
34
+
31
35
 
32
36
  The LinkWidget incorporates the functionality of the DraggableWidget via the ''draggable'' attribute.
@@ -28,7 +28,7 @@ The content of the `<$edit-text>` widget is ignored.
28
28
  |autocomplete |<<.from-version 5.1.23>> An optional string to provide a hint to the browser how to handle autocomplete for this input |
29
29
  |tag |Overrides the generated HTML editing element tag. For a multi-line editor use `tag=textarea`. For a single-line editor use `tag=input` |
30
30
  |type |Overrides the generated HTML editing element `type` attribute |
31
- |size |The size of the input field (in characters) |
31
+ |size |The size of the input field (in characters). This exact result depends on browser and font. Use the `class` attribute to style width for precise control |
32
32
  |autoHeight |Either "yes" or "no" to specify whether to automatically resize `textarea` editors to fit their content (defaults to "yes") |
33
33
  |minHeight |Minimum height for automatically resized `textarea` editors, specified in CSS length units such as "px", "em" or "%" |
34
34
  |rows|Sets the rows attribute of a generated textarea |
@@ -1,5 +1,5 @@
1
1
  created: 20201123113532200
2
- modified: 20211031180336257
2
+ modified: 20220311154749139
3
3
  tags: Widgets TriggeringWidgets
4
4
  title: EventCatcherWidget
5
5
  type: text/vnd.tiddlywiki
@@ -12,11 +12,12 @@ type: text/vnd.tiddlywiki
12
12
 
13
13
  The event catcher widget traps DOM-initiated Javascript events dispatched within its child content, and allows invoking a series of ActionWidgets in response to those events.
14
14
 
15
- In order for the events to be trapped they must:
15
+ In order for the events to be trapped:
16
16
 
17
- * be of one of the events specified in the event catcher widget's `events` attribute
18
- * arise within a DOM node specified by the widget's `selector` attribute
19
- * support event bubbling
17
+ * The event must be of one of the events specified in the event catcher widget's `events` attribute
18
+ * The event must target a DOM node with an ancestor that matches the widget's `selector` attribute
19
+ * <<.from-version "5.2.2">> Optionally, the DOM node targetted by the event must also match the widgets `matchSelector` attribute
20
+ * The event must support event bubbling
20
21
 
21
22
  Use of the event catcher widget is beneficial when using large numbers of other trigger widgets such as the ButtonWidget is causing performance problems. The workflow it enables is akin to what is referred to as "event delegation" in JavaScript parlance.
22
23
 
@@ -25,8 +26,8 @@ Use of the event catcher widget is beneficial when using large numbers of other
25
26
  The content of the `<$eventcatcher>` widget is displayed normally.
26
27
 
27
28
  |!Attribute |!Description |
28
-
29
29
  |selector |A CSS selector. Only events originating inside a DOM node with this selector will be trapped |
30
+ |matchSelector |<<.from-version "5.2.2">> An optional CSS selector. Only events targetting DOM nodes matching this selector will be trapped |
30
31
  |//{any attributes starting with $}// |<<.from-version "5.2.0">> Each attribute name (excluding the $) specifies the name of an event, and the value specifies the action string to be invoked. For example: `$click=<<clickActions>>` |
31
32
  |tag |Optional. The HTML element the widget creates to capture the events, defaults to:<br>» `span` when parsed in inline-mode<br>» `div` when parsed in block-mode |
32
33
  |class |Optional. A CSS class name (or names) to be assigned to the widget HTML element |
@@ -1,6 +1,6 @@
1
1
  title: ImageWidget
2
2
  created: 20140416160234142
3
- modified: 20140820100234142
3
+ modified: 20220101205921813
4
4
  tags: Widgets
5
5
  caption: image
6
6
 
@@ -22,6 +22,14 @@ Any content of the `<$image>` widget is ignored.
22
22
 
23
23
  The width and the height can be specified as pixel values (eg "23" or "23px") or percentages (eg "23%"). They are both optional; if not provided the browser will use CSS rules to size the image.
24
24
 
25
+ ! Image Status Classes
26
+
27
+ <<from-version "5.2.2">> The following CSS classes are automatically added to the `<img>` element to indicate the status of the image. Note that only one of these classes will be added at the same time.
28
+
29
+ |''tc-image-loading'' |When the image is being loaded |
30
+ |''tc-image-loaded'' |The image has been loaded successfully |
31
+ |''tc-image-error'' |The image could not be loaded |
32
+
25
33
  ! External Images and the ''_canonical_uri'' field
26
34
 
27
35
  When used to display tiddler-based images, the image widget operates in two distinct modes:
@@ -1,6 +1,6 @@
1
1
  caption: linkcatcher
2
2
  created: 20131024141900000
3
- modified: 20211009122821108
3
+ modified: 20220226121122574
4
4
  tags: Widgets MessageHandlerWidgets TriggeringWidgets
5
5
  title: LinkCatcherWidget
6
6
  type: text/vnd.tiddlywiki
@@ -25,3 +25,4 @@ The content of the `<$linkcatcher>` widget is displayed normally.
25
25
  |setTo |Value to be assigned by the `set` attribute |
26
26
  |actions |Actions to be performed when a link is caught. Within the action string, the variable "navigateTo" contains the title of the tiddler being navigated. <<.from-version "5.1.23">> the <<.def "modifier">> variable lists the modifier keys that are pressed when the action is invoked. The possible modifiers are ''ctrl'', ''ctrl-alt'', ''ctrl-shift'', ''alt'', ''alt-shift'', ''shift'' and ''ctrl-alt-shift'' |
27
27
 
28
+ <<.tip """<<.from-version "5.2.0">> For more complex use cases involving trapping the <<.param tm-navigate>> message consider the MessageCatcherWidget which provides greater flexibility""">>
@@ -1,6 +1,6 @@
1
1
  caption: macrocall
2
2
  created: 20131024141900000
3
- modified: 20200928102843275
3
+ modified: 20220122193731433
4
4
  tags: Widgets
5
5
  title: MacroCallWidget
6
6
  type: text/vnd.tiddlywiki
@@ -38,6 +38,8 @@ You can see several examples of the macro call widget within the core:
38
38
  * Listing field information: [[$:/snippets/allfields]]
39
39
  * Generating `data:` URIs: [[$:/themes/tiddlywiki/starlight/styles.tid]]
40
40
 
41
+ See also [[WikiText parser mode: macro examples]]
42
+
41
43
  ! Content and Attributes
42
44
 
43
45
  The content of the `<$macrocall>` widget is ignored.
@@ -1,5 +1,5 @@
1
1
  created: 20210309133636211
2
- modified: 20211009122821123
2
+ modified: 20211222153049771
3
3
  tags: Widgets MessageHandlerWidgets TriggeringWidgets
4
4
  title: MessageCatcherWidget
5
5
  type: text/vnd.tiddlywiki
@@ -37,7 +37,7 @@ The message catcher widget sets the following variables within each action strin
37
37
  <$action-log/>
38
38
  \end
39
39
 
40
- <$messagecatcher type="tm-navigate" actions=<<actions>>>
40
+ <$messagecatcher $tm-navigate=<<actions>>>
41
41
 
42
42
  Click on [[this link]] to fire an action. See the browser JavaScript console for the output
43
43
 
@@ -0,0 +1,39 @@
1
+ caption: vars
2
+ created: 20220125160004463
3
+ modified: 20220125163041347
4
+ tags: Widgets
5
+ title: QualifyWidget
6
+
7
+ ! Introduction
8
+
9
+ The <<.wid qualify>> widget sets a variable
10
+ to a unique string that encodes its position within the widget tree, as identified by the stack of transcluded tiddlers that lead to that position.
11
+
12
+ Internally, it is implemented using the transclusion variable.
13
+
14
+ ! Content and Attributes
15
+
16
+ The content of the <<.wid qualify>> widget is the scope for the value assigned to the <<.var name>> variable.
17
+
18
+ |!Attribute |!Description |
19
+ |//title// |The prefix for the string, normally a tiddler title |
20
+ |//name// |The name of the variable to be set to the unique string |
21
+
22
+ ! Examples
23
+
24
+ The two examples below are identical, but produce different results because the second one has been transcluded from [[another tiddler|$:/editions/tw5.com/widget-examples/qualify-transcluded]].
25
+
26
+ Each example shows the result of calling <<.var qualify>> and then the value of the <<.vlink transclusion>> variable.
27
+ <$macrocall $name=".example" n="1"
28
+ eg="""<$qualify title="BaseTiddler" name="iamnotanumber">
29
+ <ul>
30
+ <li><code><<iamnotanumber>></code></li>
31
+ <li><code><<transclusion>></code></li>
32
+ </ul>
33
+ </$qualify>
34
+ """/>
35
+ {{$:/editions/tw5.com/widget-examples/qualify-transcluded}}
36
+
37
+ ! Remarks
38
+
39
+ In most cases it will be simpler to use the [[qualify Macro]].
@@ -1,9 +1,9 @@
1
+ caption: transclude
1
2
  created: 20130824142500000
2
- modified: 20140717175900970
3
+ modified: 20220122190609396
3
4
  tags: Widgets
4
5
  title: TranscludeWidget
5
6
  type: text/vnd.tiddlywiki
6
- caption: transclude
7
7
 
8
8
  ! Introduction
9
9
 
@@ -22,12 +22,12 @@ The TranscludeWidget treats any contained content as a fallback if the target of
22
22
 
23
23
  ! Parsing modes
24
24
 
25
- TiddlyWiki parses text in two modes:
25
+ TiddlyWiki [[parses text in two modes|WikiText Parser Modes]]:
26
26
 
27
- * ''inline'' mode recognises character formatting such as emphasis, links
28
- * ''block'' mode recognises all the ''inline'' formatting, and adds block formatting such as tables, headings and lists
27
+ * [[inline mode|Inline Mode WikiText]] recognises character formatting such as emphasis, links
28
+ * [[block mode|Block Mode WikiText]] recognises all the ''inline'' formatting, and adds block formatting such as tables, headings and lists
29
29
 
30
- Usually, the mode is determined by whether the transclude widget itself has been parsed in block or inline mode. This can be overridden with the `mode` attribute.
30
+ Usually, the mode is determined by whether the transclude widget itself has been parsed in block or inline mode. This can be overridden with the <<.attr mode>> attribute.
31
31
 
32
32
  For example, consider tiddler "A" with this content:
33
33
 
@@ -57,6 +57,7 @@ This can be fixed by amending tiddler "A":
57
57
  #<$transclude tiddler="B" mode="block"/>
58
58
  # Item two
59
59
  ```
60
+ See also these [[other examples|WikiText parser mode: transclusion examples]].
60
61
 
61
62
  ! ~SubTiddler Access
62
63
 
@@ -1,6 +1,6 @@
1
1
  caption: view
2
2
  created: 20131024141900000
3
- modified: 20210402093330113
3
+ modified: 20211219213444235
4
4
  tags: Widgets
5
5
  title: ViewWidget
6
6
  type: text/vnd.tiddlywiki
@@ -27,18 +27,18 @@ The content of the `<$view>` widget is displayed if the field or property is mis
27
27
  The following formats can be specified in the `format` attribute:
28
28
 
29
29
  |!Format |!Description |
30
- |''text'' |Plain text (default) |
31
- |''htmlencoded'' |The field is displayed with HTML encoding |
30
+ |''text'' |Plain text (default) <<.tip "See also the TextWidget. `<$view format=text tiddler=MyTiddler/>` renders the same as `<$text text={{MyTiddler}}/>`">>|
31
+ |''htmlencoded'' |The field is displayed with HTML encoding. <<.tip "Rendered value is the same as the output from the [[encodehtml|encodehtml Operator]] filter operator">> |
32
32
  |''htmltextencoded'' |<<.from-version "5.2.0">> The field is displayed with HTML encoding, only double quotes (") are not escaped. This creates a more compact htmlencoding appropriate for html text content, but //not// for attributes. |
33
- |''urlencoded'' |The field is displayed with URL encoding |
34
- |''doubleurlencoded'' |The field is displayed with double URL encoding |
33
+ |''urlencoded'' |The field is displayed with URL encoding <<.tip "Rendered value is the same as the output from the [[encodeuri|encodeuri Operator]] filter operator">> |
34
+ |''doubleurlencoded'' |The field is displayed with double URL encoding <<.tip "Rendered value is the same as the output from calling the [[encodeuri|encodeuri Operator]] filter operator twice">> |
35
35
  |''htmlwikified'' |The field is wikified according to the mode attribute and the resulting HTML returned as plain text (ie HTML elements will appear in plain text) |
36
36
  |''plainwikified'' |The field is wikified according to the mode attribute and the text content of the resulting HTML returned as plain text (ie HTML elements will be removed) |
37
37
  |''htmlencodedplainwikified'' |The field is wikified according to the mode attribute and the text content of the resulting HTML returned as HTML encoded plain text (ie HTML elements will be removed) |
38
- |''date'' |The field is interpreted as a UTC date and displayed according to the DateFormat specified in the `template` attribute |
39
- |''relativedate'' |The field is interpreted as a UTC date and displayed as the interval from the present instant |
38
+ |''date'' |The field is interpreted as a UTC date and displayed according to the DateFormat specified in the `template` attribute <<.tip "Rendered value is the same as the output from the [[format:date|format Operator]] filter operator">> |
39
+ |''relativedate'' |The field is interpreted as a UTC date and displayed as the interval from the present instant <<.tip "Rendered value is the same as the output from the [[format:relativedate|format Operator]] filter operator">> |
40
40
  |''stripcomments'' |The field is interpreted as JavaScript source code and any lines beginning `\\#` are stripped |
41
- |''jsencoded'' |The field is displayed as a JavaScript encoded string |
41
+ |''jsencoded'' |The field is displayed as a JavaScript encoded string <<.tip "Rendered value is the same as the output from the [[stringify|stringify Operator]] filter operator">> |
42
42
 
43
43
  !! "WikiText format"
44
44
 
@@ -54,3 +54,21 @@ The following example will view the core version of the tiddler [[$:/DefaultTidd
54
54
  <$view tiddler="$:/core" subtiddler="$:/DefaultTiddlers"/>
55
55
 
56
56
  '>>
57
+
58
+ ! Examples
59
+
60
+ Given this [[Saturday]] example tiddler:
61
+
62
+ |!tiddler|!raw content|!rendered content|
63
+ |[[Saturday]]|<$text text={{Saturday}}/>|{{Saturday}}|
64
+
65
+ Here is how `<$view tiddler=Saturday format=<<format>>/>` renders for each format:
66
+ <table>
67
+ <tr><th>format</th><th>renders as</th></tr>
68
+ <$list filter="text htmlencoded htmltextencoded urlencoded doubleurlencoded htmlwikified plainwikified htmlencodedplainwikified stripcomments jsencoded" variable=format>
69
+ <tr>
70
+ <td>''<<format>>''</td>
71
+ <td><$view tiddler="Saturday" format=<<format>>/></td>
72
+ </tr>
73
+ </$list>
74
+ </table>
@@ -1,6 +1,6 @@
1
1
  caption: wikify
2
2
  created: 20160321144949700
3
- modified: 20161017122117062
3
+ modified: 20220122191540121
4
4
  tags: Widgets
5
5
  title: WikifyWidget
6
6
  type: text/vnd.tiddlywiki
@@ -17,7 +17,7 @@ The content of the `<$wikify>` widget is the scope for the value assigned to the
17
17
  |name |The name of the variable to assign |
18
18
  |text |The text to parse and render |
19
19
  |type |The ContentType of the text (defaults to `text/vnd.tiddlywiki`) |
20
- |mode |The parse mode: `block` (the default) or `inline` |
20
+ |mode |The parse mode: [[block|Block Mode WikiText]] (the default) or [[inline|Inline Mode WikiText]] |
21
21
  |output |Keyword indicating the desired output type, defaulting to `text` (see below) |
22
22
 
23
23
  The available output types are: