@yamlresume/core 0.12.1 → 0.12.3
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 +38 -0
- package/dist/index.js +130 -129
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1201,6 +1201,8 @@ type LatexAdvanced = {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
/** Whether to show icons for links and profiles. */
|
|
1203
1203
|
showIcons?: boolean;
|
|
1204
|
+
/** Whether to show raw URLs or hide them behind reasonable text. */
|
|
1205
|
+
showUrls?: boolean;
|
|
1204
1206
|
};
|
|
1205
1207
|
/**
|
|
1206
1208
|
* Defines latex page-level settings for document presentation.
|
|
@@ -2153,6 +2155,14 @@ declare abstract class LatexRenderer extends Renderer {
|
|
|
2153
2155
|
* @returns The LaTeX code for URL configuration
|
|
2154
2156
|
*/
|
|
2155
2157
|
protected renderUrlConfig(): string;
|
|
2158
|
+
/**
|
|
2159
|
+
* Render auto-underline configuration for all hyperref links.
|
|
2160
|
+
*
|
|
2161
|
+
* Redefines \\href to automatically underline link text.
|
|
2162
|
+
*
|
|
2163
|
+
* @returns The LaTeX code for auto-underlining links
|
|
2164
|
+
*/
|
|
2165
|
+
protected renderHrefUnderlineConfig(): string;
|
|
2156
2166
|
/**
|
|
2157
2167
|
* Get FontAwesome icon for a network.
|
|
2158
2168
|
*/
|
|
@@ -2161,6 +2171,33 @@ declare abstract class LatexRenderer extends Renderer {
|
|
|
2161
2171
|
* Whether to show icons in the rendered LaTeX.
|
|
2162
2172
|
*/
|
|
2163
2173
|
protected get showIcons(): boolean;
|
|
2174
|
+
/**
|
|
2175
|
+
* Whether to show raw URLs or hide them behind reasonable text.
|
|
2176
|
+
*/
|
|
2177
|
+
protected get showUrls(): boolean;
|
|
2178
|
+
/**
|
|
2179
|
+
* Render a URL in the URL position based on showUrls setting.
|
|
2180
|
+
*
|
|
2181
|
+
* When showUrls is true, returns the URL formatted with \url{}.
|
|
2182
|
+
* When showUrls is false, returns an empty string (the URL is hidden
|
|
2183
|
+
* and should be rendered as a clickable link on the adjacent text via
|
|
2184
|
+
* renderLinkedText instead).
|
|
2185
|
+
*
|
|
2186
|
+
* @param url - The URL to render
|
|
2187
|
+
* @returns The formatted URL LaTeX code, or empty string
|
|
2188
|
+
*/
|
|
2189
|
+
protected renderUrl(url: string): string;
|
|
2190
|
+
/**
|
|
2191
|
+
* Render text that may be linked to a URL.
|
|
2192
|
+
*
|
|
2193
|
+
* When showUrls is false and a URL is provided, the text is wrapped in a
|
|
2194
|
+
* clickable \href link. Otherwise, the plain text is returned.
|
|
2195
|
+
*
|
|
2196
|
+
* @param text - The text to display
|
|
2197
|
+
* @param url - Optional URL to link the text to
|
|
2198
|
+
* @returns The text, optionally wrapped in a hyperlink
|
|
2199
|
+
*/
|
|
2200
|
+
protected renderLinkedText(text: string, url?: string): string;
|
|
2164
2201
|
/**
|
|
2165
2202
|
* Render a string with an icon.
|
|
2166
2203
|
*
|
|
@@ -2912,6 +2949,7 @@ declare const ResumeSchema: z.ZodObject<{
|
|
|
2912
2949
|
numbers: z.ZodOptional<z.ZodNullable<z.ZodType<"Lining" | "OldStyle" | "Auto", unknown, z.core.$ZodTypeInternals<"Lining" | "OldStyle" | "Auto", unknown>>>>;
|
|
2913
2950
|
}, z.core.$strip>>>;
|
|
2914
2951
|
showIcons: z.ZodDefault<z.ZodBoolean>;
|
|
2952
|
+
showUrls: z.ZodDefault<z.ZodBoolean>;
|
|
2915
2953
|
}, z.core.$strip>>>;
|
|
2916
2954
|
typography: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2917
2955
|
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|