@tesouro/embedded-components-loader 0.11.206 → 0.11.211

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/README.md CHANGED
@@ -232,8 +232,11 @@ What each directive is for:
232
232
  | `connect-src` | The CDN origin, for `manifest.json`; your API origin (`https://api.sandbox.tesouro.com` in sandbox); `https://z.tesouro.com` for analytics, unless the provider has `analytics={false}`; the origins of the file URLs the API returns. |
233
233
  | `worker-src` | Optional. If you set it, the CDN origin plus `blob:`. |
234
234
 
235
- Under a strict `style-src`, three inline styles that dependencies add are still
236
- refused. The npm package has the same three, so the hosted build adds none.
235
+ Under a strict `style-src`, a few inline styles that dependencies add are still
236
+ refused, such as the toast library's `<style>` tag. How many a browser reports
237
+ varies: WebKit also reports inline `style` attributes that Chromium and Firefox
238
+ do not. The npm package has the same ones under the same policy, so the hosted
239
+ build adds none.
237
240
 
238
241
  ### Integrity
239
242
 
@@ -292,8 +295,12 @@ To make one:
292
295
  await loadTesouro({ modules, baseUrl: 'https://assets.example.com/tesouro' });
293
296
  ```
294
297
 
295
- Without a build step, import `loader.js` from the mirror too. The pdf.js worker
296
- follows: the hosted build finds `deps/` from its own URL. Serve `.js` files with
298
+ Without a build step, import `loader.js` from the mirror and still pass
299
+ `baseUrl`. The loader in a version folder does not read its own URL: without
300
+ `baseUrl` it loads the manifest, the entry and the chunks from
301
+ `https://widgets.tesouro.com`, wherever it was imported from. The pdf.js worker
302
+ follows the hosted build, which finds `deps/` from its own URL, so it comes from
303
+ the mirror once `baseUrl` points there. Serve `.js` files with
297
304
  a JavaScript content type, such as `text/javascript`, because browsers refuse a
298
305
  module script served as anything else. If the mirror is on a different origin
299
306
  from the page, serve it with CORS headers, because module scripts are fetched
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.206";
60
+ var LOADER_VERSION = "0.11.211";
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");
@@ -5285,7 +5285,6 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
5285
5285
  /** @deprecated Use `ReceivableFormDialogLabels`. */
5286
5286
  type ReceivableFormSheetLabels = ReceivableFormDialogLabels;
