rn-erxes-sdk 0.1.4 → 0.1.6

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 (101) hide show
  1. package/README.md +39 -20
  2. package/lib/commonjs/App.js +9 -44
  3. package/lib/commonjs/App.js.map +1 -1
  4. package/lib/commonjs/FAQ.js +175 -0
  5. package/lib/commonjs/FAQ.js.map +1 -0
  6. package/lib/commonjs/Greetings.js +57 -0
  7. package/lib/commonjs/Greetings.js.map +1 -0
  8. package/lib/commonjs/Social.js +46 -0
  9. package/lib/commonjs/Social.js.map +1 -0
  10. package/lib/commonjs/Support.js +93 -0
  11. package/lib/commonjs/Support.js.map +1 -0
  12. package/lib/commonjs/Supporters.js +73 -0
  13. package/lib/commonjs/Supporters.js.map +1 -0
  14. package/lib/commonjs/Widget.js +132 -0
  15. package/lib/commonjs/Widget.js.map +1 -0
  16. package/lib/commonjs/apolloClient.js +55 -0
  17. package/lib/commonjs/apolloClient.js.map +1 -0
  18. package/lib/commonjs/assets/images/Facebook.png +0 -0
  19. package/lib/commonjs/assets/images/Twitter.png +0 -0
  20. package/lib/commonjs/assets/images/Youtube.png +0 -0
  21. package/lib/commonjs/assets/images/avatar.png +0 -0
  22. package/lib/commonjs/assets/images/index.js +15 -0
  23. package/lib/commonjs/assets/images/index.js.map +1 -0
  24. package/lib/commonjs/graphql/graphql.js +108 -0
  25. package/lib/commonjs/graphql/graphql.js.map +1 -0
  26. package/lib/commonjs/graphql/mutation.js +47 -0
  27. package/lib/commonjs/graphql/mutation.js.map +1 -0
  28. package/lib/commonjs/icons/MaterialCommunityIcons.js +81 -0
  29. package/lib/commonjs/icons/MaterialCommunityIcons.js.map +1 -0
  30. package/lib/module/App.js +9 -44
  31. package/lib/module/App.js.map +1 -1
  32. package/lib/module/FAQ.js +165 -0
  33. package/lib/module/FAQ.js.map +1 -0
  34. package/lib/module/Greetings.js +48 -0
  35. package/lib/module/Greetings.js.map +1 -0
  36. package/lib/module/Social.js +37 -0
  37. package/lib/module/Social.js.map +1 -0
  38. package/lib/module/Support.js +84 -0
  39. package/lib/module/Support.js.map +1 -0
  40. package/lib/module/Supporters.js +64 -0
  41. package/lib/module/Supporters.js.map +1 -0
  42. package/lib/module/Widget.js +123 -0
  43. package/lib/module/Widget.js.map +1 -0
  44. package/lib/module/apolloClient.js +46 -0
  45. package/lib/module/apolloClient.js.map +1 -0
  46. package/lib/module/assets/images/Facebook.png +0 -0
  47. package/lib/module/assets/images/Twitter.png +0 -0
  48. package/lib/module/assets/images/Youtube.png +0 -0
  49. package/lib/module/assets/images/avatar.png +0 -0
  50. package/lib/module/assets/images/index.js +8 -0
  51. package/lib/module/assets/images/index.js.map +1 -0
  52. package/lib/module/graphql/graphql.js +99 -0
  53. package/lib/module/graphql/graphql.js.map +1 -0
  54. package/lib/module/graphql/mutation.js +41 -0
  55. package/lib/module/graphql/mutation.js.map +1 -0
  56. package/lib/module/icons/MaterialCommunityIcons.js +71 -0
  57. package/lib/module/icons/MaterialCommunityIcons.js.map +1 -0
  58. package/lib/typescript/App.d.ts +1 -1
  59. package/lib/typescript/App.d.ts.map +1 -1
  60. package/lib/typescript/FAQ.d.ts +4 -0
  61. package/lib/typescript/FAQ.d.ts.map +1 -0
  62. package/lib/typescript/Greetings.d.ts +4 -0
  63. package/lib/typescript/Greetings.d.ts.map +1 -0
  64. package/lib/typescript/Social.d.ts +4 -0
  65. package/lib/typescript/Social.d.ts.map +1 -0
  66. package/lib/typescript/Support.d.ts +4 -0
  67. package/lib/typescript/Support.d.ts.map +1 -0
  68. package/lib/typescript/Supporters.d.ts +4 -0
  69. package/lib/typescript/Supporters.d.ts.map +1 -0
  70. package/lib/typescript/Widget.d.ts +4 -0
  71. package/lib/typescript/Widget.d.ts.map +1 -0
  72. package/lib/typescript/apolloClient.d.ts +6 -0
  73. package/lib/typescript/apolloClient.d.ts.map +1 -0
  74. package/lib/typescript/assets/images/index.d.ts +8 -0
  75. package/lib/typescript/assets/images/index.d.ts.map +1 -0
  76. package/lib/typescript/graphql/graphql.d.ts +6 -0
  77. package/lib/typescript/graphql/graphql.d.ts.map +1 -0
  78. package/lib/typescript/graphql/mutation.d.ts +3 -0
  79. package/lib/typescript/graphql/mutation.d.ts.map +1 -0
  80. package/lib/typescript/icons/MaterialCommunityIcons.d.ts +22 -0
  81. package/lib/typescript/icons/MaterialCommunityIcons.d.ts.map +1 -0
  82. package/package.json +9 -5
  83. package/src/App.tsx +8 -42
  84. package/src/FAQ.tsx +166 -0
  85. package/src/Greetings.tsx +37 -0
  86. package/src/Social.tsx +46 -0
  87. package/src/Support.tsx +74 -0
  88. package/src/Supporters.tsx +63 -0
  89. package/src/Widget.tsx +138 -0
  90. package/src/apolloClient.ts +57 -0
  91. package/src/assets/images/Facebook.png +0 -0
  92. package/src/assets/images/Twitter.png +0 -0
  93. package/src/assets/images/Youtube.png +0 -0
  94. package/src/assets/images/avatar.png +0 -0
  95. package/src/assets/images/index.ts +8 -0
  96. package/src/graphql/graphql.ts +108 -0
  97. package/src/graphql/mutation.ts +42 -0
  98. package/src/icons/MaterialCommunityIcons.tsx +95 -0
  99. package/lib/commonjs/index.html +0 -114
  100. package/lib/module/index.html +0 -114
  101. package/src/index.html +0 -114
