@gem-sdk/components 2.0.0-dev.672 → 2.0.0-dev.673

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.
@@ -2,112 +2,10 @@
2
2
  import Accordion from './accordion/components/Accordion.js';
3
3
  import AccordionItem from './accordion/components/AccordionItem.js';
4
4
  import './accordion/setting/configs/settings.js';
5
- import ArticleList from './article/components/ArticleList.js';
6
- import ArticleTitle from './article/components/ArticleTitle.js';
7
- import ArticleExcerpt from './article/components/ArticleExcerpt.js';
8
- import ArticleContent from './article/components/ArticleContent.js';
9
- import ArticleImage from './article/components/ArticleImage.js';
10
- import ArticlePagination from './article/components/ArticlePagination.js';
11
- import ArticleAuthor from './article/components/ArticleAuthor.js';
12
- import ArticleTag from './article/components/ArticleTag.js';
13
- import ArticleCategory from './article/components/ArticleCategory.js';
14
- import ArticleDate from './article/components/ArticleDate.js';
15
- import ArticleReadMore from './article/components/ArticleReadMore.js';
16
- import HeroBanner from './banner/components/HeroBanner.js';
17
- import Breadcrumb from './breadcrumb/components/Breadcrumb.js';
18
- import Button from './button/components/Button.js';
19
- import Carousel from './carousel/root/Carousel.js';
20
- import CarouselItem from './carousel/carousel-item/CarouselItem.js';
21
- import Carousel$1 from './swiper-carousel/root/Swiper.js';
22
- import CarouselItem$1 from './swiper-carousel/carousel-item/SwiperItem.js';
23
- import Cart from './cart/components/Cart.js';
24
- import CartList from './cart/components/CartList.js';
25
- import CartLinePrice from './cart/components/CartLinePrice.js';
26
- import CartLineVariant from './cart/components/CartLineVariant.js';
27
- import CartLineImage from './cart/components/CartLineImage.js';
28
- import CartTotalPrice from './cart/components/CartTotalPrice.js';
29
- import CartTotalItem from './cart/components/CartTotalItem.js';
30
- import CartCheckout from './cart/components/CartCheckout.js';
31
- import DiscountInput from './cart/components/DiscountInput.js';
32
- import CartDiscount from './cart/components/CartDiscount.js';
33
- import CartOrderNote from './cart/components/CartOrderNote.js';
34
- import CartLineAttribute from './cart/components/CartLineAttribute.js';
35
- import CouponList from './cart/components/CouponList.js';
36
- import ShopPayButton from './cart/components/ShopPayButton/ShopPayButton.js';
37
- import CheckoutNow from './cart/components/CheckoutNow.js';
38
- import CSSCode from './code/components/CSSCode.js';
39
- import CollectionTitle from './collection/components/collection-title/components/CollectionTitle.js';
40
- import CollectionBanner from './collection/components/collection-banner/components/CollectionBanner.js';
41
- import CollectionDescription from './collection/components/collection-description/components/CollectionDescription.js';
42
- import CollectionToolbar from './collection/components/collection-toolbar/components/CollectionToolbar.js';
43
- import CollectionPaginator from './collection/components/collection-paginator/components/CollectionPaginator.js';
44
- import Countdown from './countdown-timer/components/Countdown.js';
45
- import './countdown-timer/setting/configs/settings.js';
46
- import Coupon from './coupon/components/Coupon.js';
47
- import Dialog from './dialog/components/Dialog.js';
48
- import EstimateDate from './estimate-delivery/components/EstimateDate.js';
49
- import './estimate-delivery/setting/configs/settings.js';
50
- import Root from './grid/components/Root.js';
51
- import Section from './grid/section/Section.js';
52
- import Row from './grid/row/Row.js';
53
- import Column from './grid/col/Col.js';
54
- import Newsletter from './form/components/newsletter/Newsletter.js';
55
- import ContactForm from './form/components/contact/Contact.js';
56
- import FormEmail from './form/components/form-email/FormEmail.js';
57
- import SubmitButton from './form/components/submit-button/SubmitButton.js';
58
- import FormDropdown from './form/components/form-dropdown/FormDropdown.js';
59
- import TextField from './form/components/textfield/TextField.js';
60
- import FormTextArea from './form/components/textarea/TextArea.js';
61
- import FormCheckbox from './form/components/form-checkbox/FormCheckbox.js';
62
- import TextInput from './form/components/textinput/TextInput.js';
63
- import Header from './header/components/Header.js';
64
- import BasicHeader from './header/components/kind/basic/index.js';
65
- import ModernHeader from './header/components/kind/modern/index.js';
66
- import MobileMenu from './header/components/kind/basic/MobileMenu.js';
67
- import DesktopMenu from './header/components/kind/basic/DesktopMenu.js';
68
- import Heading from './heading/Heading.js';
69
- import Icon from './icon/components/Icon.js';
70
- import IconList from './icon-list/components/IconList.js';
71
- import IconListItem from './icon-list/components/IconListItem.js';
72
- import IconListHoz from './icon-list-hoz/components/IconListHoz.js';
73
- import IconListHozItem from './icon-list-hoz/components/IconListHozItem.js';
74
- import IconListV2 from './icon-list-v2/components/IconList.js';
75
- import './icon-list-v2/setting/configs/settings.js';
76
- import Image from './image/components/Image.js';
77
- import ImageComparison from './image-comparison/components/ImageComparison.js';
78
- import ImageDetection from './image-detection/ImageDetection.js';
79
- import Input from './input/Input.js';
80
- import Line from './line/components/Line.js';
81
- import Link from './link/components/Link.js';
82
- import Marquee from './marquee/components/Marquee.js';
83
- import MarqueeItem from './marquee/components/MarqueeItem.js';
84
- import Menu from './menu/components/Menu.js';
85
- import Modal from './modal/components/Modal.js';
86
- import './modal/components/confirm.js';
87
- import Pagination from './pagination/Pagination.js';
88
- import PostPurchaseAdvancedList from './post-purchase/advanced-list/components/AdvancedListPostPurchase.js';
89
- import PostPurchaseAdvancedListItem from './post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js';
90
- import Button$1 from './post-purchase/button/Button.js';
91
- import CalloutBox from './post-purchase/callout-banner/components/CalloutBox.js';
92
- import CalloutText from './post-purchase/callout-banner/components/CalloutText.js';
93
- import PostPurchaseCountdownTimer from './post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js';
94
- import PostPurchaseImage from './post-purchase/image/components/Image.js';
95
- import Line$1 from './post-purchase/line/components/PostPurchaseLine.js';
96
- import Link$1 from './post-purchase/link/components/PostPurchaseLink.js';
97
- import { PostPurchaseHeading } from './post-purchase/text/index.js';
98
- import PostPurchaseProductTitle from './post-purchase/product/components/ProductTitle.js';
99
- import PostPurchaseProductDescription from './post-purchase/product/components/ProductDescription.js';
100
- import PostPurchaseProductPrice from './post-purchase/product/components/ProductPrice.js';
101
- import PostPurchaseProductVariants from './post-purchase/product/components/product-variant/components/ProductVariant.js';
102
- import PostPurchaseAcceptButton from './post-purchase/product/components/AcceptButton.js';
103
- import PostPurchaseProductQuantity from './post-purchase/product/components/ProductQuantity.js';
104
- import PostPurchaseProductOffer from './post-purchase/product/components/product-offer/components/ProductOffer.js';
105
- import PostPurchaseProductPriceBreakdown from './post-purchase/product/components/ProductPriceBreakdown.js';
106
- import PostPurchaseProductDiscountTag from './post-purchase/product/components/ProductDiscountTag.js';
107
- import PostPurchaseProductImages from './post-purchase/product/components/product-image/index.js';
108
5
  import RechargeSubscriptions from './third-party/components/RechargeSubscriptions.js';
