veryfront 0.1.179 → 0.1.180

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.179",
3
+ "version": "0.1.180",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -76,6 +76,7 @@ export declare class RenderPipeline {
76
76
  /** Resolve page data for SPA client-side navigation without rendering HTML. */
77
77
  resolvePageData(slug: string, options?: RenderOptions): Promise<PageDataResponse>;
78
78
  private extractMdxMetadata;
79
+ private resolveAppPath;
79
80
  private resolvePageDataCss;
80
81
  private generatePageCssFromHtml;
81
82
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/src/rendering/orchestrator/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA6ChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CA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OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,kBAAkB,CAAqB;gBAEnC,MAAM,EAAE,oBAAoB;IAaxC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAKxB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,sBAAsB;YAIhB,0BAA0B;IAaxC;;;;;;;;;OASG;YACW,qBAAqB;IAyDnC;;;OAGG;YACW,mBAAmB;IAiGjC,OAAO,CAAC,uBAAuB;IAkCzB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;IA+P9E,+EAA+E;IACzE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC;YA+FzE,kBAAkB;YA2ClB,cAAc;YAWd,kBAAkB;YAmElB,uBAAuB;IAmBrC;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;CAetB"}
@@ -425,14 +425,7 @@ export class RenderPipeline {
425
425
  const wrappedAdapter = fs.getUnderlyingAdapter();
426
426
  projectUpdatedAt = wrappedAdapter.getProjectData?.()?.updated_at;
427
427
  }
428
- let appPath;
429
- for (const ext of LAYOUT_EXTENSIONS) {
430
- const candidatePath = join(this.config.projectDir, `components/app.${ext}`);
431
- if (await this.config.adapter.fs.exists(candidatePath)) {
432
- appPath = extractRelativePathShared(candidatePath, this.config.projectDir);
433
- break;
434
- }
435
- }
428
+ const appPath = await this.resolveAppPath();
436
429
  const { css, cssError } = await this.resolvePageDataCss(slug, options, projectUpdatedAt);
437
430
  resolvePageDataLog.debug("Resolved page data", {
438
431
  slug,
@@ -489,6 +482,15 @@ export class RenderPipeline {
489
482
  return { frontmatter: {}, headings: [] };
490
483
  }
491
484
  }
485
+ async resolveAppPath() {
486
+ for (const ext of LAYOUT_EXTENSIONS) {
487
+ const candidatePath = join(this.config.projectDir, `components/app.${ext}`);
488
+ if (await this.config.adapter.fs.exists(candidatePath)) {
489
+ return extractRelativePathShared(candidatePath, this.config.projectDir);
490
+ }
491
+ }
492
+ return undefined;
493
+ }
492
494
  async resolvePageDataCss(slug, options, projectUpdatedAt) {
493
495
  const cssCacheKey = getPageCssCacheKey(options?.projectId, options?.environment, slug, projectUpdatedAt);
494
496
  const cachedCss = getCachedPageCss(cssCacheKey);
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.179";
1
+ export declare const VERSION = "0.1.180";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.179";
3
+ export const VERSION = "0.1.180";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.179",
3
+ "version": "0.1.180",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.179",
3
+ "version": "0.1.180",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -696,14 +696,7 @@ export class RenderPipeline {
696
696
  projectUpdatedAt = wrappedAdapter.getProjectData?.()?.updated_at;
697
697
  }
698
698
 
699
- let appPath: string | undefined;
700
- for (const ext of LAYOUT_EXTENSIONS) {
701
- const candidatePath = join(this.config.projectDir, `components/app.${ext}`);
702
- if (await this.config.adapter.fs.exists(candidatePath)) {
703
- appPath = extractRelativePathShared(candidatePath, this.config.projectDir);
704
- break;
705
- }
706
- }
699
+ const appPath = await this.resolveAppPath();
707
700
 
708
701
  const { css, cssError } = await this.resolvePageDataCss(slug, options, projectUpdatedAt);
709
702
 
@@ -779,6 +772,17 @@ export class RenderPipeline {
779
772
  }
780
773
  }
781
774
 
775
+ private async resolveAppPath(): Promise<string | undefined> {
776
+ for (const ext of LAYOUT_EXTENSIONS) {
777
+ const candidatePath = join(this.config.projectDir, `components/app.${ext}`);
778
+ if (await this.config.adapter.fs.exists(candidatePath)) {
779
+ return extractRelativePathShared(candidatePath, this.config.projectDir);
780
+ }
781
+ }
782
+
783
+ return undefined;
784
+ }
785
+
782
786
  private async resolvePageDataCss(
783
787
  slug: string,
784
788
  options: RenderOptions | undefined,
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.179";
3
+ export const VERSION = "0.1.180";