@chat21/chat21-ionic 3.0.102 → 3.0.103-rc.2

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 (43) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/angular.json +25 -11
  3. package/config.xml +5 -5
  4. package/package.json +76 -43
  5. package/src/app/app-routing.module.ts +13 -10
  6. package/src/app/app.component.ts +102 -116
  7. package/src/app/app.module.ts +29 -18
  8. package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.html +8 -8
  9. package/src/app/components/authentication/login/login.component.html +31 -2
  10. package/src/app/components/authentication/login/login.component.scss +63 -0
  11. package/src/app/components/authentication/login/login.component.ts +12 -5
  12. package/src/app/components/canned-response/canned-response.component.html +3 -0
  13. package/src/app/components/canned-response/canned-response.component.ts +7 -0
  14. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +2 -2
  15. package/src/app/components/conversation-info/conversation-info.module.ts +23 -1
  16. package/src/app/modals/send-email/send-email.page.ts +4 -4
  17. package/src/app/modals/send-whatsapp-template/send-whatsapp-template.module.ts +0 -1
  18. package/src/app/pages/authentication/login/login.page.html +1 -1
  19. package/src/app/pages/authentication/login/login.page.ts +1 -1
  20. package/src/app/pages/conversation-detail/conversation-detail.module.ts +55 -18
  21. package/src/app/pages/conversation-detail/conversation-detail.page.html +1 -0
  22. package/src/app/pages/conversation-detail/conversation-detail.page.ts +33 -13
  23. package/src/app/pages/conversations-list/conversations-list.module.ts +24 -4
  24. package/src/app/services/tiledesk/tiledesk.service.ts +2 -2
  25. package/src/app/shared/shared.module.ts +92 -69
  26. package/src/assets/i18n/en.json +30 -30
  27. package/src/assets/js/chat21client.js +1 -1
  28. package/src/chat21-core/models/projects.ts +9 -9
  29. package/src/chat21-core/providers/abstract/conversations-handler.service.ts +0 -1
  30. package/src/chat21-core/providers/abstract/groups-handler.service.ts +0 -1
  31. package/src/chat21-core/providers/abstract/notifications.service.ts +1 -1
  32. package/src/chat21-core/providers/firebase/firebase-notifications.ts +30 -15
  33. package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -1
  34. package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +3 -3
  35. package/src/chat21-core/providers/mqtt/mqtt-notifications.ts +31 -5
  36. package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +0 -2
  37. package/src/chat21-core/utils/constants.ts +6 -0
  38. package/src/chat21-core/utils/convertRequestToConversation.ts +1 -1
  39. package/src/chat21-core/utils/utils-message.ts +4 -4
  40. package/src/chat21-core/utils/utils.ts +0 -16
  41. package/tsconfig.app.json +0 -1
  42. package/src/app/shared/shared-conversation-info.module.ts +0 -33
  43. package/src/models/department.ts +0 -12
package/CHANGELOG.md CHANGED
@@ -1,7 +1,25 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.103-rc.2
4
+ - added: google signIn for mobile platform
5
+ - added: FMC and inAppBrowser plugins
6
+ - minor improvements on canned responses component
7
+
8
+ ### 3.0.103-rc.1
9
+ - added: ANGULAR 12
10
+ - added: laxy loading of modal pages
11
+ - bug-fixed: cannot send new message in direct conversation for the first time
12
+
3
13
  ### 3.0.102 in PROD
4
14
 
15
+ ### 3.0.102-rc.2
16
+ - added: ANGULAR 12
17
+ - added: laxy loading of modal pages
18
+
19
+ ### 3.0.102-rc.1
20
+ - changed: chat21client.js version to v0.1.12.5
21
+ - changed: set callback function on chat21client.connect without wait the subscription get back
22
+
5
23
  ### 3.0.101 in PROD
6
24
  - changed: message-textarea tooltip translations
7
25
  - bug-fixed: offline message warning appear also if user has not an email in leadInfo
package/angular.json CHANGED
@@ -28,6 +28,9 @@
28
28
  "src/chat-config-native-prod.json",
29
29
  "src/firebase-messaging-sw.js",
30
30
  "src/manifest.json",
