@scalar/blocks 0.5.1 → 0.5.3
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/CHANGELOG.md +25 -0
- package/dist/code-example/components/CodeExample.vue.d.ts +2 -0
- package/dist/code-example/components/CodeExample.vue.d.ts.map +1 -1
- package/dist/code-example/components/CodeExample.vue.js +1 -1
- package/dist/code-example/components/CodeExample.vue.js.map +1 -1
- package/dist/code-example/components/CodeExample.vue.script.js +71 -68
- package/dist/code-example/components/CodeExample.vue.script.js.map +1 -1
- package/dist/code-example/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/code-example/helpers/generate-client-options.js.map +1 -1
- package/dist/code-example/helpers/get-clients.d.ts.map +1 -1
- package/dist/code-example/helpers/get-clients.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-body.js +42 -42
- package/dist/code-example/helpers/operation-to-har/process-body.js.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/code-example/helpers/operation-to-har/process-parameters.js +63 -62
- package/dist/code-example/helpers/operation-to-har/process-parameters.js.map +1 -1
- package/dist/code-example/mount.d.ts.map +1 -1
- package/dist/code-example/mount.js +1 -1
- package/dist/code-example/mount.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/schema/Schema.vue.d.ts.map +1 -1
- package/dist/schema/Schema.vue.js +1 -1
- package/dist/schema/Schema.vue.js.map +1 -1
- package/dist/schema/Schema.vue.script.js +122 -116
- package/dist/schema/Schema.vue.script.js.map +1 -1
- package/dist/schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/schema/SchemaComposition.vue.js +1 -1
- package/dist/schema/SchemaComposition.vue.js.map +1 -1
- package/dist/schema/SchemaComposition.vue.script.js +110 -106
- package/dist/schema/SchemaComposition.vue.script.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.js.map +1 -1
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js +2 -2
- package/dist/schema/SchemaEnumPropertyItem.vue.script.js.map +1 -1
- package/dist/schema/SchemaObjectProperties.vue.js.map +1 -1
- package/dist/schema/SchemaObjectProperties.vue.script.js +1 -1
- package/dist/schema/SchemaObjectProperties.vue.script.js.map +1 -1
- package/dist/schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/schema/SchemaProperty.vue.js +1 -1
- package/dist/schema/SchemaProperty.vue.js.map +1 -1
- package/dist/schema/SchemaProperty.vue.script.js +179 -164
- package/dist/schema/SchemaProperty.vue.script.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.d.ts +5 -3
- package/dist/schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyHeading.vue.script.js +122 -117
- package/dist/schema/SchemaPropertyHeading.vue.script.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.js +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.js.map +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.script.js +1 -1
- package/dist/schema/SchemaPropertyPattern.vue.script.js.map +1 -1
- package/dist/schema/discriminator-metadata.d.ts +13 -0
- package/dist/schema/discriminator-metadata.d.ts.map +1 -0
- package/dist/schema/discriminator-metadata.js +6 -0
- package/dist/schema/discriminator-metadata.js.map +1 -0
- package/dist/schema/helpers/get-compositions-to-render.d.ts +3 -1
- package/dist/schema/helpers/get-compositions-to-render.d.ts.map +1 -1
- package/dist/schema/helpers/get-compositions-to-render.js +25 -24
- package/dist/schema/helpers/get-compositions-to-render.js.map +1 -1
- package/dist/schema/helpers/get-property-description.d.ts +6 -3
- package/dist/schema/helpers/get-property-description.d.ts.map +1 -1
- package/dist/schema/helpers/get-property-description.js +10 -10
- package/dist/schema/helpers/get-property-description.js.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.d.ts.map +1 -1
- package/dist/schema/helpers/has-complex-array-items.js +6 -2
- package/dist/schema/helpers/has-complex-array-items.js.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/schema/helpers/merge-all-of-schemas.js +2 -2
- package/dist/schema/helpers/merge-all-of-schemas.js.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/schema/helpers/optimize-value-for-display.js +34 -33
- package/dist/schema/helpers/optimize-value-for-display.js.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.d.ts.map +1 -1
- package/dist/schema/helpers/partition-all-of-compositions.js +39 -27
- package/dist/schema/helpers/partition-all-of-compositions.js.map +1 -1
- package/dist/schema/helpers/schema-name.js +1 -1
- package/dist/schema/helpers/schema-name.js.map +1 -1
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +13 -11
- package/dist/schema/localization/index.d.ts +11 -1
- package/dist/schema/localization/index.d.ts.map +1 -1
- package/dist/schema/localization/locales/ar.d.ts +10 -0
- package/dist/schema/localization/locales/ar.d.ts.map +1 -1
- package/dist/schema/localization/locales/ar.js +11 -1
- package/dist/schema/localization/locales/ar.js.map +1 -1
- package/dist/schema/localization/locales/de.d.ts +10 -0
- package/dist/schema/localization/locales/de.d.ts.map +1 -1
- package/dist/schema/localization/locales/de.js +11 -1
- package/dist/schema/localization/locales/de.js.map +1 -1
- package/dist/schema/localization/locales/en.d.ts +10 -0
- package/dist/schema/localization/locales/en.d.ts.map +1 -1
- package/dist/schema/localization/locales/en.js +11 -1
- package/dist/schema/localization/locales/en.js.map +1 -1
- package/dist/schema/localization/locales/es.d.ts +10 -0
- package/dist/schema/localization/locales/es.d.ts.map +1 -1
- package/dist/schema/localization/locales/es.js +11 -1
- package/dist/schema/localization/locales/es.js.map +1 -1
- package/dist/schema/localization/locales/fr.d.ts +10 -0
- package/dist/schema/localization/locales/fr.d.ts.map +1 -1
- package/dist/schema/localization/locales/fr.js +11 -1
- package/dist/schema/localization/locales/fr.js.map +1 -1
- package/dist/schema/localization/locales/pt.d.ts +10 -0
- package/dist/schema/localization/locales/pt.d.ts.map +1 -1
- package/dist/schema/localization/locales/pt.js +11 -1
- package/dist/schema/localization/locales/pt.js.map +1 -1
- package/dist/schema/localization/locales/ru.d.ts +10 -0
- package/dist/schema/localization/locales/ru.d.ts.map +1 -1
- package/dist/schema/localization/locales/ru.js +11 -1
- package/dist/schema/localization/locales/ru.js.map +1 -1
- package/dist/schema/localization/locales/zh-cn.d.ts +10 -0
- package/dist/schema/localization/locales/zh-cn.d.ts.map +1 -1
- package/dist/schema/localization/locales/zh-cn.js +11 -1
- package/dist/schema/localization/locales/zh-cn.js.map +1 -1
- package/dist/schema/localization/locales/zh-tw.d.ts +69 -0
- package/dist/schema/localization/locales/zh-tw.d.ts.map +1 -0
- package/dist/schema/localization/locales/zh-tw.js +70 -0
- package/dist/schema/localization/locales/zh-tw.js.map +1 -0
- package/dist/schema/localization/translations.d.ts +147 -0
- package/dist/schema/localization/translations.d.ts.map +1 -1
- package/dist/schema/localization/translations.js +5 -3
- package/dist/schema/localization/translations.js.map +1 -1
- package/dist/schema/types.d.ts +2 -0
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/shared/ExternalDocs.vue.d.ts +9 -0
- package/dist/shared/ExternalDocs.vue.d.ts.map +1 -0
- package/dist/shared/ExternalDocs.vue.js +7 -0
- package/dist/shared/ExternalDocs.vue.js.map +1 -0
- package/dist/shared/ExternalDocs.vue.script.js +46 -0
- package/dist/shared/ExternalDocs.vue.script.js.map +1 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +4 -3
- package/dist/style.css +63 -19
- package/dist/styles/schema-tree.css +3 -1
- package/dist/vue-styles.css +1 -1
- package/package.json +10 -10
|
@@ -14,6 +14,8 @@ export declare const schemaTranslations: {
|
|
|
14
14
|
forName: string;
|
|
15
15
|
showSchemaDetails: string;
|
|
16
16
|
oneOf: string;
|
|
17
|
+
variants: string;
|
|
18
|
+
discriminatorValue: string;
|
|
17
19
|
anyOf: string;
|
|
18
20
|
allOf: string;
|
|
19
21
|
not: string;
|
|
@@ -48,6 +50,14 @@ export declare const schemaTranslations: {
|
|
|
48
50
|
unique: string;
|
|
49
51
|
values: string;
|
|
50
52
|
writeOnly: string;
|
|
53
|
+
typeInteger: string;
|
|
54
|
+
formatInt32: string;
|
|
55
|
+
formatInt64: string;
|
|
56
|
+
formatDate: string;
|
|
57
|
+
formatDateTime: string;
|
|
58
|
+
formatPassword: string;
|
|
59
|
+
formatBase64: string;
|
|
60
|
+
formatBinary: string;
|
|
51
61
|
};
|
|
52
62
|
common: {
|
|
53
63
|
copyDefault: string;
|
|
@@ -59,6 +69,8 @@ export declare const schemaTranslations: {
|
|
|
59
69
|
};
|
|
60
70
|
de: {
|
|
61
71
|
schema: {
|
|
72
|
+
variants: string;
|
|
73
|
+
discriminatorValue: string;
|
|
62
74
|
noAllowedValues: string;
|
|
63
75
|
example: string;
|
|
64
76
|
examples: string;
|
|
@@ -105,6 +117,14 @@ export declare const schemaTranslations: {
|
|
|
105
117
|
unique: string;
|
|
106
118
|
values: string;
|
|
107
119
|
writeOnly: string;
|
|
120
|
+
typeInteger: string;
|
|
121
|
+
formatInt32: string;
|
|
122
|
+
formatInt64: string;
|
|
123
|
+
formatDate: string;
|
|
124
|
+
formatDateTime: string;
|
|
125
|
+
formatPassword: string;
|
|
126
|
+
formatBase64: string;
|
|
127
|
+
formatBinary: string;
|
|
108
128
|
};
|
|
109
129
|
common: {
|
|
110
130
|
copyDefault: string;
|
|
@@ -116,6 +136,8 @@ export declare const schemaTranslations: {
|
|
|
116
136
|
};
|
|
117
137
|
es: {
|
|
118
138
|
schema: {
|
|
139
|
+
variants: string;
|
|
140
|
+
discriminatorValue: string;
|
|
119
141
|
noAllowedValues: string;
|
|
120
142
|
example: string;
|
|
121
143
|
examples: string;
|
|
@@ -162,6 +184,14 @@ export declare const schemaTranslations: {
|
|
|
162
184
|
unique: string;
|
|
163
185
|
values: string;
|
|
164
186
|
writeOnly: string;
|
|
187
|
+
typeInteger: string;
|
|
188
|
+
formatInt32: string;
|
|
189
|
+
formatInt64: string;
|
|
190
|
+
formatDate: string;
|
|
191
|
+
formatDateTime: string;
|
|
192
|
+
formatPassword: string;
|
|
193
|
+
formatBase64: string;
|
|
194
|
+
formatBinary: string;
|
|
165
195
|
};
|
|
166
196
|
common: {
|
|
167
197
|
copyDefault: string;
|
|
@@ -173,6 +203,8 @@ export declare const schemaTranslations: {
|
|
|
173
203
|
};
|
|
174
204
|
fr: {
|
|
175
205
|
schema: {
|
|
206
|
+
variants: string;
|
|
207
|
+
discriminatorValue: string;
|
|
176
208
|
noAllowedValues: string;
|
|
177
209
|
example: string;
|
|
178
210
|
examples: string;
|
|
@@ -219,6 +251,14 @@ export declare const schemaTranslations: {
|
|
|
219
251
|
unique: string;
|
|
220
252
|
values: string;
|
|
221
253
|
writeOnly: string;
|
|
254
|
+
typeInteger: string;
|
|
255
|
+
formatInt32: string;
|
|
256
|
+
formatInt64: string;
|
|
257
|
+
formatDate: string;
|
|
258
|
+
formatDateTime: string;
|
|
259
|
+
formatPassword: string;
|
|
260
|
+
formatBase64: string;
|
|
261
|
+
formatBinary: string;
|
|
222
262
|
};
|
|
223
263
|
common: {
|
|
224
264
|
copyDefault: string;
|
|
@@ -230,6 +270,8 @@ export declare const schemaTranslations: {
|
|
|
230
270
|
};
|
|
231
271
|
pt: {
|
|
232
272
|
schema: {
|
|
273
|
+
variants: string;
|
|
274
|
+
discriminatorValue: string;
|
|
233
275
|
noAllowedValues: string;
|
|
234
276
|
example: string;
|
|
235
277
|
examples: string;
|
|
@@ -276,6 +318,14 @@ export declare const schemaTranslations: {
|
|
|
276
318
|
unique: string;
|
|
277
319
|
values: string;
|
|
278
320
|
writeOnly: string;
|
|
321
|
+
typeInteger: string;
|
|
322
|
+
formatInt32: string;
|
|
323
|
+
formatInt64: string;
|
|
324
|
+
formatDate: string;
|
|
325
|
+
formatDateTime: string;
|
|
326
|
+
formatPassword: string;
|
|
327
|
+
formatBase64: string;
|
|
328
|
+
formatBinary: string;
|
|
279
329
|
};
|
|
280
330
|
common: {
|
|
281
331
|
copyDefault: string;
|
|
@@ -287,6 +337,8 @@ export declare const schemaTranslations: {
|
|
|
287
337
|
};
|
|
288
338
|
ru: {
|
|
289
339
|
schema: {
|
|
340
|
+
variants: string;
|
|
341
|
+
discriminatorValue: string;
|
|
290
342
|
noAllowedValues: string;
|
|
291
343
|
example: string;
|
|
292
344
|
examples: string;
|
|
@@ -333,6 +385,14 @@ export declare const schemaTranslations: {
|
|
|
333
385
|
unique: string;
|
|
334
386
|
values: string;
|
|
335
387
|
writeOnly: string;
|
|
388
|
+
typeInteger: string;
|
|
389
|
+
formatInt32: string;
|
|
390
|
+
formatInt64: string;
|
|
391
|
+
formatDate: string;
|
|
392
|
+
formatDateTime: string;
|
|
393
|
+
formatPassword: string;
|
|
394
|
+
formatBase64: string;
|
|
395
|
+
formatBinary: string;
|
|
336
396
|
};
|
|
337
397
|
common: {
|
|
338
398
|
copyDefault: string;
|
|
@@ -344,6 +404,8 @@ export declare const schemaTranslations: {
|
|
|
344
404
|
};
|
|
345
405
|
ar: {
|
|
346
406
|
schema: {
|
|
407
|
+
variants: string;
|
|
408
|
+
discriminatorValue: string;
|
|
347
409
|
noAllowedValues: string;
|
|
348
410
|
example: string;
|
|
349
411
|
examples: string;
|
|
@@ -390,6 +452,14 @@ export declare const schemaTranslations: {
|
|
|
390
452
|
unique: string;
|
|
391
453
|
values: string;
|
|
392
454
|
writeOnly: string;
|
|
455
|
+
typeInteger: string;
|
|
456
|
+
formatInt32: string;
|
|
457
|
+
formatInt64: string;
|
|
458
|
+
formatDate: string;
|
|
459
|
+
formatDateTime: string;
|
|
460
|
+
formatPassword: string;
|
|
461
|
+
formatBase64: string;
|
|
462
|
+
formatBinary: string;
|
|
393
463
|
};
|
|
394
464
|
common: {
|
|
395
465
|
copyDefault: string;
|
|
@@ -401,6 +471,8 @@ export declare const schemaTranslations: {
|
|
|
401
471
|
};
|
|
402
472
|
'zh-CN': {
|
|
403
473
|
schema: {
|
|
474
|
+
variants: string;
|
|
475
|
+
discriminatorValue: string;
|
|
404
476
|
noAllowedValues: string;
|
|
405
477
|
example: string;
|
|
406
478
|
examples: string;
|
|
@@ -447,6 +519,81 @@ export declare const schemaTranslations: {
|
|
|
447
519
|
unique: string;
|
|
448
520
|
values: string;
|
|
449
521
|
writeOnly: string;
|
|
522
|
+
typeInteger: string;
|
|
523
|
+
formatInt32: string;
|
|
524
|
+
formatInt64: string;
|
|
525
|
+
formatDate: string;
|
|
526
|
+
formatDateTime: string;
|
|
527
|
+
formatPassword: string;
|
|
528
|
+
formatBase64: string;
|
|
529
|
+
formatBinary: string;
|
|
530
|
+
};
|
|
531
|
+
common: {
|
|
532
|
+
copyDefault: string;
|
|
533
|
+
copyExample: string;
|
|
534
|
+
};
|
|
535
|
+
actions: {
|
|
536
|
+
copyLinkTo: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
'zh-TW': {
|
|
540
|
+
schema: {
|
|
541
|
+
variants: string;
|
|
542
|
+
discriminatorValue: string;
|
|
543
|
+
noAllowedValues: string;
|
|
544
|
+
example: string;
|
|
545
|
+
examples: string;
|
|
546
|
+
default: string;
|
|
547
|
+
schema: string;
|
|
548
|
+
emptyObject: string;
|
|
549
|
+
showAdditionalProperties: string;
|
|
550
|
+
showOneMoreProperty: string;
|
|
551
|
+
showMoreProperties: string;
|
|
552
|
+
forName: string;
|
|
553
|
+
showSchemaDetails: string;
|
|
554
|
+
oneOf: string;
|
|
555
|
+
anyOf: string;
|
|
556
|
+
allOf: string;
|
|
557
|
+
not: string;
|
|
558
|
+
unknownType: string;
|
|
559
|
+
propertyCount: string;
|
|
560
|
+
headerCount: string;
|
|
561
|
+
recursiveReference: string;
|
|
562
|
+
recursive: string;
|
|
563
|
+
additionalProperties: string;
|
|
564
|
+
const: string;
|
|
565
|
+
deprecated: string;
|
|
566
|
+
discriminator: string;
|
|
567
|
+
enum: string;
|
|
568
|
+
format: string;
|
|
569
|
+
greaterThan: string;
|
|
570
|
+
keys: string;
|
|
571
|
+
lessThan: string;
|
|
572
|
+
max: string;
|
|
573
|
+
min: string;
|
|
574
|
+
maxLength: string;
|
|
575
|
+
minLength: string;
|
|
576
|
+
multipleOf: string;
|
|
577
|
+
nullable: string;
|
|
578
|
+
propertyNames: string;
|
|
579
|
+
pattern: string;
|
|
580
|
+
copyPattern: string;
|
|
581
|
+
readOnly: string;
|
|
582
|
+
required: string;
|
|
583
|
+
hideValues: string;
|
|
584
|
+
showAllValues: string;
|
|
585
|
+
type: string;
|
|
586
|
+
unique: string;
|
|
587
|
+
values: string;
|
|
588
|
+
writeOnly: string;
|
|
589
|
+
typeInteger: string;
|
|
590
|
+
formatInt32: string;
|
|
591
|
+
formatInt64: string;
|
|
592
|
+
formatDate: string;
|
|
593
|
+
formatDateTime: string;
|
|
594
|
+
formatPassword: string;
|
|
595
|
+
formatBase64: string;
|
|
596
|
+
formatBinary: string;
|
|
450
597
|
};
|
|
451
598
|
common: {
|
|
452
599
|
copyDefault: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/schema/localization/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/schema/localization/translations.ts"],"names":[],"mappings":"AAUA,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+D,CAAA"}
|
|
@@ -6,8 +6,9 @@ import { fr as i } from "./locales/fr.js";
|
|
|
6
6
|
import { pt as a } from "./locales/pt.js";
|
|
7
7
|
import { ru as o } from "./locales/ru.js";
|
|
8
8
|
import { zhCn as s } from "./locales/zh-cn.js";
|
|
9
|
+
import { zhTw as c } from "./locales/zh-tw.js";
|
|
9
10
|
//#region src/schema/localization/translations.ts
|
|
10
|
-
var
|
|
11
|
+
var l = {
|
|
11
12
|
en: n,
|
|
12
13
|
de: t,
|
|
13
14
|
es: r,
|
|
@@ -15,9 +16,10 @@ var c = {
|
|
|
15
16
|
pt: a,
|
|
16
17
|
ru: o,
|
|
17
18
|
ar: e,
|
|
18
|
-
"zh-CN": s
|
|
19
|
+
"zh-CN": s,
|
|
20
|
+
"zh-TW": c
|
|
19
21
|
};
|
|
20
22
|
//#endregion
|
|
21
|
-
export {
|
|
23
|
+
export { l as schemaTranslations };
|
|
22
24
|
|
|
23
25
|
//# sourceMappingURL=translations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","names":[],"sources":["../../../src/schema/localization/translations.ts"],"sourcesContent":["import { ar } from './locales/ar'\nimport { de } from './locales/de'\nimport { en } from './locales/en'\nimport { es } from './locales/es'\nimport { fr } from './locales/fr'\nimport { pt } from './locales/pt'\nimport { ru } from './locales/ru'\nimport { zhCn } from './locales/zh-cn'\n\n/** Built-in schema translations, also composed into API Reference's public dictionary. */\nexport const schemaTranslations = { en, de, es, fr, pt, ru, ar, 'zh-CN': zhCn }\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.js","names":[],"sources":["../../../src/schema/localization/translations.ts"],"sourcesContent":["import { ar } from './locales/ar'\nimport { de } from './locales/de'\nimport { en } from './locales/en'\nimport { es } from './locales/es'\nimport { fr } from './locales/fr'\nimport { pt } from './locales/pt'\nimport { ru } from './locales/ru'\nimport { zhCn } from './locales/zh-cn'\nimport { zhTw } from './locales/zh-tw'\n\n/** Built-in schema translations, also composed into API Reference's public dictionary. */\nexport const schemaTranslations = { en, de, es, fr, pt, ru, ar, 'zh-CN': zhCn, 'zh-TW': zhTw }\n"],"mappings":";;;;;;;;;;AAWA,IAAa,IAAqB;CAAE;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI;CAAI,SAAS;CAAM,SAAS;AAAK"}
|
package/dist/schema/types.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import type { SchemaExpansionStore } from './helpers/schema-expansion';
|
|
|
8
8
|
* These options should be prop drilled through the Schema component tree and shouldn't be changed
|
|
9
9
|
*/
|
|
10
10
|
export type SchemaOptions = {
|
|
11
|
+
/** Keep a host-linked property anchor available beyond the usual heading levels. */
|
|
12
|
+
linkablePropertyPath?: readonly string[];
|
|
11
13
|
/** Hide read-only properties */
|
|
12
14
|
hideReadOnly?: boolean;
|
|
13
15
|
/** Hide write-only properties */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAA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
|
|
|
1
|
+
import { type NodeInput } from '@scalar/workspace-store/helpers/get-resolved-ref';
|
|
2
|
+
import type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value?: NodeInput<ExternalDocumentationObject>;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=ExternalDocs.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalDocs.vue.d.ts","sourceRoot":"","sources":["../../src/shared/ExternalDocs.vue"],"names":[],"mappings":"AA2DA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,kDAAkD,CAAA;AACzD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8DAA8D,CAAA;AAG/G,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,CAAC,CAAA;CAC/C,CAAC;AAkHF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalDocs.vue.js","names":[],"sources":["../../src/shared/ExternalDocs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { sanitizeUrl } from '@scalar/helpers/url/is-safe-url'\nimport { ScalarIconBook } from '@scalar/icons'\nimport {\n getResolvedRef,\n type NodeInput,\n} from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value?: NodeInput<ExternalDocumentationObject>\n}>()\n\nconst documentation = computed<ExternalDocumentationObject | undefined>(() => {\n const resolved = getResolvedRef(value)\n return resolved && typeof resolved.url === 'string' && resolved.url\n ? resolved\n : undefined\n})\n/** Unsafe URL protocols fall back to a plain-text label. */\nconst url = computed<string | undefined>(() =>\n sanitizeUrl(documentation.value?.url),\n)\n</script>\n\n<template>\n <template v-if=\"documentation\">\n <div\n class=\"group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0\">\n <component\n :is=\"url ? 'a' : 'span'\"\n :aria-label=\"documentation.description || documentation.url\"\n class=\"text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0\"\n :href=\"url\"\n :rel=\"url ? 'noopener noreferrer' : undefined\"\n :target=\"url ? '_blank' : undefined\">\n <ScalarIconBook\n class=\"size-3 text-current\"\n weight=\"bold\" />\n <span\n v-if=\"documentation.description\"\n class=\"ml-1 empty:hidden\">\n {{ documentation.description }}\n </span>\n <span\n v-else\n class=\"ml-1 empty:hidden\">\n {{ documentation.url }}\n </span>\n </component>\n </div>\n </template>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, resolveDynamicComponent as s, toDisplayString as c, unref as l, withCtx as u } from "vue";
|
|
2
|
+
import { ScalarIconBook as d } from "@scalar/icons";
|
|
3
|
+
import { getResolvedRef as f } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
+
import { sanitizeUrl as p } from "@scalar/helpers/url/is-safe-url";
|
|
5
|
+
//#region src/shared/ExternalDocs.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var m = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0"
|
|
9
|
+
}, h = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "ml-1 empty:hidden"
|
|
12
|
+
}, g = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "ml-1 empty:hidden"
|
|
15
|
+
}, _ = /*@__PURE__*/ a({
|
|
16
|
+
__name: "ExternalDocs",
|
|
17
|
+
props: { value: {} },
|
|
18
|
+
setup(a) {
|
|
19
|
+
let _ = e(() => {
|
|
20
|
+
let e = f(a.value);
|
|
21
|
+
return e && typeof e.url == "string" && e.url ? e : void 0;
|
|
22
|
+
}), v = e(() => p(_.value?.url));
|
|
23
|
+
return (e, a) => _.value ? (o(), r("div", m, [(o(), t(s(v.value ? "a" : "span"), {
|
|
24
|
+
"aria-label": _.value.description || _.value.url,
|
|
25
|
+
class: "text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0",
|
|
26
|
+
href: v.value,
|
|
27
|
+
rel: v.value ? "noopener noreferrer" : void 0,
|
|
28
|
+
target: v.value ? "_blank" : void 0
|
|
29
|
+
}, {
|
|
30
|
+
default: u(() => [i(l(d), {
|
|
31
|
+
class: "size-3 text-current",
|
|
32
|
+
weight: "bold"
|
|
33
|
+
}), _.value.description ? (o(), r("span", h, c(_.value.description), 1)) : (o(), r("span", g, c(_.value.url), 1))]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, [
|
|
36
|
+
"aria-label",
|
|
37
|
+
"href",
|
|
38
|
+
"rel",
|
|
39
|
+
"target"
|
|
40
|
+
]))])) : n("", !0);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { _ as default };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=ExternalDocs.vue.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalDocs.vue.script.js","names":[],"sources":["../../src/shared/ExternalDocs.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { sanitizeUrl } from '@scalar/helpers/url/is-safe-url'\nimport { ScalarIconBook } from '@scalar/icons'\nimport {\n getResolvedRef,\n type NodeInput,\n} from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { ExternalDocumentationObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'\nimport { computed } from 'vue'\n\nconst { value } = defineProps<{\n value?: NodeInput<ExternalDocumentationObject>\n}>()\n\nconst documentation = computed<ExternalDocumentationObject | undefined>(() => {\n const resolved = getResolvedRef(value)\n return resolved && typeof resolved.url === 'string' && resolved.url\n ? resolved\n : undefined\n})\n/** Unsafe URL protocols fall back to a plain-text label. */\nconst url = computed<string | undefined>(() =>\n sanitizeUrl(documentation.value?.url),\n)\n</script>\n\n<template>\n <template v-if=\"documentation\">\n <div\n class=\"group narrow:border-r-0 narrow:first:ml-0 flex items-center border-r first:ml-auto last:border-r-0\">\n <component\n :is=\"url ? 'a' : 'span'\"\n :aria-label=\"documentation.description || documentation.url\"\n class=\"text-c-1 hover:bg-b-2 narrow:border mr-2 flex min-h-7 min-w-7 items-center rounded-lg px-2 py-1 no-underline group-last:mr-0\"\n :href=\"url\"\n :rel=\"url ? 'noopener noreferrer' : undefined\"\n :target=\"url ? '_blank' : undefined\">\n <ScalarIconBook\n class=\"size-3 text-current\"\n weight=\"bold\" />\n <span\n v-if=\"documentation.description\"\n class=\"ml-1 empty:hidden\">\n {{ documentation.description }}\n </span>\n <span\n v-else\n class=\"ml-1 empty:hidden\">\n {{ documentation.url }}\n </span>\n </component>\n </div>\n </template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAcA,IAAM,IAAgB,QAAwD;GAC5E,IAAM,IAAW,EAAe,EAAA,KAAK;GACrC,OAAO,KAAY,OAAO,EAAS,OAAQ,YAAY,EAAS,MAC5D,IACA,KAAA;EACN,CAAC,GAEK,IAAM,QACV,EAAY,EAAc,OAAO,GAAG,CACtC;mBAIkB,EAAA,SAAA,EAAA,GACd,EAuBM,OAvBN,GAuBM,EAAA,EAAA,GArBJ,EAoBY,EAnBL,EAAA,QAAG,MAAA,MAAA,GAAA;GACP,cAAY,EAAA,MAAc,eAAe,EAAA,MAAc;GACxD,OAAM;GACL,MAAM,EAAA;GACN,KAAK,EAAA,QAAG,wBAA2B,KAAA;GACnC,QAAQ,EAAA,QAAG,WAAc,KAAA;;oBAGR,CAFlB,EAEkB,EAAA,CAAA,GAAA;IADhB,OAAM;IACN,QAAO;OAED,EAAA,MAAc,eAAA,EAAA,GADtB,EAIO,QAJP,GAIO,EADF,EAAA,MAAc,WAAW,GAAA,CAAA,MAAA,EAAA,GAE9B,EAIO,QAJP,GAIO,EADF,EAAA,MAAc,GAAG,GAAA,CAAA,EAAA,CAAA"}
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
package/dist/shared/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
|
|
1
|
+
import e from "./ExternalDocs.vue.js";
|
|
2
|
+
import t from "./ScreenReader.vue.js";
|
|
3
|
+
import n from "./Badge.vue.js";
|
|
4
|
+
export { n as Badge, e as ExternalDocs, t as ScreenReader };
|