@taggor/contract 0.4.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/artifact-keys.d.ts +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/contract-version.d.ts +17 -12
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +24 -17
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +14 -44
- package/dist/data-api.d.ts.map +1 -1
- package/dist/data-api.js +20 -54
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +63 -89
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +63 -87
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +81 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +121 -51
- 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/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +3 -3
- package/dist/index.d.ts +11 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -15
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +20 -28
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +19 -40
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +34 -55
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +22 -34
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +23 -35
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +3 -3
- package/dist/locale-tag.js +3 -3
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +44 -24
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +41 -61
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +33 -21
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +33 -21
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +33 -62
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +20 -67
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +16 -16
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +7 -14
- package/{schema → dist/schema}/data-api.v1.json +4 -39
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +3 -10
- package/dist/site-manifest.d.ts.map +1 -1
- package/dist/site-manifest.js +12 -15
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +17 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +15 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +2 -2
- package/dist/ssr-cap.d.ts.map +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +1 -1
- package/dist/ssr-kv.js +1 -1
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.d.ts.map +1 -1
- package/dist/url-value.js +7 -7
- package/dist/url-value.js.map +1 -1
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +20 -20
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +3 -3
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +4 -4
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -25
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -26
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- 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/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/data-api.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Data API of component contract v1
|
|
3
|
-
* the SDK hooks (`useTaggorData`, `useTrack
|
|
4
|
-
* public collection) and `track` (declared
|
|
2
|
+
* Data API of component contract v1: the payloads a component exchanges with the edge through
|
|
3
|
+
* the SDK hooks (`useTaggorData`, `useTrack`): `submit` (form submissions), `read` (list a
|
|
4
|
+
* public collection) and `track` (declared events).
|
|
5
5
|
*
|
|
6
|
-
* The wire format is snake_case JSON, like every `/v1` API resource
|
|
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
|
-
* `collectionDataSchema`, which drops undeclared fields
|
|
9
|
-
* `DATA_API_LIMITS` and must be enforced on the raw body before parsing
|
|
10
|
-
* the consent proof of submissions to components that collect personal data.
|
|
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.
|
|
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` (TAG-212): 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
|
-
* (
|
|
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`).
|
|
34
|
+
* (they only mark a submission `suspect`, which is kept; nothing is dropped unless the
|
|
35
|
+
* site chose `protection.suspects: "drop"`).
|
|
58
36
|
*/
|
|
59
37
|
export const submitRequestSchema = z
|
|
60
38
|
.strictObject({
|
|
@@ -63,10 +41,9 @@ 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
|
-
/** Answer to an accepted submission (HTTP 202): queued, not yet
|
|
46
|
+
/** Answer to an accepted submission (HTTP 202): queued, not stored yet. */
|
|
70
47
|
export const submitAcceptedSchema = z
|
|
71
48
|
.strictObject({ status: z.literal("accepted") })
|
|
72
49
|
.meta({ title: "Submit accepted" });
|
|
@@ -82,7 +59,7 @@ export const readRequestSchema = z
|
|
|
82
59
|
cursor: cursorSchema.optional(),
|
|
83
60
|
})
|
|
84
61
|
.meta({ title: "Read request" });
|
|
85
|
-
/** ULID-based public id of a submission (`sub_` prefix
|
|
62
|
+
/** ULID-based public id of a submission (`sub_` prefix). */
|
|
86
63
|
const submissionIdSchema = z.string().regex(/^sub_[0-9A-HJKMNP-TV-Z]{26}$/, {
|
|
87
64
|
error: "id must be sub_ followed by a ULID",
|
|
88
65
|
});
|
|
@@ -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,10 +97,7 @@ export const DATA_ERROR_CODES = Object.freeze([
|
|
|
118
97
|
"rate_limited",
|
|
119
98
|
"captcha_failed",
|
|
120
99
|
"payload_too_large",
|
|
121
|
-
//
|
|
122
|
-
// refuses it before sending; the ingest (E07) answers it to anything else.
|
|
123
|
-
"consent_required",
|
|
124
|
-
// TAG-730 (contract 1.8): a form without a Turnstile key reached its daily cap of submissions;
|
|
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",
|
|
127
103
|
]);
|
|
@@ -143,7 +119,7 @@ export const dataErrorSchema = z
|
|
|
143
119
|
* Builds the validator of the `data` of a submission to one declared collection.
|
|
144
120
|
*
|
|
145
121
|
* Inputs: the collection declaration from the manifest. Output: a Zod object schema; undeclared
|
|
146
|
-
* fields are dropped
|
|
122
|
+
* fields are dropped, required fields must be present, strings are capped at
|
|
147
123
|
* `MANIFEST_LIMITS.stringMaxLength`. Errors: none at build time; parsing returns Zod issues with
|
|
148
124
|
* the field path. Side effects: none.
|
|
149
125
|
*/
|
|
@@ -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":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,E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M,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"}
|
package/dist/denylist-keys.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function denyBundleKvKey(sha256: string): string;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function denySiteKvKey(siteKey: string): string;
|
|
13
13
|
/**
|
|
14
|
-
* KV key that denies a public asset hash
|
|
14
|
+
* KV key that denies a public asset hash.
|
|
15
15
|
* Inputs: 64 lowercase hexadecimal characters. Output: `asset:<sha256>`. Errors: `TypeError` for
|
|
16
16
|
* anything else. Side effects: none.
|
|
17
17
|
*/
|
package/dist/denylist-keys.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Zod-free KV key layout of the takedown denylist
|
|
2
|
+
* Zod-free KV key layout of the takedown denylist: the keys the API (operator surface)
|
|
3
3
|
* writes and the edge reads in the `TAKEDOWN` namespace. Like `site-manifest-keys.ts`, the layout
|
|
4
|
-
* lives in one place so the writer and the reader cannot drift apart
|
|
4
|
+
* lives in one place so the writer and the reader cannot drift apart.
|
|
5
5
|
*
|
|
6
6
|
* - `deny:<sha256>`: a bundle or stylesheet (`/b/<sha256>.js|css`) that must not be served (410).
|
|
7
7
|
* - `deny:site:<siteKey>`: a site that gets the inert loader, an empty manifest and no ingest.
|
|
8
|
-
* - `asset:<sha256>`: a public image or font (`/a/<sha256>.<ext>`), the scheme
|
|
8
|
+
* - `asset:<sha256>`: a public image or font (`/a/<sha256>.<ext>`), the scheme.
|
|
9
9
|
*
|
|
10
10
|
* Only the presence of a key matters to the edge; the value is the id of the takedown action that
|
|
11
11
|
* wrote it (never personal data, never a reason).
|
|
@@ -37,7 +37,7 @@ export function denySiteKvKey(siteKey) {
|
|
|
37
37
|
return `deny:site:${siteKey}`;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* KV key that denies a public asset hash
|
|
40
|
+
* KV key that denies a public asset hash.
|
|
41
41
|
* Inputs: 64 lowercase hexadecimal characters. Output: `asset:<sha256>`. Errors: `TypeError` for
|
|
42
42
|
* anything else. Side effects: none.
|
|
43
43
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LocalizedText } from "./prop-type-docs.js";
|
|
2
2
|
/**
|
|
3
|
-
* Limits of one build diagnostic
|
|
3
|
+
* Limits of one build diagnostic: what the builder reports for every error and warning
|
|
4
4
|
* and what `GET /v1/builds/{id}`, the CLI and the MCP pass on. The build container produces these
|
|
5
5
|
* from customer code, so the Worker checks them again (`buildDiagnosticSchema`).
|
|
6
6
|
*
|
|
@@ -45,7 +45,7 @@ export type DiagnosticSeverity = "error" | "warning";
|
|
|
45
45
|
export type DiagnosticFault = "customer" | "platform";
|
|
46
46
|
/**
|
|
47
47
|
* The build step that reports the code, in the order a build runs them; `version` is the
|
|
48
|
-
* creation of a version from a finished build (
|
|
48
|
+
* creation of a version from a finished build (the manifest compared with the one in
|
|
49
49
|
* production).
|
|
50
50
|
*/
|
|
51
51
|
export type DiagnosticStage = "source" | "compile" | "typecheck" | "manifest" | "output" | "build" | "version";
|
|
@@ -55,6 +55,13 @@ export declare const DIAGNOSTIC_STAGES: readonly DiagnosticStage[];
|
|
|
55
55
|
export interface DiagnosticCatalogEntry {
|
|
56
56
|
/** Severity the builder gives the code. */
|
|
57
57
|
readonly severity: DiagnosticSeverity;
|
|
58
|
+
/**
|
|
59
|
+
* A second severity the same code can carry, when the builder picks it by case (a
|
|
60
|
+
* named import of a missing React API is an `error`, the other cases of the same code are
|
|
61
|
+
* warnings). Docs only: the docs page and index show "error or warning"; `severity` stays the
|
|
62
|
+
* catalog's default.
|
|
63
|
+
*/
|
|
64
|
+
readonly alsoSeverity?: DiagnosticSeverity;
|
|
58
65
|
readonly fault: DiagnosticFault;
|
|
59
66
|
readonly stage: DiagnosticStage;
|
|
60
67
|
/** A few words, for headings and lists. */
|
|
@@ -74,7 +81,7 @@ export declare const TYPESCRIPT_DIAGNOSTIC_PATTERN: RegExp;
|
|
|
74
81
|
/** A code of the TypeScript type check (`TS2322`). */
|
|
75
82
|
export type TypeScriptDiagnosticCode = `TS${number}`;
|
|
76
83
|
/**
|
|
77
|
-
* The format of every build diagnostic code, known or not
|
|
84
|
+
* The format of every build diagnostic code, known or not: a TypeScript code, or
|
|
78
85
|
* upper snake case (a letter, then letters, digits and `_`) that is not `TS` followed only by
|
|
79
86
|
* digits, so `TS`, `TS12` and `TS0123` stay refused. With `diagnosticCodeMaxLength`, this is all
|
|
80
87
|
* the published schema checks about `code`; the catalog keys follow it (a test checks). Plain
|
|
@@ -95,8 +102,8 @@ declare const catalog: {
|
|
|
95
102
|
readonly "pt-BR": "O build entrou na fila, mas o pacote de fonte não está no armazenamento. O pacote é guardado no upload da versão, então o problema é do lado do Taggor.";
|
|
96
103
|
};
|
|
97
104
|
readonly hint: {
|
|
98
|
-
readonly en: "Publish the version again. If it happens again, contact
|
|
99
|
-
readonly "pt-BR": "Publique a versão de novo. Se acontecer de novo,
|
|
105
|
+
readonly en: "Publish the version again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
106
|
+
readonly "pt-BR": "Publique a versão de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
100
107
|
};
|
|
101
108
|
};
|
|
102
109
|
readonly SOURCE_TOO_LARGE: {
|
|
@@ -112,8 +119,8 @@ declare const catalog: {
|
|
|
112
119
|
readonly "pt-BR": "O pacote de fonte passa do que o Taggor aceita: comprimido, descompactado ou em número de arquivos (uma bomba de descompressão também para aqui). Causas comuns: saída de build, node_modules, imagens ou arquivos de dados empacotados junto com o fonte.";
|
|
113
120
|
};
|
|
114
121
|
readonly hint: {
|
|
115
|
-
readonly en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist
|
|
116
|
-
readonly "pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist
|
|
122
|
+
readonly en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist and data files. Keep the images and fonts the code imports under src/ in the supported formats, but delete the ones nothing imports and compress the large ones. The limits that apply: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
123
|
+
readonly "pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist e arquivos de dados. Mantenha em src/, nos formatos aceitos, as imagens e fontes que o código importa, mas apague as que nada importa e comprima as grandes. Os limites que valem: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
117
124
|
};
|
|
118
125
|
};
|
|
119
126
|
readonly SOURCE_INVALID: {
|
|
@@ -125,12 +132,12 @@ declare const catalog: {
|
|
|
125
132
|
readonly "pt-BR": "Pacote de fonte inválido";
|
|
126
133
|
};
|
|
127
134
|
readonly description: {
|
|
128
|
-
readonly en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a file is not UTF-8
|
|
129
|
-
readonly "pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo não é
|
|
135
|
+
readonly en: "The source package is not a gzip-compressed POSIX tar that Taggor reads safely: it is empty or not exactly one gzip member, it is a GNU or v7 tar, a header is corrupt or truncated, an entry other than a file has a body, a pax header is too large or has a key that is not allowed, two files have the same name (also when only letter case or Unicode normalization differs) or a file is also a folder, or a text file (code, styles, JSON, Markdown) is not UTF-8. The UTF-8 rule does not apply to the images and WOFF2 fonts under src/, which are kept as bytes; file names must be UTF-8 as well.";
|
|
136
|
+
readonly "pt-BR": "O pacote de fonte não é um tar POSIX comprimido com gzip que o Taggor lê com segurança: está vazio ou não é exatamente um membro gzip, é um tar GNU ou v7, um cabeçalho está corrompido ou cortado, uma entrada que não é arquivo tem corpo, um cabeçalho pax é grande demais ou tem chave não permitida, dois arquivos têm o mesmo nome (também quando só mudam maiúsculas ou a normalização Unicode) ou um arquivo é também pasta, ou um arquivo de texto (código, estilos, JSON, Markdown) não é UTF-8. A regra de UTF-8 não vale para as imagens e fontes WOFF2 em src/, que são mantidas como bytes; os nomes dos arquivos também precisam ser UTF-8.";
|
|
130
137
|
};
|
|
131
138
|
readonly hint: {
|
|
132
|
-
readonly en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular
|
|
133
|
-
readonly "pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns
|
|
139
|
+
readonly en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular files (tar --format=posix -czf component.tgz src; GNU tar writes its own format without --format=posix), with the code, styles, JSON and Markdown saved as UTF-8 text; images and WOFF2 fonts stay binary. The message names the file that was refused.";
|
|
140
|
+
readonly "pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns (tar --format=posix -czf component.tgz src; sem --format=posix, o GNU tar grava o formato próprio dele), com código, estilos, JSON e Markdown salvos como texto UTF-8; imagens e fontes WOFF2 continuam binárias. A mensagem cita o arquivo recusado.";
|
|
134
141
|
};
|
|
135
142
|
};
|
|
136
143
|
readonly SOURCE_PATH_NOT_ALLOWED: {
|
|
@@ -180,8 +187,8 @@ declare const catalog: {
|
|
|
180
187
|
readonly "pt-BR": "Um arquivo do pacote de fonte tem uma extensão que o Taggor não aceita, é uma imagem ou fonte fora de src/, ou é metadado do macOS (._nome, .DS_Store) que o tar do macOS acrescenta. Um pacote de componente só tem arquivos .ts, .tsx, .js, .jsx, .mjs, .json, .css, .scss e .md e, em src/, as imagens e fontes que o código importa (.png, .jpg, .jpeg, .webp, .avif, .svg, .woff2).";
|
|
181
188
|
};
|
|
182
189
|
readonly hint: {
|
|
183
|
-
readonly en: "Leave the file out of the package.
|
|
184
|
-
readonly "pt-BR": "Deixe o arquivo fora do pacote.
|
|
190
|
+
readonly en: "Leave the file out of the package if the code does not use it (images nothing imports are the usual extra). If it is used, convert other image formats to .png, .webp or .svg and fonts to .woff2, put them under src/ and import them from the code (import logo from \"./logo.svg\"). The supported formats stay: this check only refuses the others. Size limits: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
191
|
+
readonly "pt-BR": "Deixe o arquivo fora do pacote se o código não o usa (imagem que nada importa é o excesso mais comum). Se ele é usado, converta outros formatos de imagem para .png, .webp ou .svg e fontes para .woff2, ponha em src/ e importe pelo código (import logo from \"./logo.svg\"). Os formatos aceitos continuam valendo: esta checagem só recusa os outros. Limites de tamanho: https://docs.taggor.dev/limits-and-billing/#what-stays-a-hard-limit-on-every-plan.";
|
|
185
192
|
};
|
|
186
193
|
};
|
|
187
194
|
readonly SOURCE_CONFIG_NOT_ALLOWED: {
|
|
@@ -322,6 +329,7 @@ declare const catalog: {
|
|
|
322
329
|
};
|
|
323
330
|
readonly REACT_API_UNSUPPORTED: {
|
|
324
331
|
readonly severity: "warning";
|
|
332
|
+
readonly alsoSeverity: "error";
|
|
325
333
|
readonly fault: "customer";
|
|
326
334
|
readonly stage: "compile";
|
|
327
335
|
readonly title: {
|
|
@@ -329,8 +337,8 @@ declare const catalog: {
|
|
|
329
337
|
readonly "pt-BR": "API do React sem suporte";
|
|
330
338
|
};
|
|
331
339
|
readonly description: {
|
|
332
|
-
readonly en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. A named import of a missing API
|
|
333
|
-
readonly "pt-BR": "O componente, ou uma biblioteca que ele importa, usa uma API do React que a camada de compatibilidade do Preact (preact/compat, para onde react e react-dom resolvem) não oferece, como use, useActionState, useOptimistic, useFormStatus ou Profiler, ou um ponto de entrada do React que ela não tem (react-dom/server, react/compiler-runtime); ou monta uma raiz React por conta própria (createRoot, render), o que um componente nunca precisa. Import nomeado de API ausente
|
|
340
|
+
readonly en: "The component, or a library it imports, uses a React API that Preact's compatibility layer (preact/compat, where react and react-dom resolve) does not provide, such as use, useActionState, useOptimistic, useFormStatus or Profiler, or a React entry point it does not have (react-dom/server, react/compiler-runtime); or it mounts a React root itself (createRoot, render), which a component never needs. The severity depends on the case:\n\n| Case | Severity | What happens |\n| --- | --- | --- |\n| A named import of a missing API (`import { use } from \"react\"`) | error | The bundle could not load in the browser, so the build fails. |\n| A missing API read through a namespace or default import (`React.use`) | warning | The build goes on; the API is undefined when the code runs, and the component's error boundary catches the failure. |\n| Mounting a React root (`createRoot`, `render`) | warning | The build goes on; the runtime mounts the component, so the root is never needed. |";
|
|
341
|
+
readonly "pt-BR": "O componente, ou uma biblioteca que ele importa, usa uma API do React que a camada de compatibilidade do Preact (preact/compat, para onde react e react-dom resolvem) não oferece, como use, useActionState, useOptimistic, useFormStatus ou Profiler, ou um ponto de entrada do React que ela não tem (react-dom/server, react/compiler-runtime); ou monta uma raiz React por conta própria (createRoot, render), o que um componente nunca precisa. A gravidade depende do caso:\n\n| Caso | Gravidade | O que acontece |\n| --- | --- | --- |\n| Import nomeado de API ausente (`import { use } from \"react\"`) | erro | O bundle não carregaria no navegador, então o build falha. |\n| API ausente lida por import de namespace ou default (`React.use`) | aviso | O build segue; a API é undefined quando o código roda, e o error boundary do componente pega a falha. |\n| Montar uma raiz React (`createRoot`, `render`) | aviso | O build segue; o runtime monta o componente, então a raiz nunca é necessária. |";
|
|
334
342
|
};
|
|
335
343
|
readonly hint: {
|
|
336
344
|
readonly en: "Use the supported alternative the message names (useState and an async handler for useActionState, useContext for use(context)), or write that part with Preact's own hooks. The runtime mounts the component: export it with defineTaggorComponent instead of calling createRoot.";
|
|
@@ -431,8 +439,8 @@ declare const catalog: {
|
|
|
431
439
|
readonly "pt-BR": "Erro de tipo do TypeScript";
|
|
432
440
|
};
|
|
433
441
|
readonly description: {
|
|
434
|
-
readonly en: "The type check found an error. The code is `TS` and the compiler's number
|
|
435
|
-
readonly "pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador
|
|
442
|
+
readonly en: "The type check found an error. The code is `TS` and the compiler's number, and the message is the compiler's.";
|
|
443
|
+
readonly "pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador, e a mensagem é a do compilador.";
|
|
436
444
|
};
|
|
437
445
|
readonly hint: {
|
|
438
446
|
readonly en: "Fix the type at the position given; the message says which types disagree.";
|
|
@@ -486,8 +494,8 @@ declare const catalog: {
|
|
|
486
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.";
|
|
487
495
|
};
|
|
488
496
|
readonly hint: {
|
|
489
|
-
readonly en: "Do not
|
|
490
|
-
readonly "pt-BR": "Não use window
|
|
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.";
|
|
491
499
|
};
|
|
492
500
|
};
|
|
493
501
|
readonly STYLE_REFERENCE_UNDECLARED: {
|
|
@@ -520,8 +528,8 @@ declare const catalog: {
|
|
|
520
528
|
readonly "pt-BR": "O componente importa uma folha de estilo (`import \"./styles.css\"`), e o builder a entrega dentro do bundle publicado como estilos do componente, mas o bundle pronto não a leva. O build para em vez de publicar um componente que aparece sem o CSS. O pacote de fonte não causou isso: é falha do builder.";
|
|
521
529
|
};
|
|
522
530
|
readonly hint: {
|
|
523
|
-
readonly en: "Do not retry: the failure repeats.
|
|
524
|
-
readonly "pt-BR": "Não tente de novo: a falha se repete.
|
|
531
|
+
readonly en: "Do not retry: the failure repeats. Write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
532
|
+
readonly "pt-BR": "Não tente de novo: a falha se repete. Escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
525
533
|
};
|
|
526
534
|
};
|
|
527
535
|
readonly OUTPUT_TOO_LARGE: {
|
|
@@ -695,7 +703,7 @@ declare const catalog: {
|
|
|
695
703
|
};
|
|
696
704
|
};
|
|
697
705
|
readonly UNSAFE_COOKIE_ACCESS: {
|
|
698
|
-
readonly severity: "
|
|
706
|
+
readonly severity: "warning";
|
|
699
707
|
readonly fault: "customer";
|
|
700
708
|
readonly stage: "output";
|
|
701
709
|
readonly title: {
|
|
@@ -703,16 +711,16 @@ declare const catalog: {
|
|
|
703
711
|
readonly "pt-BR": "Componente lê os cookies da página";
|
|
704
712
|
};
|
|
705
713
|
readonly description: {
|
|
706
|
-
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
|
|
707
|
-
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.";
|
|
708
716
|
};
|
|
709
717
|
readonly hint: {
|
|
710
|
-
readonly en: "
|
|
711
|
-
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).";
|
|
712
720
|
};
|
|
713
721
|
};
|
|
714
722
|
readonly UNSAFE_STORAGE_ACCESS: {
|
|
715
|
-
readonly severity: "
|
|
723
|
+
readonly severity: "warning";
|
|
716
724
|
readonly fault: "customer";
|
|
717
725
|
readonly stage: "output";
|
|
718
726
|
readonly title: {
|
|
@@ -720,12 +728,12 @@ declare const catalog: {
|
|
|
720
728
|
readonly "pt-BR": "Componente usa o armazenamento da página";
|
|
721
729
|
};
|
|
722
730
|
readonly description: {
|
|
723
|
-
readonly en: "The component uses localStorage, sessionStorage, indexedDB or the Cache API (caches), which belong to the host site's origin: the component
|
|
724
|
-
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).";
|
|
725
733
|
};
|
|
726
734
|
readonly hint: {
|
|
727
|
-
readonly en: "
|
|
728
|
-
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.";
|
|
729
737
|
};
|
|
730
738
|
};
|
|
731
739
|
readonly UNSAFE_HOST_DOM: {
|
|
@@ -822,8 +830,8 @@ declare const catalog: {
|
|
|
822
830
|
readonly "pt-BR": "Padrão de mineração de criptomoeda";
|
|
823
831
|
};
|
|
824
832
|
readonly description: {
|
|
825
|
-
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
|
|
826
|
-
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).";
|
|
827
835
|
};
|
|
828
836
|
readonly hint: {
|
|
829
837
|
readonly en: "Remove the mining code. If the text is only a word in your content, rephrase it.";
|
|
@@ -890,8 +898,8 @@ declare const catalog: {
|
|
|
890
898
|
readonly "pt-BR": "Componente acessa estruturas internas do Preact";
|
|
891
899
|
};
|
|
892
900
|
readonly description: {
|
|
893
|
-
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
|
|
894
|
-
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).";
|
|
895
903
|
};
|
|
896
904
|
readonly hint: {
|
|
897
905
|
readonly en: "Remove accesses to Preact's internal fields and use the documented hooks and Preact component APIs.";
|
|
@@ -1009,8 +1017,8 @@ declare const catalog: {
|
|
|
1009
1017
|
readonly "pt-BR": "Componente pede credenciais";
|
|
1010
1018
|
};
|
|
1011
1019
|
readonly description: {
|
|
1012
|
-
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
|
|
1013
|
-
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).";
|
|
1014
1022
|
};
|
|
1015
1023
|
readonly hint: {
|
|
1016
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.";
|
|
@@ -1034,42 +1042,8 @@ declare const catalog: {
|
|
|
1034
1042
|
readonly "pt-BR": "Tire o campo; pagamentos vão por um provedor de pagamento e logins pelo próprio site.";
|
|
1035
1043
|
};
|
|
1036
1044
|
};
|
|
1037
|
-
readonly CONSENT_FORGED: {
|
|
1038
|
-
readonly severity: "error";
|
|
1039
|
-
readonly fault: "customer";
|
|
1040
|
-
readonly stage: "output";
|
|
1041
|
-
readonly title: {
|
|
1042
|
-
readonly en: "Consent given by the component";
|
|
1043
|
-
readonly "pt-BR": "Consentimento dado pelo componente";
|
|
1044
|
-
};
|
|
1045
|
-
readonly description: {
|
|
1046
|
-
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).";
|
|
1047
|
-
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).";
|
|
1048
|
-
};
|
|
1049
|
-
readonly hint: {
|
|
1050
|
-
readonly en: "Render <Consent consent={consent} />, or call consent.setGiven only in the onChange of your own checkbox.";
|
|
1051
|
-
readonly "pt-BR": "Renderize <Consent consent={consent} /> ou chame consent.setGiven só no onChange da sua própria caixa.";
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
|
-
readonly CONSENT_NOT_SHOWN: {
|
|
1055
|
-
readonly severity: "error";
|
|
1056
|
-
readonly fault: "customer";
|
|
1057
|
-
readonly stage: "output";
|
|
1058
|
-
readonly title: {
|
|
1059
|
-
readonly en: "Consent text not shown";
|
|
1060
|
-
readonly "pt-BR": "Texto de consentimento não exibido";
|
|
1061
|
-
};
|
|
1062
|
-
readonly description: {
|
|
1063
|
-
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).";
|
|
1064
|
-
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).";
|
|
1065
|
-
};
|
|
1066
|
-
readonly hint: {
|
|
1067
|
-
readonly en: "Render <Consent consent={useConsent(context, props)} /> next to the submit button, or show consent.label in your own checkbox.";
|
|
1068
|
-
readonly "pt-BR": "Renderize <Consent consent={useConsent(context, props)} /> perto do botão de envio ou mostre consent.label na sua própria caixa.";
|
|
1069
|
-
};
|
|
1070
|
-
};
|
|
1071
1045
|
readonly VIEWPORT_OVERLAY: {
|
|
1072
|
-
readonly severity: "
|
|
1046
|
+
readonly severity: "warning";
|
|
1073
1047
|
readonly fault: "customer";
|
|
1074
1048
|
readonly stage: "output";
|
|
1075
1049
|
readonly title: {
|
|
@@ -1077,12 +1051,12 @@ declare const catalog: {
|
|
|
1077
1051
|
readonly "pt-BR": "Camada sobre a viewport inteira";
|
|
1078
1052
|
};
|
|
1079
1053
|
readonly description: {
|
|
1080
|
-
readonly en: "The component
|
|
1081
|
-
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).";
|
|
1082
1056
|
};
|
|
1083
1057
|
readonly hint: {
|
|
1084
|
-
readonly en: "
|
|
1085
|
-
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.";
|
|
1086
1060
|
};
|
|
1087
1061
|
};
|
|
1088
1062
|
readonly UNSAFE_RUNTIME_CSS: {
|
|
@@ -1183,8 +1157,8 @@ declare const catalog: {
|
|
|
1183
1157
|
readonly "pt-BR": "O container de build mandou uma resposta que o builder não aceita, e o build parou. Isso conta como falha do builder.";
|
|
1184
1158
|
};
|
|
1185
1159
|
readonly hint: {
|
|
1186
|
-
readonly en: "Publish again. If it happens again, contact
|
|
1187
|
-
readonly "pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1160
|
+
readonly en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1161
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1188
1162
|
};
|
|
1189
1163
|
};
|
|
1190
1164
|
readonly INTERNAL_ERROR: {
|
|
@@ -1200,8 +1174,8 @@ declare const catalog: {
|
|
|
1200
1174
|
readonly "pt-BR": "A infraestrutura do Taggor falhou até a última tentativa, então o build parou. Nada no pacote de fonte causou isso.";
|
|
1201
1175
|
};
|
|
1202
1176
|
readonly hint: {
|
|
1203
|
-
readonly en: "Publish again later. If it keeps failing, contact
|
|
1204
|
-
readonly "pt-BR": "Publique de novo mais tarde. Se continuar falhando,
|
|
1177
|
+
readonly en: "Publish again later. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1178
|
+
readonly "pt-BR": "Publique de novo mais tarde. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1205
1179
|
};
|
|
1206
1180
|
};
|
|
1207
1181
|
readonly BUILD_STUCK: {
|
|
@@ -1209,16 +1183,16 @@ declare const catalog: {
|
|
|
1209
1183
|
readonly fault: "platform";
|
|
1210
1184
|
readonly stage: "build";
|
|
1211
1185
|
readonly title: {
|
|
1212
|
-
readonly en: "Build
|
|
1213
|
-
readonly "pt-BR": "Build
|
|
1186
|
+
readonly en: "Build ended after the processing time";
|
|
1187
|
+
readonly "pt-BR": "Build encerrado ao passar do prazo de processamento";
|
|
1214
1188
|
};
|
|
1215
1189
|
readonly description: {
|
|
1216
|
-
readonly en: "The build
|
|
1217
|
-
readonly "pt-BR": "O build
|
|
1190
|
+
readonly en: "The build went past the time Taggor allows for processing a build and was stopped as failed. Nothing in the source package caused it, and the build produced no version, so nothing changed on your sites.";
|
|
1191
|
+
readonly "pt-BR": "O build passou do tempo que o Taggor dá para processar um build e foi encerrado como falho. Nada no pacote de fonte causou isso, e o build não gerou versão, então nada mudou nos seus sites.";
|
|
1218
1192
|
};
|
|
1219
1193
|
readonly hint: {
|
|
1220
|
-
readonly en: "Publish again. If it happens again, contact
|
|
1221
|
-
readonly "pt-BR": "Publique de novo. Se acontecer de novo,
|
|
1194
|
+
readonly en: "Publish again. If it happens again, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1195
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1222
1196
|
};
|
|
1223
1197
|
};
|
|
1224
1198
|
readonly CONTAINER_START_TIMEOUT: {
|
|
@@ -1234,8 +1208,8 @@ declare const catalog: {
|
|
|
1234
1208
|
readonly "pt-BR": "O container que roda o build não ficou pronto dentro do tempo limite de partida, em todas as tentativas. Nada no pacote de fonte causou isso: a plataforma não conseguiu dar um container ao build.";
|
|
1235
1209
|
};
|
|
1236
1210
|
readonly hint: {
|
|
1237
|
-
readonly en: "Publish again in a few minutes. If it keeps failing, contact
|
|
1238
|
-
readonly "pt-BR": "Publique de novo em alguns minutos. Se continuar falhando,
|
|
1211
|
+
readonly en: "Publish again in a few minutes. If it keeps failing, write to contact@taggor.dev with the build id (`bld_...`, printed by `taggor publish` and shown on the build in the portal) and the CLI version (`taggor --version`).";
|
|
1212
|
+
readonly "pt-BR": "Publique de novo em alguns minutos. Se continuar falhando, escreva para contact@taggor.dev com o id do build (`bld_...`, impresso pelo `taggor publish` e mostrado no build, no portal) e a versão da CLI (`taggor --version`).";
|
|
1239
1213
|
};
|
|
1240
1214
|
};
|
|
1241
1215
|
readonly BREAKING_PROP_CHANGE: {
|
|
@@ -1388,7 +1362,7 @@ export declare function diagnosticDocsUrl(code: DiagnosticCode): string;
|
|
|
1388
1362
|
* Whether a build failed because of its source: at least one `error` whose code is the
|
|
1389
1363
|
* customer's fault. The first-attempt success metric (PLANO) counts a publish as failed on the
|
|
1390
1364
|
* first try when its first build has such an error; platform errors and warnings do not count.
|
|
1391
|
-
* A code this package does not know (a newer builder
|
|
1365
|
+
* A code this package does not know (a newer builder) has no known fault and does not
|
|
1392
1366
|
* count, so an unknown code never blames the customer.
|
|
1393
1367
|
*
|
|
1394
1368
|
* Inputs: the diagnostics of one build, codes known or not. Output: a boolean. Errors: none.
|
|
@@ -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+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