@rtsee/ngx 0.0.107 → 0.0.108
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.
|
@@ -18,7 +18,7 @@ import { RouterLink, RouterLinkActive, NavigationEnd } from '@angular/router';
|
|
|
18
18
|
import { Divider } from 'primeng/divider';
|
|
19
19
|
import * as i1$1 from '@angular/common/http';
|
|
20
20
|
import { RTSeeChatMemberRoles, RTSeeIllustratorEvents, RTSeeChatTypes, OzzyTaskStatus } from '@rtsee/common';
|
|
21
|
-
import { ManageAgentForm, RTSeeForm, RTSeeFormFieldRadioGroup, RTSeeFormField, RTSeeFormFieldImageUploader, RTSeeRater } from '@rtsee/utilities-ui';
|
|
21
|
+
import { sanitizeImageUrl, ManageAgentForm, RTSeeForm, RTSeeFormFieldRadioGroup, RTSeeFormField, RTSeeFormFieldImageUploader, RTSeeRater } from '@rtsee/utilities-ui';
|
|
22
22
|
import { InputText } from 'primeng/inputtext';
|
|
23
23
|
import { InputGroup } from 'primeng/inputgroup';
|
|
24
24
|
import { Textarea } from 'primeng/textarea';
|
|
@@ -711,7 +711,7 @@ class RTSeeImageUploaderComponent {
|
|
|
711
711
|
if (response.reviewingGeneratedImage && response.imageUrl) {
|
|
712
712
|
// 1. If RTSeeIllustrator is in reviewingGeneratedImage mode, apply currently reviewed image to ImageUploader
|
|
713
713
|
this.submittingFromPainting = true;
|
|
714
|
-
this.imageUploader.applyImageUrl(response.imageUrl);
|
|
714
|
+
this.imageUploader.applyImageUrl(sanitizeImageUrl(response.imageUrl));
|
|
715
715
|
// and if Imageuploader is part of the form it should immediately submit the form
|
|
716
716
|
setTimeout(() => {
|
|
717
717
|
this.submitParentForm();
|
|
@@ -1884,9 +1884,10 @@ class MediaWidgetComponent {
|
|
|
1884
1884
|
event.stopPropagation();
|
|
1885
1885
|
event.preventDefault();
|
|
1886
1886
|
if (typeof window !== 'undefined' && img?.url) {
|
|
1887
|
+
const cleanUrl = sanitizeImageUrl(img.url);
|
|
1887
1888
|
window.dispatchEvent(new CustomEvent(RTSeeIllustratorEvents.SET_IMAGE_FOR_REVIEW, {
|
|
1888
1889
|
detail: {
|
|
1889
|
-
imageUrl:
|
|
1890
|
+
imageUrl: cleanUrl,
|
|
1890
1891
|
prompt: img.name || (typeof this.message.text === 'string' ? this.message.text : '') || '',
|
|
1891
1892
|
source: 'messenger',
|
|
1892
1893
|
},
|
|
@@ -3972,7 +3973,7 @@ class StoryElementsSectionComponent {
|
|
|
3972
3973
|
async applyReviewedImageToItem(event, item) {
|
|
3973
3974
|
event.stopPropagation();
|
|
3974
3975
|
event.preventDefault();
|
|
3975
|
-
const imageUrl = this._illustrator?.currentGeneratedImageUrl;
|
|
3976
|
+
const imageUrl = sanitizeImageUrl(this._illustrator?.currentGeneratedImageUrl);
|
|
3976
3977
|
if (!imageUrl)
|
|
3977
3978
|
return;
|
|
3978
3979
|
this.cdr.markForCheck();
|
|
@@ -4182,7 +4183,7 @@ class InteractiveStoryEditorComponent {
|
|
|
4182
4183
|
async applyReviewedImageToSlide(event, slide) {
|
|
4183
4184
|
event.stopPropagation();
|
|
4184
4185
|
event.preventDefault();
|
|
4185
|
-
const imageUrl = this.illustrator.currentGeneratedImageUrl;
|
|
4186
|
+
const imageUrl = sanitizeImageUrl(this.illustrator.currentGeneratedImageUrl);
|
|
4186
4187
|
if (!imageUrl || !slide.id)
|
|
4187
4188
|
return;
|
|
4188
4189
|
this.slideUpdatingIds.add(slide.id);
|