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/indexInner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// core
|
|
2
|
-
export * from
|
|
2
|
+
export * from './TungstenAppOld.js';
|
|
3
3
|
export { TungstenSimpleComponent, TungstenSimpleComponent as SimpleComponent,
|
|
4
4
|
// static component
|
|
5
5
|
TungstenStatefulComponent, TungstenStatefulComponent as StatefulComponent,
|
|
@@ -7,11 +7,11 @@ TungstenStatefulComponent, TungstenStatefulComponent as StatefulComponent,
|
|
|
7
7
|
//TungstenBaseStoreComponent as TungstenBaseStoreComponent, TungstenBaseStoreComponent as BaseStoreComponent,
|
|
8
8
|
TungstenBaseSimpleStoreComponent, TungstenBaseSimpleStoreComponent as BaseSimpleStoreComponent, TungstenBaseStatefulStoreComponent, TungstenBaseStatefulStoreComponent as BaseStatefulStoreComponent } from "./Components.js";
|
|
9
9
|
// other
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
10
|
+
export * from './alive.js';
|
|
11
|
+
export * from './appOutput.js';
|
|
12
|
+
export * from './AssignedStyle.js'; // assigned style symbol and assigned style type
|
|
13
|
+
export * from './clone.js';
|
|
14
|
+
export * from './components/Await.js';
|
|
15
15
|
export * from "./components/bindable/BindableCheckbox.js";
|
|
16
16
|
export * from "./components/bindable/BindableInput.js";
|
|
17
17
|
export * from "./components/bindable/BindableInputTyped.js";
|
|
@@ -19,58 +19,58 @@ export * from "./components/bindable/BindableRadio.js";
|
|
|
19
19
|
export * from "./components/bindable/BindableSelect.js";
|
|
20
20
|
export * from "./components/bindable/BindableTextarea.js";
|
|
21
21
|
export * from "./components/GoToComponent.js";
|
|
22
|
-
export * from
|
|
22
|
+
export * from './components/Lazy.js';
|
|
23
23
|
export * from "./components/Link.js";
|
|
24
24
|
export * from "./components/PopMessages.js";
|
|
25
25
|
export * from "./components/RawHtml.js";
|
|
26
26
|
export * from "./components/RouteRedirectComponent.js";
|
|
27
|
-
export { parseHtml } from
|
|
28
|
-
export { safeHtmlAllowList } from
|
|
29
|
-
export { sanitizeHtml } from
|
|
30
|
-
export { filterContentNode } from
|
|
31
|
-
export { contentNodeToHtml } from
|
|
27
|
+
export { parseHtml } from './rawHtml/parseHtml.js';
|
|
28
|
+
export { safeHtmlAllowList } from './rawHtml/safeHtmlAllowList.js';
|
|
29
|
+
export { sanitizeHtml } from './rawHtml/sanitizeHtml.js';
|
|
30
|
+
export { filterContentNode } from './rawHtml/filterContentNode.js';
|
|
31
|
+
export { contentNodeToHtml } from './render/contentNodeToHtml.js';
|
|
32
32
|
export * from "./components/WebRedirectComponent.js";
|
|
33
33
|
export * from "./nbsp.js";
|
|
34
|
-
export { pop, dismissPop } from
|
|
35
|
-
export * from
|
|
36
|
-
export { createElement } from
|
|
37
|
-
export * from
|
|
34
|
+
export { pop, dismissPop } from './pop.js';
|
|
35
|
+
export * from './browserStorage.js';
|
|
36
|
+
export { createElement } from './createElement.js';
|
|
37
|
+
export * from './createRef.js';
|
|
38
38
|
//export * from './env/funcs.js'
|
|
39
39
|
//export * from './env/index.js'
|
|
40
|
-
export { foreach } from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
40
|
+
export { foreach } from './foreach.js';
|
|
41
|
+
export * from './helpers/index.js';
|
|
42
|
+
export * from './hooks/index.js';
|
|
43
43
|
export * from "./hydrate/hydrate.js";
|
|
44
|
-
export * from
|
|
44
|
+
export * from './jsxRuntime.js';
|
|
45
45
|
//export { tungstenPrivateEnv, tungstenPublicEnv } from './env/env.js'
|
|
46
46
|
//export * from './env/parseEnv.js'
|
|
47
|
-
export * from
|
|
48
|
-
export { isBrowser } from
|
|
49
|
-
export { isClient } from
|
|
50
|
-
export { isServer } from
|
|
51
|
-
export { isDev } from
|
|
52
|
-
export { isProd } from
|
|
53
|
-
export { logAndReturn } from
|
|
47
|
+
export * from './makeServerRpc.js';
|
|
48
|
+
export { isBrowser } from './isBrowser.js';
|
|
49
|
+
export { isClient } from './isClient.js';
|
|
50
|
+
export { isServer } from './isServer.js';
|
|
51
|
+
export { isDev } from './isDev.js';
|
|
52
|
+
export { isProd } from './isProd.js';
|
|
53
|
+
export { logAndReturn } from './logAndReturn.js';
|
|
54
54
|
//export * from './RenderRoutes.js' // maybe we won't use render routes, instead Router and Route
|
|
55
|
-
export * from
|
|
55
|
+
export * from './requests/index.js';
|
|
56
56
|
//export * from './zones/react.jsx'
|
|
57
|
-
export { registerGlobalData } from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
57
|
+
export { registerGlobalData } from './routing/registerGlobalData.js';
|
|
58
|
+
export * from './routing/MatchedRoute.js';
|
|
59
|
+
export * from './routing/RedirectCode.js';
|
|
60
60
|
export * from "./routing/Route.js";
|
|
61
61
|
export * from "./routing/Router.js";
|
|
62
|
-
export * from
|
|
63
|
-
export * from
|
|
64
|
-
export * from
|
|
65
|
-
export * from
|
|
66
|
-
export * from
|
|
67
|
-
export * from
|
|
68
|
-
export * from
|
|
69
|
-
export * from
|
|
62
|
+
export * from './routing/RouteContentFunction.js';
|
|
63
|
+
export * from './routing/RoutingRedirect.js';
|
|
64
|
+
export * from './routing/WebRedirect.js';
|
|
65
|
+
export * from './when.js';
|
|
66
|
+
export * from './serverRpc.js';
|
|
67
|
+
export * from './settings.js';
|
|
68
|
+
export * from './Store/getStore.js';
|
|
69
|
+
export * from './Store/registerStore.js';
|
|
70
70
|
export * from "./components/Stylesheet.js";
|
|
71
|
-
export { TungstenError } from
|
|
72
|
-
export * from
|
|
73
|
-
export { $original } from
|
|
74
|
-
export * from
|
|
75
|
-
export { StringIsPath, RouteKeyIsPath } from
|
|
76
|
-
export { makeTungstenErrorInfo } from
|
|
71
|
+
export { TungstenError } from './TungstenError.js';
|
|
72
|
+
export * from './__deproxy.js';
|
|
73
|
+
export { $original } from './componentProxyHandlers.js';
|
|
74
|
+
export * from './ContentNode.js'; // types and type guards
|
|
75
|
+
export { StringIsPath, RouteKeyIsPath } from './routing/RouteTypes.js';
|
|
76
|
+
export { makeTungstenErrorInfo } from './routing/TungstenErrorInfo.js';
|
package/dist/isBrowser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isClient as isBrowser } from
|
|
1
|
+
export { isClient as isBrowser } from './isClient.js';
|
package/dist/isDev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TungstenError } from
|
|
1
|
+
import { TungstenError } from './TungstenError.js';
|
|
2
2
|
let isDev = false;
|
|
3
3
|
// Neither global alone identifies the environment:
|
|
4
4
|
// - `process` exists in the browser in dev, because cjsHelpers.js installs a shim so that
|
package/dist/isProd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { isDev } from
|
|
1
|
+
import { isDev } from './isDev.js';
|
|
2
2
|
export const isProd = !isDev;
|
package/dist/isServer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { isBrowser } from
|
|
1
|
+
import { isBrowser } from './isBrowser.js';
|
|
2
2
|
export const isServer = !isBrowser;
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { jsx, jsxs, Fragment } from
|
|
1
|
+
export { jsx, jsxs, Fragment } from './jsxRuntime.js';
|
package/dist/jsxRuntime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsxRuntime.d.ts","sourceRoot":"","sources":["../src/jsxRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,6BAA6B,EAAoD,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAM9C,cAAc,yBAAyB,CAAA;AAGvC,eAAO,MAAM,QAAQ,EAAG,KAAe,CAAA;AAGvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,QAAQ,CAAA;AAkBrE,wBAAgB,GAAG,CACf,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAChE,KAAK,EAAE,6BAA6B,EACpC,GAAG,EAAE,OAAO,GACb,WAAW,
|
|
1
|
+
{"version":3,"file":"jsxRuntime.d.ts","sourceRoot":"","sources":["../src/jsxRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,6BAA6B,EAAoD,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAM9C,cAAc,yBAAyB,CAAA;AAGvC,eAAO,MAAM,QAAQ,EAAG,KAAe,CAAA;AAGvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,QAAQ,CAAA;AAkBrE,wBAAgB,GAAG,CACf,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAChE,KAAK,EAAE,6BAA6B,EACpC,GAAG,EAAE,OAAO,GACb,WAAW,CAiFb;AAID,eAAO,MAAM,IAAI,GAAY,GAAG,MAAM,UAAU,CAAC,OAAO,GAAG,CAAC,gBAG3D,CAAA"}
|
package/dist/jsxRuntime.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TungstenBaseComponent } from "./Components.js";
|
|
2
|
-
import { TungstenError } from
|
|
3
|
-
import { $key, $props, $type } from
|
|
4
|
-
import { packageNameCapitalized } from
|
|
5
|
-
import { throwError } from
|
|
6
|
-
export * from
|
|
2
|
+
import { TungstenError } from './TungstenError.js';
|
|
3
|
+
import { $key, $props, $type } from './contentNodeSymbols.js';
|
|
4
|
+
import { packageNameCapitalized } from './settings.js';
|
|
5
|
+
import { throwError } from './throwError.js';
|
|
6
|
+
export * from './contentNodeSymbols.js';
|
|
7
7
|
//import { inspect } from 'util'
|
|
8
8
|
export const Fragment = 0xeacb; // code taken from react for fragments
|
|
9
9
|
// (?outdated?) this doesn't seem to handle string/number/undefined correctly
|
|
@@ -77,8 +77,13 @@ export function jsx(type, props, key) {
|
|
|
77
77
|
[$key]: key
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
80
|
+
if (type === null) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
// an import that resolved to nothing - a removed or misspelled export, or one caught
|
|
84
|
+
// mid-edit by HMR, which relies on this throw to fall back to a full reload
|
|
85
|
+
if (type === undefined) {
|
|
86
|
+
throw new TungstenError(`${packageNameCapitalized} JSX Runtime error: element type is undefined` + ` - does the import it came from still export it?`);
|
|
82
87
|
}
|
|
83
88
|
if (typeof type === 'number') {
|
|
84
89
|
return String(type);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsxRuntimeSignals.d.ts","sourceRoot":"","sources":["../src/jsxRuntimeSignals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsxRuntimeSignals.d.ts","sourceRoot":"","sources":["../src/jsxRuntimeSignals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI3C,cAAc,yBAAyB,CAAA;AAEvC,eAAO,MAAM,QAAQ,EAAG,KAAe,CAAA;AAEvC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,gBAAgB,GAAG,OAAO,QAAQ,CAAA;AAGrE,eAAO,MAAM,UAAU,eAAiB,CAAA;AAcxC,wBAAgB,GAAG,CACf,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAChE,KAAK,EAAE,6BAA6B,EACpC,GAAG,EAAE,OAAO;;;;;;;;qBA+Df;AAID,eAAO,MAAM,IAAI,YAAM,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TungstenError } from
|
|
2
|
-
import { packageNameCapitalized } from
|
|
3
|
-
import { throwError } from
|
|
4
|
-
export * from
|
|
1
|
+
import { TungstenError } from './TungstenError.js';
|
|
2
|
+
import { packageNameCapitalized } from './settings.js';
|
|
3
|
+
import { throwError } from './throwError.js';
|
|
4
|
+
export * from './contentNodeSymbols.js';
|
|
5
5
|
export const Fragment = 0xeacb; // code taken from react for fragments
|
|
6
6
|
//// TODO use this symbol for type
|
|
7
7
|
export const TypeSymbol = Symbol('type');
|
|
@@ -22,7 +22,9 @@ export function jsx(type, props, key) {
|
|
|
22
22
|
if (Array.isArray(props.class) || typeof props.class === 'string') {
|
|
23
23
|
const classString = Array.isArray(props.class) ? classNameArrayToString(props.class) : props.class;
|
|
24
24
|
if (props.className !== undefined) {
|
|
25
|
-
if (typeof props.className !== 'string')
|
|
25
|
+
if (typeof props.className !== 'string') {
|
|
26
|
+
throwError('jsxRuntime', `expected className prop to be string, instead got ${typeof props.className}`);
|
|
27
|
+
}
|
|
26
28
|
props.className = props.className + ' ' + classString;
|
|
27
29
|
} else {
|
|
28
30
|
props.className = classString;
|
|
@@ -52,13 +54,18 @@ export function jsx(type, props, key) {
|
|
|
52
54
|
key
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
|
-
if (
|
|
56
|
-
return
|
|
57
|
+
if (type === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
// an import that resolved to nothing - a removed or misspelled export, or one caught
|
|
61
|
+
// mid-edit by HMR, which relies on this throw to fall back to a full reload
|
|
62
|
+
if (type === undefined) {
|
|
63
|
+
throw new TungstenError(`${packageNameCapitalized} JSX Runtime error: element type is undefined` + ` - does the import it came from still export it?`);
|
|
57
64
|
}
|
|
58
65
|
if (typeof type === 'number') {
|
|
59
66
|
return String(type);
|
|
60
67
|
}
|
|
61
|
-
throw new TungstenError(`${packageNameCapitalized} JSX Runtime error: did not recognize element
|
|
68
|
+
throw new TungstenError(`${packageNameCapitalized} JSX Runtime error: did not recognize element` + `, expected a string, function, class (type function), or fragment.` + ` Received type ${typeof type}: ${type}`);
|
|
62
69
|
}
|
|
63
70
|
// jsx func for static elements
|
|
64
71
|
// not sure exactly what this is, just use the same func for now
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeFinalConfig.d.ts","sourceRoot":"","sources":["../src/makeFinalConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"makeFinalConfig.d.ts","sourceRoot":"","sources":["../src/makeFinalConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,eAAe,EAAE,uBAAuB,EAAE,wBAAwB,EACrE,MAAM,sBAAsB,CAAA;AAG7B,wBAAgB,eAAe,CAC3B,UAAU,EAAE,eAAe,EAC3B,SAAS,GAAE,wBAAwB,GAAG,IAAW,GAClD,uBAAuB,CAiBzB"}
|
package/dist/makeFinalConfig.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defaultConfig } from
|
|
1
|
+
import { defaultConfig } from './defaultConfig.js';
|
|
2
2
|
export function makeFinalConfig(userConfig, overrides = null) {
|
|
3
3
|
const finalConfig = structuredClone(defaultConfig);
|
|
4
4
|
for (const key in userConfig) {
|
|
5
5
|
//if (Object.prototype.hasOwnProperty.call(userConfig, key)) { // github co-pilot suggestion, unsure if needed
|
|
6
|
-
finalConfig[key] = userConfig[key]; // eslint-disable-line
|
|
6
|
+
finalConfig[key] = userConfig[key]; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
7
7
|
//}
|
|
8
8
|
}
|
|
9
9
|
// an override left undefined keeps the user config / default value
|
|
10
10
|
for (const key in overrides) {
|
|
11
11
|
const value = overrides[key];
|
|
12
12
|
if (value === undefined) continue;
|
|
13
|
-
finalConfig[key] = value; // eslint-disable-line
|
|
13
|
+
finalConfig[key] = value; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion
|
|
14
14
|
}
|
|
15
15
|
return finalConfig;
|
|
16
16
|
}
|
package/dist/makeServerRpc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TungstenError } from
|
|
2
|
-
import { isServer } from
|
|
3
|
-
import { post } from
|
|
1
|
+
import { TungstenError } from './TungstenError.js';
|
|
2
|
+
import { isServer } from './isServer.js';
|
|
3
|
+
import { post } from './requests/index.js';
|
|
4
4
|
// maybe come back to this later
|
|
5
5
|
const config = {
|
|
6
6
|
httpLocation: 'http://localhost:3000'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $props, $type } from
|
|
1
|
+
import { $props, $type } from './contentNodeSymbols.js';
|
|
2
2
|
// An option with no value attribute is identified by its label text, so gather it the way the
|
|
3
3
|
// browser does: script content and raw HTML are not label text, anything else contributes.
|
|
4
4
|
function collectOptionText(node) {
|
|
@@ -10,7 +10,7 @@ function collectOptionText(node) {
|
|
|
10
10
|
}
|
|
11
11
|
if (typeof node === 'string' || typeof node === 'number') return String(node);
|
|
12
12
|
if (typeof node !== 'object') return '';
|
|
13
|
-
const element = node; // eslint-disable-line
|
|
13
|
+
const element = node; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- content and rendering nodes are both { [$type], [$props] }
|
|
14
14
|
if (element[$type] === 'script' || typeof element[$props]?.__html === 'string') return '';
|
|
15
15
|
return collectOptionText(element[$props]?.children);
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeConfigs.d.ts","sourceRoot":"","sources":["../src/mergeConfigs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mergeConfigs.d.ts","sourceRoot":"","sources":["../src/mergeConfigs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAc3D,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAU3H"}
|
package/dist/mergeConfigs.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
//
|
|
1
|
+
// plain data is copied, anything else (functions, class instances) kept by reference - config
|
|
2
|
+
// carries babel plugins, which structuredClone would reject
|
|
3
|
+
function cloneDeep(value) {
|
|
4
|
+
if (Array.isArray(value)) return value.map(cloneDeep); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- array in, array out
|
|
5
|
+
if (typeof value === 'object' && value !== null && Object.getPrototypeOf(value) === Object.prototype) {
|
|
6
|
+
const copy = {};
|
|
7
|
+
for (const [key, entry] of Object.entries(value)) copy[key] = cloneDeep(entry);
|
|
8
|
+
return copy; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- same shape as the input
|
|
9
|
+
}
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
3
12
|
export function mergeConfigs(config1, config2) {
|
|
4
13
|
const newConfig = cloneDeep(config1);
|
|
5
14
|
for (const key in config2) {
|
|
@@ -2,14 +2,14 @@ export const arrayMutatingFunctions = ['push', 'pop', 'shift', 'unshift', 'sort'
|
|
|
2
2
|
export const mapMutatingFunctions = ['set', 'delete', 'clear'];
|
|
3
3
|
export const setMutatingFunctions = ['add', 'delete', 'clear'];
|
|
4
4
|
export function KeyIsArrayMutatingFunction(key) {
|
|
5
|
-
// eslint-disable-next-line
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- weird TS issue, won't let us search in a const array
|
|
6
6
|
return arrayMutatingFunctions.includes(key);
|
|
7
7
|
}
|
|
8
8
|
export function KeyIsMapMutatingFunction(key) {
|
|
9
|
-
// eslint-disable-next-line
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- weird TS issue, won't let us search in a const array
|
|
10
10
|
return mapMutatingFunctions.includes(key);
|
|
11
11
|
}
|
|
12
12
|
export function KeyIsSetMutatingFunction(key) {
|
|
13
|
-
// eslint-disable-next-line
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- weird TS issue, won't let us search in a const array
|
|
14
14
|
return setMutatingFunctions.includes(key);
|
|
15
15
|
}
|
package/dist/nbsp.js
CHANGED
package/dist/output.js
CHANGED
package/dist/pop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isServer } from
|
|
2
|
-
import { log, warn } from
|
|
1
|
+
import { isServer } from './isServer.js';
|
|
2
|
+
import { log, warn } from './appOutput.js';
|
|
3
3
|
// Set once by PopMessages.clientInit, from this.__instance - one Instance per app, shared
|
|
4
4
|
// across the whole client lifetime, so no per-component proxy/subscription is needed here.
|
|
5
5
|
let instance = null;
|
|
@@ -9,12 +9,12 @@ extract classes -> localise
|
|
|
9
9
|
.navItem -> NavItem_navItemf
|
|
10
10
|
.span -> NavItem_span
|
|
11
11
|
*/
|
|
12
|
-
import { parseSelectorsRich } from
|
|
13
|
-
import { scopeAnimationValue } from
|
|
14
|
-
import { unwrapIgnoreMarker } from
|
|
15
|
-
import { componentBumpClass } from
|
|
16
|
-
import { throwError, warnMessage } from
|
|
17
|
-
import { warn } from
|
|
12
|
+
import { parseSelectorsRich } from './parseSelectorsRich.js';
|
|
13
|
+
import { scopeAnimationValue } from './scopeAnimationValue.js';
|
|
14
|
+
import { unwrapIgnoreMarker } from './unwrapIgnoreMarker.js';
|
|
15
|
+
import { componentBumpClass } from '../componentClassName.js';
|
|
16
|
+
import { throwError, warnMessage } from '../throwError.js';
|
|
17
|
+
import { warn } from '../output.js';
|
|
18
18
|
function debug(...texts) {
|
|
19
19
|
//console.log(...texts)
|
|
20
20
|
}
|
|
@@ -178,11 +178,11 @@ export const TransformCssNames = opts => {
|
|
|
178
178
|
const pseudoClassRegex = /:([a-zA-Z0-9-_]+)(?:\((.*)\))?/;
|
|
179
179
|
const results = pseudoClassRegex.exec(content);
|
|
180
180
|
if (results === null) throwError('TransformCssNames -> walkRules', 'pseudo-class selector did not match pseudo-class regex');
|
|
181
|
-
const label = results[1]; // eslint-disable-line
|
|
181
|
+
const label = results[1]; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- typings are incorrect
|
|
182
182
|
// if it is :i(xxx) or :ignore(xxx), pass through the internal part
|
|
183
183
|
// otherwise pass all through unaffected
|
|
184
184
|
if (label === 'i' || label === 'ignore') {
|
|
185
|
-
const inner = results[2]; // eslint-disable-line
|
|
185
|
+
const inner = results[2]; // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- typings are incorrect
|
|
186
186
|
if (inner !== undefined && inner !== '') {
|
|
187
187
|
newSelectors.push(inner);
|
|
188
188
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { throwError } from
|
|
1
|
+
import { throwError } from '../throwError.js';
|
|
2
2
|
// | 'attribute-name-search' | 'attribute-name' | 'attribute-equals-search' | 'attribute-equals'
|
|
3
3
|
// | 'attribute-value-search' | 'attribute-value' | 'attribute-end-search'
|
|
4
4
|
export function parseSelectors(selectorGroup) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { throwError } from
|
|
1
|
+
import { throwError } from '../throwError.js';
|
|
2
2
|
// | 'attribute-name-search' | 'attribute-name' | 'attribute-equals-search' | 'attribute-equals'
|
|
3
3
|
// | 'attribute-value-search' | 'attribute-value' | 'attribute-end-search'
|
|
4
4
|
export function parseSelectorsRich(selectorGroup) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitCssValue } from
|
|
2
|
-
import { unwrapIgnoreMarker } from
|
|
1
|
+
import { splitCssValue } from './splitCssValue.js';
|
|
2
|
+
import { unwrapIgnoreMarker } from './unwrapIgnoreMarker.js';
|
|
3
3
|
// every keyword the animation shorthand accepts. A word that is none of these, and does not
|
|
4
4
|
// read as a time, a number or a function, is the animation name
|
|
5
5
|
const animationKeywords = new Set(['none', 'forwards', 'backwards', 'both',
|
package/dist/propsAreEqual.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { objectTypesToProxy } from
|
|
2
|
-
import { changedAt } from
|
|
3
|
-
import { $key, $props, $type } from
|
|
1
|
+
import { objectTypesToProxy } from './objectTypesToProxy.js';
|
|
2
|
+
import { changedAt } from './stateTracking.js';
|
|
3
|
+
import { $key, $props, $type } from './contentNodeSymbols.js';
|
|
4
4
|
/**
|
|
5
5
|
* Structural comparison of component props, used to skip updating a child whose
|
|
6
6
|
* props have not changed.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContentNodeIsComponent } from
|
|
2
|
-
import { $props, $type } from
|
|
3
|
-
import { StringIsHtmlEvent } from
|
|
4
|
-
import { blockedUrl, makeAllowCheck, removalFor, urlAttributes } from
|
|
1
|
+
import { ContentNodeIsComponent } from '../ContentNode.js';
|
|
2
|
+
import { $props, $type } from '../contentNodeSymbols.js';
|
|
3
|
+
import { StringIsHtmlEvent } from '../htmlEvents.js';
|
|
4
|
+
import { blockedUrl, makeAllowCheck, removalFor, urlAttributes } from './parseHtml.js';
|
|
5
5
|
// The NodeProps equivalent of parseHtml's class->className, style->css
|
|
6
6
|
// rename: the allow list is written in terms of the HTML attribute name, but
|
|
7
7
|
// a content tree already carries Tungsten's prop names for these two.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $props, $type } from
|
|
2
|
-
import { htmlVoidTags } from
|
|
3
|
-
import { tokenizeHtml } from
|
|
4
|
-
import { htmlRawTextTags, htmlTableStructureTags, impliedEndTag } from
|
|
1
|
+
import { $props, $type } from '../contentNodeSymbols.js';
|
|
2
|
+
import { htmlVoidTags } from '../render/htmlVoidTags.js';
|
|
3
|
+
import { tokenizeHtml } from './tokenizeHtml.js';
|
|
4
|
+
import { htmlRawTextTags, htmlTableStructureTags, impliedEndTag } from './htmlParsingTags.js';
|
|
5
5
|
const allowEverything = {
|
|
6
6
|
tag: () => true,
|
|
7
7
|
attribute: () => true
|
|
@@ -134,7 +134,7 @@ export function parseHtml(html, options = {}) {
|
|
|
134
134
|
const current = () => stack[stack.length - 1];
|
|
135
135
|
const close = downTo => {
|
|
136
136
|
while (stack.length > downTo) {
|
|
137
|
-
const element = stack.pop(); // eslint-disable-line
|
|
137
|
+
const element = stack.pop(); // eslint-disable-line @typescript-eslint/no-unsafe-type-assertion -- guarded by the loop
|
|
138
138
|
if (element.removal === 'drop') continue;
|
|
139
139
|
if (element.removal === 'unwrap') current().children.push(...element.children);else current().children.push(toContentNode(element));
|
|
140
140
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { contentNodeToHtml } from
|
|
2
|
-
import { parseHtml } from
|
|
3
|
-
import { safeHtmlAllowList } from
|
|
1
|
+
import { contentNodeToHtml } from '../render/contentNodeToHtml.js';
|
|
2
|
+
import { parseHtml } from './parseHtml.js';
|
|
3
|
+
import { safeHtmlAllowList } from './safeHtmlAllowList.js';
|
|
4
4
|
/**
|
|
5
5
|
* Cleans untrusted HTML and returns it as a string, synchronously.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { decodeHtmlEntities } from
|
|
2
|
-
import { htmlRawTextTags } from
|
|
1
|
+
import { decodeHtmlEntities } from './decodeHtmlEntities.js';
|
|
2
|
+
import { htmlRawTextTags } from './htmlParsingTags.js';
|
|
3
3
|
// REGEX: < then optional / then a letter -- the only thing that starts a tag.
|
|
4
4
|
// Anything else after a < is literal text, which is how browsers treat it too.
|
|
5
5
|
const tagStart = /<\/?[a-zA-Z]/;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable indent */
|
|
2
2
|
//import { packageName, frameworkDistFolder } from '../settings.js'
|
|
3
|
-
import { isDev } from
|
|
4
|
-
import { $props, $type } from
|
|
3
|
+
import { isDev } from '../isDev.js';
|
|
4
|
+
import { $props, $type } from '../contentNodeSymbols.js';
|
|
5
5
|
//import { clientModulesAliases } from '../build/clientModuleAliases.js'
|
|
6
6
|
//const nodeModulesLength = `node_modules/`.length
|
|
7
7
|
export function addImportMap(head, importAliases, clientImportAliases) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { contentTreeToRenderingTree } from
|
|
2
|
-
import { debug } from
|
|
3
|
-
import { makeRenderingNodeClassComponentFromContentNodeClassComponent } from
|
|
4
|
-
import { instantiateClassComponent } from
|
|
1
|
+
import { contentTreeToRenderingTree } from './contentTreeToRenderingTree.js';
|
|
2
|
+
import { debug } from './debug.js';
|
|
3
|
+
import { makeRenderingNodeClassComponentFromContentNodeClassComponent } from '../RenderingNode.js';
|
|
4
|
+
import { instantiateClassComponent } from './instantiateClassComponent.js';
|
|
5
5
|
export async function classComponentNodeToRenderingTree(node, parentComponent, instance, noEscape) {
|
|
6
6
|
const component = await instantiateClassComponent(node, parentComponent, instance);
|
|
7
7
|
//const component = instantiateComponent(node, parentComponent, instance)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentNodeToRenderingTree.d.ts","sourceRoot":"","sources":["../../src/render/componentNodeToRenderingTree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EACH,KAAK,sBAAsB,EAG9B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGhH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKjD,wBAAsB,4BAA4B,CAC9C,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,YAAY,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,GACjH,OAAO,CAAC,sBAAsB,CAAC,
|
|
1
|
+
{"version":3,"file":"componentNodeToRenderingTree.d.ts","sourceRoot":"","sources":["../../src/render/componentNodeToRenderingTree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EACH,KAAK,sBAAsB,EAG9B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGhH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKjD,wBAAsB,4BAA4B,CAC9C,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,YAAY,GAAG,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,GACjH,OAAO,CAAC,sBAAsB,CAAC,CAmCjC"}
|
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import { makeRenderingNodeClassComponentFromContentNodeClassComponent, makeRenderingNodeFunctionComponentFromContentNodeFunctionComponent } from
|
|
2
|
-
import { ContentNodeComponentIsClassComponent } from
|
|
3
|
-
import { classComponentNodeToRenderingTree } from
|
|
4
|
-
import { functionComponentNodeToRenderingTree } from
|
|
5
|
-
import { TungstenError } from
|
|
6
|
-
import { $type } from
|
|
7
|
-
import { contentTreeToRenderingTree } from
|
|
1
|
+
import { makeRenderingNodeClassComponentFromContentNodeClassComponent, makeRenderingNodeFunctionComponentFromContentNodeFunctionComponent } from '../RenderingNode.js';
|
|
2
|
+
import { ContentNodeComponentIsClassComponent } from '../ContentNode.js';
|
|
3
|
+
import { classComponentNodeToRenderingTree } from './classComponentNodeToRenderingTree.js';
|
|
4
|
+
import { functionComponentNodeToRenderingTree } from './functionComponentNodeToRenderingTree.js';
|
|
5
|
+
import { TungstenError } from '../TungstenError.js';
|
|
6
|
+
import { $type } from '../contentNodeSymbols.js';
|
|
7
|
+
import { contentTreeToRenderingTree } from './contentTreeToRenderingTree.js';
|
|
8
8
|
export async function componentNodeToRenderingTree(componentNode, parentComponent, instance, noEscape) {
|
|
9
9
|
//console.log('type', componentNode[$type])
|
|
10
10
|
const render = componentNode[$type].render;
|
|
11
11
|
//console.log('render', render)
|
|
12
12
|
if (render) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
// ComponentRenderInfo only knows the client location; the object form adds a placeholder
|
|
14
|
+
const placeholder = typeof render === 'object' && 'placeholder' in render ? render.placeholder : null;
|
|
15
|
+
const placeholderTree = await contentTreeToRenderingTree(placeholder, parentComponent, instance, noEscape);
|
|
16
|
+
if (ContentNodeComponentIsClassComponent(componentNode)) {
|
|
17
|
+
return makeRenderingNodeClassComponentFromContentNodeClassComponent(componentNode, null, placeholderTree, true);
|
|
17
18
|
} else {
|
|
18
|
-
|
|
19
|
-
if (typeof render === 'object' && 'placeholder') {
|
|
20
|
-
// not sure what this is
|
|
21
|
-
placeholder = render.placeholder;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (location === 'client') {
|
|
25
|
-
const placeholderTree = await contentTreeToRenderingTree(placeholder, parentComponent, instance, noEscape);
|
|
26
|
-
if (ContentNodeComponentIsClassComponent(componentNode)) {
|
|
27
|
-
return makeRenderingNodeClassComponentFromContentNodeClassComponent(componentNode, null, placeholderTree, true);
|
|
28
|
-
} else {
|
|
29
|
-
return makeRenderingNodeFunctionComponentFromContentNodeFunctionComponent(componentNode, null, placeholderTree, true);
|
|
30
|
-
}
|
|
19
|
+
return makeRenderingNodeFunctionComponentFromContentNodeFunctionComponent(componentNode, null, placeholderTree, true);
|
|
31
20
|
}
|
|
32
21
|
}
|
|
33
22
|
//console.log('componentRenderToTree component', component)
|