Skip to content

Commit 4fdde52

Browse files
committed
1.4.0
1 parent 57659c9 commit 4fdde52

File tree

8 files changed

+332
-7
lines changed

8 files changed

+332
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
[//]: # (Don't use <tags>)
22

3+
## v1.4.0
4+
5+
> `2024-04-12`
6+
7+
### 🎉 Feature
8+
- Added AI Assistant.
9+
10+
### 🐞 Bug Fixes
11+
- Escape double quote in inline export attributes #55
12+
313
## v1.3.2
414

515
> `2024-04-09`

index.css

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,18 @@
352352
@apply mt-2;
353353
}
354354

355+
.vfb-tool-dark-mode {
356+
@apply mb-2;
357+
}
358+
359+
.vfb-tool-ai-new-tag {
360+
@apply absolute -bottom-[1.3875rem] left-1/2 transform -translate-x-1/2 bg-purple-500 text-white leading-none uppercase text-[11px] font-bold px-0.75 py-0.5 rounded;
361+
}
362+
363+
.vfb-icon.vfb-tool-ai-new-tag-caret {
364+
@apply absolute text-purple-500 left-1/2 transform -translate-x-1/2 -top-2.25;
365+
}
366+
355367
.vfb-tool-item {
356368
@apply w-8 h-8 flex items-center justify-center text-xs relative cursor-pointer transition-colors;
357369
}
@@ -1466,6 +1478,138 @@ div > div:first-of-type[style*="none;"] + .vfb-util-props-separator-top {
14661478
@apply mr-2;
14671479
}
14681480

1481+
.vfb-modal-ai {
1482+
@apply max-w-[38.75rem] rounded-[16px];
1483+
}
1484+
1485+
.vfb-modal-ai-head {
1486+
@apply px-8 pt-7 relative;
1487+
}
1488+
1489+
.vfb-modal-ai-head-title-container {
1490+
@apply flex items-center leading-tight;
1491+
}
1492+
1493+
.vfb-modal-ai-head-title-icon {
1494+
@apply text-[21px] text-sky-400;
1495+
}
1496+
1497+
.vfb-modal-ai-head-title {
1498+
@apply text-[24px] ml-2 font-semibold bg-gradient-to-r from-sky-400 to-primary-500 inline-block text-transparent bg-clip-text;
1499+
}
1500+
1501+
.vfb-modal-ai-head-title-beta {
1502+
@apply ml-2 text-[12px] mt-0.5 leading-none px-1 py-0.5 font-semibold bg-gradient-to-r from-sky-400 to-primary-500 rounded text-white;
1503+
}
1504+
1505+
.vfb-modal-ai-head-description {
1506+
@apply text-gray-500 text-[16px] leading-tight dark:text-dark-400;
1507+
}
1508+
1509+
.vfb-modal-ai-head-close-button {
1510+
@apply absolute top-7 right-8;
1511+
}
1512+
1513+
.vfb-modal-ai-speed-selector *, .vfb-modal-ai-speed-selector:before, .vfb-modal-ai-speed-selector:after {
1514+
--vf-primary: var(--vf-gray-100);
1515+
}
1516+
1517+
.dark .vfb-modal-ai-speed-selector *, .dark .vfb-modal-ai-speed-selector:before, .dark .vfb-modal-ai-speed-selector:after {
1518+
--vf-primary: var(--vf-dark-500);
1519+
}
1520+
1521+
.vfb-modal-ai-speed-selector-text span {
1522+
@apply text-gray-800 dark:text-white;
1523+
}
1524+
1525+
.vfb-modal-ai-loader-container {
1526+
@apply flex items-center justify-center flex-col mt-[3px] mb-4;
1527+
}
1528+
1529+
.form-p-btn.vfb-modal-ai-submit {
1530+
@apply bg-gradient-to-r from-sky-400 to-primary-500 rounded-lg py-2.5;
1531+
}
1532+
1533+
.vfb-modal-ai-loader {
1534+
transform: rotateZ(45deg);
1535+
perspective: 1000px;
1536+
border-radius: 50%;
1537+
width: 64px;
1538+
height: 64px;
1539+
@apply text-primary-500;
1540+
}
1541+
.vfb-modal-ai-loader:before, .vfb-modal-ai-loader:after {
1542+
content: "";
1543+
display: block;
1544+
position: absolute;
1545+
top: 0;
1546+
left: 0;
1547+
width: inherit;
1548+
height: inherit;
1549+
border-radius: 50%;
1550+
transform: rotateX(70deg);
1551+
animation: 1s vfb-ai-loader-spin linear infinite;
1552+
}
1553+
.vfb-modal-ai-loader:after {
1554+
transform: rotateY(70deg);
1555+
animation-delay: 0.4s;
1556+
@apply text-sky-400;
1557+
}
1558+
1559+
.vfb-modal-ai-text-loader {
1560+
@apply text-gray-500 text-[18px] text-center -mt-[9px] transform translate-y-0 transition-transform duration-500 leading-[3] relative z-1 dark:text-dark-300;
1561+
}
1562+
1563+
.vfb-modal-ai-loader-messages {
1564+
@apply h-[36px] overflow-hidden mt-2;
1565+
}
1566+
1567+
.vfb-modal-ai-loader-cancel {
1568+
@apply mt-4 text-[14px] text-gray-700 underline dark:text-dark-400;
1569+
}
1570+
1571+
@keyframes vfb-ai-loader-rotate {
1572+
0% {
1573+
transform: translate(-50%, -50%) rotateZ(0deg);
1574+
}
1575+
100% {
1576+
transform: translate(-50%, -50%) rotateZ(360deg);
1577+
}
1578+
}
1579+
@keyframes vfb-ai-loader-rotateccw {
1580+
0% {
1581+
transform: translate(-50%, -50%) rotate(0deg);
1582+
}
1583+
100% {
1584+
transform: translate(-50%, -50%) rotate(-360deg);
1585+
}
1586+
}
1587+
@keyframes vfb-ai-loader-spin {
1588+
0%, 100% {
1589+
box-shadow: 0.3em 0px 0 0px currentcolor;
1590+
}
1591+
12% {
1592+
box-shadow: 0.3em 0.3em 0 0 currentcolor;
1593+
}
1594+
25% {
1595+
box-shadow: 0 0.3em 0 0px currentcolor;
1596+
}
1597+
37% {
1598+
box-shadow: -0.3em 0.3em 0 0 currentcolor;
1599+
}
1600+
50% {
1601+
box-shadow: -0.3em 0 0 0 currentcolor;
1602+
}
1603+
62% {
1604+
box-shadow: -0.3em -0.3em 0 0 currentcolor;
1605+
}
1606+
75% {
1607+
box-shadow: 0px -0.3em 0 0 currentcolor;
1608+
}
1609+
87% {
1610+
box-shadow: 0.3em -0.3em 0 0 currentcolor;
1611+
}
1612+
}
14691613
.vfb-conditions-head-title {
14701614
@apply font-semibold uppercase;
14711615
}
@@ -2730,7 +2874,7 @@ div > div:first-of-type[style*="none;"] + .vfb-util-props-separator-top {
27302874
}
27312875

