nimbi-cms 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nimbi-cms",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AbelVM/nimbiCMS.git"
@@ -26,14 +26,13 @@
26
26
  "type": "module",
27
27
  "scripts": {
28
28
  "dev": "vite",
29
- "dev:example": "sh -c \"npm run build -- --outDir example/dist --config vite.config.js && vite example --port 5173 &\"",
30
29
  "build": "vite build --config vite.config.js",
31
- "build:lib": "vite build --config vite.config.js",
32
30
  "build:analyze": "ANALYZE=1 vite build --config vite.config.js",
33
31
  "preview": "vite preview",
34
32
  "test": "npx vitest run",
33
+ "a11y:scan": "node scripts/a11y-runner.js",
35
34
  "gen-dts": "node scripts/gen-dts.js",
36
- "prepare": "npm run build:lib && npm run gen-dts",
35
+ "prepare": "npm run build && npm run gen-dts && npm run docs",
37
36
  "check-dts": "npx tsc --noEmit src/index.d.ts --lib es2015,dom --skipLibCheck",
38
37
  "type-test": "npx tsd",
39
38
  "docs": "typedoc --options typedoc.json"
@@ -46,18 +45,21 @@
46
45
  "devDependencies": {
47
46
  "@fullhuman/postcss-purgecss": "^8.0.0",
48
47
  "@vitest/coverage-v8": "^4.0.18",
48
+ "axe-core": "^4.11.1",
49
49
  "comment-parser": "^0.7.6",
50
50
  "cssnano": "^7.1.3",
51
51
  "eslint": "^10.0.3",
52
52
  "eslint-plugin-unused-imports": "^4.4.1",
53
53
  "glob": "^10.4.1",
54
54
  "jsdom": "^28.1.0",
55
+ "postcss": "^8.5.8",
55
56
  "postcss-discard-duplicates": "^7.0.2",
56
57
  "postcss-merge-rules": "^7.0.8",
57
58
  "postcss-preset-env": "^11.2.0",
58
- "purgecss": "^8.0.0",
59
+ "puppeteer": "^24.39.1",
59
60
  "reading-time": "^1.5.0",
60
61
  "rollup-plugin-visualizer": "^5.8.0",
62
+ "serve": "^14.2.6",
61
63
  "terser": "^5.17.0",
62
64
  "tsd": "^0.33.0",
63
65
  "typedoc": "^0.28.17",
package/src/index.d.ts CHANGED
@@ -182,6 +182,7 @@ export function fetchMarkdown(path: string, base?: string): Promise<FetchResult>
182
182
 
183
183
 
184
184
  // --- from src/worker-manager.js
185
+ export function makeWorkerPool(createWorker: any, name: any, size: any): any
185
186
 
186
187
 
187
188
 
@@ -197,7 +198,7 @@ export const skipRootReadme: boolean
197
198
  export function getLanguages(): string[]
198
199
  export function _storeSlugMapping(slug: string, rel: string): void
199
200
  export function setHomePage(p: string): any
200
- export function uniqueSlug(base: string, existing: Set<string>): any
201
+ export function uniqueSlug(base: string, existing: Set<string>): string
201
202
  export function isExternalLink(href: string): boolean
202
203
  export function isExternalLinkWithBase(href: string, contentBase: string): boolean
203
204
  export function unescapeMarkdown(s: string): string
@@ -264,6 +265,8 @@ export function augmentIndexWithAllMarkdownPaths(arrOrMap: any): any
264
265
 
265
266
 
266
267
  // --- from src/markdown.js
268
+ export function detectFenceLanguagesAsync(mdText: string, supportedMap: Map<string,string>): Promise<Set<string>>
269
+
267
270
 
268
271
 
269
272
 
@@ -277,6 +280,9 @@ export function setLang(lang: string): void
277
280
 
278
281
 
279
282
 
283
+ // --- from src/jsdoc-typedefs.js
284
+
285
+
280
286
  // --- from src/init.js
281
287
  export function parseInitOptionsFromQuery(queryString: string): object
282
288
  export const currentHighlightTheme: string
@@ -305,7 +311,7 @@ export function renderNotFound(contentWrap: HTMLElement|null, t: Function|null,
305
311
 
306
312
 
307
313
  // --- from src/hookManager.js
308
- export function runHooks(name: string, ctx: object): Promise<void>
314
+ export function runHooks(name: string, ctx: Record<string,unknown>): Promise<void>
309
315
 
310
316
 
311
317
 
@@ -335,15 +341,21 @@ export function setThemeVars(vars: Record<string,string>): void
335
341
  export function registerThemedElement(el: any): () => void
336
342
 
337
343
  // --- from src/worker/slugWorker.js
344
+ export function handleSlugWorkerMessage(msg: object): Promise<object>
338
345
 
339
346
  // --- from src/worker/renderer.js
347
+ export function handleWorkerMessage(msg: object): Promise<object>
340
348
 
341
349
  // --- from src/worker/anchorWorker.js
350
+ export function handleAnchorWorkerMessage(msg: object): Promise<object>
351
+
352
+ // --- from src/utils/renderer-manager.js
353
+
354
+
342
355
 
343
356
  // --- from src/utils/l10n-defaults.js
344
357
  export const DEFAULT_L10N: Record<string, L10nEntry>
345
358
 
346
-
347
359
  // --- from src/utils/helpers.js
348
360
  export function normalizePath(p: string): string
349
361
  export function trimTrailingSlash(u: string): string
@@ -352,6 +364,7 @@ export function setEagerForAboveFoldImages(container: any, marginPx: number, deb
352
364
  export function buildPageUrl(page: string, hash: string|null, baseSearch: string): string
353
365
  export function encodeURL(u: string): string
354
366
  export function safe(fn: () => any|Promise<any>): any|Promise<any>|undefined
367
+ export function decodeHtmlEntities(s: string): string
355
368
 
356
369
 
357
370
 
@@ -359,4 +372,6 @@ export function safe(fn: () => any|Promise<any>): any|Promise<any>|undefined
359
372
  // --- from src/utils/frontmatter.js
360
373
  export function parseFrontmatter(md: string): {content:string, data: Record<string,string>}
361
374
 
375
+ // --- from src/utils/emojiMap.js
376
+
362
377
  // --- from src/lib/index.js