@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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +17 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/audio-record/src/index.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +26 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +26 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +8 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +4 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{fcafca348b6b973cfc2eadc938ddec3c515c641874cbca1667a43b22e1bf7a39.bin → 5fe817d61d13666ee8e6951d96a873f768ef305462735f6030cce105f1c21488.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +895 -684
- package/dist/preview-assets.generated.bin +0 -0
- package/fixtures/wix-canned.json +1 -0
- package/guides/component-reference.json +13 -4
- package/guides/component-reference.md +26 -6
- package/guides/himi-json-output.md +8 -0
- package/guides/index.json +1 -1
- package/guides/sdk-reference.json +24 -1
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/branded-lite/dev/index.ts +791 -169
- package/templates/branded-lite/l10n/en.json +46 -13
- package/templates/branded-lite/l10n/he.json +59 -7
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +367 -63
- package/templates/community-club/l10n/he.json +2 -2
- package/templates/community-club/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/conference/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/restaurant/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/retail-store/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +8 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +8 -0
|
@@ -1604,6 +1604,23 @@ export declare function voiceNote(props: {
|
|
|
1604
1604
|
id?: string;
|
|
1605
1605
|
modifiers?: Component["modifiers"];
|
|
1606
1606
|
}): Component;
|
|
1607
|
+
/** #4670 — a live microphone waveform: the ACTIVE `audio_record` recording's level as
|
|
1608
|
+
* scrolling bars, fed natively by the renderer (no worker message per sample). Flat,
|
|
1609
|
+
* low-contrast baseline while nothing records or `activePath` is falsy. Decorative unless
|
|
1610
|
+
* `modifiers.accessibilityLabel` is set. */
|
|
1611
|
+
export declare function liveWaveform(props?: {
|
|
1612
|
+
/** "audio_record" (default; the only source). */
|
|
1613
|
+
source?: string;
|
|
1614
|
+
/** visible bars (default 32, clamped 8..128) */
|
|
1615
|
+
bars?: number;
|
|
1616
|
+
color?: string;
|
|
1617
|
+
height?: number;
|
|
1618
|
+
/** `$service:` boolean binding — draw live while truthy. */
|
|
1619
|
+
activePath?: string;
|
|
1620
|
+
}, opts?: {
|
|
1621
|
+
id?: string;
|
|
1622
|
+
modifiers?: Component["modifiers"];
|
|
1623
|
+
}): Component;
|
|
1607
1624
|
/** Motion grammar (Batch 4) — a Lottie/Rive vector animation. `source` is an
|
|
1608
1625
|
* https URL to the animation JSON or the inline JSON string (ships OTA). Plays
|
|
1609
1626
|
* via lottie-ios / lottie-compose / lottie-web; reduced motion → static last
|
|
@@ -55,7 +55,10 @@ export declare function pause(): Promise<{
|
|
|
55
55
|
export declare function resume(): Promise<{
|
|
56
56
|
resumed: boolean;
|
|
57
57
|
}>;
|
|
58
|
-
/** Subscribe the worker to native-pushed live meter readings
|
|
58
|
+
/** Subscribe the worker to native-pushed live meter readings, delivered at most 10 times a
|
|
59
|
+
* second while a `start()` recording runs (iOS, macOS and Android; web answers a snapshot).
|
|
60
|
+
* For an on-screen meter, prefer the `LiveWaveform` component: the renderer reads the level
|
|
61
|
+
* itself, so the worker does not re-render the screen on every reading. */
|
|
59
62
|
export declare function subscribeLevel(handler: string): Promise<void>;
|
|
60
63
|
/** Stop and discard the in-progress recording. */
|
|
61
64
|
export declare function cancel(): Promise<{
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -2018,6 +2018,28 @@ export interface VoiceNoteProps {
|
|
|
2018
2018
|
/** resample target (default 48, clamped 8..128). */
|
|
2019
2019
|
barCount?: number;
|
|
2020
2020
|
}
|
|
2021
|
+
/**
|
|
2022
|
+
* A live microphone waveform — the ACTIVE `audio_record` recording's level,
|
|
2023
|
+
* drawn as bars that scroll in from the trailing edge.
|
|
2024
|
+
*
|
|
2025
|
+
* Renderer-fed: every arm subscribes to the host's level stream on appear, samples it
|
|
2026
|
+
* at display rate (<= 60 Hz) and never messages the worker. Levels are on the same
|
|
2027
|
+
* 0..1 dBFS curve as `VoiceNote.waveform`. Flat, low-contrast baseline while no
|
|
2028
|
+
* recording is active or `activePath` resolves falsy. Decorative: hidden from
|
|
2029
|
+
* assistive tech unless `modifiers.accessibilityLabel` is set.
|
|
2030
|
+
*/
|
|
2031
|
+
export interface LiveWaveformProps {
|
|
2032
|
+
/** "audio_record" (default; the only source). Any other value draws the flat baseline. */
|
|
2033
|
+
source?: string;
|
|
2034
|
+
/** Visible bar count. Default 32, clamped 8..128. */
|
|
2035
|
+
bars?: number;
|
|
2036
|
+
/** Bar colour token. Default "accentPrimary". */
|
|
2037
|
+
color?: TokenName;
|
|
2038
|
+
/** Height in pt/dp. Default 32. */
|
|
2039
|
+
height?: number;
|
|
2040
|
+
/** `$service:` binding → boolean. Live while truthy, baseline otherwise. Empty ⇒ live whenever a recording is active. */
|
|
2041
|
+
activePath?: string;
|
|
2042
|
+
}
|
|
2021
2043
|
export interface MarqueeProps {
|
|
2022
2044
|
text?: string;
|
|
2023
2045
|
durationMs?: number;
|
|
@@ -2847,6 +2869,10 @@ export type CoreComponentBody = {
|
|
|
2847
2869
|
package: "himalaya";
|
|
2848
2870
|
type: "VoiceNote";
|
|
2849
2871
|
props: VoiceNoteProps;
|
|
2872
|
+
} | {
|
|
2873
|
+
package: "himalaya";
|
|
2874
|
+
type: "LiveWaveform";
|
|
2875
|
+
props: LiveWaveformProps;
|
|
2850
2876
|
} | {
|
|
2851
2877
|
package: "himalaya";
|
|
2852
2878
|
type: "Marquee";
|
|
@@ -231,6 +231,32 @@ export declare function getFollowCounts(memberId: string, options?: WixCallOptio
|
|
|
231
231
|
* /members/v3/followers/my/connections. Returns false on any miss. May 403 →
|
|
232
232
|
* caller should default to false. */
|
|
233
233
|
export declare function isFollowingMember(targetId: string): Promise<boolean>;
|
|
234
|
+
export interface WixMemberAbout {
|
|
235
|
+
id?: string;
|
|
236
|
+
memberId?: string;
|
|
237
|
+
/** Ricos document of the "About" section. */
|
|
238
|
+
content?: Record<string, unknown>;
|
|
239
|
+
}
|
|
240
|
+
export interface WixQueryMemberAboutsResponse {
|
|
241
|
+
memberAbouts?: WixMemberAbout[];
|
|
242
|
+
}
|
|
243
|
+
/** The "About" sections that match a query — POST /members/v2/abouts/query. Filter by
|
|
244
|
+
* `{ memberId }`. A member with no About yields an empty list; the by-id GET answers 404 instead,
|
|
245
|
+
* so callers should query rather than get.
|
|
246
|
+
*
|
|
247
|
+
* @scope visitor — observed live: an anonymous visitor token (the Branded Lite site's OAuth client) got 200 for eight public members.
|
|
248
|
+
* 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
|
|
249
|
+
* (`codegen/wix/auto/lock.json`) lists the APP identity only. A refused read must hide the About section and nothing else; it never
|
|
250
|
+
* means "this member has no About". */
|
|
251
|
+
export declare function queryMemberAbouts(req?: {
|
|
252
|
+
query?: {
|
|
253
|
+
filter?: Record<string, unknown>;
|
|
254
|
+
cursorPaging?: {
|
|
255
|
+
limit?: number;
|
|
256
|
+
cursor?: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}, options?: WixCallOptions): Promise<WixQueryMemberAboutsResponse>;
|
|
234
260
|
/** When a member last opened the app, as the One App computes it: `unit` is "min", "hour" or "day", and `ts`
|
|
235
261
|
* (epoch milliseconds, as a string) is there for a day count the One App prints as a date. */
|
|
236
262
|
export interface WixMemberLastOpenApp {
|
|
@@ -8683,6 +8683,7 @@ var COLOR_TOKEN_PROPS = {
|
|
|
8683
8683
|
Gauge: ["tint", "rings[].tint"],
|
|
8684
8684
|
Rating: ["color"],
|
|
8685
8685
|
VoiceNote: ["tint"],
|
|
8686
|
+
LiveWaveform: ["color"],
|
|
8686
8687
|
Marquee: ["color"],
|
|
8687
8688
|
Fab: ["tint"]
|
|
8688
8689
|
};
|
|
@@ -9850,6 +9851,8 @@ var CORE_COMPONENTS = /* @__PURE__ */ new Set([
|
|
|
9850
9851
|
"himalaya.MediaField",
|
|
9851
9852
|
// Recorded-audio bubble — messenger design G4
|
|
9852
9853
|
"himalaya.VoiceNote",
|
|
9854
|
+
// Live microphone waveform — #4670
|
|
9855
|
+
"himalaya.LiveWaveform",
|
|
9853
9856
|
"himalaya.Marquee",
|
|
9854
9857
|
"himalaya.CollapsingHeader",
|
|
9855
9858
|
"himalaya.AvatarStrip",
|
|
@@ -9274,6 +9274,13 @@ function voiceNote(props, opts) {
|
|
|
9274
9274
|
modifiers: opts?.modifiers
|
|
9275
9275
|
};
|
|
9276
9276
|
}
|
|
9277
|
+
function liveWaveform(props = {}, opts) {
|
|
9278
|
+
return {
|
|
9279
|
+
id: opts?.id ?? auto("liveWaveform"),
|
|
9280
|
+
body: { package: "himalaya", type: "LiveWaveform", props },
|
|
9281
|
+
modifiers: opts?.modifiers
|
|
9282
|
+
};
|
|
9283
|
+
}
|
|
9277
9284
|
function lottie(props, opts) {
|
|
9278
9285
|
return { id: opts?.id ?? auto("lottie"), body: { package: "himalaya", type: "Lottie", props } };
|
|
9279
9286
|
}
|
|
@@ -9563,6 +9570,7 @@ export {
|
|
|
9563
9570
|
lazyList,
|
|
9564
9571
|
legend,
|
|
9565
9572
|
listItem,
|
|
9573
|
+
liveWaveform,
|
|
9566
9574
|
lottie,
|
|
9567
9575
|
map,
|
|
9568
9576
|
marquee,
|
|
@@ -111,6 +111,9 @@ async function isFollowingMember(targetId) {
|
|
|
111
111
|
);
|
|
112
112
|
return res.connectedMembers?.[0]?.isFollowing === true;
|
|
113
113
|
}
|
|
114
|
+
function queryMemberAbouts(req = {}, options) {
|
|
115
|
+
return wixCall("POST", "/members/v2/abouts/query", req, options);
|
|
116
|
+
}
|
|
114
117
|
async function queryMemberActivity(ids) {
|
|
115
118
|
const unique = [...new Set(ids.filter(Boolean))];
|
|
116
119
|
if (!unique.length) return [];
|
|
@@ -153,6 +156,7 @@ export {
|
|
|
153
156
|
leaveCommunity,
|
|
154
157
|
listCurrentMemberBlocking,
|
|
155
158
|
listFollowedMembers,
|
|
159
|
+
queryMemberAbouts,
|
|
156
160
|
queryMemberActivity,
|
|
157
161
|
queryMembers,
|
|
158
162
|
unblockCurrentMember,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2508926
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 23064
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/5fe817d61d13666ee8e6951d96a873f768ef305462735f6030cce105f1c21488.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-BFkbMzVb.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "5fe817d61d13666ee8e6951d96a873f768ef305462735f6030cce105f1c21488",
|
|
85
|
+
"file": "preview-deferred/5fe817d61d13666ee8e6951d96a873f768ef305462735f6030cce105f1c21488.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|