@yahoo/uds-create-cli 5.74.0 → 5.76.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.76.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.76.0",
|
|
36
|
+
"@yahoo/uds-create-loader": "5.76.0",
|
|
37
|
+
"@yahoo/uds-create-types": "5.76.0",
|
|
38
|
+
"@yahoo/uds-create-utils": "5.76.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": 20261104151013,
|
|
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.76.0",
|
|
58
|
+
"@yahoo/uds-create-cli-darwin-x64": "5.76.0",
|
|
59
|
+
"@yahoo/uds-create-cli-linux-arm64": "5.76.0",
|
|
60
|
+
"@yahoo/uds-create-cli-linux-x64": "5.76.0",
|
|
61
|
+
"@yahoo/uds-create-cli-linux-arm64-musl": "5.76.0",
|
|
62
|
+
"@yahoo/uds-create-cli-linux-x64-musl": "5.76.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -75843,7 +75843,7 @@ function virtualEntryPlugin(options) {
|
|
|
75843
75843
|
setup(build) {
|
|
75844
75844
|
build.onResolve(
|
|
75845
75845
|
{
|
|
75846
|
-
filter: /^\.\/(react-registry|react-catalog|react-providers|react-renderer)$/
|
|
75846
|
+
filter: /^\.\/(react-registry|react-catalog|react-providers|react-renderer|components-runtime)$/
|
|
75847
75847
|
},
|
|
75848
75848
|
(args) => ({
|
|
75849
75849
|
path: args.path.replace("./", ""),
|
|
@@ -75898,7 +75898,7 @@ function virtualEntryPlugin(options) {
|
|
|
75898
75898
|
});
|
|
75899
75899
|
build.onLoad({ filter: /.*/, namespace: "virtual" }, async (args) => {
|
|
75900
75900
|
const source = virtualModules[args.path];
|
|
75901
|
-
if (source) {
|
|
75901
|
+
if (source !== void 0) {
|
|
75902
75902
|
return {
|
|
75903
75903
|
contents: platform === "native" ? await compileNativeWorklets(source, `${args.path}.tsx`) : source,
|
|
75904
75904
|
loader: "tsx",
|
|
@@ -76274,6 +76274,13 @@ async function buildPreviewBundleWithLogLevel(options, logLevel) {
|
|
|
76274
76274
|
`export { registryComponents, registry, runtimeRegistry, glyphMembers, registryDescriptor } from './react-registry';`,
|
|
76275
76275
|
`export { UdsProviders, UdsActionBridge } from './react-providers';`,
|
|
76276
76276
|
`export { UdsRenderer } from './react-renderer';`,
|
|
76277
|
+
// The canvas puts a native frame in the page's modes through the same provider the
|
|
76278
|
+
// components read, so it has to be this bundle's instance of the runtime. It's read off the
|
|
76279
|
+
// namespace, so a runtime that declares none exports `undefined` instead of failing the build.
|
|
76280
|
+
...platform === "native-canvas" ? [
|
|
76281
|
+
`import * as __udsComponentRuntime from './${COMPONENT_RUNTIME_MODULE}';`,
|
|
76282
|
+
"export const NativeThemeProvider = __udsComponentRuntime.NativeThemeProvider;"
|
|
76283
|
+
] : [],
|
|
76277
76284
|
...nativeRegistration ? [
|
|
76278
76285
|
`import { UdsRenderer as __udsNativeRenderer } from './react-renderer';`,
|
|
76279
76286
|
`globalThis[${JSON.stringify(nativeRegistration.registerGlobal)}]({`,
|
|
@@ -70521,6 +70521,16 @@ var buildFields = external_exports.strictObject({
|
|
|
70521
70521
|
title: "React version",
|
|
70522
70522
|
description: `The React major the app this repo builds for runs. \`18\` wraps each emitted web component in \`forwardRef\`, so a call site's \`ref\` reaches its element. Unset, \`${BUILD_DEFAULTS.react}\`.`,
|
|
70523
70523
|
default: BUILD_DEFAULTS.react
|
|
70524
|
+
}).optional(),
|
|
70525
|
+
/**
|
|
70526
|
+
* Whether the component modules `uds build` writes carry the component data attributes:
|
|
70527
|
+
* `data-uds-component`, `data-uds-layer` and `data-uds-slot`, which Create's tools read to map an
|
|
70528
|
+
* app's rendered markup back to its components. Unset, off; `uds build --debug` turns it on for
|
|
70529
|
+
* one build.
|
|
70530
|
+
*/
|
|
70531
|
+
debug: external_exports.boolean().meta({
|
|
70532
|
+
title: "Debug",
|
|
70533
|
+
description: "Have `uds build` write the component data attributes (`data-uds-component`, `data-uds-layer`, `data-uds-slot`) on the elements components render. Create's tools read them to map the app's rendered markup back to its components, such as the canvas capture rebuilding a page as components. Unset, off; `uds build --debug` turns it on for one build."
|
|
70524
70534
|
}).optional()
|
|
70525
70535
|
}, { error: (issue2) => issue2.code === "unrecognized_keys" && issue2.keys.includes("include") ? "`settings.build.include` was removed: every source file under `inputDir` now ships by default. Delete it, and list any file to keep out in `settings.build.exclude`." : void 0 });
|
|
70526
70536
|
|
|
@@ -89862,7 +89872,7 @@ var Entity = class {
|
|
|
89862
89872
|
};
|
|
89863
89873
|
|
|
89864
89874
|
// ../config/dist/framework/schema-version.js
|
|
89865
|
-
var CURRENT_SCHEMA_VERSION =
|
|
89875
|
+
var CURRENT_SCHEMA_VERSION = 20261104151013;
|
|
89866
89876
|
var SETTINGS_AS_KIND_VERSION = 20260908171448;
|
|
89867
89877
|
var SchemaVersionTooNew = class extends ConfigFormatError {
|
|
89868
89878
|
found;
|
|
@@ -89882,7 +89892,7 @@ function registerSchemaMigrations(...migrations) {
|
|
|
89882
89892
|
for (const migration of migrations) {
|
|
89883
89893
|
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.`);
|
|
89884
89894
|
if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
|
|
89885
|
-
if (migration.version >
|
|
89895
|
+
if (migration.version > 20261104151013) 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.`);
|
|
89886
89896
|
REGISTERED.set(migration.version, migration);
|
|
89887
89897
|
}
|
|
89888
89898
|
}
|
|
@@ -89913,7 +89923,7 @@ function pendingFor(version2, target2, options) {
|
|
|
89913
89923
|
return [...(options?.migrations ?? REGISTERED).values()].filter((m) => m.version > version2 && m.version <= target2).sort((a, b) => a.version - b.version);
|
|
89914
89924
|
}
|
|
89915
89925
|
function upgradeSerializedConfig(json2, options) {
|
|
89916
|
-
const target2 = options?.target ??
|
|
89926
|
+
const target2 = options?.target ?? 20261104151013;
|
|
89917
89927
|
const version2 = detectedWireVersion(json2);
|
|
89918
89928
|
if (version2 > target2) throw new SchemaVersionTooNew(version2, target2);
|
|
89919
89929
|
const raw = json2;
|
|
@@ -96813,7 +96823,7 @@ var Config = class Config2 {
|
|
|
96813
96823
|
* links from the provided sources. A declared `linkedKind` with no provided source throws. */
|
|
96814
96824
|
hydrateFrom(stored, options) {
|
|
96815
96825
|
const claimed = schemaVersionOf(stored);
|
|
96816
|
-
if (claimed >
|
|
96826
|
+
if (claimed > 20261104151013) throw new SchemaVersionTooNew(claimed);
|
|
96817
96827
|
const wire = upgradeSerializedConfig(stored);
|
|
96818
96828
|
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.`);
|
|
96819
96829
|
const leftover = wire.options;
|
|
@@ -100450,6 +100460,15 @@ var sourcesAuthoringMigration = {
|
|
|
100450
100460
|
}
|
|
100451
100461
|
};
|
|
100452
100462
|
|
|
100463
|
+
// ../config/dist/migrations/20261104151013_build_debug.js
|
|
100464
|
+
var BUILD_DEBUG_VERSION = 20261104151013;
|
|
100465
|
+
var buildDebugMigration = {
|
|
100466
|
+
version: BUILD_DEBUG_VERSION,
|
|
100467
|
+
up(json2) {
|
|
100468
|
+
return json2;
|
|
100469
|
+
}
|
|
100470
|
+
};
|
|
100471
|
+
|
|
100453
100472
|
// ../../node_modules/css-tree/lib/generator/sourceMap.js
|
|
100454
100473
|
var import_source_map_generator = __toESM(require_source_map_generator(), 1);
|
|
100455
100474
|
var trackNodes = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
|
|
@@ -103194,6 +103213,7 @@ if (!registeredSchemaMigrations().has(20261102143821)) registerSchemaMigrations(
|
|
|
103194
103213
|
if (!registeredSchemaMigrations().has(20261102185610)) registerSchemaMigrations(linkReplaceMigration);
|
|
103195
103214
|
if (!registeredSchemaMigrations().has(20261102193912)) registerSchemaMigrations(mapPropsFromMigration);
|
|
103196
103215
|
if (!registeredSchemaMigrations().has(20261103115059)) registerSchemaMigrations(sourcesAuthoringMigration);
|
|
103216
|
+
if (!registeredSchemaMigrations().has(20261104151013)) registerSchemaMigrations(buildDebugMigration);
|
|
103197
103217
|
|
|
103198
103218
|
// ../config/dist/capture/node-ops.js
|
|
103199
103219
|
var DEFAULT_WIDTH = 1600;
|