@lowdefy/docs 3.22.0 → 3.23.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 (54) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/actions/JsAction.yaml +2 -2
  3. package/blocks/display/DangerousHtml.yaml +11 -12
  4. package/blocks/display/DangerousMarkdown.yaml +8 -8
  5. package/blocks/input/MultipleSelector.yaml +80 -0
  6. package/blocks/input/Selector.yaml +62 -0
  7. package/concepts/custom-blocks.yaml +2 -2
  8. package/concepts/custom-code.yaml +3 -3
  9. package/concepts/lowdefy-schema.yaml +16 -0
  10. package/connections/AxiosHttp.yaml +1 -1
  11. package/deployment/aws-lambda.yaml +2 -2
  12. package/deployment/docker.yaml +2 -2
  13. package/head.html +2 -0
  14. package/howto/generate-csv.yaml.njk +251 -0
  15. package/howto/generate-pdf.yaml.njk +651 -0
  16. package/howto/generateCsv/lowdefy.yaml +63 -0
  17. package/howto/generateCsv/public/csvMake.js +27 -0
  18. package/howto/generatePdf/inv_template.yaml +200 -0
  19. package/howto/generatePdf/lowdefy.yaml +116 -0
  20. package/howto/generatePdf/my_header.html +1 -0
  21. package/howto/generatePdf/public/logo_example.png +0 -0
  22. package/howto/generatePdf/public/modules/importUmd.js +7 -0
  23. package/howto/generatePdf/public/modules/pdfMake.js +7 -0
  24. package/howto/generatePdf/public/modules/vfs_fonts.js +12 -0
  25. package/lowdefy.yaml +1 -1
  26. package/menus.yaml +25 -1
  27. package/operators/_actions.yaml +1 -1
  28. package/operators/_change_case.yaml +4 -4
  29. package/operators/_js.yaml +2 -2
  30. package/operators/_ref.yaml +16 -8
  31. package/operators/_switch.yaml +51 -0
  32. package/package.json +2 -2
  33. package/pages.yaml +12 -0
  34. package/public/images/authors/gervwyk.jpeg +0 -0
  35. package/public/images/authors/sandile.jpeg +0 -0
  36. package/public/images/howto/header_generate_csv.jpg +0 -0
  37. package/public/images/howto/header_generate_pdf.jpg +0 -0
  38. package/public/logo_example.png +0 -0
  39. package/public/modules/csvMake.js +27 -0
  40. package/public/modules/importUmd.js +7 -0
  41. package/public/modules/pdfMake.js +7 -0
  42. package/public/modules/vfs_fonts.js +12 -0
  43. package/public/sitemap.xml +216 -201
  44. package/templates/blocks/exampleTransformer.js +1 -1
  45. package/templates/blog.yaml.njk +221 -0
  46. package/templates/footer.yaml.njk +2 -2
  47. package/tutorial/tutorial-create-page.yaml +1 -1
  48. package/tutorial/tutorial-start.yaml +1 -1
  49. package/users/login-and-logout.yaml +2 -2
  50. package/users/openid-connect.yaml +1 -0
  51. package/users/protected-pages.yaml +2 -2
  52. package/users/roles.yaml +2 -2
  53. package/users/users-introduction.yaml +1 -1
  54. package/version.yaml +1 -1
