@wix/vibe-bookings-plugin 0.12.0 → 0.13.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/index.cjs CHANGED
@@ -4360,14 +4360,17 @@ var LLMService = class {
4360
4360
  this.logger.debug("generating image", { basePrompt, options });
4361
4361
  const imageUrl = await this.env.generateImage(basePrompt, options);
4362
4362
  this.logger.debug("generated image", { imageUrl });
4363
- const imageId = imageUrl?.split("https://static.wixstatic.com/media/")[1]?.split("?")[0];
4364
- if (!imageId) {
4365
- this.logger.warn("Unexpected image URL format, could not extract imageId", {
4366
- imageUrl
4367
- });
4363
+ const imageFileName = imageUrl?.split("https://static.wixstatic.com/media/")[1]?.split("?")[0];
4364
+ if (!imageFileName) {
4365
+ this.logger.warn(
4366
+ "Unexpected image URL format, could not extract imageId",
4367
+ {
4368
+ imageUrl
4369
+ }
4370
+ );
4368
4371
  }
4369
4372
  return {
4370
- ...imageId && { imageId },
4373
+ ...imageFileName && { imageId: `wix:${imageFileName}` },
4371
4374
  imageUrl
4372
4375
  };
4373
4376
  }