@fern-api/fern-api-dev 3.59.1 → 3.60.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.
- package/cli.cjs +69 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1467992,7 +1467992,9 @@ var DocsConfiguration = schemas_exports8.object({
|
|
|
1467992
1467992
|
theme: ThemeConfig.optional(),
|
|
1467993
1467993
|
integrations: IntegrationsConfig.optional(),
|
|
1467994
1467994
|
css: CssConfig.optional(),
|
|
1467995
|
-
js: JsConfig.optional()
|
|
1467995
|
+
js: JsConfig.optional(),
|
|
1467996
|
+
header: schemas_exports8.string().optional(),
|
|
1467997
|
+
footer: schemas_exports8.string().optional()
|
|
1467996
1467998
|
});
|
|
1467997
1467999
|
|
|
1467998
1468000
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/FolderConfiguration.js
|
|
@@ -1495503,8 +1495505,9 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
1495503
1495505
|
js: js4,
|
|
1495504
1495506
|
aiChatConfig: aiSearch ?? aiChat,
|
|
1495505
1495507
|
pageActions: convertPageActions(pageActions, absoluteFilepathToDocsConfig),
|
|
1495506
|
-
|
|
1495507
|
-
|
|
1495508
|
+
/* custom components */
|
|
1495509
|
+
header: resolveFilepath(rawDocsConfiguration.header, absoluteFilepathToDocsConfig),
|
|
1495510
|
+
footer: resolveFilepath(rawDocsConfiguration.footer, absoluteFilepathToDocsConfig),
|
|
1495508
1495511
|
experimental
|
|
1495509
1495512
|
};
|
|
1495510
1495513
|
}
|
|
@@ -1610088,6 +1610091,26 @@ var properties4 = {
|
|
|
1610088
1610091
|
type: "null"
|
|
1610089
1610092
|
}
|
|
1610090
1610093
|
]
|
|
1610094
|
+
},
|
|
1610095
|
+
header: {
|
|
1610096
|
+
oneOf: [
|
|
1610097
|
+
{
|
|
1610098
|
+
type: "string"
|
|
1610099
|
+
},
|
|
1610100
|
+
{
|
|
1610101
|
+
type: "null"
|
|
1610102
|
+
}
|
|
1610103
|
+
]
|
|
1610104
|
+
},
|
|
1610105
|
+
footer: {
|
|
1610106
|
+
oneOf: [
|
|
1610107
|
+
{
|
|
1610108
|
+
type: "string"
|
|
1610109
|
+
},
|
|
1610110
|
+
{
|
|
1610111
|
+
type: "null"
|
|
1610112
|
+
}
|
|
1610113
|
+
]
|
|
1610091
1610114
|
}
|
|
1610092
1610115
|
};
|
|
1610093
1610116
|
var required3 = [
|
|
@@ -1659260,6 +1659283,18 @@ var DocsDefinitionResolver = class {
|
|
|
1659260
1659283
|
jsFiles[refFile.relativeFilePath] = refFile.content;
|
|
1659261
1659284
|
}
|
|
1659262
1659285
|
}
|
|
1659286
|
+
if (this._parsedDocsConfig.header != null) {
|
|
1659287
|
+
const relativeFilePath = this.toRelativeFilepath(this._parsedDocsConfig.header);
|
|
1659288
|
+
const contents = (await (0, import_promises67.readFile)(this._parsedDocsConfig.header)).toString();
|
|
1659289
|
+
jsFiles[relativeFilePath] = contents;
|
|
1659290
|
+
this.taskContext.logger.debug(`Added custom header component: ${relativeFilePath}`);
|
|
1659291
|
+
}
|
|
1659292
|
+
if (this._parsedDocsConfig.footer != null) {
|
|
1659293
|
+
const relativeFilePath = this.toRelativeFilepath(this._parsedDocsConfig.footer);
|
|
1659294
|
+
const contents = (await (0, import_promises67.readFile)(this._parsedDocsConfig.footer)).toString();
|
|
1659295
|
+
jsFiles[relativeFilePath] = contents;
|
|
1659296
|
+
this.taskContext.logger.debug(`Added custom footer component: ${relativeFilePath}`);
|
|
1659297
|
+
}
|
|
1659263
1659298
|
const totalResolveTime = performance.now() - resolveStartTime;
|
|
1659264
1659299
|
const endMemory = process.memoryUsage();
|
|
1659265
1659300
|
this.taskContext.logger.debug(`Total resolve time: ${totalResolveTime.toFixed(0)}ms, Memory delta: RSS=${((endMemory.rss - startMemory.rss) / 1024 / 1024).toFixed(2)}MB`);
|
|
@@ -1659479,8 +1659514,9 @@ var DocsDefinitionResolver = class {
|
|
|
1659479
1659514
|
colorsV2: void 0,
|
|
1659480
1659515
|
typography: void 0,
|
|
1659481
1659516
|
backgroundImage: void 0,
|
|
1659482
|
-
|
|
1659483
|
-
|
|
1659517
|
+
// custom components - the compiled JS will be stored in jsFiles and referenced by relative path
|
|
1659518
|
+
header: this.parsedDocsConfig.header ? this.toRelativeFilepath(this.parsedDocsConfig.header) : void 0,
|
|
1659519
|
+
footer: this.parsedDocsConfig.footer ? this.toRelativeFilepath(this.parsedDocsConfig.footer) : void 0
|
|
1659484
1659520
|
};
|
|
1659485
1659521
|
return config3;
|
|
1659486
1659522
|
}
|
|
@@ -1678852,7 +1678888,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1678852
1678888
|
properties: {
|
|
1678853
1678889
|
...event,
|
|
1678854
1678890
|
...event.properties,
|
|
1678855
|
-
version: "3.
|
|
1678891
|
+
version: "3.60.1",
|
|
1678856
1678892
|
usingAccessToken: true
|
|
1678857
1678893
|
}
|
|
1678858
1678894
|
});
|
|
@@ -1678902,7 +1678938,7 @@ var UserPosthogManager = class {
|
|
|
1678902
1678938
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1678903
1678939
|
event: "CLI",
|
|
1678904
1678940
|
properties: {
|
|
1678905
|
-
version: "3.
|
|
1678941
|
+
version: "3.60.1",
|
|
1678906
1678942
|
...event,
|
|
1678907
1678943
|
...event.properties,
|
|
1678908
1678944
|
usingAccessToken: false,
|
|
@@ -1710824,7 +1710860,7 @@ var CliContext = class {
|
|
|
1710824
1710860
|
if (false) {
|
|
1710825
1710861
|
this.logger.error("CLI_VERSION is not defined");
|
|
1710826
1710862
|
}
|
|
1710827
|
-
return "3.
|
|
1710863
|
+
return "3.60.1";
|
|
1710828
1710864
|
}
|
|
1710829
1710865
|
getCliName() {
|
|
1710830
1710866
|
if (false) {
|
|
@@ -1713938,7 +1713974,7 @@ var import_path56 = __toESM(require("path"), 1);
|
|
|
1713938
1713974
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1713939
1713975
|
var LOGS_FOLDER_NAME = "logs";
|
|
1713940
1713976
|
function getCliSource() {
|
|
1713941
|
-
const version7 = "3.
|
|
1713977
|
+
const version7 = "3.60.1";
|
|
1713942
1713978
|
return `cli@${version7}`;
|
|
1713943
1713979
|
}
|
|
1713944
1713980
|
var DebugLogger = class {
|
|
@@ -1720808,7 +1720844,31 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
|
|
|
1720808
1720844
|
nodePath: ["favicon"]
|
|
1720809
1720845
|
});
|
|
1720810
1720846
|
},
|
|
1720847
|
+
footer: async (footer2) => {
|
|
1720848
|
+
if (footer2 == null) {
|
|
1720849
|
+
return;
|
|
1720850
|
+
}
|
|
1720851
|
+
await visitFilepath({
|
|
1720852
|
+
absoluteFilepathToConfiguration,
|
|
1720853
|
+
rawUnresolvedFilepath: footer2,
|
|
1720854
|
+
visitor,
|
|
1720855
|
+
nodePath: ["footer"],
|
|
1720856
|
+
willBeUploaded: false
|
|
1720857
|
+
});
|
|
1720858
|
+
},
|
|
1720811
1720859
|
footerLinks: noop2,
|
|
1720860
|
+
header: async (header) => {
|
|
1720861
|
+
if (header == null) {
|
|
1720862
|
+
return;
|
|
1720863
|
+
}
|
|
1720864
|
+
await visitFilepath({
|
|
1720865
|
+
absoluteFilepathToConfiguration,
|
|
1720866
|
+
rawUnresolvedFilepath: header,
|
|
1720867
|
+
visitor,
|
|
1720868
|
+
nodePath: ["header"],
|
|
1720869
|
+
willBeUploaded: false
|
|
1720870
|
+
});
|
|
1720871
|
+
},
|
|
1720812
1720872
|
integrations: noop2,
|
|
1720813
1720873
|
js: async (js4) => {
|
|
1720814
1720874
|
if (js4 == null) {
|
package/package.json
CHANGED