@gitbook/react-openapi 1.2.0 → 1.3.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/CHANGELOG.md +26 -0
- package/dist/OpenAPIDisclosure.d.ts +1 -0
- package/dist/OpenAPIDisclosure.jsx +6 -3
- package/dist/OpenAPIDisclosureGroup.jsx +17 -16
- package/dist/OpenAPIResponse.jsx +18 -2
- package/dist/OpenAPIResponseExample.jsx +8 -3
- package/dist/OpenAPIResponses.jsx +7 -2
- package/dist/OpenAPISchema.d.ts +9 -2
- package/dist/OpenAPISchema.jsx +93 -59
- package/dist/OpenAPISchemaName.d.ts +1 -1
- package/dist/OpenAPISchemaName.jsx +1 -1
- package/dist/StaticSection.jsx +1 -1
- package/dist/code-samples.js +5 -2
- package/dist/generateSchemaExample.js +5 -0
- package/dist/getDisclosureLabel.d.ts +7 -0
- package/dist/getDisclosureLabel.js +18 -0
- package/dist/schemas/OpenAPISchemaItem.d.ts +7 -0
- package/dist/schemas/OpenAPISchemaItem.jsx +16 -0
- package/dist/schemas/OpenAPISchemas.jsx +3 -9
- package/dist/translations/de.d.ts +6 -1
- package/dist/translations/de.js +9 -4
- package/dist/translations/en.d.ts +6 -1
- package/dist/translations/en.js +8 -3
- package/dist/translations/es.d.ts +6 -1
- package/dist/translations/es.js +9 -4
- package/dist/translations/fr.d.ts +6 -1
- package/dist/translations/fr.js +10 -5
- package/dist/translations/index.d.ts +54 -9
- package/dist/translations/ja.d.ts +6 -1
- package/dist/translations/ja.js +8 -3
- package/dist/translations/nl.d.ts +6 -1
- package/dist/translations/nl.js +8 -3
- package/dist/translations/no.d.ts +6 -1
- package/dist/translations/no.js +9 -4
- package/dist/translations/pt-br.d.ts +6 -1
- package/dist/translations/pt-br.js +9 -4
- package/dist/translations/zh.d.ts +6 -1
- package/dist/translations/zh.js +9 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/OpenAPIDisclosure.tsx +7 -3
- package/src/OpenAPIDisclosureGroup.tsx +49 -47
- package/src/OpenAPIResponse.tsx +34 -2
- package/src/OpenAPIResponseExample.tsx +36 -34
- package/src/OpenAPIResponses.tsx +5 -4
- package/src/OpenAPISchema.tsx +167 -103
- package/src/OpenAPISchemaName.tsx +2 -2
- package/src/StaticSection.tsx +1 -1
- package/src/code-samples.test.ts +2 -1
- package/src/code-samples.ts +5 -2
- package/src/generateSchemaExample.ts +8 -0
- package/src/getDisclosureLabel.ts +25 -0
- package/src/schemas/OpenAPISchemaItem.tsx +34 -0
- package/src/schemas/OpenAPISchemas.tsx +7 -13
- package/src/translations/de.ts +9 -4
- package/src/translations/en.ts +8 -3
- package/src/translations/es.ts +9 -4
- package/src/translations/fr.ts +10 -5
- package/src/translations/ja.ts +8 -3
- package/src/translations/nl.ts +8 -3
- package/src/translations/no.ts +9 -4
- package/src/translations/pt-br.ts +9 -4
- package/src/translations/zh.ts +9 -4
package/src/translations/fr.ts
CHANGED
|
@@ -18,20 +18,25 @@ export const fr = {
|
|
|
18
18
|
nullable: 'Nullable',
|
|
19
19
|
body: 'Corps',
|
|
20
20
|
payload: 'Charge utile',
|
|
21
|
-
headers: '
|
|
21
|
+
headers: 'Headers',
|
|
22
|
+
header: 'Header',
|
|
22
23
|
authorizations: 'Autorisations',
|
|
23
24
|
responses: 'Réponses',
|
|
25
|
+
response: 'Réponse',
|
|
24
26
|
path_parameters: 'Paramètres de chemin',
|
|
25
27
|
query_parameters: 'Paramètres de requête',
|
|
26
|
-
header_parameters:
|
|
28
|
+
header_parameters: "Paramètres d'en-tête",
|
|
27
29
|
attributes: 'Attributs',
|
|
28
30
|
test_it: 'Tester',
|
|
29
31
|
information: 'Information',
|
|
30
32
|
success: 'Succès',
|
|
31
33
|
redirect: 'Redirection',
|
|
32
34
|
error: 'Erreur',
|
|
33
|
-
show: 'Afficher',
|
|
34
|
-
hide: 'Masquer',
|
|
35
|
+
show: 'Afficher ${1}',
|
|
36
|
+
hide: 'Masquer ${1}',
|
|
35
37
|
available_items: 'Éléments disponibles',
|
|
36
|
-
|
|
38
|
+
properties: 'Propriétés',
|
|
39
|
+
or: 'ou',
|
|
40
|
+
and: 'et',
|
|
41
|
+
possible_values: 'Valeurs possibles',
|
|
37
42
|
};
|
package/src/translations/ja.ts
CHANGED
|
@@ -19,8 +19,10 @@ export const ja = {
|
|
|
19
19
|
body: '本文',
|
|
20
20
|
payload: 'ペイロード',
|
|
21
21
|
headers: 'ヘッダー',
|
|
22
|
+
header: 'ヘッダー',
|
|
22
23
|
authorizations: '認可',
|
|
23
24
|
responses: 'レスポンス',
|
|
25
|
+
response: 'レスポンス',
|
|
24
26
|
path_parameters: 'パスパラメータ',
|
|
25
27
|
query_parameters: 'クエリパラメータ',
|
|
26
28
|
header_parameters: 'ヘッダーパラメータ',
|
|
@@ -30,8 +32,11 @@ export const ja = {
|
|
|
30
32
|
success: '成功',
|
|
31
33
|
redirect: 'リダイレクト',
|
|
32
34
|
error: 'エラー',
|
|
33
|
-
show: '
|
|
34
|
-
hide: '
|
|
35
|
+
show: '${1}を表示',
|
|
36
|
+
hide: '${1}を非表示',
|
|
35
37
|
available_items: '利用可能なアイテム',
|
|
36
|
-
|
|
38
|
+
properties: 'プロパティ',
|
|
39
|
+
or: 'または',
|
|
40
|
+
and: 'かつ',
|
|
41
|
+
possible_values: '可能な値',
|
|
37
42
|
};
|
package/src/translations/nl.ts
CHANGED
|
@@ -19,8 +19,10 @@ export const nl = {
|
|
|
19
19
|
body: 'Body',
|
|
20
20
|
payload: 'Payload',
|
|
21
21
|
headers: 'Headers',
|
|
22
|
+
header: 'Header',
|
|
22
23
|
authorizations: 'Autorisaties',
|
|
23
24
|
responses: 'Reacties',
|
|
25
|
+
response: 'Reactie',
|
|
24
26
|
path_parameters: 'Padparameters',
|
|
25
27
|
query_parameters: 'Queryparameters',
|
|
26
28
|
header_parameters: 'Headerparameters',
|
|
@@ -30,8 +32,11 @@ export const nl = {
|
|
|
30
32
|
success: 'Succes',
|
|
31
33
|
redirect: 'Omleiding',
|
|
32
34
|
error: 'Fout',
|
|
33
|
-
show: 'Toon',
|
|
34
|
-
hide: '
|
|
35
|
+
show: 'Toon ${1}',
|
|
36
|
+
hide: 'Verberg ${1}',
|
|
35
37
|
available_items: 'Beschikbare items',
|
|
36
|
-
|
|
38
|
+
properties: 'Eigenschappen',
|
|
39
|
+
or: 'of',
|
|
40
|
+
and: 'en',
|
|
41
|
+
possible_values: 'Mogelijke waarden',
|
|
37
42
|
};
|
package/src/translations/no.ts
CHANGED
|
@@ -18,9 +18,11 @@ export const no = {
|
|
|
18
18
|
nullable: 'Kan være null',
|
|
19
19
|
body: 'Brødtekst',
|
|
20
20
|
payload: 'Nyttelast',
|
|
21
|
-
headers: '
|
|
21
|
+
headers: 'Headers',
|
|
22
|
+
header: 'Header',
|
|
22
23
|
authorizations: 'Autorisasjoner',
|
|
23
24
|
responses: 'Responser',
|
|
25
|
+
response: 'Respons',
|
|
24
26
|
path_parameters: 'Sti-parametere',
|
|
25
27
|
query_parameters: 'Forespørselsparametere',
|
|
26
28
|
header_parameters: 'Header-parametere',
|
|
@@ -30,8 +32,11 @@ export const no = {
|
|
|
30
32
|
success: 'Suksess',
|
|
31
33
|
redirect: 'Viderekobling',
|
|
32
34
|
error: 'Feil',
|
|
33
|
-
show: 'Vis',
|
|
34
|
-
hide: 'Skjul',
|
|
35
|
+
show: 'Vis ${1}',
|
|
36
|
+
hide: 'Skjul ${1}',
|
|
35
37
|
available_items: 'Tilgjengelige elementer',
|
|
36
|
-
|
|
38
|
+
properties: 'Egenskaper',
|
|
39
|
+
or: 'eller',
|
|
40
|
+
and: 'og',
|
|
41
|
+
possible_values: 'Mulige verdier',
|
|
37
42
|
};
|
|
@@ -18,9 +18,11 @@ export const pt_br = {
|
|
|
18
18
|
nullable: 'Nulo',
|
|
19
19
|
body: 'Corpo',
|
|
20
20
|
payload: 'Carga útil',
|
|
21
|
-
headers: '
|
|
21
|
+
headers: 'Headers',
|
|
22
|
+
header: 'Header',
|
|
22
23
|
authorizations: 'Autorizações',
|
|
23
24
|
responses: 'Respostas',
|
|
25
|
+
response: 'Resposta',
|
|
24
26
|
path_parameters: 'Parâmetros de rota',
|
|
25
27
|
query_parameters: 'Parâmetros de consulta',
|
|
26
28
|
header_parameters: 'Parâmetros de cabeçalho',
|
|
@@ -30,8 +32,11 @@ export const pt_br = {
|
|
|
30
32
|
success: 'Sucesso',
|
|
31
33
|
redirect: 'Redirecionamento',
|
|
32
34
|
error: 'Erro',
|
|
33
|
-
show: 'Mostrar',
|
|
34
|
-
hide: 'Ocultar',
|
|
35
|
+
show: 'Mostrar ${1}',
|
|
36
|
+
hide: 'Ocultar ${1}',
|
|
35
37
|
available_items: 'Itens disponíveis',
|
|
36
|
-
|
|
38
|
+
properties: 'Propriedades',
|
|
39
|
+
or: 'ou',
|
|
40
|
+
and: 'e',
|
|
41
|
+
possible_values: 'Valores possíveis',
|
|
37
42
|
};
|
package/src/translations/zh.ts
CHANGED
|
@@ -18,9 +18,11 @@ export const zh = {
|
|
|
18
18
|
nullable: '可为 null',
|
|
19
19
|
body: '请求体',
|
|
20
20
|
payload: '有效载荷',
|
|
21
|
-
headers: '
|
|
21
|
+
headers: '头字段',
|
|
22
|
+
header: '头部',
|
|
22
23
|
authorizations: '授权',
|
|
23
24
|
responses: '响应',
|
|
25
|
+
response: '响应',
|
|
24
26
|
path_parameters: '路径参数',
|
|
25
27
|
query_parameters: '查询参数',
|
|
26
28
|
header_parameters: '头参数',
|
|
@@ -30,8 +32,11 @@ export const zh = {
|
|
|
30
32
|
success: '成功',
|
|
31
33
|
redirect: '重定向',
|
|
32
34
|
error: '错误',
|
|
33
|
-
show: '
|
|
34
|
-
hide: '
|
|
35
|
+
show: '显示${1}',
|
|
36
|
+
hide: '隐藏${1}',
|
|
35
37
|
available_items: '可用项',
|
|
36
|
-
|
|
38
|
+
properties: '属性',
|
|
39
|
+
or: '或',
|
|
40
|
+
and: '和',
|
|
41
|
+
possible_values: '可能的值',
|
|
37
42
|
};
|