@wix/himalaya-cli 0.1661.0 → 0.1662.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 (49) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +17 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/audio-record/src/index.d.ts +4 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +26 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +26 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +8 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +4 -0
  8. package/dist/browser-plane/assets.json +5 -5
  9. package/dist/browser-plane/preview-deferred/{fcafca348b6b973cfc2eadc938ddec3c515c641874cbca1667a43b22e1bf7a39.bin → 5fe817d61d13666ee8e6951d96a873f768ef305462735f6030cce105f1c21488.bin} +1 -1
  10. package/dist/browser-plane/sw.js +8 -8
  11. package/dist/cli.mjs +895 -684
  12. package/dist/preview-assets.generated.bin +0 -0
  13. package/fixtures/wix-canned.json +1 -0
  14. package/guides/component-reference.json +13 -4
  15. package/guides/component-reference.md +26 -6
  16. package/guides/himi-json-output.md +8 -0
  17. package/guides/index.json +1 -1
  18. package/guides/sdk-reference.json +24 -1
  19. package/package.json +2 -2
  20. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +8 -0
  21. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +8 -0
  22. package/templates/branded-lite/dev/index.ts +791 -169
  23. package/templates/branded-lite/l10n/en.json +46 -13
  24. package/templates/branded-lite/l10n/he.json +59 -7
  25. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +8 -0
  26. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +367 -63
  27. package/templates/community-club/l10n/he.json +2 -2
  28. package/templates/community-club/tier5-src/_shared/engine-intl.ts +8 -0
  29. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +8 -0
  30. package/templates/conference/tier5-src/_shared/engine-intl.ts +8 -0
  31. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +8 -0
  32. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +8 -0
  33. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +8 -0
  34. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +8 -0
  35. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +8 -0
  36. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +8 -0
  37. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +8 -0
  38. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +8 -0
  39. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +8 -0
  40. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +8 -0
  41. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +8 -0
  42. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +8 -0
  43. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +8 -0
  44. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +8 -0
  45. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +8 -0
  46. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +8 -0
  47. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +8 -0
  48. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +8 -0
  49. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +8 -0
Binary file
@@ -1230,6 +1230,7 @@
1230
1230
  "count": 2
1231
1231
  }
1232
1232
  },
