@dyrected/core 1.0.9 → 2.1.0

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.cts CHANGED
@@ -1,5 +1,7 @@
1
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.cjs';
2
- export { A as AccessFunction, a as AdminConfig, B as Block, b as DatabaseAdapter, F as Field, c as FieldHook, d as FieldType, e as FileData, H as HookFunction, I as ImageService, P as PaginatedResult, S as StorageAdapter, U as UploadConfig } from './index-RylhgOwj.cjs';
1
+ import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.cjs';
2
+ export { A as AccessFunction, a as AdminConfig, B as Block, b as DatabaseAdapter, c as DyrectedContext, F as Field, d as FieldHook, e as FieldType, f as FileData, H as HookFunction, I as ImageService, P as PaginatedResult, S as StorageAdapter, U as UploadConfig, g as createDyrectedApp } from './app-KApbf4XL.cjs';
3
+ import 'hono/types';
4
+ import 'hono';
3
5
 
4
6
  interface SetupPromptConfig {
5
7
  siteName?: string;
@@ -7,7 +9,9 @@ interface SetupPromptConfig {
7
9
  apiKey?: string;
8
10
  baseUrl?: string;
9
11
  isSelfHosted?: boolean;
12
+ existingSite?: boolean;
10
13
  }
14
+ declare function generateFreshSetupPrompt(activeTab: "next" | "nuxt" | "react" | "vue", config: SetupPromptConfig): string;
11
15
  declare function generateAIPrompt(activeTab: "next" | "nuxt" | "react" | "vue", config: SetupPromptConfig): string;
12
16
 
13
17
  /**
@@ -30,4 +34,4 @@ declare function defineGlobal(config: GlobalConfig): GlobalConfig;
30
34
  */
31
35
  declare function defineConfig(config: DyrectedConfig): DyrectedConfig;
32
36
 
33
- export { CollectionConfig, DyrectedConfig, GlobalConfig, type SetupPromptConfig, defineCollection, defineConfig, defineGlobal, generateAIPrompt, normalizeConfig };
37
+ export { CollectionConfig, DyrectedConfig, GlobalConfig, type SetupPromptConfig, defineCollection, defineConfig, defineGlobal, generateAIPrompt, generateFreshSetupPrompt, normalizeConfig };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.js';
2
- export { A as AccessFunction, a as AdminConfig, B as Block, b as DatabaseAdapter, F as Field, c as FieldHook, d as FieldType, e as FileData, H as HookFunction, I as ImageService, P as PaginatedResult, S as StorageAdapter, U as UploadConfig } from './index-RylhgOwj.js';
1
+ import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.js';
2
+ export { A as AccessFunction, a as AdminConfig, B as Block, b as DatabaseAdapter, c as DyrectedContext, F as Field, d as FieldHook, e as FieldType, f as FileData, H as HookFunction, I as ImageService, P as PaginatedResult, S as StorageAdapter, U as UploadConfig, g as createDyrectedApp } from './app-KApbf4XL.js';
3
+ import 'hono/types';
4
+ import 'hono';
3
5
 
4
6
  interface SetupPromptConfig {
5
7
  siteName?: string;
@@ -7,7 +9,9 @@ interface SetupPromptConfig {
7
9
  apiKey?: string;
8
10
  baseUrl?: string;
9
11
  isSelfHosted?: boolean;
12
+ existingSite?: boolean;
10
13
  }
14
+ declare function generateFreshSetupPrompt(activeTab: "next" | "nuxt" | "react" | "vue", config: SetupPromptConfig): string;
11
15
  declare function generateAIPrompt(activeTab: "next" | "nuxt" | "react" | "vue", config: SetupPromptConfig): string;
12
16
 
13
17
  /**
@@ -30,4 +34,4 @@ declare function defineGlobal(config: GlobalConfig): GlobalConfig;
30
34
  */
31
35
  declare function defineConfig(config: DyrectedConfig): DyrectedConfig;
32
36
 
33
- export { CollectionConfig, DyrectedConfig, GlobalConfig, type SetupPromptConfig, defineCollection, defineConfig, defineGlobal, generateAIPrompt, normalizeConfig };
37
+ export { CollectionConfig, DyrectedConfig, GlobalConfig, type SetupPromptConfig, defineCollection, defineConfig, defineGlobal, generateAIPrompt, generateFreshSetupPrompt, normalizeConfig };