react-cheminfo 0.64.1 → 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/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/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,76 @@
|
|
|
1
|
+
import { roomForPanels } from "../core/panelRoom.js";
|
|
2
|
+
import { anchorBottom, openPanels } from "./openPanels.js";
|
|
3
|
+
/**
|
|
4
|
+
* Keep a card as tall as the dialogs and popovers open over it need, until
|
|
5
|
+
* the returned function is called; the card gives the height back as each
|
|
6
|
+
* closes. A chat frames a card exactly as tall as the card reports, so a
|
|
7
|
+
* panel taller than the card would otherwise be cut at the frame's edge.
|
|
8
|
+
*
|
|
9
|
+
* The room is measured once per animation frame, whenever the document
|
|
10
|
+
* changes — a panel opening, closing or moving changes the tree or a class —
|
|
11
|
+
* and whenever an open panel changes size, which one whose content arrives
|
|
12
|
+
* after it opens does without touching the tree. A card whose view fills the
|
|
13
|
+
* screen holds no room: its frame is not what is on screen then.
|
|
14
|
+
* @param card - The element whose height the frame follows.
|
|
15
|
+
* @returns A function that stops watching and gives the card its height back.
|
|
16
|
+
*/
|
|
17
|
+
export function holdRoomForPanels(card) {
|
|
18
|
+
let frame = 0;
|
|
19
|
+
const watched = new Set();
|
|
20
|
+
const sizes = typeof ResizeObserver === 'undefined'
|
|
21
|
+
? undefined
|
|
22
|
+
: new ResizeObserver(schedule);
|
|
23
|
+
const mutations = new MutationObserver(schedule);
|
|
24
|
+
function measure() {
|
|
25
|
+
frame = 0;
|
|
26
|
+
const panels = openPanels(card);
|
|
27
|
+
if (sizes !== undefined)
|
|
28
|
+
watchSizes(sizes, watched, panels.elements);
|
|
29
|
+
const room = document.fullscreenElement
|
|
30
|
+
? 0
|
|
31
|
+
: roomForPanels(panels.found, anchorBottom(card));
|
|
32
|
+
const minHeight = room > 0 ? `${room}px` : '';
|
|
33
|
+
if (card.style.minHeight !== minHeight)
|
|
34
|
+
card.style.minHeight = minHeight;
|
|
35
|
+
}
|
|
36
|
+
function schedule() {
|
|
37
|
+
if (frame === 0)
|
|
38
|
+
frame = requestAnimationFrame(measure);
|
|
39
|
+
}
|
|
40
|
+
mutations.observe(document.body, {
|
|
41
|
+
childList: true,
|
|
42
|
+
subtree: true,
|
|
43
|
+
attributes: true,
|
|
44
|
+
attributeFilter: ['class'],
|
|
45
|
+
});
|
|
46
|
+
document.addEventListener('fullscreenchange', schedule);
|
|
47
|
+
schedule();
|
|
48
|
+
return () => {
|
|
49
|
+
mutations.disconnect();
|
|
50
|
+
sizes?.disconnect();
|
|
51
|
+
document.removeEventListener('fullscreenchange', schedule);
|
|
52
|
+
cancelAnimationFrame(frame);
|
|
53
|
+
card.style.minHeight = '';
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Watch the size of the panels on screen, and of no other element.
|
|
58
|
+
* @param sizes - The observer.
|
|
59
|
+
* @param watched - The elements it watches, kept up to date.
|
|
60
|
+
* @param panels - The panels open now.
|
|
61
|
+
*/
|
|
62
|
+
function watchSizes(sizes, watched, panels) {
|
|
63
|
+
for (const element of watched) {
|
|
64
|
+
if (!panels.includes(element)) {
|
|
65
|
+
sizes.unobserve(element);
|
|
66
|
+
watched.delete(element);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
for (const element of panels) {
|
|
70
|
+
if (!watched.has(element)) {
|
|
71
|
+
sizes.observe(element);
|
|
72
|
+
watched.add(element);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=holdRoomForPanels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holdRoomForPanels.js","sourceRoot":"","sources":["../../../src/card/ui/holdRoomForPanels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAiB;IACjD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,OAAO,GAAG,IAAI,GAAG,EAAW,CAAC;IACnC,MAAM,KAAK,GACT,OAAO,cAAc,KAAK,WAAW;QACnC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,IAAI,gBAAgB,CAAC,QAAQ,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,EAAE,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CACjB,KAAqB,EACrB,OAAqB,EACrB,MAA0B;IAE1B,KAAK,MAAM,OAAO,IAAI,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9B,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,KAAK,MAAM,OAAO,IAAI,MAAM,EAAE,CAAC;QAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { CardDetailsButtonProps } from './CardDetailsButton.tsx';
|
|
2
|
+
export { CardDetailsButton } from './CardDetailsButton.tsx';
|
|
3
|
+
export type { CardFigureProps } from './CardFigure.tsx';
|
|
4
|
+
export { CardFigure } from './CardFigure.tsx';
|
|
5
|
+
export type { CardFrameProps } from './CardFrame.tsx';
|
|
6
|
+
export { CardFrame } from './CardFrame.tsx';
|
|
7
|
+
export type { CopyTableButtonProps } from './CopyTableButton.tsx';
|
|
8
|
+
export { CopyTableButton } from './CopyTableButton.tsx';
|
|
9
|
+
export { fitCardToFrame, useFitCardToFrame, useOverlayRoom, } from './fitCardToFrame.ts';
|
|
10
|
+
export { holdRoomForPanels } from './holdRoomForPanels.ts';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/card/ui/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CardDetailsButton } from "./CardDetailsButton.js";
|
|
2
|
+
export { CardFigure } from "./CardFigure.js";
|
|
3
|
+
export { CardFrame } from "./CardFrame.js";
|
|
4
|
+
export { CopyTableButton } from "./CopyTableButton.js";
|
|
5
|
+
export { fitCardToFrame, useFitCardToFrame, useOverlayRoom, } from "./fitCardToFrame.js";
|
|
6
|
+
export { holdRoomForPanels } from "./holdRoomForPanels.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/card/ui/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAiB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AACxD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dialogs and popovers Blueprint has open over a card, measured as the
|
|
3
|
+
* room each needs of the card's frame.
|
|
4
|
+
*/
|
|
5
|
+
import type { OpenPanel } from '../core/panelRoom.ts';
|
|
6
|
+
/** The panels on screen, and the elements measured for them. */
|
|
7
|
+
export interface FoundPanels {
|
|
8
|
+
/** What each panel needs. */
|
|
9
|
+
found: OpenPanel[];
|
|
10
|
+
/** The elements whose size the panels are read from. */
|
|
11
|
+
elements: HTMLElement[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The dialogs and popovers on screen, and the room each needs.
|
|
15
|
+
* @param card - The card they are opened over.
|
|
16
|
+
* @returns The panels, and the elements measured for them.
|
|
17
|
+
*/
|
|
18
|
+
export declare function openPanels(card: HTMLElement): FoundPanels;
|
|
19
|
+
/**
|
|
20
|
+
* Where the lowest control of the card whose popover is open ends.
|
|
21
|
+
* @param card - The card.
|
|
22
|
+
* @returns Its bottom edge, in pixels from the top of the card; 0 for none.
|
|
23
|
+
*/
|
|
24
|
+
export declare function anchorBottom(card: HTMLElement): number;
|
|
25
|
+
//# sourceMappingURL=openPanels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openPanels.d.ts","sourceRoot":"","sources":["../../../src/card/ui/openPanels.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAmBD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CA4BzD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAQtD"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dialogs and popovers Blueprint has open over a card, measured as the
|
|
3
|
+
* room each needs of the card's frame.
|
|
4
|
+
*/
|
|
5
|
+
import { Classes } from '@blueprintjs/core';
|
|
6
|
+
const OPEN = `.${Classes.OVERLAY_OPEN}`;
|
|
7
|
+
/** A tooltip is read in passing and closes as the pointer leaves: no room. */
|
|
8
|
+
const POPOVERS = `${OPEN} .${Classes.POPOVER}:not(.${Classes.TOOLTIP})`;
|
|
9
|
+
const DIALOGS = `${OPEN} .${Classes.DIALOG}`;
|
|
10
|
+
/** A dialog's body, which scrolls past 70 % of the frame's height. */
|
|
11
|
+
const SCROLLED = `.${Classes.DIALOG_BODY_SCROLL_CONTAINER}`;
|
|
12
|
+
/**
|
|
13
|
+
* A control whose popover is open: Blueprint marks its own target, and a
|
|
14
|
+
* toolbar that renders its target itself — the 3D view's — says it is
|
|
15
|
+
* expanded.
|
|
16
|
+
*/
|
|
17
|
+
const OPEN_CONTROLS = `.${Classes.POPOVER_OPEN}, [aria-expanded='true']`;
|
|
18
|
+
/**
|
|
19
|
+
* The dialogs and popovers on screen, and the room each needs.
|
|
20
|
+
* @param card - The card they are opened over.
|
|
21
|
+
* @returns The panels, and the elements measured for them.
|
|
22
|
+
*/
|
|
23
|
+
export function openPanels(card) {
|
|
24
|
+
const found = [];
|
|
25
|
+
const elements = [];
|
|
26
|
+
const top = card.getBoundingClientRect().top;
|
|
27
|
+
for (const dialog of document.querySelectorAll(DIALOGS)) {
|
|
28
|
+
const { marginTop, marginBottom } = globalThis.getComputedStyle(dialog);
|
|
29
|
+
const margins = (parseLength(marginTop) ?? 0) + (parseLength(marginBottom) ?? 0);
|
|
30
|
+
found.push({ kind: 'dialog', height: unscrolledHeight(dialog) + margins });
|
|
31
|
+
elements.push(dialog);
|
|
32
|
+
}
|
|
33
|
+
for (const popover of document.querySelectorAll(POPOVERS)) {
|
|
34
|
+
// The box that places a popover is never scaled while it opens, so it
|
|
35
|
+
// says where the popover ends; the popover itself is, at first.
|
|
36
|
+
const placed = popover.parentElement?.classList.contains(Classes.POPOVER_TRANSITION_CONTAINER)
|
|
37
|
+
? popover.parentElement
|
|
38
|
+
: popover;
|
|
39
|
+
const bottom = placed.getBoundingClientRect().bottom - top;
|
|
40
|
+
found.push({
|
|
41
|
+
kind: 'popover',
|
|
42
|
+
height: unscrolledHeight(popover),
|
|
43
|
+
...(bottom > 0 && { bottom }),
|
|
44
|
+
});
|
|
45
|
+
elements.push(popover);
|
|
46
|
+
}
|
|
47
|
+
return { found, elements };
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Where the lowest control of the card whose popover is open ends.
|
|
51
|
+
* @param card - The card.
|
|
52
|
+
* @returns Its bottom edge, in pixels from the top of the card; 0 for none.
|
|
53
|
+
*/
|
|
54
|
+
export function anchorBottom(card) {
|
|
55
|
+
const top = card.getBoundingClientRect().top;
|
|
56
|
+
let bottom = 0;
|
|
57
|
+
for (const control of card.querySelectorAll(OPEN_CONTROLS)) {
|
|
58
|
+
const edge = control.getBoundingClientRect().bottom - top;
|
|
59
|
+
if (edge > bottom)
|
|
60
|
+
bottom = edge;
|
|
61
|
+
}
|
|
62
|
+
return bottom;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The panel's height with what its body scrolls away put back.
|
|
66
|
+
* @param panel - The dialog or the popover.
|
|
67
|
+
* @returns Its height, in pixels.
|
|
68
|
+
*/
|
|
69
|
+
function unscrolledHeight(panel) {
|
|
70
|
+
let height = panel.offsetHeight;
|
|
71
|
+
for (const body of panel.querySelectorAll(SCROLLED)) {
|
|
72
|
+
height += body.scrollHeight - body.clientHeight;
|
|
73
|
+
}
|
|
74
|
+
return height;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* A computed length, in pixels.
|
|
78
|
+
* @param value - E.g. `30px`; empty where nothing computes it.
|
|
79
|
+
* @returns The number, or undefined when it is not one.
|
|
80
|
+
*/
|
|
81
|
+
function parseLength(value) {
|
|
82
|
+
const length = Number.parseFloat(value);
|
|
83
|
+
return Number.isFinite(length) ? length : undefined;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=openPanels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openPanels.js","sourceRoot":"","sources":["../../../src/card/ui/openPanels.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAY5C,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;AAExC,8EAA8E;AAC9E,MAAM,QAAQ,GAAG,GAAG,IAAI,KAAK,OAAO,CAAC,OAAO,SAAS,OAAO,CAAC,OAAO,GAAG,CAAC;AAExE,MAAM,OAAO,GAAG,GAAG,IAAI,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;AAE7C,sEAAsE;AACtE,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC;AAE5D;;;;GAIG;AACH,MAAM,aAAa,GAAG,IAAI,OAAO,CAAC,YAAY,0BAA0B,CAAC;AAEzE;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAiB;IAC1C,MAAM,KAAK,GAAgB,EAAE,CAAC;IAC9B,MAAM,QAAQ,GAAkB,EAAE,CAAC;IACnC,MAAM,GAAG,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,GAAG,CAAC;IAC7C,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,gBAAgB,CAAc,OAAO,CAAC,EAAE,CAAC;QACrE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACxE,MAAM,OAAO,GACX,CAAC,WAAW,CAAC,SAAS,CAAC,IAA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G,GAAG,CAAC;QAC1D,IAAI,IAAI,GAAG,MAAM;YAAE,MAAM,GAAG,IAAI,CAAC;IACnC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,KAAkB;IAC1C,IAAI,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IAChC,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,gBAAgB,CAAc,QAAQ,CAAC,EAAE,CAAC;QACjE,MAAM,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IAClD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,KAAa;IAChC,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACtD,CAAC"}
|
package/lib/card.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The card an answer is shown as in a chat: a site's own page under
|
|
3
|
+
* `?embed=1&card=1`, framed inline by mcp.cheminfo.org.
|
|
4
|
+
*
|
|
5
|
+
* An entry point of its own, and not part of `react-cheminfo/ui`, because it
|
|
6
|
+
* talks to the frame through `cheminfo-mcp-server/embed`: a site that serves
|
|
7
|
+
* no tools must never be made to install it. The addresses — `CARD_PARAM`,
|
|
8
|
+
* `sitePageUrl`, `cardPageUrl` — need neither React nor the frame, and are in
|
|
9
|
+
* `react-cheminfo/core` too.
|
|
10
|
+
*/
|
|
11
|
+
export * from './card/core/index.ts';
|
|
12
|
+
export * from './card/ui/index.ts';
|
|
13
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
package/lib/card.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The card an answer is shown as in a chat: a site's own page under
|
|
3
|
+
* `?embed=1&card=1`, framed inline by mcp.cheminfo.org.
|
|
4
|
+
*
|
|
5
|
+
* An entry point of its own, and not part of `react-cheminfo/ui`, because it
|
|
6
|
+
* talks to the frame through `cheminfo-mcp-server/embed`: a site that serves
|
|
7
|
+
* no tools must never be made to install it. The addresses — `CARD_PARAM`,
|
|
8
|
+
* `sitePageUrl`, `cardPageUrl` — need neither React nor the frame, and are in
|
|
9
|
+
* `react-cheminfo/core` too.
|
|
10
|
+
*/
|
|
11
|
+
export * from "./card/core/index.js";
|
|
12
|
+
export * from "./card/ui/index.js";
|
|
13
|
+
//# sourceMappingURL=card.js.map
|
package/lib/card.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
package/lib/conformers.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export { keepConformerSession, openConformerSession, readPotentialCount, } from
|
|
|
24
24
|
export type { ConformerShape, PrincipalMoments, } from './structure/core/conformerShape.ts';
|
|
25
25
|
export { conformerShape, hasFiniteCoordinates, } from './structure/core/conformerShape.ts';
|
|
26
26
|
export { registerResources } from './structure/core/oclResources.ts';
|
|
27
|
+
export { OCL_RESOURCES_FILE, oclResourcesUrl, } from './worker/core/oclResourcesUrl.ts';
|
|
27
28
|
//# sourceMappingURL=conformers.d.ts.map
|
package/lib/conformers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conformers.d.ts","sourceRoot":"","sources":["../src/conformers.ts"],"names":[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CAAoC,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"conformers.d.ts","sourceRoot":"","sources":["../src/conformers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EACV,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,cAAc,EACd,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAyC,CAAC;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,kCAAkC,CAAC"}
|
package/lib/conformers.js
CHANGED
|
@@ -16,4 +16,5 @@ export { CONFORMER_STRATEGIES, DEFAULT_CONFORMER_OPTIONS, MINIMISATION_ALGORITHM
|
|
|
16
16
|
export { keepConformerSession, openConformerSession, readPotentialCount, } from "./structure/core/conformerSession.js";
|
|
17
17
|
export { conformerShape, hasFiniteCoordinates, } from "./structure/core/conformerShape.js";
|
|
18
18
|
export { registerResources } from "./structure/core/oclResources.js";
|
|
19
|
+
export { OCL_RESOURCES_FILE, oclResourcesUrl, } from "./worker/core/oclResourcesUrl.js";
|
|
19
20
|
//# sourceMappingURL=conformers.js.map
|
package/lib/conformers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conformers.js","sourceRoot":"","sources":["../src/conformers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"conformers.js","sourceRoot":"","sources":["../src/conformers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,GACjB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,kCAAkC,CAAC"}
|
package/lib/core.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './about/core/index.ts';
|
|
2
2
|
export * from './axis/core/index.ts';
|
|
3
3
|
export * from './build/core/index.ts';
|
|
4
|
+
export * from './card/core/index.ts';
|
|
4
5
|
export * from './chart/core/index.ts';
|
|
5
6
|
export * from './citation/core/index.ts';
|
|
6
7
|
export * from './clipboard/core/index.ts';
|
|
@@ -11,9 +12,11 @@ export * from './delimited/core/index.ts';
|
|
|
11
12
|
export * from './download/core/index.ts';
|
|
12
13
|
export * from './ecosystem/core/index.ts';
|
|
13
14
|
export * from './error/core/index.ts';
|
|
15
|
+
export * from './fetch/core/index.ts';
|
|
14
16
|
export * from './format/core/index.ts';
|
|
15
17
|
export * from './i18n/core/index.ts';
|
|
16
18
|
export * from './language/core/index.ts';
|
|
19
|
+
export * from './moleculesClient/core/index.ts';
|
|
17
20
|
export * from './moleculesSources/core/index.ts';
|
|
18
21
|
export * from './moleculesToken/core/index.ts';
|
|
19
22
|
export * from './number/core/index.ts';
|
|
@@ -24,6 +27,7 @@ export * from './parallel/core/index.ts';
|
|
|
24
27
|
export * from './pedagogy/core/index.ts';
|
|
25
28
|
export * from './periodic/core/index.ts';
|
|
26
29
|
export * from './projection/core/index.ts';
|
|
30
|
+
export * from './property/core/index.ts';
|
|
27
31
|
export * from './range/core/index.ts';
|
|
28
32
|
export * from './router/core/index.ts';
|
|
29
33
|
export * from './scatter/core/index.ts';
|
package/lib/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"A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c,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
package/lib/core.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./about/core/index.js";
|
|
2
2
|
export * from "./axis/core/index.js";
|
|
3
3
|
export * from "./build/core/index.js";
|
|
4
|
+
// The addresses of an answer's card, which a tool server writes in Node.
|
|
5
|
+
export * from "./card/core/index.js";
|
|
4
6
|
export * from "./chart/core/index.js";
|
|
5
7
|
export * from "./citation/core/index.js";
|
|
6
8
|
export * from "./clipboard/core/index.js";
|
|
@@ -11,9 +13,11 @@ export * from "./delimited/core/index.js";
|
|
|
11
13
|
export * from "./download/core/index.js";
|
|
12
14
|
export * from "./ecosystem/core/index.js";
|
|
13
15
|
export * from "./error/core/index.js";
|
|
16
|
+
export * from "./fetch/core/index.js";
|
|
14
17
|
export * from "./format/core/index.js";
|
|
15
18
|
export * from "./i18n/core/index.js";
|
|
16
19
|
export * from "./language/core/index.js";
|
|
20
|
+
export * from "./moleculesClient/core/index.js";
|
|
17
21
|
export * from "./moleculesSources/core/index.js";
|
|
18
22
|
export * from "./moleculesToken/core/index.js";
|
|
19
23
|
export * from "./number/core/index.js";
|
|
@@ -24,6 +28,7 @@ export * from "./parallel/core/index.js";
|
|
|
24
28
|
export * from "./pedagogy/core/index.js";
|
|
25
29
|
export * from "./periodic/core/index.js";
|
|
26
30
|
export * from "./projection/core/index.js";
|
|
31
|
+
export * from "./property/core/index.js";
|
|
27
32
|
export * from "./range/core/index.js";
|
|
28
33
|
export * from "./router/core/index.js";
|
|
29
34
|
export * from "./scatter/core/index.js";
|
package/lib/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC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A0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,+EAA+E;AAC/E,2EAA2E;AAC3E,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,0EAA0E;AAC1E,8EAA8E;AAC9E,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A request a backend refused, or could not answer, with the reason it gave.
|
|
3
|
+
*
|
|
4
|
+
* `status` tells a refusal worth retrying from one that is final — a job still
|
|
5
|
+
* running from one that is gone — and `message` is written for the reader.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ApiError extends Error {
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The status of the refusal: the envelope's `statusCode` when it names one,
|
|
11
|
+
* else the response's. 0 when the server could not be reached at all.
|
|
12
|
+
*/
|
|
13
|
+
readonly status: number;
|
|
14
|
+
/**
|
|
15
|
+
* The short name Fastify gives the status, e.g. `Not Found`; the response's
|
|
16
|
+
* status text when the body names none.
|
|
17
|
+
*/
|
|
18
|
+
readonly error: string;
|
|
19
|
+
/**
|
|
20
|
+
* The body of the refusal as read — the parsed JSON, or the text when it was
|
|
21
|
+
* none — for a field the envelope does not name.
|
|
22
|
+
*/
|
|
23
|
+
readonly body: unknown;
|
|
24
|
+
/**
|
|
25
|
+
* Name a refusal.
|
|
26
|
+
* @param message - The reason, written for the reader.
|
|
27
|
+
* @param options - The status, its name, the body and what caused it.
|
|
28
|
+
*/
|
|
29
|
+
constructor(message: string, options: ApiErrorOptions);
|
|
30
|
+
/**
|
|
31
|
+
* The status, under the name Fastify's envelope gives it.
|
|
32
|
+
* @returns The same number as `status`.
|
|
33
|
+
*/
|
|
34
|
+
get statusCode(): number;
|
|
35
|
+
}
|
|
36
|
+
/** What an {@link ApiError} is built from. */
|
|
37
|
+
export interface ApiErrorOptions {
|
|
38
|
+
/** The status of the refusal, 0 when the server could not be reached. */
|
|
39
|
+
status: number;
|
|
40
|
+
/**
|
|
41
|
+
* The short name of the status.
|
|
42
|
+
* @default ''
|
|
43
|
+
*/
|
|
44
|
+
error?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The body of the refusal as read.
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
body?: unknown;
|
|
50
|
+
/**
|
|
51
|
+
* What the error was raised from.
|
|
52
|
+
* @default undefined
|
|
53
|
+
*/
|
|
54
|
+
cause?: unknown;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=apiError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiError.d.ts","sourceRoot":"","sources":["../../../src/fetch/core/apiError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACxB,IAAI,SAAc;IAC3B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe;IAOrD;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;CACF;AAED,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A request a backend refused, or could not answer, with the reason it gave.
|
|
3
|
+
*
|
|
4
|
+
* `status` tells a refusal worth retrying from one that is final — a job still
|
|
5
|
+
* running from one that is gone — and `message` is written for the reader.
|
|
6
|
+
*/
|
|
7
|
+
export class ApiError extends Error {
|
|
8
|
+
name = 'ApiError';
|
|
9
|
+
/**
|
|
10
|
+
* The status of the refusal: the envelope's `statusCode` when it names one,
|
|
11
|
+
* else the response's. 0 when the server could not be reached at all.
|
|
12
|
+
*/
|
|
13
|
+
status;
|
|
14
|
+
/**
|
|
15
|
+
* The short name Fastify gives the status, e.g. `Not Found`; the response's
|
|
16
|
+
* status text when the body names none.
|
|
17
|
+
*/
|
|
18
|
+
error;
|
|
19
|
+
/**
|
|
20
|
+
* The body of the refusal as read — the parsed JSON, or the text when it was
|
|
21
|
+
* none — for a field the envelope does not name.
|
|
22
|
+
*/
|
|
23
|
+
body;
|
|
24
|
+
/**
|
|
25
|
+
* Name a refusal.
|
|
26
|
+
* @param message - The reason, written for the reader.
|
|
27
|
+
* @param options - The status, its name, the body and what caused it.
|
|
28
|
+
*/
|
|
29
|
+
constructor(message, options) {
|
|
30
|
+
super(message, { cause: options.cause });
|
|
31
|
+
this.status = options.status;
|
|
32
|
+
this.error = options.error ?? '';
|
|
33
|
+
this.body = options.body;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The status, under the name Fastify's envelope gives it.
|
|
37
|
+
* @returns The same number as `status`.
|
|
38
|
+
*/
|
|
39
|
+
get statusCode() {
|
|
40
|
+
return this.status;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=apiError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiError.js","sourceRoot":"","sources":["../../../src/fetch/core/apiError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAK;IACxB,IAAI,GAAG,UAAU,CAAC;IAC3B;;;OAGG;IACM,MAAM,CAAS;IACxB;;;OAGG;IACM,KAAK,CAAS;IACvB;;;OAGG;IACM,IAAI,CAAU;IAEvB;;;;OAIG;IACH,YAAY,OAAe,EAAE,OAAwB;QACnD,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One JSON request to one of our backends, and its refusal as an error a page
|
|
3
|
+
* can show.
|
|
4
|
+
*
|
|
5
|
+
* Our backends are Fastify, and a refusal comes back as `{ statusCode, error,
|
|
6
|
+
* message }`: the message is written for the reader, so it is what the error
|
|
7
|
+
* says. Nothing here needs more than `fetch`, so it runs in a page, a worker
|
|
8
|
+
* and Node alike.
|
|
9
|
+
*/
|
|
10
|
+
import { ApiError } from './apiError.ts';
|
|
11
|
+
/**
|
|
12
|
+
* Ask a backend one question and read its JSON answer.
|
|
13
|
+
*
|
|
14
|
+
* A refusal rejects with an {@link ApiError} carrying the server's own words
|
|
15
|
+
* and its status; a server that cannot be reached rejects with one of status
|
|
16
|
+
* 0. An abort is passed on untouched, so a caller tells "nobody asked any
|
|
17
|
+
* more" from a failure by the signal it aborted. A `204`, or an empty body,
|
|
18
|
+
* answers `undefined`.
|
|
19
|
+
* @param url - The address, absolute or relative to the page.
|
|
20
|
+
* @param options - The request, plus a `json` body and the `fetch` to use.
|
|
21
|
+
* @returns The parsed answer.
|
|
22
|
+
* @throws {ApiError} When the server refuses, cannot be reached, or answers
|
|
23
|
+
* something that is not JSON.
|
|
24
|
+
*/
|
|
25
|
+
export declare function fetchJson<T>(url: string, options?: FetchJsonOptions): Promise<T>;
|
|
26
|
+
/**
|
|
27
|
+
* The error a refusal stands for, in the server's words when it gave any: the
|
|
28
|
+
* `message` of a Fastify envelope, else a FastAPI `detail`, else the status.
|
|
29
|
+
* @param response - The response that was not ok.
|
|
30
|
+
* @returns The error, its body read.
|
|
31
|
+
*/
|
|
32
|
+
export declare function readApiError(response: Response): Promise<ApiError>;
|
|
33
|
+
/** What {@link fetchJson} is handed: a `fetch` request, and two additions. */
|
|
34
|
+
export interface FetchJsonOptions extends RequestInit {
|
|
35
|
+
/**
|
|
36
|
+
* A value sent as the JSON body, with its content type; it replaces `body`.
|
|
37
|
+
* @default undefined — the request carries `body`, if any
|
|
38
|
+
*/
|
|
39
|
+
json?: unknown;
|
|
40
|
+
/**
|
|
41
|
+
* The `fetch` to call: a session's own, which signs the request, or a
|
|
42
|
+
* stand-in in a test.
|
|
43
|
+
* @default globalThis.fetch
|
|
44
|
+
*/
|
|
45
|
+
fetch?: typeof globalThis.fetch;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=fetchJson.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchJson.d.ts","sourceRoot":"","sources":["../../../src/fetch/core/fetchJson.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;;;;GAaG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,CAAC,CAAC,CAiCZ;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoBxE;AAED,8EAA8E;AAC9E,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC"}
|