@tin.so/core 0.1.0 → 0.3.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/EDITOR_THEMES_NOTICES.md +574 -0
- package/LICENSE +21 -0
- package/README.md +100 -10
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/dracula-alucard-Bc5-HKNy.mjs +1435 -0
- package/dist/{index-CtUX1lFe.d.mts → index-eoLihZJ2.d.mts} +287 -124
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/node.d.mts +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{src-BdXa6abO.mjs → src-Bn8Hly8W.mjs} +2981 -6870
- package/dist/tokyo-night-light-CxTYjXWL.mjs +1270 -0
- package/package.json +21 -17
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AUTO_ICON, CODE_FONTS, CODE_FONT_IDS, CodeFont, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, FILE_ICON, FONT_SIZE, Font, FontFace, FontLoader, FontMetrics, FrameColors, type HighlightedLine, ICON_IDS, IMPLICIT_SPEC_VERSION, type Icon, type ImageMetadata, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, type LayoutOptions, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, type MarkStyle, Mode, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, type PaneBox, type PaneSpec, type PngOptions, type Rect, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, type Scene, type Spec, SpecError, type SpecInput, SpecSchema, type SvgOptions, Syntax, TAB_HEADER, THEMES, THEME_IDS, type TextMetrics, Theme, type Token, UI_FONT, UiFont, WINDOW_RADIUS, type WindowBox, type WindowSpec, addPngMetadata, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isKnownLanguage, layout, loadSceneFonts,
|
|
1
|
+
import { $ as WindowBox, $t as resolveMode, A as addPngMetadata, At as AMBIENT_ENABLED, B as isSpecSchemaUrl, Bt as isKnownLanguage, C as schemaVersion, Ct as getFace, D as PNG_KEYWORDS, Dt as BackgroundPreset, E as METADATA_BY_DEFAULT, Et as BACKGROUNDS, F as createLink, Ft as LANGUAGE_IDS, G as LayoutOptions, Gt as Mode, H as isCssBackground, Ht as DEFAULT_THEME, I as decodeSpec, It as PLAIN_TEXT, J as Rect, Jt as THEME_IDS, K as POPOVER, Kt as Syntax, L as encodeSpec, Lt as Token, M as readImageSpec, Mt as ambientPreviewCss, N as DEFAULT_APP_URL, Nt as isAmbientBackground, O as SOFTWARE, Ot as themeBackground, P as DecodeOptions, Pt as HighlightedLine, Q as WINDOW_RADIUS, Qt as getTheme, R as readLink, Rt as highlight, S as IMPLICIT_SPEC_VERSION, St as getCodeFont, T as ImageMetadata, Tt as measureUiText, U as FONT_SIZE, Ut as EditorWindow, V as specJsonSchema, Vt as resolveLanguage, W as LINE_HEIGHT, Wt as FrameColors, X as TAB_HEADER, Xt as getFrameColors, Y as Scene, Yt as Theme, Z as TextMetrics, Zt as getSyntax, _ as initPng, _t as FontLoader, a as MARK_STYLES, at as FILE_ICON, b as svgToPng, bt as UiFont, c as SPEC_LIMITS, ct as NO_ICON, d as SpecInput, dt as CODE_FONTS, et as cellCount, f as SpecSchema, ft as CODE_FONT_IDS, g as PngOptions, gt as FontFace, h as parseSpec, ht as Font, i as LATEST_SPEC_VERSION, it as AUTO_ICON, j as createImageMetadata, jt as AmbientBackground, k as SVG_NAMESPACE, kt as AMBIENT_BACKGROUNDS, l as Spec, lt as getIcon, m as expandLineRanges, mt as DEFAULT_CODE_FONT, n as toSvg, nt as normalizeCode, o as MarkStyle, ot as ICON_IDS, p as WindowSpec, pt as CodeFont, q as PaneBox, qt as THEMES, r as ANNOTATION_TYPES, rt as MAC_HEADER, s as PaneSpec, st as Icon, t as SvgOptions, tt as layout, u as SpecError, ut as resolveIcon, v as loadSceneFonts, vt as FontMetrics, w as stampSpecVersion, wt as measureCodeText, x as EXTENSION_PREFIX, xt as cssFontFamily, y as sceneFontFiles, yt as UI_FONT, z as SPEC_SCHEMA_URL, zt as inferLanguage } from "./index-eoLihZJ2.mjs";
|
|
2
|
+
export { AMBIENT_BACKGROUNDS, AMBIENT_ENABLED, ANNOTATION_TYPES, AUTO_ICON, type AmbientBackground, BACKGROUNDS, type BackgroundPreset, CODE_FONTS, CODE_FONT_IDS, CodeFont, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, type DecodeOptions, EXTENSION_PREFIX, EditorWindow, FILE_ICON, FONT_SIZE, Font, FontFace, FontLoader, FontMetrics, FrameColors, type HighlightedLine, ICON_IDS, IMPLICIT_SPEC_VERSION, type Icon, type ImageMetadata, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, type LayoutOptions, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, type MarkStyle, Mode, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, type PaneBox, type PaneSpec, type PngOptions, type Rect, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, type Scene, type Spec, SpecError, type SpecInput, SpecSchema, type SvgOptions, Syntax, TAB_HEADER, THEMES, THEME_IDS, type TextMetrics, Theme, type Token, UI_FONT, UiFont, WINDOW_RADIUS, type WindowBox, type WindowSpec, addPngMetadata, ambientPreviewCss, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isAmbientBackground, isCssBackground, isKnownLanguage, isSpecSchemaUrl, layout, loadSceneFonts, measureCodeText, measureUiText, normalizeCode, parseSpec, readImageSpec, readLink, resolveIcon, resolveLanguage, resolveMode, sceneFontFiles, schemaVersion, specJsonSchema, stampSpecVersion, svgToPng, themeBackground, toSvg };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { rt as AMBIENT_BACKGROUNDS, it as AMBIENT_ENABLED, T as ANNOTATION_TYPES, J as AUTO_ICON, tt as BACKGROUNDS, mt as CODE_FONTS, ht as CODE_FONT_IDS, z as DEFAULT_APP_URL, gt as DEFAULT_CODE_FONT, st as DEFAULT_THEME, W as EXTENSION_PREFIX, Y as FILE_ICON, p as FONT_SIZE, X as ICON_IDS, G as IMPLICIT_SPEC_VERSION, N as LANGUAGE_IDS, E as LATEST_SPEC_VERSION, m as LINE_HEIGHT, x as MAC_HEADER, D as MARK_STYLES, o as METADATA_BY_DEFAULT, Z as NO_ICON, P as PLAIN_TEXT, s as PNG_KEYWORDS, h as POPOVER, c as SOFTWARE, O as SPEC_LIMITS, S as SPEC_SCHEMA_URL, l as SVG_NAMESPACE, k as SpecError, A as SpecSchema, g as TAB_HEADER, ct as THEMES, lt as THEME_IDS, _t as UI_FONT, _ as WINDOW_RADIUS, u as addPngMetadata, at as ambientPreviewCss, v as cellCount, d as createImageMetadata, B as createLink, vt as cssFontFamily, V as decodeSpec, H as encodeSpec, j as expandLineRanges, yt as getCodeFont, bt as getFace, ut as getFrameColors, Q as getIcon, dt as getSyntax, ft as getTheme, F as highlight, I as inferLanguage, n as initPng, ot as isAmbientBackground, et as isCssBackground, L as isKnownLanguage, C as isSpecSchemaUrl, y as layout, r as loadSceneFonts, xt as measureCodeText, St as measureUiText, b as normalizeCode, M as parseSpec, f as readImageSpec, U as readLink, $ as resolveIcon, R as resolveLanguage, pt as resolveMode, i as sceneFontFiles, K as schemaVersion, w as specJsonSchema, q as stampSpecVersion, a as svgToPng, nt as themeBackground, t as toSvg } from "./src-Bn8Hly8W.mjs";
|
package/dist/node.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as WindowBox, $t as resolveMode, A as addPngMetadata, At as AMBIENT_ENABLED, B as isSpecSchemaUrl, Bt as isKnownLanguage, C as schemaVersion, Ct as getFace, D as PNG_KEYWORDS, Dt as BackgroundPreset, E as METADATA_BY_DEFAULT, Et as BACKGROUNDS, F as createLink, Ft as LANGUAGE_IDS, G as LayoutOptions, Gt as Mode, H as isCssBackground, Ht as DEFAULT_THEME, I as decodeSpec, It as PLAIN_TEXT, J as Rect, Jt as THEME_IDS, K as POPOVER, Kt as Syntax, L as encodeSpec, Lt as Token, M as readImageSpec, Mt as ambientPreviewCss, N as DEFAULT_APP_URL, Nt as isAmbientBackground, O as SOFTWARE, Ot as themeBackground, P as DecodeOptions, Pt as HighlightedLine, Q as WINDOW_RADIUS, Qt as getTheme, R as readLink, Rt as highlight, S as IMPLICIT_SPEC_VERSION, St as getCodeFont, T as ImageMetadata, Tt as measureUiText, U as FONT_SIZE, Ut as EditorWindow, V as specJsonSchema, Vt as resolveLanguage, W as LINE_HEIGHT, Wt as FrameColors, X as TAB_HEADER, Xt as getFrameColors, Y as Scene, Yt as Theme, Z as TextMetrics, Zt as getSyntax, _ as initPng, _t as FontLoader, a as MARK_STYLES, at as FILE_ICON, b as svgToPng, bt as UiFont, c as SPEC_LIMITS, ct as NO_ICON, d as SpecInput, dt as CODE_FONTS, et as cellCount, f as SpecSchema, ft as CODE_FONT_IDS, g as PngOptions, gt as FontFace, h as parseSpec, ht as Font, i as LATEST_SPEC_VERSION, it as AUTO_ICON, j as createImageMetadata, jt as AmbientBackground, k as SVG_NAMESPACE, kt as AMBIENT_BACKGROUNDS, l as Spec, lt as getIcon, m as expandLineRanges, mt as DEFAULT_CODE_FONT, n as toSvg, nt as normalizeCode, o as MarkStyle, ot as ICON_IDS, p as WindowSpec, pt as CodeFont, q as PaneBox, qt as THEMES, r as ANNOTATION_TYPES, rt as MAC_HEADER, s as PaneSpec, st as Icon, t as SvgOptions, tt as layout, u as SpecError, ut as resolveIcon, v as loadSceneFonts, vt as FontMetrics, w as stampSpecVersion, wt as measureCodeText, x as EXTENSION_PREFIX, xt as cssFontFamily, y as sceneFontFiles, yt as UI_FONT, z as SPEC_SCHEMA_URL, zt as inferLanguage } from "./index-eoLihZJ2.mjs";
|
|
2
2
|
export type RenderFormat = "png" | "svg";
|
|
3
3
|
export type RenderOptions = {
|
|
4
4
|
format?: RenderFormat;
|
|
@@ -18,4 +18,4 @@ export declare const loadFont: FontLoader;
|
|
|
18
18
|
export declare function render(spec: unknown, options?: RenderOptions): Promise<Uint8Array>;
|
|
19
19
|
/** Renders the scene of a layout, so that a caller that needs the scene lays out only once */
|
|
20
20
|
export declare function renderScene(scene: Scene, options?: RenderSceneOptions): Promise<Uint8Array>;
|
|
21
|
-
export { AUTO_ICON, CODE_FONTS, CODE_FONT_IDS, CodeFont, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, FILE_ICON, FONT_SIZE, Font, FontFace, FontLoader, FontMetrics, FrameColors, type HighlightedLine, ICON_IDS, IMPLICIT_SPEC_VERSION, type Icon, type ImageMetadata, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, type LayoutOptions, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, type MarkStyle, Mode, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, type PaneBox, type PaneSpec, type PngOptions, type Rect, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, type Scene, type Spec, SpecError, type SpecInput, SpecSchema, type SvgOptions, Syntax, TAB_HEADER, THEMES, THEME_IDS, type TextMetrics, Theme, type Token, UI_FONT, UiFont, WINDOW_RADIUS, type WindowBox, type WindowSpec, addPngMetadata, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isKnownLanguage, layout, loadSceneFonts,
|
|
21
|
+
export { AMBIENT_BACKGROUNDS, AMBIENT_ENABLED, ANNOTATION_TYPES, AUTO_ICON, type AmbientBackground, BACKGROUNDS, type BackgroundPreset, CODE_FONTS, CODE_FONT_IDS, CodeFont, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, type DecodeOptions, EXTENSION_PREFIX, EditorWindow, FILE_ICON, FONT_SIZE, Font, FontFace, FontLoader, FontMetrics, FrameColors, type HighlightedLine, ICON_IDS, IMPLICIT_SPEC_VERSION, type Icon, type ImageMetadata, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, type LayoutOptions, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, type MarkStyle, Mode, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, type PaneBox, type PaneSpec, type PngOptions, type Rect, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, type Scene, type Spec, SpecError, type SpecInput, SpecSchema, type SvgOptions, Syntax, TAB_HEADER, THEMES, THEME_IDS, type TextMetrics, Theme, type Token, UI_FONT, UiFont, WINDOW_RADIUS, type WindowBox, type WindowSpec, addPngMetadata, ambientPreviewCss, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isAmbientBackground, isCssBackground, isKnownLanguage, isSpecSchemaUrl, layout, loadSceneFonts, measureCodeText, measureUiText, normalizeCode, parseSpec, readImageSpec, readLink, resolveIcon, resolveLanguage, resolveMode, sceneFontFiles, schemaVersion, specJsonSchema, stampSpecVersion, svgToPng, themeBackground, toSvg };
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as resolveIcon, A as SpecSchema, B as createLink, C as isSpecSchemaUrl, D as MARK_STYLES, E as LATEST_SPEC_VERSION, F as highlight, G as IMPLICIT_SPEC_VERSION, H as encodeSpec, I as inferLanguage, J as AUTO_ICON, K as schemaVersion, L as isKnownLanguage, M as parseSpec, N as LANGUAGE_IDS, O as SPEC_LIMITS, P as PLAIN_TEXT, Q as getIcon, R as resolveLanguage, S as SPEC_SCHEMA_URL, St as measureUiText, T as ANNOTATION_TYPES, U as readLink, V as decodeSpec, W as EXTENSION_PREFIX, X as ICON_IDS, Y as FILE_ICON, Z as NO_ICON, _ as WINDOW_RADIUS, _t as UI_FONT, a as svgToPng, at as ambientPreviewCss, b as normalizeCode, bt as getFace, c as SOFTWARE, ct as THEMES, d as createImageMetadata, dt as getSyntax, et as isCssBackground, f as readImageSpec, ft as getTheme, g as TAB_HEADER, gt as DEFAULT_CODE_FONT, h as POPOVER, ht as CODE_FONT_IDS, i as sceneFontFiles, it as AMBIENT_ENABLED, j as expandLineRanges, k as SpecError, l as SVG_NAMESPACE, lt as THEME_IDS, m as LINE_HEIGHT, mt as CODE_FONTS, n as initPng, nt as themeBackground, o as METADATA_BY_DEFAULT, ot as isAmbientBackground, p as FONT_SIZE, pt as resolveMode, q as stampSpecVersion, r as loadSceneFonts, rt as AMBIENT_BACKGROUNDS, s as PNG_KEYWORDS, st as DEFAULT_THEME, t as toSvg, tt as BACKGROUNDS, u as addPngMetadata, ut as getFrameColors, v as cellCount, vt as cssFontFamily, w as specJsonSchema, x as MAC_HEADER, xt as measureCodeText, y as layout, yt as getCodeFont, z as DEFAULT_APP_URL } from "./src-Bn8Hly8W.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
// src/node.ts
|
|
@@ -28,4 +28,4 @@ async function renderScene(scene, options = {}) {
|
|
|
28
28
|
metadata
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
export { AUTO_ICON, CODE_FONTS, CODE_FONT_IDS, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, FILE_ICON, FONT_SIZE, ICON_IDS, IMPLICIT_SPEC_VERSION, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, SpecError, SpecSchema, TAB_HEADER, THEMES, THEME_IDS, UI_FONT, WINDOW_RADIUS, addPngMetadata, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isKnownLanguage, layout, loadFont, loadSceneFonts,
|
|
31
|
+
export { AMBIENT_BACKGROUNDS, AMBIENT_ENABLED, ANNOTATION_TYPES, AUTO_ICON, BACKGROUNDS, CODE_FONTS, CODE_FONT_IDS, DEFAULT_APP_URL, DEFAULT_CODE_FONT, DEFAULT_THEME, EXTENSION_PREFIX, FILE_ICON, FONT_SIZE, ICON_IDS, IMPLICIT_SPEC_VERSION, LANGUAGE_IDS, LATEST_SPEC_VERSION, LINE_HEIGHT, MAC_HEADER, MARK_STYLES, METADATA_BY_DEFAULT, NO_ICON, PLAIN_TEXT, PNG_KEYWORDS, POPOVER, SOFTWARE, SPEC_LIMITS, SPEC_SCHEMA_URL, SVG_NAMESPACE, SpecError, SpecSchema, TAB_HEADER, THEMES, THEME_IDS, UI_FONT, WINDOW_RADIUS, addPngMetadata, ambientPreviewCss, cellCount, createImageMetadata, createLink, cssFontFamily, decodeSpec, encodeSpec, expandLineRanges, getCodeFont, getFace, getFrameColors, getIcon, getSyntax, getTheme, highlight, inferLanguage, initPng, isAmbientBackground, isCssBackground, isKnownLanguage, isSpecSchemaUrl, layout, loadFont, loadSceneFonts, measureCodeText, measureUiText, normalizeCode, parseSpec, readImageSpec, readLink, render, renderScene, resolveIcon, resolveLanguage, resolveMode, sceneFontFiles, schemaVersion, specJsonSchema, stampSpecVersion, svgToPng, themeBackground, toSvg };
|