fika-editor 3.6.10 → 3.6.11

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Proofing language of the text in PPTX downloads.
3
+ *
4
+ * PowerPoint checks spelling, hyphenates and applies AutoCorrect per text run
5
+ * by its `lang` attribute. Without one every run is US English, so a Czech
6
+ * deck opens with every word underlined as a typo. The host names the deck's
7
+ * language (BCP-47, e.g. `cs` or `sk-SK`); runs that already carry a
8
+ * language keep it.
9
+ */
10
+ /** Region-qualified tag PowerPoint recognises (`cs` → `cs-CZ`), or null for an invalid tag. */
11
+ export declare function pptxLanguageTag(tag?: string | null): string | null;
12
+ export declare function setFikaExportLanguage(tag?: string | null): void;
13
+ export declare function getFikaExportLanguage(): string | null;
@@ -7,7 +7,7 @@ export interface FikaExportProgress {
7
7
  /** Normalized 0..1; reaches 1 only when downloadable bytes are ready. */
8
8
  progress: number;
9
9
  }
10
- export interface FikaExportOptions extends Pick<PresentationExportOptions, 'mediaResolver' | 'watermark' | 'metadata'> {
10
+ export interface FikaExportOptions extends Pick<PresentationExportOptions, 'mediaResolver' | 'watermark' | 'metadata' | 'language'> {
11
11
  /** Runtime assets/chunks when exporting before mounting an editor. */
12
12
  assetBaseUrl?: string;
13
13
  /** PDF raster width in pixels. Default 2560, maximum 8192. */
@@ -121,6 +121,13 @@ export interface FikaMountOptions {
121
121
  * resolver fails the export.
122
122
  */
123
123
  exportMetadata?: FikaExportMetadataResolver;
124
+ /**
125
+ * Language of the deck's text (BCP-47, e.g. `cs` or `sk-SK`) written to
126
+ * every PPTX text run, so PowerPoint checks spelling in that language
127
+ * instead of US English. Applies to the editor export dialog and to
128
+ * `exportPresentationPptx` without an explicit `language` option.
129
+ */
130
+ exportLanguage?: string;
124
131
  /**
125
132
  * Local media picker used by the unified Insert → Media action (images,
126
133
  * video, and audio). Pass `upload` to send files to your backend instead of
@@ -19,6 +19,8 @@ export interface PresentationExportOptions {
19
19
  watermark?: FikaExportWatermarkResolver | null;
20
20
  /** Document metadata for the written file; `undefined` falls back to the mounted `exportMetadata`. */
21
21
  metadata?: FikaExportMetadataResolver | null;
22
+ /** Proofing language of the deck's text (BCP-47); `undefined` falls back to the mounted `exportLanguage`. */
23
+ language?: string | null;
22
24
  }
23
25
  export declare function createPresentationExporter({ slides, theme, viewportRatio, title, viewportSize, viewportWidthInches }: PresentationExportState, options?: PresentationExportOptions, job?: import("../utils/jobProgress").JobProgress): {
24
26
  exporting: boolean;
@@ -1,25 +1,25 @@
1
1
  import type { Locales, TranslationFunctions } from './i18n-types';
2
2
  declare const TypesafeI18n: import("react").FunctionComponent<import("typesafe-i18n/react").TypesafeI18nProps<Locales>>, I18nContext: import("react").Context<import("typesafe-i18n/react").I18nContextType<Locales, {
3
- common: import("./i18n-types").NamespaceCommonTranslation;
3
+ canvas: import("./i18n-types").NamespaceCanvasTranslation;
4
+ configs: import("./i18n-types").NamespaceConfigsTranslation;
4
5
  editor: import("./i18n-types").NamespaceEditorTranslation;
5
6
  myna: import("./i18n-types").NamespaceMynaTranslation;
6
- export: import("./i18n-types").NamespaceExportTranslation;
7
+ common: import("./i18n-types").NamespaceCommonTranslation;
7
8
  mobile: import("./i18n-types").NamespaceMobileTranslation;
8
- screen: import("./i18n-types").NamespaceScreenTranslation;
9
9
  components: import("./i18n-types").NamespaceComponentsTranslation;
10
- canvas: import("./i18n-types").NamespaceCanvasTranslation;
11
- configs: import("./i18n-types").NamespaceConfigsTranslation;
10
+ screen: import("./i18n-types").NamespaceScreenTranslation;
11
+ export: import("./i18n-types").NamespaceExportTranslation;
12
12
  }, TranslationFunctions>>;
13
13
  export { TypesafeI18n, I18nContext };
14
14
  export declare function useI18nContext(): import("typesafe-i18n/react").I18nContextType<Locales, {
15
- common: import("./i18n-types").NamespaceCommonTranslation;
15
+ canvas: import("./i18n-types").NamespaceCanvasTranslation;
16
+ configs: import("./i18n-types").NamespaceConfigsTranslation;
16
17
  editor: import("./i18n-types").NamespaceEditorTranslation;
17
18
  myna: import("./i18n-types").NamespaceMynaTranslation;
18
- export: import("./i18n-types").NamespaceExportTranslation;
19
+ common: import("./i18n-types").NamespaceCommonTranslation;
19
20
  mobile: import("./i18n-types").NamespaceMobileTranslation;
20
- screen: import("./i18n-types").NamespaceScreenTranslation;
21
21
  components: import("./i18n-types").NamespaceComponentsTranslation;
22
- canvas: import("./i18n-types").NamespaceCanvasTranslation;
23
- configs: import("./i18n-types").NamespaceConfigsTranslation;
22
+ screen: import("./i18n-types").NamespaceScreenTranslation;
23
+ export: import("./i18n-types").NamespaceExportTranslation;
24
24
  }, TranslationFunctions>;
25
25
  export declare const useI18nReact: typeof useI18nContext;