31
+ "src/chat-config-template.json",
32
+ "src/chat-config.json",
33
+ "src/chat-config-dev.json",
31
34
  {
32
35
  "glob": "**/*",
33
36
  "input": "src/assets",
@@ -37,10 +40,7 @@
37
40
  "glob": "**/*.svg",
38
41
  "input": "node_modules/ionicons/dist/ionicons/svg",
39
42
  "output": "./svg"
40
- },
41
- "src/chat-config-template.json",
42
- "src/chat-config.json",
43
- "src/chat-config-dev.json"
43
+ }
44
44
  ],
45
45
  "styles": [
46
46
  "node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
@@ -48,15 +48,27 @@
48
48
  "node_modules/@ng-select/ng-select/themes/default.theme.css",
49
49
  "node_modules/@ctrl/ngx-emoji-mart/picker.css",
50
50
  {
51
- "input": "src/theme/variables.scss"
51
+ "input": "src/theme/variables.scss",
52
+ "inject": true
52
53
  },
53
54
  {
54
- "input": "src/global.scss"
55
+ "input": "src/global.scss",
56
+ "inject": true
55
57
  }
56
58
  ],
57
59
  "scripts": [
58
60
  "src/assets/js/mqtt/4.1.0/mqtt.min.js"
59
- ]
61
+ ],
62
+ "allowedCommonJsDependencies": [
63
+ "moment"
64
+ ],
65
+ "aot": false,
66
+ "vendorChunk": true,
67
+ "extractLicenses": false,
68
+ "buildOptimizer": false,
69
+ "sourceMap": true,
70
+ "optimization": false,
71
+ "namedChunks": true
60
72
  },
61
73
  "configurations": {
62
74
  "production": {
@@ -69,8 +81,7 @@
69
81
  "optimization": true,
70
82
  "outputHashing": "all",
71
83
  "sourceMap": false,
72
- "extractCss": true,
73
- "namedChunks": false,
84
+ "namedChunks": true,
74
85
  "aot": true,
75
86
  "extractLicenses": true,
76
87
  "vendorChunk": false,
@@ -80,6 +91,10 @@
80
91
  "type": "initial",
81
92
  "maximumWarning": "2mb",
82
93
  "maximumError": "5mb"
94
+ },
95
+ {
96
+ "type": "anyComponentStyle",
97
+ "maximumWarning": "6kb"
83
98
  }
84
99
  ]
85
100
  },
@@ -93,8 +108,7 @@
93
108
  "optimization": true,
94
109
  "outputHashing": "all",
95
110
  "sourceMap": false,
96
- "extractCss": true,
97
- "namedChunks": false,
111
+ "namedChunks": true,
98
112
  "aot": true,
99
113
  "extractLicenses": true,
100
114
  "vendorChunk": false,
package/config.xml CHANGED
@@ -1,8 +1,8 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <widget android-packageName="chat.ionic" android-versionCode="1" id="chat.tiledesk" ios-CFBundleIdentifier="it.chat.ionic" ios-CFBundleVersion="1.0.0" version="0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
- <name>Chat21</name>
4
- <description>Chat21 is the core of the open source live chat platform</description>
5
- <author email="" href="https://tiledesk.com/">Tiledesk Team</author>
2
+ <widget android-packageName="chat.ionic" android-versionCode="9" id="chat.tiledesk" ios-CFBundleIdentifier="it.chat.ionic" ios-CFBundleVersion="1.0.9" version="0.0.9" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
+ <name>Tiledesk</name>
4
+ <description>Tiledesk is the core of the open source live chat platform</description>
5
+ <author email="info@tiledesk.com" href="https://tiledesk.com/">Tiledesk Team</author>
6
6
  <content src="index.html" />
7
7
  <access origin="*" />
8
8
  <allow-navigation href="*" />
@@ -21,6 +21,7 @@
21
21
  <preference name="SplashShowOnlyFirstTime" value="false" />
22
22
  <preference name="SplashScreen" value="screen" />
23
23
  <preference name="SplashScreenDelay" value="3000" />
24
+ <preference name="StatusBarOverlaysWebView" value="false" />
24
25
  <platform name="android">
25
26
  <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
