@sprig-technologies/sprig-bundled 2.39.3 → 2.40.0

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-WtDtW2QU.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C4jT0KTM.cjs");exports.DismissReason=e.DismissReason,exports.SprigAPI=e.SprigAPI,exports.SprigEvent=e.SprigEvent,exports.sprig=e.sprig;
package/dist/index.d.ts CHANGED
@@ -1691,6 +1691,7 @@ interface AppProductConfig {
1691
1691
  placement?: FeedbackPlacement;
1692
1692
  }
1693
1693
  interface Config extends MobileReplayConfig {
1694
+ addResponseGroupMeta?: () => Promise<JSONObject>;
1694
1695
  allResponses: unknown[];
1695
1696
  answers?: Answer[];
1696
1697
  apiURL: string;
@@ -1711,6 +1712,7 @@ interface Config extends MobileReplayConfig {
1711
1712
  customMetadata?: Record<string, unknown>;
1712
1713
  customStyles?: string;
1713
1714
  dismissOnPageChange: boolean;
1715
+ enableCspTrustedTypes?: boolean;
1714
1716
  forceBrandedLogo?: boolean;
1715
1717
  endCard?: {
1716
1718
  headline: string;
@@ -1789,6 +1791,7 @@ interface Config extends MobileReplayConfig {
1789
1791
  startingQuestionIdx?: number | null;
1790
1792
  styleNonce?: string;
1791
1793
  studyType?: StudyType;
1794
+ surveyVisitorAttributes: Record<string, unknown>;
1792
1795
  surveyId: number;
1793
1796
  tabTitle: string;
1794
1797
  trackPageViewUrl?: string;
@@ -1806,6 +1809,11 @@ interface Config extends MobileReplayConfig {
1806
1809
  externalUserId?: string;
1807
1810
  };
1808
1811
  }
1812
+ type JSONPrimitive = string | number | boolean | null;
1813
+ type JSONValue = JSONPrimitive | JSONValue[] | {
1814
+ [key: string]: JSONValue;
1815
+ };
1816
+ type JSONObject = Record<string, JSONValue>;
1809
1817
 
1810
1818
  interface Experiment {
1811
1819
  id: string;
@@ -2108,6 +2116,14 @@ declare global {
2108
2116
  // common types
2109
2117
  /** @example "123e4567-e89b-12d3-a456-426614174000" */
2110
2118
  type UUID = string;
2119
+
2120
+ interface Document {
2121
+ write(...text: Array<string | TrustedHTML>): void;
2122
+ }
2123
+
2124
+ interface Element {
2125
+ innerHTML: string | TrustedHTML;
2126
+ }
2111
2127
  }
2112
2128
 
2113
2129
  declare class SprigAPI {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as i, l as r, S as p, m as e } from "./index-D3YqFsXq.js";
1
+ import { d as i, m as r, S as p, n as e } from "./index-gY11yXiE.js";
2
2
  export {
3
3
  i as DismissReason,
4
4
  r as SprigAPI,