@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.
Files changed (155) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/blog-v3/src/extensions.d.ts +21 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/rendition.d.ts +6 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +5 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +4 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-blog.mjs +8 -3
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +4 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-media.mjs +22 -4
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +5 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-rich-content.mjs +4 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +4 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +4 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +4 -0
  18. package/dist/browser-plane/assets.json +5 -5
  19. package/dist/browser-plane/preview-deferred/{155f61519885c85d61a39fa595197071a3ca07680da56055ccb1dcff2e709cd1.bin → 4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin} +1 -1
  20. package/dist/browser-plane/sw.js +5 -5
  21. package/dist/cli.mjs +4100 -3355
  22. package/dist/preview-assets.generated.bin +0 -0
  23. package/guides/component-reference.json +1 -1
  24. package/guides/component-reference.md +2 -0
  25. package/guides/designing-himi-screens.md +4 -0
  26. package/guides/himi-skill.md +6 -0
  27. package/guides/image-preview.md +92 -0
  28. package/guides/index.json +7 -0
  29. package/guides/release-notes.md +6 -0
  30. package/guides/sdk-reference.json +42 -3
  31. package/package.json +2 -2
  32. package/templates/beauty-salon/config.ts +1 -1
  33. package/templates/beauty-salon/dev/index.ts +2773 -2969
  34. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +0 -1
  35. package/templates/beauty-salon/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  36. package/templates/beauty-salon/tier5-src/_shared/himi-blog-saved.ts +0 -10
  37. package/templates/beauty-salon/tier5-src/himi-blog-feed/index.ts +220 -95
  38. package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +436 -140
  39. package/templates/beauty-salon/tier5-src/himi-blog-saved/index.ts +97 -39
  40. package/templates/beauty-salon-owner/dev/index.ts +7 -0
  41. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +0 -1
  42. package/templates/branded-lite/config.ts +1 -1
  43. package/templates/branded-lite/dev/index.ts +2741 -2937
  44. package/templates/branded-lite/l10n/en.json +12 -12
  45. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +0 -1
  46. package/templates/branded-lite/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  47. package/templates/branded-lite/tier5-src/_shared/himi-blog-saved.ts +0 -10
  48. package/templates/branded-lite/tier5-src/himi-blog-feed/index.ts +220 -95
  49. package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +436 -140
  50. package/templates/branded-lite/tier5-src/himi-blog-saved/index.ts +97 -39
  51. package/templates/community-club/config.ts +1 -1
  52. package/templates/community-club/dev/index.ts +2799 -2995
  53. package/templates/community-club/tier5-src/_shared/collection-contract.ts +0 -1
  54. package/templates/community-club/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  55. package/templates/community-club/tier5-src/_shared/himi-blog-saved.ts +0 -10
  56. package/templates/community-club/tier5-src/himi-blog-feed/index.ts +220 -95
  57. package/templates/community-club/tier5-src/himi-blog-post/index.ts +436 -140
  58. package/templates/community-club/tier5-src/himi-blog-saved/index.ts +97 -39
  59. package/templates/community-club-owner/dev/index.ts +7 -0
  60. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +0 -1
  61. package/templates/conference/tier5-src/_shared/collection-contract.ts +0 -1
  62. package/templates/events-meetups/config.ts +1 -1
  63. package/templates/events-meetups/dev/index.ts +2859 -3055
  64. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +0 -1
  65. package/templates/events-meetups/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  66. package/templates/events-meetups/tier5-src/_shared/himi-blog-saved.ts +0 -10
  67. package/templates/events-meetups/tier5-src/himi-blog-feed/index.ts +220 -95
  68. package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +436 -140
  69. package/templates/events-meetups/tier5-src/himi-blog-saved/index.ts +97 -39
  70. package/templates/events-meetups-owner/dev/index.ts +7 -0
  71. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +0 -1
  72. package/templates/gym-fitness/config.ts +1 -1
  73. package/templates/gym-fitness/dev/index.ts +2733 -2929
  74. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +0 -1
  75. package/templates/gym-fitness/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  76. package/templates/gym-fitness/tier5-src/_shared/himi-blog-saved.ts +0 -10
  77. package/templates/gym-fitness/tier5-src/himi-blog-feed/index.ts +220 -95
  78. package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +436 -140
  79. package/templates/gym-fitness/tier5-src/himi-blog-saved/index.ts +97 -39
  80. package/templates/gym-fitness-owner/dev/index.ts +7 -0
  81. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +0 -1
  82. package/templates/nonprofit-cause/config.ts +1 -1
  83. package/templates/nonprofit-cause/dev/index.ts +2813 -3009
  84. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +0 -1
  85. package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  86. package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-saved.ts +0 -10
  87. package/templates/nonprofit-cause/tier5-src/himi-blog-feed/index.ts +220 -95
  88. package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +436 -140
  89. package/templates/nonprofit-cause/tier5-src/himi-blog-saved/index.ts +97 -39
  90. package/templates/nonprofit-cause-owner/dev/index.ts +7 -0
  91. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +0 -1
  92. package/templates/owner-lite/dev/index.ts +7 -0
  93. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +0 -1
  94. package/templates/podcast-creator/config.ts +1 -1
  95. package/templates/podcast-creator/dev/index.ts +2862 -3058
  96. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +0 -1
  97. package/templates/podcast-creator/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  98. package/templates/podcast-creator/tier5-src/_shared/himi-blog-saved.ts +0 -10
  99. package/templates/podcast-creator/tier5-src/himi-blog-feed/index.ts +220 -95
  100. package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +436 -140
  101. package/templates/podcast-creator/tier5-src/himi-blog-saved/index.ts +97 -39
  102. package/templates/podcast-creator-owner/dev/index.ts +7 -0
  103. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +0 -1
  104. package/templates/portfolio-creative/config.ts +1 -1
  105. package/templates/portfolio-creative/dev/index.ts +2803 -2999
  106. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +0 -1
  107. package/templates/portfolio-creative/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  108. package/templates/portfolio-creative/tier5-src/_shared/himi-blog-saved.ts +0 -10
  109. package/templates/portfolio-creative/tier5-src/himi-blog-feed/index.ts +220 -95
  110. package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +436 -140
  111. package/templates/portfolio-creative/tier5-src/himi-blog-saved/index.ts +97 -39
  112. package/templates/portfolio-creative-owner/dev/index.ts +7 -0
  113. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +0 -1
  114. package/templates/restaurant/config.ts +1 -1
  115. package/templates/restaurant/dev/index.ts +2845 -3041
  116. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +0 -1
  117. package/templates/restaurant/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  118. package/templates/restaurant/tier5-src/_shared/himi-blog-saved.ts +0 -10
  119. package/templates/restaurant/tier5-src/himi-blog-feed/index.ts +220 -95
  120. package/templates/restaurant/tier5-src/himi-blog-post/index.ts +436 -140
  121. package/templates/restaurant/tier5-src/himi-blog-saved/index.ts +97 -39
  122. package/templates/restaurant-owner/dev/index.ts +7 -0
  123. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +0 -1
  124. package/templates/retail-store/config.ts +1 -1
  125. package/templates/retail-store/dev/index.ts +2809 -3005
  126. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +0 -1
  127. package/templates/retail-store/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  128. package/templates/retail-store/tier5-src/_shared/himi-blog-saved.ts +0 -10
  129. package/templates/retail-store/tier5-src/himi-blog-feed/index.ts +220 -95
  130. package/templates/retail-store/tier5-src/himi-blog-post/index.ts +436 -140
  131. package/templates/retail-store/tier5-src/himi-blog-saved/index.ts +97 -39
  132. package/templates/retail-store-owner/dev/index.ts +7 -0
  133. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +0 -1
  134. package/templates/salon-spa/tier5-src/_shared/collection-contract.ts +0 -1
  135. package/templates/yoga-studio/config.ts +1 -1
  136. package/templates/yoga-studio/dev/index.ts +2752 -2948
  137. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +0 -1
  138. package/templates/yoga-studio/tier5-src/_shared/himi-blog-post-row.ts +210 -0
  139. package/templates/yoga-studio/tier5-src/_shared/himi-blog-saved.ts +0 -10
  140. package/templates/yoga-studio/tier5-src/himi-blog-feed/index.ts +220 -95
  141. package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +436 -140
  142. package/templates/yoga-studio/tier5-src/himi-blog-saved/index.ts +97 -39
  143. package/templates/yoga-studio-owner/dev/index.ts +7 -0
  144. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +0 -1
  145. package/templates/beauty-salon/tier5-src/_shared/himi-blog-collection.ts +0 -7
  146. package/templates/branded-lite/tier5-src/_shared/himi-blog-collection.ts +0 -7
  147. package/templates/community-club/tier5-src/_shared/himi-blog-collection.ts +0 -7
  148. package/templates/events-meetups/tier5-src/_shared/himi-blog-collection.ts +0 -7
  149. package/templates/gym-fitness/tier5-src/_shared/himi-blog-collection.ts +0 -7
  150. package/templates/nonprofit-cause/tier5-src/_shared/himi-blog-collection.ts +0 -7
  151. package/templates/podcast-creator/tier5-src/_shared/himi-blog-collection.ts +0 -7
  152. package/templates/portfolio-creative/tier5-src/_shared/himi-blog-collection.ts +0 -7
  153. package/templates/restaurant/tier5-src/_shared/himi-blog-collection.ts +0 -7
  154. package/templates/retail-store/tier5-src/_shared/himi-blog-collection.ts +0 -7
  155. 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;
