@wireai/activation 0.13.3 → 0.13.5

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.
Files changed (58) hide show
  1. package/AGENTS.md +3 -1
  2. package/CHANGELOG.md +63 -0
  3. package/INTEGRATION_PROMPT.md +7 -1
  4. package/README.md +52 -0
  5. package/dist/analytics/index.d.mts +86 -6
  6. package/dist/analytics/index.d.ts +86 -6
  7. package/dist/analytics/index.js +167 -2
  8. package/dist/analytics/index.js.map +1 -1
  9. package/dist/analytics/index.mjs +167 -3
  10. package/dist/analytics/index.mjs.map +1 -1
  11. package/dist/coachmarks/index.d.mts +1 -1
  12. package/dist/coachmarks/index.d.ts +1 -1
  13. package/dist/coachmarks/index.js.map +1 -1
  14. package/dist/coachmarks/index.mjs.map +1 -1
  15. package/dist/{currentSession-BoWtr3Jp.d.mts → currentSession-DgJf0fRz.d.mts} +2 -2
  16. package/dist/{currentSession-CCOMlaQ2.d.ts → currentSession-EOHU64QD.d.ts} +2 -2
  17. package/dist/{decision-Cjw0jbEj.d.mts → decision-Bgo17oH7.d.mts} +1 -1
  18. package/dist/{decision-GfpXAsk_.d.ts → decision-Bkh_LigV.d.ts} +1 -1
  19. package/dist/index.d.mts +4 -4
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +4 -2
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4 -2
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/questionnaire/index.d.mts +3 -3
  26. package/dist/questionnaire/index.d.ts +3 -3
  27. package/dist/questionnaire/index.js.map +1 -1
  28. package/dist/questionnaire/index.mjs.map +1 -1
  29. package/dist/reviews/index.d.mts +5 -5
  30. package/dist/reviews/index.d.ts +5 -5
  31. package/dist/reviews/index.js +4 -2
  32. package/dist/reviews/index.js.map +1 -1
  33. package/dist/reviews/index.mjs +4 -2
  34. package/dist/reviews/index.mjs.map +1 -1
  35. package/dist/showcase/index.d.mts +1 -1
  36. package/dist/showcase/index.d.ts +1 -1
  37. package/dist/showcase/index.js.map +1 -1
  38. package/dist/showcase/index.mjs.map +1 -1
  39. package/dist/{transport-DFuPyCoJ.d.ts → transport-B_0SgCBe.d.ts} +1 -1
  40. package/dist/{transport-CefdERPs.d.mts → transport-j5gFfJhK.d.mts} +1 -1
  41. package/dist/{types-CKFhyrMu.d.mts → types-BpwiRpA8.d.mts} +1 -1
  42. package/dist/{types-CKFhyrMu.d.ts → types-BpwiRpA8.d.ts} +1 -1
  43. package/dist/{types-l2tfg23P.d.mts → types-Cju-1_jT.d.mts} +1 -1
  44. package/dist/{types-UVYt9BJe.d.ts → types-h2BZvl1t.d.ts} +1 -1
  45. package/llms.txt +1 -1
  46. package/package.json +3 -1
  47. package/src/activation/revalidation.ts +9 -1
  48. package/src/analytics/currentSession.ts +10 -0
  49. package/src/analytics/eventQueue.ts +5 -0
  50. package/src/analytics/index.ts +6 -0
  51. package/src/analytics/reportClientEvent.ts +29 -7
  52. package/src/analytics/wireDoctor.ts +330 -0
  53. package/src/coachmarks/runtime.ts +10 -1
  54. package/src/context/deviceId.ts +10 -1
  55. package/src/features/WireFeaturesProvider.tsx +8 -0
  56. package/src/identity/identityRecord.ts +9 -1
  57. package/src/reviews/runtime.ts +11 -1
  58. package/src/theme/ThemeContext.tsx +7 -0
@@ -1,12 +1,12 @@
1
1
  import React__default from 'react';
2
- import { R as ReviewGateProps, a as ReviewPresentation, U as UseReviewGateOptions, b as ReviewGateController, c as ReviewDecision, d as ReviewStoreConfig } from '../types-l2tfg23P.mjs';
3
- export { e as RatingRoute, f as ReviewConfig, g as ReviewDecisionResponse, h as ReviewGateEvent, i as ReviewGateEventName, j as ReviewSubmission, k as ReviewTarget, S as SubmitResult } from '../types-l2tfg23P.mjs';
2
+ import { R as ReviewGateProps, a as ReviewPresentation, U as UseReviewGateOptions, b as ReviewGateController, c as ReviewDecision, d as ReviewStoreConfig } from '../types-Cju-1_jT.mjs';
3
+ export { e as RatingRoute, f as ReviewConfig, g as ReviewDecisionResponse, h as ReviewGateEvent, i as ReviewGateEventName, j as ReviewSubmission, k as ReviewTarget, S as SubmitResult } from '../types-Cju-1_jT.mjs';
4
4
  export { C as ReviewModal, a as ReviewModalHandle, b as ReviewModalProps } from '../CenteredModal-C3qQBHsA.mjs';