27322876
.vfb-builder {
2733-
@apply h-full w-full flex min-h-98 overflow-y-hidden relative;
2877+
@apply h-full w-full flex min-h-[28.5rem] overflow-y-hidden relative;
27342878
}
27352879

27362880
.vfb-left-container {

index.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

package.json

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

presets/simple.mjs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,6 +2255,7 @@ const h1 = {
22552255
type: { type: TypeField },
22562256
tag: { type: TagField_simple, },
22572257
content: { type: ContentField, },
2258+
description: { type: DescriptionField, },
22582259
},
22592260
},
22602261
layout: {
@@ -2282,6 +2283,10 @@ const h1 = {
22822283
}
22832284
},
22842285
separators: {
2286+
properties: [
2287+
['type', 'tag', 'content'],
2288+
['description'],
2289+
],
22852290
layout: [
22862291
['align'],
22872292
['space'],
@@ -2337,6 +2342,7 @@ const p = {
23372342
type: { type: TypeField },
23382343
tag: { type: TagField_simple, },
23392344
content: { type: ContentField_p, },
2345+
description: { type: DescriptionField, },
23402346
},
23412347
},
23422348
layout: {
@@ -2365,8 +2371,8 @@ const p = {
23652371
},
23662372
separators: {
23672373
properties: [
2368-
['type', 'tag'],
2369-
['content'],
2374+
['type', 'tag', 'content'],
2375+
['description'],
23702376
],
23712377
layout: [
23722378
['align'],
@@ -2395,6 +2401,7 @@ const img = {
23952401
type: { type: TypeField },
23962402
tag: { type: TagField_simple, },
23972403
img: { type: ImgField_simple, },
2404+
description: { type: DescriptionField, },
23982405
},
23992406
},
24002407
layout: {
@@ -2432,6 +2439,7 @@ const img = {
24322439
properties: [
24332440
['type', 'tag'],
24342441
['img'],
2442+
['description'],
24352443
],
24362444
layout: [
24372445
['align'],
@@ -2465,6 +2473,7 @@ const link = {
24652473
tag: { type: TagField_simple, },
24662474
content: { type: ContentField, extend: { rows: 1, label: 'Link text', columns: { label: 4 }, floating: false, placeholder: null } },
24672475
link: { type: LinkField_simple, },
2476+
description: { type: DescriptionField, },
24682477
},
24692478
},
24702479
layout: {
@@ -2492,6 +2501,10 @@ const link = {
24922501
}
24932502
},
24942503
separators: {
2504+
properties: [
2505+
['type', 'tag', 'content', 'link'],
2506+
['description'],
2507+
],
24952508
layout: [
24962509
['align'],
24972510
['space'],

scss/_builder.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.vfb-builder {
2-
@apply h-full w-full flex min-h-98 overflow-y-hidden relative;
2+
@apply h-full w-full flex min-h-[28.5rem] overflow-y-hidden relative;
33
}
44

55
.vfb-left-container {

0 commit comments

Comments
 (0)