@willwade/aac-processors 0.2.19 → 0.2.20

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.
@@ -53,6 +53,8 @@ export const LIVECELL_TYPES = {
53
53
  BATTERY: 'Battery',
54
54
  WIFI_STRENGTH: 'WifiStrength',
55
55
  BLUETOOTH_STATUS: 'BluetoothStatus',
56
+ WEB_BROWSER_PAGE_TITLE: 'WebBrowser.PageTitle',
57
+ CAMERA: 'Camera',
56
58
  };
57
59
  /**
58
60
  * Known auto content types in Grid 3
@@ -66,10 +68,15 @@ export const AUTOCONTENT_TYPES = {
66
68
  SMS_CONTACTS: 'SmsContacts',
67
69
  WEB_FAVORITES: 'WebFavorites',
68
70
  WEB_HISTORY: 'WebHistory',
71
+ WEB_BROWSER_LINKS: 'WebBrowser.Links',
72
+ WEB_BROWSER_FAVOURITES: 'WebBrowser.Favourites',
69
73
  PREDICTION: 'Prediction',
70
74
  GRAMMAR: 'Grammar',
71
75
  CONTEXTUAL: 'Contextual',
72
76
  WORDLIST: 'WordList',
77
+ PHOTOS: 'Photos',
78
+ MUSIC_VIDEO: 'MusicVideo',
79
+ WEB_ADDRESS_ADDRESS_BAR: 'WebAddress.AddressBar',
73
80
  };
74
81
  /**
75
82
  * Human-readable names for cell types
@@ -222,6 +229,10 @@ function inferLiveCellPlugin(liveCellType) {
222
229
  return 'Grid3.Wifi';
223
230
  if (normalized.includes('bluetooth'))
224
231
  return 'Grid3.Bluetooth';
232
+ if (normalized.includes('pagetitle') || normalized.includes('page title'))
233
+ return 'Grid3.WebBrowser';
234
+ if (normalized.includes('camera'))
235
+ return 'Grid3.Photos';
225
236
  return `Grid3.${liveCellType}`;
226
237
  }
227
238
  /**
@@ -241,7 +252,10 @@ function inferAutoContentPlugin(autoContentType) {
241
252
  return 'Grid3.Sms';
242
253
  if (normalized.includes('web') ||
243
254
  normalized.includes('favorite') ||
244
- normalized.includes('history')) {
255
+ normalized.includes('favourite') ||
256
+ normalized.includes('history') ||
257
+ normalized.includes('links') ||
258
+ normalized.includes('address')) {
245
259
  return 'Grid3.WebBrowser';
246
260
  }
247
261
  if (normalized.includes('prediction'))
@@ -250,6 +264,10 @@ function inferAutoContentPlugin(autoContentType) {
250
264
  return 'Grid3.Grammar';
251
265
  if (normalized.includes('context'))
252
266
  return 'Grid3.AutoContent';
267
+ if (normalized.includes('photo') || normalized.includes('image'))
268
+ return 'Grid3.Photos';
269
+ if (normalized.includes('music') || normalized.includes('video'))
270
+ return 'Grid3.MusicVideo';
253
271
  return undefined;
254
272
  }
255
273
  /**