@learncard/react 2.10.7 → 2.11.0

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 (130) hide show
  1. package/dist/cjs/{BoostGenericCard-99a3ab28.js → BoostGenericCard-feaf99bd.js} +47 -7
  2. package/dist/cjs/BoostGenericCard-feaf99bd.js.map +1 -0
  3. package/dist/cjs/{CertificateDisplayCard-b673e66d.js → CertificateDisplayCard-de7d7318.js} +4 -4
  4. package/dist/cjs/{CertificateDisplayCard-b673e66d.js.map → CertificateDisplayCard-de7d7318.js.map} +1 -1
  5. package/dist/cjs/{MeritBadgeDisplayCard-1de23221.js → MeritBadgeDisplayCard-6edd0a69.js} +5 -5
  6. package/dist/cjs/{MeritBadgeDisplayCard-1de23221.js.map → MeritBadgeDisplayCard-6edd0a69.js.map} +1 -1
  7. package/dist/cjs/{MeritBadgeSkillsCount-f62ad753.js → MeritBadgeSkillsCount-7ac48ce3.js} +2 -2
  8. package/dist/cjs/{MeritBadgeSkillsCount-f62ad753.js.map → MeritBadgeSkillsCount-7ac48ce3.js.map} +1 -1
  9. package/dist/cjs/{VCCard-b5d1ecb3.js → VCCard-0b85bc7d.js} +3 -3
  10. package/dist/cjs/{VCCard-b5d1ecb3.js.map → VCCard-0b85bc7d.js.map} +1 -1
  11. package/dist/cjs/{VCDisplayBackFace-aab4d52c.js → VCDisplayBackFace-45a8d94f.js} +3 -3
  12. package/dist/cjs/{VCDisplayBackFace-aab4d52c.js.map → VCDisplayBackFace-45a8d94f.js.map} +1 -1
  13. package/dist/cjs/{VCDisplayCard-95b7f7dc.js → VCDisplayCard-9e43c7db.js} +3 -3
  14. package/dist/cjs/{VCDisplayCard-95b7f7dc.js.map → VCDisplayCard-9e43c7db.js.map} +1 -1
  15. package/dist/cjs/{VCDisplayCard2-ede5a360.js → VCDisplayCard2-81d04ca4.js} +33 -17
  16. package/dist/cjs/VCDisplayCard2-81d04ca4.js.map +1 -0
  17. package/dist/cjs/{VCVerificationPill-b5824def.js → VCVerificationPill-9416f420.js} +2 -2
  18. package/dist/cjs/{VCVerificationPill-b5824def.js.map → VCVerificationPill-9416f420.js.map} +1 -1
  19. package/dist/cjs/{VerifierStateBadgeAndText-c15064b2.js → VerifierStateBadgeAndText-54065ad8.js} +123 -4
  20. package/dist/cjs/VerifierStateBadgeAndText-54065ad8.js.map +1 -0
  21. package/dist/cjs/{credential.helpers-98fc74d8.js → credential.helpers-cf5b7e3c.js} +2 -2
  22. package/dist/cjs/{credential.helpers-98fc74d8.js.map → credential.helpers-cf5b7e3c.js.map} +1 -1
  23. package/dist/cjs/i18n-8fd90b2f.js +58 -0
  24. package/dist/cjs/i18n-8fd90b2f.js.map +1 -0
  25. package/dist/cjs/index-5488badc.js.map +1 -1
  26. package/dist/cjs/index.js +19 -14
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/cjs/index14.js +13 -12
  29. package/dist/cjs/index14.js.map +1 -1
  30. package/dist/cjs/index22.js +6 -5
  31. package/dist/cjs/index22.js.map +1 -1
  32. package/dist/cjs/index39.js +11 -10
  33. package/dist/cjs/index39.js.map +1 -1
  34. package/dist/cjs/index4.js +4 -3
  35. package/dist/cjs/index4.js.map +1 -1
  36. package/dist/cjs/index40.js +4 -4
  37. package/dist/cjs/index41.js +5 -5
  38. package/dist/cjs/index42.js +7 -6
  39. package/dist/cjs/index42.js.map +1 -1
  40. package/dist/cjs/index43.js +1 -1
  41. package/dist/cjs/index46.js +2 -2
  42. package/dist/cjs/index7.js +4 -4
  43. package/dist/cjs/{types.esm-f1680b31.js → types.esm-e775534b.js} +94 -2
  44. package/dist/cjs/types.esm-e775534b.js.map +1 -0
  45. package/dist/esm/{AchievementCard-c600788a.js → AchievementCard-0f183e9d.js} +2 -2
  46. package/dist/esm/{AchievementCard-c600788a.js.map → AchievementCard-0f183e9d.js.map} +1 -1
  47. package/dist/esm/{BoostGenericCard-7dfcc887.js → BoostGenericCard-f0c9952c.js} +48 -9
  48. package/dist/esm/BoostGenericCard-f0c9952c.js.map +1 -0
  49. package/dist/esm/{BoostSmallCard-a73b6800.js → BoostSmallCard-3dedb5ae.js} +2 -2
  50. package/dist/esm/{BoostSmallCard-a73b6800.js.map → BoostSmallCard-3dedb5ae.js.map} +1 -1
  51. package/dist/esm/{CertificateDisplayCard-4e9254e0.js → CertificateDisplayCard-34e0b6a8.js} +4 -4
  52. package/dist/esm/{CertificateDisplayCard-4e9254e0.js.map → CertificateDisplayCard-34e0b6a8.js.map} +1 -1
  53. package/dist/esm/{GenericCard-a469f2f0.js → GenericCard-b40c0617.js} +2 -2
  54. package/dist/esm/{GenericCard-a469f2f0.js.map → GenericCard-b40c0617.js.map} +1 -1
  55. package/dist/esm/{JobListCard-e8b4ab33.js → JobListCard-dfb94830.js} +2 -2
  56. package/dist/esm/{JobListCard-e8b4ab33.js.map → JobListCard-dfb94830.js.map} +1 -1
  57. package/dist/esm/{LearnPill-e0720485.js → LearnPill-ce240a4a.js} +2 -2
  58. package/dist/esm/{LearnPill-e0720485.js.map → LearnPill-ce240a4a.js.map} +1 -1
  59. package/dist/esm/{MeritBadgeDisplayCard-a7a504e0.js → MeritBadgeDisplayCard-c6f65ac6.js} +5 -5
  60. package/dist/esm/{MeritBadgeDisplayCard-a7a504e0.js.map → MeritBadgeDisplayCard-c6f65ac6.js.map} +1 -1
  61. package/dist/esm/{MeritBadgeSkillsCount-c5271d7f.js → MeritBadgeSkillsCount-c51c5111.js} +2 -2
  62. package/dist/esm/{MeritBadgeSkillsCount-c5271d7f.js.map → MeritBadgeSkillsCount-c51c5111.js.map} +1 -1
  63. package/dist/esm/{VCCard-f017f1ee.js → VCCard-6c85ef2e.js} +3 -3
  64. package/dist/esm/{VCCard-f017f1ee.js.map → VCCard-6c85ef2e.js.map} +1 -1
  65. package/dist/esm/{VCDisplayBackFace-bb60a881.js → VCDisplayBackFace-211f4bfb.js} +3 -3
  66. package/dist/esm/{VCDisplayBackFace-bb60a881.js.map → VCDisplayBackFace-211f4bfb.js.map} +1 -1
  67. package/dist/esm/{VCDisplayCard-9905d9d3.js → VCDisplayCard-04660178.js} +3 -3
  68. package/dist/esm/{VCDisplayCard-9905d9d3.js.map → VCDisplayCard-04660178.js.map} +1 -1
  69. package/dist/esm/{VCDisplayCard2-72bed598.js → VCDisplayCard2-d4594742.js} +33 -17
  70. package/dist/esm/VCDisplayCard2-d4594742.js.map +1 -0
  71. package/dist/esm/{VCVerificationPill-83eb61f4.js → VCVerificationPill-eafbb82e.js} +2 -2
  72. package/dist/esm/{VCVerificationPill-83eb61f4.js.map → VCVerificationPill-eafbb82e.js.map} +1 -1
  73. package/dist/esm/{VerifierStateBadgeAndText-60b98d25.js → VerifierStateBadgeAndText-2859597e.js} +123 -4
  74. package/dist/esm/VerifierStateBadgeAndText-2859597e.js.map +1 -0
  75. package/dist/esm/{constants-f1ed610c.js → constants-010faf74.js} +2 -2
  76. package/dist/esm/{constants-f1ed610c.js.map → constants-010faf74.js.map} +1 -1
  77. package/dist/esm/{credential.helpers-00099c70.js → credential.helpers-845e8c09.js} +2 -2
  78. package/dist/esm/{credential.helpers-00099c70.js.map → credential.helpers-845e8c09.js.map} +1 -1
  79. package/dist/esm/i18n-08b606cb.js +50 -0
  80. package/dist/esm/i18n-08b606cb.js.map +1 -0
  81. package/dist/esm/index-28917993.js.map +1 -1
  82. package/dist/esm/{index-cbe3a76a.js → index-7542e9ee.js} +2 -2
  83. package/dist/esm/{index-cbe3a76a.js.map → index-7542e9ee.js.map} +1 -1
  84. package/dist/esm/index.js +21 -20
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/index13.js +2 -2
  87. package/dist/esm/index14.js +20 -19
  88. package/dist/esm/index14.js.map +1 -1
  89. package/dist/esm/index16.js +2 -2
  90. package/dist/esm/index19.js +2 -2
  91. package/dist/esm/index2.js +2 -2
  92. package/dist/esm/index22.js +6 -5
  93. package/dist/esm/index22.js.map +1 -1
  94. package/dist/esm/index30.js +2 -2
  95. package/dist/esm/index39.js +11 -10
  96. package/dist/esm/index39.js.map +1 -1
  97. package/dist/esm/index4.js +5 -4
  98. package/dist/esm/index4.js.map +1 -1
  99. package/dist/esm/index40.js +4 -4
  100. package/dist/esm/index41.js +5 -5
  101. package/dist/esm/index42.js +7 -6
  102. package/dist/esm/index42.js.map +1 -1
  103. package/dist/esm/index43.js +1 -1
  104. package/dist/esm/index46.js +2 -2
  105. package/dist/esm/index5.js +2 -2
  106. package/dist/esm/index7.js +4 -4
  107. package/dist/esm/{types.esm-d6b48609.js → types.esm-5b5092be.js} +94 -2
  108. package/dist/esm/types.esm-5b5092be.js.map +1 -0
  109. package/dist/index.d.ts +60 -2
  110. package/dist/main.css +1 -1
  111. package/dist/main.js +1 -1
  112. package/package.json +3 -3
  113. package/src/components/BoostGenericCard/BoostGenericCard.tsx +53 -19
  114. package/src/components/MeritBadgeDisplayCard/MeritBadgeFrontFace.tsx +1 -1
  115. package/src/components/MeritBadgeDisplayCard/VerifierStateBadgeAndText.tsx +7 -5
  116. package/src/components/VCDisplayCard2/VerificationRow.tsx +28 -4
  117. package/src/components/VCDisplayCard2/VerificationsBox.tsx +4 -5
  118. package/src/helpers/lifecycle.helpers.ts +38 -0
  119. package/src/i18n/index.test.ts +10 -0
  120. package/src/i18n/index.tsx +90 -0
  121. package/src/index.ts +6 -0
  122. package/src/types/index.ts +1 -0
  123. package/dist/cjs/BoostGenericCard-99a3ab28.js.map +0 -1
  124. package/dist/cjs/VCDisplayCard2-ede5a360.js.map +0 -1
  125. package/dist/cjs/VerifierStateBadgeAndText-c15064b2.js.map +0 -1
  126. package/dist/cjs/types.esm-f1680b31.js.map +0 -1
  127. package/dist/esm/BoostGenericCard-7dfcc887.js.map +0 -1
  128. package/dist/esm/VCDisplayCard2-72bed598.js.map +0 -1
  129. package/dist/esm/VerifierStateBadgeAndText-60b98d25.js.map +0 -1
  130. package/dist/esm/types.esm-d6b48609.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import 'react';