1233
+ "POST /members/v2/abouts/query": { "memberAbouts": [] },
1233
1234
  "POST /badges/v4/assignments/query": {
1234
1235
  "badgeAssignments": [
1235
1236
  {
@@ -2,7 +2,7 @@
2
2
  "_comment": "GENERATED by core/web-embed/authoring/gen-reference.mjs from core/ts/src/schema.ts — do not hand-edit. The schema is the source of truth; regenerate on schema changes.",
3
3
  "schemaSource": "core/ts/src/schema.ts",
4
4
  "bindingGrammar": "$service:<service>.<path> (worker state) · $item.<field> (list row) · $flag:<key> (feature flag) · $env:<key> (client environment — #1056). Bindings resolve in the text/value props marked 'binding-aware' below — INCLUDING Modifiers token refs — but only `background` and `border.color`, which are the two whose token a binding actually fills: a worker can drive per-item theming (e.g. a game board's per-square color), not just text. `shadow` is NOT binding-aware on any renderer, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref — so `shadow: { token: \"$item.x\" }` and `backgroundGradient: { token: \"$item.x\" }` keep the sentinel and silently lose the per-item styling. Colour slots split by LEVEL, not by component: inside modifiers a colour is a TokenRef OBJECT ({ token: \"…\" }), inside props it is a bare TokenName STRING — there is no modifiers.color or modifiers.tint (see the 'Token slots' section in component-reference.md). A few input props render the LITERAL and are NOT binding-aware — notably SearchField.placeholder and Chip.label; SearchField.value is live and binding-aware like other content props. Bindings also CANNOT target strict-enum fields (style, size, alignment, severity, presentation, contentMode, …) — those fail at render, not validation. $env: is client-resolved (no worker) and valid in modifiers.hiddenPath and FragmentSlot.casePath ONLY — keys reduceMotion/colorScheme/sizeClass/isRTL/keyboardVisible, e.g. hiddenPath:\"$env:reduceMotion\" or hiddenPath:\"$env:colorScheme==light\", casePath:\"$env:colorScheme\"; unknown key fails open (shown / defaultCase).",
5
- "componentCount": 89,
5
+ "componentCount": 90,
6
6
  "notImplementedComponents": [
7
7
  "Text",
8
8
  "Icon",
@@ -995,16 +995,25 @@
995
995
  ],
996
996
  "propsSource": "export interface VoiceNoteProps {\n /** 0..1 amplitude buckets, already on the shared dBFS curve. */\n waveform?: number[];\n /** \"$service:\" binding → number[] (overrides `waveform`).\n * `$service:` only — a `$item.` placeholder is stringified to \"\" by both\n * native per-row substituters, so it would empty the waveform on iOS and\n * Android while working on web. The scalar `*Path` companions below do\n * accept `$item.`. */\n waveformPath?: string;\n durationMs?: number;\n durationMsPath?: string;\n positionMs?: number;\n positionMsPath?: string;\n /** \"idle\" (default) | \"loading\" | \"playing\" | \"paused\" — lenient, unknown ⇒ \"idle\". */\n state?: string;\n statePath?: string;\n /** \"sent\" (default) | \"uploading\" | \"failed\". */\n delivery?: string;\n deliveryPath?: string;\n onPlay?: Action;\n onPause?: Action;\n /** fired with `args.positionMs` (ms). */\n onSeek?: Action;\n /** fired with `args.rate`. */\n onRateChange?: Action;\n /** offered only while `delivery === \"failed\"`. */\n onRetry?: Action;\n /** rate cycle, e.g. [1, 1.5, 2]; empty ⇒ no rate control. */\n rates?: number[];\n rate?: number;\n ratePath?: string;\n /** played-bar token (default \"accentPrimary\"); unplayed bars derive from it. */\n tint?: TokenName;\n /** resample target (default 48, clamped 8..128). */\n barCount?: number;\n}"
997
997
  },
998
+ {
999
+ "name": "LiveWaveform",
1000
+ "category": "Live microphone waveform",
1001
+ "propsType": "LiveWaveformProps",
1002
+ "bindings": [
1003
+ "activePath"
1004
+ ],
1005
+ "propsSource": "export interface LiveWaveformProps {\n /** \"audio_record\" (default; the only source). Any other value draws the flat baseline. */\n source?: string;\n /** Visible bar count. Default 32, clamped 8..128. */\n bars?: number;\n /** Bar colour token. Default \"accentPrimary\". */\n color?: TokenName;\n /** Height in pt/dp. Default 32. */\n height?: number;\n /** `$service:` binding → boolean. Live while truthy, baseline otherwise. Empty ⇒ live whenever a recording is active. */\n activePath?: string;\n}"
1006
+ },
998
1007
  {
999
1008
  "name": "Marquee",
1000
- "category": "Recorded-audio bubble (messenger design G4)",
1009
+ "category": "Live microphone waveform",
1001
1010
  "propsType": "MarqueeProps",
1002
1011
  "bindings": [],
1003
1012
  "propsSource": "export interface MarqueeProps {\n text?: string;\n durationMs?: number;\n style?: TokenName;\n color?: TokenName;\n}"
1004
1013
  },
1005
1014
  {
1006
1015
  "name": "Timeline",
1007
- "category": "Recorded-audio bubble (messenger design G4)",
1016
+ "category": "Live microphone waveform",
1008
1017
  "propsType": "TimelineProps",
1009
1018
  "bindings": [
1010
1019
  "entriesPath"
@@ -1013,7 +1022,7 @@
1013
1022
  },
1014
1023
  {
1015
1024
  "name": "PageControl",
1016
- "category": "Recorded-audio bubble (messenger design G4)",
1025
+ "category": "Live microphone waveform",
1017
1026
  "propsType": "PageControlProps",
1018
1027
  "bindings": [],
1019
1028
  "propsSource": "export interface PageControlProps {\n count?: number;\n currentIndex?: number;\n onChange?: Action;\n}"
@@ -3,7 +3,7 @@
3
3
  > GENERATED from `core/ts/src/schema.ts` by `core/web-embed/authoring/gen-reference.mjs`.
4
4
  > The schema is the source of truth — regenerate on schema changes; do not hand-edit.
5
5
 
6
- **89 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
6
+ **90 core component types.** Every component body is `{ "package": "himalaya", "type": "<Type>", "props": { … } }`.
7
7
  Binding grammar: `$service:<service>.<path>` (worker state) · `$item.<field>` (list row template) · `$flag:<key>` (feature flag) · `$env:<key>` (client environment — #1056).
8
8
  Bindings resolve in the text/value props marked **binding-aware** below — **including two `Modifiers` token refs**, `background` and `border.color`, which are the only two whose token a binding actually fills: a worker can drive per-item **theming** (e.g. a game board's per-square color, `background: { token: "$item.bg" }`), not just text content. `shadow` and `backgroundGradient` are `TokenRef`s but are **not** binding-aware on any renderer — `shadow: { token: "$item.x" }` keeps the sentinel as a literal token name and silently loses the per-item styling, and a gradient is driven by its own `backgroundGradientPath` prop resolving to a gradient token NAME, not by a binding inside a token ref.
9
9
  `$env:` is **client-resolved** (no worker) and valid in `modifiers.hiddenPath` and `FragmentSlot.casePath` **only** — keys `reduceMotion` / `colorScheme` / `sizeClass` / `isRTL` / `keyboardVisible` (an on-screen keyboard is up — `hiddenPath: "$env:keyboardVisible"` hides a header while typing), with an optional `==`/`!=` comparison (e.g. `hiddenPath: "$env:reduceMotion"`, `hiddenPath: "$env:colorScheme==light"`, `casePath: "$env:colorScheme"`). An unknown key fails open (shown / `defaultCase`).
@@ -100,9 +100,10 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
100
100
  | `MediaField` | Image well + Wix Media upload | `valuePath`, `fallbackTextPath` |
101
101
  | `RichTextField` | Formatted multiline field | `valuePath` |
102
102
  | `VoiceNote` | Recorded-audio bubble (messenger design G4) | `waveformPath`, `durationMsPath`, `positionMsPath`, `statePath`, `deliveryPath`, `ratePath` |
103
- | `Marquee` | Recorded-audio bubble (messenger design G4) | — |
104
- | `Timeline` | Recorded-audio bubble (messenger design G4) | `entriesPath` |
105
- | `PageControl` | Recorded-audio bubble (messenger design G4) | — |
103
+ | `LiveWaveform` | Live microphone waveform | `activePath` |
104
+ | `Marquee` | Live microphone waveform | — |
105
+ | `Timeline` | Live microphone waveform | `entriesPath` |
106
+ | `PageControl` | Live microphone waveform | — |
106
107
  | `WheelPicker` | Pickers & inputs | `optionsPath`, `selectedId` |
107
108
  | `ColorPicker` | Pickers & inputs | `valuePath` |
108
109
  | `OtpInput` | Pickers & inputs | `valuePath` |
@@ -121,7 +122,7 @@ See also **[Modifiers](#modifiers)** (the `modifiers` block) and **[Actions](#ac
121
122
 
122
123
  These props are accepted by the schema and pass validation, but the named platform's renderer never reads them — they silently do nothing (no warning, no log). Prefer a prop NOT listed here, or drive the behaviour from a worker.
123
124
 
124
- **Scope: 7 of 89 components, all of them android / web / ios-only** — every other component/platform pair reads every prop it decodes. The list splits in two, and the halves mean different things:
125
+ **Scope: 7 of 90 components, all of them android / web / ios-only** — every other component/platform pair reads every prop it decodes. The list splits in two, and the halves mean different things:
125
126
 
126
127
  - **`category` (2: `MediaPlayer`, `TimeGrid`)** — the prop changes the component's *kind*. These genuinely are **not implemented**: an overlay renders always-visible inline, so the component does not do the job its name implies. Check the row's note for a working alternative.
127
128
  - **`styling` (5: `Text`, `Icon`, `WebView`, `Video`, `PdfView`)** — the component itself **works**; only the listed prop is inert. Use the component; just do not depend on that one prop.
@@ -169,7 +170,7 @@ So `border` nests an object and `boxShadow`/`backgroundGradient` nest strings. R
169
170
  element interface (printed below) rather than extrapolating from the level.
170
171
 
171
172
  - Modifier-level (`TokenRef` object): `modifiers.background`, `modifiers.shadow`, `modifiers.backgroundGradient`, `modifiers.appear`, `modifiers.material`, `modifiers.pressMotion`, `modifiers.border.color`.
172
- - Component-prop-level (bare `TokenName` string): `Card.background`, `Text.style`, `Text.color`, `Image.placeholder`, `Image.tint`, `Icon.tint`, `Toggle.trackOn`, `Toggle.trackOff`, `Toggle.thumb`, `Badge.token`, `Tag.token`, `ProgressBar.tint`, `ProgressBar.trackColor`, `AvatarStrip.ringGradient`, `ListItem.titleStyle`, `ListItem.subtitleStyle`, `ListItem.titleColor`, `ListItem.subtitleColor`, `ListItem.overlineColor`, `Slider.tint`, `ActivityIndicator.tint`, `Chip.token`, `Label.style`, `Label.color`, `Gauge.tint`, `Rating.color`, `Chart.color`, `DonutChart.color`, `VoiceNote.tint`, `Marquee.style`, `Marquee.color`, `Fab.tint`.
173
+ - Component-prop-level (bare `TokenName` string): `Card.background`, `Text.style`, `Text.color`, `Image.placeholder`, `Image.tint`, `Icon.tint`, `Toggle.trackOn`, `Toggle.trackOff`, `Toggle.thumb`, `Badge.token`, `Tag.token`, `ProgressBar.tint`, `ProgressBar.trackColor`, `AvatarStrip.ringGradient`, `ListItem.titleStyle`, `ListItem.subtitleStyle`, `ListItem.titleColor`, `ListItem.subtitleColor`, `ListItem.overlineColor`, `Slider.tint`, `ActivityIndicator.tint`, `Chip.token`, `Label.style`, `Label.color`, `Gauge.tint`, `Rating.color`, `Chart.color`, `DonutChart.color`, `VoiceNote.tint`, `LiveWaveform.color`, `Marquee.style`, `Marquee.color`, `Fab.tint`.
173
174
 
174
175
  There is **no `modifiers.color` and no `modifiers.tint`** — a `tint` is always a component
175
176
  prop. Of the two nested slots spelled `color`, `modifiers.border.color` is a `TokenRef`
@@ -1919,6 +1920,25 @@ export interface VoiceNoteProps {
1919
1920
  }
1920
1921
  ```
1921
1922
 
1923
+ ### Live microphone waveform
1924
+
1925
+ #### LiveWaveform
1926
+
1927
+ ```ts
1928
+ export interface LiveWaveformProps {
1929
+ /** "audio_record" (default; the only source). Any other value draws the flat baseline. */
1930
+ source?: string;
1931
+ /** Visible bar count. Default 32, clamped 8..128. */
1932
+ bars?: number;
1933
+ /** Bar colour token. Default "accentPrimary". */
1934
+ color?: TokenName;
1935
+ /** Height in pt/dp. Default 32. */
1936
+ height?: number;
1937
+ /** `$service:` binding → boolean. Live while truthy, baseline otherwise. Empty ⇒ live whenever a recording is active. */
1938
+ activePath?: string;
1939
+ }
1940
+ ```
1941
+
1922
1942
  #### Marquee
1923
1943
 
1924
1944
  ```ts
@@ -14,6 +14,14 @@ require those fields. Existing error-only push refusals now also carry `ok: fals
14
14
  Output channels and process exit codes are unchanged. Read JSON failures on both
15
15
  stdout and stderr; progress/warnings are not failure envelopes.
16
16
 
17
+ ## `himi captcha setup|status` target refusal
18
+
19
+ | Code | Meaning |
20
+ | --- | --- |
21
+ | `insecure_target` | The control URL is neither an HTTPS Wix host nor a loopback dev server. No CAPTCHA request or credential is sent to that target. Stdout retains `complete: false` and `error: "insecure_target"`; exit 1. |
22
+
23
+ This is not a whole-command migration: other CAPTCHA failures retain their legacy envelopes.
24
+
17
25
  ## `himi login --wix` codes
18
26
 
19
27
  | Code | Meaning |
package/guides/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_comment": "AUTO-GENERATED by tools/authoring-kit/bundle.mjs — DO NOT EDIT. Regenerate with: npm run authoring:gen",
3
3
  "schemaStamp": {
4
- "componentCount": 89,
4
+ "componentCount": 90,
5
5
  "schemaSource": "core/ts/src/schema.ts"
6
6
  },
7
7
  "portalUrl": "https://apps.wix.com/_api/himi-serve/docs",
@@ -350,7 +350,7 @@
350
350
  {
351
351
  "name": "subscribeLevel",
352
352
  "kind": "function",
353
- "jsdoc": "/** Subscribe the worker to native-pushed live meter readings. */",
353
+ "jsdoc": "/** Subscribe the worker to native-pushed live meter readings, delivered at most 10 times a\n * second while a `start()` recording runs (iOS, macOS and Android; web answers a snapshot).\n * For an on-screen meter, prefer the `LiveWaveform` component: the renderer reads the level\n * itself, so the worker does not re-render the screen on every reading. */",
354
354
  "decl": "export async function subscribeLevel(handler: string): Promise<void>;",
355
355
  "verificationChecked": true
356
356
  },
@@ -28293,6 +28293,29 @@
28293
28293
  "http": "POST /members/v3/followers/my/connections",
28294
28294
  "verificationChecked": true
28295
28295
  },
28296
+ {
28297
+ "name": "WixMemberAbout",
28298
+ "kind": "interface",
28299
+ "jsdoc": "",
28300
+ "decl": "export interface WixMemberAbout {\n id?: string;\n memberId?: string;\n /** Ricos document of the \"About\" section. */\n content?: Record<string, unknown>;\n}",
28301
+ "verificationChecked": true
28302
+ },
28303
+ {
28304
+ "name": "WixQueryMemberAboutsResponse",
28305
+ "kind": "interface",
28306
+ "jsdoc": "",
28307
+ "decl": "export interface WixQueryMemberAboutsResponse {\n memberAbouts?: WixMemberAbout[];\n}",
28308
+ "verificationChecked": true
28309
+ },
28310
+ {
28311
+ "name": "queryMemberAbouts",
28312
+ "kind": "function",
28313
+ "jsdoc": "/** The \"About\" sections that match a query — POST /members/v2/abouts/query. Filter by\n * `{ memberId }`. A member with no About yields an empty list; the by-id GET answers 404 instead,\n * so callers should query rather than get.\n *\n * @scope visitor — observed live: an anonymous visitor token (the Branded Lite site's OAuth client) got 200 for eight public members.\n * None of them had an About section, so the shape of a non-empty answer is the documented one, not an observed one. The API lock\n * (`codegen/wix/auto/lock.json`) lists the APP identity only. A refused read must hide the About section and nothing else; it never\n * means \"this member has no About\". */",
28314
+ "decl": "export function queryMemberAbouts(\n req: { query?: { filter?: Record<string, unknown>; cursorPaging?: { limit?: number; cursor?: string } } } = {},\n options?: WixCallOptions,\n): Promise<WixQueryMemberAboutsResponse>;",
28315
+ "http": "POST /members/v2/abouts/query",
28316
+ "scope": "visitor",
28317
+ "verificationChecked": true
28318
+ },
28296
28319
  {
28297
28320
  "name": "WixMemberLastOpenApp",
28298
28321
  "kind": "interface",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1661.0",
3
+ "version": "0.1662.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": [
@@ -72,5 +72,5 @@
72
72
  "artifactId": "himalaya-cli"
73
73
  }
74
74
  },
75
- "falconPackageHash": "545eb57867cfae3959c869789a561c017b67c8a66d6a9c5f69cdee90"
75
+ "falconPackageHash": "4d3f3e985b8a80b1afaca3b94bff7fb078c805dbfd5f07c3e5c7a1f7"
76
76
  }
@@ -94,6 +94,14 @@ export function formatDateMedium(date: Date, locale = appLocale(), timeZone?: st
94
94
  return `${MONTHS_SHORT[date.getMonth()]} ${date.getDate()}, ${date.getFullYear()}`;
95
95
  }
96
96
 
97
+ /** `{ month: "short", year: "numeric" }` — "Jan 2026". */
98
+ export function formatMonthYear(date: Date, locale = "en-US", timeZone?: string): string {
99
+ if (hasIntl()) {
100
+ return dateFormat(locale, { month: "short", year: "numeric" }, timeZone).format(date);
101
+ }
102
+ return `${MONTHS_SHORT[date.getMonth()]} ${date.getFullYear()}`;
103
+ }
104
+
97
105
  /** `{ month: "short", day: "numeric" }` — "Jan 5". */
98
106
  export function formatMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
99
107
  if (hasIntl()) {
@@ -94,6 +94,14 @@ export function formatDateMedium(date: Date, locale = appLocale(), timeZone?: st
94
94
  return `${MONTHS_SHORT[date.getMonth()]} ${date.getDate()}, ${date.getFullYear()}`;
95
95
  }
96
96
 
97
+ /** `{ month: "short", year: "numeric" }` — "Jan 2026". */
98
+ export function formatMonthYear(date: Date, locale = "en-US", timeZone?: string): string {
99
+ if (hasIntl()) {
100
+ return dateFormat(locale, { month: "short", year: "numeric" }, timeZone).format(date);
101
+ }
102
+ return `${MONTHS_SHORT[date.getMonth()]} ${date.getFullYear()}`;
103
+ }
104
+
97
105
  /** `{ month: "short", day: "numeric" }` — "Jan 5". */
98
106
  export function formatMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
99
107
  if (hasIntl()) {