@tesouro/embedded-components-loader 0.11.209 → 0.11.214

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.209";
60
+ var LOADER_VERSION = "0.11.214";
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-loader",
3
- "version": "0.11.209",
3
+ "version": "0.11.214",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,