@gem-sdk/components 2.0.0-staging.151 → 2.0.0-staging.159

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 (56) hide show
  1. package/dist/cjs/banner/components/hero-banner/index.liquid.js +1 -1
  2. package/dist/cjs/builder.js +4 -0
  3. package/dist/cjs/index.js +4 -0
  4. package/dist/cjs/index.liquid.js +4 -0
  5. package/dist/cjs/post-purchase/product/components/ProductDiscountTag.js +5 -2
  6. package/dist/cjs/post-purchase/product/components/ProductOffer.js +16 -3
  7. package/dist/cjs/post-purchase/product/components/ProductPrice.js +3 -1
  8. package/dist/cjs/post-purchase/product/components/ProductPriceBreakdown.js +9 -21
  9. package/dist/cjs/post-purchase/product/constants/ProductOfferPlaceholder.js +149 -0
  10. package/dist/cjs/post-purchase/product/hooks/useDynamicProduct.js +28 -0
  11. package/dist/cjs/post-purchase/product/settings/ProductOffer.js +26 -0
  12. package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +3 -3
  13. package/dist/cjs/product/components/ProductDescription/common.js +28 -0
  14. package/dist/cjs/product/components/ProductDescription/const.js +5 -0
  15. package/dist/cjs/product/components/ProductDescription.js +37 -10
  16. package/dist/cjs/product/components/ProductDescription.liquid.js +3 -1
  17. package/dist/cjs/third-party/components/EssentialAnnouncementBar.js +33 -0
  18. package/dist/cjs/third-party/components/EssentialAnnouncementBar.liquid.js +12 -0
  19. package/dist/cjs/third-party/components/EssentialCountdownTimerBar.js +33 -0
  20. package/dist/cjs/third-party/components/EssentialCountdownTimerBar.liquid.js +12 -0
  21. package/dist/cjs/third-party/configs/EssentialAnnouncementBar.js +12 -0
  22. package/dist/cjs/third-party/configs/EssentialCountdownTimerBar.js +12 -0
  23. package/dist/cjs/third-party/helpers/thirdParty.js +1 -1
  24. package/dist/cjs/third-party/next.js +10 -0
  25. package/dist/cjs/third-party/setting/EssentialAnnouncementBar.js +142 -0
  26. package/dist/cjs/third-party/setting/EssentialCountdownTimerBar.js +142 -0
  27. package/dist/cjs/third-party/setting/index.js +4 -0
  28. package/dist/esm/banner/components/hero-banner/index.liquid.js +1 -1
  29. package/dist/esm/builder.js +4 -0
  30. package/dist/esm/index.js +2 -0
  31. package/dist/esm/index.liquid.js +2 -0
  32. package/dist/esm/post-purchase/product/components/ProductDiscountTag.js +5 -2
  33. package/dist/esm/post-purchase/product/components/ProductOffer.js +16 -3
  34. package/dist/esm/post-purchase/product/components/ProductPrice.js +3 -1
  35. package/dist/esm/post-purchase/product/components/ProductPriceBreakdown.js +9 -21
  36. package/dist/esm/post-purchase/product/constants/ProductOfferPlaceholder.js +147 -0
  37. package/dist/esm/post-purchase/product/hooks/useDynamicProduct.js +26 -0
  38. package/dist/esm/post-purchase/product/settings/ProductOffer.js +26 -0
  39. package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +3 -3
  40. package/dist/esm/product/components/ProductDescription/common.js +26 -0
  41. package/dist/esm/product/components/ProductDescription/const.js +3 -0
  42. package/dist/esm/product/components/ProductDescription.js +37 -10
  43. package/dist/esm/product/components/ProductDescription.liquid.js +3 -1
  44. package/dist/esm/third-party/components/EssentialAnnouncementBar.js +29 -0
  45. package/dist/esm/third-party/components/EssentialAnnouncementBar.liquid.js +8 -0
  46. package/dist/esm/third-party/components/EssentialCountdownTimerBar.js +29 -0
  47. package/dist/esm/third-party/components/EssentialCountdownTimerBar.liquid.js +8 -0
  48. package/dist/esm/third-party/configs/EssentialAnnouncementBar.js +8 -0
  49. package/dist/esm/third-party/configs/EssentialCountdownTimerBar.js +8 -0
  50. package/dist/esm/third-party/helpers/thirdParty.js +1 -1
  51. package/dist/esm/third-party/next.js +10 -0
  52. package/dist/esm/third-party/setting/EssentialAnnouncementBar.js +138 -0
  53. package/dist/esm/third-party/setting/EssentialCountdownTimerBar.js +138 -0
  54. package/dist/esm/third-party/setting/index.js +206 -202
  55. package/dist/types/index.d.ts +38 -1
  56. package/package.json +3 -3