26
27
  <application android:networkSecurityConfig="@xml/network_security_config" />
@@ -103,7 +104,6 @@
103
104
  <splash height="828" src="resources/ios/splash/Default-Landscape-1792h~iphone.png" width="1792" />
104
105
  </platform>
105
106
  <engine name="browser" spec="^5.0.4" />
106
- <engine name="ios" spec="6.1.1" />
107
107
  <plugin name="cordova-android-support-gradle-release" spec="^3.0.1">
108
108
  <variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
109
109
  </plugin>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.0.102",
4
+ "version": "3.0.103-rc.2",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -18,36 +18,37 @@
18
18
  },
19
19
  "private": false,
20
20
  "dependencies": {
21
- "@angular/animations": "^8.2.14",
22
- "@angular/cdk": "^8.2.3",
23
- "@angular/common": "~8.2.14",
24
- "@angular/core": "~8.2.14",
25
- "@angular/forms": "~8.2.14",
26
- "@angular/google-maps": "~9.0.0",
27
- "@angular/material": "^8.2.3",
28
- "@angular/platform-browser": "~8.2.14",
29
- "@angular/platform-browser-dynamic": "~8.2.14",
30
- "@angular/router": "~8.2.14",
21
+ "@angular/animations": "^12.2.6",
22
+ "@angular/cdk": "^12.2.13",
23
+ "@angular/common": "~12.2.6",
24
+ "@angular/core": "~12.2.6",
25
+ "@angular/forms": "~12.2.6",
26
+ "@angular/google-maps": "^12.2.13",
27
+ "@angular/material": "~12.2.6",
28
+ "@angular/platform-browser": "~12.2.6",
29
+ "@angular/platform-browser-dynamic": "~12.2.6",
30
+ "@angular/router": "~12.2.6",
31
31
  "@ctrl/ngx-emoji-mart": "^1.0.6",
32
- "@ionic-native/chooser": "^5.29.0",
33
- "@ionic-native/core": "^5.0.7",
32
+ "@ionic-native/chooser": "^5.36.0",
33
+ "@ionic-native/core": "^5.28.0",
34
+ "@ionic-native/deeplinks": "^5.36.0",
34
35
  "@ionic-native/globalization": "^5.28.0",
35
- "@ionic-native/keyboard": "^5.28.0",
36
+ "@ionic-native/in-app-browser": "^5.36.0",
37
+ "@ionic-native/keyboard": "^5.36.0",
36
38
  "@ionic-native/network": "^5.36.0",
37
- "@ionic-native/splash-screen": "^5.29.0",
38
- "@ionic-native/status-bar": "^5.0.0",
39
- "@ionic/angular": "^5.0.7",
40
- "@ionic/storage": "^2.2.0",
41
- "@mdi/font": "^5.1.45",
42
- "@ng-select/ng-select": "^3.7.3",
39
+ "@ionic-native/splash-screen": "^5.28.0",
40
+ "@ionic-native/status-bar": "^5.28.0",
41
+ "@ionic/angular": "^5.8.0",
42
+ "@ionic/storage": "^3.0.6",
43
+ "@mdi/font": "^7.2.96",
44
+ "@ng-select/ng-select": "^7.4.0",
43
45
  "@ngx-translate/core": "^12.1.2",
44
46
  "@ngx-translate/http-loader": "^4.0.0",
45
- "@types/marked": "^1.1.0",
47
+ "@types/marked": "^4.0.8",
46
48
  "autolinker": "^3.14.2",
47
- "cordova-android": "9.1.0",
49
+ "cordova": "^11.1.0",
48
50
  "cordova-android-support-gradle-release": "^3.0.1",
49
51
  "cordova-browser": "^5.0.4",
50
- "cordova-ios": "6.1.1",
51
52
  "cordova-plugin-chooser": "^1.3.2",
52
53
  "cordova-plugin-ionic-keyboard": "^2.2.0",
53
54
  "cordova-plugin-ionic-webview": "^4.2.1",
@@ -59,7 +60,7 @@
59
60
  "core-js": "^2.5.4",
60
61
  "file-saver": "^2.0.5",
61
62
  "firebase": "^8.6.7",
62
- "marked": "^2.1.3",
63
+ "marked": "^4.3.0",
63
64
  "material-icons": "^1.11.2",
64
65
  "moment": "^2.29.4",
65
66
  "moment-timezone": "^0.5.28",
@@ -68,21 +69,28 @@
68
69
  "roboto-fontface": "^0.10.0",
69
70
  "rxjs": "~6.5.1",
70
71
  "sharp": "^0.32.0",
71
- "tslib": "^1.9.0",
72
- "zone.js": "~0.9.1"
72
+ "tslib": "^2.0.0",
73
+ "uuid": "^9.0.0",
74
+ "zone.js": "~0.11.4"
73
75
  },
