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
|
@@ -5,7 +5,7 @@ import { spawn } from 'node:child_process';
|
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
import chokidar from 'chokidar';
|
|
8
|
-
import {
|
|
8
|
+
import { cliInfo } from '../../cliOutput.js';
|
|
9
9
|
import { getFrameworkDir } from '../../getFrameworkDir.js';
|
|
10
10
|
import { cliArgs } from '../args.js';
|
|
11
11
|
// devmon reads none of its arguments itself - it passes them straight through to the dev child
|
|
@@ -41,7 +41,7 @@ function startDev(devArgs) {
|
|
|
41
41
|
function restartOnRebuild() {
|
|
42
42
|
if (restartWanted) return; // one is already on its way down
|
|
43
43
|
restartWanted = true;
|
|
44
|
-
|
|
44
|
+
cliInfo('tungsten framework rebuilt - restarting tungsten dev');
|
|
45
45
|
child?.kill();
|
|
46
46
|
}
|
|
47
47
|
startDev(initialArgs);
|
package/dist/bin/vendorHook.js
CHANGED
|
@@ -3,12 +3,13 @@ import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
5
5
|
import { cliWarn } from '../cliOutput.js';
|
|
6
|
+
import { JSONparse } from '../json.js';
|
|
6
7
|
export function registerVendorHook() {
|
|
7
8
|
const packageDir = dirname(dirname(dirname(fileURLToPath(import.meta.url))));
|
|
8
9
|
const vendorDir = join(packageDir, 'vendor');
|
|
9
10
|
const manifestPath = join(vendorDir, 'manifest.json');
|
|
10
11
|
if (!existsSync(manifestPath)) return 'none';
|
|
11
|
-
const manifest =
|
|
12
|
+
const manifest = JSONparse(readFileSync(manifestPath, 'utf8')); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- our own file
|
|
12
13
|
const lockfile = join(packageDir, 'pnpm-lock.yaml');
|
|
13
14
|
// a linked checkout whose dependencies moved on: fall back rather than run a stale bundle
|
|
14
15
|
if (manifest.lockfile !== undefined && existsSync(lockfile)) {
|
|
@@ -9,7 +9,8 @@ export function fileVersion(file) {
|
|
|
9
9
|
if (statSync(file, {
|
|
10
10
|
throwIfNoEntry: false
|
|
11
11
|
})?.isFile() !== true) return undefined;
|
|
12
|
-
|
|
12
|
+
const content = readFileSync(file);
|
|
13
|
+
return createHash('sha256').update(content).digest('hex').slice(0, 16);
|
|
13
14
|
}
|
|
14
15
|
export function readAssetVersions(bundleLocation, buildLocation) {
|
|
15
16
|
const versions = {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type { PluginItem } from '@babel/core';
|
|
1
|
+
import type { PluginItem, TransformOptions } from '@babel/core';
|
|
2
2
|
export declare function loadTypescriptPreset(): Promise<void>;
|
|
3
3
|
export declare function typescriptPreset(): PluginItem;
|
|
4
|
-
|
|
5
|
-
ignore: RegExp[];
|
|
6
|
-
babelrc: false;
|
|
7
|
-
configFile: false;
|
|
4
|
+
export type UserBabelConfig = Omit<TransformOptions, 'presets' | 'plugins'> & {
|
|
8
5
|
presets: PluginItem[];
|
|
9
6
|
plugins: PluginItem[];
|
|
10
7
|
};
|
|
8
|
+
declare const userCommonConfig: UserBabelConfig;
|
|
11
9
|
export default userCommonConfig;
|
|
12
10
|
//# sourceMappingURL=babel.user.common.config.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { join, dirname
|
|
1
|
+
import { join, dirname } from 'path';
|
|
2
2
|
import { pathToFileURL } from 'url';
|
|
3
3
|
import chokidar from 'chokidar';
|
|
4
4
|
import { transformSync as babelTransformSync } from '@babel/core';
|
|
@@ -6,6 +6,7 @@ import fs, { promises as fsPromises } from 'fs';
|
|
|
6
6
|
import serializeJavascript from 'serialize-javascript';
|
|
7
7
|
import slash from '../slash.js';
|
|
8
8
|
import { glob } from '../glob.js';
|
|
9
|
+
import { ignoreGlobs } from './ignoreGlobs.js';
|
|
9
10
|
import { devRawBuildFolder, packagesCacheFolder, prodRawBuildFolder, stylesCacheFolder } from '../settings.js';
|
|
10
11
|
import { frameworkVersion } from './frameworkDestLocation.js';
|
|
11
12
|
import { loadTypescriptPreset } from './babel.user.common.config.js';
|
|
@@ -16,6 +17,7 @@ import { cliOut, cliLog, cliError, cliWarn } from '../cliOutput.js';
|
|
|
16
17
|
import { createTimeProfiler, isProfiling, tallied } from '../timeProfiler.js';
|
|
17
18
|
import { tallyBabel } from './tallyBabel.js';
|
|
18
19
|
import { TungstenError } from '../TungstenError.js';
|
|
20
|
+
import { StyleCompileError } from '../babelPlugins/StyleCompileError.js';
|
|
19
21
|
import { getFrameworkDir } from '../getFrameworkDir.js';
|
|
20
22
|
import { PromiseSettledResultIsPromiseRejectedResult } from './PromiseSettledResultIsPromiseRejectedResult.js';
|
|
21
23
|
import { JSONstringify } from '../json.js';
|
|
@@ -126,8 +128,13 @@ export async function compileJavascript(projectDir, appConfig, codeLocation, sou
|
|
|
126
128
|
failedFiles.delete(file);
|
|
127
129
|
} catch (e) {
|
|
128
130
|
failedFiles.add(file);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
if (e instanceof StyleCompileError) {
|
|
132
|
+
cliError(`Tungsten: Sass compilation error in project file ${file}`);
|
|
133
|
+
cliLog(`${e.message}\n`);
|
|
134
|
+
} else {
|
|
135
|
+
cliError(`Tungsten: Error transforming project file ${file}`);
|
|
136
|
+
cliLog(e);
|
|
137
|
+
}
|
|
131
138
|
throw e;
|
|
132
139
|
}
|
|
133
140
|
}
|
|
@@ -251,33 +258,11 @@ export async function compileJavascript(projectDir, appConfig, codeLocation, sou
|
|
|
251
258
|
const ignored = [];
|
|
252
259
|
ignored.push(slash(`${buildLocation}/**`));
|
|
253
260
|
if (typescript) ignored.push(slash(`${codeLocation}/**/*.d.ts`));
|
|
254
|
-
|
|
255
|
-
const ignoreDirs = typeof appConfig.ignoreDirs === 'string' ? [appConfig.ignoreDirs] : appConfig.ignoreDirs;
|
|
256
|
-
ignored.push(...ignoreDirs.map(folder => slash(`${codeLocation}/${folder}/**`)));
|
|
257
|
-
}
|
|
258
|
-
// patterns are relative to the code dir, like the dirs above and the selections below; raw they
|
|
259
|
-
// resolved against the cwd, so `client/testing/**` never matched <code>/client/testing/…
|
|
260
|
-
const fromCodeDir = pattern => isAbsolute(pattern) ? slash(pattern) : slash(`${codeLocation}/${pattern}`);
|
|
261
|
-
if (appConfig.ignorePatterns !== undefined && appConfig.ignorePatterns !== '') {
|
|
262
|
-
if (Array.isArray(appConfig.ignorePatterns)) {
|
|
263
|
-
for (const pattern of appConfig.ignorePatterns) {
|
|
264
|
-
ignored.push(fromCodeDir(pattern));
|
|
265
|
-
}
|
|
266
|
-
} else {
|
|
267
|
-
ignored.push(fromCodeDir(appConfig.ignorePatterns));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
261
|
+
ignored.push(...ignoreGlobs(codeLocation, appConfig.ignoreDirs, appConfig.ignorePatterns));
|
|
270
262
|
// test files are a category, not noise: excluded here like ignoreDirs/ignorePatterns, but a
|
|
271
263
|
// test compile (`tungsten compile --tests`) wants them, where it would never want the ignored
|
|
272
264
|
if (options.tests !== true) {
|
|
273
|
-
|
|
274
|
-
const testDirs = typeof appConfig.testDirs === 'string' ? [appConfig.testDirs] : appConfig.testDirs;
|
|
275
|
-
ignored.push(...testDirs.map(folder => slash(`${codeLocation}/${folder}/**`)));
|
|
276
|
-
}
|
|
277
|
-
if (appConfig.testPatterns !== undefined && appConfig.testPatterns !== '') {
|
|
278
|
-
const testPatterns = Array.isArray(appConfig.testPatterns) ? appConfig.testPatterns : [appConfig.testPatterns];
|
|
279
|
-
ignored.push(...testPatterns.map(fromCodeDir));
|
|
280
|
-
}
|
|
265
|
+
ignored.push(...ignoreGlobs(codeLocation, appConfig.testDirs, appConfig.testPatterns));
|
|
281
266
|
}
|
|
282
267
|
// Which sources each pipeline compiles. Unset, client is everything and raw is nothing; a file
|
|
283
268
|
// may be in both. Dirs and patterns are relative to codeDir. The ignores are not applied
|
|
@@ -2,7 +2,7 @@ import { createHash } from 'crypto';
|
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import { join } from 'path';
|
|
4
4
|
import { frameworkVersion } from './frameworkDestLocation.js';
|
|
5
|
-
import { JSONstringify } from '../json.js';
|
|
5
|
+
import { JSONparse, JSONstringify } from '../json.js';
|
|
6
6
|
const sha1 = data => createHash('sha1').update(data).digest('hex');
|
|
7
7
|
const blockHash = (language, rawStyles) => sha1(`${language}\0${rawStyles}`);
|
|
8
8
|
const fileHash = file => {
|
|
@@ -21,7 +21,7 @@ export function makeComponentStylesCache(cacheDir, fresh = false) {
|
|
|
21
21
|
if (cacheDir === undefined || fresh) return undefined;
|
|
22
22
|
let record;
|
|
23
23
|
try {
|
|
24
|
-
record =
|
|
24
|
+
record = JSONparse(fs.readFileSync(recordFile(cacheDir, moduleName), 'utf8')); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- fields checked below
|
|
25
25
|
} catch {
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
@@ -4,7 +4,8 @@ import { TungstenError } from '../TungstenError.js';
|
|
|
4
4
|
import { getFrameworkDir } from '../getFrameworkDir.js';
|
|
5
5
|
import { frameworkDistFolder, packagesFolder } from '../settings.js';
|
|
6
6
|
import { makePackageIdentifier } from './packageIdentifier.js';
|
|
7
|
-
|
|
7
|
+
import { JSONparse } from '../json.js';
|
|
8
|
+
const packageJson = JSONparse(
|
|
8
9
|
// eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
9
10
|
readFileSync(join(getFrameworkDir(), 'package.json'), 'utf8'));
|
|
10
11
|
if (packageJson.version === undefined) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isAbsolute } from 'path';
|
|
2
|
+
import slash from '../slash.js';
|
|
3
|
+
// a config's dirs and patterns, relative to the code dir, as watcher globs
|
|
4
|
+
export function ignoreGlobs(codeLocation, dirs, patterns) {
|
|
5
|
+
const list = value => value === undefined || value === '' ? [] : typeof value === 'string' ? [value] : value;
|
|
6
|
+
const fromCodeDir = pattern => isAbsolute(pattern) ? slash(pattern) : slash(`${codeLocation}/${pattern}`);
|
|
7
|
+
return [...list(dirs).map(folder => slash(`${codeLocation}/${folder}/**`)), ...list(patterns).map(fromCodeDir)];
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function makeBabelRawConfig(typescript: boolean):
|
|
1
|
+
import { type UserBabelConfig } from './babel.user.common.config.js';
|
|
2
|
+
export declare function makeBabelRawConfig(typescript: boolean): UserBabelConfig;
|
|
3
3
|
//# sourceMappingURL=makeBabelRawConfig.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TransformOptions } from '@babel/core';
|
|
2
1
|
import type { ImportAliases } from './ImportAliases.js';
|
|
3
2
|
import { type DependencyGraph, type PackageInfo } from '../babelPlugins/BabelTransformPackageImports.js';
|
|
4
|
-
|
|
3
|
+
import { type UserBabelConfig } from './babel.user.common.config.js';
|
|
4
|
+
export declare function makeBabelUserDevConfig(projectDir: string, absCodeDir: string, absSourceDir: string, typescript: boolean, absStyleImportBase: string, buildLocation: string, buildCodeLocation: string, packagesCacheLocation: string, stylesCacheLocation: string | undefined, fresh: boolean, skipPackageCompilationFiles: ReadonlySet<string>, oldDependencyGraph: DependencyGraph, dependencyGraph: DependencyGraph, importAliases: ImportAliases, promises: Promise<PackageInfo | undefined>[], watchStyles?: boolean, hmr?: boolean, packages?: boolean): UserBabelConfig;
|
|
5
5
|
//# sourceMappingURL=makeBabelUserDevConfig.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function makeBabelUserProdConfig(projectDir: string, absCodeDir: string, absSourceDir: string, typescript: boolean, absStyleImportBase: string, watchStyles?: boolean):
|
|
1
|
+
import { type UserBabelConfig } from './babel.user.common.config.js';
|
|
2
|
+
export declare function makeBabelUserProdConfig(projectDir: string, absCodeDir: string, absSourceDir: string, typescript: boolean, absStyleImportBase: string, watchStyles?: boolean): UserBabelConfig;
|
|
3
3
|
//# sourceMappingURL=makeBabelUserProdConfig.d.ts.map
|
|
@@ -7,7 +7,7 @@ import jsonModule from '@rollup/plugin-json';
|
|
|
7
7
|
import { bundleBabelOptions } from './bundleBabelOptions.js';
|
|
8
8
|
import { rollupExtractComponentStylesheets } from './rollupExtractComponentStylesheets.js';
|
|
9
9
|
import { rollupProdConstants } from './rollupProdConstants.js';
|
|
10
|
-
import { JSONstringify } from '../json.js';
|
|
10
|
+
import { JSONparse, JSONstringify } from '../json.js';
|
|
11
11
|
const json = typeof jsonModule === 'function' ? jsonModule : jsonModule.default;
|
|
12
12
|
function replaceProductionNodeEnv() {
|
|
13
13
|
return {
|
|
@@ -23,7 +23,7 @@ function replaceProductionNodeEnv() {
|
|
|
23
23
|
}
|
|
24
24
|
// the app config's `targets`, handed over by bundle.ts; unset means the framework default
|
|
25
25
|
const targetsEnv = process.env.TUNGSTEN_TARGETS;
|
|
26
|
-
const targets = targetsEnv === undefined ? undefined :
|
|
26
|
+
const targets = targetsEnv === undefined ? undefined : JSONparse(targetsEnv); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- written by bundle.ts
|
|
27
27
|
const rollupConfig = {
|
|
28
28
|
plugins: [json(), nodeResolve(), commonjs(),
|
|
29
29
|
// must be before babel
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function tallyBabel(config:
|
|
1
|
+
import type { UserBabelConfig } from './babel.user.common.config.js';
|
|
2
|
+
export declare function tallyBabel(config: UserBabelConfig): void;
|
|
3
3
|
//# sourceMappingURL=tallyBabel.d.ts.map
|
package/dist/build/tallyBabel.js
CHANGED
|
@@ -7,5 +7,5 @@ const coreTallies = {
|
|
|
7
7
|
};
|
|
8
8
|
export function tallyBabel(config) {
|
|
9
9
|
config.wrapPluginVisitorMethod = (alias, _type, visit) => (path, state) => tallied(`babel: ${alias}`, () => visit(path, state));
|
|
10
|
-
config.plugins = [...
|
|
10
|
+
config.plugins = [...config.plugins, coreTallies];
|
|
11
11
|
}
|
package/dist/clone.js
CHANGED
|
@@ -5,7 +5,7 @@ import type { GlobalData } from './routing/registerGlobalData.js';
|
|
|
5
5
|
import type { NetworkedData } from './routing/routingRegistry.js';
|
|
6
6
|
export type ComponentHelpers = {
|
|
7
7
|
fileUrl: (path: `/${string}`) => string;
|
|
8
|
-
|
|
8
|
+
getRoutes: <R extends Routes<any> = Routes>() => R;
|
|
9
9
|
readonly context: Context;
|
|
10
10
|
readonly globalData: GlobalData;
|
|
11
11
|
readonly allRoutesData: GlobalData | undefined;
|
package/dist/componentHelpers.js
CHANGED
|
@@ -2,10 +2,9 @@ import { fileUrl } from './fileVersions.js';
|
|
|
2
2
|
export function makeComponentHelpers(component) {
|
|
3
3
|
return {
|
|
4
4
|
fileUrl: path => fileUrl(path, component.__instance),
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
5
|
+
//get routes() { return component.__instance.routes },
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- the caller names the type
|
|
7
|
+
getRoutes: () => component.__instance.routes,
|
|
9
8
|
//getContext: () => component.__instance.context,
|
|
10
9
|
get context() {
|
|
11
10
|
return component.__instance.context;
|
|
@@ -500,7 +500,8 @@ function proxyArray(arr, element, adopted = new WeakMap()) {
|
|
|
500
500
|
const existing = adopted.get(raw);
|
|
501
501
|
if (existing) return existing;
|
|
502
502
|
arr = adoptIntoState(arr);
|
|
503
|
-
const
|
|
503
|
+
const handler = getStateArrayProxyHandler(element);
|
|
504
|
+
const proxy = new Proxy(arr, handler);
|
|
504
505
|
adopted.set(raw, proxy);
|
|
505
506
|
proxyArrayContent(element, arr, adopted);
|
|
506
507
|
return proxy;
|
|
@@ -5,6 +5,6 @@ export interface NativeHtmlProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class NativeHtml extends TungstenSimpleComponent<NativeHtmlProps> {
|
|
7
7
|
static __opaque: boolean;
|
|
8
|
-
content: () => ContentNodeHtml | ContentNodeHtml
|
|
8
|
+
content: () => ContentNodeHtml[] | ContentNodeHtml;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=NativeHtml.d.ts.map
|
|
@@ -13,7 +13,9 @@ type BasicProps = {
|
|
|
13
13
|
value?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
};
|
|
16
|
-
type BindableInputTypedProps<T, O extends Obj, K extends KeysOfType<T, O>> = BasicProps & (
|
|
16
|
+
type BindableInputTypedProps<T, O extends Obj, K extends KeysOfType<T, O>> = BasicProps & ([
|
|
17
|
+
T
|
|
18
|
+
] extends [string] ? {
|
|
17
19
|
bind?: ExplicityTypedBindVariable<T, O, K>;
|
|
18
20
|
convert?: ConvertFuncString<InputKeyboardEvent, O[K]> | undefined;
|
|
19
21
|
} : {
|
|
@@ -15,7 +15,9 @@ type BasicProps = {
|
|
|
15
15
|
};
|
|
16
16
|
type BindableInputTypedProps<T, K extends string | number | symbol, O extends {
|
|
17
17
|
[Key in K]: T;
|
|
18
|
-
}> = BasicProps & (
|
|
18
|
+
}> = BasicProps & ([
|
|
19
|
+
T
|
|
20
|
+
] extends [string] ? {
|
|
19
21
|
bind?: ExplicityTypedBindVariableLegacy<T, K, O>;
|
|
20
22
|
convert?: ConvertFuncString<InputKeyboardEvent, O[K]> | undefined;
|
|
21
23
|
} : {
|
|
@@ -13,9 +13,6 @@ export declare const bindableHtmlElementsNumber: {
|
|
|
13
13
|
progress: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const bindableHtmlElements: {
|
|
16
|
-
li: boolean;
|
|
17
|
-
meter: boolean;
|
|
18
|
-
progress: boolean;
|
|
19
16
|
button: boolean;
|
|
20
17
|
data: boolean;
|
|
21
18
|
input: boolean;
|
|
@@ -23,5 +20,8 @@ export declare const bindableHtmlElements: {
|
|
|
23
20
|
param: boolean;
|
|
24
21
|
select: boolean;
|
|
25
22
|
textarea: boolean;
|
|
23
|
+
li: boolean;
|
|
24
|
+
meter: boolean;
|
|
25
|
+
progress: boolean;
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=bindableHtmlElements.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TypedBindVariable } from '../../bindable/BindVariable.js';
|
|
2
2
|
import type { ExtendedChangeEvent, ExtendedClipboardEvent, ExtendedFormEvent, ExtendedKeyboardEvent, ExtendedMouseEvent } from '../../../../types/jsx/html.events.js';
|
|
3
3
|
import { TungstenStatefulComponent } from '../../../Components.jsx';
|
|
4
|
-
declare const trackedCommands: readonly [
|
|
4
|
+
declare const trackedCommands: readonly ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'insertUnorderedList', 'insertOrderedList'];
|
|
5
5
|
type TrackedCommand = (typeof trackedCommands)[number];
|
|
6
6
|
type Props<TreeO extends object, TreeK extends keyof TreeO, HtmlO extends object, HtmlK extends keyof HtmlO> = {
|
|
7
7
|
className?: string;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { Json } from '../../../Json.type.js';
|
|
1
2
|
export type StoredContentNode = string | number | null | StoredContentNode[] | {
|
|
2
3
|
tag: string;
|
|
3
|
-
props:
|
|
4
|
+
props: StoredNodeProps;
|
|
5
|
+
};
|
|
6
|
+
export type StoredNodeProps = {
|
|
7
|
+
[key: string]: Json;
|
|
8
|
+
children?: StoredContentNode;
|
|
4
9
|
};
|
|
5
10
|
//# sourceMappingURL=StoredContentNode.d.ts.map
|
|
@@ -2,6 +2,26 @@ import { $props, $type } from '../../../contentNodeSymbols.js';
|
|
|
2
2
|
import { ContentNodeIsArray, ContentNodeIsFragment, ContentNodeIsHtml, ContentNodeIsLiteral, ContentNodeIsNonRendered } from '../../../ContentNode.js';
|
|
3
3
|
import { filterContentNode } from '../../../rawHtml/filterContentNode.js';
|
|
4
4
|
import { safeHtmlAllowList } from '../../../rawHtml/safeHtmlAllowList.js';
|
|
5
|
+
// as JSON.stringify writes it: no functions, undefined, class instances or non-finite numbers
|
|
6
|
+
function isJson(value) {
|
|
7
|
+
if (value === null || typeof value === 'string' || typeof value === 'boolean') return true;
|
|
8
|
+
if (typeof value === 'number') return Number.isFinite(value);
|
|
9
|
+
if (Array.isArray(value)) return value.every(isJson);
|
|
10
|
+
if (typeof value !== 'object') return false;
|
|
11
|
+
const prototype = Object.getPrototypeOf(value);
|
|
12
|
+
return (prototype === Object.prototype || prototype === null) && Object.values(value).every(isJson);
|
|
13
|
+
}
|
|
14
|
+
const isJsonMap = value => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
15
|
+
// NodeProps' named members, by what a value must be to fill one; a ref has no stored form
|
|
16
|
+
const namedPropFits = {
|
|
17
|
+
value: value => value === null || typeof value !== 'object',
|
|
18
|
+
ref: () => false,
|
|
19
|
+
__zoneHtml: value => typeof value === 'string',
|
|
20
|
+
__opaque: value => typeof value === 'boolean',
|
|
21
|
+
dangerouslySetInnerHTML: value => isJsonMap(value) && typeof value.__html === 'string'
|
|
22
|
+
};
|
|
23
|
+
// a prop that is stored, and read back, as itself
|
|
24
|
+
const storableProp = (key, value) => isJson(value) && (namedPropFits[key]?.(value) ?? true);
|
|
5
25
|
/**
|
|
6
26
|
* Converts a Tungsten content tree into the JSON-safe StoredContentNode shape
|
|
7
27
|
* for persistence/transport. Only host HTML nodes are supported — the shape
|
|
@@ -20,12 +40,14 @@ export function serializeContentTree(node) {
|
|
|
20
40
|
children,
|
|
21
41
|
...attributes
|
|
22
42
|
} = node[$props];
|
|
43
|
+
const props = {};
|
|
44
|
+
for (const [key, value] of Object.entries(attributes)) {
|
|
45
|
+
if (storableProp(key, value)) props[key] = value;
|
|
46
|
+
}
|
|
47
|
+
if (children !== undefined) props.children = serializeContentTree(children);
|
|
23
48
|
return {
|
|
24
49
|
tag: node[$type],
|
|
25
|
-
props
|
|
26
|
-
...attributes,
|
|
27
|
-
children: serializeContentTree(children)
|
|
28
|
-
}
|
|
50
|
+
props
|
|
29
51
|
};
|
|
30
52
|
}
|
|
31
53
|
/**
|
|
@@ -33,7 +55,9 @@ export function serializeContentTree(node) {
|
|
|
33
55
|
* the column is reproduced faithfully, including markup that must not survive
|
|
34
56
|
* to a render — filtering is `deserializeContentTree`'s job, in one pass over
|
|
35
57
|
* the finished tree, so that this stays a plain structural inverse of
|
|
36
|
-
* `serializeContentTree`.
|
|
58
|
+
* `serializeContentTree`. The one exception is a prop that can't be what it
|
|
59
|
+
* names, such as an object stored as `value`: serializeContentTree never
|
|
60
|
+
* writes one, so it is left out.
|
|
37
61
|
*/
|
|
38
62
|
function rebuildContentTree(stored) {
|
|
39
63
|
if (stored === null) return null;
|
|
@@ -43,15 +67,11 @@ function rebuildContentTree(stored) {
|
|
|
43
67
|
children,
|
|
44
68
|
...attributes
|
|
45
69
|
} = stored.props;
|
|
46
|
-
const props = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (children !== undefined) {
|
|
50
|
-
// Storage round-trip boundary: `children` holds whatever
|
|
51
|
-
// serializeContentTree put there.
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
|
53
|
-
props.children = rebuildContentTree(children);
|
|
70
|
+
const props = {};
|
|
71
|
+
for (const [key, value] of Object.entries(attributes)) {
|
|
72
|
+
if (storableProp(key, value)) props[key] = value;
|
|
54
73
|
}
|
|
74
|
+
if (children !== undefined) props.children = rebuildContentTree(children);
|
|
55
75
|
// Lowercased to match what parseHtml produces, so a hand-edited row cannot
|
|
56
76
|
// present a tag the allow list would then fail to recognise.
|
|
57
77
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
globalThis.__tungstenPrivateEnvValidator = undefined;
|
|
2
2
|
export function setPrivateEnvValidator(validator) {
|
|
3
|
-
|
|
3
|
+
globalThis.__tungstenPrivateEnvValidator = validator;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardSchema } from '../standardSchema.js';
|
|
2
|
-
export type TungstenPublicEnvValidatorFunction = () =>
|
|
3
|
-
export type TungstenPublicEnvValidator = TungstenPublicEnvValidatorFunction | StandardSchema<
|
|
2
|
+
export type TungstenPublicEnvValidatorFunction = () => TungstenPublicEnv;
|
|
3
|
+
export type TungstenPublicEnvValidator = TungstenPublicEnvValidatorFunction | StandardSchema<TungstenPublicEnv>;
|
|
4
4
|
declare global {
|
|
5
5
|
var __tungstenPublicEnvValidator: TungstenPublicEnvValidator | undefined;
|
|
6
6
|
}
|
package/dist/fileVersions.js
CHANGED
|
@@ -22,7 +22,11 @@ export function versionAttributes(attributes, source) {
|
|
|
22
22
|
for (const [name, value] of Object.entries(attributes)) {
|
|
23
23
|
if (typeof value !== 'string') continue;
|
|
24
24
|
const lower = name.toLowerCase();
|
|
25
|
-
if (urlAttributes.has(lower))
|
|
25
|
+
if (urlAttributes.has(lower)) {
|
|
26
|
+
attributes[name] = versionUrl(value, source);
|
|
27
|
+
} else if (lower === 'srcset') {
|
|
28
|
+
attributes[name] = versionSrcset(value, source);
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
return attributes;
|
|
28
32
|
}
|
package/dist/findProjectDir.js
CHANGED
|
@@ -2,6 +2,7 @@ import { dirname, join } from 'path';
|
|
|
2
2
|
import { existsSync, readFileSync } from 'fs';
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
4
|
import { TungstenError } from './TungstenError.js';
|
|
5
|
+
import { JSONparse } from './json.js';
|
|
5
6
|
// find-package-json in-house: every package.json from startLocation up to the root
|
|
6
7
|
function* packageJsonFinder(startLocation) {
|
|
7
8
|
let dir = startLocation;
|
|
@@ -9,7 +10,7 @@ function* packageJsonFinder(startLocation) {
|
|
|
9
10
|
const filename = join(dir, 'package.json');
|
|
10
11
|
if (existsSync(filename)) yield {
|
|
11
12
|
filename,
|
|
12
|
-
value:
|
|
13
|
+
value: JSONparse(readFileSync(filename, 'utf8'))
|
|
13
14
|
};
|
|
14
15
|
const parent = dirname(dir);
|
|
15
16
|
if (parent === dir) return;
|
package/dist/findUserConfig.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function findUserConfig(projectDir: string, volume?: 'silent' | 'noisy'): Promise<{
|
|
2
2
|
data: unknown;
|
|
3
|
-
moduleType: "
|
|
3
|
+
moduleType: "commonjs" | "module";
|
|
4
4
|
location: string;
|
|
5
5
|
} | null>;
|
|
6
6
|
//# sourceMappingURL=findUserConfig.d.ts.map
|
|
@@ -4,8 +4,6 @@ import type { SiteBasePath } from './render/HeadData.js';
|
|
|
4
4
|
export interface BabelOptions extends BabelParserOptions {
|
|
5
5
|
}
|
|
6
6
|
export declare const frameworkConfigValidator: v.VariantSchema<"useRootComponent", [v.ObjectSchema<{
|
|
7
|
-
readonly useRootComponent: v.ExactOptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
8
|
-
readonly rootComponent: v.StringSchema<undefined>;
|
|
9
7
|
readonly codeDir: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
10
8
|
readonly copy: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11
9
|
readonly copyExclude: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -37,6 +35,8 @@ export declare const frameworkConfigValidator: v.VariantSchema<"useRootComponent
|
|
|
37
35
|
readonly targets: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
38
36
|
}, undefined>, undefined>;
|
|
39
37
|
readonly serverMiddleware: v.ExactOptionalSchema<v.TupleSchema<[v.StringSchema<undefined>, v.StringSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
38
|
+
readonly serverIgnoreDirs: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
39
|
+
readonly serverIgnorePatterns: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
40
40
|
readonly apiRoutes: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
41
41
|
readonly apiPath: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
42
42
|
readonly suppressNoHeadWarning: v.ExactOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -52,9 +52,9 @@ export declare const frameworkConfigValidator: v.VariantSchema<"useRootComponent
|
|
|
52
52
|
readonly staleWhileRevalidate: v.ExactOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
53
53
|
}, undefined>], undefined>, undefined>;
|
|
54
54
|
readonly registration: v.ExactOptionalSchema<v.PicklistSchema<["register", "pipeline"], undefined>, undefined>;
|
|
55
|
+
readonly useRootComponent: v.ExactOptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
56
|
+
readonly rootComponent: v.StringSchema<undefined>;
|
|
55
57
|
}, undefined>, v.ObjectSchema<{
|
|
56
|
-
readonly useRootComponent: v.LiteralSchema<false, undefined>;
|
|
57
|
-
readonly serverSideRouting: v.ExactOptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
58
58
|
readonly codeDir: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
59
59
|
readonly copy: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
60
60
|
readonly copyExclude: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -86,6 +86,8 @@ export declare const frameworkConfigValidator: v.VariantSchema<"useRootComponent
|
|
|
86
86
|
readonly targets: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
87
87
|
}, undefined>, undefined>;
|
|
88
88
|
readonly serverMiddleware: v.ExactOptionalSchema<v.TupleSchema<[v.StringSchema<undefined>, v.StringSchema<undefined>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
89
|
+
readonly serverIgnoreDirs: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
90
|
+
readonly serverIgnorePatterns: v.ExactOptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>, undefined>;
|
|
89
91
|
readonly apiRoutes: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
90
92
|
readonly apiPath: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
93
|
readonly suppressNoHeadWarning: v.ExactOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -100,6 +102,8 @@ export declare const frameworkConfigValidator: v.VariantSchema<"useRootComponent
|
|
|
100
102
|
readonly staleWhileRevalidate: v.ExactOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
101
103
|
}, undefined>], undefined>, undefined>;
|
|
102
104
|
readonly registration: v.ExactOptionalSchema<v.PicklistSchema<["register", "pipeline"], undefined>, undefined>;
|
|
105
|
+
readonly useRootComponent: v.LiteralSchema<false, undefined>;
|
|
106
|
+
readonly serverSideRouting: v.ExactOptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
103
107
|
}, undefined>], undefined>;
|
|
104
108
|
export type FrameworkConfig = v.InferOutput<typeof frameworkConfigValidator>;
|
|
105
109
|
export declare function unknownConfigKeys(config: unknown): string[];
|
|
@@ -53,6 +53,8 @@ const frameworkConfigBaseEntries = {
|
|
|
53
53
|
targets: v.exactOptional(stringOrStrings)
|
|
54
54
|
})),
|
|
55
55
|
serverMiddleware: v.exactOptional(v.tuple([v.string(), v.string(), v.string()])),
|
|
56
|
+
serverIgnoreDirs: v.exactOptional(stringOrStrings),
|
|
57
|
+
serverIgnorePatterns: v.exactOptional(stringOrStrings),
|
|
56
58
|
apiRoutes: v.exactOptional(v.string()),
|
|
57
59
|
apiPath: v.exactOptional(v.string()),
|
|
58
60
|
suppressNoHeadWarning: v.exactOptional(v.boolean()),
|
package/dist/getRoutes.js
CHANGED
|
@@ -6,10 +6,6 @@ import { importDevModuleWithRetry } from './importDevModuleWithRetry.js';
|
|
|
6
6
|
import { importModule } from './importModule.js';
|
|
7
7
|
import { routesLocationParts } from './routesLocationParts.js';
|
|
8
8
|
import { resolveAppRoutes } from './routing/resolveAppRoutes.js';
|
|
9
|
-
// future - add a loose check on the routes object
|
|
10
|
-
function IsAppRoutesShaped(v) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
9
|
export async function getRoutes(compilationInfo, config,
|
|
14
10
|
//load: Load | null = null,
|
|
15
11
|
iteration = null, mode = 'prod') {
|
package/dist/hydrate/hydrate.js
CHANGED
|
@@ -79,13 +79,14 @@ export async function hydrate(appRoutes, RootComponent, instanceConfig, fileVers
|
|
|
79
79
|
let globalData;
|
|
80
80
|
if (stub) {
|
|
81
81
|
// as a client navigation fetches: the global data beside routing
|
|
82
|
-
const
|
|
82
|
+
const fetchData = globalDataFunc.value;
|
|
83
|
+
const routed = await stubRouting(location, to => routing(to, routes, context, networkedData), instanceConfig, fetchData && (async to => fetchData(null, context, networkedData, to)));
|
|
83
84
|
if (routed === null) return;
|
|
84
85
|
({
|
|
85
86
|
location,
|
|
86
87
|
matchedRouteInfo
|
|
87
88
|
} = routed);
|
|
88
|
-
globalData =
|
|
89
|
+
globalData = routed.allRoutesData ?? {}; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- the framework brands what it builds
|
|
89
90
|
} else {
|
|
90
91
|
matchedRouteInfo = hydrationRouting(__tungsten_matched_route_info__, routes);
|
|
91
92
|
globalData = __tungsten_global_data__;
|
|
@@ -6,5 +6,8 @@ declare global {
|
|
|
6
6
|
let __tungsten_networked_data__: BrandedNetworkedData;
|
|
7
7
|
let __tungsten_matched_route_info__: NetworkMatchedRouteInfo;
|
|
8
8
|
let __tungsten_route_data__: unknown;
|
|
9
|
+
let __tungsten_error_info__: {
|
|
10
|
+
message: string;
|
|
11
|
+
} | undefined;
|
|
9
12
|
}
|
|
10
13
|
//# sourceMappingURL=hydrateGlobalData.d.ts.map
|
|
@@ -3,6 +3,7 @@ import type { MatchedRouteInfo } from '../routing/MatchedRouteInfo.js';
|
|
|
3
3
|
export type StubRouted = {
|
|
4
4
|
location: string;
|
|
5
5
|
matchedRouteInfo: MatchedRouteInfo;
|
|
6
|
+
allRoutesData: unknown;
|
|
6
7
|
};
|
|
7
|
-
export declare function stubRouting(location: string, route: (location: string) => Promise<MatchedRouteInfo>, instanceConfig: InstanceConfig): Promise<StubRouted | null>;
|
|
8
|
+
export declare function stubRouting(location: string, route: (location: string) => Promise<MatchedRouteInfo>, instanceConfig: InstanceConfig, allRoutesData?: (location: string) => Promise<unknown>): Promise<StubRouted | null>;
|
|
8
9
|
//# sourceMappingURL=stubRouting.d.ts.map
|