storyblok 3.33.3 → 3.34.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/dist/cli.mjs +151 -30
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -2827,27 +2827,65 @@ const getAssetJSONSchema = (title) => ({
|
|
|
2827
2827
|
$id: "#/asset",
|
|
2828
2828
|
title,
|
|
2829
2829
|
type: "object",
|
|
2830
|
-
required: ["id", "filename", "name"],
|
|
2830
|
+
required: ["id", "fieldtype", "filename", "name", "title", "focus", "alt"],
|
|
2831
2831
|
properties: {
|
|
2832
2832
|
alt: {
|
|
2833
|
-
type: "string"
|
|
2833
|
+
type: ["string", "null"]
|
|
2834
2834
|
},
|
|
2835
2835
|
copyright: {
|
|
2836
|
-
type: "string"
|
|
2836
|
+
type: ["string", "null"]
|
|
2837
|
+
},
|
|
2838
|
+
fieldtype: {
|
|
2839
|
+
type: "string",
|
|
2840
|
+
enum: ["asset"]
|
|
2837
2841
|
},
|
|
2838
2842
|
id: {
|
|
2839
2843
|
type: "number"
|
|
2840
2844
|
},
|
|
2841
2845
|
filename: {
|
|
2842
|
-
type: "string"
|
|
2846
|
+
type: ["string", "null"]
|
|
2843
2847
|
},
|
|
2844
2848
|
name: {
|
|
2845
2849
|
type: "string"
|
|
2846
2850
|
},
|
|
2847
2851
|
title: {
|
|
2848
|
-
type: "string"
|
|
2852
|
+
type: ["string", "null"]
|
|
2849
2853
|
},
|
|
2850
2854
|
focus: {
|
|
2855
|
+
type: ["string", "null"]
|
|
2856
|
+
},
|
|
2857
|
+
meta_data: {
|
|
2858
|
+
type: "object"
|
|
2859
|
+
},
|
|
2860
|
+
source: {
|
|
2861
|
+
type: ["string", "null"]
|
|
2862
|
+
},
|
|
2863
|
+
is_external_url: {
|
|
2864
|
+
type: "boolean"
|
|
2865
|
+
},
|
|
2866
|
+
is_private: {
|
|
2867
|
+
type: "boolean"
|
|
2868
|
+
},
|
|
2869
|
+
src: {
|
|
2870
|
+
type: "string"
|
|
2871
|
+
},
|
|
2872
|
+
updated_at: {
|
|
2873
|
+
type: "string"
|
|
2874
|
+
},
|
|
2875
|
+
// Cloudinary integration keys
|
|
2876
|
+
width: {
|
|
2877
|
+
type: ["number", "null"]
|
|
2878
|
+
},
|
|
2879
|
+
height: {
|
|
2880
|
+
type: ["number", "null"]
|
|
2881
|
+
},
|
|
2882
|
+
aspect_ratio: {
|
|
2883
|
+
type: ["number", "null"]
|
|
2884
|
+
},
|
|
2885
|
+
public_id: {
|
|
2886
|
+
type: ["string", "null"]
|
|
2887
|
+
},
|
|
2888
|
+
content_type: {
|
|
2851
2889
|
type: "string"
|
|
2852
2890
|
}
|
|
2853
2891
|
}
|
|
@@ -2858,53 +2896,105 @@ const getMultiassetJSONSchema = (title) => ({
|
|
|
2858
2896
|
type: "array",
|
|
2859
2897
|
items: {
|
|
2860
2898
|
type: "object",
|
|
2861
|
-
required: ["id", "filename", "name"],
|
|
2899
|
+
required: ["id", "fieldtype", "filename", "name", "title", "focus", "alt"],
|
|
2862
2900
|
properties: {
|
|
2863
2901
|
alt: {
|
|
2864
|
-
type: "string"
|
|
2902
|
+
type: ["string", "null"]
|
|
2865
2903
|
},
|
|
2866
2904
|
copyright: {
|
|
2867
|
-
type: "string"
|
|
2905
|
+
type: ["string", "null"]
|
|
2906
|
+
},
|
|
2907
|
+
fieldtype: {
|
|
2908
|
+
type: "string",
|
|
2909
|
+
enum: ["asset"]
|
|
2868
2910
|
},
|
|
2869
2911
|
id: {
|
|
2870
2912
|
type: "number"
|
|
2871
2913
|
},
|
|
2872
2914
|
filename: {
|
|
2873
|
-
type: "string"
|
|
2915
|
+
type: ["string", "null"]
|
|
2874
2916
|
},
|
|
2875
2917
|
name: {
|
|
2876
2918
|
type: "string"
|
|
2877
2919
|
},
|
|
2878
2920
|
title: {
|
|
2921
|
+
type: ["string", "null"]
|
|
2922
|
+
},
|
|
2923
|
+
focus: {
|
|
2924
|
+
type: ["string", "null"]
|
|
2925
|
+
},
|
|
2926
|
+
meta_data: {
|
|
2927
|
+
type: "object"
|
|
2928
|
+
},
|
|
2929
|
+
source: {
|
|
2930
|
+
type: ["string", "null"]
|
|
2931
|
+
},
|
|
2932
|
+
is_external_url: {
|
|
2933
|
+
type: "boolean"
|
|
2934
|
+
},
|
|
2935
|
+
is_private: {
|
|
2936
|
+
type: "boolean"
|
|
2937
|
+
},
|
|
2938
|
+
src: {
|
|
2939
|
+
type: "string"
|
|
2940
|
+
},
|
|
2941
|
+
updated_at: {
|
|
2942
|
+
type: "string"
|
|
2943
|
+
},
|
|
2944
|
+
// Cloudinary integration keys
|
|
2945
|
+
width: {
|
|
2946
|
+
type: ["number", "null"]
|
|
2947
|
+
},
|
|
2948
|
+
height: {
|
|
2949
|
+
type: ["number", "null"]
|
|
2950
|
+
},
|
|
2951
|
+
aspect_ratio: {
|
|
2952
|
+
type: ["number", "null"]
|
|
2953
|
+
},
|
|
2954
|
+
public_id: {
|
|
2955
|
+
type: ["string", "null"]
|
|
2956
|
+
},
|
|
2957
|
+
content_type: {
|
|
2879
2958
|
type: "string"
|
|
2880
2959
|
}
|
|
2881
2960
|
}
|
|
2882
2961
|
}
|
|
2883
2962
|
});
|
|
2963
|
+
const multilinkSharedRequiredProps = ["fieldtype", "id", "url", "cached_url", "linktype"];
|
|
2884
2964
|
const getMultilinkJSONSchema = (title) => ({
|
|
2885
2965
|
$id: "#/multilink",
|
|
2886
2966
|
title,
|
|
2887
2967
|
oneOf: [
|
|
2888
2968
|
{
|
|
2889
2969
|
type: "object",
|
|
2970
|
+
required: multilinkSharedRequiredProps,
|
|
2890
2971
|
properties: {
|
|
2891
|
-
|
|
2972
|
+
// Shared props
|
|
2973
|
+
fieldtype: {
|
|
2974
|
+
type: "string",
|
|
2975
|
+
enum: ["multilink"]
|
|
2976
|
+
},
|
|
2977
|
+
id: { type: "string" },
|
|
2978
|
+
url: { type: "string" },
|
|
2979
|
+
cached_url: { type: "string" },
|
|
2980
|
+
target: { type: "string", enum: ["_blank", "_self"] },
|
|
2981
|
+
// Custom props
|
|
2982
|
+
anchor: {
|
|
2892
2983
|
type: "string"
|
|
2893
2984
|
},
|
|
2894
|
-
|
|
2985
|
+
rel: {
|
|
2895
2986
|
type: "string"
|
|
2896
2987
|
},
|
|
2897
|
-
|
|
2988
|
+
title: {
|
|
2989
|
+
type: "string"
|
|
2990
|
+
},
|
|
2991
|
+
prep: {
|
|
2898
2992
|
type: "string"
|
|
2899
2993
|
},
|
|
2900
2994
|
linktype: {
|
|
2901
2995
|
type: "string",
|
|
2902
2996
|
enum: ["story"]
|
|
2903
2997
|
},
|
|
2904
|
-
target: {
|
|
2905
|
-
type: "string",
|
|
2906
|
-
enum: ["_self", "_blank"]
|
|
2907
|
-
},
|
|
2908
2998
|
story: {
|
|
2909
2999
|
type: "object",
|
|
2910
3000
|
required: ["name", "id", "uuid", "slug", "full_slug"],
|
|
@@ -2990,39 +3080,70 @@ const getMultilinkJSONSchema = (title) => ({
|
|
|
2990
3080
|
},
|
|
2991
3081
|
{
|
|
2992
3082
|
type: "object",
|
|
3083
|
+
required: multilinkSharedRequiredProps,
|
|
2993
3084
|
properties: {
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
type: "string"
|
|
2999
|
-
},
|
|
3000
|
-
anchor: {
|
|
3001
|
-
type: "string"
|
|
3085
|
+
// Shared props
|
|
3086
|
+
fieldtype: {
|
|
3087
|
+
type: "string",
|
|
3088
|
+
enum: ["multilink"]
|
|
3002
3089
|
},
|
|
3090
|
+
id: { type: "string" },
|
|
3091
|
+
url: { type: "string" },
|
|
3092
|
+
cached_url: { type: "string" },
|
|
3093
|
+
target: { type: "string", enum: ["_blank", "_self"] },
|
|
3094
|
+
// Custom props
|
|
3003
3095
|
linktype: {
|
|
3004
3096
|
type: "string",
|
|
3005
|
-
enum: ["
|
|
3097
|
+
enum: ["url"]
|
|
3006
3098
|
},
|
|
3007
|
-
|
|
3008
|
-
type: "string"
|
|
3009
|
-
|
|
3099
|
+
rel: {
|
|
3100
|
+
type: "string"
|
|
3101
|
+
},
|
|
3102
|
+
title: {
|
|
3103
|
+
type: "string"
|
|
3010
3104
|
}
|
|
3011
3105
|
}
|
|
3012
3106
|
},
|
|
3013
3107
|
{
|
|
3014
3108
|
type: "object",
|
|
3109
|
+
required: multilinkSharedRequiredProps,
|
|
3015
3110
|
properties: {
|
|
3111
|
+
// Shared props
|
|
3112
|
+
fieldtype: {
|
|
3113
|
+
type: "string",
|
|
3114
|
+
enum: ["multilink"]
|
|
3115
|
+
},
|
|
3116
|
+
id: { type: "string" },
|
|
3117
|
+
url: { type: "string" },
|
|
3118
|
+
cached_url: { type: "string" },
|
|
3119
|
+
target: { type: "string", enum: ["_blank", "_self"] },
|
|
3120
|
+
// Custom props
|
|
3016
3121
|
email: {
|
|
3017
3122
|
type: "string"
|
|
3018
3123
|
},
|
|
3019
3124
|
linktype: {
|
|
3020
3125
|
type: "string",
|
|
3021
3126
|
enum: ["email"]
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
type: "object",
|
|
3132
|
+
required: multilinkSharedRequiredProps,
|
|
3133
|
+
properties: {
|
|
3134
|
+
// Shared props
|
|
3135
|
+
fieldtype: {
|
|
3136
|
+
type: "string",
|
|
3137
|
+
enum: ["multilink"]
|
|
3022
3138
|
},
|
|
3023
|
-
|
|
3139
|
+
id: { type: "string" },
|
|
3140
|
+
url: { type: "string" },
|
|
3141
|
+
cached_url: { type: "string" },
|
|
3142
|
+
target: { type: "string", enum: ["_blank", "_self"] },
|
|
3143
|
+
// Custom props
|
|
3144
|
+
linktype: {
|
|
3024
3145
|
type: "string",
|
|
3025
|
-
enum: ["
|
|
3146
|
+
enum: ["asset"]
|
|
3026
3147
|
}
|
|
3027
3148
|
}
|
|
3028
3149
|
}
|