74
76
  "devDependencies": {
75
- "@angular-devkit/build-angular": "~0.803.20",
76
- "@angular/cli": "~8.3.23",
77
- "@angular/compiler": "~8.2.14",
78
- "@angular/compiler-cli": "~8.2.14",
79
- "@angular/language-service": "~8.2.14",
80
- "@ionic/angular-toolkit": "^2.1.1",
77
+ "@angular-devkit/architect": "^0.1202.6",
78
+ "@angular-devkit/build-angular": "^12.2.6",
79
+ "@angular/cli": "~12.2.6",
80
+ "@angular/compiler": "~12.2.6",
81
+ "@angular/compiler-cli": "~12.2.6",
82
+ "@angular/language-service": "~12.2.6",
83
+ "@ionic/angular-toolkit": "^4.0.0",
81
84
  "@types/jasmine": "~3.3.8",
82
85
  "@types/jasminewd2": "~2.0.3",
83
86
  "@types/node": "^12.20.55",
84
- "codelyzer": "^5.0.0",
87
+ "codelyzer": "^6.0.0",
88
+ "cordova-android": "^10.1.2",
89
+ "cordova-ios": "^6.3.0",
85
90
  "cordova-plugin-add-swift-support": "^2.0.2",
91
+ "cordova-plugin-fcm-with-dependecy-updated": "^7.8.0",
92
+ "cordova-plugin-inappbrowser": "^5.0.0",
93
+ "ionic-plugin-deeplinks": "^1.0.24",
86
94
  "jasmine-core": "~4.4.0",
87
95
  "jasmine-spec-reporter": "~4.2.1",
88
96
  "karma": "~6.4.1",
@@ -90,10 +98,10 @@
90
98
  "karma-coverage-istanbul-reporter": "~2.0.1",
91
99
  "karma-jasmine": "~5.1.0",
92
100
  "karma-jasmine-html-reporter": "^2.0.0",
93
- "protractor": "~5.4.0",
101
+ "protractor": "~7.0.0",
94
102
  "ts-node": "~7.0.0",
95
- "tslint": "~5.15.0",
96
- "typescript": "^3.4.5"
103
+ "tslint": "~6.1.3",
104
+ "typescript": "~4.3.5"
97
105
  },
98
106
  "description": "An Ionic project",
99
107
  "cordova": {
@@ -101,20 +109,45 @@
101
109
  "cordova-plugin-whitelist": {},
102
110
  "cordova-plugin-statusbar": {},
103
111
  "cordova-plugin-splashscreen": {},
104
- "cordova-plugin-ionic-webview": {
105
- "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
106
- },
112
+ "cordova-plugin-ionic-webview": {},
107
113
  "cordova-plugin-ionic-keyboard": {},
108
114
  "cordova-plugin-chooser": {},
115
+ "cordova-plugin-network-information": {},
116
+ "cordova-plugin-inappbrowser": {},
117
+ "cordova-plugin-fcm-with-dependecy-updated": {
118
+ "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher",
119
+ "ANDROID_FCM_VERSION": "21.0.0",
120
+ "ANDROID_FIREBASE_BOM_VERSION": "26.0.0",
121
+ "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4",
122
+ "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0",
123
+ "IOS_FIREBASE_MESSAGING_VERSION": "~> 7.4.0"
124
+ },
125
+ "ionic-plugin-deeplinks": {
126
+ "URL_SCHEME": "chat",
127
+ "DEEPLINK_SCHEME": "https",
128
+ "DEEPLINK_HOST": "panel.tiledesk.com",
129
+ "ANDROID_PATH_PREFIX": "/",
130
+ "ANDROID_2_PATH_PREFIX": "/",
131
+ "ANDROID_3_PATH_PREFIX": "/",
132
+ "ANDROID_4_PATH_PREFIX": "/",
133
+ "ANDROID_5_PATH_PREFIX": "/",
134
+ "DEEPLINK_2_SCHEME": " ",
135
+ "DEEPLINK_2_HOST": " ",
136
+ "DEEPLINK_3_SCHEME": " ",
137
+ "DEEPLINK_3_HOST": " ",
138
+ "DEEPLINK_4_SCHEME": " ",
139
+ "DEEPLINK_4_HOST": " ",
140
+ "DEEPLINK_5_SCHEME": " ",
141
+ "DEEPLINK_5_HOST": " "
142
+ },
109
143
  "cordova-android-support-gradle-release": {
110
144
  "ANDROID_SUPPORT_VERSION": "27.+"
111
- },
112
- "cordova-plugin-network-information": {}
145
+ }
113
146
  },