2
2
  import './index-cb3a593b.js';
3
- import './types.esm-d6b48609.js';
4
- export { B as BoostGenericCard } from './BoostGenericCard-7dfcc887.js';
3
+ import './types.esm-5b5092be.js';
4
+ export { B as BoostGenericCard } from './BoostGenericCard-f0c9952c.js';
5
5
  import './index-28917993.js';
6
- import './index-cbe3a76a.js';
6
+ import './index-7542e9ee.js';
7
7
  import './walletcurrency.webp';
8
8
  import './id-purple.png';
9
9
  import './backpack.png';
@@ -22,11 +22,12 @@ import './minigradcapcolored.svg';
22
22
  import './minipuzzlecolored.svg';
23
23
  import './IDDisplayIcon-f6993140.js';
24
24
  import './PuzzlePiece-a3d9cc62.js';
25
- import './credential.helpers-00099c70.js';
25
+ import './credential.helpers-845e8c09.js';
26
26
  import './User-f5ea0f01.js';
27
27
  import './Trophy-fc7fdec4.js';
28
28
  import './ThreeDotVertical-ccbbc8ef.js';
29
29
  import './BadgeThumbnailImg-7d436367.js';
30
+ import './i18n-08b606cb.js';
30
31
  import './CircleCheckButton-23a9c7d4.js';
