Skip to content

Commit 70a8c20

Browse files
committed
1.4.2
1 parent e9ff1cb commit 70a8c20

File tree

6 files changed

+54
-26
lines changed

6 files changed

+54
-26
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
[//]: # (Don't use <tags>)
22

3+
## v1.4.2
4+
5+
> `2024-04-29`
6+
7+
### 🎉 Feature
8+
- New Captcha element.
9+
310
## v1.4.1
411

512
> `2024-04-15`

index.mjs

+2-2
Large diffs are not rendered by default.

nuxt/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vueform/builder-nuxt",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Nuxt module for Vueform Builder",
55
"repository": "vueform/builder-nuxt",
66
"license": "MIT",

nuxt/src/module.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ export default defineNuxtModule<ModuleOptions>({
3131
nuxt.options.build.transpile.push('@vueform/vueform')
3232
nuxt.options.build.transpile.push('@vueform/builder')
3333

34-
// nuxt.options.vite.optimizeDeps = {
35-
// ...(nuxt.options.vite.optimizeDeps || {}),
36-
// include: [
37-
// ...(nuxt.options.vite.optimizeDeps?.include || []),
38-
// 'wnumb',
39-
// 'nouislider',
40-
// 'trix',
41-
// 'lodash',
42-
// 'axios',
43-
// 'json5',
44-
// 'prismjs',
45-
// ]
46-
// }
34+
nuxt.options.vite.optimizeDeps = {
35+
...(nuxt.options.vite.optimizeDeps || {}),
36+
include: [
37+
...(nuxt.options.vite.optimizeDeps?.include || []),
38+
'wnumb',
39+
'nouislider',
40+
'trix',
41+
'lodash',
42+
'axios',
43+
'json5',
44+
'prismjs',
45+
]
46+
}
4747

4848
let configBase = resolve(
4949
nuxt.options.rootDir,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": false,
33
"name": "@vueform/builder",
4-
"version": "1.4.1",
4+
"version": "1.4.2",
55
"description": "Vueform Builder development build.",
66
"homepage": "https://vueform.com",
77
"license": "SEE LICENSE IN LICENSE.txt",

presets/simple.mjs

+30-9
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,6 @@ const ColumnsField_simple = class extends BaseElementField {
818818
}
819819
}
820820

821-
console.log(update, remove)
822-
823821
this.update(update, remove)
824822
}
825823

@@ -2600,13 +2598,6 @@ const submit = {
26002598
buttonLabel: 'Submit',
26012599
submits: true,
26022600
},
2603-
schema: {
2604-
type: 'button',
2605-
buttonLabel: 'Submit',
2606-
onClick() {
2607-
alert(2)
2608-
}
2609-
},
26102601
sections: {
26112602
properties: {
26122603
name: 'properties',
@@ -2650,6 +2641,34 @@ const submit = {
26502641
}
26512642
}
26522643

2644+
const captcha = {
2645+
label: 'Captcha',
2646+
description: 'Prevents submission by robots',
2647+
icon: ['fas', 'user-robot'],
2648+
category: 'page',
2649+
schema: {
2650+
type: 'captcha',
2651+
},
2652+
sections: {
2653+
properties: {
2654+
name: 'properties',
2655+
label: 'Properties',
2656+
fields: {
2657+
type: { type: TypeField },
2658+
label: { type: LabelField, },
2659+
description: { type: DescriptionField },
2660+
},
2661+
},
2662+
attributes: {
2663+
name: 'attributes',
2664+
label: 'Attributes',
2665+
fields: {
2666+
name: { type: NameField, extend: { disabled: true, } },
2667+
}
2668+
}
2669+
},
2670+
}
2671+
26532672
const steps = {
26542673
label: 'Pages',
26552674
description: 'Break the form into steps',
@@ -2940,6 +2959,7 @@ const config = {
29402959
'h3',
29412960
'divider',
29422961
'spacer',
2962+
'captcha',
29432963
'submit',
29442964
'steps',
29452965
'container',
@@ -3183,6 +3203,7 @@ const config = {
31833203
image,
31843204
multifile,
31853205
multiImage,
3206+
captcha,
31863207
submit,
31873208
h1,
31883209
h2,

0 commit comments

Comments
 (0)