@grove-dev/astro 0.19.0 → 1.0.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -3
- package/src/server/collections.ts +0 -4
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,cAAc,iBAAiB,CAAC;AAMhC,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,cAAc,iBAAiB,CAAC;AAMhC,cAAc,gBAAgB,CAAC;AAQ/B,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI,gBAAgB,CAwFrD;AAID,eAAO,MAAM,sBAAsB,sCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* and nothing happened" surprise.
|
|
26
26
|
*/
|
|
27
27
|
import { existsSync } from 'node:fs';
|
|
28
|
-
import {
|
|
28
|
+
import { resolve } from 'node:path';
|
|
29
29
|
import { fileURLToPath } from 'node:url';
|
|
30
30
|
import { loadConfig, prepareDirectory } from '@grove-dev/core';
|
|
31
31
|
import { syncPackagedIcons } from './lib/packaged-icons.js';
|
|
@@ -35,7 +35,6 @@ export * from '@grove-dev/core';
|
|
|
35
35
|
// counts, and pretty-print display maps. All dependency-free and
|
|
36
36
|
// typed against `@grove-dev/core`.
|
|
37
37
|
export * from './lib/index.js';
|
|
38
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
39
38
|
// Virtual module id used to inject the consumer's `src/styles/global.css`.
|
|
40
39
|
// Resolved by the inline Vite plugin below to the absolute file path
|
|
41
40
|
// when the file exists, or to an empty module when it doesn't.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,cAAc,iBAAiB,CAAC;AAEhC,+DAA+D;AAC/D,mEAAmE;AACnE,iEAAiE;AACjE,mCAAmC;AACnC,cAAc,gBAAgB,CAAC;AAE/B,2EAA2E;AAC3E,qEAAqE;AACrE,+DAA+D;AAC/D,MAAM,8BAA8B,GAAG,mCAAmC,CAAC;AAC3E,MAAM,4BAA4B,GAAG,2CAA2C,CAAC;AAEjF,MAAM,CAAC,OAAO,UAAU,UAAU;IAChC,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE;YACL,oBAAoB,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;gBAC7E,qDAAqD;gBACrD,kCAAkC;gBAClC,kDAAkD;gBAClD,uDAAuD;gBACvD,wCAAwC;gBACxC,M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AAO,CAAC,YAAY,EAAE,gBAAgB,CAAC;6BAC5D;yBACF;wBACD,0DAA0D;wBAC1D,uDAAuD;wBACvD,wDAAwD;wBACxD,wDAAwD;wBACxD,yBAAyB;wBACzB,GAAG,EAAE;4BACH,QAAQ,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;yBACxC;wBACD,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,oCAAoC;gCAC1C,SAAS,CAAC,EAAE;oCACV,IAAI,EAAE,KAAK,8BAA8B,EAAE,CAAC;wCAC1C,OAAO,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,4BAA4B,CAAC;oCACxE,CAAC;oCACD,OAAO,IAAI,CAAC;gCACd,CAAC;gCACD,IAAI,CAAC,EAAE;oCACL,IAAI,EAAE,KAAK,4BAA4B,EAAE,CAAC;wCACxC,OAAO,EAAE,CAAC;oCACZ,CAAC;oCACD,OAAO,IAAI,CAAC;gCACd,CAAC;6BACF;yBACF;qBACF;iBACF,CAAC,CAAC;gBAEH,6DAA6D;gBAC7D,2DAA2D;gBAC3D,2DAA2D;gBAC3D,0DAA0D;gBAC1D,YAAY,CAAC,UAAU,EAAE,WAAW,8BAA8B,IAAI,CAAC,CAAC;YAC1E,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,+DAA+D;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,sBAAsB,GAAG,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grove-dev/astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Astro integration + server view-models for Grove directories. UI ships from @grove-dev/registry, not from this package.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"marked": "^18.0.0",
|
|
51
51
|
"sanitize-html": "^2.17.7",
|
|
52
|
-
"shiki": "^
|
|
52
|
+
"shiki": "^4.4.3",
|
|
53
53
|
"yaml": "^2.9.0",
|
|
54
|
-
"@grove-dev/core": "0.
|
|
54
|
+
"@grove-dev/core": "1.0.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"astro": "^6.0.0 || ^7.0.0"
|
package/src/index.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* and nothing happened" surprise.
|
|
26
26
|
*/
|
|
27
27
|
import { existsSync } from 'node:fs';
|
|
28
|
-
import {
|
|
28
|
+
import { resolve } from 'node:path';
|
|
29
29
|
import { fileURLToPath } from 'node:url';
|
|
30
30
|
import { loadConfig, prepareDirectory } from '@grove-dev/core';
|
|
31
31
|
import type { AstroIntegration } from 'astro';
|
|
@@ -39,8 +39,6 @@ export * from '@grove-dev/core';
|
|
|
39
39
|
// typed against `@grove-dev/core`.
|
|
40
40
|
export * from './lib/index.js';
|
|
41
41
|
|
|
42
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
43
|
-
|
|
44
42
|
// Virtual module id used to inject the consumer's `src/styles/global.css`.
|
|
45
43
|
// Resolved by the inline Vite plugin below to the absolute file path
|
|
46
44
|
// when the file exists, or to an empty module when it doesn't.
|
|
@@ -66,9 +66,6 @@ export interface CollectionPageModel {
|
|
|
66
66
|
total: number;
|
|
67
67
|
isEmpty: boolean;
|
|
68
68
|
entries: CollectionEntry[];
|
|
69
|
-
/** CollectionPage + ItemList + BreadcrumbList JSON-LD nodes. Ships
|
|
70
|
-
* through `seo.jsonLd`; kept here too for backward compatibility. */
|
|
71
|
-
jsonLd?: unknown;
|
|
72
69
|
/** Complete head block: honors the collection's `seo.title`,
|
|
73
70
|
* `seo.description`, and `seo.index` overrides. Pass to BaseLayout. */
|
|
74
71
|
seo: PageSeo;
|
|
@@ -194,7 +191,6 @@ export function getCollectionPageModel(
|
|
|
194
191
|
isEmpty: result.isEmpty,
|
|
195
192
|
entries: result.entries,
|
|
196
193
|
related,
|
|
197
|
-
jsonLd,
|
|
198
194
|
seo,
|
|
199
195
|
};
|
|
200
196
|
}
|