31
32
  import './RoundedPill-50279e5d.js';
32
33
  import './icons-fdd35170.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,15 +1,15 @@
1
- export { V as VCDisplayBackFace } from './VCDisplayBackFace-bb60a881.js';
1
+ export { V as VCDisplayBackFace } from './VCDisplayBackFace-211f4bfb.js';
2
2
  import 'react';
3
3
  import './VCVerificationCheck-8b8b7a76.js';
4
4
  import './vc.check.svg';
5
5
  import './CircleSpinner-03a329fc.js';
6
- import './VCVerificationPill-83eb61f4.js';
7
- import './types.esm-d6b48609.js';
6
+ import './VCVerificationPill-eafbb82e.js';
7
+ import './types.esm-5b5092be.js';
8
8
  import './RedXCircle.svg';
9
9
  import './GreenCheckCircle.svg';
10
10
  import './YellowWarningCircle.svg';
11
11
  import './ArrowArcRight.svg';
12
- import './credential.helpers-00099c70.js';
12
+ import './credential.helpers-845e8c09.js';
13
13
  import './index-cb3a593b.js';
14
14
  import './index-28917993.js';
15
15
  import './PuzzlePiece-a3d9cc62.js';
@@ -1,4 +1,4 @@
1
- export { V as VCDisplayCard } from './VCDisplayCard-9905d9d3.js';
1
+ export { V as VCDisplayCard } from './VCDisplayCard-04660178.js';
2
2
  import 'react';
