@taggor/contract 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/artifact-keys.d.ts +169 -0
- package/dist/artifact-keys.d.ts.map +1 -0
- package/dist/artifact-keys.js +195 -0
- package/dist/artifact-keys.js.map +1 -0
- package/dist/assets.d.ts +72 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +94 -0
- package/dist/assets.js.map +1 -0
- package/dist/bounded-path.d.ts +29 -0
- package/dist/bounded-path.d.ts.map +1 -0
- package/dist/bounded-path.js +57 -0
- package/dist/bounded-path.js.map +1 -0
- package/dist/bounded.d.ts +47 -0
- package/dist/bounded.d.ts.map +1 -0
- package/dist/bounded.js +93 -0
- package/dist/bounded.js.map +1 -0
- package/dist/build-diagnostic.d.ts +89 -0
- package/dist/build-diagnostic.d.ts.map +1 -0
- package/dist/build-diagnostic.js +91 -0
- package/dist/build-diagnostic.js.map +1 -0
- package/dist/component-types.d.ts +61 -0
- package/dist/component-types.d.ts.map +1 -0
- package/dist/component-types.js +277 -0
- package/dist/component-types.js.map +1 -0
- package/dist/consent-text.d.ts +31 -0
- package/dist/consent-text.d.ts.map +1 -0
- package/dist/consent-text.js +41 -0
- package/dist/consent-text.js.map +1 -0
- package/dist/contract-version.d.ts +150 -0
- package/dist/contract-version.d.ts.map +1 -0
- package/dist/contract-version.js +198 -0
- package/dist/contract-version.js.map +1 -0
- package/dist/credential-fields.d.ts +31 -0
- package/dist/credential-fields.d.ts.map +1 -0
- package/dist/credential-fields.js +36 -0
- package/dist/credential-fields.js.map +1 -0
- package/dist/css-tokens.d.ts +46 -0
- package/dist/css-tokens.d.ts.map +1 -0
- package/dist/css-tokens.js +189 -0
- package/dist/css-tokens.js.map +1 -0
- package/dist/css-value.d.ts +42 -0
- package/dist/css-value.d.ts.map +1 -0
- package/dist/css-value.js +78 -0
- package/dist/css-value.js.map +1 -0
- package/dist/data-api.d.ts +127 -0
- package/dist/data-api.d.ts.map +1 -0
- package/dist/data-api.js +167 -0
- package/dist/data-api.js.map +1 -0
- package/dist/denylist-keys.d.ts +19 -0
- package/dist/denylist-keys.d.ts.map +1 -0
- package/dist/denylist-keys.js +48 -0
- package/dist/denylist-keys.js.map +1 -0
- package/dist/diagnostic-catalog.d.ts +1402 -0
- package/dist/diagnostic-catalog.d.ts.map +1 -0
- package/dist/diagnostic-catalog.js +1311 -0
- package/dist/diagnostic-catalog.js.map +1 -0
- package/dist/dom-members.snapshot.d.ts +33 -0
- package/dist/dom-members.snapshot.d.ts.map +1 -0
- package/dist/dom-members.snapshot.js +760 -0
- package/dist/dom-members.snapshot.js.map +1 -0
- package/dist/early-loading.d.ts +27 -0
- package/dist/early-loading.d.ts.map +1 -0
- package/dist/early-loading.js +44 -0
- package/dist/early-loading.js.map +1 -0
- package/dist/error-catalog.d.ts +749 -0
- package/dist/error-catalog.d.ts.map +1 -0
- package/dist/error-catalog.js +720 -0
- package/dist/error-catalog.js.map +1 -0
- package/dist/executable-config.d.ts +35 -0
- package/dist/executable-config.d.ts.map +1 -0
- package/dist/executable-config.js +44 -0
- package/dist/executable-config.js.map +1 -0
- package/dist/freeze.d.ts +17 -0
- package/dist/freeze.d.ts.map +1 -0
- package/dist/freeze.js +29 -0
- package/dist/freeze.js.map +1 -0
- package/dist/gunzip.d.ts +33 -0
- package/dist/gunzip.d.ts.map +1 -0
- package/dist/gunzip.js +330 -0
- package/dist/gunzip.js.map +1 -0
- package/dist/hostname.d.ts +74 -0
- package/dist/hostname.d.ts.map +1 -0
- package/dist/hostname.js +215 -0
- package/dist/hostname.js.map +1 -0
- package/dist/human-actions.d.ts +49 -0
- package/dist/human-actions.d.ts.map +1 -0
- package/dist/human-actions.js +272 -0
- package/dist/human-actions.js.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -0
- package/dist/json-schema.d.ts +108 -0
- package/dist/json-schema.d.ts.map +1 -0
- package/dist/json-schema.js +240 -0
- package/dist/json-schema.js.map +1 -0
- package/dist/key-checksum.d.ts +33 -0
- package/dist/key-checksum.d.ts.map +1 -0
- package/dist/key-checksum.js +67 -0
- package/dist/key-checksum.js.map +1 -0
- package/dist/libraries.d.ts +60 -0
- package/dist/libraries.d.ts.map +1 -0
- package/dist/libraries.js +120 -0
- package/dist/libraries.js.map +1 -0
- package/dist/limit-catalog.d.ts +371 -0
- package/dist/limit-catalog.d.ts.map +1 -0
- package/dist/limit-catalog.js +414 -0
- package/dist/limit-catalog.js.map +1 -0
- package/dist/limits.d.ts +167 -0
- package/dist/limits.d.ts.map +1 -0
- package/dist/limits.js +175 -0
- package/dist/limits.js.map +1 -0
- package/dist/locale-tag.d.ts +21 -0
- package/dist/locale-tag.d.ts.map +1 -0
- package/dist/locale-tag.js +21 -0
- package/dist/locale-tag.js.map +1 -0
- package/dist/make-diagnostic.d.ts +74 -0
- package/dist/make-diagnostic.d.ts.map +1 -0
- package/dist/make-diagnostic.js +100 -0
- package/dist/make-diagnostic.js.map +1 -0
- package/dist/manifest-compat-diagnostics.d.ts +23 -0
- package/dist/manifest-compat-diagnostics.d.ts.map +1 -0
- package/dist/manifest-compat-diagnostics.js +150 -0
- package/dist/manifest-compat-diagnostics.js.map +1 -0
- package/dist/manifest-compat.d.ts +58 -0
- package/dist/manifest-compat.d.ts.map +1 -0
- package/dist/manifest-compat.js +377 -0
- package/dist/manifest-compat.js.map +1 -0
- package/dist/manifest.d.ts +1769 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +421 -0
- package/dist/manifest.js.map +1 -0
- package/dist/metering.d.ts +126 -0
- package/dist/metering.d.ts.map +1 -0
- package/dist/metering.js +147 -0
- package/dist/metering.js.map +1 -0
- package/dist/migrate.d.ts +70 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migrate.js +159 -0
- package/dist/migrate.js.map +1 -0
- package/dist/names.d.ts +37 -0
- package/dist/names.d.ts.map +1 -0
- package/dist/names.js +55 -0
- package/dist/names.js.map +1 -0
- package/dist/overage-pricing.d.ts +89 -0
- package/dist/overage-pricing.d.ts.map +1 -0
- package/dist/overage-pricing.js +170 -0
- package/dist/overage-pricing.js.map +1 -0
- package/dist/plan-ids.d.ts +10 -0
- package/dist/plan-ids.d.ts.map +1 -0
- package/dist/plan-ids.js +8 -0
- package/dist/plan-ids.js.map +1 -0
- package/dist/plan-limits.d.ts +138 -0
- package/dist/plan-limits.d.ts.map +1 -0
- package/dist/plan-limits.js +112 -0
- package/dist/plan-limits.js.map +1 -0
- package/dist/plan-pricing.d.ts +145 -0
- package/dist/plan-pricing.d.ts.map +1 -0
- package/dist/plan-pricing.js +172 -0
- package/dist/plan-pricing.js.map +1 -0
- package/dist/plan-usage.d.ts +112 -0
- package/dist/plan-usage.d.ts.map +1 -0
- package/dist/plan-usage.js +134 -0
- package/dist/plan-usage.js.map +1 -0
- package/dist/preview-token.d.ts +52 -0
- package/dist/preview-token.d.ts.map +1 -0
- package/dist/preview-token.js +106 -0
- package/dist/preview-token.js.map +1 -0
- package/dist/prop-names.d.ts +51 -0
- package/dist/prop-names.d.ts.map +1 -0
- package/dist/prop-names.js +150 -0
- package/dist/prop-names.js.map +1 -0
- package/dist/prop-type-docs.d.ts +20 -0
- package/dist/prop-type-docs.d.ts.map +1 -0
- package/dist/prop-type-docs.js +89 -0
- package/dist/prop-type-docs.js.map +1 -0
- package/dist/prop-types.d.ts +97 -0
- package/dist/prop-types.d.ts.map +1 -0
- package/dist/prop-types.js +299 -0
- package/dist/prop-types.js.map +1 -0
- package/dist/props.d.ts +996 -0
- package/dist/props.d.ts.map +1 -0
- package/dist/props.js +183 -0
- package/dist/props.js.map +1 -0
- package/dist/proto-guard.d.ts +29 -0
- package/dist/proto-guard.d.ts.map +1 -0
- package/dist/proto-guard.js +79 -0
- package/dist/proto-guard.js.map +1 -0
- package/dist/runtime-errors.d.ts +42 -0
- package/dist/runtime-errors.d.ts.map +1 -0
- package/dist/runtime-errors.js +42 -0
- package/dist/runtime-errors.js.map +1 -0
- package/dist/runtime-pointers.d.ts +58 -0
- package/dist/runtime-pointers.d.ts.map +1 -0
- package/dist/runtime-pointers.js +84 -0
- package/dist/runtime-pointers.js.map +1 -0
- package/dist/secret-scan.d.ts +191 -0
- package/dist/secret-scan.d.ts.map +1 -0
- package/dist/secret-scan.js +542 -0
- package/dist/secret-scan.js.map +1 -0
- package/dist/semver.d.ts +89 -0
- package/dist/semver.d.ts.map +1 -0
- package/dist/semver.js +400 -0
- package/dist/semver.js.map +1 -0
- package/dist/server-key.d.ts +68 -0
- package/dist/server-key.d.ts.map +1 -0
- package/dist/server-key.js +150 -0
- package/dist/server-key.js.map +1 -0
- package/dist/site-manifest-keys.d.ts +107 -0
- package/dist/site-manifest-keys.d.ts.map +1 -0
- package/dist/site-manifest-keys.js +146 -0
- package/dist/site-manifest-keys.js.map +1 -0
- package/dist/site-manifest.d.ts +286 -0
- package/dist/site-manifest.d.ts.map +1 -0
- package/dist/site-manifest.js +100 -0
- package/dist/site-manifest.js.map +1 -0
- package/dist/source-archive.d.ts +119 -0
- package/dist/source-archive.d.ts.map +1 -0
- package/dist/source-archive.js +644 -0
- package/dist/source-archive.js.map +1 -0
- package/dist/source-package-corpus.d.ts +55 -0
- package/dist/source-package-corpus.d.ts.map +1 -0
- package/dist/source-package-corpus.js +303 -0
- package/dist/source-package-corpus.js.map +1 -0
- package/dist/source-package.d.ts +227 -0
- package/dist/source-package.d.ts.map +1 -0
- package/dist/source-package.js +361 -0
- package/dist/source-package.js.map +1 -0
- package/dist/source-secrets.d.ts +21 -0
- package/dist/source-secrets.d.ts.map +1 -0
- package/dist/source-secrets.js +43 -0
- package/dist/source-secrets.js.map +1 -0
- package/dist/ssr-cap.d.ts +61 -0
- package/dist/ssr-cap.d.ts.map +1 -0
- package/dist/ssr-cap.js +107 -0
- package/dist/ssr-cap.js.map +1 -0
- package/dist/ssr-kv.d.ts +18 -0
- package/dist/ssr-kv.d.ts.map +1 -0
- package/dist/ssr-kv.js +18 -0
- package/dist/ssr-kv.js.map +1 -0
- package/dist/ssr-version-ledger.d.ts +53 -0
- package/dist/ssr-version-ledger.d.ts.map +1 -0
- package/dist/ssr-version-ledger.js +88 -0
- package/dist/ssr-version-ledger.js.map +1 -0
- package/dist/style-references.d.ts +58 -0
- package/dist/style-references.d.ts.map +1 -0
- package/dist/style-references.js +241 -0
- package/dist/style-references.js.map +1 -0
- package/dist/tag-name.d.ts +87 -0
- package/dist/tag-name.d.ts.map +1 -0
- package/dist/tag-name.js +222 -0
- package/dist/tag-name.js.map +1 -0
- package/dist/tar-writer.d.ts +74 -0
- package/dist/tar-writer.d.ts.map +1 -0
- package/dist/tar-writer.js +148 -0
- package/dist/tar-writer.js.map +1 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +11 -0
- package/dist/testing.js.map +1 -0
- package/dist/text-codec.d.ts +36 -0
- package/dist/text-codec.d.ts.map +1 -0
- package/dist/text-codec.js +32 -0
- package/dist/text-codec.js.map +1 -0
- package/dist/url-value.d.ts +41 -0
- package/dist/url-value.d.ts.map +1 -0
- package/dist/url-value.js +147 -0
- package/dist/url-value.js.map +1 -0
- package/dist/usage-guard.d.ts +99 -0
- package/dist/usage-guard.d.ts.map +1 -0
- package/dist/usage-guard.js +104 -0
- package/dist/usage-guard.js.map +1 -0
- package/dist/usage-mirror.d.ts +55 -0
- package/dist/usage-mirror.d.ts.map +1 -0
- package/dist/usage-mirror.js +52 -0
- package/dist/usage-mirror.js.map +1 -0
- package/dist/value-check.d.ts +88 -0
- package/dist/value-check.d.ts.map +1 -0
- package/dist/value-check.js +279 -0
- package/dist/value-check.js.map +1 -0
- package/dist/value-patterns.d.ts +9 -0
- package/dist/value-patterns.d.ts.map +1 -0
- package/dist/value-patterns.js +17 -0
- package/dist/value-patterns.js.map +1 -0
- package/dist/value-schema.d.ts +796 -0
- package/dist/value-schema.d.ts.map +1 -0
- package/dist/value-schema.js +231 -0
- package/dist/value-schema.js.map +1 -0
- package/dist/zod-free.d.ts +59 -0
- package/dist/zod-free.d.ts.map +1 -0
- package/dist/zod-free.js +57 -0
- package/dist/zod-free.js.map +1 -0
- package/package.json +75 -3
- package/schema/DEPLOYED +12 -0
- package/schema/build-diagnostic.v1.json +63 -0
- package/schema/component-manifest.v1.json +1000 -0
- package/schema/data-api.v1.json +194 -0
- package/schema/library-manifest.v1.json +60 -0
- package/schema/published/SHA256SUMS +36 -0
- package/schema/published/build-diagnostic/v1.10.json +83 -0
- package/schema/published/build-diagnostic/v1.3.json +83 -0
- package/schema/published/build-diagnostic/v1.4.json +83 -0
- package/schema/published/build-diagnostic/v1.5.json +83 -0
- package/schema/published/build-diagnostic/v1.6.json +83 -0
- package/schema/published/build-diagnostic/v1.7.json +83 -0
- package/schema/published/build-diagnostic/v1.8.json +83 -0
- package/schema/published/build-diagnostic/v1.9.json +83 -0
- package/schema/published/component-manifest/v1.10.json +1443 -0
- package/schema/published/component-manifest/v1.3.json +1411 -0
- package/schema/published/component-manifest/v1.4.json +1419 -0
- package/schema/published/component-manifest/v1.5.json +1437 -0
- package/schema/published/component-manifest/v1.6.json +1437 -0
- package/schema/published/component-manifest/v1.7.json +1437 -0
- package/schema/published/component-manifest/v1.8.json +1437 -0
- package/schema/published/component-manifest/v1.9.json +1437 -0
- package/schema/published/data-api/v1.10.json +282 -0
- package/schema/published/data-api/v1.3.json +281 -0
- package/schema/published/data-api/v1.4.json +281 -0
- package/schema/published/data-api/v1.5.json +281 -0
- package/schema/published/data-api/v1.6.json +281 -0
- package/schema/published/data-api/v1.7.json +281 -0
- package/schema/published/data-api/v1.8.json +282 -0
- package/schema/published/data-api/v1.9.json +282 -0
- package/schema/published/library-manifest/v1.10.json +68 -0
- package/schema/published/library-manifest/v1.5.json +68 -0
- package/schema/published/library-manifest/v1.6.json +68 -0
- package/schema/published/library-manifest/v1.7.json +68 -0
- package/schema/published/library-manifest/v1.8.json +68 -0
- package/schema/published/library-manifest/v1.9.json +68 -0
- package/schema/published/taggor-config/v1.10.json +56 -0
- package/schema/published/taggor-config/v1.5.json +56 -0
- package/schema/published/taggor-config/v1.6.json +56 -0
- package/schema/published/taggor-config/v1.7.json +56 -0
- package/schema/published/taggor-config/v1.8.json +56 -0
- package/schema/published/taggor-config/v1.9.json +56 -0
- package/schema/taggor-config.v1.json +39 -0
|
@@ -0,0 +1,1402 @@
|
|
|
1
|
+
import type { LocalizedText } from "./prop-type-docs.js";
|
|
2
|
+
/**
|
|
3
|
+
* Limits of one build diagnostic (TAG-404): what the builder reports for every error and warning
|
|
4
|
+
* and what `GET /v1/builds/{id}`, the CLI and the MCP pass on. The build container produces these
|
|
5
|
+
* from customer code, so the Worker checks them again (`buildDiagnosticSchema`).
|
|
6
|
+
*
|
|
7
|
+
* Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BUILD_DIAGNOSTIC_LIMITS: Readonly<{
|
|
10
|
+
diagnosticCodeMaxLength: 40;
|
|
11
|
+
diagnosticMessageMaxLength: 2000;
|
|
12
|
+
diagnosticHintMaxLength: 1000;
|
|
13
|
+
/** Path inside the source package (`src/form.tsx`). */
|
|
14
|
+
diagnosticFileMaxLength: 300;
|
|
15
|
+
/** Upper bound of `line` and `column`. */
|
|
16
|
+
diagnosticPositionMax: 10000000;
|
|
17
|
+
/** The source line quoted in `snippet`. */
|
|
18
|
+
diagnosticSnippetMaxLength: 300;
|
|
19
|
+
/** Path inside the manifest (`props.count.default`). */
|
|
20
|
+
diagnosticManifestPathMaxLength: 500;
|
|
21
|
+
diagnosticDocsUrlMaxLength: 200;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* A safe diagnostic text: none of the unsafe characters, no tag character and no lone surrogate
|
|
25
|
+
* (well-formed UTF-16, which Postgres `jsonb` and every JSON encoder accept). Works with and
|
|
26
|
+
* without the `u` flag, so Zod and Ajv agree character by character.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DIAGNOSTIC_TEXT_PATTERN: RegExp;
|
|
29
|
+
/**
|
|
30
|
+
* Makes untrusted text safe for a diagnostic: every unsafe character becomes a visible escape
|
|
31
|
+
* (`\u001B`; a tag character, its pair: `\uDB40\uDC41`), every lone surrogate becomes U+FFFD;
|
|
32
|
+
* tabs, ZWJ, ZWNJ, variation selectors and the other well-formed pairs are kept.
|
|
33
|
+
*
|
|
34
|
+
* Inputs: any string. Output: a string that matches `DIAGNOSTIC_TEXT_PATTERN` (an escape is six
|
|
35
|
+
* characters, so it can be longer than the input). Errors: none. Side effects: none.
|
|
36
|
+
*/
|
|
37
|
+
export declare function safeDiagnosticText(text: string): string;
|
|
38
|
+
/** How bad a diagnostic is: an error fails the build, a warning does not. */
|
|
39
|
+
export type DiagnosticSeverity = "error" | "warning";
|
|
40
|
+
/**
|
|
41
|
+
* Whose problem it is: `customer` (the source package; the agent can fix it) or `platform`
|
|
42
|
+
* (Taggor's infrastructure; retrying later is the only fix). The first-attempt success metric
|
|
43
|
+
* counts only `customer` errors.
|
|
44
|
+
*/
|
|
45
|
+
export type DiagnosticFault = "customer" | "platform";
|
|
46
|
+
/**
|
|
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 (TAG-503: the manifest compared with the one in
|
|
49
|
+
* production).
|
|
50
|
+
*/
|
|
51
|
+
export type DiagnosticStage = "source" | "compile" | "typecheck" | "manifest" | "output" | "build" | "version";
|
|
52
|
+
/** Order of the stages, for the docs index. */
|
|
53
|
+
export declare const DIAGNOSTIC_STAGES: readonly DiagnosticStage[];
|
|
54
|
+
/** One code of the catalog. */
|
|
55
|
+
export interface DiagnosticCatalogEntry {
|
|
56
|
+
/** Severity the builder gives the code. */
|
|
57
|
+
readonly severity: DiagnosticSeverity;
|
|
58
|
+
readonly fault: DiagnosticFault;
|
|
59
|
+
readonly stage: DiagnosticStage;
|
|
60
|
+
/** A few words, for headings and lists. */
|
|
61
|
+
readonly title: LocalizedText;
|
|
62
|
+
/** What happened and its usual causes. */
|
|
63
|
+
readonly description: LocalizedText;
|
|
64
|
+
/** What to change. The en text is the diagnostic's `hint` when the builder has no better one. */
|
|
65
|
+
readonly hint: LocalizedText;
|
|
66
|
+
}
|
|
67
|
+
/** Base of every `docsUrl`: the code's page on the docs site (E20). */
|
|
68
|
+
export declare const DIAGNOSTIC_DOCS_BASE_URL = "https://docs.taggor.dev/diagnostics/";
|
|
69
|
+
/**
|
|
70
|
+
* Codes of the TypeScript type check: `TS` and the compiler's own number (`TS2322`). One catalog
|
|
71
|
+
* entry (`TS`) documents them all; the number tells which compiler rule failed.
|
|
72
|
+
*/
|
|
73
|
+
export declare const TYPESCRIPT_DIAGNOSTIC_PATTERN: RegExp;
|
|
74
|
+
/** A code of the TypeScript type check (`TS2322`). */
|
|
75
|
+
export type TypeScriptDiagnosticCode = `TS${number}`;
|
|
76
|
+
/**
|
|
77
|
+
* The format of every build diagnostic code, known or not (TAG-234): a TypeScript code, or
|
|
78
|
+
* upper snake case (a letter, then letters, digits and `_`) that is not `TS` followed only by
|
|
79
|
+
* digits, so `TS`, `TS12` and `TS0123` stay refused. With `diagnosticCodeMaxLength`, this is all
|
|
80
|
+
* the published schema checks about `code`; the catalog keys follow it (a test checks). Plain
|
|
81
|
+
* ASCII, so it means the same with and without the `u` flag (Zod and Ajv agree).
|
|
82
|
+
*/
|
|
83
|
+
export declare const DIAGNOSTIC_CODE_PATTERN: RegExp;
|
|
84
|
+
declare const catalog: {
|
|
85
|
+
readonly SOURCE_NOT_FOUND: {
|
|
86
|
+
readonly severity: "error";
|
|
87
|
+
readonly fault: "platform";
|
|
88
|
+
readonly stage: "source";
|
|
89
|
+
readonly title: {
|
|
90
|
+
readonly en: "Source package not found";
|
|
91
|
+
readonly "pt-BR": "Pacote de fonte não encontrado";
|
|
92
|
+
};
|
|
93
|
+
readonly description: {
|
|
94
|
+
readonly en: "The build was queued but its source package is not in storage. The package is stored when the version is uploaded, so this is a problem on Taggor's side.";
|
|
95
|
+
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
|
+
};
|
|
97
|
+
readonly hint: {
|
|
98
|
+
readonly en: "Publish the version again. If it happens again, contact support with the build id.";
|
|
99
|
+
readonly "pt-BR": "Publique a versão de novo. Se acontecer de novo, fale com o suporte com o id do build.";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
readonly SOURCE_TOO_LARGE: {
|
|
103
|
+
readonly severity: "error";
|
|
104
|
+
readonly fault: "customer";
|
|
105
|
+
readonly stage: "source";
|
|
106
|
+
readonly title: {
|
|
107
|
+
readonly en: "Source package too large";
|
|
108
|
+
readonly "pt-BR": "Pacote de fonte grande demais";
|
|
109
|
+
};
|
|
110
|
+
readonly description: {
|
|
111
|
+
readonly en: "The source package is bigger than Taggor accepts: compressed, unpacked or in number of files (a decompression bomb ends here too). Usual causes: build outputs, node_modules, images or data files packed with the source.";
|
|
112
|
+
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
|
+
};
|
|
114
|
+
readonly hint: {
|
|
115
|
+
readonly en: "Pack only src/, taggor.json and package.json: leave out node_modules, dist, images and data files.";
|
|
116
|
+
readonly "pt-BR": "Empacote só o src/, o taggor.json e o package.json: deixe de fora node_modules, dist, imagens e arquivos de dados.";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly SOURCE_INVALID: {
|
|
120
|
+
readonly severity: "error";
|
|
121
|
+
readonly fault: "customer";
|
|
122
|
+
readonly stage: "source";
|
|
123
|
+
readonly title: {
|
|
124
|
+
readonly en: "Invalid source package";
|
|
125
|
+
readonly "pt-BR": "Pacote de fonte inválido";
|
|
126
|
+
};
|
|
127
|
+
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 text.";
|
|
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 é texto UTF-8.";
|
|
130
|
+
};
|
|
131
|
+
readonly hint: {
|
|
132
|
+
readonly en: "Let the Taggor CLI pack the component, or create a POSIX tar of regular UTF-8 files only (tar --format=posix -czf component.tgz src; GNU tar writes its own format without --format=posix). The message names the file that was refused.";
|
|
133
|
+
readonly "pt-BR": "Deixe a CLI do Taggor empacotar o componente, ou crie um tar POSIX só com arquivos comuns em UTF-8 (tar --format=posix -czf component.tgz src; sem --format=posix, o GNU tar grava o formato próprio dele). A mensagem cita o arquivo recusado.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
readonly SOURCE_PATH_NOT_ALLOWED: {
|
|
137
|
+
readonly severity: "error";
|
|
138
|
+
readonly fault: "customer";
|
|
139
|
+
readonly stage: "source";
|
|
140
|
+
readonly title: {
|
|
141
|
+
readonly en: "File path not allowed";
|
|
142
|
+
readonly "pt-BR": "Caminho de arquivo não permitido";
|
|
143
|
+
};
|
|
144
|
+
readonly description: {
|
|
145
|
+
readonly en: "A path in the source package could leave the package or hide what it is: it is absolute, has a `..`, `.` or empty segment, a backslash, a control, bidirectional or invisible character, is inside node_modules or is longer than the limit.";
|
|
146
|
+
readonly "pt-BR": "Um caminho do pacote de fonte poderia sair do pacote ou esconder o que é: é absoluto, tem segmento `..`, `.` ou vazio, barra invertida, caractere de controle, bidirecional ou invisível, está dentro de node_modules ou passa do tamanho máximo.";
|
|
147
|
+
};
|
|
148
|
+
readonly hint: {
|
|
149
|
+
readonly en: "Pack the files with relative paths from the package root (src/index.tsx), with plain names, and leave node_modules out.";
|
|
150
|
+
readonly "pt-BR": "Empacote os arquivos com caminhos relativos à raiz do pacote (src/index.tsx), com nomes simples, e deixe o node_modules de fora.";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly SOURCE_ENTRY_NOT_ALLOWED: {
|
|
154
|
+
readonly severity: "error";
|
|
155
|
+
readonly fault: "customer";
|
|
156
|
+
readonly stage: "source";
|
|
157
|
+
readonly title: {
|
|
158
|
+
readonly en: "Link or special file not allowed";
|
|
159
|
+
readonly "pt-BR": "Link ou arquivo especial não permitido";
|
|
160
|
+
};
|
|
161
|
+
readonly description: {
|
|
162
|
+
readonly en: "The source package has an entry that is not a regular file or folder: a symbolic link, a hard link, a device, a FIFO or a GNU long-name record. A link could point outside the package, so none is accepted.";
|
|
163
|
+
readonly "pt-BR": "O pacote de fonte tem uma entrada que não é arquivo comum nem pasta: link simbólico, hard link, dispositivo, FIFO ou registro de nome longo do GNU. Um link poderia apontar para fora do pacote, então nenhum é aceito.";
|
|
164
|
+
};
|
|
165
|
+
readonly hint: {
|
|
166
|
+
readonly en: "Replace each link with a copy of the file it points to (tar -h follows symlinks), or import the shared file with a relative path.";
|
|
167
|
+
readonly "pt-BR": "Troque cada link por uma cópia do arquivo para onde ele aponta (tar -h segue links simbólicos), ou importe o arquivo compartilhado por caminho relativo.";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly SOURCE_EXTENSION_NOT_ALLOWED: {
|
|
171
|
+
readonly severity: "error";
|
|
172
|
+
readonly fault: "customer";
|
|
173
|
+
readonly stage: "source";
|
|
174
|
+
readonly title: {
|
|
175
|
+
readonly en: "File type not allowed";
|
|
176
|
+
readonly "pt-BR": "Tipo de arquivo não permitido";
|
|
177
|
+
};
|
|
178
|
+
readonly description: {
|
|
179
|
+
readonly en: "A file in the source package has an extension Taggor does not accept, is an image or font outside src/, or is macOS metadata (._name, .DS_Store) that macOS tar adds. A component package holds only .ts, .tsx, .js, .jsx, .mjs, .json, .css, .scss and .md files, and under src/ the images and fonts its code imports (.png, .jpg, .jpeg, .webp, .avif, .svg, .woff2).";
|
|
180
|
+
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
|
+
};
|
|
182
|
+
readonly hint: {
|
|
183
|
+
readonly en: "Leave the file out of the package. 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\").";
|
|
184
|
+
readonly "pt-BR": "Deixe o arquivo fora do pacote. 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\").";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
readonly SOURCE_CONFIG_NOT_ALLOWED: {
|
|
188
|
+
readonly severity: "error";
|
|
189
|
+
readonly fault: "customer";
|
|
190
|
+
readonly stage: "source";
|
|
191
|
+
readonly title: {
|
|
192
|
+
readonly en: "Executable config file";
|
|
193
|
+
readonly "pt-BR": "Arquivo de configuração executável";
|
|
194
|
+
};
|
|
195
|
+
readonly description: {
|
|
196
|
+
readonly en: "The source package has a config file that a build tool would run as code (tailwind.config.js, postcss.config.*, .babelrc.js, babel.config.*, vite.config.ts, any *.config.js or *.config.ts). Taggor builds every component with its own fixed configuration and never runs customer config, so the file would be ignored at best.";
|
|
197
|
+
readonly "pt-BR": "O pacote de fonte tem um arquivo de configuração que uma ferramenta de build rodaria como código (tailwind.config.js, postcss.config.*, .babelrc.js, babel.config.*, vite.config.ts, qualquer *.config.js ou *.config.ts). O Taggor builda todo componente com a própria configuração fixa e nunca roda configuração do cliente, então o arquivo seria, no melhor caso, ignorado.";
|
|
198
|
+
};
|
|
199
|
+
readonly hint: {
|
|
200
|
+
readonly en: "Remove the config file. Write styles as plain CSS in a .css file the component imports, with theme values as CSS custom properties; a component module whose name ends in .config.ts can be renamed (settings.ts).";
|
|
201
|
+
readonly "pt-BR": "Tire o arquivo de configuração. Escreva os estilos como CSS comum num arquivo .css que o componente importa, com os valores de tema em variáveis CSS; um módulo do componente cujo nome termina em .config.ts pode ser renomeado (settings.ts).";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
readonly SOURCE_METADATA_INVALID: {
|
|
205
|
+
readonly severity: "error";
|
|
206
|
+
readonly fault: "customer";
|
|
207
|
+
readonly stage: "source";
|
|
208
|
+
readonly title: {
|
|
209
|
+
readonly en: "Invalid taggor.json or package.json";
|
|
210
|
+
readonly "pt-BR": "taggor.json ou package.json inválido";
|
|
211
|
+
};
|
|
212
|
+
readonly description: {
|
|
213
|
+
readonly en: "The taggor.json or the package.json at the root of the source package is not valid: not JSON, too large or too deeply nested, an own __proto__ key, or a field the format does not accept (taggor.json takes only $schema and entry; package.json dependencies map package names to version ranges).";
|
|
214
|
+
readonly "pt-BR": "O taggor.json ou o package.json na raiz do pacote de fonte não é válido: não é JSON, é grande ou aninhado demais, tem chave __proto__ própria ou um campo que o formato não aceita (o taggor.json só aceita $schema e entry; as dependencies do package.json ligam nomes de pacote a faixas de versão).";
|
|
215
|
+
};
|
|
216
|
+
readonly hint: {
|
|
217
|
+
readonly en: "Fix the file at the field the message names, or leave taggor.json out: without it the entry is src/index.tsx (or .ts, .jsx, .js).";
|
|
218
|
+
readonly "pt-BR": "Corrija o arquivo no campo que a mensagem cita, ou deixe o taggor.json de fora: sem ele, a entrada é src/index.tsx (ou .ts, .jsx, .js).";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly ENTRY_NOT_FOUND: {
|
|
222
|
+
readonly severity: "error";
|
|
223
|
+
readonly fault: "customer";
|
|
224
|
+
readonly stage: "source";
|
|
225
|
+
readonly title: {
|
|
226
|
+
readonly en: "Entry file not found";
|
|
227
|
+
readonly "pt-BR": "Arquivo de entrada não encontrado";
|
|
228
|
+
};
|
|
229
|
+
readonly description: {
|
|
230
|
+
readonly en: "The build starts from the entry named in taggor.json or, without one, from src/index.tsx, src/index.ts, src/index.jsx or src/index.js, and the package does not have it.";
|
|
231
|
+
readonly "pt-BR": "O build começa pela entrada indicada no taggor.json ou, sem ela, por src/index.tsx, src/index.ts, src/index.jsx ou src/index.js, e o pacote não tem esse arquivo.";
|
|
232
|
+
};
|
|
233
|
+
readonly hint: {
|
|
234
|
+
readonly en: "Put the component in src/index.tsx (or .ts, .jsx, .js) with `export default defineTaggorComponent({ … })`, or name its file in the entry field of taggor.json.";
|
|
235
|
+
readonly "pt-BR": "Coloque o componente em src/index.tsx (ou .ts, .jsx, .js) com `export default defineTaggorComponent({ … })`, ou indique o arquivo no campo entry do taggor.json.";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly SECRET_IN_SOURCE: {
|
|
239
|
+
readonly severity: "error";
|
|
240
|
+
readonly fault: "customer";
|
|
241
|
+
readonly stage: "source";
|
|
242
|
+
readonly title: {
|
|
243
|
+
readonly en: "Secret in the component's code";
|
|
244
|
+
readonly "pt-BR": "Segredo no código do componente";
|
|
245
|
+
};
|
|
246
|
+
readonly description: {
|
|
247
|
+
readonly en: "A file of the source package (its content or its name), the bundle built from it or the declaration its code produced holds a credential: an AWS access key, a Google Cloud OAuth client secret, a Cloudflare API token or key, a Stripe secret, restricted or webhook key, a GitHub, OpenAI, Anthropic or Taggor API key, or a PEM private key. A component's code is public: anyone who opens a page with the component can read it, so the build refuses it. The diagnostic shows at most the first characters of the value, never the random part. Keys that are public by design, such as Stripe publishable keys (pk_…) and Google API keys (AIza…), are accepted, and so are obvious placeholders: a value ending in EXAMPLE (AKIAIOSFODNN7EXAMPLE), one whose random part is a single repeated character (sk_test_xxxxxxxxxxxxxxxx, tgr_test_0000…) and the provider's own published samples. Every file of the package counts, documentation such as README.md included, even when the bundle does not use it.";
|
|
248
|
+
readonly "pt-BR": "Um arquivo do pacote de fonte (o conteúdo ou o nome), o bundle gerado a partir dele ou a declaração que o código produziu contém uma credencial: chave de acesso da AWS, segredo de cliente OAuth do Google Cloud, token ou chave de API da Cloudflare, chave secreta, restrita ou de webhook do Stripe, chave de API do GitHub, da OpenAI, da Anthropic ou do Taggor, ou chave privada PEM. O código de um componente é público: qualquer pessoa que abre uma página com o componente consegue lê-lo, então o build o recusa. O diagnóstico mostra no máximo os primeiros caracteres do valor, nunca a parte aleatória. Chaves públicas por design, como as publishable keys do Stripe (pk_…) e as API keys do Google (AIza…), são aceitas, e também marcadores óbvios: valor terminado em EXAMPLE (AKIAIOSFODNN7EXAMPLE), valor cuja parte aleatória é um só caractere repetido (sk_test_xxxxxxxxxxxxxxxx, tgr_test_0000…) e os exemplos publicados pelo próprio fornecedor. Todo arquivo do pacote conta, inclusive documentação como README.md, mesmo que o bundle não o use.";
|
|
249
|
+
};
|
|
250
|
+
readonly hint: {
|
|
251
|
+
readonly en: "Remove the key from the component and revoke it at its provider: treat it as leaked. Keep secrets on a server the component calls, or use the provider's public key (Stripe pk_…) in the browser. In documentation, write a placeholder such as sk_test_xxxxxxxxxxxxxxxx instead of a key.";
|
|
252
|
+
readonly "pt-BR": "Tire a chave do componente e revogue-a no fornecedor: trate-a como vazada. Guarde segredos num servidor que o componente chama, ou use a chave pública do fornecedor (Stripe pk_…) no navegador. Na documentação, escreva um marcador como sk_test_xxxxxxxxxxxxxxxx em vez de uma chave.";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly COMPILE_ERROR: {
|
|
256
|
+
readonly severity: "error";
|
|
257
|
+
readonly fault: "customer";
|
|
258
|
+
readonly stage: "compile";
|
|
259
|
+
readonly title: {
|
|
260
|
+
readonly en: "Compile error";
|
|
261
|
+
readonly "pt-BR": "Erro de compilação";
|
|
262
|
+
};
|
|
263
|
+
readonly description: {
|
|
264
|
+
readonly en: "The bundler could not parse or bundle the source: a syntax error, an unclosed JSX tag, invalid TypeScript syntax or another problem the message describes, at the position given.";
|
|
265
|
+
readonly "pt-BR": "O bundler não conseguiu ler ou empacotar o fonte: erro de sintaxe, tag JSX sem fechar, sintaxe TypeScript inválida ou outro problema que a mensagem descreve, na posição indicada.";
|
|
266
|
+
};
|
|
267
|
+
readonly hint: {
|
|
268
|
+
readonly en: "Fix the code at the file, line and column given; the snippet shows the line.";
|
|
269
|
+
readonly "pt-BR": "Corrija o código no arquivo, linha e coluna indicados; o trecho mostra a linha.";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly COMPILE_WARNING: {
|
|
273
|
+
readonly severity: "warning";
|
|
274
|
+
readonly fault: "customer";
|
|
275
|
+
readonly stage: "compile";
|
|
276
|
+
readonly title: {
|
|
277
|
+
readonly en: "Compile warning";
|
|
278
|
+
readonly "pt-BR": "Aviso de compilação";
|
|
279
|
+
};
|
|
280
|
+
readonly description: {
|
|
281
|
+
readonly en: "The bundler compiled the source but found something suspicious, such as a duplicate key, a comparison that is always false or an unused import. The build does not fail.";
|
|
282
|
+
readonly "pt-BR": "O bundler compilou o fonte mas achou algo suspeito, como chave duplicada, comparação sempre falsa ou import sem uso. O build não falha.";
|
|
283
|
+
};
|
|
284
|
+
readonly hint: {
|
|
285
|
+
readonly en: "Check the code at the position given; the message says what looks wrong.";
|
|
286
|
+
readonly "pt-BR": "Confira o código na posição indicada; a mensagem diz o que parece errado.";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly MODULE_NOT_FOUND: {
|
|
290
|
+
readonly severity: "error";
|
|
291
|
+
readonly fault: "customer";
|
|
292
|
+
readonly stage: "compile";
|
|
293
|
+
readonly title: {
|
|
294
|
+
readonly en: "Imported file not found";
|
|
295
|
+
readonly "pt-BR": "Arquivo importado não encontrado";
|
|
296
|
+
};
|
|
297
|
+
readonly description: {
|
|
298
|
+
readonly en: "A relative import points at a file that is not in the source package, or a package subpath that the package does not export. Paths are relative to the importing file and case-sensitive.";
|
|
299
|
+
readonly "pt-BR": "Um import relativo aponta para um arquivo que não está no pacote de fonte, ou para um subcaminho que o pacote não exporta. Os caminhos são relativos ao arquivo que importa e diferenciam maiúsculas.";
|
|
300
|
+
};
|
|
301
|
+
readonly hint: {
|
|
302
|
+
readonly en: "Check the path and its letter case against the files in src/, and that the file is in the package.";
|
|
303
|
+
readonly "pt-BR": "Confira o caminho e as maiúsculas contra os arquivos de src/, e se o arquivo está no pacote.";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly EXPORT_NOT_FOUND: {
|
|
307
|
+
readonly severity: "error";
|
|
308
|
+
readonly fault: "customer";
|
|
309
|
+
readonly stage: "compile";
|
|
310
|
+
readonly title: {
|
|
311
|
+
readonly en: "Imported name not exported";
|
|
312
|
+
readonly "pt-BR": "Nome importado não exportado";
|
|
313
|
+
};
|
|
314
|
+
readonly description: {
|
|
315
|
+
readonly en: "A named import asks for a name the module does not export, often a typo (`useStat`) or a default export imported by name.";
|
|
316
|
+
readonly "pt-BR": "Um import nomeado pede um nome que o módulo não exporta, em geral um erro de digitação (`useStat`) ou um export default importado por nome.";
|
|
317
|
+
};
|
|
318
|
+
readonly hint: {
|
|
319
|
+
readonly en: "Check the spelling of the imported name and whether the module exports it by name or as default.";
|
|
320
|
+
readonly "pt-BR": "Confira a grafia do nome importado e se o módulo o exporta por nome ou como default.";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
readonly REACT_API_UNSUPPORTED: {
|
|
324
|
+
readonly severity: "warning";
|
|
325
|
+
readonly fault: "customer";
|
|
326
|
+
readonly stage: "compile";
|
|
327
|
+
readonly title: {
|
|
328
|
+
readonly en: "React API not supported";
|
|
329
|
+
readonly "pt-BR": "API do React sem suporte";
|
|
330
|
+
};
|
|
331
|
+
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 is an error: the bundle could not load in the browser. A missing API read through a namespace or default import (React.use) is a warning: it is undefined when the code runs, and the component's error boundary catches the failure. Mounting a root is a warning.";
|
|
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 é erro: o bundle não carregaria no navegador. API ausente lida por import de namespace ou default (React.use) é aviso: ela é undefined quando o código roda, e o error boundary do componente pega a falha. Montar uma raiz é aviso.";
|
|
334
|
+
};
|
|
335
|
+
readonly hint: {
|
|
336
|
+
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.";
|
|
337
|
+
readonly "pt-BR": "Use a alternativa com suporte que a mensagem indica (useState e um handler assíncrono no lugar de useActionState, useContext no lugar de use(contexto)), ou escreva essa parte com os hooks do próprio Preact. O runtime monta o componente: exporte-o com defineTaggorComponent em vez de chamar createRoot.";
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
readonly MODULE_NOT_ALLOWED: {
|
|
341
|
+
readonly severity: "error";
|
|
342
|
+
readonly fault: "customer";
|
|
343
|
+
readonly stage: "compile";
|
|
344
|
+
readonly title: {
|
|
345
|
+
readonly en: "Import not allowed";
|
|
346
|
+
readonly "pt-BR": "Import não permitido";
|
|
347
|
+
};
|
|
348
|
+
readonly description: {
|
|
349
|
+
readonly en: "An import leaves the source package or reaches something a component cannot use: an absolute path, a `..` that climbs out of the package, a Node built-in (`node:fs`), a URL, a CSS url() asset, a build-only or test-only module (`@taggor/component/build`, `@taggor/component/testing`) or the page runtime (`@taggor/runtime`).";
|
|
350
|
+
readonly "pt-BR": "Um import sai do pacote de fonte ou alcança algo que um componente não pode usar: caminho absoluto, `..` que sobe para fora do pacote, módulo nativo do Node (`node:fs`), URL, asset em url() no CSS, módulo só de build ou só de teste (`@taggor/component/build`, `@taggor/component/testing`) ou o runtime da página (`@taggor/runtime`).";
|
|
351
|
+
};
|
|
352
|
+
readonly hint: {
|
|
353
|
+
readonly en: "Components run in the browser and see only their own files and the allowed packages: import files inside src/ with relative paths and use browser APIs instead of Node built-ins.";
|
|
354
|
+
readonly "pt-BR": "Componentes rodam no navegador e só enxergam os próprios arquivos e os pacotes permitidos: importe arquivos de src/ com caminho relativo e use APIs do navegador em vez de módulos do Node.";
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly DEPENDENCY_NOT_ALLOWED: {
|
|
358
|
+
readonly severity: "error";
|
|
359
|
+
readonly fault: "customer";
|
|
360
|
+
readonly stage: "compile";
|
|
361
|
+
readonly title: {
|
|
362
|
+
readonly en: "Package not allowed";
|
|
363
|
+
readonly "pt-BR": "Pacote não permitido";
|
|
364
|
+
};
|
|
365
|
+
readonly description: {
|
|
366
|
+
readonly en: "The component imports an npm package that is not on the builder's allowlist. Only allowed packages are bundled; the hint lists them.";
|
|
367
|
+
readonly "pt-BR": "O componente importa um pacote npm que não está na allowlist do builder. Só pacotes permitidos entram no bundle; a dica lista quais são.";
|
|
368
|
+
};
|
|
369
|
+
readonly hint: {
|
|
370
|
+
readonly en: "Import only the allowed packages, or write the code in the component itself.";
|
|
371
|
+
readonly "pt-BR": "Importe só os pacotes permitidos, ou escreva o código no próprio componente.";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly IMPORT_ATTRIBUTE_REFUSED: {
|
|
375
|
+
readonly severity: "error";
|
|
376
|
+
readonly fault: "customer";
|
|
377
|
+
readonly stage: "compile";
|
|
378
|
+
readonly title: {
|
|
379
|
+
readonly en: "Import attribute refused";
|
|
380
|
+
readonly "pt-BR": "Atributo de import recusado";
|
|
381
|
+
};
|
|
382
|
+
readonly description: {
|
|
383
|
+
readonly en: "The only import attribute allowed is `with { type: \"json\" }` on a .json file; `type: \"text\"`, `\"bytes\"`, `\"file\"` and the like are refused.";
|
|
384
|
+
readonly "pt-BR": "O único atributo de import permitido é `with { type: \"json\" }` num arquivo .json; `type: \"text\"`, `\"bytes\"`, `\"file\"` e parecidos são recusados.";
|
|
385
|
+
};
|
|
386
|
+
readonly hint: {
|
|
387
|
+
readonly en: "Remove the attribute, or import a .json file with `with { type: \"json\" }`.";
|
|
388
|
+
readonly "pt-BR": "Tire o atributo, ou importe um arquivo .json com `with { type: \"json\" }`.";
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
readonly TAILWIND_CONFIG_NOT_ALLOWED: {
|
|
392
|
+
readonly severity: "error";
|
|
393
|
+
readonly fault: "customer";
|
|
394
|
+
readonly stage: "compile";
|
|
395
|
+
readonly title: {
|
|
396
|
+
readonly en: "Tailwind @plugin or @config not allowed";
|
|
397
|
+
readonly "pt-BR": "@plugin ou @config do Tailwind não permitido";
|
|
398
|
+
};
|
|
399
|
+
readonly description: {
|
|
400
|
+
readonly en: "A stylesheet has `@plugin` or `@config`, which load a JavaScript file (a Tailwind plugin, a tailwind.config.js) that would run as code during the build. Taggor compiles Tailwind v4 with configuration in CSS only and never runs customer config. The text is refused anywhere in a .css or .scss file, comments and strings included.";
|
|
401
|
+
readonly "pt-BR": "Uma folha de estilo tem `@plugin` ou `@config`, que carregam um arquivo JavaScript (um plugin do Tailwind, um tailwind.config.js) que rodaria como código durante o build. O Taggor compila o Tailwind v4 só com configuração em CSS e nunca roda configuração do cliente. O texto é recusado em qualquer lugar de um arquivo .css ou .scss, inclusive em comentários e strings.";
|
|
402
|
+
};
|
|
403
|
+
readonly hint: {
|
|
404
|
+
readonly en: "Remove the @plugin or @config line and configure Tailwind in the CSS: theme values in @theme { --color-brand: #0a6; }, new utilities with @utility, variants with @custom-variant, all next to @import \"tailwindcss\".";
|
|
405
|
+
readonly "pt-BR": "Tire a linha de @plugin ou @config e configure o Tailwind no CSS: valores do tema em @theme { --color-brand: #0a6; }, utilities novas com @utility e variantes com @custom-variant, tudo junto do @import \"tailwindcss\".";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly CSS_INVALID: {
|
|
409
|
+
readonly severity: "warning";
|
|
410
|
+
readonly fault: "customer";
|
|
411
|
+
readonly stage: "compile";
|
|
412
|
+
readonly title: {
|
|
413
|
+
readonly en: "Invalid CSS";
|
|
414
|
+
readonly "pt-BR": "CSS inválido";
|
|
415
|
+
};
|
|
416
|
+
readonly description: {
|
|
417
|
+
readonly en: "A stylesheet has a syntax error (an unclosed brace or parenthesis, a missing value) or an unknown property. The bundler skips what it cannot read, so the component may look different from what was written.";
|
|
418
|
+
readonly "pt-BR": "Uma folha de estilo tem erro de sintaxe (chave ou parêntese sem fechar, valor faltando) ou propriedade desconhecida. O bundler pula o que não consegue ler, então o componente pode ficar diferente do que foi escrito.";
|
|
419
|
+
};
|
|
420
|
+
readonly hint: {
|
|
421
|
+
readonly en: "Fix the CSS at the line given: close every brace and parenthesis and check the property name.";
|
|
422
|
+
readonly "pt-BR": "Corrija o CSS na linha indicada: feche toda chave e parêntese e confira o nome da propriedade.";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly TS: {
|
|
426
|
+
readonly severity: "error";
|
|
427
|
+
readonly fault: "customer";
|
|
428
|
+
readonly stage: "typecheck";
|
|
429
|
+
readonly title: {
|
|
430
|
+
readonly en: "TypeScript type error";
|
|
431
|
+
readonly "pt-BR": "Erro de tipo do TypeScript";
|
|
432
|
+
};
|
|
433
|
+
readonly description: {
|
|
434
|
+
readonly en: "The type check found an error. The code is `TS` and the compiler's number (TS2322 is a value of the wrong type, TS2307 a module it cannot find, TS2339 a property that does not exist), and the message is the compiler's.";
|
|
435
|
+
readonly "pt-BR": "A checagem de tipos achou um erro. O código é `TS` mais o número do compilador (TS2322 é valor de tipo errado, TS2307 módulo que ele não acha, TS2339 propriedade que não existe), e a mensagem é a do compilador.";
|
|
436
|
+
};
|
|
437
|
+
readonly hint: {
|
|
438
|
+
readonly en: "Fix the type at the position given; the message says which types disagree.";
|
|
439
|
+
readonly "pt-BR": "Corrija o tipo na posição indicada; a mensagem diz quais tipos não batem.";
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly MANIFEST_INVALID: {
|
|
443
|
+
readonly severity: "error";
|
|
444
|
+
readonly fault: "customer";
|
|
445
|
+
readonly stage: "manifest";
|
|
446
|
+
readonly title: {
|
|
447
|
+
readonly en: "Invalid component declaration";
|
|
448
|
+
readonly "pt-BR": "Declaração do componente inválida";
|
|
449
|
+
};
|
|
450
|
+
readonly description: {
|
|
451
|
+
readonly en: "What the entry exports is not a valid component contract: no `defineTaggorComponent` default export, a prop default of the wrong type, a tag name without a hyphen, an unknown key. There is one diagnostic per problem, with its path in `manifestPath`.";
|
|
452
|
+
readonly "pt-BR": "O que a entrada exporta não é um contrato de componente válido: sem `defineTaggorComponent` como export default, default de prop do tipo errado, tag sem hífen, chave desconhecida. Há um diagnóstico por problema, com o caminho em `manifestPath`.";
|
|
453
|
+
};
|
|
454
|
+
readonly hint: {
|
|
455
|
+
readonly en: "Fix the field at manifestPath in the object passed to defineTaggorComponent; the message says what it expects.";
|
|
456
|
+
readonly "pt-BR": "Corrija o campo de manifestPath no objeto passado ao defineTaggorComponent; a mensagem diz o que ele espera.";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly MANIFEST_EXTRACTION_TIMEOUT: {
|
|
460
|
+
readonly severity: "error";
|
|
461
|
+
readonly fault: "customer";
|
|
462
|
+
readonly stage: "manifest";
|
|
463
|
+
readonly title: {
|
|
464
|
+
readonly en: "Component declaration took too long";
|
|
465
|
+
readonly "pt-BR": "Declaração do componente demorou demais";
|
|
466
|
+
};
|
|
467
|
+
readonly description: {
|
|
468
|
+
readonly en: "The builder loads the component module to read its declaration, and loading it did not finish in time: a loop or heavy work runs when the module is imported.";
|
|
469
|
+
readonly "pt-BR": "O builder carrega o módulo do componente para ler a declaração, e o carregamento não terminou a tempo: um laço ou trabalho pesado roda quando o módulo é importado.";
|
|
470
|
+
};
|
|
471
|
+
readonly hint: {
|
|
472
|
+
readonly en: "Do no work at the top level of the module: move it into render, an event handler or useEffect.";
|
|
473
|
+
readonly "pt-BR": "Não faça trabalho no nível de cima do módulo: leve-o para o render, um handler de evento ou um useEffect.";
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
readonly MANIFEST_EXTRACTION_FAILED: {
|
|
477
|
+
readonly severity: "error";
|
|
478
|
+
readonly fault: "customer";
|
|
479
|
+
readonly stage: "manifest";
|
|
480
|
+
readonly title: {
|
|
481
|
+
readonly en: "Component module failed to load";
|
|
482
|
+
readonly "pt-BR": "Módulo do componente falhou ao carregar";
|
|
483
|
+
};
|
|
484
|
+
readonly description: {
|
|
485
|
+
readonly en: "The builder loads the component module, without a browser, to read its declaration, and the module threw or exited. Usual cause: code at the top level of a module that uses browser globals (`window`, `document`, `localStorage`, `navigator`), which do not exist while the declaration is read.";
|
|
486
|
+
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
|
+
};
|
|
488
|
+
readonly hint: {
|
|
489
|
+
readonly en: "Do not touch window, document, localStorage or other browser globals at the top level of a module: use them inside render, an event handler or useEffect.";
|
|
490
|
+
readonly "pt-BR": "Não use window, document, localStorage nem outras globais do navegador no nível de cima de um módulo: use-as dentro do render, de um handler de evento ou de um useEffect.";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly STYLE_REFERENCE_UNDECLARED: {
|
|
494
|
+
readonly severity: "error";
|
|
495
|
+
readonly fault: "customer";
|
|
496
|
+
readonly stage: "manifest";
|
|
497
|
+
readonly title: {
|
|
498
|
+
readonly en: "CSS uses an undeclared variable or part";
|
|
499
|
+
readonly "pt-BR": "CSS usa variável ou parte não declarada";
|
|
500
|
+
};
|
|
501
|
+
readonly description: {
|
|
502
|
+
readonly en: "A stylesheet of the component reads a CSS variable (`var(--name)`) that the manifest's `cssVars` does not declare and the component's CSS does not define, or names a part (`::part(name)`, `[part=name]`) that `parts` does not declare. The declared variables and parts are the component's whole styling API for the host page, so the build refuses names outside them. Usual causes: a typo, a missing prefix, or a variable used before it was added to `cssVars`.";
|
|
503
|
+
readonly "pt-BR": "Uma folha de estilo do componente lê uma variável CSS (`var(--nome)`) que o `cssVars` do manifesto não declara e o CSS do componente não define, ou cita uma parte (`::part(nome)`, `[part=nome]`) que `parts` não declara. As variáveis e partes declaradas são toda a API de estilo do componente para a página, então o build recusa nomes fora delas. Causas comuns: erro de digitação, prefixo faltando ou variável usada antes de entrar no `cssVars`.";
|
|
504
|
+
};
|
|
505
|
+
readonly hint: {
|
|
506
|
+
readonly en: "Use a name the manifest declares, or declare it: a variable in cssVars (with a type and a default), a part in parts.";
|
|
507
|
+
readonly "pt-BR": "Use um nome que o manifesto declara, ou declare-o: a variável no cssVars (com tipo e default), a parte em parts.";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
readonly STYLESHEET_NOT_BUNDLED: {
|
|
511
|
+
readonly severity: "error";
|
|
512
|
+
readonly fault: "platform";
|
|
513
|
+
readonly stage: "output";
|
|
514
|
+
readonly title: {
|
|
515
|
+
readonly en: "A stylesheet did not reach the component's bundle";
|
|
516
|
+
readonly "pt-BR": "Uma folha de estilo não chegou ao bundle do componente";
|
|
517
|
+
};
|
|
518
|
+
readonly description: {
|
|
519
|
+
readonly en: "The component imports a stylesheet (`import \"./styles.css\"`), and the builder delivers it inside the published bundle as styles of the component, but the finished bundle does not carry it. The build is stopped instead of publishing a component that shows without its CSS. The source package did not cause this: it is a builder failure.";
|
|
520
|
+
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
|
+
};
|
|
522
|
+
readonly hint: {
|
|
523
|
+
readonly en: "Do not retry: the failure repeats. Contact support with the build id.";
|
|
524
|
+
readonly "pt-BR": "Não tente de novo: a falha se repete. Fale com o suporte com o id do build.";
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
readonly OUTPUT_TOO_LARGE: {
|
|
528
|
+
readonly severity: "error";
|
|
529
|
+
readonly fault: "customer";
|
|
530
|
+
readonly stage: "output";
|
|
531
|
+
readonly title: {
|
|
532
|
+
readonly en: "Build output too large";
|
|
533
|
+
readonly "pt-BR": "Saída do build grande demais";
|
|
534
|
+
};
|
|
535
|
+
readonly description: {
|
|
536
|
+
readonly en: "The bundle, the CSS or the source map is bigger than the builder accepts, usually because of large inlined data (JSON, base64 images) or a big library.";
|
|
537
|
+
readonly "pt-BR": "O bundle, o CSS ou o source map passa do que o builder aceita, em geral por dados grandes embutidos (JSON, imagens em base64) ou uma biblioteca grande.";
|
|
538
|
+
};
|
|
539
|
+
readonly hint: {
|
|
540
|
+
readonly en: "Shrink the component: remove large inlined data and libraries the component does not need.";
|
|
541
|
+
readonly "pt-BR": "Diminua o componente: tire dados grandes embutidos e bibliotecas de que o componente não precisa.";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly ASSET_TOO_LARGE: {
|
|
545
|
+
readonly severity: "error";
|
|
546
|
+
readonly fault: "customer";
|
|
547
|
+
readonly stage: "output";
|
|
548
|
+
readonly title: {
|
|
549
|
+
readonly en: "Asset too large";
|
|
550
|
+
readonly "pt-BR": "Asset grande demais";
|
|
551
|
+
};
|
|
552
|
+
readonly description: {
|
|
553
|
+
readonly en: "An image or font the component imports is bigger than one asset may be, or all the assets the component imports together are bigger than the component's limit, or it imports more distinct files than the contract allows (50). Assets are published as their own files on the CDN and every visitor downloads them, so the limits come from the workspace's plan. The message gives the file, its size and the limit.";
|
|
554
|
+
readonly "pt-BR": "Uma imagem ou fonte que o componente importa passa do tamanho de um asset, ou os assets que o componente importa somam mais que o limite do componente, ou ele importa mais arquivos distintos que o contrato permite (50). Os assets são publicados como arquivos próprios na CDN e todo visitante os baixa, por isso os limites vêm do plano do workspace. A mensagem traz o arquivo, o tamanho e o limite.";
|
|
555
|
+
};
|
|
556
|
+
readonly hint: {
|
|
557
|
+
readonly en: "Shrink the file: export the image at the size it is shown, compress it (WebP or AVIF for photos, an optimized SVG for icons), subset the font to the characters the component uses, or load large media from a URL at run time.";
|
|
558
|
+
readonly "pt-BR": "Diminua o arquivo: exporte a imagem no tamanho em que aparece, comprima (WebP ou AVIF para fotos, um SVG otimizado para ícones), reduza a fonte aos caracteres que o componente usa, ou carregue mídia grande de uma URL em tempo de execução.";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly ASSET_INVALID: {
|
|
562
|
+
readonly severity: "error";
|
|
563
|
+
readonly fault: "customer";
|
|
564
|
+
readonly stage: "output";
|
|
565
|
+
readonly title: {
|
|
566
|
+
readonly en: "Asset is not what its name says";
|
|
567
|
+
readonly "pt-BR": "Asset não é o que o nome diz";
|
|
568
|
+
};
|
|
569
|
+
readonly description: {
|
|
570
|
+
readonly en: "An image or font the package holds is not a file of the type its extension names (a .png that is not a PNG, a .woff2 that is not WOFF2), or an SVG is not well-formed XML of the SVG namespace (a markup error, an unknown entity, a document type with declarations, an SVG without the SVG namespace). The CDN serves each asset with the type of its extension, so a mismatched file would break or be something else.";
|
|
571
|
+
readonly "pt-BR": "Uma imagem ou fonte do pacote não é um arquivo do tipo que a extensão diz (um .png que não é PNG, um .woff2 que não é WOFF2), ou um SVG não é XML bem formado do namespace SVG (erro de marcação, entidade desconhecida, document type com declarações, SVG sem o namespace SVG). A CDN serve cada asset com o tipo da extensão, então um arquivo trocado quebraria ou seria outra coisa.";
|
|
572
|
+
};
|
|
573
|
+
readonly hint: {
|
|
574
|
+
readonly en: "Export the file again in the format of its extension, or rename it to the extension of its real format. An SVG needs xmlns=\"http://www.w3.org/2000/svg\" on its root and only the five XML entities (&, <, >, ", ') or numeric ones.";
|
|
575
|
+
readonly "pt-BR": "Exporte o arquivo de novo no formato da extensão, ou troque a extensão pela do formato real. Um SVG precisa de xmlns=\"http://www.w3.org/2000/svg\" na raiz e só das cinco entidades do XML (&, <, >, ", ') ou das numéricas.";
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
readonly ASSET_METADATA: {
|
|
579
|
+
readonly severity: "error";
|
|
580
|
+
readonly fault: "customer";
|
|
581
|
+
readonly stage: "output";
|
|
582
|
+
readonly title: {
|
|
583
|
+
readonly en: "Image Taggor cannot verify as metadata-free";
|
|
584
|
+
readonly "pt-BR": "Imagem que o Taggor não consegue verificar como livre de metadados";
|
|
585
|
+
};
|
|
586
|
+
readonly description: {
|
|
587
|
+
readonly en: "An image the component imports has a structure Taggor does not publish: an AVIF with embedded metadata (Exif, XMP, an ICC profile, a thumbnail or any box outside the supported still-image subset), or an AV1 stream or file layout that cannot be inspected safely. Images are published at a public, immutable address, so anything hidden in them (a location, a camera serial number, a signed provenance manifest, private data) could never be withdrawn. For PNG, JPEG and WebP Taggor removes the metadata itself (EXIF, XMP, text, ICC profile, C2PA, private chunks) and publishes the cleaned file; AVIF is stored as uploaded, so it must already be clean. The message names the file and what stopped it.";
|
|
588
|
+
readonly "pt-BR": "Uma imagem que o componente importa tem uma estrutura que o Taggor não publica: um AVIF com metadados embutidos (Exif, XMP, perfil ICC, miniatura ou qualquer box fora do subconjunto de imagem estática suportado), ou um fluxo AV1 ou layout de arquivo que não dá para inspecionar com segurança. As imagens são publicadas num endereço público e imutável, então o que estiver escondido nelas (uma localização, o número de série da câmera, um manifesto de proveniência assinado, dados privados) nunca poderia ser retirado. Em PNG, JPEG e WebP o Taggor remove os metadados sozinho (EXIF, XMP, texto, perfil ICC, C2PA, chunks privados) e publica o arquivo limpo; o AVIF é guardado como enviado, então precisa já estar limpo. A mensagem traz o arquivo e o que o barrou.";
|
|
589
|
+
};
|
|
590
|
+
readonly hint: {
|
|
591
|
+
readonly en: "Export the image again without metadata (for example `magick in.avif -strip out.avif`), or use PNG, JPEG or WebP, whose metadata Taggor strips for you.";
|
|
592
|
+
readonly "pt-BR": "Exporte a imagem de novo sem metadados (por exemplo `magick in.avif -strip out.avif`), ou use PNG, JPEG ou WebP, cujos metadados o Taggor remove para você.";
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
readonly ASSET_SVG_UNSAFE: {
|
|
596
|
+
readonly severity: "error";
|
|
597
|
+
readonly fault: "customer";
|
|
598
|
+
readonly stage: "output";
|
|
599
|
+
readonly title: {
|
|
600
|
+
readonly en: "SVG with active content";
|
|
601
|
+
readonly "pt-BR": "SVG com conteúdo ativo";
|
|
602
|
+
};
|
|
603
|
+
readonly description: {
|
|
604
|
+
readonly en: "An SVG the component imports has something that runs code or loads another URL: a <script>, an on… event handler, <foreignObject>, a link (<a>), an animation that changes a link or a handler, a reference to another file or URL (href, xlink:href, url(…), @import, xml-stylesheet), an embedded SVG or anything other than a raster data: image. SVG assets are published on the CDN, where a browser can open them as a page, so the build refuses them instead of rewriting them. Comments, metadata and editor data (Inkscape, Illustrator) are removed, not refused.";
|
|
605
|
+
readonly "pt-BR": "Um SVG que o componente importa tem algo que executa código ou carrega outra URL: um <script>, um handler de evento on…, <foreignObject>, um link (<a>), uma animação que muda um link ou um handler, uma referência a outro arquivo ou URL (href, xlink:href, url(…), @import, xml-stylesheet), um SVG embutido ou qualquer coisa além de uma imagem raster em data:. Os SVGs são publicados na CDN, onde o navegador pode abri-los como página, por isso o build os recusa em vez de reescrevê-los. Comentários, metadados e dados de editor (Inkscape, Illustrator) são removidos, não recusados.";
|
|
606
|
+
};
|
|
607
|
+
readonly hint: {
|
|
608
|
+
readonly en: "Remove what the message names: an icon or illustration needs no script, handler or external file. Point href and url() at an id of the same SVG (#gradient), embed raster images as data:image/png;base64, and do interactivity in the component's code instead of the SVG.";
|
|
609
|
+
readonly "pt-BR": "Tire o que a mensagem aponta: um ícone ou ilustração não precisa de script, handler nem arquivo externo. Aponte href e url() para um id do próprio SVG (#gradiente), embuta imagens raster como data:image/png;base64, e faça a interatividade no código do componente, não no SVG.";
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly SIZE_BUDGET_EXCEEDED: {
|
|
613
|
+
readonly severity: "error";
|
|
614
|
+
readonly fault: "customer";
|
|
615
|
+
readonly stage: "output";
|
|
616
|
+
readonly title: {
|
|
617
|
+
readonly en: "Component over the size budget";
|
|
618
|
+
readonly "pt-BR": "Componente acima do orçamento de tamanho";
|
|
619
|
+
};
|
|
620
|
+
readonly description: {
|
|
621
|
+
readonly en: "The bundle and the CSS, gzipped, are bigger than the size budget of one component (50 KB gzip by default, without the shared runtime Preact comes from). Visitors download every byte on each page with the component, so the build refuses it. The message gives the gzip size, the budget and the five largest modules of the bundle.";
|
|
622
|
+
readonly "pt-BR": "O bundle e o CSS, com gzip, passam do orçamento de tamanho de um componente (50 KB com gzip por padrão, sem o runtime compartilhado de onde vem o Preact). O visitante baixa cada byte em toda página com o componente, então o build o recusa. A mensagem traz o tamanho com gzip, o orçamento e os cinco maiores módulos do bundle.";
|
|
623
|
+
};
|
|
624
|
+
readonly hint: {
|
|
625
|
+
readonly en: "Shrink the largest modules the message lists: remove inlined data (JSON, base64 images, fonts) and libraries the component does not need, or load large data from an API at run time.";
|
|
626
|
+
readonly "pt-BR": "Diminua os maiores módulos que a mensagem lista: tire dados embutidos (JSON, imagens e fontes em base64) e bibliotecas de que o componente não precisa, ou carregue dados grandes de uma API em tempo de execução.";
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
readonly QUALITY_GATE_FAILED: {
|
|
630
|
+
readonly severity: "error";
|
|
631
|
+
readonly fault: "customer";
|
|
632
|
+
readonly stage: "output";
|
|
633
|
+
readonly title: {
|
|
634
|
+
readonly en: "Quality gate could not finish";
|
|
635
|
+
readonly "pt-BR": "Quality gate não terminou";
|
|
636
|
+
};
|
|
637
|
+
readonly description: {
|
|
638
|
+
readonly en: "A quality gate (the type check or the static security check) ran out of time or memory on this component, or stopped, so the build could not prove the component is safe to publish and refuses it. It usually means very large or deeply nested code, or types that the compiler expands without end.";
|
|
639
|
+
readonly "pt-BR": "Um quality gate (a checagem de tipos ou a verificação estática de segurança) ficou sem tempo ou sem memória neste componente, ou parou, então o build não conseguiu provar que o componente pode ser publicado e o recusa. Em geral é código muito grande ou muito aninhado, ou tipos que o compilador expande sem fim.";
|
|
640
|
+
};
|
|
641
|
+
readonly hint: {
|
|
642
|
+
readonly en: "Make the component smaller and simpler: split very large files, remove deeply nested expressions and recursive types; then publish again.";
|
|
643
|
+
readonly "pt-BR": "Deixe o componente menor e mais simples: divida arquivos muito grandes, tire expressões muito aninhadas e tipos recursivos; depois publique de novo.";
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
readonly UNSAFE_EVAL: {
|
|
647
|
+
readonly severity: "error";
|
|
648
|
+
readonly fault: "customer";
|
|
649
|
+
readonly stage: "output";
|
|
650
|
+
readonly title: {
|
|
651
|
+
readonly en: "eval in the component";
|
|
652
|
+
readonly "pt-BR": "eval no componente";
|
|
653
|
+
};
|
|
654
|
+
readonly description: {
|
|
655
|
+
readonly en: "The component calls or references eval, which runs a string as code in the host page. Whoever controls the string (an attribute of the page, an API answer, what the visitor types) runs code with the page's privileges, so the static security check refuses it (rule eval).";
|
|
656
|
+
readonly "pt-BR": "O componente chama ou referencia o eval, que executa um texto como código na página hospedeira. Quem controla o texto (um atributo da página, uma resposta de API, o que o visitante digita) executa código com os privilégios da página, então a verificação estática de segurança o recusa (regra eval).";
|
|
657
|
+
};
|
|
658
|
+
readonly hint: {
|
|
659
|
+
readonly en: "Remove eval: parse data with JSON.parse, compute with ordinary functions, and map the cases you need to functions in an object.";
|
|
660
|
+
readonly "pt-BR": "Tire o eval: leia dados com JSON.parse, calcule com funções comuns e mapeie os casos de que precisa para funções num objeto.";
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
readonly UNSAFE_FUNCTION_CONSTRUCTOR: {
|
|
664
|
+
readonly severity: "error";
|
|
665
|
+
readonly fault: "customer";
|
|
666
|
+
readonly stage: "output";
|
|
667
|
+
readonly title: {
|
|
668
|
+
readonly en: "Function constructor in the component";
|
|
669
|
+
readonly "pt-BR": "Construtor Function no componente";
|
|
670
|
+
};
|
|
671
|
+
readonly description: {
|
|
672
|
+
readonly en: "The component builds a function from a string (new Function, Function(...), or the constructor of a function reached through .constructor), which is eval under another name: the string runs as code in the host page (rule new-function).";
|
|
673
|
+
readonly "pt-BR": "O componente monta uma função a partir de um texto (new Function, Function(...) ou o construtor de uma função alcançado por .constructor), que é o eval com outro nome: o texto roda como código na página hospedeira (regra new-function).";
|
|
674
|
+
};
|
|
675
|
+
readonly hint: {
|
|
676
|
+
readonly en: "Write the function in the source instead of building it from text; for formulas, parse them into a small expression tree and evaluate that.";
|
|
677
|
+
readonly "pt-BR": "Escreva a função no código em vez de montá-la de um texto; para fórmulas, transforme-as numa pequena árvore de expressão e avalie essa árvore.";
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
readonly UNSAFE_DOCUMENT_WRITE: {
|
|
681
|
+
readonly severity: "error";
|
|
682
|
+
readonly fault: "customer";
|
|
683
|
+
readonly stage: "output";
|
|
684
|
+
readonly title: {
|
|
685
|
+
readonly en: "document.write in the component";
|
|
686
|
+
readonly "pt-BR": "document.write no componente";
|
|
687
|
+
};
|
|
688
|
+
readonly description: {
|
|
689
|
+
readonly en: "The component calls document.write, document.writeln or document.open, which write into or replace the whole host page outside the component's shadow root (rule document-write).";
|
|
690
|
+
readonly "pt-BR": "O componente chama document.write, document.writeln ou document.open, que escrevem na página hospedeira inteira, ou a substituem, fora da shadow root do componente (regra document-write).";
|
|
691
|
+
};
|
|
692
|
+
readonly hint: {
|
|
693
|
+
readonly en: "Render inside the component with JSX; to print, open a window the component builds with DOM methods, never document.write.";
|
|
694
|
+
readonly "pt-BR": "Renderize dentro do componente com JSX; para imprimir, use uma janela que o componente monta com métodos do DOM, nunca document.write.";
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
readonly UNSAFE_COOKIE_ACCESS: {
|
|
698
|
+
readonly severity: "error";
|
|
699
|
+
readonly fault: "customer";
|
|
700
|
+
readonly stage: "output";
|
|
701
|
+
readonly title: {
|
|
702
|
+
readonly en: "Component reads the page's cookies";
|
|
703
|
+
readonly "pt-BR": "Componente lê os cookies da página";
|
|
704
|
+
};
|
|
705
|
+
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 components are cookieless by default.";
|
|
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). Componentes do Taggor não usam cookies por padrão.";
|
|
708
|
+
};
|
|
709
|
+
readonly hint: {
|
|
710
|
+
readonly en: "Remove the cookie access. To remember something about the visitor, use the component's props or the Taggor data API (useTaggorData) with consent.";
|
|
711
|
+
readonly "pt-BR": "Tire o acesso aos cookies. Para lembrar algo do visitante, use as props do componente ou a API de dados do Taggor (useTaggorData) com consentimento.";
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
readonly UNSAFE_STORAGE_ACCESS: {
|
|
715
|
+
readonly severity: "error";
|
|
716
|
+
readonly fault: "customer";
|
|
717
|
+
readonly stage: "output";
|
|
718
|
+
readonly title: {
|
|
719
|
+
readonly en: "Component uses the page's storage";
|
|
720
|
+
readonly "pt-BR": "Componente usa o armazenamento da página";
|
|
721
|
+
};
|
|
722
|
+
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 could read what the site stored there and leave data behind without the visitor's consent (rule local-storage).";
|
|
724
|
+
readonly "pt-BR": "O componente usa localStorage, sessionStorage, indexedDB ou a Cache API (caches), que pertencem à origem do site hospedeiro: o componente poderia ler o que o site guardou ali e deixar dados sem o consentimento do visitante (regra local-storage).";
|
|
725
|
+
};
|
|
726
|
+
readonly hint: {
|
|
727
|
+
readonly en: "Keep state in memory (useState) or in props; to persist data, use the Taggor data API (useTaggorData).";
|
|
728
|
+
readonly "pt-BR": "Guarde o estado em memória (useState) ou em props; para persistir dados, use a API de dados do Taggor (useTaggorData).";
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly UNSAFE_HOST_DOM: {
|
|
732
|
+
readonly severity: "error";
|
|
733
|
+
readonly fault: "customer";
|
|
734
|
+
readonly stage: "output";
|
|
735
|
+
readonly title: {
|
|
736
|
+
readonly en: "Component touches the page's DOM";
|
|
737
|
+
readonly "pt-BR": "Componente mexe no DOM da página";
|
|
738
|
+
};
|
|
739
|
+
readonly description: {
|
|
740
|
+
readonly en: "The component reaches the host page's DOM outside its shadow root (document.body, document.head, document.documentElement, document.querySelector, getElementById and the like), where it can change or read the site's own content (rule dom-outside-shadow-root).";
|
|
741
|
+
readonly "pt-BR": "O componente alcança o DOM da página hospedeira fora da sua shadow root (document.body, document.head, document.documentElement, document.querySelector, getElementById e afins), onde pode mudar ou ler o conteúdo do próprio site (regra dom-outside-shadow-root).";
|
|
742
|
+
};
|
|
743
|
+
readonly hint: {
|
|
744
|
+
readonly en: "Render only inside the component with JSX; to reach the component's own element, use useHost().element, and for the page's language use useLocale.";
|
|
745
|
+
readonly "pt-BR": "Renderize só dentro do componente com JSX; para alcançar o próprio elemento do componente use useHost().element, e para o idioma da página use useLocale.";
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
readonly UNSAFE_SCRIPT_ELEMENT: {
|
|
749
|
+
readonly severity: "error";
|
|
750
|
+
readonly fault: "customer";
|
|
751
|
+
readonly stage: "output";
|
|
752
|
+
readonly title: {
|
|
753
|
+
readonly en: "Component creates a script element";
|
|
754
|
+
readonly "pt-BR": "Componente cria um elemento script";
|
|
755
|
+
};
|
|
756
|
+
readonly description: {
|
|
757
|
+
readonly en: "The component creates a <script> element (createElement('script'), or a tag name built at run time), which loads and runs code from outside the published bundle in the host page (rule external-script).";
|
|
758
|
+
readonly "pt-BR": "O componente cria um elemento <script> (createElement('script'), ou um nome de tag montado em tempo de execução), que carrega e executa na página hospedeira código de fora do bundle publicado (regra external-script).";
|
|
759
|
+
};
|
|
760
|
+
readonly hint: {
|
|
761
|
+
readonly en: "Import the code you need as an allowlisted package so it is bundled and checked; create elements with JSX or with a literal tag name.";
|
|
762
|
+
readonly "pt-BR": "Importe o código de que precisa como um pacote da allowlist, para ele entrar no bundle e ser conferido; crie elementos com JSX ou com nome de tag literal.";
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly UNSAFE_DYNAMIC_SCRIPT: {
|
|
766
|
+
readonly severity: "error";
|
|
767
|
+
readonly fault: "customer";
|
|
768
|
+
readonly stage: "output";
|
|
769
|
+
readonly title: {
|
|
770
|
+
readonly en: "Component runs a script built at run time";
|
|
771
|
+
readonly "pt-BR": "Componente executa script montado em tempo de execução";
|
|
772
|
+
};
|
|
773
|
+
readonly description: {
|
|
774
|
+
readonly en: "The component starts code that is not in the published bundle: a JavaScript Blob, a Worker or SharedWorker, importScripts, a service worker, a worklet module or WebAssembly. That code escapes every check of the build, and its source map annotations escape the neutralization of the stored bytes (rule dynamic-script).";
|
|
775
|
+
readonly "pt-BR": "O componente inicia código que não está no bundle publicado: um Blob de JavaScript, um Worker ou SharedWorker, importScripts, um service worker, um módulo de worklet ou WebAssembly. Esse código escapa de toda checagem do build, e as anotações de source map dele escapam da neutralização dos bytes gravados (regra dynamic-script).";
|
|
776
|
+
};
|
|
777
|
+
readonly hint: {
|
|
778
|
+
readonly en: "Do the work in the component's own code, on the main thread; heavy computing belongs on a server the component calls.";
|
|
779
|
+
readonly "pt-BR": "Faça o trabalho no próprio código do componente, na thread principal; computação pesada fica num servidor que o componente chama.";
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
readonly UNSAFE_DYNAMIC_IMPORT: {
|
|
783
|
+
readonly severity: "error";
|
|
784
|
+
readonly fault: "customer";
|
|
785
|
+
readonly stage: "output";
|
|
786
|
+
readonly title: {
|
|
787
|
+
readonly en: "Dynamic import in the component";
|
|
788
|
+
readonly "pt-BR": "Import dinâmico no componente";
|
|
789
|
+
};
|
|
790
|
+
readonly description: {
|
|
791
|
+
readonly en: "The bundle keeps an import() the builder could not resolve at build time, so at run time it would load a module from any URL into the host page (rule dynamic-import).";
|
|
792
|
+
readonly "pt-BR": "O bundle mantém um import() que o builder não conseguiu resolver no build, então em tempo de execução ele carregaria na página hospedeira um módulo de qualquer URL (regra dynamic-import).";
|
|
793
|
+
};
|
|
794
|
+
readonly hint: {
|
|
795
|
+
readonly en: "Use static imports (import x from \"./file\") of files in the package or allowlisted packages.";
|
|
796
|
+
readonly "pt-BR": "Use imports estáticos (import x from \"./arquivo\") de arquivos do pacote ou de pacotes da allowlist.";
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly UNDECLARED_NETWORK: {
|
|
800
|
+
readonly severity: "error";
|
|
801
|
+
readonly fault: "customer";
|
|
802
|
+
readonly stage: "output";
|
|
803
|
+
readonly title: {
|
|
804
|
+
readonly en: "Network request to an undeclared origin";
|
|
805
|
+
readonly "pt-BR": "Requisição de rede para origem não declarada";
|
|
806
|
+
};
|
|
807
|
+
readonly description: {
|
|
808
|
+
readonly en: "The component sends a request (fetch, WebSocket, EventSource, sendBeacon, XMLHttpRequest, an RTCPeerConnection) or carries data out through another channel (new Image().src, a <link> element, a form's action or form.submit(), window.open, location.href = …, location.assign or replace, url() in a style built in code) to an origin its manifest does not declare in permissions.connect, to a relative URL (the host site itself) or to a URL built at run time, whose origin the build cannot check (rule undeclared-network).";
|
|
809
|
+
readonly "pt-BR": "O componente faz uma requisição (fetch, WebSocket, EventSource, sendBeacon, XMLHttpRequest, uma RTCPeerConnection) ou leva dados para fora por outro canal (new Image().src, um elemento <link>, o action de um formulário ou form.submit(), window.open, location.href = …, location.assign ou replace, url() num estilo montado no código) para uma origem que o manifesto não declara em permissions.connect, para uma URL relativa (o próprio site hospedeiro) ou para uma URL montada em tempo de execução, cuja origem o build não consegue conferir (regra undeclared-network).";
|
|
810
|
+
};
|
|
811
|
+
readonly hint: {
|
|
812
|
+
readonly en: "Write the URL as a literal that starts with its origin (fetch(\"https://api.example.com/items\")) and declare that origin in defineTaggorComponent({ permissions: { connect: [\"https://api.example.com\"] } }). XMLHttpRequest: use fetch. RTCPeerConnection and form.submit() are never allowed.";
|
|
813
|
+
readonly "pt-BR": "Escreva a URL como literal que começa pela origem (fetch(\"https://api.example.com/items\")) e declare essa origem em defineTaggorComponent({ permissions: { connect: [\"https://api.example.com\"] } }). XMLHttpRequest: use fetch. RTCPeerConnection e form.submit() nunca são permitidos.";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
readonly MINING_PATTERN: {
|
|
817
|
+
readonly severity: "error";
|
|
818
|
+
readonly fault: "customer";
|
|
819
|
+
readonly stage: "output";
|
|
820
|
+
readonly title: {
|
|
821
|
+
readonly en: "Crypto mining pattern";
|
|
822
|
+
readonly "pt-BR": "Padrão de mineração de criptomoeda";
|
|
823
|
+
};
|
|
824
|
+
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 consent (rule mining).";
|
|
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 consentimento (regra mining).";
|
|
827
|
+
};
|
|
828
|
+
readonly hint: {
|
|
829
|
+
readonly en: "Remove the mining code. If the text is only a word in your content, rephrase it.";
|
|
830
|
+
readonly "pt-BR": "Tire o código de mineração. Se o texto é só uma palavra do seu conteúdo, reescreva-o.";
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
readonly UNSAFE_HTML_SINK: {
|
|
834
|
+
readonly severity: "error";
|
|
835
|
+
readonly fault: "customer";
|
|
836
|
+
readonly stage: "output";
|
|
837
|
+
readonly title: {
|
|
838
|
+
readonly en: "HTML written from a string";
|
|
839
|
+
readonly "pt-BR": "HTML escrito a partir de texto";
|
|
840
|
+
};
|
|
841
|
+
readonly description: {
|
|
842
|
+
readonly en: "The component writes as HTML (innerHTML, outerHTML, insertAdjacentHTML, srcdoc, setHTMLUnsafe, createContextualFragment or dangerouslySetInnerHTML) a string that is not a fixed literal, or a literal that runs script (a <script> element, an on… handler attribute, a javascript: URL). When the string comes from a prop, an attribute of the page or an API, markup such as <img onerror> in it runs script in the host page (rule html-sink).";
|
|
843
|
+
readonly "pt-BR": "O componente escreve como HTML (innerHTML, outerHTML, insertAdjacentHTML, srcdoc, setHTMLUnsafe, createContextualFragment ou dangerouslySetInnerHTML) um texto que não é um literal fixo, ou um literal que executa script (elemento <script>, atributo de handler on…, URL javascript:). Quando o texto vem de uma prop, de um atributo da página ou de uma API, marcação como <img onerror> nele executa script na página hospedeira (regra html-sink).";
|
|
844
|
+
};
|
|
845
|
+
readonly hint: {
|
|
846
|
+
readonly en: "Render the content with JSX ({message} is escaped), or set textContent; for formatting, accept structured data (a list of paragraphs, bold ranges) instead of HTML.";
|
|
847
|
+
readonly "pt-BR": "Renderize o conteúdo com JSX ({message} é escapado), ou use textContent; para formatação, aceite dados estruturados (lista de parágrafos, trechos em negrito) em vez de HTML.";
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
readonly UNSAFE_TOP_NAVIGATION: {
|
|
851
|
+
readonly severity: "error";
|
|
852
|
+
readonly fault: "customer";
|
|
853
|
+
readonly stage: "output";
|
|
854
|
+
readonly title: {
|
|
855
|
+
readonly en: "Component navigates the top window";
|
|
856
|
+
readonly "pt-BR": "Componente navega a janela de cima";
|
|
857
|
+
};
|
|
858
|
+
readonly description: {
|
|
859
|
+
readonly en: "The component reaches the location of window.top, window.parent or window.opener, so it can send the visitor away from the host site, or out of the frame that holds it, to another page, or keeps the window window.open returns as a value (features such as noopener never excuse it), which is same-origin with the page and runs what is written to it with the page's cookies (rule top-navigation).";
|
|
860
|
+
readonly "pt-BR": "O componente alcança o location de window.top, window.parent ou window.opener, então pode tirar o visitante do site hospedeiro, ou do frame que o contém, para outra página, ou guarda como valor a janela que window.open devolve (features como noopener nunca a dispensam), que é same-origin com a página e roda o que se escreve nela com os cookies da página (regra top-navigation).";
|
|
861
|
+
};
|
|
862
|
+
readonly hint: {
|
|
863
|
+
readonly en: "Use a link the visitor clicks (<a href> with target=\"_blank\" and rel=\"noopener\") instead of navigating another window.";
|
|
864
|
+
readonly "pt-BR": "Use um link em que o visitante clica (<a href> com target=\"_blank\" e rel=\"noopener\") em vez de navegar outra janela.";
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
readonly UNSAFE_PREACT_OPTIONS: {
|
|
868
|
+
readonly severity: "error";
|
|
869
|
+
readonly fault: "customer";
|
|
870
|
+
readonly stage: "output";
|
|
871
|
+
readonly title: {
|
|
872
|
+
readonly en: "Component uses Preact's global options";
|
|
873
|
+
readonly "pt-BR": "Componente usa as options globais do Preact";
|
|
874
|
+
};
|
|
875
|
+
readonly description: {
|
|
876
|
+
readonly en: "The component imports Preact's options object, the global hooks of the shared runtime. Every component on the page uses the same Preact, so a change there reaches the other components' rendering and events (rule preact-options).";
|
|
877
|
+
readonly "pt-BR": "O componente importa o objeto options do Preact, os ganchos globais do runtime compartilhado. Todo componente da página usa o mesmo Preact, então uma mudança ali alcança a renderização e os eventos dos outros componentes (regra preact-options).";
|
|
878
|
+
};
|
|
879
|
+
readonly hint: {
|
|
880
|
+
readonly en: "Remove the options import; do per-render work in components and hooks of your own component.";
|
|
881
|
+
readonly "pt-BR": "Tire o import de options; faça o trabalho de cada render em componentes e hooks do próprio componente.";
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
readonly UNSAFE_PREACT_INTERNALS: {
|
|
885
|
+
readonly severity: "error";
|
|
886
|
+
readonly fault: "customer";
|
|
887
|
+
readonly stage: "output";
|
|
888
|
+
readonly title: {
|
|
889
|
+
readonly en: "Component accesses Preact internals";
|
|
890
|
+
readonly "pt-BR": "Componente acessa estruturas internas do Preact";
|
|
891
|
+
};
|
|
892
|
+
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 visitor consent. 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).";
|
|
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 consentimento do visitante. 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
|
+
};
|
|
896
|
+
readonly hint: {
|
|
897
|
+
readonly en: "Remove accesses to Preact's internal fields and use the documented hooks and Preact component APIs.";
|
|
898
|
+
readonly "pt-BR": "Remova o acesso aos campos internos do Preact e use os hooks e as APIs de componente Preact documentados.";
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
readonly UNSAFE_GLOBAL_ACCESS: {
|
|
902
|
+
readonly severity: "error";
|
|
903
|
+
readonly fault: "customer";
|
|
904
|
+
readonly stage: "output";
|
|
905
|
+
readonly title: {
|
|
906
|
+
readonly en: "Computed access to a global object";
|
|
907
|
+
readonly "pt-BR": "Acesso calculado a um objeto global";
|
|
908
|
+
};
|
|
909
|
+
readonly description: {
|
|
910
|
+
readonly en: "The component reads a property of window, globalThis, self, document or a function by a name computed at run time (window[name]), or passes the global object, document or the runtime's Preact module around as a value (to a function, in an object or array, returned), so the build cannot tell which global it reaches, such as eval or document.cookie (rule dynamic-global-access).";
|
|
911
|
+
readonly "pt-BR": "O componente lê uma propriedade de window, globalThis, self, document ou de uma função por um nome calculado em tempo de execução (window[name]), ou passa adiante como valor o objeto global, o document ou o módulo Preact do runtime (para uma função, num objeto ou array, num return), e o build não consegue saber qual global ele alcança, como eval ou document.cookie (regra dynamic-global-access).";
|
|
912
|
+
};
|
|
913
|
+
readonly hint: {
|
|
914
|
+
readonly en: "Name the global directly (window.innerWidth) or keep your own object with the values you need.";
|
|
915
|
+
readonly "pt-BR": "Cite o global pelo nome (window.innerWidth) ou guarde num objeto próprio os valores de que precisa.";
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
readonly UNSAFE_INLINE_HANDLER: {
|
|
919
|
+
readonly severity: "error";
|
|
920
|
+
readonly fault: "customer";
|
|
921
|
+
readonly stage: "output";
|
|
922
|
+
readonly title: {
|
|
923
|
+
readonly en: "Event handler from a string";
|
|
924
|
+
readonly "pt-BR": "Handler de evento a partir de texto";
|
|
925
|
+
};
|
|
926
|
+
readonly description: {
|
|
927
|
+
readonly en: "The component sets an inline event handler from a string (setAttribute(\"onclick\", …), el.onclick = \"…\" or an SVG <set attributeName=\"onclick\">), a javascript: URL or a data: HTML document in href, src or action, an xlink:href built at run time, or opens a javascript: URL with window.open (the window it opens is same-origin with the page), which the browser runs as code, an eval in disguise (rule inline-handler).";
|
|
928
|
+
readonly "pt-BR": "O componente define um handler de evento inline a partir de texto (setAttribute(\"onclick\", …), el.onclick = \"…\" ou um <set attributeName=\"onclick\"> de SVG), uma URL javascript: ou um documento HTML data: em href, src ou action, um xlink:href montado em tempo de execução, ou abre uma URL javascript: com window.open (a janela aberta é same-origin com a página), que o navegador executa como código, um eval disfarçado (regra inline-handler).";
|
|
929
|
+
};
|
|
930
|
+
readonly hint: {
|
|
931
|
+
readonly en: "Pass a function: onClick={() => …} in JSX, or addEventListener(\"click\", handler).";
|
|
932
|
+
readonly "pt-BR": "Passe uma função: onClick={() => …} no JSX, ou addEventListener(\"click\", handler).";
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly UNSAFE_STRING_TIMER: {
|
|
936
|
+
readonly severity: "error";
|
|
937
|
+
readonly fault: "customer";
|
|
938
|
+
readonly stage: "output";
|
|
939
|
+
readonly title: {
|
|
940
|
+
readonly en: "Timer given a string";
|
|
941
|
+
readonly "pt-BR": "Timer com texto";
|
|
942
|
+
};
|
|
943
|
+
readonly description: {
|
|
944
|
+
readonly en: "The component passes a string to setTimeout or setInterval, which the browser compiles as code like eval, or calls a timer through an alias or as a value, where the build cannot see its first argument (rule string-timer).";
|
|
945
|
+
readonly "pt-BR": "O componente passa um texto para setTimeout ou setInterval, que o navegador compila como código, como o eval, ou chama um timer por um alias ou como valor, onde o build não vê o primeiro argumento (regra string-timer).";
|
|
946
|
+
};
|
|
947
|
+
readonly hint: {
|
|
948
|
+
readonly en: "Pass a function and call the timer by its name: setTimeout(() => show(), 1000).";
|
|
949
|
+
readonly "pt-BR": "Passe uma função e chame o timer pelo nome: setTimeout(() => show(), 1000).";
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
readonly OBFUSCATED_CODE: {
|
|
953
|
+
readonly severity: "error";
|
|
954
|
+
readonly fault: "customer";
|
|
955
|
+
readonly stage: "output";
|
|
956
|
+
readonly title: {
|
|
957
|
+
readonly en: "Obfuscated code";
|
|
958
|
+
readonly "pt-BR": "Código ofuscado";
|
|
959
|
+
};
|
|
960
|
+
readonly description: {
|
|
961
|
+
readonly en: "The component spells text in character codes (String.fromCharCode with many codes), decodes base64 twice (atob(atob(…))) or decodes base64 that is code (atob of eval, document, fetch…). Hidden code cannot be reviewed, and this is how injected scripts hide what they call (rule obfuscation).";
|
|
962
|
+
readonly "pt-BR": "O componente escreve texto em códigos de caractere (String.fromCharCode com muitos códigos), decodifica base64 duas vezes (atob(atob(…))) ou decodifica base64 que é código (atob de eval, document, fetch…). Código escondido não pode ser revisado, e é assim que scripts injetados escondem o que chamam (regra obfuscation).";
|
|
963
|
+
};
|
|
964
|
+
readonly hint: {
|
|
965
|
+
readonly en: "Write the text and the calls plainly in the source; the build minifies the bundle by itself.";
|
|
966
|
+
readonly "pt-BR": "Escreva o texto e as chamadas às claras no fonte; o build minifica o bundle sozinho.";
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
readonly HIGH_ENTROPY_STRING: {
|
|
970
|
+
readonly severity: "warning";
|
|
971
|
+
readonly fault: "customer";
|
|
972
|
+
readonly stage: "output";
|
|
973
|
+
readonly title: {
|
|
974
|
+
readonly en: "String that looks like random data";
|
|
975
|
+
readonly "pt-BR": "Texto que parece dado aleatório";
|
|
976
|
+
};
|
|
977
|
+
readonly description: {
|
|
978
|
+
readonly en: "The component has a long string literal (200 characters or more, not a data: URL) whose characters are as spread as base64 or a packed payload. It may be a key, an encoded image or hidden code; the build goes on, and the warning stays with the version for a review (rule high-entropy-string).";
|
|
979
|
+
readonly "pt-BR": "O componente tem um texto literal longo (200 caracteres ou mais, que não é uma URL data:) cujos caracteres são tão espalhados quanto base64 ou uma carga compactada. Pode ser uma chave, uma imagem codificada ou código escondido; o build segue, e o aviso fica com a versão para revisão (regra high-entropy-string).";
|
|
980
|
+
};
|
|
981
|
+
readonly hint: {
|
|
982
|
+
readonly en: "Import images and fonts as files, keep keys out of the component, and write code plainly.";
|
|
983
|
+
readonly "pt-BR": "Importe imagens e fontes como arquivos, deixe chaves fora do componente e escreva o código às claras.";
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
readonly EXTERNAL_IMAGE: {
|
|
987
|
+
readonly severity: "warning";
|
|
988
|
+
readonly fault: "customer";
|
|
989
|
+
readonly stage: "output";
|
|
990
|
+
readonly title: {
|
|
991
|
+
readonly en: "Image from another site";
|
|
992
|
+
readonly "pt-BR": "Imagem de outro site";
|
|
993
|
+
};
|
|
994
|
+
readonly description: {
|
|
995
|
+
readonly en: "The component cites an image by an external https:// (or http://) URL, as a literal ending in an image extension or as the src of an element. The preview page allows images only from the Taggor CDN and data: URLs, so the image does not show in the preview; on a site it follows that site's own Content-Security-Policy, which may block it too. The build goes on (rule external-image).";
|
|
996
|
+
readonly "pt-BR": "O componente cita uma imagem por uma URL externa https:// (ou http://), como um texto que termina em extensão de imagem ou como o src de um elemento. A página de preview só permite imagens do CDN do Taggor e URLs data:, então a imagem não aparece no preview; num site vale a CSP do próprio site, que também pode bloqueá-la. O build segue (regra external-image).";
|
|
997
|
+
};
|
|
998
|
+
readonly hint: {
|
|
999
|
+
readonly en: "Put the image file in the component's folder and import it (import avatar from \"./avatar.png\"): it is uploaded to the Taggor CDN and shows in the preview and on the site.";
|
|
1000
|
+
readonly "pt-BR": "Coloque o arquivo da imagem na pasta do componente e importe (import avatar from \"./avatar.png\"): ele sobe para o CDN do Taggor e aparece no preview e no site.";
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
readonly CREDENTIAL_CAPTURE: {
|
|
1004
|
+
readonly severity: "error";
|
|
1005
|
+
readonly fault: "customer";
|
|
1006
|
+
readonly stage: "output";
|
|
1007
|
+
readonly title: {
|
|
1008
|
+
readonly en: "Component asks for credentials";
|
|
1009
|
+
readonly "pt-BR": "Componente pede credenciais";
|
|
1010
|
+
};
|
|
1011
|
+
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 it needs a person's review: it is refused until then (rule credential-capture).";
|
|
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 precisa de revisão de uma pessoa: é recusado até lá (regra credential-capture).";
|
|
1014
|
+
};
|
|
1015
|
+
readonly hint: {
|
|
1016
|
+
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.";
|
|
1017
|
+
readonly "pt-BR": "Deixe login e pagamento para as páginas do próprio site ou o checkout de um provedor de pagamento; um componente coleta só o que um lead ou um formulário precisa.";
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
readonly CREDENTIAL_COLLECTION_FIELD: {
|
|
1021
|
+
readonly severity: "error";
|
|
1022
|
+
readonly fault: "customer";
|
|
1023
|
+
readonly stage: "output";
|
|
1024
|
+
readonly title: {
|
|
1025
|
+
readonly en: "Collection field for a credential";
|
|
1026
|
+
readonly "pt-BR": "Campo de coleção para credencial";
|
|
1027
|
+
};
|
|
1028
|
+
readonly description: {
|
|
1029
|
+
readonly en: "A collection in data.collections declares a field named as a password or a payment card's number or code (password, senha, cardNumber, cvv). Taggor never stores credentials or card data (rule credential-collection-field).";
|
|
1030
|
+
readonly "pt-BR": "Uma coleção em data.collections declara um campo com nome de senha ou de número ou código de cartão (password, senha, cardNumber, cvv). O Taggor nunca guarda credenciais nem dados de cartão (regra credential-collection-field).";
|
|
1031
|
+
};
|
|
1032
|
+
readonly hint: {
|
|
1033
|
+
readonly en: "Remove the field; send payments through a payment provider and logins through the site itself.";
|
|
1034
|
+
readonly "pt-BR": "Tire o campo; pagamentos vão por um provedor de pagamento e logins pelo próprio site.";
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
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
|
+
readonly VIEWPORT_OVERLAY: {
|
|
1072
|
+
readonly severity: "error";
|
|
1073
|
+
readonly fault: "customer";
|
|
1074
|
+
readonly stage: "output";
|
|
1075
|
+
readonly title: {
|
|
1076
|
+
readonly en: "Layer over the whole viewport";
|
|
1077
|
+
readonly "pt-BR": "Camada sobre a viewport inteira";
|
|
1078
|
+
};
|
|
1079
|
+
readonly description: {
|
|
1080
|
+
readonly en: "The component's CSS fixes :host over the whole viewport (position: fixed with inset: 0, or 100vw by 100vh), or fixes an inner box over it after dropping the host's containment (:host { contain: none }) with no state in the selector, so it shows before the visitor acts. Such a layer takes every click of the host page, and when it is transparent the visitor clicks the component believing it is the page (clickjacking). It needs a person's review: it is refused until then (rule viewport-overlay).";
|
|
1081
|
+
readonly "pt-BR": "O CSS do componente fixa o :host sobre a viewport inteira (position: fixed com inset: 0, ou 100vw por 100vh), ou fixa uma caixa interna sobre ela depois de tirar a contenção do host (:host { contain: none }) sem estado no seletor, então aparece antes de o visitante agir. Essa camada recebe todo clique da página hospedeira e, transparente, faz o visitante clicar no componente achando que é a página (clickjacking). Precisa de revisão de uma pessoa: é recusado até lá (regra viewport-overlay).";
|
|
1082
|
+
};
|
|
1083
|
+
readonly hint: {
|
|
1084
|
+
readonly en: "Keep the component in its own box; for a modal, open a <dialog> with showModal() on the visitor's click, or style the backdrop only in a state the visitor sets ([open], :popover-open, ::backdrop).";
|
|
1085
|
+
readonly "pt-BR": "Mantenha o componente na própria caixa; para um modal, abra um <dialog> com showModal() no clique do visitante ou estilize o fundo só num estado que o visitante cria ([open], :popover-open, ::backdrop).";
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
readonly UNSAFE_RUNTIME_CSS: {
|
|
1089
|
+
readonly severity: "error";
|
|
1090
|
+
readonly fault: "customer";
|
|
1091
|
+
readonly stage: "output";
|
|
1092
|
+
readonly title: {
|
|
1093
|
+
readonly en: "CSS built at run time";
|
|
1094
|
+
readonly "pt-BR": "CSS montado em tempo de execução";
|
|
1095
|
+
};
|
|
1096
|
+
readonly description: {
|
|
1097
|
+
readonly en: "The component creates a <style> element, a CSSStyleSheet or calls insertRule or replaceSync, so its CSS is made at run time. The build checks the component's CSS for @import, network url() and declared parts and variables; CSS made at run time skips those checks, and a <style> element needs the host page's style-src (rule runtime-css).";
|
|
1098
|
+
readonly "pt-BR": "O componente cria um elemento <style>, uma CSSStyleSheet ou chama insertRule ou replaceSync, então o CSS dele é feito em tempo de execução. O build confere no CSS do componente @import, url() de rede e partes e variáveis declaradas; CSS feito em tempo de execução pula essas checagens, e um <style> depende do style-src da página hospedeira (regra runtime-css).";
|
|
1099
|
+
};
|
|
1100
|
+
readonly hint: {
|
|
1101
|
+
readonly en: "Put the CSS in a .css or .scss file the component imports, or in defineTaggorComponent({ styles }); for values that change, set a CSS variable in a style prop.";
|
|
1102
|
+
readonly "pt-BR": "Ponha o CSS num arquivo .css ou .scss que o componente importa ou em defineTaggorComponent({ styles }); para valores que mudam, defina uma variável CSS numa prop style.";
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
readonly UNSAFE_ELEMENT: {
|
|
1106
|
+
readonly severity: "error";
|
|
1107
|
+
readonly fault: "customer";
|
|
1108
|
+
readonly stage: "output";
|
|
1109
|
+
readonly title: {
|
|
1110
|
+
readonly en: "Element that changes the page";
|
|
1111
|
+
readonly "pt-BR": "Elemento que muda a página";
|
|
1112
|
+
};
|
|
1113
|
+
readonly description: {
|
|
1114
|
+
readonly en: "The component creates a <base> element, which rewrites how every relative URL in its shadow root resolves, or a <meta> element, which can refresh or redirect the page (rule unsafe-element).";
|
|
1115
|
+
readonly "pt-BR": "O componente cria um elemento <base>, que reescreve como toda URL relativa do shadow root é resolvida, ou um <meta>, que pode recarregar ou redirecionar a página (regra unsafe-element).";
|
|
1116
|
+
};
|
|
1117
|
+
readonly hint: {
|
|
1118
|
+
readonly en: "Write absolute URLs where you need them, and leave the page's head to the site.";
|
|
1119
|
+
readonly "pt-BR": "Escreva URLs absolutas onde precisar e deixe o head da página para o site.";
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
readonly UNSAFE_TAGGOR_GLOBAL: {
|
|
1123
|
+
readonly severity: "error";
|
|
1124
|
+
readonly fault: "customer";
|
|
1125
|
+
readonly stage: "output";
|
|
1126
|
+
readonly title: {
|
|
1127
|
+
readonly en: "Component writes the taggor global";
|
|
1128
|
+
readonly "pt-BR": "Componente escreve o global taggor";
|
|
1129
|
+
};
|
|
1130
|
+
readonly description: {
|
|
1131
|
+
readonly en: "The component assigns, defines or deletes window.taggor or one of its members (Object.defineProperty(window, \"taggor\", …), taggor.on = …). The global is the host page's API to its components; a component that replaces it can read the other components' events and answer for them (rule taggor-global).";
|
|
1132
|
+
readonly "pt-BR": "O componente atribui, define ou apaga window.taggor ou um membro dele (Object.defineProperty(window, \"taggor\", …), taggor.on = …). O global é a API da página hospedeira para os componentes dela; um componente que o troca pode ler os eventos dos outros componentes e responder por eles (regra taggor-global).";
|
|
1133
|
+
};
|
|
1134
|
+
readonly hint: {
|
|
1135
|
+
readonly en: "Talk to the page through your component's declared events (context.emit); read the page's API without writing to it.";
|
|
1136
|
+
readonly "pt-BR": "Fale com a página pelos eventos declarados do componente (context.emit); leia a API da página sem escrever nela.";
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
readonly BUILD_TIMEOUT: {
|
|
1140
|
+
readonly severity: "error";
|
|
1141
|
+
readonly fault: "customer";
|
|
1142
|
+
readonly stage: "build";
|
|
1143
|
+
readonly title: {
|
|
1144
|
+
readonly en: "Build took too long";
|
|
1145
|
+
readonly "pt-BR": "Build demorou demais";
|
|
1146
|
+
};
|
|
1147
|
+
readonly description: {
|
|
1148
|
+
readonly en: "The whole build took longer than the build timeout, usually because the source package is very large or loading the module does heavy work.";
|
|
1149
|
+
readonly "pt-BR": "O build inteiro passou do tempo limite, em geral porque o pacote de fonte é muito grande ou o carregamento do módulo faz trabalho pesado.";
|
|
1150
|
+
};
|
|
1151
|
+
readonly hint: {
|
|
1152
|
+
readonly en: "Make the package smaller and do no work at the top level of the module; then publish again.";
|
|
1153
|
+
readonly "pt-BR": "Diminua o pacote e não faça trabalho no nível de cima do módulo; depois publique de novo.";
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
readonly LIMIT_EXCEEDED: {
|
|
1157
|
+
readonly severity: "error";
|
|
1158
|
+
readonly fault: "customer";
|
|
1159
|
+
readonly stage: "build";
|
|
1160
|
+
readonly title: {
|
|
1161
|
+
readonly en: "Plan limit exceeded";
|
|
1162
|
+
readonly "pt-BR": "Limite do plano excedido";
|
|
1163
|
+
};
|
|
1164
|
+
readonly description: {
|
|
1165
|
+
readonly en: "The build went over a limit of the workspace's plan: the size of the source package, the number of files, the packages the component imports by name, the size of the output visitors download, or the builds running at once. The message names the limit, its value and what the build used; the limits of each plan are the same for the API, the CLI and the MCP.";
|
|
1166
|
+
readonly "pt-BR": "O build passou de um limite do plano do workspace: o tamanho do pacote de fonte, o número de arquivos, os pacotes que o componente importa pelo nome, o tamanho da saída que o visitante baixa ou os builds rodando ao mesmo tempo. A mensagem diz o limite, o valor dele e quanto o build usou; os limites de cada plano são os mesmos para a API, a CLI e o MCP.";
|
|
1167
|
+
};
|
|
1168
|
+
readonly hint: {
|
|
1169
|
+
readonly en: "Bring the build under the limit named in the message (fewer files or packages, less inlined data), or move the workspace to a plan with a higher limit; for builds at once, wait for the running ones and publish again.";
|
|
1170
|
+
readonly "pt-BR": "Deixe o build abaixo do limite citado na mensagem (menos arquivos ou pacotes, menos dados embutidos), ou passe o workspace para um plano com limite maior; para builds ao mesmo tempo, espere os que estão rodando e publique de novo.";
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
readonly BUILDER_RESPONSE_INVALID: {
|
|
1174
|
+
readonly severity: "error";
|
|
1175
|
+
readonly fault: "platform";
|
|
1176
|
+
readonly stage: "build";
|
|
1177
|
+
readonly title: {
|
|
1178
|
+
readonly en: "Builder answered outside the protocol";
|
|
1179
|
+
readonly "pt-BR": "Builder respondeu fora do protocolo";
|
|
1180
|
+
};
|
|
1181
|
+
readonly description: {
|
|
1182
|
+
readonly en: "The build container sent an answer the builder does not accept, and the build was stopped. This is treated as a builder failure.";
|
|
1183
|
+
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
|
+
};
|
|
1185
|
+
readonly hint: {
|
|
1186
|
+
readonly en: "Publish again. If it happens again, contact support with the build id.";
|
|
1187
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, fale com o suporte com o id do build.";
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
readonly INTERNAL_ERROR: {
|
|
1191
|
+
readonly severity: "error";
|
|
1192
|
+
readonly fault: "platform";
|
|
1193
|
+
readonly stage: "build";
|
|
1194
|
+
readonly title: {
|
|
1195
|
+
readonly en: "Internal builder error";
|
|
1196
|
+
readonly "pt-BR": "Erro interno do builder";
|
|
1197
|
+
};
|
|
1198
|
+
readonly description: {
|
|
1199
|
+
readonly en: "Taggor's infrastructure kept failing until the last attempt, so the build was stopped. Nothing in the source package caused it.";
|
|
1200
|
+
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
|
+
};
|
|
1202
|
+
readonly hint: {
|
|
1203
|
+
readonly en: "Publish again later. If it keeps failing, contact support with the build id.";
|
|
1204
|
+
readonly "pt-BR": "Publique de novo mais tarde. Se continuar falhando, fale com o suporte com o id do build.";
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
readonly BUILD_STUCK: {
|
|
1208
|
+
readonly severity: "error";
|
|
1209
|
+
readonly fault: "platform";
|
|
1210
|
+
readonly stage: "build";
|
|
1211
|
+
readonly title: {
|
|
1212
|
+
readonly en: "Build stopped by the builder";
|
|
1213
|
+
readonly "pt-BR": "Build parado pelo builder";
|
|
1214
|
+
};
|
|
1215
|
+
readonly description: {
|
|
1216
|
+
readonly en: "The build stayed in the queue or in progress for much longer than any build runs (the builder or its queue lost it), so the periodic sweep ended it as failed. Nothing in the source package caused it, and the build produced no version.";
|
|
1217
|
+
readonly "pt-BR": "O build ficou na fila ou em andamento por muito mais tempo do que qualquer build leva (o builder ou a fila o perdeu), então a varredura periódica o encerrou como falho. Nada no pacote de fonte causou isso, e o build não gerou versão.";
|
|
1218
|
+
};
|
|
1219
|
+
readonly hint: {
|
|
1220
|
+
readonly en: "Publish again. If it happens again, contact support with the build id.";
|
|
1221
|
+
readonly "pt-BR": "Publique de novo. Se acontecer de novo, fale com o suporte com o id do build.";
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
readonly CONTAINER_START_TIMEOUT: {
|
|
1225
|
+
readonly severity: "error";
|
|
1226
|
+
readonly fault: "platform";
|
|
1227
|
+
readonly stage: "build";
|
|
1228
|
+
readonly title: {
|
|
1229
|
+
readonly en: "Build container did not start in time";
|
|
1230
|
+
readonly "pt-BR": "Container de build não subiu a tempo";
|
|
1231
|
+
};
|
|
1232
|
+
readonly description: {
|
|
1233
|
+
readonly en: "The container that runs the build did not become ready within its start timeout, on every attempt. Nothing in the source package caused it: the platform could not give the build a container.";
|
|
1234
|
+
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
|
+
};
|
|
1236
|
+
readonly hint: {
|
|
1237
|
+
readonly en: "Publish again in a few minutes. If it keeps failing, contact support with the build id.";
|
|
1238
|
+
readonly "pt-BR": "Publique de novo em alguns minutos. Se continuar falhando, fale com o suporte com o id do build.";
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
readonly BREAKING_PROP_CHANGE: {
|
|
1242
|
+
readonly severity: "warning";
|
|
1243
|
+
readonly fault: "customer";
|
|
1244
|
+
readonly stage: "version";
|
|
1245
|
+
readonly title: {
|
|
1246
|
+
readonly en: "Breaking prop change";
|
|
1247
|
+
readonly "pt-BR": "Mudança de prop que quebra";
|
|
1248
|
+
};
|
|
1249
|
+
readonly description: {
|
|
1250
|
+
readonly en: "Compared with the version in production (or the latest version while production points nowhere), a prop of the component was removed or renamed, changed type, or accepts fewer values: a narrower bound, a removed enum value or URL scheme, a removed or newly required object field. Pages that set the old attribute or property get the default instead. The version is created; promoting it to production needs allowBreaking. The message names the prop and the manifestPath points at the change.";
|
|
1251
|
+
readonly "pt-BR": "Em relação à versão em produção (ou à última versão, enquanto produção não aponta para nenhuma), uma prop do componente foi removida ou renomeada, mudou de tipo ou aceita menos valores: um limite mais estreito, um valor de enum ou esquema de URL removido, um campo de objeto removido ou que passou a ser obrigatório. Páginas que definem o atributo ou a propriedade antigos recebem o default. A versão é criada; promovê-la para produção exige allowBreaking. A mensagem cita a prop e o manifestPath aponta a mudança.";
|
|
1252
|
+
};
|
|
1253
|
+
readonly hint: {
|
|
1254
|
+
readonly en: "Keep the old prop working (keep its name, type and values, and add a new prop beside it), or update every page that sets it and promote with allowBreaking.";
|
|
1255
|
+
readonly "pt-BR": "Mantenha a prop antiga funcionando (mesmo nome, tipo e valores, com uma prop nova ao lado), ou atualize toda página que a define e promova com allowBreaking.";
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
readonly BREAKING_EVENT_CHANGE: {
|
|
1259
|
+
readonly severity: "warning";
|
|
1260
|
+
readonly fault: "customer";
|
|
1261
|
+
readonly stage: "version";
|
|
1262
|
+
readonly title: {
|
|
1263
|
+
readonly en: "Breaking event change";
|
|
1264
|
+
readonly "pt-BR": "Mudança de evento que quebra";
|
|
1265
|
+
};
|
|
1266
|
+
readonly description: {
|
|
1267
|
+
readonly en: "Compared with the version in production (or the latest version while production points nowhere), an event of the component was removed, no longer bubbles or crosses the shadow root, or its detail changed in a way listeners may not understand: another type, a removed field, a field that became optional, a new enum value, a wider bound. The version is created; promoting it to production needs allowBreaking.";
|
|
1268
|
+
readonly "pt-BR": "Em relação à versão em produção (ou à última versão, enquanto produção não aponta para nenhuma), um evento do componente foi removido, deixou de borbulhar ou de atravessar o shadow root, ou o detail mudou de um jeito que os listeners podem não entender: outro tipo, um campo removido ou que virou opcional, um valor de enum novo, um limite mais largo. A versão é criada; promovê-la para produção exige allowBreaking.";
|
|
1269
|
+
};
|
|
1270
|
+
readonly hint: {
|
|
1271
|
+
readonly en: "Keep emitting the old event with its old detail (add fields beside the old ones), or emit a new event for the new shape; otherwise update the listeners on every page and promote with allowBreaking.";
|
|
1272
|
+
readonly "pt-BR": "Continue emitindo o evento antigo com o detail antigo (acrescente campos ao lado dos antigos), ou emita um evento novo com o formato novo; senão, atualize os listeners de toda página e promova com allowBreaking.";
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
readonly BREAKING_SLOT_CHANGE: {
|
|
1276
|
+
readonly severity: "warning";
|
|
1277
|
+
readonly fault: "customer";
|
|
1278
|
+
readonly stage: "version";
|
|
1279
|
+
readonly title: {
|
|
1280
|
+
readonly en: "Slot removed";
|
|
1281
|
+
readonly "pt-BR": "Slot removido";
|
|
1282
|
+
};
|
|
1283
|
+
readonly description: {
|
|
1284
|
+
readonly en: "Compared with the version in production (or the latest version while production points nowhere), a slot of the component was removed: content that pages put in it is no longer shown. The version is created; promoting it to production needs allowBreaking.";
|
|
1285
|
+
readonly "pt-BR": "Em relação à versão em produção (ou à última versão, enquanto produção não aponta para nenhuma), um slot do componente foi removido: o conteúdo que as páginas põem nele deixa de aparecer. A versão é criada; promovê-la para produção exige allowBreaking.";
|
|
1286
|
+
};
|
|
1287
|
+
readonly hint: {
|
|
1288
|
+
readonly en: "Keep the slot, or move that content on every page and promote with allowBreaking.";
|
|
1289
|
+
readonly "pt-BR": "Mantenha o slot, ou mude esse conteúdo de lugar em toda página e promova com allowBreaking.";
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
readonly BREAKING_STYLE_CHANGE: {
|
|
1293
|
+
readonly severity: "warning";
|
|
1294
|
+
readonly fault: "customer";
|
|
1295
|
+
readonly stage: "version";
|
|
1296
|
+
readonly title: {
|
|
1297
|
+
readonly en: "Breaking style change";
|
|
1298
|
+
readonly "pt-BR": "Mudança de estilo que quebra";
|
|
1299
|
+
};
|
|
1300
|
+
readonly description: {
|
|
1301
|
+
readonly en: "Compared with the version in production (or the latest version while production points nowhere), a part or a CSS variable of the component was removed, or a CSS variable changed type: page CSS that styles that part or sets that variable no longer applies as before. The version is created; promoting it to production needs allowBreaking.";
|
|
1302
|
+
readonly "pt-BR": "Em relação à versão em produção (ou à última versão, enquanto produção não aponta para nenhuma), uma part ou uma variável CSS do componente foi removida, ou uma variável CSS mudou de tipo: o CSS da página que estiliza essa part ou define essa variável deixa de valer como antes. A versão é criada; promovê-la para produção exige allowBreaking.";
|
|
1303
|
+
};
|
|
1304
|
+
readonly hint: {
|
|
1305
|
+
readonly en: "Keep the part or the CSS variable (with its type), or update the pages' CSS and promote with allowBreaking.";
|
|
1306
|
+
readonly "pt-BR": "Mantenha a part ou a variável CSS (com o tipo dela), ou atualize o CSS das páginas e promova com allowBreaking.";
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
readonly BASE_MANIFEST_UNREADABLE: {
|
|
1310
|
+
readonly severity: "warning";
|
|
1311
|
+
readonly fault: "platform";
|
|
1312
|
+
readonly stage: "version";
|
|
1313
|
+
readonly title: {
|
|
1314
|
+
readonly en: "Previous manifest could not be compared";
|
|
1315
|
+
readonly "pt-BR": "Manifesto anterior não pôde ser comparado";
|
|
1316
|
+
};
|
|
1317
|
+
readonly description: {
|
|
1318
|
+
readonly en: "The version this one is compared with (the one in production, or the latest one while production points nowhere) has a stored manifest this release of Taggor cannot read, usually because it uses a newer contract major. Nothing was compared, so the new version counts as breaking: it is created, and promoting it to production needs allowBreaking.";
|
|
1319
|
+
readonly "pt-BR": "A versão com que esta é comparada (a de produção, ou a última enquanto produção não aponta) tem um manifesto guardado que esta versão do Taggor não lê, em geral porque usa uma major mais nova do contrato. Nada foi comparado, então a versão nova conta como mudança que quebra: ela é criada, e promovê-la para produção exige allowBreaking.";
|
|
1320
|
+
};
|
|
1321
|
+
readonly hint: {
|
|
1322
|
+
readonly en: "Check by hand that pages using the component keep working with this version (props, events, slots, parts, CSS variables), then promote with allowBreaking.";
|
|
1323
|
+
readonly "pt-BR": "Confira à mão que as páginas que usam o componente continuam funcionando com esta versão (props, eventos, slots, parts, variáveis CSS) e promova com allowBreaking.";
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
readonly SEMVER_BUMP_TOO_SMALL: {
|
|
1327
|
+
readonly severity: "error";
|
|
1328
|
+
readonly fault: "customer";
|
|
1329
|
+
readonly stage: "version";
|
|
1330
|
+
readonly title: {
|
|
1331
|
+
readonly en: "Semver too small";
|
|
1332
|
+
readonly "pt-BR": "Semver pequeno demais";
|
|
1333
|
+
};
|
|
1334
|
+
readonly description: {
|
|
1335
|
+
readonly en: "The semver sent for the new version is not above every existing version of the component, or it raises a smaller part than the manifest changes require, compared with the version in production (or the latest version while production points nowhere): a breaking change needs a new major, an additive change (a new prop, event, slot, part, CSS variable or enum value) a new minor, and no change of the public interface a new patch. The version is not created; the problem carries the suggested semver.";
|
|
1336
|
+
readonly "pt-BR": "O semver enviado para a versão nova não está acima de todas as versões do componente, ou sobe uma parte menor do que as mudanças do manifesto exigem, em relação à versão em produção (ou à última versão, enquanto produção não aponta para nenhuma): mudança que quebra pede major nova, mudança aditiva (prop, evento, slot, part, variável CSS ou valor de enum novos) pede minor nova, e nenhuma mudança na interface pública pede patch novo. A versão não é criada; o problema traz o semver sugerido.";
|
|
1337
|
+
};
|
|
1338
|
+
readonly hint: {
|
|
1339
|
+
readonly en: "Send the suggested semver (suggested_semver), or omit semver and Taggor picks it; to keep a smaller bump, undo the manifest changes listed in compatibility.";
|
|
1340
|
+
readonly "pt-BR": "Envie o semver sugerido (suggested_semver), ou omita o semver e o Taggor escolhe; para manter um bump menor, desfaça as mudanças do manifesto listadas em compatibility.";
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
};
|
|
1344
|
+
/**
|
|
1345
|
+
* Every build diagnostic code with its severity, fault, stage and texts. `TS` documents the whole
|
|
1346
|
+
* family of TypeScript codes and is not itself a code.
|
|
1347
|
+
*
|
|
1348
|
+
* Inputs: none. Output: deeply frozen entries. Errors: none. Side effects: none.
|
|
1349
|
+
*/
|
|
1350
|
+
export declare const diagnosticCatalog: Readonly<Record<keyof typeof catalog, DiagnosticCatalogEntry>>;
|
|
1351
|
+
/** A catalog key: one code, or `TS` for the TypeScript family. */
|
|
1352
|
+
export type DiagnosticCatalogKey = keyof typeof catalog;
|
|
1353
|
+
/** A code the builder emits by name (every catalog key but the `TS` family). */
|
|
1354
|
+
export type NamedDiagnosticCode = Exclude<DiagnosticCatalogKey, "TS">;
|
|
1355
|
+
/** Any build diagnostic code: a named one or a TypeScript one. */
|
|
1356
|
+
export type DiagnosticCode = NamedDiagnosticCode | TypeScriptDiagnosticCode;
|
|
1357
|
+
/** The named codes, in catalog order. */
|
|
1358
|
+
export declare const NAMED_DIAGNOSTIC_CODES: readonly NamedDiagnosticCode[];
|
|
1359
|
+
/**
|
|
1360
|
+
* Whether a value is a build diagnostic code.
|
|
1361
|
+
*
|
|
1362
|
+
* Inputs: any value. Output: `true` for a named code of the catalog or a TypeScript code
|
|
1363
|
+
* (`TS2322`), `false` otherwise (including `TS` alone and inherited names like `constructor`).
|
|
1364
|
+
* Errors: none. Side effects: none.
|
|
1365
|
+
*/
|
|
1366
|
+
export declare function isDiagnosticCode(value: unknown): value is DiagnosticCode;
|
|
1367
|
+
/**
|
|
1368
|
+
* The catalog key that documents a code: the code itself, or `TS` for a TypeScript code.
|
|
1369
|
+
*
|
|
1370
|
+
* Inputs: a diagnostic code. Output: its catalog key. Errors: none. Side effects: none.
|
|
1371
|
+
*/
|
|
1372
|
+
export declare function diagnosticCatalogKey(code: DiagnosticCode): DiagnosticCatalogKey;
|
|
1373
|
+
/**
|
|
1374
|
+
* The catalog entry of a code.
|
|
1375
|
+
*
|
|
1376
|
+
* Inputs: a diagnostic code. Output: its frozen entry (the `TS` entry for a TypeScript code).
|
|
1377
|
+
* Errors: none. Side effects: none.
|
|
1378
|
+
*/
|
|
1379
|
+
export declare function diagnosticEntry(code: DiagnosticCode): DiagnosticCatalogEntry;
|
|
1380
|
+
/**
|
|
1381
|
+
* The docs page of a code: `https://docs.taggor.dev/diagnostics/<key>`, with `#<code>` for a
|
|
1382
|
+
* TypeScript code (`…/diagnostics/TS#TS2322`).
|
|
1383
|
+
*
|
|
1384
|
+
* Inputs: a diagnostic code. Output: an absolute URL. Errors: none. Side effects: none.
|
|
1385
|
+
*/
|
|
1386
|
+
export declare function diagnosticDocsUrl(code: DiagnosticCode): string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Whether a build failed because of its source: at least one `error` whose code is the
|
|
1389
|
+
* customer's fault. The first-attempt success metric (PLANO) counts a publish as failed on the
|
|
1390
|
+
* 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, TAG-234) has no known fault and does not
|
|
1392
|
+
* count, so an unknown code never blames the customer.
|
|
1393
|
+
*
|
|
1394
|
+
* Inputs: the diagnostics of one build, codes known or not. Output: a boolean. Errors: none.
|
|
1395
|
+
* Side effects: none.
|
|
1396
|
+
*/
|
|
1397
|
+
export declare function hasCustomerError(diagnostics: readonly {
|
|
1398
|
+
readonly code: string;
|
|
1399
|
+
readonly severity: DiagnosticSeverity;
|
|
1400
|
+
}[]): boolean;
|
|
1401
|
+
export {};
|
|
1402
|
+
//# sourceMappingURL=diagnostic-catalog.d.ts.map
|