@taggor/contract 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/artifact-keys.d.ts +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/contract-version.d.ts +17 -12
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +24 -17
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +14 -44
- package/dist/data-api.d.ts.map +1 -1
- package/dist/data-api.js +20 -54
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +63 -89
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +63 -87
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +81 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +121 -51
- package/dist/error-catalog.js.map +1 -1
- package/dist/error-titles-pt-br.d.ts +13 -0
- package/dist/error-titles-pt-br.d.ts.map +1 -0
- package/dist/error-titles-pt-br.js +99 -0
- package/dist/error-titles-pt-br.js.map +1 -0
- package/dist/event-params.d.ts +41 -0
- package/dist/event-params.d.ts.map +1 -0
- package/dist/event-params.js +92 -0
- package/dist/event-params.js.map +1 -0
- package/dist/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +3 -3
- package/dist/index.d.ts +11 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -15
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +20 -28
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +19 -40
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +34 -55
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +22 -34
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +23 -35
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +3 -3
- package/dist/locale-tag.js +3 -3
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +44 -24
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +41 -61
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +33 -21
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +33 -21
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +33 -62
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +20 -67
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +16 -16
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +7 -14
- package/{schema → dist/schema}/data-api.v1.json +4 -39
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +3 -10
- package/dist/site-manifest.d.ts.map +1 -1
- package/dist/site-manifest.js +12 -15
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +17 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +15 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +2 -2
- package/dist/ssr-cap.d.ts.map +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +1 -1
- package/dist/ssr-kv.js +1 -1
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.d.ts.map +1 -1
- package/dist/url-value.js +7 -7
- package/dist/url-value.js.map +1 -1
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +20 -20
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +3 -3
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +4 -4
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -25
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -26
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- package/dist/consent-text.d.ts +0 -31
- package/dist/consent-text.d.ts.map +0 -1
- package/dist/consent-text.js +0 -41
- package/dist/consent-text.js.map +0 -1
- package/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/limits.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hard limits of component contract v1
|
|
2
|
+
* Hard limits of component contract v1.
|
|
3
3
|
*
|
|
4
4
|
* Every list, record and string in the manifest and in the data API is bounded so that a hostile
|
|
5
5
|
* manifest or payload cannot make the runtime, the builder, the edge or the API do unbounded work
|
|
6
6
|
* (golden rules 2 and 5). The schemas read these constants; `SPEC.md` documents them. Changing a
|
|
7
|
-
* value is a contract change: loosening is a minor bump, tightening is a major one
|
|
7
|
+
* value is a contract change: loosening is a minor bump, tightening is a major one.
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* The four manifest limits the SDK's value checks read (`checkValue` and `isAllowedUrl`, bundled
|
|
11
|
-
* into every component with a data hook) are plain constants as well
|
|
11
|
+
* into every component with a data hook) are plain constants as well: esbuild drops an
|
|
12
12
|
* unused object but never one property of a used one, so a check that read `MANIFEST_LIMITS.x`
|
|
13
13
|
* pulled all ~35 manifest limits into the component. `MANIFEST_LIMITS` reads the same constants, so
|
|
14
14
|
* each value still has one source. They are not re-exported by `index.ts` or `zod-free.ts`, so
|
|
@@ -26,7 +26,7 @@ export const URL_MAX_LENGTH = 2_048;
|
|
|
26
26
|
* Limits of the component manifest.
|
|
27
27
|
*
|
|
28
28
|
* Inputs: none. Output: frozen numbers used by the manifest schemas. Errors: none. Side effects:
|
|
29
|
-
* none. Marked `@__PURE__`
|
|
29
|
+
* none. Marked `@__PURE__` so a bundler drops it from a component that imports another
|
|
30
30
|
* limit: esbuild keeps an unmarked `Object.freeze` call.
|
|
31
31
|
*/
|
|
32
32
|
export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
@@ -50,7 +50,8 @@ export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
50
50
|
maxCollections: 10,
|
|
51
51
|
maxCollectionFields: 50,
|
|
52
52
|
maxTrackEvents: 30,
|
|
53
|
-
|
|
53
|
+
/** Declared parameter hints of one track event; the same number as `EVENT_PARAM_LIMITS.maxPerEvent`. */
|
|
54
|
+
maxTrackProps: 25,
|
|
54
55
|
maxEnumValues: 50,
|
|
55
56
|
enumValueMaxLength: 64,
|
|
56
57
|
/** Fields of one declared object value (prop, event detail). */
|
|
@@ -65,7 +66,7 @@ export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
65
66
|
colorMaxLength: 64,
|
|
66
67
|
/** Any `url` value: default, attribute or property. */
|
|
67
68
|
urlMaxLength: URL_MAX_LENGTH,
|
|
68
|
-
/** Attribute text of a `number` prop, checked before parsing
|
|
69
|
+
/** Attribute text of a `number` prop, checked before parsing. */
|
|
69
70
|
numberTextMaxLength: 32,
|
|
70
71
|
/** JSON text of an `array` or `object` prop read from an attribute, checked before parsing. */
|
|
71
72
|
propJsonMaxLength: 32_768,
|
|
@@ -75,8 +76,8 @@ export const MANIFEST_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
75
76
|
aspectRatioMaxTerm: 100,
|
|
76
77
|
});
|
|
77
78
|
/**
|
|
78
|
-
* Limits only the browser runtime reads
|
|
79
|
-
* bundle carried whole until
|
|
79
|
+
* Limits only the browser runtime reads, kept out of `MANIFEST_LIMITS`, which the SDK
|
|
80
|
+
* bundle carried whole until the limits were split (the runtime still does), so a component does not pay for them.
|
|
80
81
|
*
|
|
81
82
|
* Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
|
|
82
83
|
*/
|
|
@@ -88,11 +89,11 @@ export const RUNTIME_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
88
89
|
propsScriptMaxLength: 65_536,
|
|
89
90
|
});
|
|
90
91
|
/**
|
|
91
|
-
* Limits of workspace settings the contract validates
|
|
92
|
+
* Limits of workspace settings the contract validates.
|
|
92
93
|
*
|
|
93
94
|
* Inputs: none. Output: frozen numbers. The tag prefix stays short so that a prefixed tag still
|
|
94
95
|
* fits `MANIFEST_LIMITS.nameMaxLength` with room for the component's own name. Errors: none. Side
|
|
95
|
-
* effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS
|
|
96
|
+
* effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS`.
|
|
96
97
|
*/
|
|
97
98
|
export const WORKSPACE_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
98
99
|
/** Workspace tag prefix, without the trailing hyphen (`acme`). */
|
|
@@ -102,13 +103,16 @@ export const WORKSPACE_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
102
103
|
* Limits of the data API (submit, read, track) between a component and the edge.
|
|
103
104
|
*
|
|
104
105
|
* Inputs: none. Output: frozen numbers used by the data API schemas and, later, by the edge
|
|
105
|
-
*
|
|
106
|
+
* before it parses a body. Errors: none. Side effects: none.
|
|
106
107
|
*/
|
|
107
108
|
export const DATA_API_LIMITS = Object.freeze({
|
|
108
|
-
/** Maximum body of `POST /d/<siteKey>/<collection>` in bytes
|
|
109
|
+
/** Maximum body of `POST /d/<siteKey>/<collection>` in bytes. */
|
|
109
110
|
submitBodyMaxBytes: 32_768,
|
|
110
|
-
/**
|
|
111
|
-
|
|
111
|
+
/**
|
|
112
|
+
* Maximum body of a `POST /e/` beacon in bytes: the room for `EVENT_PARAM_LIMITS.maxPerEvent`
|
|
113
|
+
* parameters of `valueMaxLength` characters (UTF-8 and JSON escaping included).
|
|
114
|
+
*/
|
|
115
|
+
trackBodyMaxBytes: 16_384,
|
|
112
116
|
/** Maximum keys in the `data` object of a submission before field validation. */
|
|
113
117
|
submitDataMaxKeys: 50,
|
|
114
118
|
idempotencyKeyMinLength: 16,
|
|
@@ -123,25 +127,9 @@ export const DATA_API_LIMITS = Object.freeze({
|
|
|
123
127
|
maxErrorFields: 50,
|
|
124
128
|
});
|
|
125
129
|
/**
|
|
126
|
-
* Limits of the
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* them from a component that imports another limit (esbuild keeps an unmarked `Object.freeze` call).
|
|
130
|
-
*
|
|
131
|
-
* Inputs: none. Output: frozen numbers used by `consentProofSchema`. Errors: none. Side effects:
|
|
132
|
-
* none.
|
|
133
|
-
*/
|
|
134
|
-
export const CONSENT_PROOF_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
135
|
-
/** `consent.text_hash`: SHA-256 in lowercase hex. */
|
|
136
|
-
consentTextHashLength: 64,
|
|
137
|
-
/** `consent.locale`: a BCP 47 language tag such as `pt-BR`. */
|
|
138
|
-
consentLocaleMaxLength: 35,
|
|
139
|
-
});
|
|
140
|
-
/**
|
|
141
|
-
* Limits of the `locales` declaration of a manifest (TAG-211, contract 1.2): the languages a
|
|
142
|
-
* component ships messages for. Apart from `MANIFEST_LIMITS` for the same reason as
|
|
143
|
-
* `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until TAG-238 (the runtime still
|
|
144
|
-
* does), and only the manifest schema reads these.
|
|
130
|
+
* Limits of the `locales` declaration of a manifest (contract 1.2): the languages a
|
|
131
|
+
* component ships messages for. Apart from `MANIFEST_LIMITS` on purpose: the SDK bundles that whole
|
|
132
|
+
* object (the runtime too), and only the manifest schema reads these.
|
|
145
133
|
*
|
|
146
134
|
* Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
|
|
147
135
|
* none.
|
|
@@ -158,8 +146,8 @@ export const LOCALE_LIMITS = /* @__PURE__ */ Object.freeze({
|
|
|
158
146
|
maxMessagesPerLocale: 2_000,
|
|
159
147
|
});
|
|
160
148
|
/**
|
|
161
|
-
* Limits of the `assets` declaration of a manifest (
|
|
162
|
-
* imports (images and fonts), which the builder
|
|
149
|
+
* Limits of the `assets` declaration of a manifest (contract 1.3): the files a component
|
|
150
|
+
* imports (images and fonts), which the builder lists after bundling. These are the
|
|
163
151
|
* contract's hard bounds; each plan sets tighter ones, which the builder applies. Apart from
|
|
164
152
|
* `MANIFEST_LIMITS` for the same reason as `LOCALE_LIMITS`.
|
|
165
153
|
*
|
package/dist/limits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAEH,kGAAkG;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACxC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC,uDAAuD;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC;AAEpC;;;;;;GAMG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AAiF;IACjF,iBAAiB,EAAE,EAAE;IACrB,uBAAuB,EAAE,EAAE;IAC3B,uBAAuB,EAAE,EAAE;IAC3B,uBAAuB,EAAE,KAAK;IAC9B,iBAAiB,EAAE,GAAG;IACtB,2BAA2B;IAC3B,WAAW,EAAE,GAAG;IAChB,eAAe,EAAE,EAAE;IACnB,eAAe,EAAE,GAAG;IACpB,qBAAqB,EAAE,GAAG;IAC1B,cAAc,EAAE,EAAE;CACnB,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC;IACzD,sCAAsC;IACtC,UAAU,EAAE,EAAE;IACd,0FAA0F;IAC1F,kBAAkB,EAAE,EAAE;IACtB;;;OAGG;IACH,oBAAoB,EAAE,KAAK;CAC5B,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC;IACxD,sFAAsF;IACtF,SAAS,EAAE,EAAE;IACb,kCAAkC;IAClC,aAAa,EAAE,SAAS;CACzB,CAAC,CAAC"}
|
package/dist/locale-tag.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Language tags of the contract
|
|
2
|
+
* Language tags of the contract, without Zod: the pattern every tag follows and the
|
|
3
3
|
* attribute the SDK reads the visitor's language from. The runtime and the SDK may import these
|
|
4
|
-
* through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2)
|
|
5
|
-
*
|
|
4
|
+
* through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2) validates with
|
|
5
|
+
* the same pattern.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* A BCP 47 language tag as the contract writes it (`pt-BR`, `en`, `es-419`, `zh-Hant-TW`): a
|
package/dist/locale-tag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Language tags of the contract
|
|
2
|
+
* Language tags of the contract, without Zod: the pattern every tag follows and the
|
|
3
3
|
* attribute the SDK reads the visitor's language from. The runtime and the SDK may import these
|
|
4
|
-
* through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2)
|
|
5
|
-
*
|
|
4
|
+
* through `@taggor/contract/zod-free`; the manifest's `locales` (contract 1.2) validates with
|
|
5
|
+
* the same pattern.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* A BCP 47 language tag as the contract writes it (`pt-BR`, `en`, `es-419`, `zh-Hant-TW`): a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The factory of build diagnostics (
|
|
2
|
+
* The factory of build diagnostics (shared by the builder and the API, its second
|
|
3
3
|
* user being the API, which refuses a source package with the same diagnostics before storing
|
|
4
4
|
* it).
|
|
5
5
|
*
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
* `BUILD_DIAGNOSTIC_LIMITS` and every path is made relative to the package. Text is untrusted (it
|
|
9
9
|
* can quote the customer's source): control, bidi and line separator characters become visible
|
|
10
10
|
* escapes and lone surrogates U+FFFD, and cuts never split a surrogate pair, so a diagnostic
|
|
11
|
-
* always passes `buildDiagnosticSchema` and fits Postgres `jsonb
|
|
12
|
-
* and M3). A code that is not in the catalog does not type-check.
|
|
11
|
+
* always passes `buildDiagnosticSchema` and fits Postgres `jsonb`. A code that is not in the catalog does not type-check.
|
|
13
12
|
*
|
|
14
13
|
* Zod-free and pure.
|
|
15
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-diagnostic.d.ts","sourceRoot":"","sources":["../src/make-diagnostic.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"make-diagnostic.d.ts","sourceRoot":"","sources":["../src/make-diagnostic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make-diagnostic.js","sourceRoot":"","sources":["../src/make-diagnostic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"make-diagnostic.js","sourceRoot":"","sources":["../src/make-diagnostic.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GAGnB,MAAM,yBAAyB,CAAC;AAoBjC,MAAM,CAAC,GAAG,uBAAuB,CAAC;AAElC;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,KAAa;IACpD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACxC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACnC,OAAO,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC;AAC5E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,GAAW;IAChD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACzE,CAAC;AAED,yFAAyF;AACzF,SAAS,GAAG,CAAC,IAAY,EAAE,GAAW;IACpC,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC;AACnE,CAAC;AAED,8FAA8F;AAC9F,SAAS,KAAK,CAAC,IAAY,EAAE,GAAW;IACtC,OAAO,GAAG,CAAC,kBAAkB,C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IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE;YACtF,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,0BAA0B,CAAC,EAAE,CAAC;QACtE,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,OAAO,CAAC,YAAY,KAAK,EAAE;YACnE,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,+BAA+B,CAAC,EAAE,CAAC;KACtF,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,IAAoB,EACpB,OAAe,EACf,UAA6B,EAAE;IAE/B,OAAO,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Diagnostics of the breaking changes `compareManifests` finds
|
|
2
|
+
* Diagnostics of the breaking changes `compareManifests` finds: one warning per
|
|
3
3
|
* breaking change, for the agent that creates a version, saying which member changed, what a
|
|
4
4
|
* host page loses and how to migrate. Codes by member: `BREAKING_PROP_CHANGE`,
|
|
5
5
|
* `BREAKING_EVENT_CHANGE`, `BREAKING_SLOT_CHANGE` and `BREAKING_STYLE_CHANGE` (parts and CSS
|
package/dist/manifest-compat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Compatibility of a component's manifest between two versions
|
|
2
|
+
* Compatibility of a component's manifest between two versions: `compareManifests(prev,
|
|
3
3
|
* next)` lists every change of the component's public interface and classifies each one as
|
|
4
4
|
* `breaking` (something a host page did with the old version stops working) or `additive`
|
|
5
5
|
* (everything that worked keeps working). Zod-free and pure: only `import type` from the Zod
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The component manifest, contract v1
|
|
3
|
-
* SDK extracts
|
|
2
|
+
* The component manifest, contract v1: the declarative description of one component that the
|
|
3
|
+
* SDK extracts, the builder stores with each version, the API serves and the runtime
|
|
4
4
|
* reads to register the custom element, coerce attributes, dispatch events and expose slots.
|
|
5
5
|
*
|
|
6
6
|
* The manifest is data only: nothing in it is code, an expression or a template, every
|
|
7
7
|
* collection is bounded, and unknown keys are rejected at every level. Field names are camelCase
|
|
8
8
|
* (it is authored in TypeScript and mirrors the DOM); anything that travels in the data API is
|
|
9
|
-
* snake_case (see `data-api.ts`).
|
|
10
|
-
* `contract-version.ts` and `proto-guard.ts` (both Zod-free) and
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* TAG-210 (contract 1.5) added `libraries`, the workspace-scoped packages and semver ranges a
|
|
18
|
-
* component expects; resolution and ownership stay with the API/builder, which has workspace context.
|
|
9
|
+
* snake_case (see `data-api.ts`). The contract version and the `__proto__` guard live in
|
|
10
|
+
* `contract-version.ts` and `proto-guard.ts` (both Zod-free), and the version is checked first.
|
|
11
|
+
* The manifest also declares `locales` (the languages the
|
|
12
|
+
* component ships messages for and the one it falls back to), `assets` (the images and fonts the
|
|
13
|
+
* builder found imported, by content hash), `formAssociated` (the element takes part in the host
|
|
14
|
+
* page's `<form>` through `ElementInternals`), `delegatesFocus` (the shadow root delegates focus)
|
|
15
|
+
* and `libraries` (the workspace-scoped packages and semver ranges a
|
|
16
|
+
* component expects); resolution and ownership stay with the API/builder, which has workspace context.
|
|
19
17
|
*/
|
|
20
18
|
import * as z from "zod";
|
|
21
19
|
import { componentLibrariesSchema } from "./libraries.js";
|
|
@@ -499,7 +497,7 @@ declare const cssVarSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
499
497
|
default: z.ZodString;
|
|
500
498
|
description: z.ZodOptional<z.ZodString>;
|
|
501
499
|
}, z.core.$strict>], "type">;
|
|
502
|
-
/** One declared collection of `data.collections` (
|
|
500
|
+
/** One declared collection of `data.collections` (the site manifest reuses it). */
|
|
503
501
|
export declare const collectionSchema: z.ZodObject<{
|
|
504
502
|
description: z.ZodOptional<z.ZodString>;
|
|
505
503
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -568,6 +566,18 @@ export declare const collectionSchema: z.ZodObject<{
|
|
|
568
566
|
declare const trackEventSchema: z.ZodObject<{
|
|
569
567
|
description: z.ZodOptional<z.ZodString>;
|
|
570
568
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
569
|
+
type: z.ZodLiteral<"string">;
|
|
570
|
+
description: z.ZodOptional<z.ZodString>;
|
|
571
|
+
minLength: z.ZodOptional<z.ZodInt>;
|
|
572
|
+
maxLength: z.ZodOptional<z.ZodInt>;
|
|
573
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
574
|
+
url: "url";
|
|
575
|
+
date: "date";
|
|
576
|
+
email: "email";
|
|
577
|
+
tel: "tel";
|
|
578
|
+
"date-time": "date-time";
|
|
579
|
+
}>>;
|
|
580
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
571
581
|
type: z.ZodLiteral<"number">;
|
|
572
582
|
description: z.ZodOptional<z.ZodString>;
|
|
573
583
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -583,7 +593,7 @@ declare const trackEventSchema: z.ZodObject<{
|
|
|
583
593
|
}, z.core.$strict>], "type">>>;
|
|
584
594
|
}, z.core.$strict>;
|
|
585
595
|
/**
|
|
586
|
-
* The languages a component ships messages for (
|
|
596
|
+
* The languages a component ships messages for (contract 1.2). The SDK's `useLocale` picks
|
|
587
597
|
* one of `supported` from the element's `locale` attribute, the nearest `lang`, the browser's
|
|
588
598
|
* language and finally `default`; the builder extracts both from the author's message catalogs.
|
|
589
599
|
*/
|
|
@@ -592,8 +602,8 @@ declare const localesSchema: z.ZodObject<{
|
|
|
592
602
|
default: z.ZodString;
|
|
593
603
|
}, z.core.$strict>;
|
|
594
604
|
/**
|
|
595
|
-
* One asset of `assets` (
|
|
596
|
-
*
|
|
605
|
+
* One asset of `assets` (contract 1.3), keyed by its hash: its type and size. The builder
|
|
606
|
+
* writes it; the author never does. Served at `/a/<hash>.<extension of type>`.
|
|
597
607
|
*/
|
|
598
608
|
declare const assetSchema: z.ZodObject<{
|
|
599
609
|
type: z.ZodEnum<{
|
|
@@ -614,7 +624,7 @@ declare const assetSchema: z.ZodObject<{
|
|
|
614
624
|
* not fit its prop). Side effects: none.
|
|
615
625
|
*/
|
|
616
626
|
/**
|
|
617
|
-
* The share of `
|
|
627
|
+
* The share of `track` events the browser sends (contract 1.10; the description was reworded in 1.11);
|
|
618
628
|
* `render` and `error` are never sampled. The edge weights each stored event by
|
|
619
629
|
* `1 / eventSampleRate` from the stored manifest, so the metrics stay estimates of the real total.
|
|
620
630
|
*/
|
|
@@ -1651,6 +1661,18 @@ export declare const componentManifestSchema: z.ZodObject<{
|
|
|
1651
1661
|
track: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1652
1662
|
description: z.ZodOptional<z.ZodString>;
|
|
1653
1663
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1664
|
+
type: z.ZodLiteral<"string">;
|
|
1665
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1666
|
+
minLength: z.ZodOptional<z.ZodInt>;
|
|
1667
|
+
maxLength: z.ZodOptional<z.ZodInt>;
|
|
1668
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1669
|
+
url: "url";
|
|
1670
|
+
date: "date";
|
|
1671
|
+
email: "email";
|
|
1672
|
+
tel: "tel";
|
|
1673
|
+
"date-time": "date-time";
|
|
1674
|
+
}>>;
|
|
1675
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1654
1676
|
type: z.ZodLiteral<"number">;
|
|
1655
1677
|
description: z.ZodOptional<z.ZodString>;
|
|
1656
1678
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1665,8 +1687,6 @@ export declare const componentManifestSchema: z.ZodObject<{
|
|
|
1665
1687
|
values: z.ZodArray<z.ZodString>;
|
|
1666
1688
|
}, z.core.$strict>], "type">>>;
|
|
1667
1689
|
}, z.core.$strict>>>;
|
|
1668
|
-
personal: z.ZodOptional<z.ZodBoolean>;
|
|
1669
|
-
privacyPolicyUrl: z.ZodOptional<z.ZodString>;
|
|
1670
1690
|
}, z.core.$strict>>;
|
|
1671
1691
|
size: z.ZodOptional<z.ZodObject<{
|
|
1672
1692
|
display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1719,11 +1739,11 @@ export type CollectionDeclaration = z.infer<typeof collectionSchema>;
|
|
|
1719
1739
|
export type TrackEventDeclaration = z.infer<typeof trackEventSchema>;
|
|
1720
1740
|
/** A public CSS variable declaration. */
|
|
1721
1741
|
export type CssVarDeclaration = z.infer<typeof cssVarSchema>;
|
|
1722
|
-
/** The `locales` declaration
|
|
1742
|
+
/** The `locales` declaration. */
|
|
1723
1743
|
export type LocalesDeclaration = z.infer<typeof localesSchema>;
|
|
1724
|
-
/** The optional workspace library ranges of one component
|
|
1744
|
+
/** The optional workspace library ranges of one component. */
|
|
1725
1745
|
export type LibrariesDeclaration = z.infer<typeof componentLibrariesSchema>;
|
|
1726
|
-
/** One entry of `assets`, the value under its hash
|
|
1746
|
+
/** One entry of `assets`, the value under its hash. */
|
|
1727
1747
|
export type AssetDeclaration = z.infer<typeof assetSchema>;
|
|
1728
1748
|
/** One problem found in a manifest: a dotted path (`props.rate.default`) and a message. */
|
|
1729
1749
|
export interface ManifestIssue {
|
|
@@ -1740,8 +1760,8 @@ export type ManifestParseResult = {
|
|
|
1740
1760
|
};
|
|
1741
1761
|
/**
|
|
1742
1762
|
* The message of one Zod issue for a person or an agent: a bad record key shows the key's own
|
|
1743
|
-
* problems, and unknown keys (which come from the input) are quoted bounded
|
|
1744
|
-
* with the source package's metadata files
|
|
1763
|
+
* problems, and unknown keys (which come from the input) are quoted bounded. Shared
|
|
1764
|
+
* with the source package's metadata files.
|
|
1745
1765
|
*
|
|
1746
1766
|
* Inputs: a Zod issue. Output: its message. Errors: none. Side effects: none.
|
|
1747
1767
|
*/
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAgCzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAW1D,4FAA4F;AAC5F,eAAO,MAAM,eAAe,wEAKjB,CAAC;AAEZ,uFAAuF;AACvF,eAAO,MAAM,aAAa,qEAMf,CAAC;AAEZ,uFAAuF;AACvF,eAAO,MAAM,aAAa,oCAAoD,CAAC;AAE/E,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,gCAAgD,CAAC;AAErF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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