@wix/himalaya-cli 0.1646.0 → 0.1648.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 +3 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/blog-v3/src/extensions.d.ts +21 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/rendition.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-blog.mjs +8 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-media.mjs +22 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +4 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{155f61519885c85d61a39fa595197071a3ca07680da56055ccb1dcff2e709cd1.bin → 4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +4100 -3355
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +2 -0
- package/guides/designing-himi-screens.md +4 -0
- package/guides/himi-skill.md +6 -0
- package/guides/image-preview.md +92 -0
- package/guides/index.json +7 -0
- package/guides/release-notes.md +6 -0
- package/guides/sdk-reference.json +42 -3
- package/package.json +2 -2
- package/templates/beauty-salon/config.ts +1 -1
- package/templates/beauty-salon/dev/index.ts +2773 -2969
- package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/beauty-salon/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/beauty-salon/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/beauty-salon/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/beauty-salon-owner/dev/index.ts +7 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/branded-lite/config.ts +1 -1
- package/templates/branded-lite/dev/index.ts +2741 -2937
- package/templates/branded-lite/l10n/en.json +12 -12
- package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/branded-lite/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/branded-lite/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/branded-lite/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/branded-lite/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/community-club/config.ts +1 -1
- package/templates/community-club/dev/index.ts +2799 -2995
- package/templates/community-club/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/community-club/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/community-club/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/community-club/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/community-club/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/community-club/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/community-club-owner/dev/index.ts +7 -0
- package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/conference/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/events-meetups/config.ts +1 -1
- package/templates/events-meetups/dev/index.ts +2859 -3055
- package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/events-meetups/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/events-meetups/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/events-meetups/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/events-meetups/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/events-meetups-owner/dev/index.ts +7 -0
- package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/gym-fitness/config.ts +1 -1
- package/templates/gym-fitness/dev/index.ts +2733 -2929
- package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/gym-fitness/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/gym-fitness/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/gym-fitness/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/gym-fitness-owner/dev/index.ts +7 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/nonprofit-cause/config.ts +1 -1
- package/templates/nonprofit-cause/dev/index.ts +2813 -3009
- package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/nonprofit-cause/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/nonprofit-cause/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/nonprofit-cause-owner/dev/index.ts +7 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/owner-lite/dev/index.ts +7 -0
- package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/podcast-creator/config.ts +1 -1
- package/templates/podcast-creator/dev/index.ts +2862 -3058
- package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/podcast-creator/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/podcast-creator/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/podcast-creator/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/podcast-creator-owner/dev/index.ts +7 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/portfolio-creative/config.ts +1 -1
- package/templates/portfolio-creative/dev/index.ts +2803 -2999
- package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/portfolio-creative/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/portfolio-creative/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/portfolio-creative/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/portfolio-creative-owner/dev/index.ts +7 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/restaurant/config.ts +1 -1
- package/templates/restaurant/dev/index.ts +2845 -3041
- package/templates/restaurant/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/restaurant/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/restaurant/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/restaurant/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/restaurant/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/restaurant/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/restaurant-owner/dev/index.ts +7 -0
- package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/retail-store/config.ts +1 -1
- package/templates/retail-store/dev/index.ts +2809 -3005
- package/templates/retail-store/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/retail-store/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/retail-store/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/retail-store/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/retail-store/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/retail-store/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/retail-store-owner/dev/index.ts +7 -0
- package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/salon-spa/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/yoga-studio/config.ts +1 -1
- package/templates/yoga-studio/dev/index.ts +2752 -2948
- package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/yoga-studio/tier5-src/_shared/himi-blog-post-row.ts +210 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-blog-saved.ts +0 -10
- package/templates/yoga-studio/tier5-src/himi-blog-feed/index.ts +220 -95
- package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +436 -140
- package/templates/yoga-studio/tier5-src/himi-blog-saved/index.ts +97 -39
- package/templates/yoga-studio-owner/dev/index.ts +7 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +0 -1
- package/templates/beauty-salon/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/branded-lite/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/community-club/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/events-meetups/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/gym-fitness/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/podcast-creator/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/portfolio-creative/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/restaurant/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/retail-store/tier5-src/_shared/himi-blog-collection.ts +0 -7
- package/templates/yoga-studio/tier5-src/_shared/himi-blog-collection.ts +0 -7
|
@@ -263,7 +263,9 @@ export declare function appIntent(pkg: string, type: string, props: unknown, opt
|
|
|
263
263
|
* announces; without one it is DECORATIVE. Both are correct answers and the
|
|
264
264
|
* choice is the author's, but `contentDescription: ""` spells the second one
|
|
265
265
|
* ambiguously — it reads as an unfinished name rather than a decision. Pass
|
|
266
|
-
* `decorative: true` to say it out loud (`modifiers.accessibilityRole`).
|
|
266
|
+
* `decorative: true` to say it out loud (`modifiers.accessibilityRole`).
|
|
267
|
+
* On a screen, a tap opens the image full screen by default; `modifiers.imagePreview: "off"` on it or
|
|
268
|
+
* a subtree opts out (`himi docs image-preview`). */
|
|
267
269
|
export declare function image(props: {
|
|
268
270
|
url?: string;
|
|
269
271
|
asset?: string;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -144,6 +144,8 @@ export interface Shadow {
|
|
|
144
144
|
export interface Modifiers {
|
|
145
145
|
/** Changing non-empty token: scroll this node into view and move accessibility focus to it. */
|
|
146
146
|
scrollIntoViewPath?: string;
|
|
147
|
+
/** RFC 0078 — inherited preview scope; unknown values inherit. */
|
|
148
|
+
imagePreview?: string;
|
|
147
149
|
padding?: EdgeInsets;
|
|
148
150
|
background?: TokenRef;
|
|
149
151
|
cornerRadius?: number;
|
|
@@ -814,6 +816,8 @@ export type ImageSource = {
|
|
|
814
816
|
} | {
|
|
815
817
|
asset: string;
|
|
816
818
|
};
|
|
819
|
+
/** On a screen, a tap opens the image full screen by default; `modifiers.imagePreview: "off"` on it or a
|
|
820
|
+
* subtree opts out (`himi docs image-preview`). */
|
|
817
821
|
export type ImageProps = {
|
|
818
822
|
/** Literal URL, or binding-aware `$service:`/`$item.` image URL. */
|
|
819
823
|
url?: string;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts
CHANGED
|
@@ -1126,6 +1126,9 @@ export declare const screenDescriptorSchema: {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
};
|
|
1128
1128
|
};
|
|
1129
|
+
readonly imagePreview: {
|
|
1130
|
+
readonly type: "string";
|
|
1131
|
+
};
|
|
1129
1132
|
readonly ambientMotion: {
|
|
1130
1133
|
readonly type: "object";
|
|
1131
1134
|
readonly additionalProperties: false;
|
|
@@ -2639,6 +2642,9 @@ export declare const widgetSnapshotSchema: {
|
|
|
2639
2642
|
};
|
|
2640
2643
|
};
|
|
2641
2644
|
};
|
|
2645
|
+
readonly imagePreview: {
|
|
2646
|
+
readonly type: "string";
|
|
2647
|
+
};
|
|
2642
2648
|
readonly ambientMotion: {
|
|
2643
2649
|
readonly type: "object";
|
|
2644
2650
|
readonly additionalProperties: false;
|
|
@@ -38,9 +38,9 @@ export interface WixGetPostRequest {
|
|
|
38
38
|
*
|
|
39
39
|
* On network / backend rejection we still fall back to a queryPosts
|
|
40
40
|
* filter-by-id — a graceful degrade to the LIST projection (no body) that keeps
|
|
41
|
-
* blog detail + saved screens rendering instead of erroring out.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* blog detail + saved screens rendering instead of erroring out. That list read
|
|
42
|
+
* cannot carry the body; it forwards only a requested METRICS / URL fieldset,
|
|
43
|
+
* so counts and the post link survive the fallback. Detail readers can opt into `preserveAccessErrors` to keep HTTP 401/403
|
|
44
44
|
* refusals instead of a public metadata fallback; default callers are unchanged.
|
|
45
45
|
*
|
|
46
46
|
* When that fallback ALSO finds nothing — a deleted post, or one this visitor
|
|
@@ -119,3 +119,21 @@ export interface WixQueryDraftPostsResponse {
|
|
|
119
119
|
export declare function queryDraftPosts(req?: WixQueryDraftPostsRequest, opts?: WixCallOptions): Promise<WixQueryDraftPostsResponse>;
|
|
120
120
|
/** Cancel a post's schedule — PATCH /draft-posts/{id} {action:"UPDATE_CANCEL_SCHEDULE"}. */
|
|
121
121
|
export declare function cancelScheduleDraftPost(postId: string): Promise<WixUpdateDraftPostResponse>;
|
|
122
|
+
export interface WixBlogTag {
|
|
123
|
+
id: string;
|
|
124
|
+
label?: string;
|
|
125
|
+
slug?: string;
|
|
126
|
+
publishedPostCount?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface WixQueryTagsResponse {
|
|
129
|
+
tags: WixBlogTag[];
|
|
130
|
+
}
|
|
131
|
+
/** Query blog tags — POST /blog/v3/tags/query.
|
|
132
|
+
* @scope visitor — public tag labels; a visitor token reads them. */
|
|
133
|
+
export declare function queryTags(req?: {
|
|
134
|
+
filter?: Record<string, unknown>;
|
|
135
|
+
paging?: {
|
|
136
|
+
limit?: number;
|
|
137
|
+
offset?: number;
|
|
138
|
+
};
|
|
139
|
+
}, opts?: WixCallOptions): Promise<WixQueryTagsResponse>;
|
|
@@ -5,7 +5,11 @@ export interface ImageTarget {
|
|
|
5
5
|
scale: number;
|
|
6
6
|
mode?: string;
|
|
7
7
|
maxEdge?: number;
|
|
8
|
+
/** The image opens the image preview: fetched whole, never cropped by the server. */
|
|
9
|
+
previewable?: boolean;
|
|
8
10
|
}
|
|
11
|
+
/** Full-screen preview opts into 2048px on phones; desktop/TV keep their larger ceiling. */
|
|
12
|
+
export declare function imagePreviewMaxEdge(platformMaxEdge?: number): number;
|
|
9
13
|
/**
|
|
10
14
|
* The pixel size an image is requested at for a box of `width`×`height` points at `scale`: the box in pixels,
|
|
11
15
|
* its longer edge rounded up to a shared bucket (96 … 1400, or up to `maxEdge`, at most 4096) so nearby sizes
|
|
@@ -39,4 +43,6 @@ export declare function imageCandidates(source: string, box: {
|
|
|
39
43
|
height?: number;
|
|
40
44
|
ratio?: number;
|
|
41
45
|
mode?: string;
|
|
46
|
+
maxEdge?: number;
|
|
47
|
+
previewable?: boolean;
|
|
42
48
|
}, scales?: number[]): ImageCandidate[];
|
|
@@ -135,6 +135,11 @@ export interface WixListCurrentMemberBlockingResponse {
|
|
|
135
135
|
/** List site members — POST /members/v1/members/query. Pass `{ query: { paging: { limit, offset? } } }`
|
|
136
136
|
* (offset paging). Do not pass `cursorPaging` — that is a different Wix envelope and is not on this type. */
|
|
137
137
|
export declare function queryMembers(req?: WixQueryMembersRequest, readOptions?: WixCallOptions): Promise<WixQueryMembersResponse>;
|
|
138
|
+
/** A member's PUBLIC profile (nickname, photo) by id — GET /members/v1/members/{id}?fieldsets=PUBLIC.
|
|
139
|
+
* Readable by a visitor even where the member directory (`queryMembers`) is private.
|
|
140
|
+
* Verified live 2026-11-08 with a visitor token on the amit1 demo site (200).
|
|
141
|
+
* @scope visitor — public profile fields only. */
|
|
142
|
+
export declare function getPublicMember(id: string, options?: WixCallOptions): Promise<WixGetMemberResponse>;
|
|
138
143
|
/** Fetch a single member by id — GET /members/v1/members/{id}?fieldsets=FULL. */
|
|
139
144
|
export declare function getMember(id: string, options?: WixCallOptions): Promise<WixGetMemberResponse>;
|
|
140
145
|
/** Fetch the currently authenticated member — member-scoped, unlike the owner roster query.
|
|
@@ -9453,6 +9453,7 @@ var screenDescriptorSchema = {
|
|
|
9453
9453
|
// RFC 0069 — recurring, finite, transform-only motion on a decorative node. `kind`
|
|
9454
9454
|
// is an open string: an unknown kind renders no motion, so an older validator must
|
|
9455
9455
|
// not reject a newer one.
|
|
9456
|
+
imagePreview: { type: "string" },
|
|
9456
9457
|
ambientMotion: {
|
|
9457
9458
|
type: "object",
|
|
9458
9459
|
additionalProperties: false,
|
|
@@ -324,6 +324,10 @@ function createBusinessContactService(opts = {}) {
|
|
|
324
324
|
return svc;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
328
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
329
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
330
|
+
|
|
327
331
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
328
332
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
329
333
|
var WIX_DETAIL_IMAGE = { width: 1400, height: 1400, quality: 85 };
|
|
@@ -7646,6 +7646,7 @@ var screenDescriptorSchema = {
|
|
|
7646
7646
|
// RFC 0069 — recurring, finite, transform-only motion on a decorative node. `kind`
|
|
7647
7647
|
// is an open string: an unknown kind renders no motion, so an older validator must
|
|
7648
7648
|
// not reject a newer one.
|
|
7649
|
+
imagePreview: { type: "string" },
|
|
7649
7650
|
ambientMotion: {
|
|
7650
7651
|
type: "object",
|
|
7651
7652
|
additionalProperties: false,
|
|
@@ -17,7 +17,8 @@ function getPost(postId, req = {}, readOptions) {
|
|
|
17
17
|
).catch(async (cause) => {
|
|
18
18
|
if (readOptions?.preserveAccessErrors && /^HTTP\s*(?:401|403)\b/i.test(String(cause?.message ?? cause))) throw cause;
|
|
19
19
|
if (readOptions?.cache || readOptions?.onCacheResult) throw cause;
|
|
20
|
-
const
|
|
20
|
+
const listFieldsets = fieldsets.filter((f) => f === "METRICS" || f === "URL");
|
|
21
|
+
const resp = await queryPosts({ query: { filter: { id: postId } }, ...listFieldsets.length ? { fieldsets: listFieldsets } : {} }, readOptions);
|
|
21
22
|
const post = resp.posts?.[0];
|
|
22
23
|
if (!post) {
|
|
23
24
|
const err = new Error(`Blog post not found: ${postId}`);
|
|
@@ -53,11 +54,11 @@ function revertDraftPost(postId) {
|
|
|
53
54
|
}
|
|
54
55
|
function likePost(postId) {
|
|
55
56
|
if (!postId) throw new Error("likePost: postId is required");
|
|
56
|
-
return wixCall("POST", `/blog/v3/posts/${encodeURIComponent(postId)}/like`, {});
|
|
57
|
+
return wixCall("POST", `/blog/v3/posts/${encodeURIComponent(postId)}/like`, { fieldsets: ["METRICS"] });
|
|
57
58
|
}
|
|
58
59
|
function unlikePost(postId) {
|
|
59
60
|
if (!postId) throw new Error("unlikePost: postId is required");
|
|
60
|
-
return wixCall("POST", `/blog/v3/posts/${encodeURIComponent(postId)}/unlike`, {});
|
|
61
|
+
return wixCall("POST", `/blog/v3/posts/${encodeURIComponent(postId)}/unlike`, { fieldsets: ["METRICS"] });
|
|
61
62
|
}
|
|
62
63
|
function queryDraftPosts(req = {}, opts) {
|
|
63
64
|
return wixCall("POST", `${DRAFTS}/query`, req, opts);
|
|
@@ -65,6 +66,9 @@ function queryDraftPosts(req = {}, opts) {
|
|
|
65
66
|
function cancelScheduleDraftPost(postId) {
|
|
66
67
|
return updateDraftPost(postId, {}, "UPDATE_CANCEL_SCHEDULE");
|
|
67
68
|
}
|
|
69
|
+
function queryTags(req = {}, opts) {
|
|
70
|
+
return wixCall("POST", "/blog/v3/tags/query", { query: req }, opts);
|
|
71
|
+
}
|
|
68
72
|
|
|
69
73
|
// ../../stdlib/wix-sdk/blog-v3/src/index.ts
|
|
70
74
|
function wixCallHeaders(opts) {
|
|
@@ -119,6 +123,7 @@ export {
|
|
|
119
123
|
queryCategories,
|
|
120
124
|
queryDraftPosts,
|
|
121
125
|
queryPosts,
|
|
126
|
+
queryTags,
|
|
122
127
|
revertDraftPost,
|
|
123
128
|
scheduleDraftPost,
|
|
124
129
|
unlikePost,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
2
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
3
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
4
|
+
|
|
1
5
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
2
6
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
3
7
|
var WIX_MEDIA = /^https?:\/\/static\.wixstatic\.com\/media\/[^/]/;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
2
|
+
function imagePreviewMaxEdge(platformMaxEdge = 1400) {
|
|
3
|
+
return platformMaxEdge > 2048 ? Math.min(4096, platformMaxEdge) : 2048;
|
|
4
|
+
}
|
|
2
5
|
var BUCKETS = [96, 128, 160, 192, 256, 320, 384, 512, 640, 768, 1024, 1280, 1400, 2048, 2560, 3072, 4096];
|
|
3
6
|
var CREDENTIAL = /(?:[?&])(?:token|expires|signature|x-amz-[^=&#]*|pvt)=/i;
|
|
4
7
|
var WIX = /^(https?:\/\/static\.wixstatic\.com\/media\/([^/?#]+))([^?#]*)([?#].*)?$/i;
|
|
@@ -50,18 +53,32 @@ function resolveImageRendition(source, target) {
|
|
|
50
53
|
h = Math.min(h, sh);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
56
|
+
const whole = !transform && mode === "fill" && target.previewable === true;
|
|
57
|
+
const fetched = whole ? "fit" : mode;
|
|
58
|
+
if (whole) {
|
|
59
|
+
const cap = imagePreviewMaxEdge(Number.isFinite(target.maxEdge) ? target.maxEdge : 1400), longest = Math.max(w, h);
|
|
60
|
+
if (2 * longest <= cap) {
|
|
61
|
+
w *= 2;
|
|
62
|
+
h *= 2;
|
|
63
|
+
} else {
|
|
64
|
+
w = Math.max(1, Math.ceil(w * cap / longest));
|
|
65
|
+
h = Math.max(1, Math.ceil(h * cap / longest));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
53
68
|
const gcd = (a, b) => b ? gcd(b, a % b) : a;
|
|
54
69
|
const divisor = gcd(transform ? sw : w, transform ? sh : h);
|
|
55
|
-
const shape =
|
|
56
|
-
result.family = `${base}|${
|
|
70
|
+
const shape = fetched === "fill" ? `${(transform ? sw : w) / divisor}:${(transform ? sh : h) / divisor}` : "";
|
|
71
|
+
result.family = `${base}|${fetched}|${shape}|${extras.join(",")}${suffix}`;
|
|
57
72
|
if (transform && sw <= pixels.width && sh <= pixels.height) return result;
|
|
58
|
-
result.url = `${base}/v1/${
|
|
73
|
+
result.url = `${base}/v1/${fetched}/w_${w},h_${h},${quality}${extras.length ? "," + extras.join(",") : ""}/${transform ? filename : "image." + ext}${suffix}`;
|
|
59
74
|
return result;
|
|
60
75
|
}
|
|
61
76
|
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
77
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
62
78
|
function imageCandidates(source, box, scales = [1, 2, 3]) {
|
|
63
79
|
const fixed = typeof box.width === "number" && box.width > 0 && typeof box.height === "number" && box.height > 0;
|
|
64
|
-
const
|
|
80
|
+
const widths = (box.maxEdge ?? 1400) > 2048 ? DESKTOP_PREVIEW_WIDTHS : FLUID_WIDTHS;
|
|
81
|
+
const targets = fixed ? scales.map((scale) => ({ width: box.width, height: box.height, scale, mode: box.mode, maxEdge: box.maxEdge, previewable: box.previewable })) : widths.map((width) => ({ width, height: box.ratio ? width / box.ratio : width, scale: 1, mode: box.ratio ? box.mode : "fit", maxEdge: box.maxEdge, previewable: box.previewable }));
|
|
65
82
|
const seen = /* @__PURE__ */ new Set();
|
|
66
83
|
const out = [];
|
|
67
84
|
for (const target of targets) {
|
|
@@ -171,6 +188,7 @@ export {
|
|
|
171
188
|
WIX_LIST_IMAGE,
|
|
172
189
|
imageCandidates,
|
|
173
190
|
imagePixelSize,
|
|
191
|
+
imagePreviewMaxEdge,
|
|
174
192
|
isUnsizedWixMedia,
|
|
175
193
|
resolveImageRendition,
|
|
176
194
|
wixMediaUrl
|
|
@@ -18,6 +18,10 @@ function wixCall(method, path, body, readOptions) {
|
|
|
18
18
|
function queryMembers(req = {}, readOptions) {
|
|
19
19
|
return wixCall("POST", "/members/v1/members/query", req, readOptions);
|
|
20
20
|
}
|
|
21
|
+
function getPublicMember(id, options) {
|
|
22
|
+
if (!id) throw new Error("getPublicMember: id is required");
|
|
23
|
+
return wixCall("GET", `/members/v1/members/${encodeURIComponent(id)}?fieldsets=PUBLIC`, void 0, options);
|
|
24
|
+
}
|
|
21
25
|
function getMember(id, options) {
|
|
22
26
|
if (!id) throw new Error("getMember: id is required");
|
|
23
27
|
return wixCall("GET", `/members/v1/members/${encodeURIComponent(id)}?fieldsets=FULL`, void 0, options);
|
|
@@ -143,6 +147,7 @@ export {
|
|
|
143
147
|
getFollowCounts,
|
|
144
148
|
getMember,
|
|
145
149
|
getMyMember,
|
|
150
|
+
getPublicMember,
|
|
146
151
|
isFollowingMember,
|
|
147
152
|
joinCommunity,
|
|
148
153
|
leaveCommunity,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
2
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
3
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
4
|
+
|
|
1
5
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
2
6
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
3
7
|
var WIX_DETAIL_IMAGE = { width: 1400, height: 1400, quality: 85 };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
2
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
3
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
4
|
+
|
|
1
5
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
2
6
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
3
7
|
var WIX_MEDIA = /^https?:\/\/static\.wixstatic\.com\/media\/[^/]/;
|
|
@@ -237,6 +237,10 @@ function toV3Update(productId, patch, current) {
|
|
|
237
237
|
return out;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
241
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
242
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
243
|
+
|
|
240
244
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
241
245
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
242
246
|
var WIX_DETAIL_IMAGE = { width: 1400, height: 1400, quality: 85 };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// ../../stdlib/wix-sdk/media/src/rendition.ts
|
|
2
|
+
var FLUID_WIDTHS = [320, 640, 768, 1024, 1280, 1400, 2048];
|
|
3
|
+
var DESKTOP_PREVIEW_WIDTHS = [...FLUID_WIDTHS, 2560, 3072, 4096];
|
|
4
|
+
|
|
1
5
|
// ../../stdlib/wix-sdk/media/src/index.ts
|
|
2
6
|
var WIX_LIST_IMAGE = { width: 1e3, height: 1e3, quality: 85 };
|
|
3
7
|
var WIX_MEDIA = /^https?:\/\/static\.wixstatic\.com\/media\/[^/]/;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2500666
|
|
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/4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.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-D8JQa8ez.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb",
|
|
85
|
+
"file": "preview-deferred/4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|