@vectoriox/iox-ui 5.22.0 → 5.24.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/design-core/index.d.ts
CHANGED
|
@@ -8758,7 +8758,12 @@ interface FlavorRevertSnapshot {
|
|
|
8758
8758
|
brandSeed: string | null;
|
|
8759
8759
|
};
|
|
8760
8760
|
tokens: Array<Pick<DesignTokenRow, 'name' | 'type' | 'value' | 'values' | 'source' | 'group' | 'tier'>>;
|
|
8761
|
+
/** What the apply left in every row it wrote (`flavorSeedWrites`). A row holding something else
|
|
8762
|
+
* since, as the author's (`source: user`), was edited AFTER the apply — the revert keeps it. */
|
|
8763
|
+
wrote?: FlavorRevertWrite[];
|
|
8761
8764
|
}
|
|
8765
|
+
/** One row as an apply left it — the value and dark half the revert compares a live row against. */
|
|
8766
|
+
type FlavorRevertWrite = Pick<DesignTokenRow, 'name' | 'value' | 'values'>;
|
|
8762
8767
|
interface FlavorRevertPlan {
|
|
8763
8768
|
create: DesignTokenRow[];
|
|
8764
8769
|
update: Array<{
|
|
@@ -8767,27 +8772,51 @@ interface FlavorRevertPlan {
|
|
|
8767
8772
|
}>;
|
|
8768
8773
|
/** Rows the apply created (flavor-stamped, absent from the snapshot) — removed on revert. */
|
|
8769
8774
|
remove: string[];
|
|
8775
|
+
/** The author's edits made after the apply, left as they are (names) — what the Revert hint counts. */
|
|
8776
|
+
kept: string[];
|
|
8770
8777
|
}
|
|
8771
8778
|
declare const REVERT_WINDOW_MS: number;
|
|
8772
8779
|
/** Board F7's footer promise, as a boundary: available through the 7th day, not beyond. */
|
|
8773
8780
|
declare function revertAvailable(appliedAt: number | null | undefined, now: number): boolean;
|
|
8774
8781
|
/**
|
|
8775
|
-
* Restore the snapshot
|
|
8776
|
-
*
|
|
8777
|
-
*
|
|
8778
|
-
*
|
|
8782
|
+
* Restore the snapshot: snapshot rows come back to their stored value/dark/source (update when
|
|
8783
|
+
* present, recreate when deleted); rows the apply CREATED (flavor-stamped and absent from the
|
|
8784
|
+
* snapshot) are removed. A revert undoes the FLAVOR, not the author's week: hand-made rows born after
|
|
8785
|
+
* the apply are not touched, and a row the author EDITED after the apply is kept (DS8: an edit makes
|
|
8786
|
+
* the row the author's, and a pack switch keeps it — so does going back). Edited-after = `source: user`,
|
|
8787
|
+
* differing from the snapshot, and holding something other than what the apply wrote (`wrote` — the
|
|
8788
|
+
* apply's own author rows, a chosen font or an Element-styles edit, still go back with it). With no
|
|
8789
|
+
* `wrote` at all, every author row that differs from the snapshot is judged edited after.
|
|
8779
8790
|
*/
|
|
8780
|
-
declare function planFlavorRevert(current: ReadonlyArray<StoredDesignTokenRow>, snapshot: FlavorRevertSnapshot['tokens']): FlavorRevertPlan;
|
|
8791
|
+
declare function planFlavorRevert(current: ReadonlyArray<StoredDesignTokenRow>, snapshot: FlavorRevertSnapshot['tokens'], wrote?: ReadonlyArray<FlavorRevertWrite> | null): FlavorRevertPlan;
|
|
8792
|
+
/** What a seed plan leaves in each row it writes, by name — the snapshot's `wrote`. */
|
|
8793
|
+
declare function flavorSeedWrites(plan: FlavorSeedPlan, existing: ReadonlyArray<StoredDesignTokenRow>): FlavorRevertWrite[];
|
|
8781
8794
|
/** What a previous seed wrote for one row — the "untouched" comparison base. */
|
|
8782
8795
|
interface SeedExpectation {
|
|
8783
8796
|
value: string;
|
|
8784
8797
|
dark?: string;
|
|
8785
8798
|
}
|
|
8786
8799
|
/**
|
|
8787
|
-
* What
|
|
8788
|
-
*
|
|
8800
|
+
* What a previous seed wrote, per row: a map by name, or a function of the stored row (a baseline that
|
|
8801
|
+
* depends on WHICH seed stamped the row — the Swiss → Crisp migration's case). The function may name
|
|
8802
|
+
* several values: a machine row is untouched when it holds ANY of them (`designBaseline`: what the
|
|
8803
|
+
* previous design wrote, and what the row's own pack writes at its defaults).
|
|
8789
8804
|
*/
|
|
8790
|
-
type SeedBaseline = ReadonlyMap<string, SeedExpectation> | ((row: StoredDesignTokenRow) => SeedExpectation | undefined);
|
|
8805
|
+
type SeedBaseline = ReadonlyMap<string, SeedExpectation> | ((row: StoredDesignTokenRow) => SeedExpectation | ReadonlyArray<SeedExpectation> | undefined);
|
|
8806
|
+
/** Options of a seed pass. */
|
|
8807
|
+
interface FlavorSeedOptions {
|
|
8808
|
+
/** Rows the author asked to take the look's values too ("Use the look's values for these too"):
|
|
8809
|
+
* written like an untouched row instead of being kept. */
|
|
8810
|
+
reclaim?: Iterable<string> | null;
|
|
8811
|
+
}
|
|
8812
|
+
/**
|
|
8813
|
+
* A machine-stamped row is untouched when it holds what a seed wrote — or that seed's LIGHT value with no
|
|
8814
|
+
* dark half at all: iox-cms dropped every `values.dark` from F0 to DS4.1, and no author edit produces that
|
|
8815
|
+
* shape (the Tokens panel edited the light value only, and since DS8 an edit makes the row `source: user`).
|
|
8816
|
+
* Judging it edited kept the six brand rows of every studio seeded before DS4.1 on the default blue for
|
|
8817
|
+
* good — a later brand never reached them.
|
|
8818
|
+
*/
|
|
8819
|
+
declare function untouchedSeedRow(row: StoredDesignTokenRow, expected: ReadonlyArray<SeedExpectation>): boolean;
|
|
8791
8820
|
/**
|
|
8792
8821
|
* The seeding MERGE: desired tokens vs existing rows, deciding create / update / keep. The §10 C2
|
|
8793
8822
|
* rule — "an upgrade only rewrites untouched rows" — is a comparison against what the PREVIOUS
|
|
@@ -8798,11 +8827,12 @@ type SeedBaseline = ReadonlyMap<string, SeedExpectation> | ((row: StoredDesignTo
|
|
|
8798
8827
|
* choice, so a new choice may replace it. `group`/`tier` ride every write; a desired row's own
|
|
8799
8828
|
* `source` (a chosen font's `user`) wins over the pack stamp. A machine-owned row that already holds
|
|
8800
8829
|
* the desired value but another pack's stamp is RE-STAMPED (§10 C2 provenance: the stamp names the
|
|
8801
|
-
* design that owns the row, so the next switch judges it against the right baseline).
|
|
8830
|
+
* design that owns the row, so the next switch judges it against the right baseline). A row named in
|
|
8831
|
+
* `options.reclaim` is written whatever it holds — the author chose the look's value over their own.
|
|
8802
8832
|
*/
|
|
8803
8833
|
declare function planFlavorSeed(desired: ReadonlyArray<FlavorTokenDef & {
|
|
8804
8834
|
source?: string;
|
|
8805
|
-
}>, existing: ReadonlyArray<StoredDesignTokenRow>, stamp: string, baseline: SeedBaseline | null): FlavorSeedPlan;
|
|
8835
|
+
}>, existing: ReadonlyArray<StoredDesignTokenRow>, stamp: string, baseline: SeedBaseline | null, options?: FlavorSeedOptions): FlavorSeedPlan;
|
|
8806
8836
|
|
|
8807
8837
|
interface LinearSpring {
|
|
8808
8838
|
easing: string;
|
|
@@ -9113,21 +9143,50 @@ declare function designTokenRows(choices: DesignChoices): DesignTokenRow[];
|
|
|
9113
9143
|
* (for an org with no design row, Crisp's defaults — exactly what DS2's interim seed wrote). In a
|
|
9114
9144
|
* Swiss org the only v2 rows are that interim seed's, so they are judged against Crisp's DEFAULTS,
|
|
9115
9145
|
* never against the brand-seeded Crisp the migration is about to write.
|
|
9146
|
+
*
|
|
9147
|
+
* A row a v2 pack stamped is ALSO untouched while it holds what that pack writes at its own defaults —
|
|
9148
|
+
* what DS2's interim seed, a first run and every pack card at its defaults wrote. Without it, one row
|
|
9149
|
+
* kept for any reason (a dark half iox-cms dropped, `untouchedSeedRow`) was judged against a design that
|
|
9150
|
+
* had moved on, apply after apply, and stayed on the old value for good: the studio's brand colour
|
|
9151
|
+
* reached the design row and never its accent.
|
|
9116
9152
|
*/
|
|
9117
9153
|
declare function designBaseline(previous: StoredDesign): SeedBaseline;
|
|
9118
|
-
/**
|
|
9119
|
-
|
|
9154
|
+
/** Options of an apply. */
|
|
9155
|
+
interface DesignApplyOptions {
|
|
9156
|
+
/** The kept rows the author asked to take the look's values too (`FlavorSeedOptions.reclaim`). */
|
|
9157
|
+
reclaim?: FlavorSeedOptions['reclaim'];
|
|
9158
|
+
}
|
|
9159
|
+
/**
|
|
9160
|
+
* Apply `next` over the org's rows, judged against `previous` — the plan FlavorApplyService runs. The
|
|
9161
|
+
* plan's `kept` names the author's rows the look leaves alone; the Design card lists them before Apply,
|
|
9162
|
+
* and `options.reclaim` writes the look's value into the ones the author hands back.
|
|
9163
|
+
*/
|
|
9164
|
+
declare function planDesignApply(existing: ReadonlyArray<StoredDesignTokenRow>, previous: StoredDesign, next: DesignChoices, options?: DesignApplyOptions): FlavorSeedPlan;
|
|
9165
|
+
/**
|
|
9166
|
+
* "Revert to previous look" over the org's rows — the ONE plan the Revert executes and its hint counts
|
|
9167
|
+
* (`kept`: the author's edits since the apply, left as they are). The apply's record of what it wrote
|
|
9168
|
+
* decides what an edit since is; a snapshot stored before that record existed (DS8.1) is judged against
|
|
9169
|
+
* the rows the applied design writes — the look's own author rows (a chosen font) still go back.
|
|
9170
|
+
* `null` when the design holds no snapshot.
|
|
9171
|
+
*/
|
|
9172
|
+
declare function planDesignRevert(current: ReadonlyArray<StoredDesignTokenRow>, design: StoredDesign): FlavorRevertPlan | null;
|
|
9120
9173
|
/** The rows a design is missing by name — the builder-load top-up (never touches an existing row). */
|
|
9121
9174
|
declare function missingDesignRows(existing: ReadonlyArray<{
|
|
9122
9175
|
name: string;
|
|
9123
9176
|
}>, choices: DesignChoices): DesignTokenRow[];
|
|
9124
9177
|
/**
|
|
9125
|
-
* The builder-load REPAIR (DS4.1): rows the design
|
|
9126
|
-
*
|
|
9127
|
-
*
|
|
9128
|
-
*
|
|
9129
|
-
*
|
|
9130
|
-
* the
|
|
9178
|
+
* The builder-load REPAIR (DS4.1): rows the design writes that are the machine's and nobody touched,
|
|
9179
|
+
* yet hold something other than the design's value, are rewritten — so an org heals on its next load
|
|
9180
|
+
* with no author action. Two shapes:
|
|
9181
|
+
* - stamped by the current pack, light value exactly the pack's, dark half not: iox-cms dropped
|
|
9182
|
+
* `values.dark` on every write from F0 to DS4 (`values` was an implicit relation), and a revert could
|
|
9183
|
+
* leave the previous apply's dark behind;
|
|
9184
|
+
* - stamped by a v2 pack and still holding what THAT pack writes at its own defaults (its dark half
|
|
9185
|
+
* possibly lost the same way) while the stored design says otherwise: an apply that judged the row
|
|
9186
|
+
* edited (before 5.24.0, a lost dark half did) left it on the default — the six brand rows of a studio
|
|
9187
|
+
* whose brand colour never reached its accent.
|
|
9188
|
+
* No author edit produces either shape — the Tokens panel edited the light value only, and since DS8 an
|
|
9189
|
+
* edit makes the row `source: user`, which this never touches.
|
|
9131
9190
|
*/
|
|
9132
9191
|
declare function designTokenRepairs(existing: ReadonlyArray<StoredDesignTokenRow>, choices: DesignChoices): FlavorSeedPlan['update'];
|
|
9133
9192
|
interface SwissMigration {
|
|
@@ -9172,5 +9231,5 @@ interface FontFamilyRemoval {
|
|
|
9172
9231
|
*/
|
|
9173
9232
|
declare function planFontFamilyRemoval(existing: ReadonlyArray<StoredDesignTokenRow>, previous: StoredDesign, family: string): FontFamilyRemoval;
|
|
9174
9233
|
|
|
9175
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, USER_TOKEN_SOURCE, WCAG_AA_TEXT, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, flavorPackById, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, previewElementStyleAdoption, previewFontWeight, readDesignConfig, readOwnedTrait, relativeLuminance, resolveDesignChoices, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, sameDesignChoices, specTokenNames, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
9176
|
-
export type { AccentBackgrounds, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, ApplyElementStyleResult, DensityId, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorPack, FlavorPackV2, FlavorRevertPlan, FlavorRevertSnapshot, FlavorSeedPlan, FlavorSpecToken, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LinearSpring, MissingFontRole, MotionId, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, SchemeId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TokenCssBlocks, TokenCssOptions };
|
|
9234
|
+
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, USER_TOKEN_SOURCE, WCAG_AA_TEXT, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, previewElementStyleAdoption, previewFontWeight, readDesignConfig, readOwnedTrait, relativeLuminance, resolveDesignChoices, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, sameDesignChoices, specTokenNames, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
9235
|
+
export type { AccentBackgrounds, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, ApplyElementStyleResult, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorPack, FlavorPackV2, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LinearSpring, MissingFontRole, MotionId, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, SchemeId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TokenCssBlocks, TokenCssOptions };
|
|
@@ -11269,17 +11269,28 @@ function revertAvailable(appliedAt, now) {
|
|
|
11269
11269
|
return typeof appliedAt === 'number' && appliedAt > 0 && now - appliedAt <= REVERT_WINDOW_MS;
|
|
11270
11270
|
}
|
|
11271
11271
|
/**
|
|
11272
|
-
* Restore the snapshot
|
|
11273
|
-
*
|
|
11274
|
-
*
|
|
11275
|
-
*
|
|
11272
|
+
* Restore the snapshot: snapshot rows come back to their stored value/dark/source (update when
|
|
11273
|
+
* present, recreate when deleted); rows the apply CREATED (flavor-stamped and absent from the
|
|
11274
|
+
* snapshot) are removed. A revert undoes the FLAVOR, not the author's week: hand-made rows born after
|
|
11275
|
+
* the apply are not touched, and a row the author EDITED after the apply is kept (DS8: an edit makes
|
|
11276
|
+
* the row the author's, and a pack switch keeps it — so does going back). Edited-after = `source: user`,
|
|
11277
|
+
* differing from the snapshot, and holding something other than what the apply wrote (`wrote` — the
|
|
11278
|
+
* apply's own author rows, a chosen font or an Element-styles edit, still go back with it). With no
|
|
11279
|
+
* `wrote` at all, every author row that differs from the snapshot is judged edited after.
|
|
11276
11280
|
*/
|
|
11277
|
-
function planFlavorRevert(current, snapshot) {
|
|
11281
|
+
function planFlavorRevert(current, snapshot, wrote) {
|
|
11278
11282
|
const byName = new Map();
|
|
11279
11283
|
for (const row of current ?? [])
|
|
11280
11284
|
byName.set(row.name, row);
|
|
11285
|
+
const written = new Map((wrote ?? []).map(w => [w.name, w]));
|
|
11286
|
+
const editedAfter = (live) => {
|
|
11287
|
+
if (live.source !== USER_TOKEN_SOURCE)
|
|
11288
|
+
return false;
|
|
11289
|
+
const w = written.get(live.name);
|
|
11290
|
+
return !w || !sameValue(live, { value: w.value, dark: w.values?.dark });
|
|
11291
|
+
};
|
|
11281
11292
|
const snapNames = new Set();
|
|
11282
|
-
const plan = { create: [], update: [], remove: [] };
|
|
11293
|
+
const plan = { create: [], update: [], remove: [], kept: [] };
|
|
11283
11294
|
for (const snap of snapshot ?? []) {
|
|
11284
11295
|
snapNames.add(snap.name);
|
|
11285
11296
|
const live = byName.get(snap.name);
|
|
@@ -11290,20 +11301,59 @@ function planFlavorRevert(current, snapshot) {
|
|
|
11290
11301
|
const differs = live.value !== snap.value
|
|
11291
11302
|
|| (live.values?.dark ?? null) !== (snap.values?.dark ?? null)
|
|
11292
11303
|
|| (live.source ?? null) !== (snap.source ?? null);
|
|
11304
|
+
if (!differs || !live._id)
|
|
11305
|
+
continue;
|
|
11306
|
+
if (editedAfter(live)) {
|
|
11307
|
+
plan.kept.push(live.name);
|
|
11308
|
+
continue;
|
|
11309
|
+
}
|
|
11293
11310
|
// `values` is ALWAYS sent: an absent key is dropped by JSON and a `$set` then keeps the
|
|
11294
11311
|
// apply's dark override — a snapshot row with no dark must clear it, so it sends `{}`.
|
|
11295
|
-
|
|
11296
|
-
plan.update.push({ id: live._id, data: { value: snap.value, values: snap.values ?? {}, source: snap.source } });
|
|
11297
|
-
}
|
|
11312
|
+
plan.update.push({ id: live._id, data: { value: snap.value, values: snap.values ?? {}, source: snap.source } });
|
|
11298
11313
|
}
|
|
11299
11314
|
for (const row of current ?? []) {
|
|
11300
|
-
if (
|
|
11315
|
+
if (snapNames.has(row.name) || !row._id)
|
|
11316
|
+
continue;
|
|
11317
|
+
if (isSeeded(row))
|
|
11301
11318
|
plan.remove.push(row._id);
|
|
11319
|
+
else if (written.has(row.name) && editedAfter(row))
|
|
11320
|
+
plan.kept.push(row.name);
|
|
11302
11321
|
}
|
|
11303
11322
|
return plan;
|
|
11304
11323
|
}
|
|
11305
|
-
|
|
11324
|
+
/** What a seed plan leaves in each row it writes, by name — the snapshot's `wrote`. */
|
|
11325
|
+
function flavorSeedWrites(plan, existing) {
|
|
11326
|
+
const byId = new Map((existing ?? []).filter(r => r._id).map(r => [r._id, r]));
|
|
11327
|
+
const out = (plan?.create ?? []).map(r => ({ name: r.name, value: r.value, ...(r.values ? { values: r.values } : {}) }));
|
|
11328
|
+
for (const u of plan?.update ?? []) {
|
|
11329
|
+
const row = byId.get(u.id);
|
|
11330
|
+
if (!row)
|
|
11331
|
+
continue;
|
|
11332
|
+
const values = u.data.values ?? row.values;
|
|
11333
|
+
out.push({ name: row.name, value: u.data.value ?? row.value, ...(values ? { values } : {}) });
|
|
11334
|
+
}
|
|
11335
|
+
return out;
|
|
11336
|
+
}
|
|
11337
|
+
function expectationsFor(baseline, row) {
|
|
11338
|
+
if (!baseline)
|
|
11339
|
+
return [];
|
|
11340
|
+
const found = typeof baseline === 'function' ? baseline(row) : baseline.get(row.name);
|
|
11341
|
+
if (!found)
|
|
11342
|
+
return [];
|
|
11343
|
+
return (Array.isArray(found) ? found : [found]).filter(Boolean);
|
|
11344
|
+
}
|
|
11306
11345
|
const sameValue = (row, e) => row.value === e.value && (row.values?.dark ?? '') === (e.dark ?? '');
|
|
11346
|
+
/**
|
|
11347
|
+
* A machine-stamped row is untouched when it holds what a seed wrote — or that seed's LIGHT value with no
|
|
11348
|
+
* dark half at all: iox-cms dropped every `values.dark` from F0 to DS4.1, and no author edit produces that
|
|
11349
|
+
* shape (the Tokens panel edited the light value only, and since DS8 an edit makes the row `source: user`).
|
|
11350
|
+
* Judging it edited kept the six brand rows of every studio seeded before DS4.1 on the default blue for
|
|
11351
|
+
* good — a later brand never reached them.
|
|
11352
|
+
*/
|
|
11353
|
+
function untouchedSeedRow(row, expected) {
|
|
11354
|
+
const darkLost = isSeeded(row) && !row.values?.dark;
|
|
11355
|
+
return expected.some(e => sameValue(row, e) || (darkLost && row.value === e.value));
|
|
11356
|
+
}
|
|
11307
11357
|
/**
|
|
11308
11358
|
* The seeding MERGE: desired tokens vs existing rows, deciding create / update / keep. The §10 C2
|
|
11309
11359
|
* rule — "an upgrade only rewrites untouched rows" — is a comparison against what the PREVIOUS
|
|
@@ -11314,10 +11364,12 @@ const sameValue = (row, e) => row.value === e.value && (row.values?.dark ?? '')
|
|
|
11314
11364
|
* choice, so a new choice may replace it. `group`/`tier` ride every write; a desired row's own
|
|
11315
11365
|
* `source` (a chosen font's `user`) wins over the pack stamp. A machine-owned row that already holds
|
|
11316
11366
|
* the desired value but another pack's stamp is RE-STAMPED (§10 C2 provenance: the stamp names the
|
|
11317
|
-
* design that owns the row, so the next switch judges it against the right baseline).
|
|
11367
|
+
* design that owns the row, so the next switch judges it against the right baseline). A row named in
|
|
11368
|
+
* `options.reclaim` is written whatever it holds — the author chose the look's value over their own.
|
|
11318
11369
|
*/
|
|
11319
|
-
function planFlavorSeed(desired, existing, stamp, baseline) {
|
|
11370
|
+
function planFlavorSeed(desired, existing, stamp, baseline, options = {}) {
|
|
11320
11371
|
const byName = new Map((existing ?? []).map(r => [r.name, r]));
|
|
11372
|
+
const reclaim = new Set(options.reclaim ?? []);
|
|
11321
11373
|
const plan = { create: [], update: [], kept: [] };
|
|
11322
11374
|
for (const def of desired ?? []) {
|
|
11323
11375
|
if (!def?.name)
|
|
@@ -11335,17 +11387,18 @@ function planFlavorSeed(desired, existing, stamp, baseline) {
|
|
|
11335
11387
|
});
|
|
11336
11388
|
continue;
|
|
11337
11389
|
}
|
|
11338
|
-
const
|
|
11339
|
-
const
|
|
11340
|
-
|
|
11390
|
+
const olds = expectationsFor(baseline, row);
|
|
11391
|
+
const reclaimed = reclaim.has(def.name);
|
|
11392
|
+
const designOwned = isSeeded(row) || (row.source === USER_TOKEN_SOURCE && olds.some(o => sameValue(row, o)));
|
|
11393
|
+
if (!designOwned && !reclaimed) {
|
|
11341
11394
|
plan.kept.push(def.name);
|
|
11342
11395
|
continue;
|
|
11343
11396
|
}
|
|
11344
11397
|
const sameAsDesired = row.value === def.value && (row.values?.dark ?? '') === (def.values?.dark ?? '');
|
|
11345
11398
|
if (sameAsDesired && (row.source ?? '') === source)
|
|
11346
11399
|
continue; // already exactly this
|
|
11347
|
-
const untouched =
|
|
11348
|
-
if ((untouched || sameAsDesired) && row._id) {
|
|
11400
|
+
const untouched = untouchedSeedRow(row, olds);
|
|
11401
|
+
if ((untouched || sameAsDesired || reclaimed) && row._id) {
|
|
11349
11402
|
plan.update.push({ id: row._id, data: { value: def.value, values: def.values ?? {}, source, ...classification(def) } });
|
|
11350
11403
|
}
|
|
11351
11404
|
else {
|
|
@@ -11597,28 +11650,66 @@ function swissExpectations(seed) {
|
|
|
11597
11650
|
}
|
|
11598
11651
|
return expectations(rows);
|
|
11599
11652
|
}
|
|
11653
|
+
/** What a v2 pack writes at its OWN defaults, by pack id — computed once per id per caller. */
|
|
11654
|
+
function packDefaultsLookup() {
|
|
11655
|
+
const cache = new Map();
|
|
11656
|
+
return packId => {
|
|
11657
|
+
if (!cache.has(packId)) {
|
|
11658
|
+
const pack = isRetiredFlavorId(packId) ? undefined : flavorPackById(packId);
|
|
11659
|
+
cache.set(packId, pack && pack.id === packId ? expectations(designTokenRows(packDesignChoices(pack.id))) : undefined);
|
|
11660
|
+
}
|
|
11661
|
+
return cache.get(packId);
|
|
11662
|
+
};
|
|
11663
|
+
}
|
|
11600
11664
|
/**
|
|
11601
11665
|
* What the PREVIOUS design wrote, as a baseline keyed by the row's own stamp: a row Swiss stamped is
|
|
11602
11666
|
* judged against what Swiss wrote, every other row against `buildFlavorTokens` of the stored choices
|
|
11603
11667
|
* (for an org with no design row, Crisp's defaults — exactly what DS2's interim seed wrote). In a
|
|
11604
11668
|
* Swiss org the only v2 rows are that interim seed's, so they are judged against Crisp's DEFAULTS,
|
|
11605
11669
|
* never against the brand-seeded Crisp the migration is about to write.
|
|
11670
|
+
*
|
|
11671
|
+
* A row a v2 pack stamped is ALSO untouched while it holds what that pack writes at its own defaults —
|
|
11672
|
+
* what DS2's interim seed, a first run and every pack card at its defaults wrote. Without it, one row
|
|
11673
|
+
* kept for any reason (a dark half iox-cms dropped, `untouchedSeedRow`) was judged against a design that
|
|
11674
|
+
* had moved on, apply after apply, and stayed on the old value for good: the studio's brand colour
|
|
11675
|
+
* reached the design row and never its accent.
|
|
11606
11676
|
*/
|
|
11607
11677
|
function designBaseline(previous) {
|
|
11608
11678
|
const retired = isRetiredFlavorId(previous.storedFlavorId);
|
|
11609
11679
|
const current = expectations(designTokenRows(retired ? packDesignChoices(previous.choices.flavorId) : previous.choices));
|
|
11610
11680
|
const swiss = swissExpectations(retired ? previous.storedSeed : null);
|
|
11681
|
+
const packDefaults = packDefaultsLookup();
|
|
11611
11682
|
return (row) => {
|
|
11612
11683
|
const stampedBy = SEED_STAMP.exec(row.source ?? '')?.[1];
|
|
11613
|
-
|
|
11684
|
+
if (stampedBy === SWISS_FLAVOR.id)
|
|
11685
|
+
return swiss.get(row.name);
|
|
11686
|
+
const ownDefault = stampedBy ? packDefaults(stampedBy)?.get(row.name) : undefined;
|
|
11687
|
+
return [current.get(row.name), ownDefault].filter((e) => !!e);
|
|
11614
11688
|
};
|
|
11615
11689
|
}
|
|
11616
|
-
/**
|
|
11617
|
-
|
|
11690
|
+
/**
|
|
11691
|
+
* Apply `next` over the org's rows, judged against `previous` — the plan FlavorApplyService runs. The
|
|
11692
|
+
* plan's `kept` names the author's rows the look leaves alone; the Design card lists them before Apply,
|
|
11693
|
+
* and `options.reclaim` writes the look's value into the ones the author hands back.
|
|
11694
|
+
*/
|
|
11695
|
+
function planDesignApply(existing, previous, next, options = {}) {
|
|
11618
11696
|
const pack = flavorPackById(next.flavorId);
|
|
11619
11697
|
if (!pack)
|
|
11620
11698
|
return { create: [], update: [], kept: [] };
|
|
11621
|
-
return planFlavorSeed(designTokenRows(next), existing, flavorSourceStamp(pack.id), designBaseline(previous));
|
|
11699
|
+
return planFlavorSeed(designTokenRows(next), existing, flavorSourceStamp(pack.id), designBaseline(previous), { reclaim: options.reclaim });
|
|
11700
|
+
}
|
|
11701
|
+
/**
|
|
11702
|
+
* "Revert to previous look" over the org's rows — the ONE plan the Revert executes and its hint counts
|
|
11703
|
+
* (`kept`: the author's edits since the apply, left as they are). The apply's record of what it wrote
|
|
11704
|
+
* decides what an edit since is; a snapshot stored before that record existed (DS8.1) is judged against
|
|
11705
|
+
* the rows the applied design writes — the look's own author rows (a chosen font) still go back.
|
|
11706
|
+
* `null` when the design holds no snapshot.
|
|
11707
|
+
*/
|
|
11708
|
+
function planDesignRevert(current, design) {
|
|
11709
|
+
const snapshot = design?.revert;
|
|
11710
|
+
if (!snapshot)
|
|
11711
|
+
return null;
|
|
11712
|
+
return planFlavorRevert(current, snapshot.tokens, snapshot.wrote ?? designTokenRows(design.choices));
|
|
11622
11713
|
}
|
|
11623
11714
|
/** The rows a design is missing by name — the builder-load top-up (never touches an existing row). */
|
|
11624
11715
|
function missingDesignRows(existing, choices) {
|
|
@@ -11626,12 +11717,18 @@ function missingDesignRows(existing, choices) {
|
|
|
11626
11717
|
return designTokenRows(choices).filter(r => !have.has(r.name));
|
|
11627
11718
|
}
|
|
11628
11719
|
/**
|
|
11629
|
-
* The builder-load REPAIR (DS4.1): rows the design
|
|
11630
|
-
*
|
|
11631
|
-
*
|
|
11632
|
-
*
|
|
11633
|
-
*
|
|
11634
|
-
* the
|
|
11720
|
+
* The builder-load REPAIR (DS4.1): rows the design writes that are the machine's and nobody touched,
|
|
11721
|
+
* yet hold something other than the design's value, are rewritten — so an org heals on its next load
|
|
11722
|
+
* with no author action. Two shapes:
|
|
11723
|
+
* - stamped by the current pack, light value exactly the pack's, dark half not: iox-cms dropped
|
|
11724
|
+
* `values.dark` on every write from F0 to DS4 (`values` was an implicit relation), and a revert could
|
|
11725
|
+
* leave the previous apply's dark behind;
|
|
11726
|
+
* - stamped by a v2 pack and still holding what THAT pack writes at its own defaults (its dark half
|
|
11727
|
+
* possibly lost the same way) while the stored design says otherwise: an apply that judged the row
|
|
11728
|
+
* edited (before 5.24.0, a lost dark half did) left it on the default — the six brand rows of a studio
|
|
11729
|
+
* whose brand colour never reached its accent.
|
|
11730
|
+
* No author edit produces either shape — the Tokens panel edited the light value only, and since DS8 an
|
|
11731
|
+
* edit makes the row `source: user`, which this never touches.
|
|
11635
11732
|
*/
|
|
11636
11733
|
function designTokenRepairs(existing, choices) {
|
|
11637
11734
|
const pack = flavorPackById(choices.flavorId);
|
|
@@ -11639,12 +11736,18 @@ function designTokenRepairs(existing, choices) {
|
|
|
11639
11736
|
return [];
|
|
11640
11737
|
const stamp = flavorSourceStamp(pack.id);
|
|
11641
11738
|
const desired = new Map(designTokenRows(choices).map(r => [r.name, r]));
|
|
11739
|
+
const packDefaults = packDefaultsLookup();
|
|
11642
11740
|
const out = [];
|
|
11643
11741
|
for (const row of existing ?? []) {
|
|
11644
11742
|
const want = desired.get(row.name);
|
|
11645
|
-
if (!want || !row._id ||
|
|
11743
|
+
if (!want || !row._id || want.source !== stamp)
|
|
11744
|
+
continue;
|
|
11745
|
+
if (row.value === want.value && (row.values?.dark ?? '') === (want.values?.dark ?? '') && row.source === stamp)
|
|
11646
11746
|
continue;
|
|
11647
|
-
|
|
11747
|
+
const stampedBy = SEED_STAMP.exec(row.source ?? '')?.[1];
|
|
11748
|
+
const darkOnly = row.source === stamp && row.value === want.value;
|
|
11749
|
+
const ownDefault = stampedBy ? packDefaults(stampedBy)?.get(row.name) : undefined;
|
|
11750
|
+
if (!darkOnly && !(ownDefault && untouchedSeedRow(row, [ownDefault])))
|
|
11648
11751
|
continue;
|
|
11649
11752
|
out.push({ id: row._id, data: { value: want.value, values: want.values ?? {}, source: stamp, ...(want.group ? { group: want.group } : {}), ...(want.tier ? { tier: want.tier } : {}) } });
|
|
11650
11753
|
}
|
|
@@ -11734,5 +11837,5 @@ function planFontFamilyRemoval(existing, previous, family) {
|
|
|
11734
11837
|
* Generated bundle index. Do not edit.
|
|
11735
11838
|
*/
|
|
11736
11839
|
|
|
11737
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, USER_TOKEN_SOURCE, WCAG_AA_TEXT, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, flavorPackById, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, previewElementStyleAdoption, previewFontWeight, readDesignConfig, readOwnedTrait, relativeLuminance, resolveDesignChoices, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, sameDesignChoices, specTokenNames, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
11840
|
+
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, DEFAULT_FLAVOR_ID, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, USER_TOKEN_SOURCE, WCAG_AA_TEXT, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, previewElementStyleAdoption, previewFontWeight, readDesignConfig, readOwnedTrait, relativeLuminance, resolveDesignChoices, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, sameDesignChoices, specTokenNames, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
11738
11841
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|