@bake-native/core 0.1.0-rc.1 → 0.1.0-rc.2

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.
@@ -1,4 +1,4 @@
1
- THIRD-PARTY NOTICES: @bake-native/core 0.1.0-rc.1
1
+ THIRD-PARTY NOTICES: @bake-native/core 0.1.0-rc.2
2
2
  Generated by tools/release/third-party.mjs (https://github.com/gronxb/bake-native). Do not edit.
3
3
 
4
4
  @bake-native/core is licensed under the MIT License (LICENSE). It also contains the third-party
package/compat.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$comment": "The version table: which runtime, host protocol, Hermes bytecode, schemas and Octane this @bake-native/core release builds for, and the toolchain package each host installs (its bin/ tools, apps and libraries, and apple/: the prebuilt Apple runtime iOS and macOS apps link). bake build refuses any other combination (src/compat.ts); tools/check-versions.mjs keeps it equal to the Rust core, the Swift host, the Hermes pin and the toolchain packages. Change versions with tools/release/version.mjs.",
3
- "@bake-native/core": "0.1.0-rc.1",
3
+ "@bake-native/core": "0.1.0-rc.2",
4
4
  "runtime": {
5
- "version": "0.1.0-rc.1",
5
+ "version": "0.1.0-rc.2",
6
6
  "series": "0.1"
7
7
  },
8
8
  "hostProtocol": 4,
package/dist/bake.mjs CHANGED
@@ -3,12 +3,12 @@ import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
3
3
  import { closeSync, copyFileSync, cpSync, existsSync, fstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
4
4
  import { basename, dirname, extname, join, relative, resolve, sep } from "node:path";
5
5
  import { C as flag, D as integer, E as float, F as optional, I as withDefault, M as or, N as map, O as string, P as multiple, S as constant, T as choice, _ as inspectRequest, b as argument, g as inspectParser, j as object, l as inspectParsed, w as option, wt as message, x as command } from "./client-Cm7o6dQd.mjs";
6
- import { c as TARGETS, d as targetList$1, f as writeMobileApp, l as loadBakeConfig, n as aarPackageManifest, r as checkAar, s as DEFAULT_CONFIG_TARGETS, t as run, u as resolveTargets } from "./run-BtyJGAQB.mjs";
7
- import { A as writeRegistration, C as bundleAppModules, D as registrationFiles, E as checkoutRelative, G as toolchainFor, I as repo, J as execToolBuffer, L as toolProcessEnv, N as defaultHermesc, P as nativeTool, R as COMPAT, S as appViewUnit, T as bundleViews, W as toolchainDir, Z as NOTICES_JSON, a as androidIdentity, b as FAMILY, d as thirdPartyDeclarations, et as mergeComponents, k as targetNativeDeps, n as packageConfig, nt as readNoticesJson, q as execTool, rt as writeOutputNotices, s as integrateThirdParty, tt as placedAt, w as bundleModules, x as appModuleSources } from "./package-D2aYD6A4.mjs";
6
+ import { c as TARGETS, d as targetList$1, f as writeMobileApp, l as loadBakeConfig, n as aarPackageManifest, r as checkAar, s as DEFAULT_CONFIG_TARGETS, t as run, u as resolveTargets } from "./run-C44lJhc4.mjs";
7
+ import { A as writeRegistration, C as bundleAppModules, D as registrationFiles, E as checkoutRelative, G as toolchainFor, I as repo, J as execToolBuffer, L as toolProcessEnv, N as defaultHermesc, P as nativeTool, R as COMPAT, S as appViewUnit, T as bundleViews, W as toolchainDir, Z as NOTICES_JSON, a as androidIdentity, b as FAMILY, d as thirdPartyDeclarations, et as mergeComponents, k as targetNativeDeps, n as packageConfig, nt as readNoticesJson, q as execTool, rt as writeOutputNotices, s as integrateThirdParty, tt as placedAt, w as bundleModules, x as appModuleSources } from "./package-CYWHh6C1.mjs";
8
8
  import { fileURLToPath, pathToFileURL } from "node:url";
9
9
  import { execFileSync } from "node:child_process";
10
10
  import { createHash } from "node:crypto";
11
- import { A as moduleDir, C as MODULES_DIR, D as compareVersions, E as buildRegistry, F as registryLocation, I as satisfies, J as unpinnedPackages, L as sha256$1, M as openRegistry, N as parseRequest, O as filesFor, P as readLock, S as LOCK_FILE, T as appModules, Ut as packageRoot$1, X as merge3, Y as diffStat, Z as unifiedDiff, _ as specsSchema, at as releaseCheck, f as generateSpecs, j as normalize$1, k as lockEntry, o as viewFiles, r as viewCatalog, s as viewIssues, t as readViewSpec, u as appModuleSpecs, x as ALL_TARGETS, z as writeLock } from "./native-views-BQ8TtbQj.mjs";
11
+ import { A as moduleDir, C as MODULES_DIR, D as compareVersions, E as buildRegistry, F as registryLocation, I as satisfies, J as unpinnedPackages, L as sha256$1, M as openRegistry, N as parseRequest, O as filesFor, P as readLock, S as LOCK_FILE, T as appModules, Wt as packageRoot$1, X as merge3, Y as diffStat, Z as unifiedDiff, _ as specsSchema, f as generateSpecs, j as normalize$1, k as lockEntry, o as viewFiles, ot as releaseCheck, r as viewCatalog, s as viewIssues, t as readViewSpec, u as appModuleSpecs, x as ALL_TARGETS, z as writeLock } from "./native-views-COg9tj_5.mjs";
12
12
  import { n as loadReactCompiler, r as selectRenderer } from "./build-tools-Dxyl6XAf.mjs";
13
13
  // src/apple-runtime.ts
14
14
  /** The runtime's files in the toolchain package's apple/ directory. */
@@ -2128,17 +2128,17 @@ async function main() {
2128
2128
  }
2129
2129
  });
