feat: migrate Rokt Pay Plus kit to monorepo (v1.1.0) - #1302
Conversation
PR SummaryLow Risk Overview The new kit is a postMessage bridge for Pay+ iframes: it maps mParticle page views to The migrated package is v1.1.0, including the Reviewed by Cursor Bugbot for commit da23ff1. Bugbot is set up for automated code reviews on this repo. Configure here. |
1d3e3b3 to
453fab1
Compare
The merge-base changed after approval.
288ee82 to
822c819
Compare
453fab1 to
da23ff1
Compare
|




Summary
Migrates
@mparticle/web-rokt-pay-plus-kit(module ID 184) from its standalone repo intokits/roktpayplus/, matching the TypeScript/Vite/Vitest toolchain established by the Rokt kit migration.What is Rokt Pay Plus
Rokt Pay+ is a Rokt product that runs inside an iframe on an advertiser's checkout / post-purchase page. This kit is a postMessage bridge: it receives the events the advertiser already logs to mParticle and re-emits them as Pay+ signals (
initiated,stepComplete,approved,pending,purchaseCompleted, etc.) to the embedding window. The kit is silent on non-iframed pages — all signals are no-ops whenwindow.parent === window.Funnel progression is driven by page views; conversions and outcomes are driven by custom events. Everything is configurable via dashboard settings — no Pay+-specific code required in the advertiser's application.
Files
src/RoktPayPlus-Kit.tsmain(v1.1.0)test/src/RoktPayPlus-Kit.spec.tseslint.config.mjsCHANGELOG.md,README.mdpackage-lock.jsonpackage.jsonvite.config.tstsconfig.jsonMonorepo adaptations
package.json@mparticle/web-sdkmoved fromdependencies→peerDependencies: "^3.0.0"+devDependencies: "^2.73.1"(same pattern as the Rokt kit)repositoryURL updated to point at the monorepovite.config.tsrollupOptions.externalset to exclude@mparticle/web-sdkfrom the build outputdefineadded forprocess.env.PACKAGE_VERSION(lockstep version injection)aliasadded:@mparticle/web-sdk/internal→../../src/internal-types.ts@mparticle/web-sdk→../../dist/mparticle.common.jstsconfig.jsonpathsadded to resolve@mparticle/web-sdk/internal→../../src/internal-types.tsfor type checkingTest plan
npm install && npm run build— buildsdist/RoktPayPlus-Kit.{iife,esm,common}.jscleanlynpm test— 13/13 Vitest tests passrun-kit-testsjob passes forkits/roktpayplus