@covet-pics/covet-pics-widget 0.140.2 → 0.141.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/cjs/covet-pics-gallery-header_5.cjs.entry.js +3 -3
- package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js.map +1 -1
- package/dist/collection/components/covet-pics-upload/covet-pics-upload.js +3 -3
- package/dist/collection/components/covet-pics-upload/covet-pics-upload.js.map +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/{p-37837e75.entry.js → p-572ddd7e.entry.js} +2 -2
- package/dist/covet-pics-widget/p-572ddd7e.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-81a550eb.system.js +1 -1
- package/dist/covet-pics-widget/{p-09e148f0.system.entry.js → p-ddf544b8.system.entry.js} +2 -2
- package/dist/covet-pics-widget/p-ddf544b8.system.entry.js.map +1 -0
- package/dist/esm/covet-pics-gallery-header_5.entry.js +3 -3
- package/dist/esm/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/package.json +1 -1
- package/dist/covet-pics-widget/p-09e148f0.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-37837e75.entry.js.map +0 -1
|
@@ -9437,7 +9437,7 @@ const CovetPicsUpload = class {
|
|
|
9437
9437
|
const completeText = this.select(".upload-step.step4 .upload-text.completed");
|
|
9438
9438
|
successIcon.classList.toggle("invisible", !success);
|
|
9439
9439
|
if (success) {
|
|
9440
|
-
completeText.innerHTML = this.appState.settings.
|
|
9440
|
+
completeText.innerHTML = this.appState.settings.customer_photo_upload_complete_body;
|
|
9441
9441
|
}
|
|
9442
9442
|
else {
|
|
9443
9443
|
completeText.innerHTML = UPLOAD_FAILED_TEXT;
|
|
@@ -9502,7 +9502,7 @@ const CovetPicsUpload = class {
|
|
|
9502
9502
|
const completeText = this.select(".upload-step.step4 .upload-text.completed");
|
|
9503
9503
|
successIcon.classList.toggle("invisible", !success);
|
|
9504
9504
|
if (success) {
|
|
9505
|
-
completeText.innerHTML = this.appState.settings.
|
|
9505
|
+
completeText.innerHTML = this.appState.settings.customer_photo_upload_complete_body;
|
|
9506
9506
|
}
|
|
9507
9507
|
else {
|
|
9508
9508
|
completeText.innerHTML = UPLOAD_FAILED_TEXT;
|
|
@@ -9774,7 +9774,7 @@ const CovetPicsUpload = class {
|
|
|
9774
9774
|
return (index.h(index.Host, { style: this.setPopupCSSVariables(), class: "needsclick" /* FIXME: https://github.com/ftlabs/fastclick/issues/604 */ }, index.h("div", { class: { "popup": true, "animated": this.appState.settings.popup_animation, "upload_widget": true }, tabindex: this.uploadTabIndex, role: "dialog", "aria-label": "Upload" }, index.h("div", { class: "upload" }, !this.standalone &&
|
|
9775
9775
|
index.h("button", { class: "upload-close", type: "button", "data-dismiss": "popup", onClick: this.hidePopupClickHandler, "aria-label": "popup close" }), index.h("form", { class: "upload-form" }, index.h("div", { class: "upload-scroll" }, index.h("div", { class: "upload-step step1" }, index.h("h2", { class: "upload-h2" }, this.appState.settings.customer_photo_upload_title), index.h("h3", { class: "upload-h3" }, this.appState.settings.customer_photo_upload_body), index.h("div", { class: "dropzone" }, index.h("div", { class: "dropzone-graphics", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler, onClick: this.openDialog }, SVGDropdown(), index.h("div", { class: "upload-drop" }, index.h("div", { class: "upload-text upload-text-drop" }, this.appState.settings.customer_photo_upload_drop_files_label), index.h("span", { class: "upload-drop-progress" })), index.h("input", { type: "file", hidden: true, name: "files[]", multiple: true, accept: "image/png,image/gif,image/jpg,image/jpeg", onChange: this.onChangeHandler, "aria-label": this.appState.settings.customer_photo_upload_drop_files_label })), index.h("div", { class: "upload-gallery no-active", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler }, this.thumbnailLinks.map((link, index$1) => index.h("div", { class: `upload-img-wrap wrap-pos-${index$1 + 1} img-count-${this.thumbnailLinks.length} before-enter`, onClick: (e) => this.onRemoveImageHandler(e, link) }, index.h("img", { src: link, alt: `uploaded img preview ${index$1 + 1}/${this.thumbnailLinks.length}`, class: "upload-img" }), index.h("span", { class: "icon-cross" }))), this.thumbnailLinks.length < 4 &&
|
|
9776
9776
|
index.h("span", { class: `upload-img-wrap wrap-pos-${this.thumbnailLinks.length + 1} upload-img-upload img-count-${this.thumbnailLinks.length} before-enter`, onClick: this.onUploadClickHandler }, index.h("span", { class: "icon-cross plus" }))), index.h("span", { class: "upload-img-count" }, "(", this.thumbnailLinks.length, "/4)")), index.h("button", { type: "button", class: "btn-skip", onClick: () => this.showSkipToStep2(), "aria-label": "skip upload image for text review" }, "Skip", index.h(popupFuncComponents.IconDown, null))), index.h("div", { class: "upload-step step2 hidden" }, index.h("div", { class: "star-rating" }, starsArray.map((el, index$1) => index.h("span", { class: { "icon-star": true, "active": el <= this.starRating, "warning": this.showFormWarning && this.postData["rating"] === null }, onClick: (e) => this.starClickHandler(e, index$1), onMouseEnter: () => { this.starRating = index$1 + 1; this.showFormWarning = false; }, onMouseLeave: () => this.starRating = this.postData["rating"] }, SVGStar()))), index.h("input", { type: "text", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_id") }, placeholder: this.appState.settings.customer_photo_upload_form_name_placeholder, name: "source_user_id", onInput: this.postDataChangeHandler, value: this.postData["source_user_id"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_name_placeholder }), index.h("input", { type: "email", class: { "form-control": true, "warning": this.showFormWarning && !this.isInputValid("source_user_email") }, placeholder: this.appState.settings.customer_photo_upload_form_email_placeholder, name: "source_user_email", onInput: this.postDataChangeHandler, value: this.postData["source_user_email"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_email_placeholder }), index.h("textarea", { class: { "form-control form-textarea": true, "warning": this.showFormWarning && !this.isInputValid("caption") }, rows: 6, placeholder: this.appState.settings.customer_photo_upload_form_body_placeholder, name: "caption", onInput: this.postDataChangeHandler, value: this.postData["caption"], required: true, "aria-label": this.appState.settings.customer_photo_upload_form_body_placeholder }), this.appState.settings.customer_photo_upload_form_legal_message !== "" &&
|
|
9777
|
-
index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { type: "submit", class: { "upload-submit": true }, onClick: this.handleSendClick, "aria-label": this.appState.settings.customer_photo_upload_form_send_label }, this.appState.settings.customer_photo_upload_form_send_label)), index.h("div", { class: "upload-step step3 hidden" }, index.h("h2", { class: "upload-h2 progress" }, this.appState.settings.customer_photo_upload_form_uploading), index.h("div", { class: "progress-bar" })), index.h("div", { class: "upload-step step4 hidden" }, SVGCompleted(), index.h("p", { class: "upload-text completed", innerHTML: this.appState.settings.
|
|
9777
|
+
index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { type: "submit", class: { "upload-submit": true }, onClick: this.handleSendClick, "aria-label": this.appState.settings.customer_photo_upload_form_send_label }, this.appState.settings.customer_photo_upload_form_send_label)), index.h("div", { class: "upload-step step3 hidden" }, index.h("h2", { class: "upload-h2 progress" }, this.appState.settings.customer_photo_upload_form_uploading), index.h("div", { class: "progress-bar" })), index.h("div", { class: "upload-step step4 hidden" }, SVGCompleted(), index.h("p", { class: "upload-text completed", innerHTML: this.appState.settings.customer_photo_upload_complete_body }), index.h("button", { class: "upload-submit close", onClick: this.handleCloseClick, "aria-label": "form submit", type: "button" }, this.appState.settings.customer_photo_upload_complete_close_label)))), !this.appState.settings.hide_branding &&
|
|
9778
9778
|
index.h("a", { class: "upload-brand-link", href: `https://apps.shopify.com/covet-pics?utm_source=embed&utm_medium=upload&utm_campaign=${location.host}`, target: "_blank", rel: "noopener", "aria-label": "Covet.pics logo" }, SVGBrand())), index.h("div", { class: "backdrop", onClick: this.hidePopupClickHandler }), index.h("div", { class: { "notification": true, "active": this.isNotificationActive } }, index.h("p", { class: "notification-message" }, "error: ", this.notificationMessage)))));
|
|
9779
9779
|
}
|
|
9780
9780
|
get el() { return index.getElement(this); }
|