@incodetech/web 0.0.0-dev-20260609-6cfe5bbe → 0.0.0-dev-20260609-c65d205c
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/ae-signature/ae-signature.es.js +1 -1
- package/dist/ae-signature/styles.css +3 -17
- package/dist/ae-signature/styles2.css +13 -5
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BDcXZ6kN.js → electronic-signature-B-Q7M0wK.js} +9 -5
- package/dist/flow/styles.css +5 -23
- package/dist/qe-signature/qe-signature.es.js +1 -1
- package/dist/signature/signature.es.js +16 -3
- package/dist/workflow/styles.css +13 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
2
|
+
import { n as ElectronicSignature } from "../electronic-signature-B-Q7M0wK.js";
|
|
3
3
|
import { t as registerIncodeModuleElement } from "../incodeModule-BUDoTwT9.js";
|
|
4
4
|
//#region src/modules/ae-signature/ae-signature.tsx
|
|
5
5
|
var AeSignature = ({ config, onFinish, onError }) => {
|
|
@@ -201,24 +201,10 @@
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.IncodeElectronicSignatureDocRowAction {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
--tw-border-style: none;
|
|
204
|
+
width: auto;
|
|
205
|
+
max-width: none;
|
|
206
|
+
height: auto;
|
|
208
207
|
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
209
|
-
font-family: var(--typography-button-family);
|
|
210
|
-
font-size: var(--typography-button-m-underlined-size);
|
|
211
|
-
font-weight: var(--typography-button-m-underlined-weight);
|
|
212
|
-
line-height: var(--typography-button-m-underlined-line-height);
|
|
213
|
-
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
214
|
-
-webkit-text-decoration-skip-ink: none;
|
|
215
|
-
text-decoration-skip-ink: none;
|
|
216
|
-
color: var(--color-text-link-default, var(--text-link-default));
|
|
217
|
-
background-color: #0000;
|
|
218
|
-
border-style: none;
|
|
219
|
-
text-decoration-line: underline;
|
|
220
|
-
text-decoration-style: solid;
|
|
221
|
-
text-decoration-thickness: auto;
|
|
222
208
|
}
|
|
223
209
|
|
|
224
210
|
.IncodeElectronicSignatureConsents {
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.IncodeSignature .IncodeSrOnly {
|
|
14
|
+
clip-path: inset(50%);
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
border-width: 0;
|
|
17
|
+
width: 1px;
|
|
18
|
+
height: 1px;
|
|
19
|
+
margin: -1px;
|
|
20
|
+
padding: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
.IncodeSignature .IncodeSignatureContent {
|
|
14
26
|
width: 100%;
|
|
15
27
|
height: 100%;
|
|
@@ -28,17 +40,13 @@
|
|
|
28
40
|
animation-fill-mode: both;
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
.IncodeSignature .IncodeSignatureButtonContainer .IncodeButton.IncodeButtonPrimary {
|
|
32
|
-
transition: background-color .35s ease-out, color .35s ease-out, border-color .35s ease-out, opacity .35s ease-out, box-shadow .35s ease-out;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
43
|
.IncodeSignature .SignatureCanvasContainer {
|
|
36
44
|
width: 100%;
|
|
37
45
|
padding-inline: var(--spacing-16, var(--spacing-16, 16px));
|
|
38
46
|
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
39
47
|
border-radius: var(--radius-small, var(--border-radius-small));
|
|
40
48
|
border-style: var(--tw-border-style);
|
|
41
|
-
border-width:
|
|
49
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
42
50
|
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
43
51
|
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
44
52
|
height: var(--signature-canvas-height);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-B-Q7M0wK.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -6,6 +6,7 @@ import { t as Page } from "./page-DxGQj7Gk.js";
|
|
|
6
6
|
import { t as Button } from "./button-CM_hgyIP.js";
|
|
7
7
|
import { c as ChevronLeftIcon, r as LockIcon } from "./icons-Dbs9ZfYM.js";
|
|
8
8
|
import { t as SuccessIcon } from "./successIcon-BAyDPT7I.js";
|
|
9
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-BzkUiELM.js";
|
|
9
10
|
import { t as VerificationResult } from "./verificationResult-Do5SpZ6X.js";
|
|
10
11
|
import { t as Checkbox } from "./checkbox-BoeLHKgp.js";
|
|
11
12
|
import { t as PdfViewer } from "./pdfViewer-BK-yVIve.js";
|
|
@@ -249,7 +250,9 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
249
250
|
type: "file",
|
|
250
251
|
accept: "application/pdf",
|
|
251
252
|
className: "IncodeElectronicSignatureFileInput",
|
|
252
|
-
onChange: handleFileChange
|
|
253
|
+
onChange: handleFileChange,
|
|
254
|
+
tabIndex: -1,
|
|
255
|
+
"aria-hidden": "true"
|
|
253
256
|
})]
|
|
254
257
|
}), /* @__PURE__ */ u("div", {
|
|
255
258
|
className: "IncodeElectronicSignatureFooter",
|
|
@@ -273,7 +276,7 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
273
276
|
className: "IncodeElectronicSignature IncodeElectronicSignatureSuccess",
|
|
274
277
|
children: [/* @__PURE__ */ u("div", {
|
|
275
278
|
className: "IncodeElectronicSignatureSuccessCenter",
|
|
276
|
-
children: [/* @__PURE__ */ u(SuccessIcon, { size: 64 }), /* @__PURE__ */ u(
|
|
279
|
+
children: [/* @__PURE__ */ u(SuccessIcon, { size: 64 }), /* @__PURE__ */ u(AutoFocusTitle, {
|
|
277
280
|
className: "IncodeElectronicSignatureSuccessTitle",
|
|
278
281
|
children: t("signature.successTitle")
|
|
279
282
|
})]
|
|
@@ -341,9 +344,10 @@ var ElectronicSignatureContent = ({ config, onFinish, onError }) => {
|
|
|
341
344
|
i === 0 ? "" : `${i + 1}`,
|
|
342
345
|
".pdf"
|
|
343
346
|
]
|
|
344
|
-
}), /* @__PURE__ */ u(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
+
}), /* @__PURE__ */ u(Button, {
|
|
348
|
+
variant: "link",
|
|
349
|
+
size: "S",
|
|
350
|
+
class: "IncodeElectronicSignatureDocRowAction",
|
|
347
351
|
onClick: () => manager.viewDocument(doc.documentUrl),
|
|
348
352
|
children: t("aes.confirmSignature.viewDocument")
|
|
349
353
|
})]
|
package/dist/flow/styles.css
CHANGED
|
@@ -7623,7 +7623,7 @@
|
|
|
7623
7623
|
display: flex;
|
|
7624
7624
|
}
|
|
7625
7625
|
|
|
7626
|
-
.IncodeDynamicFormsPage .IncodeSrOnly {
|
|
7626
|
+
.IncodeDynamicFormsPage .IncodeSrOnly, .IncodeSignature .IncodeSrOnly {
|
|
7627
7627
|
clip-path: inset(50%);
|
|
7628
7628
|
white-space: nowrap;
|
|
7629
7629
|
border-width: 0;
|
|
@@ -7653,17 +7653,13 @@
|
|
|
7653
7653
|
animation-fill-mode: both;
|
|
7654
7654
|
}
|
|
7655
7655
|
|
|
7656
|
-
.IncodeSignature .IncodeSignatureButtonContainer .IncodeButton.IncodeButtonPrimary {
|
|
7657
|
-
transition: background-color .35s ease-out, color .35s ease-out, border-color .35s ease-out, opacity .35s ease-out, box-shadow .35s ease-out;
|
|
7658
|
-
}
|
|
7659
|
-
|
|
7660
7656
|
.IncodeSignature .SignatureCanvasContainer {
|
|
7661
7657
|
width: 100%;
|
|
7662
7658
|
padding-inline: var(--spacing-16, var(--spacing-16, 16px));
|
|
7663
7659
|
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
7664
7660
|
border-radius: var(--radius-small, var(--border-radius-small));
|
|
7665
7661
|
border-style: var(--tw-border-style);
|
|
7666
|
-
border-width:
|
|
7662
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
7667
7663
|
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
7668
7664
|
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
7669
7665
|
height: var(--signature-canvas-height);
|
|
@@ -7932,24 +7928,10 @@
|
|
|
7932
7928
|
}
|
|
7933
7929
|
|
|
7934
7930
|
.IncodeElectronicSignatureDocRowAction {
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
--tw-border-style: none;
|
|
7931
|
+
width: auto;
|
|
7932
|
+
max-width: none;
|
|
7933
|
+
height: auto;
|
|
7939
7934
|
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
7940
|
-
font-family: var(--typography-button-family);
|
|
7941
|
-
font-size: var(--typography-button-m-underlined-size);
|
|
7942
|
-
font-weight: var(--typography-button-m-underlined-weight);
|
|
7943
|
-
line-height: var(--typography-button-m-underlined-line-height);
|
|
7944
|
-
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
7945
|
-
-webkit-text-decoration-skip-ink: none;
|
|
7946
|
-
text-decoration-skip-ink: none;
|
|
7947
|
-
color: var(--color-text-link-default, var(--text-link-default));
|
|
7948
|
-
background-color: #0000;
|
|
7949
|
-
border-style: none;
|
|
7950
|
-
text-decoration-line: underline;
|
|
7951
|
-
text-decoration-style: solid;
|
|
7952
|
-
text-decoration-thickness: auto;
|
|
7953
7935
|
}
|
|
7954
7936
|
|
|
7955
7937
|
.IncodeElectronicSignatureConsents {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
2
|
+
import { n as ElectronicSignature } from "../electronic-signature-B-Q7M0wK.js";
|
|
3
3
|
import { t as registerIncodeModuleElement } from "../incodeModule-BUDoTwT9.js";
|
|
4
4
|
//#region src/modules/qe-signature/qe-signature.tsx
|
|
5
5
|
var QeSignature = ({ config, onFinish, onError }) => {
|
|
@@ -696,7 +696,7 @@ var canvasToBlob = (canvas, mimeType, quality) => {
|
|
|
696
696
|
}, mimeType, mimeType === "image/jpeg" || mimeType === "image/webp" ? quality : void 0);
|
|
697
697
|
});
|
|
698
698
|
};
|
|
699
|
-
var SignatureCanvas = D(({ onBeginStroke, hasDrawing, placeholder, customPenColor, customPenStrokeWidth, customBackgroundColor, customBorderColor }, ref) => {
|
|
699
|
+
var SignatureCanvas = D(({ onBeginStroke, hasDrawing, placeholder, ariaLabel, customPenColor, customPenStrokeWidth, customBackgroundColor, customBorderColor }, ref) => {
|
|
700
700
|
const containerRef = A(null);
|
|
701
701
|
const canvasRef = A(null);
|
|
702
702
|
const signaturePadRef = A(null);
|
|
@@ -785,9 +785,11 @@ var SignatureCanvas = D(({ onBeginStroke, hasDrawing, placeholder, customPenColo
|
|
|
785
785
|
children: [/* @__PURE__ */ u("canvas", {
|
|
786
786
|
class: "SignatureCanvas",
|
|
787
787
|
ref: canvasRef,
|
|
788
|
-
"
|
|
788
|
+
role: "img",
|
|
789
|
+
"aria-label": ariaLabel ?? placeholder
|
|
789
790
|
}), !hasDrawing && /* @__PURE__ */ u("p", {
|
|
790
791
|
class: "SignatureCanvasPlaceholder",
|
|
792
|
+
"aria-hidden": "true",
|
|
791
793
|
children: placeholder
|
|
792
794
|
})]
|
|
793
795
|
});
|
|
@@ -799,6 +801,7 @@ var SignatureContent = ({ config, onFinish, onError }) => {
|
|
|
799
801
|
const { t } = useTranslation();
|
|
800
802
|
const [state, manager] = useManager(() => createSignatureManager({ config }), { autoLoad: true });
|
|
801
803
|
const [hasDrawing, setHasDrawing] = d(false);
|
|
804
|
+
const [announcement, setAnnouncement] = d("");
|
|
802
805
|
const signatureRef = A(null);
|
|
803
806
|
const error = state.status === "error" ? state.error : void 0;
|
|
804
807
|
const isSubmitting = state.status === "submitting";
|
|
@@ -808,8 +811,9 @@ var SignatureContent = ({ config, onFinish, onError }) => {
|
|
|
808
811
|
signatureRef.current.on();
|
|
809
812
|
signatureRef.current.clear();
|
|
810
813
|
setHasDrawing(false);
|
|
814
|
+
setAnnouncement(t("signature.cleared"));
|
|
811
815
|
manager.setSignatureValid(false);
|
|
812
|
-
}, [manager]);
|
|
816
|
+
}, [manager, t]);
|
|
813
817
|
useModuleTerminalCallbacks({
|
|
814
818
|
status: state.status === "finished" ? "finished" : "loading",
|
|
815
819
|
onFinish
|
|
@@ -869,9 +873,11 @@ var SignatureContent = ({ config, onFinish, onError }) => {
|
|
|
869
873
|
hasDrawing,
|
|
870
874
|
onBeginStroke: () => {
|
|
871
875
|
setHasDrawing(true);
|
|
876
|
+
setAnnouncement(t("signature.captured"));
|
|
872
877
|
manager.setSignatureValid(true);
|
|
873
878
|
},
|
|
874
879
|
placeholder: t("signature.fullSignaturePlaceholder"),
|
|
880
|
+
ariaLabel: t("signature.canvasAriaLabel"),
|
|
875
881
|
customBackgroundColor: config.canvasBackgroundColor,
|
|
876
882
|
customBorderColor: config.canvasBorderColor,
|
|
877
883
|
customPenColor: config.penColor,
|
|
@@ -883,11 +889,18 @@ var SignatureContent = ({ config, onFinish, onError }) => {
|
|
|
883
889
|
disabled: !hasDrawing || isSubmitting,
|
|
884
890
|
onClick: clearCanvas,
|
|
885
891
|
children: t("signature.clear")
|
|
892
|
+
}),
|
|
893
|
+
/* @__PURE__ */ u("span", {
|
|
894
|
+
class: "IncodeSrOnly",
|
|
895
|
+
"aria-live": "polite",
|
|
896
|
+
"aria-atomic": "true",
|
|
897
|
+
children: announcement
|
|
886
898
|
})
|
|
887
899
|
]
|
|
888
900
|
}), /* @__PURE__ */ u("div", {
|
|
889
901
|
class: "IncodeSignatureButtonContainer",
|
|
890
902
|
children: /* @__PURE__ */ u(Button, {
|
|
903
|
+
variant: "primary",
|
|
891
904
|
disabled: !canContinue,
|
|
892
905
|
isLoading: isSubmitting,
|
|
893
906
|
onClick: handleContinue,
|
package/dist/workflow/styles.css
CHANGED
|
@@ -6764,6 +6764,18 @@
|
|
|
6764
6764
|
margin-top: 0;
|
|
6765
6765
|
}
|
|
6766
6766
|
|
|
6767
|
+
.IncodeSignature .IncodeSrOnly {
|
|
6768
|
+
clip-path: inset(50%);
|
|
6769
|
+
white-space: nowrap;
|
|
6770
|
+
border-width: 0;
|
|
6771
|
+
width: 1px;
|
|
6772
|
+
height: 1px;
|
|
6773
|
+
margin: -1px;
|
|
6774
|
+
padding: 0;
|
|
6775
|
+
position: absolute;
|
|
6776
|
+
overflow: hidden;
|
|
6777
|
+
}
|
|
6778
|
+
|
|
6767
6779
|
.IncodeSignature .IncodeSignatureContent {
|
|
6768
6780
|
width: 100%;
|
|
6769
6781
|
height: 100%;
|
|
@@ -6782,17 +6794,13 @@
|
|
|
6782
6794
|
animation-fill-mode: both;
|
|
6783
6795
|
}
|
|
6784
6796
|
|
|
6785
|
-
.IncodeSignature .IncodeSignatureButtonContainer .IncodeButton.IncodeButtonPrimary {
|
|
6786
|
-
transition: background-color .35s ease-out, color .35s ease-out, border-color .35s ease-out, opacity .35s ease-out, box-shadow .35s ease-out;
|
|
6787
|
-
}
|
|
6788
|
-
|
|
6789
6797
|
.IncodeSignature .SignatureCanvasContainer {
|
|
6790
6798
|
width: 100%;
|
|
6791
6799
|
padding-inline: var(--spacing-16, var(--spacing-16, 16px));
|
|
6792
6800
|
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
6793
6801
|
border-radius: var(--radius-small, var(--border-radius-small));
|
|
6794
6802
|
border-style: var(--tw-border-style);
|
|
6795
|
-
border-width:
|
|
6803
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
6796
6804
|
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
6797
6805
|
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
6798
6806
|
height: var(--signature-canvas-height);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260609-
|
|
3
|
+
"version": "0.0.0-dev-20260609-c65d205c",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"qrcode": "^1.5.4",
|
|
256
256
|
"signature_pad": "^5.1.3",
|
|
257
257
|
"tailwindcss": "^4.1.17",
|
|
258
|
-
"@incodetech/core": "0.0.0-dev-20260609-
|
|
258
|
+
"@incodetech/core": "0.0.0-dev-20260609-c65d205c"
|
|
259
259
|
},
|
|
260
260
|
"devDependencies": {
|
|
261
261
|
"@microsoft/api-extractor": "^7.53.3",
|