@fern-api/fern-api-dev 4.109.0 → 5.0.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/cli.cjs +17 -17
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -510619,7 +510619,7 @@ var MetadataConfig = external_exports.object({
|
|
|
510619
510619
|
"twitter:url": external_exports.string().optional(),
|
|
510620
510620
|
"twitter:card": TwitterCardSetting.optional(),
|
|
510621
510621
|
"og:dynamic": external_exports.boolean().optional(),
|
|
510622
|
-
"og:background-image": external_exports.string().optional(),
|
|
510622
|
+
"og:dynamic:background-image": external_exports.string().optional(),
|
|
510623
510623
|
"og:dynamic:text-color": external_exports.string().optional(),
|
|
510624
510624
|
"og:dynamic:background-color": external_exports.string().optional(),
|
|
510625
510625
|
"og:dynamic:logo-color": external_exports.enum(["dark", "light"]).optional(),
|
|
@@ -513961,7 +513961,7 @@ var MetadataConfig2 = schemas_exports6.object({
|
|
|
513961
513961
|
twitterUrl: schemas_exports6.property("twitter:url", schemas_exports6.string().optional()),
|
|
513962
513962
|
twitterCard: schemas_exports6.property("twitter:card", TwitterCardSetting3.optional()),
|
|
513963
513963
|
ogDynamic: schemas_exports6.property("og:dynamic", schemas_exports6.boolean().optional()),
|
|
513964
|
-
|
|
513964
|
+
ogDynamicBackgroundImage: schemas_exports6.property("og:dynamic:background-image", schemas_exports6.string().optional()),
|
|
513965
513965
|
ogDynamicTextColor: schemas_exports6.property("og:dynamic:text-color", schemas_exports6.string().optional()),
|
|
513966
513966
|
ogDynamicBackgroundColor: schemas_exports6.property("og:dynamic:background-color", schemas_exports6.string().optional()),
|
|
513967
513967
|
ogDynamicLogoColor: schemas_exports6.property("og:dynamic:logo-color", OgDynamicLogoColor2.optional()),
|
|
@@ -543279,7 +543279,7 @@ async function convertMetadata(metadata, absoluteFilepathToDocsConfig, context3)
|
|
|
543279
543279
|
"twitter:url": metadata.twitterUrl,
|
|
543280
543280
|
"twitter:card": metadata.twitterCard,
|
|
543281
543281
|
"og:dynamic": metadata.ogDynamic,
|
|
543282
|
-
"og:background-image": await convertFilepathOrUrl(metadata.
|
|
543282
|
+
"og:dynamic:background-image": await convertFilepathOrUrl(metadata.ogDynamicBackgroundImage, absoluteFilepathToDocsConfig),
|
|
543283
543283
|
"og:dynamic:text-color": metadata.ogDynamicTextColor,
|
|
543284
543284
|
"og:dynamic:background-color": metadata.ogDynamicBackgroundColor,
|
|
543285
543285
|
"og:dynamic:logo-color": metadata.ogDynamicLogoColor,
|
|
@@ -543296,7 +543296,7 @@ async function convertMetadata(metadata, absoluteFilepathToDocsConfig, context3)
|
|
|
543296
543296
|
function warnOnMetadataConflicts(metadata, context3) {
|
|
543297
543297
|
const dynamicEnabled = metadata.ogDynamic === true;
|
|
543298
543298
|
const dynamicSettings = [
|
|
543299
|
-
["og:background-image", metadata.
|
|
543299
|
+
["og:dynamic:background-image", metadata.ogDynamicBackgroundImage],
|
|
543300
543300
|
["og:dynamic:text-color", metadata.ogDynamicTextColor],
|
|
543301
543301
|
["og:dynamic:background-color", metadata.ogDynamicBackgroundColor],
|
|
543302
543302
|
["og:dynamic:logo-color", metadata.ogDynamicLogoColor],
|
|
@@ -621386,7 +621386,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621386
621386
|
properties: {
|
|
621387
621387
|
...event,
|
|
621388
621388
|
...event.properties,
|
|
621389
|
-
version: "
|
|
621389
|
+
version: "5.0.0",
|
|
621390
621390
|
usingAccessToken: true
|
|
621391
621391
|
}
|
|
621392
621392
|
});
|
|
@@ -621440,7 +621440,7 @@ var UserPosthogManager = class {
|
|
|
621440
621440
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621441
621441
|
event: "CLI",
|
|
621442
621442
|
properties: {
|
|
621443
|
-
version: "
|
|
621443
|
+
version: "5.0.0",
|
|
621444
621444
|
...event,
|
|
621445
621445
|
...event.properties,
|
|
621446
621446
|
usingAccessToken: false,
|
|
@@ -798819,8 +798819,8 @@ async function collectFilesFromDocsConfig({ parsedDocsConfig }) {
|
|
|
798819
798819
|
if (parsedDocsConfig.metadata?.["twitter:image"] != null && parsedDocsConfig.metadata["twitter:image"].type === "filepath") {
|
|
798820
798820
|
filepaths.add(parsedDocsConfig.metadata["twitter:image"].value);
|
|
798821
798821
|
}
|
|
798822
|
-
if (parsedDocsConfig.metadata?.["og:background-image"] != null && parsedDocsConfig.metadata["og:background-image"].type === "filepath") {
|
|
798823
|
-
filepaths.add(parsedDocsConfig.metadata["og:background-image"].value);
|
|
798822
|
+
if (parsedDocsConfig.metadata?.["og:dynamic:background-image"] != null && parsedDocsConfig.metadata["og:dynamic:background-image"].type === "filepath") {
|
|
798823
|
+
filepaths.add(parsedDocsConfig.metadata["og:dynamic:background-image"].value);
|
|
798824
798824
|
}
|
|
798825
798825
|
if (parsedDocsConfig.typography?.bodyFont != null) {
|
|
798826
798826
|
parsedDocsConfig.typography.bodyFont.variants.forEach((variant) => {
|
|
@@ -800802,13 +800802,13 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
800802
800802
|
if (this.parsedDocsConfig.metadata == null) {
|
|
800803
800803
|
return;
|
|
800804
800804
|
}
|
|
800805
|
-
const { "og:image": ogImage, "og:logo": ogLogo, "twitter:image": twitterImage, "og:background-image":
|
|
800805
|
+
const { "og:image": ogImage, "og:logo": ogLogo, "twitter:image": twitterImage, "og:dynamic:background-image": ogDynamicBackgroundImage, ...rest } = this.parsedDocsConfig.metadata;
|
|
800806
800806
|
return {
|
|
800807
800807
|
...rest,
|
|
800808
800808
|
"og:image": this.convertFileIdOrUrl(ogImage),
|
|
800809
800809
|
"og:logo": this.convertFileIdOrUrl(ogLogo),
|
|
800810
800810
|
"twitter:image": this.convertFileIdOrUrl(twitterImage),
|
|
800811
|
-
"og:background-image": this.convertFileIdOrUrl(
|
|
800811
|
+
"og:dynamic:background-image": this.convertFileIdOrUrl(ogDynamicBackgroundImage)
|
|
800812
800812
|
};
|
|
800813
800813
|
}
|
|
800814
800814
|
convertFileIdOrUrl(filepathOrUrl) {
|
|
@@ -800991,7 +800991,7 @@ async function resolveThemeFileUrls(themeConfig, tmpDir) {
|
|
|
800991
800991
|
cfg.footer = await maybeDownload(cfg.footer);
|
|
800992
800992
|
if (cfg.metadata != null && typeof cfg.metadata === "object") {
|
|
800993
800993
|
const meta5 = cfg.metadata;
|
|
800994
|
-
for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
|
|
800994
|
+
for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
|
|
800995
800995
|
meta5[imgKey] = await maybeDownload(meta5[imgKey]);
|
|
800996
800996
|
}
|
|
800997
800997
|
}
|
|
@@ -833175,7 +833175,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
833175
833175
|
var LOGS_FOLDER_NAME = "logs";
|
|
833176
833176
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
833177
833177
|
function getCliSource() {
|
|
833178
|
-
const version7 = "
|
|
833178
|
+
const version7 = "5.0.0";
|
|
833179
833179
|
return `cli@${version7}`;
|
|
833180
833180
|
}
|
|
833181
833181
|
var DebugLogger = class {
|
|
@@ -841615,7 +841615,7 @@ var definitions6 = {
|
|
|
841615
841615
|
}
|
|
841616
841616
|
]
|
|
841617
841617
|
},
|
|
841618
|
-
"og:background-image": {
|
|
841618
|
+
"og:dynamic:background-image": {
|
|
841619
841619
|
oneOf: [
|
|
841620
841620
|
{
|
|
841621
841621
|
type: "string"
|
|
@@ -845593,7 +845593,7 @@ var LegacyDocsPublisher = class {
|
|
|
845593
845593
|
previewId,
|
|
845594
845594
|
disableTemplates: void 0,
|
|
845595
845595
|
skipUpload,
|
|
845596
|
-
cliVersion: "
|
|
845596
|
+
cliVersion: "5.0.0",
|
|
845597
845597
|
loginCommand: "fern auth login"
|
|
845598
845598
|
});
|
|
845599
845599
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -919841,7 +919841,7 @@ var CliContext = class _CliContext {
|
|
|
919841
919841
|
if (false) {
|
|
919842
919842
|
this.logger.error("CLI_VERSION is not defined");
|
|
919843
919843
|
}
|
|
919844
|
-
return "
|
|
919844
|
+
return "5.0.0";
|
|
919845
919845
|
}
|
|
919846
919846
|
getCliName() {
|
|
919847
919847
|
if (false) {
|
|
@@ -928829,7 +928829,7 @@ ${errors4.map((e8) => ` - ${e8}`).join("\n")}`,
|
|
|
928829
928829
|
collect2(raw.footer);
|
|
928830
928830
|
if (raw.metadata != null && typeof raw.metadata === "object") {
|
|
928831
928831
|
const meta5 = raw.metadata;
|
|
928832
|
-
for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
|
|
928832
|
+
for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
|
|
928833
928833
|
if (typeof meta5[imgKey] === "string") {
|
|
928834
928834
|
collect2(meta5[imgKey]);
|
|
928835
928835
|
}
|
|
@@ -928917,7 +928917,7 @@ ${errors4.map((e8) => ` - ${e8}`).join("\n")}`,
|
|
|
928917
928917
|
cfg.footer = await field5(cfg.footer);
|
|
928918
928918
|
if (cfg.metadata != null && typeof cfg.metadata === "object") {
|
|
928919
928919
|
const meta5 = { ...cfg.metadata };
|
|
928920
|
-
for (const imgKey of ["og:image", "twitter:image", "og:background-image", "og:logo"]) {
|
|
928920
|
+
for (const imgKey of ["og:image", "twitter:image", "og:dynamic:background-image", "og:logo"]) {
|
|
928921
928921
|
if (typeof meta5[imgKey] === "string") {
|
|
928922
928922
|
meta5[imgKey] = await field5(meta5[imgKey]);
|
|
928923
928923
|
}
|
package/package.json
CHANGED