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