@knitli/docs-components 1.1.5 → 1.1.7
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/CHANGELOG.md +8 -0
- package/dist/assets/favicon/index.d.ts +7 -0
- package/dist/assets/favicon/index.d.ts.map +1 -0
- package/dist/assets/favicon/index.js +10 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/package.json +5 -8
- package/src/assets/favicon/index.ts +18 -0
- package/src/components/Footer.astro +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### 1.1.7
|
|
8
|
+
|
|
9
|
+
- fix: Another path resolution issue
|
|
10
|
+
|
|
11
|
+
#### 1.1.6
|
|
12
|
+
|
|
13
|
+
- fix: typo in Footer component
|
|
14
|
+
|
|
7
15
|
#### 1.1.5
|
|
8
16
|
|
|
9
17
|
- fix: path resolution issue on imported assets
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/favicon/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,QAAiC,CAAC;AACzD,eAAO,MAAM,UAAU,QAAiC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2025 Knitli Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
3
|
+
//
|
|
4
|
+
// Local logo asset exports - files are copied from @knitli/shared-layouts during build.
|
|
5
|
+
// Do not edit paths here; run `bun run copy-assets` to refresh from source.
|
|
6
|
+
import { dirname, join } from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
export const faviconIco = join(__dirname, "favicon.ico");
|
|
10
|
+
export const faviconSvg = join(__dirname, "favicon.svg");
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export declare const DocsAssets: {
|
|
|
13
13
|
headlineLogoDark: string;
|
|
14
14
|
headlineLogoLight: string;
|
|
15
15
|
knitliWordmark: string;
|
|
16
|
+
faviconIco: string;
|
|
17
|
+
faviconSvg: string;
|
|
16
18
|
docsStyle: string;
|
|
17
19
|
};
|
|
18
20
|
declare const _default: {
|
|
@@ -30,6 +32,8 @@ declare const _default: {
|
|
|
30
32
|
headlineLogoDark: string;
|
|
31
33
|
headlineLogoLight: string;
|
|
32
34
|
knitliWordmark: string;
|
|
35
|
+
faviconIco: string;
|
|
36
|
+
faviconSvg: string;
|
|
33
37
|
docsStyle: string;
|
|
34
38
|
};
|
|
35
39
|
DocsBreadcrumb: () => Promise<typeof import("*.astro")>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AAsBjC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAiBtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;AAQF,wBAGE"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// Export type definitions
|
|
8
8
|
export * from "./types/index.js";
|
|
9
9
|
import { codeweaverPrimary, codeweaverReverse, headlineLogoDark, headlineLogoLight, knitliLogo, knitliWordmark, recocoLogoMed, recocoLogoSm, recocoLogoXl, threadLogoDark, threadLogoLight, } from "./assets/logos/index.js";
|
|
10
|
+
import { faviconIco, faviconSvg } from "./assets/favicon/index.js";
|
|
10
11
|
import { codeweaverTheme, variables } from "./assets/styles/index.js";
|
|
11
12
|
import { docsStyle } from "./styles/index.js";
|
|
12
13
|
export const DocsAssets = {
|
|
@@ -23,6 +24,8 @@ export const DocsAssets = {
|
|
|
23
24
|
headlineLogoDark,
|
|
24
25
|
headlineLogoLight,
|
|
25
26
|
knitliWordmark,
|
|
27
|
+
faviconIco,
|
|
28
|
+
faviconSvg,
|
|
26
29
|
docsStyle,
|
|
27
30
|
};
|
|
28
31
|
const components = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitli/docs-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Shared branded components for Knitli documentation sites",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"knitli",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "bunx tsc &&
|
|
44
|
-
"copy-assets": "
|
|
43
|
+
"build": "bunx tsc && bun run scripts/copy-dist-assets.mjs",
|
|
44
|
+
"copy-assets": "bun run scripts/copy-assets.mjs",
|
|
45
45
|
"prepublishOnly": "bun run copy-assets && bun run build",
|
|
46
|
-
"publish": "npm publish --access public",
|
|
46
|
+
"publish": "npm publish --access public || node --input-type=commonjs -e \"const v=require('./package.json').version;const r=require('child_process').spawnSync('npm',['view','@knitli/docs-components@'+v,'version'],{stdio:'ignore'});if(r.status===0){console.log('Version '+v+' already published, skipping')}else{process.exit(1)}\"",
|
|
47
47
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -60,10 +60,7 @@
|
|
|
60
60
|
"typescript": "catalog:dev-common",
|
|
61
61
|
"vitest": "catalog:dev-common",
|
|
62
62
|
"@types/react": "catalog:types",
|
|
63
|
-
"vite": "catalog:dev-common"
|
|
64
|
-
"vite-plugin-svgr": "catalog:react-core",
|
|
65
|
-
"@svgr/plugin-svgo": "catalog:react-core",
|
|
66
|
-
"@svgr/plugin-jsx": "catalog:react-core"
|
|
63
|
+
"vite": "catalog:dev-common"
|
|
67
64
|
},
|
|
68
65
|
"peerDependencies": {
|
|
69
66
|
"@astrojs/starlight": "catalog:astro-core",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2025 Knitli Inc.
|
|
2
|
+
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
3
|
+
//
|
|
4
|
+
// Local logo asset exports - files are copied from @knitli/shared-layouts during build.
|
|
5
|
+
// Do not edit paths here; run `bun run copy-assets` to refresh from source.
|
|
6
|
+
|
|
7
|
+
import { dirname, join } from "node:path";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
|
|
12
|
+
export const faviconIco = join(__dirname, "favicon.ico");
|
|
13
|
+
export const faviconSvg = join(__dirname, "favicon.svg");
|
|
14
|
+
|
|
15
|
+
export type FaviconAssets = {
|
|
16
|
+
faviconIco: string;
|
|
17
|
+
faviconSvg: string;
|
|
18
|
+
};
|
|
@@ -50,7 +50,7 @@ const shouldShowDocsHomeLink = Astro.url.pathname !== "/";
|
|
|
50
50
|
<div class="footer-content sl-flex">
|
|
51
51
|
<div class="footer-brand">
|
|
52
52
|
<p class="copyright">
|
|
53
|
-
© {currentYear}Knitli, Inc. All rights reserved.
|
|
53
|
+
© {currentYear} Knitli, Inc. All rights reserved.
|
|
54
54
|
</p>
|
|
55
55
|
<div class="social-links sl-flex">
|
|
56
56
|
<a
|
package/src/index.d.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -22,6 +22,8 @@ import {
|
|
|
22
22
|
threadLogoLight,
|
|
23
23
|
} from "./assets/logos/index.js";
|
|
24
24
|
|
|
25
|
+
import { faviconIco, faviconSvg } from "./assets/favicon/index.js";
|
|
26
|
+
|
|
25
27
|
import { codeweaverTheme, variables } from "./assets/styles/index.js";
|
|
26
28
|
|
|
27
29
|
import { docsStyle } from "./styles/index.js";
|
|
@@ -40,6 +42,8 @@ export const DocsAssets = {
|
|
|
40
42
|
headlineLogoDark,
|
|
41
43
|
headlineLogoLight,
|
|
42
44
|
knitliWordmark,
|
|
45
|
+
faviconIco,
|
|
46
|
+
faviconSvg,
|
|
43
47
|
docsStyle,
|
|
44
48
|
};
|
|
45
49
|
|