3
3
  import './FlippyCard-458dc9b1.js';
4
4
  import './icon.green.fat-arrow.png';
@@ -6,15 +6,15 @@ import './UserProfilePicture-50c34186.js';
6
6
  import './VCVerificationCheck-8b8b7a76.js';
7
7
  import './vc.check.svg';
8
8
  import './CircleSpinner-03a329fc.js';
9
- import './credential.helpers-00099c70.js';
9
+ import './credential.helpers-845e8c09.js';
10
10
  import './index-cb3a593b.js';
11
- import './types.esm-d6b48609.js';
11
+ import './types.esm-5b5092be.js';
12
12
  import './index-28917993.js';
13
13
  import './PuzzlePiece-a3d9cc62.js';
14
14
  import './User-f5ea0f01.js';
15
15
  import './Trophy-fc7fdec4.js';
16
- import './VCDisplayBackFace-bb60a881.js';
17
- import './VCVerificationPill-83eb61f4.js';
16
+ import './VCDisplayBackFace-211f4bfb.js';
17
+ import './VCVerificationPill-eafbb82e.js';
18
18
  import './RedXCircle.svg';
19
19
  import './GreenCheckCircle.svg';
20
20
  import './YellowWarningCircle.svg';
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { S as SelectedSkills } from './VerifierStateBadgeAndText-60b98d25.js';
2
+ export { S as SelectedSkills } from './VerifierStateBadgeAndText-2859597e.js';
3
3
  import './athletics.png';
