@hagicode/hagilight 0.4.1 → 0.4.2-dev.62.1.e263aaa

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/Footer.astro ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ import type { ComponentProps } from 'astro/types';
3
+ import manifest from './package.json';
4
+ import CoreFooter from '@hagicode/hagilight-core/Footer';
5
+
6
+ interface Props extends ComponentProps<typeof CoreFooter> {}
7
+
8
+ if (typeof manifest.version !== 'string' || manifest.version.trim().length === 0) {
9
+ throw new Error('@hagicode/hagilight requires a nonempty string version in its package.json.');
10
+ }
11
+ ---
12
+
13
+ <CoreFooter {...Astro.props}>
14
+ <span slot="attribution">power by hagilight@{manifest.version}</span>
15
+ </CoreFooter>
package/README.md CHANGED
@@ -27,4 +27,11 @@ export default defineConfig({
27
27
 
28
28
  RSS is on by default: `hagilight()` derives feed locales from the Astro `i18n` config and serves a built-in empty feed. Customize it with the `rss` option, for example `hagilight({ rss: { getFeed: './src/rss-feed.ts' } })`; `getFeed` points to a project-root-relative module exporting a feed callback. Pass `rss: false` to disable RSS. Import `@hagicode/hagilight/SEOHead` for SEO metadata in an Astro page or layout.
29
29
 
30
+ Use `@hagicode/hagilight/Footer` for the shared localized footer with the
31
+ literal `power by hagilight@<version>` attribution. The version is read at build
32
+ time from this package's own manifest, not from Astro. Existing
33
+ `@hagicode/hagilight-core/Footer` imports remain supported and render without a
34
+ feature-package attribution; switch that import to `@hagicode/hagilight/Footer`
35
+ to opt in while keeping the same `locale` and `links` props.
36
+
30
37
  See the [repository documentation](https://github.com/HagiCode-org/hagilight#readme) for RSS configuration, feed callback types, and integration behavior.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/hagilight",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-dev.62.1.e263aaa",
4
4
  "type": "module",
5
5
  "description": "Astro integrations and components for HagiCode sites",
6
6
  "repository": {
@@ -21,7 +21,8 @@
21
21
  "types": "./dist/integration.d.ts",
22
22
  "default": "./dist/integration.js"
23
23
  },
24
- "./SEOHead": "./SEOHead.astro"
24
+ "./SEOHead": "./SEOHead.astro",
25
+ "./Footer": "./Footer.astro"
25
26
  },
26
27
  "files": [
27
28
  "README.md",
@@ -39,7 +40,7 @@
39
40
  },
40
41
  "dependencies": {
41
42
  "@astrojs/sitemap": "^3.7.4",
42
- "@hagicode/hagilight-core": "0.4.1"
43
+ "@hagicode/hagilight-core": "0.4.2-dev.62.1.e263aaa"
43
44
  },
44
45
  "keywords": [
45
46
  "astro-component",