@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.
- package/dist/browser/core/treeStructure.js +17 -0
- package/dist/browser/processors/gridset/cellHelpers.js +13 -3
- package/dist/browser/processors/gridset/commands.js +771 -0
- package/dist/browser/processors/gridset/pluginTypes.js +19 -1
- package/dist/browser/processors/gridsetProcessor.js +874 -17
- package/dist/browser/utilities/analytics/morphology/engine.js +2 -12
- package/dist/core/treeStructure.d.ts +15 -0
- package/dist/core/treeStructure.js +17 -0
- package/dist/processors/gridset/cellHelpers.js +13 -3
- package/dist/processors/gridset/commands.d.ts +2 -0
- package/dist/processors/gridset/commands.js +771 -0
- package/dist/processors/gridset/pluginTypes.d.ts +7 -0
- package/dist/processors/gridset/pluginTypes.js +19 -1
- package/dist/processors/gridsetProcessor.js +874 -17
- package/dist/utilities/analytics/morphology/engine.js +2 -12
- package/package.json +1 -1
|
@@ -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('
|
|
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
|
/**
|