4
4
  import './business.png';
5
5
  import './creative.png';
@@ -10,22 +10,23 @@ import './social.png';
10
10
  import './stem.png';
11
11
  import './trade.png';
12
12
  import './index-cb3a593b.js';
13
- export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-72bed598.js';
14
- import './types.esm-d6b48609.js';
13
+ export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-d4594742.js';
14
+ import './types.esm-5b5092be.js';
15
+ import './i18n-08b606cb.js';
15
16
  import './id-sleeve.png';
16
17
  import './PuzzlePiece-a3d9cc62.js';
17
18
  import './VCVerificationCheck-8b8b7a76.js';
18
19
  import './vc.check.svg';
19
20
  import './CircleSpinner-03a329fc.js';
20
21
  import './UserProfilePicture-50c34186.js';
21
- import './credential.helpers-00099c70.js';
22
+ import './credential.helpers-845e8c09.js';
22
23
  import './index-28917993.js';
23
24
  import './User-f5ea0f01.js';
24
25
  import './Trophy-fc7fdec4.js';
25
26
  import './Lightbox-f0338a0c.js';
26
27
  import 'react-dom';
27
- import './CertificateDisplayCard-4e9254e0.js';
28
+ import './CertificateDisplayCard-34e0b6a8.js';
28
29
  import './DotsThreeOutline.svg';
29
30
  import './QRCodeIcon-8eef4f7c.js';
30
- import './MeritBadgeDisplayCard-a7a504e0.js';
31
+ import './MeritBadgeDisplayCard-c6f65ac6.js';
31
32
  //# sourceMappingURL=index42.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,5 +2,5 @@ import 'react';
2
2
  import './icon.green.fat-arrow.png';
3
3
  import './vc.check.svg';
4
4
  import './index-cb3a593b.js';
5
- import './types.esm-d6b48609.js';
5
+ import './types.esm-5b5092be.js';
6
6
  //# sourceMappingURL=index43.js.map
@@ -1,6 +1,6 @@
1
- export { V as ValidationStateIndicator } from './VCVerificationPill-83eb61f4.js';
1
+ export { V as ValidationStateIndicator } from './VCVerificationPill-eafbb82e.js';
2
2
  import 'react';
3
- import './types.esm-d6b48609.js';
3
+ import './types.esm-5b5092be.js';
4
4
  import './RedXCircle.svg';
5
5
  import './GreenCheckCircle.svg';
6
6
  import './YellowWarningCircle.svg';
@@ -1,4 +1,4 @@
1
- export { B as BoostSmallCard } from './BoostSmallCard-a73b6800.js';
1
+ export { B as BoostSmallCard } from './BoostSmallCard-3dedb5ae.js';
2
2
  import 'react';
3
3
  import './CaretRightFilled.svg';
4
4
  import './addawardlight.svg';
