@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.
- package/dist/cjs/{BoostGenericCard-99a3ab28.js → BoostGenericCard-feaf99bd.js} +47 -7
- package/dist/cjs/BoostGenericCard-feaf99bd.js.map +1 -0
- package/dist/cjs/{CertificateDisplayCard-b673e66d.js → CertificateDisplayCard-de7d7318.js} +4 -4
- package/dist/cjs/{CertificateDisplayCard-b673e66d.js.map → CertificateDisplayCard-de7d7318.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-1de23221.js → MeritBadgeDisplayCard-6edd0a69.js} +5 -5
- package/dist/cjs/{MeritBadgeDisplayCard-1de23221.js.map → MeritBadgeDisplayCard-6edd0a69.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-f62ad753.js → MeritBadgeSkillsCount-7ac48ce3.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-f62ad753.js.map → MeritBadgeSkillsCount-7ac48ce3.js.map} +1 -1
- package/dist/cjs/{VCCard-b5d1ecb3.js → VCCard-0b85bc7d.js} +3 -3
- package/dist/cjs/{VCCard-b5d1ecb3.js.map → VCCard-0b85bc7d.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-aab4d52c.js → VCDisplayBackFace-45a8d94f.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-aab4d52c.js.map → VCDisplayBackFace-45a8d94f.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-95b7f7dc.js → VCDisplayCard-9e43c7db.js} +3 -3
- package/dist/cjs/{VCDisplayCard-95b7f7dc.js.map → VCDisplayCard-9e43c7db.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-ede5a360.js → VCDisplayCard2-81d04ca4.js} +33 -17
- package/dist/cjs/VCDisplayCard2-81d04ca4.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-b5824def.js → VCVerificationPill-9416f420.js} +2 -2
- package/dist/cjs/{VCVerificationPill-b5824def.js.map → VCVerificationPill-9416f420.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-c15064b2.js → VerifierStateBadgeAndText-54065ad8.js} +123 -4
- package/dist/cjs/VerifierStateBadgeAndText-54065ad8.js.map +1 -0
- package/dist/cjs/{credential.helpers-98fc74d8.js → credential.helpers-cf5b7e3c.js} +2 -2
- package/dist/cjs/{credential.helpers-98fc74d8.js.map → credential.helpers-cf5b7e3c.js.map} +1 -1
- package/dist/cjs/i18n-8fd90b2f.js +58 -0
- package/dist/cjs/i18n-8fd90b2f.js.map +1 -0
- package/dist/cjs/index-5488badc.js.map +1 -1
- package/dist/cjs/index.js +19 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index14.js +13 -12
- package/dist/cjs/index14.js.map +1 -1
- package/dist/cjs/index22.js +6 -5
- package/dist/cjs/index22.js.map +1 -1
- package/dist/cjs/index39.js +11 -10
- package/dist/cjs/index39.js.map +1 -1
- package/dist/cjs/index4.js +4 -3
- package/dist/cjs/index4.js.map +1 -1
- package/dist/cjs/index40.js +4 -4
- package/dist/cjs/index41.js +5 -5
- package/dist/cjs/index42.js +7 -6
- package/dist/cjs/index42.js.map +1 -1
- package/dist/cjs/index43.js +1 -1
- package/dist/cjs/index46.js +2 -2
- package/dist/cjs/index7.js +4 -4
- package/dist/cjs/{types.esm-f1680b31.js → types.esm-e775534b.js} +94 -2
- package/dist/cjs/types.esm-e775534b.js.map +1 -0
- package/dist/esm/{AchievementCard-c600788a.js → AchievementCard-0f183e9d.js} +2 -2
- package/dist/esm/{AchievementCard-c600788a.js.map → AchievementCard-0f183e9d.js.map} +1 -1
- package/dist/esm/{BoostGenericCard-7dfcc887.js → BoostGenericCard-f0c9952c.js} +48 -9
- package/dist/esm/BoostGenericCard-f0c9952c.js.map +1 -0
- package/dist/esm/{BoostSmallCard-a73b6800.js → BoostSmallCard-3dedb5ae.js} +2 -2
- package/dist/esm/{BoostSmallCard-a73b6800.js.map → BoostSmallCard-3dedb5ae.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-4e9254e0.js → CertificateDisplayCard-34e0b6a8.js} +4 -4
- package/dist/esm/{CertificateDisplayCard-4e9254e0.js.map → CertificateDisplayCard-34e0b6a8.js.map} +1 -1
- package/dist/esm/{GenericCard-a469f2f0.js → GenericCard-b40c0617.js} +2 -2
- package/dist/esm/{GenericCard-a469f2f0.js.map → GenericCard-b40c0617.js.map} +1 -1
- package/dist/esm/{JobListCard-e8b4ab33.js → JobListCard-dfb94830.js} +2 -2
- package/dist/esm/{JobListCard-e8b4ab33.js.map → JobListCard-dfb94830.js.map} +1 -1
- package/dist/esm/{LearnPill-e0720485.js → LearnPill-ce240a4a.js} +2 -2
- package/dist/esm/{LearnPill-e0720485.js.map → LearnPill-ce240a4a.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-a7a504e0.js → MeritBadgeDisplayCard-c6f65ac6.js} +5 -5
- package/dist/esm/{MeritBadgeDisplayCard-a7a504e0.js.map → MeritBadgeDisplayCard-c6f65ac6.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-c5271d7f.js → MeritBadgeSkillsCount-c51c5111.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-c5271d7f.js.map → MeritBadgeSkillsCount-c51c5111.js.map} +1 -1
- package/dist/esm/{VCCard-f017f1ee.js → VCCard-6c85ef2e.js} +3 -3
- package/dist/esm/{VCCard-f017f1ee.js.map → VCCard-6c85ef2e.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-bb60a881.js → VCDisplayBackFace-211f4bfb.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-bb60a881.js.map → VCDisplayBackFace-211f4bfb.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-9905d9d3.js → VCDisplayCard-04660178.js} +3 -3
- package/dist/esm/{VCDisplayCard-9905d9d3.js.map → VCDisplayCard-04660178.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-72bed598.js → VCDisplayCard2-d4594742.js} +33 -17
- package/dist/esm/VCDisplayCard2-d4594742.js.map +1 -0
- package/dist/esm/{VCVerificationPill-83eb61f4.js → VCVerificationPill-eafbb82e.js} +2 -2
- package/dist/esm/{VCVerificationPill-83eb61f4.js.map → VCVerificationPill-eafbb82e.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-60b98d25.js → VerifierStateBadgeAndText-2859597e.js} +123 -4
- package/dist/esm/VerifierStateBadgeAndText-2859597e.js.map +1 -0
- package/dist/esm/{constants-f1ed610c.js → constants-010faf74.js} +2 -2
- package/dist/esm/{constants-f1ed610c.js.map → constants-010faf74.js.map} +1 -1
- package/dist/esm/{credential.helpers-00099c70.js → credential.helpers-845e8c09.js} +2 -2
- package/dist/esm/{credential.helpers-00099c70.js.map → credential.helpers-845e8c09.js.map} +1 -1
- package/dist/esm/i18n-08b606cb.js +50 -0
- package/dist/esm/i18n-08b606cb.js.map +1 -0
- package/dist/esm/index-28917993.js.map +1 -1
- package/dist/esm/{index-cbe3a76a.js → index-7542e9ee.js} +2 -2
- package/dist/esm/{index-cbe3a76a.js.map → index-7542e9ee.js.map} +1 -1
- package/dist/esm/index.js +21 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index13.js +2 -2
- package/dist/esm/index14.js +20 -19
- package/dist/esm/index14.js.map +1 -1
- package/dist/esm/index16.js +2 -2
- package/dist/esm/index19.js +2 -2
- package/dist/esm/index2.js +2 -2
- package/dist/esm/index22.js +6 -5
- package/dist/esm/index22.js.map +1 -1
- package/dist/esm/index30.js +2 -2
- package/dist/esm/index39.js +11 -10
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index4.js +5 -4
- package/dist/esm/index4.js.map +1 -1
- package/dist/esm/index40.js +4 -4
- package/dist/esm/index41.js +5 -5
- package/dist/esm/index42.js +7 -6
- package/dist/esm/index42.js.map +1 -1
- package/dist/esm/index43.js +1 -1
- package/dist/esm/index46.js +2 -2
- package/dist/esm/index5.js +2 -2
- package/dist/esm/index7.js +4 -4
- package/dist/esm/{types.esm-d6b48609.js → types.esm-5b5092be.js} +94 -2
- package/dist/esm/types.esm-5b5092be.js.map +1 -0
- package/dist/index.d.ts +60 -2
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +3 -3
- package/src/components/BoostGenericCard/BoostGenericCard.tsx +53 -19
- package/src/components/MeritBadgeDisplayCard/MeritBadgeFrontFace.tsx +1 -1
- package/src/components/MeritBadgeDisplayCard/VerifierStateBadgeAndText.tsx +7 -5
- package/src/components/VCDisplayCard2/VerificationRow.tsx +28 -4
- package/src/components/VCDisplayCard2/VerificationsBox.tsx +4 -5
- package/src/helpers/lifecycle.helpers.ts +38 -0
- package/src/i18n/index.test.ts +10 -0
- package/src/i18n/index.tsx +90 -0
- package/src/index.ts +6 -0
- package/src/types/index.ts +1 -0
- package/dist/cjs/BoostGenericCard-99a3ab28.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-ede5a360.js.map +0 -1
- package/dist/cjs/VerifierStateBadgeAndText-c15064b2.js.map +0 -1
- package/dist/cjs/types.esm-f1680b31.js.map +0 -1
- package/dist/esm/BoostGenericCard-7dfcc887.js.map +0 -1
- package/dist/esm/VCDisplayCard2-72bed598.js.map +0 -1
- package/dist/esm/VerifierStateBadgeAndText-60b98d25.js.map +0 -1
- package/dist/esm/types.esm-d6b48609.js.map +0 -1
package/dist/esm/index4.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import './index-cb3a593b.js';
|
|
3
|
-
import './types.esm-
|
|
4
|
-
export { B as BoostGenericCard } from './BoostGenericCard-
|
|
3
|
+
import './types.esm-5b5092be.js';
|
|
4
|
+
export { B as BoostGenericCard } from './BoostGenericCard-f0c9952c.js';
|
|
5
5
|
import './index-28917993.js';
|
|
6
|
-
import './index-
|
|
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-
|
|
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';
|
package/dist/esm/index4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index40.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { V as VCDisplayBackFace } from './VCDisplayBackFace-
|
|
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-
|
|
7
|
-
import './types.esm-
|
|
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-
|
|
12
|
+
import './credential.helpers-845e8c09.js';
|
|
13
13
|
import './index-cb3a593b.js';
|
|
14
14
|
import './index-28917993.js';
|
|
15
15
|
import './PuzzlePiece-a3d9cc62.js';
|
package/dist/esm/index41.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as VCDisplayCard } from './VCDisplayCard-
|
|
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-
|
|
9
|
+
import './credential.helpers-845e8c09.js';
|
|
10
10
|
import './index-cb3a593b.js';
|
|
11
|
-
import './types.esm-
|
|
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-
|
|
17
|
-
import './VCVerificationPill-
|
|
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';
|
package/dist/esm/index42.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { S as SelectedSkills } from './VerifierStateBadgeAndText-
|
|
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-
|
|
14
|
-
import './types.esm-
|
|
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-
|
|
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-
|
|
28
|
+
import './CertificateDisplayCard-34e0b6a8.js';
|
|
28
29
|
import './DotsThreeOutline.svg';
|
|
29
30
|
import './QRCodeIcon-8eef4f7c.js';
|
|
30
|
-
import './MeritBadgeDisplayCard-
|
|
31
|
+
import './MeritBadgeDisplayCard-c6f65ac6.js';
|
|
31
32
|
//# sourceMappingURL=index42.js.map
|
package/dist/esm/index42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index42.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index43.js
CHANGED
package/dist/esm/index46.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { V as ValidationStateIndicator } from './VCVerificationPill-
|
|
1
|
+
export { V as ValidationStateIndicator } from './VCVerificationPill-eafbb82e.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './types.esm-
|
|
3
|
+
import './types.esm-5b5092be.js';
|
|
4
4
|
import './RedXCircle.svg';
|
|
5
5
|
import './GreenCheckCircle.svg';
|
|
6
6
|
import './YellowWarningCircle.svg';
|
package/dist/esm/index5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BoostSmallCard } from './BoostSmallCard-
|
|
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-
|
|
9
|
+
import './index-7542e9ee.js';
|
|
10
10
|
import './walletcurrency.webp';
|
|
11
11
|
import './id-purple.png';
|
|
12
12
|
import './backpack.png';
|
package/dist/esm/index7.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-
|
|
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-
|
|
5
|
-
export { V as VERIFIER_STATES } from './VerifierStateBadgeAndText-
|
|
6
|
-
import './credential.helpers-
|
|
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-
|
|
9441
|
+
//# sourceMappingURL=types.esm-5b5092be.js.map
|