@yahoo/uds-create-config 5.80.1 → 5.81.1
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/capture/capture-to-spec.js +119 -24
- package/dist/capture/class-grammar.d.ts +3 -0
- package/dist/capture/class-grammar.js +4 -0
- package/dist/capture/node-ops.js +1 -1
- package/dist/configs/react-native-system.d.ts +25 -25
- package/dist/entities/native/NativeModifier.d.ts +2 -2
- package/dist/entities/native/NativeStyleProperty.d.ts +48 -48
- package/dist/entities/native/NativeToken.js +1 -1
- package/dist/entities/system/Component.js +1 -1
- package/dist/entities/system/Modifier.d.ts +3 -3
- package/dist/entities/system/Motion.d.ts +129 -129
- package/dist/entities/system/Motion.js +1 -1
- package/dist/entities/system/Source.js +1 -1
- package/dist/entities/system/StyleProperty.d.ts +1 -1
- package/dist/entities/system/StyleProperty.js +1 -1
- package/dist/entities/system/Token.js +1 -1
- package/dist/entities/system/component-module.js +1 -1
- package/dist/entities/system/css-motion-reach.js +1 -1
- package/dist/entities/system/linked-style-values.js +1 -1
- package/dist/entities/system/linked-token-values.js +1 -1
- package/dist/entities/system/motion-convert.js +1 -1
- package/dist/entities/system/motion-variants.js +1 -1
- package/dist/entities/system/reanimated-motion.d.ts +118 -118
- package/dist/entities/system/style-bag.js +2 -2
- package/dist/framework/Config.js +1 -1
- package/dist/framework/default-conditions.js +1 -1
- package/dist/framework/schemas.js +1 -1
- package/dist/framework/source-integrity.js +1 -1
- package/dist/index.js +2 -2
- package/dist/lint/context.js +1 -1
- package/dist/migrations/2.0.0/v1-artifact.js +1 -1
- package/dist/renderer/wrappers/html-aliases.js +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AI_LANES, GUIDANCE_LANES } from "./ai-lanes.js";
|
|
2
2
|
import { Presence } from "./authoring/presence.js";
|
|
3
|
+
import { ENTITY_PATH_MESSAGE, MINTED, collectRefs, declarationText, entityPathProblem, entityRefOf, isEntityPath, isExtendedRef, isMintedRow, isRef, kindOf, memberOf, memberRef, orRef, pathOf, ref, refKey, refLeaf, refOfKey, refSchema, refTo, replaceRefMarkers, rewriteRefNamespace, rewriteRefSource, rewriteRefs, routedSource, sourceHops, sourceOf, splitRef, splitRefMarkers } from "./framework/utils/refs.js";
|
|
4
|
+
import { CSS_PROPERTY_NAMES, CSS_WIDE_KEYWORDS, cssProperty, cssValueIssue, isCssProperty } from "./css/values.js";
|
|
3
5
|
import { isNativeConfig, isSystemConfig } from "./configs/platform.js";
|
|
4
6
|
import { applyPathDelta, isPlainObject, namedFields, pathDelta, pathSegments, setAtPath, touchedFields } from "./framework/utils/field-path.js";
|
|
5
|
-
import { ENTITY_PATH_MESSAGE, MINTED, collectRefs, declarationText, entityPathProblem, entityRefOf, isEntityPath, isExtendedRef, isMintedRow, isRef, kindOf, memberOf, memberRef, orRef, pathOf, ref, refKey, refLeaf, refOfKey, refSchema, refTo, replaceRefMarkers, rewriteRefNamespace, rewriteRefSource, rewriteRefs, routedSource, sourceHops, sourceOf, splitRef, splitRefMarkers } from "./framework/utils/refs.js";
|
|
6
7
|
import { defaultsFor, propDefaultConditions, storedDefaultConditions, withPropDefaultConditions } from "./framework/default-conditions.js";
|
|
7
8
|
import { CONFIG_OPERATION_KIND } from "./framework/config-operation-kind.js";
|
|
8
9
|
import { ConfigFormatError, ConfigRejection, isConfigFormatError, isConfigRejection } from "./framework/rejection.js";
|
|
@@ -36,7 +37,6 @@ import { File, SCRIPT_EXTENSIONS, isBinaryAsset } from "./entities/system/File.j
|
|
|
36
37
|
import { safelistEntrySchema } from "./entities/system/safelist.js";
|
|
37
38
|
import { BuildSection, CSS_DEFAULTS, CssSection, DefaultsSection, LintSection, PLAYGROUND_DEFAULTS, PlaygroundSection, Settings, SystemSection, classPrefixOf, cssPrefixes, defaultColorOf, defaultColorsOf, deriveInputDir, layerPrefixOf, prefixed, varPrefixOf } from "./entities/system/Settings.js";
|
|
38
39
|
import { TOKEN_READERS, isTokenReader, parseTokenValue, rootFontSize, spellTokenRead, tokenExists, tokenValueRow, tokenValueRows } from "./entities/system/token-values.js";
|
|
39
|
-
import { CSS_PROPERTY_NAMES, CSS_WIDE_KEYWORDS, cssProperty, cssValueIssue, isCssProperty } from "./css/values.js";
|
|
40
40
|
import { valueLeavesOf, valueSchemaOf } from "./framework/value-domain.js";
|
|
41
41
|
import { ICON_METADATA_FORMATS, glyphExportRule, iconMemberMetadata, iconMetadata, iconMetadataDeclaration, iconMetadataFile, iconMetadataFileJsonSchema, iconMetadataFormat, iconMetadataSourceFile, tablerExportName, tablerStyledExportName } from "./entities/system/icon-metadata.js";
|
|
42
42
|
import { Composite } from "./entities/system/Composite.js";
|
package/dist/lint/context.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isNativeConfig } from "../configs/platform.js";
|
|
2
1
|
import { isRef, kindOf, pathOf } from "../framework/utils/refs.js";
|
|
2
|
+
import { isNativeConfig } from "../configs/platform.js";
|
|
3
3
|
import { rootLayerOf } from "../entities/system/element.js";
|
|
4
4
|
import { modeAxes } from "../entities/system/Modifier.js";
|
|
5
5
|
import { literalValueOf, resolveTokenValue, resolveTokenValueUnder, stylePropEntries } from "../framework/projections.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isRef, pathOf, splitRef } from "../../framework/utils/refs.js";
|
|
2
|
+
import { isCssProperty, kebabCase } from "../../css/values.js";
|
|
2
3
|
import { alpha, darken, lighten, mix } from "../../entities/system/color.js";
|
|
3
4
|
import { Font } from "../../entities/system/Font.js";
|
|
4
|
-
import { isCssProperty, kebabCase } from "../../css/values.js";
|
|
5
5
|
import { Composite } from "../../entities/system/Composite.js";
|
|
6
6
|
import { Modifier } from "../../entities/system/Modifier.js";
|
|
7
7
|
import { StyleProperty } from "../../entities/system/StyleProperty.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { forceModeAttribute, forceModePropGroup } from "../../framework/class-names.js";
|
|
1
2
|
import "../../framework/render-spec.js";
|
|
2
3
|
import { specContent } from "../spec-content.js";
|
|
3
4
|
import React from "react";
|
|
@@ -13,6 +14,7 @@ const FORBIDDEN_INTRINSIC_TAGS = new Set([
|
|
|
13
14
|
"meta"
|
|
14
15
|
]);
|
|
15
16
|
const FORBIDDEN_INTRINSIC_PROPS = new Set(["dangerouslySetInnerHTML"]);
|
|
17
|
+
const SVG_NAMESPACED_ATTRIBUTE = /^(xlink|xml|xmlns):/;
|
|
16
18
|
/**
|
|
17
19
|
* Set to `true` on an intrinsic element whose props are the tag's own attributes. A style-prop key
|
|
18
20
|
* whose value names no class is then kept as the attribute rather than dropped, so a captured
|
|
@@ -63,6 +65,12 @@ function aliasHtmlTypes(reg, stylePropClasses) {
|
|
|
63
65
|
continue;
|
|
64
66
|
}
|
|
65
67
|
if (key.startsWith("_")) continue;
|
|
68
|
+
if (key.includes(":") && !SVG_NAMESPACED_ATTRIBUTE.test(key)) continue;
|
|
69
|
+
const forcedGroup = forceModePropGroup(key);
|
|
70
|
+
if (forcedGroup !== void 0) {
|
|
71
|
+
intrinsicProps[forceModeAttribute(forcedGroup)] = value;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
66
74
|
intrinsicProps[key] = value;
|
|
67
75
|
}
|
|
68
76
|
if (styleClasses.length > 0) {
|