bookcover-web 0.15.0 → 0.17.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 +2 -1
- package/dist/index.js +1 -1
- package/dist/preset_icons_svg.d.ts +2 -0
- package/dist/preset_icons_svg.js +5 -0
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export type { CoverSchema, TitlePosition, FontConfig, OutputFormat, SplitResult,
|
|
|
4
4
|
export type { BundledFont, CjkVariant, CustomFont } from 'typst-fonts';
|
|
5
5
|
export { font_file_url } from 'typst-fonts/web';
|
|
6
6
|
export { get_fonts, get_bundled_font } from 'typst-fonts';
|
|
7
|
-
export { list_patterns, collect_fonts, collect_all_fonts, default_spine_title, list_vector_backgrounds, find_vector_background, list_builtin_icons, find_builtin_icon, generate_palette, cover_schema } from 'bookcover-core';
|
|
7
|
+
export { list_patterns, collect_fonts, collect_all_fonts, default_spine_title, list_vector_backgrounds, find_vector_background, list_builtin_icons, find_builtin_icon, icon_categories, suggested_icons, generate_palette, cover_schema } from 'bookcover-core';
|
|
8
|
+
export type { IconCategory } from 'bookcover-core';
|
|
8
9
|
export { tinted_contrast_text, pick_vivid_tint, synthesize_fill, blend_regions, region_hex, all_image_regions, analyze_pixel_regions, get_builtin_bg_regions, VECTOR_BG_AUTO_COLOR, resolve_colors, darken_hsl } from 'bookcover-core';
|
|
9
10
|
export type { RegionStats, ImageRegions, ResolvedColors } from 'bookcover-core';
|
|
10
11
|
export { make_blank_form_values, build_schema, curly_quotes, parse_font_family, find_pattern, derive_colors, hex_override_to_hsl, hex_to_hsl, is_dark_color } from 'bookcover-core';
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { base_font } from 'typst-fonts';
|
|
|
7
7
|
import { load_fonts_prefix, font_urls_for as build_font_urls, fetch_font_bytes, fonts_to_blob_urls, revoke_blob_urls } from 'typst-fonts/web';
|
|
8
8
|
export { font_file_url } from 'typst-fonts/web';
|
|
9
9
|
export { get_fonts, get_bundled_font } from 'typst-fonts';
|
|
10
|
-
export { list_patterns, collect_fonts, collect_all_fonts, default_spine_title, list_vector_backgrounds, find_vector_background, list_builtin_icons, find_builtin_icon, generate_palette, cover_schema } from 'bookcover-core';
|
|
10
|
+
export { list_patterns, collect_fonts, collect_all_fonts, default_spine_title, list_vector_backgrounds, find_vector_background, list_builtin_icons, find_builtin_icon, icon_categories, suggested_icons, generate_palette, cover_schema } from 'bookcover-core';
|
|
11
11
|
export { tinted_contrast_text, pick_vivid_tint, synthesize_fill, blend_regions, region_hex, all_image_regions, analyze_pixel_regions, get_builtin_bg_regions, VECTOR_BG_AUTO_COLOR, resolve_colors, darken_hsl } from 'bookcover-core';
|
|
12
12
|
// Form state + form->schema conversion, so hosts can derive the renderable schema themselves
|
|
13
13
|
export { make_blank_form_values, build_schema, curly_quotes, parse_font_family, find_pattern, derive_colors, hex_override_to_hsl, hex_to_hsl, is_dark_color } from 'bookcover-core';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Preset icon SVG payload, re-exported on its own subpath ('bookcover-web/preset-icons-svg').
|
|
2
|
+
// Kept out of the main index so importing the barrel never pulls the payload in — only the
|
|
3
|
+
// icon picker needs these, and it loads them on demand. See generator/src/preset_icons.ts
|
|
4
|
+
export { PRESET_ICON_SVGS, find_preset_icon_svg } from 'bookcover-core/preset-icons-svg';
|
|
5
|
+
//# sourceMappingURL=preset_icons_svg.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bookcover-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"license": "MIT-0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"types": "./dist/patterns_svg.d.ts",
|
|
22
22
|
"default": "./dist/patterns_svg.js"
|
|
23
23
|
},
|
|
24
|
+
"./preset-icons-svg": {
|
|
25
|
+
"types": "./dist/preset_icons_svg.d.ts",
|
|
26
|
+
"default": "./dist/preset_icons_svg.js"
|
|
27
|
+
},
|
|
24
28
|
"./package.json": "./package.json"
|
|
25
29
|
},
|
|
26
30
|
"files": [
|
|
@@ -35,7 +39,7 @@
|
|
|
35
39
|
"@myriaddreamin/typst-ts-renderer": "0.7.0",
|
|
36
40
|
"@myriaddreamin/typst-ts-web-compiler": "0.7.0",
|
|
37
41
|
"@myriaddreamin/typst.ts": "0.7.0",
|
|
38
|
-
"bookcover-core": "^0.
|
|
42
|
+
"bookcover-core": "^0.17.0",
|
|
39
43
|
"typst-fonts": "^0.1.0"
|
|
40
44
|
},
|
|
41
45
|
"sideEffects": false
|