@willwade/aac-processors 0.2.18 → 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.
@@ -63,6 +63,8 @@ export declare const LIVECELL_TYPES: {
63
63
  readonly BATTERY: "Battery";
64
64
  readonly WIFI_STRENGTH: "WifiStrength";
65
65
  readonly BLUETOOTH_STATUS: "BluetoothStatus";
66
+ readonly WEB_BROWSER_PAGE_TITLE: "WebBrowser.PageTitle";
67
+ readonly CAMERA: "Camera";
66
68
  };
67
69
  /**
68
70
  * Known auto content types in Grid 3
@@ -76,10 +78,15 @@ export declare const AUTOCONTENT_TYPES: {
76
78
  readonly SMS_CONTACTS: "SmsContacts";
77
79
  readonly WEB_FAVORITES: "WebFavorites";
78
80
  readonly WEB_HISTORY: "WebHistory";
81
+ readonly WEB_BROWSER_LINKS: "WebBrowser.Links";
82
+ readonly WEB_BROWSER_FAVOURITES: "WebBrowser.Favourites";
79
83
  readonly PREDICTION: "Prediction";
80
84
  readonly GRAMMAR: "Grammar";
81
85
  readonly CONTEXTUAL: "Contextual";
82
86
  readonly WORDLIST: "WordList";
87
+ readonly PHOTOS: "Photos";
88
+ readonly MUSIC_VIDEO: "MusicVideo";
89
+ readonly WEB_ADDRESS_ADDRESS_BAR: "WebAddress.AddressBar";
83
90
  };
84
91
  /**
85
92
  * Human-readable names for cell types
@@ -62,6 +62,8 @@ exports.LIVECELL_TYPES = {
62
62
  BATTERY: 'Battery',
63
63
  WIFI_STRENGTH: 'WifiStrength',
64
64
  BLUETOOTH_STATUS: 'BluetoothStatus',
65
+ WEB_BROWSER_PAGE_TITLE: 'WebBrowser.PageTitle',
66
+ CAMERA: 'Camera',
65
67
  };
66
68
  /**
67
69
  * Known auto content types in Grid 3
@@ -75,10 +77,15 @@ exports.AUTOCONTENT_TYPES = {
75
77
  SMS_CONTACTS: 'SmsContacts',
76
78
  WEB_FAVORITES: 'WebFavorites',
77
79
  WEB_HISTORY: 'WebHistory',
80
+ WEB_BROWSER_LINKS: 'WebBrowser.Links',
81
+ WEB_BROWSER_FAVOURITES: 'WebBrowser.Favourites',
78
82
  PREDICTION: 'Prediction',
79
83
  GRAMMAR: 'Grammar',
80
84
  CONTEXTUAL: 'Contextual',
81
85
  WORDLIST: 'WordList',
86
+ PHOTOS: 'Photos',
87
+ MUSIC_VIDEO: 'MusicVideo',
88
+ WEB_ADDRESS_ADDRESS_BAR: 'WebAddress.AddressBar',
82
89
  };
83
90
  /**
84
91
  * Human-readable names for cell types
@@ -231,6 +238,10 @@ function inferLiveCellPlugin(liveCellType) {
231
238
  return 'Grid3.Wifi';
232
239
  if (normalized.includes('bluetooth'))
233
240
  return 'Grid3.Bluetooth';
241
+ if (normalized.includes('pagetitle') || normalized.includes('page title'))
242
+ return 'Grid3.WebBrowser';
243
+ if (normalized.includes('camera'))
244
+ return 'Grid3.Photos';
234
245
  return `Grid3.${liveCellType}`;
235
246
  }
236
247
  /**
@@ -250,7 +261,10 @@ function inferAutoContentPlugin(autoContentType) {
250
261
  return 'Grid3.Sms';
251
262
  if (normalized.includes('web') ||
252
263
  normalized.includes('favorite') ||
253
- normalized.includes('history')) {
264
+ normalized.includes('favourite') ||
265
+ normalized.includes('history') ||
266
+ normalized.includes('links') ||
267
+ normalized.includes('address')) {
254
268
  return 'Grid3.WebBrowser';
255
269
  }
256
270
  if (normalized.includes('prediction'))
@@ -259,6 +273,10 @@ function inferAutoContentPlugin(autoContentType) {
259
273
  return 'Grid3.Grammar';
260
274
  if (normalized.includes('context'))
261
275
  return 'Grid3.AutoContent';
276
+ if (normalized.includes('photo') || normalized.includes('image'))
277
+ return 'Grid3.Photos';
278
+ if (normalized.includes('music') || normalized.includes('video'))
279
+ return 'Grid3.MusicVideo';
262
280
  return undefined;
263
281
  }
264
282
  /**