@formfeed/engine 0.3.10 → 0.3.12
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/index.cjs +4728 -438
- package/index.js +4728 -438
- package/package.json +3 -2
- package/types/frame/fit.d.cts +13 -0
- package/types/frame/fit.d.ts +13 -0
- package/types/frame/fit.entry.d.cts +1 -0
- package/types/frame/fit.entry.d.ts +1 -0
- package/types/frame/stage.d.cts +22 -0
- package/types/frame/stage.d.ts +22 -0
- package/types/frame/stage.entry.d.cts +1 -0
- package/types/frame/stage.entry.d.ts +1 -0
- package/types/frame/text-edit.d.cts +82 -0
- package/types/frame/text-edit.d.ts +82 -0
- package/types/frame/text-edit.entry.d.cts +1 -0
- package/types/frame/text-edit.entry.d.ts +1 -0
- package/types/index.d.cts +23 -14
- package/types/index.d.ts +23 -14
- package/types/lib/assemble.d.cts +13 -0
- package/types/lib/assemble.d.ts +13 -0
- package/types/lib/design/emit.d.cts +20 -0
- package/types/lib/design/emit.d.ts +20 -0
- package/types/lib/design/fonts.d.cts +27 -0
- package/types/lib/design/fonts.d.ts +27 -0
- package/types/lib/design/hash.d.cts +6 -0
- package/types/lib/design/hash.d.ts +6 -0
- package/types/lib/design/index.d.cts +12 -0
- package/types/lib/design/index.d.ts +12 -0
- package/types/lib/design/layers.d.cts +12 -0
- package/types/lib/design/layers.d.ts +12 -0
- package/types/lib/design/parse.d.cts +25 -0
- package/types/lib/design/parse.d.ts +25 -0
- package/types/lib/design/starters.d.cts +14 -0
- package/types/lib/design/starters.d.ts +14 -0
- package/types/lib/design/types.d.cts +171 -0
- package/types/lib/design/types.d.ts +171 -0
- package/types/lib/dialect.d.cts +32 -0
- package/types/lib/dialect.d.ts +32 -0
- package/types/lib/einvoice/check.d.cts +181 -0
- package/types/lib/einvoice/check.d.ts +181 -0
- package/types/lib/einvoice/cii.d.cts +18 -0
- package/types/lib/einvoice/cii.d.ts +18 -0
- package/types/lib/einvoice/codes.generated.d.cts +14 -0
- package/types/lib/einvoice/codes.generated.d.ts +14 -0
- package/types/lib/einvoice/decimal.d.cts +29 -0
- package/types/lib/einvoice/decimal.d.ts +29 -0
- package/types/lib/einvoice/display.d.cts +43 -0
- package/types/lib/einvoice/display.d.ts +43 -0
- package/types/lib/einvoice/html-text.d.cts +17 -0
- package/types/lib/einvoice/html-text.d.ts +17 -0
- package/types/lib/einvoice/index.d.cts +45 -0
- package/types/lib/einvoice/index.d.ts +45 -0
- package/types/lib/einvoice/locate.d.cts +21 -0
- package/types/lib/einvoice/locate.d.ts +21 -0
- package/types/lib/einvoice/report.d.cts +59 -0
- package/types/lib/einvoice/report.d.ts +59 -0
- package/types/lib/einvoice/schema.d.cts +293 -0
- package/types/lib/einvoice/schema.d.ts +293 -0
- package/types/lib/einvoice/skeleton.d.cts +10 -0
- package/types/lib/einvoice/skeleton.d.ts +10 -0
- package/types/lib/generated/frames.d.cts +6 -0
- package/types/lib/generated/frames.d.ts +6 -0
- package/types/lib/preview.d.cts +22 -2
- package/types/lib/preview.d.ts +22 -2
- package/types/lib/source-edit.d.cts +117 -0
- package/types/lib/source-edit.d.ts +117 -0
- package/types/lib/source-positions.d.cts +12 -3
- package/types/lib/source-positions.d.ts +12 -3
- package/types/lib/source-scan.d.cts +61 -0
- package/types/lib/source-scan.d.ts +61 -0
- package/types/lib/translation.d.cts +17 -0
- package/types/lib/translation.d.ts +17 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Template-level dictionaries: locale → key → text (USP-8). */
|
|
2
|
+
export type Dictionaries = Record<string, Record<string, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* The `t` helper's lookup, with where the text came from: the exact locale (`de-DE`), its language
|
|
5
|
+
* (`de`), English, or — `from: null` — nowhere, in which case the key itself is shown. The editor uses
|
|
6
|
+
* `from` to write an edited translation where the reader will find it (plan 16 §3.1).
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveTranslation(dictionaries: Dictionaries | undefined, locale: string, key: string): {
|
|
9
|
+
text: string;
|
|
10
|
+
from: string | null;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The dictionary an edit of `key` shown in `locale` belongs in: the one the text came from when that
|
|
14
|
+
* is the reader's own language, otherwise the reader's locale (when it has a dictionary) or language —
|
|
15
|
+
* never English on behalf of someone reading German.
|
|
16
|
+
*/
|
|
17
|
+
export declare function translationTarget(dictionaries: Dictionaries | undefined, locale: string, key: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Template-level dictionaries: locale → key → text (USP-8). */
|
|
2
|
+
export type Dictionaries = Record<string, Record<string, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* The `t` helper's lookup, with where the text came from: the exact locale (`de-DE`), its language
|
|
5
|
+
* (`de`), English, or — `from: null` — nowhere, in which case the key itself is shown. The editor uses
|
|
6
|
+
* `from` to write an edited translation where the reader will find it (plan 16 §3.1).
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveTranslation(dictionaries: Dictionaries | undefined, locale: string, key: string): {
|
|
9
|
+
text: string;
|
|
10
|
+
from: string | null;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The dictionary an edit of `key` shown in `locale` belongs in: the one the text came from when that
|
|
14
|
+
* is the reader's own language, otherwise the reader's locale (when it has a dictionary) or language —
|
|
15
|
+
* never English on behalf of someone reading German.
|
|
16
|
+
*/
|
|
17
|
+
export declare function translationTarget(dictionaries: Dictionaries | undefined, locale: string, key: string): string;
|