@purestack/ts-common 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts-common.d.mts +55 -7
- package/dist/ts-common.d.mts.map +1 -1
- package/dist/ts-common.mjs +237 -2
- package/dist/ts-common.mjs.map +1 -1
- package/package.json +4 -4
package/dist/ts-common.d.mts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
/*! @purestack/ts-common v1.1.
|
|
1
|
+
/*! @purestack/ts-common v1.1.15 | (c) 2026 Ahmed Yasin Koculu | MIT License */
|
|
2
2
|
|
|
3
3
|
import { SemanticTone, ThemeOptions, ThemeOptionsInput, ThemeStylesheetLink } from "@purestack/ts-style";
|
|
4
4
|
import { DeepPartial } from "@purestack/ts-util";
|
|
5
5
|
import { BasicHeadConfig, TSNode } from "@purestack/ts-html";
|
|
6
|
+
//#region packages/ts-common/src/code-highlighter.d.ts
|
|
7
|
+
/** Converts source code to highlighted pre/code HTML. */
|
|
8
|
+
interface MdxCodeHighlighter {
|
|
9
|
+
codeToHtml: (code: string, lang?: string) => string | Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region packages/ts-common/src/codeLanguages.d.ts
|
|
13
|
+
export declare const DEFAULT_CODE_LANGUAGES: string[];
|
|
14
|
+
export declare const LANGUAGE_BY_EXTENSION: Record<string, string>;
|
|
15
|
+
export declare function normalizeCodeLanguage(value: string): string;
|
|
16
|
+
//#endregion
|
|
6
17
|
//#region packages/ts-common/src/consent-types.d.ts
|
|
7
18
|
interface ConsentCategory {
|
|
8
19
|
id: string;
|
|
@@ -165,6 +176,8 @@ interface PageNavigation {
|
|
|
165
176
|
//#endregion
|
|
166
177
|
//#region packages/ts-common/src/site-config-types.d.ts
|
|
167
178
|
interface SiteConfig {
|
|
179
|
+
/** Plugin-owned settings, normalized by their configuration contributions. */
|
|
180
|
+
extensions: SiteExtensions;
|
|
168
181
|
rootDir: string;
|
|
169
182
|
contentDir: string;
|
|
170
183
|
outDir: string;
|
|
@@ -188,6 +201,10 @@ interface SiteConfig {
|
|
|
188
201
|
i18n: I18nConfig;
|
|
189
202
|
mdx: SiteMdxConfig;
|
|
190
203
|
}
|
|
204
|
+
/** Plugins may augment this interface with optional, typed namespaces. */
|
|
205
|
+
interface SiteExtensions {
|
|
206
|
+
[plugin: string]: unknown;
|
|
207
|
+
}
|
|
191
208
|
interface DocLayoutConfig {
|
|
192
209
|
/** CSS length reserved above desktop navigation and TOC sidebars. */
|
|
193
210
|
sidebarTop: string;
|
|
@@ -284,6 +301,18 @@ type SiteStyleConfigInput = DeepPartial<Omit<SiteStyleConfig, 'theme'>> & {
|
|
|
284
301
|
type SiteConfigInput = DeepPartial<Omit<SiteConfig, 'style'>> & {
|
|
285
302
|
style?: SiteStyleConfigInput;
|
|
286
303
|
};
|
|
304
|
+
/** Inputs for a pure configuration contribution, before build factories run. */
|
|
305
|
+
interface SiteConfigResolution {
|
|
306
|
+
config: SiteConfig;
|
|
307
|
+
input: SiteConfigInput;
|
|
308
|
+
file: SiteConfigInput;
|
|
309
|
+
}
|
|
310
|
+
type SiteConfigResolver = (source: SiteConfigResolution) => DeepPartial<SiteConfig>;
|
|
311
|
+
/** All overrides resolve before any plugin derives dependent settings. */
|
|
312
|
+
interface SiteConfigContributions {
|
|
313
|
+
resolve?: SiteConfigResolver;
|
|
314
|
+
finalize?: SiteConfigResolver;
|
|
315
|
+
}
|
|
287
316
|
//#endregion
|
|
288
317
|
//#region packages/ts-common/src/frontmatter-types.d.ts
|
|
289
318
|
/**
|
|
@@ -536,6 +565,8 @@ interface PageOutlineItem {
|
|
|
536
565
|
depth?: number;
|
|
537
566
|
children?: PageOutlineItem[];
|
|
538
567
|
}
|
|
568
|
+
type RuntimeEmbedPosition = 'body' | 'head';
|
|
569
|
+
type RuntimeEmbeds = ReadonlyMap<string, RuntimeEmbedPosition>;
|
|
539
570
|
interface TsSsgNavigation {
|
|
540
571
|
folder?: string;
|
|
541
572
|
root?: string;
|
|
@@ -557,7 +588,7 @@ interface PageContext {
|
|
|
557
588
|
resolvePublicHref: (href: string) => string;
|
|
558
589
|
recordScriptEntrypoint: (sourceRelPath: string) => void;
|
|
559
590
|
resolveScriptPublicPath?: (sourceRelPath: string) => string;
|
|
560
|
-
recordRuntimeEmbed: (name: string, position:
|
|
591
|
+
recordRuntimeEmbed: (name: string, position: RuntimeEmbedPosition) => void;
|
|
561
592
|
}
|
|
562
593
|
//#endregion
|
|
563
594
|
//#region packages/ts-common/src/isTocEnabled.d.ts
|
|
@@ -577,16 +608,20 @@ interface PageTranslationInfo {
|
|
|
577
608
|
urlPath: string;
|
|
578
609
|
relPath: string;
|
|
579
610
|
}
|
|
580
|
-
interface
|
|
611
|
+
interface PageHeadConfigInput {
|
|
612
|
+
site: SiteConfig;
|
|
613
|
+
pageInfo: PageInfo;
|
|
614
|
+
}
|
|
615
|
+
/** Supplies head defaults before explicit page frontmatter overrides. */
|
|
616
|
+
type PageHeadConfigTemplate = (input: PageHeadConfigInput) => BasicHeadConfig | Promise<BasicHeadConfig>;
|
|
617
|
+
interface PageTemplateInput extends PageHeadConfigInput {
|
|
581
618
|
head: TSNode<'head'>;
|
|
582
619
|
bodyHtml: string;
|
|
583
620
|
headConfig?: BasicHeadConfig;
|
|
584
621
|
styleLinks?: ThemeStylesheetLink[];
|
|
585
622
|
templateName: string;
|
|
586
|
-
site: SiteConfig;
|
|
587
623
|
navigation?: PageNavigation;
|
|
588
624
|
outline?: PageOutlineItem[];
|
|
589
|
-
pageInfo: PageInfo;
|
|
590
625
|
headerHtml?: string;
|
|
591
626
|
footerHtml?: string;
|
|
592
627
|
}
|
|
@@ -599,6 +634,19 @@ type PageHeadTemplate = (input: PageTemplateInput) => TSNode<'head'> | Promise<T
|
|
|
599
634
|
export declare function resolvePageContext(head: unknown): PageContext;
|
|
600
635
|
export declare function tryResolvePageContext(head: unknown): PageContext | undefined;
|
|
601
636
|
//#endregion
|
|
637
|
+
//#region packages/ts-common/src/site-search.d.ts
|
|
638
|
+
/** Search output owned by a plugin; the builder manages output invalidation. */
|
|
639
|
+
interface SiteSearch {
|
|
640
|
+
/** Whether a decoded, base-path-relative URL belongs to this search provider. */
|
|
641
|
+
ownsPath(pathname: string): boolean;
|
|
642
|
+
write(input: {
|
|
643
|
+
outDir: string;
|
|
644
|
+
excludeFiles: Iterable<string>;
|
|
645
|
+
/** Only these rendered pages are available during lazy development. */
|
|
646
|
+
onlyFiles?: Iterable<string>;
|
|
647
|
+
}): Promise<void>;
|
|
648
|
+
}
|
|
649
|
+
//#endregion
|
|
602
650
|
//#region packages/ts-common/src/site-styles.d.ts
|
|
603
651
|
interface WriteStylesResult {
|
|
604
652
|
revision: number;
|
|
@@ -606,7 +654,7 @@ interface WriteStylesResult {
|
|
|
606
654
|
outputs: string[];
|
|
607
655
|
signature: string;
|
|
608
656
|
}
|
|
609
|
-
/** A
|
|
657
|
+
/** A site's stylesheet output, initialized after config contributions and before component factories. */
|
|
610
658
|
interface SiteStyles {
|
|
611
659
|
readonly revision: number;
|
|
612
660
|
links(cacheKey?: string): ThemeStylesheetLink[];
|
|
@@ -616,5 +664,5 @@ interface SiteStyles {
|
|
|
616
664
|
}): Promise<WriteStylesResult>;
|
|
617
665
|
}
|
|
618
666
|
//#endregion
|
|
619
|
-
export type { AnalyticsConfig, AuthConfig, ClassicLogoConfig, ConsentCategory, ConsentConfig, ConsentScript, ConsentService, DocLayoutConfig, FrontmatterEmbedOptions, FrontmatterLayoutOptions, FrontmatterNavOptions, Ga4Config, I18nConfig, I18nUrlStrategy, LogoAppearance, LogoConfig, LogoLayout, LogoMarkStyle, LogoShape, LogoSize, LogoWordmarkStyle, NavItem, NavigationConfig, NavigationMode, NavigationSort, PageContext, PageFrontmatter, PageHeadTemplate, PageInfo, PageNavigation, PageNavigationLink, PageNavigationLinks, PageOutlineItem, PageTemplate, PageTemplateInput, PageTemplateMap, PageTocConfig, PageTranslationInfo, PagefindConfig, ParsedFrontmatterSource, PreviewConfig, RobotsConfig, SiteConfig, SiteConfigInput, SiteHtmlConfig, SiteLogoConfig, SiteMdxConfig, SiteScriptsConfig, SiteStyleConfig, SiteStyleConfigInput, SiteStyles, SitemapConfig, TsSsgNavigation, WriteStylesResult };
|
|
667
|
+
export type { AnalyticsConfig, AuthConfig, ClassicLogoConfig, ConsentCategory, ConsentConfig, ConsentScript, ConsentService, DocLayoutConfig, FrontmatterEmbedOptions, FrontmatterLayoutOptions, FrontmatterNavOptions, Ga4Config, I18nConfig, I18nUrlStrategy, LogoAppearance, LogoConfig, LogoLayout, LogoMarkStyle, LogoShape, LogoSize, LogoWordmarkStyle, MdxCodeHighlighter, NavItem, NavigationConfig, NavigationMode, NavigationSort, PageContext, PageFrontmatter, PageHeadConfigInput, PageHeadConfigTemplate, PageHeadTemplate, PageInfo, PageNavigation, PageNavigationLink, PageNavigationLinks, PageOutlineItem, PageTemplate, PageTemplateInput, PageTemplateMap, PageTocConfig, PageTranslationInfo, PagefindConfig, ParsedFrontmatterSource, PreviewConfig, RobotsConfig, RuntimeEmbedPosition, RuntimeEmbeds, SiteConfig, SiteConfigContributions, SiteConfigInput, SiteConfigResolution, SiteConfigResolver, SiteExtensions, SiteHtmlConfig, SiteLogoConfig, SiteMdxConfig, SiteScriptsConfig, SiteSearch, SiteStyleConfig, SiteStyleConfigInput, SiteStyles, SitemapConfig, TsSsgNavigation, WriteStylesResult };
|
|
620
668
|
//# sourceMappingURL=ts-common.d.mts.map
|
package/dist/ts-common.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-common.d.mts","names":[],"sources":["../src/consent-types.ts","../src/logo-types.ts","../src/navMenu-types.ts","../src/site-config-types.ts","../src/frontmatter-types.ts","../src/ts-ssg-context.ts","../src/isTocEnabled.ts","../src/page-template-types.ts","../src/resolvePageContext.ts","../src/site-styles.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"ts-common.d.mts","names":[],"sources":["../src/code-highlighter.ts","../src/codeLanguages.ts","../src/consent-types.ts","../src/logo-types.ts","../src/navMenu-types.ts","../src/site-config-types.ts","../src/frontmatter-types.ts","../src/ts-ssg-context.ts","../src/isTocEnabled.ts","../src/page-template-types.ts","../src/resolvePageContext.ts","../src/site-search.ts","../src/site-styles.ts"],"mappings":";;;;;UACiB;EACf,aAAa,cAAc,2BAA2B;;;;qBCmF3C;qBAQA,uBAAuB;wBAMpB,sBAAsB;;;UCnGrB;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;;EAEf;EACA;EACA;EACA;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ,UAAU;;;;KCzCA;KACA;KACA;KACA;KACA;KACA;UAEK;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT,OAAO;EACP,aAAa;EACb,YAAY;EACZ,gBAAgB;EAChB,QAAQ;EACR,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIe,uBAAuB,YAAY;EAClD;;;;KCtEU;KACA;UAEK;EACf,OAAO;EACP;EACA;EACA;EACA,SAAS;EACT;EACA,OAAO;;EAEP;;EAEA;;UAGe;EACf;EACA;EACA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA,OAAO;;UAGQ;EACf;EACA;;UAGe;EACf,WAAW;EACX,OAAO;;UAGQ;EACf,MAAM;EACN;EACA;EACA,OAAO;EACP,QAAQ;EACR,MAAM;EACN,YAAY;;;;UCtCG;;EAEf,YAAY;EACZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAM;EAC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;EAOf;;;;;;;EAQA;;;;GAKC;;;;;UAMc;;;;EAIf;;;;EAKA,aAAa;;;;UC3QE;EACf;EACA;EACA;EACA,WAAW;;KAGD;KACA,gBAAgB,oBAAoB;UAE/B;EACf;EACA;EACA,SAAS;EACT,QAAQ;EACR,YAAY;;UAGG;EACf,MAAM;EACN,UAAU;EACV,aAAa;EACb,UAAU;EACV,OAAO;EACP;EACA;EACA;EACA;EACA,oBAAoB;EACpB,oBAAoB;EACpB,yBAAyB;EACzB,2BAA2B;EAC3B,qBAAqB,cAAc,UAAU;;;;wBCrC/B,aACd,aAAa,iBACb,SAAS;;;UCEM;EACf;EACA;EACA,aAAa;EACb;EACA;EACA,eAAe;;UAGA;EACf;EACA;EACA;;UAGe;EACf,MAAM;EACN,UAAU;;;KAIA,0BACV,OAAO,wBACJ,kBAAkB,QAAQ;UAEd,0BAA0B;EACzC,MAAM;EACN;EACA,aAAa;EACb,aAAa;EACb;EACA,aAAa;EACb,UAAU;EACV;EACA;;KAGU,gBACV,OAAO,sBACJ,iBAAiB,QAAQ;KAElB,kBAAkB,eAAe;;KAGjC,oBACV,OAAO,sBACJ,iBAAiB,QAAQ;;;wBCnCd,mBAAmB,gBAAgB;wBASnC,sBAAsB,gBAAgB;;;;UC1BrC;;EAEf,SAAS;EACT,MAAM;IACJ;IACA,cAAc;;IAEd,YAAY;MACV;;;;UCPW;EACf;EACA;EACA;EACA;;;UAIe;WACN;EACT,MAAM,oBAAoB;EAC1B,MAAM;IACJ;IACA;MACE,QAAQ"}
|
package/dist/ts-common.mjs
CHANGED
|
@@ -1,5 +1,240 @@
|
|
|
1
|
-
/*! @purestack/ts-common v1.1.
|
|
1
|
+
/*! @purestack/ts-common v1.1.15 | (c) 2026 Ahmed Yasin Koculu | MIT License */
|
|
2
2
|
|
|
3
|
+
//#region packages/ts-common/src/codeLanguages.ts
|
|
4
|
+
const codeLanguages = {
|
|
5
|
+
bash: {
|
|
6
|
+
aliases: [
|
|
7
|
+
"sh",
|
|
8
|
+
"shell",
|
|
9
|
+
"shellscript",
|
|
10
|
+
"zsh"
|
|
11
|
+
],
|
|
12
|
+
extensions: [
|
|
13
|
+
".sh",
|
|
14
|
+
".bash",
|
|
15
|
+
".zsh"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
bat: {
|
|
19
|
+
aliases: [
|
|
20
|
+
"batch",
|
|
21
|
+
"cmd",
|
|
22
|
+
"dos"
|
|
23
|
+
],
|
|
24
|
+
extensions: [".bat", ".cmd"]
|
|
25
|
+
},
|
|
26
|
+
c: { extensions: [".c", ".h"] },
|
|
27
|
+
cmake: { extensions: [".cmake"] },
|
|
28
|
+
cpp: {
|
|
29
|
+
aliases: [
|
|
30
|
+
"c++",
|
|
31
|
+
"cc",
|
|
32
|
+
"cxx",
|
|
33
|
+
"h++",
|
|
34
|
+
"hpp",
|
|
35
|
+
"hxx"
|
|
36
|
+
],
|
|
37
|
+
extensions: [
|
|
38
|
+
".cc",
|
|
39
|
+
".cpp",
|
|
40
|
+
".cxx",
|
|
41
|
+
".hh",
|
|
42
|
+
".hpp",
|
|
43
|
+
".hxx"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
csharp: {
|
|
47
|
+
aliases: ["c#", "cs"],
|
|
48
|
+
extensions: [".cs", ".csx"]
|
|
49
|
+
},
|
|
50
|
+
css: { extensions: [".css"] },
|
|
51
|
+
dart: { extensions: [".dart"] },
|
|
52
|
+
diff: {
|
|
53
|
+
aliases: ["patch"],
|
|
54
|
+
extensions: [".diff", ".patch"]
|
|
55
|
+
},
|
|
56
|
+
dockerfile: {
|
|
57
|
+
aliases: ["docker"],
|
|
58
|
+
extensions: [".dockerfile"]
|
|
59
|
+
},
|
|
60
|
+
elixir: {
|
|
61
|
+
aliases: ["ex", "exs"],
|
|
62
|
+
extensions: [".ex", ".exs"]
|
|
63
|
+
},
|
|
64
|
+
erlang: {
|
|
65
|
+
aliases: ["erl"],
|
|
66
|
+
extensions: [".erl", ".hrl"]
|
|
67
|
+
},
|
|
68
|
+
fsharp: {
|
|
69
|
+
aliases: ["f#", "fs"],
|
|
70
|
+
extensions: [
|
|
71
|
+
".fs",
|
|
72
|
+
".fsi",
|
|
73
|
+
".fsx"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
go: {
|
|
77
|
+
aliases: ["golang"],
|
|
78
|
+
extensions: [".go"]
|
|
79
|
+
},
|
|
80
|
+
graphql: {
|
|
81
|
+
aliases: ["gql"],
|
|
82
|
+
extensions: [".graphql", ".gql"]
|
|
83
|
+
},
|
|
84
|
+
groovy: { extensions: [".groovy", ".gradle"] },
|
|
85
|
+
html: {
|
|
86
|
+
aliases: ["htm"],
|
|
87
|
+
extensions: [".html", ".htm"]
|
|
88
|
+
},
|
|
89
|
+
http: {
|
|
90
|
+
aliases: ["https"],
|
|
91
|
+
extensions: [".http", ".rest"]
|
|
92
|
+
},
|
|
93
|
+
ini: {
|
|
94
|
+
aliases: ["properties"],
|
|
95
|
+
extensions: [
|
|
96
|
+
".ini",
|
|
97
|
+
".cfg",
|
|
98
|
+
".properties"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
java: { extensions: [".java"] },
|
|
102
|
+
javascript: {
|
|
103
|
+
aliases: [
|
|
104
|
+
"js",
|
|
105
|
+
"cjs",
|
|
106
|
+
"mjs"
|
|
107
|
+
],
|
|
108
|
+
extensions: [
|
|
109
|
+
".js",
|
|
110
|
+
".cjs",
|
|
111
|
+
".mjs"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
json: { extensions: [".json"] },
|
|
115
|
+
jsonc: { extensions: [".jsonc"] },
|
|
116
|
+
jsx: { extensions: [".jsx"] },
|
|
117
|
+
kotlin: {
|
|
118
|
+
aliases: ["kt", "kts"],
|
|
119
|
+
extensions: [".kt", ".kts"]
|
|
120
|
+
},
|
|
121
|
+
less: { extensions: [".less"] },
|
|
122
|
+
lua: { extensions: [".lua"] },
|
|
123
|
+
makefile: {
|
|
124
|
+
aliases: ["make", "mk"],
|
|
125
|
+
extensions: [".mk", ".mak"]
|
|
126
|
+
},
|
|
127
|
+
markdown: {
|
|
128
|
+
aliases: [
|
|
129
|
+
"md",
|
|
130
|
+
"mkd",
|
|
131
|
+
"mdown"
|
|
132
|
+
],
|
|
133
|
+
extensions: [
|
|
134
|
+
".md",
|
|
135
|
+
".markdown",
|
|
136
|
+
".mkd",
|
|
137
|
+
".mdown"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
mdx: {
|
|
141
|
+
aliases: ["rmdx"],
|
|
142
|
+
extensions: [".mdx", ".rmdx"]
|
|
143
|
+
},
|
|
144
|
+
"objective-c": {
|
|
145
|
+
aliases: ["objc", "objectivec"],
|
|
146
|
+
extensions: [".m"]
|
|
147
|
+
},
|
|
148
|
+
perl: {
|
|
149
|
+
aliases: ["pl", "pm"],
|
|
150
|
+
extensions: [".pl", ".pm"]
|
|
151
|
+
},
|
|
152
|
+
php: { extensions: [".php", ".phtml"] },
|
|
153
|
+
powershell: {
|
|
154
|
+
aliases: [
|
|
155
|
+
"ps",
|
|
156
|
+
"ps1",
|
|
157
|
+
"pwsh"
|
|
158
|
+
],
|
|
159
|
+
extensions: [
|
|
160
|
+
".ps1",
|
|
161
|
+
".psm1",
|
|
162
|
+
".psd1"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
python: {
|
|
166
|
+
aliases: [
|
|
167
|
+
"py",
|
|
168
|
+
"py3",
|
|
169
|
+
"python3"
|
|
170
|
+
],
|
|
171
|
+
extensions: [
|
|
172
|
+
".py",
|
|
173
|
+
".pyw",
|
|
174
|
+
".pyi"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
r: { extensions: [".r"] },
|
|
178
|
+
ruby: {
|
|
179
|
+
aliases: ["rb", "gemspec"],
|
|
180
|
+
extensions: [
|
|
181
|
+
".rb",
|
|
182
|
+
".rake",
|
|
183
|
+
".gemspec"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
rust: {
|
|
187
|
+
aliases: ["rs"],
|
|
188
|
+
extensions: [".rs"]
|
|
189
|
+
},
|
|
190
|
+
scala: { extensions: [".scala", ".sc"] },
|
|
191
|
+
scss: { extensions: [".scss"] },
|
|
192
|
+
sql: { extensions: [".sql"] },
|
|
193
|
+
swift: { extensions: [".swift"] },
|
|
194
|
+
text: {
|
|
195
|
+
aliases: ["txt", "plaintext"],
|
|
196
|
+
extensions: [".txt", ".text"]
|
|
197
|
+
},
|
|
198
|
+
toml: { extensions: [".toml"] },
|
|
199
|
+
"ts-tags": { aliases: ["lit"] },
|
|
200
|
+
tsx: { extensions: [".tsx"] },
|
|
201
|
+
typescript: {
|
|
202
|
+
aliases: [
|
|
203
|
+
"ts",
|
|
204
|
+
"cts",
|
|
205
|
+
"mts"
|
|
206
|
+
],
|
|
207
|
+
extensions: [
|
|
208
|
+
".ts",
|
|
209
|
+
".cts",
|
|
210
|
+
".mts"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
xml: {
|
|
214
|
+
aliases: ["svg", "xhtml"],
|
|
215
|
+
extensions: [
|
|
216
|
+
".xml",
|
|
217
|
+
".svg",
|
|
218
|
+
".xhtml",
|
|
219
|
+
".xsd",
|
|
220
|
+
".xsl",
|
|
221
|
+
".xslt"
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
yaml: {
|
|
225
|
+
aliases: ["yml"],
|
|
226
|
+
extensions: [".yaml", ".yml"]
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const DEFAULT_CODE_LANGUAGES = Object.keys(codeLanguages);
|
|
230
|
+
const languageAliases = new Map(Object.entries(codeLanguages).flatMap(([language, { aliases = [] }]) => aliases.map((alias) => [alias, language])));
|
|
231
|
+
const LANGUAGE_BY_EXTENSION = Object.fromEntries(Object.entries(codeLanguages).flatMap(([language, { extensions = [] }]) => extensions.map((extension) => [extension, language])));
|
|
232
|
+
function normalizeCodeLanguage(value) {
|
|
233
|
+
const normalized = value.trim().toLowerCase();
|
|
234
|
+
return languageAliases.get(normalized) ?? normalized;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
//#endregion
|
|
3
238
|
//#region packages/ts-common/src/isTocEnabled.ts
|
|
4
239
|
function isTocEnabled(frontmatter, outline) {
|
|
5
240
|
return frontmatter.layout.showToc && hasVisibleTocItems(outline ?? []);
|
|
@@ -39,5 +274,5 @@ function tryResolvePageContext(head) {
|
|
|
39
274
|
}
|
|
40
275
|
|
|
41
276
|
//#endregion
|
|
42
|
-
export { isTocEnabled, resolvePageContext, tryResolvePageContext };
|
|
277
|
+
export { DEFAULT_CODE_LANGUAGES, LANGUAGE_BY_EXTENSION, isTocEnabled, normalizeCodeLanguage, resolvePageContext, tryResolvePageContext };
|
|
43
278
|
//# sourceMappingURL=ts-common.mjs.map
|
package/dist/ts-common.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-common.mjs","names":[],"sources":["../src/isTocEnabled.ts","../src/resolvePageContext.ts"],"sourcesContent":["import type { PageFrontmatter } from './frontmatter-types'\nimport type { PageOutlineItem } from './ts-ssg-context'\n\nexport function isTocEnabled(\n frontmatter: PageFrontmatter,\n outline: PageOutlineItem[] | undefined,\n) {\n return frontmatter.layout.showToc && hasVisibleTocItems(outline ?? [])\n}\n\nfunction hasVisibleTocItems(outline: PageOutlineItem[]) {\n const [item] = outline\n if (!item) return false\n if (outline.length !== 1 || !isDocumentHeading(item)) return true\n return (item.children?.length ?? 0) > 0\n}\n\nfunction isDocumentHeading(item: PageOutlineItem) {\n return item.depth === 1\n}\n","import type { PageContext } from './ts-ssg-context'\n\ntype ContextCarrier = {\n pageContext?: PageContext\n}\n\ntype HeadLike = {\n ctx?: unknown[]\n}\n\nfunction hasPageContext(value: unknown): value is ContextCarrier {\n return typeof value === 'object' && value !== null && 'pageContext' in value\n}\n\nfunction hasContextStack(value: unknown): value is HeadLike {\n return typeof value === 'object' && value !== null && 'ctx' in value\n}\n\nexport function resolvePageContext(head: unknown): PageContext {\n const stack = hasContextStack(head) && Array.isArray(head.ctx) ? head.ctx : []\n for (const ctx of stack) {\n if (!hasPageContext(ctx)) continue\n if (ctx.pageContext) return ctx.pageContext\n }\n throw new Error('pageContext is not available in the Regor context stack.')\n}\n\nexport function tryResolvePageContext(head: unknown): PageContext | undefined {\n const stack = hasContextStack(head) && Array.isArray(head.ctx) ? head.ctx : []\n for (const ctx of stack) {\n if (!hasPageContext(ctx)) continue\n if (ctx.pageContext) return ctx.pageContext\n }\n return undefined\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"ts-common.mjs","names":[],"sources":["../src/codeLanguages.ts","../src/isTocEnabled.ts","../src/resolvePageContext.ts"],"sourcesContent":["interface CodeLanguage {\n aliases?: string[]\n extensions?: string[]\n}\n\n// Use Shiki names (including its aliases) as the common language identifiers.\nconst codeLanguages: Record<string, CodeLanguage> = {\n bash: {\n aliases: ['sh', 'shell', 'shellscript', 'zsh'],\n extensions: ['.sh', '.bash', '.zsh'],\n },\n bat: { aliases: ['batch', 'cmd', 'dos'], extensions: ['.bat', '.cmd'] },\n c: { extensions: ['.c', '.h'] },\n cmake: { extensions: ['.cmake'] },\n cpp: {\n aliases: ['c++', 'cc', 'cxx', 'h++', 'hpp', 'hxx'],\n extensions: ['.cc', '.cpp', '.cxx', '.hh', '.hpp', '.hxx'],\n },\n csharp: { aliases: ['c#', 'cs'], extensions: ['.cs', '.csx'] },\n css: { extensions: ['.css'] },\n dart: { extensions: ['.dart'] },\n diff: { aliases: ['patch'], extensions: ['.diff', '.patch'] },\n dockerfile: { aliases: ['docker'], extensions: ['.dockerfile'] },\n elixir: { aliases: ['ex', 'exs'], extensions: ['.ex', '.exs'] },\n erlang: { aliases: ['erl'], extensions: ['.erl', '.hrl'] },\n fsharp: { aliases: ['f#', 'fs'], extensions: ['.fs', '.fsi', '.fsx'] },\n go: { aliases: ['golang'], extensions: ['.go'] },\n graphql: { aliases: ['gql'], extensions: ['.graphql', '.gql'] },\n groovy: { extensions: ['.groovy', '.gradle'] },\n html: { aliases: ['htm'], extensions: ['.html', '.htm'] },\n http: { aliases: ['https'], extensions: ['.http', '.rest'] },\n ini: { aliases: ['properties'], extensions: ['.ini', '.cfg', '.properties'] },\n java: { extensions: ['.java'] },\n javascript: {\n aliases: ['js', 'cjs', 'mjs'],\n extensions: ['.js', '.cjs', '.mjs'],\n },\n json: { extensions: ['.json'] },\n jsonc: { extensions: ['.jsonc'] },\n jsx: { extensions: ['.jsx'] },\n kotlin: { aliases: ['kt', 'kts'], extensions: ['.kt', '.kts'] },\n less: { extensions: ['.less'] },\n lua: { extensions: ['.lua'] },\n makefile: { aliases: ['make', 'mk'], extensions: ['.mk', '.mak'] },\n markdown: {\n aliases: ['md', 'mkd', 'mdown'],\n extensions: ['.md', '.markdown', '.mkd', '.mdown'],\n },\n mdx: { aliases: ['rmdx'], extensions: ['.mdx', '.rmdx'] },\n 'objective-c': { aliases: ['objc', 'objectivec'], extensions: ['.m'] },\n perl: { aliases: ['pl', 'pm'], extensions: ['.pl', '.pm'] },\n php: { extensions: ['.php', '.phtml'] },\n powershell: {\n aliases: ['ps', 'ps1', 'pwsh'],\n extensions: ['.ps1', '.psm1', '.psd1'],\n },\n python: {\n aliases: ['py', 'py3', 'python3'],\n extensions: ['.py', '.pyw', '.pyi'],\n },\n r: { extensions: ['.r'] },\n ruby: {\n aliases: ['rb', 'gemspec'],\n extensions: ['.rb', '.rake', '.gemspec'],\n },\n rust: { aliases: ['rs'], extensions: ['.rs'] },\n scala: { extensions: ['.scala', '.sc'] },\n scss: { extensions: ['.scss'] },\n sql: { extensions: ['.sql'] },\n swift: { extensions: ['.swift'] },\n text: { aliases: ['txt', 'plaintext'], extensions: ['.txt', '.text'] },\n toml: { extensions: ['.toml'] },\n 'ts-tags': { aliases: ['lit'] },\n tsx: { extensions: ['.tsx'] },\n typescript: {\n aliases: ['ts', 'cts', 'mts'],\n extensions: ['.ts', '.cts', '.mts'],\n },\n xml: {\n aliases: ['svg', 'xhtml'],\n extensions: ['.xml', '.svg', '.xhtml', '.xsd', '.xsl', '.xslt'],\n },\n yaml: { aliases: ['yml'], extensions: ['.yaml', '.yml'] },\n}\n\nexport const DEFAULT_CODE_LANGUAGES = Object.keys(codeLanguages)\n\nconst languageAliases = new Map(\n Object.entries(codeLanguages).flatMap(([language, { aliases = [] }]) =>\n aliases.map((alias) => [alias, language] as const),\n ),\n)\n\nexport const LANGUAGE_BY_EXTENSION: Record<string, string> = Object.fromEntries(\n Object.entries(codeLanguages).flatMap(([language, { extensions = [] }]) =>\n extensions.map((extension) => [extension, language]),\n ),\n)\n\nexport function normalizeCodeLanguage(value: string): string {\n const normalized = value.trim().toLowerCase()\n return languageAliases.get(normalized) ?? normalized\n}\n","import type { PageFrontmatter } from './frontmatter-types'\nimport type { PageOutlineItem } from './ts-ssg-context'\n\nexport function isTocEnabled(\n frontmatter: PageFrontmatter,\n outline: PageOutlineItem[] | undefined,\n) {\n return frontmatter.layout.showToc && hasVisibleTocItems(outline ?? [])\n}\n\nfunction hasVisibleTocItems(outline: PageOutlineItem[]) {\n const [item] = outline\n if (!item) return false\n if (outline.length !== 1 || !isDocumentHeading(item)) return true\n return (item.children?.length ?? 0) > 0\n}\n\nfunction isDocumentHeading(item: PageOutlineItem) {\n return item.depth === 1\n}\n","import type { PageContext } from './ts-ssg-context'\n\ntype ContextCarrier = {\n pageContext?: PageContext\n}\n\ntype HeadLike = {\n ctx?: unknown[]\n}\n\nfunction hasPageContext(value: unknown): value is ContextCarrier {\n return typeof value === 'object' && value !== null && 'pageContext' in value\n}\n\nfunction hasContextStack(value: unknown): value is HeadLike {\n return typeof value === 'object' && value !== null && 'ctx' in value\n}\n\nexport function resolvePageContext(head: unknown): PageContext {\n const stack = hasContextStack(head) && Array.isArray(head.ctx) ? head.ctx : []\n for (const ctx of stack) {\n if (!hasPageContext(ctx)) continue\n if (ctx.pageContext) return ctx.pageContext\n }\n throw new Error('pageContext is not available in the Regor context stack.')\n}\n\nexport function tryResolvePageContext(head: unknown): PageContext | undefined {\n const stack = hasContextStack(head) && Array.isArray(head.ctx) ? head.ctx : []\n for (const ctx of stack) {\n if (!hasPageContext(ctx)) continue\n if (ctx.pageContext) return ctx.pageContext\n }\n return undefined\n}\n"],"mappings":";AAMA,MAAM,gBAA8C;CAClD,MAAM;EACJ,SAAS;GAAC;GAAM;GAAS;GAAe;EAAK;EAC7C,YAAY;GAAC;GAAO;GAAS;EAAM;CACrC;CACA,KAAK;EAAE,SAAS;GAAC;GAAS;GAAO;EAAK;EAAG,YAAY,CAAC,QAAQ,MAAM;CAAE;CACtE,GAAG,EAAE,YAAY,CAAC,MAAM,IAAI,EAAE;CAC9B,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE;CAChC,KAAK;EACH,SAAS;GAAC;GAAO;GAAM;GAAO;GAAO;GAAO;EAAK;EACjD,YAAY;GAAC;GAAO;GAAQ;GAAQ;GAAO;GAAQ;EAAM;CAC3D;CACA,QAAQ;EAAE,SAAS,CAAC,MAAM,IAAI;EAAG,YAAY,CAAC,OAAO,MAAM;CAAE;CAC7D,KAAK,EAAE,YAAY,CAAC,MAAM,EAAE;CAC5B,MAAM,EAAE,YAAY,CAAC,OAAO,EAAE;CAC9B,MAAM;EAAE,SAAS,CAAC,OAAO;EAAG,YAAY,CAAC,SAAS,QAAQ;CAAE;CAC5D,YAAY;EAAE,SAAS,CAAC,QAAQ;EAAG,YAAY,CAAC,aAAa;CAAE;CAC/D,QAAQ;EAAE,SAAS,CAAC,MAAM,KAAK;EAAG,YAAY,CAAC,OAAO,MAAM;CAAE;CAC9D,QAAQ;EAAE,SAAS,CAAC,KAAK;EAAG,YAAY,CAAC,QAAQ,MAAM;CAAE;CACzD,QAAQ;EAAE,SAAS,CAAC,MAAM,IAAI;EAAG,YAAY;GAAC;GAAO;GAAQ;EAAM;CAAE;CACrE,IAAI;EAAE,SAAS,CAAC,QAAQ;EAAG,YAAY,CAAC,KAAK;CAAE;CAC/C,SAAS;EAAE,SAAS,CAAC,KAA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C1B,IAAI,IAAI,aAAa,OAAO,IAAI;CAClC;AAEF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purestack/ts-common",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"packageManager": "yarn@4.9.2",
|
|
5
5
|
"module": "./dist/ts-common.mjs",
|
|
6
6
|
"types": "./dist/ts-common.d.mts",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@purestack/ts-html": "^1.1.
|
|
29
|
-
"@purestack/ts-style": "^1.1.
|
|
30
|
-
"@purestack/ts-util": "^1.1.
|
|
28
|
+
"@purestack/ts-html": "^1.1.15",
|
|
29
|
+
"@purestack/ts-style": "^1.1.15",
|
|
30
|
+
"@purestack/ts-util": "^1.1.15"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"files": [
|