@vosjs/studio-core 0.3.1 → 0.4.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/dist/index.d.ts +5 -3
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2021,6 +2021,9 @@ interface Digest {
|
|
|
2021
2021
|
full: number;
|
|
2022
2022
|
crop: number;
|
|
2023
2023
|
sheet: string | null;
|
|
2024
|
+
/** Sum of (w×h)/750 over the full + crop images: a reading-budget hint, not a bill. */
|
|
2025
|
+
tokensEstimate: number;
|
|
2026
|
+
/** @deprecated The same number under its old name; gone next minor. */
|
|
2024
2027
|
tokensEstimateClaude: number;
|
|
2025
2028
|
};
|
|
2026
2029
|
}
|
|
@@ -2613,9 +2616,8 @@ declare const OVERLAY_SIZE_MIN = 12;
|
|
|
2613
2616
|
declare const OVERLAY_SIZE_MAX = 200;
|
|
2614
2617
|
/**
|
|
2615
2618
|
* woff2 faces SETUP preloads when the doc has overlays (latin subset only —
|
|
2616
|
-
* overlay text is product UI copy).
|
|
2617
|
-
*
|
|
2618
|
-
* are literals — keep them within the catalog `@vosjs/shared` hosts.
|
|
2619
|
+
* overlay text is product UI copy). The three base preset faces, resolved
|
|
2620
|
+
* through the hosted catalog so this module carries no URL of its own.
|
|
2619
2621
|
*/
|
|
2620
2622
|
declare const OVERLAY_FONT_FACES: {
|
|
2621
2623
|
family: string;
|
package/dist/index.js
CHANGED
|
@@ -1321,20 +1321,12 @@ var TEXT_PRESETS = {
|
|
|
1321
1321
|
var OVERLAY_SIZE_MIN = 12;
|
|
1322
1322
|
var OVERLAY_SIZE_MAX = 200;
|
|
1323
1323
|
var OVERLAY_FONT_FACES = [
|
|
1324
|
-
{
|
|
1325
|
-
|
|
1326
|
-
weight: 400,
|
|
1327
|
-
url: "https://assets.vos.so/fonts/lexend/400.woff2"
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
family: "Lexend",
|
|
1331
|
-
weight: 600,
|
|
1332
|
-
url: "https://assets.vos.so/fonts/lexend/600.woff2"
|
|
1333
|
-
},
|
|
1324
|
+
{ family: "Lexend", weight: 400, url: fontFaceUrl("lexend", 400) },
|
|
1325
|
+
{ family: "Lexend", weight: 600, url: fontFaceUrl("lexend", 600) },
|
|
1334
1326
|
{
|
|
1335
1327
|
family: "JetBrains Mono",
|
|
1336
1328
|
weight: 400,
|
|
1337
|
-
url: "
|
|
1329
|
+
url: fontFaceUrl("jetbrains-mono", 400)
|
|
1338
1330
|
}
|
|
1339
1331
|
];
|
|
1340
1332
|
function resolveOverlayStyle(clip) {
|
|
@@ -5075,6 +5067,7 @@ function buildDigest(input) {
|
|
|
5075
5067
|
full: withFiles.filter((m) => m.full).length,
|
|
5076
5068
|
crop: withFiles.filter((m) => m.crop).length,
|
|
5077
5069
|
sheet: input.sheet,
|
|
5070
|
+
tokensEstimate: Math.round(tokens),
|
|
5078
5071
|
tokensEstimateClaude: Math.round(tokens)
|
|
5079
5072
|
}
|
|
5080
5073
|
};
|