@mparticle/web-rokt-kit 1.3.2 → 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 +26 -1
- package/dist/Rokt-Kit.common.js +9 -17
- package/dist/Rokt-Kit.iife.js +9 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
#
|
|
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.
|
package/dist/Rokt-Kit.common.js
CHANGED
|
@@ -54,26 +54,16 @@ var constructor = function () {
|
|
|
54
54
|
_service,
|
|
55
55
|
testMode,
|
|
56
56
|
_trackerId,
|
|
57
|
-
filteredUserAttributes
|
|
58
|
-
filteredUserIdentities,
|
|
59
|
-
appVersion,
|
|
60
|
-
appName,
|
|
61
|
-
customFlags
|
|
57
|
+
filteredUserAttributes
|
|
62
58
|
) {
|
|
63
59
|
var accountId = settings.accountId;
|
|
64
60
|
self.userAttributes = filteredUserAttributes;
|
|
65
61
|
self.onboardingExpProvider = settings.onboardingExpProvider;
|
|
66
62
|
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var launcherOptions = {
|
|
73
|
-
integrationName: generateIntegrationName(integrationName),
|
|
74
|
-
noFunctional: noFunctional,
|
|
75
|
-
noTargeting: noTargeting,
|
|
76
|
-
};
|
|
63
|
+
var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
|
|
64
|
+
launcherOptions.integrationName = generateIntegrationName(
|
|
65
|
+
launcherOptions.integrationName
|
|
66
|
+
);
|
|
77
67
|
|
|
78
68
|
if (testMode) {
|
|
79
69
|
attachLauncher(accountId, launcherOptions);
|
|
@@ -189,7 +179,9 @@ var constructor = function () {
|
|
|
189
179
|
|
|
190
180
|
function attachLauncher(accountId, launcherOptions) {
|
|
191
181
|
var options = mergeObjects(
|
|
192
|
-
{
|
|
182
|
+
{
|
|
183
|
+
accountId: accountId,
|
|
184
|
+
},
|
|
193
185
|
launcherOptions || {}
|
|
194
186
|
);
|
|
195
187
|
|
|
@@ -292,7 +284,7 @@ var constructor = function () {
|
|
|
292
284
|
|
|
293
285
|
function generateIntegrationName(customIntegrationName) {
|
|
294
286
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
295
|
-
var kitVersion = "1.
|
|
287
|
+
var kitVersion = "1.4.1";
|
|
296
288
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
297
289
|
|
|
298
290
|
if (customIntegrationName) {
|
package/dist/Rokt-Kit.iife.js
CHANGED
|
@@ -53,26 +53,16 @@ var RoktKit = (function (exports) {
|
|
|
53
53
|
_service,
|
|
54
54
|
testMode,
|
|
55
55
|
_trackerId,
|
|
56
|
-
filteredUserAttributes
|
|
57
|
-
filteredUserIdentities,
|
|
58
|
-
appVersion,
|
|
59
|
-
appName,
|
|
60
|
-
customFlags
|
|
56
|
+
filteredUserAttributes
|
|
61
57
|
) {
|
|
62
58
|
var accountId = settings.accountId;
|
|
63
59
|
self.userAttributes = filteredUserAttributes;
|
|
64
60
|
self.onboardingExpProvider = settings.onboardingExpProvider;
|
|
65
61
|
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var launcherOptions = {
|
|
72
|
-
integrationName: generateIntegrationName(integrationName),
|
|
73
|
-
noFunctional: noFunctional,
|
|
74
|
-
noTargeting: noTargeting,
|
|
75
|
-
};
|
|
62
|
+
var launcherOptions = window.mParticle.Rokt.launcherOptions || {};
|
|
63
|
+
launcherOptions.integrationName = generateIntegrationName(
|
|
64
|
+
launcherOptions.integrationName
|
|
65
|
+
);
|
|
76
66
|
|
|
77
67
|
if (testMode) {
|
|
78
68
|
attachLauncher(accountId, launcherOptions);
|
|
@@ -188,7 +178,9 @@ var RoktKit = (function (exports) {
|
|
|
188
178
|
|
|
189
179
|
function attachLauncher(accountId, launcherOptions) {
|
|
190
180
|
var options = mergeObjects(
|
|
191
|
-
{
|
|
181
|
+
{
|
|
182
|
+
accountId: accountId,
|
|
183
|
+
},
|
|
192
184
|
launcherOptions || {}
|
|
193
185
|
);
|
|
194
186
|
|
|
@@ -291,7 +283,7 @@ var RoktKit = (function (exports) {
|
|
|
291
283
|
|
|
292
284
|
function generateIntegrationName(customIntegrationName) {
|
|
293
285
|
var coreSdkVersion = window.mParticle.getVersion();
|
|
294
|
-
var kitVersion = "1.
|
|
286
|
+
var kitVersion = "1.4.1";
|
|
295
287
|
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
|
|
296
288
|
|
|
297
289
|
if (customIntegrationName) {
|