@datenlotse/jsonjoy-builder 0.4.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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +203 -0
  3. package/dist/components/SchemaEditor/AddFieldButton.js +312 -0
  4. package/dist/components/SchemaEditor/JsonSchemaEditor.js +166 -0
  5. package/dist/components/SchemaEditor/JsonSchemaVisualizer.js +96 -0
  6. package/dist/components/SchemaEditor/SchemaField.js +104 -0
  7. package/dist/components/SchemaEditor/SchemaFieldList.js +84 -0
  8. package/dist/components/SchemaEditor/SchemaPropertyEditor.js +249 -0
  9. package/dist/components/SchemaEditor/SchemaTypeSelector.js +55 -0
  10. package/dist/components/SchemaEditor/SchemaVisualEditor.js +77 -0
  11. package/dist/components/SchemaEditor/TypeDropdown.js +72 -0
  12. package/dist/components/SchemaEditor/TypeEditor.js +71 -0
  13. package/dist/components/SchemaEditor/types/ArrayEditor.js +173 -0
  14. package/dist/components/SchemaEditor/types/BooleanEditor.js +107 -0
  15. package/dist/components/SchemaEditor/types/NumberEditor.js +583 -0
  16. package/dist/components/SchemaEditor/types/ObjectEditor.js +90 -0
  17. package/dist/components/SchemaEditor/types/StringEditor.js +542 -0
  18. package/dist/components/features/JsonValidator.js +239 -0
  19. package/dist/components/features/SchemaInferencer.js +107 -0
  20. package/dist/components/ui/badge.js +25 -0
  21. package/dist/components/ui/button.js +41 -0
  22. package/dist/components/ui/dialog.js +73 -0
  23. package/dist/components/ui/input.js +11 -0
  24. package/dist/components/ui/label.js +13 -0
  25. package/dist/components/ui/select.js +90 -0
  26. package/dist/components/ui/switch.js +14 -0
  27. package/dist/components/ui/tabs.js +24 -0
  28. package/dist/components/ui/tooltip.js +15 -0
  29. package/dist/hooks/use-monaco-theme.js +197 -0
  30. package/dist/hooks/use-translation.js +14 -0
  31. package/dist/i18n/locales/de.js +143 -0
  32. package/dist/i18n/locales/en.js +143 -0
  33. package/dist/i18n/locales/es.js +143 -0
  34. package/dist/i18n/locales/fr.js +143 -0
  35. package/dist/i18n/locales/ru.js +143 -0
  36. package/dist/i18n/locales/uk.js +143 -0
  37. package/dist/i18n/locales/zh.js +143 -0
  38. package/dist/i18n/translation-context.js +4 -0
  39. package/dist/i18n/translation-keys.js +0 -0
  40. package/dist/index.css +3830 -0
  41. package/dist/index.d.ts +995 -0
  42. package/dist/index.js +10 -0
  43. package/dist/lib/schema-inference.js +266 -0
  44. package/dist/lib/schemaCompile.js +113 -0
  45. package/dist/lib/schemaEditor.js +167 -0
  46. package/dist/lib/utils.js +40 -0
  47. package/dist/types/jsonSchema.js +98 -0
  48. package/dist/types/validation.js +215 -0
  49. package/dist/utils/jsonValidator.js +162 -0
  50. package/package.json +112 -0
