@webstudio-is/sdk 0.224.0 → 0.226.0
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/lib/core-templates.js +59 -1
- package/lib/index.js +67 -14
- package/lib/types/schema/animation-schema.d.ts +1648 -1648
- package/lib/types/schema/component-meta.d.ts +360 -360
- package/lib/types/schema/pages.d.ts +3 -3
- package/lib/types/schema/props.d.ts +1165 -1165
- package/lib/types/schema/styles.d.ts +200 -200
- package/lib/types/schema/webstudio.d.ts +732 -732
- package/package.json +6 -6
package/lib/core-templates.js
CHANGED
|
@@ -731,7 +731,65 @@ var tags = [
|
|
|
731
731
|
"ul",
|
|
732
732
|
"var",
|
|
733
733
|
"video",
|
|
734
|
-
"wbr"
|
|
734
|
+
"wbr",
|
|
735
|
+
"svg",
|
|
736
|
+
"g",
|
|
737
|
+
"defs",
|
|
738
|
+
"desc",
|
|
739
|
+
"symbol",
|
|
740
|
+
"use",
|
|
741
|
+
"image",
|
|
742
|
+
"switch",
|
|
743
|
+
"path",
|
|
744
|
+
"rect",
|
|
745
|
+
"circle",
|
|
746
|
+
"ellipse",
|
|
747
|
+
"line",
|
|
748
|
+
"polyline",
|
|
749
|
+
"polygon",
|
|
750
|
+
"text",
|
|
751
|
+
"tspan",
|
|
752
|
+
"textPath",
|
|
753
|
+
"marker",
|
|
754
|
+
"linearGradient",
|
|
755
|
+
"radialGradient",
|
|
756
|
+
"stop",
|
|
757
|
+
"pattern",
|
|
758
|
+
"clipPath",
|
|
759
|
+
"mask",
|
|
760
|
+
"filter",
|
|
761
|
+
"feDistantLight",
|
|
762
|
+
"fePointLight",
|
|
763
|
+
"feSpotLight",
|
|
764
|
+
"feBlend",
|
|
765
|
+
"feColorMatrix",
|
|
766
|
+
"feComponentTransfer",
|
|
767
|
+
"feFuncR",
|
|
768
|
+
"feFuncG",
|
|
769
|
+
"feFuncB",
|
|
770
|
+
"feFuncA",
|
|
771
|
+
"feComposite",
|
|
772
|
+
"feConvolveMatrix",
|
|
773
|
+
"feDiffuseLighting",
|
|
774
|
+
"feDisplacementMap",
|
|
775
|
+
"feFlood",
|
|
776
|
+
"feGaussianBlur",
|
|
777
|
+
"feImage",
|
|
778
|
+
"feMerge",
|
|
779
|
+
"feMergeNode",
|
|
780
|
+
"feMorphology",
|
|
781
|
+
"feOffset",
|
|
782
|
+
"feSpecularLighting",
|
|
783
|
+
"feTile",
|
|
784
|
+
"feTurbulence",
|
|
785
|
+
"view",
|
|
786
|
+
"animate",
|
|
787
|
+
"set",
|
|
788
|
+
"animateMotion",
|
|
789
|
+
"mpath",
|
|
790
|
+
"animateTransform",
|
|
791
|
+
"metadata",
|
|
792
|
+
"foreignObject"
|
|
735
793
|
];
|
|
736
794
|
|
|
737
795
|
// src/core-metas.ts
|
package/lib/index.js
CHANGED
|
@@ -136,19 +136,14 @@ var ProjectMeta = z2.object({
|
|
|
136
136
|
faviconAssetId: z2.string().optional(),
|
|
137
137
|
code: z2.string().optional()
|
|
138
138
|
});
|
|
139
|
-
var ProjectNewRedirectPath =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
} catch {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
}, "Must be a valid URL")
|
|
151
|
-
);
|
|
139
|
+
var ProjectNewRedirectPath = z2.string().refine((data) => {
|
|
140
|
+
try {
|
|
141
|
+
new URL(data, "http://url.com");
|
|
142
|
+
return true;
|
|
143
|
+
} catch {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
}, "Must be a valid URL");
|
|
152
147
|
var PageRedirect = z2.object({
|
|
153
148
|
old: OldPagePath,
|
|
154
149
|
new: ProjectNewRedirectPath,
|
|
@@ -1617,7 +1612,65 @@ var tags = [
|
|
|
1617
1612
|
"ul",
|
|
1618
1613
|
"var",
|
|
1619
1614
|
"video",
|
|
1620
|
-
"wbr"
|
|
1615
|
+
"wbr",
|
|
1616
|
+
"svg",
|
|
1617
|
+
"g",
|
|
1618
|
+
"defs",
|
|
1619
|
+
"desc",
|
|
1620
|
+
"symbol",
|
|
1621
|
+
"use",
|
|
1622
|
+
"image",
|
|
1623
|
+
"switch",
|
|
1624
|
+
"path",
|
|
1625
|
+
"rect",
|
|
1626
|
+
"circle",
|
|
1627
|
+
"ellipse",
|
|
1628
|
+
"line",
|
|
1629
|
+
"polyline",
|
|
1630
|
+
"polygon",
|
|
1631
|
+
"text",
|
|
1632
|
+
"tspan",
|
|
1633
|
+
"textPath",
|
|
1634
|
+
"marker",
|
|
1635
|
+
"linearGradient",
|
|
1636
|
+
"radialGradient",
|
|
1637
|
+
"stop",
|
|
1638
|
+
"pattern",
|
|
1639
|
+
"clipPath",
|
|
1640
|
+
"mask",
|
|
1641
|
+
"filter",
|
|
1642
|
+
"feDistantLight",
|
|
1643
|
+
"fePointLight",
|
|
1644
|
+
"feSpotLight",
|
|
1645
|
+
"feBlend",
|
|
1646
|
+
"feColorMatrix",
|
|
1647
|
+
"feComponentTransfer",
|
|
1648
|
+
"feFuncR",
|
|
1649
|
+
"feFuncG",
|
|
1650
|
+
"feFuncB",
|
|
1651
|
+
"feFuncA",
|
|
1652
|
+
"feComposite",
|
|
1653
|
+
"feConvolveMatrix",
|
|
1654
|
+
"feDiffuseLighting",
|
|
1655
|
+
"feDisplacementMap",
|
|
1656
|
+
"feFlood",
|
|
1657
|
+
"feGaussianBlur",
|
|
1658
|
+
"feImage",
|
|
1659
|
+
"feMerge",
|
|
1660
|
+
"feMergeNode",
|
|
1661
|
+
"feMorphology",
|
|
1662
|
+
"feOffset",
|
|
1663
|
+
"feSpecularLighting",
|
|
1664
|
+
"feTile",
|
|
1665
|
+
"feTurbulence",
|
|
1666
|
+
"view",
|
|
1667
|
+
"animate",
|
|
1668
|
+
"set",
|
|
1669
|
+
"animateMotion",
|
|
1670
|
+
"mpath",
|
|
1671
|
+
"animateTransform",
|
|
1672
|
+
"metadata",
|
|
1673
|
+
"foreignObject"
|
|
1621
1674
|
];
|
|
1622
1675
|
|
|
1623
1676
|
// src/core-metas.ts
|