@@ -0,0 +1,138 @@
1
+ import AppConfig from '../configs/EssentialAnnouncementBar.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/15e8255158a042a1eab34a4c45c72aa5/icon/CMK1jPv9uoADEAE=.png">',
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/15e8255158a042a1eab34a4c45c72aa5/icon/CMK1jPv9uoADEAE=.png">
22
+ <span class="preset-item-title">Essential Announcement Bar</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: 'App Block',
48
+ value: 'app-block'
49
+ }
50
+ ],
51
+ default: 'app-block'
52
+ },
53
+ {
54
+ id: 'install',
55
+ type: 'open-link',
56
+ target: '_blank',
57
+ linkType: 'install',
58
+ href: 'https://apps.shopify.com/essential-announcement-bar?utm_source=gempages',
59
+ appName: AppConfig.label
60
+ },
61
+ {
62
+ id: 'announcementId',
63
+ type: 'input',
64
+ default: ''
65
+ },
66
+ {
67
+ id: 'openApp',
68
+ type: 'open-link',
69
+ target: '_blank',
70
+ linkType: 'openApp',
71
+ href: 'https://admin.shopify.com/?redirect=/apps/essential-announcement-bar',
72
+ appName: AppConfig.label
73
+ },
74
+ {
75
+ id: 'align',
76
+ label: 'Alignment',
77
+ type: 'segment',
78
+ options: [
79
+ {
80
+ label: 'Left',
81
+ value: 'left',
82
+ type: 'align'
83
+ },
84
+ {
85
+ label: 'Center',
86
+ value: 'center',
87
+ type: 'align'
88
+ },
89
+ {
90
+ label: 'Right',
91
+ value: 'right',
92
+ type: 'align'
93
+ }
94
+ ],
95
+ devices: {
96
+ desktop: {
97
+ default: 'left'
98
+ }
99
+ }
100
+ }
101
+ ]
102
+ }
103
+ ],
104
+ ui: [
105
+ {
106
+ type: 'control',
107
+ setting: {
108
+ id: 'install'
109
+ }
110
+ },
111
+ {
112
+ type: 'control',
113
+ label: {
114
+ en: 'Announcement id'
115
+ },
116
+ setting: {
117
+ id: 'announcementId'
118
+ }
119
+ },
120
+ {
121
+ type: 'control',
122
+ setting: {
123
+ id: 'openApp'
124
+ }
125
+ },
126
+ {
127
+ type: 'control',
128
+ label: {
129
+ en: 'Align'
130
+ },
131
+ setting: {
132
+ id: 'align'
133
+ }
134
+ }
135
+ ]
136
+ };
137
+
138
+ export { config as default };
@@ -0,0 +1,138 @@
1
+ import AppConfig from '../configs/EssentialCountdownTimerBar.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/f84bf9e49eca8bd84c2af7488461363b/icon/CPzKxLTD4_UCEAE=.png">',
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/f84bf9e49eca8bd84c2af7488461363b/icon/CPzKxLTD4_UCEAE=.png">
22
+ <span class="preset-item-title">Essential Countdown Timer Bar</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: 'App Block',
48
+ value: 'app-block'
49
+ }
50
+ ],
51
+ default: 'app-block'
52
+ },
53
+ {
54
+ id: 'install',
55
+ type: 'open-link',
56
+ target: '_blank',
57
+ linkType: 'install',
58
+ href: 'https://apps.shopify.com/essential-countdown-timer?utm_source=gempages',
59
+ appName: AppConfig.label
60
+ },
61
+ {
62
+ id: 'timerId',
63
+ type: 'input',
64
+ default: ''
65
+ },
66
+ {
67
+ id: 'openApp',
68
+ type: 'open-link',
69
+ target: '_blank',
70
+ linkType: 'openApp',
71
+ href: 'https://admin.shopify.com/?redirect=/apps/countdown-timer-30',
72
+ appName: AppConfig.label
73
+ },
74
+ {
75
+ id: 'align',
76
+ label: 'Alignment',
77
+ type: 'segment',
78
+ options: [
79
+ {
80
+ label: 'Left',
81
+ value: 'left',
82
+ type: 'align'
83
+ },
84
+ {
85
+ label: 'Center',
86
+ value: 'center',
87
+ type: 'align'
88
+ },
89
+ {
90
+ label: 'Right',
91
+ value: 'right',
92
+ type: 'align'
93
+ }
94
+ ],
95
+ devices: {
96
+ desktop: {
97
+ default: 'left'
98
+ }
99
+ }
100
+ }
101
+ ]
102
+ }
103
+ ],
104
+ ui: [
105
+ {
106
+ type: 'control',
107
+ setting: {
108
+ id: 'install'
109
+ }
110
+ },
111
+ {
112
+ type: 'control',
113
+ label: {
114
+ en: 'Timer id'
115
+ },
116
+ setting: {
117
+ id: 'timerId'
118
+ }
119
+ },
120
+ {
121
+ type: 'control',
122
+ setting: {
123
+ id: 'openApp'
124
+ }
125
+ },
126
+ {
127
+ type: 'control',
128
+ label: {
129
+ en: 'Align'
130
+ },
131
+ setting: {
132
+ id: 'align'
133
+ }
134
+ }
135
+ ]
136
+ };
137
+
138
+ export { config as default };