@tesouro/embedded-components-loader 0.11.217 → 0.11.220

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/index.js CHANGED
@@ -57,7 +57,7 @@ function satisfiesRange(version, range) {
57
57
  }
58
58
  // src/loader.ts
59
59
  /** Baked at build time: installing loader 1.2.3 pins hosted 1.2.3. */
60
- var LOADER_VERSION = "0.11.217";
60
+ var LOADER_VERSION = "0.11.220";
61
61
  var DEFAULT_BASE_URL = "https://widgets.tesouro.com";
62
62
  /** Frozen forever: every future loader must read what every past one wrote. */
63
63
  var LOADED_VERSION_MARKER = Symbol.for("tesouro.embedded.loadedVersion");
@@ -665,11 +665,16 @@ interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
665
665
  * `overdueAmount` directly, so it carries its own separator.
666
666
  */
667
667
  overdueInvoiceCount: (count: number) => string;
668
- /** The overdue line as a screen reader hears it, without the separator. */
668
+ /**
669
+ * @deprecated No longer read: the tile is named by its visible text, so a
670
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
671
+ * overrides still type-check; removed in a future release.
672
+ */
669
673
  overdueDescription: (amount: string, count: number) => string;
670
674
  /**
671
- * The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
672
- * $6,450.00 overdue across 3 invoices. View invoices."
675
+ * @deprecated No longer read: the tile is named by its visible text, so a
676
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
677
+ * overrides still type-check; removed in a future release.
673
678
  */
