nextjs-studio 1.0.6 → 1.0.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.
|
@@ -6870,7 +6870,7 @@ async function loadConfigFromPath(configPath2) {
|
|
|
6870
6870
|
// package.json
|
|
6871
6871
|
var package_default = {
|
|
6872
6872
|
name: "nextjs-studio",
|
|
6873
|
-
version: "1.0.
|
|
6873
|
+
version: "1.0.6",
|
|
6874
6874
|
description: "A Git-based, local-first CMS for Next.js projects",
|
|
6875
6875
|
keywords: [
|
|
6876
6876
|
"nextjs",
|
|
@@ -6903,8 +6903,11 @@ var package_default = {
|
|
|
6903
6903
|
types: "./dist/core/index.d.ts",
|
|
6904
6904
|
bin: "dist/bin/nextjs-studio.js",
|
|
6905
6905
|
files: [
|
|
6906
|
-
"dist/bin",
|
|
6907
|
-
"dist/core",
|
|
6906
|
+
"dist/bin/nextjs-studio.js",
|
|
6907
|
+
"dist/core/index.js",
|
|
6908
|
+
"dist/core/index.d.ts",
|
|
6909
|
+
"dist/core/server.js",
|
|
6910
|
+
"dist/core/server.d.ts",
|
|
6908
6911
|
"dist/*.d.ts",
|
|
6909
6912
|
"dist/cli/ui/standalone.tar.gz",
|
|
6910
6913
|
"README.md",
|
|
Binary file
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentEntry,
|
|
2
|
-
export {
|
|
1
|
+
import { C as ContentEntry, e as FieldDefinition, T as TextField, L as LongTextField, N as NumberField, B as BooleanField, f as DateField, I as ISODate, g as SelectField, M as MultiSelectField, U as UrlField, H as HttpUrl, E as EmailField, h as Email, i as MediaField, j as MediaPath, O as ObjectField, A as ArrayField, k as IdField, l as ID, m as SlugField, n as Slug, R as RelationField, o as FormulaField, p as StatusField, r as CreatedTimeField, s as UpdatedTimeField, t as CollectionSchema, u as BaseField } from '../query-builder-CRcrmrbR.js';
|
|
2
|
+
export { a as Collection, b as CollectionConfig, c as CollectionTypeMap, v as EntryResult, w as FieldType, Q as QueryOptions, d as QueryResult, S as StudioConfig, q as queryCollection } from '../query-builder-CRcrmrbR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @context Core layer — draft filter at src/core/draft-filter.ts
|
package/dist/core/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { F as FileInfo, D as DirectoryFileEntry, S as StudioConfig, C as ContentEntry, a as Collection } from '../query-builder-CRcrmrbR.js';
|
|
2
|
+
export { b as CollectionConfig, c as CollectionTypeMap, Q as QueryOptions, d as QueryResult, q as queryCollection } from '../query-builder-CRcrmrbR.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @context Shared layer — FS adapter interface at src/shared/fs-adapter.interface.ts
|
|
@@ -108,29 +108,4 @@ declare class ContentIndex {
|
|
|
108
108
|
declare function loadContent(fsAdapter: IFsAdapter, config?: StudioConfig): Promise<ContentIndex>;
|
|
109
109
|
declare function loadContentSync(fsAdapter: IFsAdapter, config?: StudioConfig): ContentIndex;
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
* @context Core layer — config loader at src/core/config-loader.ts
|
|
113
|
-
* @does Resolves and loads studio.config.ts/.js from the project root using dynamic import
|
|
114
|
-
* @depends src/shared/constants.ts, src/shared/types.ts
|
|
115
|
-
* @do Add new config resolution strategies or validation here
|
|
116
|
-
* @dont Import from CLI or UI; access content files
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Resolves the config file path from the project root.
|
|
121
|
-
* Returns undefined if no config file is found.
|
|
122
|
-
*/
|
|
123
|
-
declare function resolveConfigPath(projectRoot: string): string | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* Loads the studio config from the project root.
|
|
126
|
-
* Tries CONFIG_FILENAMES in order, uses dynamic import().
|
|
127
|
-
* Returns empty config if no file found or loading fails.
|
|
128
|
-
*/
|
|
129
|
-
declare function loadStudioConfig(projectRoot: string): Promise<StudioConfig>;
|
|
130
|
-
/**
|
|
131
|
-
* Loads config from a specific file path.
|
|
132
|
-
* Uses tsx's tsImport for .ts files so TypeScript configs work at runtime.
|
|
133
|
-
*/
|
|
134
|
-
declare function loadConfigFromPath(configPath: string): Promise<StudioConfig>;
|
|
135
|
-
|
|
136
|
-
export { Collection, ContentEntry, ContentIndex, FsAdapter, StudioConfig, loadConfigFromPath, loadContent, loadContentSync, loadStudioConfig, resolveConfigPath };
|
|
111
|
+
export { Collection, ContentEntry, ContentIndex, FsAdapter, StudioConfig, loadContent, loadContentSync };
|