@taggor/contract 0.5.0 → 0.6.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/.tsbuildinfo +1 -1
- package/dist/contract-version.d.ts +6 -2
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +13 -7
- package/dist/contract-version.js.map +1 -1
- package/dist/data-api.d.ts +7 -37
- package/dist/data-api.d.ts.map +1 -1
- package/dist/data-api.js +11 -45
- package/dist/data-api.js.map +1 -1
- package/dist/diagnostic-catalog.d.ts +23 -57
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +23 -51
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/error-catalog.d.ts +14 -0
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +19 -5
- package/dist/error-catalog.js.map +1 -1
- package/dist/error-titles-pt-br.d.ts +13 -0
- package/dist/error-titles-pt-br.d.ts.map +1 -0
- package/dist/error-titles-pt-br.js +99 -0
- package/dist/error-titles-pt-br.js.map +1 -0
- package/dist/event-params.d.ts +41 -0
- package/dist/event-params.d.ts.map +1 -0
- package/dist/event-params.js +92 -0
- package/dist/event-params.js.map +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +0 -8
- package/dist/json-schema.js.map +1 -1
- package/dist/limit-catalog.d.ts +4 -25
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +6 -27
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +9 -21
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +9 -21
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +2 -2
- package/dist/locale-tag.js +2 -2
- package/dist/manifest.d.ts +26 -5
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +16 -35
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +18 -5
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +18 -5
- package/dist/metering.js.map +1 -1
- package/dist/plan-pricing.d.ts +28 -55
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +15 -60
- package/dist/plan-pricing.js.map +1 -1
- package/dist/schema/component-manifest.v1.json +5 -12
- package/dist/schema/data-api.v1.json +4 -39
- package/dist/site-manifest.d.ts +1 -8
- package/dist/site-manifest.d.ts.map +1 -1
- package/dist/site-manifest.js +3 -6
- package/dist/site-manifest.js.map +1 -1
- package/dist/ssr-cap.d.ts +1 -1
- package/dist/ssr-cap.d.ts.map +1 -1
- package/dist/url-value.d.ts.map +1 -1
- package/dist/url-value.js +1 -1
- package/dist/url-value.js.map +1 -1
- package/dist/zod-free.d.ts +3 -4
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +3 -4
- package/dist/zod-free.js.map +1 -1
- package/package.json +1 -1
- package/dist/consent-text.d.ts +0 -31
- package/dist/consent-text.d.ts.map +0 -1
- package/dist/consent-text.js +0 -41
- package/dist/consent-text.js.map +0 -1
package/dist/data-api.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Data API of component contract v1: the payloads a component exchanges with the edge through
|
|
3
3
|
* the SDK hooks (`useTaggorData`, `useTrack`): `submit` (form submissions), `read` (list a
|
|
4
|
-
* public collection) and `track` (declared
|
|
4
|
+
* public collection) and `track` (declared events).
|
|
5
5
|
*
|
|
6
6
|
* The wire format is snake_case JSON, like every `/v1` API resource. Each envelope is
|
|
7
7
|
* strict; the `data` of a submission is checked against the collection the manifest declares with
|
|
8
8
|
* `collectionDataSchema`, which drops undeclared fields. Body sizes are bounded by
|
|
9
|
-
* `DATA_API_LIMITS` and must be enforced on the raw body before parsing.
|
|
10
|
-
* the visitor's consent proof.
|
|
9
|
+
* `DATA_API_LIMITS` and must be enforced on the raw body before parsing.
|
|
11
10
|
*/
|
|
12
11
|
import * as z from "zod";
|
|
13
12
|
import { boundedRecord } from "./bounded.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { memberNameSchema
|
|
13
|
+
import { EVENT_PARAM_LIMITS, EVENT_PARAM_NAME_PATTERN } from "./event-params.js";
|
|
14
|
+
import { DATA_API_LIMITS, MANIFEST_LIMITS } from "./limits.js";
|
|
15
|
+
import { memberNameSchema } from "./names.js";
|
|
17
16
|
import { tagNameSchema } from "./tag-name.js";
|
|
18
|
-
import {
|
|
17
|
+
import { valueValidator } from "./value-schema.js";
|
|
19
18
|
/** Opaque, client-generated key that makes a retried submission idempotent. */
|
|
20
19
|
const idempotencyKeySchema = z
|
|
21
20
|
.string()
|
|
@@ -27,34 +26,13 @@ const cursorSchema = z
|
|
|
27
26
|
.min(1)
|
|
28
27
|
.max(DATA_API_LIMITS.cursorMaxLength)
|
|
29
28
|
.regex(/^[A-Za-z0-9_-]+$/, { error: "cursor must be the opaque value returned by the API" });
|
|
30
|
-
/**
|
|
31
|
-
* Proof of the visitor's consent sent with a submission of a component whose manifest declares
|
|
32
|
-
* `data.personal`: the consent was given, the SHA-256 (lowercase hex) of the exact text
|
|
33
|
-
* the visitor accepted and the language it was shown in. The text hashed is the SDK's: the
|
|
34
|
-
* checkbox label as rendered, a line feed and the privacy policy URL (`SPEC.md` §5).
|
|
35
|
-
*/
|
|
36
|
-
export const consentProofSchema = z
|
|
37
|
-
.strictObject({
|
|
38
|
-
given: z.literal(true),
|
|
39
|
-
text_hash: z
|
|
40
|
-
.string()
|
|
41
|
-
.length(CONSENT_PROOF_LIMITS.consentTextHashLength)
|
|
42
|
-
.regex(/^[0-9a-f]+$/, { error: "text_hash must be a lowercase hex SHA-256" }),
|
|
43
|
-
locale: z
|
|
44
|
-
.string()
|
|
45
|
-
.max(CONSENT_PROOF_LIMITS.consentLocaleMaxLength)
|
|
46
|
-
.regex(LOCALE_TAG_PATTERN, { error: LOCALE_TAG_MESSAGE }),
|
|
47
|
-
})
|
|
48
|
-
.meta({ title: "Consent proof" });
|
|
49
29
|
/**
|
|
50
30
|
* Body of `submit` (`POST /d/<siteKey>/<collection>`).
|
|
51
31
|
*
|
|
52
32
|
* `data` holds the field values (validated afterwards by `collectionDataSchema`); `_hp` is the
|
|
53
33
|
* honeypot field that humans leave empty and `_t` the milliseconds between render and submit
|
|
54
34
|
* (they only mark a submission `suspect`, which is kept; nothing is dropped unless the
|
|
55
|
-
* site chose `protection.suspects: "drop"`).
|
|
56
|
-
* which the SDK always sends for a component with `data.personal` (the ingest of E07 refuses a
|
|
57
|
-
* submission of such a component without it, `consent_required`).
|
|
35
|
+
* site chose `protection.suspects: "drop"`).
|
|
58
36
|
*/
|
|
59
37
|
export const submitRequestSchema = z
|
|
60
38
|
.strictObject({
|
|
@@ -63,7 +41,6 @@ export const submitRequestSchema = z
|
|
|
63
41
|
turnstile_token: z.string().min(1).max(DATA_API_LIMITS.turnstileTokenMaxLength).optional(),
|
|
64
42
|
_hp: z.string().max(DATA_API_LIMITS.honeypotMaxLength).optional(),
|
|
65
43
|
_t: z.int().min(0).optional(),
|
|
66
|
-
consent: consentProofSchema.optional(),
|
|
67
44
|
})
|
|
68
45
|
.meta({ title: "Submit request" });
|
|
69
46
|
/** Answer to an accepted submission (HTTP 202): queued, not stored yet. */
|
|
@@ -100,12 +77,14 @@ export const readResponseSchema = z
|
|
|
100
77
|
has_more: z.boolean(),
|
|
101
78
|
})
|
|
102
79
|
.meta({ title: "Read response" });
|
|
103
|
-
/** Body of `track` (a beacon to the edge): one declared
|
|
80
|
+
/** Body of `track` (a beacon to the edge): one declared `track` event of one component. */
|
|
104
81
|
export const trackRequestSchema = z
|
|
105
82
|
.strictObject({
|
|
106
83
|
component: tagNameSchema,
|
|
107
84
|
name: memberNameSchema,
|
|
108
|
-
|
|
85
|
+
// The free parameters of the event: any name that is an identifier, any value as
|
|
86
|
+
// text within the length limit; never a judgement of the content (`event-params.ts`).
|
|
87
|
+
props: boundedRecord(z.string().regex(EVENT_PARAM_NAME_PATTERN), z.string().max(EVENT_PARAM_LIMITS.valueMaxLength), EVENT_PARAM_LIMITS.maxPerEvent, "props").optional(),
|
|
109
88
|
})
|
|
110
89
|
.meta({ title: "Track request" });
|
|
111
90
|
/** Error codes of the data API; the SDK maps each to a friendly, translated message. */
|
|
@@ -118,9 +97,6 @@ export const DATA_ERROR_CODES = Object.freeze([
|
|
|
118
97
|
"rate_limited",
|
|
119
98
|
"captcha_failed",
|
|
120
99
|
"payload_too_large",
|
|
121
|
-
// A submission of a component with `data.personal` without the visitor's consent. The SDK
|
|
122
|
-
// refuses it before sending; the ingest (E07) answers it to anything else.
|
|
123
|
-
"consent_required",
|
|
124
100
|
// a form without a Turnstile key reached its daily cap of submissions;
|
|
125
101
|
// the visitor sees an error instead of a false success and the customer a notice in the portal.
|
|
126
102
|
"daily_cap_reached",
|
|
@@ -154,14 +130,4 @@ export function collectionDataSchema(collection) {
|
|
|
154
130
|
...(collection.required === undefined ? {} : { required: collection.required }),
|
|
155
131
|
}, "strip");
|
|
156
132
|
}
|
|
157
|
-
/**
|
|
158
|
-
* Builds the validator of the `props` of one declared track event.
|
|
159
|
-
*
|
|
160
|
-
* Inputs: the track event declaration. Output: a strict Zod object schema (undeclared props are
|
|
161
|
-
* refused, so nothing unplanned reaches analytics); every declared prop is optional. Errors: none
|
|
162
|
-
* at build time. Side effects: none.
|
|
163
|
-
*/
|
|
164
|
-
export function trackPropsSchema(declaration) {
|
|
165
|
-
return valueValidator({ type: "object", fields: declaration.props ?? {} }, "reject");
|
|
166
|
-
}
|
|
167
133
|
//# sourceMappingURL=data-api.js.map
|
package/dist/data-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-api.js","sourceRoot":"","sources":["../src/data-api.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"data-api.js","sourceRoot":"","sources":["../src/data-api.ts"],"names":[],"mappings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AAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,qBAAqB,CAAC;IAC9D,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,mBAAmB,GAAG,CAAC,CAAC;QAC7D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,qBAAqB,CAAC;KAC/D,CAAC,CACH;SACA,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC;SACnC,QAAQ,EAAE;CACd,CAAC;KACD,IAAI,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAiBrC;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAiC;IACpE,OAAO,cAAc,CACnB;QACE,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,GAAG,CAAC,UAAU,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC;KAChF,EACD,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -494,8 +494,8 @@ declare const catalog: {
|
|
|
494
494
|
readonly "pt-BR": "O builder carrega o módulo do componente, sem navegador, para ler a declaração, e o módulo lançou erro ou saiu. Causa comum: código no nível de cima de um módulo que usa globais do navegador (`window`, `document`, `localStorage`, `navigator`), que não existem enquanto a declaração é lida.";
|
|
495
495
|
};
|
|
496
496
|
readonly hint: {
|
|
497
|
-
readonly en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever
|
|
498
|
-
readonly "pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que
|
|
497
|
+
readonly en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever it appears, the page's DOM outside the component (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), and it warns about the page's storage (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/) and its cookies (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/). Keep state in useState or use the Taggor data API.";
|
|
498
|
+
readonly "pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que apareça, o DOM da página fora do componente (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), e avisa sobre o armazenamento da página (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/) e os cookies dela (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/). Guarde o estado em useState ou use a API de dados do Taggor.";
|
|
499
499
|
};
|
|
500
500
|
};
|
|
501
501
|
readonly STYLE_REFERENCE_UNDECLARED: {
|
|
@@ -703,7 +703,7 @@ declare const catalog: {
|
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
705
|
readonly UNSAFE_COOKIE_ACCESS: {
|
|
706
|
-
readonly severity: "
|
|
706
|
+
readonly severity: "warning";
|
|
707
707
|
readonly fault: "customer";
|
|
708
708
|
readonly stage: "output";
|
|
709
709
|
readonly title: {
|
|
@@ -711,16 +711,16 @@ declare const catalog: {
|
|
|
711
711
|
readonly "pt-BR": "Componente lê os cookies da página";
|
|
712
712
|
};
|
|
713
713
|
readonly description: {
|
|
714
|
-
readonly en: "The component reads or writes document.cookie (or cookieStore): the host page's cookies, which may hold sessions and tracking ids that belong to the site, not to the component (rule document-cookie). Taggor
|
|
715
|
-
readonly "pt-BR": "O componente lê ou grava document.cookie (ou cookieStore): os cookies da página hospedeira, que podem guardar sessões e ids de rastreamento do site, não do componente (regra document-cookie).
|
|
714
|
+
readonly en: "The component reads or writes document.cookie (or cookieStore): the host page's cookies, which may hold sessions and tracking ids that belong to the site, not to the component If the component is meant to set or read cookies, nothing needs to change: the build goes on, and what the component stores is the customer's responsibility, including the notice and consent the site's law requires (rule document-cookie). Taggor's loader and runtime set no cookies.";
|
|
715
|
+
readonly "pt-BR": "O componente lê ou grava document.cookie (ou cookieStore): os cookies da página hospedeira, que podem guardar sessões e ids de rastreamento do site, não do componente Se o componente deve gravar ou ler cookies, nada precisa mudar: o build segue, e o que o componente guarda é responsabilidade do cliente, inclusive o aviso e o consentimento que a lei do site exige (regra document-cookie). O loader e o runtime do Taggor não gravam cookies.";
|
|
716
716
|
};
|
|
717
717
|
readonly hint: {
|
|
718
|
-
readonly en: "
|
|
719
|
-
readonly "pt-BR": "
|
|
718
|
+
readonly en: "If the cookie access is intended, nothing to do. Otherwise remove it: to remember something about the visitor, use the component's props or the Taggor data API (useTaggorData).";
|
|
719
|
+
readonly "pt-BR": "Se o acesso aos cookies é intencional, nada a fazer. Senão, tire-o: para lembrar algo do visitante, use as props do componente ou a API de dados do Taggor (useTaggorData).";
|
|
720
720
|
};
|
|
721
721
|
};
|
|
722
722
|
readonly UNSAFE_STORAGE_ACCESS: {
|
|
723
|
-
readonly severity: "
|
|
723
|
+
readonly severity: "warning";
|
|
724
724
|
readonly fault: "customer";
|
|
725
725
|
readonly stage: "output";
|
|
726
726
|
readonly title: {
|
|
@@ -728,12 +728,12 @@ declare const catalog: {
|
|
|
728
728
|
readonly "pt-BR": "Componente usa o armazenamento da página";
|
|
729
729
|
};
|
|
730
730
|
readonly description: {
|
|
731
|
-
readonly en: "The component uses localStorage, sessionStorage, indexedDB or the Cache API (caches), which belong to the host site's origin: the component
|
|
732
|
-
readonly "pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente
|
|
731
|
+
readonly en: "The component uses localStorage, sessionStorage, indexedDB or the Cache API (caches), which belong to the host site's origin: the component can read what the site stored there and leave data behind. If that is what the component is meant to do, nothing needs to change: the build goes on, and what the component stores is the customer's responsibility (rule local-storage).";
|
|
732
|
+
readonly "pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente pode ler o que o site guardou ali e deixar dados. Se é isso que o componente deve fazer, nada precisa mudar: o build segue, e o que o componente guarda é responsabilidade do cliente (regra local-storage).";
|
|
733
733
|
};
|
|
734
734
|
readonly hint: {
|
|
735
|
-
readonly en: "
|
|
736
|
-
readonly "pt-BR": "
|
|
735
|
+
readonly en: "If the storage is intended, nothing to do; touch it only after the component has mounted (inside useEffect or a handler), never at the top level. Otherwise keep state in memory (useState) or in props, or persist it with the Taggor data API (useTaggorData). See https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/ for browser globals at the top level.";
|
|
736
|
+
readonly "pt-BR": "Se o armazenamento é intencional, nada a fazer; use-o só depois que o componente monta (dentro de useEffect ou de um handler), nunca no nível de cima. Senão, guarde o estado em memória (useState) ou em props, ou persista com a API de dados do Taggor (useTaggorData). Veja https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/ sobre globais do navegador no nível de cima.";
|
|
737
737
|
};
|
|
738
738
|
};
|
|
739
739
|
readonly UNSAFE_HOST_DOM: {
|
|
@@ -830,8 +830,8 @@ declare const catalog: {
|
|
|
830
830
|
readonly "pt-BR": "Padrão de mineração de criptomoeda";
|
|
831
831
|
};
|
|
832
832
|
readonly description: {
|
|
833
|
-
readonly en: "The bundle has a signature of browser crypto mining: the Stratum protocol (stratum+tcp, mining.subscribe, mining.submit) or the name of a known miner or pool (CoinHive, CryptoNight, XMRig). Mining spends the visitor's CPU and battery without
|
|
834
|
-
readonly "pt-BR": "O bundle tem uma assinatura de mineração de criptomoeda no navegador: o protocolo Stratum (stratum+tcp, mining.subscribe, mining.submit) ou o nome de um minerador ou pool conhecido (CoinHive, CryptoNight, XMRig). Minerar gasta a CPU e a bateria do visitante sem
|
|
833
|
+
readonly en: "The bundle has a signature of browser crypto mining: the Stratum protocol (stratum+tcp, mining.subscribe, mining.submit) or the name of a known miner or pool (CoinHive, CryptoNight, XMRig). Mining spends the visitor's CPU and battery without the visitor knowing (rule mining).";
|
|
834
|
+
readonly "pt-BR": "O bundle tem uma assinatura de mineração de criptomoeda no navegador: o protocolo Stratum (stratum+tcp, mining.subscribe, mining.submit) ou o nome de um minerador ou pool conhecido (CoinHive, CryptoNight, XMRig). Minerar gasta a CPU e a bateria do visitante sem ele saber (regra mining).";
|
|
835
835
|
};
|
|
836
836
|
readonly hint: {
|
|
837
837
|
readonly en: "Remove the mining code. If the text is only a word in your content, rephrase it.";
|
|
@@ -898,8 +898,8 @@ declare const catalog: {
|
|
|
898
898
|
readonly "pt-BR": "Componente acessa estruturas internas do Preact";
|
|
899
899
|
};
|
|
900
900
|
readonly description: {
|
|
901
|
-
readonly en: "The component reads a mangled field used by Preact's component or hook internals. Those fields expose shared runtime state and can bypass safeguards such as
|
|
902
|
-
readonly "pt-BR": "O componente lê um campo ofuscado usado pelas estruturas internas de componente ou hooks do Preact. Esses campos expõem estado do runtime compartilhado e podem contornar proteções como o
|
|
901
|
+
readonly en: "The component reads a mangled field used by Preact's component or hook internals. Those fields expose shared runtime state and can bypass safeguards such as the component's isolation. This check only catches direct, statically visible access; names built at run time are not detected here and stay covered by the server-side proof check and abuse review (rule preact-internals).";
|
|
902
|
+
readonly "pt-BR": "O componente lê um campo ofuscado usado pelas estruturas internas de componente ou hooks do Preact. Esses campos expõem estado do runtime compartilhado e podem contornar proteções como o isolamento do componente. Esta checagem só pega o acesso direto e visível no código; nomes montados em tempo de execução não são detectados aqui e continuam cobertos pela validação da prova no servidor e pela revisão de abuso (regra preact-internals).";
|
|
903
903
|
};
|
|
904
904
|
readonly hint: {
|
|
905
905
|
readonly en: "Remove accesses to Preact's internal fields and use the documented hooks and Preact component APIs.";
|
|
@@ -1017,8 +1017,8 @@ declare const catalog: {
|
|
|
1017
1017
|
readonly "pt-BR": "Componente pede credenciais";
|
|
1018
1018
|
};
|
|
1019
1019
|
readonly description: {
|
|
1020
|
-
readonly en: "The component has a password field (type password, autocomplete current-password or new-password), a payment card field (cc-number, cc-csc, a field named cardNumber or cvv) or the text of a login it imitates (sign in with Google, verify your account, your session expired). A component on someone else's site that asks for these can phish the site's visitors, so
|
|
1021
|
-
readonly "pt-BR": "O componente tem um campo de senha (type password, autocomplete current-password ou new-password), um campo de cartão (cc-number, cc-csc, um campo chamado cardNumber ou cvv) ou o texto de um login que ele imita (entrar com Google, verifique sua conta, sua sessão expirou). Um componente no site de outra pessoa que pede isso pode fazer phishing com os visitantes do site, então
|
|
1020
|
+
readonly en: "The component has a password field (type password, autocomplete current-password or new-password), a payment card field (cc-number, cc-csc, a field named cardNumber or cvv) or the text of a login it imitates (sign in with Google, verify your account, your session expired). A component on someone else's site that asks for these can phish the site's visitors, so the build refuses it (rule credential-capture).";
|
|
1021
|
+
readonly "pt-BR": "O componente tem um campo de senha (type password, autocomplete current-password ou new-password), um campo de cartão (cc-number, cc-csc, um campo chamado cardNumber ou cvv) ou o texto de um login que ele imita (entrar com Google, verifique sua conta, sua sessão expirou). Um componente no site de outra pessoa que pede isso pode fazer phishing com os visitantes do site, então o build o recusa (regra credential-capture).";
|
|
1022
1022
|
};
|
|
1023
1023
|
readonly hint: {
|
|
1024
1024
|
readonly en: "Leave logins and payments to the site's own pages or a payment provider's checkout; a component collects only what a lead or a form needs.";
|
|
@@ -1042,42 +1042,8 @@ declare const catalog: {
|
|
|
1042
1042
|
readonly "pt-BR": "Tire o campo; pagamentos vão por um provedor de pagamento e logins pelo próprio site.";
|
|
1043
1043
|
};
|
|
1044
1044
|
};
|
|
1045
|
-
readonly CONSENT_FORGED: {
|
|
1046
|
-
readonly severity: "error";
|
|
1047
|
-
readonly fault: "customer";
|
|
1048
|
-
readonly stage: "output";
|
|
1049
|
-
readonly title: {
|
|
1050
|
-
readonly en: "Consent given by the component";
|
|
1051
|
-
readonly "pt-BR": "Consentimento dado pelo componente";
|
|
1052
|
-
};
|
|
1053
|
-
readonly description: {
|
|
1054
|
-
readonly en: "The component calls the consent state's setGiven with something other than false outside an event handler (at render, in an effect, in a timer), so the box is ticked without the visitor's act. Consent under the LGPD is the visitor's affirmative act; a forged proof is a submission of personal data without consent, so it needs a person's review: it is refused until then (rule consent-forged).";
|
|
1055
|
-
readonly "pt-BR": "O componente chama o setGiven do estado de consentimento com algo diferente de false fora de um handler de evento (no render, num efeito, num timer), então a caixa é marcada sem o ato do visitante. Consentimento pela LGPD é ato afirmativo do visitante; uma prova forjada é envio de dado pessoal sem consentimento, então precisa de revisão de uma pessoa: é recusado até lá (regra consent-forged).";
|
|
1056
|
-
};
|
|
1057
|
-
readonly hint: {
|
|
1058
|
-
readonly en: "Render <Consent consent={consent} />, or call consent.setGiven only in the onChange of your own checkbox.";
|
|
1059
|
-
readonly "pt-BR": "Renderize <Consent consent={consent} /> ou chame consent.setGiven só no onChange da sua própria caixa.";
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
readonly CONSENT_NOT_SHOWN: {
|
|
1063
|
-
readonly severity: "error";
|
|
1064
|
-
readonly fault: "customer";
|
|
1065
|
-
readonly stage: "output";
|
|
1066
|
-
readonly title: {
|
|
1067
|
-
readonly en: "Consent text not shown";
|
|
1068
|
-
readonly "pt-BR": "Texto de consentimento não exibido";
|
|
1069
|
-
};
|
|
1070
|
-
readonly description: {
|
|
1071
|
-
readonly en: "The component declares personal data (data.personal) but never renders <Consent> nor reads consent.label with the consent state, so the visitor does not see the text whose hash the proof carries. It needs a person's review: it is refused until then (rule consent-not-shown).";
|
|
1072
|
-
readonly "pt-BR": "O componente declara dados pessoais (data.personal), mas nunca renderiza <Consent> nem lê consent.label com o estado de consentimento, então o visitante não vê o texto cujo hash vai na prova. Precisa de revisão de uma pessoa: é recusado até lá (regra consent-not-shown).";
|
|
1073
|
-
};
|
|
1074
|
-
readonly hint: {
|
|
1075
|
-
readonly en: "Render <Consent consent={useConsent(context, props)} /> next to the submit button, or show consent.label in your own checkbox.";
|
|
1076
|
-
readonly "pt-BR": "Renderize <Consent consent={useConsent(context, props)} /> perto do botão de envio ou mostre consent.label na sua própria caixa.";
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
1045
|
readonly VIEWPORT_OVERLAY: {
|
|
1080
|
-
readonly severity: "
|
|
1046
|
+
readonly severity: "warning";
|
|
1081
1047
|
readonly fault: "customer";
|
|
1082
1048
|
readonly stage: "output";
|
|
1083
1049
|
readonly title: {
|
|
@@ -1085,12 +1051,12 @@ declare const catalog: {
|
|
|
1085
1051
|
readonly "pt-BR": "Camada sobre a viewport inteira";
|
|
1086
1052
|
};
|
|
1087
1053
|
readonly description: {
|
|
1088
|
-
readonly en: "The component
|
|
1089
|
-
readonly "pt-BR": "O
|
|
1054
|
+
readonly en: "The component draws a fixed layer over the whole viewport: :host, or a box inside it, with position: fixed and zero or negative inset on every side, or the size of the viewport (a rule without a state in its selector, so it shows before the visitor acts). The runtime's host does not contain, so the layer covers the host page and takes its clicks. If that is what the component is for (a popup, a modal, a banner), nothing needs to change: the build goes on, and what the component shows and covers is the customer's responsibility (rule viewport-overlay).";
|
|
1055
|
+
readonly "pt-BR": "O componente desenha uma camada fixa sobre a viewport inteira: o :host, ou uma caixa dentro dele, com position: fixed e inset zero ou negativo em todos os lados, ou do tamanho da viewport (uma regra sem estado no seletor, então aparece antes de o visitante agir). O host do runtime não contém, então a camada cobre a página hospedeira e recebe os cliques dela. Se é isso que o componente deve fazer (um popup, um modal, um banner), nada precisa mudar: o build segue, e o que o componente mostra e cobre é responsabilidade do cliente (regra viewport-overlay).";
|
|
1090
1056
|
};
|
|
1091
1057
|
readonly hint: {
|
|
1092
|
-
readonly en: "
|
|
1093
|
-
readonly "pt-BR": "
|
|
1058
|
+
readonly en: "If the layer is intended, nothing to do. To keep it inside the component's own box, write :host { contain: content } in the component's styles.";
|
|
1059
|
+
readonly "pt-BR": "Se a camada é intencional, nada a fazer. Para mantê-la dentro da caixa do próprio componente, escreva :host { contain: content } nos estilos do componente.";
|
|
1094
1060
|
};
|
|
1095
1061
|
};
|
|
1096
1062
|
readonly UNSAFE_RUNTIME_CSS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic-catalog.d.ts","sourceRoot":"","sources":["../src/diagnostic-catalog.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,uDAAuD;;IAEvD,0CAA0C;;IAE1C,2CAA2C;;IAE3C,wDAAwD;;;EAGxD,CAAC;AA2CH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AAIF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBvD;AAED,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACzB,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnF,+CAA+C;AAC/C,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAQtD,CAAC;AAEH,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,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AmB,GAAG,OAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAEtE,kEAAkE;AAClE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,wBAAwB,CAAC;AAE5E,yCAAyC;AACzC,eAAO,MAAM,sBAAsB,EAE9B,SAAS,mBAAmB,EAAE,CAAC;AAEpC;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAIxE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,sBAAsB,CAE5E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAK9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,EAAE,GACvF,OAAO,CAOT"}
|
|
@@ -480,8 +480,8 @@ const catalog = {
|
|
|
480
480
|
"pt-BR": "O builder carrega o módulo do componente, sem navegador, para ler a declaração, e o módulo lançou erro ou saiu. Causa comum: código no nível de cima de um módulo que usa globais do navegador (`window`, `document`, `localStorage`, `navigator`), que não existem enquanto a declaração é lida.",
|
|
481
481
|
},
|
|
482
482
|
hint: {
|
|
483
|
-
en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever
|
|
484
|
-
"pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que
|
|
483
|
+
en: "Do not use window or navigator at the top level of a module: use them inside render, an event handler or useEffect, which run in the browser after the component mounts. That does not make everything allowed: the build still refuses, wherever it appears, the page's DOM outside the component (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), and it warns about the page's storage (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/) and its cookies (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/). Keep state in useState or use the Taggor data API.",
|
|
484
|
+
"pt-BR": "Não use window nem navigator no nível de cima de um módulo: use-os dentro do render, de um handler de evento ou de um useEffect, que rodam no navegador depois que o componente monta. Isso não libera tudo: o build continua recusando, onde quer que apareça, o DOM da página fora do componente (https://docs.taggor.dev/diagnostics/UNSAFE_HOST_DOM/), e avisa sobre o armazenamento da página (https://docs.taggor.dev/diagnostics/UNSAFE_STORAGE_ACCESS/) e os cookies dela (https://docs.taggor.dev/diagnostics/UNSAFE_COOKIE_ACCESS/). Guarde o estado em useState ou use a API de dados do Taggor.",
|
|
485
485
|
},
|
|
486
486
|
},
|
|
487
487
|
STYLE_REFERENCE_UNDECLARED: {
|
|
@@ -668,7 +668,7 @@ const catalog = {
|
|
|
668
668
|
},
|
|
669
669
|
},
|
|
670
670
|
UNSAFE_COOKIE_ACCESS: {
|
|
671
|
-
severity: "
|
|
671
|
+
severity: "warning",
|
|
672
672
|
fault: "customer",
|
|
673
673
|
stage: "output",
|
|
674
674
|
title: {
|
|
@@ -676,16 +676,16 @@ const catalog = {
|
|
|
676
676
|
"pt-BR": "Componente lê os cookies da página",
|
|
677
677
|
},
|
|
678
678
|
description: {
|
|
679
|
-
en: "The component reads or writes document.cookie (or cookieStore): the host page's cookies, which may hold sessions and tracking ids that belong to the site, not to the component (rule document-cookie). Taggor
|
|
680
|
-
"pt-BR": "O componente lê ou grava document.cookie (ou cookieStore): os cookies da página hospedeira, que podem guardar sessões e ids de rastreamento do site, não do componente (regra document-cookie).
|
|
679
|
+
en: "The component reads or writes document.cookie (or cookieStore): the host page's cookies, which may hold sessions and tracking ids that belong to the site, not to the component If the component is meant to set or read cookies, nothing needs to change: the build goes on, and what the component stores is the customer's responsibility, including the notice and consent the site's law requires (rule document-cookie). Taggor's loader and runtime set no cookies.",
|
|
680
|
+
"pt-BR": "O componente lê ou grava document.cookie (ou cookieStore): os cookies da página hospedeira, que podem guardar sessões e ids de rastreamento do site, não do componente Se o componente deve gravar ou ler cookies, nada precisa mudar: o build segue, e o que o componente guarda é responsabilidade do cliente, inclusive o aviso e o consentimento que a lei do site exige (regra document-cookie). O loader e o runtime do Taggor não gravam cookies.",
|
|
681
681
|
},
|
|
682
682
|
hint: {
|
|
683
|
-
en: "
|
|
684
|
-
"pt-BR": "
|
|
683
|
+
en: "If the cookie access is intended, nothing to do. Otherwise remove it: to remember something about the visitor, use the component's props or the Taggor data API (useTaggorData).",
|
|
684
|
+
"pt-BR": "Se o acesso aos cookies é intencional, nada a fazer. Senão, tire-o: para lembrar algo do visitante, use as props do componente ou a API de dados do Taggor (useTaggorData).",
|
|
685
685
|
},
|
|
686
686
|
},
|
|
687
687
|
UNSAFE_STORAGE_ACCESS: {
|
|
688
|
-
severity: "
|
|
688
|
+
severity: "warning",
|
|
689
689
|
fault: "customer",
|
|
690
690
|
stage: "output",
|
|
691
691
|
title: {
|
|
@@ -693,12 +693,12 @@ const catalog = {
|
|
|
693
693
|
"pt-BR": "Componente usa o armazenamento da página",
|
|
694
694
|
},
|
|
695
695
|
description: {
|
|
696
|
-
en: "The component uses localStorage, sessionStorage, indexedDB or the Cache API (caches), which belong to the host site's origin: the component
|
|
697
|
-
"pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente
|
|
696
|
+
en: "The component uses localStorage, sessionStorage, indexedDB or the Cache API (caches), which belong to the host site's origin: the component can read what the site stored there and leave data behind. If that is what the component is meant to do, nothing needs to change: the build goes on, and what the component stores is the customer's responsibility (rule local-storage).",
|
|
697
|
+
"pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente pode ler o que o site guardou ali e deixar dados. Se é isso que o componente deve fazer, nada precisa mudar: o build segue, e o que o componente guarda é responsabilidade do cliente (regra local-storage).",
|
|
698
698
|
},
|
|
699
699
|
hint: {
|
|
700
|
-
en: "
|
|
701
|
-
"pt-BR": "
|
|
700
|
+
en: "If the storage is intended, nothing to do; touch it only after the component has mounted (inside useEffect or a handler), never at the top level. Otherwise keep state in memory (useState) or in props, or persist it with the Taggor data API (useTaggorData). See https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/ for browser globals at the top level.",
|
|
701
|
+
"pt-BR": "Se o armazenamento é intencional, nada a fazer; use-o só depois que o componente monta (dentro de useEffect ou de um handler), nunca no nível de cima. Senão, guarde o estado em memória (useState) ou em props, ou persista com a API de dados do Taggor (useTaggorData). Veja https://docs.taggor.dev/diagnostics/MANIFEST_EXTRACTION_FAILED/ sobre globais do navegador no nível de cima.",
|
|
702
702
|
},
|
|
703
703
|
},
|
|
704
704
|
UNSAFE_HOST_DOM: {
|
|
@@ -786,8 +786,8 @@ const catalog = {
|
|
|
786
786
|
stage: "output",
|
|
787
787
|
title: { en: "Crypto mining pattern", "pt-BR": "Padrão de mineração de criptomoeda" },
|
|
788
788
|
description: {
|
|
789
|
-
en: "The bundle has a signature of browser crypto mining: the Stratum protocol (stratum+tcp, mining.subscribe, mining.submit) or the name of a known miner or pool (CoinHive, CryptoNight, XMRig). Mining spends the visitor's CPU and battery without
|
|
790
|
-
"pt-BR": "O bundle tem uma assinatura de mineração de criptomoeda no navegador: o protocolo Stratum (stratum+tcp, mining.subscribe, mining.submit) ou o nome de um minerador ou pool conhecido (CoinHive, CryptoNight, XMRig). Minerar gasta a CPU e a bateria do visitante sem
|
|
789
|
+
en: "The bundle has a signature of browser crypto mining: the Stratum protocol (stratum+tcp, mining.subscribe, mining.submit) or the name of a known miner or pool (CoinHive, CryptoNight, XMRig). Mining spends the visitor's CPU and battery without the visitor knowing (rule mining).",
|
|
790
|
+
"pt-BR": "O bundle tem uma assinatura de mineração de criptomoeda no navegador: o protocolo Stratum (stratum+tcp, mining.subscribe, mining.submit) ou o nome de um minerador ou pool conhecido (CoinHive, CryptoNight, XMRig). Minerar gasta a CPU e a bateria do visitante sem ele saber (regra mining).",
|
|
791
791
|
},
|
|
792
792
|
hint: {
|
|
793
793
|
en: "Remove the mining code. If the text is only a word in your content, rephrase it.",
|
|
@@ -851,8 +851,8 @@ const catalog = {
|
|
|
851
851
|
"pt-BR": "Componente acessa estruturas internas do Preact",
|
|
852
852
|
},
|
|
853
853
|
description: {
|
|
854
|
-
en: "The component reads a mangled field used by Preact's component or hook internals. Those fields expose shared runtime state and can bypass safeguards such as
|
|
855
|
-
"pt-BR": "O componente lê um campo ofuscado usado pelas estruturas internas de componente ou hooks do Preact. Esses campos expõem estado do runtime compartilhado e podem contornar proteções como o
|
|
854
|
+
en: "The component reads a mangled field used by Preact's component or hook internals. Those fields expose shared runtime state and can bypass safeguards such as the component's isolation. This check only catches direct, statically visible access; names built at run time are not detected here and stay covered by the server-side proof check and abuse review (rule preact-internals).",
|
|
855
|
+
"pt-BR": "O componente lê um campo ofuscado usado pelas estruturas internas de componente ou hooks do Preact. Esses campos expõem estado do runtime compartilhado e podem contornar proteções como o isolamento do componente. Esta checagem só pega o acesso direto e visível no código; nomes montados em tempo de execução não são detectados aqui e continuam cobertos pela validação da prova no servidor e pela revisão de abuso (regra preact-internals).",
|
|
856
856
|
},
|
|
857
857
|
hint: {
|
|
858
858
|
en: "Remove accesses to Preact's internal fields and use the documented hooks and Preact component APIs.",
|
|
@@ -952,8 +952,8 @@ const catalog = {
|
|
|
952
952
|
stage: "output",
|
|
953
953
|
title: { en: "Component asks for credentials", "pt-BR": "Componente pede credenciais" },
|
|
954
954
|
description: {
|
|
955
|
-
en: "The component has a password field (type password, autocomplete current-password or new-password), a payment card field (cc-number, cc-csc, a field named cardNumber or cvv) or the text of a login it imitates (sign in with Google, verify your account, your session expired). A component on someone else's site that asks for these can phish the site's visitors, so
|
|
956
|
-
"pt-BR": "O componente tem um campo de senha (type password, autocomplete current-password ou new-password), um campo de cartão (cc-number, cc-csc, um campo chamado cardNumber ou cvv) ou o texto de um login que ele imita (entrar com Google, verifique sua conta, sua sessão expirou). Um componente no site de outra pessoa que pede isso pode fazer phishing com os visitantes do site, então
|
|
955
|
+
en: "The component has a password field (type password, autocomplete current-password or new-password), a payment card field (cc-number, cc-csc, a field named cardNumber or cvv) or the text of a login it imitates (sign in with Google, verify your account, your session expired). A component on someone else's site that asks for these can phish the site's visitors, so the build refuses it (rule credential-capture).",
|
|
956
|
+
"pt-BR": "O componente tem um campo de senha (type password, autocomplete current-password ou new-password), um campo de cartão (cc-number, cc-csc, um campo chamado cardNumber ou cvv) ou o texto de um login que ele imita (entrar com Google, verifique sua conta, sua sessão expirou). Um componente no site de outra pessoa que pede isso pode fazer phishing com os visitantes do site, então o build o recusa (regra credential-capture).",
|
|
957
957
|
},
|
|
958
958
|
hint: {
|
|
959
959
|
en: "Leave logins and payments to the site's own pages or a payment provider's checkout; a component collects only what a lead or a form needs.",
|
|
@@ -977,46 +977,18 @@ const catalog = {
|
|
|
977
977
|
"pt-BR": "Tire o campo; pagamentos vão por um provedor de pagamento e logins pelo próprio site.",
|
|
978
978
|
},
|
|
979
979
|
},
|
|
980
|
-
CONSENT_FORGED: {
|
|
981
|
-
severity: "error",
|
|
982
|
-
fault: "customer",
|
|
983
|
-
stage: "output",
|
|
984
|
-
title: { en: "Consent given by the component", "pt-BR": "Consentimento dado pelo componente" },
|
|
985
|
-
description: {
|
|
986
|
-
en: "The component calls the consent state's setGiven with something other than false outside an event handler (at render, in an effect, in a timer), so the box is ticked without the visitor's act. Consent under the LGPD is the visitor's affirmative act; a forged proof is a submission of personal data without consent, so it needs a person's review: it is refused until then (rule consent-forged).",
|
|
987
|
-
"pt-BR": "O componente chama o setGiven do estado de consentimento com algo diferente de false fora de um handler de evento (no render, num efeito, num timer), então a caixa é marcada sem o ato do visitante. Consentimento pela LGPD é ato afirmativo do visitante; uma prova forjada é envio de dado pessoal sem consentimento, então precisa de revisão de uma pessoa: é recusado até lá (regra consent-forged).",
|
|
988
|
-
},
|
|
989
|
-
hint: {
|
|
990
|
-
en: "Render <Consent consent={consent} />, or call consent.setGiven only in the onChange of your own checkbox.",
|
|
991
|
-
"pt-BR": "Renderize <Consent consent={consent} /> ou chame consent.setGiven só no onChange da sua própria caixa.",
|
|
992
|
-
},
|
|
993
|
-
},
|
|
994
|
-
CONSENT_NOT_SHOWN: {
|
|
995
|
-
severity: "error",
|
|
996
|
-
fault: "customer",
|
|
997
|
-
stage: "output",
|
|
998
|
-
title: { en: "Consent text not shown", "pt-BR": "Texto de consentimento não exibido" },
|
|
999
|
-
description: {
|
|
1000
|
-
en: "The component declares personal data (data.personal) but never renders <Consent> nor reads consent.label with the consent state, so the visitor does not see the text whose hash the proof carries. It needs a person's review: it is refused until then (rule consent-not-shown).",
|
|
1001
|
-
"pt-BR": "O componente declara dados pessoais (data.personal), mas nunca renderiza <Consent> nem lê consent.label com o estado de consentimento, então o visitante não vê o texto cujo hash vai na prova. Precisa de revisão de uma pessoa: é recusado até lá (regra consent-not-shown).",
|
|
1002
|
-
},
|
|
1003
|
-
hint: {
|
|
1004
|
-
en: "Render <Consent consent={useConsent(context, props)} /> next to the submit button, or show consent.label in your own checkbox.",
|
|
1005
|
-
"pt-BR": "Renderize <Consent consent={useConsent(context, props)} /> perto do botão de envio ou mostre consent.label na sua própria caixa.",
|
|
1006
|
-
},
|
|
1007
|
-
},
|
|
1008
980
|
VIEWPORT_OVERLAY: {
|
|
1009
|
-
severity: "
|
|
981
|
+
severity: "warning",
|
|
1010
982
|
fault: "customer",
|
|
1011
983
|
stage: "output",
|
|
1012
984
|
title: { en: "Layer over the whole viewport", "pt-BR": "Camada sobre a viewport inteira" },
|
|
1013
985
|
description: {
|
|
1014
|
-
en: "The component
|
|
1015
|
-
"pt-BR": "O
|
|
986
|
+
en: "The component draws a fixed layer over the whole viewport: :host, or a box inside it, with position: fixed and zero or negative inset on every side, or the size of the viewport (a rule without a state in its selector, so it shows before the visitor acts). The runtime's host does not contain, so the layer covers the host page and takes its clicks. If that is what the component is for (a popup, a modal, a banner), nothing needs to change: the build goes on, and what the component shows and covers is the customer's responsibility (rule viewport-overlay).",
|
|
987
|
+
"pt-BR": "O componente desenha uma camada fixa sobre a viewport inteira: o :host, ou uma caixa dentro dele, com position: fixed e inset zero ou negativo em todos os lados, ou do tamanho da viewport (uma regra sem estado no seletor, então aparece antes de o visitante agir). O host do runtime não contém, então a camada cobre a página hospedeira e recebe os cliques dela. Se é isso que o componente deve fazer (um popup, um modal, um banner), nada precisa mudar: o build segue, e o que o componente mostra e cobre é responsabilidade do cliente (regra viewport-overlay).",
|
|
1016
988
|
},
|
|
1017
989
|
hint: {
|
|
1018
|
-
en: "
|
|
1019
|
-
"pt-BR": "
|
|
990
|
+
en: "If the layer is intended, nothing to do. To keep it inside the component's own box, write :host { contain: content } in the component's styles.",
|
|
991
|
+
"pt-BR": "Se a camada é intencional, nada a fazer. Para mantê-la dentro da caixa do próprio componente, escreva :host { contain: content } nos estilos do componente.",
|
|
1020
992
|
},
|
|
1021
993
|
},
|
|
1022
994
|
UNSAFE_RUNTIME_CSS: {
|