@webstudio-is/sdk 0.275.0 → 0.276.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 +1 -1
- package/lib/index.js +304 -3
- package/lib/runtime.js +288 -1
- package/lib/schema-org.js +5703 -0
- package/lib/schema.js +1 -0
- package/lib/types/core-metas.d.ts +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/json-ld-utils.d.ts +3 -0
- package/lib/types/json-ld.d.ts +31 -0
- package/lib/types/runtime.d.ts +1 -0
- package/lib/types/schema/animation-schema.d.ts +41 -41
- package/lib/types/schema/assets.d.ts +54 -54
- package/lib/types/schema/component-meta.d.ts +43 -35
- package/lib/types/schema/data-sources.d.ts +3 -3
- package/lib/types/schema/deployment.d.ts +2 -2
- package/lib/types/schema/pages.d.ts +8 -6
- package/lib/types/schema/prop-meta.d.ts +34 -26
- package/lib/types/schema/props.d.ts +49 -49
- package/lib/types/schema/styles.d.ts +50 -50
- package/lib/types/schema/webstudio.d.ts +94 -94
- package/lib/types/scope.d.ts +3 -1
- package/package.json +18 -10
|
@@ -637,12 +637,10 @@ export declare const styleDecl: z.ZodType<StyleDecl>;
|
|
|
637
637
|
export type StyleDeclKey = string;
|
|
638
638
|
export declare const getStyleDeclKey: (styleDecl: Omit<StyleDecl, "value">) => StyleDeclKey;
|
|
639
639
|
export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
640
|
+
styleSourceId: string;
|
|
641
|
+
breakpointId: string;
|
|
642
|
+
state?: string | undefined;
|
|
640
643
|
value: import("@webstudio-is/css-engine").ColorValue | {
|
|
641
|
-
type: "function";
|
|
642
|
-
name: string;
|
|
643
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
644
|
-
hidden?: boolean;
|
|
645
|
-
} | {
|
|
646
644
|
type: "image";
|
|
647
645
|
value: {
|
|
648
646
|
type: "asset";
|
|
@@ -700,11 +698,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
700
698
|
} | {
|
|
701
699
|
type: "tuple";
|
|
702
700
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
703
|
-
type: "function";
|
|
704
|
-
name: string;
|
|
705
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
706
|
-
hidden?: boolean;
|
|
707
|
-
} | {
|
|
708
701
|
type: "image";
|
|
709
702
|
value: {
|
|
710
703
|
type: "asset";
|
|
@@ -759,10 +752,16 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
759
752
|
hidden?: boolean | undefined;
|
|
760
753
|
} | undefined;
|
|
761
754
|
hidden?: boolean | undefined;
|
|
755
|
+
} | {
|
|
756
|
+
type: "function";
|
|
757
|
+
name: string;
|
|
758
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
759
|
+
hidden?: boolean;
|
|
762
760
|
})[];
|
|
763
761
|
hidden?: boolean | undefined;
|
|
764
762
|
} | {
|
|
765
763
|
type: "shadow";
|
|
764
|
+
hidden?: boolean | undefined;
|
|
766
765
|
position: "inset" | "outset";
|
|
767
766
|
offsetX: {
|
|
768
767
|
type: "unit";
|
|
@@ -826,7 +825,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
826
825
|
} | undefined;
|
|
827
826
|
hidden?: boolean | undefined;
|
|
828
827
|
};
|
|
829
|
-
hidden?: boolean | undefined;
|
|
830
828
|
blur?: {
|
|
831
829
|
type: "unit";
|
|
832
830
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -933,11 +931,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
933
931
|
} | {
|
|
934
932
|
type: "layers";
|
|
935
933
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
936
|
-
type: "function";
|
|
937
|
-
name: string;
|
|
938
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
939
|
-
hidden?: boolean;
|
|
940
|
-
} | {
|
|
941
934
|
type: "image";
|
|
942
935
|
value: {
|
|
943
936
|
type: "asset";
|
|
@@ -995,11 +988,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
995
988
|
} | {
|
|
996
989
|
type: "tuple";
|
|
997
990
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
998
|
-
type: "function";
|
|
999
|
-
name: string;
|
|
1000
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1001
|
-
hidden?: boolean;
|
|
1002
|
-
} | {
|
|
1003
991
|
type: "image";
|
|
1004
992
|
value: {
|
|
1005
993
|
type: "asset";
|
|
@@ -1054,10 +1042,16 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1054
1042
|
hidden?: boolean | undefined;
|
|
1055
1043
|
} | undefined;
|
|
1056
1044
|
hidden?: boolean | undefined;
|
|
1045
|
+
} | {
|
|
1046
|
+
type: "function";
|
|
1047
|
+
name: string;
|
|
1048
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1049
|
+
hidden?: boolean;
|
|
1057
1050
|
})[];
|
|
1058
1051
|
hidden?: boolean | undefined;
|
|
1059
1052
|
} | {
|
|
1060
1053
|
type: "shadow";
|
|
1054
|
+
hidden?: boolean | undefined;
|
|
1061
1055
|
position: "inset" | "outset";
|
|
1062
1056
|
offsetX: {
|
|
1063
1057
|
type: "unit";
|
|
@@ -1121,7 +1115,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1121
1115
|
} | undefined;
|
|
1122
1116
|
hidden?: boolean | undefined;
|
|
1123
1117
|
};
|
|
1124
|
-
hidden?: boolean | undefined;
|
|
1125
1118
|
blur?: {
|
|
1126
1119
|
type: "unit";
|
|
1127
1120
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -1225,6 +1218,11 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1225
1218
|
type: "invalid";
|
|
1226
1219
|
value: string;
|
|
1227
1220
|
hidden?: boolean | undefined;
|
|
1221
|
+
} | {
|
|
1222
|
+
type: "function";
|
|
1223
|
+
name: string;
|
|
1224
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1225
|
+
hidden?: boolean;
|
|
1228
1226
|
})[];
|
|
1229
1227
|
hidden?: boolean | undefined;
|
|
1230
1228
|
} | {
|
|
@@ -1238,19 +1236,19 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1238
1236
|
type: "unset";
|
|
1239
1237
|
value: "";
|
|
1240
1238
|
hidden?: boolean | undefined;
|
|
1239
|
+
} | {
|
|
1240
|
+
type: "function";
|
|
1241
|
+
name: string;
|
|
1242
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1243
|
+
hidden?: boolean;
|
|
1241
1244
|
};
|
|
1242
|
-
breakpointId: string;
|
|
1243
|
-
styleSourceId: string;
|
|
1244
|
-
state?: string | undefined;
|
|
1245
1245
|
listed?: boolean | undefined;
|
|
1246
1246
|
property: StyleProperty;
|
|
1247
1247
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
1248
|
+
styleSourceId: string;
|
|
1249
|
+
breakpointId: string;
|
|
1250
|
+
state?: string | undefined;
|
|
1248
1251
|
value: import("@webstudio-is/css-engine").ColorValue | {
|
|
1249
|
-
type: "function";
|
|
1250
|
-
name: string;
|
|
1251
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1252
|
-
hidden?: boolean;
|
|
1253
|
-
} | {
|
|
1254
1252
|
type: "image";
|
|
1255
1253
|
value: {
|
|
1256
1254
|
type: "asset";
|
|
@@ -1308,11 +1306,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1308
1306
|
} | {
|
|
1309
1307
|
type: "tuple";
|
|
1310
1308
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
1311
|
-
type: "function";
|
|
1312
|
-
name: string;
|
|
1313
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1314
|
-
hidden?: boolean;
|
|
1315
|
-
} | {
|
|
1316
1309
|
type: "image";
|
|
1317
1310
|
value: {
|
|
1318
1311
|
type: "asset";
|
|
@@ -1367,10 +1360,16 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1367
1360
|
hidden?: boolean | undefined;
|
|
1368
1361
|
} | undefined;
|
|
1369
1362
|
hidden?: boolean | undefined;
|
|
1363
|
+
} | {
|
|
1364
|
+
type: "function";
|
|
1365
|
+
name: string;
|
|
1366
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1367
|
+
hidden?: boolean;
|
|
1370
1368
|
})[];
|
|
1371
1369
|
hidden?: boolean | undefined;
|
|
1372
1370
|
} | {
|
|
1373
1371
|
type: "shadow";
|
|
1372
|
+
hidden?: boolean | undefined;
|
|
1374
1373
|
position: "inset" | "outset";
|
|
1375
1374
|
offsetX: {
|
|
1376
1375
|
type: "unit";
|
|
@@ -1434,7 +1433,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1434
1433
|
} | undefined;
|
|
1435
1434
|
hidden?: boolean | undefined;
|
|
1436
1435
|
};
|
|
1437
|
-
hidden?: boolean | undefined;
|
|
1438
1436
|
blur?: {
|
|
1439
1437
|
type: "unit";
|
|
1440
1438
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -1541,11 +1539,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1541
1539
|
} | {
|
|
1542
1540
|
type: "layers";
|
|
1543
1541
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
1544
|
-
type: "function";
|
|
1545
|
-
name: string;
|
|
1546
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1547
|
-
hidden?: boolean;
|
|
1548
|
-
} | {
|
|
1549
1542
|
type: "image";
|
|
1550
1543
|
value: {
|
|
1551
1544
|
type: "asset";
|
|
@@ -1603,11 +1596,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1603
1596
|
} | {
|
|
1604
1597
|
type: "tuple";
|
|
1605
1598
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
1606
|
-
type: "function";
|
|
1607
|
-
name: string;
|
|
1608
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1609
|
-
hidden?: boolean;
|
|
1610
|
-
} | {
|
|
1611
1599
|
type: "image";
|
|
1612
1600
|
value: {
|
|
1613
1601
|
type: "asset";
|
|
@@ -1662,10 +1650,16 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1662
1650
|
hidden?: boolean | undefined;
|
|
1663
1651
|
} | undefined;
|
|
1664
1652
|
hidden?: boolean | undefined;
|
|
1653
|
+
} | {
|
|
1654
|
+
type: "function";
|
|
1655
|
+
name: string;
|
|
1656
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1657
|
+
hidden?: boolean;
|
|
1665
1658
|
})[];
|
|
1666
1659
|
hidden?: boolean | undefined;
|
|
1667
1660
|
} | {
|
|
1668
1661
|
type: "shadow";
|
|
1662
|
+
hidden?: boolean | undefined;
|
|
1669
1663
|
position: "inset" | "outset";
|
|
1670
1664
|
offsetX: {
|
|
1671
1665
|
type: "unit";
|
|
@@ -1729,7 +1723,6 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1729
1723
|
} | undefined;
|
|
1730
1724
|
hidden?: boolean | undefined;
|
|
1731
1725
|
};
|
|
1732
|
-
hidden?: boolean | undefined;
|
|
1733
1726
|
blur?: {
|
|
1734
1727
|
type: "unit";
|
|
1735
1728
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -1833,6 +1826,11 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1833
1826
|
type: "invalid";
|
|
1834
1827
|
value: string;
|
|
1835
1828
|
hidden?: boolean | undefined;
|
|
1829
|
+
} | {
|
|
1830
|
+
type: "function";
|
|
1831
|
+
name: string;
|
|
1832
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1833
|
+
hidden?: boolean;
|
|
1836
1834
|
})[];
|
|
1837
1835
|
hidden?: boolean | undefined;
|
|
1838
1836
|
} | {
|
|
@@ -1846,10 +1844,12 @@ export declare const styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
1846
1844
|
type: "unset";
|
|
1847
1845
|
value: "";
|
|
1848
1846
|
hidden?: boolean | undefined;
|
|
1847
|
+
} | {
|
|
1848
|
+
type: "function";
|
|
1849
|
+
name: string;
|
|
1850
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1851
|
+
hidden?: boolean;
|
|
1849
1852
|
};
|
|
1850
|
-
breakpointId: string;
|
|
1851
|
-
styleSourceId: string;
|
|
1852
|
-
state?: string | undefined;
|
|
1853
1853
|
listed?: boolean | undefined;
|
|
1854
1854
|
property: StyleProperty;
|
|
1855
1855
|
}, unknown>>>;
|