@master/internal-site 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +66 -2
- package/dist/astro.d.mts +3 -0
- package/dist/astro.mjs +510 -0
- package/dist/config.d.mts +64 -0
- package/dist/config.mjs +10 -0
- package/package.json +384 -4
- package/src/astro/Page.astro +12 -0
- package/src/astro/content-pages.ts +75 -0
- package/src/astro/index.ts +124 -0
- package/src/astro/module-id.ts +4 -0
- package/src/astro/propagated-assets.ts +29 -0
- package/src/astro/route-paths.ts +78 -0
- package/src/astro/routes.template.ts +110 -0
- package/src/astro/server-styles.ts +26 -0
- package/src/astro/site-context.ts +27 -0
- package/src/astro/source-url.ts +22 -0
- package/src/astro/svelte-renderer.ts +45 -0
- package/src/astro/svg-markup.ts +23 -0
- package/src/benchmarks/BenchmarkBarRows.astro +34 -0
- package/src/benchmarks/BenchmarkBars.astro +14 -0
- package/src/benchmarks/BenchmarkChart.astro +53 -0
- package/src/benchmarks/BenchmarkChartGroup.astro +24 -0
- package/src/benchmarks/BenchmarkDataTable.astro +24 -0
- package/src/benchmarks/BenchmarkDelta.astro +23 -0
- package/src/benchmarks/BenchmarkFigure.astro +30 -0
- package/src/benchmarks/BenchmarkMetricTable.astro +38 -0
- package/src/benchmarks/BenchmarkMetrics.astro +23 -0
- package/src/benchmarks/BenchmarkSampleSummary.astro +30 -0
- package/src/benchmarks/BenchmarkScrollRegion.svelte +27 -0
- package/src/benchmarks/BenchmarkSource.astro +20 -0
- package/src/benchmarks/BenchmarkStackedBars.astro +54 -0
- package/src/benchmarks/BenchmarkStatus.astro +16 -0
- package/src/benchmarks/types.ts +98 -0
- package/src/benchmarks/utils.ts +42 -0
- package/src/blog/BlogAuthors.astro +25 -0
- package/src/blog/article/BlogArticleContents.svelte +24 -0
- package/src/blog/article/BlogArticleEnd.astro +55 -0
- package/src/blog/article/BlogArticleMasthead.astro +61 -0
- package/src/blog/article/language.ts +29 -0
- package/src/blog/article/neighbors.ts +27 -0
- package/src/blog/article/title-lines.astro +14 -0
- package/src/blog/article/title-parts.ts +9 -0
- package/src/components.d.ts +5 -0
- package/src/config.ts +66 -0
- package/src/css/ButtonPreview.astro +22 -0
- package/src/css/ConfiguredExample.astro +15 -0
- package/src/css/NamespaceUtilityTable.astro +50 -0
- package/src/css/StylesheetExample.astro +15 -0
- package/src/css/ThemeNumberVariableTable.astro +57 -0
- package/src/css/configured-example.ts +53 -0
- package/src/css/foundation-data/elevation/shadow-data.ts +52 -0
- package/src/css/foundation-data/sizing/scale-data.ts +37 -0
- package/src/css/foundation-data/specimen-content.ts +10 -0
- package/src/css/foundation-data/specimens.ts +96 -0
- package/src/css/foundation-data/tokens.ts +32 -0
- package/src/css/generate-preset-css.ts +12 -0
- package/src/css/highlight.ts +34 -0
- package/src/css/manifest-utilities.ts +29 -0
- package/src/css/markdown.ts +279 -0
- package/src/css/preset-css.ts +15 -0
- package/src/css/preset-manifest.ts +3 -0
- package/src/css/stylesheet-example.ts +26 -0
- package/src/css/theme-variables.ts +74 -0
- package/src/css/variable-namespace-sources.ts +20 -0
- package/src/demo/Demo.svelte +55 -0
- package/src/demo/DemoAsset.astro +38 -0
- package/src/demo/DemoAxes.svelte +22 -0
- package/src/demo/DemoBadge.svelte +18 -0
- package/src/demo/DemoCatalog.astro +36 -0
- package/src/demo/DemoComparison.svelte +36 -0
- package/src/demo/DemoConfiguredExample.astro +48 -0
- package/src/demo/DemoContainer.svelte +48 -0
- package/src/demo/DemoControls.svelte +16 -0
- package/src/demo/DemoCopyButton.svelte +50 -0
- package/src/demo/DemoCopyGroup.svelte +15 -0
- package/src/demo/DemoExample.astro +27 -0
- package/src/demo/DemoFeatureSupport.svelte +18 -0
- package/src/demo/DemoGeneratedCSS.svelte +8 -0
- package/src/demo/DemoIndex.astro +23 -0
- package/src/demo/DemoInstallation.astro +17 -0
- package/src/demo/DemoItem.svelte +17 -0
- package/src/demo/DemoLabel.svelte +15 -0
- package/src/demo/DemoLegend.svelte +15 -0
- package/src/demo/DemoMeasure.svelte +28 -0
- package/src/demo/DemoMedia.svelte +43 -0
- package/src/demo/DemoMotion.svelte +41 -0
- package/src/demo/DemoPageViewport.astro +17 -0
- package/src/demo/DemoPalette.astro +29 -0
- package/src/demo/DemoPaletteGroups.svelte +15 -0
- package/src/demo/DemoScrollArea.svelte +15 -0
- package/src/demo/DemoStyleComparison.astro +25 -0
- package/src/demo/DemoSurface.svelte +15 -0
- package/src/demo/DemoSwatch.svelte +19 -0
- package/src/demo/DemoThemeComparison.astro +30 -0
- package/src/demo/DemoTokenTable.astro +34 -0
- package/src/demo/DemoViewTransition.astro +18 -0
- package/src/demo/DemoViewport.svelte +324 -0
- package/src/demo/DemoWaterfall.astro +30 -0
- package/src/demo/FoundationBreakpoint.astro +12 -0
- package/src/demo/ProjectStyleExample.astro +13 -0
- package/src/demo/copy-feedback.ts +10 -0
- package/src/demo/demo-waterfall.ts +17 -0
- package/src/demo/drag-readings.ts +20 -0
- package/src/demo/foundations/FoundationAxes.astro +12 -0
- package/src/demo/foundations/FoundationColorRoles.astro +5 -0
- package/src/demo/foundations/FoundationContainerGrid.astro +24 -0
- package/src/demo/foundations/FoundationDialog.astro +14 -0
- package/src/demo/foundations/FoundationElevation.astro +5 -0
- package/src/demo/foundations/FoundationElevationState.astro +5 -0
- package/src/demo/foundations/FoundationHue.astro +5 -0
- package/src/demo/foundations/FoundationLines.astro +5 -0
- package/src/demo/foundations/FoundationMedia.astro +28 -0
- package/src/demo/foundations/FoundationMotion.astro +5 -0
- package/src/demo/foundations/FoundationPalette.astro +8 -0
- package/src/demo/foundations/FoundationRadius.astro +13 -0
- package/src/demo/foundations/FoundationShapes.astro +12 -0
- package/src/demo/foundations/FoundationShrink.astro +14 -0
- package/src/demo/foundations/FoundationSizing.astro +19 -0
- package/src/demo/foundations/FoundationSpecimen.astro +20 -0
- package/src/demo/foundations/FoundationSurfaces.astro +5 -0
- package/src/demo/foundations/FoundationTextHue.astro +5 -0
- package/src/demo/foundations/FoundationTextRoles.astro +5 -0
- package/src/demo/foundations/FoundationTokens.astro +22 -0
- package/src/demo/foundations/FoundationTokensView.astro +65 -0
- package/src/demo/foundations/FoundationTransition.astro +5 -0
- package/src/demo/foundations/FoundationTypeComparison.astro +12 -0
- package/src/demo/foundations/FoundationTypography.astro +5 -0
- package/src/demo/foundations/Palette.svelte +37 -0
- package/src/demo/foundations/ShadowScaleDemo.astro +22 -0
- package/src/demo/illustration-materials.ts +180 -0
- package/src/demo/maintenance-example.ts +62 -0
- package/src/demo/playback.ts +75 -0
- package/src/demo/project-style-examples.ts +128 -0
- package/src/demo/reference/alignment.ts +42 -0
- package/src/demo/reference/animations.ts +30 -0
- package/src/demo/reference/backgrounds.ts +39 -0
- package/src/demo/reference/border-paint.ts +31 -0
- package/src/demo/reference/clipping.ts +26 -0
- package/src/demo/reference/document.ts +55 -0
- package/src/demo/reference/edges.ts +40 -0
- package/src/demo/reference/effects.ts +27 -0
- package/src/demo/reference/flexbox.ts +33 -0
- package/src/demo/reference/frame.css +118 -0
- package/src/demo/reference/grid.ts +42 -0
- package/src/demo/reference/html.ts +40 -0
- package/src/demo/reference/interaction.ts +42 -0
- package/src/demo/reference/layout-html.ts +10 -0
- package/src/demo/reference/layout.ts +102 -0
- package/src/demo/reference/media.ts +29 -0
- package/src/demo/reference/positioning.ts +90 -0
- package/src/demo/reference/scenes.ts +197 -0
- package/src/demo/reference/scrolling.ts +66 -0
- package/src/demo/reference/shapes.ts +22 -0
- package/src/demo/reference/sizing.ts +43 -0
- package/src/demo/reference/source.ts +8 -0
- package/src/demo/reference/text-effects.ts +37 -0
- package/src/demo/reference/text-flow.ts +41 -0
- package/src/demo/reference/transforms.ts +26 -0
- package/src/demo/reference/transitions.ts +24 -0
- package/src/demo/reference/type-specimens.ts +56 -0
- package/src/demo/reference/types.ts +30 -0
- package/src/demo/reference/typography.ts +32 -0
- package/src/demo/specimens/accent-color.json +50 -0
- package/src/demo/specimens/align-items.json +56 -0
- package/src/demo/specimens/animation-delay.json +55 -0
- package/src/demo/specimens/animation-direction.json +49 -0
- package/src/demo/specimens/animation-fill-mode.json +55 -0
- package/src/demo/specimens/animation-iteration-count.json +55 -0
- package/src/demo/specimens/animation-play-state.json +83 -0
- package/src/demo/specimens/animation-timing-function.json +48 -0
- package/src/demo/specimens/appearance.json +44 -0
- package/src/demo/specimens/aspect-ratio.json +28 -0
- package/src/demo/specimens/backdrop-filter.json +44 -0
- package/src/demo/specimens/background-attachment.json +49 -0
- package/src/demo/specimens/background-image.json +25 -0
- package/src/demo/specimens/background-origin.json +36 -0
- package/src/demo/specimens/background-size.json +29 -0
- package/src/demo/specimens/border-collapse.json +45 -0
- package/src/demo/specimens/border-color.json +35 -0
- package/src/demo/specimens/border-image-repeat.json +50 -0
- package/src/demo/specimens/border-image-slice.json +45 -0
- package/src/demo/specimens/border-radius.json +30 -0
- package/src/demo/specimens/box-decoration-break.json +35 -0
- package/src/demo/specimens/box-shadow.json +33 -0
- package/src/demo/specimens/clear.json +77 -0
- package/src/demo/specimens/clip-path.json +38 -0
- package/src/demo/specimens/content.json +27 -0
- package/src/demo/specimens/counter-set.json +31 -0
- package/src/demo/specimens/fill.json +23 -0
- package/src/demo/specimens/filter.json +23 -0
- package/src/demo/specimens/flex-direction.json +27 -0
- package/src/demo/specimens/flex-grow.json +27 -0
- package/src/demo/specimens/font-style.json +23 -0
- package/src/demo/specimens/font-variant-numeric.json +28 -0
- package/src/demo/specimens/grid-auto-columns.json +29 -0
- package/src/demo/specimens/grid-auto-flow.json +37 -0
- package/src/demo/specimens/grid-template-areas.json +34 -0
- package/src/demo/specimens/grid-template-columns.json +36 -0
- package/src/demo/specimens/isolation.json +25 -0
- package/src/demo/specimens/justify-content.json +36 -0
- package/src/demo/specimens/line-height.json +28 -0
- package/src/demo/specimens/list-style-position.json +36 -0
- package/src/demo/specimens/mask-image.json +54 -0
- package/src/demo/specimens/min-width.json +39 -0
- package/src/demo/specimens/mix-blend-mode.json +43 -0
- package/src/demo/specimens/object-fit.json +27 -0
- package/src/demo/specimens/object-position.json +27 -0
- package/src/demo/specimens/opacity.json +37 -0
- package/src/demo/specimens/order.json +28 -0
- package/src/demo/specimens/overflow-wrap.json +26 -0
- package/src/demo/specimens/overflow.json +53 -0
- package/src/demo/specimens/overscroll-behavior.json +29 -0
- package/src/demo/specimens/padding.json +84 -0
- package/src/demo/specimens/place-content.json +31 -0
- package/src/demo/specimens/pointer-events.json +46 -0
- package/src/demo/specimens/position.json +29 -0
- package/src/demo/specimens/resize.json +32 -0
- package/src/demo/specimens/screen-readers.json +37 -0
- package/src/demo/specimens/scroll-padding.json +29 -0
- package/src/demo/specimens/scroll-snap-stop.json +33 -0
- package/src/demo/specimens/shape-image-threshold.json +37 -0
- package/src/demo/specimens/shape-margin.json +40 -0
- package/src/demo/specimens/shape-outside.json +37 -0
- package/src/demo/specimens/stroke-width.json +27 -0
- package/src/demo/specimens/text-fill-color.json +23 -0
- package/src/demo/specimens/text-stroke-width.json +32 -0
- package/src/demo/specimens/touch-action.json +45 -0
- package/src/demo/specimens/transform-box.json +37 -0
- package/src/demo/specimens/transform-origin.json +56 -0
- package/src/demo/specimens/transform-style.json +55 -0
- package/src/demo/specimens/transform.json +47 -0
- package/src/demo/specimens/transition-delay.json +57 -0
- package/src/demo/specimens/transition-duration.json +60 -0
- package/src/demo/specimens/transition-property.json +60 -0
- package/src/demo/specimens/transition-timing-function.json +65 -0
- package/src/demo/specimens/user-drag.json +28 -0
- package/src/demo/specimens/user-select.json +25 -0
- package/src/demo/specimens/vertical-align.json +28 -0
- package/src/demo/specimens/width.json +56 -0
- package/src/demo/specimens/will-change.json +50 -0
- package/src/demo/specimens/writing-mode.json +26 -0
- package/src/demo/specimens/z-index.json +35 -0
- package/src/demo/style.ts +15 -0
- package/src/demo/tone.ts +4 -0
- package/src/demo/useDemoViewTransition.svelte.ts +71 -0
- package/src/docs-shell/common/i18n.config.d.ts +2 -0
- package/src/docs-shell/common/i18n.config.js +13 -0
- package/src/docs-shell/common/svgo.config.d.ts +2 -0
- package/src/docs-shell/common/svgo.config.js +11 -0
- package/src/docs-shell/components/ArticleHeader.astro +65 -0
- package/src/docs-shell/components/ArticleTOC.astro +18 -0
- package/src/docs-shell/components/Callout.astro +26 -0
- package/src/docs-shell/components/Code.astro +25 -0
- package/src/docs-shell/components/CodeCopyButton.astro +25 -0
- package/src/docs-shell/components/CodeTabBar.astro +40 -0
- package/src/docs-shell/components/CodeTabs.astro +53 -0
- package/src/docs-shell/components/CodeView.astro +23 -0
- package/src/docs-shell/components/Do.astro +5 -0
- package/src/docs-shell/components/DoNot.astro +5 -0
- package/src/docs-shell/components/DocArticle.astro +14 -0
- package/src/docs-shell/components/DocHeader.svelte +87 -0
- package/src/docs-shell/components/DocHeading.astro +28 -0
- package/src/docs-shell/components/DocMain.astro +19 -0
- package/src/docs-shell/components/DocMenuButton.svelte +95 -0
- package/src/docs-shell/components/DocSidebar.svelte +62 -0
- package/src/docs-shell/components/DocVersionSelect.svelte +22 -0
- package/src/docs-shell/components/DocWrapper.astro +11 -0
- package/src/docs-shell/components/DocumentAPIIndex.astro +24 -0
- package/src/docs-shell/components/DocumentChoices.astro +24 -0
- package/src/docs-shell/components/DocumentCodeExample.astro +20 -0
- package/src/docs-shell/components/DocumentCodeExampleView.astro +35 -0
- package/src/docs-shell/components/DocumentCodeTable.astro +19 -0
- package/src/docs-shell/components/DocumentComparison.astro +7 -0
- package/src/docs-shell/components/DocumentCopyButton.svelte +41 -0
- package/src/docs-shell/components/DocumentDeclaration.astro +17 -0
- package/src/docs-shell/components/DocumentDeclarationView.astro +12 -0
- package/src/docs-shell/components/DocumentDisclosure.astro +14 -0
- package/src/docs-shell/components/DocumentFileTree.astro +34 -0
- package/src/docs-shell/components/DocumentFlow.astro +27 -0
- package/src/docs-shell/components/DocumentIdentifier.astro +14 -0
- package/src/docs-shell/components/DocumentIllustration.astro +46 -0
- package/src/docs-shell/components/DocumentKeyList.astro +22 -0
- package/src/docs-shell/components/DocumentNamespaceTable.astro +20 -0
- package/src/docs-shell/components/DocumentOptionEntry.astro +15 -0
- package/src/docs-shell/components/DocumentOptionList.astro +11 -0
- package/src/docs-shell/components/DocumentOptions.astro +23 -0
- package/src/docs-shell/components/DocumentParameters.astro +30 -0
- package/src/docs-shell/components/DocumentPrompt.astro +16 -0
- package/src/docs-shell/components/DocumentValueList.astro +25 -0
- package/src/docs-shell/components/DocumentationIndex.svelte +144 -0
- package/src/docs-shell/components/Dropped.astro +21 -0
- package/src/docs-shell/components/ExpandContent.svelte +21 -0
- package/src/docs-shell/components/ExplorerView.astro +37 -0
- package/src/docs-shell/components/FileIcon.astro +123 -0
- package/src/docs-shell/components/Footer.svelte +80 -0
- package/src/docs-shell/components/GeneratedCSS.astro +8 -0
- package/src/docs-shell/components/Header.svelte +121 -0
- package/src/docs-shell/components/HeaderIcon.astro +14 -0
- package/src/docs-shell/components/HeaderNav.svelte +18 -0
- package/src/docs-shell/components/Image.svelte +56 -0
- package/src/docs-shell/components/Info.astro +5 -0
- package/src/docs-shell/components/InlineCode.astro +30 -0
- package/src/docs-shell/components/InteractingIndicator.astro +19 -0
- package/src/docs-shell/components/LanguageButton.svelte +18 -0
- package/src/docs-shell/components/LanguageSelect.svelte +44 -0
- package/src/docs-shell/components/Link.svelte +127 -0
- package/src/docs-shell/components/ModeImg.astro +11 -0
- package/src/docs-shell/components/NotFound.astro +21 -0
- package/src/docs-shell/components/OverviewButtons.astro +36 -0
- package/src/docs-shell/components/PMAction.astro +25 -0
- package/src/docs-shell/components/PackageBadges.astro +39 -0
- package/src/docs-shell/components/PageContent.svelte +38 -0
- package/src/docs-shell/components/PageContentBootstrap.astro +13 -0
- package/src/docs-shell/components/PageContentDisclosure.astro +25 -0
- package/src/docs-shell/components/PageContentList.svelte +70 -0
- package/src/docs-shell/components/PageContentProvider.svelte +15 -0
- package/src/docs-shell/components/PageContentTitle.svelte +16 -0
- package/src/docs-shell/components/PageNavs.astro +40 -0
- package/src/docs-shell/components/PreparedCodeView.astro +12 -0
- package/src/docs-shell/components/RenderNode.astro +16 -0
- package/src/docs-shell/components/RouteLayers.astro +17 -0
- package/src/docs-shell/components/SearchButton.svelte +31 -0
- package/src/docs-shell/components/SearchDialog.svelte +174 -0
- package/src/docs-shell/components/Segments.svelte +62 -0
- package/src/docs-shell/components/Step.astro +13 -0
- package/src/docs-shell/components/StepL.astro +10 -0
- package/src/docs-shell/components/StepR.astro +10 -0
- package/src/docs-shell/components/StepSection.astro +12 -0
- package/src/docs-shell/components/Tab.astro +8 -0
- package/src/docs-shell/components/Tabs.astro +10 -0
- package/src/docs-shell/components/ThemeIcon.astro +19 -0
- package/src/docs-shell/components/ThemeSelect.svelte +20 -0
- package/src/docs-shell/components/TimeAgo.svelte +32 -0
- package/src/docs-shell/components/Translate.astro +14 -0
- package/src/docs-shell/components/Warn.astro +5 -0
- package/src/docs-shell/components/code-props.ts +28 -0
- package/src/docs-shell/components/document-types.ts +119 -0
- package/src/docs-shell/components/markdown/Anchor.astro +5 -0
- package/src/docs-shell/components/markdown/Heading2.astro +5 -0
- package/src/docs-shell/components/markdown/Heading3.astro +5 -0
- package/src/docs-shell/components/markdown/Table.astro +6 -0
- package/src/docs-shell/components/markdown-components.ts +36 -0
- package/src/docs-shell/components/page-content-bootstrap.ts +115 -0
- package/src/docs-shell/components/page-content.svelte.ts +125 -0
- package/src/docs-shell/contexts/search.ts +18 -0
- package/src/docs-shell/contexts/theme-mode.svelte.ts +61 -0
- package/src/docs-shell/data/authors.ts +17 -0
- package/src/docs-shell/data/base-colors.ts +29 -0
- package/src/docs-shell/data/brands.ts +79 -0
- package/src/docs-shell/data/color-names.ts +1 -0
- package/src/docs-shell/data/color-palette.ts +50 -0
- package/src/docs-shell/data/colors.ts +1 -0
- package/src/docs-shell/factories/Page.astro +35 -0
- package/src/docs-shell/factories/create-page.ts +31 -0
- package/src/docs-shell/layouts/BlogArticle.astro +53 -0
- package/src/docs-shell/layouts/Doc.astro +41 -0
- package/src/docs-shell/remark/markdown-components.d.ts +2 -0
- package/src/docs-shell/remark/markdown-components.js +101 -0
- package/src/docs-shell/remark/slug-and-toc.d.ts +2 -0
- package/src/docs-shell/remark/slug-and-toc.js +53 -0
- package/src/docs-shell/scripts/code-tabs-bootstrap.ts +34 -0
- package/src/docs-shell/scripts/code.ts +124 -0
- package/src/docs-shell/scripts/document-anchor.ts +57 -0
- package/src/docs-shell/scripts/document.ts +47 -0
- package/src/docs-shell/site.ts +67 -0
- package/src/docs-shell/types/IllustrationImages.ts +2 -0
- package/src/docs-shell/types/Metadata.ts +17 -0
- package/src/docs-shell/types/Props.ts +9 -0
- package/src/docs-shell/types/StaticImage.ts +6 -0
- package/src/docs-shell/uses/use-selected-preview-syntax.svelte.ts +16 -0
- package/src/docs-shell/utils/anchor.ts +24 -0
- package/src/docs-shell/utils/beautify-css.ts +14 -0
- package/src/docs-shell/utils/beautify-html.ts +12 -0
- package/src/docs-shell/utils/beautify-js.ts +9 -0
- package/src/docs-shell/utils/create-highlighter.ts +50 -0
- package/src/docs-shell/utils/css-modern-grammar.ts +339 -0
- package/src/docs-shell/utils/documentation-search.ts +68 -0
- package/src/docs-shell/utils/generate-metadata.ts +60 -0
- package/src/docs-shell/utils/group-page-content.ts +10 -0
- package/src/docs-shell/utils/head.ts +72 -0
- package/src/docs-shell/utils/highlight-code-core.ts +146 -0
- package/src/docs-shell/utils/highlight-code.ts +1 -0
- package/src/docs-shell/utils/highlighted-code-text.ts +27 -0
- package/src/docs-shell/utils/i18n-pathname.ts +98 -0
- package/src/docs-shell/utils/i18n.ts +12 -0
- package/src/docs-shell/utils/is-date-within-seven-days.ts +16 -0
- package/src/docs-shell/utils/isBrowser.ts +1 -0
- package/src/docs-shell/utils/isInteractOutside.ts +16 -0
- package/src/docs-shell/utils/markdown-tree.ts +22 -0
- package/src/docs-shell/utils/metadata.ts +25 -0
- package/src/docs-shell/utils/prepared-code.ts +21 -0
- package/src/docs-shell/utils/resolve-heading.d.ts +1 -0
- package/src/docs-shell/utils/resolve-heading.js +19 -0
- package/src/docs-shell/utils/search-pages.ts +271 -0
- package/src/docs-shell/utils/slot-text.ts +15 -0
- package/src/docs-shell/utils/snackbar.ts +39 -0
- package/src/docs-shell/utils/syntax-theme.ts +53 -0
- package/src/docs-shell/utils/transformer-notation-word-mark.ts +146 -0
- package/src/docs-shell/utils/unique-id.ts +11 -0
- package/src/examples/article-transitions/page.astro +7 -0
- package/src/examples/article-transitions/transitions.css +10 -0
- package/src/examples/components/ArticleTransitionScene.svelte +83 -0
- package/src/examples/components/ViewTransitionScene.svelte +31 -0
- package/src/examples/images/article-aurora.jpg +0 -0
- package/src/examples/images/article-coast.jpg +0 -0
- package/src/examples/images/article-grid.jpg +0 -0
- package/src/examples/images/article-studio.jpg +0 -0
- package/src/examples/layout-system/page.astro +59 -0
- package/src/examples/scene.css +3 -0
- package/src/examples/view-transitions/page.astro +7 -0
- package/src/examples/view-transitions/transitions.css +9 -0
- package/src/home/HeroCanvas.svelte +617 -0
- package/src/home/HomeAction.astro +17 -0
- package/src/home/HomeBentoFrame.astro +9 -0
- package/src/home/HomeBentoGrid.astro +9 -0
- package/src/home/HomeCompactIcon.astro +15 -0
- package/src/home/HomeFooter.svelte +63 -0
- package/src/home/HomeIllustration.astro +17 -0
- package/src/home/HomeIllustrationArt.svelte +15 -0
- package/src/home/HomeLamp.svelte +18 -0
- package/src/home/design.css +532 -0
- package/src/home/footer.css +225 -0
- package/src/home/hero-shaders.ts +460 -0
- package/src/home/hero-title-mask.ts +175 -0
- package/src/home/hero.css +547 -0
- package/src/home/home-illustration.ts +5 -0
- package/src/home/home-lamp.ts +225 -0
- package/src/home/home.css +1077 -0
- package/src/home/icons/agent-check-preview-apply.svg +24 -0
- package/src/home/icons/agent-clients.svg +26 -0
- package/src/home/icons/agent-project-tools.svg +23 -0
- package/src/home/icons/artwork/agent-check-preview-apply-dark.webp +0 -0
- package/src/home/icons/artwork/agent-check-preview-apply-light.webp +0 -0
- package/src/home/icons/artwork/agent-clients-dark.webp +0 -0
- package/src/home/icons/artwork/agent-clients-light.webp +0 -0
- package/src/home/icons/artwork/agent-edit-file-dark.webp +0 -0
- package/src/home/icons/artwork/agent-edit-file-light.webp +0 -0
- package/src/home/icons/artwork/agent-project-tools-dark.webp +0 -0
- package/src/home/icons/artwork/agent-project-tools-light.webp +0 -0
- package/src/home/icons/artwork/design-cascade-layers-dark.webp +0 -0
- package/src/home/icons/artwork/design-cascade-layers-light.webp +0 -0
- package/src/home/icons/artwork/design-layout-motion-dark.webp +0 -0
- package/src/home/icons/artwork/design-layout-motion-light.webp +0 -0
- package/src/home/icons/artwork/design-p3-gamut-dark.webp +0 -0
- package/src/home/icons/artwork/design-p3-gamut-light.webp +0 -0
- package/src/home/icons/artwork/design-theme-modes-dark.webp +0 -0
- package/src/home/icons/artwork/design-theme-modes-light.webp +0 -0
- package/src/home/icons/artwork/design-theme-tokens-dark.webp +0 -0
- package/src/home/icons/artwork/design-theme-tokens-light.webp +0 -0
- package/src/home/icons/artwork/editor-color-tools-dark.webp +0 -0
- package/src/home/icons/artwork/editor-color-tools-light.webp +0 -0
- package/src/home/icons/artwork/editor-focused-highlighting-dark.webp +0 -0
- package/src/home/icons/artwork/editor-focused-highlighting-light.webp +0 -0
- package/src/home/icons/artwork/editor-hover-inspection-dark.webp +0 -0
- package/src/home/icons/artwork/editor-hover-inspection-light.webp +0 -0
- package/src/home/icons/artwork/editor-manifest-completions-dark.webp +0 -0
- package/src/home/icons/artwork/editor-manifest-completions-light.webp +0 -0
- package/src/home/icons/artwork/lint-class-order-dark.webp +0 -0
- package/src/home/icons/artwork/lint-class-order-light.webp +0 -0
- package/src/home/icons/artwork/lint-conflicting-classes-dark.webp +0 -0
- package/src/home/icons/artwork/lint-conflicting-classes-light.webp +0 -0
- package/src/home/icons/artwork/lint-fix-previews-dark.webp +0 -0
- package/src/home/icons/artwork/lint-fix-previews-light.webp +0 -0
- package/src/home/icons/artwork/lint-invalid-classes-dark.webp +0 -0
- package/src/home/icons/artwork/lint-invalid-classes-light.webp +0 -0
- package/src/home/icons/artwork/lint-strict-vocabulary-dark.webp +0 -0
- package/src/home/icons/artwork/lint-strict-vocabulary-light.webp +0 -0
- package/src/home/icons/artwork/lint-theme-tokens-dark.webp +0 -0
- package/src/home/icons/artwork/lint-theme-tokens-light.webp +0 -0
- package/src/home/icons/artwork/mcp-apply-preview-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-apply-preview-light.webp +0 -0
- package/src/home/icons/artwork/mcp-css-compare-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-css-compare-light.webp +0 -0
- package/src/home/icons/artwork/mcp-inspect-class-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-inspect-class-light.webp +0 -0
- package/src/home/icons/artwork/mcp-lint-project-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-lint-project-light.webp +0 -0
- package/src/home/icons/artwork/mcp-manifest-query-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-manifest-query-light.webp +0 -0
- package/src/home/icons/artwork/mcp-preview-fixes-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-preview-fixes-light.webp +0 -0
- package/src/home/icons/artwork/mcp-render-css-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-render-css-light.webp +0 -0
- package/src/home/icons/artwork/mcp-scan-project-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-scan-project-light.webp +0 -0
- package/src/home/icons/artwork/mcp-trace-class-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-trace-class-light.webp +0 -0
- package/src/home/icons/artwork/render-progressive-dark.webp +0 -0
- package/src/home/icons/artwork/render-progressive-light.webp +0 -0
- package/src/home/icons/artwork/render-runtime-dark.webp +0 -0
- package/src/home/icons/artwork/render-runtime-light.webp +0 -0
- package/src/home/icons/artwork/render-static-dark.webp +0 -0
- package/src/home/icons/artwork/render-static-light.webp +0 -0
- package/src/home/icons/artwork/section-ai-agents-dark.webp +0 -0
- package/src/home/icons/artwork/section-ai-agents-light.webp +0 -0
- package/src/home/icons/artwork/section-css-size-dark.webp +0 -0
- package/src/home/icons/artwork/section-css-size-light.webp +0 -0
- package/src/home/icons/artwork/section-design-system-dark.webp +0 -0
- package/src/home/icons/artwork/section-design-system-light.webp +0 -0
- package/src/home/icons/artwork/section-editor-dark.webp +0 -0
- package/src/home/icons/artwork/section-editor-light.webp +0 -0
- package/src/home/icons/artwork/section-lint-dark.webp +0 -0
- package/src/home/icons/artwork/section-lint-light.webp +0 -0
- package/src/home/icons/artwork/section-rendering-dark.webp +0 -0
- package/src/home/icons/artwork/section-rendering-light.webp +0 -0
- package/src/home/icons/artwork/section-workflow-dark.webp +0 -0
- package/src/home/icons/artwork/section-workflow-light.webp +0 -0
- package/src/home/icons/artwork/source.json +303 -0
- package/src/home/icons/artwork/workflow-integrations-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-integrations-light.webp +0 -0
- package/src/home/icons/artwork/workflow-monorepo-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-monorepo-light.webp +0 -0
- package/src/home/icons/artwork/workflow-route-styles-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-route-styles-light.webp +0 -0
- package/src/home/icons/artwork/workflow-trace-change-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-trace-change-light.webp +0 -0
- package/src/home/icons/artwork.css +4 -0
- package/src/home/icons/artwork.ts +131 -0
- package/src/home/icons/catalog.ts +381 -0
- package/src/home/icons/design-cascade-layers.svg +32 -0
- package/src/home/icons/design-layout-motion.svg +16 -0
- package/src/home/icons/design-p3-gamut.svg +12 -0
- package/src/home/icons/design-theme-modes.svg +12 -0
- package/src/home/icons/design-theme-tokens.svg +20 -0
- package/src/home/icons/editor-color-tools.svg +18 -0
- package/src/home/icons/editor-focused-highlighting.svg +15 -0
- package/src/home/icons/editor-hover-inspection.svg +19 -0
- package/src/home/icons/editor-manifest-completions.svg +24 -0
- package/src/home/icons/lint-class-order-compact.svg +15 -0
- package/src/home/icons/lint-class-order.svg +28 -0
- package/src/home/icons/lint-conflicting-classes-compact.svg +11 -0
- package/src/home/icons/lint-conflicting-classes.svg +24 -0
- package/src/home/icons/lint-fix-previews-compact.svg +9 -0
- package/src/home/icons/lint-fix-previews.svg +19 -0
- package/src/home/icons/lint-invalid-classes-compact.svg +7 -0
- package/src/home/icons/lint-invalid-classes.svg +17 -0
- package/src/home/icons/lint-strict-vocabulary-compact.svg +8 -0
- package/src/home/icons/lint-strict-vocabulary.svg +16 -0
- package/src/home/icons/lint-theme-tokens-compact.svg +7 -0
- package/src/home/icons/lint-theme-tokens.svg +14 -0
- package/src/home/icons/mcp-apply-preview-compact.svg +9 -0
- package/src/home/icons/mcp-apply-preview.svg +18 -0
- package/src/home/icons/mcp-css-compare-compact.svg +9 -0
- package/src/home/icons/mcp-css-compare.svg +20 -0
- package/src/home/icons/mcp-inspect-class-compact.svg +9 -0
- package/src/home/icons/mcp-inspect-class.svg +18 -0
- package/src/home/icons/mcp-lint-project-compact.svg +14 -0
- package/src/home/icons/mcp-lint-project.svg +30 -0
- package/src/home/icons/mcp-manifest-query-compact.svg +14 -0
- package/src/home/icons/mcp-manifest-query.svg +27 -0
- package/src/home/icons/mcp-preview-fixes-compact.svg +9 -0
- package/src/home/icons/mcp-preview-fixes.svg +15 -0
- package/src/home/icons/mcp-render-css-compact.svg +13 -0
- package/src/home/icons/mcp-render-css.svg +30 -0
- package/src/home/icons/mcp-scan-project-compact.svg +7 -0
- package/src/home/icons/mcp-scan-project.svg +13 -0
- package/src/home/icons/mcp-trace-class-compact.svg +11 -0
- package/src/home/icons/mcp-trace-class.svg +24 -0
- package/src/home/icons/render-progressive.svg +17 -0
- package/src/home/icons/render-runtime.svg +23 -0
- package/src/home/icons/render-static.svg +29 -0
- package/src/home/icons/section-ai-agents.svg +24 -0
- package/src/home/icons/section-css-size.svg +13 -0
- package/src/home/icons/section-design-system.svg +24 -0
- package/src/home/icons/section-editor.svg +14 -0
- package/src/home/icons/section-lint.svg +14 -0
- package/src/home/icons/section-rendering.svg +30 -0
- package/src/home/icons/section-workflow.svg +22 -0
- package/src/home/icons/workflow-integrations.svg +15 -0
- package/src/home/icons/workflow-monorepo.svg +27 -0
- package/src/home/icons/workflow-route-styles.svg +24 -0
- package/src/home/icons/workflow-trace-change.svg +21 -0
- package/src/layouts/Document.astro +71 -0
- package/src/public/brand/v2/logo/mark/master-mark-small-on-dark.svg +1 -0
- package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-dark.svg +1 -0
- package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-light.svg +1 -0
- package/src/public/demo/border-grid.svg +7 -0
- package/src/public/demo/landscape.svg +1 -0
- package/src/public/demo/marker.svg +1 -0
- package/src/public/demo/mask.svg +1 -0
- package/src/public/fonts/Geist-Medium.ttf +0 -0
- package/src/public/fonts/Geist-Regular.ttf +0 -0
- package/src/public/fonts/GeistVariable.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Bold.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Medium.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Regular.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-SemiBold.woff2 +0 -0
- package/src/public/fonts/index.css +40 -0
- package/src/public/icons/csharp.svg +1 -0
- package/src/public/icons/css.svg +1 -0
- package/src/public/icons/eslint.svg +1 -0
- package/src/public/icons/folder.svg +12 -0
- package/src/public/icons/html.svg +1 -0
- package/src/public/icons/php.svg +1 -0
- package/src/public/icons/sass.svg +1 -0
- package/src/public/icons/storybook.svg +1 -0
- package/src/public/icons/visualstudiocode.svg +41 -0
- package/src/public/images/authors/aron.jpg +0 -0
- package/src/public/images/authors/benseage.jpg +0 -0
- package/src/public/images/authors/joy.jpg +0 -0
- package/src/public/images/authors/lola.jpg +0 -0
- package/src/public/images/authors/miles.jpg +0 -0
- package/src/public/images/bootstrap.svg +23 -0
- package/src/public/images/build-tools/rsbuild.svg +1 -0
- package/src/public/images/build-tools/rspack.svg +1 -0
- package/src/public/images/build-tools/vite.svg +15 -0
- package/src/public/images/build-tools/webpack.svg +10 -0
- package/src/public/images/cdns/esm-sh.svg +1 -0
- package/src/public/images/chevron-left.svg +4 -0
- package/src/public/images/cover-bg.jpg +0 -0
- package/src/public/images/emotion.svg +1 -0
- package/src/public/images/frameworks/angular.svg +29 -0
- package/src/public/images/frameworks/astro.svg +4 -0
- package/src/public/images/frameworks/blazor.svg +22 -0
- package/src/public/images/frameworks/express.svg +1 -0
- package/src/public/images/frameworks/laravel.svg +8 -0
- package/src/public/images/frameworks/line-liff.svg +1 -0
- package/src/public/images/frameworks/lit.svg +1 -0
- package/src/public/images/frameworks/nextjs.svg +16 -0
- package/src/public/images/frameworks/nuxtjs.svg +3 -0
- package/src/public/images/frameworks/rails.svg +1 -0
- package/src/public/images/frameworks/react.svg +8 -0
- package/src/public/images/frameworks/remix.svg +5 -0
- package/src/public/images/frameworks/shopify.svg +1 -0
- package/src/public/images/frameworks/svelte.svg +6 -0
- package/src/public/images/frameworks/tanstack.svg +1 -0
- package/src/public/images/frameworks/vuejs.svg +11 -0
- package/src/public/images/frameworks/wordpress.svg +1 -0
- package/src/public/images/mui.svg +1 -0
- package/src/public/images/styled-components.svg +4 -0
- package/src/public/images/tailwindcss.svg +1 -0
- package/src/scripts/bundler-imports.ts +25 -0
- package/src/scripts/static-social.ts +333 -0
- package/src/scripts/write-if-changed.ts +26 -0
- package/src/sections/blog.astro +11 -0
- package/src/sections/design-system.astro +14 -0
- package/src/sections/document.astro +8 -0
- package/src/sections/examples.astro +6 -0
- package/src/sections/guide.astro +26 -0
- package/src/sections/home.astro +7 -0
- package/src/sections/page.astro +12 -0
- package/src/styles/base.css +57 -0
- package/src/styles/benchmarks.css +20 -0
- package/src/styles/blog-article.css +670 -0
- package/src/styles/blog-materials.css +399 -0
- package/src/styles/blog.css +568 -0
- package/src/styles/demo.css +30 -0
- package/src/styles/design-system.css +15 -0
- package/src/styles/docs-shell/code.css +61 -0
- package/src/styles/docs-shell/docs.css +79 -0
- package/src/styles/docs-shell/documentation-search.css +42 -0
- package/src/styles/docs-shell/footer.css +38 -0
- package/src/styles/docs-shell/header.css +69 -0
- package/src/styles/docs-shell/materials.css +25 -0
- package/src/styles/docs-shell/menu.css +19 -0
- package/src/styles/docs-shell/not-found.css +10 -0
- package/src/styles/docs-shell/page-content.css +37 -0
- package/src/styles/docs-shell/prose.css +89 -0
- package/src/styles/docs-shell/segments.css +13 -0
- package/src/styles/docs-shell/steps.css +39 -0
- package/src/styles/docs-shell/syntax-theme.css +18 -0
- package/src/styles/docs-shell/theme.css +68 -0
- package/src/styles/docs-shell/wrapper.css +10 -0
- package/src/styles/document-comparison.css +7 -0
- package/src/styles/documentation-illustration.css +34 -0
- package/src/styles/documentation-index.css +100 -0
- package/src/styles/documents.css +4 -0
- package/src/styles/documents.ts +2 -0
- package/src/styles/foundation.css +4 -0
- package/src/styles/globals.css +2 -0
- package/src/styles/interface.css +3 -0
- package/src/styles/interface.ts +2 -0
- package/src/styles/site.ts +2 -0
- package/src/styles/system/DESIGN.md +108 -0
- package/src/styles/system/buttons.css +51 -0
- package/src/styles/system/code.css +85 -0
- package/src/styles/system/controls.css +110 -0
- package/src/styles/system/data.css +134 -0
- package/src/styles/system/mixins.css +7 -0
- package/src/styles/system/prose.css +75 -0
- package/src/styles/system/shell.css +102 -0
- package/src/styles/system/specimens.css +98 -0
- package/src/styles/system/surfaces.css +104 -0
- package/src/styles/system/tokens.css +136 -0
- package/src/utils/cloudflare-image-loader.js +85 -0
- package/src/virtual.d.ts +36 -0
package/package.json
CHANGED
|
@@ -1,6 +1,386 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@master/internal-site",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "First-party Astro and Svelte website framework for Master sites.",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^24"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"src",
|
|
13
|
+
"README.md",
|
|
14
|
+
"!src/**/*.test.*"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./astro": {
|
|
18
|
+
"types": "./dist/astro.d.mts",
|
|
19
|
+
"import": "./dist/astro.mjs"
|
|
20
|
+
},
|
|
21
|
+
"./config": {
|
|
22
|
+
"types": "./dist/config.d.mts",
|
|
23
|
+
"import": "./dist/config.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./site": "./src/docs-shell/site.ts",
|
|
26
|
+
"./styles/*": "./src/styles/*",
|
|
27
|
+
"./assets/*": "./src/public/*",
|
|
28
|
+
"./astro/*": "./src/astro/*",
|
|
29
|
+
"./build/*": "./src/scripts/*",
|
|
30
|
+
"./utils/cloudflare-image-loader.js": "./src/utils/cloudflare-image-loader.js",
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./components/*": "./src/docs-shell/components/*",
|
|
33
|
+
"./contexts/*": "./src/docs-shell/contexts/*",
|
|
34
|
+
"./factories/*": "./src/docs-shell/factories/*",
|
|
35
|
+
"./layouts/*": "./src/docs-shell/layouts/*",
|
|
36
|
+
"./types/*": "./src/docs-shell/types/*",
|
|
37
|
+
"./utils/*": "./src/docs-shell/utils/*",
|
|
38
|
+
"./common/*": "./src/docs-shell/common/*",
|
|
39
|
+
"./remark/*": "./src/docs-shell/remark/*",
|
|
40
|
+
"./data/*": "./src/docs-shell/data/*",
|
|
41
|
+
"./scripts/*": "./src/docs-shell/scripts/*",
|
|
42
|
+
"./layouts/Document.astro": "./src/layouts/Document.astro",
|
|
43
|
+
"./components/PageNavs.astro": "./src/docs-shell/components/PageNavs.astro",
|
|
44
|
+
"./components/PageContentList.svelte": "./src/docs-shell/components/PageContentList.svelte",
|
|
45
|
+
"./components/DocVersionSelect.svelte": "./src/docs-shell/components/DocVersionSelect.svelte",
|
|
46
|
+
"./components/Tabs.astro": "./src/docs-shell/components/Tabs.astro",
|
|
47
|
+
"./components/page-content.svelte.ts": "./src/docs-shell/components/page-content.svelte.ts",
|
|
48
|
+
"./components/page-content.svelte": "./src/docs-shell/components/page-content.svelte.ts",
|
|
49
|
+
"./components/Dropped.astro": "./src/docs-shell/components/Dropped.astro",
|
|
50
|
+
"./components/Callout.astro": "./src/docs-shell/components/Callout.astro",
|
|
51
|
+
"./components/Link.svelte": "./src/docs-shell/components/Link.svelte",
|
|
52
|
+
"./components/DocHeading.astro": "./src/docs-shell/components/DocHeading.astro",
|
|
53
|
+
"./components/StepL.astro": "./src/docs-shell/components/StepL.astro",
|
|
54
|
+
"./components/Header.svelte": "./src/docs-shell/components/Header.svelte",
|
|
55
|
+
"./components/ModeImg.astro": "./src/docs-shell/components/ModeImg.astro",
|
|
56
|
+
"./components/DocMain.astro": "./src/docs-shell/components/DocMain.astro",
|
|
57
|
+
"./components/ThemeSelect.svelte": "./src/docs-shell/components/ThemeSelect.svelte",
|
|
58
|
+
"./components/DocHeader.svelte": "./src/docs-shell/components/DocHeader.svelte",
|
|
59
|
+
"./components/ThemeIcon.astro": "./src/docs-shell/components/ThemeIcon.astro",
|
|
60
|
+
"./components/SearchDialog.svelte": "./src/docs-shell/components/SearchDialog.svelte",
|
|
61
|
+
"./components/Info.astro": "./src/docs-shell/components/Info.astro",
|
|
62
|
+
"./components/StepR.astro": "./src/docs-shell/components/StepR.astro",
|
|
63
|
+
"./components/HeaderNav.svelte": "./src/docs-shell/components/HeaderNav.svelte",
|
|
64
|
+
"./components/page-content-bootstrap.ts": "./src/docs-shell/components/page-content-bootstrap.ts",
|
|
65
|
+
"./components/page-content-bootstrap": "./src/docs-shell/components/page-content-bootstrap.ts",
|
|
66
|
+
"./components/DocWrapper.astro": "./src/docs-shell/components/DocWrapper.astro",
|
|
67
|
+
"./components/markdown-components.ts": "./src/docs-shell/components/markdown-components.ts",
|
|
68
|
+
"./components/markdown-components": "./src/docs-shell/components/markdown-components.ts",
|
|
69
|
+
"./components/LanguageSelect.svelte": "./src/docs-shell/components/LanguageSelect.svelte",
|
|
70
|
+
"./components/PageContentDisclosure.astro": "./src/docs-shell/components/PageContentDisclosure.astro",
|
|
71
|
+
"./components/RenderNode.astro": "./src/docs-shell/components/RenderNode.astro",
|
|
72
|
+
"./components/ExpandContent.svelte": "./src/docs-shell/components/ExpandContent.svelte",
|
|
73
|
+
"./components/InlineCode.astro": "./src/docs-shell/components/InlineCode.astro",
|
|
74
|
+
"./components/FileIcon.astro": "./src/docs-shell/components/FileIcon.astro",
|
|
75
|
+
"./components/LanguageButton.svelte": "./src/docs-shell/components/LanguageButton.svelte",
|
|
76
|
+
"./components/Do.astro": "./src/docs-shell/components/Do.astro",
|
|
77
|
+
"./components/StepSection.astro": "./src/docs-shell/components/StepSection.astro",
|
|
78
|
+
"./components/ArticleTOC.astro": "./src/docs-shell/components/ArticleTOC.astro",
|
|
79
|
+
"./components/ExplorerView.astro": "./src/docs-shell/components/ExplorerView.astro",
|
|
80
|
+
"./components/PageContentProvider.svelte": "./src/docs-shell/components/PageContentProvider.svelte",
|
|
81
|
+
"./components/PageContentTitle.svelte": "./src/docs-shell/components/PageContentTitle.svelte",
|
|
82
|
+
"./components/PackageBadges.astro": "./src/docs-shell/components/PackageBadges.astro",
|
|
83
|
+
"./components/SearchButton.svelte": "./src/docs-shell/components/SearchButton.svelte",
|
|
84
|
+
"./components/Image.svelte": "./src/docs-shell/components/Image.svelte",
|
|
85
|
+
"./components/RouteLayers.astro": "./src/docs-shell/components/RouteLayers.astro",
|
|
86
|
+
"./components/code-props.ts": "./src/docs-shell/components/code-props.ts",
|
|
87
|
+
"./components/code-props": "./src/docs-shell/components/code-props.ts",
|
|
88
|
+
"./components/Footer.svelte": "./src/docs-shell/components/Footer.svelte",
|
|
89
|
+
"./components/CodeTabBar.astro": "./src/docs-shell/components/CodeTabBar.astro",
|
|
90
|
+
"./components/PMAction.astro": "./src/docs-shell/components/PMAction.astro",
|
|
91
|
+
"./components/DocArticle.astro": "./src/docs-shell/components/DocArticle.astro",
|
|
92
|
+
"./components/OverviewButtons.astro": "./src/docs-shell/components/OverviewButtons.astro",
|
|
93
|
+
"./components/CodeTabs.astro": "./src/docs-shell/components/CodeTabs.astro",
|
|
94
|
+
"./components/DoNot.astro": "./src/docs-shell/components/DoNot.astro",
|
|
95
|
+
"./components/DocSidebar.svelte": "./src/docs-shell/components/DocSidebar.svelte",
|
|
96
|
+
"./components/PageContentBootstrap.astro": "./src/docs-shell/components/PageContentBootstrap.astro",
|
|
97
|
+
"./components/PageContent.svelte": "./src/docs-shell/components/PageContent.svelte",
|
|
98
|
+
"./components/CodeView.astro": "./src/docs-shell/components/CodeView.astro",
|
|
99
|
+
"./components/Tab.astro": "./src/docs-shell/components/Tab.astro",
|
|
100
|
+
"./components/NotFound.astro": "./src/docs-shell/components/NotFound.astro",
|
|
101
|
+
"./components/CodeCopyButton.astro": "./src/docs-shell/components/CodeCopyButton.astro",
|
|
102
|
+
"./components/ArticleHeader.astro": "./src/docs-shell/components/ArticleHeader.astro",
|
|
103
|
+
"./components/HeaderIcon.astro": "./src/docs-shell/components/HeaderIcon.astro",
|
|
104
|
+
"./components/TimeAgo.svelte": "./src/docs-shell/components/TimeAgo.svelte",
|
|
105
|
+
"./components/InteractingIndicator.astro": "./src/docs-shell/components/InteractingIndicator.astro",
|
|
106
|
+
"./components/PreparedCodeView.astro": "./src/docs-shell/components/PreparedCodeView.astro",
|
|
107
|
+
"./components/Segments.svelte": "./src/docs-shell/components/Segments.svelte",
|
|
108
|
+
"./components/Warn.astro": "./src/docs-shell/components/Warn.astro",
|
|
109
|
+
"./components/DocMenuButton.svelte": "./src/docs-shell/components/DocMenuButton.svelte",
|
|
110
|
+
"./components/Translate.astro": "./src/docs-shell/components/Translate.astro",
|
|
111
|
+
"./components/Code.astro": "./src/docs-shell/components/Code.astro",
|
|
112
|
+
"./components/Step.astro": "./src/docs-shell/components/Step.astro",
|
|
113
|
+
"./components/markdown/Table.astro": "./src/docs-shell/components/markdown/Table.astro",
|
|
114
|
+
"./components/markdown/Heading3.astro": "./src/docs-shell/components/markdown/Heading3.astro",
|
|
115
|
+
"./components/markdown/Heading2.astro": "./src/docs-shell/components/markdown/Heading2.astro",
|
|
116
|
+
"./components/markdown/Anchor.astro": "./src/docs-shell/components/markdown/Anchor.astro",
|
|
117
|
+
"./contexts/theme-mode.svelte.ts": "./src/docs-shell/contexts/theme-mode.svelte.ts",
|
|
118
|
+
"./contexts/theme-mode.svelte": "./src/docs-shell/contexts/theme-mode.svelte.ts",
|
|
119
|
+
"./contexts/search.ts": "./src/docs-shell/contexts/search.ts",
|
|
120
|
+
"./contexts/search": "./src/docs-shell/contexts/search.ts",
|
|
121
|
+
"./factories/Page.astro": "./src/docs-shell/factories/Page.astro",
|
|
122
|
+
"./factories/create-page.ts": "./src/docs-shell/factories/create-page.ts",
|
|
123
|
+
"./factories/create-page": "./src/docs-shell/factories/create-page.ts",
|
|
124
|
+
"./layouts/Doc.astro": "./src/docs-shell/layouts/Doc.astro",
|
|
125
|
+
"./types/Props.ts": "./src/docs-shell/types/Props.ts",
|
|
126
|
+
"./types/Props": "./src/docs-shell/types/Props.ts",
|
|
127
|
+
"./types/StaticImage.ts": "./src/docs-shell/types/StaticImage.ts",
|
|
128
|
+
"./types/StaticImage": "./src/docs-shell/types/StaticImage.ts",
|
|
129
|
+
"./types/Metadata.ts": "./src/docs-shell/types/Metadata.ts",
|
|
130
|
+
"./types/Metadata": "./src/docs-shell/types/Metadata.ts",
|
|
131
|
+
"./utils/syntax-theme.ts": "./src/docs-shell/utils/syntax-theme.ts",
|
|
132
|
+
"./utils/syntax-theme": "./src/docs-shell/utils/syntax-theme.ts",
|
|
133
|
+
"./utils/resolve-heading.js": "./src/docs-shell/utils/resolve-heading.js",
|
|
134
|
+
"./utils/resolve-heading": "./src/docs-shell/utils/resolve-heading.js",
|
|
135
|
+
"./utils/beautify-js.ts": "./src/docs-shell/utils/beautify-js.ts",
|
|
136
|
+
"./utils/beautify-js": "./src/docs-shell/utils/beautify-js.ts",
|
|
137
|
+
"./utils/prepared-code.ts": "./src/docs-shell/utils/prepared-code.ts",
|
|
138
|
+
"./utils/prepared-code": "./src/docs-shell/utils/prepared-code.ts",
|
|
139
|
+
"./utils/isInteractOutside.ts": "./src/docs-shell/utils/isInteractOutside.ts",
|
|
140
|
+
"./utils/isInteractOutside": "./src/docs-shell/utils/isInteractOutside.ts",
|
|
141
|
+
"./utils/highlight-code.ts": "./src/docs-shell/utils/highlight-code.ts",
|
|
142
|
+
"./utils/highlight-code": "./src/docs-shell/utils/highlight-code.ts",
|
|
143
|
+
"./utils/slot-text.ts": "./src/docs-shell/utils/slot-text.ts",
|
|
144
|
+
"./utils/slot-text": "./src/docs-shell/utils/slot-text.ts",
|
|
145
|
+
"./utils/beautify-css.ts": "./src/docs-shell/utils/beautify-css.ts",
|
|
146
|
+
"./utils/beautify-css": "./src/docs-shell/utils/beautify-css.ts",
|
|
147
|
+
"./utils/highlight-code-core.ts": "./src/docs-shell/utils/highlight-code-core.ts",
|
|
148
|
+
"./utils/highlight-code-core": "./src/docs-shell/utils/highlight-code-core.ts",
|
|
149
|
+
"./utils/i18n.ts": "./src/docs-shell/utils/i18n.ts",
|
|
150
|
+
"./utils/i18n": "./src/docs-shell/utils/i18n.ts",
|
|
151
|
+
"./utils/group-page-content.ts": "./src/docs-shell/utils/group-page-content.ts",
|
|
152
|
+
"./utils/group-page-content": "./src/docs-shell/utils/group-page-content.ts",
|
|
153
|
+
"./utils/head.ts": "./src/docs-shell/utils/head.ts",
|
|
154
|
+
"./utils/head": "./src/docs-shell/utils/head.ts",
|
|
155
|
+
"./utils/i18n-pathname.ts": "./src/docs-shell/utils/i18n-pathname.ts",
|
|
156
|
+
"./utils/i18n-pathname": "./src/docs-shell/utils/i18n-pathname.ts",
|
|
157
|
+
"./utils/generate-metadata.ts": "./src/docs-shell/utils/generate-metadata.ts",
|
|
158
|
+
"./utils/generate-metadata": "./src/docs-shell/utils/generate-metadata.ts",
|
|
159
|
+
"./utils/is-date-within-seven-days.ts": "./src/docs-shell/utils/is-date-within-seven-days.ts",
|
|
160
|
+
"./utils/is-date-within-seven-days": "./src/docs-shell/utils/is-date-within-seven-days.ts",
|
|
161
|
+
"./utils/beautify-html.ts": "./src/docs-shell/utils/beautify-html.ts",
|
|
162
|
+
"./utils/beautify-html": "./src/docs-shell/utils/beautify-html.ts",
|
|
163
|
+
"./utils/css-modern-grammar.ts": "./src/docs-shell/utils/css-modern-grammar.ts",
|
|
164
|
+
"./utils/css-modern-grammar": "./src/docs-shell/utils/css-modern-grammar.ts",
|
|
165
|
+
"./utils/search-pages.ts": "./src/docs-shell/utils/search-pages.ts",
|
|
166
|
+
"./utils/search-pages": "./src/docs-shell/utils/search-pages.ts",
|
|
167
|
+
"./utils/documentation-search.ts": "./src/docs-shell/utils/documentation-search.ts",
|
|
168
|
+
"./utils/documentation-search": "./src/docs-shell/utils/documentation-search.ts",
|
|
169
|
+
"./utils/highlighted-code-text.ts": "./src/docs-shell/utils/highlighted-code-text.ts",
|
|
170
|
+
"./utils/highlighted-code-text": "./src/docs-shell/utils/highlighted-code-text.ts",
|
|
171
|
+
"./utils/markdown-tree.ts": "./src/docs-shell/utils/markdown-tree.ts",
|
|
172
|
+
"./utils/markdown-tree": "./src/docs-shell/utils/markdown-tree.ts",
|
|
173
|
+
"./utils/isBrowser.ts": "./src/docs-shell/utils/isBrowser.ts",
|
|
174
|
+
"./utils/isBrowser": "./src/docs-shell/utils/isBrowser.ts",
|
|
175
|
+
"./utils/create-highlighter.ts": "./src/docs-shell/utils/create-highlighter.ts",
|
|
176
|
+
"./utils/create-highlighter": "./src/docs-shell/utils/create-highlighter.ts",
|
|
177
|
+
"./utils/anchor.ts": "./src/docs-shell/utils/anchor.ts",
|
|
178
|
+
"./utils/anchor": "./src/docs-shell/utils/anchor.ts",
|
|
179
|
+
"./utils/transformer-notation-word-mark.ts": "./src/docs-shell/utils/transformer-notation-word-mark.ts",
|
|
180
|
+
"./utils/transformer-notation-word-mark": "./src/docs-shell/utils/transformer-notation-word-mark.ts",
|
|
181
|
+
"./utils/metadata.ts": "./src/docs-shell/utils/metadata.ts",
|
|
182
|
+
"./utils/metadata": "./src/docs-shell/utils/metadata.ts",
|
|
183
|
+
"./utils/snackbar.ts": "./src/docs-shell/utils/snackbar.ts",
|
|
184
|
+
"./utils/snackbar": "./src/docs-shell/utils/snackbar.ts",
|
|
185
|
+
"./utils/unique-id.ts": "./src/docs-shell/utils/unique-id.ts",
|
|
186
|
+
"./utils/unique-id": "./src/docs-shell/utils/unique-id.ts",
|
|
187
|
+
"./common/i18n.config.js": "./src/docs-shell/common/i18n.config.js",
|
|
188
|
+
"./common/i18n.config": "./src/docs-shell/common/i18n.config.js",
|
|
189
|
+
"./common/svgo.config.js": "./src/docs-shell/common/svgo.config.js",
|
|
190
|
+
"./common/svgo.config": "./src/docs-shell/common/svgo.config.js",
|
|
191
|
+
"./remark/slug-and-toc.js": "./src/docs-shell/remark/slug-and-toc.js",
|
|
192
|
+
"./remark/slug-and-toc": "./src/docs-shell/remark/slug-and-toc.js",
|
|
193
|
+
"./remark/markdown-components.js": "./src/docs-shell/remark/markdown-components.js",
|
|
194
|
+
"./remark/markdown-components": "./src/docs-shell/remark/markdown-components.js",
|
|
195
|
+
"./data/colors.ts": "./src/docs-shell/data/colors.ts",
|
|
196
|
+
"./data/colors": "./src/docs-shell/data/colors.ts",
|
|
197
|
+
"./data/base-colors.ts": "./src/docs-shell/data/base-colors.ts",
|
|
198
|
+
"./data/base-colors": "./src/docs-shell/data/base-colors.ts",
|
|
199
|
+
"./data/authors.ts": "./src/docs-shell/data/authors.ts",
|
|
200
|
+
"./data/authors": "./src/docs-shell/data/authors.ts",
|
|
201
|
+
"./data/brands.ts": "./src/docs-shell/data/brands.ts",
|
|
202
|
+
"./data/brands": "./src/docs-shell/data/brands.ts",
|
|
203
|
+
"./data/color-names.ts": "./src/docs-shell/data/color-names.ts",
|
|
204
|
+
"./data/color-names": "./src/docs-shell/data/color-names.ts",
|
|
205
|
+
"./data/color-palette.ts": "./src/docs-shell/data/color-palette.ts",
|
|
206
|
+
"./data/color-palette": "./src/docs-shell/data/color-palette.ts",
|
|
207
|
+
"./scripts/document.ts": "./src/docs-shell/scripts/document.ts",
|
|
208
|
+
"./scripts/document": "./src/docs-shell/scripts/document.ts",
|
|
209
|
+
"./scripts/document-anchor.ts": "./src/docs-shell/scripts/document-anchor.ts",
|
|
210
|
+
"./scripts/document-anchor": "./src/docs-shell/scripts/document-anchor.ts",
|
|
211
|
+
"./scripts/code.ts": "./src/docs-shell/scripts/code.ts",
|
|
212
|
+
"./scripts/code": "./src/docs-shell/scripts/code.ts",
|
|
213
|
+
"./scripts/code-tabs-bootstrap.ts": "./src/docs-shell/scripts/code-tabs-bootstrap.ts",
|
|
214
|
+
"./scripts/code-tabs-bootstrap": "./src/docs-shell/scripts/code-tabs-bootstrap.ts",
|
|
215
|
+
"./astro/propagated-assets.ts": "./src/astro/propagated-assets.ts",
|
|
216
|
+
"./astro/propagated-assets": "./src/astro/propagated-assets.ts",
|
|
217
|
+
"./astro/source-url.ts": "./src/astro/source-url.ts",
|
|
218
|
+
"./astro/source-url": "./src/astro/source-url.ts",
|
|
219
|
+
"./astro/server-styles.ts": "./src/astro/server-styles.ts",
|
|
220
|
+
"./astro/server-styles": "./src/astro/server-styles.ts",
|
|
221
|
+
"./astro/module-id.ts": "./src/astro/module-id.ts",
|
|
222
|
+
"./astro/module-id": "./src/astro/module-id.ts",
|
|
223
|
+
"./astro/site-context.ts": "./src/astro/site-context.ts",
|
|
224
|
+
"./astro/site-context": "./src/astro/site-context.ts",
|
|
225
|
+
"./astro/route-paths.ts": "./src/astro/route-paths.ts",
|
|
226
|
+
"./astro/route-paths": "./src/astro/route-paths.ts",
|
|
227
|
+
"./astro/svg-markup.ts": "./src/astro/svg-markup.ts",
|
|
228
|
+
"./astro/svg-markup": "./src/astro/svg-markup.ts",
|
|
229
|
+
"./astro/index.ts": "./src/astro/index.ts",
|
|
230
|
+
"./astro/index": "./src/astro/index.ts",
|
|
231
|
+
"./astro/svelte-renderer.ts": "./src/astro/svelte-renderer.ts",
|
|
232
|
+
"./astro/svelte-renderer": "./src/astro/svelte-renderer.ts",
|
|
233
|
+
"./sections/*": "./src/sections/*",
|
|
234
|
+
"./env": "./src/virtual.d.ts",
|
|
235
|
+
"./home/*": "./src/home/*",
|
|
236
|
+
"./blog/*": "./src/blog/*",
|
|
237
|
+
"./demo/*": "./src/demo/*",
|
|
238
|
+
"./demo/style": "./src/demo/style.ts",
|
|
239
|
+
"./blog/article/language": "./src/blog/article/language.ts",
|
|
240
|
+
"./blog/article/neighbors": "./src/blog/article/neighbors.ts",
|
|
241
|
+
"./blog/article/title-parts": "./src/blog/article/title-parts.ts",
|
|
242
|
+
"./home/home-lamp": "./src/home/home-lamp.ts",
|
|
243
|
+
"./home/hero-title-mask": "./src/home/hero-title-mask.ts",
|
|
244
|
+
"./home/hero-shaders": "./src/home/hero-shaders.ts",
|
|
245
|
+
"./benchmarks/*": "./src/benchmarks/*",
|
|
246
|
+
"./demo/copy-feedback": "./src/demo/copy-feedback.ts",
|
|
247
|
+
"./demo/demo-waterfall": "./src/demo/demo-waterfall.ts",
|
|
248
|
+
"./demo/drag-readings": "./src/demo/drag-readings.ts",
|
|
249
|
+
"./demo/playback": "./src/demo/playback.ts",
|
|
250
|
+
"./demo/tone": "./src/demo/tone.ts",
|
|
251
|
+
"./demo/useDemoViewTransition.svelte": "./src/demo/useDemoViewTransition.svelte.ts",
|
|
252
|
+
"./benchmarks/utils": "./src/benchmarks/utils.ts",
|
|
253
|
+
"./benchmarks/types": "./src/benchmarks/types.ts",
|
|
254
|
+
"./components/document-types": "./src/docs-shell/components/document-types.ts",
|
|
255
|
+
"./css/*": "./src/css/*",
|
|
256
|
+
"./demo/maintenance-example": "./src/demo/maintenance-example.ts",
|
|
257
|
+
"./demo/project-style-examples": "./src/demo/project-style-examples.ts",
|
|
258
|
+
"./demo/reference/sizing": "./src/demo/reference/sizing.ts",
|
|
259
|
+
"./demo/reference/text-effects": "./src/demo/reference/text-effects.ts",
|
|
260
|
+
"./demo/reference/source": "./src/demo/reference/source.ts",
|
|
261
|
+
"./demo/reference/scrolling": "./src/demo/reference/scrolling.ts",
|
|
262
|
+
"./demo/reference/flexbox": "./src/demo/reference/flexbox.ts",
|
|
263
|
+
"./demo/reference/layout-html": "./src/demo/reference/layout-html.ts",
|
|
264
|
+
"./demo/reference/type-specimens": "./src/demo/reference/type-specimens.ts",
|
|
265
|
+
"./demo/reference/scenes": "./src/demo/reference/scenes.ts",
|
|
266
|
+
"./demo/reference/document": "./src/demo/reference/document.ts",
|
|
267
|
+
"./demo/reference/transitions": "./src/demo/reference/transitions.ts",
|
|
268
|
+
"./demo/reference/clipping": "./src/demo/reference/clipping.ts",
|
|
269
|
+
"./demo/reference/types": "./src/demo/reference/types.ts",
|
|
270
|
+
"./demo/reference/edges": "./src/demo/reference/edges.ts",
|
|
271
|
+
"./demo/reference/html": "./src/demo/reference/html.ts",
|
|
272
|
+
"./demo/reference/layout": "./src/demo/reference/layout.ts",
|
|
273
|
+
"./demo/reference/alignment": "./src/demo/reference/alignment.ts",
|
|
274
|
+
"./demo/reference/interaction": "./src/demo/reference/interaction.ts",
|
|
275
|
+
"./demo/reference/border-paint": "./src/demo/reference/border-paint.ts",
|
|
276
|
+
"./demo/reference/text-flow": "./src/demo/reference/text-flow.ts",
|
|
277
|
+
"./demo/reference/positioning": "./src/demo/reference/positioning.ts",
|
|
278
|
+
"./demo/reference/backgrounds": "./src/demo/reference/backgrounds.ts",
|
|
279
|
+
"./demo/reference/shapes": "./src/demo/reference/shapes.ts",
|
|
280
|
+
"./demo/reference/media": "./src/demo/reference/media.ts",
|
|
281
|
+
"./demo/reference/transforms": "./src/demo/reference/transforms.ts",
|
|
282
|
+
"./demo/reference/typography": "./src/demo/reference/typography.ts",
|
|
283
|
+
"./demo/reference/grid": "./src/demo/reference/grid.ts",
|
|
284
|
+
"./demo/reference/animations": "./src/demo/reference/animations.ts",
|
|
285
|
+
"./demo/reference/effects": "./src/demo/reference/effects.ts",
|
|
286
|
+
"./css/foundation-data/specimens": "./src/css/foundation-data/specimens.ts",
|
|
287
|
+
"./css/foundation-data/tokens": "./src/css/foundation-data/tokens.ts",
|
|
288
|
+
"./css/foundation-data/specimen-content": "./src/css/foundation-data/specimen-content.ts",
|
|
289
|
+
"./css/foundation-data/sizing/scale-data": "./src/css/foundation-data/sizing/scale-data.ts",
|
|
290
|
+
"./css/foundation-data/elevation/shadow-data": "./src/css/foundation-data/elevation/shadow-data.ts",
|
|
291
|
+
"./css/preset-manifest": "./src/css/preset-manifest.ts",
|
|
292
|
+
"./css/theme-variables": "./src/css/theme-variables.ts",
|
|
293
|
+
"./css/manifest-utilities": "./src/css/manifest-utilities.ts",
|
|
294
|
+
"./css/variable-namespace-sources": "./src/css/variable-namespace-sources.ts",
|
|
295
|
+
"./css/preset-css": "./src/css/preset-css.ts",
|
|
296
|
+
"./css/generate-preset-css": "./src/css/generate-preset-css.ts",
|
|
297
|
+
"./css/configured-example": "./src/css/configured-example.ts",
|
|
298
|
+
"./examples/*": "./src/examples/*",
|
|
299
|
+
"./home/icons/artwork": "./src/home/icons/artwork.ts",
|
|
300
|
+
"./home/icons/catalog": "./src/home/icons/catalog.ts",
|
|
301
|
+
"./home/home-illustration": "./src/home/home-illustration.ts",
|
|
302
|
+
"./css/stylesheet-example": "./src/css/stylesheet-example.ts",
|
|
303
|
+
"./css/highlight": "./src/css/highlight.ts"
|
|
304
|
+
},
|
|
305
|
+
"peerDependencies": {
|
|
306
|
+
"astro": "7.4.2",
|
|
307
|
+
"svelte": "5.57.2",
|
|
308
|
+
"@master/css": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
309
|
+
"@master/css-astro": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
310
|
+
"vite": "8.3.5",
|
|
311
|
+
"@master/css-compiler": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
312
|
+
"@master/css-tooling": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
313
|
+
"@master/css-schema": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
314
|
+
"@master/css-preset": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1",
|
|
315
|
+
"@master/css-language-service": "0.0.0 || >=0.0.0-site.1793646900.gdf48b35846c1 <0.0.1"
|
|
316
|
+
},
|
|
317
|
+
"dependencies": {
|
|
318
|
+
"@astrojs/svelte": "^9.1.2",
|
|
319
|
+
"@shikijs/langs": "^4.4.3",
|
|
320
|
+
"@shikijs/transformers": "^4.4.3",
|
|
321
|
+
"@tabler/icons-svelte-runes": "^3.50.0",
|
|
322
|
+
"acorn": "^8.18.0",
|
|
323
|
+
"clsx": "^2.1.1",
|
|
324
|
+
"colorjs.io": "^0.7.1",
|
|
325
|
+
"dayjs": "^1.11.23",
|
|
326
|
+
"defu": "^6.1.7",
|
|
327
|
+
"fast-glob": "^3.3.3",
|
|
328
|
+
"fuse.js": "^7.5.0",
|
|
329
|
+
"github-slugger": "^2.0.0",
|
|
330
|
+
"hast-util-to-html": "^9.0.5",
|
|
331
|
+
"html": "^1.0.0",
|
|
332
|
+
"js-beautify": "^2.0.3",
|
|
333
|
+
"mdast-util-from-markdown": "2.0.3",
|
|
334
|
+
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
335
|
+
"micromark-extension-mdxjs-esm": "^3.0.0",
|
|
336
|
+
"package-manager-detector": "^1.8.0",
|
|
337
|
+
"remark": "^15.0.1",
|
|
338
|
+
"remark-gfm": "^4.0.1",
|
|
339
|
+
"shiki": "^4.4.3",
|
|
340
|
+
"svgo": "^4.1.0",
|
|
341
|
+
"theme-mode": "^1.1.1",
|
|
342
|
+
"throttle-debounce": "^5.0.2",
|
|
343
|
+
"ts-dedent": "^2.3.0",
|
|
344
|
+
"unist-util-visit": "^5.1.0",
|
|
345
|
+
"@astrojs/mdx": "^8.1.2",
|
|
346
|
+
"@astrojs/markdown-remark": "^7.3.4",
|
|
347
|
+
"@resvg/resvg-js": "2.6.2",
|
|
348
|
+
"satori": "0.63.2",
|
|
349
|
+
"mdast-util-mdx-jsx": "^3.2.0",
|
|
350
|
+
"micromark-extension-mdx-jsx": "^3.0.2"
|
|
351
|
+
},
|
|
352
|
+
"publishConfig": {
|
|
353
|
+
"access": "public"
|
|
354
|
+
},
|
|
355
|
+
"repository": {
|
|
356
|
+
"type": "git",
|
|
357
|
+
"url": "https://github.com/master-co/master.git",
|
|
358
|
+
"directory": "packages/internal-site"
|
|
359
|
+
},
|
|
360
|
+
"scripts": {
|
|
361
|
+
"build": "tsdown",
|
|
362
|
+
"test": "node --import tsx --test 'src/**/*.test.ts'",
|
|
363
|
+
"type-check": "astro-check --tsconfig tsconfig.json && svelte-check --tsconfig tsconfig.json"
|
|
364
|
+
},
|
|
365
|
+
"peerDependenciesMeta": {
|
|
366
|
+
"@master/css-compiler": {
|
|
367
|
+
"optional": true
|
|
368
|
+
},
|
|
369
|
+
"@master/css-tooling": {
|
|
370
|
+
"optional": true
|
|
371
|
+
},
|
|
372
|
+
"@master/css-schema": {
|
|
373
|
+
"optional": true
|
|
374
|
+
},
|
|
375
|
+
"@master/css-preset": {
|
|
376
|
+
"optional": true
|
|
377
|
+
},
|
|
378
|
+
"@master/css-language-service": {
|
|
379
|
+
"optional": true
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"devDependencies": {
|
|
383
|
+
"@astrojs/check": "0.9.12",
|
|
384
|
+
"svelte-check": "4.7.7"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Document from '../layouts/Document.astro'
|
|
3
|
+
import RouteLayers from '../docs-shell/components/RouteLayers.astro'
|
|
4
|
+
import { getStaticPaths as getRoutePaths, loadRoute } from 'virtual:master-site/routes'
|
|
5
|
+
|
|
6
|
+
export const getStaticPaths = getRoutePaths
|
|
7
|
+
const route = await loadRoute(Astro.props)
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<Document metadata={route.metadata} assets={route.assets} bodyClass={route.bodyClass} locales={route.locales} bare={route.bare}>
|
|
11
|
+
<RouteLayers layers={route.layers} props={route.props} />
|
|
12
|
+
</Document>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { readdir, readFile, mkdir, writeFile, unlink } from 'node:fs/promises'
|
|
2
|
+
import { join, relative, dirname } from 'node:path'
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
4
|
+
import type { SiteConfig } from '../config'
|
|
5
|
+
|
|
6
|
+
export async function contentFiles(directory: string): Promise<string[]> {
|
|
7
|
+
const files: string[] = []
|
|
8
|
+
for (const entry of await readdir(directory, { withFileTypes: true })) {
|
|
9
|
+
const path = join(directory, entry.name)
|
|
10
|
+
if (entry.isDirectory()) files.push(...await contentFiles(path))
|
|
11
|
+
else if (entry.isFile()) files.push(path)
|
|
12
|
+
}
|
|
13
|
+
return files
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const specifier = (url: URL) => JSON.stringify('/@fs/' + fileURLToPath(url))
|
|
17
|
+
|
|
18
|
+
/** Generate only ordinary MDX wrappers; content and metadata remain statically imported. */
|
|
19
|
+
export async function prepareContentPages(site: SiteConfig, root: string, contentPrefix: string) {
|
|
20
|
+
const content = fileURLToPath(site.content)
|
|
21
|
+
const files = new Set(await contentFiles(content))
|
|
22
|
+
const destination = join(root, '.astro/master-site/pages')
|
|
23
|
+
const pages: Record<string, URL> = {}
|
|
24
|
+
const wanted = new Set<string>()
|
|
25
|
+
for (const file of files) {
|
|
26
|
+
if (!file.endsWith('/content.mdx')) continue
|
|
27
|
+
const directory = dirname(file)
|
|
28
|
+
if (files.has(join(directory, 'page.astro'))) continue
|
|
29
|
+
const metadata = join(directory, 'metadata.ts')
|
|
30
|
+
if (!files.has(metadata)) throw new Error(`${file} requires metadata.ts or an explicit page.astro`)
|
|
31
|
+
const route = relative(content, directory).replaceAll('\\', '/')
|
|
32
|
+
const section = route.split('/').find(segment => !/^\(.+\)$/.test(segment)) ?? 'home'
|
|
33
|
+
const config = site.documents?.[section]
|
|
34
|
+
if (!config) throw new Error(`${file} requires documents.${section} configuration or an explicit page.astro`)
|
|
35
|
+
const output = join(destination, route, 'page.astro')
|
|
36
|
+
const source = `---
|
|
37
|
+
// Generated by @master/internal-site; edit the content or site config.
|
|
38
|
+
import Page from '@master/internal-site/factories/Page.astro'
|
|
39
|
+
import { createPageMetadata } from '@master/internal-site/factories/create-page'
|
|
40
|
+
import Layout from ${specifier(config.layout)}
|
|
41
|
+
import dictionaries from ${specifier(config.dictionaries)}
|
|
42
|
+
import metadata from ${specifier(pathToFileURL(metadata))}
|
|
43
|
+
import * as content from ${specifier(pathToFileURL(file))}
|
|
44
|
+
${config.categories ? `import categories from ${specifier(config.categories)}` : 'const categories = undefined'}
|
|
45
|
+
export const generateMetadata = createPageMetadata(metadata, dictionaries)
|
|
46
|
+
---
|
|
47
|
+
<Page {...Astro.props} {metadata} {dictionaries} {categories} {content} {Layout} />
|
|
48
|
+
`
|
|
49
|
+
await mkdir(dirname(output), { recursive: true })
|
|
50
|
+
if (await readFile(output, 'utf8').catch(() => '') !== source) await writeFile(output, source)
|
|
51
|
+
wanted.add(output)
|
|
52
|
+
pages[`${contentPrefix}/${route ? route + '/' : ''}page.astro`] = pathToFileURL(output)
|
|
53
|
+
}
|
|
54
|
+
for (const stale of await contentFiles(destination).catch(() => [])) {
|
|
55
|
+
if (stale.endsWith('/page.astro') && !wanted.has(stale)) await unlink(stale)
|
|
56
|
+
}
|
|
57
|
+
const availableLocales: Record<string, readonly string[]> = {}
|
|
58
|
+
for (const file of files) {
|
|
59
|
+
if (!file.endsWith('/content.mdx')) continue
|
|
60
|
+
const directory = dirname(file)
|
|
61
|
+
const route = relative(content, directory).replaceAll('\\', '/')
|
|
62
|
+
const section = route.split('/').find(segment => !/^\(.+\)$/.test(segment)) ?? 'home'
|
|
63
|
+
if (!site.i18n.translatedOnly?.includes(section)) continue
|
|
64
|
+
availableLocales[`${contentPrefix}/${route ? route + '/' : ''}page.astro`] = site.i18n.locales.filter(locale =>
|
|
65
|
+
locale === site.i18n.defaultLocale || files.has(join(directory, `content.${locale}.mdx`)))
|
|
66
|
+
}
|
|
67
|
+
// A translated archive exists only when at least one article is translated.
|
|
68
|
+
for (const section of site.i18n.translatedOnly ?? []) {
|
|
69
|
+
const key = `${contentPrefix}/${section}/page.astro`
|
|
70
|
+
if (!files.has(join(content, section, 'page.astro'))) continue
|
|
71
|
+
const published = Object.entries(availableLocales).filter(([page]) => page.startsWith(`${contentPrefix}/${section}/`))
|
|
72
|
+
availableLocales[key] = site.i18n.locales.filter(locale => locale === site.i18n.defaultLocale || published.some(([, locales]) => locales.includes(locale)))
|
|
73
|
+
}
|
|
74
|
+
return { pages, availableLocales }
|
|
75
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { AstroIntegration } from 'astro'
|
|
2
|
+
import { svgoOptimizer } from 'astro/config'
|
|
3
|
+
import svelte from '@astrojs/svelte'
|
|
4
|
+
import mdx from '@astrojs/mdx'
|
|
5
|
+
import { unified } from '@astrojs/markdown-remark'
|
|
6
|
+
import masterCSS from '@master/css-astro'
|
|
7
|
+
import { fileURLToPath } from 'node:url'
|
|
8
|
+
import { extname, relative, resolve, sep } from 'node:path'
|
|
9
|
+
import { readFile, cp, mkdir } from 'node:fs/promises'
|
|
10
|
+
import { createReadStream, existsSync } from 'node:fs'
|
|
11
|
+
import { searchForWorkspaceRoot, transformWithOxc, type Plugin } from 'vite'
|
|
12
|
+
import type { SiteConfig } from '../config'
|
|
13
|
+
import sourceURL from './source-url'
|
|
14
|
+
import { prepareContentPages } from './content-pages'
|
|
15
|
+
import serverStyles from './server-styles'
|
|
16
|
+
import svgMarkup from './svg-markup'
|
|
17
|
+
import remarkSlugAndTOC from '../docs-shell/remark/slug-and-toc.js'
|
|
18
|
+
import remarkMarkdownComponents from '../docs-shell/remark/markdown-components.js'
|
|
19
|
+
import svgoConfig from '../docs-shell/common/svgo.config.js'
|
|
20
|
+
|
|
21
|
+
const packageSource = fileURLToPath(new URL('..', import.meta.url))
|
|
22
|
+
const fsImport = (url: URL) => '/@fs/' + fileURLToPath(url)
|
|
23
|
+
const moduleImport = (url: URL) => `export { default } from ${JSON.stringify(fsImport(url))}`
|
|
24
|
+
const propagated = (url: URL) => `() => import(${JSON.stringify(fsImport(url) + '?astroPropagatedAssets')}).then(m => m.default)`
|
|
25
|
+
|
|
26
|
+
export default function masterSite(site: SiteConfig): AstroIntegration {
|
|
27
|
+
let output: URL
|
|
28
|
+
return {
|
|
29
|
+
name: '@master/internal-site',
|
|
30
|
+
hooks: {
|
|
31
|
+
'astro:config:setup': async ({ config, updateConfig, addRenderer, injectRoute }) => {
|
|
32
|
+
const root = fileURLToPath(config.root)
|
|
33
|
+
const contentRelative = relative(root, fileURLToPath(site.content)).split(sep).join('/')
|
|
34
|
+
if (contentRelative.startsWith('..')) throw new Error('Site content must be inside the Astro project root')
|
|
35
|
+
const contentPrefix = '/' + contentRelative.replace(/\/$/, '')
|
|
36
|
+
const prepared = await prepareContentPages(site, root, contentPrefix)
|
|
37
|
+
const routeOptions = { contentRoot: contentPrefix + '/', defaultLocale: site.i18n.defaultLocale, locales: site.i18n.locales, sectionLocales: site.i18n.sectionLocales, availableLocales: prepared.availableLocales }
|
|
38
|
+
const imports = {
|
|
39
|
+
'virtual:master-site/navigation': Object.entries(site.navigation ?? {}).map(([key, url], index) => `import data${index} from ${JSON.stringify(fsImport(url))}`).join('\n') + `\nexport default {${Object.keys(site.navigation ?? {}).map((key, index) => `${JSON.stringify(key)}: data${index}`).join(',')}}`,
|
|
40
|
+
'virtual:master-site/config': `export default ${JSON.stringify(site)}`,
|
|
41
|
+
'virtual:master-site/app': moduleImport(site.app),
|
|
42
|
+
'virtual:master-site/highlight': moduleImport(site.highlighter ?? new URL('../docs-shell/utils/highlight-code-core.ts', import.meta.url)),
|
|
43
|
+
'virtual:master-site/translations': `export default import.meta.glob(${JSON.stringify(`${contentPrefix}/**/content.*.mdx`)})`,
|
|
44
|
+
}
|
|
45
|
+
const plugin: Plugin = {
|
|
46
|
+
name: '@master/internal-site:modules',
|
|
47
|
+
resolveId(id) {
|
|
48
|
+
if (id === 'virtual:master-site/routes') return '\0' + id + '.ts'
|
|
49
|
+
if (id in imports) return '\0' + id
|
|
50
|
+
},
|
|
51
|
+
async load(id) {
|
|
52
|
+
if (id.slice(1) in imports) return imports[id.slice(1) as keyof typeof imports]
|
|
53
|
+
if (id !== '\0virtual:master-site/routes.ts') return
|
|
54
|
+
let source = await readFile(new URL('./routes.template.ts', import.meta.url), 'utf8')
|
|
55
|
+
source = source.replaceAll('__CONTENT_PREFIX__', contentPrefix)
|
|
56
|
+
source = source.replace('__ROUTE_OPTIONS__', JSON.stringify(routeOptions))
|
|
57
|
+
source = source.replace('__GENERATED_PAGES__', `{${Object.entries(prepared.pages).map(([name, url]) => `${JSON.stringify(name)}: ${propagated(url)}`).join(',\n')}}`)
|
|
58
|
+
const sections = Object.entries(site.sections).map(([name, url]) => `${JSON.stringify(`/sections/${name}.astro`)}: ${propagated(url)}`).join(',\n')
|
|
59
|
+
source = source.replace('__SECTION_IMPORTS__', `{${sections}}`)
|
|
60
|
+
for (const boundary of ['site', 'interface', 'documents'] as const) {
|
|
61
|
+
const url = site.styles?.[boundary] ?? new URL(`../styles/${boundary}.ts`, import.meta.url)
|
|
62
|
+
source = source.replace(`__${boundary.toUpperCase()}_IMPORT__`, `{${JSON.stringify(`/styles/${boundary}.ts`)}: ${propagated(url)}}`)
|
|
63
|
+
}
|
|
64
|
+
source = source.replace('__SECTION_SHELLS__', JSON.stringify(Object.fromEntries(Object.keys(site.sections).map(key => [key, key]))))
|
|
65
|
+
return transformWithOxc(source, 'master-site-routes.ts')
|
|
66
|
+
},
|
|
67
|
+
configureServer(server) {
|
|
68
|
+
// Adding/removing an ordinary document changes generated route imports.
|
|
69
|
+
// Restart through Vite so Astro rebuilds config and its lazy route map.
|
|
70
|
+
const routeFile = /(?:^|\/)(?:content(?:\.[^/]+)?\.mdx|metadata\.ts|page\.astro|params\.ts|layout\.astro)$/
|
|
71
|
+
let restart: ReturnType<typeof setTimeout> | undefined
|
|
72
|
+
const refresh = (file: string) => {
|
|
73
|
+
if (!file.startsWith(fileURLToPath(site.content)) || !routeFile.test(file.replaceAll('\\', '/'))) return
|
|
74
|
+
clearTimeout(restart)
|
|
75
|
+
restart = setTimeout(() => { void server.restart() }, 100)
|
|
76
|
+
}
|
|
77
|
+
server.watcher.on('add', refresh).on('unlink', refresh)
|
|
78
|
+
server.httpServer?.once('close', () => {
|
|
79
|
+
clearTimeout(restart)
|
|
80
|
+
server.watcher.off('add', refresh).off('unlink', refresh)
|
|
81
|
+
})
|
|
82
|
+
// Serve package-owned assets without copying them into the consumer's source tree.
|
|
83
|
+
// A consumer's public asset takes precedence at the same URL.
|
|
84
|
+
server.middlewares.use((request, response, next) => {
|
|
85
|
+
let pathname: string
|
|
86
|
+
try { pathname = decodeURIComponent(new URL(request.url ?? '/', 'http://localhost').pathname) }
|
|
87
|
+
catch { return next() }
|
|
88
|
+
if (!/^\/(fonts|icons|images|brand|demo)\//.test(pathname)) return next()
|
|
89
|
+
const directory = resolve(packageSource, 'public') + sep
|
|
90
|
+
const file = resolve(directory, '.' + pathname)
|
|
91
|
+
if (!file.startsWith(directory) || !existsSync(file) || existsSync(resolve(root, 'public', '.' + pathname))) return next()
|
|
92
|
+
const contentTypes: Record<string, string> = { '.woff2': 'font/woff2', '.ttf': 'font/ttf', '.css': 'text/css', '.svg': 'image/svg+xml', '.png': 'image/png', '.jpg': 'image/jpeg', '.webp': 'image/webp', '.ico': 'image/x-icon', '.json': 'application/json' }
|
|
93
|
+
const type = contentTypes[extname(file)]
|
|
94
|
+
if (!type) return next()
|
|
95
|
+
response.setHeader('Content-Type', type)
|
|
96
|
+
createReadStream(file).pipe(response)
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
addRenderer({
|
|
101
|
+
name: '@master/internal-site:svelte',
|
|
102
|
+
serverEntrypoint: fileURLToPath(new URL('./svelte-renderer.ts', import.meta.url)),
|
|
103
|
+
clientEntrypoint: '@astrojs/svelte/client.js'
|
|
104
|
+
})
|
|
105
|
+
injectRoute({ pattern: '/[...path]', entrypoint: new URL('./Page.astro', import.meta.url), prerender: true })
|
|
106
|
+
updateConfig({
|
|
107
|
+
site: site.origin,
|
|
108
|
+
trailingSlash: 'never',
|
|
109
|
+
build: { format: 'file' },
|
|
110
|
+
markdown: { processor: unified({ remarkPlugins: [remarkSlugAndTOC, remarkMarkdownComponents], gfm: true, smartypants: false }), syntaxHighlight: false },
|
|
111
|
+
experimental: { svgOptimizer: svgoOptimizer(svgoConfig as Parameters<typeof svgoOptimizer>[0]) },
|
|
112
|
+
vite: { plugins: [plugin, sourceURL(), serverStyles([root, packageSource]), svgMarkup()], resolve: { dedupe: ['svelte'] }, server: { fs: { allow: [searchForWorkspaceRoot(root), packageSource] } } },
|
|
113
|
+
integrations: [svelte(), mdx(), masterCSS({ mode: 'progressive' })]
|
|
114
|
+
})
|
|
115
|
+
},
|
|
116
|
+
'astro:config:done': ({ config }) => { output = config.outDir },
|
|
117
|
+
'astro:build:done': async () => {
|
|
118
|
+
const destination = output
|
|
119
|
+
await mkdir(destination, { recursive: true })
|
|
120
|
+
await cp(new URL('../public/', import.meta.url), destination, { recursive: true, force: false })
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|