674
679
  accessibleName: (parts: {
675
680
  title: string;
@@ -692,8 +697,9 @@ interface BillsQuickViewTileLabels {
692
697
 
693
698
  interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
694
699
  /**
695
- * The tile heading as a screen reader hears it, at the start of the
696
- * accessible name. Override it alongside `title`.
700
+ * @deprecated No longer read: the tile is named by its visible text, so a
701
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
702
+ * overrides still type-check; removed in a future release.
697
703
  */
698
704
  accessibleTitle: string;
699
705
  /** Call to action that opens the bills list. */
@@ -718,11 +724,16 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
718
724
  awaitingApprovalCount: (count: number) => string;
719
725
  /** Joins the sub-line parts, e.g. "1 overdue · 1 awaiting approval". */
720
726
  joinSubtext: (parts: string[]) => string;
721
- /** Joins the same parts as a screen reader hears them, without the dot. */
727
+ /**
728
+ * @deprecated No longer read: the tile is named by its visible text, so a
729
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
730
+ * overrides still type-check; removed in a future release.
731
+ */
722
732
  joinDescription: (parts: string[]) => string;
723
733
  /**
724
- * The tile's one-sentence accessible name, e.g. "Bills due in the next 30
725
- * days, $9,615.00, 1 overdue, 1 awaiting approval. View bills."
734
+ * @deprecated No longer read: the tile is named by its visible text, so a
735
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
736
+ * overrides still type-check; removed in a future release.
726
737
  */
727
738
  accessibleName: (parts: {
728
739
  title: string;
@@ -753,9 +764,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
753
764
  */
754
765
  titleForMonth: (month: number) => string;
755
766
  /**
756
- * The heading as a screen reader hears it, at the start of the accessible
757
- * name, e.g. "Card spend in October". Override it alongside
758
- * `titleForMonth`.
767
+ * @deprecated No longer read: the tile is named by its visible text, so a
768
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
769
+ * overrides still type-check; removed in a future release.
759
770
  */
760
771
  accessibleTitleForMonth: (month: number) => string;
761
772
  /** Call to action that opens the cards list. */
@@ -770,8 +781,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
770
781
  */
771
782
  negativeAmount: (magnitude: string) => string;
772
783
  /**
773
- * The tile's one-sentence accessible name, e.g. "Card spend in October,
774
- * $3,186.52, 5 cards. View cards."
784
+ * @deprecated No longer read: the tile is named by its visible text, so a
785
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
786
+ * overrides still type-check; removed in a future release.
775
787
  */
776
788
  accessibleName: (parts: {
777
789
  title: string;
@@ -1443,11 +1443,16 @@ interface InvoicesQuickViewWidgetLabels extends InvoicesQuickViewTileLabels {
1443
1443
  * `overdueAmount` directly, so it carries its own separator.
1444
1444
  */
1445
1445
  overdueInvoiceCount: (count: number) => string;
1446
- /** The overdue line as a screen reader hears it, without the separator. */
1446
+ /**
1447
+ * @deprecated No longer read: the tile is named by its visible text, so a
1448
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1449
+ * overrides still type-check; removed in a future release.
1450
+ */
1447
1451
  overdueDescription: (amount: string, count: number) => string;
1448
1452
  /**
1449
- * The tile's one-sentence accessible name, e.g. "Open invoices, $18,300.00,
1450
- * $6,450.00 overdue across 3 invoices. View invoices."
1453
+ * @deprecated No longer read: the tile is named by its visible text, so a
1454
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1455
+ * overrides still type-check; removed in a future release.
1451
1456
  */
1452
1457
  accessibleName: (parts: {
1453
1458
  title: string;
@@ -1470,8 +1475,9 @@ interface BillsQuickViewTileLabels {
1470
1475
 
1471
1476
  interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
1472
1477
  /**
1473
- * The tile heading as a screen reader hears it, at the start of the
1474
- * accessible name. Override it alongside `title`.
1478
+ * @deprecated No longer read: the tile is named by its visible text, so a
1479
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1480
+ * overrides still type-check; removed in a future release.
1475
1481
  */
1476
1482
  accessibleTitle: string;
1477
1483
  /** Call to action that opens the bills list. */
@@ -1496,11 +1502,16 @@ interface BillsQuickViewWidgetLabels extends BillsQuickViewTileLabels {
1496
1502
  awaitingApprovalCount: (count: number) => string;
1497
1503
  /** Joins the sub-line parts, e.g. "1 overdue · 1 awaiting approval". */
1498
1504
  joinSubtext: (parts: string[]) => string;
1499
- /** Joins the same parts as a screen reader hears them, without the dot. */
1505
+ /**
1506
+ * @deprecated No longer read: the tile is named by its visible text, so a
1507
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1508
+ * overrides still type-check; removed in a future release.
1509
+ */
1500
1510
  joinDescription: (parts: string[]) => string;
1501
1511
  /**
1502
- * The tile's one-sentence accessible name, e.g. "Bills due in the next 30
1503
- * days, $9,615.00, 1 overdue, 1 awaiting approval. View bills."
1512
+ * @deprecated No longer read: the tile is named by its visible text, so a
1513
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1514
+ * overrides still type-check; removed in a future release.
1504
1515
  */
1505
1516
  accessibleName: (parts: {
1506
1517
  title: string;
@@ -1531,9 +1542,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
1531
1542
  */
1532
1543
  titleForMonth: (month: number) => string;
1533
1544
  /**
1534
- * The heading as a screen reader hears it, at the start of the accessible
1535
- * name, e.g. "Card spend in October". Override it alongside
1536
- * `titleForMonth`.
1545
+ * @deprecated No longer read: the tile is named by its visible text, so a
1546
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1547
+ * overrides still type-check; removed in a future release.
1537
1548
  */
1538
1549
  accessibleTitleForMonth: (month: number) => string;
1539
1550
  /** Call to action that opens the cards list. */
@@ -1548,8 +1559,9 @@ interface CardsQuickViewWidgetLabels extends CardsQuickViewTileLabels {
1548
1559
  */
1549
1560
  negativeAmount: (magnitude: string) => string;
1550
1561
  /**
1551
- * The tile's one-sentence accessible name, e.g. "Card spend in October,
1552
- * $3,186.52, 5 cards. View cards."
1562
+ * @deprecated No longer read: the tile is named by its visible text, so a
1563
+ * screen reader hears what is on screen (WCAG 2.5.3). Kept so existing
1564
+ * overrides still type-check; removed in a future release.
1553
1565
  */
1554
1566
  accessibleName: (parts: {
1555
1567
  title: string;
@@ -3300,6 +3300,10 @@ interface Labels$3 {
3300
3300
  statementColumn: string;
3301
3301
  statementsActionsColumn: string;
3302
3302
  viewStatementButton: string;
3303
+ /**
3304
+ * The View button's accessible name. Starts with `viewStatementButton`'s
3305
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
3306
+ */
3303
3307
  viewStatementButtonAriaLabel: string;
3304
3308
  statementsRowsPerPageLabel: string;
3305
3309
  statementsPreviousPageButton: string;
@@ -4307,6 +4311,11 @@ interface ExpensesTransactionsTableLabels {
4307
4311
  interface ExpensesTransactionsFilterBarLabels {
4308
4312
  searchPlaceholder: string;
4309
4313
  searchAriaLabel: string;
4314
+ /**
4315
+ * Visible text of the filters button, followed by "(N)" when filters are
4316
+ * active; it is also the button's accessible name. Named for its old
4317
+ * aria-label role and kept so existing host overrides still apply.
4318
+ */
4310
4319
  filtersButtonAriaLabel: string;
4311
4320
  clearAll: string;
4312
4321
  dateRangeFieldLabel: string;
@@ -4333,6 +4342,8 @@ interface Labels$2 {
4333
4342
 
4334
4343
  interface FileViewerLabels {
4335
4344
  filePreview: string;
4345
+ /** Names the scrollable viewport that holds the zoomed file. */
4346
+ previewRegion: string;
4336
4347
  zoomIn: string;
4337
4348
  zoomOut: string;
4338
4349
  moreActions: string;
@@ -5389,6 +5400,7 @@ interface ReceivablePreviewLabels {
5389
5400
  noItems: string;
5390
5401
  payOnline: string;
5391
5402
  paymentQrCodeLabel: string;
5403
+ previewRegionLabel: string;
5392
5404
  }
5393
5405
 
5394
5406
  interface RecurringSeriesScreenLabels {
@@ -6800,6 +6812,10 @@ interface AcceptDisclosuresWidgetLabels {
6800
6812
  acceptButton: string;
6801
6813
  submittingButton?: string;
6802
6814
  successToast?: string;
6815
+ /**
6816
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
6817
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
6818
+ */
6803
6819
  agreementCheckboxAriaLabel: string;
6804
6820
  /** Fallback when the accept API fails without a usable message. */
6805
6821
  acceptErrorFallback: string;
@@ -6835,8 +6851,8 @@ interface AcceptDisclosuresWidgetLabels {
6835
6851
  /** Use `{bankName}` when the backend returned no documents. */
6836
6852
  noDocumentsAgreementTextTemplate?: string;
6837
6853
  /**
6838
- * Checkbox `aria-label` when the backend returned no documents. Use
6839
- * `{bankName}`. Must not say the user is agreeing to disclosures.
6854
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
6855
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
6840
6856
  */
6841
6857
  noDocumentsAgreementCheckboxAriaLabel?: string;
6842
6858
  /**
@@ -699,6 +699,10 @@ interface AcceptDisclosuresWidgetLabels {
699
699
  acceptButton: string;
700
700
  submittingButton?: string;
701
701
  successToast?: string;
702
+ /**
703
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
704
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
705
+ */
702
706
  agreementCheckboxAriaLabel: string;
703
707
  /** Fallback when the accept API fails without a usable message. */
704
708
  acceptErrorFallback: string;
@@ -734,8 +738,8 @@ interface AcceptDisclosuresWidgetLabels {
734
738
  /** Use `{bankName}` when the backend returned no documents. */
735
739
  noDocumentsAgreementTextTemplate?: string;
736
740
  /**
737
- * Checkbox `aria-label` when the backend returned no documents. Use
738
- * `{bankName}`. Must not say the user is agreeing to disclosures.
741
+ * @deprecated Ignored. The checkbox is named by the visible agreement text
742
+ * (WCAG 2.5.3). Kept so existing overrides continue to typecheck.
739
743
  */
740
744
  noDocumentsAgreementCheckboxAriaLabel?: string;
741
745
  /**
@@ -680,6 +680,10 @@ interface Labels {
680
680
  statementColumn: string;
681
681
  statementsActionsColumn: string;
682
682
  viewStatementButton: string;
683
+ /**
684
+ * The View button's accessible name. Starts with `viewStatementButton`'s
685
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
686
+ */
683
687
  viewStatementButtonAriaLabel: string;
684
688
  statementsRowsPerPageLabel: string;
685
689
  statementsPreviousPageButton: string;
@@ -37,6 +37,11 @@ interface ExpensesTransactionsTableLabels {
37
37
  interface ExpensesTransactionsFilterBarLabels {
38
38
  searchPlaceholder: string;
39
39
  searchAriaLabel: string;
40
+ /**
41
+ * Visible text of the filters button, followed by "(N)" when filters are
42
+ * active; it is also the button's accessible name. Named for its old
43
+ * aria-label role and kept so existing host overrides still apply.
44
+ */
40
45
  filtersButtonAriaLabel: string;
41
46
  clearAll: string;
42
47
  dateRangeFieldLabel: string;
@@ -63,6 +68,8 @@ interface Labels {
63
68
 
64
69
  interface FileViewerLabels {
65
70
  filePreview: string;
71
+ /** Names the scrollable viewport that holds the zoomed file. */
72
+ previewRegion: string;
66
73
  zoomIn: string;
67
74
  zoomOut: string;
68
75
  moreActions: string;
@@ -2036,6 +2036,7 @@ interface ReceivablePreviewLabels {
2036
2036
  noItems: string;
2037
2037
  payOnline: string;
2038
2038
  paymentQrCodeLabel: string;
2039
+ previewRegionLabel: string;
2039
2040
  }
2040
2041
 
2041
2042
  interface RecurringSeriesScreenLabels {
@@ -2415,6 +2415,10 @@ interface Labels$3 {
2415
2415
  statementColumn: string;
2416
2416
  statementsActionsColumn: string;
2417
2417
  viewStatementButton: string;
2418
+ /**
2419
+ * The View button's accessible name. Starts with `viewStatementButton`'s
2420
+ * text so a voice-control user can say what they see (WCAG 2.5.3).
2421
+ */
2418
2422
  viewStatementButtonAriaLabel: string;
2419
2423
  statementsRowsPerPageLabel: string;
2420
2424
  statementsPreviousPageButton: string;
@@ -3368,6 +3372,11 @@ interface ExpensesTransactionsTableLabels {
3368
3372
  interface ExpensesTransactionsFilterBarLabels {
3369
3373
  searchPlaceholder: string;
3370
3374
  searchAriaLabel: string;
3375
+ /**
3376
+ * Visible text of the filters button, followed by "(N)" when filters are
3377
+ * active; it is also the button's accessible name. Named for its old
3378
+ * aria-label role and kept so existing host overrides still apply.
3379
+ */
3371
3380
  filtersButtonAriaLabel: string;
3372
3381
  clearAll: string;
3373
3382
  dateRangeFieldLabel: string;
@@ -3394,6 +3403,8 @@ interface Labels$2 {
3394
3403
 
3395
3404
  interface FileViewerLabels {
3396
3405
  filePreview: string;
3406
+ /** Names the scrollable viewport that holds the zoomed file. */
3407
+ previewRegion: string;
3397
3408
  zoomIn: string;
3398
3409
  zoomOut: string;
3399
3410
  moreActions: string;
@@ -4270,6 +4281,7 @@ interface ReceivablePreviewLabels {
4270
4281
  noItems: string;
4271
4282
  payOnline: string;
4272
4283
  paymentQrCodeLabel: string;
4284
+ previewRegionLabel: string;
4273
4285
  }
4274
4286
 
4275
4287
  interface RecurringSeriesScreenLabels {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-loader",
3
- "version": "0.11.217",
3
+ "version": "0.11.220",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,