create-ailk 0.35.1 → 0.37.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/README.md +1 -1
- package/component-catalog.json +51 -1
- package/component-catalog.md +8 -5
- package/dist/lib/env-catalog.js +8 -0
- package/dist/surfaces.js +66 -22
- package/dist/topology.d.ts +4 -4
- package/dist/topology.js +104 -60
- package/dist/update.d.ts +19 -1
- package/dist/update.js +293 -35
- package/package.json +3 -3
- package/templates/.env.example +38 -0
- package/templates/apps/api/.env.example +45 -0
- package/templates/apps/api/CLAUDE.md +12 -4
- package/templates/apps/api/src/lib/__mocks__/prisma.ts +7 -0
- package/templates/apps/mcp/CLAUDE.md +4 -2
- package/templates/apps/web/.env.example +16 -0
- package/templates/apps/web/CLAUDE.md +73 -5
- package/templates/apps/web/app/[locale]/(auth)/__tests__/password-reset.test.tsx +2 -0
- package/templates/apps/web/app/[locale]/(auth)/reset-password/__tests__/return.test.tsx +179 -0
- package/templates/apps/web/app/[locale]/(auth)/reset-password/page.tsx +22 -2
- package/templates/apps/web/app/[locale]/(auth)/reset-password/reset-password-card.tsx +9 -2
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/page.test.tsx +52 -1
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/remembered-method.test.ts +43 -0
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/sign-in-card.test.tsx +108 -1
- package/templates/apps/web/app/[locale]/(auth)/sign-in/page.tsx +36 -3
- package/templates/apps/web/app/[locale]/(auth)/sign-in/remembered-method.ts +37 -0
- package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-card.tsx +90 -33
- package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-text.ts +9 -4
- package/templates/apps/web/app/[locale]/(authed)/__tests__/gate.test.tsx +79 -348
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/billing.test.tsx +241 -66
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/general.test.tsx +242 -28
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/hub-mode.test.tsx +377 -151
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/item.test.tsx +26 -1
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout-sign-out.test.tsx +10 -5
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout.test.tsx +17 -6
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-menu.test.tsx +51 -12
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-popups.test.tsx +17 -2
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/notifications.test.tsx +153 -2
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/page.test.tsx +206 -23
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/popups.test.tsx +150 -188
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/privacy.test.tsx +235 -177
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/rich-translator.ts +63 -0
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/security.test.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/thread.test.tsx +340 -0
- package/templates/apps/web/app/[locale]/(authed)/account/account-data.ts +7 -5
- package/templates/apps/web/app/[locale]/(authed)/account/account-frame.tsx +20 -4
- package/templates/apps/web/app/[locale]/(authed)/account/actions.ts +8 -4
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +161 -0
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/__tests__/page.test.tsx +426 -0
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/appointments-data.ts +76 -0
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +139 -0
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +92 -24
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +32 -1
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/file-route.test.ts +76 -3
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/page.test.tsx +290 -41
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-data.ts +109 -11
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +43 -44
- package/templates/apps/web/app/[locale]/(authed)/account/billing/__tests__/offerings.test.ts +99 -0
- package/templates/apps/web/app/[locale]/(authed)/account/billing/offerings.ts +123 -0
- package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +323 -73
- package/templates/apps/web/app/[locale]/(authed)/account/billing-source.ts +199 -43
- package/templates/apps/web/app/[locale]/(authed)/account/components/request-quote.tsx +52 -7
- package/templates/apps/web/app/[locale]/(authed)/account/connect/__tests__/page.test.tsx +8 -1
- package/templates/apps/web/app/[locale]/(authed)/account/connect/page.tsx +7 -3
- package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/phone-verification.test.tsx +215 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/seam-imports.test.ts +65 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/account-name.ts +36 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/contact-actions.ts +70 -2
- package/templates/apps/web/app/[locale]/(authed)/account/general/contact-details.tsx +42 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +97 -53
- package/templates/apps/web/app/[locale]/(authed)/account/general/phone-actions.ts +122 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/phone-verification.tsx +215 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/photo-actions.ts +73 -0
- package/templates/apps/web/app/[locale]/(authed)/account/general/profile-form.tsx +12 -9
- package/templates/apps/web/app/[locale]/(authed)/account/general/profile-source.ts +18 -4
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +20 -2
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/member-thread-composer.tsx +43 -0
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +125 -0
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-data.ts +88 -0
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-write.ts +31 -0
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/invitation-id.test.ts +35 -0
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/page.test.tsx +266 -0
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/actions.ts +116 -0
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/invitation-id.ts +12 -0
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/page.tsx +154 -0
- package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +9 -6
- package/templates/apps/web/app/[locale]/(authed)/account/new-menu.tsx +33 -8
- package/templates/apps/web/app/[locale]/(authed)/account/new-popups.tsx +31 -52
- package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +44 -4
- package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +69 -49
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/__tests__/export-route.test.ts +173 -0
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/actions.ts +42 -4
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +102 -0
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +147 -137
- package/templates/apps/web/app/[locale]/(authed)/account/security/__tests__/hub-variant.test.tsx +258 -0
- package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +21 -22
- package/templates/apps/web/app/[locale]/(authed)/account/security/security-panel.tsx +34 -6
- package/templates/apps/web/app/[locale]/(authed)/account/security/security-source.ts +37 -7
- package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -2
- package/templates/apps/web/app/[locale]/(authed)/account/settings-frame.tsx +8 -5
- package/templates/apps/web/app/[locale]/(authed)/layout.tsx +15 -13
- package/templates/apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx +20 -52
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsClient.tsx +3 -2
- package/templates/apps/web/app/[locale]/layout.tsx +24 -75
- package/templates/apps/web/app/[locale]/purchase/__tests__/success.test.tsx +50 -0
- package/templates/apps/web/app/[locale]/purchase/success/page.tsx +48 -7
- package/templates/apps/web/app/api/auth/hub/__tests__/entry-routes.test.ts +749 -0
- package/templates/apps/web/app/api/auth/hub/authorize/__tests__/route.test.ts +166 -7
- package/templates/apps/web/app/api/auth/hub/authorize/route.ts +96 -30
- package/templates/apps/web/app/api/auth/hub/continuation.ts +51 -2
- package/templates/apps/web/app/api/auth/hub/email/route.ts +111 -0
- package/templates/apps/web/app/api/auth/hub/entry-shared.ts +163 -0
- package/templates/apps/web/app/api/auth/hub/password/__tests__/return.test.ts +86 -0
- package/templates/apps/web/app/api/auth/hub/password/__tests__/route.test.ts +368 -0
- package/templates/apps/web/app/api/auth/hub/password/return.ts +86 -0
- package/templates/apps/web/app/api/auth/hub/password/route.ts +171 -0
- package/templates/apps/web/app/api/auth/hub/purchase/route.ts +230 -0
- package/templates/apps/web/app/api/auth/hub/purchase-link/route.ts +174 -0
- package/templates/apps/web/app/api/auth/hub/sign-up/route.ts +60 -0
- package/templates/apps/web/app/api/auth/hub/sign-up-evidence.ts +97 -0
- package/templates/apps/web/app/api/hub-session/__tests__/routes.test.ts +738 -7
- package/templates/apps/web/app/api/hub-session/callback/route.ts +13 -47
- package/templates/apps/web/app/api/hub-session/email/route.ts +125 -0
- package/templates/apps/web/app/api/hub-session/one-tap/nonce/route.ts +49 -0
- package/templates/apps/web/app/api/hub-session/one-tap/route.ts +106 -0
- package/templates/apps/web/app/api/hub-session/open/route.ts +111 -0
- package/templates/apps/web/app/api/hub-session/password/return/route.ts +69 -0
- package/templates/apps/web/app/api/hub-session/password/route.ts +106 -0
- package/templates/apps/web/app/api/hub-session/sign-in/route.ts +23 -40
- package/templates/apps/web/app/api/hub-session/sign-out/route.ts +1 -10
- package/templates/apps/web/auth.ts +133 -6
- package/templates/apps/web/components/sign-out-trigger.tsx +1 -1
- package/templates/apps/web/lib/__tests__/account-config.test.ts +129 -1
- package/templates/apps/web/lib/__tests__/auth-email.test.ts +141 -0
- package/templates/apps/web/lib/__tests__/auth-phone.test.ts +445 -0
- package/templates/apps/web/lib/__tests__/auth-sms.test.ts +140 -0
- package/templates/apps/web/lib/__tests__/fixtures/tsconfig.flow.json +18 -0
- package/templates/apps/web/lib/__tests__/offerings-pricing.test.ts +33 -0
- package/templates/apps/web/lib/__tests__/site-header.test.ts +13 -0
- package/templates/apps/web/lib/__tests__/telemetry-scrub.test.ts +19 -1
- package/templates/apps/web/lib/account-config.ts +132 -8
- package/templates/apps/web/lib/auth-email.ts +62 -6
- package/templates/apps/web/lib/auth-env.ts +13 -0
- package/templates/apps/web/lib/auth-routes.ts +11 -6
- package/templates/apps/web/lib/auth-sms.ts +180 -0
- package/templates/apps/web/lib/hub-session/__tests__/hub-session.test.ts +28 -0
- package/templates/apps/web/lib/hub-session/__tests__/spoke-sign-in.test.tsx +332 -0
- package/templates/apps/web/lib/hub-session/config.ts +7 -1
- package/templates/apps/web/lib/hub-session/entry.ts +238 -0
- package/templates/apps/web/lib/hub-session/index.ts +1 -4
- package/templates/apps/web/lib/hub-session/one-tap.tsx +148 -0
- package/templates/apps/web/lib/hub-session/session.ts +120 -2
- package/templates/apps/web/lib/hub-session/spoke-sign-in.tsx +277 -0
- package/templates/apps/web/lib/offerings-pricing.ts +4 -1
- package/templates/apps/web/lib/site-header.ts +14 -1
- package/templates/apps/web/lib/telemetry-scrub.ts +11 -0
- package/templates/apps/web/lib/topology.generated.ts +39 -0
- package/templates/apps/web/messages/en.json +264 -96
- package/templates/apps/web/middleware.ts +34 -2
- package/templates/apps/web/security-headers.config.ts +21 -0
- package/versions.json +48 -48
- package/templates/apps/web/app/[locale]/(authed)/account/components/schedule-service.tsx +0 -276
- package/templates/apps/web/app/[locale]/(authed)/account/components/send-message.tsx +0 -128
- package/templates/apps/web/app/[locale]/(authed)/account/settings/__tests__/theme-modes.test.ts +0 -42
- package/templates/apps/web/app/[locale]/(authed)/account/settings/theme-modes.ts +0 -40
- package/templates/apps/web/app/[locale]/(authed)/sign-in-gate.tsx +0 -162
- package/templates/apps/web/components/signed-in-nav.tsx +0 -79
- package/templates/apps/web/lib/hub-session/__tests__/sign-in-gate.test.tsx +0 -180
- package/templates/apps/web/lib/hub-session/sign-in-gate.tsx +0 -162
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `GET /api/auth/hub/sign-up?locale=` — what a spoke's sign-in form shows a
|
|
3
|
+
* new person (#11096 D3, spec docs/specs/11096-the-spoke-hosts-the-sign-spec.md).
|
|
4
|
+
*
|
|
5
|
+
* `{ signUpOpen, google, agreements }`: whether this hub takes sign-ups,
|
|
6
|
+
* whether Google is an active provider, and each sign-up agreement from the
|
|
7
|
+
* same evidence the agreements plugin checks (`./sign-up-evidence.ts`), as
|
|
8
|
+
* `{ purposeId, statement, policies }`. The policies are the hub's, so each
|
|
9
|
+
* link is absolute on the pinned origin. No auth: the same evidence
|
|
10
|
+
* `GET /v1/consent/sign-up` serves anonymously. `public, max-age=60` on a
|
|
11
|
+
* 200; an evidence read that fails is a 503 (`no-store`), never an empty
|
|
12
|
+
* list a spoke could read as "no agreements needed".
|
|
13
|
+
*/
|
|
14
|
+
import { localeSchema } from "@working-theory/validation";
|
|
15
|
+
|
|
16
|
+
import {
|
|
17
|
+
getActiveProviderIds,
|
|
18
|
+
isSignUpOpen,
|
|
19
|
+
} from "../../../../../lib/auth-env";
|
|
20
|
+
import { consentPoliciesFor } from "../../../../../lib/consent-policies";
|
|
21
|
+
import { pinnedOrigin } from "../continuation";
|
|
22
|
+
import { json, refuse } from "../entry-shared";
|
|
23
|
+
import {
|
|
24
|
+
normaliseEvidenceLocale,
|
|
25
|
+
readHubSignUpEvidence,
|
|
26
|
+
} from "../sign-up-evidence";
|
|
27
|
+
|
|
28
|
+
// platform-decisions-waiver: api-versioning — a hub sign-in step, not a versioned API contract (spec 11096 § 6)
|
|
29
|
+
export async function GET(request: Request): Promise<Response> {
|
|
30
|
+
const origin = pinnedOrigin();
|
|
31
|
+
if (origin === null) return refuse(503, "temporarily_unavailable");
|
|
32
|
+
|
|
33
|
+
const requested = new URL(request.url).searchParams.get("locale");
|
|
34
|
+
const locale = normaliseEvidenceLocale(
|
|
35
|
+
localeSchema.safeParse(requested).success ? requested : undefined,
|
|
36
|
+
);
|
|
37
|
+
const evidence = await readHubSignUpEvidence(locale);
|
|
38
|
+
if (evidence === null) return refuse(503, "temporarily_unavailable");
|
|
39
|
+
|
|
40
|
+
const policies = Object.fromEntries(
|
|
41
|
+
Object.entries(consentPoliciesFor(locale)).map(([key, path]) => [
|
|
42
|
+
key,
|
|
43
|
+
new URL(path, origin).toString(),
|
|
44
|
+
]),
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
return json(
|
|
48
|
+
200,
|
|
49
|
+
{
|
|
50
|
+
signUpOpen: isSignUpOpen(),
|
|
51
|
+
google: getActiveProviderIds().includes("google"),
|
|
52
|
+
agreements: evidence.agreements.map(({ purposeId, statement }) => ({
|
|
53
|
+
purposeId,
|
|
54
|
+
statement,
|
|
55
|
+
policies,
|
|
56
|
+
})),
|
|
57
|
+
},
|
|
58
|
+
{ "Cache-Control": "public, max-age=60" },
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hub's sign-up evidence, as the spoke-hosted entry reads it (#11096 D3,
|
|
3
|
+
* D9).
|
|
4
|
+
*
|
|
5
|
+
* The same source the sign-up agreements plugin checks a sign-up request
|
|
6
|
+
* against: `GET /v1/consent/sign-up` through `consent.signUpEvidence`, parsed
|
|
7
|
+
* with `consentSignUpResponseSchema`, for one of the site's enabled locales
|
|
8
|
+
* (anything else reads as `en`). So the agreements a spoke's form shows, and
|
|
9
|
+
* the version a purchase claim is checked at, are the ones the plugin
|
|
10
|
+
* enforces. It keeps its own per-process entry, fresh for 60 s, one per
|
|
11
|
+
* enabled locale; a read is bounded at 2 s and never throws — a failure is
|
|
12
|
+
* `null`, and a failed refresh serves nothing stale, so a caller that needs
|
|
13
|
+
* the evidence fails closed.
|
|
14
|
+
*
|
|
15
|
+
* A second reader rather than the plugin's own cache because
|
|
16
|
+
* `lib/sign-up-agreements.ts` is not this unit's to change; the two read the
|
|
17
|
+
* same API answer, and the plugin still refuses any request its own read
|
|
18
|
+
* does not cover.
|
|
19
|
+
*/
|
|
20
|
+
import { consent } from "@working-theory/api-client";
|
|
21
|
+
import {
|
|
22
|
+
consentSignUpResponseSchema,
|
|
23
|
+
type ConsentSignUpResponse,
|
|
24
|
+
} from "@working-theory/validation";
|
|
25
|
+
|
|
26
|
+
const DEFAULT_LOCALE = "en";
|
|
27
|
+
const FRESH_MS = 60_000;
|
|
28
|
+
const READ_TIMEOUT_MS = 2_000;
|
|
29
|
+
|
|
30
|
+
const cache = new Map<
|
|
31
|
+
string,
|
|
32
|
+
{ evidence: ConsentSignUpResponse; fetchedAt: number }
|
|
33
|
+
>();
|
|
34
|
+
|
|
35
|
+
/** Test seam: empties the per-process cache. */
|
|
36
|
+
export function resetHubSignUpEvidenceCache(): void {
|
|
37
|
+
cache.clear();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function enabledLocales(): string[] {
|
|
41
|
+
const enabled = (process.env.NEXT_PUBLIC_ENABLED_LOCALES ?? DEFAULT_LOCALE)
|
|
42
|
+
.split(",")
|
|
43
|
+
.map((locale) => locale.trim())
|
|
44
|
+
.filter((locale) => locale.length > 0);
|
|
45
|
+
return enabled.length > 0 ? enabled : [DEFAULT_LOCALE];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** `raw` when it is one of the site's enabled locales, else `en`. */
|
|
49
|
+
export function normaliseEvidenceLocale(raw: unknown): string {
|
|
50
|
+
return typeof raw === "string" && enabledLocales().includes(raw)
|
|
51
|
+
? raw
|
|
52
|
+
: DEFAULT_LOCALE;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** The evidence for `locale` (normalised), or `null` when it cannot be read. */
|
|
56
|
+
export async function readHubSignUpEvidence(
|
|
57
|
+
locale: unknown,
|
|
58
|
+
): Promise<ConsentSignUpResponse | null> {
|
|
59
|
+
const key = normaliseEvidenceLocale(locale);
|
|
60
|
+
const entry = cache.get(key);
|
|
61
|
+
if (entry && Date.now() - entry.fetchedAt < FRESH_MS) return entry.evidence;
|
|
62
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
63
|
+
const timedOut = new Promise<null>((resolve) => {
|
|
64
|
+
timer = setTimeout(() => resolve(null), READ_TIMEOUT_MS);
|
|
65
|
+
});
|
|
66
|
+
try {
|
|
67
|
+
const res = await Promise.race([
|
|
68
|
+
consent.signUpEvidence({ locale: key }),
|
|
69
|
+
timedOut,
|
|
70
|
+
]);
|
|
71
|
+
if (res === null || !res.ok) return null;
|
|
72
|
+
const parsed = consentSignUpResponseSchema.safeParse(res.body);
|
|
73
|
+
if (!parsed.success) return null;
|
|
74
|
+
cache.set(key, { evidence: parsed.data, fetchedAt: Date.now() });
|
|
75
|
+
return parsed.data;
|
|
76
|
+
} catch {
|
|
77
|
+
return null;
|
|
78
|
+
} finally {
|
|
79
|
+
clearTimeout(timer);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Whether the evidence asks for exactly one agreement, `account_terms`, at
|
|
85
|
+
* `policyVersion` — the only shape a purchase claim covers (#11096 D9).
|
|
86
|
+
*/
|
|
87
|
+
export function coversPurchaseTerms(
|
|
88
|
+
evidence: ConsentSignUpResponse,
|
|
89
|
+
policyVersion: number,
|
|
90
|
+
): boolean {
|
|
91
|
+
const [only, ...rest] = evidence.agreements;
|
|
92
|
+
return (
|
|
93
|
+
rest.length === 0 &&
|
|
94
|
+
only?.purposeId === "account_terms" &&
|
|
95
|
+
only.policyVersion === policyVersion
|
|
96
|
+
);
|
|
97
|
+
}
|