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,38 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
export type StandardSchemaPathSegment = {
|
|
3
|
+
readonly key: PropertyKey;
|
|
4
|
+
};
|
|
5
|
+
export type StandardSchemaIssue = {
|
|
6
|
+
readonly message: string;
|
|
7
|
+
readonly path?: readonly (PropertyKey | StandardSchemaPathSegment)[] | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type StandardSchemaResult<Output extends object> = {
|
|
10
|
+
readonly value: Output;
|
|
11
|
+
readonly issues?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
readonly issues: readonly StandardSchemaIssue[];
|
|
14
|
+
};
|
|
15
|
+
export type StandardSchema<Output extends object> = {
|
|
16
|
+
readonly '~standard': {
|
|
17
|
+
readonly version: 1;
|
|
18
|
+
readonly vendor: string;
|
|
19
|
+
readonly validate: (value: unknown) => StandardSchemaResult<Output> | Promise<StandardSchemaResult<Output>>;
|
|
20
|
+
readonly types?: {
|
|
21
|
+
readonly input: unknown;
|
|
22
|
+
readonly output: Output;
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type Validation<Output extends object> = {
|
|
27
|
+
success: true;
|
|
28
|
+
value: Output;
|
|
29
|
+
} | {
|
|
30
|
+
success: false;
|
|
31
|
+
problems: string;
|
|
32
|
+
};
|
|
33
|
+
export declare function validate: exact (<Output extends object>(schema: StandardSchema<Output>, value: unknown) => Promise<Validation<Output>>);
|
|
34
|
+
export declare function formatIssues: exact ((issues: readonly StandardSchemaIssue[]) => string);
|
|
35
|
+
export declare function checkIsObject: exact ((location: string, name: string, value: unknown) => void);
|
|
36
|
+
export declare function checkIsStandardSchema: exact ((location: string, name: string, schema: unknown) => void);
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=standardSchema.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monotonic clock for state writes, so a component can ask "has anything inside this
|
|
3
|
+
* object changed since I last rendered?".
|
|
4
|
+
*
|
|
5
|
+
* Needed because deep state is mutated in place: when a child's prop is the same array
|
|
6
|
+
* the parent already had, comparing before against after tells you nothing -- both sides
|
|
7
|
+
* are the one mutated object. Each proxy stamps the object it mutated with the current
|
|
8
|
+
* tick, and the props comparison walks down looking for a stamp newer than the child's
|
|
9
|
+
* last render.
|
|
10
|
+
*
|
|
11
|
+
* The stamp is stored under $changed on the object itself rather than in a side table
|
|
12
|
+
* keyed by identity, so it can be read straight back through the proxy -- the raw target
|
|
13
|
+
* is not always the object a caller holds, since adoption copies state shallowly.
|
|
14
|
+
* Symbols are invisible to Object.keys and JSON, so the stamp does not leak into user data.
|
|
15
|
+
*
|
|
16
|
+
* Stamps are deliberately not propagated to ancestors: a write would then have to touch
|
|
17
|
+
* every object above it. The cost is moved to update time, where the walk can stop at the
|
|
18
|
+
* first changed node it finds.
|
|
19
|
+
*
|
|
20
|
+
* No imports here on purpose -- the proxy handlers depend on this, so it must stay a leaf.
|
|
21
|
+
*/
|
|
22
|
+
// @tightscript-object-permissions
|
|
23
|
+
export declare const $changed: unique symbol;
|
|
24
|
+
/**
|
|
25
|
+
* Re-reads the global. Called once per update rather than per node: the global lookup is
|
|
26
|
+
* cheap in isolation but showed up as 12% of a 50k-row update when it ran for every dom
|
|
27
|
+
* node, which is the instrumentation distorting what it measures. Toggling __TW_TRACE from
|
|
28
|
+
* a console therefore takes effect on the next update rather than immediately.
|
|
29
|
+
*/
|
|
30
|
+
export declare function refreshTracing: exact (() => boolean);
|
|
31
|
+
export declare function tracing: exact (() => boolean);
|
|
32
|
+
/**
|
|
33
|
+
* Each line carries the time since page load and the time since the previous traced event,
|
|
34
|
+
* so a stall shows up as a large `+delta` on the line that follows it -- no need to diff
|
|
35
|
+
* timestamps by hand. The delta is reset whenever tracing is switched back on.
|
|
36
|
+
*/
|
|
37
|
+
export declare function trace: exact ((...args: unknown[]) => void);
|
|
38
|
+
/** current tick; read when recording a render */
|
|
39
|
+
export declare function stateClock: exact (() => number);
|
|
40
|
+
/** called by the state proxies whenever the given object is mutated */
|
|
41
|
+
export declare function markChanged: exact ((target: object) => void);
|
|
42
|
+
/** tick at which this object was last mutated; 0 means never */
|
|
43
|
+
export declare function changedAt: exact ((value: object) => number);
|
|
44
|
+
/** record that a component has rendered with the state as it currently stands */
|
|
45
|
+
export declare function markRendered: exact ((element: object) => void);
|
|
46
|
+
/** tick at which this component last rendered, or undefined if it never has */
|
|
47
|
+
export declare function renderedAt: exact ((element: object) => number | undefined);
|
|
48
|
+
//# sourceMappingURL=stateTracking.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { RouteKey } from '../routing/RouteTypes.js';
|
|
3
|
+
import type { ContentNode } from '../ContentNode.js';
|
|
4
|
+
export type RouteDefinition = {
|
|
5
|
+
path: RouteKey;
|
|
6
|
+
content: ContentNode | string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=RouteDefinition.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { AppRoutes } from '../routing/AppRoutes.js';
|
|
3
|
+
import type { FrameworkConfigComplete } from '../FrameworkConfig.js';
|
|
4
|
+
import type { CompilationInfo } from '../build/CompilationInfo.js';
|
|
5
|
+
export declare function getAppRoutes: exact ((compilationInfo: CompilationInfo, config: FrameworkConfigComplete, quiet?: boolean) => Promise<AppRoutes<any>>);
|
|
6
|
+
//# sourceMappingURL=getAppRoutes.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { SiteBasePath as SiteBasePath } from '../render/HeadData.js';
|
|
3
|
+
export declare function pathToFileName: exact ((path: string) => string);
|
|
4
|
+
export declare function pathToLink: exact ((path: string, siteBasePath: SiteBasePath) => string);
|
|
5
|
+
export declare function findLinks: exact ((content: string) => string[]);
|
|
6
|
+
export declare function rewriteLinks: exact ((content: string, rewriteMap: Record<string, string>) => string);
|
|
7
|
+
//# sourceMappingURL=staticGenFunctions.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { CssNames } from '../CssNames.js';
|
|
3
|
+
import { type ContentNode } from '../ContentNode.js';
|
|
4
|
+
export declare function styleContentSxy: exact ((content: ContentNode, styles: CssNames) => ContentNode);
|
|
5
|
+
//# sourceMappingURL=styleContentSxy.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { CssNames } from '../CssNames.js';
|
|
3
|
+
export type StyleUsage = {
|
|
4
|
+
styles: CssNames;
|
|
5
|
+
usedTags: Set<string>;
|
|
6
|
+
usedClasses: Set<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare function getStyleUsage: exact ((styles: CssNames) => r StyleUsage);
|
|
9
|
+
export declare function reportUnusedStyles: exact (() => rw Promise<void>);
|
|
10
|
+
//# sourceMappingURL=unusedStyles.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { ExportsVar, ModuleVar, RequireFunc } from '../CjsTypes.js';
|
|
3
|
+
export declare const deps: exact rw never[];
|
|
4
|
+
export default function cjsModule: exact ((module: ModuleVar, exports: ExportsVar, require: RequireFunc) => void);
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { ContentNode } from '../ContentNode.js';
|
|
3
|
+
export type ContentToStringOptions = {
|
|
4
|
+
/** A resolved component's passed children in full, where otherwise children={...} */
|
|
5
|
+
children?: boolean;
|
|
6
|
+
/** Fragments as `<>`…`</>`, where otherwise their content stands in their place */
|
|
7
|
+
fragments?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The tree as JSX. A component host() resolved has its output under it, marked ⤵, and the children
|
|
11
|
+
* it was passed as a prop; one unresolved holds its passed children, as written.
|
|
12
|
+
*/
|
|
13
|
+
export declare function contentToString: exact ((content: ContentNode, options?: ContentToStringOptions) => string);
|
|
14
|
+
//# sourceMappingURL=contentToString.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { ConstructPackage, TungstenBaseComponent, TungstenBaseComponentType, TungstenComponentPropsBase } from '../Components.jsx';
|
|
3
|
+
import type { TrueStore } from '../Store/makeStore.js';
|
|
4
|
+
import type { Endpoint, Path } from '../routing/RouteTypes.js';
|
|
5
|
+
import type { ErrorRouteType } from '../routing/ErrorRouteType.js';
|
|
6
|
+
import type { RoutesArray } from '../routing/routesArray.js';
|
|
7
|
+
import type { ReqRes } from '../ReqRes.js';
|
|
8
|
+
import type { Context } from '../context/registerContext.js';
|
|
9
|
+
import type { NetworkedData } from '../routing/routingRegistry.js';
|
|
10
|
+
import { Instance } from '../Instance/Instance.js';
|
|
11
|
+
import { type MountedTungstenRoot } from '../update/integrateUpdateVdom.js';
|
|
12
|
+
import { UpdateScheduler } from '../update/UpdateScheduler.js';
|
|
13
|
+
export type ComponentProps<ComponentType extends TungstenBaseComponentType<any, any>> = InstanceType<ComponentType>['props'];
|
|
14
|
+
export type TestStoreRegistration<Schema extends object> = {
|
|
15
|
+
getStore: (stores: TrueStore<unknown>[]) => TrueStore<Schema>;
|
|
16
|
+
};
|
|
17
|
+
export type TestStore<Schema extends object> = TrueStore<Schema>;
|
|
18
|
+
export type TestStoreOverride<Schema extends object = object> = {
|
|
19
|
+
registration: TestStoreRegistration<Schema>;
|
|
20
|
+
initialize: (store: TrueStore<Schema>) => void | Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export declare function testStore: exact (<Schema extends object>(registration: TestStoreRegistration<Schema>, initialize: (store: TestStore<Schema>) => void | Promise<void>) => TestStoreOverride<Schema>);
|
|
23
|
+
export type TestAppOptions<Props extends object> = {
|
|
24
|
+
document?: Document;
|
|
25
|
+
props?: Props;
|
|
26
|
+
container?: rw HTMLElement;
|
|
27
|
+
location?: string;
|
|
28
|
+
routeParams?: Record<string, string>;
|
|
29
|
+
routeData?: unknown;
|
|
30
|
+
globalData?: Record<string, unknown>;
|
|
31
|
+
stores?: readonly TestStoreOverride<any>[];
|
|
32
|
+
routes?: TestRoutes | RoutesArray | TestRoutesFunction;
|
|
33
|
+
fileVersions?: Record<string, string>;
|
|
34
|
+
context?: Context;
|
|
35
|
+
networkedData?: NetworkedData;
|
|
36
|
+
};
|
|
37
|
+
type TestRoutesFunction = {
|
|
38
|
+
routes(reqRes: ReqRes | null, context: Context): TestRoutes | RoutesArray;
|
|
39
|
+
}['routes'];
|
|
40
|
+
export type TestRoutes = {
|
|
41
|
+
[key in Path]: Endpoint<any, any>;
|
|
42
|
+
} & {
|
|
43
|
+
'404'?: Endpoint<any, any>;
|
|
44
|
+
'default'?: Endpoint<any, any>;
|
|
45
|
+
'error'?: ErrorRouteType;
|
|
46
|
+
};
|
|
47
|
+
export type TestApp<Component extends TungstenBaseComponent> = {
|
|
48
|
+
readonly document: Document;
|
|
49
|
+
readonly container: rw HTMLElement;
|
|
50
|
+
readonly component: rw Component;
|
|
51
|
+
resolved(): Promise<void>;
|
|
52
|
+
setProps(props: Component['props']): Promise<void>;
|
|
53
|
+
unmount(): Promise<void>;
|
|
54
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
55
|
+
};
|
|
56
|
+
export type CreateTestAppArgs<Props extends object> = object extends Props ? [options?: TestAppOptions<Props>] : keyof Props extends never ? [options?: TestAppOptions<Props>] : [options: TestAppOptions<Props> & {
|
|
57
|
+
props: Props;
|
|
58
|
+
}];
|
|
59
|
+
export declare class TestAppImplementation<Component extends TungstenBaseComponent> implements TestApp<Component> {
|
|
60
|
+
#private;
|
|
61
|
+
readonly document: Document;
|
|
62
|
+
readonly container: rw HTMLElement;
|
|
63
|
+
readonly component: rw Component;
|
|
64
|
+
constructor(document: Document, container: rw HTMLElement, component: rw Component, instance: Instance, scheduler: UpdateScheduler, root: MountedTungstenRoot<TungstenBaseComponentType<any, any>>, ownsContainer: boolean);
|
|
65
|
+
resolved: () => Promise<void>;
|
|
66
|
+
setProps: (props: Component['props']) => Promise<void>;
|
|
67
|
+
[Symbol.asyncDispose]: () => Promise<void>;
|
|
68
|
+
unmount: () => Promise<void>;
|
|
69
|
+
}
|
|
70
|
+
export declare function createTestApp: exact (<Props extends TungstenComponentPropsBase, Component extends TungstenBaseComponent<any, any>, RouteData = undefined>(RootComponent: new (pkg: ConstructPackage<Props, RouteData>) => Component, ...args: CreateTestAppArgs<Props>) => Promise<TestApp<Component>>);
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=createTestApp.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { ContentNode } from '../ContentNode.js';
|
|
3
|
+
type Kind = 'text' | 'interruptedText' | ElementKind | 'fragment' | 'className' | 'id' | 'children' | `prop:${string}` | 'elements';
|
|
4
|
+
type ElementKind = `html:${string}` | `component:${string}` | SelectKind;
|
|
5
|
+
type SelectKind = `select:${string}`;
|
|
6
|
+
type Test = (seen: unknown) => boolean;
|
|
7
|
+
type Failure = {
|
|
8
|
+
actual: unknown;
|
|
9
|
+
expected: unknown;
|
|
10
|
+
saw: string;
|
|
11
|
+
showDiff: boolean;
|
|
12
|
+
};
|
|
13
|
+
type TrackFn = (match: boolean) => boolean | void;
|
|
14
|
+
type DecideFn = (ofKind: number) => Failure | undefined;
|
|
15
|
+
type Requirement = () => [track: TrackFn, decide: DecideFn];
|
|
16
|
+
type Fact = [
|
|
17
|
+
Kind,
|
|
18
|
+
Test,
|
|
19
|
+
Requirement,
|
|
20
|
+
quantifier: string,
|
|
21
|
+
end: string,
|
|
22
|
+
spoken: string,
|
|
23
|
+
explain?: Explain | undefined
|
|
24
|
+
];
|
|
25
|
+
type Explain = (seen: unknown) => Outcome | undefined;
|
|
26
|
+
type Outcome = 'not content' | {
|
|
27
|
+
misses: Miss[];
|
|
28
|
+
met: BuiltFact[];
|
|
29
|
+
score: number;
|
|
30
|
+
};
|
|
31
|
+
type Miss = {
|
|
32
|
+
fact: BuiltFact;
|
|
33
|
+
failure: Failure;
|
|
34
|
+
sightings: Sighting[];
|
|
35
|
+
};
|
|
36
|
+
export type EnsureOptions = {
|
|
37
|
+
readable?: boolean;
|
|
38
|
+
color?: boolean;
|
|
39
|
+
};
|
|
40
|
+
type Props = Record<string, unknown> & {
|
|
41
|
+
children?: ContentNode;
|
|
42
|
+
};
|
|
43
|
+
type WithFn = (props: Props) => boolean;
|
|
44
|
+
declare const property: unique symbol;
|
|
45
|
+
type PropertyFact = Fact & {
|
|
46
|
+
readonly [property]: true;
|
|
47
|
+
};
|
|
48
|
+
type Made<Scope extends Fact | undefined, Own extends Fact> = [Scope] extends [Fact] ? Scope : Own;
|
|
49
|
+
type Quantifiers<E> = {
|
|
50
|
+
readonly no: E;
|
|
51
|
+
readonly none: E;
|
|
52
|
+
readonly one: E;
|
|
53
|
+
readonly two: E;
|
|
54
|
+
readonly three: E;
|
|
55
|
+
readonly count: (num: number) => E;
|
|
56
|
+
readonly a: E;
|
|
57
|
+
readonly an: E;
|
|
58
|
+
readonly some: E;
|
|
59
|
+
readonly all: E;
|
|
60
|
+
};
|
|
61
|
+
type StringEnd<F extends Fact> = ((text: string) => F) & {
|
|
62
|
+
contains: (substring: string) => F;
|
|
63
|
+
matches: (regex: RegExp) => F;
|
|
64
|
+
};
|
|
65
|
+
type ElementEnd<F extends Fact> = F & {
|
|
66
|
+
with: ((facts: PropertyFact[] | WithFn) => F) & Quantifiers<PropertyEnds<F>> & {
|
|
67
|
+
children: ((facts: Fact[]) => F) & Quantifiers<Ends<F>>;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
type PropEnd<F extends Fact> = F & {
|
|
71
|
+
is: (value: unknown) => F;
|
|
72
|
+
contains: (substring: string) => F;
|
|
73
|
+
matches: (regex: RegExp) => F;
|
|
74
|
+
exact: (value: unknown) => F;
|
|
75
|
+
subset: (shape: unknown) => F;
|
|
76
|
+
duck: (shape: unknown) => F;
|
|
77
|
+
content: () => F & {
|
|
78
|
+
with: ((facts: Fact[]) => F) & Quantifiers<Ends<F>>;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
type Ends<Scope extends Fact | undefined = undefined> = {
|
|
82
|
+
text: StringEnd<Made<Scope, Fact>>;
|
|
83
|
+
textCi: StringEnd<Made<Scope, Fact>>;
|
|
84
|
+
interruptedText: StringEnd<Made<Scope, PropertyFact>>;
|
|
85
|
+
html: (tag: string) => ElementEnd<Made<Scope, Fact>>;
|
|
86
|
+
component: (name: string) => ElementEnd<Made<Scope, Fact>>;
|
|
87
|
+
select: (selector: string) => ElementEnd<Made<Scope, Fact>>;
|
|
88
|
+
fragment: () => Made<Scope, Fact>;
|
|
89
|
+
className: (className?: string) => Made<Scope, PropertyFact>;
|
|
90
|
+
id: (id?: string) => Made<Scope, PropertyFact>;
|
|
91
|
+
prop: (prop: string) => PropEnd<Made<Scope, PropertyFact>>;
|
|
92
|
+
};
|
|
93
|
+
declare const propertyEnds: readonly ['interruptedText', 'className', 'id', 'prop'];
|
|
94
|
+
type PropertyEnds<F extends Fact> = Pick<Ends<F>, typeof propertyEnds[number]>;
|
|
95
|
+
declare const _ensure: typeof ensure & r Quantifiers<r Ends<undefined>>;
|
|
96
|
+
export { _ensure as ensure };
|
|
97
|
+
export declare const { no, none, one, two, three, a, an, some, all, count }: typeof ensure & r Quantifiers<r Ends<undefined>>;
|
|
98
|
+
export declare class EnsureError extends Error {
|
|
99
|
+
actual: unknown;
|
|
100
|
+
expected: unknown;
|
|
101
|
+
operator: string;
|
|
102
|
+
showDiff: boolean;
|
|
103
|
+
name: string;
|
|
104
|
+
constructor(message: string, actual: unknown, expected: unknown, operator: string, showDiff: boolean);
|
|
105
|
+
}
|
|
106
|
+
declare function ensure: exact ((tree: ContentNode, facts: Fact[], options?: EnsureOptions) => void);
|
|
107
|
+
export declare const children: ((facts: Fact[]) => PropertyFact) & r Quantifiers<r Ends<PropertyFact>>;
|
|
108
|
+
type BuiltFact = {
|
|
109
|
+
kind: Kind;
|
|
110
|
+
test: Test;
|
|
111
|
+
track: TrackFn;
|
|
112
|
+
decide: DecideFn;
|
|
113
|
+
explain: Explain | undefined;
|
|
114
|
+
chained: string;
|
|
115
|
+
spoken: string;
|
|
116
|
+
operator: string;
|
|
117
|
+
};
|
|
118
|
+
type Sighting = ['text', string] | [Exclude<Kind, 'text'>, unknown];
|
|
119
|
+
export declare const cssSelectBundle: string;
|
|
120
|
+
//# sourceMappingURL=ensure.d.ts.map
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// @tightscript-object-permissions
|
|
2
|
+
import type { ContentNode, ContentNodeElement } from '../ContentNode.js';
|
|
3
|
+
import type { InternalStoreSchema } from '../Store/InternalStoreSchema.js';
|
|
4
|
+
import type { TrueStore } from '../Store/makeStore.js';
|
|
5
|
+
import type { Routes } from '../routing/Routes.js';
|
|
6
|
+
import type { RoutesFunction } from '../routing/RoutesFunction.js';
|
|
7
|
+
import type { Path, RouteKey } from '../routing/RouteTypes.js';
|
|
8
|
+
import { type ComponentStore, type TungstenComponent, type TungstenComponentClass, type TungstenComponentPropsBase, type TungstenStatefulComponent, TungstenBaseComponent, TungstenSimpleComponent } from '../Components.jsx';
|
|
9
|
+
type StateOf<Component> = Component extends {
|
|
10
|
+
state?: infer State;
|
|
11
|
+
} ? State : never;
|
|
12
|
+
type ContentOf<Component extends TungstenBaseComponent<any, any>> = NonNullable<Component['content']> extends (...args: any[]) => infer Result ? Result : ContentNode | Promise<ContentNode>;
|
|
13
|
+
type FrameworkMember = keyof TungstenSimpleComponent<any, any> | keyof TungstenComponent<any, any, any> | keyof TungstenStatefulComponent<any, any, any>;
|
|
14
|
+
type ReservedMember = keyof HostedCore<TungstenBaseComponent<any, any>>;
|
|
15
|
+
export type ComponentApi<Component extends TungstenBaseComponent<any, any>> = {
|
|
16
|
+
[Key in keyof Component as Key extends FrameworkMember | ReservedMember ? never : NonNullable<Component[Key]> extends (...args: any[]) => any ? Key : never]: Component[Key];
|
|
17
|
+
};
|
|
18
|
+
export type Navigation = {
|
|
19
|
+
kind: 'goto' | 'redirect';
|
|
20
|
+
to: string;
|
|
21
|
+
};
|
|
22
|
+
export type StateSetter<Component extends TungstenBaseComponent<any, any>> = (state: StateOf<Component>) => StateOf<Component> | void;
|
|
23
|
+
type HostedCore<Component extends TungstenBaseComponent<any, any>, Content = ContentOf<Component>> = {
|
|
24
|
+
readonly component: Component;
|
|
25
|
+
readonly props: Component['props'];
|
|
26
|
+
readonly state: StateOf<Component>;
|
|
27
|
+
readonly title: string | undefined;
|
|
28
|
+
readonly navigations: readonly Navigation[];
|
|
29
|
+
content: () => Content;
|
|
30
|
+
updateProps: (props: Component['props']) => Promise<Awaited<Content>>;
|
|
31
|
+
updateState: (setter: StateSetter<Component>) => Promise<Awaited<Content>>;
|
|
32
|
+
};
|
|
33
|
+
export type Hosted<Component extends TungstenBaseComponent<any, any>> = HostedCore<Component> & ComponentApi<Component>;
|
|
34
|
+
export type HostedResolved<Component extends TungstenBaseComponent<any, any>> = HostedCore<Component, Promise<ContentNode>> & ComponentApi<Component>;
|
|
35
|
+
type StoreSchemaOf<Component> = Component extends {
|
|
36
|
+
store: ComponentStore<infer Schema extends object>;
|
|
37
|
+
} ? Schema : never;
|
|
38
|
+
type StoreOf<Component> = [StoreSchemaOf<Component>] extends [never] ? never : [StoreSchemaOf<Component>] extends [InternalStoreSchema] ? never : StoreSchemaOf<Component>;
|
|
39
|
+
export type HostedRoute = {
|
|
40
|
+
key: RouteKey | null;
|
|
41
|
+
params?: Record<string, string>;
|
|
42
|
+
data?: unknown;
|
|
43
|
+
};
|
|
44
|
+
export type RouteOptions = {
|
|
45
|
+
routing: true;
|
|
46
|
+
location: Path;
|
|
47
|
+
routes: Routes<any> | RoutesFunction<any>;
|
|
48
|
+
matchedRoute?: never;
|
|
49
|
+
} | {
|
|
50
|
+
routing?: false;
|
|
51
|
+
location?: Path;
|
|
52
|
+
routes?: Routes<any>;
|
|
53
|
+
matchedRoute?: HostedRoute;
|
|
54
|
+
};
|
|
55
|
+
type NoStore = {
|
|
56
|
+
store?: never;
|
|
57
|
+
partialStore?: never;
|
|
58
|
+
storeData?: never;
|
|
59
|
+
partialStoreData?: never;
|
|
60
|
+
};
|
|
61
|
+
type StoreOptionsFor<Schema extends object> = {
|
|
62
|
+
/** A real store (makeStore), used as-is: its cells keep state, so one can be shared between hosts. */
|
|
63
|
+
store: TrueStore<Schema>;
|
|
64
|
+
partialStore?: never;
|
|
65
|
+
storeData?: never;
|
|
66
|
+
partialStoreData?: never;
|
|
67
|
+
} | {
|
|
68
|
+
/** Some real cells. A key not given is missing, not defaulted: reading it throws, naming it. */
|
|
69
|
+
partialStore: Partial<TrueStore<Schema>>;
|
|
70
|
+
store?: never;
|
|
71
|
+
storeData?: never;
|
|
72
|
+
partialStoreData?: never;
|
|
73
|
+
} | {
|
|
74
|
+
/** Values for every key, each wrapped in a cell of its own. */
|
|
75
|
+
storeData: Schema;
|
|
76
|
+
store?: never;
|
|
77
|
+
partialStore?: never;
|
|
78
|
+
partialStoreData?: never;
|
|
79
|
+
} | {
|
|
80
|
+
/** Values for some keys. A key not given is missing, not defaulted: reading it throws, naming it. */
|
|
81
|
+
partialStoreData: Partial<Schema>;
|
|
82
|
+
store?: never;
|
|
83
|
+
partialStore?: never;
|
|
84
|
+
storeData?: never;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Resolve the content through every component in the tree (the default). false: the hosted
|
|
88
|
+
* component's own content alone, its child components unexpanded.
|
|
89
|
+
*/
|
|
90
|
+
export type ResolveOption = {
|
|
91
|
+
resolve?: boolean;
|
|
92
|
+
};
|
|
93
|
+
export type Resolve = {
|
|
94
|
+
resolve?: true;
|
|
95
|
+
};
|
|
96
|
+
export type DontResolve = {
|
|
97
|
+
resolve: false;
|
|
98
|
+
};
|
|
99
|
+
export type AppDataOptions = {
|
|
100
|
+
/** What this.tungsten.context reads. An empty object when not given. */
|
|
101
|
+
context?: object;
|
|
102
|
+
/** What this.tungsten.networkedData reads. An empty object when not given. */
|
|
103
|
+
networkedData?: object;
|
|
104
|
+
/** What this.tungsten.globalData reads. An empty object when not given. */
|
|
105
|
+
globalData?: object;
|
|
106
|
+
};
|
|
107
|
+
export type HostStoreOptions<Schema extends object, R extends ResolveOption = ResolveOption> = (RouteOptions & R & AppDataOptions & StoreOptionsFor<Schema>) extends infer Options ? Options extends unknown ? {
|
|
108
|
+
[K in keyof Options]: Options[K];
|
|
109
|
+
} : never : never;
|
|
110
|
+
export type HostOptions<Component, R extends ResolveOption = ResolveOption> = [StoreOf<Component>] extends [never] ? (RouteOptions & R & AppDataOptions & (NoStore | StoreOptionsFor<any>)) extends infer Options ? Options extends unknown ? {
|
|
111
|
+
[K in keyof Options]: Options[K];
|
|
112
|
+
} : never : never : HostStoreOptions<StoreOf<Component>, R>;
|
|
113
|
+
export type HostStoreResolveOptions<Schema extends object> = HostStoreOptions<Schema, Resolve>;
|
|
114
|
+
export type HostStoreDontResolveOptions<Schema extends object> = HostStoreOptions<Schema, DontResolve>;
|
|
115
|
+
export type HostResolveOptions<Component> = HostOptions<Component, Resolve>;
|
|
116
|
+
export type HostDontResolveOptions<Component> = HostOptions<Component, DontResolve>;
|
|
117
|
+
type HostArgs<Props, Component> = [StoreOf<Component>] extends [never] ? object extends Props ? [props?: Props, options?: HostOptions<Component> & Resolve] : [props: Props, options?: HostOptions<Component> & Resolve] : object extends Props ? [props: Props | undefined, options: HostOptions<Component> & Resolve] : [props: Props, options: HostOptions<Component> & Resolve];
|
|
118
|
+
/**
|
|
119
|
+
* Constructs a component outside of any app and drives it the way the framework
|
|
120
|
+
* does - init, then the mount lifecycles - calling its content function with
|
|
121
|
+
* whatever arguments its flavour takes, so tests don't have to match the
|
|
122
|
+
* (props) / (props, state) signature themselves.
|
|
123
|
+
*
|
|
124
|
+
* No DOM: content is returned as a content node tree, unstyled, and never
|
|
125
|
+
* reconciled. createTestApp() is the harness for anything that needs a document
|
|
126
|
+
* or app state. Lifecycle failures are thrown rather than only reported, so a
|
|
127
|
+
* test can't pass over one.
|
|
128
|
+
*
|
|
129
|
+
* State is not proxied (the construct package is marked `hosted`), so nothing
|
|
130
|
+
* re-renders on its own: updateProps() and updateState() are the renders.
|
|
131
|
+
*
|
|
132
|
+
* Store components have a structural overload: Schema is its own parameter, inferred from
|
|
133
|
+
* the class, so a generic wrapper (`Component extends { store: ComponentStore<S> }`) can
|
|
134
|
+
* call through without a cast. HostArgs is a conditional on Component, and a conditional
|
|
135
|
+
* on a type parameter is deferred, so nothing is assignable to it inside such a wrapper.
|
|
136
|
+
*/
|
|
137
|
+
export declare function host<exact Props extends TungstenComponentPropsBase, Schema extends object, Component extends TungstenBaseComponent<any, any> & {
|
|
138
|
+
store: ComponentStore<Schema>;
|
|
139
|
+
}>(ComponentType: TungstenComponentClass<Props, Component> & (new (...args: any) => {
|
|
140
|
+
store: ComponentStore<Schema>;
|
|
141
|
+
}), props: Props, options: NoInfer<[
|
|
142
|
+
Schema
|
|
143
|
+
] extends [InternalStoreSchema] ? never : HostStoreOptions<Schema> & DontResolve>): Promise<Hosted<Component>>;
|
|
144
|
+
export declare namespace host {
|
|
145
|
+
export { hostGeneric as generic };
|
|
146
|
+
export { hostJsx as jsx };
|
|
147
|
+
}
|
|
148
|
+
export declare function host<exact Props extends TungstenComponentPropsBase, Component extends TungstenBaseComponent<any, any>>(ComponentType: TungstenComponentClass<Props, Component>, props: Props | undefined, options: HostOptions<Component> & DontResolve): Promise<Hosted<Component>>;
|
|
149
|
+
export declare function host<exact Props extends TungstenComponentPropsBase, Schema extends object, Component extends TungstenBaseComponent<any, any> & {
|
|
150
|
+
store: ComponentStore<Schema>;
|
|
151
|
+
}>(ComponentType: TungstenComponentClass<Props, Component> & (new (...args: any) => {
|
|
152
|
+
store: ComponentStore<Schema>;
|
|
153
|
+
}), props: Props, options: NoInfer<[
|
|
154
|
+
Schema
|
|
155
|
+
] extends [InternalStoreSchema] ? never : HostStoreOptions<Schema> & Resolve>): Promise<HostedResolved<Component>>;
|
|
156
|
+
export declare function host<exact Props extends TungstenComponentPropsBase, Component extends TungstenBaseComponent<any, any>>(ComponentType: TungstenComponentClass<Props, Component>, ...[props, options]: HostArgs<Props, Component>): Promise<HostedResolved<Component>>;
|
|
157
|
+
type HostGenericArgs<Component> = [StoreOf<Component>] extends [never] ? [options?: HostOptions<Component> & Resolve] : [options: HostOptions<Component> & Resolve];
|
|
158
|
+
/**
|
|
159
|
+
* host() for a generic component class, whose type arguments it cannot infer: passed as an
|
|
160
|
+
* argument, the class's own parameters are erased to their constraints before the props are
|
|
161
|
+
* looked at, so `bind: [form, 'value']` widens to an array and the class stops fitting.
|
|
162
|
+
* Taking the class in a call of its own gets higher-order inference instead, so the props
|
|
163
|
+
* are checked against the component the way JSX checks them.
|
|
164
|
+
*
|
|
165
|
+
* await hostGeneric(BoundValue)({ bind: [form, 'value'] })
|
|
166
|
+
* await hostGeneric(BoundValue, { resolve: false })({ bind: [form, 'value'] })
|
|
167
|
+
*
|
|
168
|
+
* Options go on the first call because the returned signature has to stay a single plain
|
|
169
|
+
* one: give it type parameters of its own, or a second call signature, and the inference
|
|
170
|
+
* that makes this work is lost.
|
|
171
|
+
*/
|
|
172
|
+
export declare function hostGeneric<Props extends TungstenComponentPropsBase, Component extends TungstenBaseComponent<any, any>>(ComponentType: TungstenComponentClass<Props, Component>, options: HostOptions<Component> & DontResolve): (props: Props) => Promise<Hosted<Component>>;
|
|
173
|
+
export declare function hostGeneric<Props extends TungstenComponentPropsBase, Component extends TungstenBaseComponent<any, any>>(ComponentType: TungstenComponentClass<Props, Component>, ...args: HostGenericArgs<Component>): (props: Props) => Promise<HostedResolved<Component>>;
|
|
174
|
+
type AnyClassComponent = TungstenBaseComponent<any, any>;
|
|
175
|
+
/**
|
|
176
|
+
* host(), given the element rather than the class and a props object:
|
|
177
|
+
* `await hostJsx(<DataTable head={head} rows={rows} columns={2} />)`. The options are host()'s,
|
|
178
|
+
* and everything else about it is the same - a class component, its init and mount lifecycles run.
|
|
179
|
+
*
|
|
180
|
+
* TypeScript types every JSX expression as `JSX.Element` (here `ContentNodeElement`), so the
|
|
181
|
+
* element does not carry the component it names: the wrapper comes back as the base component
|
|
182
|
+
* unless the call says which - `hostJsx<DataTable>(<DataTable … />)` - which is what gives back
|
|
183
|
+
* `props`, `state` and the component's own methods. host() itself infers all of that from the
|
|
184
|
+
* class, so a test that leans on the wrapper's api is better off with host().
|
|
185
|
+
*/
|
|
186
|
+
export declare function hostJsx<Component extends AnyClassComponent = AnyClassComponent>(element: ContentNodeElement, options: HostOptions<Component> & DontResolve): Promise<Hosted<Component>>;
|
|
187
|
+
export declare function hostJsx<Component extends AnyClassComponent = AnyClassComponent>(element: ContentNodeElement, options?: HostOptions<Component> & Resolve): Promise<HostedResolved<Component>>;
|
|
188
|
+
export {};
|
|
189
|
+
//# sourceMappingURL=host.d.ts.map
|