114
147
  "platforms": [
115
148
  "browser",
116
- "ios",
117
- "android"
149
+ "android",
150
+ "ios"
118
151
  ]
119
152
  }
120
153
  }
@@ -8,26 +8,32 @@ import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
8
8
  const routes: Routes = [
9
9
 
10
10
  { path: '', redirectTo: 'conversation-detail', pathMatch: 'full' },
11
+ {
12
+ path: 'login',
13
+ loadChildren: () => import('./pages/authentication/login/login.module').then( m => m.LoginPageModule)
14
+ },
11
15
  {
12
16
  path: 'conversations-list',
13
17
  // loadChildren: './pages/conversations-list/conversations-list.module#ConversationListPageModule'
14
18
  loadChildren: () => import('./pages/conversations-list/conversations-list.module').then( m => m.ConversationListPageModule)
15
19
  },
16
- { path: 'conversation-detail/:IDConv/:Convtype',
20
+ {
21
+ path: 'conversation-detail',
17
22
  // loadChildren: './pages/conversation-detail/conversation-detail.module#ConversationDetailPageModule'
18
23
  loadChildren: () => import('./pages/conversation-detail/conversation-detail.module').then( m => m.ConversationDetailPageModule)
19
24
  },
20
- { path: 'conversation-detail/:IDConv/:FullNameConv/:Convtype',
25
+ {
26
+ path: 'conversation-detail/:IDConv',
21
27
  // loadChildren: './pages/conversation-detail/conversation-detail.module#ConversationDetailPageModule'
22
28
  loadChildren: () => import('./pages/conversation-detail/conversation-detail.module').then( m => m.ConversationDetailPageModule)
23
29
  },
24
- {
25
- path: 'conversation-detail',
30
+ {
31
+ path: 'conversation-detail/:IDConv/:Convtype',
26
32
  // loadChildren: './pages/conversation-detail/conversation-detail.module#ConversationDetailPageModule'
27
33
  loadChildren: () => import('./pages/conversation-detail/conversation-detail.module').then( m => m.ConversationDetailPageModule)
28
34
  },
29
- {
30
- path: 'conversation-detail/:IDConv',
35
+ {
36
+ path: 'conversation-detail/:IDConv/:FullNameConv/:Convtype',
31
37
  // loadChildren: './pages/conversation-detail/conversation-detail.module#ConversationDetailPageModule'
32
38
  loadChildren: () => import('./pages/conversation-detail/conversation-detail.module').then( m => m.ConversationDetailPageModule)
33
39
  },
@@ -35,10 +41,7 @@ const routes: Routes = [
35
41
  path: 'contacts-directory',
36
42
  loadChildren: () => import('./pages/contacts-directory/contacts-directory.module').then( m => m.ContactsDirectoryPageModule)
37
43
  },
38
- {
39
- path: 'login',
40
- loadChildren: () => import('./pages/authentication/login/login.module').then( m => m.LoginPageModule)
41
- },
44
+
42
45
  {
43
46
  path: 'profile-info',
44
47
  loadChildren: () => import('./pages/profile-info/profile-info.module').then( m => m.ProfileInfoPageModule)