109
6
  import EcomsendBackInStockAlert from './third-party/components/EcomsendBackInStockAlert.js';
110
7
  import AppstleBundlesDiscounts from './third-party/components/AppstleBundlesDiscounts.js';
8
+ import AovFreeGiftBuyXGetYBogo from './third-party/components/AovFreeGiftBuyXGetYBogo.js';
111
9
  import JudgemeReviews from './third-party/components/JudgemeReviews.js';
112
10
  import LooxReviews from './third-party/components/LooxReviews.js';
113
11
  import Klaviyo from './third-party/components/Klaviyo.js';
@@ -220,6 +118,109 @@ import BfSizeChartSizeGuide from './third-party/components/BfSizeChartSizeGuide.
220
118
  import AlsoBoughtCbb from './third-party/components/AlsoBoughtCbb.js';
221
119
  import HextomFreeShippingBar from './third-party/components/HextomFreeShippingBar.js';
222
120
  import EcoboostifyShoppableReelUgc from './third-party/components/EcoboostifyShoppableReelUgc.js';
121
+ import ArticleList from './article/components/ArticleList.js';
122
+ import ArticleTitle from './article/components/ArticleTitle.js';
123
+ import ArticleExcerpt from './article/components/ArticleExcerpt.js';
124
+ import ArticleContent from './article/components/ArticleContent.js';
125
+ import ArticleImage from './article/components/ArticleImage.js';
126
+ import ArticlePagination from './article/components/ArticlePagination.js';
127
+ import ArticleAuthor from './article/components/ArticleAuthor.js';
128
+ import ArticleTag from './article/components/ArticleTag.js';
129
+ import ArticleCategory from './article/components/ArticleCategory.js';
130
+ import ArticleDate from './article/components/ArticleDate.js';
131
+ import ArticleReadMore from './article/components/ArticleReadMore.js';
132
+ import HeroBanner from './banner/components/HeroBanner.js';
133
+ import Breadcrumb from './breadcrumb/components/Breadcrumb.js';
134
+ import Button from './button/components/Button.js';
135
+ import Carousel from './carousel/root/Carousel.js';
136
+ import CarouselItem from './carousel/carousel-item/CarouselItem.js';
137
+ import Carousel$1 from './swiper-carousel/root/Swiper.js';
138
+ import CarouselItem$1 from './swiper-carousel/carousel-item/SwiperItem.js';
139
+ import Cart from './cart/components/Cart.js';
140
+ import CartList from './cart/components/CartList.js';
141
+ import CartLinePrice from './cart/components/CartLinePrice.js';
142
+ import CartLineVariant from './cart/components/CartLineVariant.js';
143
+ import CartLineImage from './cart/components/CartLineImage.js';
144
+ import CartTotalPrice from './cart/components/CartTotalPrice.js';
145
+ import CartTotalItem from './cart/components/CartTotalItem.js';
146
+ import CartCheckout from './cart/components/CartCheckout.js';
147
+ import DiscountInput from './cart/components/DiscountInput.js';
148
+ import CartDiscount from './cart/components/CartDiscount.js';
149
+ import CartOrderNote from './cart/components/CartOrderNote.js';
150
+ import CartLineAttribute from './cart/components/CartLineAttribute.js';
151
+ import CouponList from './cart/components/CouponList.js';
152
+ import ShopPayButton from './cart/components/ShopPayButton/ShopPayButton.js';
153
+ import CheckoutNow from './cart/components/CheckoutNow.js';
154
+ import CSSCode from './code/components/CSSCode.js';
155
+ import CollectionTitle from './collection/components/collection-title/components/CollectionTitle.js';
156
+ import CollectionBanner from './collection/components/collection-banner/components/CollectionBanner.js';
157
+ import CollectionDescription from './collection/components/collection-description/components/CollectionDescription.js';
158
+ import CollectionToolbar from './collection/components/collection-toolbar/components/CollectionToolbar.js';
159
+ import CollectionPaginator from './collection/components/collection-paginator/components/CollectionPaginator.js';
160
+ import Countdown from './countdown-timer/components/Countdown.js';
161
+ import './countdown-timer/setting/configs/settings.js';
162
+ import Coupon from './coupon/components/Coupon.js';
163
+ import Dialog from './dialog/components/Dialog.js';
164
+ import EstimateDate from './estimate-delivery/components/EstimateDate.js';
165
+ import './estimate-delivery/setting/configs/settings.js';
166
+ import Root from './grid/components/Root.js';
167
+ import Section from './grid/section/Section.js';
168
+ import Row from './grid/row/Row.js';
169
+ import Column from './grid/col/Col.js';
170
+ import Newsletter from './form/components/newsletter/Newsletter.js';
171
+ import ContactForm from './form/components/contact/Contact.js';
172
+ import FormEmail from './form/components/form-email/FormEmail.js';
173
+ import SubmitButton from './form/components/submit-button/SubmitButton.js';
174
+ import FormDropdown from './form/components/form-dropdown/FormDropdown.js';
175
+ import TextField from './form/components/textfield/TextField.js';
176
+ import FormTextArea from './form/components/textarea/TextArea.js';
177
+ import FormCheckbox from './form/components/form-checkbox/FormCheckbox.js';
178
+ import TextInput from './form/components/textinput/TextInput.js';
179
+ import Header from './header/components/Header.js';
180
+ import BasicHeader from './header/components/kind/basic/index.js';
181
+ import ModernHeader from './header/components/kind/modern/index.js';
182
+ import MobileMenu from './header/components/kind/basic/MobileMenu.js';
183
+ import DesktopMenu from './header/components/kind/basic/DesktopMenu.js';
184
+ import Heading from './heading/Heading.js';
185
+ import Icon from './icon/components/Icon.js';
186
+ import IconList from './icon-list/components/IconList.js';
187
+ import IconListItem from './icon-list/components/IconListItem.js';
188
+ import IconListHoz from './icon-list-hoz/components/IconListHoz.js';
189
+ import IconListHozItem from './icon-list-hoz/components/IconListHozItem.js';
190
+ import IconListV2 from './icon-list-v2/components/IconList.js';
191
+ import './icon-list-v2/setting/configs/settings.js';
192
+ import Image from './image/components/Image.js';
193
+ import ImageComparison from './image-comparison/components/ImageComparison.js';
194
+ import ImageDetection from './image-detection/ImageDetection.js';
195
+ import Input from './input/Input.js';
196
+ import Line from './line/components/Line.js';
197
+ import Link from './link/components/Link.js';
198
+ import Marquee from './marquee/components/Marquee.js';
199
+ import MarqueeItem from './marquee/components/MarqueeItem.js';
200
+ import Menu from './menu/components/Menu.js';
201
+ import Modal from './modal/components/Modal.js';
202
+ import './modal/components/confirm.js';
203
+ import Pagination from './pagination/Pagination.js';
204
+ import PostPurchaseAdvancedList from './post-purchase/advanced-list/components/AdvancedListPostPurchase.js';
205
+ import PostPurchaseAdvancedListItem from './post-purchase/advanced-list/components/PostPurchaseAdvancedListItem.js';
206
+ import Button$1 from './post-purchase/button/Button.js';
207
+ import CalloutBox from './post-purchase/callout-banner/components/CalloutBox.js';
208
+ import CalloutText from './post-purchase/callout-banner/components/CalloutText.js';
209
+ import PostPurchaseCountdownTimer from './post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js';
210
+ import PostPurchaseImage from './post-purchase/image/components/Image.js';
211
+ import Line$1 from './post-purchase/line/components/PostPurchaseLine.js';
212
+ import Link$1 from './post-purchase/link/components/PostPurchaseLink.js';
213
+ import { PostPurchaseHeading } from './post-purchase/text/index.js';
214
+ import PostPurchaseProductTitle from './post-purchase/product/components/ProductTitle.js';
215
+ import PostPurchaseProductDescription from './post-purchase/product/components/ProductDescription.js';
216
+ import PostPurchaseProductPrice from './post-purchase/product/components/ProductPrice.js';
217
+ import PostPurchaseProductVariants from './post-purchase/product/components/product-variant/components/ProductVariant.js';
218
+ import PostPurchaseAcceptButton from './post-purchase/product/components/AcceptButton.js';
219
+ import PostPurchaseProductQuantity from './post-purchase/product/components/ProductQuantity.js';
220
+ import PostPurchaseProductOffer from './post-purchase/product/components/product-offer/components/ProductOffer.js';
221
+ import PostPurchaseProductPriceBreakdown from './post-purchase/product/components/ProductPriceBreakdown.js';
222
+ import PostPurchaseProductDiscountTag from './post-purchase/product/components/ProductDiscountTag.js';
223
+ import PostPurchaseProductImages from './post-purchase/product/components/product-image/index.js';
223
224
  import Product from './product/components/ProductWrap/Product.js';