@@ -57,7 +57,7 @@ ${example.description || ''}
57
57
  _nunjucks: {
58
58
  template: `
59
59
  \`\`\`yaml
60
- {{ block }}
60
+ {{ block | safe }}
61
61
  \`\`\`
62
62
  `,
63
63
  on: {
@@ -0,0 +1,221 @@
1
+ # Copyright 2020-2021 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ id: "{{ pageId }}"
16
+ type: PageHeaderMenu
17
+ requests:
18
+ - id: post_telemetry
19
+ type: AxiosHttp
20
+ connectionId: lowdefy_api_telemetry
21
+ properties:
22
+ data:
23
+ session_id:
24
+ _global: session_id
25
+ page_id:
26
+ _var: pageId
27
+ url_query:
28
+ _url_query: true
29
+ input:
30
+ _input: true
31
+
32
+ events:
33
+ onInit:
34
+ - id: set_session_id
35
+ type: SetGlobal
36
+ skip:
37
+ _not:
38
+ _eq:
39
+ - _global: session_id
40
+ - null
41
+ params:
42
+ session_id:
43
+ _random:
44
+ type: string
45
+ length: 16
46
+ onEnterAsync:
47
+ - id: connect_docsearch
48
+ type: JsAction
49
+ params:
50
+ name: connectDocsearch
51
+ - id: post_telemetry
52
+ type: Request
53
+ messages:
54
+ error: false
55
+ params: post_telemetry
56
+
57
+ properties:
58
+ title: {{ pageTitle }}
59
+ header:
60
+ theme: light
61
+ menu:
62
+ forceSubMenuRender: true
63
+ links: []
64
+ sider:
65
+ width: 256px
66
+ initialCollapsed:
67
+ _or:
68
+ - _eq:
69
+ - _media: size
70
+ - md
71
+ - _eq:
72
+ - _media: size
73
+ - lg
74
+ content:
75
+ style:
76
+ background: '#FFFFFF'
77
+ footer:
78
+ style:
79
+ background: '#FFFFFF'
80
+ padding: 16px 0px 0px 0px
81
+ areas:
82
+ header:
83
+ blocks:
84
+ _ref: templates/header.yaml
85
+ footer:
86
+ blocks:
87
+ _ref:
88
+ path: templates/footer.yaml.njk
89
+ vars:
90
+ hideFeedback:
91
+ _var: hideFeedback
92
+ filePath:
93
+ _var: filePath
94
+ pageId:
95
+ _var: pageId
96
+ padding: 40
97
+
98
+ content:
99
+ justify: center
100
+ blocks:
101
+ - id: affix_breadcrumb
102
+ type: Affix
103
+ style:
104
+ background: '#FFFFFF'
105
+ blocks:
106
+ - id: breadcrumb
107
+ type: Breadcrumb
108
+ style:
109
+ background: '#FFFFFF'
110
+ margin: 0px -32px 0px -32px
111
+ padding: 8px 32px 8px 32px
112
+ properties:
113
+ list:
114
+ - label:
115
+ _ref: version.yaml
116
+ pageId: introduction
117
+ - label: Lowdefy Docs
118
+ pageId: introduction
119
+ {% if section %}
120
+ - {{ section }}
121
+ - {{ pageTitle }}
122
+ {% endif %}
123
+ {% if pageImage %}
124
+ - id: page_image
125
+ type: Img
126
+ style:
127
+ marginLeft: -50
128
+ properties:
129
+ src:
130
+ _var: pageImage
131
+ alt:
132
+ _var: pageTitle
133
+ width: 105%
134
+ {% endif %}
135
+ - id: max_width
136
+ type: Box
137
+ layout:
138
+ flex: 0 1 800px
139
+ contentGutter: 16
140
+ style:
141
+ marginTop: 32
142
+ blocks:
143
+ {% if pageTitle %}
144
+ - id: page_title
145
+ type: Title
146
+ properties:
147
+ content:
148
+ _var: pageTitle
149
+ {% endif %}
150
+ - id: content
151
+ type: Box
152
+ layout:
153
+ contentGutter: 16
154
+ blocks:
155
+ _var: content
156
+ {% if discussionsLink %}
157
+ - id: md5
158
+ type: MarkdownWithCode
159
+ properties:
160
+ content: |
161
+ -----
162
+ ###### Comments and questions regarding this how-to are availible on [this GitHub Discussions Thread]({{ discussionsLink }})
163
+
164
+ {% endif %}
165
+ - id: footer_links
166
+ type: MarkdownWithCode
167
+ properties:
168
+ content: |
169
+ -----
170
+ - id: links_box
171
+ type: Box
172
+ layout:
173
+ span: 12
174
+ contentGutter: 16
175
+ blocks:
176
+ - id: md_author
177
+ type: MarkdownWithCode
178
+ properties:
179
+ content: |
180
+ ###### Other interesting how-to guides:
181
+ {% for item in articleLinks %}
182
+ - id: links-{{ item.pageId }}
183
+ type: Anchor
184
+ properties:
185
+ icon: LinkOutlined
186
+ href: /{{ item.pageId }}
187
+ title: {{ item.title }}
188
+ {% endfor %}
189
+
190
+ {% if authorName %}
191
+ - id: author_box
192
+ type: Box
193
+ layout:
194
+ span: 12
195
+ contentGutter: 16
196
+ blocks:
197
+ - id: md_author
198
+ type: MarkdownWithCode
199
+ properties:
200
+ content: |
201
+ ###### This how-to article was written by:
202
+ {% if authorProfile %}
203
+ - id: author
204
+ type: Avatar
205
+ layout:
206
+ flex: 0 1 auto
207
+ properties:
208
+ src:
209
+ _var: authorProfile
210
+ size: large
211
+ {% endif %}
212
+ - id: author_name
213
+ type: Html
214
+ style:
215
+ marginTop: -3
216
+ layout:
217
+ flex: 1 0 auto
218
+ properties:
219
+ html:
220
+ _var: authorName
221
+ {% endif %}
@@ -262,6 +262,8 @@
262
262
  type: Box
263
263
  layout:
264
264
  contentGutter: 46
265
+ style:
266
+ paddingLeft: 23px
265
267
  blocks:
266
268
  - id: footer_logo_box
267
269
  type: Box
@@ -600,5 +602,3 @@
600
602
  properties:
601
603
  html: |
602
604
  <div style="text-align: center; font-size: 12px; margin-top: 42px;">© 2021 Lowdefy, Inc. - Give. Easy. Value.</div>
603
-
604
-
@@ -76,7 +76,7 @@ _ref:
76
76
 
77
77
  ```yaml
78
78
  name: lowdefy-project-template
79
- lowdefy: 3.22.0
79
+ lowdefy: 3.23.2
80
80
 
81
81
  pages:
82
82
  ################ -------- Copy from here -------- ################
@@ -180,7 +180,7 @@ _ref:
180
180
  Open the `lowdefy.yaml` file using a text editor like [VS Code](https://code.visualstudio.com/download). The content of the file should look like this:
181
181
 
182
182
  ```yaml
183
- lowdefy: 3.22.0
183
+ lowdefy: 3.23.2
184
184
  name: Lowdefy starter
185
185
 
186
186
  pages:
@@ -132,7 +132,7 @@ _ref:
132
132
 
133
133
  ###### Redirect to the Auth0 logout URL and return to the `logged-out` page in the app after logout:
134
134
  ```yaml
135
- lowdefy: 3.22.0
135
+ lowdefy: 3.23.2
136
136
  config:
137
137
  auth:
138
138
  openId:
@@ -144,7 +144,7 @@ _ref:
144
144
 
145
145
  ###### Redirect to the Keycloak logout URL and return to the `logged-out` page in the app after logout:
146
146
  ```yaml
147
- lowdefy: 3.22.0
147
+ lowdefy: 3.23.2
148
148
  config:
149
149
  auth:
150
150
  openId:
@@ -72,6 +72,7 @@ _ref:
72
72
 
73
73
  Optional configuration can also be set in the Lowdefy configuration, at the path `config.auth.jwt`. The following fields can be set:
74
74
 
75
+ - `loginStateExpiresIn: string | number`: The length of time an authorization request token should be valid. The default is 5 minutes. If you expect the user will not log-in immediately then you may want to increase this parameter. Can be expressed as a number in seconds, or a [vercel/ms string](https://github.com/vercel/ms).
75
76
  - `expiresIn: string | number`: The length of time a user token should be valid. The default is 4 hours. Can be expressed as a number in seconds, or a [vercel/ms string](https://github.com/vercel/ms).
76
77
 
77
78
  - _ref:
@@ -36,7 +36,7 @@ _ref:
36
36
 
37
37
  ###### List specific public pages:
38
38
  ```yaml
39
- lowdefy: 3.22.0
39
+ lowdefy: 3.23.2
40
40
  config:
41
41
  auth:
42
42
  pages:
@@ -48,7 +48,7 @@ _ref:
48
48
  ````
49
49
  ###### List specific protected pages:
50
50
  ```yaml
51
- lowdefy: 3.22.0
51
+ lowdefy: 3.23.2
52
52
  config:
53
53
  auth:
54
54
  pages:
package/users/roles.yaml CHANGED
@@ -29,7 +29,7 @@ _ref:
29
29
  Roles can be read from a custom claim on the OpenID Connect `idToken`. This should be an array of strings which are the role names. This needs to be configured at the OpenID Connect provider. The field that contains the roles array is configured in the `config.auth.openId` field in the Lowdefy configuration.
30
30
 
31
31
  ```yaml
32
- lowdefy: 3.22.0
32
+ lowdefy: 3.23.2
33
33
  config:
34
34
  auth:
35
35
  openId:
@@ -43,7 +43,7 @@ _ref:
43
43
 
44
44
  ###### Protect pages using roles:
45
45
  ```yaml
46
- lowdefy: 3.22.0
46
+ lowdefy: 3.23.2
47
47
  config:
48
48
  auth:
49
49
  openId:
@@ -48,7 +48,7 @@ _ref:
48
48
  content: |
49
49
  Most authorization and authentication settings are configured in the `config.auth` object in the Lowdefy configuration. The following config can be set:
50
50
  ```yaml
51
- lowdefy: 3.22.0
51
+ lowdefy: 3.23.2
52
52
  config:
53
53
  auth:
54
54
  openId:
package/version.yaml CHANGED
@@ -1 +1 @@
1
- v3.22.0
1
+ v3.23.2