bookcover-web 0.20.0 → 0.21.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.
@@ -1,8 +1,5 @@
1
1
  import type { EmbedFormState } from 'bookcover-core';
2
2
  import type { CustomFont } from 'typst-fonts';
3
- /** Locales the widget UI supports. Lives in this published package, so adding a widget
4
- * locale requires a bookcover-web release. */
5
- export type AppLocale = 'eng' | 'vie';
6
3
  /** One candidate background the host offers alongside the widget's own built-ins — typically an
7
4
  * image the user already used on another of their covers, which the widget would otherwise make
8
5
  * them find on disk and upload again.
@@ -66,7 +63,7 @@ export interface InitMessage {
66
63
  finished_mode?: boolean;
67
64
  hide_size_section?: boolean;
68
65
  bg_suggestions?: BgSuggestion[];
69
- locale?: AppLocale;
66
+ locale?: string;
70
67
  }
71
68
  /** Host -> widget. InitMessage is the first and must arrive before any other; later messages are
72
69
  * only accepted from the same origin that sent it.
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export { make_blank_form_values, build_schema, curly_quotes, parse_font_family,
12
12
  export type { FormState, EmbedFormState, CustomFontStyle, DerivedColors } from 'bookcover-core';
13
13
  export { resolve_dimensions } from 'bookcover-core';
14
14
  export type { GetDimensionsResult, DimensionInputs } from 'bookcover-core';
15
- export type { InitMessage, HostMessage, WidgetMessage, BgSuggestion, AppLocale } from './embed_types.js';
15
+ export type { InitMessage, HostMessage, WidgetMessage, BgSuggestion } from './embed_types.js';
16
16
  export interface InitOptions {
17
17
  wasm_url: string;
18
18
  renderer_wasm_url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bookcover-web",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "license": "MIT-0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "@myriaddreamin/typst-ts-renderer": "0.7.0",
40
40
  "@myriaddreamin/typst-ts-web-compiler": "0.7.0",
41
41
  "@myriaddreamin/typst.ts": "0.7.0",
42
- "bookcover-core": "^0.20.0",
42
+ "bookcover-core": "^0.21.0",
43
43
  "typst-fonts": "^0.1.0"
44
44
  },
45
45
  "sideEffects": false