2130
2130
  switch (input.command) {
2131
- case "build": return (await import("./build-BrSFpaK1.mjs")).buildCommand(await resolveBuildOptions(input));
2131
+ case "build": return (await import("./build-CTvDcJg_.mjs")).buildCommand(await resolveBuildOptions(input));
2132
2132
  case "package": {
2133
2133
  const opts = await resolveBuildOptions(input);
2134
- const { buildCommand, packageCommand } = await import("./build-BrSFpaK1.mjs");
2134
+ const { buildCommand, packageCommand } = await import("./build-CTvDcJg_.mjs");
2135
2135
  return input.standalone ? buildCommand(opts) : packageCommand(opts);
2136
2136
  }
2137
2137
  case "check": {
2138
2138
  const root = resolve(input.root);
2139
2139
  const config = await loadBakeConfig(root);
2140
2140
  const targets = resolveTargets(input.targets, config, [...platforms]);
2141
- return (await import("./build-BrSFpaK1.mjs")).checkCommand({
2141
+ return (await import("./build-CTvDcJg_.mjs")).checkCommand({
2142
2142
  root,
2143
2143
  targets,
2144
2144
  json: input.json,
@@ -2156,7 +2156,7 @@ async function main() {
2156
2156
  case "aot": {
2157
2157
  const root = resolve(input.root);
2158
2158
  const config = await loadBakeConfig(root);
2159
- return (await import("./build-BrSFpaK1.mjs")).aotCommand({
2159
+ return (await import("./build-CTvDcJg_.mjs")).aotCommand({
2160
2160
  root,
2161
2161
  renderer: config?.config.renderer,
2162
2162
  json: input.json,
@@ -2165,7 +2165,7 @@ async function main() {
2165
2165
  });
2166
2166
  }
2167
2167
  case "create": return createCommand(input);
2168
- case "dev": return (await import("./dev-xZblYmDc.mjs")).devCommand(await resolveDevOptions(input));
2168
+ case "dev": return (await import("./dev-CyIzIurx.mjs")).devCommand(await resolveDevOptions(input));
2169
2169
  case "add":
2170
2170
  case "diff":
2171
2171
  case "upgrade":
@@ -2191,7 +2191,7 @@ async function main() {
2191
2191
  const args = [bundle];
2192
2192
  for (const [key, value] of Object.entries(options)) if (value !== void 0) args.push("--" + key, String(value));
2193
2193
  const hermesc = defaultHermesc();
2194
- const prelude = hermesc ? { BAKE_FRAME_PRELUDE: (await import("./build-BrSFpaK1.mjs")).bakePrelude(hermesc) } : {};
2194
+ const prelude = hermesc ? { BAKE_FRAME_PRELUDE: (await import("./build-CTvDcJg_.mjs")).bakePrelude(hermesc) } : {};
2195
2195
  process.stdout.write(execToolBuffer(nativeTool("bake-snap"), args, {
2196
2196
  env: {
2197
2197
  ...toolProcessEnv(),
@@ -1 +1 @@
1
- export { n as aotCommand, i as bakePrelude, a as buildCommand, o as buildTargets, c as checkCommand, l as packageCommand } from "./build-vAPG2xQv.mjs";
1
+ export { n as aotCommand, i as bakePrelude, a as buildCommand, o as buildTargets, c as checkCommand, l as packageCommand } from "./build-CoK3bspu.mjs";
@@ -8,10 +8,10 @@ import { tmpdir } from "node:os";
8
8
  import { fileURLToPath, pathToFileURL } from "node:url";
9
9
  import { createContext, runInContext } from "node:vm";
10
10
  import { performance } from "node:perf_hooks";
11
- import { $ as bundleComponents, A as writeRegistration, D as registrationFiles, E as checkoutRelative, F as nativeTools, G as toolchainFor, H as hermescPackage, I as repo, L as toolProcessEnv, M as NATIVE_RENDERER, O as targetFiles, P as nativeTool, R as COMPAT, S as appViewUnit, V as hermescBytecode, X as NOTICES, Y as toolTimeout, Z as NOTICES_JSON, _ as run, b as FAMILY, et as mergeComponents, f as TARGET_SLICES, g as productName, h as packageSwift, j as implementationIssues, k as targetNativeDeps, m as buildPackageXCFramework, n as packageConfig, nt as readNoticesJson, p as buildAppXCFramework, q as execTool, r as packageManifest, rt as writeOutputNotices, t as RUNTIME_VERSION, tt as placedAt, u as rangeAccepts, v as runtimeNoticeFiles, x as appModuleSources, y as zipForSwiftPM, z as assertCompatible } from "./package-D2aYD6A4.mjs";
11
+ import { $ as bundleComponents, A as writeRegistration, D as registrationFiles, E as checkoutRelative, F as nativeTools, G as toolchainFor, H as hermescPackage, I as repo, L as toolProcessEnv, M as NATIVE_RENDERER, O as targetFiles, P as nativeTool, R as COMPAT, S as appViewUnit, V as hermescBytecode, X as NOTICES, Y as toolTimeout, Z as NOTICES_JSON, _ as run, b as FAMILY, et as mergeComponents, f as TARGET_SLICES, g as productName, h as packageSwift, j as implementationIssues, k as targetNativeDeps, m as buildPackageXCFramework, n as packageConfig, nt as readNoticesJson, p as buildAppXCFramework, q as execTool, r as packageManifest, rt as writeOutputNotices, t as RUNTIME_VERSION, tt as placedAt, u as rangeAccepts, v as runtimeNoticeFiles, x as appModuleSources, y as zipForSwiftPM, z as assertCompatible } from "./package-CYWHh6C1.mjs";
12
12
  import { createRequire } from "node:module";
13
13
  import { r as selectRenderer, t as loadBuildTools } from "./build-tools-Dxyl6XAf.mjs";
14
- import { B as DEPS_RULE, Bt as usesVisibility, Ct as lineStartsOf, Et as originalPosition, Ft as usesDialogs, G as packageDepIssues, Ht as usesWebFetch, It as usesElementApi, J as unpinnedPackages, Lt as usesPageElements, Mt as swiftUiTargetMessage, Nt as uiIssues, Ot as refineLine, P as readLock, Pt as usesCustomProperties, Q as FIRST_PARTY_MODULES, R as verifyModules, Rt as usesPopover, S as LOCK_FILE, St as importLine, T as appModules, Tt as markupIssues, U as nativeDepComponents, Ut as packageRoot, V as NativeDepsError, Vt as usesWebCrypto, _t as dialogWarnings, b as webSpec, bt as headerIconIssues, c as viewRequires, d as calledSpecs, et as bundleRequires, gt as decodeMappings, ht as deadBranches, jt as swiftUiIssues, kt as rootPropParams, m as parseModuleSpec, n as usedViews, nt as cssProperties, pt as componentDeclarations, r as viewCatalog, s as viewIssues, tt as checkUses, u as appModuleSpecs, ut as allowed, vt as freeReferences, wt as liveReferences, xt as hostEmitIssues, yt as globalIssues, zt as usesViewRef } from "./native-views-BQ8TtbQj.mjs";
14
+ import { At as rootPropParams, B as DEPS_RULE, Bt as usesViewRef, Ct as importLine, Dt as originalPosition, Et as markupIssues, Ft as usesCustomProperties, G as packageDepIssues, Ht as usesWebCrypto, It as usesDialogs, J as unpinnedPackages, Lt as usesElementApi, Mt as swiftUiIssues, Nt as swiftUiTargetMessage, P as readLock, Pt as uiIssues, Q as FIRST_PARTY_MODULES, R as verifyModules, Rt as usesPageElements, S as LOCK_FILE, St as hostEmitIssues, T as appModules, Tt as liveReferences, U as nativeDepComponents, Ut as usesWebFetch, V as NativeDepsError, Vt as usesVisibility, Wt as packageRoot, _t as decodeMappings, b as webSpec, bt as globalIssues, c as viewRequires, d as calledSpecs, dt as allowed, et as bundleRequires, gt as deadBranches, kt as refineLine, m as parseModuleSpec, mt as componentDeclarations, n as usedViews, nt as cssProperties, r as viewCatalog, s as viewIssues, tt as checkUses, u as appModuleSpecs, vt as dialogWarnings, wt as lineStartsOf, xt as headerIconIssues, yt as freeReferences, zt as usesPopover } from "./native-views-COg9tj_5.mjs";
15
15
  import { r as scope_exports } from "./scope-8W2aIuQ9.mjs";
16
16
  import { i as intlUses, n as HERMES_TARGETS, r as intlMessage } from "./intl-ROnAp2qO.mjs";
17
17
  // lower-views.mjs
package/dist/compiler.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { parseSync } from "@tsrx/oxc/parser";
2
- import { At as styleCss, Ct as lineStartsOf, Dt as patternNames, Gt as checkElement, a as viewDeclarations, dt as checkImageSourceSyntax, ft as checkSafeAreaEdgesSyntax, gt as decodeMappings, i as viewClientParts, lt as VIEW_ELEMENTS, mt as constNumber, st as SUPPORT } from "./native-views-BQ8TtbQj.mjs";
2
+ import { Kt as checkElement, Ot as patternNames, _t as decodeMappings, a as viewDeclarations, ct as SUPPORT, ft as checkImageSourceSyntax, ht as constNumber, i as viewClientParts, jt as styleCss, pt as checkSafeAreaEdgesSyntax, ut as VIEW_ELEMENTS, wt as lineStartsOf } from "./native-views-COg9tj_5.mjs";
3
3
  import { n as UI_SWIFT_STYLE_KEYS, t as UI_COMPONENTS } from "./scope-8W2aIuQ9.mjs";
4
4
  export { SUPPORT, UI_COMPONENTS, UI_SWIFT_STYLE_KEYS, VIEW_ELEMENTS, checkElement, checkImageSourceSyntax, checkSafeAreaEdgesSyntax, constNumber, decodeMappings, lineStartsOf, parseSync, patternNames, styleCss, viewClientParts, viewDeclarations };
@@ -4,8 +4,8 @@ import { createServer } from "node:http";
4
4
  import { basename, extname, join, resolve, sep } from "node:path";
5
5
  import { performance } from "node:perf_hooks";
6
6
  import { promisify } from "node:util";
7
- import { o as buildTargets } from "./build-vAPG2xQv.mjs";
8
- import { I as repo, U as packagedTool } from "./package-D2aYD6A4.mjs";
7
+ import { o as buildTargets } from "./build-CoK3bspu.mjs";
8
+ import { I as repo, U as packagedTool } from "./package-CYWHh6C1.mjs";
9
9
  // src/devices.mjs
10
10
  /** The booted simulator bake dev uses: `udid` when given (it must be booted), else the only booted one. */
11
11
  function pickSimulator(devices, udid) {
@@ -3611,6 +3611,13 @@ function defaultRuntimeRange(version) {
3611
3611
  const [major, minor, patch] = parseVersion$1(version);
3612
3612
  return major === 0 ? `>=0.${minor}.${patch} <0.${minor + 1}.0` : `>=${major}.${minor}.${patch} <${major + 1}.0.0`;
3613
3613
  }
3614
+ function frameworkBundleVersions(version) {
3615
+ const short = version.split(/[-+]/, 1)[0];
3616
+ return {
3617
+ CFBundleShortVersionString: short,
3618
+ CFBundleVersion: short.replace(/^0(?=\.)/, "1")
3619
+ };
3620
+ }
3614
3621
  function parseVersion$1(v) {
3615
3622
  const m = /^(\d+)\.(\d+)\.(\d+)/.exec(String(v ?? "").trim());
3616
3623
  if (!m) throw new Error(`"${v}" is not a version (x.y.z)`);
@@ -4709,14 +4716,16 @@ function compareVersions(a, b) {
4709
4716
  }
4710
4717
  /** Does `version` satisfy `range`? Ranges: `*`, `x.y.z`, `>=x.y.z`, `^x.y.z` (same major; 0.y: same minor), joined by spaces (all must hold). */
4711
4718
  function satisfies(version, range) {
4719
+ const prerelease = /^(\d+\.\d+\.\d+)-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*$/.exec(String(version));
4720
+ const base = prerelease?.[1] ?? version;
4712
4721
  return String(range ?? "*").trim().split(/\s+/).every((part) => {
4713
4722
  if (part === "*" || part === "") return true;
4714
4723
  const m = /^(>=|\^|=)?(\d+\.\d+\.\d+)$/.exec(part);
4715
4724
  if (!m) throw new Error(`unsupported version range "${part}" (use *, x.y.z, >=x.y.z or ^x.y.z)`);
4716
- const c = compareVersions(version, m[2]);
4725
+ const c = compareVersions(base, m[2]) || (prerelease ? -1 : 0);
4717
4726
  if (m[1] === ">=") return c >= 0;
4718
4727
  if (m[1] === "^") {
4719
- const [vm, vn] = parseVersion(version);
4728
+ const [vm, vn] = parseVersion(base);
4720
4729
  const [rm, rn] = parseVersion(m[2]);
4721
4730
  return c >= 0 && vm === rm && (rm !== 0 || vn === rn);
4722
4731
  }
@@ -7957,8 +7966,8 @@ const APP_VIEW_TARGETS = {
7957
7966
  };
7958
7967
  /**
7959
7968
  * Every view an app can use: @bake-native/core's (native-support.json `views`) and the app's own
7960
- * (`<root>/native/views/<Name>.view.json`, implementations in its package.json
7961
- * `"bakenative": { "views": { "<Name>": { "apple" | "android": <path> } } }`).
7969
+ * (`<root>/native/views/<Name>.native.ts`, implementations in `native/views/<kebab-name>/<family>`
7970
+ * unless overridden by package.json `bakenative.views.<Name>.<family>`).
7962
7971
  * Returns [{ name, tag, signature, file, id, targets, why, instead, build, source }] sorted by name.
7963
7972
  * `support`: the parsed native-support.json; `packageRoot`: @bake-native/core's directory.
7964
7973
  */
@@ -8000,8 +8009,13 @@ function viewCatalog(root, { support, packageRoot, readFile, listDir, exists })
8000
8009
  for (const f of listDir(dir).filter(isViewSpecFile).sort()) {
8001
8010
  const v = readViewSpec(readFile(`${dir}/${f}`), `native/views/${f}`);
8002
8011
  const impl = impls[v.name] ?? {};
8003
- const families = Object.keys(APP_VIEW_TARGETS).filter((fam) => typeof impl[fam] === "string");
8004
- const targets = ["web", ...families.flatMap((fam) => APP_VIEW_TARGETS[fam])];
8012
+ const build = {};
8013
+ for (const fam of Object.keys(APP_VIEW_TARGETS)) {
8014
+ const path = `native/views/${kebab(v.name)}/${fam}`;
8015
+ if (typeof impl[fam] === "string") build[fam] = { path: impl[fam] };
8016
+ else if (exists(`${root}/${path}`)) build[fam] = { path };
8017
+ }
8018
+ const targets = ["web", ...Object.keys(build).flatMap((fam) => APP_VIEW_TARGETS[fam])];
8005
8019
  add({
8006
8020
  name: v.name,
8007
8021
  tag: v.tag,
@@ -8010,9 +8024,9 @@ function viewCatalog(root, { support, packageRoot, readFile, listDir, exists })
8010
8024
  file: `native/views/${f}`,
8011
8025
  id: `view-${kebab(v.name)}`,
8012
8026
  targets,
8013
- why: `the app declares no implementation for this target in package.json "bakenative".views.${v.name}`,
8014
- instead: `implement the ${v.name} spec for this target and declare it in package.json, or branch on import.meta.env.BAKE_TARGET`,
8015
- build: Object.fromEntries(families.map((fam) => [fam, { path: impl[fam] }])),
8027
+ why: "the app has no implementation for this target",
8028
+ instead: `implement the ${v.name} spec in native/views/${kebab(v.name)}/<family> or set bakenative.views.${v.name} in package.json, or branch on import.meta.env.BAKE_TARGET`,
8029
+ build,
8016
8030
  source: "app"
8017
8031
  });
8018
8032
  }
@@ -8043,4 +8057,4 @@ function viewIssues(used, catalog, target) {
8043
8057
  function viewRequires(used, catalog) {
8044
8058
  return Object.fromEntries(used.map((n) => [n, catalog.find((v) => v.name === n).signature]));
8045
8059
  }
8046
- export { RUNTIME_PROVIDES as $, moduleDir as A, styleCss as At, DEPS_RULE as B, usesVisibility as Bt, MODULES_DIR as C, lineStartsOf as Ct, compareVersions as D, patternNames as Dt, buildRegistry as E, originalPosition as Et, registryLocation as F, usesDialogs as Ft, packageDepIssues as G, checkElement as Gt, mergeNativeDeps as H, usesWebFetch as Ht, satisfies as I, usesElementApi as It, unpinnedPackages as J, readNativeDeps as K, sha256 as L, usesPageElements as Lt, openRegistry as M, swiftUiTargetMessage as Mt, parseRequest as N, uiIssues as Nt, filesFor as O, refineLine as Ot, readLock as P, usesCustomProperties as Pt, FIRST_PARTY_MODULES as Q, verifyModules as R, usesPopover as Rt, LOCK_FILE as S, importLine as St, appModules as T, markupIssues as Tt, nativeDepComponents as U, packageRoot as Ut, NativeDepsError as V, usesWebCrypto as Vt, nativeDepLibraries as W, readPackageJson as Wt, merge3 as X, diffStat as Y, unifiedDiff as Z, specsSchema as _, dialogWarnings as _t, viewDeclarations as a, releaseCheck as at, webSpec as b, headerIconIssues as bt, viewRequires as c, SYSTEM_MODULES as ct, calledSpecs as d, checkImageSourceSyntax as dt, bundleRequires as et, generateSpecs as f, checkSafeAreaEdgesSyntax as ft, snake$1 as g, decodeMappings as gt, rustSpec as h, deadBranches as ht, viewClientParts as i, memberSignatures as it, normalize as j, swiftUiIssues as jt, lockEntry as k, rootPropParams as kt, appModuleFiles as l, VIEW_ELEMENTS as lt, parseModuleSpec as m, constNumber as mt, usedViews as n, cssProperties as nt, viewFiles as o, satisfies$1 as ot, kotlinSpec as p, componentDeclarations as pt, unitPath as q, viewCatalog as r, defaultRuntimeRange as rt, viewIssues as s, SUPPORT as st, readViewSpec as t, checkUses as tt, appModuleSpecs as u, allowed as ut, swiftBakeNativeImports as v, freeReferences as vt, OFFICIAL as w, liveReferences as wt, ALL_TARGETS as x, hostEmitIssues as xt, swiftSpec as y, globalIssues as yt, writeLock as z, usesViewRef as zt };
8060
+ export { RUNTIME_PROVIDES as $, moduleDir as A, rootPropParams as At, DEPS_RULE as B, usesViewRef as Bt, MODULES_DIR as C, importLine as Ct, compareVersions as D, originalPosition as Dt, buildRegistry as E, markupIssues as Et, registryLocation as F, usesCustomProperties as Ft, packageDepIssues as G, readPackageJson as Gt, mergeNativeDeps as H, usesWebCrypto as Ht, satisfies as I, usesDialogs as It, unpinnedPackages as J, readNativeDeps as K, checkElement as Kt, sha256 as L, usesElementApi as Lt, openRegistry as M, swiftUiIssues as Mt, parseRequest as N, swiftUiTargetMessage as Nt, filesFor as O, patternNames as Ot, readLock as P, uiIssues as Pt, FIRST_PARTY_MODULES as Q, verifyModules as R, usesPageElements as Rt, LOCK_FILE as S, hostEmitIssues as St, appModules as T, liveReferences as Tt, nativeDepComponents as U, usesWebFetch as Ut, NativeDepsError as V, usesVisibility as Vt, nativeDepLibraries as W, packageRoot as Wt, merge3 as X, diffStat as Y, unifiedDiff as Z, specsSchema as _, decodeMappings as _t, viewDeclarations as a, memberSignatures as at, webSpec as b, globalIssues as bt, viewRequires as c, SUPPORT as ct, calledSpecs as d, allowed as dt, bundleRequires as et, generateSpecs as f, checkImageSourceSyntax as ft, snake$1 as g, deadBranches as gt, rustSpec as h, constNumber as ht, viewClientParts as i, frameworkBundleVersions as it, normalize as j, styleCss as jt, lockEntry as k, refineLine as kt, appModuleFiles as l, SYSTEM_MODULES as lt, parseModuleSpec as m, componentDeclarations as mt, usedViews as n, cssProperties as nt, viewFiles as o, releaseCheck as ot, kotlinSpec as p, checkSafeAreaEdgesSyntax as pt, unitPath as q, viewCatalog as r, defaultRuntimeRange as rt, viewIssues as s, satisfies$1 as st, readViewSpec as t, checkUses as tt, appModuleSpecs as u, VIEW_ELEMENTS as ut, swiftBakeNativeImports as v, dialogWarnings as vt, OFFICIAL as w, lineStartsOf as wt, ALL_TARGETS as x, headerIconIssues as xt, swiftSpec as y, freeReferences as yt, writeLock as z, usesPopover as zt };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@bake-native/octane",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "peerDependencies": {}
5
5
  }
@@ -1,4 +1,4 @@
1
- import { $ as RUNTIME_PROVIDES, H as mergeNativeDeps, K as readNativeDeps, P as readLock, Ut as packageRoot$1, W as nativeDepLibraries, Wt as readPackageJson, _ as specsSchema, ct as SYSTEM_MODULES, d as calledSpecs, g as snake, h as rustSpec, it as memberSignatures, l as appModuleFiles, o as viewFiles, ot as satisfies, p as kotlinSpec, q as unitPath, rt as defaultRuntimeRange, t as readViewSpec, u as appModuleSpecs, v as swiftBakeNativeImports, y as swiftSpec } from "./native-views-BQ8TtbQj.mjs";
1
+ import { $ as RUNTIME_PROVIDES, Gt as readPackageJson, H as mergeNativeDeps, K as readNativeDeps, P as readLock, W as nativeDepLibraries, Wt as packageRoot$1, _ as specsSchema, at as memberSignatures, d as calledSpecs, g as snake, h as rustSpec, it as frameworkBundleVersions, l as appModuleFiles, lt as SYSTEM_MODULES, o as viewFiles, p as kotlinSpec, q as unitPath, rt as defaultRuntimeRange, st as satisfies, t as readViewSpec, u as appModuleSpecs, v as swiftBakeNativeImports, y as swiftSpec } from "./native-views-COg9tj_5.mjs";
2
2
  import { chmodSync, closeSync, copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
3
3
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
@@ -1754,8 +1754,7 @@ async function buildFramework({ module, slice, swift, cxx = [], includes = [], f
1754
1754
  CFBundleInfoDictionaryVersion: "6.0",
1755
1755
  CFBundleName: module,
1756
1756
  CFBundlePackageType: "FMWK",
1757
- CFBundleShortVersionString: version,
1758
- CFBundleVersion: version,
1757
+ ...frameworkBundleVersions(version),
1759
1758
  CFBundleSupportedPlatforms: [s.platform],
1760
1759
  ...s.os === "mac" ? { LSMinimumSystemVersion: MACOS_MIN } : { MinimumOSVersion: IOS_MIN }
1761
1760
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bake-native/react",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "peerDependencies": {
5
5
  "react": "^19.3.0",
6
6
  "react-dom": "^19.3.0"
@@ -1,6 +1,6 @@
1
1
  import { t as bundledFonts } from "./config-B1W8gfZY.mjs";
2
2
  import { $ as createInputTrace, A as longestMatch, B as hiddenCommandAliasesKey, C as flag, Ct as lineBreak, Dt as value, Et as text, F as optional, G as collectExplicitSourceValuesAsync, H as collectRootOptionNames, I as withDefault, J as attemptParseSync, K as createDependencyRuntimeContext, L as getJoinedFileSuggestion, O as string, Ot as cacheTerminalTheme, P as multiple, Q as getDocPageForConsumedPrefix, R as completeOrExtractPhase2Seed, S as constant, St as formatMessage, Tt as optionName, U as projectCommandUsage, V as collectActiveOptionNames, W as collectExplicitSourceValues, X as createParserContext, Y as createEffectfulCompletionSession, Z as getDocPage, _t as validateMetaNameCollisions, at as minimumUsageWidth, b as argument, bt as injectAnnotations, ct as spaceAfterLabel, dt as formatUsageTerm, et as dispatchByMode, ft as isSuggestionHidden, gt as validateLabel, ht as validateContextIds, it as hasAutomaticWidth, j as object, k as group$2, kt as renderTerminalTerm, lt as cloneUsage, mt as validateCommandNames, nt as isDocEntryHidden, ot as withAutomaticWidth, pt as normalizeUsage, q as attemptParseAsync, rt as renderErrorMessage, st as measureText, tt as formatDocPage, ut as formatUsage, vt as validateOptionNames, w as option, wt as message, x as command, xt as commandLine, yt as validateProgramName$1, z as allowDuplicateLeadingCommandNamesKey } from "./client-Cm7o6dQd.mjs";
3
- import { Q as appEntries, i as ANDROID_RUNTIME, l as parseRange, o as formatRange, u as rangeAccepts } from "./package-D2aYD6A4.mjs";
3
+ import { Q as appEntries, i as ANDROID_RUNTIME, l as parseRange, o as formatRange, u as rangeAccepts } from "./package-CYWHh6C1.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import fs, { existsSync, mkdirSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
6
6
  import path, { basename, dirname, extname, isAbsolute, join, parse as parse$1, relative, resolve, sep } from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bake-native/core",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "description": "Build and run baked first frames on web, iOS, Android, macOS and Windows with the bake CLI.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -135,10 +135,10 @@
135
135
  },
136
136
  "types": "./index.d.ts",
137
137
  "optionalDependencies": {
138
- "@bake-native/toolchain-darwin-arm64": "0.1.0-rc.1",
139
- "@bake-native/toolchain-darwin-x64": "0.1.0-rc.1",
140
- "@bake-native/toolchain-linux-x64": "0.1.0-rc.1",
141
- "@bake-native/toolchain-win32-x64": "0.1.0-rc.1"
138
+ "@bake-native/toolchain-darwin-x64": "0.1.0-rc.2",
139
+ "@bake-native/toolchain-linux-x64": "0.1.0-rc.2",
140
+ "@bake-native/toolchain-darwin-arm64": "0.1.0-rc.2",
141
+ "@bake-native/toolchain-win32-x64": "0.1.0-rc.2"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "runtime": "0.1.0-rc.1",
3
+ "runtime": "0.1.0-rc.2",
4
4
  "hostProtocol": 4,
5
5
  "minHostProtocol": 4,
6
6
  "batch": {
@@ -119,6 +119,7 @@
119
119
  "animationend",
120
120
  "animationiteration",
121
121
  "animationstart",
122
+ "beforeinput",
122
123
  "blur",
123
124
  "change",
124
125
  "click",