@wix/himalaya-cli 0.1717.0 → 0.1718.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/dist/cli.mjs CHANGED
@@ -3706,7 +3706,11 @@ var init_dist_jobs = __esm({
3706
3706
  // RFC 0080 P1 — the first (and so far only) shell that builds author native extensions.
3707
3707
  extensibleNative: true,
3708
3708
  // Its config.ts bakes Wix member login from the contract's `wix` (or none, visitor-only).
3709
- projectsMemberBinding: true
3709
+ projectsMemberBinding: true,
3710
+ // RFC 0079 §10 — Brandy becomes a template on this shell: a website-only release bakes its own
3711
+ // site block and starts from the minimal site capability profile.
3712
+ projectsSite: true,
3713
+ siteCapabilityProfile: true
3710
3714
  },
3711
3715
  "owner-lite": {
3712
3716
  appDir: "apps/himi-owner-lite",
@@ -34108,7 +34112,6 @@ function resolveIdiom(tokens2, ctx = {}) {
34108
34112
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
34109
34113
  var init_idiom = __esm({
34110
34114
  "../../core/ts/src/idiom.ts"() {
34111
- "use strict";
34112
34115
  init_define_HHP_CATALOG();
34113
34116
  IDIOM_CONTEXTS = {
34114
34117
  ios: { native: ["ios"] },
@@ -177128,6 +177131,7 @@ __export(gen_native_config_exports, {
177128
177131
  ANDROID_BUILD_CAPABILITIES_META: () => ANDROID_BUILD_CAPABILITIES_META,
177129
177132
  ANDROID_DIST_CAPABILITIES_META: () => ANDROID_DIST_CAPABILITIES_META,
177130
177133
  ANDROID_TOOLS_NS: () => ANDROID_TOOLS_NS,
177134
+ APP_ATTEST_ENTITLEMENT: () => APP_ATTEST_ENTITLEMENT,
177131
177135
  CORE_ANDROID_CAPABILITY_MODULES: () => CORE_ANDROID_CAPABILITY_MODULES,
177132
177136
  HEALTH_PERMISSION_COPY_META: () => HEALTH_PERMISSION_COPY_META,
177133
177137
  IMAGE_PREVIEW_IOS_USAGE_STRINGS: () => IMAGE_PREVIEW_IOS_USAGE_STRINGS,
@@ -177151,6 +177155,7 @@ __export(gen_native_config_exports, {
177151
177155
  LABEL_ORIENTATION: () => LABEL_ORIENTATION,
177152
177156
  LABEL_TV: () => LABEL_TV,
177153
177157
  LABEL_WATCH: () => LABEL_WATCH,
177158
+ SENTRY_MODULE_ID: () => SENTRY_MODULE_ID,
177154
177159
  androidAppGradle: () => androidAppGradle,
177155
177160
  androidManifestPath: () => androidManifestPath2,
177156
177161
  androidPlanFor: () => androidPlanFor,
@@ -177190,6 +177195,7 @@ __export(gen_native_config_exports, {
177190
177195
  loadOverrides: () => loadOverrides,
177191
177196
  macosPlanFor: () => macosPlanFor,
177192
177197
  moduleLinkRenderers: () => moduleLinkRenderers,
177198
+ narrowedDistBase: () => narrowedDistBase,
177193
177199
  orientationPlistPlan: () => orientationPlistPlan,
177194
177200
  parseOrientationEnvelope: () => parseOrientationEnvelope,
177195
177201
  parseStringArray: () => parseStringArray,
@@ -177221,6 +177227,7 @@ __export(gen_native_config_exports, {
177221
177227
  swiftFilesWithModuleMarkers: () => swiftFilesWithModuleMarkers,
177222
177228
  tvInfoPlan: () => tvInfoPlan,
177223
177229
  watchInfoPlan: () => watchInfoPlan,
177230
+ withoutAppAttest: () => withoutAppAttest,
177224
177231
  xmlAttr: () => xmlAttr2,
177225
177232
  yamlScalar: () => yamlScalar
177226
177233
  });
@@ -177259,6 +177266,21 @@ function hasStringArray(configTs, field) {
177259
177266
  function capabilityBaseOf(configTs) {
177260
177267
  return wholeStringArray(configTs, "capabilityBase");
177261
177268
  }
177269
+ function narrowedDistBase(shellBase, release3) {
177270
+ if (shellBase === void 0) return void 0;
177271
+ if (release3 === void 0) return [...shellBase];
177272
+ const keep = new Set(release3.map(catalogKey));
177273
+ return shellBase.filter((id) => keep.has(catalogKey(id)));
177274
+ }
177275
+ function withoutAppAttest(ov, drop2) {
177276
+ if (!drop2) return ov;
177277
+ const strip3 = (o2) => {
177278
+ if (!o2?.entitlements || !(APP_ATTEST_ENTITLEMENT in o2.entitlements)) return o2;
177279
+ const { [APP_ATTEST_ENTITLEMENT]: _dropped, ...entitlements } = o2.entitlements;
177280
+ return { ...o2, entitlements };
177281
+ };
177282
+ return { ...ov, ...ov.ios ? { ios: strip3(ov.ios) } : {}, ...ov.macos ? { macos: strip3(ov.macos) } : {} };
177283
+ }
177262
177284
  function parseStringArray(configTs, field) {
177263
177285
  const m2 = new RegExp(`${field}:\\s*\\[([^\\]]*)\\]`).exec(configTs);
177264
177286
  if (!m2) return [];
@@ -177942,14 +177964,16 @@ function genNativeConfig(app2, opts = {}) {
177942
177964
  const capabilities = parseStringArray(configTs, "capabilities");
177943
177965
  const envelope = parseStringArray(configTs, "capabilityEnvelope");
177944
177966
  const ownIds = buildSet(capabilities, envelope);
177945
- const ov = loadOverrides(app2);
177946
- const distBase = capabilityBaseOf(configTs);
177947
- const dist = opts.extraCapabilities !== void 0 && (distBase !== void 0 || opts.extraCapabilities.length > 0) ? resolveDistBake(app2, distBase ? buildSet(distBase, envelope) : ownIds, opts.extraCapabilities) : void 0;
177967
+ const ov = withoutAppAttest(loadOverrides(app2), opts.extraCapabilities !== void 0 && opts.appAttest === false);
177968
+ const shellBase = capabilityBaseOf(configTs);
177969
+ const distBase = narrowedDistBase(shellBase, opts.extraCapabilities !== void 0 ? opts.capabilityBase : void 0);
177970
+ const dist = opts.extraCapabilities !== void 0 && (distBase !== void 0 || opts.extraCapabilities.length > 0) ? resolveDistBake(app2, distBase !== void 0 ? buildSet(distBase, envelope) : ownIds, opts.extraCapabilities) : void 0;
177948
177971
  const ids2 = dist ? dist.build : ownIds;
177949
177972
  const healthLinked = ids2.includes("health");
177950
177973
  const distJsonPath = join67(appDir(app2), "distribution.json");
177951
177974
  const distJsonText = existsSync70(distJsonPath) ? readFileSync80(distJsonPath, "utf8") : void 0;
177952
- const optIns = [...distributionOptIns(distJsonText), ...legacyImportOptIns(legacyImportSourceKinds(configTs))];
177975
+ const optIns = [...distributionOptIns(distJsonText), ...legacyImportOptIns(legacyImportSourceKinds(configTs))].filter((id) => !(dist && opts.sentry === false && id === SENTRY_MODULE_ID));
177976
+ const sentryLinked = optIns.includes(SENTRY_MODULE_ID);
177953
177977
  const binaryCore = isBinaryCore(configTs, distJsonText);
177954
177978
  const modules = modulesFor(ids2, optIns);
177955
177979
  const healthCopy = opts.permissionCopy?.health;
@@ -178167,7 +178191,7 @@ function genNativeConfig(app2, opts = {}) {
178167
178191
  );
178168
178192
  const sourceRoots = [appSourceRoot(iosYml, "iOS"), appSourceRoot(macosProjectYml(app2), "macOS")].filter((r3) => !!r3);
178169
178193
  if (sourceRoots.length) {
178170
- const plan = shippedManifestPlan(app2, { ids: ids2, dist: dist !== void 0, release: opts.release, binaryCore, coreVersion: binaryCoreVersion(distJsonText, configTs), sentry: distJsonText ? parseSentryOptIn(distJsonText) : false });
178194
+ const plan = shippedManifestPlan(app2, { ids: ids2, dist: dist !== void 0, release: opts.release, binaryCore, coreVersion: binaryCoreVersion(distJsonText, configTs), sentry: distJsonText ? parseSentryOptIn(distJsonText) && sentryLinked : false });
178171
178195
  for (const root of sourceRoots) files.push(applyWholeFile(join67(root, "PrivacyInfo.xcprivacy"), renderPrivacyManifest(plan), check));
178172
178196
  }
178173
178197
  if (targetManaged) {
@@ -178184,7 +178208,7 @@ function genNativeConfig(app2, opts = {}) {
178184
178208
  files.push(...genStoreAdopt(storeAdoptPaths(app2), adoptedIdentityOfConfigTs(configTs), check));
178185
178209
  return { app: app2, buildSet: ids2, files, drift: files.some((f2) => f2.outcome === "drift") };
178186
178210
  }
178187
- var LABEL_IOS_INFO, LABEL_IOS_ENTITLEMENTS, LABEL_ANDROID, LABEL_ANDROID_SERVICES, LABEL_MODULES_IOS_PACKAGE, LABEL_MODULES_IOS_LINK, LABEL_MODULES_ANDROID_INCLUDE, LABEL_MODULES_ANDROID_LINK, LABEL_MODULES_IOS_FLAGS, LABEL_MODULES_SWIFT_IMPORT, LABEL_MODULES_SWIFT_INSTALL, LABEL_MODULES_ANDROID_INSTALLERS, LABEL_WATCH, LABEL_TV, LABEL_ANDROID_TV, LABEL_ORIENTATION, LABEL_CAR, ANDROID_TOOLS_NS, IOS_ORIENTATION, ALL_ORIENTATIONS2, HEALTH_PERMISSION_COPY_META, FROM_APP_PLATFORM_DIR, linkedFlag, CORE_ANDROID_CAPABILITY_MODULES, ANDROID_MAX_DEPTH, BOOT_SOURCE_MAX_BYTES, STORE_SPEC_LABELS, IOS_BUILD_CAPABILITIES_KEY, IMAGE_PREVIEW_IOS_USAGE_STRINGS, IOS_DIST_CAPABILITIES_KEY, ANDROID_BUILD_CAPABILITIES_META, ANDROID_DIST_CAPABILITIES_META;
178211
+ var LABEL_IOS_INFO, LABEL_IOS_ENTITLEMENTS, LABEL_ANDROID, LABEL_ANDROID_SERVICES, LABEL_MODULES_IOS_PACKAGE, LABEL_MODULES_IOS_LINK, LABEL_MODULES_ANDROID_INCLUDE, LABEL_MODULES_ANDROID_LINK, LABEL_MODULES_IOS_FLAGS, LABEL_MODULES_SWIFT_IMPORT, LABEL_MODULES_SWIFT_INSTALL, LABEL_MODULES_ANDROID_INSTALLERS, LABEL_WATCH, LABEL_TV, LABEL_ANDROID_TV, LABEL_ORIENTATION, LABEL_CAR, ANDROID_TOOLS_NS, SENTRY_MODULE_ID, APP_ATTEST_ENTITLEMENT, IOS_ORIENTATION, ALL_ORIENTATIONS2, HEALTH_PERMISSION_COPY_META, FROM_APP_PLATFORM_DIR, linkedFlag, CORE_ANDROID_CAPABILITY_MODULES, ANDROID_MAX_DEPTH, BOOT_SOURCE_MAX_BYTES, STORE_SPEC_LABELS, IOS_BUILD_CAPABILITIES_KEY, IMAGE_PREVIEW_IOS_USAGE_STRINGS, IOS_DIST_CAPABILITIES_KEY, ANDROID_BUILD_CAPABILITIES_META, ANDROID_DIST_CAPABILITIES_META;
178188
178212
  var init_gen_native_config = __esm({
178189
178213
  "../native-config/gen-native-config.ts"() {
178190
178214
  init_define_HHP_CATALOG();
@@ -178222,6 +178246,8 @@ var init_gen_native_config = __esm({
178222
178246
  LABEL_ORIENTATION = "himalaya:orientation";
178223
178247
  LABEL_CAR = "himalaya:car";
178224
178248
  ANDROID_TOOLS_NS = "http://schemas.android.com/tools";
178249
+ SENTRY_MODULE_ID = "sentry";
178250
+ APP_ATTEST_ENTITLEMENT = "com.apple.developer.devicecheck.appattest-environment";
178225
178251
  IOS_ORIENTATION = {
178226
178252
  portrait: "UIInterfaceOrientationPortrait",
178227
178253
  portraitUpsideDown: "UIInterfaceOrientationPortraitUpsideDown",
@@ -259777,12 +259803,20 @@ var init_site_pages_apply = __esm({
259777
259803
  }
259778
259804
  });
259779
259805
 
259806
+ // ../native-config/binding-spellings.ts
259807
+ var init_binding_spellings = __esm({
259808
+ "../native-config/binding-spellings.ts"() {
259809
+ init_define_HHP_CATALOG();
259810
+ }
259811
+ });
259812
+
259780
259813
  // ../native-config/customer-build.ts
259781
259814
  var LOCAL_CONTRACT_REL;
259782
259815
  var init_customer_build = __esm({
259783
259816
  "../native-config/customer-build.ts"() {
259784
259817
  init_define_HHP_CATALOG();
259785
259818
  init_splash();
259819
+ init_binding_spellings();
259786
259820
  LOCAL_CONTRACT_REL = ".himi/provisioning.local.json";
259787
259821
  }
259788
259822
  });
@@ -60,6 +60,23 @@ they decide what a phone screen looks like, and this guide decides how to compos
60
60
  - **Every tap target is at least 44 points** (48 dp on Android). A `Button` grows its own hit area;
61
61
  an `Icon`, an `Image` or a stack with `modifiers.onTap` does not, so give it `padding` until it
62
62
  reaches 44, or use an `iconOnly` `Button` (`himi validate` warns: `touch_target_too_small`).
63
+ - **A wide surface gets its own layout, not the phone one stretched.** From the medium width
64
+ (600 points: an iPad in portrait) and the expanded one (840: an iPad in landscape, a Mac window,
65
+ the web at desktop width), each kind of screen changes shape:
66
+ - Photo tiles add columns (`columnsMedium: 3`, `columnsExpanded: 4`).
67
+ - Rows (a schedule, a menu, a session list) stay one readable column, or become
68
+ `grid({ columns: 1, columnsMedium: 2 })` of the same rows. A grid fills across each row, so
69
+ keep the items in reading order (by time) and they still read in order.
70
+ - A shelf has more covers than fit at the widest width (eight or more), so its rail never
71
+ ends halfway across the screen. With fewer, it is a grid row instead.
72
+ - A detail screen puts its photos and its information side by side:
73
+ `splitView({ primary: photos, detail: info })`, which stacks on a phone.
74
+
75
+ The readable column is the `contentMaxWidth` token. On expanded widths the shell centres the
76
+ screen in it (920 points by default). Never cap the root stack with `maxWidth`: it pins
77
+ the column to the leading edge and leaves the rest empty. Render `--device tablet` and
78
+ `--device desktop` and look for a half of the screen with nothing in it. Space below a short
79
+ list is fine.
63
80
 
64
81
  ---
65
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1717.0",
3
+ "version": "0.1718.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "db0175240e92acfa2672c852bb005dd59c44f66555a25d6ed49bcef0"
84
+ "falconPackageHash": "d9f9ddf2bf21b7e653af21f326e44ef6d0b52b0116b80a39b75816a5"
85
85
  }