@safe-ugc-ui/schema 0.4.0 → 0.5.1
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/ugc-card.schema.json +116 -0
- package/package.json +2 -2
|
@@ -437,6 +437,24 @@
|
|
|
437
437
|
}
|
|
438
438
|
]
|
|
439
439
|
},
|
|
440
|
+
"fontFamily": {
|
|
441
|
+
"anyOf": [
|
|
442
|
+
{
|
|
443
|
+
"type": "string",
|
|
444
|
+
"enum": [
|
|
445
|
+
"sans",
|
|
446
|
+
"serif",
|
|
447
|
+
"mono",
|
|
448
|
+
"rounded",
|
|
449
|
+
"display",
|
|
450
|
+
"handwriting"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
},
|
|
440
458
|
"fontSize": {
|
|
441
459
|
"anyOf": [
|
|
442
460
|
{
|
|
@@ -698,6 +716,37 @@
|
|
|
698
716
|
"stops"
|
|
699
717
|
],
|
|
700
718
|
"additionalProperties": false
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"type": "object",
|
|
722
|
+
"properties": {
|
|
723
|
+
"type": {
|
|
724
|
+
"type": "string",
|
|
725
|
+
"const": "repeating-linear"
|
|
726
|
+
},
|
|
727
|
+
"direction": {
|
|
728
|
+
"anyOf": [
|
|
729
|
+
{
|
|
730
|
+
"type": "string"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
734
|
+
}
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
"stops": {
|
|
738
|
+
"type": "array",
|
|
739
|
+
"items": {
|
|
740
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/backgroundGradient/anyOf/0/properties/stops/items"
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"required": [
|
|
745
|
+
"type",
|
|
746
|
+
"direction",
|
|
747
|
+
"stops"
|
|
748
|
+
],
|
|
749
|
+
"additionalProperties": false
|
|
701
750
|
}
|
|
702
751
|
]
|
|
703
752
|
},
|
|
@@ -772,6 +821,67 @@
|
|
|
772
821
|
}
|
|
773
822
|
]
|
|
774
823
|
},
|
|
824
|
+
"textShadow": {
|
|
825
|
+
"anyOf": [
|
|
826
|
+
{
|
|
827
|
+
"type": "object",
|
|
828
|
+
"properties": {
|
|
829
|
+
"offsetX": {
|
|
830
|
+
"anyOf": [
|
|
831
|
+
{
|
|
832
|
+
"type": "number"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
},
|
|
839
|
+
"offsetY": {
|
|
840
|
+
"anyOf": [
|
|
841
|
+
{
|
|
842
|
+
"type": "number"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
846
|
+
}
|
|
847
|
+
]
|
|
848
|
+
},
|
|
849
|
+
"blur": {
|
|
850
|
+
"anyOf": [
|
|
851
|
+
{
|
|
852
|
+
"type": "number"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
856
|
+
}
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
"color": {
|
|
860
|
+
"anyOf": [
|
|
861
|
+
{
|
|
862
|
+
"type": "string"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display/anyOf/1"
|
|
866
|
+
}
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"required": [
|
|
871
|
+
"offsetX",
|
|
872
|
+
"offsetY",
|
|
873
|
+
"color"
|
|
874
|
+
],
|
|
875
|
+
"additionalProperties": false
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"type": "array",
|
|
879
|
+
"items": {
|
|
880
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/textShadow/anyOf/0"
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
]
|
|
884
|
+
},
|
|
775
885
|
"border": {
|
|
776
886
|
"type": "object",
|
|
777
887
|
"properties": {
|
|
@@ -1074,6 +1184,9 @@
|
|
|
1074
1184
|
"borderRadiusBottomRight": {
|
|
1075
1185
|
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadiusBottomRight"
|
|
1076
1186
|
},
|
|
1187
|
+
"fontFamily": {
|
|
1188
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontFamily"
|
|
1189
|
+
},
|
|
1077
1190
|
"fontSize": {
|
|
1078
1191
|
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontSize"
|
|
1079
1192
|
},
|
|
@@ -1104,6 +1217,9 @@
|
|
|
1104
1217
|
"boxShadow": {
|
|
1105
1218
|
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/boxShadow"
|
|
1106
1219
|
},
|
|
1220
|
+
"textShadow": {
|
|
1221
|
+
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/textShadow"
|
|
1222
|
+
},
|
|
1107
1223
|
"border": {
|
|
1108
1224
|
"$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/border"
|
|
1109
1225
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@safe-ugc-ui/schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"zod-to-json-schema": "^3.24.0",
|
|
19
|
-
"@safe-ugc-ui/types": "0.
|
|
19
|
+
"@safe-ugc-ui/types": "0.5.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.0.0"
|