@@ -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;
@@ -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. `queryPosts`'s
42
- * request type has no `fieldsets` field, so that fallback path cannot carry the
43
- * body. Detail readers can opt into `preserveAccessErrors` to keep HTTP 401/403
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 resp = await queryPosts({ query: { filter: { id: postId } } }, readOptions);
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 = mode === "fill" ? `${(transform ? sw : w) / divisor}:${(transform ? sh : h) / divisor}` : "";
56
- result.family = `${base}|${mode}|${shape}|${extras.join(",")}${suffix}`;
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/${mode}/w_${w},h_${h},${quality}${extras.length ? "," + extras.join(",") : ""}/${transform ? filename : "image." + ext}${suffix}`;
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 targets = fixed ? scales.map((scale) => ({ width: box.width, height: box.height, scale, mode: box.mode })) : FLUID_WIDTHS.map((width) => ({ width, height: box.ratio ? width / box.ratio : width, scale: 1, mode: box.ratio ? box.mode : "fit" }));
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": 2462113
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/155f61519885c85d61a39fa595197071a3ca07680da56055ccb1dcff2e709cd1.bin",
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-DTUlmBj2.js",
82
+ "key": "assets/pdf-D8JQa8ez.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "155f61519885c85d61a39fa595197071a3ca07680da56055ccb1dcff2e709cd1",
85
- "file": "preview-deferred/155f61519885c85d61a39fa595197071a3ca07680da56055ccb1dcff2e709cd1.bin"
84
+ "sha256": "4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb",
85
+ "file": "preview-deferred/4ef4d326496b4d7809746936207067b4c921f5db9878ecc7030aa3a9e4d2aaeb.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",