@@ -6,7 +6,7 @@ import './ThreeDotVertical-ccbbc8ef.js';
6
6
  import './UserProfilePicture-50c34186.js';
7
7
  import './BadgeThumbnailImg-7d436367.js';
8
8
  import './index-28917993.js';
9
- import './index-cbe3a76a.js';
9
+ import './index-7542e9ee.js';
10
10
  import './walletcurrency.webp';
11
11
  import './id-purple.png';
12
12
  import './backpack.png';
@@ -1,9 +1,9 @@
1
1
  import 'react';
2
- export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-4e9254e0.js';
2
+ export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-34e0b6a8.js';
3
3
  import './index-cb3a593b.js';
4
- import './types.esm-d6b48609.js';
5
- export { V as VERIFIER_STATES } from './VerifierStateBadgeAndText-60b98d25.js';
6
- import './credential.helpers-00099c70.js';
4
+ import './types.esm-5b5092be.js';
5
+ export { V as VERIFIER_STATES } from './VerifierStateBadgeAndText-2859597e.js';
6
+ import './credential.helpers-845e8c09.js';
7
7
  import './index-28917993.js';
8
8
  import './PuzzlePiece-a3d9cc62.js';
9
9
  import './User-f5ea0f01.js';
@@ -8008,6 +8008,9 @@ var LCNProfileValidator = object({
8008
8008
  role: string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
8009
8009
  dob: string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
8010
8010
  country: string().optional().describe("Country for the profile."),
8011
+ locale: string().optional().describe(
8012
+ "BCP-47 language tag (e.g. 'es', 'fr', 'ar') \u2014 the user's preferred language for server-sent notifications and emails."
8013
+ ),
8011
8014
  approved: boolean().optional().describe("Approval status for the profile.")
8012
8015
  });
