@mparticle/web-rokt-kit 1.4.0 → 1.4.1

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
@@ -1 +1,26 @@
1
- # mparticle-javascript-integration-rokt
1
+ # mParticle Rokt Kit Integration
2
+
3
+ # Usage
4
+ JS kits are automatically included with your mParticle.js file when loading mParticle via the [snippet](https://docs.mparticle.com/developers/sdk/web/getting-started/#add-the-sdk-snippet).
5
+
6
+ If loading mParticle via [npm](https://docs.mparticle.com/developers/sdk/web/self-hosting/), you will have to manually include the Rokt kit via npm.
7
+
8
+ ```
9
+ npm i @mparticle/web-rokt-kit
10
+ ```
11
+
12
+ # License
13
+
14
+ Copyright 2025 mParticle, Inc.
15
+
16
+ Licensed under the Apache License, Version 2.0 (the "License");
17
+ you may not use this file except in compliance with the License.
18
+ You may obtain a copy of the License at
19
+
20
+ http://www.apache.org/licenses/LICENSE-2.0
21
+
22
+ Unless required by applicable law or agreed to in writing, software
23
+ distributed under the License is distributed on an "AS IS" BASIS,
24
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ See the License for the specific language governing permissions and
26
+ limitations under the License.
@@ -60,16 +60,13 @@ var constructor = function () {
60
60
  self.userAttributes = filteredUserAttributes;
61
61
  self.onboardingExpProvider = settings.onboardingExpProvider;
62
62
 
63
- var managerOptions = window.mParticle.Rokt.managerOptions || {};
64
- var sandbox = managerOptions.sandbox || false;
65
-
66
63
  var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
67
64
  launcherOptions.integrationName = generateIntegrationName(
68
65
  launcherOptions.integrationName
69
66
  );
70
67
 
71
68
  if (testMode) {
72
- attachLauncher(accountId, sandbox, launcherOptions);
69
+ attachLauncher(accountId, launcherOptions);
73
70
  return;
74
71
  }
75
72
 
@@ -90,7 +87,7 @@ var constructor = function () {
90
87
  typeof window.Rokt.createLauncher === 'function' &&
91
88
  window.Rokt.currentLauncher === undefined
92
89
  ) {
93
- attachLauncher(accountId, sandbox, launcherOptions);
90
+ attachLauncher(accountId, launcherOptions);
94
91
  } else {
95
92
  console.error(
96
93
  'Rokt object is not available after script load.'
@@ -180,11 +177,10 @@ var constructor = function () {
180
177
  delete self.userAttributes[key];
181
178
  }
182
179
 
183
- function attachLauncher(accountId, sandbox, launcherOptions) {
180
+ function attachLauncher(accountId, launcherOptions) {
184
181
  var options = mergeObjects(
185
182
  {
186
183
  accountId: accountId,
187
- sandbox: sandbox,
188
184
  },
189
185
  launcherOptions || {}
190
186
  );
@@ -288,7 +284,7 @@ var constructor = function () {
288
284
 
289
285
  function generateIntegrationName(customIntegrationName) {
290
286
  var coreSdkVersion = window.mParticle.getVersion();
291
- var kitVersion = "1.4.0";
287
+ var kitVersion = "1.4.1";
292
288
  var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
293
289
 
294
290
  if (customIntegrationName) {
@@ -59,16 +59,13 @@ var RoktKit = (function (exports) {
59
59
  self.userAttributes = filteredUserAttributes;
60
60
  self.onboardingExpProvider = settings.onboardingExpProvider;
61
61
 
62
- var managerOptions = window.mParticle.Rokt.managerOptions || {};
63
- var sandbox = managerOptions.sandbox || false;
64
-
65
62
  var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
66
63
  launcherOptions.integrationName = generateIntegrationName(
67
64
  launcherOptions.integrationName
68
65
  );
69
66
 
70
67
  if (testMode) {
71
- attachLauncher(accountId, sandbox, launcherOptions);
68
+ attachLauncher(accountId, launcherOptions);
72
69
  return;
73
70
  }
74
71
 
@@ -89,7 +86,7 @@ var RoktKit = (function (exports) {
89
86
  typeof window.Rokt.createLauncher === 'function' &&
90
87
  window.Rokt.currentLauncher === undefined
91
88
  ) {
92
- attachLauncher(accountId, sandbox, launcherOptions);
89
+ attachLauncher(accountId, launcherOptions);
93
90
  } else {
94
91
  console.error(
95
92
  'Rokt object is not available after script load.'
@@ -179,11 +176,10 @@ var RoktKit = (function (exports) {
179
176
  delete self.userAttributes[key];
180
177
  }
181
178
 
182
- function attachLauncher(accountId, sandbox, launcherOptions) {
179
+ function attachLauncher(accountId, launcherOptions) {
183
180
  var options = mergeObjects(
184
181
  {
185
182
  accountId: accountId,
186
- sandbox: sandbox,
187
183
  },
188
184
  launcherOptions || {}
189
185
  );
@@ -287,7 +283,7 @@ var RoktKit = (function (exports) {
287
283
 
288
284
  function generateIntegrationName(customIntegrationName) {
289
285
  var coreSdkVersion = window.mParticle.getVersion();
290
- var kitVersion = "1.4.0";
286
+ var kitVersion = "1.4.1";
291
287
  var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
292
288
 
293
289
  if (customIntegrationName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-rokt-kit",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "mParticle integration kit for Rokt",
5
5
  "main": "dist/Rokt-Kit.common.js",
6
6
  "files": [