@@ -0,0 +1,995 @@
1
+ import { Context } from 'react';
2
+ import { FC } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { z } from 'zod';
5
+
6
+ /** @public */
7
+ export declare const baseSchema: z.ZodObject<{
8
+ $id: z.ZodOptional<z.ZodString>;
9
+ $schema: z.ZodOptional<z.ZodString>;
10
+ $ref: z.ZodOptional<z.ZodString>;
11
+ $anchor: z.ZodOptional<z.ZodString>;
12
+ $dynamicRef: z.ZodOptional<z.ZodString>;
13
+ $dynamicAnchor: z.ZodOptional<z.ZodString>;
14
+ $vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
15
+ $comment: z.ZodOptional<z.ZodString>;
16
+ title: z.ZodOptional<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ default: z.ZodOptional<z.ZodUnknown>;
19
+ deprecated: z.ZodOptional<z.ZodBoolean>;
20
+ readOnly: z.ZodOptional<z.ZodBoolean>;
21
+ writeOnly: z.ZodOptional<z.ZodBoolean>;
22
+ examples: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
23
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
24
+ string: "string";
25
+ number: "number";
26
+ boolean: "boolean";
27
+ object: "object";
28
+ integer: "integer";
29
+ array: "array";
30
+ null: "null";
31
+ }>, z.ZodArray<z.ZodEnum<{
32
+ string: "string";
33
+ number: "number";
34
+ boolean: "boolean";
35
+ object: "object";
36
+ integer: "integer";
37
+ array: "array";
38
+ null: "null";
39
+ }>>]>>;
40
+ minLength: z.ZodOptional<z.ZodNumber>;
41
+ maxLength: z.ZodOptional<z.ZodNumber>;
42
+ pattern: z.ZodOptional<z.ZodString>;
43
+ format: z.ZodOptional<z.ZodString>;
44
+ contentMediaType: z.ZodOptional<z.ZodString>;
45
+ contentEncoding: z.ZodOptional<z.ZodString>;
46
+ multipleOf: z.ZodOptional<z.ZodNumber>;
47
+ minimum: z.ZodOptional<z.ZodNumber>;
48
+ maximum: z.ZodOptional<z.ZodNumber>;
49
+ exclusiveMinimum: z.ZodOptional<z.ZodNumber>;
50
+ exclusiveMaximum: z.ZodOptional<z.ZodNumber>;
51
+ minItems: z.ZodOptional<z.ZodNumber>;
52
+ maxItems: z.ZodOptional<z.ZodNumber>;
53
+ uniqueItems: z.ZodOptional<z.ZodBoolean>;
54
+ minContains: z.ZodOptional<z.ZodNumber>;
55
+ maxContains: z.ZodOptional<z.ZodNumber>;
56
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ minProperties: z.ZodOptional<z.ZodNumber>;
58
+ maxProperties: z.ZodOptional<z.ZodNumber>;
59
+ dependentRequired: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
60
+ const: z.ZodOptional<z.ZodUnknown>;
61
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
62
+ }, z.core.$strip>;
63
+
64
+ export declare const de: Translation;
65
+
66
+ /** @public - Shape for $dependentEnum: enum of this property depends on sibling property value */
67
+ declare interface DependentEnumExtension {
68
+ property: string;
69
+ values: Record<string, unknown[]>;
70
+ }
71
+
72
+ export declare const en: Translation;
73
+
74
+ /** @public */
75
+ export declare type JSONSchema = boolean | (z.infer<typeof baseSchema> & {
76
+ $defs?: Record<string, JSONSchema>;
77
+ contentSchema?: JSONSchema;
78
+ items?: JSONSchema;
79
+ prefixItems?: JSONSchema[];
80
+ contains?: JSONSchema;
81
+ unevaluatedItems?: JSONSchema;
82
+ properties?: Record<string, JSONSchema>;
83
+ patternProperties?: Record<string, JSONSchema>;
84
+ additionalProperties?: JSONSchema | boolean;
85
+ propertyNames?: JSONSchema;
86
+ dependentSchemas?: Record<string, JSONSchema>;
87
+ unevaluatedProperties?: JSONSchema;
88
+ allOf?: JSONSchema[];
89
+ anyOf?: JSONSchema[];
90
+ oneOf?: JSONSchema[];
91
+ not?: JSONSchema;
92
+ if?: JSONSchema;
93
+ then?: JSONSchema;
94
+ else?: JSONSchema;
95
+ $propertyOrder?: string[];
96
+ $dependentEnum?: DependentEnumExtension;
97
+ });
98
+
99
+ /** @public */
100
+ export declare const JsonSchemaEditor: FC<JsonSchemaEditorProps>;
101
+
102
+ /** @public */
103
+ export declare interface JsonSchemaEditorProps {
104
+ schema?: JSONSchema;
105
+ readOnly: boolean;
106
+ setSchema?: (schema: JSONSchema) => void;
107
+ className?: string;
108
+ }
109
+
110
+ /** @public */
111
+ export declare const JsonSchemaVisualizer: FC<JsonSchemaVisualizerProps>;
112
+
113
+ /** @public */
114
+ export declare interface JsonSchemaVisualizerProps {
115
+ schema: JSONSchema;
116
+ className?: string;
117
+ onChange?: (schema: JSONSchema) => void;
118
+ }
119
+
120
+ /** @public */
121
+ export declare function JsonValidator({ open, onOpenChange, schema, }: JsonValidatorProps): JSX.Element;
122
+
123
+ /** @public */
124
+ export declare interface JsonValidatorProps {
125
+ open: boolean;
126
+ onOpenChange: (open: boolean) => void;
127
+ schema: JSONSchema;
128
+ }
129
+
130
+ /** @public */
131
+ export declare function SchemaInferencer({ open, onOpenChange, onSchemaInferred, }: SchemaInferencerProps): JSX.Element;
132
+
133
+ /** @public */
134
+ export declare interface SchemaInferencerProps {
135
+ open: boolean;
136
+ onOpenChange: (open: boolean) => void;
137
+ onSchemaInferred: (schema: JSONSchema) => void;
138
+ }
139
+
140
+ /** @public */
141
+ export declare const SchemaVisualEditor: FC<SchemaVisualEditorProps>;
142
+
143
+ /** @public */
144
+ export declare interface SchemaVisualEditorProps {
145
+ schema: JSONSchema;
146
+ readOnly: boolean;
147
+ onChange: (schema: JSONSchema) => void;
148
+ }
149
+
150
+ export declare interface Translation {
151
+ /**
152
+ * The translation for the key `collapse`. English default is:
153
+ *
154
+ * > Collapse
155
+ */
156
+ readonly collapse: string;
157
+ /**
158
+ * The translation for the key `expand`. English default is:
159
+ *
160
+ * > Expand
161
+ */
162
+ readonly expand: string;
163
+ /**
164
+ * The translation for the key `fieldDelete`. English default is:
165
+ *
166
+ * > Delete field
167
+ */
168
+ readonly fieldDelete: string;
169
+ /**
170
+ * The translation for the key `fieldDescriptionPlaceholder`. English default is:
171
+ *
172
+ * > Describe the purpose of this field
173
+ */
174
+ readonly fieldDescriptionPlaceholder: string;
175
+ /**
176
+ * The translation for the key `fieldNamePlaceholder`. English default is:
177
+ *
178
+ * > e.g. firstName, age, isActive
179
+ */
180
+ readonly fieldNamePlaceholder: string;
181
+ /**
182
+ * The translation for the key `fieldNameLabel`. English default is:
183
+ *
184
+ * > Field Name
185
+ */
186
+ readonly fieldNameLabel: string;
187
+ /**
188
+ * The translation for the key `fieldNameTooltip`. English default is:
189
+ *
190
+ * > Use camelCase for better readability (e.g., firstName)
191
+ */
192
+ readonly fieldNameTooltip: string;
193
+ /**
194
+ * The translation for the key `fieldRequiredLabel`. English default is:
195
+ *
196
+ * > Required Field
197
+ */
198
+ readonly fieldRequiredLabel: string;
199
+ /**
200
+ * The translation for the key `fieldDescription`. English default is:
201
+ *
202
+ * > Description
203
+ */
204
+ readonly fieldDescription: string;
205
+ /**
206
+ * The translation for the key `fieldDescriptionTooltip`. English default is:
207
+ *
208
+ * > Add context about what this field represents
209
+ */
210
+ readonly fieldDescriptionTooltip: string;
211
+ /**
212
+ * The translation for the key `fieldType`. English default is:
213
+ *
214
+ * > Field Type
215
+ */
216
+ readonly fieldType: string;
217
+ /**
218
+ * The translation for the key `fieldTypeExample`. English default is:
219
+ *
220
+ * > Example:
221
+ */
222
+ readonly fieldTypeExample: string;
223
+ /**
224
+ * The translation for the key `fieldTypeTooltipString`. English default is:
225
+ *
226
+ * > string: Text
227
+ */
228
+ readonly fieldTypeTooltipString: string;
229
+ /**
230
+ * The translation for the key `fieldTypeTooltipNumber`. English default is:
231
+ *
232
+ * > number: Numeric
233
+ */
234
+ readonly fieldTypeTooltipNumber: string;
235
+ /**
236
+ * The translation for the key `fieldTypeTooltipBoolean`. English default is:
237
+ *
238
+ * > boolean: True/false
239
+ */
240
+ readonly fieldTypeTooltipBoolean: string;
241
+ /**
242
+ * The translation for the key `fieldTypeTooltipObject`. English default is:
243
+ *
244
+ * > object: Nested JSON
245
+ */
246
+ readonly fieldTypeTooltipObject: string;
247
+ /**
248
+ * The translation for the key `fieldTypeTooltipArray`. English default is:
249
+ *
250
+ * > array: Lists of values
251
+ */
252
+ readonly fieldTypeTooltipArray: string;
253
+ /**
254
+ * The translation for the key `fieldAddNewButton`. English default is:
255
+ *
256
+ * > Add Field
257
+ */
258
+ readonly fieldAddNewButton: string;
259
+ /**
260
+ * The translation for the key `fieldAddNewLabel`. English default is:
261
+ *
262
+ * > Add New Field
263
+ */
264
+ readonly fieldAddNewLabel: string;
265
+ /**
266
+ * The translation for the key `fieldAddNewDescription`. English default is:
267
+ *
268
+ * > Create a new field for your JSON schema
269
+ */
270
+ readonly fieldAddNewDescription: string;
271
+ /**
272
+ * The translation for the key `fieldAddNewBadge`. English default is:
273
+ *
274
+ * > Schema Builder
275
+ */
276
+ readonly fieldAddNewBadge: string;
277
+ /**
278
+ * The translation for the key `fieldAddNewCancel`. English default is:
279
+ *
280
+ * > Cancel
281
+ */
282
+ readonly fieldAddNewCancel: string;
283
+ /**
284
+ * The translation for the key `fieldAddNewConfirm`. English default is:
285
+ *
286
+ * > Add Field
287
+ */
288
+ readonly fieldAddNewConfirm: string;
289
+ /**
290
+ * The translation for the key `fieldTypeTextLabel`. English default is:
291
+ *
292
+ * > Text
293
+ */
294
+ readonly fieldTypeTextLabel: string;
295
+ /**
296
+ * The translation for the key `fieldTypeTextDescription`. English default is:
297
+ *
298
+ * > For text values like names, descriptions, etc.
299
+ */
300
+ readonly fieldTypeTextDescription: string;
301
+ /**
302
+ * The translation for the key `fieldTypeNumberLabel`. English default is:
303
+ *
304
+ * > Number
305
+ */
306
+ readonly fieldTypeNumberLabel: string;
307
+ /**
308
+ * The translation for the key `fieldTypeNumberDescription`. English default is:
309
+ *
310
+ * > For decimal or whole numbers
311
+ */
312
+ readonly fieldTypeNumberDescription: string;
313
+ /**
314
+ * The translation for the key `fieldTypeBooleanLabel`. English default is:
315
+ *
316
+ * > Yes/No
317
+ */
318
+ readonly fieldTypeBooleanLabel: string;
319
+ /**
320
+ * The translation for the key `fieldTypeBooleanDescription`. English default is:
321
+ *
322
+ * > For true/false values
323
+ */
324
+ readonly fieldTypeBooleanDescription: string;
325
+ /**
326
+ * The translation for the key `fieldTypeObjectLabel`. English default is:
327
+ *
328
+ * > Group
329
+ */
330
+ readonly fieldTypeObjectLabel: string;
331
+ /**
332
+ * The translation for the key `fieldTypeObjectDescription`. English default is:
333
+ *
334
+ * > For grouping related fields together
335
+ */
336
+ readonly fieldTypeObjectDescription: string;
337
+ /**
338
+ * The translation for the key `fieldTypeArrayLabel`. English default is:
339
+ *
340
+ * > List
341
+ */
342
+ readonly fieldTypeArrayLabel: string;
343
+ /**
344
+ * The translation for the key `fieldTypeArrayDescription`. English default is:
345
+ *
346
+ * > For collections of items
347
+ */
348
+ readonly fieldTypeArrayDescription: string;
349
+ /**
350
+ * The translation for the key `propertyDescriptionPlaceholder`. English default is:
351
+ *
352
+ * > Add description...
353
+ */
354
+ readonly propertyDescriptionPlaceholder: string;
355
+ /**
356
+ * The translation for the key `propertyDescriptionButton`. English default is:
357
+ *
358
+ * > Add description...
359
+ */
360
+ readonly propertyDescriptionButton: string;
361
+ /**
362
+ * The translation for the key `propertyRequired`. English default is:
363
+ *
364
+ * > Required
365
+ */
366
+ readonly propertyRequired: string;
367
+ /**
368
+ * The translation for the key `propertyOptional`. English default is:
369
+ *
370
+ * > Optional
371
+ */
372
+ readonly propertyOptional: string;
373
+ /**
374
+ * The translation for the key `propertyDelete`. English default is:
375
+ *
376
+ * > Delete field
377
+ */
378
+ readonly propertyDelete: string;
379
+ /**
380
+ * The translation for the key `propertyMoveUp`. English default is:
381
+ *
382
+ * > Move field up
383
+ */
384
+ readonly propertyMoveUp: string;
385
+ /**
386
+ * The translation for the key `propertyMoveDown`. English default is:
387
+ *
388
+ * > Move field down
389
+ */
390
+ readonly propertyMoveDown: string;
391
+ /**
392
+ * The translation for the key `propertyDefaultLabel`. English default is:
393
+ *
394
+ * > Default Value
395
+ */
396
+ readonly propertyDefaultLabel: string;
397
+ /**
398
+ * The translation for the key `propertyDefaultPlaceholder`. English default is:
399
+ *
400
+ * > Enter default value...
401
+ */
402
+ readonly propertyDefaultPlaceholder: string;
403
+ /**
404
+ * The translation for the key `arrayNoConstraint`. English default is:
405
+ *
406
+ * > No constraint
407
+ */
408
+ readonly arrayNoConstraint: string;
409
+ /**
410
+ * The translation for the key `arrayMinimumLabel`. English default is:
411
+ *
412
+ * > Minimum Items
413
+ */
414
+ readonly arrayMinimumLabel: string;
415
+ /**
416
+ * The translation for the key `arrayMinimumPlaceholder`. English default is:
417
+ *
418
+ * > No minimum
419
+ */
420
+ readonly arrayMinimumPlaceholder: string;
421
+ /**
422
+ * The translation for the key `arrayMaximumLabel`. English default is:
423
+ *
424
+ * > Maximum Items
425
+ */
426
+ readonly arrayMaximumLabel: string;
427
+ /**
428
+ * The translation for the key `arrayMaximumPlaceholder`. English default is:
429
+ *
430
+ * > No maximum
431
+ */
432
+ readonly arrayMaximumPlaceholder: string;
433
+ /**
434
+ * The translation for the key `arrayForceUniqueItemsLabel`. English default is:
435
+ *
436
+ * > Force unique items
437
+ */
438
+ readonly arrayForceUniqueItemsLabel: string;
439
+ /**
440
+ * The translation for the key `arrayItemTypeLabel`. English default is:
441
+ *
442
+ * > Item Type
443
+ */
444
+ readonly arrayItemTypeLabel: string;
445
+ /**
446
+ * The translation for the key `arrayValidationErrorMinMax`. English default is:
447
+ *
448
+ * > 'minItems' cannot be greater than 'maxItems'.
449
+ */
450
+ readonly arrayValidationErrorMinMax: string;
451
+ /**
452
+ * The translation for the key `arrayValidationErrorContainsMinMax`. English default is:
453
+ *
454
+ * > 'minContains' cannot be greater than 'maxContains'.
455
+ */
456
+ readonly arrayValidationErrorContainsMinMax: string;
457
+ /**
458
+ * The translation for the key `booleanNoConstraint`. English default is:
459
+ *
460
+ * > No constraint
461
+ */
462
+ readonly booleanNoConstraint: string;
463
+ /**
464
+ * The translation for the key `booleanAllowTrueLabel`. English default is:
465
+ *
466
+ * > Allow true value
467
+ */
468
+ readonly booleanAllowTrueLabel: string;
469
+ /**
470
+ * The translation for the key `booleanAllowFalseLabel`. English default is:
471
+ *
472
+ * > Allow false value
473
+ */
474
+ readonly booleanAllowFalseLabel: string;
475
+ /**
476
+ * The translation for the key `booleanAllowedValuesLabel`. English default is:
477
+ *
478
+ * > Allowed Values
479
+ */
480
+ readonly booleanAllowedValuesLabel: string;
481
+ /**
482
+ * The translation for the key `booleanNeitherWarning`. English default is:
483
+ *
484
+ * > Warning: You must allow at least one value.
485
+ */
486
+ readonly booleanNeitherWarning: string;
487
+ /**
488
+ * The translation for the key `numberNoConstraint`. English default is:
489
+ *
490
+ * > No constraint
491
+ */
492
+ readonly numberNoConstraint: string;
493
+ /**
494
+ * The translation for the key `numberMinimumLabel`. English default is:
495
+ *
496
+ * > Minimum Value
497
+ */
498
+ readonly numberMinimumLabel: string;
499
+ /**
500
+ * The translation for the key `numberMinimumPlaceholder`. English default is:
501
+ *
502
+ * > No minimum
503
+ */
504
+ readonly numberMinimumPlaceholder: string;
505
+ /**
506
+ * The translation for the key `numberMaximumLabel`. English default is:
507
+ *
508
+ * > Maximum Value
509
+ */
510
+ readonly numberMaximumLabel: string;
511
+ /**
512
+ * The translation for the key `numberMaximumPlaceholder`. English default is:
513
+ *
514
+ * > No maximum
515
+ */
516
+ readonly numberMaximumPlaceholder: string;
517
+ /**
518
+ * The translation for the key `numberExclusiveMinimumLabel`. English default is:
519
+ *
520
+ * > Exclusive Minimum
521
+ */
522
+ readonly numberExclusiveMinimumLabel: string;
523
+ /**
524
+ * The translation for the key `numberExclusiveMinimumPlaceholder`. English default is:
525
+ *
526
+ * > No exclusive min
527
+ */
528
+ readonly numberExclusiveMinimumPlaceholder: string;
529
+ /**
530
+ * The translation for the key `numberExclusiveMaximumLabel`. English default is:
531
+ *
532
+ * > Exclusive Maximum
533
+ */
534
+ readonly numberExclusiveMaximumLabel: string;
535
+ /**
536
+ * The translation for the key `numberExclusiveMaximumPlaceholder`. English default is:
537
+ *
538
+ * > No exclusive max
539
+ */
540
+ readonly numberExclusiveMaximumPlaceholder: string;
541
+ /**
542
+ * The translation for the key `numberMultipleOfLabel`. English default is:
543
+ *
544
+ * > Multiple Of
545
+ */
546
+ readonly numberMultipleOfLabel: string;
547
+ /**
548
+ * The translation for the key `numberMultipleOfPlaceholder`. English default is:
549
+ *
550
+ * > Any
551
+ */
552
+ readonly numberMultipleOfPlaceholder: string;
553
+ /**
554
+ * The translation for the key `numberAllowedValuesEnumLabel`. English default is:
555
+ *
556
+ * > Allowed Values (enum)
557
+ */
558
+ readonly numberAllowedValuesEnumLabel: string;
559
+ /**
560
+ * The translation for the key `numberAllowedValuesEnumNone`. English default is:
561
+ *
562
+ * > No restricted values set
563
+ */
564
+ readonly numberAllowedValuesEnumNone: string;
565
+ /**
566
+ * The translation for the key `numberAllowedValuesEnumAddPlaceholder`. English default is:
567
+ *
568
+ * > Add allowed value...
569
+ */
570
+ readonly numberAllowedValuesEnumAddPlaceholder: string;
571
+ /**
572
+ * The translation for the key `numberAllowedValuesEnumAddLabel`. English default is:
573
+ *
574
+ * > Add
575
+ */
576
+ readonly numberAllowedValuesEnumAddLabel: string;
577
+ /**
578
+ * The translation for the key `numberValidationErrorExclusiveMinMax`. English default is:
579
+ *
580
+ * > Minimum and maximum values must be consistent.
581
+ */
582
+ readonly numberValidationErrorMinMax: string;
583
+ /**
584
+ * The translation for the key `numberValidationErrorBothExclusiveAndInclusive`. English default is:
585
+ *
586
+ * > Both 'exclusiveMinimum' and 'minimum' cannot be set at the same time.
587
+ */
588
+ readonly numberValidationErrorBothExclusiveAndInclusiveMin: string;
589
+ /**
590
+ * The translation for the key `numberValidationErrorBothExclusiveAndInclusiveMax`. English default is:
591
+ *
592
+ * > Both 'exclusiveMaximum' and 'maximum' cannot be set at the same time.
593
+ */
594
+ readonly numberValidationErrorBothExclusiveAndInclusiveMax: string;
595
+ /**
596
+ * The translation for the key `numberValidationErrorEnumOutOfRange`. English default is:
597
+ *
598
+ * > Enum values must be within the defined range.
599
+ */
600
+ readonly numberValidationErrorEnumOutOfRange: string;
601
+ /**
602
+ * The translation for the key `objectPropertiesNone`. English default is:
603
+ *
604
+ * > No properties defined
605
+ */
606
+ readonly objectPropertiesNone: string;
607
+ /**
608
+ * The translation for the key `objectValidationErrorMinMax`. English default is:
609
+ *
610
+ * > 'minProperties' cannot be greater than 'maxProperties'.
611
+ */
612
+ readonly objectValidationErrorMinMax: string;
613
+ /**
614
+ * The translation for the key `stringMinimumLengthLabel`. English default is:
615
+ *
616
+ * > Minimum Length
617
+ */
618
+ readonly stringMinimumLengthLabel: string;
619
+ /**
620
+ * The translation for the key `stringNoConstraint`. English default is:
621
+ *
622
+ * > No constraint
623
+ */
624
+ readonly stringNoConstraint: string;
625
+ /**
626
+ * The translation for the key `stringMinimumLengthPlaceholder`. English default is:
627
+ *
628
+ * > No minimum
629
+ */
630
+ readonly stringMinimumLengthPlaceholder: string;
631
+ /**
632
+ * The translation for the key `stringMaximumLengthLabel`. English default is:
633
+ *
634
+ * > Maximum Length
635
+ */
636
+ readonly stringMaximumLengthLabel: string;
637
+ /**
638
+ * The translation for the key `stringMaximumLengthPlaceholder`. English default is:
639
+ *
640
+ * > No maximum
641
+ */
642
+ readonly stringMaximumLengthPlaceholder: string;
643
+ /**
644
+ * The translation for the key `stringPatternLabel`. English default is:
645
+ *
646
+ * > Pattern (regex)
647
+ */
648
+ readonly stringPatternLabel: string;
649
+ /**
650
+ * The translation for the key `stringPatternPlaceholder`. English default is:
651
+ *
652
+ * > ^[a-zA-Z]+$
653
+ */
654
+ readonly stringPatternPlaceholder: string;
655
+ /**
656
+ * The translation for the key `stringFormatLabel`. English default is:
657
+ *
658
+ * > Format
659
+ */
660
+ readonly stringFormatLabel: string;
661
+ /**
662
+ * The translation for the key `stringFormatNone`. English default is:
663
+ *
664
+ * > None
665
+ */
666
+ readonly stringFormatNone: string;
667
+ /**
668
+ * The translation for the key `stringFormatDateTime`. English default is:
669
+ *
670
+ * > Date-Time
671
+ */
672
+ readonly stringFormatDateTime: string;
673
+ /**
674
+ * The translation for the key `stringFormatDate`. English default is:
675
+ *
676
+ * > Date
677
+ */
678
+ readonly stringFormatDate: string;
679
+ /**
680
+ * The translation for the key `stringFormatTime`. English default is:
681
+ *
682
+ * > Time
683
+ */
684
+ readonly stringFormatTime: string;
685
+ /**
686
+ * The translation for the key `stringFormatEmail`. English default is:
687
+ *
688
+ * > Email
689
+ */
690
+ readonly stringFormatEmail: string;
691
+ /**
692
+ * The translation for the key `stringFormatUri`. English default is:
693
+ *
694
+ * > URI
695
+ */
696
+ readonly stringFormatUri: string;
697
+ /**
698
+ * The translation for the key `stringFormatUuid`. English default is:
699
+ *
700
+ * > UUID
701
+ */
702
+ readonly stringFormatUuid: string;
703
+ /**
704
+ * The translation for the key `stringFormatHostname`. English default is:
705
+ *
706
+ * > Hostname
707
+ */
708
+ readonly stringFormatHostname: string;
709
+ /**
710
+ * The translation for the key `stringFormatIpv4`. English default is:
711
+ *
712
+ * > IPv4 Address
713
+ */
714
+ readonly stringFormatIpv4: string;
715
+ /**
716
+ * The translation for the key `stringFormatIpv6`. English default is:
717
+ *
718
+ * > IPv6 Address
719
+ */
720
+ readonly stringFormatIpv6: string;
721
+ /**
722
+ * The translation for the key `stringAllowedValuesEnumLabel`. English default is:
723
+ *
724
+ * > Allowed Values (enum)
725
+ */
726
+ readonly stringAllowedValuesEnumLabel: string;
727
+ /**
728
+ * The translation for the key `stringAllowedValuesEnumNone`. English default is:
729
+ *
730
+ * > No restricted values set
731
+ */
732
+ readonly stringAllowedValuesEnumNone: string;
733
+ /**
734
+ * The translation for the key `stringAllowedValuesEnumAddPlaceholder`. English default is:
735
+ *
736
+ * > Add allowed value...
737
+ */
738
+ readonly stringAllowedValuesEnumAddPlaceholder: string;
739
+ /**
740
+ * The translation for the key `stringAllowedValuesEnumAddLabel`. English default is:
741
+ *
742
+ * > Add
743
+ */
744
+ readonly stringAllowedValuesEnumAddLabel: string;
745
+ /**
746
+ * The translation for the key `enumModeStatic`. English default is:
747
+ *
748
+ * > Fixed list
749
+ */
750
+ readonly enumModeStatic: string;
751
+ /**
752
+ * The translation for the key `enumModeDependsOn`. English default is:
753
+ *
754
+ * > Depends on property
755
+ */
756
+ readonly enumModeDependsOn: string;
757
+ /**
758
+ * The translation for the key `enumDependsOnPlaceholder`. English default is:
759
+ *
760
+ * > Select property...
761
+ */
762
+ readonly enumDependsOnPlaceholder: string;
763
+ /**
764
+ * The translation for the key `whenPropertyEquals`. English default is:
765
+ *
766
+ * > When {property} = {value}
767
+ */
768
+ readonly whenPropertyEquals: string;
769
+ /**
770
+ * The translation for the key `stringFormatSelectPlaceholder`. English default is:
771
+ *
772
+ * > Select format
773
+ */
774
+ readonly stringFormatSelectPlaceholder: string;
775
+ /**
776
+ * The translation for the key `stringValidationErrorMinLength`. English default is:
777
+ *
778
+ * > 'minLength' cannot be greater than 'maxLength'.
779
+ */
780
+ readonly stringValidationErrorLengthRange: string;
781
+ /**
782
+ * The translation for the key `schemaTypeString`. English default is:
783
+ *
784
+ * > Text
785
+ */
786
+ readonly schemaTypeString: string;
787
+ /**
788
+ * The translation for the key `schemaTypeNumber`. English default is:
789
+ *
790
+ * > Number
791
+ */
792
+ readonly schemaTypeNumber: string;
793
+ /**
794
+ * The translation for the key `schemaTypeBoolean`. English default is:
795
+ *
796
+ * > Yes/No
797
+ */
798
+ readonly schemaTypeBoolean: string;
799
+ /**
800
+ * The translation for the key `schemaTypeObject`. English default is:
801
+ *
802
+ * > Object
803
+ */
804
+ readonly schemaTypeObject: string;
805
+ /**
806
+ * The translation for the key `schemaTypeArray`. English default is:
807
+ *
808
+ * > List
809
+ */
810
+ readonly schemaTypeArray: string;
811
+ /**
812
+ * The translation for the key `schemaTypeNull`. English default is:
813
+ *
814
+ * > Empty
815
+ */
816
+ readonly schemaTypeNull: string;
817
+ /**
818
+ * The translation for the key `schemaEditorTitle`. English default is:
819
+ *
820
+ * > JSON Schema Editor
821
+ */
822
+ readonly schemaEditorTitle: string;
823
+ /**
824
+ * The translation for the key `schemaEditorToggleFullscreen`. English default is:
825
+ *
826
+ * > Toggle fullscreen
827
+ */
828
+ readonly schemaEditorToggleFullscreen: string;
829
+ /**
830
+ * The translation for the key `schemaEditorEditModeVisual`. English default is:
831
+ *
832
+ * > Visual
833
+ */
834
+ readonly schemaEditorEditModeVisual: string;
835
+ /**
836
+ * The translation for the key `schemaEditorEditModeJson`. English default is:
837
+ *
838
+ * > JSON
839
+ */
840
+ readonly schemaEditorEditModeJson: string;
841
+ /**
842
+ * The translation for the key `schemaEditorLoading`. English default is:
843
+ *
844
+ * > Loading editor...
845
+ */
846
+ readonly schemaEditorLoading: string;
847
+ /**
848
+ * The translation for the key `inferrerTitle`. English default is:
849
+ *
850
+ * > Infer JSON Schema
851
+ */
852
+ readonly inferrerTitle: string;
853
+ /**
854
+ * The translation for the key `inferrerDescription`. English default is:
855
+ *
856
+ * > Paste your JSON document below to generate a schema from it.
857
+ */
858
+ readonly inferrerDescription: string;
859
+ /**
860
+ * The translation for the key `inferrerGenerate`. English default is:
861
+ *
862
+ * > Generate Schema
863
+ */
864
+ readonly inferrerGenerate: string;
865
+ /**
866
+ * The translation for the key `inferrerCancel`. English default is:
867
+ *
868
+ * > Cancel
869
+ */
870
+ readonly inferrerCancel: string;
871
+ /**
872
+ * The translation for the key `inferrerErrorInvalidJson`. English default is:
873
+ *
874
+ * > Invalid JSON format. Please check your input.
875
+ */
876
+ readonly inferrerErrorInvalidJson: string;
877
+ /**
878
+ * The translation for the key `validatorTitle`. English default is:
879
+ *
880
+ * > Validate JSON
881
+ */
882
+ readonly validatorTitle: string;
883
+ /**
884
+ * The translation for the key `validatorDescription`. English default is:
885
+ *
886
+ * > Paste your JSON document to validate against the current schema. Validation occurs automatically as you type.
887
+ */
888
+ readonly validatorDescription: string;
889
+ /**
890
+ * The translation for the key `validatorCurrentSchema`. English default is:
891
+ *
892
+ * > Current Schema:
893
+ */
894
+ readonly validatorCurrentSchema: string;
895
+ /**
896
+ * The translation for the key `validatorContent`. English default is:
897
+ *
898
+ * > Your JSON:
899
+ */
900
+ readonly validatorContent: string;
901
+ /**
902
+ * The translation for the key `validatorValid`. English default is:
903
+ *
904
+ * > JSON is valid according to the schema!
905
+ */
906
+ readonly validatorValid: string;
907
+ /**
908
+ * The translation for the key `validatorErrorInvalidSyntax`. English default is:
909
+ *
910
+ * > Invalid JSON syntax
911
+ */
912
+ readonly validatorErrorInvalidSyntax: string;
913
+ /**
914
+ * The translation for the key `validatorErrorSchemaValidation`. English default is:
915
+ *
916
+ * > Schema validation error
917
+ */
918
+ readonly validatorErrorSchemaValidation: string;
919
+ /**
920
+ * The translation for the key `validatorErrorCount`. English default is:
921
+ *
922
+ * > {count} validation errors detected
923
+ */
924
+ readonly validatorErrorCount: string;
925
+ /**
926
+ * The translation for the key `validatorErrorPathRoot`. English default is:
927
+ *
928
+ * > Root
929
+ */
930
+ readonly validatorErrorPathRoot: string;
931
+ /**
932
+ * The translation for the key `validatorErrorLocationLineAndColumn`. English default is:
933
+ *
934
+ * > Line {line}, Col {column}
935
+ */
936
+ readonly validatorErrorLocationLineAndColumn: string;
937
+ /**
938
+ * The translation for the key `validatorErrorLocationLineOnly`. English default is:
939
+ *
940
+ * > Line {line}
941
+ */
942
+ readonly validatorErrorLocationLineOnly: string;
943
+ /**
944
+ * The translation for the key `visualizerDownloadTitle`. English default is:
945
+ *
946
+ * > Download Schema
947
+ */
948
+ readonly visualizerDownloadTitle: string;
949
+ /**
950
+ * The translation for the key `visualizerDownloadFileName`. English default is:
951
+ *
952
+ * > schema.json
953
+ */
954
+ readonly visualizerDownloadFileName: string;
955
+ /**
956
+ * The translation for the key `visualizerSource`. English default is:
957
+ *
958
+ * > JSON Schema Source
959
+ */
960
+ readonly visualizerSource: string;
961
+ /**
962
+ * The translation for the key `visualEditorNoFieldsHint1`. English default is:
963
+ *
964
+ * > No fields defined yet
965
+ */
966
+ readonly visualEditorNoFieldsHint1: string;
967
+ /**
968
+ * The translation for the key `visualEditorNoFieldsHint2`. English default is:
969
+ *
970
+ * > Add your first field to get started
971
+ */
972
+ readonly visualEditorNoFieldsHint2: string;
973
+ /**
974
+ * The translation for the key `typeValidationErrorNegativeLength`. English default is:
975
+ *
976
+ * > Length values cannot be negative.
977
+ */
978
+ readonly typeValidationErrorNegativeLength: string;
979
+ /**
980
+ * The translation for the key `typeValidationErrorIntValue`. English default is:
981
+ *
982
+ * > Value must be an integer.
983
+ */
984
+ readonly typeValidationErrorIntValue: string;
985
+ /**
986
+ * The translation for the key `typeValidationErrorPositive`. English default is:
987
+ *
988
+ * > Value must be positive.
989
+ */
990
+ readonly typeValidationErrorPositive: string;
991
+ }
992
+
993
+ export declare const TranslationContext: Context<Translation>;
994
+
995
+ export { }