react-cheminfo 0.64.0 → 0.65.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/README.md +282 -0
- package/lib/card/core/cardAddress.d.ts +70 -0
- package/lib/card/core/cardAddress.d.ts.map +1 -0
- package/lib/card/core/cardAddress.js +59 -0
- package/lib/card/core/cardAddress.js.map +1 -0
- package/lib/card/core/cardPageUrl.d.ts +49 -0
- package/lib/card/core/cardPageUrl.d.ts.map +1 -0
- package/lib/card/core/cardPageUrl.js +59 -0
- package/lib/card/core/cardPageUrl.js.map +1 -0
- package/lib/card/core/index.d.ts +7 -0
- package/lib/card/core/index.d.ts.map +1 -0
- package/lib/card/core/index.js +4 -0
- package/lib/card/core/index.js.map +1 -0
- package/lib/card/core/panelRoom.d.ts +40 -0
- package/lib/card/core/panelRoom.d.ts.map +1 -0
- package/lib/card/core/panelRoom.js +40 -0
- package/lib/card/core/panelRoom.js.map +1 -0
- package/lib/card/ui/CardDetailsButton.d.ts +38 -0
- package/lib/card/ui/CardDetailsButton.d.ts.map +1 -0
- package/lib/card/ui/CardDetailsButton.js +50 -0
- package/lib/card/ui/CardDetailsButton.js.map +1 -0
- package/lib/card/ui/CardFigure.d.ts +51 -0
- package/lib/card/ui/CardFigure.d.ts.map +1 -0
- package/lib/card/ui/CardFigure.js +27 -0
- package/lib/card/ui/CardFigure.js.map +1 -0
- package/lib/card/ui/CardFrame.d.ts +30 -0
- package/lib/card/ui/CardFrame.d.ts.map +1 -0
- package/lib/card/ui/CardFrame.js +20 -0
- package/lib/card/ui/CardFrame.js.map +1 -0
- package/lib/card/ui/CopyTableButton.d.ts +37 -0
- package/lib/card/ui/CopyTableButton.d.ts.map +1 -0
- package/lib/card/ui/CopyTableButton.js +19 -0
- package/lib/card/ui/CopyTableButton.js.map +1 -0
- package/lib/card/ui/cardTooltip.d.ts +14 -0
- package/lib/card/ui/cardTooltip.d.ts.map +1 -0
- package/lib/card/ui/cardTooltip.js +15 -0
- package/lib/card/ui/cardTooltip.js.map +1 -0
- package/lib/card/ui/embed.d.ts +15 -0
- package/lib/card/ui/embed.d.ts.map +1 -0
- package/lib/card/ui/embed.js +24 -0
- package/lib/card/ui/embed.js.map +1 -0
- package/lib/card/ui/fitCardToFrame.d.ts +31 -0
- package/lib/card/ui/fitCardToFrame.d.ts.map +1 -0
- package/lib/card/ui/fitCardToFrame.js +66 -0
- package/lib/card/ui/fitCardToFrame.js.map +1 -0
- package/lib/card/ui/holdRoomForPanels.d.ts +16 -0
- package/lib/card/ui/holdRoomForPanels.d.ts.map +1 -0
- package/lib/card/ui/holdRoomForPanels.js +76 -0
- package/lib/card/ui/holdRoomForPanels.js.map +1 -0
- package/lib/card/ui/index.d.ts +11 -0
- package/lib/card/ui/index.d.ts.map +1 -0
- package/lib/card/ui/index.js +7 -0
- package/lib/card/ui/index.js.map +1 -0
- package/lib/card/ui/openPanels.d.ts +25 -0
- package/lib/card/ui/openPanels.d.ts.map +1 -0
- package/lib/card/ui/openPanels.js +85 -0
- package/lib/card/ui/openPanels.js.map +1 -0
- package/lib/card.d.ts +13 -0
- package/lib/card.d.ts.map +1 -0
- package/lib/card.js +13 -0
- package/lib/card.js.map +1 -0
- package/lib/conformers.d.ts +1 -0
- package/lib/conformers.d.ts.map +1 -1
- package/lib/conformers.js +1 -0
- package/lib/conformers.js.map +1 -1
- package/lib/core.d.ts +4 -0
- package/lib/core.d.ts.map +1 -1
- package/lib/core.js +5 -0
- package/lib/core.js.map +1 -1
- package/lib/fetch/core/apiError.d.ts +56 -0
- package/lib/fetch/core/apiError.d.ts.map +1 -0
- package/lib/fetch/core/apiError.js +43 -0
- package/lib/fetch/core/apiError.js.map +1 -0
- package/lib/fetch/core/fetchJson.d.ts +47 -0
- package/lib/fetch/core/fetchJson.d.ts.map +1 -0
- package/lib/fetch/core/fetchJson.js +109 -0
- package/lib/fetch/core/fetchJson.js.map +1 -0
- package/lib/fetch/core/index.d.ts +5 -0
- package/lib/fetch/core/index.d.ts.map +1 -0
- package/lib/fetch/core/index.js +3 -0
- package/lib/fetch/core/index.js.map +1 -0
- package/lib/formula/core/formulaText.d.ts +46 -0
- package/lib/formula/core/formulaText.d.ts.map +1 -0
- package/lib/formula/core/formulaText.js +74 -0
- package/lib/formula/core/formulaText.js.map +1 -0
- package/lib/formula/core/index.d.ts +6 -0
- package/lib/formula/core/index.d.ts.map +1 -0
- package/lib/formula/core/index.js +4 -0
- package/lib/formula/core/index.js.map +1 -0
- package/lib/formula/core/normalizeFormula.d.ts +22 -0
- package/lib/formula/core/normalizeFormula.d.ts.map +1 -0
- package/lib/formula/core/normalizeFormula.js +46 -0
- package/lib/formula/core/normalizeFormula.js.map +1 -0
- package/lib/formula/core/readFormula.d.ts +73 -0
- package/lib/formula/core/readFormula.d.ts.map +1 -0
- package/lib/formula/core/readFormula.js +132 -0
- package/lib/formula/core/readFormula.js.map +1 -0
- package/lib/formula/ui/CopyableFormula.d.ts +31 -0
- package/lib/formula/ui/CopyableFormula.d.ts.map +1 -0
- package/lib/formula/ui/CopyableFormula.js +19 -0
- package/lib/formula/ui/CopyableFormula.js.map +1 -0
- package/lib/formula/ui/FormulaInput.d.ts +29 -0
- package/lib/formula/ui/FormulaInput.d.ts.map +1 -0
- package/lib/formula/ui/FormulaInput.js +16 -0
- package/lib/formula/ui/FormulaInput.js.map +1 -0
- package/lib/formula/ui/QuestionFormula.d.ts +14 -0
- package/lib/formula/ui/QuestionFormula.d.ts.map +1 -0
- package/lib/formula/ui/QuestionFormula.js +13 -0
- package/lib/formula/ui/QuestionFormula.js.map +1 -0
- package/lib/formula/ui/index.d.ts +7 -0
- package/lib/formula/ui/index.d.ts.map +1 -0
- package/lib/formula/ui/index.js +4 -0
- package/lib/formula/ui/index.js.map +1 -0
- package/lib/formula.d.ts +11 -0
- package/lib/formula.d.ts.map +1 -0
- package/lib/formula.js +11 -0
- package/lib/formula.js.map +1 -0
- package/lib/hooks/ui/index.d.ts +1 -0
- package/lib/hooks/ui/index.d.ts.map +1 -1
- package/lib/hooks/ui/index.js.map +1 -1
- package/lib/hooks/ui/keyTargets.d.ts +4 -2
- package/lib/hooks/ui/keyTargets.d.ts.map +1 -1
- package/lib/hooks/ui/keyTargets.js +5 -3
- package/lib/hooks/ui/keyTargets.js.map +1 -1
- package/lib/hooks/ui/useAsync.d.ts +20 -5
- package/lib/hooks/ui/useAsync.d.ts.map +1 -1
- package/lib/hooks/ui/useAsync.js +29 -14
- package/lib/hooks/ui/useAsync.js.map +1 -1
- package/lib/i18n/core/chromeCatalog.d.ts +1 -1
- package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
- package/lib/locales/de.json +37 -0
- package/lib/locales/en.json +37 -0
- package/lib/locales/es.json +37 -0
- package/lib/locales/fr.json +37 -0
- package/lib/locales/it.json +37 -0
- package/lib/molecule3d/core/highlight.d.ts.map +1 -1
- package/lib/molecule3d/core/highlight.js +2 -8
- package/lib/molecule3d/core/highlight.js.map +1 -1
- package/lib/molecule3d/core/index.d.ts +1 -1
- package/lib/molecule3d/core/index.d.ts.map +1 -1
- package/lib/molecule3d/core/index.js +1 -1
- package/lib/molecule3d/core/index.js.map +1 -1
- package/lib/molecule3d/core/measurement.d.ts +17 -0
- package/lib/molecule3d/core/measurement.d.ts.map +1 -1
- package/lib/molecule3d/core/measurement.js +43 -0
- package/lib/molecule3d/core/measurement.js.map +1 -1
- package/lib/molecule3d/ui/drawScene.d.ts +4 -2
- package/lib/molecule3d/ui/drawScene.d.ts.map +1 -1
- package/lib/molecule3d/ui/drawScene.js +1 -1
- package/lib/molecule3d/ui/drawScene.js.map +1 -1
- package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts +3 -1
- package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts.map +1 -1
- package/lib/molecule3d/ui/sceneDrawer.d.ts +47 -0
- package/lib/molecule3d/ui/sceneDrawer.d.ts.map +1 -0
- package/lib/molecule3d/ui/sceneDrawer.js +103 -0
- package/lib/molecule3d/ui/sceneDrawer.js.map +1 -0
- package/lib/molecule3d/ui/useMoleculeScene.d.ts +2 -1
- package/lib/molecule3d/ui/useMoleculeScene.d.ts.map +1 -1
- package/lib/molecule3d/ui/useMoleculeScene.js +13 -22
- package/lib/molecule3d/ui/useMoleculeScene.js.map +1 -1
- package/lib/molecule3d/ui/useSharedCamera.d.ts +1 -3
- package/lib/molecule3d/ui/useSharedCamera.d.ts.map +1 -1
- package/lib/molecule3d/ui/useSharedCamera.js.map +1 -1
- package/lib/moleculesClient/core/index.d.ts +5 -0
- package/lib/moleculesClient/core/index.d.ts.map +1 -0
- package/lib/moleculesClient/core/index.js +3 -0
- package/lib/moleculesClient/core/index.js.map +1 -0
- package/lib/moleculesClient/core/moleculesClient.d.ts +12 -0
- package/lib/moleculesClient/core/moleculesClient.d.ts.map +1 -0
- package/lib/moleculesClient/core/moleculesClient.js +105 -0
- package/lib/moleculesClient/core/moleculesClient.js.map +1 -0
- package/lib/moleculesClient/core/moleculesClientApi.d.ts +100 -0
- package/lib/moleculesClient/core/moleculesClientApi.d.ts.map +1 -0
- package/lib/moleculesClient/core/moleculesClientApi.js +20 -0
- package/lib/moleculesClient/core/moleculesClientApi.js.map +1 -0
- package/lib/moleculesClient/core/moleculesTypes.d.ts +154 -0
- package/lib/moleculesClient/core/moleculesTypes.d.ts.map +1 -0
- package/lib/moleculesClient/core/moleculesTypes.js +2 -0
- package/lib/moleculesClient/core/moleculesTypes.js.map +1 -0
- package/lib/moleculesClient/core/requestRetry.d.ts +50 -0
- package/lib/moleculesClient/core/requestRetry.d.ts.map +1 -0
- package/lib/moleculesClient/core/requestRetry.js +108 -0
- package/lib/moleculesClient/core/requestRetry.js.map +1 -0
- package/lib/molstar/core/camera.d.ts +2 -1
- package/lib/molstar/core/camera.d.ts.map +1 -1
- package/lib/molstar/core/camera.js +3 -2
- package/lib/molstar/core/camera.js.map +1 -1
- package/lib/molstar/core/framing.d.ts +102 -0
- package/lib/molstar/core/framing.d.ts.map +1 -0
- package/lib/molstar/core/framing.js +120 -0
- package/lib/molstar/core/framing.js.map +1 -0
- package/lib/molstar/core/hover.d.ts +16 -0
- package/lib/molstar/core/hover.d.ts.map +1 -1
- package/lib/molstar/core/hover.js +14 -0
- package/lib/molstar/core/hover.js.map +1 -1
- package/lib/molstar/core/index.d.ts +4 -1
- package/lib/molstar/core/index.d.ts.map +1 -1
- package/lib/molstar/core/index.js +2 -1
- package/lib/molstar/core/index.js.map +1 -1
- package/lib/pedagogy/core/answers.d.ts +46 -0
- package/lib/pedagogy/core/answers.d.ts.map +1 -0
- package/lib/pedagogy/core/answers.js +77 -0
- package/lib/pedagogy/core/answers.js.map +1 -0
- package/lib/pedagogy/core/attempts.d.ts +86 -0
- package/lib/pedagogy/core/attempts.d.ts.map +1 -0
- package/lib/pedagogy/core/attempts.js +117 -0
- package/lib/pedagogy/core/attempts.js.map +1 -0
- package/lib/pedagogy/core/index.d.ts +8 -0
- package/lib/pedagogy/core/index.d.ts.map +1 -1
- package/lib/pedagogy/core/index.js +4 -0
- package/lib/pedagogy/core/index.js.map +1 -1
- package/lib/pedagogy/core/progressController.d.ts +64 -0
- package/lib/pedagogy/core/progressController.d.ts.map +1 -0
- package/lib/pedagogy/core/progressController.js +56 -0
- package/lib/pedagogy/core/progressController.js.map +1 -0
- package/lib/pedagogy/core/seed.d.ts +96 -0
- package/lib/pedagogy/core/seed.d.ts.map +1 -0
- package/lib/pedagogy/core/seed.js +128 -0
- package/lib/pedagogy/core/seed.js.map +1 -0
- package/lib/pedagogy/core/series.d.ts +77 -0
- package/lib/pedagogy/core/series.d.ts.map +1 -0
- package/lib/pedagogy/core/series.js +10 -0
- package/lib/pedagogy/core/series.js.map +1 -0
- package/lib/pedagogy/ui/AnswerFields.d.ts +21 -0
- package/lib/pedagogy/ui/AnswerFields.d.ts.map +1 -0
- package/lib/pedagogy/ui/AnswerFields.js +24 -0
- package/lib/pedagogy/ui/AnswerFields.js.map +1 -0
- package/lib/pedagogy/ui/ExerciseList.d.ts +82 -0
- package/lib/pedagogy/ui/ExerciseList.d.ts.map +1 -0
- package/lib/pedagogy/ui/ExerciseList.js +53 -0
- package/lib/pedagogy/ui/ExerciseList.js.map +1 -0
- package/lib/pedagogy/ui/ExerciseSeries.d.ts +95 -0
- package/lib/pedagogy/ui/ExerciseSeries.d.ts.map +1 -0
- package/lib/pedagogy/ui/ExerciseSeries.js +74 -0
- package/lib/pedagogy/ui/ExerciseSeries.js.map +1 -0
- package/lib/pedagogy/ui/QuestionCard.d.ts +64 -0
- package/lib/pedagogy/ui/QuestionCard.d.ts.map +1 -0
- package/lib/pedagogy/ui/QuestionCard.js +73 -0
- package/lib/pedagogy/ui/QuestionCard.js.map +1 -0
- package/lib/pedagogy/ui/index.d.ts +10 -0
- package/lib/pedagogy/ui/index.d.ts.map +1 -1
- package/lib/pedagogy/ui/index.js +6 -0
- package/lib/pedagogy/ui/index.js.map +1 -1
- package/lib/pedagogy/ui/seriesCounts.d.ts +17 -0
- package/lib/pedagogy/ui/seriesCounts.d.ts.map +1 -0
- package/lib/pedagogy/ui/seriesCounts.js +27 -0
- package/lib/pedagogy/ui/seriesCounts.js.map +1 -0
- package/lib/pedagogy/ui/seriesParts.d.ts +55 -0
- package/lib/pedagogy/ui/seriesParts.d.ts.map +1 -0
- package/lib/pedagogy/ui/seriesParts.js +38 -0
- package/lib/pedagogy/ui/seriesParts.js.map +1 -0
- package/lib/pedagogy/ui/useAttemptRecords.d.ts +10 -0
- package/lib/pedagogy/ui/useAttemptRecords.d.ts.map +1 -0
- package/lib/pedagogy/ui/useAttemptRecords.js +11 -0
- package/lib/pedagogy/ui/useAttemptRecords.js.map +1 -0
- package/lib/periodic/ui/PeriodicTable.d.ts.map +1 -1
- package/lib/periodic/ui/PeriodicTable.js +6 -3
- package/lib/periodic/ui/PeriodicTable.js.map +1 -1
- package/lib/property/core/copyableText.d.ts +14 -0
- package/lib/property/core/copyableText.d.ts.map +1 -0
- package/lib/property/core/copyableText.js +21 -0
- package/lib/property/core/copyableText.js.map +1 -0
- package/lib/property/core/index.d.ts +2 -0
- package/lib/property/core/index.d.ts.map +1 -0
- package/lib/property/core/index.js +2 -0
- package/lib/property/core/index.js.map +1 -0
- package/lib/property/ui/PropertyTable.d.ts +43 -0
- package/lib/property/ui/PropertyTable.d.ts.map +1 -0
- package/lib/property/ui/PropertyTable.js +19 -0
- package/lib/property/ui/PropertyTable.js.map +1 -0
- package/lib/property/ui/index.d.ts +3 -0
- package/lib/property/ui/index.d.ts.map +1 -0
- package/lib/property/ui/index.js +2 -0
- package/lib/property/ui/index.js.map +1 -0
- package/lib/router/core/history.d.ts +24 -3
- package/lib/router/core/history.d.ts.map +1 -1
- package/lib/router/core/history.js +55 -7
- package/lib/router/core/history.js.map +1 -1
- package/lib/router/core/index.d.ts +3 -3
- package/lib/router/core/index.d.ts.map +1 -1
- package/lib/router/core/index.js +2 -2
- package/lib/router/core/index.js.map +1 -1
- package/lib/router/core/languageRoute.d.ts +61 -0
- package/lib/router/core/languageRoute.d.ts.map +1 -0
- package/lib/router/core/languageRoute.js +96 -0
- package/lib/router/core/languageRoute.js.map +1 -0
- package/lib/router/core/siteAddresses.d.ts +23 -0
- package/lib/router/core/siteAddresses.d.ts.map +1 -1
- package/lib/router/core/siteAddresses.js +26 -0
- package/lib/router/core/siteAddresses.js.map +1 -1
- package/lib/router/core/tabRouter.d.ts +2 -108
- package/lib/router/core/tabRouter.d.ts.map +1 -1
- package/lib/router/core/tabRouter.js +38 -5
- package/lib/router/core/tabRouter.js.map +1 -1
- package/lib/router/core/tabRouterTypes.d.ts +154 -0
- package/lib/router/core/tabRouterTypes.d.ts.map +1 -0
- package/lib/router/core/tabRouterTypes.js +2 -0
- package/lib/router/core/tabRouterTypes.js.map +1 -0
- package/lib/seo/core/fitDescription.d.ts +40 -0
- package/lib/seo/core/fitDescription.d.ts.map +1 -0
- package/lib/seo/core/fitDescription.js +45 -0
- package/lib/seo/core/fitDescription.js.map +1 -0
- package/lib/seo/core/index.d.ts +7 -0
- package/lib/seo/core/index.d.ts.map +1 -1
- package/lib/seo/core/index.js +4 -0
- package/lib/seo/core/index.js.map +1 -1
- package/lib/seo/core/limits.d.ts +24 -0
- package/lib/seo/core/limits.d.ts.map +1 -0
- package/lib/seo/core/limits.js +24 -0
- package/lib/seo/core/limits.js.map +1 -0
- package/lib/seo/core/pageContent.d.ts +25 -0
- package/lib/seo/core/pageContent.d.ts.map +1 -0
- package/lib/seo/core/pageContent.js +25 -0
- package/lib/seo/core/pageContent.js.map +1 -0
- package/lib/seo/core/plainDescription.d.ts.map +1 -1
- package/lib/seo/core/plainDescription.js +3 -2
- package/lib/seo/core/plainDescription.js.map +1 -1
- package/lib/seo/core/routeProblems.d.ts.map +1 -1
- package/lib/seo/core/routeProblems.js +1 -6
- package/lib/seo/core/routeProblems.js.map +1 -1
- package/lib/seo/core/routeTable.d.ts +31 -0
- package/lib/seo/core/routeTable.d.ts.map +1 -0
- package/lib/seo/core/routeTable.js +96 -0
- package/lib/seo/core/routeTable.js.map +1 -0
- package/lib/seo/vite/index.d.ts +2 -0
- package/lib/seo/vite/index.d.ts.map +1 -1
- package/lib/seo/vite/index.js +1 -0
- package/lib/seo/vite/index.js.map +1 -1
- package/lib/seo/vite/prerender.d.ts +10 -0
- package/lib/seo/vite/prerender.d.ts.map +1 -1
- package/lib/seo/vite/prerender.js +12 -1
- package/lib/seo/vite/prerender.js.map +1 -1
- package/lib/seo/vite/routeTable.d.ts +40 -0
- package/lib/seo/vite/routeTable.d.ts.map +1 -0
- package/lib/seo/vite/routeTable.js +44 -0
- package/lib/seo/vite/routeTable.js.map +1 -0
- package/lib/server/answerAddresses.d.ts +51 -0
- package/lib/server/answerAddresses.d.ts.map +1 -0
- package/lib/server/answerAddresses.js +72 -0
- package/lib/server/answerAddresses.js.map +1 -0
- package/lib/server/cardMeta.d.ts +57 -0
- package/lib/server/cardMeta.d.ts.map +1 -0
- package/lib/server/cardMeta.js +52 -0
- package/lib/server/cardMeta.js.map +1 -0
- package/lib/server/config.d.ts +72 -0
- package/lib/server/config.d.ts.map +1 -0
- package/lib/server/config.js +67 -0
- package/lib/server/config.js.map +1 -0
- package/lib/server/envNumber.d.ts +35 -0
- package/lib/server/envNumber.d.ts.map +1 -0
- package/lib/server/envNumber.js +42 -0
- package/lib/server/envNumber.js.map +1 -0
- package/lib/server/healthRoute.d.ts +26 -0
- package/lib/server/healthRoute.d.ts.map +1 -0
- package/lib/server/healthRoute.js +22 -0
- package/lib/server/healthRoute.js.map +1 -0
- package/lib/server/listenSite.d.ts +38 -0
- package/lib/server/listenSite.d.ts.map +1 -0
- package/lib/server/listenSite.js +60 -0
- package/lib/server/listenSite.js.map +1 -0
- package/lib/server/mcpServer.d.ts +8 -0
- package/lib/server/mcpServer.d.ts.map +1 -0
- package/lib/server/mcpServer.js +11 -0
- package/lib/server/mcpServer.js.map +1 -0
- package/lib/server/repositoryVersion.d.ts +16 -0
- package/lib/server/repositoryVersion.d.ts.map +1 -0
- package/lib/server/repositoryVersion.js +33 -0
- package/lib/server/repositoryVersion.js.map +1 -0
- package/lib/server/routeOptions.d.ts +23 -0
- package/lib/server/routeOptions.d.ts.map +1 -0
- package/lib/server/routeOptions.js +20 -0
- package/lib/server/routeOptions.js.map +1 -0
- package/lib/server/routeTable.d.ts +14 -0
- package/lib/server/routeTable.d.ts.map +1 -0
- package/lib/server/routeTable.js +32 -0
- package/lib/server/routeTable.js.map +1 -0
- package/lib/server/siteView.d.ts +29 -0
- package/lib/server/siteView.d.ts.map +1 -0
- package/lib/server/siteView.js +21 -0
- package/lib/server/siteView.js.map +1 -0
- package/lib/server/spaPages.d.ts +32 -0
- package/lib/server/spaPages.d.ts.map +1 -0
- package/lib/server/spaPages.js +126 -0
- package/lib/server/spaPages.js.map +1 -0
- package/lib/server/spaSite.d.ts +30 -0
- package/lib/server/spaSite.d.ts.map +1 -0
- package/lib/server/spaSite.js +170 -0
- package/lib/server/spaSite.js.map +1 -0
- package/lib/server/spaSiteOptions.d.ts +126 -0
- package/lib/server/spaSiteOptions.d.ts.map +1 -0
- package/lib/server/spaSiteOptions.js +2 -0
- package/lib/server/spaSiteOptions.js.map +1 -0
- package/lib/server/staticSite.d.ts +9 -0
- package/lib/server/staticSite.d.ts.map +1 -1
- package/lib/server/staticSite.js +41 -19
- package/lib/server/staticSite.js.map +1 -1
- package/lib/server/toolSiteServer.d.ts +77 -0
- package/lib/server/toolSiteServer.d.ts.map +1 -0
- package/lib/server/toolSiteServer.js +58 -0
- package/lib/server/toolSiteServer.js.map +1 -0
- package/lib/server/trustProxy.d.ts +20 -0
- package/lib/server/trustProxy.d.ts.map +1 -0
- package/lib/server/trustProxy.js +32 -0
- package/lib/server/trustProxy.js.map +1 -0
- package/lib/server/types.d.ts +13 -0
- package/lib/server/types.d.ts.map +1 -0
- package/lib/server/types.js +2 -0
- package/lib/server/types.js.map +1 -0
- package/lib/server.d.ts +22 -0
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +12 -0
- package/lib/server.js.map +1 -1
- package/lib/share/core/config.d.ts +18 -0
- package/lib/share/core/config.d.ts.map +1 -1
- package/lib/share/core/config.js +33 -2
- package/lib/share/core/config.js.map +1 -1
- package/lib/share/core/index.d.ts +3 -1
- package/lib/share/core/index.d.ts.map +1 -1
- package/lib/share/core/index.js +2 -1
- package/lib/share/core/index.js.map +1 -1
- package/lib/share/core/keySetParam.d.ts +40 -0
- package/lib/share/core/keySetParam.d.ts.map +1 -0
- package/lib/share/core/keySetParam.js +60 -0
- package/lib/share/core/keySetParam.js.map +1 -0
- package/lib/share/core/vocabulary.d.ts +8 -0
- package/lib/share/core/vocabulary.d.ts.map +1 -1
- package/lib/shell/ui/ShareControl.d.ts +75 -0
- package/lib/shell/ui/ShareControl.d.ts.map +1 -0
- package/lib/shell/ui/ShareControl.js +40 -0
- package/lib/shell/ui/ShareControl.js.map +1 -0
- package/lib/shell/ui/ShellFrame.d.ts +14 -0
- package/lib/shell/ui/ShellFrame.d.ts.map +1 -0
- package/lib/shell/ui/ShellFrame.js +45 -0
- package/lib/shell/ui/ShellFrame.js.map +1 -0
- package/lib/shell/ui/SiteShell.d.ts +251 -0
- package/lib/shell/ui/SiteShell.d.ts.map +1 -0
- package/lib/shell/ui/SiteShell.js +39 -0
- package/lib/shell/ui/SiteShell.js.map +1 -0
- package/lib/shell/ui/index.d.ts +5 -0
- package/lib/shell/ui/index.d.ts.map +1 -0
- package/lib/shell/ui/index.js +3 -0
- package/lib/shell/ui/index.js.map +1 -0
- package/lib/state/core/index.d.ts +1 -0
- package/lib/state/core/index.d.ts.map +1 -1
- package/lib/state/core/index.js.map +1 -1
- package/lib/state/core/legacyEntries.d.ts +30 -0
- package/lib/state/core/legacyEntries.d.ts.map +1 -0
- package/lib/state/core/legacyEntries.js +51 -0
- package/lib/state/core/legacyEntries.js.map +1 -0
- package/lib/state/core/persistBucket.d.ts +26 -2
- package/lib/state/core/persistBucket.d.ts.map +1 -1
- package/lib/state/core/persistBucket.js +26 -9
- package/lib/state/core/persistBucket.js.map +1 -1
- package/lib/state/core/persistSignalBucket.d.ts +26 -0
- package/lib/state/core/persistSignalBucket.d.ts.map +1 -1
- package/lib/state/core/persistSignalBucket.js +31 -0
- package/lib/state/core/persistSignalBucket.js.map +1 -1
- package/lib/state/core/storageEntry.d.ts +15 -0
- package/lib/state/core/storageEntry.d.ts.map +1 -1
- package/lib/state/core/storageEntry.js +33 -0
- package/lib/state/core/storageEntry.js.map +1 -1
- package/lib/structure/ui/StructureExportButton.d.ts +27 -0
- package/lib/structure/ui/StructureExportButton.d.ts.map +1 -0
- package/lib/structure/ui/StructureExportButton.js +21 -0
- package/lib/structure/ui/StructureExportButton.js.map +1 -0
- package/lib/structure/ui/index.d.ts +4 -0
- package/lib/structure/ui/index.d.ts.map +1 -1
- package/lib/structure/ui/index.js +2 -0
- package/lib/structure/ui/index.js.map +1 -1
- package/lib/structure/ui/useStructureDraft.d.ts +32 -0
- package/lib/structure/ui/useStructureDraft.d.ts.map +1 -0
- package/lib/structure/ui/useStructureDraft.js +20 -0
- package/lib/structure/ui/useStructureDraft.js.map +1 -0
- package/lib/ui.d.ts +2 -0
- package/lib/ui.d.ts.map +1 -1
- package/lib/ui.js +2 -0
- package/lib/ui.js.map +1 -1
- package/lib/worker/core/index.d.ts +1 -1
- package/lib/worker/core/index.d.ts.map +1 -1
- package/lib/worker/core/messages.d.ts +4 -2
- package/lib/worker/core/messages.d.ts.map +1 -1
- package/lib/worker/core/messages.js.map +1 -1
- package/lib/worker/core/oclResourcesUrl.d.ts +16 -0
- package/lib/worker/core/oclResourcesUrl.d.ts.map +1 -0
- package/lib/worker/core/oclResourcesUrl.js +19 -0
- package/lib/worker/core/oclResourcesUrl.js.map +1 -0
- package/lib/worker/core/serveWorkerRequests.d.ts +8 -0
- package/lib/worker/core/serveWorkerRequests.d.ts.map +1 -1
- package/lib/worker/core/serveWorkerRequests.js +15 -2
- package/lib/worker/core/serveWorkerRequests.js.map +1 -1
- package/lib/worker/core/workerChannel.d.ts +3 -4
- package/lib/worker/core/workerChannel.d.ts.map +1 -1
- package/lib/worker/core/workerChannel.js +72 -67
- package/lib/worker/core/workerChannel.js.map +1 -1
- package/lib/worker/core/workerChannelParts.d.ts +17 -6
- package/lib/worker/core/workerChannelParts.d.ts.map +1 -1
- package/lib/worker/core/workerChannelParts.js +20 -4
- package/lib/worker/core/workerChannelParts.js.map +1 -1
- package/lib/worker/core/workerChannelTypes.d.ts +46 -2
- package/lib/worker/core/workerChannelTypes.d.ts.map +1 -1
- package/lib/worker/core/workerSlot.d.ts +66 -0
- package/lib/worker/core/workerSlot.d.ts.map +1 -0
- package/lib/worker/core/workerSlot.js +107 -0
- package/lib/worker/core/workerSlot.js.map +1 -0
- package/package.json +16 -1
- package/src/card/core/cardAddress.ts +100 -0
- package/src/card/core/cardPageUrl.ts +97 -0
- package/src/card/core/index.ts +6 -0
- package/src/card/core/panelRoom.ts +66 -0
- package/src/card/ui/CardDetailsButton.tsx +104 -0
- package/src/card/ui/CardFigure.tsx +86 -0
- package/src/card/ui/CardFrame.tsx +46 -0
- package/src/card/ui/CopyTableButton.tsx +81 -0
- package/src/card/ui/cardTooltip.ts +18 -0
- package/src/card/ui/embed.ts +27 -0
- package/src/card/ui/fitCardToFrame.ts +76 -0
- package/src/card/ui/holdRoomForPanels.ts +83 -0
- package/src/card/ui/index.ts +14 -0
- package/src/card/ui/openPanels.ts +106 -0
- package/src/card.ts +13 -0
- package/src/conformers.ts +4 -0
- package/src/core.ts +5 -0
- package/src/fetch/core/apiError.ts +65 -0
- package/src/fetch/core/fetchJson.ts +129 -0
- package/src/fetch/core/index.ts +4 -0
- package/src/formula/core/formulaText.ts +96 -0
- package/src/formula/core/index.ts +20 -0
- package/src/formula/core/normalizeFormula.ts +50 -0
- package/src/formula/core/readFormula.ts +211 -0
- package/src/formula/ui/CopyableFormula.tsx +51 -0
- package/src/formula/ui/FormulaInput.tsx +50 -0
- package/src/formula/ui/QuestionFormula.tsx +20 -0
- package/src/formula/ui/index.ts +6 -0
- package/src/formula.ts +11 -0
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/keyTargets.ts +5 -3
- package/src/hooks/ui/useAsync.ts +50 -14
- package/src/locales/de.json +37 -0
- package/src/locales/en.json +37 -0
- package/src/locales/es.json +37 -0
- package/src/locales/fr.json +37 -0
- package/src/locales/it.json +37 -0
- package/src/molecule3d/core/highlight.ts +2 -8
- package/src/molecule3d/core/index.ts +1 -0
- package/src/molecule3d/core/measurement.ts +47 -0
- package/src/molecule3d/ui/drawScene.ts +13 -2
- package/src/molecule3d/ui/moleculeViewer3DProps.ts +3 -1
- package/src/molecule3d/ui/sceneDrawer.ts +132 -0
- package/src/molecule3d/ui/useMoleculeScene.ts +16 -26
- package/src/molecule3d/ui/useSharedCamera.ts +1 -3
- package/src/moleculesClient/core/index.ts +19 -0
- package/src/moleculesClient/core/moleculesClient.ts +175 -0
- package/src/moleculesClient/core/moleculesClientApi.ts +120 -0
- package/src/moleculesClient/core/moleculesTypes.ts +163 -0
- package/src/moleculesClient/core/requestRetry.ts +118 -0
- package/src/molstar/core/camera.ts +3 -2
- package/src/molstar/core/framing.ts +200 -0
- package/src/molstar/core/hover.ts +26 -0
- package/src/molstar/core/index.ts +21 -1
- package/src/pedagogy/core/answers.ts +94 -0
- package/src/pedagogy/core/attempts.ts +205 -0
- package/src/pedagogy/core/index.ts +36 -0
- package/src/pedagogy/core/progressController.ts +116 -0
- package/src/pedagogy/core/seed.ts +177 -0
- package/src/pedagogy/core/series.ts +82 -0
- package/src/pedagogy/ui/AnswerFields.tsx +63 -0
- package/src/pedagogy/ui/ExerciseList.tsx +202 -0
- package/src/pedagogy/ui/ExerciseSeries.tsx +250 -0
- package/src/pedagogy/ui/QuestionCard.tsx +231 -0
- package/src/pedagogy/ui/index.ts +18 -0
- package/src/pedagogy/ui/seriesCounts.ts +34 -0
- package/src/pedagogy/ui/seriesParts.tsx +127 -0
- package/src/pedagogy/ui/useAttemptRecords.ts +16 -0
- package/src/periodic/ui/PeriodicTable.tsx +6 -3
- package/src/property/core/copyableText.ts +20 -0
- package/src/property/core/index.ts +1 -0
- package/src/property/ui/PropertyTable.tsx +83 -0
- package/src/property/ui/index.ts +2 -0
- package/src/router/core/history.ts +61 -7
- package/src/router/core/index.ts +3 -2
- package/src/router/core/languageRoute.ts +136 -0
- package/src/router/core/siteAddresses.ts +38 -0
- package/src/router/core/tabRouter.ts +59 -117
- package/src/router/core/tabRouterTypes.ts +158 -0
- package/src/seo/core/fitDescription.ts +74 -0
- package/src/seo/core/index.ts +17 -0
- package/src/seo/core/limits.ts +27 -0
- package/src/seo/core/pageContent.ts +42 -0
- package/src/seo/core/plainDescription.ts +4 -2
- package/src/seo/core/routeProblems.ts +1 -7
- package/src/seo/core/routeTable.ts +103 -0
- package/src/seo/vite/index.ts +2 -0
- package/src/seo/vite/prerender.ts +26 -1
- package/src/seo/vite/routeTable.ts +79 -0
- package/src/server/answerAddresses.ts +92 -0
- package/src/server/cardMeta.ts +88 -0
- package/src/server/config.ts +125 -0
- package/src/server/envNumber.ts +65 -0
- package/src/server/healthRoute.ts +42 -0
- package/src/server/listenSite.ts +90 -0
- package/src/server/mcpServer.ts +14 -0
- package/src/server/repositoryVersion.ts +33 -0
- package/src/server/routeOptions.ts +26 -0
- package/src/server/routeTable.ts +35 -0
- package/src/server/siteView.ts +42 -0
- package/src/server/spaPages.ts +179 -0
- package/src/server/spaSite.ts +216 -0
- package/src/server/spaSiteOptions.ts +133 -0
- package/src/server/staticSite.ts +65 -35
- package/src/server/toolSiteServer.ts +127 -0
- package/src/server/trustProxy.ts +32 -0
- package/src/server/types.ts +25 -0
- package/src/server.ts +40 -0
- package/src/share/core/config.ts +45 -2
- package/src/share/core/index.ts +4 -0
- package/src/share/core/keySetParam.ts +92 -0
- package/src/share/core/vocabulary.ts +8 -0
- package/src/shell/ui/ShareControl.tsx +150 -0
- package/src/shell/ui/ShellFrame.tsx +180 -0
- package/src/shell/ui/SiteShell.tsx +297 -0
- package/src/shell/ui/index.ts +9 -0
- package/src/state/core/index.ts +1 -0
- package/src/state/core/legacyEntries.ts +76 -0
- package/src/state/core/persistBucket.ts +50 -10
- package/src/state/core/persistSignalBucket.ts +52 -0
- package/src/state/core/storageEntry.ts +32 -0
- package/src/structure/ui/StructureExportButton.tsx +57 -0
- package/src/structure/ui/index.ts +4 -0
- package/src/structure/ui/useStructureDraft.ts +47 -0
- package/src/ui.ts +2 -0
- package/src/worker/core/index.ts +1 -0
- package/src/worker/core/messages.ts +4 -3
- package/src/worker/core/oclResourcesUrl.ts +21 -0
- package/src/worker/core/serveWorkerRequests.ts +30 -2
- package/src/worker/core/workerChannel.ts +74 -74
- package/src/worker/core/workerChannelParts.ts +33 -13
- package/src/worker/core/workerChannelTypes.ts +47 -2
- package/src/worker/core/workerSlot.ts +181 -0
- package/styles/card.css +145 -0
- package/styles/chrome.css +248 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { FastifyReply } from 'fastify';
|
|
2
|
+
|
|
3
|
+
import type { SiteId, SiteRecord } from '../ecosystem/core/sites.ts';
|
|
4
|
+
import type { NoscriptText } from '../seo/core/noscript.ts';
|
|
5
|
+
import type { PageContent } from '../seo/core/pageProse.ts';
|
|
6
|
+
import type { RobotsDisallow } from '../seo/core/robots.ts';
|
|
7
|
+
import type { RouteMeta } from '../seo/core/routes.ts';
|
|
8
|
+
import type { StructuredDataOptions } from '../seo/core/structuredData.ts';
|
|
9
|
+
|
|
10
|
+
import type { HealthRouteOptions } from './healthRoute.ts';
|
|
11
|
+
|
|
12
|
+
/** A page an address names that the route table does not: a compound, a course. */
|
|
13
|
+
export interface SpaPage {
|
|
14
|
+
/** Its title, description and canonical path. */
|
|
15
|
+
meta: RouteMeta;
|
|
16
|
+
/**
|
|
17
|
+
* What it says for itself in the crawl path.
|
|
18
|
+
* @default its title as heading, its description as the paragraph
|
|
19
|
+
*/
|
|
20
|
+
content?: PageContent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** What the structured-data block says beyond the site and its address. */
|
|
24
|
+
export type SpaStructuredData = Omit<
|
|
25
|
+
StructuredDataOptions,
|
|
26
|
+
'site' | 'routes' | 'origin' | 'languages'
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/** Options of `spaSite`. */
|
|
30
|
+
export interface SpaSiteOptions {
|
|
31
|
+
/** The directory holding the built frontend. */
|
|
32
|
+
root: string;
|
|
33
|
+
/** The site, named or passed. */
|
|
34
|
+
site: SiteRecord | SiteId;
|
|
35
|
+
/**
|
|
36
|
+
* Every address the frontend routes itself, each with its title and
|
|
37
|
+
* description.
|
|
38
|
+
* @default the `routes.json` the build wrote beside the page, or the site's
|
|
39
|
+
* home page alone
|
|
40
|
+
*/
|
|
41
|
+
routes?: readonly RouteMeta[];
|
|
42
|
+
/**
|
|
43
|
+
* Where the site is served, mount path included, e.g.
|
|
44
|
+
* `https://learn.cheminfo.org/surge`. Every canonical, card and sitemap address
|
|
45
|
+
* is built on it. A blank value is unset, as compose forwards `${SITE_URL:-}`.
|
|
46
|
+
* @default the origin the request arrived on
|
|
47
|
+
*/
|
|
48
|
+
siteUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The analytics snippet, put at the end of the head of every page.
|
|
51
|
+
* @default undefined - nothing is loaded
|
|
52
|
+
*/
|
|
53
|
+
trackingScript?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Address prefixes another plugin answers, such as the API, which never
|
|
56
|
+
* answer a page: an unknown address there is the API's own 404.
|
|
57
|
+
* @default ['/v1/', '/docs']
|
|
58
|
+
*/
|
|
59
|
+
reserved?: readonly string[];
|
|
60
|
+
/**
|
|
61
|
+
* The prose of the crawl path, and the pages it links.
|
|
62
|
+
* @default the site's name and tagline, linking every indexed route
|
|
63
|
+
*/
|
|
64
|
+
noscript?: NoscriptText;
|
|
65
|
+
/**
|
|
66
|
+
* The structured-data block of every page: what kind of application the site
|
|
67
|
+
* is, a function writing the whole `<script>` for the origin served (an
|
|
68
|
+
* author, a citation, a search action), or `false` for none.
|
|
69
|
+
* @default {} - a free web application, described by the site's tagline
|
|
70
|
+
*/
|
|
71
|
+
structuredData?: false | SpaStructuredData | ((origin: string) => string);
|
|
72
|
+
/**
|
|
73
|
+
* The card a link to a page unfurls into, as an absolute address or a path.
|
|
74
|
+
* @default '/og.png'
|
|
75
|
+
*/
|
|
76
|
+
image?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Addresses `robots.txt` keeps out of the index, each optionally with the
|
|
79
|
+
* sentence saying why.
|
|
80
|
+
* @default ['/v1/', '/docs']
|
|
81
|
+
*/
|
|
82
|
+
robots?: ReadonlyArray<string | RobotsDisallow>;
|
|
83
|
+
/**
|
|
84
|
+
* More addresses the sitemap lists after the route table: one per compound,
|
|
85
|
+
* per published course.
|
|
86
|
+
* @default undefined - the route table alone
|
|
87
|
+
*/
|
|
88
|
+
sitemapPaths?: () => readonly string[] | Promise<readonly string[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The page an address names when the route table does not: read from the
|
|
91
|
+
* database, so `/compound/1234` is indexed under the compound's own name.
|
|
92
|
+
* `undefined` falls back to the table.
|
|
93
|
+
* @default undefined - every address is read from the table
|
|
94
|
+
*/
|
|
95
|
+
page?: (url: string) => SpaPage | undefined | Promise<SpaPage | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Whether an address is one the app routes, given its path without the query
|
|
98
|
+
* and without the mount.
|
|
99
|
+
* @default whether the route table claims it, or `page` named it
|
|
100
|
+
*/
|
|
101
|
+
knownRoute?: (path: string) => boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The status an address the app does not route is answered with. It is
|
|
104
|
+
* still the page, so the app draws its own "not found", but a crawler is not
|
|
105
|
+
* handed a soft 404.
|
|
106
|
+
* @default 200
|
|
107
|
+
*/
|
|
108
|
+
notFoundStatus?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Whether search engines may index the site. An admin site sets `false`:
|
|
111
|
+
* every answer then carries `X-Robots-Tag: noindex, nofollow`, `robots.txt`
|
|
112
|
+
* disallows everything, there is no sitemap, and a page without the
|
|
113
|
+
* `<!--cheminfo:head-->` marker is served as it is.
|
|
114
|
+
* @default true
|
|
115
|
+
*/
|
|
116
|
+
indexed?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* How many pages, each with its own crawl path, are kept built.
|
|
119
|
+
* @default 2000
|
|
120
|
+
*/
|
|
121
|
+
maxCachedPages?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Whether `/health` is answered here, and with what more.
|
|
124
|
+
* @default true
|
|
125
|
+
*/
|
|
126
|
+
health?: boolean | HealthRouteOptions;
|
|
127
|
+
/**
|
|
128
|
+
* Headers for a file of the build, such as a cross-origin opening for the
|
|
129
|
+
* decks another site fetches.
|
|
130
|
+
* @default undefined - the cache headers alone
|
|
131
|
+
*/
|
|
132
|
+
setHeaders?: (reply: FastifyReply, file: string) => void;
|
|
133
|
+
}
|
package/src/server/staticSite.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { join, relative, resolve, sep } from 'node:path';
|
|
3
3
|
|
|
4
|
-
import type {
|
|
5
|
-
FastifyInstance,
|
|
6
|
-
FastifyReply,
|
|
7
|
-
FastifyRequest,
|
|
8
|
-
FastifySchema,
|
|
9
|
-
} from 'fastify';
|
|
4
|
+
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
|
|
10
5
|
|
|
6
|
+
import { joinBasePath, normalizeBasePath } from '../router/core/basePath.ts';
|
|
11
7
|
import { injectTrackingScript } from '../seo/core/trackingScript.ts';
|
|
12
|
-
|
|
8
|
+
import { escapeAttribute } from '../share/core/escape.ts';
|
|
9
|
+
|
|
10
|
+
import { healthRoute } from './healthRoute.ts';
|
|
11
|
+
import {
|
|
12
|
+
ALLOW_ORIGIN,
|
|
13
|
+
BUNDLE_CACHE,
|
|
14
|
+
HIDDEN,
|
|
15
|
+
PAGE_CACHE,
|
|
16
|
+
} from './routeOptions.ts';
|
|
13
17
|
import { isHashedBundle, listSiteFiles, resolveAddress } from './siteFiles.ts';
|
|
14
18
|
|
|
15
19
|
/** Options of {@link staticSite}. */
|
|
@@ -35,6 +39,15 @@ export interface StaticSiteOptions {
|
|
|
35
39
|
* @default ['/v1/']
|
|
36
40
|
*/
|
|
37
41
|
reserved?: readonly string[];
|
|
42
|
+
/**
|
|
43
|
+
* The path the deployment is mounted at, `/osiris` for
|
|
44
|
+
* `https://www.cheminfo.org/osiris/`, behind a proxy that takes it off before
|
|
45
|
+
* the request arrives. It is written into the `<base href="/">` of every page
|
|
46
|
+
* when they are read, and in front of every redirect, so one image serves a
|
|
47
|
+
* host of its own and a shared one without a rebuild or a copy of the build.
|
|
48
|
+
* @default '' - the site owns the root of its host
|
|
49
|
+
*/
|
|
50
|
+
basePath?: string;
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
/** A page: the file with the snippet in its head, and the tag a browser checks. */
|
|
@@ -43,21 +56,8 @@ interface Page {
|
|
|
43
56
|
etag: string;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
|
-
/**
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
/** A bundle is named by its content, so it never changes under its name. */
|
|
50
|
-
const BUNDLE_CACHE = 'public, max-age=31536000, immutable';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Every file of a build is public, and a page framed by a sandboxed view runs
|
|
54
|
-
* under an opaque origin, where everything it fetches from its own site is
|
|
55
|
-
* cross-origin: the static hosts open every response, and so does this server.
|
|
56
|
-
*/
|
|
57
|
-
const ALLOW_ORIGIN = 'access-control-allow-origin';
|
|
58
|
-
|
|
59
|
-
/** Kept out of the API's documentation (`@fastify/swagger` reads `hide`). */
|
|
60
|
-
const HIDDEN: FastifySchema & { hide: boolean } = { hide: true };
|
|
59
|
+
/** The `<base>` a build carries, which a mounted deployment rewrites. */
|
|
60
|
+
const ROOT_BASE = /<base\s+href=(?<quote>["'])\/\k<quote>\s*\/?>/i;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* Serve a site's build from Node, with the rules every static host of the
|
|
@@ -81,19 +81,16 @@ export async function staticSite(
|
|
|
81
81
|
): Promise<void> {
|
|
82
82
|
const { trackingScript, redirects = {}, reserved = ['/v1/'] } = options;
|
|
83
83
|
const root = resolve(options.root);
|
|
84
|
+
const basePath = normalizeBasePath(options.basePath ?? '');
|
|
84
85
|
|
|
85
|
-
fastify
|
|
86
|
-
'/health',
|
|
87
|
-
{ logLevel: 'silent', schema: HIDDEN },
|
|
88
|
-
(_request, reply) => reply.header(ALLOW_ORIGIN, '*').send({ status: 'ok' }),
|
|
89
|
-
);
|
|
86
|
+
await healthRoute(fastify);
|
|
90
87
|
|
|
91
88
|
const files = await listSiteFiles(root);
|
|
92
89
|
if (files === undefined) {
|
|
93
90
|
fastify.log.warn({ root }, 'no built site: serving the API alone');
|
|
94
91
|
return;
|
|
95
92
|
}
|
|
96
|
-
const pages = await readPages(root, files, trackingScript);
|
|
93
|
+
const pages = await readPages(root, files, { trackingScript, basePath });
|
|
97
94
|
|
|
98
95
|
// An optional peer, installed only by a site that has a server: importing
|
|
99
96
|
// react-cheminfo/server must not need it.
|
|
@@ -121,7 +118,10 @@ export async function staticSite(
|
|
|
121
118
|
const destination =
|
|
122
119
|
redirects[pathname] ?? redirects[pathname.replace(/\/$/, '')];
|
|
123
120
|
if (destination !== undefined) {
|
|
124
|
-
return reply.redirect(
|
|
121
|
+
return reply.redirect(
|
|
122
|
+
`${mountedAddress(basePath, destination)}${search}`,
|
|
123
|
+
301,
|
|
124
|
+
);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
const file = resolveAddress(files, pathname);
|
|
@@ -138,23 +138,29 @@ export async function staticSite(
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* Read every page of the build once, with the snippet in its head
|
|
141
|
+
* Read every page of the build once, with the snippet in its head and the
|
|
142
|
+
* mount in its `<base>`.
|
|
142
143
|
* @param root - The build.
|
|
143
144
|
* @param files - Its files.
|
|
144
|
-
* @param
|
|
145
|
+
* @param stamp - What is written into every page.
|
|
146
|
+
* @param stamp.trackingScript - The snippet, if any.
|
|
147
|
+
* @param stamp.basePath - The mount, `''` for none.
|
|
145
148
|
* @returns The pages, by file.
|
|
146
149
|
*/
|
|
147
150
|
async function readPages(
|
|
148
151
|
root: string,
|
|
149
152
|
files: ReadonlySet<string>,
|
|
150
|
-
trackingScript: string | undefined,
|
|
153
|
+
stamp: { trackingScript: string | undefined; basePath: string },
|
|
151
154
|
): Promise<Map<string, Page>> {
|
|
152
155
|
const htmlFiles = [...files].filter((file) => file.endsWith('.html'));
|
|
153
156
|
const pages = await Promise.all(
|
|
154
157
|
htmlFiles.map(async (file) => {
|
|
155
|
-
const html =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
const html = stampBase(
|
|
159
|
+
injectTrackingScript(
|
|
160
|
+
await readFile(join(root, file), 'utf8'),
|
|
161
|
+
stamp.trackingScript,
|
|
162
|
+
),
|
|
163
|
+
stamp.basePath,
|
|
158
164
|
);
|
|
159
165
|
return [file, { html, etag: await etagOf(html) }] as const;
|
|
160
166
|
}),
|
|
@@ -162,6 +168,30 @@ async function readPages(
|
|
|
162
168
|
return new Map(pages);
|
|
163
169
|
}
|
|
164
170
|
|
|
171
|
+
/**
|
|
172
|
+
* Write the mount into the first `<base href="/">` a page carries, as the
|
|
173
|
+
* container entrypoints of a mounted image do.
|
|
174
|
+
* @param html - The page.
|
|
175
|
+
* @param basePath - The mount, `''` for none.
|
|
176
|
+
* @returns The page, its relative addresses resolving under the mount.
|
|
177
|
+
*/
|
|
178
|
+
function stampBase(html: string, basePath: string): string {
|
|
179
|
+
if (basePath === '') return html;
|
|
180
|
+
const tag = `<base href="${escapeAttribute(`${basePath}/`)}" />`;
|
|
181
|
+
return html.replace(ROOT_BASE, () => tag);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Where a redirect sends the browser: under the mount the proxy took off.
|
|
186
|
+
* @param basePath - The mount, `''` for none.
|
|
187
|
+
* @param destination - The address, from the site's own root or absolute.
|
|
188
|
+
* @returns The address the browser is sent to.
|
|
189
|
+
*/
|
|
190
|
+
function mountedAddress(basePath: string, destination: string): string {
|
|
191
|
+
if (basePath === '' || !destination.startsWith('/')) return destination;
|
|
192
|
+
return joinBasePath(basePath, destination);
|
|
193
|
+
}
|
|
194
|
+
|
|
165
195
|
function sendPage(
|
|
166
196
|
request: FastifyRequest,
|
|
167
197
|
reply: FastifyReply,
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { FastifyInstance, FastifyServerOptions } from 'fastify';
|
|
2
|
+
|
|
3
|
+
import { siteById } from '../ecosystem/core/lookup.ts';
|
|
4
|
+
import type { SiteId } from '../ecosystem/core/sites.ts';
|
|
5
|
+
|
|
6
|
+
import type { ServerConfig } from './config.ts';
|
|
7
|
+
import type { ListenSiteOptions } from './listenSite.ts';
|
|
8
|
+
import { listenSite } from './listenSite.ts';
|
|
9
|
+
import { readRepositoryVersion } from './repositoryVersion.ts';
|
|
10
|
+
import { DEFAULT_RESERVED } from './routeOptions.ts';
|
|
11
|
+
import { staticSite } from './staticSite.ts';
|
|
12
|
+
|
|
13
|
+
/** What a site's API is registered with. */
|
|
14
|
+
export interface ToolSiteContext {
|
|
15
|
+
/** The site, as `ECOSYSTEM_SITES` names it. */
|
|
16
|
+
siteId: SiteId;
|
|
17
|
+
/** Its host, `osiris.cheminfo.org`: what the tool server and its documentation are called. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** The release the repository is at. */
|
|
20
|
+
version: string;
|
|
21
|
+
/** The configuration the server was built with. */
|
|
22
|
+
config: ServerConfig;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Options of {@link toolSiteServer}. */
|
|
26
|
+
export interface ToolSiteServerOptions {
|
|
27
|
+
/** The site, as `ECOSYSTEM_SITES` names it. */
|
|
28
|
+
siteId: SiteId;
|
|
29
|
+
/** The configuration, from `readServerConfig`. */
|
|
30
|
+
config: ServerConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Register the API beside the pages: the tool routes of
|
|
33
|
+
* `cheminfo-mcp-server` under `/v1`, their documentation at `/docs`.
|
|
34
|
+
*/
|
|
35
|
+
registerApi: (
|
|
36
|
+
app: FastifyInstance,
|
|
37
|
+
context: ToolSiteContext,
|
|
38
|
+
) => void | Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Addresses the site does not have any more, and the one that does their
|
|
41
|
+
* work; the query is carried over.
|
|
42
|
+
* @default {}
|
|
43
|
+
*/
|
|
44
|
+
redirects?: Readonly<Record<string, string>>;
|
|
45
|
+
/**
|
|
46
|
+
* Whether, and how, Fastify logs.
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
logger?: FastifyServerOptions['logger'];
|
|
50
|
+
/**
|
|
51
|
+
* Address prefixes the API answers, which never answer a page.
|
|
52
|
+
* @default ['/v1/', '/docs']
|
|
53
|
+
*/
|
|
54
|
+
reserved?: readonly string[];
|
|
55
|
+
/**
|
|
56
|
+
* The release the API reports.
|
|
57
|
+
* @default the root `package.json` of the repository the process runs in
|
|
58
|
+
*/
|
|
59
|
+
version?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Build a tool site's server without listening: the API the site registers,
|
|
64
|
+
* then the same build the static host serves, by the static hosts' rules.
|
|
65
|
+
*
|
|
66
|
+
* The page never calls the API — it computes in the browser — so the server only
|
|
67
|
+
* adds: the tools under `/v1` for chats and MCP clients, documented at `/docs`.
|
|
68
|
+
*
|
|
69
|
+
* const app = await toolSiteServer({
|
|
70
|
+
* siteId: 'osiris',
|
|
71
|
+
* config,
|
|
72
|
+
* registerApi: (app, { name, version }) => registerTools(app, name, version),
|
|
73
|
+
* });
|
|
74
|
+
* @param options - The site, its configuration and its API.
|
|
75
|
+
* @returns The server, ready to listen or to be injected in tests.
|
|
76
|
+
*/
|
|
77
|
+
export async function toolSiteServer(
|
|
78
|
+
options: ToolSiteServerOptions,
|
|
79
|
+
): Promise<FastifyInstance> {
|
|
80
|
+
const {
|
|
81
|
+
siteId,
|
|
82
|
+
config,
|
|
83
|
+
registerApi,
|
|
84
|
+
redirects = {},
|
|
85
|
+
logger = true,
|
|
86
|
+
reserved = DEFAULT_RESERVED,
|
|
87
|
+
} = options;
|
|
88
|
+
// An optional peer, installed only by a site that has a server.
|
|
89
|
+
const { fastify } = await import('fastify');
|
|
90
|
+
const app = fastify({ logger, trustProxy: config.trustProxy });
|
|
91
|
+
const version = options.version ?? readRepositoryVersion(process.cwd());
|
|
92
|
+
await registerApi(app, {
|
|
93
|
+
siteId,
|
|
94
|
+
name: siteById(siteId).host,
|
|
95
|
+
version,
|
|
96
|
+
config,
|
|
97
|
+
});
|
|
98
|
+
await app.register(staticSite, {
|
|
99
|
+
root: config.root,
|
|
100
|
+
trackingScript: config.trackingScript,
|
|
101
|
+
redirects,
|
|
102
|
+
reserved,
|
|
103
|
+
basePath: config.basePath,
|
|
104
|
+
});
|
|
105
|
+
return app;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Build a site's server from its configuration, listen where it says, and close
|
|
110
|
+
* cleanly when the container is stopped — the whole of a `main.ts`:
|
|
111
|
+
*
|
|
112
|
+
* await startToolServer(buildServer, readServerConfig(process.env, SITE));
|
|
113
|
+
* @param build - Builds the server, e.g. with {@link toolSiteServer}.
|
|
114
|
+
* @param config - The configuration, from `readServerConfig`.
|
|
115
|
+
* @param options - What else to stop, and on which signals.
|
|
116
|
+
* @returns The server, listening.
|
|
117
|
+
* @throws {Error} When the server cannot listen, after it has been closed.
|
|
118
|
+
*/
|
|
119
|
+
export async function startToolServer(
|
|
120
|
+
build: (config: ServerConfig) => FastifyInstance | Promise<FastifyInstance>,
|
|
121
|
+
config: ServerConfig,
|
|
122
|
+
options: Pick<ListenSiteOptions, 'onClose' | 'signals'> = {},
|
|
123
|
+
): Promise<FastifyInstance> {
|
|
124
|
+
const app = await build(config);
|
|
125
|
+
await listenSite(app, { ...options, port: config.port, host: config.host });
|
|
126
|
+
return app;
|
|
127
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** A value that is only digits: a hop count. */
|
|
2
|
+
const HOP_COUNT = /^\d+$/;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Read which reverse proxies a deployment names, for Fastify's `trustProxy`.
|
|
6
|
+
*
|
|
7
|
+
* Behind a proxy, `request.ip` is the proxy's address on every request and
|
|
8
|
+
* `request.protocol` reads `http` for an HTTPS client, so the variable names the
|
|
9
|
+
* proxy whose `X-Forwarded-For` is believed: an address, a CIDR range, or a
|
|
10
|
+
* comma-separated list of either. `true` believes any peer, which is only safe
|
|
11
|
+
* when the port is unreachable except through the proxy.
|
|
12
|
+
*
|
|
13
|
+
* A hop count is refused. Fastify 5.12.7 and later trust nothing for a number,
|
|
14
|
+
* since a hop count cannot tell the proxy from a client, so the service would
|
|
15
|
+
* silently log the proxy's address again — and a function over the hop, the
|
|
16
|
+
* usual way around it, believes any peer that sends enough addresses.
|
|
17
|
+
* @param value - `TRUST_PROXY`, as written.
|
|
18
|
+
* @returns The proxies as written, `true` to believe any peer, or `false` when
|
|
19
|
+
* the variable is unset, blank or `false`.
|
|
20
|
+
* @throws {Error} When the value is a hop count.
|
|
21
|
+
*/
|
|
22
|
+
export function parseTrustProxy(value: string | undefined): boolean | string {
|
|
23
|
+
const text = value?.trim();
|
|
24
|
+
if (!text || text.toLowerCase() === 'false') return false;
|
|
25
|
+
if (text.toLowerCase() === 'true') return true;
|
|
26
|
+
if (HOP_COUNT.test(text)) {
|
|
27
|
+
throw new Error(
|
|
28
|
+
`TRUST_PROXY=${text} is a hop count, which trusts nothing. Name the proxy's address or CIDR instead.`,
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
return text;
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TypeBoxTypeProvider } from '@fastify/type-provider-typebox';
|
|
2
|
+
import type {
|
|
3
|
+
FastifyBaseLogger,
|
|
4
|
+
FastifyInstance,
|
|
5
|
+
RawReplyDefaultExpression,
|
|
6
|
+
RawRequestDefaultExpression,
|
|
7
|
+
RawServerDefault,
|
|
8
|
+
} from 'fastify';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A Fastify instance whose routes are typed from their TypeBox schemas: the
|
|
12
|
+
* `body`, `params`, `querystring` and response of a route registered on it are
|
|
13
|
+
* inferred. A route module takes it as its parameter, and the server is built
|
|
14
|
+
* with `fastify(options).withTypeProvider<TypeBoxTypeProvider>()`.
|
|
15
|
+
*
|
|
16
|
+
* Types only: `@fastify/type-provider-typebox` is an optional peer, installed by
|
|
17
|
+
* the backends that type their routes this way.
|
|
18
|
+
*/
|
|
19
|
+
export type FastifyTyped = FastifyInstance<
|
|
20
|
+
RawServerDefault,
|
|
21
|
+
RawRequestDefaultExpression,
|
|
22
|
+
RawReplyDefaultExpression,
|
|
23
|
+
FastifyBaseLogger,
|
|
24
|
+
TypeBoxTypeProvider
|
|
25
|
+
>;
|
package/src/server.ts
CHANGED
|
@@ -5,3 +5,43 @@ export {
|
|
|
5
5
|
listSiteFiles,
|
|
6
6
|
resolveAddress,
|
|
7
7
|
} from './server/siteFiles.ts';
|
|
8
|
+
export type {
|
|
9
|
+
ServerConfig,
|
|
10
|
+
ServerConfigOptions,
|
|
11
|
+
ServerEnvironment,
|
|
12
|
+
} from './server/config.ts';
|
|
13
|
+
export { readHttpAddress, readServerConfig } from './server/config.ts';
|
|
14
|
+
export type { ReadEnvNumberOptions } from './server/envNumber.ts';
|
|
15
|
+
export { readEnvNumber } from './server/envNumber.ts';
|
|
16
|
+
export type { HealthRouteOptions } from './server/healthRoute.ts';
|
|
17
|
+
export { healthRoute } from './server/healthRoute.ts';
|
|
18
|
+
export type { ListenSiteOptions } from './server/listenSite.ts';
|
|
19
|
+
export { listenSite } from './server/listenSite.ts';
|
|
20
|
+
export { readRepositoryVersion } from './server/repositoryVersion.ts';
|
|
21
|
+
export { readRouteTable } from './server/routeTable.ts';
|
|
22
|
+
export { spaSite } from './server/spaSite.ts';
|
|
23
|
+
export type {
|
|
24
|
+
SpaPage,
|
|
25
|
+
SpaSiteOptions,
|
|
26
|
+
SpaStructuredData,
|
|
27
|
+
} from './server/spaSiteOptions.ts';
|
|
28
|
+
export type {
|
|
29
|
+
ToolSiteContext,
|
|
30
|
+
ToolSiteServerOptions,
|
|
31
|
+
} from './server/toolSiteServer.ts';
|
|
32
|
+
export { startToolServer, toolSiteServer } from './server/toolSiteServer.ts';
|
|
33
|
+
export { parseTrustProxy } from './server/trustProxy.ts';
|
|
34
|
+
export type { FastifyTyped } from './server/types.ts';
|
|
35
|
+
export type {
|
|
36
|
+
AnswerAddresses,
|
|
37
|
+
AnswerAddressesInput,
|
|
38
|
+
} from './server/answerAddresses.ts';
|
|
39
|
+
export {
|
|
40
|
+
answerAddresses,
|
|
41
|
+
joinAddress,
|
|
42
|
+
viewOrigins,
|
|
43
|
+
} from './server/answerAddresses.ts';
|
|
44
|
+
export type { CardMetaOptions, PageAnswer } from './server/cardMeta.ts';
|
|
45
|
+
export { cardMeta, pageAnswer } from './server/cardMeta.ts';
|
|
46
|
+
export type { SiteViewOptions } from './server/siteView.ts';
|
|
47
|
+
export { siteView } from './server/siteView.ts';
|
package/src/share/core/config.ts
CHANGED
|
@@ -41,9 +41,12 @@ export function parseShareConfig<
|
|
|
41
41
|
>(search: string, vocabulary: ShareVocabulary<Codecs>): ShareConfig<Codecs> {
|
|
42
42
|
const values = firstValues(parseQuery(search));
|
|
43
43
|
const embed = values.get(EMBED_PARAM);
|
|
44
|
+
const asked = splitHidden(values.get(HIDE_PARAM));
|
|
44
45
|
return {
|
|
45
|
-
embed:
|
|
46
|
-
|
|
46
|
+
embed:
|
|
47
|
+
(embed !== undefined && embed !== '0') ||
|
|
48
|
+
namesAny(asked, vocabulary.legacyEmbedParts ?? []),
|
|
49
|
+
hidden: orderHidden(asked, vocabulary.parts),
|
|
47
50
|
params: readParams(values, vocabulary.params) as ShareParamValues<Codecs>,
|
|
48
51
|
};
|
|
49
52
|
}
|
|
@@ -154,6 +157,46 @@ export function suggestedShareConfig<
|
|
|
154
157
|
return { ...parseShareConfig('', vocabulary), embed: true, hidden };
|
|
155
158
|
}
|
|
156
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Read the parts a `?hide=` value switches off, for a page that holds its
|
|
162
|
+
* query decoded rather than as a string.
|
|
163
|
+
* @param raw - The raw value, comma separated; `undefined` when absent.
|
|
164
|
+
* @param parts - The hideable parts, in the vocabulary order.
|
|
165
|
+
* @returns The keys of the parts named, in that order; a key the vocabulary
|
|
166
|
+
* does not list is dropped, so a hand-written link cannot hide what it cannot
|
|
167
|
+
* name.
|
|
168
|
+
*/
|
|
169
|
+
export function readHiddenParts(
|
|
170
|
+
raw: string | undefined,
|
|
171
|
+
parts: readonly HideablePart[],
|
|
172
|
+
): readonly string[] {
|
|
173
|
+
return orderHidden(splitHidden(raw), parts);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Write a `?hide=` value in the vocabulary order, so one selection always
|
|
178
|
+
* produces one link.
|
|
179
|
+
* @param hidden - The keys switched off, in any order and any collection.
|
|
180
|
+
* @param parts - The hideable parts, in the vocabulary order.
|
|
181
|
+
* @returns The value, empty when nothing the vocabulary lists is switched off.
|
|
182
|
+
*/
|
|
183
|
+
export function formatHiddenParts(
|
|
184
|
+
hidden: Iterable<string>,
|
|
185
|
+
parts: readonly HideablePart[],
|
|
186
|
+
): string {
|
|
187
|
+
return orderHidden(new Set(hidden), parts).join(',');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function namesAny(
|
|
191
|
+
asked: ReadonlySet<string>,
|
|
192
|
+
keys: readonly string[],
|
|
193
|
+
): boolean {
|
|
194
|
+
for (const key of keys) {
|
|
195
|
+
if (asked.has(key)) return true;
|
|
196
|
+
}
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
|
|
157
200
|
function splitHidden(raw: string | undefined): ReadonlySet<string> {
|
|
158
201
|
const asked = new Set<string>();
|
|
159
202
|
if (raw === undefined) return asked;
|
package/src/share/core/index.ts
CHANGED
|
@@ -3,9 +3,11 @@ export {
|
|
|
3
3
|
EMBED_PARAM,
|
|
4
4
|
HIDE_PARAM,
|
|
5
5
|
applyShareConfig,
|
|
6
|
+
formatHiddenParts,
|
|
6
7
|
isHidden,
|
|
7
8
|
isShareConfigured,
|
|
8
9
|
parseShareConfig,
|
|
10
|
+
readHiddenParts,
|
|
9
11
|
suggestedShareConfig,
|
|
10
12
|
visibleShareParts,
|
|
11
13
|
} from './config.ts';
|
|
@@ -17,6 +19,8 @@ export {
|
|
|
17
19
|
sharePreviewSize,
|
|
18
20
|
} from './devices.ts';
|
|
19
21
|
export { escapeAttribute, escapeText } from './escape.ts';
|
|
22
|
+
export type { KeySetParamOptions } from './keySetParam.ts';
|
|
23
|
+
export { keySetParam } from './keySetParam.ts';
|
|
20
24
|
export type { ShareRegion } from './regions.ts';
|
|
21
25
|
export {
|
|
22
26
|
SHARE_REGIONS_MESSAGE,
|