@charisol/plexo-sdk 1.0.25 → 1.0.27
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/compiler-Bn4rYU81.js +1091 -0
- package/dist/compiler.js +2 -461
- package/dist/index.js +12185 -12770
- package/dist/utilities/googleFonts.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively walks a template's rows/columns/elements (including nested rows) and
|
|
3
|
+
* collects every distinct `style.fontFamily` value in use, plus any extra values
|
|
4
|
+
* passed in (e.g. the document/body-level font family).
|
|
5
|
+
*/
|
|
6
|
+
export declare function collectFontFamilyValues(rows: any[] | undefined, extra?: Array<string | undefined>): Set<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Builds a single batched Google Fonts stylesheet URL for whichever of the given
|
|
9
|
+
* `font-family` CSS values correspond to an entry in GOOGLE_FONTS_LIST (system
|
|
10
|
+
* fallbacks like `sans-serif` are skipped since they need no download).
|
|
11
|
+
*
|
|
12
|
+
* Uses the legacy `css?family=` endpoint rather than `css2` on purpose: it silently
|
|
13
|
+
* drops weight requests a family doesn't actually offer instead of 400ing the whole
|
|
14
|
+
* batched request, which matters here since GOOGLE_FONTS_LIST spans ~80 families
|
|
15
|
+
* (some display/handwriting fonts only ship a single 400 weight) requested together.
|
|
16
|
+
*/
|
|
17
|
+
export declare function buildGoogleFontsHref(fontFamilyValues: Iterable<string>): string | null;
|
package/package.json
CHANGED