8013
8016
  var LCNPublicProfileValidator = LCNProfileValidator.pick({
@@ -8554,7 +8557,10 @@ var LCNNotificationTypeEnumValidator = _enum([
8554
8557
  "GUARDIAN_APPROVAL_PENDING",
8555
8558
  "GUARDIAN_APPROVED",
8556
8559
  "GUARDIAN_REJECTED",
8557
- "APP_NOTIFICATION"
8560
+ "APP_NOTIFICATION",
8561
+ "CREDENTIAL_REVOKED",
8562
+ "CREDENTIAL_SUSPENDED",
8563
+ "CREDENTIAL_UNSUSPENDED"
8558
8564
  ]);
8559
8565
  var LCNNotificationMessageValidator = object({
8560
8566
  title: string().optional(),
@@ -9344,6 +9350,92 @@ object({
9344
9350
  statusPurposes: array(BitstringStatusPurposeValidator).optional(),
9345
9351
  listSize: number().int().positive().optional()
9346
9352
  }).default({});
9353
+ var inAppMessagePlatformValidator = _enum(["ios", "android", "web"]);
9354
+ var inAppMessageVersionSourceValidator = _enum(["native", "web", "capgo"]);
9355
+ var inAppMessageVersionOpValidator = _enum(["lt", "lte", "eq", "gte", "gt"]);
9356
+ var platformPredicateValidator = object({ platform: array(inAppMessagePlatformValidator).nonempty() }).strict();
9357
+ var rolePredicateValidator = object({ role: array(string()).nonempty() }).strict();
9358
+ var versionPredicateValidator = object({
9359
+ version: object({
9360
+ source: inAppMessageVersionSourceValidator,
9361
+ op: inAppMessageVersionOpValidator,
9362
+ value: string()
9363
+ }).strict()
9364
+ }).strict();
9365
+ var inAppMessagePredicateValidator = lazy(
9366
+ () => union([
9367
+ platformPredicateValidator,
9368
+ rolePredicateValidator,
9369
+ versionPredicateValidator,
9370
+ object({ all: array(inAppMessagePredicateValidator) }).strict(),
9371
+ object({ any: array(inAppMessagePredicateValidator) }).strict(),
9372
+ object({ not: inAppMessagePredicateValidator }).strict()
9373
+ ])
9374
+ );
9375
+ var inAppMessageActionStyleValidator = _enum(["primary", "secondary", "positive", "dismiss"]).default("secondary");
9376
+ var internalLinkActionValidator = object({ type: literal("internalLink"), path: string() }).passthrough();
9377
+ var externalLinkActionValidator = object({ type: literal("externalLink"), url: string() }).passthrough();
9378
+ var appStoreActionValidator = object({
9379
+ type: literal("appStore"),
9380
+ iosUrl: string().optional(),
9381
+ androidUrl: string().optional(),
9382
+ webUrl: string().optional()
9383
+ }).passthrough();
9384
+ var capgoUpdateActionValidator = object({ type: literal("capgoUpdate") }).passthrough();
9385
+ var dismissActionValidator = object({ type: literal("dismiss") }).passthrough();
9386
+ var inAppMessageActionTargetValidator = union([
9387
+ internalLinkActionValidator,
9388
+ externalLinkActionValidator,
9389
+ appStoreActionValidator,
9390
+ capgoUpdateActionValidator,
9391
+ dismissActionValidator
9392
+ ]);
9393
+ var inAppMessageActionValidator = object({
9394
+ label: string(),
9395
+ style: inAppMessageActionStyleValidator,
9396
+ action: inAppMessageActionTargetValidator,
9397
+ /** When true, the message closes after this action runs (default true). */
9398
+ closeOnComplete: boolean().default(true)
9399
+ }).passthrough();
9400
+ var inAppMessageMediaValidator = object({
9401
+ type: _enum(["youtube", "image", "gif"]),
9402
+ url: string(),
9403
+ /** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
9404
+ aspect: string().default("16:9"),
9405
+ /** Alt text for images/gifs (accessibility). */
9406
+ alt: string().optional()
9407
+ }).passthrough();
9408
+ var inAppMessageFrequencyValidator = union([
9409
+ literal("once"),
9410
+ literal("session"),
9411
+ literal("always"),
9412
+ object({ everyDays: number().positive() }).strict()
9413
+ ]).default("once");
9414
+ var inAppMessagePresentationValidator = _enum(["modal", "banner", "toast"]).default("modal");
9415
+ var inAppMessageValidator = object({
9416
+ /** Stable identifier — used to persist dismissal / frequency state. */
9417
+ id: string(),
9418
+ /** Higher priority wins when multiple messages match. Default 0. */
9419
+ priority: number().default(0),
9420
+ /** When false, the message is required/blocking (no dismiss affordance). */
9421
+ dismissible: boolean().default(true),
9422
+ frequency: inAppMessageFrequencyValidator,
9423
+ presentation: inAppMessagePresentationValidator,
9424
+ media: inAppMessageMediaValidator.optional(),
9425
+ /** Optional emoji hero glyph — rendered only when `media` is not set. */
9426
+ emoji: string().optional(),
9427
+ title: string(),
9428
+ body: string().optional(),
9429
+ actions: array(inAppMessageActionValidator).default([]),
9430
+ /** Targeting predicate tree. Omitted → matches everyone. */
9431
+ targeting: inAppMessagePredicateValidator.optional(),
9432
+ /** Allow disabling a message without removing it from the flag. */
9433
+ enabled: boolean().default(true)
9434
+ }).passthrough();
9435
+ object({
9436
+ version: number().default(1),
9437
+ messages: array(inAppMessageValidator).default([])
9438
+ }).passthrough();
9347
9439
 
9348
9440
  export { VerificationStatusEnum as V, literal as l, number as n, object as o, string as s, union as u };
9349
- //# sourceMappingURL=types.esm-d6b48609.js.map
9441
+ //# sourceMappingURL=types.esm-5b5092be.js.map