@ubean/content 0.4.4 → 0.4.6

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 CHANGED
@@ -16,14 +16,14 @@ interface DiscoverContentPageRoutesOptions extends ScanContentSourcesOptions {
16
16
  * `queryCollection('blog')`. Pass the result into `prerender.include` or
17
17
  * `collectPrerenderRoutes({ contentRoutes })`.
18
18
  */
19
- declare function extractContentPageRoutes(docs: Array<Pick<ContentDocument, '_path' | '_draft' | '_partial'>>, options?: ContentPageRouteOptions): string[];
19
+ export declare function extractContentPageRoutes(docs: Array<Pick<ContentDocument, '_path' | '_draft' | '_partial'>>, options?: ContentPageRouteOptions): string[];
20
20
  /**
21
21
  * Scan content source directories on disk and return prerender URLs.
22
22
  *
23
23
  * Used by `ubean build` when `content` is enabled, and by apps that want
24
24
  * the same discovery without running Vite.
25
25
  */
26
- declare function discoverContentPageRoutes(rootDir: string, options?: DiscoverContentPageRoutesOptions): string[];
26
+ export declare function discoverContentPageRoutes(rootDir: string, options?: DiscoverContentPageRoutesOptions): string[];
27
27
  //#endregion
28
28
  //#region src/live.d.ts
29
29
  /**
@@ -83,4 +83,4 @@ interface LiveCollection extends Omit<ContentCollection, 'documents' | 'list' |
83
83
  invalidate(): void;
84
84
  }
85
85
  //#endregion
86
- export { type ContentBody, type ContentCollection, type ContentDocument, type ContentFieldSchema, type ContentModuleOptions, type ContentNavigationItem, type ContentPageRouteOptions, type ContentQueryBuilder, type ContentSchema, type ContentSourceConfig, type ContentSourceScanConfig, type ContentTocItem, type ContentType, type DiscoverContentPageRoutesOptions, type LiveCollection, type LiveCollectionCacheOptions, type LiveCollectionEntry, type LiveCollectionLoader, type LiveCollectionLoaderParams, type LiveCollectionOptions, type MarkdownNode, type ParsedContentMeta, type ScanContentSourcesOptions, type UbeanContentOptions, bootstrapContentFromDisk, buildNavigation, configureContentRuntime, createContentCollection, createQueryBuilder, defineCollection, defineContentCollection, discoverContentPageRoutes, extractContentPageRoutes, fetchContentNavigation, fetchContentNavigation as fetchNavigation, generateId, getCollection, getContentItem, listCollections, parseContent, parseContentFile, parseFrontmatter, parseMarkdown, queryCollection, queryCollection as queryContent, registerContent, scanContentSources, ubeanContentPlugin };
86
+ export { type ContentBody, type ContentCollection, type ContentDocument, type ContentFieldSchema, type ContentModuleOptions, type ContentNavigationItem, type ContentPageRouteOptions, type ContentQueryBuilder, type ContentSchema, type ContentSourceConfig, type ContentSourceScanConfig, type ContentTocItem, type ContentType, type DiscoverContentPageRoutesOptions, type LiveCollection, type LiveCollectionCacheOptions, type LiveCollectionEntry, type LiveCollectionLoader, type LiveCollectionLoaderParams, type LiveCollectionOptions, type MarkdownNode, type ParsedContentMeta, type ScanContentSourcesOptions, type UbeanContentOptions, bootstrapContentFromDisk, buildNavigation, configureContentRuntime, createContentCollection, createQueryBuilder, defineCollection, defineContentCollection, fetchContentNavigation, fetchContentNavigation as fetchNavigation, generateId, getCollection, getContentItem, listCollections, parseContent, parseContentFile, parseFrontmatter, parseMarkdown, queryCollection, queryCollection as queryContent, registerContent, scanContentSources, ubeanContentPlugin };
package/dist/vite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Plugin } from "vite";
2
2
  //#region src/vite.d.ts
3
- interface UbeanContentOptions {
3
+ export interface UbeanContentOptions {
4
4
  sources?: Record<string, {
5
5
  dir: string;
6
6
  prefix?: string;
@@ -20,6 +20,6 @@ interface UbeanContentOptions {
20
20
  watch?: boolean;
21
21
  };
22
22
  }
23
- declare function ubeanContentPlugin(userOptions?: UbeanContentOptions): Plugin;
23
+ export declare function ubeanContentPlugin(userOptions?: UbeanContentOptions): Plugin;
24
24
  //#endregion
25
- export { UbeanContentOptions, ubeanContentPlugin as default, ubeanContentPlugin };
25
+ export { ubeanContentPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/content",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "File-based content module for ubean (markdown/MDX/YAML/JSON)",
5
5
  "files": [
6
6
  "dist"
@@ -24,16 +24,16 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@ubean/shared": "0.4.4",
27
+ "@ubean/shared": "0.4.6",
28
28
  "defu": "6.1.7",
29
29
  "pathe": "^2.0.3",
30
30
  "scule": "^1.3.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^26.5.0",
34
- "typescript": "7.0.2",
35
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
36
- "vite-plus": "0.3.0"
34
+ "typescript": "npm:typescript-native-bridge@latest",
35
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
36
+ "vite-plus": "0.3.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "vite": "^5.0.0 || ^6.0.0"