tungsten 0.7.2 → 0.8.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/AGENTS.md +154 -15
- package/dist/.build-complete +1 -1
- package/dist/Components.d.ts +6 -4
- package/dist/Components.js +2 -0
- package/dist/Framework.js +7 -7
- package/dist/FrameworkConfig.d.ts +8 -2
- package/dist/Instance/Instance.d.ts +6 -1
- package/dist/Instance/Instance.js +62 -22
- package/dist/Servers/DevServer.d.ts +8 -5
- package/dist/Servers/DevServer.js +196 -113
- package/dist/Servers/ProdServer.d.ts +3 -1
- package/dist/Servers/ProdServer.js +136 -34
- package/dist/Servers/TungstenServer.d.ts +34 -1
- package/dist/Servers/TungstenServer.js +94 -42
- package/dist/Servers/loadEnvsDev.js +4 -4
- package/dist/Servers/watchedServerMiddleware.d.ts +10 -0
- package/dist/Servers/watchedServerMiddleware.js +45 -0
- package/dist/TungstenApp.js +2 -1
- package/dist/_client/cjsHelpers.d.ts +1 -1
- package/dist/_client/hmr.js +1 -1
- package/dist/_client/liveReloadSource.js +1 -1
- package/dist/_testing/errorRoute.d.ts +8 -0
- package/dist/_testing/errorRoute.js +9 -0
- package/dist/appBuilder.d.ts +2 -1
- package/dist/babelPlugins/BabelTransformComponentStyles.js +5 -3
- package/dist/babelPlugins/BabelTransformPackageImports.js +3 -1
- package/dist/babelPlugins/StyleCompileError.d.ts +4 -0
- package/dist/babelPlugins/StyleCompileError.js +11 -0
- package/dist/bin/commands/devmon.js +2 -2
- package/dist/bin/vendorHook.js +2 -1
- package/dist/build/assetVersions.js +2 -1
- package/dist/build/babel.user.common.config.d.ts +3 -5
- package/dist/build/compileJavascript.js +12 -27
- package/dist/build/componentStylesCache.js +2 -2
- package/dist/build/frameworkDestLocation.js +2 -1
- package/dist/build/ignoreGlobs.d.ts +2 -0
- package/dist/build/ignoreGlobs.js +8 -0
- package/dist/build/makeBabelRawConfig.d.ts +2 -2
- package/dist/build/makeBabelUserDevConfig.d.ts +2 -2
- package/dist/build/makeBabelUserProdConfig.d.ts +2 -2
- package/dist/build/rollup.user.prod.config.js +2 -2
- package/dist/build/tallyBabel.d.ts +2 -2
- package/dist/build/tallyBabel.js +1 -1
- package/dist/clone.js +1 -0
- package/dist/componentHelpers.d.ts +1 -1
- package/dist/componentHelpers.js +3 -4
- package/dist/componentProxyHandlers.js +2 -1
- package/dist/components/NativeHtml.d.ts +1 -1
- package/dist/components/bindable/BindableInputTyped.d.ts +3 -1
- package/dist/components/bindable/BindableInputTypedLegacy.d.ts +3 -1
- package/dist/components/bindable/bindableHtmlElements.d.ts +3 -3
- package/dist/components/library/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/dist/components/library/RichTextEditor/StoredContentNode.d.ts +6 -1
- package/dist/components/library/RichTextEditor/contentTree.js +33 -13
- package/dist/env/setPrivateEnvValidator.js +2 -2
- package/dist/env/setPublicEnvValidator.d.ts +2 -2
- package/dist/env/setPublicEnvValidator.js +2 -2
- package/dist/fileVersions.js +5 -1
- package/dist/findProjectDir.js +2 -1
- package/dist/findUserConfig.d.ts +1 -1
- package/dist/frameworkConfigSchema.d.ts +8 -4
- package/dist/frameworkConfigSchema.js +2 -0
- package/dist/getRoutes.js +0 -4
- package/dist/hydrate/hydrate.js +3 -2
- package/dist/hydrate/hydrateGlobalData.d.ts +3 -0
- package/dist/hydrate/stubRouting.d.ts +2 -1
- package/dist/hydrate/stubRouting.js +7 -5
- package/dist/indexInner.d.ts +1 -0
- package/dist/indexInner.js +1 -0
- package/dist/json.d.ts +4 -0
- package/dist/json.js +3 -0
- package/dist/makeFinalConfig.js +3 -1
- package/dist/mutatingFunctions.d.ts +3 -3
- package/dist/pipeline/hydratePipeline.js +46 -5
- package/dist/pipeline/pipeline.d.ts +21 -6
- package/dist/pipeline/pipeline.js +14 -3
- package/dist/pipeline/pipelineDefinition.d.ts +11 -3
- package/dist/pipeline/pipelineDefinition.js +2 -0
- package/dist/pipeline/runPipeline.d.ts +15 -5
- package/dist/pipeline/runPipeline.js +71 -29
- package/dist/pipeline/runSplitPipeline.d.ts +2 -2
- package/dist/pipeline/runSplitPipeline.js +11 -5
- package/dist/pipeline/settleRouting.d.ts +10 -0
- package/dist/pipeline/settleRouting.js +54 -0
- package/dist/pipeline/splitPipeline.d.ts +9 -6
- package/dist/pipeline/splitPipeline.js +6 -4
- package/dist/postcssPlugins/TransformCssNames.d.ts +6 -6
- package/dist/render/contentTreeToRenderingTree.js +1 -3
- package/dist/render/instantiateClassComponent.d.ts +1 -1
- package/dist/render/processHead.js +31 -0
- package/dist/render/processProps.d.ts +6 -1
- package/dist/render/processProps.js +6 -4
- package/dist/render/rootToHtml.d.ts +1 -1
- package/dist/render/rootToHtml.js +2 -2
- package/dist/render/rootToHtmlDev.d.ts +1 -1
- package/dist/render/rootToHtmlDev.js +2 -2
- package/dist/routing/DataRedirect.d.ts +4 -0
- package/dist/routing/DataRedirect.js +1 -0
- package/dist/routing/Group.d.ts +1 -1
- package/dist/routing/MatchedRoute.d.ts +1 -1
- package/dist/routing/MatchedRoute.js +9 -3
- package/dist/routing/builder.d.ts +28 -9
- package/dist/routing/builder.js +9 -2
- package/dist/routing/redirectOf.d.ts +3 -2
- package/dist/routing/redirectOf.js +16 -9
- package/dist/routing/registerGlobalData.d.ts +4 -3
- package/dist/routing/registerRouting.d.ts +2 -1
- package/dist/routing/resolveAppRoutes.js +10 -1
- package/dist/routing/routesArray.d.ts +3 -2
- package/dist/routing/routingBuilder.d.ts +2 -1
- package/dist/staticGen/staticGen.js +3 -11
- package/dist/style/styleContentSxy.js +8 -8
- package/dist/syncServer/preload.js +1 -1
- package/dist/testing/createTestApp.d.ts +1 -1
- package/dist/testing/ensure.d.ts +1 -1
- package/dist/testing/host.d.ts +4 -4
- package/dist/testing/hydrateTestApp.d.ts +1 -1
- package/dist/testing/loadEnv.js +1 -1
- package/dist/testing/pipeline/createTestPipelineApp.js +10 -10
- package/dist/testing/pipeline/hostPipeline.d.ts +4 -4
- package/dist/testing/pipeline/hydrateTestPipelineApp.js +3 -3
- package/dist/testing/pipeline/index.d.ts +2 -0
- package/dist/testing/pipeline/index.js +3 -1
- package/dist/testing/pipeline/routesOf.d.ts +14 -0
- package/dist/testing/pipeline/routesOf.js +19 -0
- package/dist/testing/pipeline/testingComponentPackageFromPacket.d.ts +11 -0
- package/dist/testing/pipeline/testingComponentPackageFromPacket.js +26 -0
- package/dist/testing/testingComponentPackage.d.ts +1 -0
- package/dist/testing/testingComponentPackage.js +2 -1
- package/dist-ti/AnyComponent.d.ts +7 -0
- package/dist-ti/AnyComponentType.d.ts +7 -0
- package/dist-ti/AppResponse.d.ts +9 -0
- package/dist-ti/AppTypeExtraction.d.ts +3 -0
- package/dist-ti/AssignedStyle.d.ts +6 -0
- package/dist-ti/Brands.d.ts +17 -0
- package/dist-ti/CjsTypes.d.ts +9 -0
- package/dist-ti/ComponentInstance.d.ts +3 -0
- package/dist-ti/ComponentRenderInfo.type.d.ts +7 -0
- package/dist-ti/ComponentStyle.d.ts +7 -0
- package/dist-ti/Components.d.ts +344 -0
- package/dist-ti/ContentFunction.d.ts +10 -0
- package/dist-ti/ContentNode.d.ts +95 -0
- package/dist-ti/ContentNodeNew.d.ts +3 -0
- package/dist-ti/CssNames.d.ts +10 -0
- package/dist-ti/DomNodes.d.ts +4 -0
- package/dist-ti/DomPointer.d.ts +24 -0
- package/dist-ti/DomRegion.d.ts +23 -0
- package/dist-ti/ExtendableHTMLElement.d.ts +6 -0
- package/dist-ti/Framework.d.ts +33 -0
- package/dist-ti/FrameworkConfig.d.ts +121 -0
- package/dist-ti/FunctionComponent.d.ts +14 -0
- package/dist-ti/FunctionComponentStandIn.d.ts +62 -0
- package/dist-ti/GenericObject.type.d.ts +3 -0
- package/dist-ti/HtmlElementAttributes.d.ts +3 -0
- package/dist-ti/Instance/ClientRuntimeContext.d.ts +9 -0
- package/dist-ti/Instance/Instance.d.ts +89 -0
- package/dist-ti/Instance/InstanceConfig.d.ts +14 -0
- package/dist-ti/IsDefined.d.ts +3 -0
- package/dist-ti/IsIndexableObject.d.ts +3 -0
- package/dist-ti/IsNumber.d.ts +3 -0
- package/dist-ti/IsObject.d.ts +4 -0
- package/dist-ti/Json.type.d.ts +8 -0
- package/dist-ti/JsxContent.d.ts +5 -0
- package/dist-ti/Key.d.ts +3 -0
- package/dist-ti/KeyAttr.d.ts +4 -0
- package/dist-ti/MapObject.d.ts +5 -0
- package/dist-ti/Mode.d.ts +3 -0
- package/dist-ti/Module.d.ts +6 -0
- package/dist-ti/NoDeproxy.d.ts +6 -0
- package/dist-ti/PopMessage.type.d.ts +7 -0
- package/dist-ti/ProcessedStylesObject.d.ts +7 -0
- package/dist-ti/RenderFunction.d.ts +4 -0
- package/dist-ti/RenderedContentNode.d.ts +83 -0
- package/dist-ti/RenderingNode.d.ts +58 -0
- package/dist-ti/ReqRes.d.ts +170 -0
- package/dist-ti/Sass.d.ts +7 -0
- package/dist-ti/Script.d.ts +9 -0
- package/dist-ti/ServerRpcFunction.type.d.ts +3 -0
- package/dist-ti/Servers/DevServer.d.ts +57 -0
- package/dist-ti/Servers/ProdServer.d.ts +38 -0
- package/dist-ti/Servers/ServerMiddleware.d.ts +7 -0
- package/dist-ti/Servers/StaticSiteServer.d.ts +15 -0
- package/dist-ti/Servers/TungstenServer.d.ts +43 -0
- package/dist-ti/Servers/cacheVersioned.d.ts +4 -0
- package/dist-ti/Servers/devErrorPageAutoRetry.d.ts +5 -0
- package/dist-ti/Servers/initStores.d.ts +17 -0
- package/dist-ti/Servers/listenVerified.d.ts +13 -0
- package/dist-ti/Servers/loadEnvsDev.d.ts +8 -0
- package/dist-ti/Servers/portError.d.ts +3 -0
- package/dist-ti/Servers/resetRegistrations.d.ts +3 -0
- package/dist-ti/Servers/routing.d.ts +7 -0
- package/dist-ti/Servers/serveStatic.d.ts +6 -0
- package/dist-ti/Servers/stubInstance.d.ts +9 -0
- package/dist-ti/Servers/tungstenCorePrivateEnvSchema.d.ts +8 -0
- package/dist-ti/Servers/tungstenCorePublicEnvSchema.d.ts +9 -0
- package/dist-ti/Servers/watchedServerMiddleware.d.ts +11 -0
- package/dist-ti/Store/BaseStoreSchema.d.ts +4 -0
- package/dist-ti/Store/InternalStoreSchema.d.ts +22 -0
- package/dist-ti/Store/ServerDataLoading.d.ts +5 -0
- package/dist-ti/Store/Store.d.ts +3 -0
- package/dist-ti/Store/StoreProxyInterface.d.ts +3 -0
- package/dist-ti/Store/StoreSchemaClass.d.ts +10 -0
- package/dist-ti/Store/StoreSubscriptions.types.d.ts +7 -0
- package/dist-ti/Store/TypeSafeStore.d.ts +3 -0
- package/dist-ti/Store/createStores.d.ts +9 -0
- package/dist-ti/Store/exportStore.d.ts +4 -0
- package/dist-ti/Store/getInternalStore.d.ts +5 -0
- package/dist-ti/Store/getStore.d.ts +3 -0
- package/dist-ti/Store/makeStore.d.ts +53 -0
- package/dist-ti/Store/registerStore.d.ts +13 -0
- package/dist-ti/Store/storeCreators.d.ts +4 -0
- package/dist-ti/StoreBindVariable.d.ts +4 -0
- package/dist-ti/StyleProcessor.d.ts +4 -0
- package/dist-ti/TElement.d.ts +3 -0
- package/dist-ti/TungstenApp.d.ts +27 -0
- package/dist-ti/TungstenAppOld.d.ts +3 -0
- package/dist-ti/TungstenElement.d.ts +4 -0
- package/dist-ti/TungstenError.d.ts +10 -0
- package/dist-ti/TungstenStyleObject.d.ts +3 -0
- package/dist-ti/__deproxy.d.ts +4 -0
- package/dist-ti/_client/RootComponent.d.ts +5 -0
- package/dist-ti/_client/cjsHelpers.d.ts +12 -0
- package/dist-ti/_client/client.d.ts +15 -0
- package/dist-ti/_client/hmr.d.ts +3 -0
- package/dist-ti/_client/liveReload.d.ts +3 -0
- package/dist-ti/_client/liveReloadSource.d.ts +4 -0
- package/dist-ti/_client/rootComponentRelFilePath.d.ts +3 -0
- package/dist-ti/_client/routes.d.ts +4 -0
- package/dist-ti/_testing/errorRoute.d.ts +9 -0
- package/dist-ti/_testing/regexEquals.d.ts +3 -0
- package/dist-ti/_testing/should.d.ts +3 -0
- package/dist-ti/_testing/sxy-test-runner.types.d.ts +6 -0
- package/dist-ti/alive.d.ts +4 -0
- package/dist-ti/api/ApiEndpoint.d.ts +4 -0
- package/dist-ti/api/ApiMethod.type.d.ts +3 -0
- package/dist-ti/api/ApiRoute.d.ts +8 -0
- package/dist-ti/api/ApiRoutes.d.ts +6 -0
- package/dist-ti/api/Request.d.ts +3 -0
- package/dist-ti/api/Response.d.ts +3 -0
- package/dist-ti/api/getApiRoutes.d.ts +7 -0
- package/dist-ti/api/getExport.d.ts +4 -0
- package/dist-ti/api/getExportDev.d.ts +3 -0
- package/dist-ti/appBuilder.d.ts +75 -0
- package/dist-ti/appOutput.d.ts +7 -0
- package/dist-ti/assert.d.ts +3 -0
- package/dist-ti/auth/checkPassword.d.ts +4 -0
- package/dist-ti/auth/hashPassword.d.ts +4 -0
- package/dist-ti/auth/index.d.ts +4 -0
- package/dist-ti/babelPlugins/BabelAddDevCacheBust.d.ts +19 -0
- package/dist-ti/babelPlugins/BabelExtractComponentStylesheet.d.ts +14 -0
- package/dist-ti/babelPlugins/BabelFakeType.d.ts +8 -0
- package/dist-ti/babelPlugins/BabelState.type.d.ts +4 -0
- package/dist-ti/babelPlugins/BabelTransformBindDirect.d.ts +16 -0
- package/dist-ti/babelPlugins/BabelTransformBindVar.d.ts +16 -0
- package/dist-ti/babelPlugins/BabelTransformCjsToEsm.d.ts +17 -0
- package/dist-ti/babelPlugins/BabelTransformCjsToFunction.d.ts +21 -0
- package/dist-ti/babelPlugins/BabelTransformCjsToFunction2.d.ts +22 -0
- package/dist-ti/babelPlugins/BabelTransformComponentState.d.ts +27 -0
- package/dist-ti/babelPlugins/BabelTransformComponentStyles.d.ts +38 -0
- package/dist-ti/babelPlugins/BabelTransformCssImports.d.ts +18 -0
- package/dist-ti/babelPlugins/BabelTransformDependencyImportsOld.d.ts +21 -0
- package/dist-ti/babelPlugins/BabelTransformDeproxyState.d.ts +23 -0
- package/dist-ti/babelPlugins/BabelTransformDocInit.d.ts +10 -0
- package/dist-ti/babelPlugins/BabelTransformJsxExtensionsToJs.d.ts +12 -0
- package/dist-ti/babelPlugins/BabelTransformJsxSignals.d.ts +3 -0
- package/dist-ti/babelPlugins/BabelTransformPackageImports.d.ts +89 -0
- package/dist-ti/babelPlugins/BabelTransformReactive.d.ts +16 -0
- package/dist-ti/babelPlugins/BabelTransformReactiveSvelteStyle.d.ts +11 -0
- package/dist-ti/babelPlugins/BabelTransformRemoveBlocks.d.ts +14 -0
- package/dist-ti/babelPlugins/BabelTransformRemoveDevBlocks.d.ts +11 -0
- package/dist-ti/babelPlugins/BabelTransformRemoveServerBlocks.d.ts +11 -0
- package/dist-ti/babelPlugins/BabelTransformRemoveServerCode.d.ts +3 -0
- package/dist-ti/babelPlugins/BabelTransformSxyFrameworkImports.d.ts +11 -0
- package/dist-ti/babelPlugins/BabelTransformSxyJsx.d.ts +3 -0
- package/dist-ti/babelPlugins/BabelTransformUniqueComponents.d.ts +11 -0
- package/dist-ti/babelPlugins/BabelTypes.d.ts +7 -0
- package/dist-ti/babelPlugins/StyleCompileError.d.ts +5 -0
- package/dist-ti/babelPlugins/fixImportsInSassErrorMessage.d.ts +9 -0
- package/dist-ti/babelPlugins/isBareImport.d.ts +3 -0
- package/dist-ti/babelPlugins/test.d.ts +3 -0
- package/dist-ti/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts +35 -0
- package/dist-ti/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.d.ts +35 -0
- package/dist-ti/babelPlugins/transformPackageImports/getWebLocationOfPackageFile.d.ts +3 -0
- package/dist-ti/babelPlugins/transformPackageImports/resolveBareImport.d.ts +3 -0
- package/dist-ti/bin/args.d.ts +12 -0
- package/dist-ti/bin/commands/build.d.ts +3 -0
- package/dist-ti/bin/commands/buildHelp.d.ts +3 -0
- package/dist-ti/bin/commands/clean.d.ts +3 -0
- package/dist-ti/bin/commands/compile.d.ts +3 -0
- package/dist-ti/bin/commands/compileSimplePackage.d.ts +3 -0
- package/dist-ti/bin/commands/dev.d.ts +3 -0
- package/dist-ti/bin/commands/devmon.d.ts +3 -0
- package/dist-ti/bin/commands/help.d.ts +3 -0
- package/dist-ti/bin/commands/speed.d.ts +3 -0
- package/dist-ti/bin/commands/start.d.ts +3 -0
- package/dist-ti/bin/commands/static.d.ts +3 -0
- package/dist-ti/bin/index.d.ts +3 -0
- package/dist-ti/bin/moduleLoadAnalysis.d.ts +3 -0
- package/dist-ti/bin/vendorHook.d.ts +4 -0
- package/dist-ti/booleanAttributeValue.d.ts +22 -0
- package/dist-ti/browserStorage.d.ts +65 -0
- package/dist-ti/build/BabelConfig.d.ts +6 -0
- package/dist-ti/build/CompilationInfo.d.ts +18 -0
- package/dist-ti/build/CompilationInfoFailure.d.ts +3 -0
- package/dist-ti/build/CompilationInfoSuccess.d.ts +3 -0
- package/dist-ti/build/Event.type.d.ts +3 -0
- package/dist-ti/build/ImportAliases.d.ts +5 -0
- package/dist-ti/build/PackageList.d.ts +3 -0
- package/dist-ti/build/PackagesCacheInfo.d.ts +3 -0
- package/dist-ti/build/ProcessPackageResult.d.ts +16 -0
- package/dist-ti/build/ProcessPackageResults.d.ts +4 -0
- package/dist-ti/build/PromiseSettledResultIsPromiseRejectedResult.d.ts +6 -0
- package/dist-ti/build/assetVersions.d.ts +10 -0
- package/dist-ti/build/babel.user.common.config.d.ts +11 -0
- package/dist-ti/build/bundle.d.ts +3 -0
- package/dist-ti/build/bundleBabelOptions.d.ts +6 -0
- package/dist-ti/build/clientModuleAliases.d.ts +3 -0
- package/dist-ti/build/clientRoutesFile.d.ts +3 -0
- package/dist-ti/build/combineComponentCss.d.ts +3 -0
- package/dist-ti/build/compileJavascript.d.ts +30 -0
- package/dist-ti/build/compileStyles.d.ts +5 -0
- package/dist-ti/build/compileUserApp.d.ts +7 -0
- package/dist-ti/build/componentStylesCache.d.ts +11 -0
- package/dist-ti/build/copyAssets.d.ts +4 -0
- package/dist-ti/build/copyPackageModulesToPackagesFolder.d.ts +5 -0
- package/dist-ti/build/copyPublicFiles.d.ts +4 -0
- package/dist-ti/build/createClientFiles.d.ts +5 -0
- package/dist-ti/build/createInstanceConfigFile.d.ts +5 -0
- package/dist-ti/build/createPackageVirtualFileSystem.d.ts +4 -0
- package/dist-ti/build/createPackageVirtualFileSystems.d.ts +4 -0
- package/dist-ti/build/customImportAliases.d.ts +5 -0
- package/dist-ti/build/customPackageEntryPoints.d.ts +7 -0
- package/dist-ti/build/devBundle.d.ts +3 -0
- package/dist-ti/build/devBundle.rollup.config.d.ts +7 -0
- package/dist-ti/build/findRequiredUserModules.d.ts +3 -0
- package/dist-ti/build/frameworkDestLocation.d.ts +4 -0
- package/dist-ti/build/frameworkStylesheets.d.ts +6 -0
- package/dist-ti/build/getAllSxyClientModules.d.ts +5 -0
- package/dist-ti/build/getPackageDirForFile.d.ts +3 -0
- package/dist-ti/build/getSxyClientPackageAliases.d.ts +4 -0
- package/dist-ti/build/getTempDirForAppCompilation.d.ts +4 -0
- package/dist-ti/build/ignoreGlobs.d.ts +3 -0
- package/dist-ti/build/internalAliases.d.ts +5 -0
- package/dist-ti/build/makeBabelRawConfig.d.ts +4 -0
- package/dist-ti/build/makeBabelUserDevConfig.d.ts +6 -0
- package/dist-ti/build/makeBabelUserProdConfig.d.ts +4 -0
- package/dist-ti/build/makeEnvJavascriptContent.d.ts +3 -0
- package/dist-ti/build/modifySassImports.d.ts +7 -0
- package/dist-ti/build/packageIdentifier.d.ts +7 -0
- package/dist-ti/build/processDataToLines.d.ts +3 -0
- package/dist-ti/build/resolveSassScssImports.d.ts +4 -0
- package/dist-ti/build/rollup.user.prod.config.d.ts +7 -0
- package/dist-ti/build/rollupExtractComponentStylesheets.d.ts +13 -0
- package/dist-ti/build/rollupProdConstants.d.ts +6 -0
- package/dist-ti/build/sassImportParser.d.ts +7 -0
- package/dist-ti/build/scssImportParserChatgpt.d.ts +7 -0
- package/dist-ti/build/tallyBabel.d.ts +4 -0
- package/dist-ti/cacheControl.d.ts +14 -0
- package/dist-ti/calculateImportedStaticFileLocations.d.ts +11 -0
- package/dist-ti/calledFrom.d.ts +8 -0
- package/dist-ti/checkedAttributeToBoolean.d.ts +3 -0
- package/dist-ti/checkedValueToBoolean.d.ts +3 -0
- package/dist-ti/cliOutput.d.ts +17 -0
- package/dist-ti/clone.d.ts +7 -0
- package/dist-ti/compat/context.d.ts +26 -0
- package/dist-ti/compat/forwardRef.d.ts +10 -0
- package/dist-ti/compat/index.d.ts +3 -0
- package/dist-ti/compat/propTypes.d.ts +18 -0
- package/dist-ti/compat/toTungstenClassComponent.d.ts +3 -0
- package/dist-ti/compat/toTungstenFunctionComponent.d.ts +3 -0
- package/dist-ti/compat/types.d.ts +17 -0
- package/dist-ti/componentClassName.d.ts +3 -0
- package/dist-ti/componentHelpers.d.ts +20 -0
- package/dist-ti/componentProxyHandlers.d.ts +39 -0
- package/dist-ti/componentType.d.ts +3 -0
- package/dist-ti/components/Await.d.ts +18 -0
- package/dist-ti/components/Fragment.d.ts +9 -0
- package/dist-ti/components/GoToComponent.d.ts +11 -0
- package/dist-ti/components/Lazy.d.ts +18 -0
- package/dist-ti/components/Link.d.ts +15 -0
- package/dist-ti/components/NativeHtml.d.ts +11 -0
- package/dist-ti/components/NoEscape.d.ts +9 -0
- package/dist-ti/components/PopMessages.d.ts +13 -0
- package/dist-ti/components/Protected.d.ts +11 -0
- package/dist-ti/components/RawHtml.d.ts +37 -0
- package/dist-ti/components/RouteRedirectComponent.d.ts +13 -0
- package/dist-ti/components/Stylesheet.d.ts +9 -0
- package/dist-ti/components/WebRedirectComponent.d.ts +12 -0
- package/dist-ti/components/_GoToComponent.d.ts +11 -0
- package/dist-ti/components/bindable/BindMode.d.ts +3 -0
- package/dist-ti/components/bindable/BindVariable.d.ts +37 -0
- package/dist-ti/components/bindable/BindableCheckbox.d.ts +26 -0
- package/dist-ti/components/bindable/BindableInput.d.ts +22 -0
- package/dist-ti/components/bindable/BindableInputNonString.d.ts +23 -0
- package/dist-ti/components/bindable/BindableInputString.d.ts +23 -0
- package/dist-ti/components/bindable/BindableInputTyped.d.ts +30 -0
- package/dist-ti/components/bindable/BindableInputTypedLegacy.d.ts +34 -0
- package/dist-ti/components/bindable/BindableRadio.d.ts +15 -0
- package/dist-ti/components/bindable/BindableSelect.d.ts +33 -0
- package/dist-ti/components/bindable/BindableSelectNaive.d.ts +3 -0
- package/dist-ti/components/bindable/BindableTextarea.d.ts +29 -0
- package/dist-ti/components/bindable/bindableCandidates.comparison.d.ts +142 -0
- package/dist-ti/components/bindable/bindableHtmlElements.d.ts +28 -0
- package/dist-ti/components/library/RichTextEditor/RichTextEditor.d.ts +52 -0
- package/dist-ti/components/library/RichTextEditor/StoredContentNode.d.ts +11 -0
- package/dist-ti/components/library/RichTextEditor/activeFormats.d.ts +21 -0
- package/dist-ti/components/library/RichTextEditor/contentTree.d.ts +31 -0
- package/dist-ti/components/library/RichTextEditor/sanitizeAuthoredHtml.d.ts +31 -0
- package/dist-ti/components/library/__StatefulMessage/MessageData.d.ts +8 -0
- package/dist-ti/components/library/__StatefulMessage/StatefulMessage.d.ts +23 -0
- package/dist-ti/components/library/index.d.ts +6 -0
- package/dist-ti/components/makeTypedLink.d.ts +10 -0
- package/dist-ti/concat.d.ts +3 -0
- package/dist-ti/contentNodeSymbols.d.ts +14 -0
- package/dist-ti/context/registerContext.d.ts +23 -0
- package/dist-ti/copy.d.ts +3 -0
- package/dist-ti/createElement.d.ts +3 -0
- package/dist-ti/createRef.d.ts +8 -0
- package/dist-ti/createRoutes.d.ts +4 -0
- package/dist-ti/defaultConfig.d.ts +5 -0
- package/dist-ti/deleteDirs.d.ts +3 -0
- package/dist-ti/devBanner.d.ts +5 -0
- package/dist-ti/docInit.d.ts +17 -0
- package/dist-ti/domNodeChecks.d.ts +4 -0
- package/dist-ti/env/Env.d.ts +3 -0
- package/dist-ti/env/Interfaces.d.ts +10 -0
- package/dist-ti/env/addToEnv.d.ts +3 -0
- package/dist-ti/env/droppedCoreEnvKeys.d.ts +6 -0
- package/dist-ti/env/funcs.d.ts +6 -0
- package/dist-ti/env/getEnvSchemas.d.ts +11 -0
- package/dist-ti/env/index.d.ts +3 -0
- package/dist-ti/env/privateEnv.d.ts +3 -0
- package/dist-ti/env/privateEnvOrThrow.d.ts +3 -0
- package/dist-ti/env/publicEnv.d.ts +3 -0
- package/dist-ti/env/publicEnvOrThrow.d.ts +3 -0
- package/dist-ti/env/registerEnvSchemas.d.ts +16 -0
- package/dist-ti/env/setPrivateEnvValidator.d.ts +9 -0
- package/dist-ti/env/setPublicEnvValidator.d.ts +9 -0
- package/dist-ti/env/test.d.ts +3 -0
- package/dist-ti/env/types.d.ts +4 -0
- package/dist-ti/env/windowGlobalEnvStatement.d.ts +3 -0
- package/dist-ti/experiments.d.ts +3 -0
- package/dist-ti/filePathFromUrl.d.ts +3 -0
- package/dist-ti/fileVersions.d.ts +10 -0
- package/dist-ti/findPackageDotJson.d.ts +3 -0
- package/dist-ti/findProjectDir.d.ts +6 -0
- package/dist-ti/findUserConfig.d.ts +7 -0
- package/dist-ti/fixExtension.d.ts +3 -0
- package/dist-ti/foreach.d.ts +8 -0
- package/dist-ti/frameworkConfigSchema.d.ts +107 -0
- package/dist-ti/getArrowFunctionBody.d.ts +3 -0
- package/dist-ti/getComponent.d.ts +5 -0
- package/dist-ti/getComponentDev.d.ts +4 -0
- package/dist-ti/getConfig.d.ts +3 -0
- package/dist-ti/getContentFromFunctionComponent.d.ts +4 -0
- package/dist-ti/getFrameworkDir.d.ts +3 -0
- package/dist-ti/getRoutes.d.ts +7 -0
- package/dist-ti/getRoutesDevs.d.ts +5 -0
- package/dist-ti/getStackTrace.d.ts +3 -0
- package/dist-ti/getStyledContentFromFunctionComponent.d.ts +4 -0
- package/dist-ti/getUserConfig.d.ts +4 -0
- package/dist-ti/glob.d.ts +6 -0
- package/dist-ti/globals.d.ts +3 -0
- package/dist-ti/goto.d.ts +3 -0
- package/dist-ti/hasDomain.d.ts +21 -0
- package/dist-ti/hasValidKey.d.ts +4 -0
- package/dist-ti/headChildren.d.ts +3 -0
- package/dist-ti/helpers/combineClassNames.d.ts +4 -0
- package/dist-ti/helpers/forwardingFetch.d.ts +4 -0
- package/dist-ti/helpers/getFetchCompatibleHeaders.d.ts +4 -0
- package/dist-ti/helpers/index.d.ts +6 -0
- package/dist-ti/helpers/perRequest.d.ts +4 -0
- package/dist-ti/hmr/applyHmrModule.d.ts +12 -0
- package/dist-ti/hmr/componentIdentity.d.ts +10 -0
- package/dist-ti/hmr/instanceRegistry.d.ts +5 -0
- package/dist-ti/hmr/liveReloadHub.d.ts +11 -0
- package/dist-ti/hmr/refreshStylesheets.d.ts +3 -0
- package/dist-ti/hooks/clearCurrentComponent.d.ts +3 -0
- package/dist-ti/hooks/getCurrentComponent.d.ts +8 -0
- package/dist-ti/hooks/globalObj.d.ts +3 -0
- package/dist-ti/hooks/globalType.d.ts +3 -0
- package/dist-ti/hooks/index.d.ts +7 -0
- package/dist-ti/hooks/setCurrentComponent.d.ts +4 -0
- package/dist-ti/hooks/shallowCompare.d.ts +3 -0
- package/dist-ti/hooks/useCallback.d.ts +3 -0
- package/dist-ti/hooks/useContext.d.ts +3 -0
- package/dist-ti/hooks/useEffect.d.ts +3 -0
- package/dist-ti/hooks/useInstance.d.ts +4 -0
- package/dist-ti/hooks/useMemo.d.ts +3 -0
- package/dist-ti/hooks/useReducer.d.ts +3 -0
- package/dist-ti/hooks/useRef.d.ts +5 -0
- package/dist-ti/hooks/useState.d.ts +4 -0
- package/dist-ti/htmlEntities.d.ts +3 -0
- package/dist-ti/htmlEventHandlerKey.d.ts +4 -0
- package/dist-ti/htmlEvents.d.ts +7 -0
- package/dist-ti/hydrate/hydrate.d.ts +21 -0
- package/dist-ti/hydrate/hydrateGlobalData.d.ts +14 -0
- package/dist-ti/hydrate/reconcileHydratedAttributes.d.ts +26 -0
- package/dist-ti/hydrate/renderHydrationMismatchBanner.d.ts +9 -0
- package/dist-ti/hydrate/stubRouting.d.ts +10 -0
- package/dist-ti/importDevModuleWithRetry.d.ts +5 -0
- package/dist-ti/importModule.d.ts +4 -0
- package/dist-ti/index.d.ts +5 -0
- package/dist-ti/indexInner.d.ts +116 -0
- package/dist-ti/info.d.ts +3 -0
- package/dist-ti/innerHtmlFromProps.d.ts +19 -0
- package/dist-ti/isBrowser.d.ts +3 -0
- package/dist-ti/isClient.d.ts +3 -0
- package/dist-ti/isDev.d.ts +4 -0
- package/dist-ti/isProd.d.ts +3 -0
- package/dist-ti/isServer.d.ts +3 -0
- package/dist-ti/iterationQueryString.d.ts +3 -0
- package/dist-ti/json.d.ts +17 -0
- package/dist-ti/jsx-runtime.d.ts +3 -0
- package/dist-ti/jsxHelpers.d.ts +4 -0
- package/dist-ti/jsxRuntime.d.ts +11 -0
- package/dist-ti/jsxRuntimeSignals.d.ts +23 -0
- package/dist-ti/loadPackageDotJsonFromDir.d.ts +4 -0
- package/dist-ti/logAndReturn.d.ts +4 -0
- package/dist-ti/makeFinalConfig.d.ts +4 -0
- package/dist-ti/makeInstanceConfigFromFrameworkConfig.d.ts +5 -0
- package/dist-ti/makeServerRpc.d.ts +8 -0
- package/dist-ti/markOptionSelected.d.ts +18 -0
- package/dist-ti/mergeConfigs.d.ts +4 -0
- package/dist-ti/moduleReloader.d.ts +3 -0
- package/dist-ti/mutatingFunctions.d.ts +13 -0
- package/dist-ti/nbsp.d.ts +3 -0
- package/dist-ti/objectMap.d.ts +4 -0
- package/dist-ti/objectTypesToCopy.d.ts +3 -0
- package/dist-ti/objectTypesToProxy.d.ts +3 -0
- package/dist-ti/output.d.ts +7 -0
- package/dist-ti/packageSettings.d.ts +3 -0
- package/dist-ti/pipeLog.d.ts +3 -0
- package/dist-ti/pipeline/contextStore.d.ts +13 -0
- package/dist-ti/pipeline/hydratePipeline.d.ts +5 -0
- package/dist-ti/pipeline/importRoutesModule.d.ts +7 -0
- package/dist-ti/pipeline/networkedTransport.d.ts +12 -0
- package/dist-ti/pipeline/pipeline.d.ts +124 -0
- package/dist-ti/pipeline/pipelineDefinition.d.ts +87 -0
- package/dist-ti/pipeline/runPipeline.d.ts +40 -0
- package/dist-ti/pipeline/runSplitPipeline.d.ts +11 -0
- package/dist-ti/pipeline/settleRouting.d.ts +11 -0
- package/dist-ti/pipeline/splitPipeline.d.ts +66 -0
- package/dist-ti/pop.d.ts +11 -0
- package/dist-ti/possibleEnvFiles.d.ts +3 -0
- package/dist-ti/postcssPlugins/TransformCssNames.d.ts +16 -0
- package/dist-ti/postcssPlugins/parseSelectors.d.ts +3 -0
- package/dist-ti/postcssPlugins/parseSelectorsRich.d.ts +9 -0
- package/dist-ti/postcssPlugins/scopeAnimationValue.d.ts +3 -0
- package/dist-ti/postcssPlugins/splitCssValue.d.ts +3 -0
- package/dist-ti/postcssPlugins/unwrapIgnoreMarker.d.ts +3 -0
- package/dist-ti/promise.d.ts +3 -0
- package/dist-ti/propsAreEqual.d.ts +9 -0
- package/dist-ti/rawHtml/HtmlAllowList.d.ts +18 -0
- package/dist-ti/rawHtml/decodeHtmlEntities.d.ts +9 -0
- package/dist-ti/rawHtml/filterContentNode.d.ts +21 -0
- package/dist-ti/rawHtml/htmlParsingTags.d.ts +24 -0
- package/dist-ti/rawHtml/parseHtml.d.ts +50 -0
- package/dist-ti/rawHtml/safeHtmlAllowList.d.ts +19 -0
- package/dist-ti/rawHtml/sanitizeHtml.d.ts +18 -0
- package/dist-ti/rawHtml/tokenizeHtml.d.ts +26 -0
- package/dist-ti/reRouting/addRequireResolveHooks.d.ts +3 -0
- package/dist-ti/reRouting/importLoader.d.ts +8 -0
- package/dist-ti/ref.d.ts +3 -0
- package/dist-ti/regexEscape.d.ts +3 -0
- package/dist-ti/removeRecursive.d.ts +3 -0
- package/dist-ti/render/HeadData.d.ts +22 -0
- package/dist-ti/render/SxyFrameworkModule.d.ts +6 -0
- package/dist-ti/render/SxyFrameworkModules.d.ts +4 -0
- package/dist-ti/render/addImportMap.d.ts +5 -0
- package/dist-ti/render/classComponentNodeToRenderingTree.d.ts +7 -0
- package/dist-ti/render/componentNodeToRenderingTree.d.ts +7 -0
- package/dist-ti/render/contentNodeToHtml.d.ts +19 -0
- package/dist-ti/render/contentToHtml.d.ts +10 -0
- package/dist-ti/render/contentToHtmlDev.d.ts +10 -0
- package/dist-ti/render/contentTreeToRenderingTree.d.ts +7 -0
- package/dist-ti/render/debug.d.ts +3 -0
- package/dist-ti/render/functionComponentNodeToRenderingTree.d.ts +7 -0
- package/dist-ti/render/getFunctionBodyAsString.d.ts +4 -0
- package/dist-ti/render/htmlMonoTags.d.ts +7 -0
- package/dist-ti/render/htmlNoSelfCloseTags.d.ts +28 -0
- package/dist-ti/render/htmlSelfClosableTags.d.ts +7 -0
- package/dist-ti/render/htmlSingleOnlyTags.d.ts +9 -0
- package/dist-ti/render/htmlVoidTags.d.ts +20 -0
- package/dist-ti/render/instantiateClassComponent.d.ts +6 -0
- package/dist-ti/render/instantiateComponent.d.ts +6 -0
- package/dist-ti/render/instantiateFunctionComponent.d.ts +7 -0
- package/dist-ti/render/printComponentNameInSource.d.ts +3 -0
- package/dist-ti/render/processBody.d.ts +3 -0
- package/dist-ti/render/processHead.d.ts +5 -0
- package/dist-ti/render/processHtmlNode.d.ts +4 -0
- package/dist-ti/render/processProps.d.ts +3 -0
- package/dist-ti/render/processRenderingNodeHtml.d.ts +4 -0
- package/dist-ti/render/readDocInitScript.d.ts +4 -0
- package/dist-ti/render/renderingTreeToHtml.d.ts +5 -0
- package/dist-ti/render/rootToHtml.d.ts +10 -0
- package/dist-ti/render/rootToHtmlDev.d.ts +10 -0
- package/dist-ti/requests/axios/get.d.ts +3 -0
- package/dist-ti/requests/axios/post.d.ts +3 -0
- package/dist-ti/requests/fetch/FetchExtras.d.ts +32 -0
- package/dist-ti/requests/fetch/_fetchPromise.d.ts +3 -0
- package/dist-ti/requests/fetch/delete.d.ts +4 -0
- package/dist-ti/requests/fetch/get.d.ts +4 -0
- package/dist-ti/requests/fetch/mergeFetchInit.d.ts +3 -0
- package/dist-ti/requests/fetch/paramsObjectToParamsString.d.ts +3 -0
- package/dist-ti/requests/fetch/patch.d.ts +4 -0
- package/dist-ti/requests/fetch/post.d.ts +4 -0
- package/dist-ti/requests/fetch/put.d.ts +4 -0
- package/dist-ti/requests/index.d.ts +7 -0
- package/dist-ti/routesLocationParts.d.ts +7 -0
- package/dist-ti/routing/AppRoutes.d.ts +7 -0
- package/dist-ti/routing/DataRedirect.d.ts +5 -0
- package/dist-ti/routing/Default404.d.ts +6 -0
- package/dist-ti/routing/ErrorRouteType.d.ts +9 -0
- package/dist-ti/routing/Group.d.ts +13 -0
- package/dist-ti/routing/Match.type.d.ts +18 -0
- package/dist-ti/routing/MatchedRoute.d.ts +15 -0
- package/dist-ti/routing/MatchedRouteInfo.d.ts +14 -0
- package/dist-ti/routing/Params.d.ts +3 -0
- package/dist-ti/routing/ParamsFromPath.d.ts +11 -0
- package/dist-ti/routing/RedirectCode.d.ts +3 -0
- package/dist-ti/routing/Route.d.ts +3 -0
- package/dist-ti/routing/RouteContent.d.ts +5 -0
- package/dist-ti/routing/RouteContentFunction.d.ts +6 -0
- package/dist-ti/routing/RouteData.d.ts +3 -0
- package/dist-ti/routing/RouteDataFunction.type.d.ts +9 -0
- package/dist-ti/routing/RouteDataReturnType.d.ts +12 -0
- package/dist-ti/routing/RouteParams.type.d.ts +3 -0
- package/dist-ti/routing/RoutePaths.d.ts +13 -0
- package/dist-ti/routing/RouteProp.d.ts +11 -0
- package/dist-ti/routing/RouteType.d.ts +3 -0
- package/dist-ti/routing/RouteTypes.d.ts +20 -0
- package/dist-ti/routing/Router.d.ts +3 -0
- package/dist-ti/routing/Routes.d.ts +39 -0
- package/dist-ti/routing/RoutesFunction.d.ts +14 -0
- package/dist-ti/routing/RoutesWithSafeParams.d.ts +3 -0
- package/dist-ti/routing/RoutingRedirect.d.ts +9 -0
- package/dist-ti/routing/Serializable.d.ts +6 -0
- package/dist-ti/routing/TungstenErrorInfo.d.ts +7 -0
- package/dist-ti/routing/WebRedirect.d.ts +9 -0
- package/dist-ti/routing/builder.d.ts +131 -0
- package/dist-ti/routing/builder.trial.d.ts +3 -0
- package/dist-ti/routing/compareRequestToRegex.d.ts +10 -0
- package/dist-ti/routing/debug.d.ts +3 -0
- package/dist-ti/routing/defineRoutes.d.ts +9 -0
- package/dist-ti/routing/getPathPriority.d.ts +3 -0
- package/dist-ti/routing/matchPath.d.ts +4 -0
- package/dist-ti/routing/patternToRegex.d.ts +6 -0
- package/dist-ti/routing/pyramidRouting.d.ts +3 -0
- package/dist-ti/routing/redirectOf.d.ts +13 -0
- package/dist-ti/routing/registerGlobalData.d.ts +19 -0
- package/dist-ti/routing/registerRoutes.d.ts +11 -0
- package/dist-ti/routing/registerRouting.d.ts +38 -0
- package/dist-ti/routing/registrationTypes.d.ts +12 -0
- package/dist-ti/routing/resolveAppRoutes.d.ts +6 -0
- package/dist-ti/routing/routeSymbols.d.ts +10 -0
- package/dist-ti/routing/routeUrl.d.ts +9 -0
- package/dist-ti/routing/routesArray.d.ts +31 -0
- package/dist-ti/routing/routingBuilder.d.ts +36 -0
- package/dist-ti/routing/routingRegistry.d.ts +20 -0
- package/dist-ti/routing/runContentFunction.d.ts +3 -0
- package/dist-ti/routing/splitRequest.d.ts +18 -0
- package/dist-ti/run.d.ts +3 -0
- package/dist-ti/server.d.ts +5 -0
- package/dist-ti/serverModuleLocation.d.ts +4 -0
- package/dist-ti/serverRpc.d.ts +3 -0
- package/dist-ti/serverRpcs.d.ts +4 -0
- package/dist-ti/settings.d.ts +34 -0
- package/dist-ti/signals/tracking.d.ts +34 -0
- package/dist-ti/slash.d.ts +3 -0
- package/dist-ti/spawnShellCommand.d.ts +4 -0
- package/dist-ti/standardSchema.d.ts +38 -0
- package/dist-ti/standardizeWebPath.d.ts +3 -0
- package/dist-ti/startDevServer.d.ts +3 -0
- package/dist-ti/stateTracking.d.ts +48 -0
- package/dist-ti/staticGen/RouteDefinition.d.ts +9 -0
- package/dist-ti/staticGen/getAppRoutes.d.ts +6 -0
- package/dist-ti/staticGen/staticGen.d.ts +4 -0
- package/dist-ti/staticGen/staticGenFunctions.d.ts +7 -0
- package/dist-ti/style/jssToCss.d.ts +3 -0
- package/dist-ti/style/styleContent.d.ts +4 -0
- package/dist-ti/style/styleContentReact.d.ts +3 -0
- package/dist-ti/style/styleContentReactClassOrClassname.d.ts +3 -0
- package/dist-ti/style/styleContentSxy.d.ts +5 -0
- package/dist-ti/style/styleContentSxyClassOrClassname.d.ts +3 -0
- package/dist-ti/style/styleElementContent.d.ts +3 -0
- package/dist-ti/style/unusedStyles.d.ts +10 -0
- package/dist-ti/styleProcessors.d.ts +3 -0
- package/dist-ti/symbols.d.ts +4 -0
- package/dist-ti/sync/index.d.ts +5 -0
- package/dist-ti/syncServer/preload.d.ts +3 -0
- package/dist-ti/testing/contentToString.d.ts +14 -0
- package/dist-ti/testing/createTestApp.d.ts +72 -0
- package/dist-ti/testing/display.d.ts +3 -0
- package/dist-ti/testing/ensure.d.ts +120 -0
- package/dist-ti/testing/ensure.trial.d.ts +3 -0
- package/dist-ti/testing/helpers/contentHtmlElements.d.ts +4 -0
- package/dist-ti/testing/host.d.ts +189 -0
- package/dist-ti/testing/hydrateTestApp.d.ts +57 -0
- package/dist-ti/testing/index.d.ts +12 -0
- package/dist-ti/testing/installTestDocInit.d.ts +3 -0
- package/dist-ti/testing/installTestStyleProcessors.d.ts +3 -0
- package/dist-ti/testing/loadEnv.d.ts +7 -0
- package/dist-ti/testing/normalize.d.ts +3 -0
- package/dist-ti/testing/pipeline/createTestPacketApp.d.ts +31 -0
- package/dist-ti/testing/pipeline/createTestPipelineApp.d.ts +71 -0
- package/dist-ti/testing/pipeline/hostPipeline.d.ts +26 -0
- package/dist-ti/testing/pipeline/hydrateTestPipelineApp.d.ts +31 -0
- package/dist-ti/testing/pipeline/index.d.ts +8 -0
- package/dist-ti/testing/pipeline/pipelineTestApp.d.ts +35 -0
- package/dist-ti/testing/pipeline/routesOf.d.ts +15 -0
- package/dist-ti/testing/pipeline/testPipelineRoute.d.ts +3 -0
- package/dist-ti/testing/pipeline/testingComponentPackageFromPacket.d.ts +12 -0
- package/dist-ti/testing/resolveContent.d.ts +19 -0
- package/dist-ti/testing/testEnvIsRequested.d.ts +4 -0
- package/dist-ti/testing/testingComponentPackage.d.ts +36 -0
- package/dist-ti/throwError.d.ts +5 -0
- package/dist-ti/timeProfiler.d.ts +17 -0
- package/dist-ti/todo.d.ts +3 -0
- package/dist-ti/update/UpdateResult.d.ts +7 -0
- package/dist-ti/update/UpdateScheduler.d.ts +18 -0
- package/dist-ti/update/guardedUpdate.d.ts +10 -0
- package/dist-ti/update/integrateUpdateVdom.d.ts +50 -0
- package/dist-ti/update/integrateUpdateVdomPrebuild.d.ts +3 -0
- package/dist-ti/update/pendingMounts.d.ts +26 -0
- package/dist-ti/validChildren.d.ts +6 -0
- package/dist-ti/warnOnFrameworkChange.d.ts +3 -0
- package/dist-ti/watch.d.ts +10 -0
- package/dist-ti/when.d.ts +4 -0
- package/dist-ti/zones/react.d.ts +54 -0
- package/package.json +75 -11
- package/types/globals.d.ts +65 -0
- package/types/helpers.d.ts +2 -1
- package/types/index.d.ts +2 -57
- package/types-ti/helpers.d.ts +0 -0
- package/types-ti/index.d.ts +12 -0
- package/types-ti/permissions.d.ts +39 -0
- package/vendor/manifest.json +2 -2
- package/dist/pipeline/PipelineRequestHandler.d.ts +0 -25
- package/dist/pipeline/PipelineRequestHandler.js +0 -104
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { redirectOf } from '../routing/redirectOf.js';
|
|
2
|
+
// stands in for routing's result when the all-routes data redirects, which wins over it
|
|
3
|
+
const notRouted = {
|
|
4
|
+
key: null,
|
|
5
|
+
params: {},
|
|
6
|
+
content: null
|
|
7
|
+
};
|
|
8
|
+
const reasonOf = result => result.status === 'rejected' ? result.reason : undefined;
|
|
9
|
+
// Routing and the all-routes data, settled together, so a failure in one cannot hide the other's
|
|
10
|
+
// redirect. A failure recovers to the app's 'error' route: a routing failure always, as the
|
|
11
|
+
// all-routes data is there for Post; a failed all-routes data when the app gave a fallback, which
|
|
12
|
+
// stands in for it. With neither, or with no 'error' route, the failure is thrown
|
|
13
|
+
export async function settleRouting(routes, route, loadData, fallback, errorInfo) {
|
|
14
|
+
const [data, routed] = await Promise.allSettled([Promise.resolve(loadData?.()), route()]);
|
|
15
|
+
let allRoutesData;
|
|
16
|
+
if (data.status === 'fulfilled') {
|
|
17
|
+
allRoutesData = data.value;
|
|
18
|
+
} else if (fallback !== undefined) {
|
|
19
|
+
allRoutesData = await fallback(data.reason);
|
|
20
|
+
} else {
|
|
21
|
+
throw data.reason;
|
|
22
|
+
}
|
|
23
|
+
if (redirectOf(notRouted, allRoutesData) !== undefined) {
|
|
24
|
+
return {
|
|
25
|
+
allRoutesData,
|
|
26
|
+
matchedRouteInfo: notRouted
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (routed.status === 'fulfilled') {
|
|
30
|
+
const matchedRouteInfo = routed.value;
|
|
31
|
+
// a route's redirect goes ahead over a recovered all-routes data
|
|
32
|
+
if (data.status === 'fulfilled' || redirectOf(matchedRouteInfo) !== undefined) {
|
|
33
|
+
return {
|
|
34
|
+
allRoutesData,
|
|
35
|
+
matchedRouteInfo
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// the all-routes data's failure first: it is the one recovered from
|
|
40
|
+
const error = data.status === 'rejected' ? data.reason : reasonOf(routed);
|
|
41
|
+
const errorRoute = routes.error;
|
|
42
|
+
if (errorRoute === undefined) throw error;
|
|
43
|
+
return {
|
|
44
|
+
allRoutesData,
|
|
45
|
+
matchedRouteInfo: {
|
|
46
|
+
key: 'error',
|
|
47
|
+
params: {},
|
|
48
|
+
content: errorRoute.content,
|
|
49
|
+
code: 500,
|
|
50
|
+
data: errorInfo(error)
|
|
51
|
+
},
|
|
52
|
+
recoveredFrom: error
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JsonValue } from 'sxy-types';
|
|
2
2
|
import type { Serializable } from '../routing/Serializable.js';
|
|
3
3
|
import type { TrueStore } from '../Store/makeStore.js';
|
|
4
|
+
import type { DataRedirect } from '../routing/DataRedirect.js';
|
|
4
5
|
import type { Nothing, PostStage, SerializableData, StageMark } from './pipeline.js';
|
|
5
6
|
import type { ClientRoute, MaybePromise, ServerKind, ServerRequests } from './pipelineDefinition.js';
|
|
6
7
|
type ContextOf<X> = X extends {
|
|
@@ -23,17 +24,19 @@ type ClientPostSplit<X> = X extends object ? {
|
|
|
23
24
|
[K in keyof X]: K extends 'context' ? X[K] & object : never;
|
|
24
25
|
} : X;
|
|
25
26
|
type ServerInitProcess<Req, SI> = (reqRes: Req) => MaybePromise<SI & SerializableSplit<NoInfer<SI>>>;
|
|
26
|
-
type ServerAllRoutesDataProcess<Req, SI, G> = (reqRes: Req, init: SI) => MaybePromise<G & SerializableData<NoInfer<G
|
|
27
|
+
type ServerAllRoutesDataProcess<Req, SI, G> = (reqRes: Req, init: SI, location: string) => MaybePromise<(G & SerializableData<NoInfer<G>>) | DataRedirect>;
|
|
28
|
+
type ServerAllRoutesDataFallback<Req, SI, G> = NoInfer<G> | ((reqRes: Req, init: SI, location: string, error: unknown) => MaybePromise<NoInfer<G> | DataRedirect>);
|
|
27
29
|
type ServerPostProcess<Req, SI, SP, G> = (reqRes: Req, init: SI, allRoutesData: G) => MaybePromise<SP & SerializableSplit<NoInfer<SP>>>;
|
|
28
30
|
type ClientInitProcess<N, CI> = (networked: N) => MaybePromise<CI & ClientSplit<NoInfer<CI>>>;
|
|
29
|
-
type ClientAllRoutesDataProcess<CI, G> = (init: CI) => MaybePromise<G>;
|
|
31
|
+
type ClientAllRoutesDataProcess<CI, G> = (init: CI, location: string) => MaybePromise<G | DataRedirect>;
|
|
32
|
+
type ClientAllRoutesDataFallback<CI, G> = NoInfer<G> | ((init: CI, location: string, error: unknown) => MaybePromise<NoInfer<G> | DataRedirect>);
|
|
30
33
|
type ClientPostProcess<CI, CP, G> = (init: CI, allRoutesData: G) => MaybePromise<CP & ClientPostSplit<NoInfer<CP>>>;
|
|
31
34
|
type ClientAfterRoutingProcess<PC, CA, G> = (context: PC, route: ClientRoute, allRoutesData: G) => MaybePromise<CA & ClientPostSplit<NoInfer<CA>>>;
|
|
32
|
-
export type SplitFinalStage<Req, SI, CI, G extends object | undefined, ServerCtx, N, PC> = PostStage<Req, SI | CI, ServerCtx | PC, N, G> & {
|
|
33
|
-
clientAfterRouting: <CA extends object, This>(this: This, process: ClientAfterRoutingProcess<PC, CA, G>) => PostStage<Req, SI | CI, ServerCtx | ContextOf<CA>, N, G> & StageMark<This, 'clientAfterRouting', CA, ContextOf<CA>>;
|
|
35
|
+
export type SplitFinalStage<Req, SI, CI, G extends object | undefined, ServerCtx, N, PC> = PostStage<Req, SI | CI, ServerCtx | PC, N, G, ContextOf<SI> | ContextOf<CI>, NetworkedOf<SI>> & {
|
|
36
|
+
clientAfterRouting: <CA extends object, This>(this: This, process: ClientAfterRoutingProcess<PC, CA, G>) => PostStage<Req, SI | CI, ServerCtx | ContextOf<CA>, N, G, ContextOf<SI> | ContextOf<CI>, NetworkedOf<SI>> & StageMark<This, 'clientAfterRouting', CA, ContextOf<CA>>;
|
|
34
37
|
};
|
|
35
38
|
export type ClientDataStage<Req, SI, CI, G extends object | undefined, ServerCtx, N, PC> = {
|
|
36
|
-
clientAllRoutesData: <This>(this: This, process: ClientAllRoutesDataProcess<CI, G>) => SplitFinalStage<Req, SI, CI, G, ServerCtx, N, PC> & StageMark<This, 'clientAllRoutesData', G, PC>;
|
|
39
|
+
clientAllRoutesData: <This>(this: This, process: ClientAllRoutesDataProcess<CI, G>, fallback?: ClientAllRoutesDataFallback<CI, G>) => SplitFinalStage<Req, SI, CI, G, ServerCtx, N, PC> & StageMark<This, 'clientAllRoutesData', G, PC>;
|
|
37
40
|
};
|
|
38
41
|
type AfterClientPost<Req, SI, CI, G extends object | undefined, D extends boolean, ServerCtx, N, PC> = D extends true ? ClientDataStage<Req, SI, CI, G, ServerCtx, N, PC> : SplitFinalStage<Req, SI, CI, G, ServerCtx, N, PC>;
|
|
39
42
|
export type ClientPostStage<Req, SI, CI, G extends object | undefined, D extends boolean, ServerCtx, N> = AfterClientPost<Req, SI, CI, G, D, ServerCtx, N, ContextOf<CI>> & {
|
|
@@ -49,7 +52,7 @@ export type PipelineServerAllRoutesData<X extends {
|
|
|
49
52
|
serverPost: (process: never) => unknown;
|
|
50
53
|
}> = Parameters<Parameters<X['serverPost']>[0]>[2];
|
|
51
54
|
export type SplitInitStage<Req, SI> = SplitDataStage<Req, SI, undefined, false> & {
|
|
52
|
-
serverAllRoutesData: <G extends object, This>(this: This, process: ServerAllRoutesDataProcess<Req, SI, G>) => SplitDataStage<Req, SI, G, true> & StageMark<This, 'serverAllRoutesData', G, ContextOf<SI>>;
|
|
55
|
+
serverAllRoutesData: <G extends object, This>(this: This, process: ServerAllRoutesDataProcess<Req, SI, G>, fallback?: ServerAllRoutesDataFallback<Req, SI, G>) => SplitDataStage<Req, SI, G, true> & StageMark<This, 'serverAllRoutesData', G, ContextOf<SI>>;
|
|
53
56
|
};
|
|
54
57
|
export type SplitServerStage<Req> = {
|
|
55
58
|
serverInit: <SI extends object | undefined, This>(this: This, process: ServerInitProcess<Req, SI>) => SplitInitStage<Req, SI> & StageMark<This, 'serverInit', SI, ContextOf<SI>>;
|
|
@@ -13,9 +13,10 @@ function splitFinalStage(definition) {
|
|
|
13
13
|
function afterClientPost(definition) {
|
|
14
14
|
return {
|
|
15
15
|
...splitFinalStage(definition),
|
|
16
|
-
clientAllRoutesData: clientData => splitFinalStage({
|
|
16
|
+
clientAllRoutesData: (clientData, fallback) => splitFinalStage({
|
|
17
17
|
...definition,
|
|
18
|
-
clientAllRoutesData: loosely(clientData)
|
|
18
|
+
clientAllRoutesData: loosely(clientData),
|
|
19
|
+
clientAllRoutesDataFallback: loosely(fallback)
|
|
19
20
|
})
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -49,9 +50,10 @@ function splitDataStage(definition) {
|
|
|
49
50
|
function splitInitStage(definition) {
|
|
50
51
|
return {
|
|
51
52
|
...splitDataStage(definition),
|
|
52
|
-
serverAllRoutesData: process => splitDataStage({
|
|
53
|
+
serverAllRoutesData: (process, fallback) => splitDataStage({
|
|
53
54
|
...definition,
|
|
54
|
-
allRoutesData: loosely(process)
|
|
55
|
+
allRoutesData: loosely(process),
|
|
56
|
+
allRoutesDataFallback: loosely(fallback)
|
|
55
57
|
})
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -4,12 +4,12 @@ type Opts = {
|
|
|
4
4
|
moduleName: string;
|
|
5
5
|
outNames: CssNames;
|
|
6
6
|
};
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Once(root: Root): void;
|
|
11
|
-
};
|
|
12
|
-
postcss: boolean;
|
|
7
|
+
export declare function TransformCssNames(opts: Opts): {
|
|
8
|
+
postcssPlugin: string;
|
|
9
|
+
Once(root: Root): void;
|
|
13
10
|
};
|
|
11
|
+
export declare namespace TransformCssNames {
|
|
12
|
+
var postcss: boolean;
|
|
13
|
+
}
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=TransformCssNames.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContentNodeClassComponent } from '../ContentNode.js';
|
|
2
2
|
import type { TungstenElement } from '../TungstenElement.js';
|
|
3
3
|
import type { Instance } from '../Instance/Instance.js';
|
|
4
|
-
export declare function instantiateClassComponent(node: ContentNodeClassComponent, parentComponent:
|
|
4
|
+
export declare function instantiateClassComponent(node: ContentNodeClassComponent, parentComponent: TungstenElement | null | undefined, instance: Instance): Promise<import("../Components.jsx").TungstenBaseComponent<any, any>>;
|
|
5
5
|
//# sourceMappingURL=instantiateClassComponent.d.ts.map
|
|
@@ -7,6 +7,18 @@ import { $props, $type } from '../contentNodeSymbols.js';
|
|
|
7
7
|
function versioned(href, version) {
|
|
8
8
|
return version === undefined ? href : `${href}?v=${version}`;
|
|
9
9
|
}
|
|
10
|
+
// the error route's data is a TungstenErrorInfo, as the framework makes it
|
|
11
|
+
const errorMessageOf = data => {
|
|
12
|
+
if (typeof data !== 'object' || data === null || !('message' in data)) return undefined;
|
|
13
|
+
return typeof data.message === 'string' ? data.message : undefined;
|
|
14
|
+
};
|
|
15
|
+
const errorOf = data => typeof data === 'object' && data !== null && 'error' in data ? data.error : undefined;
|
|
16
|
+
const errorForPage = error => error instanceof Error ? {
|
|
17
|
+
...error,
|
|
18
|
+
name: error.name,
|
|
19
|
+
message: error.message,
|
|
20
|
+
stack: error.stack
|
|
21
|
+
} : error;
|
|
10
22
|
// process the tree returned by the root component
|
|
11
23
|
// doing things like ensuring there is are html and head elements,
|
|
12
24
|
// and adding necessary style and script tags.
|
|
@@ -111,7 +123,26 @@ export function processHead(headNode, headData) {
|
|
|
111
123
|
content: _,
|
|
112
124
|
...networkMatchedRoundInfo
|
|
113
125
|
} = instance.matchedRouteInfo; // @typescript-eslint/no-unused-vars
|
|
126
|
+
// the error route's data holds what was thrown: in prod the message only, as below; in dev all
|
|
127
|
+
// of it, with what an Error keeps non-enumerable
|
|
128
|
+
if (networkMatchedRoundInfo.key === 'error') {
|
|
129
|
+
const data = networkMatchedRoundInfo.data;
|
|
130
|
+
networkMatchedRoundInfo.data = dev ? {
|
|
131
|
+
message: errorMessageOf(data),
|
|
132
|
+
error: errorForPage(errorOf(data))
|
|
133
|
+
} : {
|
|
134
|
+
message: errorMessageOf(data)
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
const errorInfo = instance.errorInfo;
|
|
114
138
|
let varsScriptContent = `var __tungsten_prod__=${String(!dev)};` + `var __tungsten_global_data__=${serializeJavascript(instance.globalData)};`
|
|
139
|
+
// in prod the message only: what was thrown may hold what the browser should not see
|
|
140
|
+
+ (errorInfo === undefined ? '' : `var __tungsten_error_info__=${serializeJavascript(dev ? {
|
|
141
|
+
message: errorInfo.message,
|
|
142
|
+
error: errorForPage(errorInfo.error)
|
|
143
|
+
} : {
|
|
144
|
+
message: errorInfo.message
|
|
145
|
+
})};`)
|
|
115
146
|
// the networked store crosses to the client as data - hydrate reads it, never rebuilds it
|
|
116
147
|
+ `var __tungsten_networked_data__=${serializeJavascript(instance.networkedData)};` + `var __tungsten_matched_route_info__=${serializeJavascript(networkMatchedRoundInfo)};`;
|
|
117
148
|
// route Data
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { TungstenComponentGenericProps } from '../Components.jsx';
|
|
2
|
-
export declare function processProps(
|
|
2
|
+
export declare function processProps(givenProps: TungstenComponentGenericProps): {
|
|
3
|
+
[x: string]: unknown;
|
|
4
|
+
children?: import("../ContentNode.js").ContentNode;
|
|
5
|
+
routeParams?: import("../indexInner.js").RouteParams;
|
|
6
|
+
routeData?: import("../indexInner.js").RouteData;
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=processProps.d.ts.map
|
|
@@ -11,10 +11,12 @@ import { StringIsHtmlEvent } from '../htmlEvents.js';
|
|
|
11
11
|
// about which props are attributes at all.
|
|
12
12
|
const omitProps = ['ref', '__zoneHtml', '__opaque', 'dangerouslySetInnerHTML'];
|
|
13
13
|
//// !!!! We need to handle bind here
|
|
14
|
-
export function processProps(
|
|
15
|
-
props =
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export function processProps(givenProps) {
|
|
15
|
+
const props = {
|
|
16
|
+
...objectFilter(givenProps, key => {
|
|
17
|
+
return !omitProps.includes(key) && !StringIsHtmlEvent(key);
|
|
18
|
+
})
|
|
19
|
+
};
|
|
18
20
|
// if ('className' in props) {
|
|
19
21
|
// if ('class' in props) {
|
|
20
22
|
// props.class = `${props.class} ${props.className}`
|
|
@@ -5,5 +5,5 @@ import type { ImportAliases } from '../build/ImportAliases.js';
|
|
|
5
5
|
import type { SiteBasePath } from './HeadData.js';
|
|
6
6
|
import type { AnyComponentType } from '../AnyComponentType.js';
|
|
7
7
|
import type { Instance } from '../Instance/Instance.js';
|
|
8
|
-
export declare function rootToHtml(compilationInfo: CompilationInfo, clientImportAliases: ImportAliases, RootComponentClass: AnyComponentType, instance: Instance, config: FrameworkConfigComplete, siteBasePathOverride: SiteBasePath, tungstenPublicEnv?: TungstenEnvOrUndefined, dev?: boolean): Promise<string>;
|
|
8
|
+
export declare function rootToHtml(compilationInfo: CompilationInfo, clientImportAliases: ImportAliases, RootComponentClass: AnyComponentType, instance: Instance, config: FrameworkConfigComplete, siteBasePathOverride: SiteBasePath, tungstenPublicEnv?: TungstenEnvOrUndefined, dev?: boolean, rootProps?: object): Promise<string>;
|
|
9
9
|
//# sourceMappingURL=rootToHtml.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { $props, $type } from '../contentNodeSymbols.js';
|
|
2
2
|
import { contentToHtml } from './contentToHtml.js';
|
|
3
|
-
export async function rootToHtml(compilationInfo, clientImportAliases, RootComponentClass, instance, config, siteBasePathOverride, tungstenPublicEnv = undefined, dev = false) {
|
|
3
|
+
export async function rootToHtml(compilationInfo, clientImportAliases, RootComponentClass, instance, config, siteBasePathOverride, tungstenPublicEnv = undefined, dev = false, rootProps = {}) {
|
|
4
4
|
const rootNode = {
|
|
5
5
|
[$type]: RootComponentClass,
|
|
6
6
|
// TypeScript needs some help to understand that { type: AnyComponentType }
|
|
7
|
-
[$props]:
|
|
7
|
+
[$props]: rootProps // is equivalent to { type: ClassComponentTypeAny } | { type: FunctionComponentTypeAny } (type names simplified here)
|
|
8
8
|
};
|
|
9
9
|
return contentToHtml(compilationInfo, clientImportAliases, rootNode, instance, config, siteBasePathOverride, tungstenPublicEnv, dev);
|
|
10
10
|
}
|
|
@@ -5,5 +5,5 @@ import type { Instance } from '../Instance/Instance.js';
|
|
|
5
5
|
import type { SiteBasePath } from './HeadData.js';
|
|
6
6
|
import type { TungstenEnvOrUndefined } from '../env/types.js';
|
|
7
7
|
import type { FrameworkConfigComplete } from '../FrameworkConfig.js';
|
|
8
|
-
export declare function rootToHtmlDev(compilationInfo: CompilationInfo, clientImportAliases: ImportAliases, RootComponentClass: AnyComponentType, instance: Instance, config: FrameworkConfigComplete, tungstenPrivateEnv: TungstenEnvOrUndefined, siteBasePathOverride: SiteBasePath): Promise<string>;
|
|
8
|
+
export declare function rootToHtmlDev(compilationInfo: CompilationInfo, clientImportAliases: ImportAliases, RootComponentClass: AnyComponentType, instance: Instance, config: FrameworkConfigComplete, tungstenPrivateEnv: TungstenEnvOrUndefined, siteBasePathOverride: SiteBasePath, rootProps?: object): Promise<string>;
|
|
9
9
|
//# sourceMappingURL=rootToHtmlDev.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { rootToHtml } from './rootToHtml.js';
|
|
2
|
-
export async function rootToHtmlDev(compilationInfo, clientImportAliases, RootComponentClass, instance, config, tungstenPrivateEnv, siteBasePathOverride) {
|
|
3
|
-
return await rootToHtml(compilationInfo, clientImportAliases, RootComponentClass, instance, config, siteBasePathOverride, tungstenPrivateEnv, true);
|
|
2
|
+
export async function rootToHtmlDev(compilationInfo, clientImportAliases, RootComponentClass, instance, config, tungstenPrivateEnv, siteBasePathOverride, rootProps = {}) {
|
|
3
|
+
return await rootToHtml(compilationInfo, clientImportAliases, RootComponentClass, instance, config, siteBasePathOverride, tungstenPrivateEnv, true, rootProps);
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/routing/Group.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export type GroupProps = {
|
|
|
7
7
|
data?: RouteDataFunction<any, any>;
|
|
8
8
|
};
|
|
9
9
|
export declare class Group extends TungstenSimpleComponent<GroupProps> {
|
|
10
|
-
content: () => string | number | boolean | import("../ContentNode.js").
|
|
10
|
+
content: () => string | number | boolean | import("../ContentNode.js").ContentNodeArray | import("../ContentNode.js").ContentNodeClassComponent | import("../ContentNode.js").ContentNodeFragment | import("../ContentNode.js").ContentNodeFunctionComponent | import("../ContentNode.js").ContentNodeHtml | null;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -9,6 +9,6 @@ export type MatchedRouteProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare class MatchedRoute extends TungstenSimpleInternalStoreComponent<MatchedRouteProps> {
|
|
11
11
|
init: () => void;
|
|
12
|
-
content: () =>
|
|
12
|
+
content: () => ContentNode;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=MatchedRoute.d.ts.map
|
|
@@ -21,9 +21,15 @@ export class MatchedRoute extends TungstenSimpleInternalStoreComponent {
|
|
|
21
21
|
return content(data, params, this.props, this.__instance.globalData, this.__instance.location);
|
|
22
22
|
} else {
|
|
23
23
|
if (ContentNodeIsComponent(content)) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
// the routes hold this node across renders and requests, so it is not written to
|
|
25
|
+
return {
|
|
26
|
+
...content,
|
|
27
|
+
[$routeParams]: params,
|
|
28
|
+
[$routeData]: data,
|
|
29
|
+
[$props]: {
|
|
30
|
+
...this.props
|
|
31
|
+
}
|
|
32
|
+
};
|
|
27
33
|
}
|
|
28
34
|
return content;
|
|
29
35
|
}
|
|
@@ -31,7 +31,28 @@ export type FluentRoutesToRoutes<T extends readonly FluentRoute[]> = {
|
|
|
31
31
|
} & {};
|
|
32
32
|
export declare function routes<const T extends readonly FluentRoute[]>(...frs: T): FluentRoutesToRoutes<T>;
|
|
33
33
|
export declare function routesWith<Rule extends object>(): <const T extends readonly (FluentRoute & Rule)[]>(...frs: T) => FluentRoutesToRoutes<T>;
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function routesListWith<Rule extends object>(): <const T extends readonly (Fluent404Route | FluentDefaultRoute | FluentErrorRoute | (NormalFluentRoute & Rule))[]>(routes: [...T]) => T;
|
|
35
|
+
export declare function makeRouteWith<Rule extends object>(): {
|
|
36
|
+
<P extends RouteKey, D, M extends Meta = FrameworkRouteFields>(r: {
|
|
37
|
+
path: P;
|
|
38
|
+
data: RouteDataFunction<ParamsFromPath<P>, D>;
|
|
39
|
+
content: RouteContentFunction<ParamsFromPath<P>, D>;
|
|
40
|
+
} & Rule & M): Expand<{
|
|
41
|
+
path: P;
|
|
42
|
+
} & Rule & M & {
|
|
43
|
+
data: RouteDataFunction<ParamsFromPath<P>, D>;
|
|
44
|
+
content: RouteContentFunction<ParamsFromPath<P>, D>;
|
|
45
|
+
}>;
|
|
46
|
+
<P extends RouteKey, const C extends ContentNode, M extends Meta = FrameworkRouteFields>(r: {
|
|
47
|
+
path: P;
|
|
48
|
+
data?: never;
|
|
49
|
+
content: C;
|
|
50
|
+
} & Rule & M): Expand<{
|
|
51
|
+
path: P;
|
|
52
|
+
} & Rule & M & {
|
|
53
|
+
content: C;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
35
56
|
type FrameworkRouteFields = Omit<Endpoint<any, any>, 'data' | 'content'>;
|
|
36
57
|
type Meta = Record<string, unknown> & FrameworkRouteFields;
|
|
37
58
|
declare const $invalidKeyError: unique symbol;
|
|
@@ -42,7 +63,7 @@ type MustNotIncludePathDataContent<T extends Record<string, unknown>> = 'path' e
|
|
|
42
63
|
} : 'content' extends keyof T ? {
|
|
43
64
|
[$invalidKeyError]: 'meta may not contain key \'content\'';
|
|
44
65
|
} : T;
|
|
45
|
-
export declare function chainedRoute<P extends RouteKey, M extends Meta =
|
|
66
|
+
export declare function chainedRoute<P extends RouteKey, M extends Meta = FrameworkRouteFields>(path: P, meta?: M & MustNotIncludePathDataContent<M>): {
|
|
46
67
|
meta<M2 extends Meta>(meta: M2 & MustNotIncludePathDataContent<M2>): {
|
|
47
68
|
data<D>(dataFunc: RouteDataFunction<ParamsFromPath<P>, D>): {
|
|
48
69
|
content<C extends RouteContentFunction<ParamsFromPath<P>, D> | ContentNode>(content: C): Expand<{
|
|
@@ -72,8 +93,7 @@ export declare function chainedRoute<P extends RouteKey, M extends Meta = {}>(pa
|
|
|
72
93
|
content: C;
|
|
73
94
|
}>;
|
|
74
95
|
};
|
|
75
|
-
export declare function route<P extends RouteKey, D, M extends Meta =
|
|
76
|
-
r: {
|
|
96
|
+
export declare function route<P extends RouteKey, D, M extends Meta = FrameworkRouteFields>(r: {
|
|
77
97
|
path: P;
|
|
78
98
|
data: RouteDataFunction<ParamsFromPath<P>, D>;
|
|
79
99
|
content: RouteContentFunction<ParamsFromPath<P>, D>;
|
|
@@ -83,8 +103,7 @@ r: {
|
|
|
83
103
|
data: RouteDataFunction<ParamsFromPath<P>, D>;
|
|
84
104
|
content: RouteContentFunction<ParamsFromPath<P>, D>;
|
|
85
105
|
}>;
|
|
86
|
-
export declare function route<P extends RouteKey, const C extends ContentNode, M extends Meta =
|
|
87
|
-
r: {
|
|
106
|
+
export declare function route<P extends RouteKey, const C extends ContentNode, M extends Meta = FrameworkRouteFields>(r: {
|
|
88
107
|
path: P;
|
|
89
108
|
data?: never;
|
|
90
109
|
content: C;
|
|
@@ -93,8 +112,8 @@ r: {
|
|
|
93
112
|
} & M & {
|
|
94
113
|
content: C;
|
|
95
114
|
}>;
|
|
96
|
-
export declare function defaultRoute(r:
|
|
97
|
-
export declare function _404Route(r:
|
|
98
|
-
export declare function errorRoute(r:
|
|
115
|
+
export declare function defaultRoute<const R extends FluentDefaultRoute>(r: R): R;
|
|
116
|
+
export declare function _404Route<const R extends Fluent404Route>(r: R): R;
|
|
117
|
+
export declare function errorRoute<const R extends FluentErrorRoute>(r: R): R;
|
|
99
118
|
export {};
|
|
100
119
|
//# sourceMappingURL=builder.d.ts.map
|
package/dist/routing/builder.js
CHANGED
|
@@ -28,11 +28,18 @@ export function routesWith() {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
// the array routes form, as given: routesFromArray() keys it and finds a path given twice
|
|
31
|
-
export function
|
|
32
|
-
return function
|
|
31
|
+
export function routesListWith() {
|
|
32
|
+
return function routesList(routes) {
|
|
33
33
|
return routes;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
+
// route(), with the rule checked on each route rather than on the whole list
|
|
37
|
+
export function makeRouteWith() {
|
|
38
|
+
function route(r) {
|
|
39
|
+
return r;
|
|
40
|
+
}
|
|
41
|
+
return route;
|
|
42
|
+
}
|
|
36
43
|
// export function routeLegacy<P extends RouteKey>(path: P) {
|
|
37
44
|
// const r: { path: P } = { path }
|
|
38
45
|
// return {
|
|
@@ -3,9 +3,10 @@ import type { RedirectCode } from './RedirectCode.js';
|
|
|
3
3
|
import type { RouteKey } from './RouteTypes.js';
|
|
4
4
|
export type Redirection = {
|
|
5
5
|
route: RouteKey;
|
|
6
|
+
code?: RedirectCode | undefined;
|
|
6
7
|
} | {
|
|
7
8
|
url: string;
|
|
8
|
-
code?: RedirectCode;
|
|
9
|
+
code?: RedirectCode | undefined;
|
|
9
10
|
};
|
|
10
|
-
export declare function redirectOf(matched: MatchedRouteInfo): Redirection | undefined;
|
|
11
|
+
export declare function redirectOf(matched: MatchedRouteInfo, allRoutesData?: unknown): Redirection | undefined;
|
|
11
12
|
//# sourceMappingURL=redirectOf.d.ts.map
|
|
@@ -4,29 +4,36 @@ import { ContentNodeIsClassComponent } from '../ContentNode.js';
|
|
|
4
4
|
import { $props, $type } from '../contentNodeSymbols.js';
|
|
5
5
|
import { RoutingRedirect } from './RoutingRedirect.js';
|
|
6
6
|
import { WebRedirect } from './WebRedirect.js';
|
|
7
|
-
export function redirectOf(matched) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export function redirectOf(matched, allRoutesData) {
|
|
8
|
+
return dataRedirect(allRoutesData) ?? dataRedirect(matched.data) ?? contentRedirect(matched);
|
|
9
|
+
}
|
|
10
|
+
const dataRedirect = data => {
|
|
11
11
|
if (data instanceof RoutingRedirect) return {
|
|
12
|
-
route: data.to
|
|
12
|
+
route: data.to,
|
|
13
|
+
code: data.code
|
|
13
14
|
};
|
|
14
15
|
if (data instanceof WebRedirect) return {
|
|
15
16
|
url: data.to,
|
|
16
17
|
code: data.code
|
|
17
18
|
};
|
|
19
|
+
return undefined;
|
|
20
|
+
};
|
|
21
|
+
const contentRedirect = matched => {
|
|
18
22
|
const content = matched.content;
|
|
19
23
|
if (typeof content === 'function' || !ContentNodeIsClassComponent(content)) return undefined;
|
|
20
24
|
const type = content[$type];
|
|
25
|
+
const props = content[$props]; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
21
26
|
if (type === RouteRedirectComponent || type.prototype instanceof RouteRedirectComponent) {
|
|
22
27
|
return {
|
|
23
|
-
route:
|
|
28
|
+
route: props.to,
|
|
29
|
+
code: props.code
|
|
24
30
|
}; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
25
31
|
}
|
|
26
32
|
if (type === WebRedirectComponent || type.prototype instanceof WebRedirectComponent) {
|
|
27
33
|
return {
|
|
28
|
-
url:
|
|
29
|
-
|
|
34
|
+
url: props.to,
|
|
35
|
+
code: props.code
|
|
36
|
+
};
|
|
30
37
|
}
|
|
31
38
|
return undefined;
|
|
32
|
-
}
|
|
39
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { BrandedContext, BrandedGlobalData, BrandedNetworkedData } from '../Brands.js';
|
|
2
2
|
import type { ReqRes } from '../ReqRes.js';
|
|
3
3
|
import type { Context } from '../context/registerContext.js';
|
|
4
|
+
import type { DataRedirect } from './DataRedirect.js';
|
|
4
5
|
import type { NetworkedData } from './routingRegistry.js';
|
|
5
6
|
import type { Serializable } from './Serializable.js';
|
|
6
7
|
import type { Fixed } from './registrationTypes.js';
|
|
7
8
|
export interface GlobalData {
|
|
8
9
|
}
|
|
9
|
-
export type GlobalDataFunction<C = Context, NS = NetworkedData, G extends object = GlobalData> = (reqRes: ReqRes | null, context: C, networkedStore: NS) => Promise<G>;
|
|
10
|
-
export type BrandedGlobalDataFunction = (reqRes: ReqRes | null, context: BrandedContext, networkedStore: BrandedNetworkedData) => Promise<BrandedGlobalData>;
|
|
10
|
+
export type GlobalDataFunction<C = Context, NS = NetworkedData, G extends object = GlobalData> = (reqRes: ReqRes | null, context: C, networkedStore: NS, location: string) => Promise<G | DataRedirect>;
|
|
11
|
+
export type BrandedGlobalDataFunction = (reqRes: ReqRes | null, context: BrandedContext, networkedStore: BrandedNetworkedData, location: string) => Promise<BrandedGlobalData>;
|
|
11
12
|
export declare const globalDataFunc: {
|
|
12
13
|
value: BrandedGlobalDataFunction | undefined;
|
|
13
14
|
};
|
|
14
|
-
export declare function registerGlobalData<G extends object>(func: GlobalDataFunction<Context, NetworkedData, G> & ((reqRes: ReqRes | null, context: Context, networkedData: NetworkedData) => Promise<Serializable<NoInfer<G
|
|
15
|
+
export declare function registerGlobalData<G extends object>(func: GlobalDataFunction<Context, NetworkedData, G> & ((reqRes: ReqRes | null, context: Context, networkedData: NetworkedData, location: string) => Promise<Serializable<NoInfer<G>> | DataRedirect>)): Fixed<{
|
|
15
16
|
globalData: G;
|
|
16
17
|
}>;
|
|
17
18
|
//# sourceMappingURL=registerGlobalData.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReqRes } from '../ReqRes.js';
|
|
2
2
|
import type { RoutesWithSettings } from './Routes.js';
|
|
3
3
|
import type { GlobalDataFunction } from './registerGlobalData.js';
|
|
4
|
+
import type { DataRedirect } from './DataRedirect.js';
|
|
4
5
|
import type { AppPath } from '../components/makeTypedLink.js';
|
|
5
6
|
import type { Serializable } from './Serializable.js';
|
|
6
7
|
import type { KeyedRoutes } from './routesArray.js';
|
|
@@ -32,5 +33,5 @@ export type ContextType<R extends Fixed<{
|
|
|
32
33
|
export type NetworkedDataType<R extends Fixed<{
|
|
33
34
|
networkedStore: unknown;
|
|
34
35
|
}>> = R[typeof $routing]['networkedStore'];
|
|
35
|
-
export declare function registerRouting<RsS extends RoutesWithSettings<G>, G extends object = object, ContextSchema extends object | undefined = undefined, NetworkedStoreSchema extends object | undefined = undefined>(routesFunction: RoutesFunctionGeneric<G, ContextSchema, NetworkedStoreSchema, RsS>, globalDataFunction: GlobalDataFunction<NoInfer<ContextSchema>, NoInfer<NetworkedStoreSchema>, G> & ((reqRes: ReqRes | null, context: NoInfer<ContextSchema>, store: NoInfer<NetworkedStoreSchema
|
|
36
|
+
export declare function registerRouting<RsS extends RoutesWithSettings<G>, G extends object = object, ContextSchema extends object | undefined = undefined, NetworkedStoreSchema extends object | undefined = undefined>(routesFunction: RoutesFunctionGeneric<G, ContextSchema, NetworkedStoreSchema, RsS>, globalDataFunction: GlobalDataFunction<NoInfer<ContextSchema>, NoInfer<NetworkedStoreSchema>, G> & ((reqRes: ReqRes | null, context: NoInfer<ContextSchema>, store: NoInfer<NetworkedStoreSchema>, location: string) => Promise<Serializable<NoInfer<G>> | DataRedirect>), context?: ContextInitializer<ContextSchema>, networkedStoreSchema?: NetworkedStoreInitializer<NetworkedStoreSchema> & SerializableStore<NoInfer<NetworkedStoreSchema>>): Routing<RsS, G, ContextSchema, NetworkedStoreSchema>;
|
|
36
37
|
//# sourceMappingURL=registerRouting.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { TungstenError } from '../TungstenError.js';
|
|
2
2
|
import { routesLocationParts } from '../routesLocationParts.js';
|
|
3
3
|
import { registeredRouting } from './routingRegistry.js';
|
|
4
|
+
// an export we know nothing about; past this shape check it's taken as AppRoutes
|
|
5
|
+
function IsAppRoutesShaped(value) {
|
|
6
|
+
if (typeof value === 'function' || Array.isArray(value)) return true;
|
|
7
|
+
return typeof value === 'object' && value !== null && Object.keys(value).some(key => key.startsWith('/'));
|
|
8
|
+
}
|
|
4
9
|
// routes come from registerRouting() or from routesLocation's named export. The module has already
|
|
5
10
|
// been imported by the caller, which is what runs the registerRouting() call
|
|
6
11
|
export function resolveAppRoutes(module, routesLocation, mode) {
|
|
@@ -16,7 +21,11 @@ export function resolveAppRoutes(module, routesLocation, mode) {
|
|
|
16
21
|
}
|
|
17
22
|
if (registered !== undefined) return registered;
|
|
18
23
|
if (isExported) {
|
|
19
|
-
|
|
24
|
+
const routes = module[routeExport];
|
|
25
|
+
if (!IsAppRoutesShaped(routes)) {
|
|
26
|
+
throw new TungstenError(`${routesFile}'s export ${routeExport} is not routes: expected a routes function,` + ` an array of routes, or an object keyed by paths ('/...').`);
|
|
27
|
+
}
|
|
28
|
+
return routes;
|
|
20
29
|
}
|
|
21
30
|
if (routeExport === undefined) {
|
|
22
31
|
throw new TungstenError(`No routes. config.routesLocation names the file ${routesFile} without an export name,` + ` so routes must come from registerRouting(), but ${routesFile} did not call it.`);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ErrorRouteType } from './ErrorRouteType.js';
|
|
2
2
|
import type { Routes, RoutesWithSettings } from './Routes.js';
|
|
3
3
|
import type { Endpoint, Path } from './RouteTypes.js';
|
|
4
|
+
import type { Mutual } from '../../types/helpers.js';
|
|
4
5
|
export type RouteEntry<G extends object | undefined = object> = (Endpoint<any, any, G> & {
|
|
5
6
|
path: Path | 'default' | '404';
|
|
6
7
|
}) | (ErrorRouteType & {
|
|
@@ -12,10 +13,10 @@ export declare const toRoutes: <Rs extends object>(routes: Rs | RoutesArray<any>
|
|
|
12
13
|
export type KeyedRoutes<Rs> = Rs extends RoutesArray<any> ? {
|
|
13
14
|
[Entry in Rs[number] as Entry['path']]: Omit<Entry, 'path'>;
|
|
14
15
|
} : Rs;
|
|
15
|
-
type
|
|
16
|
+
type Found<P, Seen> = Seen extends unknown ? (Mutual<P, Seen> extends true ? P : never) : never;
|
|
16
17
|
type DuplicatePath<T, Seen = never> = T extends readonly [infer H, ...infer Rest] ? H extends {
|
|
17
18
|
path: infer P extends PropertyKey;
|
|
18
|
-
} ?
|
|
19
|
+
} ? [Found<P, Seen>] extends [never] ? DuplicatePath<Rest, Seen | P> : P : DuplicatePath<Rest, Seen> : never;
|
|
19
20
|
type ReturnedRoutes<R> = R extends (...args: never[]) => infer Rs ? Rs : R;
|
|
20
21
|
type GivenTwice<P extends string> = `The routes give the path '${P}' twice. Each path can have one route.`;
|
|
21
22
|
export type NoDuplicatePaths<R> = [DuplicatePath<ReturnedRoutes<R>>] extends [never] ? unknown : GivenTwice<DuplicatePath<ReturnedRoutes<R>> & string>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ReqRes, ReqResOrNull } from '../ReqRes.js';
|
|
2
2
|
import type { RoutesWithSettings } from './Routes.js';
|
|
3
3
|
import type { ContextClasses } from '../context/registerContext.js';
|
|
4
|
+
import type { DataRedirect } from './DataRedirect.js';
|
|
4
5
|
import type { Routing, RoutesFunctionGeneric, Serializable } from './registerRouting.js';
|
|
5
6
|
import type { Fixed } from './registrationTypes.js';
|
|
6
7
|
type NetworkedStoreClass<C, ND> = (new (reqRes: ReqResOrNull, context: C) => ND) & (new (reqRes: ReqResOrNull, context: C) => Serializable<NoInfer<ND>>);
|
|
7
|
-
type GetGlobalData<C, ND, G extends object> = ((reqRes: ReqRes | null, context: C, networkedData: ND) => Promise<G>) & ((reqRes: ReqRes | null, context: C, networkedData: ND) => Promise<Serializable<NoInfer<G
|
|
8
|
+
type GetGlobalData<C, ND, G extends object> = ((reqRes: ReqRes | null, context: C, networkedData: ND, location: string) => Promise<G | DataRedirect>) & ((reqRes: ReqRes | null, context: C, networkedData: ND, location: string) => Promise<Serializable<NoInfer<G>> | DataRedirect>);
|
|
8
9
|
type RoutesMethod<C, ND, G extends object> = {
|
|
9
10
|
routes: <Rs extends RoutesWithSettings<G>>(getRoutes: RoutesFunctionGeneric<G, C, ND, Rs>) => Routing<Rs, G, C, ND>;
|
|
10
11
|
};
|
|
@@ -30,18 +30,10 @@ export async function staticGen(framework) {
|
|
|
30
30
|
// only the paths are read here, with no request - nothing reads the networked store
|
|
31
31
|
const networkedData = {};
|
|
32
32
|
// ! unsure about this
|
|
33
|
-
// the routes proper, without RoutesSettings, whose symbol keys iteration never meets
|
|
34
|
-
|
|
35
|
-
'/': {
|
|
36
|
-
content: 'Code for static rendering SPA TBC'
|
|
37
|
-
},
|
|
38
|
-
404: {
|
|
39
|
-
content: '404 TBC'
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// only the paths are read here, with no request; each page is then fetched from the prod
|
|
33
|
+
// the routes proper, without RoutesSettings, whose symbol keys iteration never meets.
|
|
34
|
+
// Only the paths are read here, with no request; each page is then fetched from the prod
|
|
43
35
|
// server, whose request makes its context
|
|
44
|
-
|
|
36
|
+
const appRoutes = toRoutes(typeof getRoutes === 'function' ? getRoutes(null, {}, networkedData) : getRoutes, false);
|
|
45
37
|
const buildLocation = framework.compilationInfo.location;
|
|
46
38
|
const server = await framework.createProdServer();
|
|
47
39
|
const serverLocation = await server.start(null, true); // port, mute
|