224
225
  import ProductTitle from './product/components/ProductTitle/index.js';
225
226
  import ProductQuantity from './product/components/ProductQuantity/index.js';
@@ -261,6 +262,7 @@ import Sticky from './sticky/components/Sticky.js';
261
262
  import Text from './post-purchase/text/components/Text.js';
262
263
 
263
264
  var builder = {
265
+ AovFreeGiftBuyXGetYBogo,
264
266
  EcomsendBackInStockAlert,
265
267
  AppstleBundlesDiscounts,
266
268
  Accordion,
package/dist/esm/index.js CHANGED
@@ -197,6 +197,7 @@ export { default as TabItem } from './tab/components/TabItem.js';
197
197
  export { default as Text } from './text/components/Text.js';
198
198
  export { default as Textarea } from './textarea/Textarea.js';
199
199
  export { default as Video } from './video/components/Video.js';
200
+ export { default as AovFreeGiftBuyXGetYBogo } from './third-party/components/AovFreeGiftBuyXGetYBogo.js';
200
201
  export { default as AppstleBundlesDiscounts } from './third-party/components/AppstleBundlesDiscounts.js';
201
202
  export { default as EcomsendBackInStockAlert } from './third-party/components/EcomsendBackInStockAlert.js';
202
203
  export { default as EstimatedDeliveryDatePlus } from './third-party/components/EstimatedDeliveryDatePlus.js';
@@ -192,6 +192,7 @@ export { default as HextomFreeShippingBar } from './third-party/components/Hexto
192
192
  export { default as EcoboostifyShoppableReelUgc } from './third-party/components/EcoboostifyShoppableReelUgc.liquid.js';
193
193
  export { default as EcomsendBackInStockAlert } from './third-party/components/EcomsendBackInStockAlert.liquid.js';
194
194
  export { default as AppstleBundlesDiscounts } from './third-party/components/AppstleBundlesDiscounts.liquid.js';
195
+ export { default as AovFreeGiftBuyXGetYBogo } from './third-party/components/AovFreeGiftBuyXGetYBogo.liquid.js';
195
196
  export { default as TrustshopProductReviews } from './third-party/components/TrustshopProductReviews.liquid.js';
196
197
  export { default as StellarDeliveryDatePickup } from './third-party/components/StellarDeliveryDatePickup.liquid.js';
197
198
  export { default as ThirdPartySlot } from './third-party-slot/components/ThirdPartySlot.liquid.js';
@@ -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/AovFreeGiftBuyXGetYBogo.js';
6
+
7
+ const AovFreeGiftBuyXGetYBogoContent = ()=>{
8
+ return /*#__PURE__*/ jsx(Fragment, {
9
+ children: /*#__PURE__*/ jsx("div", {
10
+ className: "gp-p-2",
11
+ children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
12
+ setting: {
13
+ label: 'AOV Free Gift Buy X Get Y BOGO',
14
+ iconSvg: `<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
15
+ }
16
+ })
17
+ })
18
+ });
19
+ };
20
+ const AovFreeGiftBuyXGetYBogo = ({ setting })=>{
21
+ return /*#__PURE__*/ jsx("div", {
22
+ style: {
23
+ ...makeStyleResponsive('ta', setting?.align)
24
+ },
25
+ children: /*#__PURE__*/ jsx(AovFreeGiftBuyXGetYBogoContent, {})
26
+ });
27
+ };
28
+
29
+ export { AovFreeGiftBuyXGetYBogo as default };
@@ -0,0 +1,8 @@
1
+ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
2
+
3
+ const AovFreeGiftBuyXGetYBogo = ({ setting, advanced })=>{
4
+ const { align, appBlockId } = setting ?? {};
5
+ return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`);
6
+ };
7
+
8
+ export { AovFreeGiftBuyXGetYBogo as default };
@@ -0,0 +1,8 @@
1
+ var AppConfig = {
2
+ id: 'aov-free-gift-buy-x-get-y-bogo',
3
+ label: 'AOV Free Gift Buy X Get Y BOGO',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22',
5
+ tag: 'AovFreeGiftBuyXGetYBogo'
6
+ };
7
+
8
+ export { AppConfig as default };
@@ -158,6 +158,7 @@ import config$1L from './setting/HextomFreeShippingBar/index.js';
158
158
  import config$1M from './setting/EcoboostifyShoppableReelUgc/index.js';
159
159
  import config$1N from './setting/EcomsendBackInStockAlert/index.js';
160
160
  import config$1O from './setting/AppstleBundlesDiscounts/index.js';
161
+ import config$1P from './setting/AovFreeGiftBuyXGetYBogo/index.js';
161
162
 
162
163
  const thirdPartySetting = {
163
164
  EstimatedDeliveryDatePlus: config,
@@ -274,7 +275,8 @@ const thirdPartySetting = {
274
275
  HextomFreeShippingBar: config$1L,
275
276
  EcoboostifyShoppableReelUgc: config$1M,
276
277
  EcomsendBackInStockAlert: config$1N,
277
- AppstleBundlesDiscounts: config$1O
278
+ AppstleBundlesDiscounts: config$1O,
279
+ AovFreeGiftBuyXGetYBogo: config$1P
278
280
  };
279
281
 
280
282
  export { thirdPartySetting };
@@ -4,6 +4,10 @@ import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '@gem-sdk/core';
6
6
 
7
+ const AovFreeGiftBuyXGetYBogo = dynamic(()=>import('./components/AovFreeGiftBuyXGetYBogo.js'), {
8
+ ssr: false,
9
+ loading: Loading
10
+ });
7
11
  const EcomsendBackInStockAlert = dynamic(()=>import('./components/EcomsendBackInStockAlert.js'), {
8
12
  ssr: false,
9
13
  loading: Loading
@@ -465,6 +469,7 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>import('./components/Ecoboostify
465
469
  loading: Loading
466
470
  });
467
471
  var thirdParty = {
472
+ AovFreeGiftBuyXGetYBogo,
468
473
  EcomsendBackInStockAlert,
469
474
  AppstleBundlesDiscounts,
470
475
  EcoboostifyShoppableReelUgc,
@@ -0,0 +1,112 @@
1
+ import AppConfig from '../../configs/AovFreeGiftBuyXGetYBogo.js';
2
+ import SettingUIV1 from './uiV1.js';
3
+ import SettingUIV2 from './uiV2.js';
4
+
5
+ const config = {
6
+ tag: AppConfig.tag,
7
+ label: AppConfig.label,
8
+ icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">',
9
+ editorConfigs: {
10
+ placeholder: {
11
+ flowPage: 'GP_PRODUCT'
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/b957b53ca225f32cac0ad2cd41f89a1f/icon/CI6dsMjDr4cDEAE=.png?width=22&height=22">
27
+ <span class="preset-item-title">AOV Free Gift Buy X Get Y BOGO</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: 'widgetType',
48
+ label: 'Choose widget',
49
+ type: 'select',
50
+ options: [
51
+ {
52
+ label: 'AOV Promotion Card',
53
+ value: 'avada-promotion-card'
54
+ },
55
+ {
56
+ label: 'AOV Volume Discount',
57
+ value: 'avada-volume-discount'
58
+ }
59
+ ],
60
+ default: 'avada-promotion-card'
61
+ },
62
+ {
63
+ id: 'install',
64
+ type: 'open-link',
65
+ target: '_blank',
66
+ linkType: 'install',
67
+ href: 'https://apps.shopify.com/avada-upsell?utm_source=gempages',
68
+ appName: AppConfig.label
69
+ },
70
+ {
71
+ id: 'openApp',
72
+ type: 'open-link',
73
+ target: '_blank',
74
+ linkType: 'openApp',
75
+ href: 'https://admin.shopify.com/?redirect=/apps/avada-upsell',
76
+ appName: AppConfig.label
77
+ },
78
+ {
79
+ id: 'align',
80
+ label: 'Alignment',
81
+ type: 'segment',
82
+ options: [
83
+ {
84
+ label: 'Left',
85
+ value: 'left',
86
+ type: 'align'
87
+ },
88
+ {
89
+ label: 'Center',
90
+ value: 'center',
91
+ type: 'align'
92
+ },
93
+ {
94
+ label: 'Right',
95
+ value: 'right',
96
+ type: 'align'
97
+ }
98
+ ],
99
+ devices: {
100
+ desktop: {
101
+ default: 'left'
102
+ }
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ ],
108
+ ui: SettingUIV1,
109
+ uiV2: SettingUIV2
110
+ };
111
+
112
+ export { config as default };
@@ -0,0 +1,34 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'control',
4
+ setting: {
5
+ id: 'install'
6
+ }
7
+ },
8
+ {
9
+ type: 'control',
10
+ label: {
11
+ en: 'Choose widget'
12
+ },
13
+ setting: {
14
+ id: 'widgetType'
15
+ }
16
+ },
17
+ {
18
+ type: 'control',
19
+ setting: {
20
+ id: 'openApp'
21
+ }
22
+ },
23
+ {
24
+ type: 'control',
25
+ label: {
26
+ en: 'Align'
27
+ },
28
+ setting: {
29
+ id: 'align'
30
+ }
31
+ }
32
+ ];
33
+
34
+ export { SettingUIV1 as default };
@@ -0,0 +1,48 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ controls: [
4
+ {
5
+ setting: {
6
+ id: 'install'
7
+ },
8
+ layout: 'vertical'
9
+ }
10
+ ]
11
+ },
12
+ {
13
+ controls: [
14
+ {
15
+ label: {
16
+ en: 'Choose widget'
17
+ },
18
+ setting: {
19
+ id: 'widgetType'
20
+ }
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ controls: [
26
+ {
27
+ setting: {
28
+ id: 'openApp'
29
+ },
30
+ layout: 'vertical'
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ controls: [
36
+ {
37
+ label: {
38
+ en: 'Align'
39
+ },
40
+ setting: {
41
+ id: 'align'
42
+ }
43
+ }
44
+ ]
45
+ }
46
+ ];
47
+
48
+ export { SettingUIV2 as default };