@lowdefy/blocks-basic 0.0.0-experimental-20260720072521 → 0.0.0-experimental-20260720135014
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.
- package/dist/blocks.js +0 -1
- package/dist/e2e.js +0 -1
- package/dist/metas.js +0 -1
- package/package.json +10 -10
- package/dist/blocks/Anchor/gallery.yaml +0 -316
- package/dist/blocks/Anchor/tests/Anchor.e2e.yaml +0 -78
- package/dist/blocks/Anchor/tests.yaml +0 -109
- package/dist/blocks/Box/gallery.yaml +0 -1369
- package/dist/blocks/Box/tests/Box.e2e.yaml +0 -78
- package/dist/blocks/Box/tests.yaml +0 -43
- package/dist/blocks/DangerousHtml/gallery.yaml +0 -182
- package/dist/blocks/DangerousHtml/tests/DangerousHtml.e2e.yaml +0 -33
- package/dist/blocks/DangerousHtml/tests.yaml +0 -83
- package/dist/blocks/Dynamic/Dynamic.js +0 -35
- package/dist/blocks/Dynamic/e2e.js +0 -16
- package/dist/blocks/Dynamic/meta.js +0 -76
- package/dist/blocks/Html/gallery.yaml +0 -239
- package/dist/blocks/Html/tests/Html.e2e.yaml +0 -56
- package/dist/blocks/Html/tests.yaml +0 -75
- package/dist/blocks/Icon/gallery.yaml +0 -702
- package/dist/blocks/Icon/tests/Icon.e2e.yaml +0 -43
- package/dist/blocks/Icon/tests.yaml +0 -54
- package/dist/blocks/Img/gallery.yaml +0 -446
- package/dist/blocks/Img/tests/Img.e2e.yaml +0 -61
- package/dist/blocks/Img/tests.yaml +0 -74
- package/dist/blocks/List/gallery.yaml +0 -523
- package/dist/blocks/List/tests/List.e2e.yaml +0 -199
- package/dist/blocks/List/tests.yaml +0 -471
- package/dist/blocks/Span/gallery.yaml +0 -664
- package/dist/blocks/Span/tests/Span.e2e.yaml +0 -59
- package/dist/blocks/Span/tests.yaml +0 -43
- package/dist/blocks/Throw/gallery.yaml +0 -40
- package/dist/blocks/Throw/tests.yaml +0 -20
package/dist/blocks.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/ export { default as Anchor } from './blocks/Anchor/Anchor.js';
|
|
16
16
|
export { default as Box } from './blocks/Box/Box.js';
|
|
17
17
|
export { default as DangerousHtml } from './blocks/DangerousHtml/DangerousHtml.js';
|
|
18
|
-
export { default as Dynamic } from './blocks/Dynamic/Dynamic.js';
|
|
19
18
|
export { default as Html } from './blocks/Html/Html.js';
|
|
20
19
|
export { default as Icon } from './blocks/Icon/Icon.js';
|
|
21
20
|
export { default as Img } from './blocks/Img/Img.js';
|
package/dist/e2e.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/ export { default as Anchor } from './blocks/Anchor/e2e.js';
|
|
16
16
|
export { default as Box } from './blocks/Box/e2e.js';
|
|
17
17
|
export { default as DangerousHtml } from './blocks/DangerousHtml/e2e.js';
|
|
18
|
-
export { default as Dynamic } from './blocks/Dynamic/e2e.js';
|
|
19
18
|
export { default as Html } from './blocks/Html/e2e.js';
|
|
20
19
|
export { default as Icon } from './blocks/Icon/e2e.js';
|
|
21
20
|
export { default as Img } from './blocks/Img/e2e.js';
|
package/dist/metas.js
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/ export { default as Anchor } from './blocks/Anchor/meta.js';
|
|
16
16
|
export { default as Box } from './blocks/Box/meta.js';
|
|
17
17
|
export { default as DangerousHtml } from './blocks/DangerousHtml/meta.js';
|
|
18
|
-
export { default as Dynamic } from './blocks/Dynamic/meta.js';
|
|
19
18
|
export { default as Html } from './blocks/Html/meta.js';
|
|
20
19
|
export { default as Icon } from './blocks/Icon/meta.js';
|
|
21
20
|
export { default as Img } from './blocks/Img/meta.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-basic",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20260720135014",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Basic html Lowdefy blocks.",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"dist/*"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
46
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
47
|
-
"dompurify": "3.4
|
|
45
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20260720135014",
|
|
46
|
+
"@lowdefy/helpers": "0.0.0-experimental-20260720135014",
|
|
47
|
+
"dompurify": "3.2.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=18",
|
|
51
51
|
"react-dom": ">=18"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@lowdefy/block-dev-e2e": "0.0.0-experimental-
|
|
55
|
-
"@lowdefy/e2e-utils": "0.0.0-experimental-
|
|
56
|
-
"@playwright/test": "1.
|
|
57
|
-
"@swc/cli": "0.8.
|
|
58
|
-
"@swc/core": "1.15.
|
|
54
|
+
"@lowdefy/block-dev-e2e": "0.0.0-experimental-20260720135014",
|
|
55
|
+
"@lowdefy/e2e-utils": "0.0.0-experimental-20260720135014",
|
|
56
|
+
"@playwright/test": "1.50.1",
|
|
57
|
+
"@swc/cli": "0.8.0",
|
|
58
|
+
"@swc/core": "1.15.18",
|
|
59
59
|
"copyfiles": "2.4.1"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --cli-config-file ../../../../.swc-cli.json && pnpm copyfiles",
|
|
66
66
|
"clean": "rm -rf dist",
|
|
67
|
-
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.snap\"",
|
|
67
|
+
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
68
68
|
"e2e": "playwright test --config e2e/playwright.config.js",
|
|
69
69
|
"e2e:ui": "playwright test --config e2e/playwright.config.js --ui"
|
|
70
70
|
}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2026 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
|
-
- title: Basic Links
|
|
16
|
-
blocks:
|
|
17
|
-
- id: basic_url
|
|
18
|
-
type: Anchor
|
|
19
|
-
layout:
|
|
20
|
-
flex: 0 0 auto
|
|
21
|
-
properties:
|
|
22
|
-
title: External URL
|
|
23
|
-
url: https://lowdefy.com
|
|
24
|
-
- id: basic_href
|
|
25
|
-
type: Anchor
|
|
26
|
-
layout:
|
|
27
|
-
flex: 0 0 auto
|
|
28
|
-
properties:
|
|
29
|
-
title: Internal href
|
|
30
|
-
href: /introduction
|
|
31
|
-
- id: basic_no_title
|
|
32
|
-
type: Anchor
|
|
33
|
-
layout:
|
|
34
|
-
flex: 0 0 auto
|
|
35
|
-
properties:
|
|
36
|
-
url: https://lowdefy.com
|
|
37
|
-
|
|
38
|
-
- title: Title Variations
|
|
39
|
-
blocks:
|
|
40
|
-
- id: title_short
|
|
41
|
-
type: Anchor
|
|
42
|
-
layout:
|
|
43
|
-
flex: 0 0 auto
|
|
44
|
-
properties:
|
|
45
|
-
title: Home
|
|
46
|
-
href: /
|
|
47
|
-
- id: title_long
|
|
48
|
-
type: Anchor
|
|
49
|
-
layout:
|
|
50
|
-
flex: 0 0 auto
|
|
51
|
-
properties:
|
|
52
|
-
title: Read the full documentation and learn more
|
|
53
|
-
url: https://docs.lowdefy.com
|
|
54
|
-
- id: title_special
|
|
55
|
-
type: Anchor
|
|
56
|
-
layout:
|
|
57
|
-
flex: 0 0 auto
|
|
58
|
-
properties:
|
|
59
|
-
title: Terms & Conditions
|
|
60
|
-
url: https://lowdefy.com
|
|
61
|
-
|
|
62
|
-
- title: With Icon
|
|
63
|
-
blocks:
|
|
64
|
-
- id: icon_string
|
|
65
|
-
type: Anchor
|
|
66
|
-
layout:
|
|
67
|
-
flex: 0 0 auto
|
|
68
|
-
properties:
|
|
69
|
-
title: Link with Icon
|
|
70
|
-
url: https://lowdefy.com
|
|
71
|
-
icon: AiOutlineLink
|
|
72
|
-
- id: icon_download
|
|
73
|
-
type: Anchor
|
|
74
|
-
layout:
|
|
75
|
-
flex: 0 0 auto
|
|
76
|
-
properties:
|
|
77
|
-
title: Download
|
|
78
|
-
url: https://lowdefy.com
|
|
79
|
-
icon: AiOutlineDownload
|
|
80
|
-
- id: icon_external
|
|
81
|
-
type: Anchor
|
|
82
|
-
layout:
|
|
83
|
-
flex: 0 0 auto
|
|
84
|
-
properties:
|
|
85
|
-
title: External Link
|
|
86
|
-
url: https://lowdefy.com
|
|
87
|
-
icon: AiOutlineExport
|
|
88
|
-
- id: icon_mail
|
|
89
|
-
type: Anchor
|
|
90
|
-
layout:
|
|
91
|
-
flex: 0 0 auto
|
|
92
|
-
properties:
|
|
93
|
-
title: Send Email
|
|
94
|
-
url: https://lowdefy.com
|
|
95
|
-
icon: AiOutlineMail
|
|
96
|
-
- id: icon_github
|
|
97
|
-
type: Anchor
|
|
98
|
-
layout:
|
|
99
|
-
flex: 0 0 auto
|
|
100
|
-
properties:
|
|
101
|
-
title: GitHub
|
|
102
|
-
url: https://github.com/lowdefy/lowdefy
|
|
103
|
-
icon: AiOutlineGithub
|
|
104
|
-
- id: icon_object
|
|
105
|
-
type: Anchor
|
|
106
|
-
layout:
|
|
107
|
-
flex: 0 0 auto
|
|
108
|
-
properties:
|
|
109
|
-
title: Colored Icon
|
|
110
|
-
url: https://lowdefy.com
|
|
111
|
-
icon:
|
|
112
|
-
name: AiOutlineHeart
|
|
113
|
-
color: '#ff4d4f'
|
|
114
|
-
|
|
115
|
-
- title: New Tab
|
|
116
|
-
blocks:
|
|
117
|
-
- id: newtab_url
|
|
118
|
-
type: Anchor
|
|
119
|
-
layout:
|
|
120
|
-
flex: 0 0 auto
|
|
121
|
-
properties:
|
|
122
|
-
title: Open in New Tab
|
|
123
|
-
url: https://lowdefy.com
|
|
124
|
-
newTab: true
|
|
125
|
-
- id: newtab_icon
|
|
126
|
-
type: Anchor
|
|
127
|
-
layout:
|
|
128
|
-
flex: 0 0 auto
|
|
129
|
-
properties:
|
|
130
|
-
title: External Docs
|
|
131
|
-
url: https://docs.lowdefy.com
|
|
132
|
-
newTab: true
|
|
133
|
-
icon: AiOutlineExport
|
|
134
|
-
|
|
135
|
-
- title: Disabled
|
|
136
|
-
blocks:
|
|
137
|
-
- id: disabled_plain
|
|
138
|
-
type: Anchor
|
|
139
|
-
layout:
|
|
140
|
-
flex: 0 0 auto
|
|
141
|
-
properties:
|
|
142
|
-
title: Disabled Link
|
|
143
|
-
url: https://lowdefy.com
|
|
144
|
-
disabled: true
|
|
145
|
-
- id: disabled_icon
|
|
146
|
-
type: Anchor
|
|
147
|
-
layout:
|
|
148
|
-
flex: 0 0 auto
|
|
149
|
-
properties:
|
|
150
|
-
title: Disabled with Icon
|
|
151
|
-
url: https://lowdefy.com
|
|
152
|
-
disabled: true
|
|
153
|
-
icon: AiOutlineLock
|
|
154
|
-
- id: enabled_link
|
|
155
|
-
type: Anchor
|
|
156
|
-
layout:
|
|
157
|
-
flex: 0 0 auto
|
|
158
|
-
properties:
|
|
159
|
-
title: Enabled Link
|
|
160
|
-
url: https://lowdefy.com
|
|
161
|
-
disabled: false
|
|
162
|
-
icon: AiOutlineUnlock
|
|
163
|
-
|
|
164
|
-
- title: Aria Label
|
|
165
|
-
blocks:
|
|
166
|
-
- id: aria_basic
|
|
167
|
-
type: Anchor
|
|
168
|
-
layout:
|
|
169
|
-
flex: 0 0 auto
|
|
170
|
-
properties:
|
|
171
|
-
title: Accessible Link
|
|
172
|
-
url: https://lowdefy.com
|
|
173
|
-
ariaLabel: Navigate to the Lowdefy homepage
|
|
174
|
-
- id: aria_icon_only
|
|
175
|
-
type: Anchor
|
|
176
|
-
layout:
|
|
177
|
-
flex: 0 0 auto
|
|
178
|
-
properties:
|
|
179
|
-
url: https://lowdefy.com
|
|
180
|
-
icon: AiOutlineHome
|
|
181
|
-
ariaLabel: Go to home page
|
|
182
|
-
|
|
183
|
-
- title: Rel Attribute
|
|
184
|
-
blocks:
|
|
185
|
-
- id: rel_default
|
|
186
|
-
type: Anchor
|
|
187
|
-
layout:
|
|
188
|
-
flex: 0 0 auto
|
|
189
|
-
properties:
|
|
190
|
-
title: Default rel (noopener noreferrer)
|
|
191
|
-
url: https://lowdefy.com
|
|
192
|
-
newTab: true
|
|
193
|
-
- id: rel_custom
|
|
194
|
-
type: Anchor
|
|
195
|
-
layout:
|
|
196
|
-
flex: 0 0 auto
|
|
197
|
-
properties:
|
|
198
|
-
title: Custom rel
|
|
199
|
-
url: https://lowdefy.com
|
|
200
|
-
rel: nofollow
|
|
201
|
-
newTab: true
|
|
202
|
-
|
|
203
|
-
- title: Back and Home Navigation
|
|
204
|
-
blocks:
|
|
205
|
-
- id: nav_back
|
|
206
|
-
type: Anchor
|
|
207
|
-
layout:
|
|
208
|
-
flex: 0 0 auto
|
|
209
|
-
properties:
|
|
210
|
-
title: Go Back
|
|
211
|
-
back: true
|
|
212
|
-
icon: AiOutlineArrowLeft
|
|
213
|
-
- id: nav_home
|
|
214
|
-
type: Anchor
|
|
215
|
-
layout:
|
|
216
|
-
flex: 0 0 auto
|
|
217
|
-
properties:
|
|
218
|
-
title: Go Home
|
|
219
|
-
home: true
|
|
220
|
-
icon: AiOutlineHome
|
|
221
|
-
|
|
222
|
-
- title: Keyboard Shortcuts
|
|
223
|
-
blocks:
|
|
224
|
-
- id: shortcut_docs
|
|
225
|
-
type: Anchor
|
|
226
|
-
layout:
|
|
227
|
-
flex: 0 0 auto
|
|
228
|
-
properties:
|
|
229
|
-
title: Documentation
|
|
230
|
-
url: https://docs.lowdefy.com
|
|
231
|
-
icon: AiOutlineBook
|
|
232
|
-
events:
|
|
233
|
-
onClick:
|
|
234
|
-
shortcut: mod+shift+d
|
|
235
|
-
try:
|
|
236
|
-
- id: docs_msg
|
|
237
|
-
type: DisplayMessage
|
|
238
|
-
params:
|
|
239
|
-
content: Opening docs...
|
|
240
|
-
status: info
|
|
241
|
-
|
|
242
|
-
- title: Style Overrides
|
|
243
|
-
blocks:
|
|
244
|
-
- id: style_bold
|
|
245
|
-
type: Anchor
|
|
246
|
-
layout:
|
|
247
|
-
flex: 0 0 auto
|
|
248
|
-
style:
|
|
249
|
-
.element:
|
|
250
|
-
fontWeight: bold
|
|
251
|
-
fontSize: 16
|
|
252
|
-
properties:
|
|
253
|
-
title: Bold Link
|
|
254
|
-
url: https://lowdefy.com
|
|
255
|
-
- id: style_colored
|
|
256
|
-
type: Anchor
|
|
257
|
-
layout:
|
|
258
|
-
flex: 0 0 auto
|
|
259
|
-
style:
|
|
260
|
-
.element:
|
|
261
|
-
color: '#52c41a'
|
|
262
|
-
properties:
|
|
263
|
-
title: Green Link
|
|
264
|
-
url: https://lowdefy.com
|
|
265
|
-
- id: style_underline
|
|
266
|
-
type: Anchor
|
|
267
|
-
layout:
|
|
268
|
-
flex: 0 0 auto
|
|
269
|
-
style:
|
|
270
|
-
.element:
|
|
271
|
-
textDecoration: underline
|
|
272
|
-
color: '#722ed1'
|
|
273
|
-
properties:
|
|
274
|
-
title: Underlined Purple Link
|
|
275
|
-
url: https://lowdefy.com
|
|
276
|
-
- id: style_button_like
|
|
277
|
-
type: Anchor
|
|
278
|
-
layout:
|
|
279
|
-
flex: 0 0 auto
|
|
280
|
-
style:
|
|
281
|
-
.element:
|
|
282
|
-
background: '#1677ff'
|
|
283
|
-
color: '#ffffff'
|
|
284
|
-
padding: 8px 16px
|
|
285
|
-
borderRadius: 6
|
|
286
|
-
textDecoration: none
|
|
287
|
-
fontWeight: 500
|
|
288
|
-
properties:
|
|
289
|
-
title: Button-Style Link
|
|
290
|
-
url: https://lowdefy.com
|
|
291
|
-
- id: style_outline
|
|
292
|
-
type: Anchor
|
|
293
|
-
layout:
|
|
294
|
-
flex: 0 0 auto
|
|
295
|
-
style:
|
|
296
|
-
.element:
|
|
297
|
-
border: 1px solid #1677ff
|
|
298
|
-
color: '#1677ff'
|
|
299
|
-
padding: 8px 16px
|
|
300
|
-
borderRadius: 6
|
|
301
|
-
textDecoration: none
|
|
302
|
-
properties:
|
|
303
|
-
title: Outlined Link
|
|
304
|
-
url: https://lowdefy.com
|
|
305
|
-
- id: style_large_icon
|
|
306
|
-
type: Anchor
|
|
307
|
-
layout:
|
|
308
|
-
flex: 0 0 auto
|
|
309
|
-
style:
|
|
310
|
-
.element:
|
|
311
|
-
fontSize: 20
|
|
312
|
-
color: '#ff4d4f'
|
|
313
|
-
properties:
|
|
314
|
-
title: Large Red Link
|
|
315
|
-
url: https://lowdefy.com
|
|
316
|
-
icon: AiOutlineHeart
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2026 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: anchor
|
|
16
|
-
type: Box
|
|
17
|
-
|
|
18
|
-
blocks:
|
|
19
|
-
- id: anchor_basic
|
|
20
|
-
type: Anchor
|
|
21
|
-
properties:
|
|
22
|
-
title: Basic Anchor
|
|
23
|
-
|
|
24
|
-
- id: anchor_with_icon
|
|
25
|
-
type: Anchor
|
|
26
|
-
properties:
|
|
27
|
-
title: With Icon
|
|
28
|
-
icon: AiOutlineLink
|
|
29
|
-
|
|
30
|
-
- id: anchor_disabled
|
|
31
|
-
type: Anchor
|
|
32
|
-
properties:
|
|
33
|
-
title: Disabled Anchor
|
|
34
|
-
disabled: true
|
|
35
|
-
|
|
36
|
-
- id: anchor_href
|
|
37
|
-
type: Anchor
|
|
38
|
-
properties:
|
|
39
|
-
title: External Link
|
|
40
|
-
href: https://lowdefy.com
|
|
41
|
-
|
|
42
|
-
- id: anchor_newtab
|
|
43
|
-
type: Anchor
|
|
44
|
-
properties:
|
|
45
|
-
title: New Tab Link
|
|
46
|
-
href: https://lowdefy.com
|
|
47
|
-
newTab: true
|
|
48
|
-
|
|
49
|
-
- id: anchor_clickable
|
|
50
|
-
type: Anchor
|
|
51
|
-
properties:
|
|
52
|
-
title:
|
|
53
|
-
_if:
|
|
54
|
-
test:
|
|
55
|
-
_eq:
|
|
56
|
-
- _state: anchor_clicked
|
|
57
|
-
- true
|
|
58
|
-
then: Clicked!
|
|
59
|
-
else: Click me
|
|
60
|
-
events:
|
|
61
|
-
onClick:
|
|
62
|
-
- id: set_clicked
|
|
63
|
-
type: SetState
|
|
64
|
-
params:
|
|
65
|
-
anchor_clicked: true
|
|
66
|
-
|
|
67
|
-
- id: anchor_shortcut
|
|
68
|
-
type: Anchor
|
|
69
|
-
properties:
|
|
70
|
-
title: Docs
|
|
71
|
-
events:
|
|
72
|
-
onClick:
|
|
73
|
-
shortcut: mod+d
|
|
74
|
-
try:
|
|
75
|
-
- id: docs_action
|
|
76
|
-
type: SetState
|
|
77
|
-
params:
|
|
78
|
-
docs_opened: true
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
# Copyright 2020-2026 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: default
|
|
16
|
-
type: Anchor
|
|
17
|
-
- id: properties.title
|
|
18
|
-
type: Anchor
|
|
19
|
-
properties:
|
|
20
|
-
title: Anchor title
|
|
21
|
-
- id: properties.icon string
|
|
22
|
-
type: Anchor
|
|
23
|
-
properties:
|
|
24
|
-
icon: AiFillFire
|
|
25
|
-
- id: properties.icon object
|
|
26
|
-
type: Anchor
|
|
27
|
-
properties:
|
|
28
|
-
title: Click here
|
|
29
|
-
icon:
|
|
30
|
-
color: red
|
|
31
|
-
name: AiFillRocket
|
|
32
|
-
- id: properties.icon and properties.title
|
|
33
|
-
type: Anchor
|
|
34
|
-
properties:
|
|
35
|
-
icon: AiOutlineLink
|
|
36
|
-
title: This is the anchor title
|
|
37
|
-
- id: properties.disabled
|
|
38
|
-
type: Anchor
|
|
39
|
-
properties:
|
|
40
|
-
disabled: true
|
|
41
|
-
title: disabled
|
|
42
|
-
- id: properties.icon, properties.title and properties.disabled
|
|
43
|
-
type: Anchor
|
|
44
|
-
properties:
|
|
45
|
-
icon: AiOutlineLink
|
|
46
|
-
title: This is the anchor title
|
|
47
|
-
disabled: true
|
|
48
|
-
- id: properties.url
|
|
49
|
-
type: Anchor
|
|
50
|
-
properties:
|
|
51
|
-
url: https://lowdefy.com
|
|
52
|
-
- id: properties.url, title and newTab
|
|
53
|
-
type: Anchor
|
|
54
|
-
properties:
|
|
55
|
-
url: https://lowdefy.com
|
|
56
|
-
newTab: true
|
|
57
|
-
title: New tab Website
|
|
58
|
-
- id: properties.url, title and newTab
|
|
59
|
-
type: Anchor
|
|
60
|
-
properties:
|
|
61
|
-
pageId: next
|
|
62
|
-
urlQuery:
|
|
63
|
-
done: true
|
|
64
|
-
number: 1
|
|
65
|
-
string: Hello
|
|
66
|
-
title: Url Query
|
|
67
|
-
- id: properties.pageId and newTab
|
|
68
|
-
type: Anchor
|
|
69
|
-
properties:
|
|
70
|
-
pageId: /Button
|
|
71
|
-
newTab: true
|
|
72
|
-
title: To Button
|
|
73
|
-
- id: properties.pageId and rel
|
|
74
|
-
type: Anchor
|
|
75
|
-
properties:
|
|
76
|
-
pageId: https://lowdefy.com
|
|
77
|
-
rel: 'noopener'
|
|
78
|
-
- id: properties.pageId and ariaLabel
|
|
79
|
-
type: Anchor
|
|
80
|
-
properties:
|
|
81
|
-
pageId: /Button
|
|
82
|
-
ariaLabel: aria_label
|
|
83
|
-
title: To ariaLabel
|
|
84
|
-
- id: properties.style
|
|
85
|
-
type: Anchor
|
|
86
|
-
properties:
|
|
87
|
-
title: Click here
|
|
88
|
-
style:
|
|
89
|
-
color: green !important
|
|
90
|
-
fontSize: 18
|
|
91
|
-
- id: properties.style with icon
|
|
92
|
-
type: Anchor
|
|
93
|
-
properties:
|
|
94
|
-
title: Click here
|
|
95
|
-
icon: AiOutlineLink
|
|
96
|
-
style:
|
|
97
|
-
color: green !important
|
|
98
|
-
fontSize: 8
|
|
99
|
-
- id: events.onClick loading true
|
|
100
|
-
type: Anchor
|
|
101
|
-
events: # TODO: consider name change since will break rendering the example in an app. This os the event object as passed to block by engine.
|
|
102
|
-
onClick:
|
|
103
|
-
loading: true
|
|
104
|
-
properties:
|
|
105
|
-
title: Click here
|
|
106
|
-
icon: AiOutlineLink
|
|
107
|
-
style:
|
|
108
|
-
color: green !important
|
|
109
|
-
fontSize: 8
|