@replohq/sdk 1.19.0 → 1.20.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.
@@ -1,4 +1,4 @@
1
- export type ReploScriptType = "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "X" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "Cookiebot" | "snippet" | "custom" | "consentPlatform";
1
+ export type ReploScriptType = "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "X" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "HubSpot" | "Cookiebot" | "snippet" | "custom" | "consentPlatform";
2
2
  export type ConsentCategory = "necessary" | "analytics" | "marketing" | "preferences" | "sale_of_data";
3
3
  export type ConsentMode = "off" | "simple" | "per-category";
4
4
  export type ScriptTagDescriptor = {
@@ -20,7 +20,7 @@ export type XPixelEvents = {
20
20
  purchase?: string;
21
21
  };
22
22
  export type ReploScriptEntry = {
23
- type: "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge";
23
+ type: "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "HubSpot";
24
24
  identifier: string;
25
25
  requiredConsent?: ConsentCategory[];
26
26
  } | {
@@ -147,6 +147,16 @@ gtag('config', '${id}');`
147
147
  attributes: { id: "gorgias-chat-widget-install-v3" }
148
148
  }
149
149
  ]
150
+ },
151
+ HubSpot: {
152
+ defaultConsent: ["analytics", "marketing"],
153
+ buildTags: (id) => [
154
+ {
155
+ kind: "external",
156
+ src: `https://js.hs-scripts.com/${id}.js`,
157
+ attributes: { id: "hs-script-loader", async: "true", defer: "true" }
158
+ }
159
+ ]
150
160
  }
151
161
  };
152
162
  function isXEventIdForPixel({
@@ -1,4 +1,4 @@
1
- export type ReploScriptType = "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "X" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "Cookiebot" | "snippet" | "custom" | "consentPlatform";
1
+ export type ReploScriptType = "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "X" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "HubSpot" | "Cookiebot" | "snippet" | "custom" | "consentPlatform";
2
2
  export type ConsentCategory = "necessary" | "analytics" | "marketing" | "preferences" | "sale_of_data";
3
3
  export type ConsentMode = "off" | "simple" | "per-category";
4
4
  declare module "react" {
@@ -24,7 +24,7 @@ export type XPixelEvents = {
24
24
  purchase?: string;
25
25
  };
26
26
  export type ReploScriptEntry = {
27
- type: "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "Cookiebot";
27
+ type: "GA4" | "GoogleTagManager" | "Meta" | "TikTok" | "Pinterest" | "Reddit" | "Snapchat" | "Hotjar" | "MicrosoftClarity" | "Contentsquare" | "Segment" | "Northbeam" | "Gorgias" | "Converge" | "HubSpot" | "Cookiebot";
28
28
  identifier: string;
29
29
  requiredConsent?: ConsentCategory[];
30
30
  } | {
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sdk",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "branch": "HEAD",
5
- "commit": "e3b248dbf12d7b2d1f401d36170686e094d40e3a",
6
- "builtAt": "2026-10-14T22:19:29.297Z"
5
+ "commit": "0522f87c76d625b0a3be1efe1d0bda984f48e7ff",
6
+ "builtAt": "2026-10-14T23:43:58.268Z"
7
7
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sdk",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sdk",
6
- "version": "1.19.0",
6
+ "version": "1.20.0",
7
7
  "branch": "HEAD",
8
- "commit": "e3b248dbf12d7b2d1f401d36170686e094d40e3a",
9
- "builtAt": "2026-10-14T22:19:29.297Z"
8
+ "commit": "0522f87c76d625b0a3be1efe1d0bda984f48e7ff",
9
+ "builtAt": "2026-10-14T23:43:58.268Z"
10
10
  },
11
11
  "description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
12
12
  "license": "SEE LICENSE IN LICENSE",