@kreiseck/kasseneck-api 1.7.0 → 1.7.1
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/CHANGELOG.md +16 -0
- package/dist/cjs/react/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/react/index.js +6 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/fixtures/hobex-hps-codes.json +1 -1
- package/fixtures/invoice-api.schema.json +1 -1
- package/fixtures/invoice-texts.json +1 -1
- package/fixtures/pos-texts.json +1 -1
- package/fixtures/surface.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ Was vor 0.7.0 geschah, steht in der Commit-Historie (`git log`); ab hier wird
|
|
|
4
4
|
es hier geführt. Ein Eintrag nennt die Änderung **und ihren Grund** —
|
|
5
5
|
nur der Grund überlebt den nächsten Umbau.
|
|
6
6
|
|
|
7
|
+
## 1.7.1
|
|
8
|
+
|
|
9
|
+
`ReceiptSheetLines` pins `letter-spacing` and `word-spacing` to 0. Reason:
|
|
10
|
+
both are inherited, and the sheet is exactly `charsPerLine` × `1ch` wide with
|
|
11
|
+
`overflow: hidden` on every line. A page stylesheet that spaced its text (a
|
|
12
|
+
`tracking-*` utility, a `letter-spacing` on `body`) made every full line wider
|
|
13
|
+
than the sheet, and its last character was cut off. Same fix as the Dart twin
|
|
14
|
+
`KeckReceiptSheetWidget` in 10.6.1, where the Material 3 theme's 0.25 letter
|
|
15
|
+
spacing clipped "Kartenzahlung" to "Kartenzahlun".
|
|
16
|
+
|
|
17
|
+
The sheet's HTML gains `letter-spacing:0;word-spacing:0` in the `keck-blatt`
|
|
18
|
+
style, so the 264 `html.blatt.*` digests in `test/fixtures/druck-goldens.json`
|
|
19
|
+
are re-recorded; cross-check: with the addition removed each output matches its
|
|
20
|
+
old digest byte for byte. ESC/POS, ePOS, grid and sheet bytes are unchanged.
|
|
21
|
+
No public symbol changes.
|
|
22
|
+
|
|
7
23
|
## 1.7.0
|
|
8
24
|
|
|
9
25
|
Register auto-logout: `Cashregister` gains the optional `autoLogout`
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -92,6 +92,12 @@ function ReceiptSheetLines({ sheet: blatt, logoUrl, renderQr, qrHidden: qrVerdec
|
|
|
92
92
|
width: `${z}ch`,
|
|
93
93
|
fontFamily: 'var(--keck-blatt-schrift, "DM Mono", ui-monospace, Menlo, Consolas, monospace)',
|
|
94
94
|
fontVariantLigatures: 'none',
|
|
95
|
+
// Ausdruecklich 0: `letter-spacing`/`word-spacing` erben sich, und das Blatt
|
|
96
|
+
// ist genau `charsPerLine` x 1ch breit. Ein Abstand aus dem Stylesheet der
|
|
97
|
+
// Seite (z. B. `tracking-wide`) machte jede volle Zeile breiter als das
|
|
98
|
+
// Blatt; `overflow: hidden` schnitt das letzte Zeichen ab.
|
|
99
|
+
letterSpacing: 0,
|
|
100
|
+
wordSpacing: 0,
|
|
95
101
|
};
|
|
96
102
|
return ((0, jsx_runtime_1.jsx)("div", { className: klasse, "data-zeichen": z, style: blattStil, children: blatt.blocks.map((b, i) => {
|
|
97
103
|
switch (b.kind) {
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
package/dist/esm/react/index.js
CHANGED
|
@@ -86,6 +86,12 @@ export function ReceiptSheetLines({ sheet: blatt, logoUrl, renderQr, qrHidden: q
|
|
|
86
86
|
width: `${z}ch`,
|
|
87
87
|
fontFamily: 'var(--keck-blatt-schrift, "DM Mono", ui-monospace, Menlo, Consolas, monospace)',
|
|
88
88
|
fontVariantLigatures: 'none',
|
|
89
|
+
// Ausdruecklich 0: `letter-spacing`/`word-spacing` erben sich, und das Blatt
|
|
90
|
+
// ist genau `charsPerLine` x 1ch breit. Ein Abstand aus dem Stylesheet der
|
|
91
|
+
// Seite (z. B. `tracking-wide`) machte jede volle Zeile breiter als das
|
|
92
|
+
// Blatt; `overflow: hidden` schnitt das letzte Zeichen ab.
|
|
93
|
+
letterSpacing: 0,
|
|
94
|
+
wordSpacing: 0,
|
|
89
95
|
};
|
|
90
96
|
return (_jsx("div", { className: klasse, "data-zeichen": z, style: blattStil, children: blatt.blocks.map((b, i) => {
|
|
91
97
|
switch (b.kind) {
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
package/fixtures/pos-texts.json
CHANGED
package/fixtures/surface.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kreiseck/kasseneck-api",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Austrian fiscal cash register (RKSV) client for JavaScript and TypeScript: signed receipts, cancellations, card payments, receipt printing (ESC/POS), invoices, inventory. RKSV-Registrierkasse für JavaScript und TypeScript.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Kreiseck",
|