@@ -1,114 +0,0 @@
1
- <html>
2
- <meta name="viewport" content="width=device-width, initial-scale=1" />
3
- <meta charset="utf-8" />
4
-
5
- <body id="mbody" onload="openMessenger()"></body>
6
- <script>
7
- function openMessenger() {
8
- setTimeout(function () {
9
- window.Erxes.showMessenger();
10
- }, 3000);
11
- }
12
-
13
- window.addEventListener('message', (e) => {
14
- const { data } = e;
15
- const { notificationCount } = data;
16
-
17
- if (notificationCount !== undefined) {
18
- window.ReactNativeWebView.postMessage(JSON.stringify(data));
19
- }
20
- });
21
- </script>
22
-
23
- <style>
24
- #mbody {
25
- align-items: center;
26
- justify-content: center;
27
- background-color: rgb(189, 189, 188);
28
- display: flex;
29
- /* flex-direction: column; */
30
- }
31
-
32
- .topbar-button {
33
- visibility: hidden;
34
- }
35
-
36
- .loader {
37
- border: 5px solid #f3f3f3;
38
- /* Light grey */
39
- border-top: 5px solid #3498db;
40
- /* Blue */
41
- border-radius: 50%;
42
- width: 50px;
43
- height: 50px;
44
- animation: spin 5s linear infinite;
45
- }
46
-
47
- @keyframes spin {
48
- 0% {
49
- transform: rotate(0deg);
50
- }
51
-
52
- 100% {
53
- transform: rotate(360deg);
54
- }
55
- }
56
-
57
- /* CSS */
58
- .button-75 {
59
- align-items: center;
60
- background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
61
- border: 0;
62
- border-radius: 10px;
63
- box-sizing: border-box;
64
- color: #fff;
65
- cursor: pointer;
66
- display: flex;
67
- flex-direction: column;
68
- /* font-family: "Codec cold", sans-serif; */
69
- font-size: 16px;
70
- font-weight: 700;
71
- height: 54px;
72
- justify-content: center;
73
- letter-spacing: 0.4px;
74
- line-height: 1;
75
- max-width: 100%;
76
- padding-left: 20px;
77
- padding-right: 20px;
78
- padding-top: 3px;
79
- text-decoration: none;
80
- text-transform: uppercase;
81
- user-select: none;
82
- -webkit-user-select: none;
83
- touch-action: manipulation;
84
- }
85
-
86
- .button-75:active {
87
- outline: 0;
88
- }
89
-
90
- .button-75:hover {
91
- outline: 0;
92
- }
93
-
94
- .button-75 span {
95
- transition: all 200ms;
96
- }
97
-
98
- .button-75:hover span {
99
- transform: scale(0.9);
100
- opacity: 0.75;
101
- }
102
-
103
- @media screen and (max-width: 991px) {
104
- .button-75 {
105
- font-size: 15px;
106
- height: 50px;
107
- }
108
-
109
- .button-75 span {
110
- line-height: 50px;
111
- }
112
- }
113
- </style>
114
- </html>
@@ -1,114 +0,0 @@
1
- <html>
2
- <meta name="viewport" content="width=device-width, initial-scale=1" />
3
- <meta charset="utf-8" />
4
-
5
- <body id="mbody" onload="openMessenger()"></body>
6
- <script>
7
- function openMessenger() {
8
- setTimeout(function () {
9
- window.Erxes.showMessenger();
10
- }, 3000);
11
- }
12
-
13
- window.addEventListener('message', (e) => {
14
- const { data } = e;
15
- const { notificationCount } = data;
16
-
17
- if (notificationCount !== undefined) {
18
- window.ReactNativeWebView.postMessage(JSON.stringify(data));
19
- }
20
- });
21
- </script>
22
-
23
- <style>
24
- #mbody {
25
- align-items: center;
26
- justify-content: center;
27
- background-color: rgb(189, 189, 188);
28
- display: flex;
29
- /* flex-direction: column; */
30
- }
31
-
32
- .topbar-button {
33
- visibility: hidden;
34
- }
35
-
36
- .loader {
37
- border: 5px solid #f3f3f3;
38
- /* Light grey */
39
- border-top: 5px solid #3498db;
40
- /* Blue */
41
- border-radius: 50%;
42
- width: 50px;
43
- height: 50px;
44
- animation: spin 5s linear infinite;
45
- }
46
-
47
- @keyframes spin {
48
- 0% {
49
- transform: rotate(0deg);
50
- }
51
-
52
- 100% {
53
- transform: rotate(360deg);
54
- }
55
- }
56
-
57
- /* CSS */
58
- .button-75 {
59
- align-items: center;
60
- background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
61
- border: 0;
62
- border-radius: 10px;
63
- box-sizing: border-box;
64
- color: #fff;
65
- cursor: pointer;
66
- display: flex;
67
- flex-direction: column;
68
- /* font-family: "Codec cold", sans-serif; */
69
- font-size: 16px;
70
- font-weight: 700;
71
- height: 54px;
72
- justify-content: center;
73
- letter-spacing: 0.4px;
74
- line-height: 1;
75
- max-width: 100%;
76
- padding-left: 20px;
77
- padding-right: 20px;
78
- padding-top: 3px;
79
- text-decoration: none;
80
- text-transform: uppercase;
81
- user-select: none;
82
- -webkit-user-select: none;
83
- touch-action: manipulation;
84
- }
85
-
86
- .button-75:active {
87
- outline: 0;
88
- }
89
-
90
- .button-75:hover {
91
- outline: 0;
92
- }
93
-
94
- .button-75 span {
95
- transition: all 200ms;
96
- }
97
-
98
- .button-75:hover span {
99
- transform: scale(0.9);
100
- opacity: 0.75;
101
- }
102
-
103
- @media screen and (max-width: 991px) {
104
- .button-75 {
105
- font-size: 15px;
106
- height: 50px;
107
- }
108
-
109
- .button-75 span {
110
- line-height: 50px;
111
- }
112
- }
113
- </style>
114
- </html>
package/src/index.html DELETED
@@ -1,114 +0,0 @@
1
- <html>
2
- <meta name="viewport" content="width=device-width, initial-scale=1" />
3
- <meta charset="utf-8" />
4
-
5
- <body id="mbody" onload="openMessenger()"></body>
6
- <script>
7
- function openMessenger() {
8
- setTimeout(function () {
9
- window.Erxes.showMessenger();
10
- }, 3000);
11
- }
12
-
13
- window.addEventListener('message', (e) => {
14
- const { data } = e;
15
- const { notificationCount } = data;
16
-
17
- if (notificationCount !== undefined) {
18
- window.ReactNativeWebView.postMessage(JSON.stringify(data));
19
- }
20
- });
21
- </script>
22
-
23
- <style>
24
- #mbody {
25
- align-items: center;
26
- justify-content: center;
27
- background-color: rgb(189, 189, 188);
28
- display: flex;
29
- /* flex-direction: column; */
30
- }
31
-
32
- .topbar-button {
33
- visibility: hidden;
34
- }
35
-
36
- .loader {
37
- border: 5px solid #f3f3f3;
38
- /* Light grey */
39
- border-top: 5px solid #3498db;
40
- /* Blue */
41
- border-radius: 50%;
42
- width: 50px;
43
- height: 50px;
44
- animation: spin 5s linear infinite;
45
- }
46
-
47
- @keyframes spin {
48
- 0% {
49
- transform: rotate(0deg);
50
- }
51
-
52
- 100% {
53
- transform: rotate(360deg);
54
- }
55
- }
56
-
57
- /* CSS */
58
- .button-75 {
59
- align-items: center;
60
- background-image: linear-gradient(135deg, #f34079 40%, #fc894d);
61
- border: 0;
62
- border-radius: 10px;
63
- box-sizing: border-box;
64
- color: #fff;
65
- cursor: pointer;
66
- display: flex;
67
- flex-direction: column;
68
- /* font-family: "Codec cold", sans-serif; */
69
- font-size: 16px;
70
- font-weight: 700;
71
- height: 54px;
72
- justify-content: center;
73
- letter-spacing: 0.4px;
74
- line-height: 1;
75
- max-width: 100%;
76
- padding-left: 20px;
77
- padding-right: 20px;
78
- padding-top: 3px;
79
- text-decoration: none;
80
- text-transform: uppercase;
81
- user-select: none;
82
- -webkit-user-select: none;
83
- touch-action: manipulation;
84
- }
85
-
86
- .button-75:active {
87
- outline: 0;
88
- }
89
-
90
- .button-75:hover {
91
- outline: 0;
92
- }
93
-
94
- .button-75 span {
95
- transition: all 200ms;
96
- }
97
-
98
- .button-75:hover span {
99
- transform: scale(0.9);
100
- opacity: 0.75;
101
- }
102
-
103
- @media screen and (max-width: 991px) {
104
- .button-75 {
105
- font-size: 15px;
106
- height: 50px;
107
- }
108
-
109
- .button-75 span {
110
- line-height: 50px;
111
- }
112
- }
113
- </style>
114
- </html>