@lucida-analytics/browser 0.1.3 → 0.1.5

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.
Files changed (85) hide show
  1. package/README.md +45 -0
  2. package/dist/autocapture.d.ts +1 -1
  3. package/dist/autocapture.js +1 -1
  4. package/dist/{banner-2TSKJ4WK.js → banner-7LEREYUH.js} +1 -1
  5. package/dist/{static/v0.1.3/chunk-32K5P5GN.js → chunk-536QABLP.js} +1 -1
  6. package/dist/{static/v0.1.3/chunk-O4W7SZ2X.js → chunk-EFNCQJI3.js} +1 -1
  7. package/dist/chunk-UPPUYIIH.js +1 -0
  8. package/dist/{client-DkIhkh91.d.ts → client-DZX6o-eI.d.ts} +2 -2
  9. package/dist/consent.d.ts +9 -3
  10. package/dist/consent.js +1 -1
  11. package/dist/core.d.ts +3 -3
  12. package/dist/core.js +3 -3
  13. package/dist/correlate.d.ts +1 -1
  14. package/dist/early-access.d.ts +1 -1
  15. package/dist/experiments.d.ts +1 -1
  16. package/dist/flags.d.ts +1 -1
  17. package/dist/forms.d.ts +1 -1
  18. package/dist/guides.d.ts +2 -1116
  19. package/dist/heatmaps.d.ts +1 -1
  20. package/dist/host-headers.d.ts +1 -1
  21. package/dist/index.d.ts +8 -4
  22. package/dist/index.js +2 -2
  23. package/dist/inspector.d.ts +1 -1
  24. package/dist/lucida.js +2 -2
  25. package/dist/recommendations.d.ts +1 -1
  26. package/dist/{recorder-P2QJ4AKY.js → recorder-4WIMQCLR.js} +1 -1
  27. package/dist/replay.d.ts +2 -2
  28. package/dist/replay.js +1 -1
  29. package/dist/static/v0/autocapture.js +1 -1
  30. package/dist/static/v0/{banner-2TSKJ4WK.js → banner-7LEREYUH.js} +1 -1
  31. package/dist/static/v0/{chunk-32K5P5GN.js → chunk-536QABLP.js} +1 -1
  32. package/dist/static/v0/{chunk-O4W7SZ2X.js → chunk-EFNCQJI3.js} +1 -1
  33. package/dist/static/v0/chunk-UPPUYIIH.js +1 -0
  34. package/dist/static/v0/consent.js +1 -1
  35. package/dist/static/v0/core.js +3 -3
  36. package/dist/static/v0/index.js +2 -2
  37. package/dist/static/v0/lucida.js +2 -2
  38. package/dist/static/v0/manifest.json +28 -0
  39. package/dist/static/{v0.1.3/recorder-P2QJ4AKY.js → v0/recorder-4WIMQCLR.js} +1 -1
  40. package/dist/static/v0/replay.js +1 -1
  41. package/dist/static/{v0.1.3 → v0.1.5}/autocapture.js +1 -1
  42. package/dist/static/{v0.1.3/banner-2TSKJ4WK.js → v0.1.5/banner-7LEREYUH.js} +1 -1
  43. package/dist/{chunk-32K5P5GN.js → static/v0.1.5/chunk-536QABLP.js} +1 -1
  44. package/dist/{chunk-O4W7SZ2X.js → static/v0.1.5/chunk-EFNCQJI3.js} +1 -1
  45. package/dist/static/v0.1.5/chunk-UPPUYIIH.js +1 -0
  46. package/dist/static/v0.1.5/consent.js +1 -0
  47. package/dist/static/v0.1.5/core.js +3 -0
  48. package/dist/static/v0.1.5/index.js +3 -0
  49. package/dist/static/v0.1.5/lucida.js +3 -0
  50. package/dist/static/v0.1.5/manifest.json +28 -0
  51. package/dist/static/{v0/recorder-P2QJ4AKY.js → v0.1.5/recorder-4WIMQCLR.js} +1 -1
  52. package/dist/static/v0.1.5/replay.js +1 -0
  53. package/dist/toolbar.d.ts +1 -1
  54. package/dist/{types-XbAgeGjz.d.ts → types-Dng5ldZO.d.ts} +52 -4
  55. package/dist/webmcp.d.ts +1 -1
  56. package/lucida-global.d.ts +24 -0
  57. package/package.json +7 -5
  58. package/storage.json +75 -0
  59. package/dist/chunk-UH2MVDMX.js +0 -1
  60. package/dist/static/v0/chunk-UH2MVDMX.js +0 -1
  61. package/dist/static/v0.1.3/chunk-UH2MVDMX.js +0 -1
  62. package/dist/static/v0.1.3/consent.js +0 -1
  63. package/dist/static/v0.1.3/core.js +0 -3
  64. package/dist/static/v0.1.3/index.js +0 -3
  65. package/dist/static/v0.1.3/integrity.json +0 -30
  66. package/dist/static/v0.1.3/lucida.js +0 -3
  67. package/dist/static/v0.1.3/replay.js +0 -1
  68. package/dist/types-Bgl5v0MP.d.ts +0 -972
  69. /package/dist/static/{v0.1.3 → v0.1.5}/chunk-AWIQCFGN.js +0 -0
  70. /package/dist/static/{v0.1.3 → v0.1.5}/chunk-FUE3SDQU.js +0 -0
  71. /package/dist/static/{v0.1.3 → v0.1.5}/correlate.js +0 -0
  72. /package/dist/static/{v0.1.3 → v0.1.5}/early-access.js +0 -0
  73. /package/dist/static/{v0.1.3 → v0.1.5}/experiments.js +0 -0
  74. /package/dist/static/{v0.1.3 → v0.1.5}/flags.js +0 -0
  75. /package/dist/static/{v0.1.3 → v0.1.5}/forms.js +0 -0
  76. /package/dist/static/{v0.1.3 → v0.1.5}/guides.js +0 -0
  77. /package/dist/static/{v0.1.3 → v0.1.5}/heatmaps.js +0 -0
  78. /package/dist/static/{v0.1.3 → v0.1.5}/host-headers.js +0 -0
  79. /package/dist/static/{v0.1.3 → v0.1.5}/inspector.js +0 -0
  80. /package/dist/static/{v0.1.3 → v0.1.5}/modules-FANMZRDJ.js +0 -0
  81. /package/dist/static/{v0.1.3 → v0.1.5}/persistent-SLVINN5A.js +0 -0
  82. /package/dist/static/{v0.1.3 → v0.1.5}/recommendations.js +0 -0
  83. /package/dist/static/{v0.1.3 → v0.1.5}/toolbar.js +0 -0
  84. /package/dist/static/{v0.1.3 → v0.1.5}/validation-HGJXZ553.js +0 -0
  85. /package/dist/static/{v0.1.3 → v0.1.5}/webmcp.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Props } from '@lucida-analytics/sdk-core';
