@hraness/design-kit 0.31.1
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/ARTICLE_COPY.md +208 -0
- package/HERO_FIELDS.md +55 -0
- package/ICONS.md +56 -0
- package/LANTERN_MATERIAL.md +60 -0
- package/LICENSE +21 -0
- package/MARKETING_COPY.md +49 -0
- package/MARKETING_PRESET.md +108 -0
- package/PALETTES.md +90 -0
- package/PAPER_THEME.md +128 -0
- package/README.md +745 -0
- package/STATUS_PAGES.md +67 -0
- package/STYLE.md +245 -0
- package/WRITING.md +72 -0
- package/dist/browser/index.js +2345 -0
- package/dist/chunk-44djxk16.js +6872 -0
- package/dist/chunk-5gtx3pza.js +9 -0
- package/dist/chunk-77391vmq.js +454 -0
- package/dist/chunk-7b1586eb.js +1209 -0
- package/dist/chunk-8834fh4n.js +6 -0
- package/dist/chunk-9t8xyqte.js +870 -0
- package/dist/chunk-cejpzyfh.js +446 -0
- package/dist/chunk-eh71jz57.js +429 -0
- package/dist/chunk-evb02bc1.js +516 -0
- package/dist/chunk-h4k7yv6x.js +368 -0
- package/dist/chunk-he8eznb1.js +760 -0
- package/dist/chunk-mr1vdcjq.js +404 -0
- package/dist/chunk-wzvdn8ey.js +116 -0
- package/dist/fonts/nebula-sans/social-fonts.generated.js +53 -0
- package/dist/icons.js +48 -0
- package/dist/index.js +237 -0
- package/dist/launch.js +41 -0
- package/dist/mockups/client.js +422 -0
- package/dist/mockups/index.js +1850 -0
- package/dist/portfolio.js +1549 -0
- package/dist/provider-marks.js +19 -0
- package/dist/react/charts.js +11 -0
- package/dist/react/hero-backdrop.js +8 -0
- package/dist/react/index.js +7252 -0
- package/dist/react/platform-install.js +10 -0
- package/dist/react/server.js +137 -0
- package/dist/stylex-manifest.json +1 -0
- package/dist/stylex.css +5392 -0
- package/dist/syntax-highlighting.js +15 -0
- package/dist/testing.js +250 -0
- package/package.json +377 -0
- package/portfolio-inventory.json +31 -0
- package/scripts/check-lantern-material-snapshot.d.mts +26 -0
- package/scripts/check-lantern-material-snapshot.mjs +126 -0
- package/scripts/check-marketing-snapshot.d.mts +12 -0
- package/scripts/check-marketing-snapshot.mjs +58 -0
- package/scripts/lantern-material-snapshot.ts +101 -0
- package/scripts/marketing-textures.ts +48 -0
- package/scripts/paper-theme-snapshot.ts +97 -0
- package/scripts/product-marketing-snapshot.ts +149 -0
- package/src/appearance-menu.css +266 -0
- package/src/appearance.ts +32 -0
- package/src/article-html.ts +269 -0
- package/src/article.ts +686 -0
- package/src/browser/appearance-menu.ts +604 -0
- package/src/browser/artifact-share.ts +164 -0
- package/src/browser/design-palette.ts +197 -0
- package/src/browser/foil.ts +124 -0
- package/src/browser/hero-light.ts +11 -0
- package/src/browser/index.ts +29 -0
- package/src/browser/status-field.ts +432 -0
- package/src/browser/status-page.ts +100 -0
- package/src/browser/sticky-offset.ts +82 -0
- package/src/browser/theme-color-sync.ts +213 -0
- package/src/charts.css +7 -0
- package/src/compiler-components.css +34 -0
- package/src/compiler-foundation.css +18 -0
- package/src/compiler-palettes.css +7 -0
- package/src/compiler-tokens.css +342 -0
- package/src/components.css +3 -0
- package/src/design-gallery.css +431 -0
- package/src/effects.css +14 -0
- package/src/fonts/geist-mono/GeistMono[wght].woff2 +0 -0
- package/src/fonts/geist-mono/OFL.txt +93 -0
- package/src/fonts/geist-mono/PROVENANCE.md +12 -0
- package/src/fonts/instrument-serif/OFL.txt +93 -0
- package/src/fonts/instrument-serif/UPSTREAM.md +14 -0
- package/src/fonts/instrument-serif/instrument-serif-latin-400.woff2 +0 -0
- package/src/fonts/nebula-sans/LICENSE.txt +96 -0
- package/src/fonts/nebula-sans/NebulaSans-Black.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BlackItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Bold.otf +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Bold.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BoldItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Book.otf +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Book.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-BookItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Light.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-LightItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Medium.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-MediumItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-Semibold.woff2 +0 -0
- package/src/fonts/nebula-sans/NebulaSans-SemiboldItalic.woff2 +0 -0
- package/src/fonts/nebula-sans/PROVENANCE.md +14 -0
- package/src/fonts/nebula-sans/social-fonts.generated.ts +3873 -0
- package/src/fonts.css +106 -0
- package/src/icons/act60/act60.svg +5 -0
- package/src/icons/act60/application.svg +9 -0
- package/src/icons/act60/chapter-compare.svg +3 -0
- package/src/icons/act60/decree-residence.svg +6 -0
- package/src/icons/act60/estimate.svg +7 -0
- package/src/icons/act60/export-services.svg +4 -0
- package/src/icons/act60/investor.svg +13 -0
- package/src/icons/act60/presence.svg +7 -0
- package/src/icons/aicharts/aicharts.svg +6 -0
- package/src/icons/aicharts/cost-compare.svg +4 -0
- package/src/icons/aicharts/task-audio.svg +7 -0
- package/src/icons/aicharts/task-coding.svg +6 -0
- package/src/icons/aicharts/task-images.svg +3 -0
- package/src/icons/aicharts/task-reasoning.svg +9 -0
- package/src/icons/aicharts/task-research.svg +5 -0
- package/src/icons/aicharts/task-video.svg +4 -0
- package/src/icons/manifest.json +1371 -0
- package/src/icons/platonik/conversation.svg +3 -0
- package/src/icons/platonik/creature.svg +7 -0
- package/src/icons/platonik/economy.svg +4 -0
- package/src/icons/platonik/keep-light.svg +6 -0
- package/src/icons/platonik/platonik.svg +7 -0
- package/src/icons/platonik/spark-route.svg +15 -0
- package/src/icons/receipts/act60-retry.receipt.json +888 -0
- package/src/icons/receipts/act60.receipt.json +1366 -0
- package/src/icons/receipts/aicharts.receipt.json +1546 -0
- package/src/icons/receipts/platonik.receipt.json +1011 -0
- package/src/icons/receipts/roughday.receipt.json +770 -0
- package/src/icons/receipts/shared.receipt.json +1296 -0
- package/src/icons/receipts/slopcamera.receipt.json +1495 -0
- package/src/icons/receipts/soundfish-retry.receipt.json +460 -0
- package/src/icons/receipts/soundfish.receipt.json +1709 -0
- package/src/icons/receipts/sponge.receipt.json +1743 -0
- package/src/icons/receipts/stripe-history-retry.receipt.json +145 -0
- package/src/icons/receipts/stripe-history.receipt.json +1202 -0
- package/src/icons/receipts/wordcell.receipt.json +1924 -0
- package/src/icons/roughday/finance.svg +7 -0
- package/src/icons/roughday/roughday.svg +6 -0
- package/src/icons/roughday/technology.svg +4 -0
- package/src/icons/roughday/world.svg +4 -0
- package/src/icons/sets/act60.json +63 -0
- package/src/icons/sets/aicharts.json +63 -0
- package/src/icons/sets/platonik.json +39 -0
- package/src/icons/sets/roughday.json +25 -0
- package/src/icons/sets/shared.json +12 -0
- package/src/icons/sets/slopcamera.json +47 -0
- package/src/icons/sets/soundfish.json +43 -0
- package/src/icons/sets/sponge.json +51 -0
- package/src/icons/sets/stripe-history.json +39 -0
- package/src/icons/sets/wordcell.json +51 -0
- package/src/icons/shared/agent-skill.svg +4 -0
- package/src/icons/shared/cli.svg +5 -0
- package/src/icons/shared/privacy.svg +3 -0
- package/src/icons/shared/research.svg +7 -0
- package/src/icons/shared/sdk.svg +3 -0
- package/src/icons/slopcamera/diagram.svg +3 -0
- package/src/icons/slopcamera/direct-scene.svg +5 -0
- package/src/icons/slopcamera/edit-video.svg +17 -0
- package/src/icons/slopcamera/mcp.svg +3 -0
- package/src/icons/slopcamera/native-world.svg +3 -0
- package/src/icons/slopcamera/slopcamera.svg +11 -0
- package/src/icons/soundfish/agent-ui.svg +7 -0
- package/src/icons/soundfish/collaborate.svg +5 -0
- package/src/icons/soundfish/compose.svg +3 -0
- package/src/icons/soundfish/hear.svg +6 -0
- package/src/icons/soundfish/human-ui.svg +6 -0
- package/src/icons/soundfish/share.svg +3 -0
- package/src/icons/soundfish/soundfish.svg +6 -0
- package/src/icons/sponge/api.svg +3 -0
- package/src/icons/sponge/documents.svg +3 -0
- package/src/icons/sponge/library.svg +3 -0
- package/src/icons/sponge/one-question.svg +5 -0
- package/src/icons/sponge/people-direct.svg +5 -0
- package/src/icons/sponge/read.svg +3 -0
- package/src/icons/sponge/save.svg +4 -0
- package/src/icons/sponge/sponge.svg +7 -0
- package/src/icons/stripe-history/company-history.svg +3 -0
- package/src/icons/stripe-history/evidence.svg +4 -0
- package/src/icons/stripe-history/independence.svg +7 -0
- package/src/icons/stripe-history/publications.svg +11 -0
- package/src/icons/stripe-history/sources.svg +6 -0
- package/src/icons/stripe-history/stripe-history.svg +3 -0
- package/src/icons/wordcell/backlinks.svg +6 -0
- package/src/icons/wordcell/capture.svg +6 -0
- package/src/icons/wordcell/git-provenance.svg +4 -0
- package/src/icons/wordcell/kb.svg +4 -0
- package/src/icons/wordcell/markdown.svg +4 -0
- package/src/icons/wordcell/scopes.svg +3 -0
- package/src/icons/wordcell/search.svg +7 -0
- package/src/icons.generated.ts +734 -0
- package/src/icons.ts +51 -0
- package/src/index.ts +275 -0
- package/src/lantern-material.css +213 -0
- package/src/launch.ts +624 -0
- package/src/marketing-assets/UPSTREAM.md +18 -0
- package/src/marketing-assets/cells.svg +1 -0
- package/src/marketing-assets/grain.svg +1 -0
- package/src/marketing-forced-colors.css +12 -0
- package/src/mockups/client.tsx +415 -0
- package/src/mockups/core.tsx +318 -0
- package/src/mockups/frames.tsx +368 -0
- package/src/mockups/index.ts +14 -0
- package/src/mockups/surfaces.tsx +681 -0
- package/src/mockups.css +2607 -0
- package/src/palette-appearance.ts +45 -0
- package/src/palette-bridge.css +124 -0
- package/src/palette-color.ts +41 -0
- package/src/palette-system.css +721 -0
- package/src/palette-themes.ts +23 -0
- package/src/palette-tokens.stylex.ts +519 -0
- package/src/palettes.css +3 -0
- package/src/palettes.ts +161 -0
- package/src/paper-theme.css +244 -0
- package/src/plain-publication.css +1241 -0
- package/src/plain-site.css +397 -0
- package/src/platforms.ts +151 -0
- package/src/portfolio.generated.json +1595 -0
- package/src/portfolio.generated.ts +1596 -0
- package/src/portfolio.ts +226 -0
- package/src/product-marketing-foundation.css +433 -0
- package/src/product-marketing-preset.css +261 -0
- package/src/product-marketing.css +2186 -0
- package/src/provider-marks.generated.ts +112 -0
- package/src/provider-marks.ts +143 -0
- package/src/react/animated-rail-stage.stylex.ts +15 -0
- package/src/react/animated-rail-stage.tsx +51 -0
- package/src/react/app-shell.stylex.ts +104 -0
- package/src/react/app-shell.tsx +121 -0
- package/src/react/article.tsx +602 -0
- package/src/react/aurora-dots-background.tsx +34 -0
- package/src/react/charts.stylex.ts +563 -0
- package/src/react/charts.tsx +610 -0
- package/src/react/chat.stylex.ts +34 -0
- package/src/react/chat.tsx +155 -0
- package/src/react/design-gallery.tsx +943 -0
- package/src/react/design-palette.stylex.ts +124 -0
- package/src/react/design-palette.tsx +196 -0
- package/src/react/design-theme-context.tsx +41 -0
- package/src/react/effects.stylex.ts +325 -0
- package/src/react/fader.stylex.ts +71 -0
- package/src/react/fader.tsx +151 -0
- package/src/react/foil-card-math.ts +100 -0
- package/src/react/foil-card-surface.stylex.ts +326 -0
- package/src/react/foil-card-surface.tsx +742 -0
- package/src/react/foil-mark.tsx +35 -0
- package/src/react/foil.stylex.ts +163 -0
- package/src/react/haptics.ts +228 -0
- package/src/react/hero-backdrop.tsx +22 -0
- package/src/react/index.ts +38 -0
- package/src/react/keyboard-shortcuts.ts +228 -0
- package/src/react/lantern-material-gallery.tsx +166 -0
- package/src/react/lantern-material.stylex.ts +39 -0
- package/src/react/launch-beats.tsx +73 -0
- package/src/react/navigation-rail.stylex.ts +130 -0
- package/src/react/navigation-rail.tsx +228 -0
- package/src/react/particle-halo.tsx +115 -0
- package/src/react/phaser-dots.tsx +501 -0
- package/src/react/platform-icons.tsx +94 -0
- package/src/react/platform-install.stylex.ts +385 -0
- package/src/react/platform-install.tsx +389 -0
- package/src/react/playback-transport.stylex.ts +14 -0
- package/src/react/playback-transport.tsx +112 -0
- package/src/react/procedural-backdrop.tsx +192 -0
- package/src/react/procedural-recipe.ts +323 -0
- package/src/react/product-marketing.stylex.ts +4469 -0
- package/src/react/product-marketing.tsx +1611 -0
- package/src/react/production-data-preview-notice.stylex.ts +40 -0
- package/src/react/production-data-preview-notice.tsx +34 -0
- package/src/react/provider-mark.stylex.ts +132 -0
- package/src/react/provider-mark.tsx +120 -0
- package/src/react/relative-time.tsx +117 -0
- package/src/react/route-state.stylex.ts +39 -0
- package/src/react/route-state.tsx +350 -0
- package/src/react/server.ts +11 -0
- package/src/react/social-kit-panel.tsx +103 -0
- package/src/react/sticky-offset.tsx +33 -0
- package/src/react/surfaces.stylex.ts +179 -0
- package/src/react/surfaces.tsx +330 -0
- package/src/react/syntax-code.tsx +33 -0
- package/src/react/theme-color-sync.ts +1 -0
- package/src/react/theme-resolution.ts +11 -0
- package/src/react/theme.stylex.ts +276 -0
- package/src/react/theme.tsx +402 -0
- package/src/reading.css +72 -0
- package/src/relative-time.ts +185 -0
- package/src/reset.css +2 -0
- package/src/site-shell.css +16 -0
- package/src/status-page-html.ts +63 -0
- package/src/status-page.css +276 -0
- package/src/status-page.ts +323 -0
- package/src/styles.css +21 -0
- package/src/syntax-code-lexers.ts +303 -0
- package/src/syntax-highlighting.css +78 -0
- package/src/syntax-highlighting.ts +477 -0
- package/src/syntax-tokens.ts +33 -0
- package/src/testing.ts +307 -0
- package/src/tokens.css +3 -0
- package/src/typography.css +86 -0
- package/vendor/evilcharts/LICENSE +21 -0
- package/vendor/evilcharts/UPSTREAM.md +14 -0
- package/vendor/platform-marks/LICENSE +30 -0
- package/vendor/platform-marks/UPSTREAM.md +15 -0
- package/vendor/platform-marks/apple.svg +1 -0
- package/vendor/platform-marks/linux.svg +1 -0
- package/vendor/provider-marks/CRUSH-LICENSE.md +134 -0
- package/vendor/provider-marks/LICENSE +21 -0
- package/vendor/provider-marks/UPSTREAM.md +27 -0
- package/vendor/provider-marks/aider.svg +3 -0
- package/vendor/provider-marks/crush-heartbit.svg +8 -0
- package/vendor/provider-marks/lobehub/alibabacloud-color.svg +1 -0
- package/vendor/provider-marks/lobehub/alibabacloud.svg +1 -0
- package/vendor/provider-marks/lobehub/amp-color.svg +1 -0
- package/vendor/provider-marks/lobehub/amp.svg +1 -0
- package/vendor/provider-marks/lobehub/anthropic.svg +1 -0
- package/vendor/provider-marks/lobehub/claude-color.svg +1 -0
- package/vendor/provider-marks/lobehub/claude.svg +1 -0
- package/vendor/provider-marks/lobehub/claudecode-color.svg +1 -0
- package/vendor/provider-marks/lobehub/claudecode.svg +1 -0
- package/vendor/provider-marks/lobehub/codex-color.svg +1 -0
- package/vendor/provider-marks/lobehub/codex.svg +1 -0
- package/vendor/provider-marks/lobehub/cursor.svg +1 -0
- package/vendor/provider-marks/lobehub/deepseek-color.svg +1 -0
- package/vendor/provider-marks/lobehub/deepseek.svg +1 -0
- package/vendor/provider-marks/lobehub/devin-color.svg +1 -0
- package/vendor/provider-marks/lobehub/devin.svg +1 -0
- package/vendor/provider-marks/lobehub/gemini-color.svg +1 -0
- package/vendor/provider-marks/lobehub/gemini.svg +1 -0
- package/vendor/provider-marks/lobehub/geminicli-color.svg +1 -0
- package/vendor/provider-marks/lobehub/geminicli.svg +1 -0
- package/vendor/provider-marks/lobehub/goose.svg +1 -0
- package/vendor/provider-marks/lobehub/meta-color.svg +1 -0
- package/vendor/provider-marks/lobehub/meta.svg +1 -0
- package/vendor/provider-marks/lobehub/mistral-color.svg +1 -0
- package/vendor/provider-marks/lobehub/mistral.svg +1 -0
- package/vendor/provider-marks/lobehub/moonshot.svg +1 -0
- package/vendor/provider-marks/lobehub/nvidia-color.svg +1 -0
- package/vendor/provider-marks/lobehub/nvidia.svg +1 -0
- package/vendor/provider-marks/lobehub/openai.svg +1 -0
- package/vendor/provider-marks/lobehub/opencode.svg +1 -0
- package/vendor/provider-marks/lobehub/perplexity-color.svg +1 -0
- package/vendor/provider-marks/lobehub/perplexity.svg +1 -0
- package/vendor/provider-marks/lobehub/qwen-color.svg +1 -0
- package/vendor/provider-marks/lobehub/qwen.svg +1 -0
- package/vendor/provider-marks/lobehub/xai.svg +1 -0
- package/vendor/provider-marks/lobehub/zai.svg +1 -0
package/src/testing.ts
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test helpers for product sites that use the article layer and the mockups.
|
|
3
|
+
*
|
|
4
|
+
* Framework-neutral: nothing here imports a test runner, React, or the DOM.
|
|
5
|
+
* `blogConformance` returns named checks that throw on failure, so any runner
|
|
6
|
+
* can wire them:
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* for (const check of blogConformance(config)) test(check.name, check.run);
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* The markup helpers take rendered HTML strings, such as the output of
|
|
13
|
+
* `renderToStaticMarkup`.
|
|
14
|
+
*/
|
|
15
|
+
import { articleAdmissionScore, assertArticleAdmissions, isArticleIndexable, type ArticleAdmission } from "./article.js";
|
|
16
|
+
import { LAUNCH_INTERNAL_WORDS, launchCopyProblems } from "./launch.js";
|
|
17
|
+
|
|
18
|
+
export class ConformanceError extends Error {
|
|
19
|
+
constructor(message: string) {
|
|
20
|
+
super(message);
|
|
21
|
+
this.name = "ConformanceError";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function fail(message: string): never {
|
|
26
|
+
throw new ConformanceError(message);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ConformanceCheck = Readonly<{ name: string; run: () => void | Promise<void> }>;
|
|
30
|
+
|
|
31
|
+
/** Visible text of an HTML string: scripts, styles, and tags dropped, common entities decoded, whitespace collapsed. */
|
|
32
|
+
export function htmlText(html: string): string {
|
|
33
|
+
return html
|
|
34
|
+
.replace(/<(script|style)\b[\s\S]*?<\/\1>/giu, " ")
|
|
35
|
+
.replace(/<[^>]+>/gu, " ")
|
|
36
|
+
.replace(/'|'|'/gu, "'")
|
|
37
|
+
.replace(/"/gu, '"')
|
|
38
|
+
.replace(/</gu, "<")
|
|
39
|
+
.replace(/>/gu, ">")
|
|
40
|
+
.replace(/ /gu, " ")
|
|
41
|
+
.replace(/&/gu, "&")
|
|
42
|
+
.replace(/\s+/gu, " ")
|
|
43
|
+
.trim();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Drop invented sample text from mockup markup before checking article prose.
|
|
48
|
+
* Mockups wrap sample text in `.hkm-sample` leaves; products may pass their
|
|
49
|
+
* own marker attributes too, such as a filter's skip marker.
|
|
50
|
+
*/
|
|
51
|
+
export function stripMockupSamples(html: string, attributes: readonly string[] = []): string {
|
|
52
|
+
let result = html.replace(/<span\b[^>]*\sclass="[^"]*\bhkm-sample\b[^"]*"[^>]*>[^<]*<\/span>/gu, " ");
|
|
53
|
+
for (const attribute of attributes) {
|
|
54
|
+
const escaped = attribute.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
|
|
55
|
+
result = result.replace(new RegExp(`<(span|p|div)\\b[^>]*\\s${escaped}(=("[^"]*"|'[^']*'))?[^>]*>[^<]*</\\1>`, "gu"), " ");
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type BlogConformancePost = Readonly<{
|
|
61
|
+
slug: string;
|
|
62
|
+
/** `/blog/<slug>` or the product's own base path. */
|
|
63
|
+
path: string;
|
|
64
|
+
heading: string;
|
|
65
|
+
description: string;
|
|
66
|
+
dek: string;
|
|
67
|
+
imageAlt?: string;
|
|
68
|
+
}>;
|
|
69
|
+
|
|
70
|
+
export type BlogConformanceLimits = Readonly<{
|
|
71
|
+
heading: number;
|
|
72
|
+
descriptionMin: number;
|
|
73
|
+
descriptionMax: number;
|
|
74
|
+
dek: number;
|
|
75
|
+
}>;
|
|
76
|
+
|
|
77
|
+
export const BLOG_CONFORMANCE_LIMITS: BlogConformanceLimits = Object.freeze({
|
|
78
|
+
heading: 70,
|
|
79
|
+
descriptionMin: 70,
|
|
80
|
+
descriptionMax: 160,
|
|
81
|
+
dek: 200,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export type BlogConformanceConfig<Post extends BlogConformancePost> = Readonly<{
|
|
85
|
+
/** Absolute site origin without a trailing slash, such as `https://example.com`. */
|
|
86
|
+
siteUrl: string;
|
|
87
|
+
posts: readonly Post[];
|
|
88
|
+
admissions: readonly ArticleAdmission[];
|
|
89
|
+
/** Rendered post page HTML. */
|
|
90
|
+
renderPost: (post: Post) => string | Promise<string>;
|
|
91
|
+
/** Rendered blog index HTML. */
|
|
92
|
+
renderIndex?: () => string | Promise<string>;
|
|
93
|
+
/** Absolute sitemap URLs. */
|
|
94
|
+
sitemapUrls?: () => readonly string[] | Promise<readonly string[]>;
|
|
95
|
+
/** RSS or Atom feed XML. */
|
|
96
|
+
feedXml?: () => string | Promise<string>;
|
|
97
|
+
/** The robots metadata a post page emits. */
|
|
98
|
+
robots?: (post: Post) => Readonly<{ index: boolean; follow: boolean }> | Promise<Readonly<{ index: boolean; follow: boolean }>>;
|
|
99
|
+
/** Published dates of the listed posts, in listing order. */
|
|
100
|
+
listedDates?: () => readonly string[];
|
|
101
|
+
limits?: BlogConformanceLimits;
|
|
102
|
+
/** Extra attributes that mark invented sample text inside figures. */
|
|
103
|
+
sampleAttributes?: readonly string[];
|
|
104
|
+
}>;
|
|
105
|
+
|
|
106
|
+
function admissionFor(admissions: readonly ArticleAdmission[], post: BlogConformancePost, siteUrl: string): ArticleAdmission {
|
|
107
|
+
const found = admissions.find((admission) => admission.href === post.path || admission.href === `${siteUrl}${post.path}`);
|
|
108
|
+
return found ?? fail(`No admission record for ${post.path}.`);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The shared blog checks: records pass the validator, indexable posts meet the
|
|
113
|
+
* bar, copy follows the article style rules, each page has one h1 and JSON-LD,
|
|
114
|
+
* robots follow the lifecycle, and the index, sitemap, and feed list exactly
|
|
115
|
+
* the indexable posts. Optional checks run when their config field is given.
|
|
116
|
+
*/
|
|
117
|
+
export function blogConformance<Post extends BlogConformancePost>(config: BlogConformanceConfig<Post>): readonly ConformanceCheck[] {
|
|
118
|
+
const limits = config.limits ?? BLOG_CONFORMANCE_LIMITS;
|
|
119
|
+
const sampleAttributes = config.sampleAttributes ?? [];
|
|
120
|
+
const indexable = (post: Post): boolean => isArticleIndexable(admissionFor(config.admissions, post, config.siteUrl));
|
|
121
|
+
const checks: ConformanceCheck[] = [
|
|
122
|
+
{
|
|
123
|
+
name: "every post has one admission record that passes the validator",
|
|
124
|
+
run: () => {
|
|
125
|
+
assertArticleAdmissions(config.admissions);
|
|
126
|
+
const paths = config.posts.map((post) => post.path);
|
|
127
|
+
if (new Set(paths).size !== paths.length) fail("Two posts share a path.");
|
|
128
|
+
if (config.admissions.length !== config.posts.length) fail(`${config.admissions.length} admission records for ${config.posts.length} posts.`);
|
|
129
|
+
for (const post of config.posts) admissionFor(config.admissions, post, config.siteUrl);
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "an indexable post has a real assessment, sources, and a review",
|
|
134
|
+
run: () => {
|
|
135
|
+
for (const post of config.posts.filter(indexable)) {
|
|
136
|
+
const admission = admissionFor(config.admissions, post, config.siteUrl);
|
|
137
|
+
if (articleAdmissionScore(admission.scores) < 9) fail(`${post.path} scores below 9.`);
|
|
138
|
+
if (Object.values(admission.scores).includes(0)) fail(`${post.path} has a zero score.`);
|
|
139
|
+
if (admission.review === null) fail(`${post.path} is indexable without a review.`);
|
|
140
|
+
if (admission.sources.length === 0) fail(`${post.path} is indexable without sources.`);
|
|
141
|
+
if (admission.observations.length < 2) fail(`${post.path} needs two observations.`);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "headings, descriptions, and deks are unique and within limits",
|
|
147
|
+
run: () => {
|
|
148
|
+
for (const key of ["heading", "description", "dek"] as const) {
|
|
149
|
+
const values = config.posts.map((post) => post[key]);
|
|
150
|
+
if (new Set(values).size !== values.length) fail(`Two posts share a ${key}.`);
|
|
151
|
+
}
|
|
152
|
+
for (const post of config.posts) {
|
|
153
|
+
if (post.heading.length > limits.heading) fail(`${post.path} heading is longer than ${limits.heading}.`);
|
|
154
|
+
if (/\.$/u.test(post.heading)) fail(`${post.path} heading ends with a period.`);
|
|
155
|
+
if (post.description.length < limits.descriptionMin || post.description.length > limits.descriptionMax) {
|
|
156
|
+
fail(`${post.path} description is outside ${limits.descriptionMin} to ${limits.descriptionMax} characters.`);
|
|
157
|
+
}
|
|
158
|
+
if (post.dek.length > limits.dek) fail(`${post.path} dek is longer than ${limits.dek}.`);
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "every post renders with one h1, the article root, and JSON-LD",
|
|
164
|
+
run: async () => {
|
|
165
|
+
for (const post of config.posts) {
|
|
166
|
+
const html = await config.renderPost(post);
|
|
167
|
+
const h1 = html.match(/<h1\b/gu)?.length ?? 0;
|
|
168
|
+
if (h1 !== 1) fail(`${post.path} renders ${h1} h1 elements.`);
|
|
169
|
+
if (!html.includes("data-hraness-article")) fail(`${post.path} is missing the article root.`);
|
|
170
|
+
if (!html.includes("application/ld+json")) fail(`${post.path} is missing JSON-LD.`);
|
|
171
|
+
for (const match of html.matchAll(/href="#([^"]+)"/gu)) {
|
|
172
|
+
if (!html.includes(`id="${match[1] ?? ""}"`)) fail(`${post.path} links to #${match[1] ?? ""}, which does not exist.`);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "public copy follows the article style rules",
|
|
179
|
+
run: async () => {
|
|
180
|
+
for (const post of config.posts) {
|
|
181
|
+
const html = await config.renderPost(post);
|
|
182
|
+
const fields = [post.heading, post.dek, post.description, post.imageAlt ?? ""].join(" ");
|
|
183
|
+
const prose = `${fields} ${htmlText(stripMockupSamples(html, sampleAttributes))}`;
|
|
184
|
+
// Launch rules cover posts too, minus the internal-word check on body text, which may quote records.
|
|
185
|
+
const problems = launchCopyProblems(prose, post.path).filter(
|
|
186
|
+
(problem) => !problem.includes("internal word") && !problem.includes("ends with a question mark") && !problem.includes("thread marker"),
|
|
187
|
+
);
|
|
188
|
+
if (problems.length > 0) fail(problems.join("\n"));
|
|
189
|
+
const internal = new RegExp(`\\b(${LAUNCH_INTERNAL_WORDS.join("|")})s?\\b`, "iu").exec(fields);
|
|
190
|
+
if (internal !== null) fail(`${post.path} uses the internal word "${internal[0]}" in its heading, dek, or description.`);
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
if (config.robots !== undefined) {
|
|
196
|
+
const robots = config.robots;
|
|
197
|
+
checks.push({
|
|
198
|
+
name: "only indexable posts ask to be indexed",
|
|
199
|
+
run: async () => {
|
|
200
|
+
for (const post of config.posts) {
|
|
201
|
+
const value = await robots(post);
|
|
202
|
+
if (value.index !== indexable(post)) fail(`${post.path} robots index=${String(value.index)} disagrees with its lifecycle.`);
|
|
203
|
+
if (!value.follow) fail(`${post.path} asks crawlers not to follow links.`);
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
if (config.renderIndex !== undefined || config.sitemapUrls !== undefined || config.feedXml !== undefined) {
|
|
209
|
+
checks.push({
|
|
210
|
+
name: "the index, sitemap, and feed list exactly the indexable posts",
|
|
211
|
+
run: async () => {
|
|
212
|
+
const index = config.renderIndex === undefined ? null : await config.renderIndex();
|
|
213
|
+
const urls = config.sitemapUrls === undefined ? null : new Set(await config.sitemapUrls());
|
|
214
|
+
const feed = config.feedXml === undefined ? null : await config.feedXml();
|
|
215
|
+
for (const post of config.posts) {
|
|
216
|
+
const shown = indexable(post);
|
|
217
|
+
const absolute = `${config.siteUrl}${post.path}`;
|
|
218
|
+
if (index !== null && index.includes(`href="${post.path}"`) !== shown) fail(`The index ${shown ? "omits" : "lists"} ${post.path}.`);
|
|
219
|
+
if (urls !== null && urls.has(absolute) !== shown) fail(`The sitemap ${shown ? "omits" : "lists"} ${post.path}.`);
|
|
220
|
+
if (feed !== null && feed.includes(absolute) !== shown) fail(`The feed ${shown ? "omits" : "lists"} ${post.path}.`);
|
|
221
|
+
}
|
|
222
|
+
if (feed !== null && /&(?!amp;|lt;|gt;|quot;|apos;|#\d+;|#x[0-9a-f]+;)/iu.test(feed)) fail("The feed has an unescaped ampersand.");
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
if (config.listedDates !== undefined) {
|
|
227
|
+
const listedDates = config.listedDates;
|
|
228
|
+
checks.push({
|
|
229
|
+
name: "listed posts are newest first",
|
|
230
|
+
run: () => {
|
|
231
|
+
const dates = listedDates();
|
|
232
|
+
const sorted = dates.toSorted().toReversed();
|
|
233
|
+
if (dates.some((date, index) => date !== sorted[index])) fail("Listed posts are not newest first.");
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
return Object.freeze(checks);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type RenderMatrixEntry<Props> = Readonly<{ name: string; props: Props; html: string }>;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Render one component across named prop sets (themes, states, sizes) with
|
|
244
|
+
* the caller's renderer, such as `(props) => renderToStaticMarkup(<Frame {...props} />)`.
|
|
245
|
+
* Throws when two cases render the same markup, which usually means a prop is ignored.
|
|
246
|
+
*/
|
|
247
|
+
export function renderMatrix<Props>(
|
|
248
|
+
render: (props: Props) => string,
|
|
249
|
+
cases: Readonly<Record<string, Props>>,
|
|
250
|
+
options: Readonly<{ allowIdentical?: boolean }> = {},
|
|
251
|
+
): readonly RenderMatrixEntry<Props>[] {
|
|
252
|
+
const entries = Object.entries(cases).map(([name, props]) => Object.freeze({ name, props, html: render(props) }));
|
|
253
|
+
if (options.allowIdentical !== true) {
|
|
254
|
+
const seen = new Map<string, string>();
|
|
255
|
+
for (const entry of entries) {
|
|
256
|
+
const previous = seen.get(entry.html);
|
|
257
|
+
if (previous !== undefined) fail(`Cases "${previous}" and "${entry.name}" render the same markup.`);
|
|
258
|
+
seen.set(entry.html, entry.name);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return Object.freeze(entries);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/** Mockups sit inside articles and must not add to the page outline. */
|
|
265
|
+
export function assertNoHeadings(html: string, label = "markup"): void {
|
|
266
|
+
const match = /<h[1-6]\b|role="heading"/iu.exec(html);
|
|
267
|
+
if (match !== null) fail(`${label} contains a heading (${match[0]}); mockups must not add to the page outline.`);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The root element is one image with a non-empty label, marked out of
|
|
272
|
+
* snippets, and every descendant is hidden from assistive technology by it.
|
|
273
|
+
*/
|
|
274
|
+
export function assertRoleImgWithLabel(html: string, label = "markup"): void {
|
|
275
|
+
const root = /^\s*<([a-z][a-z0-9-]*)\b([^>]*)>/iu.exec(html);
|
|
276
|
+
if (root === null) fail(`${label} has no root element.`);
|
|
277
|
+
const attributes = root[2] ?? "";
|
|
278
|
+
if (!/\srole="img"/u.test(attributes)) fail(`${label} root is not role="img".`);
|
|
279
|
+
const aria = /\saria-label="([^"]*)"/u.exec(attributes);
|
|
280
|
+
if (aria === null || (aria[1] ?? "").trim().length === 0) fail(`${label} root has no aria-label.`);
|
|
281
|
+
if (!/\sdata-nosnippet(=|\s|>|$)/u.test(attributes) && !attributes.includes("data-nosnippet")) fail(`${label} root is missing data-nosnippet.`);
|
|
282
|
+
const inner = html.slice(root[0].length);
|
|
283
|
+
if (/<(a|button|input|select|textarea)\b/iu.test(inner)) fail(`${label} contains an interactive element inside an image.`);
|
|
284
|
+
if (/\stabindex="(?!-1")/iu.test(inner)) fail(`${label} contains a focusable element inside an image.`);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/** Domains reserved for documentation (RFC 2606 and RFC 6761). */
|
|
288
|
+
const RESERVED_HOST = /^([a-z0-9-]+\.)*(example\.(com|net|org)|[a-z0-9-]+\.(example|test|invalid|localhost))$/iu;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Handles, emails, and links in mockup markup must be invented: handles from
|
|
292
|
+
* the allow list, emails and links on reserved example domains only.
|
|
293
|
+
*/
|
|
294
|
+
export function assertFakeHandles(html: string, allowedHandles: readonly string[], label = "markup"): void {
|
|
295
|
+
const text = htmlText(html);
|
|
296
|
+
const allowed = new Set(allowedHandles.map((handle) => handle.replace(/^@/u, "").toLowerCase()));
|
|
297
|
+
for (const match of text.matchAll(/(^|[\s(])@([a-z0-9_.]{2,30})\b/giu)) {
|
|
298
|
+
const handle = (match[2] ?? "").toLowerCase();
|
|
299
|
+
if (!allowed.has(handle)) fail(`${label} shows the handle @${handle}, which is not in the invented list.`);
|
|
300
|
+
}
|
|
301
|
+
for (const match of text.matchAll(/\b[a-z0-9._%+-]+@([a-z0-9.-]+\.[a-z]{2,})\b/giu)) {
|
|
302
|
+
if (!RESERVED_HOST.test(match[1] ?? "")) fail(`${label} shows the email ${match[0]}, which is not on a reserved example domain.`);
|
|
303
|
+
}
|
|
304
|
+
for (const match of html.matchAll(/\bhref="https?:\/\/([^/"]+)/giu)) {
|
|
305
|
+
if (!RESERVED_HOST.test(match[1] ?? "")) fail(`${label} links to ${match[1] ?? ""}, which is not a reserved example domain.`);
|
|
306
|
+
}
|
|
307
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Shared semantic rhythm. The reading scale (sizes, spacing) is consumed by
|
|
2
|
+
* `.hraness-prose` and the plain-publication article grammar. Site headings
|
|
3
|
+
* outside those grammars read the same per-level tokens: a heading at level N
|
|
4
|
+
* takes `--hraness-type-hN-size`, `--hraness-type-hN-font`, and
|
|
5
|
+
* `--hraness-type-hN-weight` instead of a site-local size and face.
|
|
6
|
+
*
|
|
7
|
+
* Legibility rule: the display face (often a condensed serif such as
|
|
8
|
+
* Instrument Serif) is only used at `--hraness-type-display-min` (1.75rem) or
|
|
9
|
+
* larger. h1 and h2 are display headings and never scale below that floor;
|
|
10
|
+
* h3 and h4 use the text face, so a small heading is never set in the display
|
|
11
|
+
* face. */
|
|
12
|
+
@layer base {
|
|
13
|
+
:root {
|
|
14
|
+
--hraness-type-reading-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
|
|
15
|
+
--hraness-type-reading-leading: 1.7;
|
|
16
|
+
--hraness-type-reading-measure: 70ch;
|
|
17
|
+
--hraness-type-caption-size: .9375rem;
|
|
18
|
+
--hraness-type-code-size: .9rem;
|
|
19
|
+
--hraness-type-heading-leading: 1.2;
|
|
20
|
+
--hraness-type-display-min: 1.75rem;
|
|
21
|
+
--hraness-type-h1-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
|
|
22
|
+
--hraness-type-h2-size: clamp(1.75rem, 1.45rem + .9vw, 2.125rem);
|
|
23
|
+
--hraness-type-h3-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem);
|
|
24
|
+
--hraness-type-h4-size: 1.0625rem;
|
|
25
|
+
/* The display face, for h1 and h2 only. */
|
|
26
|
+
--hraness-type-heading-font: var(--hraness-marketing-display-font, var(--font-heading, var(--font-text, inherit)));
|
|
27
|
+
--hraness-type-heading-weight: var(--hraness-marketing-display-weight, 600);
|
|
28
|
+
/* The text face, for h3 and below. */
|
|
29
|
+
--hraness-type-subheading-font: var(--font-text, inherit);
|
|
30
|
+
--hraness-type-subheading-weight: 650;
|
|
31
|
+
--hraness-type-h1-font: var(--hraness-type-heading-font);
|
|
32
|
+
--hraness-type-h1-weight: var(--hraness-type-heading-weight);
|
|
33
|
+
--hraness-type-h2-font: var(--hraness-type-heading-font);
|
|
34
|
+
--hraness-type-h2-weight: var(--hraness-type-heading-weight);
|
|
35
|
+
--hraness-type-h3-font: var(--hraness-type-subheading-font);
|
|
36
|
+
--hraness-type-h3-weight: var(--hraness-type-subheading-weight);
|
|
37
|
+
--hraness-type-h4-font: var(--hraness-type-subheading-font);
|
|
38
|
+
--hraness-type-h4-weight: var(--hraness-type-subheading-weight);
|
|
39
|
+
--hraness-type-section-space: clamp(2.75rem, 2rem + 2vw, 4rem);
|
|
40
|
+
--hraness-type-subsection-space: 2rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Custom properties resolve where they are declared, so a face token set
|
|
44
|
+
* on :root would keep :root's face inside a scope that changes the display
|
|
45
|
+
* or text face (the marketing preset, the Paper theme, the serif reading
|
|
46
|
+
* face). Re-derive the face and weight tokens in those scopes. */
|
|
47
|
+
:where([data-hraness-marketing-preset], [data-hraness-theme], [data-hraness-reading-face]) {
|
|
48
|
+
--hraness-type-heading-font: var(--hraness-marketing-display-font, var(--font-heading, var(--font-text, inherit)));
|
|
49
|
+
--hraness-type-heading-weight: var(--hraness-marketing-display-weight, 600);
|
|
50
|
+
--hraness-type-subheading-font: var(--font-text, inherit);
|
|
51
|
+
--hraness-type-h1-font: var(--hraness-type-heading-font);
|
|
52
|
+
--hraness-type-h1-weight: var(--hraness-type-heading-weight);
|
|
53
|
+
--hraness-type-h2-font: var(--hraness-type-heading-font);
|
|
54
|
+
--hraness-type-h2-weight: var(--hraness-type-heading-weight);
|
|
55
|
+
--hraness-type-h3-font: var(--hraness-type-subheading-font);
|
|
56
|
+
--hraness-type-h3-weight: var(--hraness-type-subheading-weight);
|
|
57
|
+
--hraness-type-h4-font: var(--hraness-type-subheading-font);
|
|
58
|
+
--hraness-type-h4-weight: var(--hraness-type-subheading-weight);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.hraness-design-text-chrome {
|
|
63
|
+
background: var(--chrome-text-gradient);
|
|
64
|
+
background-clip: text;
|
|
65
|
+
color: var(--chrome-deep);
|
|
66
|
+
text-shadow: var(--chrome-text-shadow);
|
|
67
|
+
-webkit-background-clip: text;
|
|
68
|
+
-webkit-text-fill-color: transparent;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
|
|
72
|
+
.hraness-design-text-chrome {
|
|
73
|
+
background: none;
|
|
74
|
+
color: var(--chrome-deep);
|
|
75
|
+
-webkit-text-fill-color: currentColor;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (forced-colors: active) {
|
|
80
|
+
.hraness-design-text-chrome {
|
|
81
|
+
background: none;
|
|
82
|
+
color: CanvasText;
|
|
83
|
+
text-shadow: none;
|
|
84
|
+
-webkit-text-fill-color: currentColor;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Gurbinder
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# EvilCharts provenance
|
|
2
|
+
|
|
3
|
+
- Source: https://github.com/legions-developer/evilcharts
|
|
4
|
+
- Documentation: https://evilcharts.com/docs
|
|
5
|
+
- Upstream commit: `fee646d585602a1c957df94697b35d9e94e16ac8`
|
|
6
|
+
- Retrieved: 2026-07-26
|
|
7
|
+
- License: MIT; see `LICENSE`
|
|
8
|
+
- License SHA-256: `7b6baf25f6caa0de061a2c99a47205d6651cdefc6e636910bc51bb3853ed056e`
|
|
9
|
+
|
|
10
|
+
`src/react/charts.tsx` and `src/charts.css` adapt EvilCharts' Recharts-first,
|
|
11
|
+
themeable chart-container, gradient, tooltip, and reveal principles to
|
|
12
|
+
framework-neutral tokens and accessibility contracts. These public recipes
|
|
13
|
+
are intentionally data-shape-oriented rather than copies of the
|
|
14
|
+
upstream shadcn/Tailwind file layout.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CC0 1.0 Universal
|
|
2
|
+
|
|
3
|
+
## Statement of Purpose
|
|
4
|
+
|
|
5
|
+
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
|
|
6
|
+
|
|
7
|
+
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
|
|
8
|
+
|
|
9
|
+
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
|
|
10
|
+
|
|
11
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
|
|
12
|
+
1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
|
|
13
|
+
2. moral rights retained by the original author(s) and/or performer(s);
|
|
14
|
+
3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
|
|
15
|
+
4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
|
|
16
|
+
5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
|
|
17
|
+
6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
|
|
18
|
+
7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
|
|
19
|
+
|
|
20
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
|
|
21
|
+
|
|
22
|
+
3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
|
|
23
|
+
|
|
24
|
+
4. Limitations and Disclaimers.
|
|
25
|
+
1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
|
|
26
|
+
2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
|
|
27
|
+
3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
|
|
28
|
+
4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
|
|
29
|
+
|
|
30
|
+
For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Platform mark sources
|
|
2
|
+
|
|
3
|
+
`apple.svg` and `linux.svg` are vendored unmodified from the
|
|
4
|
+
[`simple-icons`](https://github.com/simple-icons/simple-icons) npm package
|
|
5
|
+
**16.33.0** (`icons/apple.svg`, `icons/linux.svg`), released under CC0-1.0
|
|
6
|
+
(see `LICENSE`). `src/platforms.ts` carries their single `<path d>` values
|
|
7
|
+
verbatim for the macOS and Linux marks; `src/platforms-vendor.test.ts` pins the
|
|
8
|
+
file SHA-256 digests and checks that the module paths still match them.
|
|
9
|
+
|
|
10
|
+
The Windows four-pane window and the neutral terminal glyph in
|
|
11
|
+
`src/platforms.ts` are original geometry drawn for this package and are
|
|
12
|
+
covered by the package MIT license. They are not vendor artwork.
|
|
13
|
+
|
|
14
|
+
The marks identify the operating system a command targets (nominative use).
|
|
15
|
+
They are drawn in `currentColor` so surfaces keep one ink.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Apple</title><path d="M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Linux</title><path d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/></svg>
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, MIT Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-MIT
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2025 Charmbracelet, Inc
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the MIT license that is effective on the second anniversary of the date we make
|
|
91
|
+
the Software available. On or after that date, you may use the Software under
|
|
92
|
+
the MIT license, in which case the following will apply:
|
|
93
|
+
|
|
94
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
95
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
96
|
+
the Software without restriction, including without limitation the rights to
|
|
97
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
98
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
99
|
+
so, subject to the following conditions:
|
|
100
|
+
|
|
101
|
+
The above copyright notice and this permission notice shall be included in all
|
|
102
|
+
copies or substantial portions of the Software.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
105
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
106
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
107
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
108
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
109
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
110
|
+
SOFTWARE.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
MIT License
|
|
115
|
+
|
|
116
|
+
Copyright (c) 2025-03-21 - 2025-05-30 Kujtim Hoxha
|
|
117
|
+
|
|
118
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
119
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
120
|
+
in the Software without restriction, including without limitation the rights
|
|
121
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
122
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
123
|
+
furnished to do so, subject to the following conditions:
|
|
124
|
+
|
|
125
|
+
The above copyright notice and this permission notice shall be included in all
|
|
126
|
+
copies or substantial portions of the Software.
|
|
127
|
+
|
|
128
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
129
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
130
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
131
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
132
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
133
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
134
|
+
SOFTWARE.
|