@datlv-trustshop/shopify-inapp-components 0.1.9

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 (74) hide show
  1. package/README.md +141 -0
  2. package/dist/components/AppList.d.ts +13 -0
  3. package/dist/components/AppList.js +64 -0
  4. package/dist/components/ArticleList.d.ts +20 -0
  5. package/dist/components/ArticleList.js +174 -0
  6. package/dist/components/ArticleSlide.d.ts +14 -0
  7. package/dist/components/ArticleSlide.js +151 -0
  8. package/dist/components/FooterBanner.d.ts +10 -0
  9. package/dist/components/FooterBanner.js +72 -0
  10. package/dist/components/GrowApps.d.ts +13 -0
  11. package/dist/components/GrowApps.js +213 -0
  12. package/dist/components/ImageLoading.d.ts +15 -0
  13. package/dist/components/ImageLoading.js +66 -0
  14. package/dist/components/PartnerList.d.ts +9 -0
  15. package/dist/components/PartnerList.js +102 -0
  16. package/dist/components/PopupBanner.d.ts +12 -0
  17. package/dist/components/PopupBanner.js +100 -0
  18. package/dist/components/TopBanner.d.ts +14 -0
  19. package/dist/components/TopBanner.js +31 -0
  20. package/dist/components/WhatsNew.d.ts +14 -0
  21. package/dist/components/WhatsNew.js +258 -0
  22. package/dist/components/index.d.ts +9 -0
  23. package/dist/components/index.js +9 -0
  24. package/dist/components/inlineStyles.d.ts +110 -0
  25. package/dist/components/inlineStyles.js +114 -0
  26. package/dist/components/styles.d.ts +152 -0
  27. package/dist/components/styles.js +158 -0
  28. package/dist/core/adapter.d.ts +6 -0
  29. package/dist/core/adapter.js +301 -0
  30. package/dist/core/engine.d.ts +33 -0
  31. package/dist/core/engine.js +176 -0
  32. package/dist/core/fetcher.d.ts +4 -0
  33. package/dist/core/fetcher.js +72 -0
  34. package/dist/core/global-manager.d.ts +99 -0
  35. package/dist/core/global-manager.js +315 -0
  36. package/dist/hooks/index.d.ts +6 -0
  37. package/dist/hooks/index.js +6 -0
  38. package/dist/hooks/useApps.d.ts +3 -0
  39. package/dist/hooks/useApps.js +18 -0
  40. package/dist/hooks/useArticles.d.ts +11 -0
  41. package/dist/hooks/useArticles.js +49 -0
  42. package/dist/hooks/useBanner.d.ts +5 -0
  43. package/dist/hooks/useBanner.js +22 -0
  44. package/dist/hooks/useDashboard.d.ts +11 -0
  45. package/dist/hooks/useDashboard.js +13 -0
  46. package/dist/hooks/useGrowApps.d.ts +10 -0
  47. package/dist/hooks/useGrowApps.js +14 -0
  48. package/dist/hooks/useTranslations.d.ts +3 -0
  49. package/dist/hooks/useTranslations.js +9 -0
  50. package/dist/hooks/useWhatsNew.d.ts +11 -0
  51. package/dist/hooks/useWhatsNew.js +34 -0
  52. package/dist/index.d.ts +18 -0
  53. package/dist/index.js +16 -0
  54. package/dist/provider/DashboardProvider.d.ts +36 -0
  55. package/dist/provider/DashboardProvider.js +184 -0
  56. package/dist/translations/default.d.ts +2 -0
  57. package/dist/translations/default.js +27 -0
  58. package/dist/types/app.d.ts +14 -0
  59. package/dist/types/app.js +1 -0
  60. package/dist/types/article.d.ts +14 -0
  61. package/dist/types/article.js +1 -0
  62. package/dist/types/banner.d.ts +22 -0
  63. package/dist/types/banner.js +1 -0
  64. package/dist/types/dashboard.d.ts +42 -0
  65. package/dist/types/dashboard.js +1 -0
  66. package/dist/types/index.d.ts +6 -0
  67. package/dist/types/index.js +6 -0
  68. package/dist/types/partner.d.ts +8 -0
  69. package/dist/types/partner.js +1 -0
  70. package/dist/types/product-update.d.ts +23 -0
  71. package/dist/types/product-update.js +1 -0
  72. package/dist/types/translations.d.ts +28 -0
  73. package/dist/types/translations.js +1 -0
  74. package/package.json +61 -0
@@ -0,0 +1,28 @@
1
+ export interface SDKTranslations {
2
+ whatsNew?: {
3
+ title?: string;
4
+ tabs?: {
5
+ article?: string;
6
+ productUpdate?: string;
7
+ };
8
+ buttonViewAll?: {
9
+ article?: string;
10
+ productUpdate?: string;
11
+ };
12
+ noData?: string;
13
+ };
14
+ growApps?: {
15
+ title?: string;
16
+ subtitle?: string;
17
+ exploreApps?: string;
18
+ install?: string;
19
+ installed?: string;
20
+ dismiss?: string;
21
+ noData?: string;
22
+ };
23
+ banner?: {
24
+ learnMore?: string;
25
+ dismiss?: string;
26
+ };
27
+ }
28
+ export type TranslationKey = keyof SDKTranslations;
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@datlv-trustshop/shopify-inapp-components",
3
+ "version": "0.1.9",
4
+ "private": false,
5
+ "description": "React TypeScript components for Shopify in-app dashboard content",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc",
14
+ "dev": "tsc --watch",
15
+ "test": "jest",
16
+ "lint": "eslint src --ext ts,tsx",
17
+ "type-check": "tsc --noEmit",
18
+ "clean": "rm -rf dist",
19
+ "prebuild": "npm run clean",
20
+ "prepublishOnly": "npm run build"
21
+ },
22
+ "keywords": [
23
+ "shopify",
24
+ "dashboard",
25
+ "sdk",
26
+ "react",
27
+ "typescript",
28
+ "inapp"
29
+ ],
30
+ "author": "TrustShop",
31
+ "license": "MIT",
32
+ "peerDependencies": {
33
+ "react": "^17.0.0 || ^18.0.0",
34
+ "react-dom": "^17.0.0 || ^18.0.0",
35
+ "@shopify/polaris": "^12.0.0",
36
+ "@shopify/polaris-icons": "^9.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@shopify/polaris": "^12.0.0",
40
+ "@shopify/polaris-icons": "^9.0.0",
41
+ "@types/node": "^20.0.0",
42
+ "@types/react": "^18.0.0",
43
+ "@types/react-dom": "^18.0.0",
44
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
45
+ "@typescript-eslint/parser": "^6.0.0",
46
+ "eslint": "^8.0.0",
47
+ "eslint-plugin-react": "^7.0.0",
48
+ "eslint-plugin-react-hooks": "^4.0.0",
49
+ "react": "^18.0.0",
50
+ "react-dom": "^18.0.0",
51
+ "typescript": "^5.0.0"
52
+ },
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/trustshop/shopify-inapp-components"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/trustshop/shopify-inapp-components/issues"
59
+ },
60
+ "homepage": "https://github.com/trustshop/shopify-inapp-components#readme"
61
+ }