2
- import { M as Module } from './types-XbAgeGjz.js';
2
+ import { M as Module } from './types-Dng5ldZO.js';
3
3
 
4
4
  type ViewportBucket = "mobile" | "tablet" | "desktop";
5
5
  declare function viewportBucket(width: number): ViewportBucket;
@@ -1,4 +1,4 @@
1
- import { M as Module } from './types-XbAgeGjz.js';
1
+ import { M as Module } from './types-Dng5ldZO.js';
2
2
  import '@lucida-analytics/sdk-core';
3
3
 
4
4
  declare const DISTINCT_ID_HEADER = "X-Lucida-Distinct-Id";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { L as LazyModuleName, M as Module, B as BrowserConfig, C as Client } from './types-XbAgeGjz.js';
2
- export { A as AgentAnalytics, a as AutocaptureConfig, b as BeforeSend, c as BootstrapConfig, d as CaptureOptions, D as DeliveryConfig, e as FlagOptions, F as FlagValue, f as FlagsService, g as FrustrationConfig, G as Guide, h as GuideAutomation, i as GuideButton, j as GuideKind, k as GuideRule, l as GuideStep, m as GuideTokens, n as GuidesService, H as Host, P as Persistence, o as PersonProfiles, p as PropFilter, R as RECS_PAYLOAD_KEY, q as RecommendationItem, r as RecommendationOptions, s as Recommendations, t as RecsService, u as RemoteConfig, v as ReplayControl, S as StorageConfig, T as TargetConditions, U as UrlPrivacy, w as denylistHook, x as placementFlag, y as privatizeUrl, z as recommendations, E as sampleHook, I as urlPrivacyHook } from './types-XbAgeGjz.js';
3
- export { D as DEFAULT_HOST, L as LIB_VERSION, c as createClient } from './client-DkIhkh91.js';
1
+ import { L as LazyModuleName, M as Module, d as BrowserConfig, e as Client } from './types-Dng5ldZO.js';
2
+ export { A as AgentAnalytics, i as AutocaptureConfig, j as BeforeSend, k as BootstrapConfig, l as CaptureOptions, D as DeliveryConfig, m as FlagOptions, F as FlagValue, n as FlagsService, o as FrustrationConfig, g as Guide, f as GuideAutomation, p as GuideButton, q as GuideKind, r as GuideRule, G as GuideStep, h as GuideTokens, s as GuidesService, H as Host, P as Persistence, t as PersonProfiles, u as PropFilter, R as RECS_PAYLOAD_KEY, v as RecommendationItem, w as RecommendationOptions, x as Recommendations, y as RecsService, z as RemoteConfig, E as ReplayControl, S as StorageConfig, T as TargetConditions, U as UrlPrivacy, I as denylistHook, J as placementFlag, K as privatizeUrl, N as recommendations, O as sampleHook, Q as urlPrivacyHook } from './types-Dng5ldZO.js';
3
+ export { D as DEFAULT_HOST, L as LIB_VERSION, c as createClient } from './client-DZX6o-eI.js';
4
4
  export { autocapture, tag404 } from './autocapture.js';
5
5
  export { flags } from './flags.js';
6
6
  export { hostHeaders } from './host-headers.js';
@@ -15,11 +15,15 @@ type Importer = (url: string) => Promise<Record<string, unknown>>;
15
15
  /**
16
16
  * Loads the named ESM entries from the versioned asset path (same version as this script, so a pinned loader always
17
17
  * gets matching modules). A module that fails to load is logged and skipped; the client still starts.
18
+ * With a manifest, each module is fetched and hashed (WebCrypto SHA-384) against it before it runs; a mismatch, a
19
+ * module the manifest does not list, or no WebCrypto refuses it. No manifest (an old deploy): load as before.
20
+ * shortcut: the verified bytes are fetched again by `import()` (immutable URL, so the HTTP cache serves it), and
21
+ * lazy chunks a module imports are not hashed; upgrade to blob-import plus chunk hashes when needed.
18
22
  */
19
23
  declare function loadModules(names: readonly LazyModuleName[], base: {
20
24
  assetHost: string;
21
25
  version: string;
22
- }, log: (...a: unknown[]) => void, importer?: Importer): Promise<Module[]>;
26
+ }, log: (...a: unknown[]) => void, importer?: Importer, fetchImpl?: typeof fetch): Promise<Module[]>;
23
27
  /** URL with its path rewritten when it points at one of `origins` (query kept); other URLs pass through. */
24
28
  declare function rewriteUrl(url: string, origins: readonly string[], rewrite: (path: string) => string): string;
25
29