@getvitops/generator 8.2.0-alpha.0 → 8.3.0-alpha.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/CHANGELOG.md +550 -25
- package/assets/css/index.css +7 -0
- package/assets/css/patterns/banner.css +20 -0
- package/assets/css/patterns/callout.css +39 -0
- package/assets/css/patterns/copy.css +5 -0
- package/assets/css/patterns/embed.css +39 -0
- package/assets/css/patterns/forms.css +19 -0
- package/assets/css/patterns/logos.css +45 -0
- package/assets/css/patterns/marquee.css +16 -0
- package/assets/css/patterns/section.css +53 -0
- package/assets/css/patterns/sitenav.css +262 -0
- package/assets/css/patterns/splitter.css +11 -0
- package/assets/css/patterns/stats.css +61 -0
- package/assets/css/patterns/steps.css +98 -0
- package/assets/css/patterns/table.css +10 -0
- package/assets/css/patterns/tone.css +38 -0
- package/assets/js/consent.js +1 -1
- package/assets/js/elements.js +5 -5
- package/assets/js/polyfills/adoptedStyleSheets.js +1 -1
- package/assets/js/polyfills/css-anchor-positioning-fn.js +2 -2
- package/assets/js/polyfills/popover.js +2 -2
- package/config.schema.json +257 -120
- package/dist/config-BfcWKH-5.mjs +1743 -0
- package/dist/config-BfcWKH-5.mjs.map +1 -0
- package/dist/{config-DvbYx3Gi.mjs → config-Bhg3Xv3D.mjs} +10 -207
- package/dist/config-Bhg3Xv3D.mjs.map +1 -0
- package/dist/config-D5xuz8--.mjs +1807 -0
- package/dist/config-D5xuz8--.mjs.map +1 -0
- package/dist/config.d.mts +157 -211
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{icons-sprite-Bf_KmKeX.d.mts → icons-sprite-CQ5Zj4go.d.mts} +4 -6
- package/dist/icons-sprite-CQ5Zj4go.d.mts.map +1 -0
- package/dist/icons-sprite.d.mts +1 -1
- package/dist/icons-sprite.mjs +1 -2
- package/dist/index.d.mts +49 -35
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +607 -75
- package/dist/index.mjs.map +1 -1
- package/dist/{schema-Dmq1J7S3.d.mts → schema-BV2n2phj.d.mts} +2 -3
- package/dist/{schema-Dmq1J7S3.d.mts.map → schema-BV2n2phj.d.mts.map} +1 -1
- package/dist/schema-C-P9dF9F.d.mts +337 -0
- package/dist/schema-C-P9dF9F.d.mts.map +1 -0
- package/dist/{tokens-8SXMDAd1.d.mts → tokens-BzBbTeTi.d.mts} +2 -6
- package/dist/tokens-BzBbTeTi.d.mts.map +1 -0
- package/dist/{tokens-zi594IZ3.mjs → tokens-C1RJwFeG.mjs} +3 -5
- package/dist/{tokens-zi594IZ3.mjs.map → tokens-C1RJwFeG.mjs.map} +1 -1
- package/dist/tokens-CaIGQQLk.mjs +740 -0
- package/dist/tokens-CaIGQQLk.mjs.map +1 -0
- package/dist/tokens-DH5cpvKd.d.mts +242 -0
- package/dist/tokens-DH5cpvKd.d.mts.map +1 -0
- package/dist/tokens.d.mts +1 -1
- package/dist/tokens.mjs +1 -1
- package/package.json +6 -5
- package/schema.json +95 -5
- package/dist/config-DvbYx3Gi.mjs.map +0 -1
- package/dist/icons-sprite-Bf_KmKeX.d.mts.map +0 -1
- package/dist/tokens-8SXMDAd1.d.mts.map +0 -1
package/dist/config.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";;;cA4KM,qBAAmB,EAAA;;;;;;GAYxB,EAAA,KAAA;cAEK,qBAAmB,EAAA;;;;;;;;;;;GAKvB,EAAA,KAAA;YAKU,gBAAgB,EAAE,aAAa;YAC/B,gBAAgB,EAAE,aAAa;;;;;;;;;;cAuKrC,kBAAgB,EAAA;;;;;;;;;;GAgBpB,EAAA,KAAA;qBA+BW,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBzB,E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AET;;;;;;;;;;;;;;;;wBAiBc,aACd,cACA;EAAQ;EAAgB;IACvB;;wBAsBa,WAAW;;wBAeX,UAAU,QAAQ,yBAAyB,QAAQ;;;;;;;;;;;;wBAqCnD,iBAAiB,cAAc;qBAWlC,QAAS,cAAc;;wBAIpB,MAAM,cAAc,gBAAgB;;;;;;;;;;wBAgBpC,WAAW,eAAe;;;;;;;;;;;wBAsB1B,aAAa,gBAAgB,cAAS"}
|
package/dist/config.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as resolveTheme, E as validateConfig, S as resolvePrivacyContact, T as stripNulls, _ as getAt, a as CONFIG_VERSION, b as resolveConfig, c as JURISDICTIONS, d as SiteFontSchema, f as configJsonSchema, g as formatConfig, h as experimentDimensionWarnings, i as CONFIG_SCHEMA_URL, l as JURISDICTION_COUNTRIES, m as designSystemPath, n as BIGIN_DATA_CENTERS, o as CRM_PROVIDERS, p as deepMerge, r as CONFIG_SCHEMA_LOCAL_PATH, s as ConfigSchema, t as AD_PROVIDERS, u as PLAN_CAPABILITIES, v as isConfig, w as setAt, x as resolveInput, y as mergePatch } from "./config-
|
|
1
|
+
import { C as resolveTheme, E as validateConfig, S as resolvePrivacyContact, T as stripNulls, _ as getAt, a as CONFIG_VERSION, b as resolveConfig, c as JURISDICTIONS, d as SiteFontSchema, f as configJsonSchema, g as formatConfig, h as experimentDimensionWarnings, i as CONFIG_SCHEMA_URL, l as JURISDICTION_COUNTRIES, m as designSystemPath, n as BIGIN_DATA_CENTERS, o as CRM_PROVIDERS, p as deepMerge, r as CONFIG_SCHEMA_LOCAL_PATH, s as ConfigSchema, t as AD_PROVIDERS, u as PLAN_CAPABILITIES, v as isConfig, w as setAt, x as resolveInput, y as mergePatch } from "./config-D5xuz8--.mjs";
|
|
2
2
|
|
|
3
3
|
export { AD_PROVIDERS, BIGIN_DATA_CENTERS, CONFIG_SCHEMA_LOCAL_PATH, CONFIG_SCHEMA_URL, CONFIG_VERSION, CRM_PROVIDERS, ConfigSchema, JURISDICTIONS, JURISDICTION_COUNTRIES, PLAN_CAPABILITIES, SiteFontSchema, configJsonSchema, deepMerge, designSystemPath, experimentDimensionWarnings, formatConfig, getAt, isConfig, mergePatch, resolveConfig, resolveInput, resolvePrivacyContact, resolveTheme, setAt, stripNulls, validateConfig };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@iconify+types@2.0.0/node_modules/@iconify/types/types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Icon dimensions.
|
|
4
3
|
*
|
|
@@ -44,7 +43,9 @@ interface IconifyTransformations {
|
|
|
44
43
|
/**
|
|
45
44
|
* Combination of dimensions and transformations.
|
|
46
45
|
*/
|
|
47
|
-
interface IconifyOptional extends IconifyDimenisons, IconifyTransformations {
|
|
46
|
+
interface IconifyOptional extends IconifyDimenisons, IconifyTransformations {
|
|
47
|
+
//
|
|
48
|
+
}
|
|
48
49
|
/**
|
|
49
50
|
* Alias.
|
|
50
51
|
*/
|
|
@@ -208,8 +209,6 @@ interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
|
|
|
208
209
|
// Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
|
|
209
210
|
not_found?: string[];
|
|
210
211
|
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/icons-sprite.d.ts
|
|
213
212
|
interface IconSpriteOptions {
|
|
214
213
|
/** Exactly `generateIconInclude()`'s shape: collection → icon names. */
|
|
215
214
|
include: Record<string, string[]>;
|
|
@@ -262,6 +261,5 @@ declare function loadIconSvg(qualified: string, opts?: {
|
|
|
262
261
|
viewBox: string;
|
|
263
262
|
body: string;
|
|
264
263
|
} | null>;
|
|
265
|
-
//#endregion
|
|
266
264
|
export { spriteId as a, loadIconSvg as i, IconSpriteResult as n, buildIconSprite as r, IconSpriteOptions as t };
|
|
267
|
-
//# sourceMappingURL=icons-sprite-
|
|
265
|
+
//# sourceMappingURL=icons-sprite-CQ5Zj4go.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-sprite-CQ5Zj4go.d.mts","names":[],"sources":["../../../node_modules/.pnpm/@iconify+types@2.0.0/node_modules/@iconify/types/types.d.ts","../src/icons-sprite.ts"],"ignoreList":[0],"mappings":";;;;;;;;UAQiB;;;EAGhB;;;EAIA;;;EAIA;;;EAIA;;;;;;;;;UAUgB;;;;;EAKhB;;;;EAKA;;EAGA;;;;;UAMgB,wBACR,mBACP;;;;;;UAOe,qBAAqB;;EAErC;;;;;;;;UAUgB,oBAAoB;;EAEpC;;;;;;;UASS;;;;EAIT;;UAGgB,4BAA4B,aAAa;UACzC,6BAA6B,cAAc;;;;UAK3C;;GAEf,gBAAgB;;;;;UAMD;;GAEf,gBAAgB;;;;;UAMD;;EAEhB;;EAGA;;EAGA;;EAGA;;IAEC;;IAGA;;;EAID;;IAEC;;IAGA;;IAGA;;;EAID;;EAGA;;EAGA;;EAGA;;EAGA;;;EAIA;;EAGA;;;;;;;UAQgB;;GAEf;;IAEA;;IAGA;IACA;;;;;;UAOe;;;GAGf;;;;;UAMe;;;;GAIf;;;;;UAMe;;EAEhB,OAAO;;EAGP,QAAQ;;EAGR,aAAa;;EAGb,SAAS;;EAGT,WAAW;EACX,WAAW;;;;;UAMK,6BAA6B;;EAE7C;;EAGA;;EAGA,OAAO;;EAGP,UAAU;;;;;;;;;;UAYM,oBAAoB,sBAAsB;;;;EAI1D;;EAGA;;UCpOgB;;EAEf,SAAS;;;;;EAKT,UAAU;;;;;;;;;EASV;;EAEA,WAAW,mBAAmB,QAAQ;;UAGvB;EACf;EACA;;EAEA;;;;;;;;;iBAUc,SAAS;iBAsBH,gBAAgB,GAAG,oBAAoB,QAAQ;;;;;;;;;;;iBAsE/C,YACpB,mBACA;EAAS;EAAsB,WAAW,mBAAmB,QAAQ;IACpE;EAAU;EAAiB"}
|
package/dist/icons-sprite.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as spriteId, i as loadIconSvg, n as IconSpriteResult, r as buildIconSprite, t as IconSpriteOptions } from "./icons-sprite-
|
|
1
|
+
import { a as spriteId, i as loadIconSvg, n as IconSpriteResult, r as buildIconSprite, t as IconSpriteOptions } from "./icons-sprite-CQ5Zj4go.mjs";
|
|
2
2
|
export { IconSpriteOptions, IconSpriteResult, buildIconSprite, loadIconSvg, spriteId };
|
package/dist/icons-sprite.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join } from "node:path";
|
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
import { getIconData, iconToSVG, replaceIDs } from "@iconify/utils";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/icons-sprite.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build an SVG sprite from an icon `include` map.
|
|
9
9
|
*
|
|
@@ -124,6 +124,5 @@ async function loadIconSvg(qualified, opts) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
//#endregion
|
|
128
127
|
export { buildIconSprite, loadIconSvg, spriteId };
|
|
129
128
|
//# sourceMappingURL=icons-sprite.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { a as ValidationResult, i as SCHEMA_URL, n as DesignSystemSchema, o as jsonSchema, r as SCHEMA_LOCAL_PATH, s as validate, t as DesignSystem } from "./schema-
|
|
1
|
+
import { a as ValidationResult, i as SCHEMA_URL, n as DesignSystemSchema, o as jsonSchema, r as SCHEMA_LOCAL_PATH, s as validate, t as DesignSystem } from "./schema-C-P9dF9F.mjs";
|
|
2
2
|
import { AD_PROVIDERS, AdProvider, BIGIN_DATA_CENTERS, CONFIG_SCHEMA_LOCAL_PATH, CONFIG_SCHEMA_URL, CONFIG_VERSION, CRM_PROVIDERS, Config, ConfigSchema, ConfigValidationResult, ContactObject, CrmProviderConfig, JURISDICTIONS, JURISDICTION_COUNTRIES, Jurisdiction, OrganizationConfig, PLAN_CAPABILITIES, PlanCapability, PostalAddress, ResolvedInput, SiteAdProperty, SiteExperiment, SiteFont, SiteFontSchema, SiteIndexNow, SiteIndexing, SitePlan, SiteReviewLocation, SiteReviews, SiteSearchConsole, SiteSearchConsoleSetup, SiteSection, configJsonSchema, deepMerge, designSystemPath, experimentDimensionWarnings, formatConfig, getAt, isConfig, mergePatch, resolveConfig, resolveInput, resolvePrivacyContact, resolveTheme, setAt, stripNulls, validateConfig } from "./config.mjs";
|
|
3
|
-
import { a as spriteId, i as loadIconSvg, n as IconSpriteResult, r as buildIconSprite, t as IconSpriteOptions } from "./icons-sprite-
|
|
4
|
-
import { C as roleHue, S as TYPO_KEYMAP, _ as DARK_SEL, a as RoleKind, b as RoleSpec, c as expandPalette, f as patchToOverrideCss, g as BASE_HOOK, h as validateColorContract, i as NUMERIC_STEPS, l as functionalRole, m as tokenVar, n as ExpandedHue, o as buildReverseIndex, p as tokenClass, r as FunctionalRole, s as checkContrast, t as CONTRAST, v as REQUIRED_ROLES, w as roleKind, x as TW_CLASH, y as ROLE_TOKEN_KEYS } from "./tokens-
|
|
3
|
+
import { a as spriteId, i as loadIconSvg, n as IconSpriteResult, r as buildIconSprite, t as IconSpriteOptions } from "./icons-sprite-CQ5Zj4go.mjs";
|
|
4
|
+
import { C as roleHue, S as TYPO_KEYMAP, T as roleSolidOptions, _ as DARK_SEL, a as RoleKind, b as RoleSpec, c as expandPalette, f as patchToOverrideCss, g as BASE_HOOK, h as validateColorContract, i as NUMERIC_STEPS, l as functionalRole, m as tokenVar, n as ExpandedHue, o as buildReverseIndex, p as tokenClass, r as FunctionalRole, s as checkContrast, t as CONTRAST, v as REQUIRED_ROLES, w as roleKind, x as TW_CLASH, y as ROLE_TOKEN_KEYS } from "./tokens-DH5cpvKd.mjs";
|
|
5
5
|
import { ContentNode } from "@getvitops/utils";
|
|
6
|
-
//#region src/generate.d.ts
|
|
7
6
|
type Format = 'bricks' | 'css' | 'tailwind' | 'design';
|
|
8
7
|
/**
|
|
9
8
|
* Formats that emit a stylesheet. `design` is the odd one out — it emits a
|
|
@@ -93,8 +92,6 @@ interface ColorUtility {
|
|
|
93
92
|
*/
|
|
94
93
|
export declare function roleColorUtilities(roles: readonly FunctionalRole[], utilities: readonly string[]): ColorUtility[];
|
|
95
94
|
export declare function generate(options: GenerateOptions): Promise<GenerateResult>;
|
|
96
|
-
//#endregion
|
|
97
|
-
//#region src/docs.d.ts
|
|
98
95
|
interface JsonSchemaNode {
|
|
99
96
|
type?: string;
|
|
100
97
|
description?: string;
|
|
@@ -181,8 +178,6 @@ export declare function schemaTreeNodes(schema: JsonSchemaNode, opts?: SchemaTre
|
|
|
181
178
|
* the caller writes it wherever the bundle should live (e.g. `<outDir>/docs`).
|
|
182
179
|
*/
|
|
183
180
|
export declare function generateDocs(ds: DesignSystem, assetsDir: string): Record<string, string>;
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region src/tiers.d.ts
|
|
186
181
|
/**
|
|
187
182
|
* Which tiers provide each pattern, and which call to make.
|
|
188
183
|
*
|
|
@@ -268,6 +263,26 @@ interface TierEntry {
|
|
|
268
263
|
astro?: TierAstro[];
|
|
269
264
|
/** Bricks element `$name`, e.g. `vitops-carousel`. */
|
|
270
265
|
bricks?: string;
|
|
266
|
+
/**
|
|
267
|
+
* `@getvitops/emdash` Portable Text block `_type`s that render this pattern, e.g.
|
|
268
|
+
* `vitops.carousel`. An array because one pattern can have several blocks
|
|
269
|
+
* (`details` has a single disclosure and an accordion group) and one block can span
|
|
270
|
+
* patterns (`vitops.actionLink` is `link`, `btn` and `cta`).
|
|
271
|
+
*
|
|
272
|
+
* Tier 3, a sibling of `astro` and `bricks`: a block is a platform wrapper that an
|
|
273
|
+
* editor drops into a page, and each one is an adapter over this entry's Astro
|
|
274
|
+
* component. `@getvitops/emdash`'s `blocks.test.ts` is the drift guard — it lives
|
|
275
|
+
* there because the generator cannot import the plugin (the plugin imports the
|
|
276
|
+
* generator), so the check runs from the side that can see both.
|
|
277
|
+
*/
|
|
278
|
+
emdash?: string[];
|
|
279
|
+
/**
|
|
280
|
+
* Why this pattern's web component deliberately has no `emdash` block. A shipped `wc-*`
|
|
281
|
+
* (in `elements.js` or its own bundle) must set `emdash` OR this — `tiers.test.ts`
|
|
282
|
+
* enforces it — so "no block" is always a decision with a reason on the page, never an
|
|
283
|
+
* omission nobody noticed. Meaningless alongside `emdash`; the guard rejects both.
|
|
284
|
+
*/
|
|
285
|
+
emdashExempt?: string;
|
|
271
286
|
/** The one line an agent needs: what to actually write. */
|
|
272
287
|
use: string;
|
|
273
288
|
}
|
|
@@ -283,13 +298,13 @@ export declare function tierTags(): {
|
|
|
283
298
|
/**
|
|
284
299
|
* The projection axis: four keys, THREE tiers.
|
|
285
300
|
*
|
|
286
|
-
* `astro` and `
|
|
287
|
-
* platform, not levels 3 and
|
|
301
|
+
* `astro`, `bricks` and `emdash` are all the platform-wrapper tier — siblings chosen by
|
|
302
|
+
* platform, not levels 3, 4 and 5. They are separate keys because they are separate
|
|
288
303
|
* packages with separate tables, and no project uses both. Anything rendering a
|
|
289
304
|
* tier NUMBER must map them to the same one; deriving it from this union's order
|
|
290
305
|
* is what put Bricks at "tier 4" on the docsite.
|
|
291
306
|
*/
|
|
292
|
-
type Tier = 'css' | 'wc' | 'astro' | 'bricks';
|
|
307
|
+
type Tier = 'css' | 'wc' | 'astro' | 'bricks' | 'emdash';
|
|
293
308
|
/** A pattern paired with its entry — what one tier's projection iterates. */
|
|
294
309
|
interface TierProjection {
|
|
295
310
|
name: string;
|
|
@@ -312,8 +327,6 @@ interface TierProjection {
|
|
|
312
327
|
* no CSS. The other three tiers are optional fields, so presence is the test.
|
|
313
328
|
*/
|
|
314
329
|
export declare function tierPatterns(tier: Tier): TierProjection[];
|
|
315
|
-
//#endregion
|
|
316
|
-
//#region src/token-refs.d.ts
|
|
317
330
|
/**
|
|
318
331
|
* Old-grammar token name → its 1.0 replacement, for the roles this config
|
|
319
332
|
* declares.
|
|
@@ -323,8 +336,6 @@ export declare function tierPatterns(tier: Tier): TierProjection[];
|
|
|
323
336
|
* is why nothing detected these before.
|
|
324
337
|
*/
|
|
325
338
|
export declare function movedTokens(roles: Record<string, RoleSpec>): Record<string, string>;
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/legal/providers.d.ts
|
|
328
339
|
/** One place a provider holds information, and which information if not all of it. */
|
|
329
340
|
interface ProcessorStorage {
|
|
330
341
|
/** Reads inside a sentence: "…including the United States". */
|
|
@@ -499,8 +510,6 @@ export declare function resolveProcessors(cfg: Config): Processor[];
|
|
|
499
510
|
* so rejecting it would make this a breaking change.
|
|
500
511
|
*/
|
|
501
512
|
export declare function processorsMissingLocation(cfg: Config): string[];
|
|
502
|
-
//#endregion
|
|
503
|
-
//#region src/legal/derive.d.ts
|
|
504
513
|
/**
|
|
505
514
|
* The facts every legal template renders from.
|
|
506
515
|
*
|
|
@@ -595,19 +604,28 @@ interface PolicyVars {
|
|
|
595
604
|
countries: string | undefined;
|
|
596
605
|
consentModel: 'opt-in' | 'opt-out' | 'none';
|
|
597
606
|
cookieCategories: string[];
|
|
607
|
+
/** Name of the privacy contact, when `privacyOfficer` is an inline contact with one. */
|
|
608
|
+
privacyOfficerName: string | undefined;
|
|
609
|
+
/** Title of the person in charge of privacy, as declared (`privacyOfficerTitle`). */
|
|
610
|
+
privacyOfficerTitle: string | undefined;
|
|
611
|
+
/** `legal.privacyPolicy.impactAssessments === true` — an attestation, never inferred. */
|
|
612
|
+
transferAssessment: boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Technologies on the site that can identify or profile a visitor, as noun
|
|
615
|
+
* phrases: providers that set cookies, session replay, ad attribution, ad pixels.
|
|
616
|
+
* Derived from what the config already enables; empty when none is.
|
|
617
|
+
*/
|
|
618
|
+
trackingTechnologies: string[];
|
|
619
|
+
/** A form asks for a newsletter/subscription — the one signal that the site sends commercial e-mail. */
|
|
620
|
+
newsletterSignup: boolean;
|
|
598
621
|
}
|
|
599
622
|
export declare function derivePolicyVars(cfg: Config): PolicyVars;
|
|
600
|
-
//#endregion
|
|
601
|
-
//#region src/legal/templates/cookies.ca.d.ts
|
|
602
623
|
declare function cookiesCa(v: PolicyVars): string;
|
|
603
|
-
|
|
604
|
-
//#region src/legal/templates/privacy.ca.d.ts
|
|
624
|
+
declare function cookiesQc(v: PolicyVars): string;
|
|
605
625
|
declare function privacyCa(v: PolicyVars): string;
|
|
606
|
-
|
|
607
|
-
//#region src/legal/templates/terms.ca.d.ts
|
|
626
|
+
declare function privacyQc(v: PolicyVars): string;
|
|
608
627
|
declare function termsCa(v: PolicyVars): string;
|
|
609
|
-
|
|
610
|
-
//#region src/legal/templates/index.d.ts
|
|
628
|
+
declare function termsQc(v: PolicyVars): string;
|
|
611
629
|
type LegalDoc = 'privacy' | 'terms' | 'cookies';
|
|
612
630
|
type DocSet = Record<LegalDoc, (v: PolicyVars) => string>;
|
|
613
631
|
export declare const TEMPLATES: {
|
|
@@ -616,13 +634,16 @@ export declare const TEMPLATES: {
|
|
|
616
634
|
terms: typeof termsCa;
|
|
617
635
|
cookies: typeof cookiesCa;
|
|
618
636
|
};
|
|
637
|
+
qc: {
|
|
638
|
+
privacy: typeof privacyQc;
|
|
639
|
+
terms: typeof termsQc;
|
|
640
|
+
cookies: typeof cookiesQc;
|
|
641
|
+
};
|
|
619
642
|
};
|
|
620
643
|
/** Stable output order, independent of which docs a given config enables. */
|
|
621
644
|
export declare const DOC_ORDER: LegalDoc[];
|
|
622
645
|
/** Output filename stem per document — also the Bricks shortcode's allowlist. */
|
|
623
646
|
export declare const DOC_SLUGS: Record<LegalDoc, string>;
|
|
624
|
-
//#endregion
|
|
625
|
-
//#region src/legal/render.d.ts
|
|
626
647
|
interface Span {
|
|
627
648
|
text: string;
|
|
628
649
|
strong?: boolean;
|
|
@@ -664,8 +685,6 @@ export declare function toHtmlFragment(blocks: Block[]): string;
|
|
|
664
685
|
* unchanged config produces an identical seed and a clean diff.
|
|
665
686
|
*/
|
|
666
687
|
export declare function toPortableText(blocks: Block[], prefix: string): unknown[];
|
|
667
|
-
//#endregion
|
|
668
|
-
//#region src/legal/index.d.ts
|
|
669
688
|
type LegalOutput = 'md' | 'html' | 'portable-text';
|
|
670
689
|
interface GenerateLegalOptions {
|
|
671
690
|
/** Which documents to render. Defaults to those enabled in the config. */
|
|
@@ -690,8 +709,6 @@ export declare function renderNodes(cfg: Config, doc: LegalDoc): ContentNode[];
|
|
|
690
709
|
* id so a caller can write the map verbatim.
|
|
691
710
|
*/
|
|
692
711
|
export declare function generateLegal(cfg: Config, opts?: GenerateLegalOptions): Record<string, string>;
|
|
693
|
-
//#endregion
|
|
694
|
-
//#region src/robots.d.ts
|
|
695
712
|
interface RenderRobotsOptions {
|
|
696
713
|
/** Which `site.environments` entry to render for. Default `'production'`. */
|
|
697
714
|
env?: string;
|
|
@@ -709,8 +726,6 @@ interface RenderRobotsOptions {
|
|
|
709
726
|
* the same default `@astrojs/sitemap` produces.
|
|
710
727
|
*/
|
|
711
728
|
export declare function renderRobotsTxt(cfg: Config, options?: RenderRobotsOptions): string;
|
|
712
|
-
//#endregion
|
|
713
|
-
//#region src/index.d.ts
|
|
714
729
|
/**
|
|
715
730
|
* A minimal but complete starter design system, used by `vitops init`. It
|
|
716
731
|
* validates against the schema and generates real output in every format, so a
|
|
@@ -732,6 +747,5 @@ export declare function defaultSiteConfig(opts?: {
|
|
|
732
747
|
url?: string | undefined;
|
|
733
748
|
locale?: string | undefined;
|
|
734
749
|
}): Config;
|
|
735
|
-
|
|
736
|
-
export { AD_PROVIDERS, type AdProvider, BASE_HOOK, BIGIN_DATA_CENTERS, type Block, CONFIG_SCHEMA_LOCAL_PATH, CONFIG_SCHEMA_URL, CONFIG_VERSION, CONTRAST, CRM_PROVIDERS, type ColorUtility, type Config, ConfigSchema, type ConfigValidationResult, type ContactObject, type CrmProviderConfig, DARK_SEL, type DesignSystem, DesignSystemSchema, type DocSet, type ExpandedHue, type Format, type FunctionalRole, type GenerateLegalOptions, type GenerateOptions, type GenerateResult, type IconSpriteOptions, type IconSpriteResult, JURISDICTIONS, JURISDICTION_COUNTRIES, type JsonSchemaNode, type Jurisdiction, type KnownProcessorKey, type LegalDoc, type LegalOutput, NUMERIC_STEPS, type OrganizationConfig, PLAN_CAPABILITIES, type PlanCapability, type PolicyVars, type PostalAddress, type Processor, type ProcessorStorage, REQUIRED_ROLES, ROLE_TOKEN_KEYS, type RenderRobotsOptions, type ResolvedInput, type RoleKind, type RoleSpec, SCHEMA_LOCAL_PATH, SCHEMA_URL, type SchemaTreeNode, type SchemaTreeOptions, type SiteAdProperty, type SiteExperiment, type SiteFont, SiteFontSchema, type SiteIndexNow, type SiteIndexing, type SitePlan, type SiteReviewLocation, type SiteReviews, type SiteSearchConsole, type SiteSearchConsoleSetup, type SiteSection, type Span, type StylesheetFormat, TW_CLASH, TYPO_KEYMAP, type Tier, type TierAstro, type TierCss, type TierEntry, type TierProjection, type TierWc, type ValidationResult, buildIconSprite, buildReverseIndex, checkContrast, configJsonSchema, deepMerge, designSystemPath, expandPalette, experimentDimensionWarnings, formatConfig, functionalRole, getAt, isConfig, jsonSchema, loadIconSvg, mergePatch, patchToOverrideCss, resolveConfig, resolveInput, resolvePrivacyContact, resolveTheme, roleHue, roleKind, setAt, spriteId, stripNulls, tokenClass, tokenVar, validate, validateColorContract, validateConfig };
|
|
750
|
+
export { AD_PROVIDERS, type AdProvider, BASE_HOOK, BIGIN_DATA_CENTERS, type Block, CONFIG_SCHEMA_LOCAL_PATH, CONFIG_SCHEMA_URL, CONFIG_VERSION, CONTRAST, CRM_PROVIDERS, type ColorUtility, type Config, ConfigSchema, type ConfigValidationResult, type ContactObject, type CrmProviderConfig, DARK_SEL, type DesignSystem, DesignSystemSchema, type DocSet, type ExpandedHue, type Format, type FunctionalRole, type GenerateLegalOptions, type GenerateOptions, type GenerateResult, type IconSpriteOptions, type IconSpriteResult, JURISDICTIONS, JURISDICTION_COUNTRIES, type JsonSchemaNode, type Jurisdiction, type KnownProcessorKey, type LegalDoc, type LegalOutput, NUMERIC_STEPS, type OrganizationConfig, PLAN_CAPABILITIES, type PlanCapability, type PolicyVars, type PostalAddress, type Processor, type ProcessorStorage, REQUIRED_ROLES, ROLE_TOKEN_KEYS, type RenderRobotsOptions, type ResolvedInput, type RoleKind, type RoleSpec, SCHEMA_LOCAL_PATH, SCHEMA_URL, type SchemaTreeNode, type SchemaTreeOptions, type SiteAdProperty, type SiteExperiment, type SiteFont, SiteFontSchema, type SiteIndexNow, type SiteIndexing, type SitePlan, type SiteReviewLocation, type SiteReviews, type SiteSearchConsole, type SiteSearchConsoleSetup, type SiteSection, type Span, type StylesheetFormat, TW_CLASH, TYPO_KEYMAP, type Tier, type TierAstro, type TierCss, type TierEntry, type TierProjection, type TierWc, type ValidationResult, buildIconSprite, buildReverseIndex, checkContrast, configJsonSchema, deepMerge, designSystemPath, expandPalette, experimentDimensionWarnings, formatConfig, functionalRole, getAt, isConfig, jsonSchema, loadIconSvg, mergePatch, patchToOverrideCss, resolveConfig, resolveInput, resolvePrivacyContact, resolveTheme, roleHue, roleKind, roleSolidOptions, setAt, spriteId, stripNulls, tokenClass, tokenVar, validate, validateColorContract, validateConfig };
|
|
737
751
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/generate.ts","../src/docs.ts","../src/tiers.ts","../src/token-refs.ts","../src/legal/providers.ts","../src/legal/derive.ts","../src/legal/templates/cookies.ca.ts","../src/legal/templates/privacy.ca.ts","../src/legal/templates/terms.ca.ts","../src/legal/templates/index.ts","../src/legal/render.ts","../src/legal/index.ts","../src/robots.ts","../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/generate.ts","../src/docs.ts","../src/tiers.ts","../src/token-refs.ts","../src/legal/providers.ts","../src/legal/derive.ts","../src/legal/templates/cookies.ca.ts","../src/legal/templates/cookies.qc.ts","../src/legal/templates/privacy.ca.ts","../src/legal/templates/privacy.qc.ts","../src/legal/templates/terms.ca.ts","../src/legal/templates/terms.qc.ts","../src/legal/templates/index.ts","../src/legal/render.ts","../src/legal/index.ts","../src/robots.ts","../src/index.ts"],"mappings":";;;;;KAmDY;;;;;;;KAQA,mBAAmB,QAAQ;UAEtB;;;;;;;;;;;;;;;;EAgBf,gBAAgB,eAAe;;EAE/B,SAAS;;EAET;;EAEA;;;;;;EAMA;;;;;EAKA;;;;;;;;EAQA,gBAAgB;;;;;;;;;;EAUhB;;UAGe;EACf,QAAQ;EACR;EACA;;UA0Ce;;EAEf;;EAEA;;EAEA;;;;;;;;;;;;;;;wBA6Dc,mBACd,gBAAgB,kBAChB,+BACC;wBA22DmB,SAAS,SAAS,kBAAkB,QAAQ;UC3qCjD;EACf;EACA;EACA,aAAa,eAAe;EAC5B;EACA,uBAAuB;EACvB,QAAQ;EACR,QAAQ;EACR;;;;;;;;;;;;;;;;;;;;qBA+HW,uBAAwB;UAoBpB;;EAEf;;EAEA;;;;;;;;;;;;;EAaA;;UAGe;;EAEf;;EAEA;EACA;;EAEA;;;;;EAKA;;EAEA;EACA,UAAU;;;;;;;;;;;;;;;;;wBAkBI,gBACd,QAAQ,gBACR,OAAM,oBACL;;;;;wBAqjDa,aAAa,IAAI,cAAc,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UC5oFlD;;;;;;EAMf;;EAEA;;;;;;;;;;;;;EAaA;;UAGe;EACf;;EAEA;;EAEA;;EAEA;;UAGe;;EAEf;;;;;EAKA;;UAGe;EACf,KAAK;EACL,KAAK;;;;;;EAML,QAAQ;;EAER;;;;;;;;;;;;;EAaA;;;;;;;EAOA;;EAEA;;qBAsBW,OAAO,eAAe;;qBAyjBtB;;wBAGG;EAAc;EAAa;EAAqB;;;;;;;;;;;KAepD;;UAGK;EACf;EACA,OAAO;;;;;;;;;;;;;;;;;;wBAmBO,aAAa,MAAM,OAAO;;;;;;;;;wBCxnB1B,YAAY,OAAO,eAAe,YAAY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