@encatch/schema 1.2.0-beta.13 → 1.2.0-beta.15
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/esm/index.js +28 -3
- package/dist/esm/index.js.map +3 -3
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +50 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +50 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +100 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/package.json +8 -18
- package/dist/types/schemas/fields/translations-example.d.ts +0 -10
|
@@ -5251,6 +5251,56 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
5251
5251
|
}>>;
|
|
5252
5252
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
5253
5253
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
5254
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
5255
|
+
href: z.ZodObject<{
|
|
5256
|
+
light: z.ZodString;
|
|
5257
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
5258
|
+
}, z.core.$strip>;
|
|
5259
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
5260
|
+
"top-left": "top-left";
|
|
5261
|
+
"top-center": "top-center";
|
|
5262
|
+
"top-right": "top-right";
|
|
5263
|
+
}>>;
|
|
5264
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
5265
|
+
small: "small";
|
|
5266
|
+
medium: "medium";
|
|
5267
|
+
large: "large";
|
|
5268
|
+
}>>;
|
|
5269
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
5270
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
5271
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
5272
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
5273
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
5274
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
5275
|
+
small: "small";
|
|
5276
|
+
medium: "medium";
|
|
5277
|
+
large: "large";
|
|
5278
|
+
}>>;
|
|
5279
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
5280
|
+
"top-left": "top-left";
|
|
5281
|
+
"top-center": "top-center";
|
|
5282
|
+
"top-right": "top-right";
|
|
5283
|
+
}>>;
|
|
5284
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5285
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
5286
|
+
}, z.core.$strip>>;
|
|
5287
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
5288
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
5289
|
+
small: "small";
|
|
5290
|
+
medium: "medium";
|
|
5291
|
+
large: "large";
|
|
5292
|
+
}>>;
|
|
5293
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
5294
|
+
"top-left": "top-left";
|
|
5295
|
+
"top-center": "top-center";
|
|
5296
|
+
"top-right": "top-right";
|
|
5297
|
+
}>>;
|
|
5298
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5299
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
5300
|
+
}, z.core.$strip>>;
|
|
5301
|
+
}, z.core.$strip>>;
|
|
5302
|
+
}, z.core.$strip>>;
|
|
5303
|
+
}, z.core.$strip>>;
|
|
5254
5304
|
}, z.core.$strip>;
|
|
5255
5305
|
selectedPosition: z.ZodEnum<{
|
|
5256
5306
|
"top-left": "top-left";
|
|
@@ -2773,6 +2773,56 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2773
2773
|
}>>;
|
|
2774
2774
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
2775
2775
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
2776
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
2777
|
+
href: z.ZodObject<{
|
|
2778
|
+
light: z.ZodString;
|
|
2779
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
2780
|
+
}, z.core.$strip>;
|
|
2781
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
2782
|
+
"top-left": "top-left";
|
|
2783
|
+
"top-center": "top-center";
|
|
2784
|
+
"top-right": "top-right";
|
|
2785
|
+
}>>;
|
|
2786
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
2787
|
+
small: "small";
|
|
2788
|
+
medium: "medium";
|
|
2789
|
+
large: "large";
|
|
2790
|
+
}>>;
|
|
2791
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
2792
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
2793
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
2794
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
2795
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
2796
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2797
|
+
small: "small";
|
|
2798
|
+
medium: "medium";
|
|
2799
|
+
large: "large";
|
|
2800
|
+
}>>;
|
|
2801
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2802
|
+
"top-left": "top-left";
|
|
2803
|
+
"top-center": "top-center";
|
|
2804
|
+
"top-right": "top-right";
|
|
2805
|
+
}>>;
|
|
2806
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2807
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
2808
|
+
}, z.core.$strip>>;
|
|
2809
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
2810
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2811
|
+
small: "small";
|
|
2812
|
+
medium: "medium";
|
|
2813
|
+
large: "large";
|
|
2814
|
+
}>>;
|
|
2815
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2816
|
+
"top-left": "top-left";
|
|
2817
|
+
"top-center": "top-center";
|
|
2818
|
+
"top-right": "top-right";
|
|
2819
|
+
}>>;
|
|
2820
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2821
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
2822
|
+
}, z.core.$strip>>;
|
|
2823
|
+
}, z.core.$strip>>;
|
|
2824
|
+
}, z.core.$strip>>;
|
|
2825
|
+
}, z.core.$strip>>;
|
|
2776
2826
|
}, z.core.$strip>;
|
|
2777
2827
|
selectedPosition: z.ZodEnum<{
|
|
2778
2828
|
"top-left": "top-left";
|
|
@@ -85,6 +85,56 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
85
85
|
}>>;
|
|
86
86
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
88
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
href: z.ZodObject<{
|
|
90
|
+
light: z.ZodString;
|
|
91
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
94
|
+
"top-left": "top-left";
|
|
95
|
+
"top-center": "top-center";
|
|
96
|
+
"top-right": "top-right";
|
|
97
|
+
}>>;
|
|
98
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
small: "small";
|
|
100
|
+
medium: "medium";
|
|
101
|
+
large: "large";
|
|
102
|
+
}>>;
|
|
103
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
104
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
105
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
small: "small";
|
|
110
|
+
medium: "medium";
|
|
111
|
+
large: "large";
|
|
112
|
+
}>>;
|
|
113
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
"top-left": "top-left";
|
|
115
|
+
"top-center": "top-center";
|
|
116
|
+
"top-right": "top-right";
|
|
117
|
+
}>>;
|
|
118
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
small: "small";
|
|
124
|
+
medium: "medium";
|
|
125
|
+
large: "large";
|
|
126
|
+
}>>;
|
|
127
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
"top-left": "top-left";
|
|
129
|
+
"top-center": "top-center";
|
|
130
|
+
"top-right": "top-right";
|
|
131
|
+
}>>;
|
|
132
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
88
138
|
}, z.core.$strip>;
|
|
89
139
|
selectedPosition: z.ZodEnum<{
|
|
90
140
|
"top-left": "top-left";
|
|
@@ -4085,6 +4135,56 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
4085
4135
|
}>>;
|
|
4086
4136
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
4087
4137
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
4139
|
+
href: z.ZodObject<{
|
|
4140
|
+
light: z.ZodString;
|
|
4141
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
4142
|
+
}, z.core.$strip>;
|
|
4143
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
4144
|
+
"top-left": "top-left";
|
|
4145
|
+
"top-center": "top-center";
|
|
4146
|
+
"top-right": "top-right";
|
|
4147
|
+
}>>;
|
|
4148
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
4149
|
+
small: "small";
|
|
4150
|
+
medium: "medium";
|
|
4151
|
+
large: "large";
|
|
4152
|
+
}>>;
|
|
4153
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
4154
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
4156
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
4157
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
4158
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
4159
|
+
small: "small";
|
|
4160
|
+
medium: "medium";
|
|
4161
|
+
large: "large";
|
|
4162
|
+
}>>;
|
|
4163
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
4164
|
+
"top-left": "top-left";
|
|
4165
|
+
"top-center": "top-center";
|
|
4166
|
+
"top-right": "top-right";
|
|
4167
|
+
}>>;
|
|
4168
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
4169
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
4170
|
+
}, z.core.$strip>>;
|
|
4171
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
4172
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
4173
|
+
small: "small";
|
|
4174
|
+
medium: "medium";
|
|
4175
|
+
large: "large";
|
|
4176
|
+
}>>;
|
|
4177
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
4178
|
+
"top-left": "top-left";
|
|
4179
|
+
"top-center": "top-center";
|
|
4180
|
+
"top-right": "top-right";
|
|
4181
|
+
}>>;
|
|
4182
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
4183
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
4184
|
+
}, z.core.$strip>>;
|
|
4185
|
+
}, z.core.$strip>>;
|
|
4186
|
+
}, z.core.$strip>>;
|
|
4187
|
+
}, z.core.$strip>>;
|
|
4088
4188
|
}, z.core.$strip>;
|
|
4089
4189
|
selectedPosition: z.ZodEnum<{
|
|
4090
4190
|
"top-left": "top-left";
|
|
@@ -49,6 +49,90 @@ export declare const PreviousButtonModes: {
|
|
|
49
49
|
readonly ALWAYS: "always";
|
|
50
50
|
readonly AUTO: "auto";
|
|
51
51
|
};
|
|
52
|
+
export declare const logoPlacementSchema: z.ZodEnum<{
|
|
53
|
+
"top-left": "top-left";
|
|
54
|
+
"top-center": "top-center";
|
|
55
|
+
"top-right": "top-right";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const LogoPlacements: {
|
|
58
|
+
readonly TOP_LEFT: "top-left";
|
|
59
|
+
readonly TOP_CENTER: "top-center";
|
|
60
|
+
readonly TOP_RIGHT: "top-right";
|
|
61
|
+
};
|
|
62
|
+
export declare const logoSizeSchema: z.ZodEnum<{
|
|
63
|
+
small: "small";
|
|
64
|
+
medium: "medium";
|
|
65
|
+
large: "large";
|
|
66
|
+
}>;
|
|
67
|
+
export declare const LogoSizes: {
|
|
68
|
+
readonly SMALL: "small";
|
|
69
|
+
readonly MEDIUM: "medium";
|
|
70
|
+
readonly LARGE: "large";
|
|
71
|
+
};
|
|
72
|
+
export declare const logoSurfaceOverrideSchema: z.ZodObject<{
|
|
73
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
small: "small";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
large: "large";
|
|
77
|
+
}>>;
|
|
78
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
"top-left": "top-left";
|
|
80
|
+
"top-center": "top-center";
|
|
81
|
+
"top-right": "top-right";
|
|
82
|
+
}>>;
|
|
83
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const logoSchema: z.ZodObject<{
|
|
87
|
+
href: z.ZodObject<{
|
|
88
|
+
light: z.ZodString;
|
|
89
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
92
|
+
"top-left": "top-left";
|
|
93
|
+
"top-center": "top-center";
|
|
94
|
+
"top-right": "top-right";
|
|
95
|
+
}>>;
|
|
96
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
small: "small";
|
|
98
|
+
medium: "medium";
|
|
99
|
+
large: "large";
|
|
100
|
+
}>>;
|
|
101
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
103
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
small: "small";
|
|
108
|
+
medium: "medium";
|
|
109
|
+
large: "large";
|
|
110
|
+
}>>;
|
|
111
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
"top-left": "top-left";
|
|
113
|
+
"top-center": "top-center";
|
|
114
|
+
"top-right": "top-right";
|
|
115
|
+
}>>;
|
|
116
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
small: "small";
|
|
122
|
+
medium: "medium";
|
|
123
|
+
large: "large";
|
|
124
|
+
}>>;
|
|
125
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
"top-left": "top-left";
|
|
127
|
+
"top-center": "top-center";
|
|
128
|
+
"top-right": "top-right";
|
|
129
|
+
}>>;
|
|
130
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
52
136
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
53
137
|
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
54
138
|
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -71,6 +155,56 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
71
155
|
}>>;
|
|
72
156
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
73
157
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
158
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
href: z.ZodObject<{
|
|
160
|
+
light: z.ZodString;
|
|
161
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
164
|
+
"top-left": "top-left";
|
|
165
|
+
"top-center": "top-center";
|
|
166
|
+
"top-right": "top-right";
|
|
167
|
+
}>>;
|
|
168
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
small: "small";
|
|
170
|
+
medium: "medium";
|
|
171
|
+
large: "large";
|
|
172
|
+
}>>;
|
|
173
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
174
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
175
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
small: "small";
|
|
180
|
+
medium: "medium";
|
|
181
|
+
large: "large";
|
|
182
|
+
}>>;
|
|
183
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
"top-left": "top-left";
|
|
185
|
+
"top-center": "top-center";
|
|
186
|
+
"top-right": "top-right";
|
|
187
|
+
}>>;
|
|
188
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
small: "small";
|
|
194
|
+
medium: "medium";
|
|
195
|
+
large: "large";
|
|
196
|
+
}>>;
|
|
197
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
"top-left": "top-left";
|
|
199
|
+
"top-center": "top-center";
|
|
200
|
+
"top-right": "top-right";
|
|
201
|
+
}>>;
|
|
202
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
74
208
|
}, z.core.$strip>;
|
|
75
209
|
export declare const themeColorsSchema: z.ZodObject<{
|
|
76
210
|
theme: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +248,56 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
114
248
|
}>>;
|
|
115
249
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
116
250
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
251
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
href: z.ZodObject<{
|
|
253
|
+
light: z.ZodString;
|
|
254
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
257
|
+
"top-left": "top-left";
|
|
258
|
+
"top-center": "top-center";
|
|
259
|
+
"top-right": "top-right";
|
|
260
|
+
}>>;
|
|
261
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
262
|
+
small: "small";
|
|
263
|
+
medium: "medium";
|
|
264
|
+
large: "large";
|
|
265
|
+
}>>;
|
|
266
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
267
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
268
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
small: "small";
|
|
273
|
+
medium: "medium";
|
|
274
|
+
large: "large";
|
|
275
|
+
}>>;
|
|
276
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
"top-left": "top-left";
|
|
278
|
+
"top-center": "top-center";
|
|
279
|
+
"top-right": "top-right";
|
|
280
|
+
}>>;
|
|
281
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
small: "small";
|
|
287
|
+
medium: "medium";
|
|
288
|
+
large: "large";
|
|
289
|
+
}>>;
|
|
290
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
"top-left": "top-left";
|
|
292
|
+
"top-center": "top-center";
|
|
293
|
+
"top-right": "top-right";
|
|
294
|
+
}>>;
|
|
295
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
117
301
|
}, z.core.$strip>;
|
|
118
302
|
selectedPosition: z.ZodEnum<{
|
|
119
303
|
"top-left": "top-left";
|
|
@@ -142,6 +326,10 @@ export type Position = z.infer<typeof positionSchema>;
|
|
|
142
326
|
export type ThemeMode = z.infer<typeof themeModeSchema>;
|
|
143
327
|
export type ShareableMode = z.infer<typeof shareableModeSchema>;
|
|
144
328
|
export type PreviousButtonMode = z.infer<typeof previousButtonModeSchema>;
|
|
329
|
+
export type LogoPlacement = z.infer<typeof logoPlacementSchema>;
|
|
330
|
+
export type LogoSize = z.infer<typeof logoSizeSchema>;
|
|
331
|
+
export type LogoSurfaceOverride = z.infer<typeof logoSurfaceOverrideSchema>;
|
|
332
|
+
export type Logo = z.infer<typeof logoSchema>;
|
|
145
333
|
export type FeatureSettings = z.infer<typeof featureSettingsSchema>;
|
|
146
334
|
export type ThemeColors = z.infer<typeof themeColorsSchema>;
|
|
147
335
|
export type Themes = z.infer<typeof themesSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/schema",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.15",
|
|
4
4
|
"description": "TypeScript schema definitions using Zod for validation and type inference of encatch product",
|
|
5
5
|
"homepage": "https://encatch.com",
|
|
6
6
|
"type": "module",
|
|
@@ -28,20 +28,18 @@
|
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "AGPL-3.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@types/node": "^
|
|
32
|
-
"typescript": "^
|
|
33
|
-
"uuid": "^
|
|
31
|
+
"@types/node": "^25.7.0",
|
|
32
|
+
"typescript": "^6.0.3",
|
|
33
|
+
"uuid": "^14.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"zod": ">=3.0.0 <6.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"tsx": "^4.20.5",
|
|
44
|
-
"vitest": "^3.2.4"
|
|
39
|
+
"@vitest/ui": "^4.1.6",
|
|
40
|
+
"esbuild": "^0.28.0",
|
|
41
|
+
"tsx": "^4.21.0",
|
|
42
|
+
"vitest": "^4.1.6"
|
|
45
43
|
},
|
|
46
44
|
"scripts": {
|
|
47
45
|
"build": "pnpm run build:types && pnpm run build:bundle",
|
|
@@ -52,14 +50,6 @@
|
|
|
52
50
|
"clean": "rm -rf dist",
|
|
53
51
|
"generate-json-schemas": "tsx generate-json-schemas.ts",
|
|
54
52
|
"publish:clean": "node scripts/publish-clean.js --generate && cp package.json package.json.backup && mv package.clean.json package.json && npm publish && node scripts/publish-clean.js --restore && node scripts/publish-clean.js --cleanup",
|
|
55
|
-
"release": "release-it --ci",
|
|
56
|
-
"release:minor": "release-it minor --ci",
|
|
57
|
-
"release:major": "release-it major --ci",
|
|
58
|
-
"release:patch": "release-it patch --ci",
|
|
59
|
-
"release:pre": "release-it --preRelease=beta",
|
|
60
|
-
"release:beta": "release-it --preRelease=beta",
|
|
61
|
-
"release:alpha": "release-it --preRelease=alpha",
|
|
62
|
-
"release:rc": "release-it --preRelease=rc",
|
|
63
53
|
"test": "vitest",
|
|
64
54
|
"test:run": "vitest run",
|
|
65
55
|
"test:ui": "vitest --ui",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Translations } from './translations-schema';
|
|
2
|
-
import { Languages, LanguageField } from './other-screen-schema';
|
|
3
|
-
export declare const exampleTranslations: Translations;
|
|
4
|
-
export declare const availableLanguages: Languages;
|
|
5
|
-
export declare const translationProvider: import("./translations-schema").TranslationProvider;
|
|
6
|
-
export declare function getLanguageDisplayName(languageCode: string): string;
|
|
7
|
-
export declare function getSupportedLanguages(): LanguageField[];
|
|
8
|
-
export declare function demonstrateUsage(): void;
|
|
9
|
-
export type { Translations } from './translations-schema';
|
|
10
|
-
export type { Languages, LanguageField } from './other-screen-schema';
|