@lowdefy/docs-content 0.0.0-experimental-20260710073520

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 (304) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +20 -0
  3. package/content/actions/callapi.md +66 -0
  4. package/content/actions/callmethod.md +41 -0
  5. package/content/actions/copytoclipboard.md +32 -0
  6. package/content/actions/displaymessage.md +53 -0
  7. package/content/actions/downloadcsv.md +89 -0
  8. package/content/actions/fetch.md +50 -0
  9. package/content/actions/geolocationcurrentposition.md +56 -0
  10. package/content/actions/link.md +104 -0
  11. package/content/actions/login.md +85 -0
  12. package/content/actions/logout.md +56 -0
  13. package/content/actions/pdfmake.md +304 -0
  14. package/content/actions/request.md +67 -0
  15. package/content/actions/reset.md +27 -0
  16. package/content/actions/resetvalidation.md +85 -0
  17. package/content/actions/scrollto.md +85 -0
  18. package/content/actions/setdarkmode.md +62 -0
  19. package/content/actions/setfocus.md +33 -0
  20. package/content/actions/setglobal.md +63 -0
  21. package/content/actions/setlocale.md +69 -0
  22. package/content/actions/setstate.md +70 -0
  23. package/content/actions/throw.md +72 -0
  24. package/content/actions/validate.md +87 -0
  25. package/content/actions/wait.md +24 -0
  26. package/content/agents/agent-endpoint-tools.md +190 -0
  27. package/content/agents/agent-mcp-tools.md +124 -0
  28. package/content/agents/agent-multi-agent.md +136 -0
  29. package/content/agents/agent-properties.md +174 -0
  30. package/content/agents/agent-server-hooks.md +336 -0
  31. package/content/agents/agentchat.md +515 -0
  32. package/content/agents/agentconversations.md +148 -0
  33. package/content/concepts/ai-agent-docs.md +190 -0
  34. package/content/concepts/cli.md +213 -0
  35. package/content/concepts/connections-and-requests.md +7 -0
  36. package/content/concepts/custom-html.md +3 -0
  37. package/content/concepts/custom-styling.md +161 -0
  38. package/content/concepts/events-and-actions.md +271 -0
  39. package/content/concepts/hosting-files.md +18 -0
  40. package/content/concepts/i18n.md +320 -0
  41. package/content/concepts/keyboard-shortcuts.md +218 -0
  42. package/content/concepts/layout-overview.md +478 -0
  43. package/content/concepts/lists.md +144 -0
  44. package/content/concepts/logger.md +43 -0
  45. package/content/concepts/lowdefy-schema.md +365 -0
  46. package/content/concepts/menus.md +144 -0
  47. package/content/concepts/module-authoring.md +564 -0
  48. package/content/concepts/modules.md +338 -0
  49. package/content/concepts/operators.md +45 -0
  50. package/content/concepts/overview.md +19 -0
  51. package/content/concepts/references-and-templates.md +207 -0
  52. package/content/concepts/secrets.md +24 -0
  53. package/content/concepts/selectors.md +143 -0
  54. package/content/connections/amazonredshift.md +176 -0
  55. package/content/connections/anthropic.md +232 -0
  56. package/content/connections/awss3.md +313 -0
  57. package/content/connections/azureblobstorage.md +133 -0
  58. package/content/connections/elasticsearch.md +371 -0
  59. package/content/connections/google.md +228 -0
  60. package/content/connections/googlecloudstorage.md +139 -0
  61. package/content/connections/googlesheet.md +313 -0
  62. package/content/connections/knex.md +206 -0
  63. package/content/connections/mariadb.md +177 -0
  64. package/content/connections/mcp.md +134 -0
  65. package/content/connections/mongodb.md +739 -0
  66. package/content/connections/mssql.md +191 -0
  67. package/content/connections/mysql.md +192 -0
  68. package/content/connections/openai-connection.md +228 -0
  69. package/content/connections/postgresql.md +200 -0
  70. package/content/connections/redis.md +116 -0
  71. package/content/connections/sendgridmail.md +94 -0
  72. package/content/connections/smtp.md +149 -0
  73. package/content/connections/sqlite.md +187 -0
  74. package/content/connections/stripe.md +115 -0
  75. package/content/container-blocks/affix.md +413 -0
  76. package/content/container-blocks/alert.md +937 -0
  77. package/content/container-blocks/badge.md +1222 -0
  78. package/content/container-blocks/box.md +1453 -0
  79. package/content/container-blocks/card.md +1200 -0
  80. package/content/container-blocks/carousel.md +2247 -0
  81. package/content/container-blocks/collapse.md +1335 -0
  82. package/content/container-blocks/configprovider.md +1070 -0
  83. package/content/container-blocks/confirmmodal.md +1159 -0
  84. package/content/container-blocks/content.md +597 -0
  85. package/content/container-blocks/descriptions.md +870 -0
  86. package/content/container-blocks/drawer.md +1379 -0
  87. package/content/container-blocks/dropdownmenu.md +643 -0
  88. package/content/container-blocks/flex.md +1510 -0
  89. package/content/container-blocks/footer.md +380 -0
  90. package/content/container-blocks/googlemaps.md +546 -0
  91. package/content/container-blocks/googlemapsheatmap.md +607 -0
  92. package/content/container-blocks/googlemapsscript.md +61 -0
  93. package/content/container-blocks/header.md +302 -0
  94. package/content/container-blocks/label.md +739 -0
  95. package/content/container-blocks/layout.md +604 -0
  96. package/content/container-blocks/masonry.md +1090 -0
  97. package/content/container-blocks/mobilemenu.md +1244 -0
  98. package/content/container-blocks/modal.md +1180 -0
  99. package/content/container-blocks/pageheadermenu.md +614 -0
  100. package/content/container-blocks/pagesidebarlayout.md +438 -0
  101. package/content/container-blocks/pagesidermenu.md +651 -0
  102. package/content/container-blocks/popover.md +1421 -0
  103. package/content/container-blocks/result.md +972 -0
  104. package/content/container-blocks/sider.md +1064 -0
  105. package/content/container-blocks/span.md +747 -0
  106. package/content/container-blocks/spinner.md +267 -0
  107. package/content/container-blocks/splitter.md +1735 -0
  108. package/content/container-blocks/tabs.md +1718 -0
  109. package/content/container-blocks/tooltip.md +1274 -0
  110. package/content/container-blocks/watermark.md +515 -0
  111. package/content/controls/for.md +103 -0
  112. package/content/controls/if.md +107 -0
  113. package/content/controls/log.md +50 -0
  114. package/content/controls/parallel.md +71 -0
  115. package/content/controls/parallel_for.md +36 -0
  116. package/content/controls/reject.md +56 -0
  117. package/content/controls/return.md +66 -0
  118. package/content/controls/set_state.md +98 -0
  119. package/content/controls/switch.md +90 -0
  120. package/content/controls/throw.md +79 -0
  121. package/content/controls/try.md +88 -0
  122. package/content/deployment/docker.md +149 -0
  123. package/content/deployment/node-server.md +27 -0
  124. package/content/deployment/vercel.md +101 -0
  125. package/content/display-blocks/aggrid.md +1459 -0
  126. package/content/display-blocks/anchor.md +336 -0
  127. package/content/display-blocks/avatar.md +1154 -0
  128. package/content/display-blocks/breadcrumb.md +517 -0
  129. package/content/display-blocks/button.md +758 -0
  130. package/content/display-blocks/calendar.md +156 -0
  131. package/content/display-blocks/dangeroushtml.md +314 -0
  132. package/content/display-blocks/dangerousmarkdown.md +423 -0
  133. package/content/display-blocks/diffgit.md +44 -0
  134. package/content/display-blocks/difflist.md +225 -0
  135. package/content/display-blocks/diffsidebyside.md +56 -0
  136. package/content/display-blocks/difftimeline.md +94 -0
  137. package/content/display-blocks/divider.md +406 -0
  138. package/content/display-blocks/download.md +60 -0
  139. package/content/display-blocks/dropdownbutton.md +661 -0
  140. package/content/display-blocks/echart.md +418 -0
  141. package/content/display-blocks/floatbutton.md +545 -0
  142. package/content/display-blocks/html.md +311 -0
  143. package/content/display-blocks/icon.md +717 -0
  144. package/content/display-blocks/img.md +479 -0
  145. package/content/display-blocks/markdown.md +520 -0
  146. package/content/display-blocks/markdownwithcode.md +730 -0
  147. package/content/display-blocks/menu.md +1123 -0
  148. package/content/display-blocks/message.md +941 -0
  149. package/content/display-blocks/notification.md +1410 -0
  150. package/content/display-blocks/paragraph.md +643 -0
  151. package/content/display-blocks/progress.md +818 -0
  152. package/content/display-blocks/qrcode.md +519 -0
  153. package/content/display-blocks/s3download.md +240 -0
  154. package/content/display-blocks/search.md +360 -0
  155. package/content/display-blocks/skeleton.md +272 -0
  156. package/content/display-blocks/skeletonavatar.md +222 -0
  157. package/content/display-blocks/skeletonbutton.md +245 -0
  158. package/content/display-blocks/skeletoninput.md +223 -0
  159. package/content/display-blocks/skeletonparagraph.md +201 -0
  160. package/content/display-blocks/statistic.md +485 -0
  161. package/content/display-blocks/steps.md +585 -0
  162. package/content/display-blocks/tag.md +620 -0
  163. package/content/display-blocks/title.md +654 -0
  164. package/content/display-blocks/tour.md +2359 -0
  165. package/content/input-blocks/autocomplete.md +786 -0
  166. package/content/input-blocks/buttonselector.md +964 -0
  167. package/content/input-blocks/checkboxselector.md +765 -0
  168. package/content/input-blocks/checkboxswitch.md +497 -0
  169. package/content/input-blocks/colorselector.md +884 -0
  170. package/content/input-blocks/daterangeselector.md +777 -0
  171. package/content/input-blocks/dateselector.md +693 -0
  172. package/content/input-blocks/datetimeselector.md +791 -0
  173. package/content/input-blocks/inputgallery.md +528 -0
  174. package/content/input-blocks/monthselector.md +717 -0
  175. package/content/input-blocks/multipleselector.md +1337 -0
  176. package/content/input-blocks/numberinput.md +855 -0
  177. package/content/input-blocks/pagination.md +679 -0
  178. package/content/input-blocks/paragraphinput.md +1664 -0
  179. package/content/input-blocks/passwordinput.md +480 -0
  180. package/content/input-blocks/phonenumberinput.md +688 -0
  181. package/content/input-blocks/radioselector.md +820 -0
  182. package/content/input-blocks/ratingslider.md +684 -0
  183. package/content/input-blocks/s3uploadbutton.md +384 -0
  184. package/content/input-blocks/s3uploaddragger.md +305 -0
  185. package/content/input-blocks/s3uploadphoto.md +288 -0
  186. package/content/input-blocks/segmentedselector.md +782 -0
  187. package/content/input-blocks/selector.md +1162 -0
  188. package/content/input-blocks/switch.md +552 -0
  189. package/content/input-blocks/textarea.md +714 -0
  190. package/content/input-blocks/textinput.md +639 -0
  191. package/content/input-blocks/tiptapinput.md +226 -0
  192. package/content/input-blocks/tiptapmentioninput.md +471 -0
  193. package/content/input-blocks/titleinput.md +1094 -0
  194. package/content/input-blocks/treeinput.md +144 -0
  195. package/content/input-blocks/treemultipleselector.md +162 -0
  196. package/content/input-blocks/treeselector.md +185 -0
  197. package/content/input-blocks/upload.md +149 -0
  198. package/content/input-blocks/uploaddragger.md +85 -0
  199. package/content/input-blocks/uploadphoto.md +84 -0
  200. package/content/input-blocks/weekselector.md +630 -0
  201. package/content/list-blocks/controlledlist.md +498 -0
  202. package/content/list-blocks/list.md +529 -0
  203. package/content/list-blocks/listselector.md +301 -0
  204. package/content/list-blocks/masonrylist.md +230 -0
  205. package/content/migration/upgrade-guide.md +106 -0
  206. package/content/migration/v4-to-v5.md +589 -0
  207. package/content/migration/v5-to-v6.md +36 -0
  208. package/content/operators/_actions.md +58 -0
  209. package/content/operators/_and.md +76 -0
  210. package/content/operators/_api.md +254 -0
  211. package/content/operators/_app.md +114 -0
  212. package/content/operators/_args.md +65 -0
  213. package/content/operators/_array.md +331 -0
  214. package/content/operators/_base64.md +49 -0
  215. package/content/operators/_boolean.md +33 -0
  216. package/content/operators/_build.md +166 -0
  217. package/content/operators/_change_case.md +357 -0
  218. package/content/operators/_date.md +415 -0
  219. package/content/operators/_dayjs.md +128 -0
  220. package/content/operators/_diff.md +61 -0
  221. package/content/operators/_divide.md +32 -0
  222. package/content/operators/_eq.md +52 -0
  223. package/content/operators/_event.md +86 -0
  224. package/content/operators/_function.md +52 -0
  225. package/content/operators/_get.md +92 -0
  226. package/content/operators/_global.md +86 -0
  227. package/content/operators/_gt.md +50 -0
  228. package/content/operators/_gte.md +50 -0
  229. package/content/operators/_hash.md +112 -0
  230. package/content/operators/_if.md +30 -0
  231. package/content/operators/_if_none.md +47 -0
  232. package/content/operators/_index.md +48 -0
  233. package/content/operators/_input.md +86 -0
  234. package/content/operators/_intl.md +135 -0
  235. package/content/operators/_item.md +166 -0
  236. package/content/operators/_js.md +113 -0
  237. package/content/operators/_json.md +120 -0
  238. package/content/operators/_jsonata.md +152 -0
  239. package/content/operators/_locale.md +65 -0
  240. package/content/operators/_location.md +40 -0
  241. package/content/operators/_log.md +22 -0
  242. package/content/operators/_lt.md +50 -0
  243. package/content/operators/_lte.md +50 -0
  244. package/content/operators/_math.md +407 -0
  245. package/content/operators/_media.md +83 -0
  246. package/content/operators/_menu.md +62 -0
  247. package/content/operators/_module.md +340 -0
  248. package/content/operators/_mql.md +95 -0
  249. package/content/operators/_ne.md +62 -0
  250. package/content/operators/_not.md +33 -0
  251. package/content/operators/_number.md +159 -0
  252. package/content/operators/_nunjucks.md +117 -0
  253. package/content/operators/_object.md +253 -0
  254. package/content/operators/_operator.md +33 -0
  255. package/content/operators/_or.md +67 -0
  256. package/content/operators/_product.md +45 -0
  257. package/content/operators/_random.md +90 -0
  258. package/content/operators/_ref.md +80 -0
  259. package/content/operators/_regex.md +69 -0
  260. package/content/operators/_request.md +35 -0
  261. package/content/operators/_request_details.md +29 -0
  262. package/content/operators/_secret.md +56 -0
  263. package/content/operators/_state.md +134 -0
  264. package/content/operators/_step.md +98 -0
  265. package/content/operators/_string.md +327 -0
  266. package/content/operators/_subtract.md +24 -0
  267. package/content/operators/_sum.md +45 -0
  268. package/content/operators/_switch.md +37 -0
  269. package/content/operators/_t.md +96 -0
  270. package/content/operators/_theme.md +65 -0
  271. package/content/operators/_type.md +78 -0
  272. package/content/operators/_uri.md +49 -0
  273. package/content/operators/_url_query.md +92 -0
  274. package/content/operators/_user.md +154 -0
  275. package/content/operators/_uuid.md +118 -0
  276. package/content/operators/_var.md +88 -0
  277. package/content/operators/_yaml.md +96 -0
  278. package/content/other/introduction.md +39 -0
  279. package/content/other/next-auth-providers.md +3 -0
  280. package/content/other/updatesession.md +26 -0
  281. package/content/plugins/plugins-actions.md +80 -0
  282. package/content/plugins/plugins-connections.md +98 -0
  283. package/content/plugins/plugins-dev.md +138 -0
  284. package/content/plugins/plugins-introduction.md +29 -0
  285. package/content/plugins/plugins-operators.md +71 -0
  286. package/content/testing/e2e-auth.md +108 -0
  287. package/content/testing/e2e-configuration.md +107 -0
  288. package/content/testing/e2e-getting-started.md +96 -0
  289. package/content/testing/e2e-introduction.md +53 -0
  290. package/content/testing/e2e-mocking.md +155 -0
  291. package/content/testing/e2e-writing-tests.md +214 -0
  292. package/content/tutorial/tutorial-actions-operators.md +222 -0
  293. package/content/tutorial/tutorial-add-blocks.md +86 -0
  294. package/content/tutorial/tutorial-create-page.md +57 -0
  295. package/content/tutorial/tutorial-display-data-page.md +181 -0
  296. package/content/tutorial/tutorial-next-steps.md +53 -0
  297. package/content/tutorial/tutorial-requests-sql.md +22 -0
  298. package/content/tutorial/tutorial-start.md +71 -0
  299. package/content/user-authentication/auth-providers.md +15 -0
  300. package/content/user-authentication/login-and-logout.md +122 -0
  301. package/content/user-authentication/users-introduction.md +31 -0
  302. package/index.json +2281 -0
  303. package/package.json +34 -0
  304. package/scripts/extractAgentDocs.js +130 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @lowdefy/docs-content
