@umami/shiso 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App.js +147 -160
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +1 -1
- package/dist/chunks/chunk-GMAD6QVW.js +1 -1
- package/dist/chunks/cose-bilkent-JH36ORCC.js +1 -1
- package/dist/chunks/dist.js +1 -1
- package/dist/chunks/docs.js +668 -22
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +1 -1
- package/dist/chunks/src.js +1 -1
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +1 -1
- package/docs.schema.json +4 -0
- package/package.json +1 -1
- package/scripts/check-content.mjs +2 -0
- package/scripts/load-shiso-config.mjs +30 -1
- package/src/App.tsx +32 -22
- package/src/components/CodeBlock.tsx +3 -1
- package/src/components/Docs.tsx +3 -1
- package/src/components/Footer.tsx +3 -1
- package/src/components/Header.tsx +4 -3
- package/src/components/LanguageSwitcher.tsx +17 -4
- package/src/components/OpenApiOperation.tsx +22 -15
- package/src/components/PageActions.tsx +8 -7
- package/src/components/docs/Changelog.tsx +5 -5
- package/src/components/docs/CodeGroup.tsx +3 -1
- package/src/components/docs/Mermaid.tsx +8 -6
- package/src/components/docs/PropertiesTable.tsx +11 -6
- package/src/components/docs/Tabs.tsx +3 -1
- package/src/components/docs/Tree.tsx +3 -1
- package/src/components/docs/ZoomableImage.tsx +4 -2
- package/src/components/ui/dialog.tsx +7 -2
- package/src/components/ui/sheet.tsx +5 -2
- package/src/lib/label-context.tsx +7 -0
- package/src/lib/labels.ts +37 -0
- package/src/lib/openapi.ts +21 -8
- package/src/lib/site-config.ts +66 -2
- package/src/lib/site-model.ts +2 -32
- package/src/lib/standalone-pages.ts +15 -1
- package/src/lib/translations/de.json +74 -0
- package/src/lib/translations/en.json +74 -0
- package/src/lib/translations/es.json +74 -0
- package/src/lib/translations/fr.json +74 -0
- package/src/lib/translations/ja.json +74 -0
- package/src/lib/translations/zh-Hans.json +74 -0
- package/src/lib/translations/zh-Hant.json +74 -0
- package/src/lib/types.ts +20 -32
- package/types/config.d.ts +7 -1
- package/types/labels.d.ts +76 -0
package/dist/chunks/docs.js
CHANGED
|
@@ -8636,6 +8636,639 @@ function addEventListener(target, type, listener, options) {
|
|
|
8636
8636
|
};
|
|
8637
8637
|
}
|
|
8638
8638
|
|
|
8639
|
+
//#endregion
|
|
8640
|
+
//#region src/lib/locale.ts
|
|
8641
|
+
/** Primary language subtags written right-to-left. */
|
|
8642
|
+
const RTL_LANGUAGES = /* @__PURE__ */ new Set([
|
|
8643
|
+
"ar",
|
|
8644
|
+
"ckb",
|
|
8645
|
+
"dv",
|
|
8646
|
+
"fa",
|
|
8647
|
+
"he",
|
|
8648
|
+
"iw",
|
|
8649
|
+
"ps",
|
|
8650
|
+
"sd",
|
|
8651
|
+
"ug",
|
|
8652
|
+
"ur",
|
|
8653
|
+
"yi"
|
|
8654
|
+
]);
|
|
8655
|
+
/** BCP 47-shaped tags with a 2-3 letter primary subtag, e.g. "es" or "pt-BR". */
|
|
8656
|
+
const LOCALE_PATTERN = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
|
|
8657
|
+
function isValidLocale(value) {
|
|
8658
|
+
if (!value || !LOCALE_PATTERN.test(value)) return false;
|
|
8659
|
+
try {
|
|
8660
|
+
return Intl.getCanonicalLocales(value).length > 0;
|
|
8661
|
+
} catch {
|
|
8662
|
+
return false;
|
|
8663
|
+
}
|
|
8664
|
+
}
|
|
8665
|
+
/**
|
|
8666
|
+
* Locale for a page: its scope's language code when valid, then the
|
|
8667
|
+
* site-wide shiso.config `locale`, then en-US.
|
|
8668
|
+
*/
|
|
8669
|
+
function resolveLocale(language, fallback) {
|
|
8670
|
+
if (isValidLocale(language)) return Intl.getCanonicalLocales(language)[0];
|
|
8671
|
+
if (isValidLocale(fallback)) return Intl.getCanonicalLocales(fallback)[0];
|
|
8672
|
+
return "en-US";
|
|
8673
|
+
}
|
|
8674
|
+
/** Document direction for a locale, e.g. "ar" and "he" read right-to-left. */
|
|
8675
|
+
function getTextDirection(locale) {
|
|
8676
|
+
const primary = locale.split("-")[0]?.toLowerCase() || "";
|
|
8677
|
+
return RTL_LANGUAGES.has(primary) ? "rtl" : "ltr";
|
|
8678
|
+
}
|
|
8679
|
+
/**
|
|
8680
|
+
* A language's name written in that language, for language selectors:
|
|
8681
|
+
* "ja" -> "日本語", "zh-Hant" -> "繁體中文", "es" -> "Español". Labels that
|
|
8682
|
+
* are not valid locale codes (e.g. "English") are returned unchanged.
|
|
8683
|
+
*/
|
|
8684
|
+
function getLanguageName(language) {
|
|
8685
|
+
if (!isValidLocale(language)) return language;
|
|
8686
|
+
const locale = Intl.getCanonicalLocales(language)[0];
|
|
8687
|
+
try {
|
|
8688
|
+
const name = new Intl.DisplayNames([locale], {
|
|
8689
|
+
type: "language",
|
|
8690
|
+
fallback: "none"
|
|
8691
|
+
}).of(locale);
|
|
8692
|
+
if (!name) return language;
|
|
8693
|
+
return name.charAt(0).toLocaleUpperCase(locale) + name.slice(1);
|
|
8694
|
+
} catch {
|
|
8695
|
+
return language;
|
|
8696
|
+
}
|
|
8697
|
+
}
|
|
8698
|
+
|
|
8699
|
+
//#endregion
|
|
8700
|
+
//#region src/lib/translations/de.json
|
|
8701
|
+
var de_default = {
|
|
8702
|
+
menu: "Menü",
|
|
8703
|
+
documentationNavigation: "Dokumentationsnavigation",
|
|
8704
|
+
sections: "Abschnitte",
|
|
8705
|
+
tableOfContents: "Auf dieser Seite",
|
|
8706
|
+
tableOfContentsNavigation: "Inhaltsverzeichnis",
|
|
8707
|
+
searchTitle: "Suchen",
|
|
8708
|
+
searching: "Suche läuft...",
|
|
8709
|
+
searchUnavailable: "Suche nicht verfügbar",
|
|
8710
|
+
noResults: "Keine Ergebnisse",
|
|
8711
|
+
lastUpdated: "Zuletzt aktualisiert am",
|
|
8712
|
+
relatedTopics: "Verwandte Themen",
|
|
8713
|
+
previousPage: "Zurück",
|
|
8714
|
+
nextPage: "Weiter",
|
|
8715
|
+
notFound: "Seite nicht gefunden",
|
|
8716
|
+
dismissBanner: "Banner schließen",
|
|
8717
|
+
toggleTheme: "Design wechseln",
|
|
8718
|
+
moreOptions: "Weitere Optionen",
|
|
8719
|
+
copied: "Kopiert",
|
|
8720
|
+
expand: "Aufklappen",
|
|
8721
|
+
collapse: "Zuklappen",
|
|
8722
|
+
copyPage: "Seite kopieren",
|
|
8723
|
+
copyPageDescription: "Diese Seite als Markdown kopieren",
|
|
8724
|
+
viewMarkdown: "Als Markdown anzeigen",
|
|
8725
|
+
viewMarkdownDescription: "Diese Seite als reinen Markdown-Text öffnen",
|
|
8726
|
+
openInChatGPT: "In ChatGPT öffnen",
|
|
8727
|
+
openInClaude: "In Claude öffnen",
|
|
8728
|
+
openInPerplexity: "In Perplexity öffnen",
|
|
8729
|
+
askQuestionsAboutPage: "Fragen zu dieser Seite stellen",
|
|
8730
|
+
searchPlaceholder: "Suchen...",
|
|
8731
|
+
poweredBy: "Erstellt mit",
|
|
8732
|
+
copyCode: "Code kopieren",
|
|
8733
|
+
editPage: "Diese Seite bearbeiten",
|
|
8734
|
+
feedbackPrompt: "War diese Seite hilfreich?",
|
|
8735
|
+
feedbackYes: "Ja",
|
|
8736
|
+
feedbackNo: "Nein",
|
|
8737
|
+
feedbackSuccess: "Vielen Dank für dein Feedback!",
|
|
8738
|
+
feedbackError: "Feedback konnte nicht gesendet werden. Bitte versuche es erneut.",
|
|
8739
|
+
close: "Schließen",
|
|
8740
|
+
filterUpdates: "Aktualisierungen nach Tag filtern",
|
|
8741
|
+
clear: "Zurücksetzen",
|
|
8742
|
+
noUpdates: "Keine Aktualisierungen gefunden.",
|
|
8743
|
+
codeSnippets: "Codebeispiele",
|
|
8744
|
+
contentTabs: "Inhaltsregisterkarten",
|
|
8745
|
+
fileTree: "Dateibaum",
|
|
8746
|
+
diagram: "Diagramm",
|
|
8747
|
+
diagramError: "Dieses Diagramm konnte nicht angezeigt werden.",
|
|
8748
|
+
zoomOut: "Verkleinern",
|
|
8749
|
+
resetView: "Ansicht zurücksetzen",
|
|
8750
|
+
zoomIn: "Vergrößern",
|
|
8751
|
+
viewImage: "Bild in voller Größe anzeigen",
|
|
8752
|
+
viewNamedImage: "„{alt}“ in voller Größe anzeigen",
|
|
8753
|
+
fullSizeImage: "Bild in voller Größe",
|
|
8754
|
+
diagramSource: "Diagrammquelltext",
|
|
8755
|
+
fieldName: "Name",
|
|
8756
|
+
fieldType: "Typ",
|
|
8757
|
+
fieldDescription: "Beschreibung",
|
|
8758
|
+
fieldRequired: "erforderlich",
|
|
8759
|
+
fieldDeprecated: "veraltet",
|
|
8760
|
+
fieldDefault: "Standard:",
|
|
8761
|
+
fieldOptions: "Optionen:",
|
|
8762
|
+
allowedTypes: "Zulässige Typen",
|
|
8763
|
+
properties: "Eigenschaften",
|
|
8764
|
+
apiHeaders: "Header",
|
|
8765
|
+
apiPathParameters: "Pfadparameter",
|
|
8766
|
+
apiQueryParameters: "Abfrageparameter",
|
|
8767
|
+
apiCookieParameters: "Cookie-Parameter",
|
|
8768
|
+
apiRequestBody: "Anfragetext",
|
|
8769
|
+
apiResponses: "Antworten",
|
|
8770
|
+
apiCodeSamples: "Codebeispiele",
|
|
8771
|
+
apiExampleRequest: "Beispielanfrage",
|
|
8772
|
+
apiExampleResponse: "Beispiel für {status}",
|
|
8773
|
+
apiCredentials: "Anmeldedaten, z. B."
|
|
8774
|
+
};
|
|
8775
|
+
|
|
8776
|
+
//#endregion
|
|
8777
|
+
//#region src/lib/translations/en.json
|
|
8778
|
+
var en_default = {
|
|
8779
|
+
menu: "Menu",
|
|
8780
|
+
documentationNavigation: "Documentation navigation",
|
|
8781
|
+
sections: "Sections",
|
|
8782
|
+
tableOfContents: "On this page",
|
|
8783
|
+
tableOfContentsNavigation: "Table of contents",
|
|
8784
|
+
searchTitle: "Search",
|
|
8785
|
+
searching: "Searching...",
|
|
8786
|
+
searchUnavailable: "Search unavailable",
|
|
8787
|
+
noResults: "No results",
|
|
8788
|
+
lastUpdated: "Last updated on",
|
|
8789
|
+
relatedTopics: "Related topics",
|
|
8790
|
+
previousPage: "Previous",
|
|
8791
|
+
nextPage: "Next",
|
|
8792
|
+
notFound: "Page not found",
|
|
8793
|
+
dismissBanner: "Dismiss banner",
|
|
8794
|
+
toggleTheme: "Toggle theme",
|
|
8795
|
+
moreOptions: "More options",
|
|
8796
|
+
copied: "Copied",
|
|
8797
|
+
expand: "Expand",
|
|
8798
|
+
collapse: "Collapse",
|
|
8799
|
+
copyPage: "Copy page",
|
|
8800
|
+
copyPageDescription: "Copy this page as Markdown",
|
|
8801
|
+
viewMarkdown: "View as Markdown",
|
|
8802
|
+
viewMarkdownDescription: "Open this page as plain Markdown",
|
|
8803
|
+
openInChatGPT: "Open in ChatGPT",
|
|
8804
|
+
openInClaude: "Open in Claude",
|
|
8805
|
+
openInPerplexity: "Open in Perplexity",
|
|
8806
|
+
askQuestionsAboutPage: "Ask questions about this page",
|
|
8807
|
+
searchPlaceholder: "Search...",
|
|
8808
|
+
poweredBy: "Powered by",
|
|
8809
|
+
copyCode: "Copy code",
|
|
8810
|
+
editPage: "Edit this page",
|
|
8811
|
+
feedbackPrompt: "Was this page helpful?",
|
|
8812
|
+
feedbackYes: "Yes",
|
|
8813
|
+
feedbackNo: "No",
|
|
8814
|
+
feedbackSuccess: "Thanks for your feedback!",
|
|
8815
|
+
feedbackError: "Could not send feedback. Please try again.",
|
|
8816
|
+
close: "Close",
|
|
8817
|
+
filterUpdates: "Filter updates by tag",
|
|
8818
|
+
clear: "Clear",
|
|
8819
|
+
noUpdates: "No updates found.",
|
|
8820
|
+
codeSnippets: "Code snippets",
|
|
8821
|
+
contentTabs: "Content tabs",
|
|
8822
|
+
fileTree: "File tree",
|
|
8823
|
+
diagram: "Diagram",
|
|
8824
|
+
diagramError: "Could not render this diagram.",
|
|
8825
|
+
zoomOut: "Zoom out",
|
|
8826
|
+
resetView: "Reset view",
|
|
8827
|
+
zoomIn: "Zoom in",
|
|
8828
|
+
viewImage: "View image full size",
|
|
8829
|
+
viewNamedImage: "View “{alt}” full size",
|
|
8830
|
+
fullSizeImage: "Full-size image",
|
|
8831
|
+
diagramSource: "Diagram source",
|
|
8832
|
+
fieldName: "Name",
|
|
8833
|
+
fieldType: "Type",
|
|
8834
|
+
fieldDescription: "Description",
|
|
8835
|
+
fieldRequired: "required",
|
|
8836
|
+
fieldDeprecated: "deprecated",
|
|
8837
|
+
fieldDefault: "Default:",
|
|
8838
|
+
fieldOptions: "Options:",
|
|
8839
|
+
allowedTypes: "Allowed types",
|
|
8840
|
+
properties: "properties",
|
|
8841
|
+
apiHeaders: "Headers",
|
|
8842
|
+
apiPathParameters: "Path parameters",
|
|
8843
|
+
apiQueryParameters: "Query parameters",
|
|
8844
|
+
apiCookieParameters: "Cookie parameters",
|
|
8845
|
+
apiRequestBody: "Request body",
|
|
8846
|
+
apiResponses: "Responses",
|
|
8847
|
+
apiCodeSamples: "Code samples",
|
|
8848
|
+
apiExampleRequest: "Example request",
|
|
8849
|
+
apiExampleResponse: "{status} example",
|
|
8850
|
+
apiCredentials: "Authentication credentials, e.g."
|
|
8851
|
+
};
|
|
8852
|
+
|
|
8853
|
+
//#endregion
|
|
8854
|
+
//#region src/lib/translations/es.json
|
|
8855
|
+
var es_default = {
|
|
8856
|
+
menu: "Menú",
|
|
8857
|
+
documentationNavigation: "Navegación de documentación",
|
|
8858
|
+
sections: "Secciones",
|
|
8859
|
+
tableOfContents: "En esta página",
|
|
8860
|
+
tableOfContentsNavigation: "Índice",
|
|
8861
|
+
searchTitle: "Buscar",
|
|
8862
|
+
searching: "Buscando...",
|
|
8863
|
+
searchUnavailable: "Búsqueda no disponible",
|
|
8864
|
+
noResults: "Sin resultados",
|
|
8865
|
+
lastUpdated: "Última actualización el",
|
|
8866
|
+
relatedTopics: "Temas relacionados",
|
|
8867
|
+
previousPage: "Anterior",
|
|
8868
|
+
nextPage: "Siguiente",
|
|
8869
|
+
notFound: "Página no encontrada",
|
|
8870
|
+
dismissBanner: "Cerrar aviso",
|
|
8871
|
+
toggleTheme: "Cambiar tema",
|
|
8872
|
+
moreOptions: "Más opciones",
|
|
8873
|
+
copied: "Copiado",
|
|
8874
|
+
expand: "Expandir",
|
|
8875
|
+
collapse: "Contraer",
|
|
8876
|
+
copyPage: "Copiar página",
|
|
8877
|
+
copyPageDescription: "Copiar esta página como Markdown",
|
|
8878
|
+
viewMarkdown: "Ver como Markdown",
|
|
8879
|
+
viewMarkdownDescription: "Abrir esta página como Markdown sin formato",
|
|
8880
|
+
openInChatGPT: "Abrir en ChatGPT",
|
|
8881
|
+
openInClaude: "Abrir en Claude",
|
|
8882
|
+
openInPerplexity: "Abrir en Perplexity",
|
|
8883
|
+
askQuestionsAboutPage: "Hacer preguntas sobre esta página",
|
|
8884
|
+
searchPlaceholder: "Buscar...",
|
|
8885
|
+
poweredBy: "Desarrollado con",
|
|
8886
|
+
copyCode: "Copiar código",
|
|
8887
|
+
editPage: "Editar esta página",
|
|
8888
|
+
feedbackPrompt: "¿Te ha resultado útil esta página?",
|
|
8889
|
+
feedbackYes: "Sí",
|
|
8890
|
+
feedbackNo: "No",
|
|
8891
|
+
feedbackSuccess: "¡Gracias por tus comentarios!",
|
|
8892
|
+
feedbackError: "No se pudieron enviar los comentarios. Inténtalo de nuevo.",
|
|
8893
|
+
close: "Cerrar",
|
|
8894
|
+
filterUpdates: "Filtrar novedades por etiqueta",
|
|
8895
|
+
clear: "Limpiar",
|
|
8896
|
+
noUpdates: "No se encontraron novedades.",
|
|
8897
|
+
codeSnippets: "Fragmentos de código",
|
|
8898
|
+
contentTabs: "Pestañas de contenido",
|
|
8899
|
+
fileTree: "Árbol de archivos",
|
|
8900
|
+
diagram: "Diagrama",
|
|
8901
|
+
diagramError: "No se pudo mostrar este diagrama.",
|
|
8902
|
+
zoomOut: "Alejar",
|
|
8903
|
+
resetView: "Restablecer vista",
|
|
8904
|
+
zoomIn: "Acercar",
|
|
8905
|
+
viewImage: "Ver imagen a tamaño completo",
|
|
8906
|
+
viewNamedImage: "Ver «{alt}» a tamaño completo",
|
|
8907
|
+
fullSizeImage: "Imagen a tamaño completo",
|
|
8908
|
+
diagramSource: "Código del diagrama",
|
|
8909
|
+
fieldName: "Nombre",
|
|
8910
|
+
fieldType: "Tipo",
|
|
8911
|
+
fieldDescription: "Descripción",
|
|
8912
|
+
fieldRequired: "obligatorio",
|
|
8913
|
+
fieldDeprecated: "obsoleto",
|
|
8914
|
+
fieldDefault: "Predeterminado:",
|
|
8915
|
+
fieldOptions: "Opciones:",
|
|
8916
|
+
allowedTypes: "Tipos permitidos",
|
|
8917
|
+
properties: "propiedades",
|
|
8918
|
+
apiHeaders: "Cabeceras",
|
|
8919
|
+
apiPathParameters: "Parámetros de ruta",
|
|
8920
|
+
apiQueryParameters: "Parámetros de consulta",
|
|
8921
|
+
apiCookieParameters: "Parámetros de cookies",
|
|
8922
|
+
apiRequestBody: "Cuerpo de la solicitud",
|
|
8923
|
+
apiResponses: "Respuestas",
|
|
8924
|
+
apiCodeSamples: "Ejemplos de código",
|
|
8925
|
+
apiExampleRequest: "Ejemplo de solicitud",
|
|
8926
|
+
apiExampleResponse: "Ejemplo de {status}",
|
|
8927
|
+
apiCredentials: "Credenciales de autenticación, p. ej."
|
|
8928
|
+
};
|
|
8929
|
+
|
|
8930
|
+
//#endregion
|
|
8931
|
+
//#region src/lib/translations/fr.json
|
|
8932
|
+
var fr_default = {
|
|
8933
|
+
menu: "Menu",
|
|
8934
|
+
documentationNavigation: "Navigation de la documentation",
|
|
8935
|
+
sections: "Sections",
|
|
8936
|
+
tableOfContents: "Sur cette page",
|
|
8937
|
+
tableOfContentsNavigation: "Table des matières",
|
|
8938
|
+
searchTitle: "Rechercher",
|
|
8939
|
+
searching: "Recherche en cours...",
|
|
8940
|
+
searchUnavailable: "Recherche indisponible",
|
|
8941
|
+
noResults: "Aucun résultat",
|
|
8942
|
+
lastUpdated: "Dernière mise à jour le",
|
|
8943
|
+
relatedTopics: "Sujets connexes",
|
|
8944
|
+
previousPage: "Précédent",
|
|
8945
|
+
nextPage: "Suivant",
|
|
8946
|
+
notFound: "Page introuvable",
|
|
8947
|
+
dismissBanner: "Fermer la bannière",
|
|
8948
|
+
toggleTheme: "Changer de thème",
|
|
8949
|
+
moreOptions: "Plus d’options",
|
|
8950
|
+
copied: "Copié",
|
|
8951
|
+
expand: "Développer",
|
|
8952
|
+
collapse: "Réduire",
|
|
8953
|
+
copyPage: "Copier la page",
|
|
8954
|
+
copyPageDescription: "Copier cette page au format Markdown",
|
|
8955
|
+
viewMarkdown: "Voir en Markdown",
|
|
8956
|
+
viewMarkdownDescription: "Ouvrir cette page en Markdown brut",
|
|
8957
|
+
openInChatGPT: "Ouvrir dans ChatGPT",
|
|
8958
|
+
openInClaude: "Ouvrir dans Claude",
|
|
8959
|
+
openInPerplexity: "Ouvrir dans Perplexity",
|
|
8960
|
+
askQuestionsAboutPage: "Poser des questions sur cette page",
|
|
8961
|
+
searchPlaceholder: "Rechercher...",
|
|
8962
|
+
poweredBy: "Propulsé par",
|
|
8963
|
+
copyCode: "Copier le code",
|
|
8964
|
+
editPage: "Modifier cette page",
|
|
8965
|
+
feedbackPrompt: "Cette page vous a-t-elle été utile ?",
|
|
8966
|
+
feedbackYes: "Oui",
|
|
8967
|
+
feedbackNo: "Non",
|
|
8968
|
+
feedbackSuccess: "Merci pour votre avis !",
|
|
8969
|
+
feedbackError: "Impossible d’envoyer votre avis. Veuillez réessayer.",
|
|
8970
|
+
close: "Fermer",
|
|
8971
|
+
filterUpdates: "Filtrer les mises à jour par étiquette",
|
|
8972
|
+
clear: "Effacer",
|
|
8973
|
+
noUpdates: "Aucune mise à jour trouvée.",
|
|
8974
|
+
codeSnippets: "Extraits de code",
|
|
8975
|
+
contentTabs: "Onglets de contenu",
|
|
8976
|
+
fileTree: "Arborescence des fichiers",
|
|
8977
|
+
diagram: "Diagramme",
|
|
8978
|
+
diagramError: "Impossible d’afficher ce diagramme.",
|
|
8979
|
+
zoomOut: "Zoom arrière",
|
|
8980
|
+
resetView: "Réinitialiser la vue",
|
|
8981
|
+
zoomIn: "Zoom avant",
|
|
8982
|
+
viewImage: "Afficher l’image en taille réelle",
|
|
8983
|
+
viewNamedImage: "Afficher « {alt} » en taille réelle",
|
|
8984
|
+
fullSizeImage: "Image en taille réelle",
|
|
8985
|
+
diagramSource: "Source du diagramme",
|
|
8986
|
+
fieldName: "Nom",
|
|
8987
|
+
fieldType: "Type",
|
|
8988
|
+
fieldDescription: "Description",
|
|
8989
|
+
fieldRequired: "obligatoire",
|
|
8990
|
+
fieldDeprecated: "obsolète",
|
|
8991
|
+
fieldDefault: "Valeur par défaut :",
|
|
8992
|
+
fieldOptions: "Options :",
|
|
8993
|
+
allowedTypes: "Types autorisés",
|
|
8994
|
+
properties: "propriétés",
|
|
8995
|
+
apiHeaders: "En-têtes",
|
|
8996
|
+
apiPathParameters: "Paramètres de chemin",
|
|
8997
|
+
apiQueryParameters: "Paramètres de requête",
|
|
8998
|
+
apiCookieParameters: "Paramètres de cookies",
|
|
8999
|
+
apiRequestBody: "Corps de la requête",
|
|
9000
|
+
apiResponses: "Réponses",
|
|
9001
|
+
apiCodeSamples: "Exemples de code",
|
|
9002
|
+
apiExampleRequest: "Exemple de requête",
|
|
9003
|
+
apiExampleResponse: "Exemple {status}",
|
|
9004
|
+
apiCredentials: "Identifiants d’authentification, par exemple"
|
|
9005
|
+
};
|
|
9006
|
+
|
|
9007
|
+
//#endregion
|
|
9008
|
+
//#region src/lib/translations/ja.json
|
|
9009
|
+
var ja_default = {
|
|
9010
|
+
menu: "メニュー",
|
|
9011
|
+
documentationNavigation: "ドキュメントナビゲーション",
|
|
9012
|
+
sections: "セクション",
|
|
9013
|
+
tableOfContents: "このページの内容",
|
|
9014
|
+
tableOfContentsNavigation: "目次",
|
|
9015
|
+
searchTitle: "検索",
|
|
9016
|
+
searching: "検索中...",
|
|
9017
|
+
searchUnavailable: "検索を利用できません",
|
|
9018
|
+
noResults: "結果がありません",
|
|
9019
|
+
lastUpdated: "最終更新日",
|
|
9020
|
+
relatedTopics: "関連トピック",
|
|
9021
|
+
previousPage: "前へ",
|
|
9022
|
+
nextPage: "次へ",
|
|
9023
|
+
notFound: "ページが見つかりません",
|
|
9024
|
+
dismissBanner: "バナーを閉じる",
|
|
9025
|
+
toggleTheme: "テーマを切り替える",
|
|
9026
|
+
moreOptions: "その他のオプション",
|
|
9027
|
+
copied: "コピーしました",
|
|
9028
|
+
expand: "展開",
|
|
9029
|
+
collapse: "折りたたむ",
|
|
9030
|
+
copyPage: "ページをコピー",
|
|
9031
|
+
copyPageDescription: "このページをMarkdownとしてコピー",
|
|
9032
|
+
viewMarkdown: "Markdownで表示",
|
|
9033
|
+
viewMarkdownDescription: "このページをプレーンなMarkdownで開く",
|
|
9034
|
+
openInChatGPT: "ChatGPTで開く",
|
|
9035
|
+
openInClaude: "Claudeで開く",
|
|
9036
|
+
openInPerplexity: "Perplexityで開く",
|
|
9037
|
+
askQuestionsAboutPage: "このページについて質問する",
|
|
9038
|
+
searchPlaceholder: "検索...",
|
|
9039
|
+
poweredBy: "使用ツール:",
|
|
9040
|
+
copyCode: "コードをコピー",
|
|
9041
|
+
editPage: "このページを編集",
|
|
9042
|
+
feedbackPrompt: "このページは役に立ちましたか?",
|
|
9043
|
+
feedbackYes: "はい",
|
|
9044
|
+
feedbackNo: "いいえ",
|
|
9045
|
+
feedbackSuccess: "フィードバックありがとうございます!",
|
|
9046
|
+
feedbackError: "フィードバックを送信できませんでした。もう一度お試しください。",
|
|
9047
|
+
close: "閉じる",
|
|
9048
|
+
filterUpdates: "タグで更新情報を絞り込む",
|
|
9049
|
+
clear: "クリア",
|
|
9050
|
+
noUpdates: "更新情報が見つかりません。",
|
|
9051
|
+
codeSnippets: "コードスニペット",
|
|
9052
|
+
contentTabs: "コンテンツタブ",
|
|
9053
|
+
fileTree: "ファイルツリー",
|
|
9054
|
+
diagram: "図",
|
|
9055
|
+
diagramError: "この図を表示できませんでした。",
|
|
9056
|
+
zoomOut: "縮小",
|
|
9057
|
+
resetView: "表示をリセット",
|
|
9058
|
+
zoomIn: "拡大",
|
|
9059
|
+
viewImage: "画像を原寸で表示",
|
|
9060
|
+
viewNamedImage: "「{alt}」を原寸で表示",
|
|
9061
|
+
fullSizeImage: "原寸の画像",
|
|
9062
|
+
diagramSource: "図のソース",
|
|
9063
|
+
fieldName: "名前",
|
|
9064
|
+
fieldType: "型",
|
|
9065
|
+
fieldDescription: "説明",
|
|
9066
|
+
fieldRequired: "必須",
|
|
9067
|
+
fieldDeprecated: "非推奨",
|
|
9068
|
+
fieldDefault: "デフォルト:",
|
|
9069
|
+
fieldOptions: "選択肢:",
|
|
9070
|
+
allowedTypes: "許可される型",
|
|
9071
|
+
properties: "プロパティ",
|
|
9072
|
+
apiHeaders: "ヘッダー",
|
|
9073
|
+
apiPathParameters: "パスパラメーター",
|
|
9074
|
+
apiQueryParameters: "クエリパラメーター",
|
|
9075
|
+
apiCookieParameters: "Cookieパラメーター",
|
|
9076
|
+
apiRequestBody: "リクエストボディ",
|
|
9077
|
+
apiResponses: "レスポンス",
|
|
9078
|
+
apiCodeSamples: "コードサンプル",
|
|
9079
|
+
apiExampleRequest: "リクエスト例",
|
|
9080
|
+
apiExampleResponse: "{status} の例",
|
|
9081
|
+
apiCredentials: "認証情報(例):"
|
|
9082
|
+
};
|
|
9083
|
+
|
|
9084
|
+
//#endregion
|
|
9085
|
+
//#region src/lib/translations/zh-Hans.json
|
|
9086
|
+
var zh_Hans_default = {
|
|
9087
|
+
menu: "菜单",
|
|
9088
|
+
documentationNavigation: "文档导航",
|
|
9089
|
+
sections: "章节",
|
|
9090
|
+
tableOfContents: "本页内容",
|
|
9091
|
+
tableOfContentsNavigation: "目录",
|
|
9092
|
+
searchTitle: "搜索",
|
|
9093
|
+
searching: "正在搜索...",
|
|
9094
|
+
searchUnavailable: "搜索不可用",
|
|
9095
|
+
noResults: "无结果",
|
|
9096
|
+
lastUpdated: "最后更新于",
|
|
9097
|
+
relatedTopics: "相关主题",
|
|
9098
|
+
previousPage: "上一页",
|
|
9099
|
+
nextPage: "下一页",
|
|
9100
|
+
notFound: "找不到页面",
|
|
9101
|
+
dismissBanner: "关闭横幅",
|
|
9102
|
+
toggleTheme: "切换主题",
|
|
9103
|
+
moreOptions: "更多选项",
|
|
9104
|
+
copied: "已复制",
|
|
9105
|
+
expand: "展开",
|
|
9106
|
+
collapse: "折叠",
|
|
9107
|
+
copyPage: "复制页面",
|
|
9108
|
+
copyPageDescription: "将此页面复制为 Markdown",
|
|
9109
|
+
viewMarkdown: "以 Markdown 查看",
|
|
9110
|
+
viewMarkdownDescription: "以纯 Markdown 打开此页面",
|
|
9111
|
+
openInChatGPT: "在 ChatGPT 中打开",
|
|
9112
|
+
openInClaude: "在 Claude 中打开",
|
|
9113
|
+
openInPerplexity: "在 Perplexity 中打开",
|
|
9114
|
+
askQuestionsAboutPage: "询问有关此页面的问题",
|
|
9115
|
+
searchPlaceholder: "搜索...",
|
|
9116
|
+
poweredBy: "由以下工具提供支持:",
|
|
9117
|
+
copyCode: "复制代码",
|
|
9118
|
+
editPage: "编辑此页面",
|
|
9119
|
+
feedbackPrompt: "此页面对您有帮助吗?",
|
|
9120
|
+
feedbackYes: "是",
|
|
9121
|
+
feedbackNo: "否",
|
|
9122
|
+
feedbackSuccess: "感谢您的反馈!",
|
|
9123
|
+
feedbackError: "无法发送反馈,请重试。",
|
|
9124
|
+
close: "关闭",
|
|
9125
|
+
filterUpdates: "按标签筛选更新",
|
|
9126
|
+
clear: "清除",
|
|
9127
|
+
noUpdates: "未找到更新。",
|
|
9128
|
+
codeSnippets: "代码片段",
|
|
9129
|
+
contentTabs: "内容选项卡",
|
|
9130
|
+
fileTree: "文件树",
|
|
9131
|
+
diagram: "图表",
|
|
9132
|
+
diagramError: "无法显示此图表。",
|
|
9133
|
+
zoomOut: "缩小",
|
|
9134
|
+
resetView: "重置视图",
|
|
9135
|
+
zoomIn: "放大",
|
|
9136
|
+
viewImage: "查看原尺寸图片",
|
|
9137
|
+
viewNamedImage: "查看“{alt}”的原尺寸图片",
|
|
9138
|
+
fullSizeImage: "原尺寸图片",
|
|
9139
|
+
diagramSource: "图表源代码",
|
|
9140
|
+
fieldName: "名称",
|
|
9141
|
+
fieldType: "类型",
|
|
9142
|
+
fieldDescription: "描述",
|
|
9143
|
+
fieldRequired: "必填",
|
|
9144
|
+
fieldDeprecated: "已弃用",
|
|
9145
|
+
fieldDefault: "默认值:",
|
|
9146
|
+
fieldOptions: "选项:",
|
|
9147
|
+
allowedTypes: "允许的类型",
|
|
9148
|
+
properties: "属性",
|
|
9149
|
+
apiHeaders: "请求头",
|
|
9150
|
+
apiPathParameters: "路径参数",
|
|
9151
|
+
apiQueryParameters: "查询参数",
|
|
9152
|
+
apiCookieParameters: "Cookie 参数",
|
|
9153
|
+
apiRequestBody: "请求体",
|
|
9154
|
+
apiResponses: "响应",
|
|
9155
|
+
apiCodeSamples: "代码示例",
|
|
9156
|
+
apiExampleRequest: "请求示例",
|
|
9157
|
+
apiExampleResponse: "{status} 示例",
|
|
9158
|
+
apiCredentials: "身份验证凭据,例如"
|
|
9159
|
+
};
|
|
9160
|
+
|
|
9161
|
+
//#endregion
|
|
9162
|
+
//#region src/lib/translations/zh-Hant.json
|
|
9163
|
+
var zh_Hant_default = {
|
|
9164
|
+
menu: "選單",
|
|
9165
|
+
documentationNavigation: "文件導覽",
|
|
9166
|
+
sections: "章節",
|
|
9167
|
+
tableOfContents: "本頁內容",
|
|
9168
|
+
tableOfContentsNavigation: "目錄",
|
|
9169
|
+
searchTitle: "搜尋",
|
|
9170
|
+
searching: "正在搜尋...",
|
|
9171
|
+
searchUnavailable: "搜尋無法使用",
|
|
9172
|
+
noResults: "沒有結果",
|
|
9173
|
+
lastUpdated: "最後更新於",
|
|
9174
|
+
relatedTopics: "相關主題",
|
|
9175
|
+
previousPage: "上一頁",
|
|
9176
|
+
nextPage: "下一頁",
|
|
9177
|
+
notFound: "找不到頁面",
|
|
9178
|
+
dismissBanner: "關閉橫幅",
|
|
9179
|
+
toggleTheme: "切換主題",
|
|
9180
|
+
moreOptions: "更多選項",
|
|
9181
|
+
copied: "已複製",
|
|
9182
|
+
expand: "展開",
|
|
9183
|
+
collapse: "收合",
|
|
9184
|
+
copyPage: "複製頁面",
|
|
9185
|
+
copyPageDescription: "將此頁面複製為 Markdown",
|
|
9186
|
+
viewMarkdown: "以 Markdown 檢視",
|
|
9187
|
+
viewMarkdownDescription: "以純 Markdown 開啟此頁面",
|
|
9188
|
+
openInChatGPT: "在 ChatGPT 中開啟",
|
|
9189
|
+
openInClaude: "在 Claude 中開啟",
|
|
9190
|
+
openInPerplexity: "在 Perplexity 中開啟",
|
|
9191
|
+
askQuestionsAboutPage: "詢問有關此頁面的問題",
|
|
9192
|
+
searchPlaceholder: "搜尋...",
|
|
9193
|
+
poweredBy: "由以下工具提供支援:",
|
|
9194
|
+
copyCode: "複製程式碼",
|
|
9195
|
+
editPage: "編輯此頁面",
|
|
9196
|
+
feedbackPrompt: "此頁面對您有幫助嗎?",
|
|
9197
|
+
feedbackYes: "是",
|
|
9198
|
+
feedbackNo: "否",
|
|
9199
|
+
feedbackSuccess: "感謝您的回饋!",
|
|
9200
|
+
feedbackError: "無法傳送回饋,請重試。",
|
|
9201
|
+
close: "關閉",
|
|
9202
|
+
filterUpdates: "依標籤篩選更新",
|
|
9203
|
+
clear: "清除",
|
|
9204
|
+
noUpdates: "找不到更新。",
|
|
9205
|
+
codeSnippets: "程式碼片段",
|
|
9206
|
+
contentTabs: "內容分頁",
|
|
9207
|
+
fileTree: "檔案樹",
|
|
9208
|
+
diagram: "圖表",
|
|
9209
|
+
diagramError: "無法顯示此圖表。",
|
|
9210
|
+
zoomOut: "縮小",
|
|
9211
|
+
resetView: "重設檢視",
|
|
9212
|
+
zoomIn: "放大",
|
|
9213
|
+
viewImage: "檢視原尺寸圖片",
|
|
9214
|
+
viewNamedImage: "檢視「{alt}」的原尺寸圖片",
|
|
9215
|
+
fullSizeImage: "原尺寸圖片",
|
|
9216
|
+
diagramSource: "圖表原始碼",
|
|
9217
|
+
fieldName: "名稱",
|
|
9218
|
+
fieldType: "類型",
|
|
9219
|
+
fieldDescription: "描述",
|
|
9220
|
+
fieldRequired: "必填",
|
|
9221
|
+
fieldDeprecated: "已棄用",
|
|
9222
|
+
fieldDefault: "預設值:",
|
|
9223
|
+
fieldOptions: "選項:",
|
|
9224
|
+
allowedTypes: "允許的類型",
|
|
9225
|
+
properties: "屬性",
|
|
9226
|
+
apiHeaders: "請求標頭",
|
|
9227
|
+
apiPathParameters: "路徑參數",
|
|
9228
|
+
apiQueryParameters: "查詢參數",
|
|
9229
|
+
apiCookieParameters: "Cookie 參數",
|
|
9230
|
+
apiRequestBody: "請求主體",
|
|
9231
|
+
apiResponses: "回應",
|
|
9232
|
+
apiCodeSamples: "程式碼範例",
|
|
9233
|
+
apiExampleRequest: "請求範例",
|
|
9234
|
+
apiExampleResponse: "{status} 範例",
|
|
9235
|
+
apiCredentials: "驗證憑證,例如"
|
|
9236
|
+
};
|
|
9237
|
+
|
|
9238
|
+
//#endregion
|
|
9239
|
+
//#region src/lib/labels.ts
|
|
9240
|
+
const englishLabels = en_default;
|
|
9241
|
+
const dictionaries = {
|
|
9242
|
+
en: en_default,
|
|
9243
|
+
de: de_default,
|
|
9244
|
+
es: es_default,
|
|
9245
|
+
fr: fr_default,
|
|
9246
|
+
ja: ja_default,
|
|
9247
|
+
"zh-Hans": zh_Hans_default,
|
|
9248
|
+
"zh-Hant": zh_Hant_default
|
|
9249
|
+
};
|
|
9250
|
+
/** Merge from least to most specific; overrides win at each locale level. */
|
|
9251
|
+
function resolveLabels(locale, overrides = {}) {
|
|
9252
|
+
const tag = new Intl.Locale(resolveLocale(locale, "en"));
|
|
9253
|
+
const script = tag.script || (tag.language === "zh" ? tag.maximize().script : void 0);
|
|
9254
|
+
const candidates = /* @__PURE__ */ new Set([
|
|
9255
|
+
"en",
|
|
9256
|
+
tag.language,
|
|
9257
|
+
...script ? [`${tag.language}-${script}`] : [],
|
|
9258
|
+
tag.baseName
|
|
9259
|
+
]);
|
|
9260
|
+
const labels = { ...englishLabels };
|
|
9261
|
+
for (const candidate of candidates) Object.assign(labels, dictionaries[candidate], overrides[candidate]);
|
|
9262
|
+
return labels;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
//#endregion
|
|
9266
|
+
//#region src/lib/label-context.tsx
|
|
9267
|
+
const LabelContext = createContext(englishLabels);
|
|
9268
|
+
function useLabels() {
|
|
9269
|
+
return useContext(LabelContext);
|
|
9270
|
+
}
|
|
9271
|
+
|
|
8639
9272
|
//#endregion
|
|
8640
9273
|
//#region src/components/docs/styles.ts
|
|
8641
9274
|
/** Shared Tailwind utility groups for the built-in MDX components. */
|
|
@@ -8760,6 +9393,7 @@ const PLACEMENT_CLASS = {
|
|
|
8760
9393
|
* replaces it with SVG via a lazy `mermaid` import (kept out of the SSR bundle).
|
|
8761
9394
|
*/
|
|
8762
9395
|
function Mermaid({ chart, title, actions, placement = "bottom-right", children }) {
|
|
9396
|
+
const labels = useLabels();
|
|
8763
9397
|
const source = mermaidSource(chart, children);
|
|
8764
9398
|
const containerRef = useRef(null);
|
|
8765
9399
|
const svgHostRef = useRef(null);
|
|
@@ -8822,34 +9456,34 @@ function Mermaid({ chart, title, actions, placement = "bottom-right", children }
|
|
|
8822
9456
|
style: { transform: `scale(${zoom})` },
|
|
8823
9457
|
dangerouslySetInnerHTML: { __html: svg },
|
|
8824
9458
|
role: "img",
|
|
8825
|
-
"aria-label": title ? String(title) :
|
|
9459
|
+
"aria-label": title ? String(title) : labels.diagram
|
|
8826
9460
|
}) : /* @__PURE__ */ jsx("pre", {
|
|
8827
9461
|
className: styles.mermaidFallback,
|
|
8828
|
-
title:
|
|
9462
|
+
title: labels.diagramSource,
|
|
8829
9463
|
children: source
|
|
8830
9464
|
}),
|
|
8831
9465
|
error ? /* @__PURE__ */ jsx("p", {
|
|
8832
9466
|
className: styles.mermaidError,
|
|
8833
|
-
children:
|
|
9467
|
+
children: labels.diagramError
|
|
8834
9468
|
}) : null,
|
|
8835
9469
|
showControls && svg && !error ? /* @__PURE__ */ jsxs("div", {
|
|
8836
9470
|
className: `${styles.mermaidControls} ${PLACEMENT_CLASS[placement]}`,
|
|
8837
9471
|
children: [
|
|
8838
9472
|
/* @__PURE__ */ jsx("button", {
|
|
8839
9473
|
type: "button",
|
|
8840
|
-
"aria-label":
|
|
9474
|
+
"aria-label": labels.zoomOut,
|
|
8841
9475
|
onClick: () => setZoom((z) => Math.max(.5, +(z - .25).toFixed(2))),
|
|
8842
9476
|
children: "−"
|
|
8843
9477
|
}),
|
|
8844
9478
|
/* @__PURE__ */ jsx("button", {
|
|
8845
9479
|
type: "button",
|
|
8846
|
-
"aria-label":
|
|
9480
|
+
"aria-label": labels.resetView,
|
|
8847
9481
|
onClick: () => setZoom(1),
|
|
8848
9482
|
children: "⟳"
|
|
8849
9483
|
}),
|
|
8850
9484
|
/* @__PURE__ */ jsx("button", {
|
|
8851
9485
|
type: "button",
|
|
8852
|
-
"aria-label":
|
|
9486
|
+
"aria-label": labels.zoomIn,
|
|
8853
9487
|
onClick: () => setZoom((z) => Math.min(2.5, +(z + .25).toFixed(2))),
|
|
8854
9488
|
children: "+"
|
|
8855
9489
|
})
|
|
@@ -10873,6 +11507,7 @@ function updateInfo(children) {
|
|
|
10873
11507
|
* Pages without any tagged updates render as a plain list.
|
|
10874
11508
|
*/
|
|
10875
11509
|
function Changelog({ children }) {
|
|
11510
|
+
const labels = useLabels();
|
|
10876
11511
|
const [searchParams, setSearchParams] = useSearchParams();
|
|
10877
11512
|
const allTags = useMemo(() => {
|
|
10878
11513
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -10917,7 +11552,7 @@ function Changelog({ children }) {
|
|
|
10917
11552
|
/* @__PURE__ */ jsxs("div", {
|
|
10918
11553
|
className: styles.changelogFilters,
|
|
10919
11554
|
role: "group",
|
|
10920
|
-
"aria-label":
|
|
11555
|
+
"aria-label": labels.filterUpdates,
|
|
10921
11556
|
children: [allTags.map((tag) => {
|
|
10922
11557
|
const active = selectedSet.has(tag.toLowerCase());
|
|
10923
11558
|
return /* @__PURE__ */ jsx("button", {
|
|
@@ -10936,12 +11571,12 @@ function Changelog({ children }) {
|
|
|
10936
11571
|
type: "button",
|
|
10937
11572
|
onClick: clear,
|
|
10938
11573
|
className: styles.changelogClear,
|
|
10939
|
-
children:
|
|
11574
|
+
children: labels.clear
|
|
10940
11575
|
}) : null]
|
|
10941
11576
|
}),
|
|
10942
11577
|
visibleUpdates === 0 ? /* @__PURE__ */ jsx("p", {
|
|
10943
11578
|
className: styles.changelogEmpty,
|
|
10944
|
-
children:
|
|
11579
|
+
children: labels.noUpdates
|
|
10945
11580
|
}) : null,
|
|
10946
11581
|
filtered
|
|
10947
11582
|
]
|
|
@@ -11814,6 +12449,7 @@ function TabsContent({ className, ...props }) {
|
|
|
11814
12449
|
//#endregion
|
|
11815
12450
|
//#region src/components/docs/CodeGroup.tsx
|
|
11816
12451
|
function CodeGroup({ children }) {
|
|
12452
|
+
const labels = useLabels();
|
|
11817
12453
|
const blocks = useMemo(() => {
|
|
11818
12454
|
const counts = /* @__PURE__ */ new Map();
|
|
11819
12455
|
return toElementArray(children).map((child, index) => {
|
|
@@ -11843,7 +12479,7 @@ function CodeGroup({ children }) {
|
|
|
11843
12479
|
children: [/* @__PURE__ */ jsx(TabsList, {
|
|
11844
12480
|
variant: "line",
|
|
11845
12481
|
className: "h-9 w-full justify-start gap-5 overflow-x-auto overflow-y-hidden rounded-none px-3 py-0 shadow-[inset_0_-1px_0_var(--border)] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
11846
|
-
"aria-label":
|
|
12482
|
+
"aria-label": labels.codeSnippets,
|
|
11847
12483
|
children: blocks.map((block) => /* @__PURE__ */ jsx(TabsTrigger, {
|
|
11848
12484
|
value: block.id,
|
|
11849
12485
|
className: "flex-none px-0 text-muted-foreground after:bg-primary data-active:text-foreground",
|
|
@@ -12274,6 +12910,7 @@ function displayValue(value) {
|
|
|
12274
12910
|
return value === void 0 || value === null ? void 0 : String(value);
|
|
12275
12911
|
}
|
|
12276
12912
|
function PropertiesTable({ children }) {
|
|
12913
|
+
const labels = useLabels();
|
|
12277
12914
|
const rows = toElementArray(children);
|
|
12278
12915
|
if (!rows.length) return null;
|
|
12279
12916
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -12284,18 +12921,19 @@ function PropertiesTable({ children }) {
|
|
|
12284
12921
|
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
12285
12922
|
/* @__PURE__ */ jsx("th", {
|
|
12286
12923
|
className: "w-[30%]",
|
|
12287
|
-
children:
|
|
12924
|
+
children: labels.fieldName
|
|
12288
12925
|
}),
|
|
12289
12926
|
/* @__PURE__ */ jsx("th", {
|
|
12290
12927
|
className: "w-[15%]",
|
|
12291
|
-
children:
|
|
12928
|
+
children: labels.fieldType
|
|
12292
12929
|
}),
|
|
12293
|
-
/* @__PURE__ */ jsx("th", { children:
|
|
12930
|
+
/* @__PURE__ */ jsx("th", { children: labels.fieldDescription })
|
|
12294
12931
|
] }) }), /* @__PURE__ */ jsx("tbody", { children: rows })]
|
|
12295
12932
|
})
|
|
12296
12933
|
});
|
|
12297
12934
|
}
|
|
12298
12935
|
function PropertiesTableRow({ name, type, required, deprecated, default: value, children, details }) {
|
|
12936
|
+
const labels = useLabels();
|
|
12299
12937
|
const defaultValue = displayValue(value);
|
|
12300
12938
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("tr", { children: [
|
|
12301
12939
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsxs("span", {
|
|
@@ -12305,11 +12943,11 @@ function PropertiesTableRow({ name, type, required, deprecated, default: value,
|
|
|
12305
12943
|
required ? /* @__PURE__ */ jsx(Badge, {
|
|
12306
12944
|
size: "sm",
|
|
12307
12945
|
tone: "primary",
|
|
12308
|
-
children:
|
|
12946
|
+
children: labels.fieldRequired
|
|
12309
12947
|
}) : null,
|
|
12310
12948
|
deprecated ? /* @__PURE__ */ jsx(Badge, {
|
|
12311
12949
|
size: "sm",
|
|
12312
|
-
children:
|
|
12950
|
+
children: labels.fieldDeprecated
|
|
12313
12951
|
}) : null
|
|
12314
12952
|
]
|
|
12315
12953
|
}) }),
|
|
@@ -12318,7 +12956,11 @@ function PropertiesTableRow({ name, type, required, deprecated, default: value,
|
|
|
12318
12956
|
className: "[&_p]:m-0",
|
|
12319
12957
|
children: [children, defaultValue ? /* @__PURE__ */ jsxs("span", {
|
|
12320
12958
|
className: "mt-1 block text-muted-foreground",
|
|
12321
|
-
children: [
|
|
12959
|
+
children: [
|
|
12960
|
+
labels.fieldDefault,
|
|
12961
|
+
" ",
|
|
12962
|
+
defaultValue
|
|
12963
|
+
]
|
|
12322
12964
|
}) : null]
|
|
12323
12965
|
})
|
|
12324
12966
|
] }), details && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
|
|
@@ -12368,6 +13010,7 @@ function Tab({ children }) {
|
|
|
12368
13010
|
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
12369
13011
|
}
|
|
12370
13012
|
function Tabs({ children, group }) {
|
|
13013
|
+
const labels = useLabels();
|
|
12371
13014
|
const tabs = useMemo(() => {
|
|
12372
13015
|
const counts = /* @__PURE__ */ new Map();
|
|
12373
13016
|
return toElementArray(children).map((child, index) => {
|
|
@@ -12422,7 +13065,7 @@ function Tabs({ children, group }) {
|
|
|
12422
13065
|
children: [/* @__PURE__ */ jsx(TabsList, {
|
|
12423
13066
|
variant: "line",
|
|
12424
13067
|
className: "w-full justify-start gap-5 overflow-x-auto overflow-y-hidden p-0 shadow-[inset_0_-1px_0_var(--border)] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
12425
|
-
"aria-label":
|
|
13068
|
+
"aria-label": labels.contentTabs,
|
|
12426
13069
|
children: tabs.map((tab) => /* @__PURE__ */ jsx(TabsTrigger, {
|
|
12427
13070
|
value: tab.id,
|
|
12428
13071
|
className: "flex-none px-0 text-muted-foreground after:bg-primary data-active:text-foreground",
|
|
@@ -18707,6 +19350,7 @@ function visibleFocusables(root) {
|
|
|
18707
19350
|
return [...root.querySelectorAll("[data-tree-focus]")].filter((element) => !element.closest("[hidden]"));
|
|
18708
19351
|
}
|
|
18709
19352
|
function TreeRoot({ children, style, className }) {
|
|
19353
|
+
const labels = useLabels();
|
|
18710
19354
|
const rootRef = useRef(null);
|
|
18711
19355
|
const searchRef = useRef({
|
|
18712
19356
|
text: "",
|
|
@@ -18793,7 +19437,7 @@ function TreeRoot({ children, style, className }) {
|
|
|
18793
19437
|
onKeyDown,
|
|
18794
19438
|
children: /* @__PURE__ */ jsx("ul", {
|
|
18795
19439
|
role: "tree",
|
|
18796
|
-
"aria-label":
|
|
19440
|
+
"aria-label": labels.fileTree,
|
|
18797
19441
|
className: styles.treeList,
|
|
18798
19442
|
children: content
|
|
18799
19443
|
})
|
|
@@ -19631,6 +20275,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
19631
20275
|
});
|
|
19632
20276
|
}
|
|
19633
20277
|
function DialogContent({ className, children, showCloseButton = true, overlayClassName, ...props }) {
|
|
20278
|
+
const labels = useLabels();
|
|
19634
20279
|
return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, { className: overlayClassName }), /* @__PURE__ */ jsxs(DialogPopup, {
|
|
19635
20280
|
"data-slot": "dialog-content",
|
|
19636
20281
|
className: cn("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
@@ -19644,7 +20289,7 @@ function DialogContent({ className, children, showCloseButton = true, overlayCla
|
|
|
19644
20289
|
}),
|
|
19645
20290
|
children: [/* @__PURE__ */ jsx(X, {}), /* @__PURE__ */ jsx("span", {
|
|
19646
20291
|
className: "sr-only",
|
|
19647
|
-
children:
|
|
20292
|
+
children: labels.close
|
|
19648
20293
|
})]
|
|
19649
20294
|
})]
|
|
19650
20295
|
})] });
|
|
@@ -19660,6 +20305,7 @@ function DialogTitle({ className, ...props }) {
|
|
|
19660
20305
|
//#endregion
|
|
19661
20306
|
//#region src/components/docs/ZoomableImage.tsx
|
|
19662
20307
|
function ZoomableImage({ noZoom = false, className, alt, src, ...props }) {
|
|
20308
|
+
const labels = useLabels();
|
|
19663
20309
|
const image = /* @__PURE__ */ jsx("img", {
|
|
19664
20310
|
...props,
|
|
19665
20311
|
src,
|
|
@@ -19667,7 +20313,7 @@ function ZoomableImage({ noZoom = false, className, alt, src, ...props }) {
|
|
|
19667
20313
|
className: cn("block h-auto max-w-full rounded-lg", noZoom && "my-6", className)
|
|
19668
20314
|
});
|
|
19669
20315
|
if (noZoom || !src) return image;
|
|
19670
|
-
const label = alt ?
|
|
20316
|
+
const label = alt ? labels.viewNamedImage.replace("{alt}", () => alt) : labels.viewImage;
|
|
19671
20317
|
return /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsx(DialogTrigger, {
|
|
19672
20318
|
render: /* @__PURE__ */ jsx("button", {
|
|
19673
20319
|
type: "button",
|
|
@@ -19682,7 +20328,7 @@ function ZoomableImage({ noZoom = false, className, alt, src, ...props }) {
|
|
|
19682
20328
|
className: "flex max-h-[calc(100vh-2rem)] w-auto max-w-[calc(100vw-2rem)] items-center justify-center bg-transparent p-0 ring-0 shadow-none sm:max-w-[calc(100vw-2rem)]",
|
|
19683
20329
|
children: [/* @__PURE__ */ jsx(DialogTitle, {
|
|
19684
20330
|
className: "sr-only",
|
|
19685
|
-
children: alt ||
|
|
20331
|
+
children: alt || labels.fullSizeImage
|
|
19686
20332
|
}), /* @__PURE__ */ jsx("img", {
|
|
19687
20333
|
src,
|
|
19688
20334
|
srcSet: props.srcSet,
|
|
@@ -19744,4 +20390,4 @@ var docs_exports = /* @__PURE__ */ __exportAll({
|
|
|
19744
20390
|
});
|
|
19745
20391
|
|
|
19746
20392
|
//#endregion
|
|
19747
|
-
export { useFloatingNodeId as $,
|
|
20393
|
+
export { useFloatingNodeId as $, jsdom as $n, resolveIcon as $t, safePolygon as A, useDirection as An, Route as Ar, Column as At, attachPreventUnmountOnClose as B, isListIndexDisabled as Bn, Callout as Bt, Tooltip as C, englishLabels as Cn, X as Cr, Icon as Ct, useAnchorPositioning as D, isValidLocale as Dn, BrowserRouter as Dr, Collapsible as Dt, getDisabledMountTransitionStyles as E, getTextDirection as En, createLucideIcon as Er, Expandable as Et, createInitialPopupStoreState as F, findNonDisabledListIndex as Fn, createPath as Fr, useCompositeItem as Ft, useTriggerDataForwarding as G, isTypeableCombobox as Gn, Tip as Gt, useImplicitActiveTrigger as H, isVirtualPointerEvent as Hn, Danger as Ht, popupStoreSelectors as I, getMaxListIndex as In, parsePath as Ir, Changelog as It, useDismiss as J, getTarget as Jn, Button as Jt, useSyncedFloatingRootContext as K, activeElement as Kn, Warning as Kt, PopupTriggerMap as L, getMinListIndex as Ln, ABSOLUTE_URL_REGEX as Lr, Update as Lt, useHoverFloatingInteraction as M, getTabbableAfterElement as Mn, Routes as Mr, CodeGroup as Mt, useFocus as N, getTabbableBeforeElement as Nn, useLocation as Nr, COMPOSITE_KEYS as Nt, popupTransitionStateMapping as O, resolveLocale as On, Link$1 as Or, CollapsibleContent as Ot, usePopupHandleStore as P, isOutsideEvent as Pn, useNavigate as Pr, inertValue as Pt, FloatingTree as Q, ARROW_UP$1 as Qn, AccordionGroup as Qt, FOCUSABLE_POPUP_PROPS as R, isElementVisible as Rn, __commonJSMin as Rr, Card as Rt, TreeFolder as S, useLabels as Sn, isLastTraversableNode as Sr, Link as St, usePositioner as T, getLanguageName as Tn, Check$1 as Tr, renderInlineMarkdown as Tt, useOpenStateTransitions as U, stopEvent as Un, Info as Ut, setPopupOpenState as V, isVirtualClick as Vn, Check as Vt, usePopupInteractionProps as W, getFloatingFocusElement as Wn, Note as Wt, FloatingFocusManager as X, ARROW_LEFT$1 as Xn, Badge$1 as Xt, useClick as Y, ARROW_DOWN$1 as Yn, Badge as Yt, FloatingNode as Z, ARROW_RIGHT$1 as Zn, Accordion as Zt, FileTree as _, triggerPress as _n, useStableCallback as _r, Param as _t, DialogTitle as a, useAnimationFrame as an, Button$1 as ar, POPUP_COLLISION_AVOIDANCE as at, Tree as b, mermaidSource as bn, getWindow as br, usePanelContent as bt, useOpenInteractionType as c, escapeKey as cn, EMPTY_ARRAY$1 as cr, fastComponent as ct, useScrollLock as d, itemPress as dn, useButton as dr, Tiles as dt, getIcon as en, webkit as er, useFloatingParentNodeId as et, DialogPortal$1 as f, listNavigation as fn, dispatchClickWithModifiers as fr, Tab as ft, DialogBackdrop as g, triggerHover as gn, useIsoLayoutEffect as gr, PropertiesTable as gt, DialogClose as h, triggerFocus as hn, mergeProps as hr, Steps as ht, DialogContent as i, useCompositeListItem as in, useTimeout as ir, DROPDOWN_COLLISION_AVOIDANCE as it, useHoverReferenceInteraction as j, getNextTabbable as jn, Router as jr, Columns as jt, pressableTriggerOpenStateMapping as k, addEventListener as kn, Navigate as kr, CollapsibleTrigger as kt, DialogTitle$1 as l, focusOut as ln, EMPTY_OBJECT as lr, fastComponentRef as lt, DialogPopup as m, siblingOpen as mn, useCompositeRootContext as mr, Step as mt, ZoomableImage as n, useAnimationsFinished as nn, useBaseUiId as nr, FloatingTreeStore as nt, DialogTrigger as o, createChangeEventDetails as on, cn as or, enqueueFocus as ot, InternalBackdrop as p, outsidePress as pn, ownerDocument as pr, Tabs as pt, ReactStore as q, contains as qn, WarningBanner as qt, Dialog as r, useValueAsRef as rn, useId$1 as rr, FloatingPortal as rt, DialogTrigger$1 as s, cancelOpen as sn, useRenderElement as sr, FocusGuard as st, docs_exports as t, useOpenChangeComplete as tn, mac as tr, useFloatingTree as tt, DialogRoot as u, imperativeAction as un, useMergedRefs as ur, Tile as ut, FileTreeFile as v, CompositeList as vn, useRefWithInit as vr, Panel as vt, TooltipProvider as w, resolveLabels as wn, ChevronRight as wr, Frame as wt, TreeFile as x, LabelContext as xn, isHTMLElement as xr, useSetPanelContent as xt, FileTreeFolder as y, Mermaid as yn, getParentNode as yr, PanelProvider as yt, PopupHandleAttachment as z, isIndexOutOfListBounds as zn, __toESM as zr, CardGroup as zt };
|