@wix/himalaya-cli 0.1946.0 → 0.1948.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.
Files changed (36) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/admob-ids.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/index.d.ts +1 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +3 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +8 -2
  5. package/dist/browser-plane/assets.json +5 -5
  6. package/dist/browser-plane/preview-deferred/{9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38.bin → 1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a.bin} +1 -1
  7. package/dist/browser-plane/sw.js +1 -1
  8. package/dist/cli.mjs +2266 -789
  9. package/dist/preview-assets.generated.bin +0 -0
  10. package/guides/getting-started.md +6 -1
  11. package/guides/himi-skill.md +6 -1
  12. package/guides/himi-test.md +61 -1
  13. package/guides/one-app-section-mappings.md +1 -1
  14. package/guides/one-app-to-himi-app.md +21 -14
  15. package/guides/sdk-reference.json +1 -1
  16. package/guides/skill.md +1 -1
  17. package/package.json +2 -2
  18. package/templates/branded-lite/recipes/form-section.json +958 -0
  19. package/templates/branded-lite/tier5-src/_shared/event-agenda.ts +15 -15
  20. package/templates/branded-lite/tier5-src/_shared/event-schedule-section.ts +8 -8
  21. package/templates/branded-lite/tier5-src/_shared/form-section.ts +640 -0
  22. package/templates/branded-lite/tier5-src/himi-branded-lite-form/index.ts +4 -588
  23. package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +7 -6
  24. package/templates/community-club/tier5-src/himi-events-detail/index.ts +7 -6
  25. package/templates/conference/tier5-src/_shared/event-agenda.ts +15 -15
  26. package/templates/conference/tier5-src/himi-conference-agenda/index.ts +3 -5
  27. package/templates/conference/tier5-src/himi-conference-home/index.ts +5 -6
  28. package/templates/conference/tier5-src/himi-events-detail/index.ts +7 -6
  29. package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +7 -6
  30. package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +7 -6
  31. package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +7 -6
  32. package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +7 -6
  33. package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +7 -6
  34. package/templates/professional-services/tier5-src/himi-events-detail/index.ts +7 -6
  35. package/templates/restaurant/tier5-src/himi-events-detail/index.ts +7 -6
  36. package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +7 -6
@@ -0,0 +1,4 @@
1
+ /** An AdMob APP ID: `ca-app-pub-<publisher digits>~<app digits>`. Baked into Info.plist / the manifest. */
2
+ export declare const ADMOB_APP_ID_RE: RegExp;
3
+ /** An AdMob AD UNIT ID: `ca-app-pub-<publisher digits>/<unit digits>`. Served in `adsConfig.slots`. */
4
+ export declare const ADMOB_UNIT_ID_RE: RegExp;
@@ -2,6 +2,7 @@ export * from "./schema.js";
2
2
  export * from "./stream-policy.js";
3
3
  export * from "./locale.js";
4
4
  export * from "./media.js";
5
+ export * from "./admob-ids.js";
5
6
  export * from "./define-app.js";
6
7
  export * from "./app-services-gate.js";
7
8
  export * from "./distribution.js";
@@ -3448,6 +3448,9 @@ export interface NavTabItem {
3448
3448
  iconPath?: string;
3449
3449
  /** RFC 0070 §1.2 — with `hiddenPath`, hidden until the path resolves (fail-closed). */
3450
3450
  hiddenUntilResolved?: boolean;
3451
+ /** #4649 — opt this tab out of the re-tap scroll-to-top: tapping the tab you are already on, at its
3452
+ * root, does nothing. Default false (the root screen scrolls to its top). A non-boolean reads as false. */
3453
+ reselectScrollDisabled?: boolean;
3451
3454
  }
3452
3455
  /** RFC 0010 — live or static badge on a nav tab. */
3453
3456
  export interface NavBadge {
@@ -7222,6 +7222,10 @@ function activeMediaItem(props, index = props.startIndex ?? 0) {
7222
7222
  return props.items?.[index];
7223
7223
  }
7224
7224
 
7225
+ // ../../core/ts/src/admob-ids.ts
7226
+ var ADMOB_APP_ID_RE = /^ca-app-pub-\d+~\d+$/;
7227
+ var ADMOB_UNIT_ID_RE = /^ca-app-pub-\d+\/\d+$/;
7228
+
7225
7229
  // ../../core/ts/src/app-services-gate.ts
7226
7230
  var APP_SERVICES_MIN_BINARY = "1.9.0";
7227
7231
  var APP_SERVICES_BRIDGE_MARKERS = ["__himalaya_app_read", "__himalaya_app_dispatch"];
@@ -8270,14 +8274,14 @@ function validateLadderConfig(config) {
8270
8274
  throw new Error('defineApp: `ads` is set but "ads" is not in capabilities. Add the capability, or drop the block.');
8271
8275
  }
8272
8276
  for (const key of ["iosAppId", "androidAppId"]) {
8273
- if (!/^ca-app-pub-\d+~\d+$/.test(config.ads[key] ?? "")) {
8277
+ if (!ADMOB_APP_ID_RE.test(config.ads[key] ?? "")) {
8274
8278
  throw new Error(`defineApp: ads.${key} must be an AdMob app ID like "ca-app-pub-1234567890123456~1234567890", got ${JSON.stringify(config.ads[key])}.`);
8275
8279
  }
8276
8280
  }
8277
8281
  for (const [slot, ids] of Object.entries(config.ads.slots ?? {})) {
8278
8282
  for (const key of ["iosUnitId", "androidUnitId"]) {
8279
8283
  const id = ids[key];
8280
- if (id !== void 0 && !/^ca-app-pub-\d+\/\d+$/.test(id)) {
8284
+ if (id !== void 0 && !ADMOB_UNIT_ID_RE.test(id)) {
8281
8285
  throw new Error(`defineApp: ads.slots.${slot}.${key} must be an AdMob ad unit ID like "ca-app-pub-1234567890123456/1234567890", got ${JSON.stringify(id)}.`);
8282
8286
  }
8283
8287
  }
@@ -16996,6 +17000,8 @@ function siteMenuDrifted(drift) {
16996
17000
  return drift.added.length > 0 || drift.removed.length > 0 || drift.renamed.length > 0;
16997
17001
  }
16998
17002
  export {
17003
+ ADMOB_APP_ID_RE,
17004
+ ADMOB_UNIT_ID_RE,
16999
17005
  ADOPTED_ANDROID_SIGNING,
17000
17006
  ALL_ORIENTATIONS,
17001
17007
  APP_ID_PATTERN,
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2826217
5
+ "bytes": 2827189
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38.bin",
24
+ "name": "preview-deferred/1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-DdwUM4l9.js",
82
+ "key": "assets/pdf-CMax5VgU.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38",
85
- "file": "preview-deferred/9521361aa5be10b9a96b96c0ea2f7e157e728874b20de5200879cbd735eefb38.bin"
84
+ "sha256": "1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a",
85
+ "file": "preview-deferred/1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",