@hulkapps/app-manager-vue 2.0.2 → 2.0.5

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/README.md CHANGED
@@ -25,6 +25,46 @@ Vue.use(AppManager);
25
25
  ```vue
26
26
  <Banners type="header" />
27
27
  <Banners type="footer" />
28
+ <AppManagerPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" />
29
+ <AppManagerSliderPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" />
30
+ ```
31
+ The AppManagerPlan component requires a Shop Domain
32
+
33
+ #### Non-Vue App usage
34
+
35
+ ```html
36
+ <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
37
+ <script src="https://cdn.jsdelivr.net/npm/@hulkapps/app-manager-vue@2.0.3/dist/app-manager-vue.min.js"></script>
38
+ <script src="https://cdn.jsdelivr.net/npm/regenerator-runtime@0.13.9/runtime.min.js"></script>
39
+ <link href="https://cdn.jsdelivr.net/npm/@hulkapps/app-manager-vue@2.0.3/dist/hulkapps-app-manager.css" rel="stylesheet">
40
+
41
+ <div id="app" class="app-manager">
42
+ <Banners type="header" />
43
+ <app-manager-plan shop_domain="<%= @store.shopify_domain %>" />
44
+ </div>
45
+
46
+ <script>
47
+ Vue.use(AppManagerVue, {baseUrl: '<%= ENV['volume_domain'] %>'})
48
+ var app = new Vue({
49
+ el: '#app',
50
+ data: {
51
+ message: 'Hello Vue!',
52
+ domain: '<%= @store.shopify_domain %>'
53
+ }
54
+ })
55
+ </script>
56
+ ```
57
+
58
+ A `handlePlanSelect` event is emitted when the user continues without selecting a plan.
59
+
60
+ ```javascript
61
+ handlePlanSelectListener(payload) {
62
+
63
+ if (payload.chose_later && payload.chose_later === true) {
64
+ //handle chose_later
65
+ }
66
+
67
+ }
28
68
  ```
29
69
 
30
70
  ## License