@npm-zenwork/tax-remittance-ui 0.14.1 → 0.14.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.
@@ -1,5 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SIGNATURE_LETTERS_ONLY_PATTERN: RegExp;
3
+ /**
4
+ * Longest signature the backend will store. State payments cap
5
+ * `AuthorizationSignature` at 100 characters in both the column
6
+ * (`StatePaymentDetailsConfiguration`) and the request validator; the federal
7
+ * 8655/9783 signature columns are untyped `text`, so 100 is the single cap
8
+ * every signature box carries. Enforced twice on purpose — as the input's
9
+ * `maxLength` so over-typing and over-long pastes stop at the keyboard, and in
10
+ * the schema so a value restored from a draft can't slip past to a server
11
+ * rejection the user can't act on.
12
+ */
13
+ export declare const SIGNATURE_MAX_LENGTH = 100;
3
14
  export declare function sanitizeSignatureInput(raw: string): string;
4
15
  export declare const requiredSignatureSchema: z.ZodString;
5
16
  export declare const optionalSignatureSchema: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm-zenwork/tax-remittance-ui",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Embeddable Tax Remittance portal — React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",