@gem-sdk/components 2.0.0-staging.163 → 2.0.0-staging.165
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/builder.js +4 -0
- package/dist/cjs/form/components/form-email/FormEmail.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.js +2 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.liquid.js +4 -0
- package/dist/cjs/post-purchase/product/components/ProductPriceBreakdown.js +1 -1
- package/dist/cjs/post-purchase/product/constants/ProductOfferPlaceholder.js +8 -30
- package/dist/cjs/product/components/ProductBadge/index.js +1 -0
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +1 -0
- package/dist/cjs/product/components/ProductList.js +1 -0
- package/dist/cjs/product/components/ProductTag.js +1 -0
- package/dist/cjs/product/components/ProductVariants/variants/index.js +2 -0
- package/dist/cjs/product/setting/ProductButton.js +1 -1
- package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.js +33 -0
- package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.liquid.js +12 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.js +33 -0
- package/dist/cjs/third-party/components/OkendoReviewsLoyalty.liquid.js +12 -0
- package/dist/cjs/third-party/configs/EstimatedDeliveryDatePlus.js +12 -0
- package/dist/cjs/third-party/configs/OkendoReviewsLoyalty.js +12 -0
- package/dist/cjs/third-party/next.js +10 -0
- package/dist/cjs/third-party/setting/EstimatedDeliveryDatePlus.js +128 -0
- package/dist/cjs/third-party/setting/OkendoReviewsLoyalty.js +171 -0
- package/dist/cjs/third-party/setting/index.js +4 -0
- package/dist/esm/builder.js +4 -0
- package/dist/esm/form/components/form-email/FormEmail.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.js +2 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.liquid.js +2 -0
- package/dist/esm/post-purchase/product/components/ProductPriceBreakdown.js +1 -1
- package/dist/esm/post-purchase/product/constants/ProductOfferPlaceholder.js +8 -30
- package/dist/esm/product/components/ProductBadge/index.js +1 -0
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +1 -0
- package/dist/esm/product/components/ProductList.js +1 -0
- package/dist/esm/product/components/ProductTag.js +1 -0
- package/dist/esm/product/components/ProductVariants/variants/index.js +2 -0
- package/dist/esm/product/setting/ProductButton.js +1 -1
- package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.js +29 -0
- package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.liquid.js +8 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.js +29 -0
- package/dist/esm/third-party/components/OkendoReviewsLoyalty.liquid.js +8 -0
- package/dist/esm/third-party/configs/EstimatedDeliveryDatePlus.js +8 -0
- package/dist/esm/third-party/configs/OkendoReviewsLoyalty.js +8 -0
- package/dist/esm/third-party/next.js +10 -0
- package/dist/esm/third-party/setting/EstimatedDeliveryDatePlus.js +124 -0
- package/dist/esm/third-party/setting/OkendoReviewsLoyalty.js +167 -0
- package/dist/esm/third-party/setting/index.js +210 -206
- package/dist/types/index.d.ts +36 -1
- package/package.json +2 -2
|
@@ -105,8 +105,12 @@ var TrustshopProductReviews = require('./TrustshopProductReviews.js');
|
|
|
105
105
|
var StellarDeliveryDatePickup = require('./StellarDeliveryDatePickup.js');
|
|
106
106
|
var EssentialCountdownTimerBar = require('./EssentialCountdownTimerBar.js');
|
|
107
107
|
var EssentialAnnouncementBar = require('./EssentialAnnouncementBar.js');
|
|
108
|
+
var OkendoReviewsLoyalty = require('./OkendoReviewsLoyalty.js');
|
|
109
|
+
var EstimatedDeliveryDatePlus = require('./EstimatedDeliveryDatePlus.js');
|
|
108
110
|
|
|
109
111
|
var thirdPartySetting = {
|
|
112
|
+
EstimatedDeliveryDatePlus: EstimatedDeliveryDatePlus.default,
|
|
113
|
+
OkendoReviewsLoyalty: OkendoReviewsLoyalty.default,
|
|
110
114
|
EssentialAnnouncementBar: EssentialAnnouncementBar.default,
|
|
111
115
|
EssentialCountdownTimerBar: EssentialCountdownTimerBar.default,
|
|
112
116
|
StellarDeliveryDatePickup: StellarDeliveryDatePickup.default,
|
package/dist/esm/builder.js
CHANGED
|
@@ -110,6 +110,8 @@ import TrustshopProductReviews from './third-party/components/TrustshopProductRe
|
|
|
110
110
|
import StellarDeliveryDatePickup from './third-party/components/StellarDeliveryDatePickup.js';
|
|
111
111
|
import EssentialCountdownTimerBar from './third-party/components/EssentialCountdownTimerBar.js';
|
|
112
112
|
import EssentialAnnouncementBar from './third-party/components/EssentialAnnouncementBar.js';
|
|
113
|
+
import OkendoReviewsLoyalty from './third-party/components/OkendoReviewsLoyalty.js';
|
|
114
|
+
import EstimatedDeliveryDatePlus from './third-party/components/EstimatedDeliveryDatePlus.js';
|
|
113
115
|
import CartLineVariant from './cart/components/CartLineVariant.js';
|
|
114
116
|
import Cart from './cart/components/Cart.js';
|
|
115
117
|
import CartList from './cart/components/CartList.js';
|
|
@@ -246,6 +248,8 @@ import Link$1 from './post-purchase/link/components/PostPurchaseLink.js';
|
|
|
246
248
|
import Text$1 from './post-purchase/text/Text.js';
|
|
247
249
|
|
|
248
250
|
var builder = {
|
|
251
|
+
EstimatedDeliveryDatePlus,
|
|
252
|
+
OkendoReviewsLoyalty,
|
|
249
253
|
EssentialAnnouncementBar,
|
|
250
254
|
EssentialCountdownTimerBar,
|
|
251
255
|
StellarDeliveryDatePickup,
|
|
@@ -31,7 +31,7 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children })=
|
|
|
31
31
|
const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
|
|
32
32
|
return /*#__PURE__*/ jsxs("div", {
|
|
33
33
|
...builderAttrs,
|
|
34
|
-
"
|
|
34
|
+
"data-id": builderProps?.uid,
|
|
35
35
|
className: cls(builderProps?.uid),
|
|
36
36
|
style: {
|
|
37
37
|
...wrapStyle,
|
|
@@ -35,9 +35,10 @@ const CompareImage = (props)=>{
|
|
|
35
35
|
setSliderPosition(Number(data));
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
saveToElementInteractionData(ref.current, uniqueStorageKey, sliderPosition);
|
|
38
|
+
saveToElementInteractionData(ref.current, uniqueStorageKey, sliderPosition.toString());
|
|
39
39
|
setSliderPosition(Number(data) / 100);
|
|
40
40
|
});
|
|
41
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
42
|
}, []);
|
|
42
43
|
const defaultRatio = useMemo(()=>{
|
|
43
44
|
const leftRatio = (leftImage?.width ?? 0) / (leftImage?.height ?? 1);
|
package/dist/esm/index.js
CHANGED
|
@@ -207,6 +207,8 @@ export { default as TrustshopProductReviews } from './third-party/components/Tru
|
|
|
207
207
|
export { default as StellarDeliveryDatePickup } from './third-party/components/StellarDeliveryDatePickup.js';
|
|
208
208
|
export { default as EssentialCountdownTimerBar } from './third-party/components/EssentialCountdownTimerBar.js';
|
|
209
209
|
export { default as EssentialAnnouncementBar } from './third-party/components/EssentialAnnouncementBar.js';
|
|
210
|
+
export { default as OkendoReviewsLoyalty } from './third-party/components/OkendoReviewsLoyalty.js';
|
|
211
|
+
export { default as EstimatedDeliveryDatePlus } from './third-party/components/EstimatedDeliveryDatePlus.js';
|
|
210
212
|
export { default as thirdPartyInstantSetting } from './third-party-instant/setting/index.js';
|
|
211
213
|
export { default as InstantJudgemeReviews } from './third-party-instant/components/InstantJudgemeReviews.js';
|
|
212
214
|
export { default as InstantLooxReviews } from './third-party-instant/components/InstantLooxReviews.js';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -161,6 +161,8 @@ export { default as MyappgurusProductReviews } from './third-party/components/My
|
|
|
161
161
|
export { default as HulkProductOptions } from './third-party/components/HulkProductOptions.liquid.js';
|
|
162
162
|
export { default as EssentialCountdownTimerBar } from './third-party/components/EssentialCountdownTimerBar.liquid.js';
|
|
163
163
|
export { default as EssentialAnnouncementBar } from './third-party/components/EssentialAnnouncementBar.liquid.js';
|
|
164
|
+
export { default as OkendoReviewsLoyalty } from './third-party/components/OkendoReviewsLoyalty.liquid.js';
|
|
165
|
+
export { default as EstimatedDeliveryDatePlus } from './third-party/components/EstimatedDeliveryDatePlus.liquid.js';
|
|
164
166
|
export { default as TrustshopProductReviews } from './third-party/components/TrustshopProductReviews.liquid.js';
|
|
165
167
|
export { default as StellarDeliveryDatePickup } from './third-party/components/StellarDeliveryDatePickup.liquid.js';
|
|
166
168
|
export { default as ImageComparison } from './image-comparison/components/ImageComparison.liquid.js';
|
|
@@ -44,7 +44,7 @@ const PostPurchaseProductPriceBreakdown = ({ setting = {}, styles = {}, style, b
|
|
|
44
44
|
if (styles.isShowDiscountLabel !== false) {
|
|
45
45
|
data.push({
|
|
46
46
|
title: setting.discountLabel,
|
|
47
|
-
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ?
|
|
47
|
+
money: isDynamicProduct && dynamicDiscount && isEnableDynamicDiscount ? dynamicPrice : discount > 0 ? discountMoneyFormatted : 'No discount',
|
|
48
48
|
uniqueId: 'discountLabel'
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -20,7 +20,7 @@ const productOfferPlaceholder = {
|
|
|
20
20
|
id: '1',
|
|
21
21
|
label: 'Variant option',
|
|
22
22
|
isDefault: true,
|
|
23
|
-
baseID: ''
|
|
23
|
+
baseID: '1'
|
|
24
24
|
}
|
|
25
25
|
]
|
|
26
26
|
}
|
|
@@ -104,35 +104,13 @@ const productOfferPlaceholder = {
|
|
|
104
104
|
soldIndividually: false,
|
|
105
105
|
weight: 0,
|
|
106
106
|
width: 0,
|
|
107
|
-
selectedOptions: [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
id: '520560088328176392',
|
|
115
|
-
title: 'Default Title',
|
|
116
|
-
barcode: '',
|
|
117
|
-
baseID: 'gid://shopify/ProductVariant/49298248925463',
|
|
118
|
-
costPrice: 88,
|
|
119
|
-
height: 0,
|
|
120
|
-
inventoryPolicy: 'DENY',
|
|
121
|
-
inventoryQuantity: 211,
|
|
122
|
-
inventoryStatus: '',
|
|
123
|
-
isDigital: true,
|
|
124
|
-
length: 0,
|
|
125
|
-
lowInventoryAmount: 0,
|
|
126
|
-
manageInventory: false,
|
|
127
|
-
mediaId: '0',
|
|
128
|
-
platform: 'SHOPIFY',
|
|
129
|
-
price: 88,
|
|
130
|
-
salePrice: 88,
|
|
131
|
-
sku: '',
|
|
132
|
-
soldIndividually: false,
|
|
133
|
-
weight: 0,
|
|
134
|
-
width: 0,
|
|
135
|
-
selectedOptions: [],
|
|
107
|
+
selectedOptions: [
|
|
108
|
+
{
|
|
109
|
+
name: 'Variant',
|
|
110
|
+
value: 'Variant option',
|
|
111
|
+
optionType: ''
|
|
112
|
+
}
|
|
113
|
+
],
|
|
136
114
|
media: undefined
|
|
137
115
|
}
|
|
138
116
|
}
|
|
@@ -154,6 +154,7 @@ const ProductBadge = ({ builderAttrs, builderProps, isInsideProductImage, settin
|
|
|
154
154
|
} : {}, style)
|
|
155
155
|
},
|
|
156
156
|
className: cls(conditionClass, builderProps?.builderData?.advanced?.cssClass || '', builderProps?.uid, 'gp-shrink-0', 'product-badge', isInsideProductImage ? 'inside-image' : ''),
|
|
157
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
157
158
|
"gp-data-hidden": "false",
|
|
158
159
|
children: [
|
|
159
160
|
mode === 'edit' && isNoDiscountState ? /*#__PURE__*/ jsx(TooltipHover, {
|
|
@@ -117,6 +117,7 @@ const ProductGalleryGrid = ({ builderPropUID, productImages, onHandleClick, acti
|
|
|
117
117
|
...makeStyleResponsive('rg', setting?.itemSpacing),
|
|
118
118
|
...makeStyleResponsive('jc', setting?.align)
|
|
119
119
|
},
|
|
120
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
120
121
|
"gp-data-hidden": `${isHiddenInteraction}`,
|
|
121
122
|
children: [
|
|
122
123
|
productImages?.map((image, index)=>{
|
|
@@ -317,6 +317,7 @@ const ProductList = ({ children, className, setting, styles, builderProps })=>{
|
|
|
317
317
|
})
|
|
318
318
|
},
|
|
319
319
|
className: cls(className, 'gp-m-auto gp-grid gp-w-full', setting?.sameHeight ? ' gp-grid-flow-row' : ''),
|
|
320
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
320
321
|
"items-repeat": "true",
|
|
321
322
|
"data-id": builderProps?.uid,
|
|
322
323
|
children: !productSortedById?.length ? null : productSortedById?.map((product, index)=>/*#__PURE__*/ jsx(ProductProvider, {
|
|
@@ -111,6 +111,7 @@ const ProductTag = ({ setting, styles, builderProps, ...passProps })=>{
|
|
|
111
111
|
id: `shopify-text-element-${builderProps?.uid}`,
|
|
112
112
|
"data-id": builderProps?.uid,
|
|
113
113
|
"data-product-id": currentProductId,
|
|
114
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
114
115
|
"gp-data-hidden": "false",
|
|
115
116
|
children: !product ? null : /*#__PURE__*/ jsx("div", {
|
|
116
117
|
className: cls('gp-inline-flex gp-flex-wrap gp-items-end gp-gap-3'),
|
|
@@ -111,7 +111,9 @@ const VariantItem = ({ name, variantKey, optionName, optionValue, ...props })=>{
|
|
|
111
111
|
children: props.value?.label
|
|
112
112
|
}),
|
|
113
113
|
/*#__PURE__*/ jsx("div", {
|
|
114
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
114
115
|
"option-name": optionName,
|
|
116
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
115
117
|
"option-name-value": optionValue,
|
|
116
118
|
className: "option-item-inner gp-w-auto gp-h-auto",
|
|
117
119
|
children: /*#__PURE__*/ jsx(Component, {
|
|
@@ -10,7 +10,8 @@ const mapWidgetLabel = {
|
|
|
10
10
|
slider: 'Gift slider',
|
|
11
11
|
message: 'Cart message',
|
|
12
12
|
['classic-bundle']: 'Classic bundle',
|
|
13
|
-
['quantity-break']: 'Quantity break'
|
|
13
|
+
['quantity-break']: 'Quantity break',
|
|
14
|
+
['mix-match']: 'Mix and match'
|
|
14
15
|
};
|
|
15
16
|
const BogosSampleContent = ({ setting })=>{
|
|
16
17
|
const widgetLabel = setting?.widgetType && mapWidgetLabel[setting.widgetType];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
4
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
5
|
+
import AppConfig from '../configs/EstimatedDeliveryDatePlus.js';
|
|
6
|
+
|
|
7
|
+
const EstimatedDeliveryDatePlusContent = ()=>{
|
|
8
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
9
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
10
|
+
className: "gp-p-2",
|
|
11
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
12
|
+
setting: {
|
|
13
|
+
label: 'Estimated Delivery Date ‑ Plus',
|
|
14
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const EstimatedDeliveryDatePlus = ({ setting })=>{
|
|
21
|
+
return /*#__PURE__*/ jsx("div", {
|
|
22
|
+
style: {
|
|
23
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/ jsx(EstimatedDeliveryDatePlusContent, {})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { EstimatedDeliveryDatePlus as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
2
|
+
|
|
3
|
+
const EstimatedDeliveryDatePlus = ({ setting, advanced })=>{
|
|
4
|
+
const { align, appBlockId } = setting ?? {};
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { EstimatedDeliveryDatePlus as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
4
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
5
|
+
import AppConfig from '../configs/OkendoReviewsLoyalty.js';
|
|
6
|
+
|
|
7
|
+
const OkendoReviewsLoyaltyContent = ()=>{
|
|
8
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
9
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
10
|
+
className: "gp-p-2",
|
|
11
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
12
|
+
setting: {
|
|
13
|
+
label: 'Okendo: Reviews & Loyalty',
|
|
14
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const OkendoReviewsLoyalty = ({ setting })=>{
|
|
21
|
+
return /*#__PURE__*/ jsx("div", {
|
|
22
|
+
style: {
|
|
23
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
24
|
+
},
|
|
25
|
+
children: /*#__PURE__*/ jsx(OkendoReviewsLoyaltyContent, {})
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { OkendoReviewsLoyalty as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
2
|
+
|
|
3
|
+
const OkendoReviewsLoyalty = ({ setting, advanced })=>{
|
|
4
|
+
const { align, appBlockId } = setting ?? {};
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block [&_*]:gp-max-w-none`);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { OkendoReviewsLoyalty as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var AppConfig = {
|
|
2
|
+
id: 'estimated-delivery-date-plus',
|
|
3
|
+
label: 'Estimated Delivery Date ‑ Plus',
|
|
4
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg',
|
|
5
|
+
tag: 'EstimatedDeliveryDatePlus'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { AppConfig as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var AppConfig = {
|
|
2
|
+
id: 'okendo-reviews-loyalty',
|
|
3
|
+
label: 'Okendo: Reviews & Loyalty',
|
|
4
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png',
|
|
5
|
+
tag: 'OkendoReviewsLoyalty'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { AppConfig as default };
|
|
@@ -4,6 +4,14 @@ import 'react/jsx-runtime';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@gem-sdk/core';
|
|
6
6
|
|
|
7
|
+
const EstimatedDeliveryDatePlus = dynamic(()=>import('./components/EstimatedDeliveryDatePlus.js'), {
|
|
8
|
+
ssr: false,
|
|
9
|
+
loading: Loading
|
|
10
|
+
});
|
|
11
|
+
const OkendoReviewsLoyalty = dynamic(()=>import('./components/OkendoReviewsLoyalty.js'), {
|
|
12
|
+
ssr: false,
|
|
13
|
+
loading: Loading
|
|
14
|
+
});
|
|
7
15
|
const EssentialAnnouncementBar = dynamic(()=>import('./components/EssentialAnnouncementBar.js'), {
|
|
8
16
|
ssr: false,
|
|
9
17
|
loading: Loading
|
|
@@ -417,6 +425,8 @@ const Selleasy = dynamic(()=>import('./components/Selleasy.js'), {
|
|
|
417
425
|
loading: Loading
|
|
418
426
|
});
|
|
419
427
|
var thirdParty = {
|
|
428
|
+
EstimatedDeliveryDatePlus,
|
|
429
|
+
OkendoReviewsLoyalty,
|
|
420
430
|
EssentialAnnouncementBar,
|
|
421
431
|
EssentialCountdownTimerBar,
|
|
422
432
|
StellarDeliveryDatePickup,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import AppConfig from '../configs/EstimatedDeliveryDatePlus.js';
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
tag: AppConfig.tag,
|
|
5
|
+
label: AppConfig.label,
|
|
6
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">',
|
|
7
|
+
editorConfigs: {
|
|
8
|
+
component: {
|
|
9
|
+
isThirdParty: true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
presets: [
|
|
13
|
+
{
|
|
14
|
+
id: AppConfig.id,
|
|
15
|
+
name: {
|
|
16
|
+
en: AppConfig.label
|
|
17
|
+
},
|
|
18
|
+
hideTextContent: true,
|
|
19
|
+
icon: {
|
|
20
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
21
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">
|
|
22
|
+
<span class="preset-item-title">Estimated Delivery Date ‑ Plus</span>
|
|
23
|
+
</div>`
|
|
24
|
+
},
|
|
25
|
+
components: [
|
|
26
|
+
{
|
|
27
|
+
tag: AppConfig.tag
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
settings: [
|
|
33
|
+
{
|
|
34
|
+
id: 'setting',
|
|
35
|
+
controls: [
|
|
36
|
+
{
|
|
37
|
+
id: 'appBlockId',
|
|
38
|
+
type: 'input',
|
|
39
|
+
default: ''
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'widgetType',
|
|
43
|
+
label: 'Choose widget',
|
|
44
|
+
type: 'select',
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
label: 'Delivery_coder_theme',
|
|
48
|
+
value: 'delivery_coder_theme'
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
default: 'delivery_coder_theme'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'install',
|
|
55
|
+
type: 'open-link',
|
|
56
|
+
target: '_blank',
|
|
57
|
+
linkType: 'install',
|
|
58
|
+
href: 'https://apps.shopify.com/estimated-delivery-date-plus?utm_source=gempages',
|
|
59
|
+
appName: AppConfig.label
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'openApp',
|
|
63
|
+
type: 'open-link',
|
|
64
|
+
target: '_blank',
|
|
65
|
+
linkType: 'openApp',
|
|
66
|
+
href: 'https://admin.shopify.com/?redirect=/apps/estimated-delivery-date-plus',
|
|
67
|
+
appName: AppConfig.label
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 'align',
|
|
71
|
+
label: 'Alignment',
|
|
72
|
+
type: 'segment',
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
label: 'Left',
|
|
76
|
+
value: 'left',
|
|
77
|
+
type: 'align'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Center',
|
|
81
|
+
value: 'center',
|
|
82
|
+
type: 'align'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Right',
|
|
86
|
+
value: 'right',
|
|
87
|
+
type: 'align'
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
devices: {
|
|
91
|
+
desktop: {
|
|
92
|
+
default: 'left'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
ui: [
|
|
100
|
+
{
|
|
101
|
+
type: 'control',
|
|
102
|
+
setting: {
|
|
103
|
+
id: 'install'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: 'control',
|
|
108
|
+
setting: {
|
|
109
|
+
id: 'openApp'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: 'control',
|
|
114
|
+
label: {
|
|
115
|
+
en: 'Align'
|
|
116
|
+
},
|
|
117
|
+
setting: {
|
|
118
|
+
id: 'align'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { config as default };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import AppConfig from '../configs/OkendoReviewsLoyalty.js';
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
tag: AppConfig.tag,
|
|
5
|
+
label: AppConfig.label,
|
|
6
|
+
icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">',
|
|
7
|
+
editorConfigs: {
|
|
8
|
+
placeholder: {
|
|
9
|
+
flowTag: [
|
|
10
|
+
'Product'
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
component: {
|
|
14
|
+
isThirdParty: true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
presets: [
|
|
18
|
+
{
|
|
19
|
+
id: AppConfig.id,
|
|
20
|
+
name: {
|
|
21
|
+
en: AppConfig.label
|
|
22
|
+
},
|
|
23
|
+
hideTextContent: true,
|
|
24
|
+
icon: {
|
|
25
|
+
desktop: `<div class="w-full flex flex-col items-center">
|
|
26
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">
|
|
27
|
+
<span class="preset-item-title">Okendo: Reviews & Loyalty</span>
|
|
28
|
+
</div>`
|
|
29
|
+
},
|
|
30
|
+
components: [
|
|
31
|
+
{
|
|
32
|
+
tag: AppConfig.tag
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
settings: [
|
|
38
|
+
{
|
|
39
|
+
id: 'setting',
|
|
40
|
+
controls: [
|
|
41
|
+
{
|
|
42
|
+
id: 'appBlockId',
|
|
43
|
+
type: 'input',
|
|
44
|
+
default: ''
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'productHandle',
|
|
48
|
+
type: 'product-handle',
|
|
49
|
+
hide: true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'widgetType',
|
|
53
|
+
label: 'Choose widget',
|
|
54
|
+
type: 'select',
|
|
55
|
+
options: [
|
|
56
|
+
{
|
|
57
|
+
label: 'Reviews Widget',
|
|
58
|
+
value: 'reviews-widget'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: 'Reviews Badge',
|
|
62
|
+
value: 'reviews-badge'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Media Carousel',
|
|
66
|
+
value: 'media-carousel'
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Media Grid',
|
|
70
|
+
value: 'media-grid'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Reviews Carousel',
|
|
74
|
+
value: 'reviews-carousel'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Star Rating',
|
|
78
|
+
value: 'star-rating'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'Questions Widget',
|
|
82
|
+
value: 'questions-widget'
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
default: 'reviews-widget'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'install',
|
|
89
|
+
type: 'open-link',
|
|
90
|
+
target: '_blank',
|
|
91
|
+
linkType: 'install',
|
|
92
|
+
href: 'https://apps.shopify.com/okendo-reviews?utm_source=gempages',
|
|
93
|
+
appName: AppConfig.label
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'openApp',
|
|
97
|
+
type: 'open-link',
|
|
98
|
+
target: '_blank',
|
|
99
|
+
linkType: 'openApp',
|
|
100
|
+
href: 'https://admin.shopify.com/?redirect=/apps/okendo-reviews',
|
|
101
|
+
appName: AppConfig.label
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'align',
|
|
105
|
+
label: 'Alignment',
|
|
106
|
+
type: 'segment',
|
|
107
|
+
options: [
|
|
108
|
+
{
|
|
109
|
+
label: 'Left',
|
|
110
|
+
value: 'left',
|
|
111
|
+
type: 'align'
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: 'Center',
|
|
115
|
+
value: 'center',
|
|
116
|
+
type: 'align'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'Right',
|
|
120
|
+
value: 'right',
|
|
121
|
+
type: 'align'
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
devices: {
|
|
125
|
+
desktop: {
|
|
126
|
+
default: 'left'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
ui: [
|
|
134
|
+
{
|
|
135
|
+
type: 'control',
|
|
136
|
+
setting: {
|
|
137
|
+
id: 'install'
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
type: 'control',
|
|
142
|
+
label: {
|
|
143
|
+
en: 'Choose Widget'
|
|
144
|
+
},
|
|
145
|
+
setting: {
|
|
146
|
+
id: 'widgetType'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: 'control',
|
|
151
|
+
setting: {
|
|
152
|
+
id: 'openApp'
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: 'control',
|
|
157
|
+
label: {
|
|
158
|
+
en: 'Align'
|
|
159
|
+
},
|
|
160
|
+
setting: {
|
|
161
|
+
id: 'align'
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export { config as default };
|