@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 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`
@@ -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) {
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export declare const PACKAGE_VERSION = "1.7.0";
7
+ export declare const PACKAGE_VERSION = "1.7.1";
@@ -7,4 +7,4 @@ exports.PACKAGE_VERSION = void 0;
7
7
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
8
8
  * beim Anheben der Version beide Stellen aendern.
9
9
  */
10
- exports.PACKAGE_VERSION = '1.7.0';
10
+ exports.PACKAGE_VERSION = '1.7.1';
@@ -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) {
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export declare const PACKAGE_VERSION = "1.7.0";
7
+ export declare const PACKAGE_VERSION = "1.7.1";
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export const PACKAGE_VERSION = '1.7.0';
7
+ export const PACKAGE_VERSION = '1.7.1';
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.7.1",
3
3
  "measuredOn": {
4
4
  "tid": "3600335",
5
5
  "hpsVersion": "1.10.0",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "title": "Kasseneck Rechnungs-API",
4
4
  "version": 2,
5
- "package": "1.7.0",
5
+ "package": "1.7.1",
6
6
  "endpoints": {
7
7
  "createCustomer": {
8
8
  "request": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.7.1",
3
3
  "languages": [
4
4
  "de",
5
5
  "en"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.7.1",
3
3
  "messages": {
4
4
  "network.no_connection": {
5
5
  "text": "Keine Verbindung zum Server. Bitte die Internetverbindung prüfen und erneut versuchen."
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.7.1",
3
3
  "baseUrls": {
4
4
  "public": "https://api.kasseneck.at/v3",
5
5
  "pos": "https://kasse.kasseneck.at/api/v3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreiseck/kasseneck-api",
3
- "version": "1.7.0",
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",