5287
5287
  interface ReceivableDetailsPanelLabels {
5288
- hiddenDescription: string;
5289
5288
  loadingTitle: string;
5290
5289
  moreActionsLabel: string;
5291
5290
  viewPdfButton: string;
@@ -5352,6 +5351,7 @@ interface ReceivablePaymentDialogLabels {
5352
5351
  cancelButton: string;
5353
5352
  saveButton: string;
5354
5353
  reviewTitle: string;
5354
+ fromLabel: string;
5355
5355
  receivedLabel: string;
5356
5356
  referenceLabel: string;
5357
5357
  createdByLabel: string;
@@ -5480,8 +5480,6 @@ interface ReceivableMessageLabels {
5480
5480
  paymentRecordAmountZero: string;
5481
5481
  paymentRecordDateRequired: string;
5482
5482
  paymentRecordTimeRequired: string;
5483
- /** `{name}` is replaced with the customer's name. */
5484
- paymentRecordFrom: string;
5485
5483
  paymentRecordCreated: string;
5486
5484
  /** `{errorMessage}` is replaced with the API's reason. */
5487
5485
  paymentRecordCreateFailed: string;
@@ -5552,8 +5550,9 @@ interface ReceivableMessageLabels {
5552
5550
  detailsNotFoundDescription: string;
5553
5551
  /** `{number}` is replaced with the invoice number. */
5554
5552
  detailsInvoiceSubtitle: string;
5555
- /** `{days}` is replaced with the number of days. */
5556
- detailsDaysOverdue: string;
5553
+ detailsDraftDescription: string;
5554
+ /** `{date}` and `{overdue}` are replaced with the due date and the days overdue. */
5555
+ detailsOverdueDueDate: string;
5557
5556
  detailsInvoiceAmount: string;
5558
5557
  detailsBalanceDue: string;
5559
5558
  detailsAmountReceived: string;
@@ -5785,6 +5784,8 @@ interface ReceivableMessageLabels {
5785
5784
  apiErrorsSummary: string;
5786
5785
  /** `{name}` is replaced with the customer's name. */
5787
5786
  actionsIssueTitle: string;
5787
+ /** `{current}` and `{total}` are replaced with the step numbers. */
5788
+ actionsStepLabel: string;
5788
5789
  /** `{name}` is replaced with the customer's name. */
5789
5790
  actionsResendTitle: string;
5790
5791
  actionsIssueDismiss: string;
@@ -1932,7 +1932,6 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
1932
1932
  /** @deprecated Use `ReceivableFormDialogLabels`. */
1933
1933
  type ReceivableFormSheetLabels = ReceivableFormDialogLabels;
1934
1934
  interface ReceivableDetailsPanelLabels {
1935
- hiddenDescription: string;
1936
1935
  loadingTitle: string;
1937
1936
  moreActionsLabel: string;
1938
1937
  viewPdfButton: string;
@@ -1999,6 +1998,7 @@ interface ReceivablePaymentDialogLabels {
1999
1998
  cancelButton: string;
2000
1999
  saveButton: string;
2001
2000
  reviewTitle: string;
2001
+ fromLabel: string;
2002
2002
  receivedLabel: string;
2003
2003
  referenceLabel: string;
2004
2004
  createdByLabel: string;
@@ -2127,8 +2127,6 @@ interface ReceivableMessageLabels {
2127
2127
  paymentRecordAmountZero: string;
2128
2128
  paymentRecordDateRequired: string;
2129
2129
  paymentRecordTimeRequired: string;
2130
- /** `{name}` is replaced with the customer's name. */
2131
- paymentRecordFrom: string;
2132
2130
  paymentRecordCreated: string;
2133
2131
  /** `{errorMessage}` is replaced with the API's reason. */
2134
2132
  paymentRecordCreateFailed: string;
@@ -2199,8 +2197,9 @@ interface ReceivableMessageLabels {
2199
2197
  detailsNotFoundDescription: string;
2200
2198
  /** `{number}` is replaced with the invoice number. */
2201
2199
  detailsInvoiceSubtitle: string;
2202
- /** `{days}` is replaced with the number of days. */
2203
- detailsDaysOverdue: string;
2200
+ detailsDraftDescription: string;
2201
+ /** `{date}` and `{overdue}` are replaced with the due date and the days overdue. */
2202
+ detailsOverdueDueDate: string;
2204
2203
  detailsInvoiceAmount: string;
2205
2204
  detailsBalanceDue: string;
2206
2205
  detailsAmountReceived: string;
@@ -2432,6 +2431,8 @@ interface ReceivableMessageLabels {
2432
2431
  apiErrorsSummary: string;
2433
2432
  /** `{name}` is replaced with the customer's name. */
2434
2433
  actionsIssueTitle: string;
2434
+ /** `{current}` and `{total}` are replaced with the step numbers. */
2435
+ actionsStepLabel: string;
2435
2436
  /** `{name}` is replaced with the customer's name. */
2436
2437
  actionsResendTitle: string;
2437
2438
  actionsIssueDismiss: string;
@@ -4166,7 +4166,6 @@ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, Rec
4166
4166
  reminderSaveButton: string;
4167
4167
  }
4168
4168
  interface ReceivableDetailsPanelLabels {
4169
- hiddenDescription: string;
4170
4169
  loadingTitle: string;
4171
4170
  moreActionsLabel: string;
4172
4171
  viewPdfButton: string;
@@ -4233,6 +4232,7 @@ interface ReceivablePaymentDialogLabels {
4233
4232
  cancelButton: string;
4234
4233
  saveButton: string;
4235
4234
  reviewTitle: string;
4235
+ fromLabel: string;
4236
4236
  receivedLabel: string;
4237
4237
  referenceLabel: string;
4238
4238
  createdByLabel: string;
@@ -4361,8 +4361,6 @@ interface ReceivableMessageLabels {
4361
4361
  paymentRecordAmountZero: string;
4362
4362
  paymentRecordDateRequired: string;
4363
4363
  paymentRecordTimeRequired: string;
4364
- /** `{name}` is replaced with the customer's name. */
4365
- paymentRecordFrom: string;
4366
4364
  paymentRecordCreated: string;
4367
4365
  /** `{errorMessage}` is replaced with the API's reason. */
4368
4366
  paymentRecordCreateFailed: string;
@@ -4433,8 +4431,9 @@ interface ReceivableMessageLabels {
4433
4431
  detailsNotFoundDescription: string;
4434
4432
  /** `{number}` is replaced with the invoice number. */
4435
4433
  detailsInvoiceSubtitle: string;
4436
- /** `{days}` is replaced with the number of days. */
4437
- detailsDaysOverdue: string;
4434
+ detailsDraftDescription: string;
4435
+ /** `{date}` and `{overdue}` are replaced with the due date and the days overdue. */
4436
+ detailsOverdueDueDate: string;
4438
4437
  detailsInvoiceAmount: string;
4439
4438
  detailsBalanceDue: string;
4440
4439
  detailsAmountReceived: string;
@@ -4666,6 +4665,8 @@ interface ReceivableMessageLabels {
4666
4665
  apiErrorsSummary: string;
4667
4666
  /** `{name}` is replaced with the customer's name. */
4668
4667
  actionsIssueTitle: string;
4668
+ /** `{current}` and `{total}` are replaced with the step numbers. */
4669
+ actionsStepLabel: string;
4669
4670
  /** `{name}` is replaced with the customer's name. */
4670
4671
  actionsResendTitle: string;
4671
4672
  actionsIssueDismiss: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-loader",
3
- "version": "0.11.206",
3
+ "version": "0.11.211",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,