sdoc-editor-cli 0.12.0 → 0.12.2
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/sdoc.js +17 -3
- package/package.json +1 -1
package/dist/sdoc.js
CHANGED
|
@@ -910,6 +910,20 @@ var DOCUMENT_SETTING_KEYS = Object.keys(DOCUMENT_SETTING_REGISTRY);
|
|
|
910
910
|
var SETTINGS_DEFAULTS = Object.freeze(Object.fromEntries(
|
|
911
911
|
DOCUMENT_SETTING_KEYS.map((key) => [key, DOCUMENT_SETTING_REGISTRY[key].defaultValue])
|
|
912
912
|
));
|
|
913
|
+
var HOST_SETTING_DEFAULTS = Object.freeze({
|
|
914
|
+
defaultImageAlignment: "center",
|
|
915
|
+
exportImagePath: "relative",
|
|
916
|
+
fontWeightBody: "Regular",
|
|
917
|
+
fontWeightBold: "Bold",
|
|
918
|
+
fontWeightH1: "Bold",
|
|
919
|
+
fontWeightH2: "SemiBold",
|
|
920
|
+
fontWeightH3: "SemiBold",
|
|
921
|
+
companyName: "",
|
|
922
|
+
primaryColor: "#2563EB",
|
|
923
|
+
accentColor: "#6b6b6b",
|
|
924
|
+
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
|
|
925
|
+
customStyles: ""
|
|
926
|
+
});
|
|
913
927
|
var EDITOR_SETTINGS_DEFAULTS = {
|
|
914
928
|
captionStyle: SETTINGS_DEFAULTS.captionStyle,
|
|
915
929
|
imageCaptionPrefix: CAPTION_PRESETS.modern.figurePrefix,
|
|
@@ -930,8 +944,8 @@ var EDITOR_SETTINGS_DEFAULTS = {
|
|
|
930
944
|
headingH4Color: SETTINGS_DEFAULTS.headingH4Color,
|
|
931
945
|
headingH5Color: SETTINGS_DEFAULTS.headingH5Color,
|
|
932
946
|
headingH6Color: SETTINGS_DEFAULTS.headingH6Color,
|
|
933
|
-
defaultImageAlignment:
|
|
934
|
-
exportImagePath:
|
|
947
|
+
defaultImageAlignment: HOST_SETTING_DEFAULTS.defaultImageAlignment,
|
|
948
|
+
exportImagePath: HOST_SETTING_DEFAULTS.exportImagePath,
|
|
935
949
|
pdfScale: SETTINGS_DEFAULTS.pdfScale,
|
|
936
950
|
selfContained: SETTINGS_DEFAULTS.selfContained,
|
|
937
951
|
slideBreakLevel: SETTINGS_DEFAULTS.slideBreakLevel,
|
|
@@ -9479,7 +9493,7 @@ async function createDocumentPlan(documentPath, options = {}) {
|
|
|
9479
9493
|
}
|
|
9480
9494
|
|
|
9481
9495
|
// src/main.ts
|
|
9482
|
-
var VERSION = true ? "0.12.
|
|
9496
|
+
var VERSION = true ? "0.12.2" : packageMetadata.version;
|
|
9483
9497
|
var DEFAULT_DEPENDENCIES = {
|
|
9484
9498
|
replaceDocument: atomicReplace,
|
|
9485
9499
|
createDocument: atomicCreate
|