@yahoo/uds-create-cli 5.98.0 → 5.99.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.99.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
33
33
|
"@orpc/client": "^1.13.9",
|
|
34
34
|
"@orpc/contract": "^1.13.9",
|
|
35
|
-
"@yahoo/uds-create-config": "5.
|
|
36
|
-
"@yahoo/uds-create-loader": "5.
|
|
37
|
-
"@yahoo/uds-create-types": "5.
|
|
38
|
-
"@yahoo/uds-create-utils": "5.
|
|
35
|
+
"@yahoo/uds-create-config": "5.99.0",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.99.0",
|
|
37
|
+
"@yahoo/uds-create-types": "5.99.0",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.99.0",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
40
|
"ts-morph": "^27.0.2",
|
|
41
41
|
"get-tsconfig": "^4.10.0",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"lodash": "^4.17.23",
|
|
53
53
|
"prettier": "^3.8.1"
|
|
54
54
|
},
|
|
55
|
-
"udsSchemaVersion":
|
|
55
|
+
"udsSchemaVersion": 20261113131930,
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@yahoo/uds-create-cli-darwin-arm64": "5.
|
|
58
|
-
"@yahoo/uds-create-cli-darwin-x64": "5.
|
|
59
|
-
"@yahoo/uds-create-cli-linux-arm64": "5.
|
|
60
|
-
"@yahoo/uds-create-cli-linux-x64": "5.
|
|
61
|
-
"@yahoo/uds-create-cli-linux-arm64-musl": "5.
|
|
62
|
-
"@yahoo/uds-create-cli-linux-x64-musl": "5.
|
|
57
|
+
"@yahoo/uds-create-cli-darwin-arm64": "5.99.0",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.99.0",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.99.0",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.99.0",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.99.0",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.99.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -76285,9 +76285,12 @@ async function buildPreviewBundleWithLogLevel(options, logLevel) {
|
|
|
76285
76285
|
// The canvas puts a native frame in the page's modes through the same provider the
|
|
76286
76286
|
// components read, so it has to be this bundle's instance of the runtime. It's read off the
|
|
76287
76287
|
// namespace, so a runtime that declares none exports `undefined` instead of failing the build.
|
|
76288
|
-
...platform === "native-canvas" ? [
|
|
76288
|
+
...platform === "native-canvas" || platform === "native" ? [
|
|
76289
76289
|
`import * as __udsComponentRuntime from './${COMPONENT_RUNTIME_MODULE}';`,
|
|
76290
|
-
"export const NativeThemeProvider = __udsComponentRuntime.NativeThemeProvider;"
|
|
76290
|
+
"export const NativeThemeProvider = __udsComponentRuntime.NativeThemeProvider;",
|
|
76291
|
+
"import { glyphMembers as __udsGlyphMembers } from './react-registry';",
|
|
76292
|
+
"import * as __udsRenderer from './react-renderer';",
|
|
76293
|
+
"export const NativeStyleProvider = __udsComponentRuntime.createNativeStyleProvider?.({ glyphMembers: __udsGlyphMembers, RevisionProvider: __udsRenderer.RendererRevisionProvider });"
|
|
76291
76294
|
] : [],
|
|
76292
76295
|
...nativeRegistration ? [
|
|
76293
76296
|
`import { UdsRenderer as __udsNativeRenderer } from './react-renderer';`,
|
|
@@ -76296,6 +76299,7 @@ async function buildPreviewBundleWithLogLevel(options, logLevel) {
|
|
|
76296
76299
|
` protocolVersion: ${JSON.stringify(nativeRegistration.protocolVersion)},`,
|
|
76297
76300
|
` hostApiVersion: ${JSON.stringify(nativeRegistration.hostApiVersion)},`,
|
|
76298
76301
|
" UdsRenderer: __udsNativeRenderer,",
|
|
76302
|
+
" NativeStyleProvider,",
|
|
76299
76303
|
"});"
|
|
76300
76304
|
] : []
|
|
76301
76305
|
].join("\n");
|
|
@@ -73662,6 +73662,10 @@ var interactionMemo = createSliceMemo({
|
|
|
73662
73662
|
const paths = /* @__PURE__ */ new Set();
|
|
73663
73663
|
for (const modifier of config2.list("modifier")) {
|
|
73664
73664
|
const { type, value } = modifier.toJSON() ?? {};
|
|
73665
|
+
if (type === "state" && modifierCategory(config2, modifier.path) === "state") {
|
|
73666
|
+
paths.add(modifier.path);
|
|
73667
|
+
continue;
|
|
73668
|
+
}
|
|
73665
73669
|
if (type !== "selector" || typeof value !== "string") continue;
|
|
73666
73670
|
if (modifierCategory(config2, modifier.path) === "mode") continue;
|
|
73667
73671
|
const own2 = value.trim().replace(/^&/, "");
|
|
@@ -81445,8 +81449,7 @@ function glyphComponentOf(config2, library) {
|
|
|
81445
81449
|
for (const component of config2.list("component")) {
|
|
81446
81450
|
const { props = {} } = component.toJSON();
|
|
81447
81451
|
for (const [prop, declaration] of Object.entries(props)) {
|
|
81448
|
-
if (declaration?.
|
|
81449
|
-
if (!glyphLibrariesOf(declaration.value).includes(library)) continue;
|
|
81452
|
+
if (!glyphLibrariesOf(declaration?.value).includes(library)) continue;
|
|
81450
81453
|
return {
|
|
81451
81454
|
path: component.path,
|
|
81452
81455
|
prop
|
|
@@ -88920,12 +88923,13 @@ var ComponentEntity = defineEntity({
|
|
|
88920
88923
|
external_exports.boolean()
|
|
88921
88924
|
])).optional(),
|
|
88922
88925
|
state: external_exports.string().min(1).optional(),
|
|
88923
|
-
modifiers: external_exports.array(external_exports.string().min(1)).optional()
|
|
88926
|
+
modifiers: external_exports.array(external_exports.string().min(1)).optional(),
|
|
88927
|
+
ownRuleOnly: external_exports.boolean().optional().describe("Clear only the matching rule, preserving values supplied by broader rules.")
|
|
88924
88928
|
})).min(1) })
|
|
88925
88929
|
}),
|
|
88926
88930
|
readOnly: false,
|
|
88927
88931
|
label: "Set layer styles",
|
|
88928
|
-
description: 'Set or clear style properties on a component\'s layers for the instances a reach covers, the way the component editor\'s "Apply to" does. Each change names a `layer`, a style-prop `prop` and a `value` (`null` clears it). `when` pins variant, boolean or state props (`{ "variant": "secondary" }`) and the change lands in the rule with exactly that condition; leave it out for every instance. `state` is the state the change is made in (`"hover"`): an interaction becomes part of the rule\'s condition, any other modifier nests as a block in the layer\'s bag. `modifiers` nest further blocks, outermost first (`["dark"]` for dark mode). Writes one `sub-update/styles` per rule touched, creating a rule its condition has none for. A clear also removes the value from a broader rule that gives those instances it, and writes it back on the conditions that rule covers and the clear does not, so only the cleared instances change.',
|
|
88932
|
+
description: 'Set or clear style properties on a component\'s layers for the instances a reach covers, the way the component editor\'s "Apply to" does. Each change names a `layer`, a style-prop `prop` and a `value` (`null` clears it). `when` pins variant, boolean or state props (`{ "variant": "secondary" }`) and the change lands in the rule with exactly that condition; leave it out for every instance. `state` is the state the change is made in (`"hover"`): an interaction becomes part of the rule\'s condition, any other modifier nests as a block in the layer\'s bag. `modifiers` nest further blocks, outermost first (`["dark"]` for dark mode). Writes one `sub-update/styles` per rule touched, creating a rule its condition has none for. A clear also removes the value from a broader rule that gives those instances it, and writes it back on the conditions that rule covers and the clear does not, so only the cleared instances change. Set `ownRuleOnly` to clear just the matching rule and reveal the values from broader or inherited rules.',
|
|
88929
88933
|
scope: "item",
|
|
88930
88934
|
title: (entity) => `Set ${entity} layer styles`,
|
|
88931
88935
|
handler: (input2, config2) => {
|
|
@@ -92990,7 +92994,7 @@ var Entity = class {
|
|
|
92990
92994
|
};
|
|
92991
92995
|
|
|
92992
92996
|
// ../config/dist/framework/schema-version.js
|
|
92993
|
-
var CURRENT_SCHEMA_VERSION =
|
|
92997
|
+
var CURRENT_SCHEMA_VERSION = 20261113131930;
|
|
92994
92998
|
var SETTINGS_AS_KIND_VERSION = 20260908171448;
|
|
92995
92999
|
var SchemaVersionTooNew = class extends ConfigFormatError {
|
|
92996
93000
|
found;
|
|
@@ -93010,7 +93014,7 @@ function registerSchemaMigrations(...migrations) {
|
|
|
93010
93014
|
for (const migration of migrations) {
|
|
93011
93015
|
if (migration.version !== 1 && !isMintTimestamp(migration.version)) throw new Error(`Schema migration version ${migration.version} is not a mint timestamp \u2014 mint one with \`date +%Y%m%d%H%M%S\`, like a supabase migration.`);
|
|
93012
93016
|
if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
|
|
93013
|
-
if (migration.version >
|
|
93017
|
+
if (migration.version > 20261113131930) throw new Error(`Schema migration ${migration.version} is newer than CURRENT_SCHEMA_VERSION (${CURRENT_SCHEMA_VERSION}) \u2014 a stale branch merged, or the mint forgot to bump the constant. Re-mint: set CURRENT_SCHEMA_VERSION to the newest migration version.`);
|
|
93014
93018
|
REGISTERED.set(migration.version, migration);
|
|
93015
93019
|
}
|
|
93016
93020
|
}
|
|
@@ -93041,7 +93045,7 @@ function pendingFor(version2, target2, options) {
|
|
|
93041
93045
|
return [...(options?.migrations ?? REGISTERED).values()].filter((m) => m.version > version2 && m.version <= target2).sort((a, b) => a.version - b.version);
|
|
93042
93046
|
}
|
|
93043
93047
|
function upgradeSerializedConfig(json2, options) {
|
|
93044
|
-
const target2 = options?.target ??
|
|
93048
|
+
const target2 = options?.target ?? 20261113131930;
|
|
93045
93049
|
const version2 = detectedWireVersion(json2);
|
|
93046
93050
|
if (version2 > target2) throw new SchemaVersionTooNew(version2, target2);
|
|
93047
93051
|
const raw = json2;
|
|
@@ -100295,7 +100299,7 @@ var Config = class Config2 {
|
|
|
100295
100299
|
* links from the provided sources. A declared `linkedKind` with no provided source throws. */
|
|
100296
100300
|
hydrateFrom(stored, options) {
|
|
100297
100301
|
const claimed = schemaVersionOf(stored);
|
|
100298
|
-
if (claimed >
|
|
100302
|
+
if (claimed > 20261113131930) throw new SchemaVersionTooNew(claimed);
|
|
100299
100303
|
const wire = upgradeSerializedConfig(stored);
|
|
100300
100304
|
if (!Array.isArray(wire.ownedKinds) || typeof wire.items !== "object" || wire.items === null) throw new ConfigFormatError(`Config "${stored.name ?? "system-config"}" cannot be hydrated: this is not a serialized config-v2 config (no "ownedKinds"/"items"). A pre-cutover build artifact converts through the registered cutover migration \u2014 import the config type's module (e.g. \`configs/system\`) before hydrating.`);
|
|
100301
100305
|
const leftover = wire.options;
|
|
@@ -104211,6 +104215,15 @@ var vendorLinkTypeMigration = {
|
|
|
104211
104215
|
}
|
|
104212
104216
|
};
|
|
104213
104217
|
|
|
104218
|
+
// ../config/dist/migrations/20261113131930_style_set_own_rule_only.js
|
|
104219
|
+
var STYLE_SET_OWN_RULE_ONLY_VERSION = 20261113131930;
|
|
104220
|
+
var styleSetOwnRuleOnlyMigration = {
|
|
104221
|
+
version: STYLE_SET_OWN_RULE_ONLY_VERSION,
|
|
104222
|
+
up(json2) {
|
|
104223
|
+
return json2;
|
|
104224
|
+
}
|
|
104225
|
+
};
|
|
104226
|
+
|
|
104214
104227
|
// ../../node_modules/css-tree/lib/generator/sourceMap.js
|
|
104215
104228
|
var import_source_map_generator = __toESM(require_source_map_generator(), 1);
|
|
104216
104229
|
var trackNodes = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
|
|
@@ -106968,6 +106981,7 @@ if (!registeredSchemaMigrations().has(20261110171151)) registerSchemaMigrations(
|
|
|
106968
106981
|
if (!registeredSchemaMigrations().has(20261112145536)) registerSchemaMigrations(nativeLintLocationsMigration);
|
|
106969
106982
|
if (!registeredSchemaMigrations().has(20261112154943)) registerSchemaMigrations(variantBooleansMigration);
|
|
106970
106983
|
if (!registeredSchemaMigrations().has(20261112163439)) registerSchemaMigrations(vendorLinkTypeMigration);
|
|
106984
|
+
if (!registeredSchemaMigrations().has(20261113131930)) registerSchemaMigrations(styleSetOwnRuleOnlyMigration);
|
|
106971
106985
|
|
|
106972
106986
|
// ../config/dist/capture/node-ops.js
|
|
106973
106987
|
var DEFAULT_WIDTH = 1600;
|
|
@@ -108240,6 +108254,7 @@ if (!registeredSchemaMigrations().has(20261015212722)) registerSchemaMigrations(
|
|
|
108240
108254
|
if (!registeredSchemaMigrations().has(20261015221052)) registerSchemaMigrations(motionJsonSchemaMigration);
|
|
108241
108255
|
if (!registeredSchemaMigrations().has(20261016135620)) registerSchemaMigrations(motionTypeOnlyMigration);
|
|
108242
108256
|
if (!registeredSchemaMigrations().has(20261015202345)) registerSchemaMigrations(componentElementSwapMigration);
|
|
108257
|
+
if (!registeredSchemaMigrations().has(20261113131930)) registerSchemaMigrations(styleSetOwnRuleOnlyMigration);
|
|
108243
108258
|
|
|
108244
108259
|
// ../config/dist/entities/system/defineComponent.js
|
|
108245
108260
|
function build(body) {
|