5
- export { G as GateRules, a as GateSignals, b as buildReviewSubmission, d as decideReview, e as evaluateGate, r as resolveRules, c as routeRating } from '../decision-Cjw0jbEj.mjs';
5
+ export { G as GateRules, a as GateSignals, b as buildReviewSubmission, d as decideReview, e as evaluateGate, r as resolveRules, c as routeRating } from '../decision-Bgo17oH7.mjs';
6
6
  import { c as OnboardingFonts } from '../types-BKfpdZzX.mjs';
7
- export { F as FetchReviewDecisionOptions, R as ReportAppEventOptions, a as ReviewSubmitResult, f as fetchReviewDecision, r as reportAppEvent, s as submitReview } from '../transport-CefdERPs.mjs';
7
+ export { F as FetchReviewDecisionOptions, R as ReportAppEventOptions, a as ReviewSubmitResult, f as fetchReviewDecision, r as reportAppEvent, s as submitReview } from '../transport-j5gFfJhK.mjs';
8
8
  import '../types-BcmagF6K.mjs';
9
- import '../types-CKFhyrMu.mjs';
9
+ import '../types-BpwiRpA8.mjs';
10
10
 
11
11
  /**
12
12
  * Runtime helpers for the review gate: the `wire_review_*` gate keys and small
@@ -1,12 +1,12 @@
1
1
  import React__default from 'react';
2
- import { R as ReviewGateProps, a as ReviewPresentation, U as UseReviewGateOptions, b as ReviewGateController, c as ReviewDecision, d as ReviewStoreConfig } from '../types-UVYt9BJe.js';
3
- export { e as RatingRoute, f as ReviewConfig, g as ReviewDecisionResponse, h as ReviewGateEvent, i as ReviewGateEventName, j as ReviewSubmission, k as ReviewTarget, S as SubmitResult } from '../types-UVYt9BJe.js';
2
+ import { R as ReviewGateProps, a as ReviewPresentation, U as UseReviewGateOptions, b as ReviewGateController, c as ReviewDecision, d as ReviewStoreConfig } from '../types-h2BZvl1t.js';
3
+ export { e as RatingRoute, f as ReviewConfig, g as ReviewDecisionResponse, h as ReviewGateEvent, i as ReviewGateEventName, j as ReviewSubmission, k as ReviewTarget, S as SubmitResult } from '../types-h2BZvl1t.js';
4
4
  export { C as ReviewModal, a as ReviewModalHandle, b as ReviewModalProps } from '../CenteredModal-Cdgns6--.js';
5
- export { G as GateRules, a as GateSignals, b as buildReviewSubmission, d as decideReview, e as evaluateGate, r as resolveRules, c as routeRating } from '../decision-GfpXAsk_.js';
5
+ export { G as GateRules, a as GateSignals, b as buildReviewSubmission, d as decideReview, e as evaluateGate, r as resolveRules, c as routeRating } from '../decision-Bkh_LigV.js';
6
6
  import { c as OnboardingFonts } from '../types-BKfpdZzX.js';
7
- export { F as FetchReviewDecisionOptions, R as ReportAppEventOptions, a as ReviewSubmitResult, f as fetchReviewDecision, r as reportAppEvent, s as submitReview } from '../transport-DFuPyCoJ.js';
7
+ export { F as FetchReviewDecisionOptions, R as ReportAppEventOptions, a as ReviewSubmitResult, f as fetchReviewDecision, r as reportAppEvent, s as submitReview } from '../transport-B_0SgCBe.js';
8
8
  import '../types-BcmagF6K.js';
9
- import '../types-CKFhyrMu.js';
9
+ import '../types-BpwiRpA8.js';
10
10
 
11
11
  /**
12
12
  * Runtime helpers for the review gate: the `wire_review_*` gate keys and small
@@ -752,13 +752,15 @@ var toWireEvents = (events) => events.map((event) => {
752
752
  return rest;
753
753
  }
754
754
  });
755
- var buildEventsRequest = (target, events) => {
755
+ var buildEventsRequest = (target, events, options) => {
756
756
  if (!(target == null ? void 0 : target.serverUrl) || events.length === 0) return null;
757
757
  try {
758
758
  const url = `${target.serverUrl.replace(/\/$/, "")}/v1/events`;
759
759
  const headers = { "Content-Type": "application/json" };
760
760
  if (target.apiKey) headers.Authorization = `Bearer ${target.apiKey}`;
761
- const body = JSON.stringify({ events: toWireEvents(events) });
761
+ const envelope = { events: toWireEvents(events) };
762
+ if ((options == null ? void 0 : options.dryRun) === true) ;
763
+ const body = JSON.stringify(envelope);
762
764
  return { url, init: { method: "POST", headers, body } };
763
765
  } catch {
764
766
  return null;