@absolutejs/absolute 0.19.0-beta.1041 → 0.19.0-beta.1043
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/package.json +1 -1
- package/dist/angular/browser.js +0 -10358
- package/dist/angular/browser.js.map +0 -260
- package/dist/angular/components/constants.js +0 -101
- package/dist/angular/components/core/streamingSlotRegistrar.js +0 -58
- package/dist/angular/components/core/streamingSlotRegistry.js +0 -114
- package/dist/angular/components/defer-slot-payload.js +0 -6
- package/dist/angular/components/defer-slot-templates.directive.js +0 -44
- package/dist/angular/components/defer-slot.component.js +0 -152
- package/dist/angular/components/image.component.js +0 -202
- package/dist/angular/components/index.js +0 -4
- package/dist/angular/components/stream-slot.component.js +0 -102
- package/dist/angular/hmrPreserveCore.ts +0 -188
- package/dist/angular/index.js +0 -15793
- package/dist/angular/index.js.map +0 -299
- package/dist/angular/server.js +0 -6357
- package/dist/angular/server.js.map +0 -61
- package/dist/build.js +0 -27484
- package/dist/build.js.map +0 -146
- package/dist/cli/config/client.js +0 -527
- package/dist/cli/config/server.js +0 -37130
- package/dist/cli/htmx/htmx.min.js +0 -1
- package/dist/cli/index.js +0 -179275
- package/dist/client/index.js +0 -1267
- package/dist/client/index.js.map +0 -31
- package/dist/core/streamingSlotRegistrar.js +0 -138
- package/dist/core/streamingSlotRegistrar.js.map +0 -10
- package/dist/core/streamingSlotRegistry.js +0 -194
- package/dist/core/streamingSlotRegistry.js.map +0 -11
- package/dist/dev/client/constants.ts +0 -26
- package/dist/dev/client/cssUtils.ts +0 -311
- package/dist/dev/client/domDiff.ts +0 -226
- package/dist/dev/client/domState.ts +0 -423
- package/dist/dev/client/domTracker.ts +0 -61
- package/dist/dev/client/errorOverlay.ts +0 -445
- package/dist/dev/client/frameworkDetect.ts +0 -63
- package/dist/dev/client/handlers/angularHmrShim.ts +0 -88
- package/dist/dev/client/handlers/angularRemount.ts +0 -362
- package/dist/dev/client/handlers/angularRemountWiring.ts +0 -52
- package/dist/dev/client/handlers/html.ts +0 -364
- package/dist/dev/client/handlers/htmx.ts +0 -278
- package/dist/dev/client/handlers/react.ts +0 -108
- package/dist/dev/client/handlers/rebuild.ts +0 -153
- package/dist/dev/client/handlers/svelte.ts +0 -334
- package/dist/dev/client/handlers/vue.ts +0 -292
- package/dist/dev/client/headPatch.ts +0 -233
- package/dist/dev/client/hmrClient.ts +0 -352
- package/dist/dev/client/hmrState.ts +0 -14
- package/dist/dev/client/hmrToast.ts +0 -150
- package/dist/dev/client/moduleVersions.ts +0 -62
- package/dist/dev/client/reactRefreshSetup.ts +0 -31
- package/dist/dev/client/vendor/lview/lViewOps.ts +0 -196
- package/dist/dev/client/vendor/lview/slotConstants.ts +0 -44
- package/dist/dev/client/vendor/reactRefreshRuntime.d.ts +0 -12
- package/dist/dev/client/vendor/reactRefreshRuntime.js +0 -313
- package/dist/image-client/imageClient.js +0 -69
- package/dist/index.js +0 -36361
- package/dist/index.js.map +0 -320
- package/dist/islands/browser.js +0 -259
- package/dist/islands/browser.js.map +0 -15
- package/dist/islands/index.js +0 -2415
- package/dist/islands/index.js.map +0 -37
- package/dist/react/browser.js +0 -374
- package/dist/react/browser.js.map +0 -19
- package/dist/react/components/browser/index.js +0 -467
- package/dist/react/components/index.js +0 -684
- package/dist/react/components/index.js.map +0 -18
- package/dist/react/hooks/index.js +0 -285
- package/dist/react/hooks/index.js.map +0 -14
- package/dist/react/index.js +0 -4258
- package/dist/react/index.js.map +0 -56
- package/dist/react/jsxDevRuntimeCompat.js +0 -90
- package/dist/react/jsxDevRuntimeCompat.js.map +0 -10
- package/dist/react/router/browser.js +0 -95
- package/dist/react/router/browser.js.map +0 -10
- package/dist/react/router/index.js +0 -95
- package/dist/react/router/index.js.map +0 -10
- package/dist/react/server.js +0 -1895
- package/dist/react/server.js.map +0 -26
- package/dist/src/angular/Island.browser.d.ts +0 -34
- package/dist/src/angular/Island.d.ts +0 -29
- package/dist/src/angular/angularDeps.d.ts +0 -2
- package/dist/src/angular/angularPatch.d.ts +0 -1
- package/dist/src/angular/animationProviders.d.ts +0 -2
- package/dist/src/angular/browser.d.ts +0 -14
- package/dist/src/angular/components/constants.d.ts +0 -96
- package/dist/src/angular/components/defer-slot-payload.d.ts +0 -7
- package/dist/src/angular/components/defer-slot-templates.directive.d.ts +0 -21
- package/dist/src/angular/components/defer-slot.component.d.ts +0 -29
- package/dist/src/angular/components/image.component.d.ts +0 -42
- package/dist/src/angular/components/index.d.ts +0 -4
- package/dist/src/angular/components/stream-slot.component.d.ts +0 -20
- package/dist/src/angular/composables/index.d.ts +0 -6
- package/dist/src/angular/composables/usePageContext.d.ts +0 -16
- package/dist/src/angular/composables/useResource.d.ts +0 -57
- package/dist/src/angular/composables/useSubscription.d.ts +0 -33
- package/dist/src/angular/composables/useTimers.d.ts +0 -18
- package/dist/src/angular/createIsland.browser.d.ts +0 -2
- package/dist/src/angular/createIsland.d.ts +0 -2
- package/dist/src/angular/deterministicEnv.d.ts +0 -26
- package/dist/src/angular/hmrPreserveCore.d.ts +0 -21
- package/dist/src/angular/httpTransferCache.d.ts +0 -12
- package/dist/src/angular/index.d.ts +0 -14
- package/dist/src/angular/injectorPatch.d.ts +0 -1
- package/dist/src/angular/islandStore.d.ts +0 -9
- package/dist/src/angular/islands.d.ts +0 -4
- package/dist/src/angular/lowerDeferSyntax.d.ts +0 -18
- package/dist/src/angular/lowerServerIslands.d.ts +0 -1
- package/dist/src/angular/pageHandler.d.ts +0 -48
- package/dist/src/angular/pendingTask.d.ts +0 -1
- package/dist/src/angular/preserveAcrossHmr.d.ts +0 -12
- package/dist/src/angular/renderIsland.d.ts +0 -2
- package/dist/src/angular/requestProviders.d.ts +0 -5
- package/dist/src/angular/resolveAngularPackage.d.ts +0 -19
- package/dist/src/angular/routerRedirectProviders.d.ts +0 -6
- package/dist/src/angular/server.d.ts +0 -4
- package/dist/src/angular/ssrRender.d.ts +0 -13
- package/dist/src/angular/ssrSanitizer.d.ts +0 -3
- package/dist/src/angular/staticAnalyzeSpaRoutes.d.ts +0 -7
- package/dist/src/build/angularLinkerPlugin.d.ts +0 -29
- package/dist/src/build/buildAngularVendor.d.ts +0 -40
- package/dist/src/build/buildDepVendor.d.ts +0 -2
- package/dist/src/build/buildEmberVendor.d.ts +0 -24
- package/dist/src/build/buildReactVendor.d.ts +0 -8
- package/dist/src/build/buildSvelteVendor.d.ts +0 -6
- package/dist/src/build/buildVueVendor.d.ts +0 -6
- package/dist/src/build/chainInlineSourcemaps.d.ts +0 -13
- package/dist/src/build/compileAngular.d.ts +0 -40
- package/dist/src/build/compileEmber.d.ts +0 -43
- package/dist/src/build/compileSvelte.d.ts +0 -14
- package/dist/src/build/compileTailwind.d.ts +0 -5
- package/dist/src/build/compileVue.d.ts +0 -22
- package/dist/src/build/externalAssetPlugin.d.ts +0 -2
- package/dist/src/build/generateManifest.d.ts +0 -2
- package/dist/src/build/generateReactIndexes.d.ts +0 -2
- package/dist/src/build/htmlScriptHMRPlugin.d.ts +0 -13
- package/dist/src/build/index.d.ts +0 -2
- package/dist/src/build/islandEntries.d.ts +0 -32
- package/dist/src/build/islandRegistryTransform.d.ts +0 -17
- package/dist/src/build/nativeRewrite.d.ts +0 -5
- package/dist/src/build/optimizeHtmlImages.d.ts +0 -2
- package/dist/src/build/outputLogs.d.ts +0 -1
- package/dist/src/build/parseAngularConfigImports.d.ts +0 -9
- package/dist/src/build/parseVueSpaRoutes.d.ts +0 -20
- package/dist/src/build/resolvePackageImport.d.ts +0 -9
- package/dist/src/build/rewriteImports.d.ts +0 -8
- package/dist/src/build/rewriteImportsPlugin.d.ts +0 -48
- package/dist/src/build/rewriteReactImports.d.ts +0 -7
- package/dist/src/build/runAngularHandlerScan.d.ts +0 -7
- package/dist/src/build/scanAngularHandlerCalls.d.ts +0 -13
- package/dist/src/build/scanAngularPageRoutes.d.ts +0 -10
- package/dist/src/build/scanConventions.d.ts +0 -5
- package/dist/src/build/scanCssEntryPoints.d.ts +0 -1
- package/dist/src/build/scanEntryPoints.d.ts +0 -1
- package/dist/src/build/scanRouteRegistrations.d.ts +0 -23
- package/dist/src/build/scanVueSsrOnlyPages.d.ts +0 -6
- package/dist/src/build/staticIslandPages.d.ts +0 -9
- package/dist/src/build/stylePreprocessor.d.ts +0 -26
- package/dist/src/build/tailwindCompiler.d.ts +0 -8
- package/dist/src/build/updateAssetPaths.d.ts +0 -1
- package/dist/src/build/vendorEntrySource.d.ts +0 -1
- package/dist/src/build/verifyAngularCoreUniqueness.d.ts +0 -2
- package/dist/src/build/vueAutoRouterTransform.d.ts +0 -1
- package/dist/src/build/wrapHTMLScript.d.ts +0 -17
- package/dist/src/build.d.ts +0 -2
- package/dist/src/cli/add/dependencies.d.ts +0 -12
- package/dist/src/cli/cache.d.ts +0 -15
- package/dist/src/cli/config/absolute/AbsoluteConfigPanel.d.ts +0 -6
- package/dist/src/cli/config/absolute/editAbsoluteConfig.d.ts +0 -5
- package/dist/src/cli/config/absolute/resolveAbsoluteConfig.d.ts +0 -14
- package/dist/src/cli/config/client.d.ts +0 -1
- package/dist/src/cli/config/configCert.d.ts +0 -12
- package/dist/src/cli/config/eslint/EslintPanel.d.ts +0 -6
- package/dist/src/cli/config/eslint/configAst.d.ts +0 -18
- package/dist/src/cli/config/eslint/editConfigRule.d.ts +0 -6
- package/dist/src/cli/config/eslint/eslintStyles.d.ts +0 -1
- package/dist/src/cli/config/eslint/resolveConfig.d.ts +0 -3
- package/dist/src/cli/config/eslint/serializeValue.d.ts +0 -9
- package/dist/src/cli/config/guards.d.ts +0 -4
- package/dist/src/cli/config/packageJson/PackageJsonPanel.d.ts +0 -6
- package/dist/src/cli/config/packageJson/editPackageJson.d.ts +0 -9
- package/dist/src/cli/config/packageJson/resolvePackageJson.d.ts +0 -9
- package/dist/src/cli/config/page/ConfigShell.d.ts +0 -6
- package/dist/src/cli/config/page/FieldEditor.d.ts +0 -9
- package/dist/src/cli/config/page/PanelHost.d.ts +0 -6
- package/dist/src/cli/config/page/configStyles.d.ts +0 -1
- package/dist/src/cli/config/panels.d.ts +0 -7
- package/dist/src/cli/config/prettier/PrettierPanel.d.ts +0 -6
- package/dist/src/cli/config/prettier/editPrettier.d.ts +0 -5
- package/dist/src/cli/config/prettier/resolvePrettier.d.ts +0 -11
- package/dist/src/cli/config/schema/fromJsonSchema.d.ts +0 -3
- package/dist/src/cli/config/schema/fromType.d.ts +0 -2
- package/dist/src/cli/config/schema/serialize.d.ts +0 -1
- package/dist/src/cli/config/server.d.ts +0 -298
- package/dist/src/cli/config/tsconfig/TsconfigPanel.d.ts +0 -6
- package/dist/src/cli/config/tsconfig/editTsconfig.d.ts +0 -5
- package/dist/src/cli/config/tsconfig/resolveTsconfig.d.ts +0 -8
- package/dist/src/cli/config/tsconfig/tsconfigStyles.d.ts +0 -1
- package/dist/src/cli/discoverInstances.d.ts +0 -5
- package/dist/src/cli/generate/componentTemplates.d.ts +0 -7
- package/dist/src/cli/generate/context.d.ts +0 -30
- package/dist/src/cli/generate/cssStrategy.d.ts +0 -20
- package/dist/src/cli/generate/frameworkKey.d.ts +0 -3
- package/dist/src/cli/generate/frameworks.d.ts +0 -40
- package/dist/src/cli/generate/generateApi.d.ts +0 -3
- package/dist/src/cli/generate/generateComponent.d.ts +0 -4
- package/dist/src/cli/generate/generatePage.d.ts +0 -4
- package/dist/src/cli/generate/naming.d.ts +0 -5
- package/dist/src/cli/generate/navData.d.ts +0 -10
- package/dist/src/cli/generate/outcome.d.ts +0 -17
- package/dist/src/cli/generate/pageTemplates.d.ts +0 -11
- package/dist/src/cli/generate/routeWiring.d.ts +0 -40
- package/dist/src/cli/generate/staticNav.d.ts +0 -5
- package/dist/src/cli/htmx/install.d.ts +0 -6
- package/dist/src/cli/index.d.ts +0 -2
- package/dist/src/cli/inspectData.d.ts +0 -11
- package/dist/src/cli/inspectTui.d.ts +0 -1
- package/dist/src/cli/instanceStatus.d.ts +0 -22
- package/dist/src/cli/interactive.d.ts +0 -2
- package/dist/src/cli/psTui.d.ts +0 -1
- package/dist/src/cli/scripts/add.d.ts +0 -1
- package/dist/src/cli/scripts/build.d.ts +0 -1
- package/dist/src/cli/scripts/compile.d.ts +0 -2
- package/dist/src/cli/scripts/dev.d.ts +0 -1
- package/dist/src/cli/scripts/doctor.d.ts +0 -1
- package/dist/src/cli/scripts/env.d.ts +0 -7
- package/dist/src/cli/scripts/eslint.d.ts +0 -16
- package/dist/src/cli/scripts/generate.d.ts +0 -1
- package/dist/src/cli/scripts/htmx.d.ts +0 -1
- package/dist/src/cli/scripts/info.d.ts +0 -1
- package/dist/src/cli/scripts/inspect.d.ts +0 -1
- package/dist/src/cli/scripts/logs.d.ts +0 -1
- package/dist/src/cli/scripts/ls.d.ts +0 -1
- package/dist/src/cli/scripts/mem.d.ts +0 -1
- package/dist/src/cli/scripts/prettier.d.ts +0 -3
- package/dist/src/cli/scripts/ps.d.ts +0 -1
- package/dist/src/cli/scripts/remove.d.ts +0 -1
- package/dist/src/cli/scripts/routes.d.ts +0 -1
- package/dist/src/cli/scripts/start.d.ts +0 -1
- package/dist/src/cli/scripts/telemetry.d.ts +0 -5
- package/dist/src/cli/scripts/tunnelRelay.d.ts +0 -9
- package/dist/src/cli/scripts/typecheck.d.ts +0 -1
- package/dist/src/cli/scripts/workspace.d.ts +0 -11
- package/dist/src/cli/telemetryEvent.d.ts +0 -1
- package/dist/src/cli/tuiPrimitives.d.ts +0 -14
- package/dist/src/cli/utils.d.ts +0 -15
- package/dist/src/cli/workspaceTui.d.ts +0 -44
- package/dist/src/client/hydrators/react.d.ts +0 -3
- package/dist/src/client/hydrators/svelte.d.ts +0 -2
- package/dist/src/client/hydrators/vue.d.ts +0 -2
- package/dist/src/client/index.d.ts +0 -4
- package/dist/src/client/islandResolver.d.ts +0 -2
- package/dist/src/client/islandRuntime.d.ts +0 -9
- package/dist/src/client/islandStore.d.ts +0 -22
- package/dist/src/client/preserveIslandMarkup.d.ts +0 -16
- package/dist/src/client/streamSwap.d.ts +0 -1
- package/dist/src/constants.d.ts +0 -96
- package/dist/src/core/angularServerModule.d.ts +0 -1
- package/dist/src/core/build.d.ts +0 -14
- package/dist/src/core/currentIslandRegistry.d.ts +0 -7
- package/dist/src/core/devBuild.d.ts +0 -23
- package/dist/src/core/devRouteRegistrationCallsite.d.ts +0 -4
- package/dist/src/core/devVendorPaths.d.ts +0 -17
- package/dist/src/core/index.d.ts +0 -7
- package/dist/src/core/islandManifest.d.ts +0 -3
- package/dist/src/core/islandMarkupAttributes.d.ts +0 -12
- package/dist/src/core/islandPageContext.d.ts +0 -12
- package/dist/src/core/islandSsr.d.ts +0 -6
- package/dist/src/core/islands.d.ts +0 -16
- package/dist/src/core/loadIslandRegistry.d.ts +0 -1
- package/dist/src/core/lookup.d.ts +0 -1
- package/dist/src/core/normalizeIslandProps.d.ts +0 -15
- package/dist/src/core/pageHandlers.d.ts +0 -5
- package/dist/src/core/prepare.d.ts +0 -417
- package/dist/src/core/prerender.d.ts +0 -31
- package/dist/src/core/renderIslandMarkup.d.ts +0 -13
- package/dist/src/core/responseEnhancers.d.ts +0 -10
- package/dist/src/core/staticStreaming.d.ts +0 -25
- package/dist/src/core/streamingSlotRegistrar.d.ts +0 -16
- package/dist/src/core/streamingSlotRegistry.d.ts +0 -2
- package/dist/src/core/streamingSlotWarningScope.d.ts +0 -4
- package/dist/src/core/svelteServerModule.d.ts +0 -1
- package/dist/src/core/vueServerModule.d.ts +0 -1
- package/dist/src/core/wrapPageHandlerWithStreamingSlots.d.ts +0 -2
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +0 -58
- package/dist/src/dev/angular/hmrCompiler.d.ts +0 -2
- package/dist/src/dev/angular/hmrImportGenerator.d.ts +0 -3
- package/dist/src/dev/angular/hmrInjectionPlugin.d.ts +0 -8
- package/dist/src/dev/angular/resolveOwningComponents.d.ts +0 -16
- package/dist/src/dev/angular/vendor/translator/api/ast_factory.d.ts +0 -363
- package/dist/src/dev/angular/vendor/translator/api/import_generator.d.ts +0 -49
- package/dist/src/dev/angular/vendor/translator/context.d.ts +0 -18
- package/dist/src/dev/angular/vendor/translator/translator.d.ts +0 -75
- package/dist/src/dev/angular/vendor/translator/ts_util.d.ts +0 -12
- package/dist/src/dev/angular/vendor/translator/typescript_ast_factory.d.ts +0 -66
- package/dist/src/dev/angular/vendor/translator/typescript_translator.d.ts +0 -13
- package/dist/src/dev/assetStore.d.ts +0 -8
- package/dist/src/dev/buildHMRClient.d.ts +0 -1
- package/dist/src/dev/clientManager.d.ts +0 -33
- package/dist/src/dev/configResolver.d.ts +0 -16
- package/dist/src/dev/dependencyGraph.d.ts +0 -10
- package/dist/src/dev/devCert.d.ts +0 -11
- package/dist/src/dev/fileHashTracker.d.ts +0 -2
- package/dist/src/dev/fileWatcher.d.ts +0 -4
- package/dist/src/dev/moduleMapper.d.ts +0 -27
- package/dist/src/dev/moduleServer.d.ts +0 -24
- package/dist/src/dev/moduleVersionTracker.d.ts +0 -7
- package/dist/src/dev/pathUtils.d.ts +0 -8
- package/dist/src/dev/reactComponentClassifier.d.ts +0 -2
- package/dist/src/dev/rebuildTrigger.d.ts +0 -11
- package/dist/src/dev/requestInspector.d.ts +0 -43
- package/dist/src/dev/serverEntryWatcher.d.ts +0 -5
- package/dist/src/dev/simpleHTMLHMR.d.ts +0 -4
- package/dist/src/dev/simpleHTMXHMR.d.ts +0 -4
- package/dist/src/dev/transformCache.d.ts +0 -22
- package/dist/src/dev/tunnel/client.d.ts +0 -20
- package/dist/src/dev/tunnel/protocol.d.ts +0 -85
- package/dist/src/dev/tunnel/relay.d.ts +0 -28
- package/dist/src/dev/webSocket.d.ts +0 -9
- package/dist/src/ember/browser.d.ts +0 -24
- package/dist/src/ember/index.d.ts +0 -2
- package/dist/src/ember/pageHandler.d.ts +0 -35
- package/dist/src/ember/server.d.ts +0 -2
- package/dist/src/index.d.ts +0 -7
- package/dist/src/islands/browser.d.ts +0 -3
- package/dist/src/islands/index.d.ts +0 -3
- package/dist/src/islands/pageMetadata.d.ts +0 -13
- package/dist/src/islands/sourceMetadata.d.ts +0 -10
- package/dist/src/plugins/devtoolsJson.d.ts +0 -58
- package/dist/src/plugins/hmr.d.ts +0 -163
- package/dist/src/plugins/imageOptimizer.d.ts +0 -67
- package/dist/src/plugins/index.d.ts +0 -3
- package/dist/src/plugins/networking.d.ts +0 -2
- package/dist/src/plugins/pageRouter.d.ts +0 -1
- package/dist/src/react/Island.browser.d.ts +0 -2
- package/dist/src/react/Island.d.ts +0 -2
- package/dist/src/react/bridgeInternals.d.ts +0 -1
- package/dist/src/react/browser.d.ts +0 -3
- package/dist/src/react/components/Head.d.ts +0 -2
- package/dist/src/react/components/Image.d.ts +0 -2
- package/dist/src/react/components/JsonLd.d.ts +0 -4
- package/dist/src/react/components/StreamSlot.browser.d.ts +0 -10
- package/dist/src/react/components/StreamSlot.d.ts +0 -10
- package/dist/src/react/components/SuspenseSlot.browser.d.ts +0 -22
- package/dist/src/react/components/SuspenseSlot.d.ts +0 -37
- package/dist/src/react/components/browser/index.d.ts +0 -5
- package/dist/src/react/components/index.d.ts +0 -5
- package/dist/src/react/createIsland.browser.d.ts +0 -2
- package/dist/src/react/createIsland.d.ts +0 -2
- package/dist/src/react/hooks/index.d.ts +0 -3
- package/dist/src/react/hooks/useIslandStore.d.ts +0 -3
- package/dist/src/react/hooks/useMediaQuery.d.ts +0 -7
- package/dist/src/react/index.d.ts +0 -4
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +0 -8
- package/dist/src/react/pageHandler.d.ts +0 -25
- package/dist/src/react/router/UniversalRouter.d.ts +0 -43
- package/dist/src/react/router/browser.d.ts +0 -2
- package/dist/src/react/router/index.d.ts +0 -2
- package/dist/src/react/server.d.ts +0 -1
- package/dist/src/react/staticAnalyzeSpaRoutes.d.ts +0 -7
- package/dist/src/svelte/browser.d.ts +0 -4
- package/dist/src/svelte/createIsland.browser.d.ts +0 -2
- package/dist/src/svelte/createIsland.d.ts +0 -2
- package/dist/src/svelte/index.d.ts +0 -6
- package/dist/src/svelte/islandStore.d.ts +0 -5
- package/dist/src/svelte/lowerAwaitSlotSyntax.d.ts +0 -4
- package/dist/src/svelte/lowerIslandSyntax.d.ts +0 -4
- package/dist/src/svelte/pageHandler.d.ts +0 -28
- package/dist/src/svelte/renderIsland.d.ts +0 -2
- package/dist/src/svelte/renderToPipeableStream.d.ts +0 -12
- package/dist/src/svelte/renderToReadableStream.d.ts +0 -14
- package/dist/src/svelte/renderToString.d.ts +0 -9
- package/dist/src/svelte/resolveIslandHtml.browser.d.ts +0 -2
- package/dist/src/svelte/resolveIslandHtml.d.ts +0 -2
- package/dist/src/svelte/router/browser.d.ts +0 -4
- package/dist/src/svelte/router/goto.d.ts +0 -15
- package/dist/src/svelte/router/hashMode.d.ts +0 -16
- package/dist/src/svelte/router/index.d.ts +0 -4
- package/dist/src/svelte/router/matchPath.d.ts +0 -30
- package/dist/src/svelte/router/page.svelte.d.ts +0 -15
- package/dist/src/svelte/router/prefetchCache.d.ts +0 -17
- package/dist/src/svelte/router/pushState.d.ts +0 -13
- package/dist/src/svelte/router/viewTransitions.d.ts +0 -6
- package/dist/src/svelte/server.d.ts +0 -1
- package/dist/src/svelte/staticAnalyzeSpaRoutes.d.ts +0 -7
- package/dist/src/utils/buildDirectoryLock.d.ts +0 -28
- package/dist/src/utils/cleanStaleOutputs.d.ts +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -9
- package/dist/src/utils/commonAncestor.d.ts +0 -1
- package/dist/src/utils/defineConfig.d.ts +0 -39
- package/dist/src/utils/defineConvention.d.ts +0 -3
- package/dist/src/utils/defineEnv.d.ts +0 -10
- package/dist/src/utils/escapeScriptContent.d.ts +0 -1
- package/dist/src/utils/formatBytes.d.ts +0 -2
- package/dist/src/utils/generateHeadElement.d.ts +0 -4
- package/dist/src/utils/generateSitemap.d.ts +0 -21
- package/dist/src/utils/generatedDir.d.ts +0 -3
- package/dist/src/utils/getDurationString.d.ts +0 -1
- package/dist/src/utils/getEnv.d.ts +0 -1
- package/dist/src/utils/imageClient.d.ts +0 -13
- package/dist/src/utils/imageProcessing.d.ts +0 -33
- package/dist/src/utils/index.d.ts +0 -11
- package/dist/src/utils/inlinePageCss.d.ts +0 -2
- package/dist/src/utils/instanceRegistry.d.ts +0 -13
- package/dist/src/utils/jsonLd.d.ts +0 -3
- package/dist/src/utils/loadConfig.d.ts +0 -55
- package/dist/src/utils/logger.d.ts +0 -56
- package/dist/src/utils/networking.d.ts +0 -2
- package/dist/src/utils/normalizePath.d.ts +0 -9
- package/dist/src/utils/portScan.d.ts +0 -22
- package/dist/src/utils/projectRoot.d.ts +0 -17
- package/dist/src/utils/registerClientScript.d.ts +0 -36
- package/dist/src/utils/resolveConvention.d.ts +0 -10
- package/dist/src/utils/resolveDevPort.d.ts +0 -24
- package/dist/src/utils/runtimeMode.d.ts +0 -3
- package/dist/src/utils/spaRouteCss.d.ts +0 -4
- package/dist/src/utils/spaRouteTypes.d.ts +0 -25
- package/dist/src/utils/ssrErrorPage.d.ts +0 -1
- package/dist/src/utils/startupBanner.d.ts +0 -10
- package/dist/src/utils/startupTimings.d.ts +0 -7
- package/dist/src/utils/streamingSlotMetricSink.d.ts +0 -18
- package/dist/src/utils/streamingSlots.d.ts +0 -76
- package/dist/src/utils/stringModifiers.d.ts +0 -3
- package/dist/src/utils/userAgentFunctions.d.ts +0 -1
- package/dist/src/utils/validateSafePath.d.ts +0 -1
- package/dist/src/vue/Island.browser.d.ts +0 -37
- package/dist/src/vue/Island.d.ts +0 -36
- package/dist/src/vue/browser.d.ts +0 -6
- package/dist/src/vue/components/Image.d.ts +0 -74
- package/dist/src/vue/components/StreamSlot.d.ts +0 -22
- package/dist/src/vue/components/SuspenseSlot.d.ts +0 -26
- package/dist/src/vue/components/index.d.ts +0 -3
- package/dist/src/vue/createIsland.browser.d.ts +0 -13
- package/dist/src/vue/createIsland.d.ts +0 -13
- package/dist/src/vue/defineVuePage.d.ts +0 -6
- package/dist/src/vue/index.d.ts +0 -9
- package/dist/src/vue/pageHandler.d.ts +0 -45
- package/dist/src/vue/routerRedirectProviders.d.ts +0 -45
- package/dist/src/vue/server.d.ts +0 -2
- package/dist/src/vue/staticAnalyzeSpaRoutes.d.ts +0 -7
- package/dist/src/vue/useIslandStore.d.ts +0 -3
- package/dist/svelte/browser.js +0 -309
- package/dist/svelte/browser.js.map +0 -19
- package/dist/svelte/components/AwaitSlot.svelte +0 -39
- package/dist/svelte/components/AwaitSlot.svelte.d.ts +0 -2
- package/dist/svelte/components/Head.svelte +0 -144
- package/dist/svelte/components/Head.svelte.d.ts +0 -2
- package/dist/svelte/components/Image.svelte +0 -164
- package/dist/svelte/components/Image.svelte.d.ts +0 -5
- package/dist/svelte/components/Island.svelte +0 -71
- package/dist/svelte/components/Island.svelte.d.ts +0 -5
- package/dist/svelte/components/JsonLd.svelte +0 -21
- package/dist/svelte/components/JsonLd.svelte.d.ts +0 -2
- package/dist/svelte/components/StreamSlot.svelte +0 -41
- package/dist/svelte/components/StreamSlot.svelte.d.ts +0 -2
- package/dist/svelte/index.js +0 -4371
- package/dist/svelte/index.js.map +0 -60
- package/dist/svelte/router/Link.svelte +0 -124
- package/dist/svelte/router/Link.svelte.d.ts +0 -21
- package/dist/svelte/router/Route.svelte +0 -54
- package/dist/svelte/router/Route.svelte.d.ts +0 -13
- package/dist/svelte/router/Router.svelte +0 -189
- package/dist/svelte/router/Router.svelte.d.ts +0 -16
- package/dist/svelte/router/browser.ts +0 -14
- package/dist/svelte/router/goto.ts +0 -89
- package/dist/svelte/router/hashMode.ts +0 -31
- package/dist/svelte/router/index.ts +0 -23
- package/dist/svelte/router/matchPath.ts +0 -136
- package/dist/svelte/router/page.d.ts +0 -15
- package/dist/svelte/router/page.js +0 -27
- package/dist/svelte/router/prefetchCache.ts +0 -85
- package/dist/svelte/router/pushState.ts +0 -35
- package/dist/svelte/router/viewTransitions.ts +0 -35
- package/dist/svelte/server.js +0 -2996
- package/dist/svelte/server.js.map +0 -33
- package/dist/types/absoluteConfig.d.ts +0 -22
- package/dist/types/angular.d.ts +0 -43
- package/dist/types/build.d.ts +0 -245
- package/dist/types/cli.d.ts +0 -71
- package/dist/types/client.d.ts +0 -70
- package/dist/types/config.d.ts +0 -50
- package/dist/types/conventions.d.ts +0 -26
- package/dist/types/ember.d.ts +0 -39
- package/dist/types/env.d.ts +0 -2
- package/dist/types/eslintConfig.d.ts +0 -68
- package/dist/types/globals.d.ts +0 -163
- package/dist/types/image.d.ts +0 -77
- package/dist/types/index.d.ts +0 -17
- package/dist/types/island.d.ts +0 -52
- package/dist/types/jsonLd.d.ts +0 -300
- package/dist/types/mediaQuery.d.ts +0 -9
- package/dist/types/messages.d.ts +0 -152
- package/dist/types/metadata.d.ts +0 -51
- package/dist/types/packageJson.d.ts +0 -74
- package/dist/types/packageJsonPanel.d.ts +0 -29
- package/dist/types/prettier.d.ts +0 -26
- package/dist/types/react.d.ts +0 -2
- package/dist/types/sitemap.d.ts +0 -24
- package/dist/types/style-module-shim.d.ts +0 -29
- package/dist/types/svelte.d.ts +0 -2
- package/dist/types/svelteRouter.d.ts +0 -65
- package/dist/types/svelteRouter.ts +0 -91
- package/dist/types/telemetry.d.ts +0 -15
- package/dist/types/tool.d.ts +0 -11
- package/dist/types/tsconfig.d.ts +0 -31
- package/dist/types/typeGuards.d.ts +0 -2
- package/dist/types/userAgentTypes.d.ts +0 -2
- package/dist/types/vue.d.ts +0 -56
- package/dist/types/websocket.d.ts +0 -6
- package/dist/vue/browser.js +0 -512
- package/dist/vue/browser.js.map +0 -22
- package/dist/vue/components/Image.js +0 -264
- package/dist/vue/components/Image.js.map +0 -12
- package/dist/vue/components/index.js +0 -571
- package/dist/vue/components/index.js.map +0 -15
- package/dist/vue/index.js +0 -5238
- package/dist/vue/index.js.map +0 -69
- package/dist/vue/server.js +0 -2251
- package/dist/vue/server.js.map +0 -32
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { Component, computed, input, signal } from '@angular/core';
|
|
2
|
-
import { NgStyle } from '@angular/common';
|
|
3
|
-
import { DEFAULT_QUALITY, buildOptimizedUrl, generateBlurSvg, generateSrcSet } from '@absolutejs/absolute/image';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/** Resolve the blur background CSS value from placeholder config */
|
|
6
|
-
const resolveBlurBg = (placeholderValue, blurDataUrl) => {
|
|
7
|
-
if (typeof placeholderValue === 'string' &&
|
|
8
|
-
placeholderValue !== 'blur' &&
|
|
9
|
-
placeholderValue.startsWith('data:')) {
|
|
10
|
-
return generateBlurSvg(placeholderValue);
|
|
11
|
-
}
|
|
12
|
-
if (blurDataUrl)
|
|
13
|
-
return generateBlurSvg(blurDataUrl);
|
|
14
|
-
return undefined;
|
|
15
|
-
};
|
|
16
|
-
export class ImageComponent {
|
|
17
|
-
constructor() {
|
|
18
|
-
// ── Inputs ──────────────────────────────────────────────────
|
|
19
|
-
this.alt = input.required(...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
|
|
20
|
-
this.blurDataURL = input(...(ngDevMode ? [undefined, { debugName: "blurDataURL" }] : /* istanbul ignore next */ []));
|
|
21
|
-
this.className = input(...(ngDevMode ? [undefined, { debugName: "className" }] : /* istanbul ignore next */ []));
|
|
22
|
-
this.crossOrigin = input(...(ngDevMode ? [undefined, { debugName: "crossOrigin" }] : /* istanbul ignore next */ []));
|
|
23
|
-
this.fetchPriority = input(...(ngDevMode ? [undefined, { debugName: "fetchPriority" }] : /* istanbul ignore next */ []));
|
|
24
|
-
this.fill = input(false, ...(ngDevMode ? [{ debugName: "fill" }] : /* istanbul ignore next */ []));
|
|
25
|
-
this.height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
|
|
26
|
-
this.loader = input(...(ngDevMode ? [undefined, { debugName: "loader" }] : /* istanbul ignore next */ []));
|
|
27
|
-
this.loading = input('lazy', ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
28
|
-
this.onError = input(...(ngDevMode ? [undefined, { debugName: "onError" }] : /* istanbul ignore next */ []));
|
|
29
|
-
this.onLoad = input(...(ngDevMode ? [undefined, { debugName: "onLoad" }] : /* istanbul ignore next */ []));
|
|
30
|
-
this.overrideSrc = input(...(ngDevMode ? [undefined, { debugName: "overrideSrc" }] : /* istanbul ignore next */ []));
|
|
31
|
-
this.placeholder = input('empty', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
32
|
-
this.priority = input(false, ...(ngDevMode ? [{ debugName: "priority" }] : /* istanbul ignore next */ []));
|
|
33
|
-
this.quality = input(DEFAULT_QUALITY, ...(ngDevMode ? [{ debugName: "quality" }] : /* istanbul ignore next */ []));
|
|
34
|
-
this.referrerPolicy = input(...(ngDevMode ? [undefined, { debugName: "referrerPolicy" }] : /* istanbul ignore next */ []));
|
|
35
|
-
this.sizes = input(...(ngDevMode ? [undefined, { debugName: "sizes" }] : /* istanbul ignore next */ []));
|
|
36
|
-
this.src = input.required(...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
37
|
-
this.style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
|
|
38
|
-
this.unoptimized = input(false, ...(ngDevMode ? [{ debugName: "unoptimized" }] : /* istanbul ignore next */ []));
|
|
39
|
-
this.width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
40
|
-
// ── Internal state ──────────────────────────────────────────
|
|
41
|
-
this.blurRemoved = signal(false, ...(ngDevMode ? [{ debugName: "blurRemoved" }] : /* istanbul ignore next */ []));
|
|
42
|
-
// ── Computed ────────────────────────────────────────────────
|
|
43
|
-
this.resolvedSrc = computed(() => {
|
|
44
|
-
const override = this.overrideSrc();
|
|
45
|
-
if (override)
|
|
46
|
-
return override;
|
|
47
|
-
if (this.unoptimized())
|
|
48
|
-
return this.src();
|
|
49
|
-
const loaderFn = this.loader();
|
|
50
|
-
if (loaderFn)
|
|
51
|
-
return loaderFn({
|
|
52
|
-
quality: this.quality(),
|
|
53
|
-
src: this.src(),
|
|
54
|
-
width: this.width() ?? 0
|
|
55
|
-
});
|
|
56
|
-
const currentWidth = this.width();
|
|
57
|
-
if (!currentWidth)
|
|
58
|
-
return buildOptimizedUrl(this.src(), 0, this.quality());
|
|
59
|
-
return buildOptimizedUrl(this.src(), currentWidth, this.quality());
|
|
60
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedSrc" }] : /* istanbul ignore next */ []));
|
|
61
|
-
this.srcSet = computed(() => this.unoptimized()
|
|
62
|
-
? null
|
|
63
|
-
: (generateSrcSet(this.src(), this.width(), this.sizes(), undefined, this.loader() ?? undefined) ?? null), ...(ngDevMode ? [{ debugName: "srcSet" }] : /* istanbul ignore next */ []));
|
|
64
|
-
this.resolvedSrcSet = computed(() => this.srcSet() ?? null, ...(ngDevMode ? [{ debugName: "resolvedSrcSet" }] : /* istanbul ignore next */ []));
|
|
65
|
-
this.resolvedSizes = computed(() => this.sizes() ?? (this.fill() ? '100vw' : null), ...(ngDevMode ? [{ debugName: "resolvedSizes" }] : /* istanbul ignore next */ []));
|
|
66
|
-
this.resolvedCrossOrigin = computed(() => this.crossOrigin() ?? null, ...(ngDevMode ? [{ debugName: "resolvedCrossOrigin" }] : /* istanbul ignore next */ []));
|
|
67
|
-
this.resolvedReferrerPolicy = computed(() => this.referrerPolicy() ?? null, ...(ngDevMode ? [{ debugName: "resolvedReferrerPolicy" }] : /* istanbul ignore next */ []));
|
|
68
|
-
this.resolvedLoading = computed(() => this.priority() ? 'eager' : this.loading(), ...(ngDevMode ? [{ debugName: "resolvedLoading" }] : /* istanbul ignore next */ []));
|
|
69
|
-
this.resolvedFetchPriority = computed(() => this.priority() ? 'high' : (this.fetchPriority() ?? null), ...(ngDevMode ? [{ debugName: "resolvedFetchPriority" }] : /* istanbul ignore next */ []));
|
|
70
|
-
this.imgStyle = computed(() => {
|
|
71
|
-
const base = {
|
|
72
|
-
...(this.style() ?? {}),
|
|
73
|
-
color: 'transparent'
|
|
74
|
-
};
|
|
75
|
-
const hasBlur = !this.blurRemoved() &&
|
|
76
|
-
(this.placeholder() === 'blur' ||
|
|
77
|
-
(typeof this.placeholder() === 'string' &&
|
|
78
|
-
this.placeholder() !== 'empty' &&
|
|
79
|
-
(this.placeholder() ?? '').startsWith('data:')));
|
|
80
|
-
const blurValue = hasBlur
|
|
81
|
-
? resolveBlurBg(this.placeholder(), this.blurDataURL())
|
|
82
|
-
: undefined;
|
|
83
|
-
if (blurValue) {
|
|
84
|
-
base['background-image'] = blurValue;
|
|
85
|
-
base['background-position'] = 'center';
|
|
86
|
-
base['background-repeat'] = 'no-repeat';
|
|
87
|
-
base['background-size'] = 'cover';
|
|
88
|
-
}
|
|
89
|
-
if (this.fill()) {
|
|
90
|
-
base.height = '100%';
|
|
91
|
-
base.inset = '0';
|
|
92
|
-
base['object-fit'] = 'cover';
|
|
93
|
-
base.position = 'absolute';
|
|
94
|
-
base.width = '100%';
|
|
95
|
-
}
|
|
96
|
-
return base;
|
|
97
|
-
}, ...(ngDevMode ? [{ debugName: "imgStyle" }] : /* istanbul ignore next */ []));
|
|
98
|
-
}
|
|
99
|
-
// ── Event handlers ──────────────────────────────────────────
|
|
100
|
-
handleLoad(event) {
|
|
101
|
-
this.blurRemoved.set(true);
|
|
102
|
-
const callback = this.onLoad();
|
|
103
|
-
if (callback)
|
|
104
|
-
callback(event);
|
|
105
|
-
}
|
|
106
|
-
handleError(event) {
|
|
107
|
-
const callback = this.onError();
|
|
108
|
-
if (callback)
|
|
109
|
-
callback(event);
|
|
110
|
-
}
|
|
111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: ImageComponent, isStandalone: true, selector: "abs-image", inputs: { alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: true, transformFunction: null }, blurDataURL: { classPropertyName: "blurDataURL", publicName: "blurDataURL", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, crossOrigin: { classPropertyName: "crossOrigin", publicName: "crossOrigin", isSignal: true, isRequired: false, transformFunction: null }, fetchPriority: { classPropertyName: "fetchPriority", publicName: "fetchPriority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, loader: { classPropertyName: "loader", publicName: "loader", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, onError: { classPropertyName: "onError", publicName: "onError", isSignal: true, isRequired: false, transformFunction: null }, onLoad: { classPropertyName: "onLoad", publicName: "onLoad", isSignal: true, isRequired: false, transformFunction: null }, overrideSrc: { classPropertyName: "overrideSrc", publicName: "overrideSrc", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, quality: { classPropertyName: "quality", publicName: "quality", isSignal: true, isRequired: false, transformFunction: null }, referrerPolicy: { classPropertyName: "referrerPolicy", publicName: "referrerPolicy", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, unoptimized: { classPropertyName: "unoptimized", publicName: "unoptimized", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
113
|
-
@if (fill()) {
|
|
114
|
-
<span
|
|
115
|
-
style="position:relative;overflow:hidden;display:block;width:100%;height:100%"
|
|
116
|
-
>
|
|
117
|
-
<img
|
|
118
|
-
[alt]="alt()"
|
|
119
|
-
[src]="resolvedSrc()"
|
|
120
|
-
[attr.srcset]="resolvedSrcSet()"
|
|
121
|
-
[attr.sizes]="resolvedSizes()"
|
|
122
|
-
[loading]="resolvedLoading()"
|
|
123
|
-
[class]="className()"
|
|
124
|
-
[ngStyle]="imgStyle()"
|
|
125
|
-
[attr.crossorigin]="resolvedCrossOrigin()"
|
|
126
|
-
[attr.referrerpolicy]="resolvedReferrerPolicy()"
|
|
127
|
-
[attr.fetchpriority]="resolvedFetchPriority()"
|
|
128
|
-
decoding="async"
|
|
129
|
-
(load)="handleLoad($event)"
|
|
130
|
-
(error)="handleError($event)"
|
|
131
|
-
/>
|
|
132
|
-
</span>
|
|
133
|
-
} @else {
|
|
134
|
-
<img
|
|
135
|
-
[alt]="alt()"
|
|
136
|
-
[src]="resolvedSrc()"
|
|
137
|
-
[attr.srcset]="resolvedSrcSet()"
|
|
138
|
-
[attr.sizes]="resolvedSizes()"
|
|
139
|
-
[width]="width()"
|
|
140
|
-
[height]="height()"
|
|
141
|
-
[loading]="resolvedLoading()"
|
|
142
|
-
[class]="className()"
|
|
143
|
-
[ngStyle]="imgStyle()"
|
|
144
|
-
[attr.crossorigin]="resolvedCrossOrigin()"
|
|
145
|
-
[attr.referrerpolicy]="resolvedReferrerPolicy()"
|
|
146
|
-
[attr.fetchpriority]="resolvedFetchPriority()"
|
|
147
|
-
decoding="async"
|
|
148
|
-
(load)="handleLoad($event)"
|
|
149
|
-
(error)="handleError($event)"
|
|
150
|
-
/>
|
|
151
|
-
}
|
|
152
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
153
|
-
}
|
|
154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ImageComponent, decorators: [{
|
|
155
|
-
type: Component,
|
|
156
|
-
args: [{
|
|
157
|
-
imports: [NgStyle],
|
|
158
|
-
selector: 'abs-image',
|
|
159
|
-
standalone: true,
|
|
160
|
-
template: `
|
|
161
|
-
@if (fill()) {
|
|
162
|
-
<span
|
|
163
|
-
style="position:relative;overflow:hidden;display:block;width:100%;height:100%"
|
|
164
|
-
>
|
|
165
|
-
<img
|
|
166
|
-
[alt]="alt()"
|
|
167
|
-
[src]="resolvedSrc()"
|
|
168
|
-
[attr.srcset]="resolvedSrcSet()"
|
|
169
|
-
[attr.sizes]="resolvedSizes()"
|
|
170
|
-
[loading]="resolvedLoading()"
|
|
171
|
-
[class]="className()"
|
|
172
|
-
[ngStyle]="imgStyle()"
|
|
173
|
-
[attr.crossorigin]="resolvedCrossOrigin()"
|
|
174
|
-
[attr.referrerpolicy]="resolvedReferrerPolicy()"
|
|
175
|
-
[attr.fetchpriority]="resolvedFetchPriority()"
|
|
176
|
-
decoding="async"
|
|
177
|
-
(load)="handleLoad($event)"
|
|
178
|
-
(error)="handleError($event)"
|
|
179
|
-
/>
|
|
180
|
-
</span>
|
|
181
|
-
} @else {
|
|
182
|
-
<img
|
|
183
|
-
[alt]="alt()"
|
|
184
|
-
[src]="resolvedSrc()"
|
|
185
|
-
[attr.srcset]="resolvedSrcSet()"
|
|
186
|
-
[attr.sizes]="resolvedSizes()"
|
|
187
|
-
[width]="width()"
|
|
188
|
-
[height]="height()"
|
|
189
|
-
[loading]="resolvedLoading()"
|
|
190
|
-
[class]="className()"
|
|
191
|
-
[ngStyle]="imgStyle()"
|
|
192
|
-
[attr.crossorigin]="resolvedCrossOrigin()"
|
|
193
|
-
[attr.referrerpolicy]="resolvedReferrerPolicy()"
|
|
194
|
-
[attr.fetchpriority]="resolvedFetchPriority()"
|
|
195
|
-
decoding="async"
|
|
196
|
-
(load)="handleLoad($event)"
|
|
197
|
-
(error)="handleError($event)"
|
|
198
|
-
/>
|
|
199
|
-
}
|
|
200
|
-
`
|
|
201
|
-
}]
|
|
202
|
-
}], propDecorators: { alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: true }] }], blurDataURL: [{ type: i0.Input, args: [{ isSignal: true, alias: "blurDataURL", required: false }] }], className: [{ type: i0.Input, args: [{ isSignal: true, alias: "className", required: false }] }], crossOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "crossOrigin", required: false }] }], fetchPriority: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetchPriority", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], loader: [{ type: i0.Input, args: [{ isSignal: true, alias: "loader", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], onError: [{ type: i0.Input, args: [{ isSignal: true, alias: "onError", required: false }] }], onLoad: [{ type: i0.Input, args: [{ isSignal: true, alias: "onLoad", required: false }] }], overrideSrc: [{ type: i0.Input, args: [{ isSignal: true, alias: "overrideSrc", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], quality: [{ type: i0.Input, args: [{ isSignal: true, alias: "quality", required: false }] }], referrerPolicy: [{ type: i0.Input, args: [{ isSignal: true, alias: "referrerPolicy", required: false }] }], sizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "sizes", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: true }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], unoptimized: [{ type: i0.Input, args: [{ isSignal: true, alias: "unoptimized", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }] } });
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { DeferSlotComponent } from './defer-slot.component.js';
|
|
2
|
-
export { DeferErrorTemplateDirective, DeferFallbackTemplateDirective, DeferResolvedTemplateDirective } from './defer-slot-templates.directive.js';
|
|
3
|
-
export { ImageComponent } from './image.component.js';
|
|
4
|
-
export { StreamSlotComponent } from './stream-slot.component.js';
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, inject, signal } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { isStreamingSlotCollectionActive, registerStreamingSlot, warnMissingStreamingSlotCollector } from './core/streamingSlotRegistrar.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
const isObjectRecord = (value) => Boolean(value) && typeof value === 'object';
|
|
6
|
-
const isHtmlPayload = (payload) => isObjectRecord(payload) && typeof payload.html === 'string';
|
|
7
|
-
const resolvePayloadHtml = (payload) => {
|
|
8
|
-
if (isHtmlPayload(payload)) {
|
|
9
|
-
return payload.html;
|
|
10
|
-
}
|
|
11
|
-
return typeof payload === 'string' ? payload : '';
|
|
12
|
-
};
|
|
13
|
-
export class StreamSlotComponent {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
16
|
-
this.sanitizer = inject(DomSanitizer);
|
|
17
|
-
this.slotConsumer = (payload) => {
|
|
18
|
-
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(resolvePayloadHtml(payload)));
|
|
19
|
-
this.cdr.markForCheck();
|
|
20
|
-
return true;
|
|
21
|
-
};
|
|
22
|
-
this.fallbackHtml = '';
|
|
23
|
-
this.currentHtml = signal('', ...(ngDevMode ? [{ debugName: "currentHtml" }] : /* istanbul ignore next */ []));
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
if (isStreamingSlotCollectionActive()) {
|
|
27
|
-
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
|
|
28
|
-
registerStreamingSlot({
|
|
29
|
-
errorHtml: this.errorHtml,
|
|
30
|
-
fallbackHtml: this.fallbackHtml,
|
|
31
|
-
id: this.id,
|
|
32
|
-
resolve: this.resolve,
|
|
33
|
-
timeoutMs: this.timeoutMs
|
|
34
|
-
});
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
warnMissingStreamingSlotCollector('StreamSlot');
|
|
38
|
-
if (typeof window === 'undefined') {
|
|
39
|
-
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
const absoluteWindow = window;
|
|
43
|
-
const consumers = (absoluteWindow.__ABS_SLOT_CONSUMERS__ =
|
|
44
|
-
absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {});
|
|
45
|
-
consumers[this.id] = this.slotConsumer;
|
|
46
|
-
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
|
|
47
|
-
const pendingPayload = absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
|
|
48
|
-
if (pendingPayload !== undefined) {
|
|
49
|
-
this.slotConsumer(pendingPayload);
|
|
50
|
-
delete absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
ngOnDestroy() {
|
|
54
|
-
if (typeof window === 'undefined')
|
|
55
|
-
return;
|
|
56
|
-
const absoluteWindow = window;
|
|
57
|
-
if (absoluteWindow.__ABS_SLOT_CONSUMERS__) {
|
|
58
|
-
delete absoluteWindow.__ABS_SLOT_CONSUMERS__[this.id];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: StreamSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", type: StreamSlotComponent, isStandalone: true, selector: "abs-stream-slot", inputs: { className: "className", errorHtml: "errorHtml", fallbackHtml: "fallbackHtml", id: "id", resolve: "resolve", timeoutMs: "timeoutMs" }, ngImport: i0, template: `
|
|
63
|
-
<div
|
|
64
|
-
[attr.id]="id"
|
|
65
|
-
[attr.class]="className"
|
|
66
|
-
data-absolute-raw-slot="true"
|
|
67
|
-
data-absolute-slot="true"
|
|
68
|
-
[innerHTML]="currentHtml()"
|
|
69
|
-
></div>
|
|
70
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
71
|
-
}
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: StreamSlotComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{
|
|
75
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
76
|
-
selector: 'abs-stream-slot',
|
|
77
|
-
standalone: true,
|
|
78
|
-
template: `
|
|
79
|
-
<div
|
|
80
|
-
[attr.id]="id"
|
|
81
|
-
[attr.class]="className"
|
|
82
|
-
data-absolute-raw-slot="true"
|
|
83
|
-
data-absolute-slot="true"
|
|
84
|
-
[innerHTML]="currentHtml()"
|
|
85
|
-
></div>
|
|
86
|
-
`
|
|
87
|
-
}]
|
|
88
|
-
}], propDecorators: { className: [{
|
|
89
|
-
type: Input
|
|
90
|
-
}], errorHtml: [{
|
|
91
|
-
type: Input
|
|
92
|
-
}], fallbackHtml: [{
|
|
93
|
-
type: Input
|
|
94
|
-
}], id: [{
|
|
95
|
-
type: Input,
|
|
96
|
-
args: [{ required: true }]
|
|
97
|
-
}], resolve: [{
|
|
98
|
-
type: Input,
|
|
99
|
-
args: [{ required: true }]
|
|
100
|
-
}], timeoutMs: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}] } });
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/* hmrPreserveCore — shared HMR preservation utilities, with no Angular
|
|
2
|
-
imports. Used by both `preserveAcrossHmr` (the user-facing helper that
|
|
3
|
-
adds OnPush `markForCheck` behavior on top) and the dev-client HMR
|
|
4
|
-
handler (which calls `captureTrackedInstanceStates` before destroying
|
|
5
|
-
the running app and `endHmrReboot` once the new app has stabilized).
|
|
6
|
-
|
|
7
|
-
Splitting these out lets the dev-client HMR handler — which has no
|
|
8
|
-
need for `@angular/core` — call into the same capture/restore logic
|
|
9
|
-
as the user-facing helper without forcing an Angular core import into
|
|
10
|
-
the dev-client bundle. The state itself lives on `globalThis`, so
|
|
11
|
-
both consumers see exactly the same tracker / cache / flag. */
|
|
12
|
-
|
|
13
|
-
export type StateCache = Map<string, Record<string, unknown>>;
|
|
14
|
-
export type InstanceTracker = Set<WeakRef<object>>;
|
|
15
|
-
export type InstanceKeyMap = WeakMap<object, string>;
|
|
16
|
-
export type RebootFlag = { value: boolean };
|
|
17
|
-
export type RebootStats = { captured: number; restoredKeys: Set<string> };
|
|
18
|
-
|
|
19
|
-
type PreserveScope = typeof globalThis & {
|
|
20
|
-
__ABS_HMR_INSTANCE_STATE__?: StateCache;
|
|
21
|
-
__ABS_HMR_TRACKED_INSTANCES__?: InstanceTracker;
|
|
22
|
-
__ABS_HMR_INSTANCE_KEYS__?: InstanceKeyMap;
|
|
23
|
-
__ABS_HMR_REBOOT_IN_PROGRESS__?: RebootFlag;
|
|
24
|
-
__ABS_HMR_REBOOT_STATS__?: RebootStats;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const buildCacheKey = (
|
|
28
|
-
instance: object,
|
|
29
|
-
key?: unknown
|
|
30
|
-
) => {
|
|
31
|
-
const className = instance.constructor?.name;
|
|
32
|
-
if (!className || className === 'Object') return null;
|
|
33
|
-
const suffix = key === undefined || key === null ? '' : String(key);
|
|
34
|
-
|
|
35
|
-
return `${className}:${suffix}`;
|
|
36
|
-
};
|
|
37
|
-
export const captureTrackedInstanceStates = () => {
|
|
38
|
-
if (!isHmrPreserveDev()) return;
|
|
39
|
-
|
|
40
|
-
const cache = getCache();
|
|
41
|
-
const tracker = getTracker();
|
|
42
|
-
const keyMap = getKeyMap();
|
|
43
|
-
const stats = getRebootStats();
|
|
44
|
-
const seen = new Set<string>();
|
|
45
|
-
|
|
46
|
-
cache.clear();
|
|
47
|
-
stats.restoredKeys.clear();
|
|
48
|
-
stats.captured = 0;
|
|
49
|
-
|
|
50
|
-
for (const ref of tracker) {
|
|
51
|
-
const instance = ref.deref();
|
|
52
|
-
// Skip already-GC'd refs. We don't bother bookkeeping a "dead"
|
|
53
|
-
// list because the entire tracker is cleared after this loop.
|
|
54
|
-
if (!instance) continue;
|
|
55
|
-
|
|
56
|
-
const fullKey = keyMap.get(instance) ?? buildCacheKey(instance);
|
|
57
|
-
if (fullKey === null) continue;
|
|
58
|
-
|
|
59
|
-
// Warn when two instances would collide on the same cache slot
|
|
60
|
-
// (same className with no key, or duplicate user-supplied keys).
|
|
61
|
-
// On collision the second instance's state silently overwrites
|
|
62
|
-
// the first — pass an explicit `key` to differentiate.
|
|
63
|
-
if (seen.has(fullKey)) {
|
|
64
|
-
console.warn(
|
|
65
|
-
`[HMR] preserveAcrossHmr collision on "${fullKey}". Two instances would use the same cache slot — the later one will overwrite the earlier one's state on full re-bootstrap. Pass a unique \`key\` argument (e.g. an @Input id) to differentiate.`
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
seen.add(fullKey);
|
|
69
|
-
|
|
70
|
-
const props: Record<string, unknown> = {};
|
|
71
|
-
for (const prop of Object.keys(instance)) {
|
|
72
|
-
const value = (instance as Record<string, unknown>)[prop];
|
|
73
|
-
if (isPreservable(value)) props[prop] = value;
|
|
74
|
-
}
|
|
75
|
-
cache.set(fullKey, props);
|
|
76
|
-
stats.captured++;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Every instance just captured is about to die: `destroyAngularApp()`
|
|
80
|
-
// runs immediately after this. New instances from the next bootstrap
|
|
81
|
-
// repopulate the tracker via their own `preserveAcrossHmr(this)`
|
|
82
|
-
// calls. Leaving existing WeakRefs in place means the JS engine
|
|
83
|
-
// often won't have GC'd the old objects yet at the next capture —
|
|
84
|
-
// those zombies inflate the captured count and trigger spurious
|
|
85
|
-
// collision warnings against the new generation's instances.
|
|
86
|
-
tracker.clear();
|
|
87
|
-
|
|
88
|
-
getRebootFlag().value = true;
|
|
89
|
-
};
|
|
90
|
-
export const endHmrReboot = () => {
|
|
91
|
-
if (!isHmrPreserveDev()) return;
|
|
92
|
-
getRebootFlag().value = false;
|
|
93
|
-
|
|
94
|
-
const stats = getRebootStats();
|
|
95
|
-
if (stats.captured > 0) {
|
|
96
|
-
const restored = Array.from(stats.restoredKeys)
|
|
97
|
-
.map((k) => k.replace(/:$/, ''))
|
|
98
|
-
.sort();
|
|
99
|
-
console.info(
|
|
100
|
-
`[HMR] Full re-bootstrap: restored state for ${restored.length}/${stats.captured} tracked instance(s)${
|
|
101
|
-
restored.length > 0 ? ` — ${restored.join(', ')}` : ''
|
|
102
|
-
}. Components without preservation reset to defaults; opt in via \`preserveAcrossHmr(this)\`.`
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
export const getCache = () => {
|
|
107
|
-
const scope = globalThis as PreserveScope;
|
|
108
|
-
|
|
109
|
-
return (scope.__ABS_HMR_INSTANCE_STATE__ ??= new Map());
|
|
110
|
-
};
|
|
111
|
-
export const getKeyMap = () => {
|
|
112
|
-
const scope = globalThis as PreserveScope;
|
|
113
|
-
|
|
114
|
-
return (scope.__ABS_HMR_INSTANCE_KEYS__ ??= new WeakMap());
|
|
115
|
-
};
|
|
116
|
-
export const getRebootFlag = () => {
|
|
117
|
-
const scope = globalThis as PreserveScope;
|
|
118
|
-
|
|
119
|
-
return (scope.__ABS_HMR_REBOOT_IN_PROGRESS__ ??= { value: false });
|
|
120
|
-
};
|
|
121
|
-
export const getRebootStats = () => {
|
|
122
|
-
const scope = globalThis as PreserveScope;
|
|
123
|
-
|
|
124
|
-
return (scope.__ABS_HMR_REBOOT_STATS__ ??= {
|
|
125
|
-
captured: 0,
|
|
126
|
-
restoredKeys: new Set()
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
export const getTracker = () => {
|
|
130
|
-
const scope = globalThis as PreserveScope;
|
|
131
|
-
|
|
132
|
-
return (scope.__ABS_HMR_TRACKED_INSTANCES__ ??= new Set());
|
|
133
|
-
};
|
|
134
|
-
export const isHmrPreserveDev = () => {
|
|
135
|
-
// SSR safety: globalThis on the server is process-wide and shared
|
|
136
|
-
// across requests, so writing to the preservation cache during SSR
|
|
137
|
-
// would leak request state between users. Gate strictly on the
|
|
138
|
-
// presence of a browser `window` *and* a dev signal — neither is
|
|
139
|
-
// true in a production build, so this is a hard no-op there too.
|
|
140
|
-
if (typeof window === 'undefined') return false;
|
|
141
|
-
const scope = globalThis as { __DEV__?: unknown; ngDevMode?: unknown };
|
|
142
|
-
|
|
143
|
-
return Boolean(scope.__DEV__) || Boolean(scope.ngDevMode);
|
|
144
|
-
};
|
|
145
|
-
export const isPreservable = (value: unknown, depth = 0): boolean => {
|
|
146
|
-
if (depth > 8) return false;
|
|
147
|
-
if (value === null || value === undefined) return true;
|
|
148
|
-
const t = typeof value;
|
|
149
|
-
if (t === 'string' || t === 'number' || t === 'boolean' || t === 'bigint')
|
|
150
|
-
return true;
|
|
151
|
-
if (t === 'function' || t === 'symbol') return false;
|
|
152
|
-
if (Array.isArray(value)) {
|
|
153
|
-
return value.every((item) => isPreservable(item, depth + 1));
|
|
154
|
-
}
|
|
155
|
-
if (t === 'object') {
|
|
156
|
-
const proto = Object.getPrototypeOf(value);
|
|
157
|
-
// Only POJOs — class instances (HttpClient, BehaviorSubject, Date,
|
|
158
|
-
// Map, etc.) carry runtime identity that the new instance must
|
|
159
|
-
// get from its own injector / construction.
|
|
160
|
-
if (proto !== Object.prototype && proto !== null) return false;
|
|
161
|
-
|
|
162
|
-
return Object.values(value as object).every((v) =>
|
|
163
|
-
isPreservable(v, depth + 1)
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return false;
|
|
168
|
-
};
|
|
169
|
-
export const restoreFromCacheCore = (
|
|
170
|
-
instance: object,
|
|
171
|
-
key: string
|
|
172
|
-
) => {
|
|
173
|
-
const cache = getCache();
|
|
174
|
-
const stored = cache.get(key);
|
|
175
|
-
if (!stored) return false;
|
|
176
|
-
|
|
177
|
-
for (const [prop, value] of Object.entries(stored)) {
|
|
178
|
-
try {
|
|
179
|
-
(instance as Record<string, unknown>)[prop] = value;
|
|
180
|
-
} catch {
|
|
181
|
-
/* property is non-writable / has a setter that threw — skip */
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
getRebootStats().restoredKeys.add(key);
|
|
186
|
-
|
|
187
|
-
return true;
|
|
188
|
-
};
|