@covet-pics/covet-pics-widget 0.149.5 → 0.150.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 +8 -9
- package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-widget.cjs.entry.js +7 -4
- package/dist/cjs/covet-pics-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-widget.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{storeUtils-a3c275c1.js → storeUtils-0a2f3ccf.js} +15 -15
- package/dist/cjs/storeUtils-0a2f3ccf.js.map +1 -0
- package/dist/collection/components/covet-pics-upload/covet-pics-upload.js +7 -25
- package/dist/collection/components/covet-pics-upload/covet-pics-upload.js.map +1 -1
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.js +19 -1
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.js.map +1 -1
- package/dist/collection/store/storeUtils.js +14 -14
- package/dist/collection/store/storeUtils.js.map +1 -1
- package/dist/collection/store/widgetId.js +4 -2
- package/dist/collection/store/widgetId.js.map +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js.map +1 -1
- package/dist/covet-pics-widget/p-06c15be0.system.entry.js +5 -0
- package/dist/covet-pics-widget/p-06c15be0.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/{p-e812a32c.system.entry.js → p-279262e3.system.entry.js} +3 -3
- package/dist/covet-pics-widget/{p-e812a32c.system.entry.js.map → p-279262e3.system.entry.js.map} +1 -1
- package/dist/covet-pics-widget/p-2a9a7916.system.js +1 -1
- package/dist/covet-pics-widget/p-2a9a7916.system.js.map +1 -1
- package/dist/covet-pics-widget/{p-e0ac7e2b.entry.js → p-2c3ad15c.entry.js} +2 -2
- package/dist/covet-pics-widget/p-38e24554.entry.js +5 -0
- package/dist/covet-pics-widget/p-38e24554.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-4d9f6c3b.system.js +5 -0
- package/dist/covet-pics-widget/p-4d9f6c3b.system.js.map +1 -0
- package/dist/covet-pics-widget/{p-cad85165.system.entry.js → p-67d315f0.system.entry.js} +2 -2
- package/dist/covet-pics-widget/p-a8728ca2.js +5 -0
- package/dist/covet-pics-widget/p-a8728ca2.js.map +1 -0
- package/dist/covet-pics-widget/{p-1fffebc0.entry.js → p-e63f000f.entry.js} +3 -3
- package/dist/covet-pics-widget/{p-1fffebc0.entry.js.map → p-e63f000f.entry.js.map} +1 -1
- package/dist/esm/covet-pics-gallery-header_5.entry.js +8 -9
- package/dist/esm/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +1 -1
- package/dist/esm/covet-pics-widget.entry.js +7 -4
- package/dist/esm/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm/covet-pics-widget.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{storeUtils-2c61ff05.js → storeUtils-d0a1d4d6.js} +15 -15
- package/dist/esm/storeUtils-d0a1d4d6.js.map +1 -0
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js +2 -2
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-highlighted-hotspots_2.entry.js +1 -1
- package/dist/esm-es5/covet-pics-widget.entry.js +1 -1
- package/dist/esm-es5/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-widget.js +1 -1
- package/dist/esm-es5/covet-pics-widget.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/storeUtils-d0a1d4d6.js +5 -0
- package/dist/esm-es5/storeUtils-d0a1d4d6.js.map +1 -0
- package/dist/types/components/covet-pics-upload/covet-pics-upload.d.ts +0 -4
- package/dist/types/components/covet-pics-widget/covet-pics-widget.d.ts +4 -0
- package/dist/types/components.d.ts +8 -8
- package/dist/types/store/storeUtils.d.ts +2 -1
- package/dist/types/store/widgetId.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/storeUtils-a3c275c1.js.map +0 -1
- package/dist/covet-pics-widget/p-11974417.entry.js +0 -5
- package/dist/covet-pics-widget/p-11974417.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-8108cdd7.js +0 -5
- package/dist/covet-pics-widget/p-8108cdd7.js.map +0 -1
- package/dist/covet-pics-widget/p-df16125e.system.js +0 -5
- package/dist/covet-pics-widget/p-df16125e.system.js.map +0 -1
- package/dist/covet-pics-widget/p-e3329b4d.system.entry.js +0 -5
- package/dist/covet-pics-widget/p-e3329b4d.system.entry.js.map +0 -1
- package/dist/esm/storeUtils-2c61ff05.js.map +0 -1
- package/dist/esm-es5/storeUtils-2c61ff05.js +0 -5
- package/dist/esm-es5/storeUtils-2c61ff05.js.map +0 -1
- /package/dist/covet-pics-widget/{p-e0ac7e2b.entry.js.map → p-2c3ad15c.entry.js.map} +0 -0
- /package/dist/covet-pics-widget/{p-cad85165.system.entry.js.map → p-67d315f0.system.entry.js.map} +0 -0
|
@@ -13,7 +13,7 @@ const index$1 = require('./index-fa6eb1c2.js');
|
|
|
13
13
|
const getters = require('./getters-1b9c13f3.js');
|
|
14
14
|
const slider = require('./slider-a7086987.js');
|
|
15
15
|
const fragment = require('./fragment-fe72cf2f.js');
|
|
16
|
-
const storeUtils = require('./storeUtils-
|
|
16
|
+
const storeUtils = require('./storeUtils-0a2f3ccf.js');
|
|
17
17
|
const popup = require('./popup-a42068f1.js');
|
|
18
18
|
const _commonjsHelpers = require('./_commonjsHelpers-68a3f11d.js');
|
|
19
19
|
|
|
@@ -9528,7 +9528,6 @@ const CovetPicsUpload = class {
|
|
|
9528
9528
|
const dropzone = this.el.shadowRoot.querySelector(".dropzone-graphics");
|
|
9529
9529
|
return dropzone.click();
|
|
9530
9530
|
};
|
|
9531
|
-
this.photoRequestId = undefined;
|
|
9532
9531
|
this.standalone = false;
|
|
9533
9532
|
this.appStore = undefined;
|
|
9534
9533
|
this.starRating = 0;
|
|
@@ -9684,7 +9683,7 @@ const CovetPicsUpload = class {
|
|
|
9684
9683
|
const payload = {
|
|
9685
9684
|
gallery_id: this.appState.widgetId.galleryId,
|
|
9686
9685
|
gallery_embed_id: this.appState.widgetId.embedId,
|
|
9687
|
-
photo_request_id: this.photoRequestId,
|
|
9686
|
+
photo_request_id: this.appState.widgetId.photoRequestId,
|
|
9688
9687
|
product_handle: this.appState.widgetId.productHandle,
|
|
9689
9688
|
post: {
|
|
9690
9689
|
source_user_email: this.postData["source_user_email"],
|
|
@@ -9749,7 +9748,7 @@ const CovetPicsUpload = class {
|
|
|
9749
9748
|
const payload = {
|
|
9750
9749
|
gallery_id: this.appState.widgetId.galleryId,
|
|
9751
9750
|
gallery_embed_id: this.appState.widgetId.embedId,
|
|
9752
|
-
photo_request_id: this.photoRequestId,
|
|
9751
|
+
photo_request_id: this.appState.widgetId.photoRequestId,
|
|
9753
9752
|
product_handle: this.appState.widgetId.productHandle,
|
|
9754
9753
|
post: {
|
|
9755
9754
|
source_user_email: this.postData["source_user_email"],
|
|
@@ -10035,11 +10034,11 @@ const CovetPicsUpload = class {
|
|
|
10035
10034
|
}
|
|
10036
10035
|
render() {
|
|
10037
10036
|
const starsArray = [1, 2, 3, 4, 5];
|
|
10038
|
-
return (index.h(index.Host, { key: '
|
|
10039
|
-
index.h("button", { class: "upload-close", type: "button", "data-dismiss": "popup", onClick: this.hidePopupClickHandler, "aria-label": "popup close" }), index.h("form", { key: '
|
|
10040
|
-
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", { key: '
|
|
10041
|
-
index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { key: '
|
|
10042
|
-
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", { key: '
|
|
10037
|
+
return (index.h(index.Host, { key: 'f5604ce828c6cfff874b36d538c410ea49e3d2fd', style: this.setPopupCSSVariables(), class: "needsclick" /* FIXME: https://github.com/ftlabs/fastclick/issues/604 */ }, index.h("div", { key: '0cc201d73c23d2d3641441646c6c9d3d3a6a5878', class: { "popup": true, "animated": this.appState.settings.popup_animation, "upload_widget": true }, tabindex: this.uploadTabIndex, role: "dialog", "aria-label": "Upload" }, index.h("div", { key: '29d364c80e015c6cdef4f3942f2b7d16ee01c83a', class: "upload" }, !this.standalone &&
|
|
10038
|
+
index.h("button", { class: "upload-close", type: "button", "data-dismiss": "popup", onClick: this.hidePopupClickHandler, "aria-label": "popup close" }), index.h("form", { key: '1c1f6fe2aedf565148e0323b1f0b1985a22d697e', class: "upload-form" }, index.h("div", { key: '3e2c3b863b9e24674e8c89e08e000e55c4f5aa17', class: "upload-scroll" }, index.h("div", { key: '5624e1d8bc8ed9fb795a6ae10ee26d036a44ae2f', class: "upload-step step1" }, index.h("h2", { key: 'bb79c26839e2c48a4862c2660ee67633fb6c8b48', class: "upload-h2" }, this.appState.settings.customer_photo_upload_title), index.h("h3", { key: '84a14d890795c92ded98dd4381f1e47665f97702', class: "upload-h3" }, this.appState.settings.customer_photo_upload_body), index.h("div", { key: '2f7ad2e43710748c4a9079cf2d93d103287e8868', class: "dropzone" }, index.h("div", { key: '82f53c72aac53f0816991ad3c22eb9b4f8724dbf', class: "dropzone-graphics", onDragOver: this.onDragOverHandler, onDrop: this.onDropHandler, onClick: this.openDialog }, SVGDropdown(), index.h("div", { key: 'c1be361ad75e583ee9a1bb5eecc038c7a0005b42', class: "upload-drop" }, index.h("div", { key: 'e77f382718f40c14d3db195254d06123aa5b2046', class: "upload-text upload-text-drop" }, this.appState.settings.customer_photo_upload_drop_files_label), index.h("span", { key: '42ea3fb2b9417cf8fb315d209b100347adbd0b2b', class: "upload-drop-progress" })), index.h("input", { key: '206e5f0ffb4f42b65ebe679223e4c7d3ba0412fc', 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", { key: '810eb906ac5d0a99e841ab45cef3a7687f0d7b06', 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 &&
|
|
10039
|
+
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", { key: '0f78ee0f9b9eb4370c3f7b4416a43a50fe08e731', class: "upload-img-count" }, "(", this.thumbnailLinks.length, "/4)")), index.h("button", { key: '3557271793fceb00a8d1ddc26e818bed27c30a22', type: "button", class: "btn-skip", onClick: () => this.showSkipToStep2(), "aria-label": "skip upload image for text review" }, "Skip", index.h(popupFuncComponents.IconDown, { key: 'bd2b9fe4982cf305af5a0b0c5fa364784c0ec282' }))), index.h("div", { key: '05adc7c715ee7ba49935633ba744b8886573feb3', class: "upload-step step2 hidden" }, index.h("div", { key: 'b56aa4814011ac6d74105158664a0aa7aa4214da', 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", { key: '64de7d401cec57a60f57aa29eea76a8b50194532', 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", { key: '91828655a695dd173b30c47c5d9f7cd9f1c1eeba', 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", { key: '2c8dd661fefe7ca78838eec3c4f8cc55f700dd79', 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 !== "" &&
|
|
10040
|
+
index.h("p", { class: "upload-text privacy", innerHTML: this.appState.settings.customer_photo_upload_form_legal_message }), index.h("button", { key: '816a98071e776a6bfab0537a01339bb843ec53b9', 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", { key: '62e1522f006e930eca982c6a6c1fec5542f2b53c', class: "upload-step step3 hidden" }, index.h("h2", { key: 'a2912923755f2eaa0184b62291fd2eb8054801b0', class: "upload-h2 progress" }, this.appState.settings.customer_photo_upload_form_uploading), index.h("div", { key: '9c6bf431223ecd7b2fc34769e6f577358255af06', class: "progress-bar" })), index.h("div", { key: 'c9173da2b13ca58e8c8ffe1903f3b59728990a6e', class: "upload-step step4 hidden" }, SVGCompleted(), index.h("p", { key: '5861d5e330ed02ee1bec736d8c38f6bca2dffc5b', class: "upload-text completed", innerHTML: this.appState.settings.customer_photo_upload_complete_body }), index.h("button", { key: '91b76797584922147d73b7e72a401aaef36ed88e', 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 &&
|
|
10041
|
+
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", { key: '95566469d3ce84fed4635e46057b05b2a5bbb159', class: "backdrop", onClick: this.hidePopupClickHandler }), index.h("div", { key: '769d3fddd4f5976b972e68baf9127fcd3206975b', class: { "notification": true, "active": this.isNotificationActive } }, index.h("p", { key: '2738fcbee14fb906947cde72f6a28cd121773827', class: "notification-message" }, "error: ", this.notificationMessage)))));
|
|
10043
10042
|
}
|
|
10044
10043
|
get el() { return index.getElement(this); }
|
|
10045
10044
|
};
|