@yahoo/uds-create-cli 5.89.6 → 5.90.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/package.json +12 -12
- package/subprocess/transform-runner.mjs +76 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-create-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.90.1",
|
|
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.90.1",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.90.1",
|
|
37
|
+
"@yahoo/uds-create-types": "5.90.1",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.90.1",
|
|
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": 20261109205852,
|
|
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.90.1",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.90.1",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.90.1",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.90.1",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.90.1",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.90.1"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -83612,6 +83612,52 @@ var canvasCache = createSliceMemo({
|
|
|
83612
83612
|
})
|
|
83613
83613
|
});
|
|
83614
83614
|
|
|
83615
|
+
// ../config/dist/spec/id-props.js
|
|
83616
|
+
var NONE2 = [];
|
|
83617
|
+
var idPropsCache = createSliceMemo({
|
|
83618
|
+
kinds: ["component", "source"],
|
|
83619
|
+
compute: (_config) => /* @__PURE__ */ new Map()
|
|
83620
|
+
});
|
|
83621
|
+
function referencedPropName(target2) {
|
|
83622
|
+
const member = splitRef2(target2).member;
|
|
83623
|
+
if (!member?.startsWith("props/")) return void 0;
|
|
83624
|
+
const name = member.slice(6);
|
|
83625
|
+
return name && !name.includes("/") ? name : void 0;
|
|
83626
|
+
}
|
|
83627
|
+
function spaceOf(component, prop) {
|
|
83628
|
+
return `${component}#props/${prop}`;
|
|
83629
|
+
}
|
|
83630
|
+
function idProps({ config: config2, path: path2 }) {
|
|
83631
|
+
const parts = splitRef2(path2);
|
|
83632
|
+
if (parts.marked && parts.kind !== "component") return NONE2;
|
|
83633
|
+
const component = pathOf2(path2);
|
|
83634
|
+
const cache = idPropsCache(config2);
|
|
83635
|
+
const hit = cache.get(component);
|
|
83636
|
+
if (hit) return hit;
|
|
83637
|
+
const found = [];
|
|
83638
|
+
for (const [prop, decl] of Object.entries(resolveComponentProps(config2, component))) {
|
|
83639
|
+
if (!isPlainObject2(decl) || decl.type !== "string") continue;
|
|
83640
|
+
const unique3 = decl.uniqueId === true;
|
|
83641
|
+
const target2 = isRef2(decl.uniqueIdRef) ? decl.uniqueIdRef : void 0;
|
|
83642
|
+
const referenced = target2 ? referencedPropName(target2) : void 0;
|
|
83643
|
+
if (target2 && referenced) found.push({
|
|
83644
|
+
prop,
|
|
83645
|
+
space: spaceOf(pathOf2(target2), referenced),
|
|
83646
|
+
unique: unique3,
|
|
83647
|
+
ref: true
|
|
83648
|
+
});
|
|
83649
|
+
else if (unique3) found.push({
|
|
83650
|
+
prop,
|
|
83651
|
+
space: spaceOf(component, prop),
|
|
83652
|
+
unique: unique3,
|
|
83653
|
+
ref: false
|
|
83654
|
+
});
|
|
83655
|
+
}
|
|
83656
|
+
const answer = found.length > 0 ? found : NONE2;
|
|
83657
|
+
cache.set(component, answer);
|
|
83658
|
+
return answer;
|
|
83659
|
+
}
|
|
83660
|
+
|
|
83615
83661
|
// ../config/dist/spec/instance.js
|
|
83616
83662
|
var Instance = class {
|
|
83617
83663
|
/** The element's key in the spec. */
|
|
@@ -85220,7 +85266,19 @@ function propShapeWith(when) {
|
|
|
85220
85266
|
type: external_exports.literal("string"),
|
|
85221
85267
|
value: external_exports.string().optional(),
|
|
85222
85268
|
required: external_exports.boolean().optional(),
|
|
85269
|
+
uniqueId: external_exports.boolean().optional(),
|
|
85270
|
+
uniqueIdRef: refSchema.optional(),
|
|
85223
85271
|
when
|
|
85272
|
+
}).check((ctx) => {
|
|
85273
|
+
const { uniqueIdRef } = ctx.value;
|
|
85274
|
+
if (uniqueIdRef === void 0) return;
|
|
85275
|
+
if (kindOf2(uniqueIdRef) === "component" && referencedPropName(uniqueIdRef)) return;
|
|
85276
|
+
ctx.issues.push({
|
|
85277
|
+
code: "custom",
|
|
85278
|
+
input: ctx.value,
|
|
85279
|
+
path: ["uniqueIdRef"],
|
|
85280
|
+
message: `\`uniqueIdRef\` names the \`uniqueId\` prop whose ids this one holds, as a component prop member ref: \`{ "__ref": "component:Tabs/Tab#props/value" }\`, authored \`Component.ref('Tabs/Tab#props/value')\`. \`${uniqueIdRef.__ref}\` is not one.`
|
|
85281
|
+
});
|
|
85224
85282
|
}),
|
|
85225
85283
|
external_exports.strictObject({
|
|
85226
85284
|
type: external_exports.literal("number"),
|
|
@@ -85254,7 +85312,7 @@ var PROP_TYPES = [
|
|
|
85254
85312
|
"number",
|
|
85255
85313
|
"boolean"
|
|
85256
85314
|
];
|
|
85257
|
-
var PROP_DESCRIPTION = 'What the prop is. A style property the component exposes, `{ "type": "styleProperty", "value": { "__ref": "style-property:<name>" } }`, which is what a primitive\'s props mostly are and what makes a style rule\'s bag key valid on it; a closed set of names a style rule keys on, `{ "type": "variant", "value": ["sm", "lg"] }`, where a value that carries a label is written in place as `{ "value": "md", "label": "Medium" }`; content, `{ "type": "slot", "text": true }`, or a slot whose own value is a library member, `{ "type": "slot", "value": { "__ref": "icon:<library>" } }`, which code may also fill with the forms it lists under `code` (`["node", "element", "render"]`); or a plain `string`, `number` or `boolean`. `null` hides a prop an inherited layer would expose. A prop that applies only under a condition on a sibling carries `when`, the record a style rule uses: `{ "type": "string", "when": { "type": "color" } }` shows it for one value, `{ "when": { "type": ["default", "header"] } }` for several.';
|
|
85315
|
+
var PROP_DESCRIPTION = 'What the prop is. A style property the component exposes, `{ "type": "styleProperty", "value": { "__ref": "style-property:<name>" } }`, which is what a primitive\'s props mostly are and what makes a style rule\'s bag key valid on it; a closed set of names a style rule keys on, `{ "type": "variant", "value": ["sm", "lg"] }`, where a value that carries a label is written in place as `{ "value": "md", "label": "Medium" }`; content, `{ "type": "slot", "text": true }`, or a slot whose own value is a library member, `{ "type": "slot", "value": { "__ref": "icon:<library>" } }`, which code may also fill with the forms it lists under `code` (`["node", "element", "render"]`); or a plain `string`, `number` or `boolean`. An id no two instances share is `{ "type": "string", "uniqueId": true }`; a prop naming one adds `"uniqueIdRef": { "__ref": "component:<path>#props/<id>" }`, and with both is one per id. `null` hides a prop an inherited layer would expose. A prop that applies only under a condition on a sibling carries `when`, the record a style rule uses: `{ "type": "string", "when": { "type": "color" } }` shows it for one value, `{ "when": { "type": ["default", "header"] } }` for several.';
|
|
85258
85316
|
var Prop = defineSubEntity({
|
|
85259
85317
|
name: "prop",
|
|
85260
85318
|
label: "Prop",
|
|
@@ -87534,7 +87592,9 @@ var Component = Object.assign(ComponentEntity, {
|
|
|
87534
87592
|
/** The component under one coordinate of its matrix. */
|
|
87535
87593
|
cell: cellAt,
|
|
87536
87594
|
/** The component a design file's spec element places, with what the file put in its slots. */
|
|
87537
|
-
instance: instanceAt
|
|
87595
|
+
instance: instanceAt,
|
|
87596
|
+
/** The props that hold ids, and the set of ids each draws from. */
|
|
87597
|
+
idProps
|
|
87538
87598
|
});
|
|
87539
87599
|
function exampleProps(config2, componentPath) {
|
|
87540
87600
|
const props = config2.resolve("component", componentPath)?.toJSON()?.props ?? {};
|
|
@@ -90938,7 +90998,7 @@ var Entity = class {
|
|
|
90938
90998
|
};
|
|
90939
90999
|
|
|
90940
91000
|
// ../config/dist/framework/schema-version.js
|
|
90941
|
-
var CURRENT_SCHEMA_VERSION =
|
|
91001
|
+
var CURRENT_SCHEMA_VERSION = 20261109205852;
|
|
90942
91002
|
var SETTINGS_AS_KIND_VERSION = 20260908171448;
|
|
90943
91003
|
var SchemaVersionTooNew = class extends ConfigFormatError {
|
|
90944
91004
|
found;
|
|
@@ -90958,7 +91018,7 @@ function registerSchemaMigrations(...migrations) {
|
|
|
90958
91018
|
for (const migration of migrations) {
|
|
90959
91019
|
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.`);
|
|
90960
91020
|
if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
|
|
90961
|
-
if (migration.version >
|
|
91021
|
+
if (migration.version > 20261109205852) 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.`);
|
|
90962
91022
|
REGISTERED.set(migration.version, migration);
|
|
90963
91023
|
}
|
|
90964
91024
|
}
|
|
@@ -90989,7 +91049,7 @@ function pendingFor(version2, target2, options) {
|
|
|
90989
91049
|
return [...(options?.migrations ?? REGISTERED).values()].filter((m) => m.version > version2 && m.version <= target2).sort((a, b) => a.version - b.version);
|
|
90990
91050
|
}
|
|
90991
91051
|
function upgradeSerializedConfig(json2, options) {
|
|
90992
|
-
const target2 = options?.target ??
|
|
91052
|
+
const target2 = options?.target ?? 20261109205852;
|
|
90993
91053
|
const version2 = detectedWireVersion(json2);
|
|
90994
91054
|
if (version2 > target2) throw new SchemaVersionTooNew(version2, target2);
|
|
90995
91055
|
const raw = json2;
|
|
@@ -98183,7 +98243,7 @@ var Config = class Config2 {
|
|
|
98183
98243
|
* links from the provided sources. A declared `linkedKind` with no provided source throws. */
|
|
98184
98244
|
hydrateFrom(stored, options) {
|
|
98185
98245
|
const claimed = schemaVersionOf(stored);
|
|
98186
|
-
if (claimed >
|
|
98246
|
+
if (claimed > 20261109205852) throw new SchemaVersionTooNew(claimed);
|
|
98187
98247
|
const wire = upgradeSerializedConfig(stored);
|
|
98188
98248
|
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.`);
|
|
98189
98249
|
const leftover = wire.options;
|
|
@@ -101950,6 +102010,15 @@ var lintRulesByGroupMigration = {
|
|
|
101950
102010
|
}
|
|
101951
102011
|
};
|
|
101952
102012
|
|
|
102013
|
+
// ../config/dist/migrations/20261109205852_string_prop_unique_ids.js
|
|
102014
|
+
var STRING_PROP_UNIQUE_IDS_VERSION = 20261109205852;
|
|
102015
|
+
var stringPropUniqueIdsMigration = {
|
|
102016
|
+
version: STRING_PROP_UNIQUE_IDS_VERSION,
|
|
102017
|
+
up(json2) {
|
|
102018
|
+
return json2;
|
|
102019
|
+
}
|
|
102020
|
+
};
|
|
102021
|
+
|
|
101953
102022
|
// ../../node_modules/css-tree/lib/generator/sourceMap.js
|
|
101954
102023
|
var import_source_map_generator = __toESM(require_source_map_generator(), 1);
|
|
101955
102024
|
var trackNodes = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
|
|
@@ -104700,6 +104769,7 @@ if (!registeredSchemaMigrations().has(20261106185419)) registerSchemaMigrations(
|
|
|
104700
104769
|
if (!registeredSchemaMigrations().has(20261107213031)) registerSchemaMigrations(componentGetDetailMigration);
|
|
104701
104770
|
if (!registeredSchemaMigrations().has(20261108042210)) registerSchemaMigrations(tokenGetDetailMigration);
|
|
104702
104771
|
if (!registeredSchemaMigrations().has(20261109144822)) registerSchemaMigrations(lintRulesByGroupMigration);
|
|
104772
|
+
if (!registeredSchemaMigrations().has(20261109205852)) registerSchemaMigrations(stringPropUniqueIdsMigration);
|
|
104703
104773
|
|
|
104704
104774
|
// ../config/dist/capture/node-ops.js
|
|
104705
104775
|
var DEFAULT_WIDTH = 1600;
|