fika-editor 3.3.0 → 3.3.2
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/embed/agentic-manifest.json +2 -2
- package/dist/embed/fika-embed.js +4 -4
- package/dist/types/i18n/i18n-react.d.ts +10 -10
- package/dist/types/i18n/i18n-types.d.ts +6077 -6077
- package/dist/types/i18n/i18n-util.async.d.ts +5 -5
- package/dist/types/i18n/i18n-util.d.ts +5 -5
- package/dist/types/utils/latexToOmml.d.ts +8 -0
- package/package.json +2 -1
|
@@ -4,14 +4,14 @@ export declare const loadLocaleAsync: (locale: Locales) => Promise<void>;
|
|
|
4
4
|
export declare const loadAllLocalesAsync: () => Promise<void[]>;
|
|
5
5
|
export declare const loadFormatters: (locale: Locales) => void;
|
|
6
6
|
export declare const importNamespaceAsync: <Namespace extends Namespaces>(locale: Locales, namespace: Namespace) => Promise<{
|
|
7
|
-
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
8
|
-
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
9
7
|
export: import("./i18n-types").NamespaceExportTranslation;
|
|
10
|
-
|
|
8
|
+
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
9
|
+
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
11
10
|
mobile: import("./i18n-types").NamespaceMobileTranslation;
|
|
11
|
+
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
12
|
+
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
13
|
+
editor: import("./i18n-types").NamespaceEditorTranslation;
|
|
12
14
|
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
13
15
|
canvas: import("./i18n-types").NamespaceCanvasTranslation;
|
|
14
|
-
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
15
|
-
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
16
16
|
}[Namespace]>;
|
|
17
17
|
export declare const loadNamespaceAsync: <Namespace extends Namespaces>(locale: Locales, namespace: Namespace) => Promise<void>;
|
|
@@ -9,15 +9,15 @@ export declare const isNamespace: (namespace: string) => namespace is Namespaces
|
|
|
9
9
|
export declare const loadedLocales: Record<Locales, Translations>;
|
|
10
10
|
export declare const loadedFormatters: Record<Locales, Formatters>;
|
|
11
11
|
export declare const extendDictionary: <Base extends import("typesafe-i18n").BaseTranslation | {
|
|
12
|
-
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
13
|
-
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
14
12
|
export: import("./i18n-types").NamespaceExportTranslation;
|
|
15
|
-
|
|
13
|
+
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
14
|
+
myna: import("./i18n-types").NamespaceMynaTranslation;
|
|
16
15
|
mobile: import("./i18n-types").NamespaceMobileTranslation;
|
|
16
|
+
screen: import("./i18n-types").NamespaceScreenTranslation;
|
|
17
|
+
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
18
|
+
editor: import("./i18n-types").NamespaceEditorTranslation;
|
|
17
19
|
configs: import("./i18n-types").NamespaceConfigsTranslation;
|
|
18
20
|
canvas: import("./i18n-types").NamespaceCanvasTranslation;
|
|
19
|
-
common: import("./i18n-types").NamespaceCommonTranslation;
|
|
20
|
-
components: import("./i18n-types").NamespaceComponentsTranslation;
|
|
21
21
|
}, Translation extends Base>(base: Base, part: (Translation extends string ? string : Translation extends import("typesafe-i18n").BaseTranslation ? { [P in keyof Translation]?: Translation[P] extends infer T ? T extends Translation[P] ? T extends string ? string : T extends import("typesafe-i18n").BaseTranslation ? { [P_1 in keyof T]?: T[P_1] extends infer T_1 ? T_1 extends T[P_1] ? T_1 extends string ? string : T_1 extends import("typesafe-i18n").BaseTranslation ? { [P_2 in keyof T_1]?: T_1[P_2] extends infer T_2 ? T_2 extends T_1[P_2] ? T_2 extends string ? string : T_2 extends import("typesafe-i18n").BaseTranslation ? { [P_3 in keyof T_2]?: T_2[P_3] extends infer T_3 ? T_3 extends T_2[P_3] ? T_3 extends string ? string : T_3 extends import("typesafe-i18n").BaseTranslation ? { [P_4 in keyof T_3]?: T_3[P_4] extends infer T_4 ? T_4 extends T_3[P_4] ? T_4 extends string ? string : T_4 extends import("typesafe-i18n").BaseTranslation ? { [P_5 in keyof T_4]?: T_4[P_5] extends infer T_5 ? T_5 extends T_4[P_5] ? T_5 extends string ? string : T_5 extends import("typesafe-i18n").BaseTranslation ? { [P_6 in keyof T_5]?: T_5[P_6] extends infer T_6 ? T_6 extends T_5[P_6] ? T_6 extends string ? string : T_6 extends import("typesafe-i18n").BaseTranslation ? { [P_7 in keyof T_6]?: T_6[P_7] extends infer T_7 ? T_7 extends T_6[P_7] ? T_7 extends string ? string : T_7 extends import("typesafe-i18n").BaseTranslation ? { [P_8 in keyof T_7]?: T_7[P_8] extends infer T_8 ? T_8 extends T_7[P_8] ? T_8 extends string ? string : T_8 extends import("typesafe-i18n").BaseTranslation ? { [P_9 in keyof T_8]?: T_8[P_9] extends infer T_9 ? T_9 extends T_8[P_9] ? T_9 extends string ? string : T_9 extends import("typesafe-i18n").BaseTranslation ? { [P_10 in keyof T_9]?: /*elided*/ any; } : T_9 : never : never; } : T_8 : never : never; } : T_7 : never : never; } : T_6 : never : never; } : T_5 : never : never; } : T_4 : never : never; } : T_3 : never : never; } : T_2 : never : never; } : T_1 : never : never; } : T : never : never; } : Translation) extends infer T ? T extends (Translation extends string ? string : Translation extends import("typesafe-i18n").BaseTranslation ? { [P in keyof Translation]?: Translation[P] extends infer T ? T extends Translation[P] ? T extends string ? string : T extends import("typesafe-i18n").BaseTranslation ? { [P_1 in keyof T]?: T[P_1] extends infer T_1 ? T_1 extends T[P_1] ? T_1 extends string ? string : T_1 extends import("typesafe-i18n").BaseTranslation ? { [P_2 in keyof T_1]?: T_1[P_2] extends infer T_2 ? T_2 extends T_1[P_2] ? T_2 extends string ? string : T_2 extends import("typesafe-i18n").BaseTranslation ? { [P_3 in keyof T_2]?: T_2[P_3] extends infer T_3 ? T_3 extends T_2[P_3] ? T_3 extends string ? string : T_3 extends import("typesafe-i18n").BaseTranslation ? { [P_4 in keyof T_3]?: T_3[P_4] extends infer T_4 ? T_4 extends T_3[P_4] ? T_4 extends string ? string : T_4 extends import("typesafe-i18n").BaseTranslation ? { [P_5 in keyof T_4]?: T_4[P_5] extends infer T_5 ? T_5 extends T_4[P_5] ? T_5 extends string ? string : T_5 extends import("typesafe-i18n").BaseTranslation ? { [P_6 in keyof T_5]?: T_5[P_6] extends infer T_6 ? T_6 extends T_5[P_6] ? T_6 extends string ? string : T_6 extends import("typesafe-i18n").BaseTranslation ? { [P_7 in keyof T_6]?: T_6[P_7] extends infer T_7 ? T_7 extends T_6[P_7] ? T_7 extends string ? string : T_7 extends import("typesafe-i18n").BaseTranslation ? { [P_8 in keyof T_7]?: T_7[P_8] extends infer T_8 ? T_8 extends T_7[P_8] ? T_8 extends string ? string : T_8 extends import("typesafe-i18n").BaseTranslation ? { [P_9 in keyof T_8]?: T_8[P_9] extends infer T_9 ? T_9 extends T_8[P_9] ? T_9 extends string ? string : T_9 extends import("typesafe-i18n").BaseTranslation ? { [P_10 in keyof T_9]?: any; } : T_9 : never : never; } : T_8 : never : never; } : T_7 : never : never; } : T_6 : never : never; } : T_5 : never : never; } : T_4 : never : never; } : T_3 : never : never; } : T_2 : never : never; } : T_1 : never : never; } : T : never : never; } : Translation) ? T extends import("typesafe-i18n").BaseTranslation ? { [P in keyof T]?: T[P] extends infer T_1 ? T_1 extends T[P] ? T_1 extends import("typesafe-i18n").BaseTranslation ? { [P_1 in keyof T_1]?: T_1[P_1] extends infer T_2 ? T_2 extends T_1[P_1] ? T_2 extends import("typesafe-i18n").BaseTranslation ? { [P_2 in keyof T_2]?: T_2[P_2] extends infer T_3 ? T_3 extends T_2[P_2] ? T_3 extends import("typesafe-i18n").BaseTranslation ? { [P_3 in keyof T_3]?: T_3[P_3] extends infer T_4 ? T_4 extends T_3[P_3] ? T_4 extends import("typesafe-i18n").BaseTranslation ? { [P_4 in keyof T_4]?: T_4[P_4] extends infer T_5 ? T_5 extends T_4[P_4] ? T_5 extends import("typesafe-i18n").BaseTranslation ? { [P_5 in keyof T_5]?: T_5[P_5] extends infer T_6 ? T_6 extends T_5[P_5] ? T_6 extends import("typesafe-i18n").BaseTranslation ? { [P_6 in keyof T_6]?: T_6[P_6] extends infer T_7 ? T_7 extends T_6[P_6] ? T_7 extends import("typesafe-i18n").BaseTranslation ? { [P_7 in keyof T_7]?: T_7[P_7] extends infer T_8 ? T_8 extends T_7[P_7] ? T_8 extends import("typesafe-i18n").BaseTranslation ? { [P_8 in keyof T_8]?: T_8[P_8] extends infer T_9 ? T_9 extends T_8[P_8] ? T_9 extends import("typesafe-i18n").BaseTranslation ? { [P_9 in keyof T_9]?: T_9[P_9] extends infer T_10 ? T_10 extends T_9[P_9] ? T_10 extends import("typesafe-i18n").BaseTranslation ? { [P_10 in keyof T_10]?: /*elided*/ any; } : T_10 : never : never; } : T_9 : never : never; } : T_8 : never : never; } : T_7 : never : never; } : T_6 : never : never; } : T_5 : never : never; } : T_4 : never : never; } : T_3 : never : never; } : T_2 : never : never; } : T_1 : never : never; } : T : never : never) => Translation;
|
|
22
22
|
export declare const i18nString: (locale: Locales) => TranslateByString;
|
|
23
23
|
export declare const i18nObject: (locale: Locales) => TranslationFunctions;
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* LaTeX → MathML (MathLive) → OMML (mathml2omml-plus) for native PowerPoint equations.
|
|
3
3
|
* No hand-rolled math grammar — conversion is entirely library-based.
|
|
4
4
|
*/
|
|
5
|
+
/** Drop every character that cannot appear in an XML 1.0 document. */
|
|
6
|
+
export declare function stripXmlIllegalChars(text: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Well-formedness check mirroring the one pptxgenjs runs on `options.omml`
|
|
9
|
+
* (strict XML 1.0 via `@rgrove/parse-xml` around a synthetic root). Returns
|
|
10
|
+
* the first problem, or null when the fragment is safe to embed.
|
|
11
|
+
*/
|
|
12
|
+
export declare function validateOmmlFragment(omml: string): string | null;
|
|
5
13
|
export interface OmmlRunStyle {
|
|
6
14
|
/** CSS/hex color applied to every math glyph run and control (vinculum, …). */
|
|
7
15
|
color?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fika-editor",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Fika presentation editor embed bundle with a typed agentic bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/embed/fika-embed.js",
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"@codemirror/language": "^6.12.4",
|
|
97
97
|
"@codemirror/state": "^6.7.1",
|
|
98
98
|
"@codemirror/view": "^6.43.9",
|
|
99
|
+
"@rgrove/parse-xml": "^4.2.3",
|
|
99
100
|
"@dnd-kit/core": "^6.3.1",
|
|
100
101
|
"@dnd-kit/sortable": "^10.0.0",
|
|
101
102
|
"@dnd-kit/utilities": "^3.2.2",
|