@mdfriday/foundry 26.3.21 → 26.4.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.
@@ -9,6 +9,7 @@ export interface IdentityAppServiceOptions {
9
9
  export declare class IdentityAppService {
10
10
  private userFactory;
11
11
  private currentUser;
12
+ private cachedServerConfig;
12
13
  constructor(options: IdentityAppServiceOptions);
13
14
  initialize(): Promise<void>;
14
15
  login(email: string, password: string): Promise<User>;
@@ -32,17 +32,30 @@ export interface ObsidianServeResult {
32
32
  error?: string;
33
33
  }
34
34
  export interface ObsidianServeProgress {
35
- phase: 'initializing' | 'building' | 'watching' | 'publishing' | 'ready';
35
+ phase: 'initializing' | 'building' | 'build-success' | 'publishing' | 'publish-success' | 'watching' | 'error';
36
36
  percentage: number;
37
+ overallPercentage: number;
37
38
  message: string;
38
39
  currentFile?: string;
40
+ data?: {
41
+ buildTime?: number;
42
+ filesProcessed?: number;
43
+ publishUrl?: string;
44
+ filesUploaded?: number;
45
+ bytesTransferred?: number;
46
+ publishTime?: number;
47
+ method?: 'ftp' | 'netlify' | 'mdfriday';
48
+ };
39
49
  }
40
50
  export declare class ObsidianServeService {
41
51
  private workspaceAppService;
42
52
  private publishAppService;
43
53
  private coordinator?;
44
54
  private publishTimer?;
55
+ private hasAutoPublish;
45
56
  constructor(workspaceAppService: WorkspaceAppService, publishAppService?: PublishAppService);
57
+ private calculateOverallProgress;
58
+ private createProgressCallback;
46
59
  startServer(options: ObsidianServeOptions, onProgress?: (progress: ObsidianServeProgress) => void): Promise<ObsidianServeResult>;
47
60
  stopServer(): Promise<boolean>;
48
61
  isRunning(): boolean;
@@ -6,7 +6,9 @@ export declare class ContentFileWatcher implements FileWatcher {
6
6
  private batchTimer;
7
7
  private readonly batchDelay;
8
8
  private callbacks;
9
+ private isSingleFileMode;
9
10
  constructor(config: WatcherConfig);
11
+ private detectSingleFileMode;
10
12
  startWatching(): Promise<void>;
11
13
  onFileChange(callback: (events: FileChangeEvent[]) => Promise<void>): void;
12
14
  private queueEvent;
@@ -10,6 +10,7 @@ export interface WatcherConfig {
10
10
  projContentDirs: string[];
11
11
  batchDelay?: number;
12
12
  ignorePatterns?: string[];
13
+ isSingleFileMode?: boolean;
13
14
  }
14
15
  export interface FileWatcher {
15
16
  startWatching(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.3.21",
3
+ "version": "26.4.1",
4
4
  "description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",