2
+
3
+ Lowdefy documentation extracted as markdown, for serving to AI coding agents via the dev server's `/docs` routes and MCP endpoint.
4
+
5
+ ## Contents
6
+
7
+ - `content/<section>/<slug>.md` — one markdown file per docs page (concepts, tutorial, operators, actions, connections, blocks, ...).
8
+ - `index.json` — manifest of all docs: `{ version, docs: [{ slug, title, section, path, kind?, typeName? }] }`. `kind`/`typeName` map a plugin type (e.g. operator `_get`) to its doc.
9
+
10
+ ## Regenerating content
11
+
12
+ Content is generated from the `packages/docs` Lowdefy app during a docs build and committed to this package. To regenerate, run from the repo root:
13
+
14
+ ```bash
15
+ pnpm docs:content
16
+ ```
17
+
18
+ This runs the docs build with `LOWDEFY_EXTRACT_AGENT_DOCS=true`, which invokes `scripts/extractAgentDocs.js` from the docs build transformer (`packages/docs/templates/generateSiteAssets.js`) after all `_ref`s and template vars are resolved.
19
+
20
+ Run this before releasing whenever docs change.
@@ -0,0 +1,66 @@
1
+ # CallAPI
2
+
3
+ ```
4
+ (params: {
5
+ endpointId: string,
6
+ payload?: object,
7
+ holdValue?: boolean
8
+ }): void
9
+ ```
10
+
11
+ The `CallAPI` action invokes a server-side API endpoint defined in your Lowdefy application's configuration.
12
+ It sends an optional payload to the API and returns the response data, making it a way to execute server-side logic and orchestrate database operations from your Lowdefy pages.
13
+
14
+ > **Note:** `CallAPI` can only target endpoints with `type: Api`. Endpoints with `type: InternalApi` are server-only and cannot be called from client pages. See [Lowdefy APIs](/lowdefy-api) for details.
15
+
16
+ #### Parameters
17
+
18
+ ###### object
19
+ - `endpointId: string`: __Required__ - The id of the API endpoint to call.
20
+ - `payload: object`: Used to pass data such as state values from the app client to the endpoint as required.
21
+ - `holdValue: boolean`: Optional. When `true`, the previous response is retained on `apiResponses[endpointId][0].response` while the new call is loading. UI bound to `_api: <endpointId>.response` continues to display the previous response instead of going to `null`. The previous response is also retained if the new call errors out — inspect `_api: <endpointId>.error` to detect failures. Defaults to `false`. `holdValue` is currently only settable on the action call.
22
+
23
+ #### Examples
24
+
25
+ ###### Call an API endpoint:
26
+ ```yaml
27
+ - id: call_my_api
28
+ type: CallAPI
29
+ params:
30
+ endpointId: my_api_endpoint
31
+ ```
32
+
33
+ ###### Call an API endpoint with a payload:
34
+ ```yaml
35
+ - id: call_rating_api
36
+ type: CallAPI
37
+ params:
38
+ endpointId: review_product
39
+ payload:
40
+ product_id:
41
+ _url_query: product_id
42
+ rating:
43
+ _state: rating
44
+ comment:
45
+ _state: comment
46
+
47
+ ```
48
+
49
+ ###### Call an API endpoint with client state as the payload:
50
+ ```yaml
51
+ - id: call_my_api
52
+ type: CallAPI
53
+ params:
54
+ endpointId: my_api_endpoint
55
+ payload:
56
+ _state: true
57
+ ```
58
+
59
+ ###### Refresh API data without flashing the previous response:
60
+ ```yaml
61
+ - id: refresh_dashboard
62
+ type: CallAPI
63
+ params:
64
+ endpointId: dashboard_data
65
+ holdValue: true
66
+ ```
@@ -0,0 +1,41 @@
1
+ # CallMethod
2
+
3
+ ```
4
+ (params: {
5
+ blockId: string,
6
+ method: string,
7
+ args?: any[]
8
+ }): void
9
+ ```
10
+
11
+ The `CallMethod` action is used to call a method defined by another block.
12
+
13
+ #### Parameters
14
+
15
+ ###### object
16
+ - `blockId: string`: __Required__ - The id of the block.
17
+ - `method: string`: __Required__ - The name of the method that should be called.
18
+ - `args: any[]`: The array of positional arguments with which the method should be called.
19
+
20
+ #### Examples
21
+
22
+ ###### Open a modal:
23
+ ```yaml
24
+ - id: toggle_modal
25
+ type: CallMethod
26
+ params:
27
+ blockId: my_modal
28
+ method: toggleOpen
29
+ ```
30
+
31
+ ###### Display a message with args:
32
+ ```yaml
33
+ - id: display_message
34
+ type: CallMethod
35
+ params:
36
+ blockId: my_message
37
+ method: open
38
+ args:
39
+ - content: Hello
40
+ duration: 4
41
+ ```
@@ -0,0 +1,32 @@
1
+ # CopyToClipboard
2
+
3
+ ```
4
+ (params: {
5
+ copy: string
6
+ }): void
7
+ ```
8
+
9
+ The `CopyToClipboard` action is used to copy content to the clipboard. It implements the [`navigator.clipboard.writeText`](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText) web API.
10
+
11
+ #### Parameters
12
+
13
+ ###### object
14
+ - `copy: string`: __Required__ - Text to be copied to the clipboard.
15
+
16
+ #### Examples
17
+
18
+ ###### Copy text button:
19
+ ```yaml
20
+ - id: copy_button
21
+ type: Button
22
+ properties:
23
+ title: Copy Text
24
+ events:
25
+ onClick:
26
+ - id: copy
27
+ type: CopyToClipboard
28
+ params:
29
+ copy: Lorem ipsum dolor sit amet
30
+ messages:
31
+ success: Copied!
32
+ ```
@@ -0,0 +1,53 @@
1
+ # DisplayMessage
2
+
3
+ ```
4
+ (params: {
5
+ status?: enum,
6
+ duration?: number,
7
+ content?: string,
8
+ }): void
9
+ ```
10
+
11
+ The `DisplayMessage` action is used to display a message to a user.
12
+
13
+ #### Parameters
14
+
15
+ ###### object
16
+ - `status: enum`: DisplayMessage status type. Defaults to `success`. One of:
17
+ - `success`
18
+ - `error`
19
+ - `info`
20
+ - `warning`
21
+ - `loading`.
22
+ - `duration: number`: Time in seconds before message disappears. The default is 5.
23
+ - `content: string`: The content of the message.
24
+
25
+ #### Examples
26
+
27
+ ###### Display a success message:
28
+ ```yaml
29
+ - id: success_message
30
+ type: DisplayMessage
31
+ params:
32
+ content: Success
33
+ ```
34
+
35
+ ###### Display an info message that remains visible for 10 seconds:
36
+ ```yaml
37
+ - id: info_message
38
+ type: DisplayMessage
39
+ params:
40
+ content: Something happened
41
+ status: info
42
+ duration: 10
43
+ ```
44
+
45
+ ###### Display an error message that never disappears:
46
+ ```yaml
47
+ - id: error_message
48
+ type: DisplayMessage
49
+ params:
50
+ content: Something bad happened
51
+ status: error
52
+ duration: 0
53
+ ```
@@ -0,0 +1,89 @@
1
+ # DownloadCsv
2
+
3
+ ```
4
+ (params: {
5
+ filename: string,
6
+ data: any[],
7
+ fields: string[]
8
+ }): void
9
+ ```
10
+
11
+ The `DownloadCsv` action is used to generate and download a CSV file from a set of data.
12
+
13
+ #### Parameters
14
+
15
+ ###### object
16
+ - `filename: string`: __Required__ - The name for the generated CSV file.
17
+ - `data: any[]`: __Required__ - The set of data used to generate the CSV file.
18
+ - `fields: string[]`: __Required__ - The field definitions the set of data will be mapped to in the generated CSV file.
19
+
20
+ #### Examples
21
+
22
+ ###### Generate a CSV using an array of data:
23
+ ```yaml
24
+ - id: generate_csv
25
+ type: Button
26
+ properties:
27
+ size: large
28
+ title: Generate a CSV
29
+ color: '#1890ff'
30
+ events:
31
+ onClick:
32
+ - id: generate_csv
33
+ type: DownloadCsv
34
+ params:
35
+ filename: profiles.csv
36
+ data:
37
+ - Username: booker12 # an array of data, usually a request
38
+ Identifier: 9012
39
+ FirstName: Rachel
40
+ LastName: Booker
41
+ - Username: grey07
42
+ Identifier: 2070
43
+ FirstName: Laura
44
+ LastName: Grey
45
+ - Username: johnson81
46
+ Identifier: 4081
47
+ FirstName: Craig
48
+ LastName: Johnson
49
+ - Username: jenkins46
50
+ Identifier: 9346
51
+ FirstName: Mary
52
+ LastName: Jenkins
53
+ - Username: smith79
54
+ Identifier: 5079
55
+ FirstName: Jamie
56
+ LastName: Smith
57
+ fields:
58
+ - Username # an array of field definitions
59
+ - Identifier
60
+ - FirstName
61
+ - LastName
62
+ ```
63
+
64
+ ###### Generate a CSV using a request:
65
+ ```yaml
66
+ - id: generate_csv
67
+ type: Button
68
+ properties:
69
+ size: large
70
+ title: Generate a CSV
71
+ color: '#1890ff'
72
+ events:
73
+ onClick:
74
+ - id: fetch_data
75
+ type: Request
76
+ params:
77
+ - get_data
78
+ - id: generate_csv
79
+ type: DownloadCsv
80
+ params:
81
+ filename: profiles.csv
82
+ data:
83
+ _request: get_data # an array of data, from a request
84
+ fields:
85
+ - Username # an array of field definitions
86
+ - Identifier
87
+ - FirstName
88
+ - LastName
89
+ ```
@@ -0,0 +1,50 @@
1
+ # Fetch
2
+
3
+ ```
4
+ (params: {
5
+ url: string,
6
+ options: object,
7
+ responseFunction: string
8
+ }): string | object
9
+ ```
10
+
11
+ The `Fetch` implements the [fetch web API](https://developer.mozilla.org/en-US/docs/Web/API/fetch) and can be used to make HTTP requests directly from the web client.
12
+
13
+ #### Parameters
14
+
15
+ ###### object
16
+ - `url: string`: __Required__ - The URL of the resource you want to fetch..
17
+ - `options: object`: The options object of the `fetch` global function. These include, but are not limited to:
18
+ - `method: string`: The request method, e.g., `"GET"`, `"POST"`. The default is `"GET"`.
19
+ - `headers: object`: An object with headers to add to the request.
20
+ - `body: string`: The request body. Use the [`_json.stringify`](/_json) operator to create a JSON body.
21
+ - `responseFunction: enum`: If the `responseFunction` is specified, that function will be executed on the returned Response object. If specified this is equavalent to `await fetch(url, options).json()`. Should be one of of `'json'`, `'text'`, `'blob'`, `'arrayBuffer'`, or `'formData'`.
22
+
23
+ #### Examples
24
+
25
+ ###### Call a JSON API endpoint:
26
+ ```yaml
27
+ - id: fetch
28
+ type: Fetch
29
+ params:
30
+ url: https://example.com/api/products
31
+ options:
32
+ method: GET
33
+ responseFunction: json
34
+ ```
35
+
36
+ ###### Make a post request:
37
+ ```yaml
38
+ - id: fetch
39
+ type: Fetch
40
+ params:
41
+ url: https://example.com/api/products/abc
42
+ options:
43
+ method: POST
44
+ headers:
45
+ Content-Type: application/json
46
+ body:
47
+ _json.stringify:
48
+ - _state: product
49
+ responseFunction: json
50
+ ```
@@ -0,0 +1,56 @@
1
+ # GeolocationCurrentPosition
2
+
3
+ ```
4
+ (params: {
5
+ enableHighAccuracy?: boolean,
6
+ maximumAge?: number,
7
+ timeout?: number,
8
+ }) : object
9
+ ```
10
+
11
+ The `GeolocationCurrentPosition` action is used to get the current position of the device.
12
+
13
+ #### Parameters
14
+
15
+ ###### object
16
+ - `enableHighAccuracy: boolean`: Indicates that the most accurate possible position should be returned. Defaults to false.
17
+ - `maximumAge: number`: The maximum age in milliseconds of a possible cached position that is acceptable to return. The default is 0.
18
+ - `timeout: number`: The maximum length of time in milliseconds the device is allowed to take to return a position. The default is infinity.
19
+
20
+ #### Response
21
+
22
+ ##### Successful:
23
+ ###### object
24
+ - `coords: object`: A GeolocationCoordinates object instance.
25
+ - `accuracy: float`: The accuracy of the latitude and longitude properties, expressed in meters.
26
+ - `altitude: float`: The position's altitude in meters, relative to sea level.
27
+ - `altitudeAccuracy: float`: The accuracy of the altitude expressed in meters.
28
+ - `heading: float`: The direction, in degrees clockwise from true North, towards which the device is facing.
29
+ - `latitude: float`: The position's latitude in decimal degrees.
30
+ - `longitude: float`: The position's longitude in decimal degrees.
31
+ - `speed: float`: The velocity of the device in meters per second.
32
+ - `timestamp: number`: A Unix time in milliseconds.
33
+
34
+ ##### Error:
35
+ Note that this error response does not break the action chain. The possible errors can be viewed [here](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError).
36
+ ###### object
37
+ - `code: number`: The error code associated with the error.
38
+ - `error: string`: The constant associated with the error code.
39
+ - `message: string`: A string describing the details of the error.
40
+
41
+ #### Examples
42
+
43
+ ###### Get geolocation with specified params:
44
+ ```yaml
45
+ - id: get_geolocation
46
+ type: GeolocationCurrentPosition
47
+ params:
48
+ enableHighAccuracy: true
49
+ timeout: 5000
50
+ maximumAge: 0
51
+ - id: set_data
52
+ type: SetState
53
+ params:
54
+ geolocation:
55
+ _actions: get_geolocation.response
56
+ ```