@datlv-trustshop/shopify-inapp-components 0.2.2 → 0.2.3

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.
@@ -51,7 +51,7 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
51
51
  }
52
52
  }, [dismissKey, dismissDuration]);
53
53
  const handleGetAppClick = (app) => {
54
- const url = app.app_url || app.get_app || "#";
54
+ const url = app.button_install_link || app.app_url || app.get_app || "#";
55
55
  if (url && url !== "#") {
56
56
  window.open(url, "_blank");
57
57
  }
@@ -190,7 +190,8 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
190
190
  transform: "translateX(0px)",
191
191
  }, children: growApps.map((app, index) => {
192
192
  const iconUrl = app.icon_url || app.imageUrl || "";
193
- const buttonText = app.button_text ||
193
+ const buttonText = app.button_install_text ||
194
+ app.button_text ||
194
195
  app.button_get_app ||
195
196
  growAppsTranslations?.install ||
196
197
  "Get app";
@@ -11,6 +11,8 @@ export interface GrowApp {
11
11
  imageUrl?: string;
12
12
  button_text?: string;
13
13
  button_get_app?: string;
14
+ button_install_text?: string;
15
+ button_install_link?: string;
14
16
  app_url?: string;
15
17
  get_app?: string;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datlv-trustshop/shopify-inapp-components",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "description": "React TypeScript components for Shopify in-app dashboard content",
6
6
  "main": "dist/index.js",