@wireai/activation 0.14.0 → 0.14.2
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/CHANGELOG.md +81 -0
- package/README.md +5 -0
- package/dist/analytics/index.js.map +1 -1
- package/dist/analytics/index.mjs.map +1 -1
- package/dist/coachmarks/index.js +69 -6
- package/dist/coachmarks/index.js.map +1 -1
- package/dist/coachmarks/index.mjs +69 -6
- package/dist/coachmarks/index.mjs.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +29 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -8
- package/dist/index.mjs.map +1 -1
- package/dist/questionnaire/index.js +14 -6
- package/dist/questionnaire/index.js.map +1 -1
- package/dist/questionnaire/index.mjs +14 -6
- package/dist/questionnaire/index.mjs.map +1 -1
- package/dist/reviews/index.js +14 -6
- package/dist/reviews/index.js.map +1 -1
- package/dist/reviews/index.mjs +14 -6
- package/dist/reviews/index.mjs.map +1 -1
- package/metro/index.js +3 -1
- package/package.json +1 -1
- package/src/WireOnboarding.tsx +44 -5
- package/src/analytics/currentSession.ts +3 -2
- package/src/coachmarks/SpotlightOverlay.tsx +38 -11
- package/src/coachmarks/expoBlur.ts +135 -0
- package/src/permissions/permissionMemory.ts +39 -14
- package/src/reviews/runtime.ts +75 -23
|
@@ -1378,12 +1378,20 @@ var readStr = (storage, key) => {
|
|
|
1378
1378
|
var PROCESS_OPEN_ID_SLOT = /* @__PURE__ */ Symbol.for("@wireai/activation:processOpenId");
|
|
1379
1379
|
var openIdGlobal = globalThis;
|
|
1380
1380
|
var currentOpenId = () => {
|
|
1381
|
-
|
|
1382
|
-
const
|
|
1383
|
-
if (
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1381
|
+
const live = getCurrentSessionId();
|
|
1382
|
+
const pin = openIdGlobal[PROCESS_OPEN_ID_SLOT];
|
|
1383
|
+
if (!pin) {
|
|
1384
|
+
const openId = live != null ? live : makeSessionId();
|
|
1385
|
+
openIdGlobal[PROCESS_OPEN_ID_SLOT] = { openId, observed: live };
|
|
1386
|
+
return openId;
|
|
1387
|
+
}
|
|
1388
|
+
if (!live || live === pin.observed) return pin.openId;
|
|
1389
|
+
if (pin.observed === void 0) {
|
|
1390
|
+
openIdGlobal[PROCESS_OPEN_ID_SLOT] = { openId: pin.openId, observed: live };
|
|
1391
|
+
return pin.openId;
|
|
1392
|
+
}
|
|
1393
|
+
openIdGlobal[PROCESS_OPEN_ID_SLOT] = { openId: live, observed: live };
|
|
1394
|
+
return live;
|
|
1387
1395
|
};
|
|
1388
1396
|
var bumpSessionCount = (storage, sessionsKey, openKey, openId = currentOpenId()) => {
|
|
1389
1397
|
const lastOpen = readStr(storage, openKey);
|