tungsten 0.4.11 → 0.4.13
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/dist/.build-complete +1 -1
- package/dist/.tsbuildinfo +1 -0
- package/dist/AnyComponent.d.ts.map +1 -1
- package/dist/AnyComponent.js +1 -1
- package/dist/Components.d.ts.map +1 -1
- package/dist/Components.js +25 -23
- package/dist/ContentNode.js +2 -2
- package/dist/DomPointer.js +1 -1
- package/dist/DomRegion.js +3 -3
- package/dist/Framework.d.ts +2 -1
- package/dist/Framework.d.ts.map +1 -1
- package/dist/Framework.js +44 -35
- package/dist/FrameworkConfig.d.ts +16 -0
- package/dist/FrameworkConfig.d.ts.map +1 -1
- package/dist/FunctionComponentStandIn.js +8 -8
- package/dist/Instance/Instance.js +12 -12
- package/dist/RenderedContentNode.d.ts.map +1 -1
- package/dist/RenderedContentNode.js +4 -3
- package/dist/RenderingNode.js +2 -2
- package/dist/Sass.d.ts.map +1 -1
- package/dist/Sass.js +1 -0
- package/dist/Script.js +1 -1
- package/dist/Servers/DevServer.d.ts.map +1 -1
- package/dist/Servers/DevServer.js +33 -32
- package/dist/Servers/ProdServer.js +15 -15
- package/dist/Servers/StaticSiteServer.js +4 -4
- package/dist/Servers/TungstenServer.js +5 -5
- package/dist/Servers/devErrorPageAutoRetry.js +1 -1
- package/dist/Servers/initStores.js +3 -3
- package/dist/Servers/loadEnvsDev.d.ts +1 -1
- package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
- package/dist/Servers/loadEnvsDev.js +10 -8
- package/dist/Servers/routing.d.ts.map +1 -1
- package/dist/Servers/routing.js +4 -4
- package/dist/Store/Store.js +1 -1
- package/dist/Store/TypeSafeStore.js +1 -1
- package/dist/Store/createStores.js +2 -2
- package/dist/Store/makeStore.js +3 -3
- package/dist/Store/registerStore.js +3 -3
- package/dist/TElement.js +1 -1
- package/dist/TungstenApp.js +9 -5
- package/dist/TungstenStyleObject.js +1 -1
- package/dist/__deproxy.js +2 -2
- package/dist/_client/client.js +3 -3
- package/dist/alive.js +1 -1
- package/dist/api/getApiRoutes.js +3 -3
- package/dist/api/getExport.d.ts.map +1 -1
- package/dist/api/getExport.js +5 -4
- package/dist/api/getExportDev.js +1 -1
- package/dist/appOutput.js +1 -1
- package/dist/auth/index.js +2 -2
- package/dist/babelPlugins/BabelAddDevCacheBust.d.ts.map +1 -1
- package/dist/babelPlugins/BabelAddDevCacheBust.js +4 -2
- package/dist/babelPlugins/BabelTransformBindDirect.js +4 -2
- package/dist/babelPlugins/BabelTransformBindVar.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformBindVar.js +3 -3
- package/dist/babelPlugins/BabelTransformCjsToEsm.js +1 -1
- package/dist/babelPlugins/BabelTransformComponentState.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformComponentState.js +2 -2
- package/dist/babelPlugins/BabelTransformComponentStyles.d.ts +2 -0
- package/dist/babelPlugins/BabelTransformComponentStyles.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformComponentStyles.js +32 -15
- package/dist/babelPlugins/BabelTransformCssImports.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformCssImports.js +3 -3
- package/dist/babelPlugins/BabelTransformDependencyImportsOld.js +1 -1
- package/dist/babelPlugins/BabelTransformDeproxyState.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformDeproxyState.js +1 -1
- package/dist/babelPlugins/BabelTransformJsxExtensionsToJs.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformJsxExtensionsToJs.js +6 -2
- package/dist/babelPlugins/BabelTransformPackageImports.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformPackageImports.js +75 -53
- package/dist/babelPlugins/BabelTransformReactive.js +1 -1
- package/dist/babelPlugins/BabelTransformReactiveSvelteStyle.js +1 -1
- package/dist/babelPlugins/BabelTransformRemoveBlocks.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformSxyFrameworkImports.js +1 -1
- package/dist/babelPlugins/BabelTransformUniqueComponents.js +1 -1
- package/dist/babelPlugins/fixImportsInSassErrorMessage.js +1 -1
- package/dist/babelPlugins/test.js +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.js +5 -4
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.js +3 -2
- package/dist/babelPlugins/transformPackageImports/getWebLocationOfPackageFile.js +2 -2
- package/dist/bin/args.js +2 -2
- package/dist/bin/commands/build.js +6 -6
- package/dist/bin/commands/buildHelp.js +1 -1
- package/dist/bin/commands/clean.js +4 -4
- package/dist/bin/commands/compile.d.ts.map +1 -1
- package/dist/bin/commands/compile.js +24 -17
- package/dist/bin/commands/compileSimplePackage.js +3 -2
- package/dist/bin/commands/dev.d.ts.map +1 -1
- package/dist/bin/commands/dev.js +16 -9
- package/dist/bin/commands/devmon.js +4 -4
- package/dist/bin/commands/help.js +2 -2
- package/dist/bin/commands/start.js +2 -2
- package/dist/bin/commands/static.js +3 -3
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +24 -16
- package/dist/bin/moduleLoadAnalysis.js +2 -2
- package/dist/bin/vendorHook.d.ts +3 -0
- package/dist/bin/vendorHook.d.ts.map +1 -0
- package/dist/bin/vendorHook.js +34 -0
- package/dist/browserStorage.js +6 -4
- package/dist/build/babel.user.common.config.d.ts +9 -2
- package/dist/build/babel.user.common.config.d.ts.map +1 -1
- package/dist/build/babel.user.common.config.js +21 -16
- package/dist/build/bundle.d.ts +1 -1
- package/dist/build/bundle.d.ts.map +1 -1
- package/dist/build/bundle.js +15 -7
- package/dist/build/bundleBabelOptions.d.ts +6 -0
- package/dist/build/bundleBabelOptions.d.ts.map +1 -0
- package/dist/build/bundleBabelOptions.js +23 -0
- package/dist/build/combineComponentCss.js +2 -2
- package/dist/build/compileJavascript.d.ts +4 -0
- package/dist/build/compileJavascript.d.ts.map +1 -1
- package/dist/build/compileJavascript.js +174 -103
- package/dist/build/compileStyles.js +8 -8
- package/dist/build/compileUserApp.d.ts +1 -1
- package/dist/build/compileUserApp.d.ts.map +1 -1
- package/dist/build/compileUserApp.js +15 -12
- package/dist/build/componentStylesCache.d.ts +10 -0
- package/dist/build/componentStylesCache.d.ts.map +1 -0
- package/dist/build/componentStylesCache.js +54 -0
- package/dist/build/copyAssets.js +4 -4
- package/dist/build/copyPackageModulesToPackagesFolder.js +4 -4
- package/dist/build/copyPublicFiles.js +4 -4
- package/dist/build/createClientFiles.js +3 -3
- package/dist/build/createInstanceConfigFile.js +2 -2
- package/dist/build/createPackageVirtualFileSystems.js +1 -1
- package/dist/build/devBundle.js +5 -5
- package/dist/build/devBundle.rollup.config.d.ts.map +1 -1
- package/dist/build/devBundle.rollup.config.js +0 -1
- package/dist/build/frameworkDestLocation.d.ts +1 -0
- package/dist/build/frameworkDestLocation.d.ts.map +1 -1
- package/dist/build/frameworkDestLocation.js +8 -4
- package/dist/build/frameworkStylesheets.js +2 -2
- package/dist/build/getAllSxyClientModules.d.ts.map +1 -1
- package/dist/build/getAllSxyClientModules.js +4 -28
- package/dist/build/getPackageDirForFile.js +1 -1
- package/dist/build/getSxyClientPackageAliases.d.ts.map +1 -1
- package/dist/build/getSxyClientPackageAliases.js +4 -2
- package/dist/build/getTempDirForAppCompilation.js +1 -1
- package/dist/build/makeBabelRawConfig.d.ts +3 -0
- package/dist/build/makeBabelRawConfig.d.ts.map +1 -0
- package/dist/build/makeBabelRawConfig.js +12 -0
- package/dist/build/makeBabelUserDevConfig.d.ts +1 -1
- package/dist/build/makeBabelUserDevConfig.d.ts.map +1 -1
- package/dist/build/makeBabelUserDevConfig.js +11 -8
- package/dist/build/makeBabelUserProdConfig.d.ts +1 -1
- package/dist/build/makeBabelUserProdConfig.d.ts.map +1 -1
- package/dist/build/makeBabelUserProdConfig.js +10 -5
- package/dist/build/rollup.user.prod.config.d.ts.map +1 -1
- package/dist/build/rollup.user.prod.config.js +13 -11
- package/dist/build/rollupExtractComponentStylesheets.js +3 -3
- package/dist/build/sassImportParser.js +4 -4
- package/dist/build/tallyBabel.d.ts +3 -0
- package/dist/build/tallyBabel.d.ts.map +1 -0
- package/dist/build/tallyBabel.js +11 -0
- package/dist/calculateImportedStaticFileLocations.js +2 -2
- package/dist/calledFrom.js +2 -2
- package/dist/clone.js +4 -4
- package/dist/compat/context.d.ts.map +1 -1
- package/dist/compat/forwardRef.js +1 -1
- package/dist/compat/index.js +1 -1
- package/dist/compat/types.d.ts.map +1 -1
- package/dist/componentProxyHandlers.d.ts.map +1 -1
- package/dist/componentProxyHandlers.js +8 -12
- package/dist/components/Link.js +2 -2
- package/dist/components/PopMessages.js +3 -3
- package/dist/components/RawHtml.js +2 -2
- package/dist/components/Stylesheet.d.ts +1 -2
- package/dist/components/Stylesheet.d.ts.map +1 -1
- package/dist/components/Stylesheet.js +4 -4
- package/dist/components/bindable/BindableCheckbox.d.ts.map +1 -1
- package/dist/components/bindable/BindableCheckbox.js +1 -1
- package/dist/components/bindable/BindableInput.d.ts.map +1 -1
- package/dist/components/bindable/BindableInput.js +1 -1
- package/dist/components/bindable/BindableInputNonString.js +1 -1
- package/dist/components/bindable/BindableInputString.js +1 -1
- package/dist/components/bindable/BindableInputTyped.js +1 -1
- package/dist/components/bindable/BindableInputTypedLegacy.d.ts.map +1 -1
- package/dist/components/bindable/BindableInputTypedLegacy.js +1 -1
- package/dist/components/bindable/BindableRadio.d.ts.map +1 -1
- package/dist/components/bindable/BindableRadio.js +1 -1
- package/dist/components/bindable/BindableSelect.js +1 -1
- package/dist/components/bindable/BindableTextarea.d.ts.map +1 -1
- package/dist/components/bindable/BindableTextarea.js +1 -1
- package/dist/components/library/RichTextEditor/RichTextEditor.js +10 -10
- package/dist/components/library/RichTextEditor/contentTree.js +5 -5
- package/dist/components/library/RichTextEditor/sanitizeAuthoredHtml.js +2 -2
- package/dist/components/library/__StatefulMessage/StatefulMessage.js +2 -2
- package/dist/components/library/index.js +2 -2
- package/dist/concat.d.ts.map +1 -1
- package/dist/concat.js +2 -2
- package/dist/copy.d.ts.map +1 -1
- package/dist/createElement.js +1 -1
- package/dist/createRoutes.d.ts +1 -1
- package/dist/createRoutes.d.ts.map +1 -1
- package/dist/defaultConfig.d.ts +0 -1
- package/dist/defaultConfig.d.ts.map +1 -1
- package/dist/defaultConfig.js +2 -2
- package/dist/deleteDirs.js +1 -1
- package/dist/env/Env.js +2 -2
- package/dist/env/addToEnv.js +1 -1
- package/dist/env/funcs.js +4 -4
- package/dist/env/getEnvSchemas.d.ts +2 -2
- package/dist/env/getEnvSchemas.d.ts.map +1 -1
- package/dist/env/getEnvSchemas.js +16 -10
- package/dist/env/privateEnv.js +2 -2
- package/dist/env/privateEnvOrThrow.js +1 -1
- package/dist/env/publicEnv.js +1 -1
- package/dist/env/publicEnvOrThrow.js +1 -1
- package/dist/env/windowGlobalEnvStatement.d.ts.map +1 -1
- package/dist/filePathFromUrl.js +1 -1
- package/dist/findProjectDir.d.ts.map +1 -1
- package/dist/findProjectDir.js +19 -5
- package/dist/findUserConfig.js +7 -7
- package/dist/fixExtension.d.ts.map +1 -1
- package/dist/fixExtension.js +5 -3
- package/dist/foreach.js +1 -0
- package/dist/frameworkConfigSchema.d.ts +16 -0
- package/dist/frameworkConfigSchema.d.ts.map +1 -1
- package/dist/frameworkConfigSchema.js +14 -2
- package/dist/getComponent.d.ts.map +1 -1
- package/dist/getComponent.js +5 -5
- package/dist/getComponentDev.d.ts.map +1 -1
- package/dist/getComponentDev.js +1 -1
- package/dist/getFrameworkDir.js +1 -1
- package/dist/getRoutes.d.ts.map +1 -1
- package/dist/getRoutes.js +18 -27
- package/dist/getRoutesDevs.d.ts.map +1 -1
- package/dist/getRoutesDevs.js +1 -1
- package/dist/getStackTrace.js +1 -1
- package/dist/getUserConfig.js +7 -7
- package/dist/glob.d.ts +5 -0
- package/dist/glob.d.ts.map +1 -0
- package/dist/glob.js +103 -0
- package/dist/hasValidKey.js +1 -1
- package/dist/helpers/getFetchCompatibleHeaders.js +2 -2
- package/dist/helpers/index.js +2 -2
- package/dist/hmr/applyHmrModule.js +10 -10
- package/dist/hmr/componentIdentity.js +3 -3
- package/dist/hmr/instanceRegistry.js +2 -2
- package/dist/hooks/clearCurrentComponent.js +1 -1
- package/dist/hooks/getCurrentComponent.js +3 -3
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/setCurrentComponent.js +1 -1
- package/dist/hooks/useCallback.js +2 -2
- package/dist/hooks/useEffect.js +2 -2
- package/dist/hooks/useInstance.js +1 -1
- package/dist/hooks/useMemo.js +2 -2
- package/dist/hooks/useReducer.d.ts.map +1 -1
- package/dist/hooks/useState.d.ts.map +1 -1
- package/dist/hooks/useState.js +3 -9
- package/dist/hydrate/hydrate.d.ts +1 -1
- package/dist/hydrate/hydrate.d.ts.map +1 -1
- package/dist/hydrate/hydrate.js +56 -54
- package/dist/hydrate/reconcileHydratedAttributes.js +5 -5
- package/dist/index.js +2 -2
- package/dist/indexInner.d.ts +1 -1
- package/dist/indexInner.d.ts.map +1 -1
- package/dist/indexInner.js +45 -45
- package/dist/innerHtmlFromProps.js +1 -1
- package/dist/isBrowser.js +1 -1
- package/dist/isDev.js +1 -1
- package/dist/isProd.js +1 -1
- package/dist/isServer.js +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/jsxRuntime.d.ts.map +1 -1
- package/dist/jsxRuntime.js +12 -7
- package/dist/jsxRuntimeSignals.d.ts.map +1 -1
- package/dist/jsxRuntimeSignals.js +15 -8
- package/dist/makeFinalConfig.d.ts.map +1 -1
- package/dist/makeFinalConfig.js +3 -3
- package/dist/makeInstanceConfigFromFrameworkConfig.js +1 -1
- package/dist/makeServerRpc.js +3 -3
- package/dist/markOptionSelected.js +2 -2
- package/dist/mergeConfigs.d.ts.map +1 -1
- package/dist/mergeConfigs.js +11 -2
- package/dist/mutatingFunctions.js +3 -3
- package/dist/nbsp.js +1 -1
- package/dist/output.js +1 -1
- package/dist/pop.js +2 -2
- package/dist/postcssPlugins/TransformCssNames.js +8 -8
- package/dist/postcssPlugins/parseSelectors.js +1 -1
- package/dist/postcssPlugins/parseSelectorsRich.js +1 -1
- package/dist/postcssPlugins/scopeAnimationValue.js +2 -2
- package/dist/propsAreEqual.js +3 -3
- package/dist/rawHtml/filterContentNode.js +4 -4
- package/dist/rawHtml/parseHtml.js +5 -5
- package/dist/rawHtml/sanitizeHtml.js +3 -3
- package/dist/rawHtml/tokenizeHtml.js +2 -2
- package/dist/render/addImportMap.js +2 -2
- package/dist/render/classComponentNodeToRenderingTree.js +4 -4
- package/dist/render/componentNodeToRenderingTree.d.ts.map +1 -1
- package/dist/render/componentNodeToRenderingTree.js +13 -24
- package/dist/render/contentNodeToHtml.js +11 -11
- package/dist/render/contentToHtml.d.ts.map +1 -1
- package/dist/render/contentToHtml.js +5 -5
- package/dist/render/contentToHtmlDev.js +1 -1
- package/dist/render/contentTreeToRenderingTree.js +7 -7
- package/dist/render/functionComponentNodeToRenderingTree.js +4 -4
- package/dist/render/getFunctionBodyAsString.d.ts.map +1 -1
- package/dist/render/getFunctionBodyAsString.js +3 -6
- package/dist/render/instantiateClassComponent.js +2 -2
- package/dist/render/instantiateComponent.js +3 -3
- package/dist/render/instantiateFunctionComponent.js +2 -2
- package/dist/render/printComponentNameInSource.js +1 -1
- package/dist/render/processHead.js +5 -5
- package/dist/render/processHtmlNode.js +1 -1
- package/dist/render/processProps.js +4 -4
- package/dist/render/processRenderingNodeHtml.js +6 -6
- package/dist/render/renderingTreeToHtml.d.ts.map +1 -1
- package/dist/render/renderingTreeToHtml.js +16 -16
- package/dist/render/rootToHtml.d.ts.map +1 -1
- package/dist/render/rootToHtml.js +2 -2
- package/dist/render/rootToHtmlDev.js +1 -1
- package/dist/requests/fetch/delete.js +2 -2
- package/dist/requests/fetch/get.js +3 -3
- package/dist/requests/fetch/patch.js +2 -2
- package/dist/requests/fetch/post.js +2 -2
- package/dist/requests/fetch/put.js +2 -2
- package/dist/requests/index.js +5 -5
- package/dist/routing/MatchedRoute.js +2 -2
- package/dist/routing/Route.js +1 -1
- package/dist/routing/RouteDataFunction.type.d.ts.map +1 -1
- package/dist/routing/RoutesWithSafeParams.js +1 -1
- package/dist/routing/WebRedirect.d.ts.map +1 -1
- package/dist/routing/compareRequestToRegex.js +2 -2
- package/dist/routing/getPathPriority.js +2 -2
- package/dist/routing/matchPath.js +3 -3
- package/dist/routing/patternToRegex.js +1 -1
- package/dist/server.js +3 -3
- package/dist/serverModuleLocation.d.ts +3 -0
- package/dist/serverModuleLocation.d.ts.map +1 -0
- package/dist/serverModuleLocation.js +12 -0
- package/dist/serverRpc.d.ts.map +1 -1
- package/dist/settings.d.ts +4 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +9 -0
- package/dist/slash.d.ts +2 -0
- package/dist/slash.d.ts.map +1 -0
- package/dist/slash.js +5 -0
- package/dist/spawnShellCommand.js +1 -1
- package/dist/standardSchema.js +1 -1
- package/dist/staticGen/getAppRoutes.js +3 -3
- package/dist/staticGen/staticGen.d.ts.map +1 -1
- package/dist/staticGen/staticGen.js +16 -14
- package/dist/staticGen/staticGenFunctions.js +1 -1
- package/dist/style/jssToCss.d.ts.map +1 -1
- package/dist/style/jssToCss.js +13 -11
- package/dist/style/styleContent.js +1 -1
- package/dist/style/styleContentSxy.js +8 -8
- package/dist/style/unusedStyles.d.ts.map +1 -1
- package/dist/style/unusedStyles.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/syncServer/preload.js +1 -1
- package/dist/testing/host.js +12 -12
- package/dist/testing/hydrateTestApp.d.ts.map +1 -1
- package/dist/testing/hydrateTestApp.js +18 -18
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +11 -11
- package/dist/testing/installTestStyleProcessors.js +2 -2
- package/dist/testing/loadEnv.d.ts +4 -1
- package/dist/testing/loadEnv.d.ts.map +1 -1
- package/dist/testing/loadEnv.js +5 -5
- package/dist/testing/temp/componentPackageMock.js +5 -5
- package/dist/testing/temp/contentHtmlElements.js +2 -2
- package/dist/throwError.js +2 -2
- package/dist/timeProfiler.d.ts +5 -1
- package/dist/timeProfiler.d.ts.map +1 -1
- package/dist/timeProfiler.js +76 -24
- package/dist/todo.js +2 -1
- package/dist/update/integrateUpdateVdom.d.ts.map +1 -1
- package/dist/update/integrateUpdateVdom.js +44 -41
- package/dist/update/integrateUpdateVdomPrebuild.js +5 -5
- package/dist/validChildren.js +2 -2
- package/dist/warnOnFrameworkChange.js +2 -2
- package/dist/watch.js +2 -2
- package/dist/zones/react.js +3 -3
- package/package.json +27 -39
- package/types/modules.d.ts +2 -1
- package/vendor/babel-core.js +26 -0
- package/vendor/babel-parser.js +9 -0
- package/vendor/babel-plugin-syntax-import-assertions.js +50 -0
- package/vendor/babel-preset-react.js +872 -0
- package/vendor/babel-preset-typescript.js +26 -0
- package/vendor/babel-types.js +9 -0
- package/vendor/chalk-extensions.js +1994 -0
- package/vendor/chalk.js +647 -0
- package/vendor/chokidar.js +6889 -0
- package/vendor/chunk-1TN2rK3j.js +1218 -0
- package/vendor/chunk-1UuLTU0U.js +34 -0
- package/vendor/chunk-B_NeooyV.js +86 -0
- package/vendor/chunk-C12hSZn7.js +88 -0
- package/vendor/chunk-C3YkUGz5.js +19 -0
- package/vendor/chunk-C3fcZDjl.js +41964 -0
- package/vendor/chunk-C9FSKeSx.js +14603 -0
- package/vendor/chunk-CPArXGxa.js +14623 -0
- package/vendor/cjs-module-lexer.js +6 -0
- package/vendor/dotenv.js +412 -0
- package/vendor/express.js +40577 -0
- package/vendor/import-meta-resolve.js +2201 -0
- package/vendor/manifest.json +29 -0
- package/vendor/postcss.js +8546 -0
- package/vendor/serialize-javascript.js +293 -0
- package/vendor/sxy-lib-arrays.js +113 -0
- package/vendor/sxy-lib-object-copy.js +1781 -0
- package/vendor/sxy-lib-objects.js +156 -0
- package/vendor/sxy-lib-promises.js +47 -0
- package/vendor/sxy-package-investigator.js +202 -0
- package/vendor/valibot.js +7664 -0
- package/dist/Servers/hono/DevServerHono.d.ts +0 -2
- package/dist/Servers/hono/DevServerHono.d.ts.map +0 -1
- package/dist/Servers/hono/DevServerHono.js +0 -423
- package/dist/Servers/hono/ProdServerHono.d.ts +0 -2
- package/dist/Servers/hono/ProdServerHono.d.ts.map +0 -1
- package/dist/Servers/hono/ProdServerHono.js +0 -220
- package/dist/Servers/hono/TungstenServerHono.d.ts +0 -6
- package/dist/Servers/hono/TungstenServerHono.d.ts.map +0 -1
- package/dist/Servers/hono/TungstenServerHono.js +0 -36
- package/dist/api/ApiEndpointHono.d.ts +0 -3
- package/dist/api/ApiEndpointHono.d.ts.map +0 -1
- package/dist/api/ApiEndpointHono.js +0 -1
- package/dist/api/ApiRouteHono.d.ts +0 -7
- package/dist/api/ApiRouteHono.d.ts.map +0 -1
- package/dist/api/ApiRouteHono.js +0 -1
- package/dist/api/ApiRoutesHono.d.ts +0 -5
- package/dist/api/ApiRoutesHono.d.ts.map +0 -1
- package/dist/api/ApiRoutesHono.js +0 -1
- package/dist/api/getApiRoutesHono.d.ts +0 -6
- package/dist/api/getApiRoutesHono.d.ts.map +0 -1
- package/dist/api/getApiRoutesHono.js +0 -14
- package/dist/build/compilePackages.d.ts +0 -2
- package/dist/build/compilePackages.d.ts.map +0 -1
- package/dist/build/compilePackages.js +0 -89
- package/dist/build/findRequiredUserModule.d.ts +0 -2
- package/dist/build/findRequiredUserModule.d.ts.map +0 -1
- package/dist/build/findRequiredUserModule.js +0 -36
- package/dist/build/processPackage.d.ts +0 -4
- package/dist/build/processPackage.d.ts.map +0 -1
- package/dist/build/processPackage.js +0 -91
- package/dist/build/tallyBabelPlugins.d.ts +0 -3
- package/dist/build/tallyBabelPlugins.d.ts.map +0 -1
- package/dist/build/tallyBabelPlugins.js +0 -68
- package/dist/testing/loadEnvSetup.d.ts +0 -2
- package/dist/testing/loadEnvSetup.d.ts.map +0 -1
- package/dist/testing/loadEnvSetup.js +0 -7
- package/sxy-loader.config.js +0 -7
package/dist/timeProfiler.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { performance } from 'node:perf_hooks';
|
|
6
6
|
import { AsyncLocalStorage, createHook } from 'node:async_hooks';
|
|
7
7
|
import chalk from 'chalk-extensions';
|
|
8
|
-
import { cliOut } from
|
|
8
|
+
import { cliOut } from './cliOutput.js';
|
|
9
9
|
// Nesting has to be recorded, not inferred: sibling phases started together sit inside each other's
|
|
10
10
|
// time windows, so intervals alone cannot tell a nested call from a concurrent one. Async storage
|
|
11
11
|
// gives each task its own phase even when several run at once.
|
|
@@ -161,7 +161,9 @@ function reportTimeline() {
|
|
|
161
161
|
// trimmed to what is left of the line - a wrapped note breaks the column alignment of
|
|
162
162
|
// every row after it, which is worse than losing the end of one label
|
|
163
163
|
const notes = fullNotes.slice(0, Math.max(0, columns - rowWidth - 1));
|
|
164
|
-
cliOut(' ' + chalk.yellow`${label.padEnd(labelWidth)}`
|
|
164
|
+
cliOut(' ' + chalk.yellow`${label.padEnd(labelWidth)}`
|
|
165
|
+
// cpu is the figure that says what the phase cost, so it gets the colour
|
|
166
|
+
+ ' ' + chalk.mediumgrey`${ms(phase.end - phase.start).padStart(9)}` + ' ' + chalk.orange`${`cpu ${ms(ownCpu)}`.padStart(13)}` + ' ' + ' '.repeat(from) + bar
|
|
165
167
|
// only pad out to the full bar when something follows it
|
|
166
168
|
+ (notes === '' ? '' : ' '.repeat(barWidth - to) + chalk.mediumgrey`${notes}`));
|
|
167
169
|
}
|
|
@@ -189,32 +191,82 @@ export function reportStartupPhase(name) {
|
|
|
189
191
|
report(name, lastPhaseEnd, now);
|
|
190
192
|
lastPhaseEnd = now;
|
|
191
193
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
const rootTallies = new Map();
|
|
195
|
+
const tallyStack = [];
|
|
196
|
+
function tallyNode(name) {
|
|
197
|
+
const parent = tallyStack[tallyStack.length - 1];
|
|
198
|
+
const siblings = parent === undefined ? rootTallies : parent.children;
|
|
199
|
+
let node = siblings.get(name);
|
|
200
|
+
if (node === undefined) {
|
|
201
|
+
node = {
|
|
202
|
+
name,
|
|
203
|
+
parent,
|
|
204
|
+
children: new Map(),
|
|
205
|
+
calls: 0,
|
|
206
|
+
ms: 0
|
|
207
|
+
};
|
|
208
|
+
siblings.set(name, node);
|
|
209
|
+
}
|
|
210
|
+
return node;
|
|
211
|
+
}
|
|
212
|
+
// Synchronous work only. Concurrent operations overlap, so summing their wall clock counts the
|
|
213
|
+
// same time once per operation - 291 parallel transforms tallied as 689,576ms of an 11s run - and
|
|
214
|
+
// the stack that gives the nesting assumes nothing else runs in between. Time async work with a
|
|
215
|
+
// phase, whose cpu figure is attributed rather than summed.
|
|
216
|
+
export function tallied(name, work) {
|
|
217
|
+
const node = tallyNode(name);
|
|
218
|
+
tallyStack.push(node);
|
|
219
|
+
const start = performance.now();
|
|
220
|
+
try {
|
|
221
|
+
return work();
|
|
222
|
+
} finally {
|
|
223
|
+
node.calls++;
|
|
224
|
+
node.ms += performance.now() - start;
|
|
225
|
+
tallyStack.pop();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
// a tally's totals wherever it sits in the tree, for tests of instrumentation
|
|
229
|
+
export function findTally(name) {
|
|
230
|
+
const search = nodes => {
|
|
231
|
+
for (const node of nodes.values()) {
|
|
232
|
+
if (node.name === name) return node;
|
|
233
|
+
const found = search(node.children);
|
|
234
|
+
if (found !== undefined) return found;
|
|
235
|
+
}
|
|
236
|
+
return undefined;
|
|
237
|
+
};
|
|
238
|
+
const node = search(rootTallies);
|
|
239
|
+
return node === undefined ? undefined : {
|
|
240
|
+
calls: node.calls,
|
|
241
|
+
ms: node.ms
|
|
200
242
|
};
|
|
201
|
-
entry.calls++;
|
|
202
|
-
entry.ms += ms;
|
|
203
|
-
tallies.set(name, entry);
|
|
204
243
|
}
|
|
205
|
-
// Deliberately no async variant. Concurrent operations overlap, so summing their wall clock counts
|
|
206
|
-
// the same time once per operation - 291 parallel transforms tallied as 689,576ms of an 11s run.
|
|
207
|
-
// Time async work with a phase, whose cpu figure is attributed rather than summed.
|
|
208
244
|
function reportTallies() {
|
|
209
|
-
if (
|
|
245
|
+
if (rootTallies.size === 0) return;
|
|
210
246
|
cliOut('');
|
|
211
|
-
cliOut(chalk.mediumgrey`tallied work - synchronous
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
247
|
+
cliOut(chalk.mediumgrey`tallied work - synchronous, nested under what it ran inside; self is the line's own time`);
|
|
248
|
+
const rows = [];
|
|
249
|
+
const collect = (nodes, indent) => {
|
|
250
|
+
for (const node of [...nodes.values()].sort((a, b) => b.ms - a.ms)) {
|
|
251
|
+
rows.push({
|
|
252
|
+
indent,
|
|
253
|
+
node
|
|
254
|
+
});
|
|
255
|
+
collect(node.children, indent + 1);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
collect(rootTallies, 0);
|
|
259
|
+
const nameWidth = Math.max(...rows.map(({
|
|
260
|
+
indent,
|
|
261
|
+
node
|
|
262
|
+
}) => indent * 2 + node.name.length));
|
|
263
|
+
for (const {
|
|
264
|
+
indent,
|
|
265
|
+
node
|
|
266
|
+
} of rows) {
|
|
267
|
+
const childMs = [...node.children.values()].reduce((sum, child) => sum + child.ms, 0);
|
|
268
|
+
const self = node.children.size === 0 ? '' : `self ${ms(node.ms - childMs)}`;
|
|
269
|
+
cliOut(' ' + ' '.repeat(indent * 2) + chalk.yellow`${node.name.padEnd(nameWidth - indent * 2)}` + ' ' + chalk.orange`${ms(node.ms).padStart(10)}` + ' ' + chalk.mediumgrey`${self.padStart(14)}` + ' ' + chalk.mediumgrey`${`${node.calls.toLocaleString()} calls`.padStart(13)}` + ' ' + chalk.mediumgrey`${`${(node.ms / node.calls).toFixed(2)}ms each`}`);
|
|
218
270
|
}
|
|
219
271
|
}
|
|
220
272
|
// Other reports to print where the run total goes - the module load analysis registers itself here.
|
package/dist/todo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrateUpdateVdom.d.ts","sourceRoot":"","sources":["../../src/update/integrateUpdateVdom.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EACH,WAAW,EAAwC,eAAe,EAElE,uBAAuB,EAG1B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAIlD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"integrateUpdateVdom.d.ts","sourceRoot":"","sources":["../../src/update/integrateUpdateVdom.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { IsHTMLElement } from
|
|
2
|
-
import { DomRegion } from
|
|
3
|
-
import { DomPointer } from
|
|
4
|
-
import { ContentNodeComponentIsClassComponent, ContentNodeIsNonRendered, ContentNodeIsLiteral, ContentNodeIsHtml, ContentNodeIsComponent, ContentNodeIsArray, ContentNodeIsElement, ContentNodeElementHasValidKey } from
|
|
5
|
-
import { StringIsHtmlEvent, htmlEvents } from
|
|
6
|
-
import { out, warn } from
|
|
7
|
-
import { getStyledContentFromFunctionComponent } from
|
|
8
|
-
import { FunctionElement } from
|
|
9
|
-
import { jssToCss } from
|
|
10
|
-
import { htmlEventHandlerKey } from
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { validChildren } from "../validChildren.js";
|
|
1
|
+
import { IsHTMLElement } from '../DomNodes.js';
|
|
2
|
+
import { DomRegion } from '../DomRegion.js';
|
|
3
|
+
import { DomPointer } from '../DomPointer.js';
|
|
4
|
+
import { ContentNodeComponentIsClassComponent, ContentNodeIsNonRendered, ContentNodeIsLiteral, ContentNodeIsHtml, ContentNodeIsComponent, ContentNodeIsArray, ContentNodeIsElement, ContentNodeElementHasValidKey } from '../ContentNode.js';
|
|
5
|
+
import { StringIsHtmlEvent, htmlEvents } from '../htmlEvents.js';
|
|
6
|
+
import { out, warn } from '../appOutput.js';
|
|
7
|
+
import { getStyledContentFromFunctionComponent } from '../getStyledContentFromFunctionComponent.js';
|
|
8
|
+
import { FunctionElement } from '../FunctionComponentStandIn.js';
|
|
9
|
+
import { jssToCss } from '../style/jssToCss.js';
|
|
10
|
+
import { htmlEventHandlerKey } from '../htmlEventHandlerKey.js';
|
|
11
|
+
import { $contentNull } from '../symbols.js';
|
|
12
|
+
import { throwError } from '../throwError.js';
|
|
13
|
+
import { $number, $string, RenderedContentNodeIsArray, RenderedContentNodeIsLiteral, makeRenderedContentNodeNonRendered, makeRenderedContentNodeHtml, makeRenderedContentNodeLiteral, RenderedContentNodeIsNonRendered, WideRenderedContentNodeIsArray, WideRenderedContentNodeIsLiteral, WideRenderedContentNodeIsHtml, WideRenderedContentNodeIsComponent, RenderedContentNodeSingleIsHead, RenderedContentNodeSingleIsComponent, RenderedContentNodeSingleIsHtml, RenderedContentNodeIsElement, RenderedContentNodeSingleIsLiteral } from '../RenderedContentNode.js';
|
|
14
|
+
import { hasValidKey } from '../hasValidKey.js';
|
|
15
|
+
import { $key, $props, $routeData, $routeParams, $type } from '../contentNodeSymbols.js';
|
|
16
|
+
import { printComponentNamesInSource } from '../render/printComponentNameInSource.js';
|
|
17
|
+
import { bindableHtmlElementsNumber, bindableHtmlElementsString } from '../components/bindable/bindableHtmlElements.js';
|
|
18
|
+
import { checkedValueToBoolean } from '../checkedValueToBoolean.js';
|
|
19
|
+
import { markOptionSelected } from '../markOptionSelected.js';
|
|
20
|
+
import { innerHtmlFromProps } from '../innerHtmlFromProps.js';
|
|
21
|
+
import { validChildren } from '../validChildren.js';
|
|
23
22
|
import { setCurrentComponent } from 'tungsten/hooks/setCurrentComponent.js';
|
|
24
23
|
import { clearCurrentComponent } from 'tungsten/hooks/clearCurrentComponent.js';
|
|
25
|
-
import { isDev } from
|
|
26
|
-
import { $original } from
|
|
27
|
-
import { booleanAttributeValue } from
|
|
28
|
-
import { propsAreEqual } from
|
|
29
|
-
import { markRendered, refreshTracing, renderedAt, trace, tracing } from
|
|
30
|
-
import { beginMountScope, discardPendingMounts, endMountScope, queueMount } from
|
|
24
|
+
import { isDev } from '../isDev.js';
|
|
25
|
+
import { $original } from '../componentProxyHandlers.js';
|
|
26
|
+
import { booleanAttributeValue } from '../booleanAttributeValue.js';
|
|
27
|
+
import { propsAreEqual } from '../propsAreEqual.js';
|
|
28
|
+
import { markRendered, refreshTracing, renderedAt, trace, tracing } from '../stateTracking.js';
|
|
29
|
+
import { beginMountScope, discardPendingMounts, endMountScope, queueMount } from './pendingMounts.js';
|
|
31
30
|
/**
|
|
32
31
|
* How many dom nodes each element's rendered content currently occupies, recorded on
|
|
33
32
|
* every real update. When an update is skipped for unchanged props the child's dom is
|
|
@@ -80,7 +79,7 @@ function debug(...texts) {
|
|
|
80
79
|
//console.log(...texts)
|
|
81
80
|
//console.log(getStackTrace().split('\n')[2])
|
|
82
81
|
}
|
|
83
|
-
const timing = false; // eslint-disable-line
|
|
82
|
+
const timing = false; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
84
83
|
// need to be adapted to work for func components?
|
|
85
84
|
export async function integrateElementUpdateVdom(element, newContent) {
|
|
86
85
|
let startTime = 0;
|
|
@@ -516,7 +515,7 @@ async function updateComponent({
|
|
|
516
515
|
instance,
|
|
517
516
|
newNode,
|
|
518
517
|
oldNode: oldNode,
|
|
519
|
-
// eslint-disable-line
|
|
518
|
+
// eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- oldNode is proven to be class comp, because type is the same as newNode
|
|
520
519
|
domPointer
|
|
521
520
|
});
|
|
522
521
|
} else {
|
|
@@ -526,7 +525,7 @@ async function updateComponent({
|
|
|
526
525
|
instance,
|
|
527
526
|
newNode,
|
|
528
527
|
oldNode: oldNode,
|
|
529
|
-
// eslint-disable-line
|
|
528
|
+
// eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- oldNode is proven to be function comp, because type is the same as newNode
|
|
530
529
|
domPointer
|
|
531
530
|
});
|
|
532
531
|
}
|
|
@@ -567,7 +566,7 @@ function moveDomNode(domNode, domPointer) {
|
|
|
567
566
|
// is not a child at all (indexOf -1), or index is past the end (undefined).
|
|
568
567
|
// one live-NodeList read, reused as the insertBefore reference below -- see
|
|
569
568
|
// DomPointer.insert() for why these reads are worth counting
|
|
570
|
-
const reference = domPointer.parent.childNodes[domPointer.index]; // eslint-disable-line
|
|
569
|
+
const reference = domPointer.parent.childNodes[domPointer.index]; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- indexing past the end gives undefined, which the DOM types do not model
|
|
571
570
|
if (reference !== domNode) {
|
|
572
571
|
//console.log('document.activeElement', document.activeElement, domNode == document.activeElement, domNode === document.activeElement)
|
|
573
572
|
const ownerDocument = domNode.ownerDocument;
|
|
@@ -583,7 +582,7 @@ function moveDomNode(domNode, domPointer) {
|
|
|
583
582
|
//console.log('had focus', hasFocus)
|
|
584
583
|
if (hasFocus) domNode.focus();
|
|
585
584
|
//console.log('post document.activeElement', document.activeElement)
|
|
586
|
-
if (activeElement) activeElement.focus(); // eslint-disable-line
|
|
585
|
+
if (activeElement) activeElement.focus(); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- activeElement was a focused dom node, so it should have a focus method??
|
|
587
586
|
}
|
|
588
587
|
domPointer.increment();
|
|
589
588
|
}
|
|
@@ -836,7 +835,7 @@ async function createHtmlElement(tungstenElement, instance, node, domPointer, pa
|
|
|
836
835
|
processHtmlNode(node, parentNode);
|
|
837
836
|
debug('-createHtmlElement', node);
|
|
838
837
|
const htmlEl = documentFromParent(domPointer.parent).createElement(node[$type]);
|
|
839
|
-
const extendableEl = htmlEl; // eslint-disable-line
|
|
838
|
+
const extendableEl = htmlEl; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- attributes are attached to the element later
|
|
840
839
|
addAttributes(tungstenElement, instance, node, extendableEl);
|
|
841
840
|
if (node[$type] === 'head') {
|
|
842
841
|
for (const el of instance.persistentHeadChildren) {
|
|
@@ -887,7 +886,7 @@ async function createHtmlElement(tungstenElement, instance, node, domPointer, pa
|
|
|
887
886
|
return {
|
|
888
887
|
...node,
|
|
889
888
|
domNode: htmlEl,
|
|
890
|
-
// eslint-disable-line
|
|
889
|
+
// eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- as TungstenHTMLElement allows us to attach additional props later (for storing event handler funcs)
|
|
891
890
|
renderedChildren
|
|
892
891
|
};
|
|
893
892
|
}
|
|
@@ -903,9 +902,13 @@ function addAttributes(tungstenElement, instance, node, domNode) {
|
|
|
903
902
|
if (StringIsHtmlEvent(key)) {
|
|
904
903
|
debug('add', htmlEvents[key]);
|
|
905
904
|
const eventName = htmlEvents[key];
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
905
|
+
const value = attributes[key];
|
|
906
|
+
// JSX types the prop as a handler; a non-function is a spread of foreign props or a raw
|
|
907
|
+
// content tree, and addEventListener would throw a bare TypeError for it
|
|
908
|
+
if (isDev && typeof value !== 'function') {
|
|
909
|
+
throwError('integrateUpdate', `<${node[$type]}> ${key} is ${typeof value}, not a function`);
|
|
910
|
+
}
|
|
911
|
+
const handler = makeEventListener(tungstenElement, instance, eventName, value);
|
|
909
912
|
// // if its a button without type="submit", prevent default to stop it from submitting forms
|
|
910
913
|
// const handler = (key === 'onClick' && node[$type] === 'button' && node[$props].type !== 'submit')
|
|
911
914
|
// ? (event: Event) => { event.preventDefault(); return (attributes[key] as EventListener)(event) }
|
|
@@ -1431,10 +1434,10 @@ export async function hotSwapClassComponent(oldElement, NewType) {
|
|
|
1431
1434
|
// carry the old state across, unwrapping the old proxy so the new instance's own
|
|
1432
1435
|
// constructor-created proxy (bound to itself) is what ends up owning it
|
|
1433
1436
|
if ('state' in oldElement && oldElement.state !== undefined && 'state' in newElement) {
|
|
1434
|
-
const oldState = oldElement.state; // eslint-disable-line
|
|
1435
|
-
const rawOldState = $original in oldState ? oldState[$original] // eslint-disable-line
|
|
1437
|
+
const oldState = oldElement.state; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- state shape is unknown to this generic dev-only code path
|
|
1438
|
+
const rawOldState = $original in oldState ? oldState[$original] // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- $original always yields the raw backing object
|
|
1436
1439
|
: oldState;
|
|
1437
|
-
const newState = newElement.state; // eslint-disable-line
|
|
1440
|
+
const newState = newElement.state; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- state shape is unknown to this generic dev-only code path
|
|
1438
1441
|
for (const key in rawOldState) newState[key] = rawOldState[key];
|
|
1439
1442
|
}
|
|
1440
1443
|
await newElement.__init();
|
|
@@ -66,7 +66,7 @@ export {};
|
|
|
66
66
|
// //console.log(...texts)
|
|
67
67
|
// //console.log(getStackTrace().split('\n')[2])
|
|
68
68
|
// }
|
|
69
|
-
// const timing = true as boolean // eslint-disable-line
|
|
69
|
+
// const timing = true as boolean // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
70
70
|
// // need to be adapted to work for func components?
|
|
71
71
|
// export async function integrateElementUpdateVdom(
|
|
72
72
|
// element: AnyComponent, newContent: ContentNode
|
|
@@ -552,7 +552,7 @@ export {};
|
|
|
552
552
|
// parent,
|
|
553
553
|
// instance,
|
|
554
554
|
// newNode,
|
|
555
|
-
// oldNode: oldNode as RenderedContentNodeClassComponent, // eslint-disable-line
|
|
555
|
+
// oldNode: oldNode as RenderedContentNodeClassComponent, // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- oldNode is proven to be class comp, because type is the same as newNode
|
|
556
556
|
// domPointer,
|
|
557
557
|
// })
|
|
558
558
|
// } else {
|
|
@@ -561,7 +561,7 @@ export {};
|
|
|
561
561
|
// parent,
|
|
562
562
|
// instance,
|
|
563
563
|
// newNode,
|
|
564
|
-
// oldNode: oldNode as RenderedContentNodeFunctionComponent, // eslint-disable-line
|
|
564
|
+
// oldNode: oldNode as RenderedContentNodeFunctionComponent, // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- oldNode is proven to be function comp, because type is the same as newNode
|
|
565
565
|
// domPointer,
|
|
566
566
|
// })
|
|
567
567
|
// }
|
|
@@ -608,7 +608,7 @@ export {};
|
|
|
608
608
|
// //console.log('had focus', hasFocus)
|
|
609
609
|
// if (hasFocus) domNode.focus()
|
|
610
610
|
// //console.log('post document.activeElement', document.activeElement)
|
|
611
|
-
// if ( activeElement) (activeElement as Element & { focus: () => void } ).focus() // eslint-disable-line
|
|
611
|
+
// if ( activeElement) (activeElement as Element & { focus: () => void } ).focus() // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- activeElement was a focused dom node, so it should have a focus method??
|
|
612
612
|
// }
|
|
613
613
|
// domPointer.increment()
|
|
614
614
|
// }
|
|
@@ -1061,7 +1061,7 @@ export {};
|
|
|
1061
1061
|
// return htmlEl as TungstenHTMLElement
|
|
1062
1062
|
// // return {
|
|
1063
1063
|
// // ...node,
|
|
1064
|
-
// // domNode: htmlEl as TungstenHTMLElement, // eslint-disable-line
|
|
1064
|
+
// // domNode: htmlEl as TungstenHTMLElement, // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- as TungstenHTMLElement allows us to attach additional props later (for storing event handler funcs)
|
|
1065
1065
|
// // renderedChildren
|
|
1066
1066
|
// // }
|
|
1067
1067
|
// }
|
package/dist/validChildren.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentNodeIsRendered } from
|
|
2
|
-
import { RenderingNodeIsRendered } from
|
|
1
|
+
import { ContentNodeIsRendered } from './ContentNode.js';
|
|
2
|
+
import { RenderingNodeIsRendered } from './RenderingNode.js';
|
|
3
3
|
export function validChildren(children) {
|
|
4
4
|
return ContentNodeIsRendered(children);
|
|
5
5
|
//return children === 0 || children
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { join } from 'path';
|
|
2
2
|
import chokidar from 'chokidar';
|
|
3
|
-
import { getFrameworkDir } from
|
|
4
|
-
import { cliWarn } from
|
|
3
|
+
import { getFrameworkDir } from './getFrameworkDir.js';
|
|
4
|
+
import { cliWarn } from './cliOutput.js';
|
|
5
5
|
// Dev mode only, opt-in via warnOnFrameworkChange in tungsten.config.js. Node's ESM module
|
|
6
6
|
// cache can't be invalidated at runtime, so an already-running dev server can't pick up a
|
|
7
7
|
// change to the tungsten package itself (e.g. a linked/workspace copy being rebuilt) without a
|
package/dist/watch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import chokidar from 'chokidar';
|
|
2
|
-
import slash from 'slash';
|
|
2
|
+
import slash from './slash.js';
|
|
3
3
|
export function watch({
|
|
4
4
|
dir,
|
|
5
5
|
patterns,
|
|
@@ -21,7 +21,7 @@ export function watch({
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function addBasePath(base, items) {
|
|
24
|
-
if (base !==
|
|
24
|
+
if (base !== '.' && base !== '') {
|
|
25
25
|
items = Array.isArray(items) ? items.map(item => `${base}/${item}`) : `${base}/${items}`;
|
|
26
26
|
}
|
|
27
27
|
return items;
|
package/dist/zones/react.js
CHANGED
|
@@ -2,9 +2,9 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { TungstenSimpleComponent } from "../Components.js";
|
|
5
|
-
import { createElementRef } from
|
|
6
|
-
import { isServer } from
|
|
7
|
-
import { jsx as _jsx } from "tungsten/
|
|
5
|
+
import { createElementRef } from '../createRef.js';
|
|
6
|
+
import { isServer } from '../isServer.js';
|
|
7
|
+
import { jsx as _jsx } from "tungsten/jsx-runtime";
|
|
8
8
|
export class ReactZone extends TungstenSimpleComponent {
|
|
9
9
|
constructor(...args) {
|
|
10
10
|
super(...args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tungsten",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,112 +13,99 @@
|
|
|
13
13
|
"./library": "./dist/components/library/index.js",
|
|
14
14
|
"./react-zone": "./dist/zones/react.js",
|
|
15
15
|
"./testing": "./dist/testing/index.js",
|
|
16
|
+
"./jsx-runtime": "./dist/jsx-runtime.js",
|
|
16
17
|
"./*": "./dist/*",
|
|
17
18
|
"./types/*": "./types/*"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|
|
21
22
|
"!dist/**/*.sxyt.*",
|
|
23
|
+
"vendor",
|
|
22
24
|
"types",
|
|
23
|
-
"sxy-loader.config.js",
|
|
24
25
|
"readme.md"
|
|
25
26
|
],
|
|
26
27
|
"keywords": [],
|
|
27
28
|
"author": "",
|
|
28
29
|
"license": "UNLICENSED",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=24"
|
|
32
|
+
},
|
|
29
33
|
"dependencies": {
|
|
30
|
-
"@babel/cli": "^7.28.6",
|
|
31
34
|
"@babel/core": "^7.29.0",
|
|
32
35
|
"@babel/parser": "^7.29.2",
|
|
33
36
|
"@babel/plugin-syntax-import-assertions": "^7.29.7",
|
|
34
|
-
"@babel/
|
|
37
|
+
"@babel/preset-env": "^7.29.7",
|
|
35
38
|
"@babel/preset-react": "^7.28.5",
|
|
39
|
+
"@babel/preset-typescript": "^7.29.7",
|
|
36
40
|
"@babel/types": "^7.29.0",
|
|
37
|
-
"@
|
|
38
|
-
"@rollup/plugin-
|
|
39
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
41
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
42
|
+
"@rollup/plugin-commonjs": "^28.0.9",
|
|
40
43
|
"@rollup/plugin-json": "^6.1.0",
|
|
41
|
-
"@rollup/plugin-node-resolve": "^
|
|
44
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
42
45
|
"@rollup/plugin-terser": "^1.0.0",
|
|
43
46
|
"@types/babel__core": "^7.20.5",
|
|
44
47
|
"@types/express": "^5.0.6",
|
|
45
|
-
"babel-plugin-css-to-js": "^0.0.4",
|
|
46
|
-
"babel-plugin-sxy-module-resolver": "^4.1.9",
|
|
47
|
-
"babel-plugin-sxy-transform-cjs-to-esm": "^0.2.6",
|
|
48
48
|
"bcryptjs": "^3.0.3",
|
|
49
49
|
"chalk": "^5.6.2",
|
|
50
50
|
"chalk-extensions": "^2.0.24",
|
|
51
51
|
"chokidar": "^3.6.0",
|
|
52
52
|
"cjs-module-lexer": "^1.4.3",
|
|
53
|
-
"cjstoesm": "^2.1.2",
|
|
54
|
-
"cookie-parser": "^1.4.7",
|
|
55
|
-
"cross-env": "^7.0.3",
|
|
56
53
|
"csstype": "^3.2.3",
|
|
57
|
-
"decamelize": "^6.0.1",
|
|
58
54
|
"dotenv": "^16.6.1",
|
|
59
|
-
"esm-reload": "^1.0.1",
|
|
60
55
|
"express": "^5.2.1",
|
|
61
|
-
"find-package-json": "^1.2.0",
|
|
62
|
-
"fs-extra": "^10.1.0",
|
|
63
|
-
"globby": "^13.2.2",
|
|
64
|
-
"hono": "^4.12.32",
|
|
65
56
|
"import-meta-resolve": "^4.2.0",
|
|
66
|
-
"ini": "^4.1.3",
|
|
67
|
-
"lodash.clonedeep": "^4.5.0",
|
|
68
|
-
"npm-run-all": "^4.1.5",
|
|
69
57
|
"open": "^8.4.2",
|
|
70
|
-
"path-to-regexp": "^8.4.2",
|
|
71
58
|
"postcss": "^8.5.24",
|
|
72
59
|
"precinct": "^12.2.0",
|
|
73
|
-
"react-router": "^6.30.3",
|
|
74
60
|
"require-resolve-hook": "^1.1.0",
|
|
75
|
-
"rollup": "^
|
|
61
|
+
"rollup": "^4.63.1",
|
|
76
62
|
"rollup-plugin-gzip": "^3.1.2",
|
|
77
63
|
"sass": "^1.102.0",
|
|
78
64
|
"serialize-javascript": "^6.0.2",
|
|
79
|
-
"slash": "^4.0.0",
|
|
80
|
-
"sxy-dependency-tree": "^8.1.11",
|
|
81
|
-
"sxy-filing-cabinet": "^3.4.2",
|
|
82
65
|
"sxy-lib": "^3.0.7",
|
|
83
66
|
"sxy-lib-object-copy": "^2.0.5",
|
|
84
|
-
"sxy-loader": "^3.1.0",
|
|
85
67
|
"sxy-package-investigator": "^1.0.0",
|
|
86
68
|
"sxy-types": "^1.0.23",
|
|
87
69
|
"valibot": "^1.4.2"
|
|
88
70
|
},
|
|
89
71
|
"devDependencies": {
|
|
72
|
+
"@babel/cli": "^7.29.7",
|
|
90
73
|
"@babel/generator": "^7.29.1",
|
|
74
|
+
"@stylistic/eslint-plugin": "^3.1.0",
|
|
91
75
|
"@types/babel-types": "^7.0.16",
|
|
92
76
|
"@types/babel__generator": "^7.27.0",
|
|
93
77
|
"@types/chai": "^4.3.20",
|
|
94
|
-
"@types/cookie-parser": "^1.4.10",
|
|
95
|
-
"@types/find-package-json": "^1.2.7",
|
|
96
|
-
"@types/fs-extra": "^11.0.4",
|
|
97
|
-
"@types/ini": "^1.3.34",
|
|
98
|
-
"@types/lodash.clonedeep": "^4.5.9",
|
|
99
78
|
"@types/node": "^24.1.0",
|
|
100
79
|
"@types/react": "19.1.9",
|
|
101
80
|
"@types/react-dom": "19.1.7",
|
|
102
81
|
"@types/serialize-javascript": "^5.0.4",
|
|
103
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
104
|
-
"@typescript-eslint/parser": "^
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
83
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
105
84
|
"babel-plugin-replace-import-extension": "^1.1.5",
|
|
106
85
|
"babel-plugin-sxy-transform-import-extensions": "^1.0.5",
|
|
107
86
|
"babel-plugin-transform-import-extension": "^1.0.3",
|
|
108
87
|
"chai": "^4.5.0",
|
|
88
|
+
"cross-env": "^7.0.3",
|
|
109
89
|
"eslint": "^8.57.1",
|
|
110
90
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
111
91
|
"eslint-plugin-import": "^2.32.0",
|
|
112
92
|
"eslint-plugin-no-type-assertion": "^1.3.0",
|
|
93
|
+
"eslint-plugin-unused-imports": "^3.2.0",
|
|
113
94
|
"happy-dom": "^20.11.1",
|
|
95
|
+
"npm-run-all": "^4.1.5",
|
|
114
96
|
"rimraf": "^5.0.10",
|
|
115
97
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
116
|
-
"sxy-test-runner": "^2.4.
|
|
98
|
+
"sxy-test-runner": "^2.4.9",
|
|
117
99
|
"typescript": "^6.0.3"
|
|
118
100
|
},
|
|
119
101
|
"peerDependencies": {
|
|
120
102
|
"react": "^18.2.0 || ^19.0.0",
|
|
121
|
-
"react-dom": "^18.2.0 || ^19.0.0"
|
|
103
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
104
|
+
},
|
|
105
|
+
"__oldDependencies": {
|
|
106
|
+
"babel-plugin-sxy-module-resolver": "^4.1.9"
|
|
107
|
+
},
|
|
108
|
+
"__oldPeerDependencies": {
|
|
122
109
|
"rollup": "^2.79.1"
|
|
123
110
|
},
|
|
124
111
|
"peerDependenciesMeta": {
|
|
@@ -135,6 +122,7 @@
|
|
|
135
122
|
"clean": "rimraf intermed dist",
|
|
136
123
|
"build-once": "rimraf intermed dist && pnpm build-ts-once && pnpm build-babel-once && pnpm build-component-styles",
|
|
137
124
|
"build-component-styles": "node scripts/buildComponentStyles.mjs",
|
|
125
|
+
"build-vendor": "node scripts/bundleVendor.mjs",
|
|
138
126
|
"build-once-nd": "rimraf intermed dist.building && pnpm build-ts-once && pnpm build-babel-staged && node scripts/syncDist.mjs && node scripts/writeBuildMarker.mjs",
|
|
139
127
|
"build-quick": "pnpm build-watch",
|
|
140
128
|
"build-prep": "pnpm build-ts-once",
|
package/types/modules.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare module '@babel/preset-react'
|
|
2
|
+
declare module '@babel/preset-env'
|
|
3
|
+
declare module '@babel/preset-typescript'
|
|
2
4
|
declare module 'babel-plugin-sxy-module-resolver'
|
|
3
|
-
declare module 'babel-plugin-css-to-js'
|
|
4
5
|
declare module '@babel/plugin-transform-class-properties'
|
|
5
6
|
declare module '@rollup/plugin-node-resolve'
|
|
6
7
|
declare module '@rollup/plugin-commonjs'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire as __tungstenCreateRequire } from 'node:module';
|
|
2
|
+
const require = __tungstenCreateRequire(import.meta.url);
|
|
3
|
+
import { r as requireLib } from './chunk-C3fcZDjl.js';
|
|
4
|
+
import './chunk-C9FSKeSx.js';
|
|
5
|
+
import './chunk-CPArXGxa.js';
|
|
6
|
+
import './chunk-C12hSZn7.js';
|
|
7
|
+
import './chunk-1TN2rK3j.js';
|
|
8
|
+
import 'tty';
|
|
9
|
+
import 'util';
|
|
10
|
+
import 'os';
|
|
11
|
+
import './chunk-C3YkUGz5.js';
|
|
12
|
+
import './chunk-1UuLTU0U.js';
|
|
13
|
+
import 'assert';
|
|
14
|
+
import 'path';
|
|
15
|
+
import 'fs';
|
|
16
|
+
import 'url';
|
|
17
|
+
import 'module';
|
|
18
|
+
import './chunk-B_NeooyV.js';
|
|
19
|
+
import 'process';
|
|
20
|
+
import 'v8';
|
|
21
|
+
|
|
22
|
+
var libExports = requireLib();
|
|
23
|
+
|
|
24
|
+
const __v0 = libExports["DEFAULT_EXTENSIONS"];const __v1 = libExports["File"];const __v2 = libExports["OptionManager"];const __v3 = libExports["Plugin"];const __v4 = libExports["__esModule"];const __v5 = libExports["buildExternalHelpers"];const __v6 = libExports["createConfigItem"];const __v7 = libExports["createConfigItemAsync"];const __v8 = libExports["createConfigItemSync"];const __v9 = libExports["getEnv"];const __v10 = libExports["loadOptions"];const __v11 = libExports["loadOptionsAsync"];const __v12 = libExports["loadOptionsSync"];const __v13 = libExports["loadPartialConfig"];const __v14 = libExports["loadPartialConfigAsync"];const __v15 = libExports["loadPartialConfigSync"];const __v16 = libExports["parse"];const __v17 = libExports["parseAsync"];const __v18 = libExports["parseSync"];const __v19 = libExports["resolvePlugin"];const __v20 = libExports["resolvePreset"];const __v21 = libExports["template"];const __v22 = libExports["tokTypes"];const __v23 = libExports["transform"];const __v24 = libExports["transformAsync"];const __v25 = libExports["transformFile"];const __v26 = libExports["transformFileAsync"];const __v27 = libExports["transformFileSync"];const __v28 = libExports["transformFromAst"];const __v29 = libExports["transformFromAstAsync"];const __v30 = libExports["transformFromAstSync"];const __v31 = libExports["transformSync"];const __v32 = libExports["traverse"];const __v33 = libExports["types"];const __v34 = libExports["version"];
|
|
25
|
+
|
|
26
|
+
export { __v0 as DEFAULT_EXTENSIONS, __v1 as File, __v2 as OptionManager, __v3 as Plugin, __v4 as __esModule, __v5 as buildExternalHelpers, __v6 as createConfigItem, __v7 as createConfigItemAsync, __v8 as createConfigItemSync, libExports as default, __v9 as getEnv, __v10 as loadOptions, __v11 as loadOptionsAsync, __v12 as loadOptionsSync, __v13 as loadPartialConfig, __v14 as loadPartialConfigAsync, __v15 as loadPartialConfigSync, __v16 as parse, __v17 as parseAsync, __v18 as parseSync, __v19 as resolvePlugin, __v20 as resolvePreset, __v21 as template, __v22 as tokTypes, __v23 as transform, __v24 as transformAsync, __v25 as transformFile, __v26 as transformFileAsync, __v27 as transformFileSync, __v28 as transformFromAst, __v29 as transformFromAstAsync, __v30 as transformFromAstSync, __v31 as transformSync, __v32 as traverse, __v33 as types, __v34 as version };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire as __tungstenCreateRequire } from 'node:module';
|
|
2
|
+
const require = __tungstenCreateRequire(import.meta.url);
|
|
3
|
+
import { r as requireLib } from './chunk-CPArXGxa.js';
|
|
4
|
+
|
|
5
|
+
var libExports = requireLib();
|
|
6
|
+
|
|
7
|
+
const __v0 = libExports["__esModule"];const __v1 = libExports["parse"];const __v2 = libExports["parseExpression"];const __v3 = libExports["tokTypes"];
|
|
8
|
+
|
|
9
|
+
export { __v0 as __esModule, libExports as default, __v1 as parse, __v2 as parseExpression, __v3 as tokTypes };
|