@willwade/aac-processors 0.1.11 → 0.1.13

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/dist/browser/processors/gridset/resolver.js +10 -0
  2. package/dist/browser/processors/gridsetProcessor.js +155 -9
  3. package/dist/processors/gridset/resolver.js +10 -0
  4. package/dist/processors/gridsetProcessor.js +155 -9
  5. package/package.json +1 -3
  6. package/examples/.coverage +0 -0
  7. package/examples/.keep +0 -1
  8. package/examples/README.md +0 -55
  9. package/examples/browser-test.html +0 -331
  10. package/examples/communikate.dot +0 -2637
  11. package/examples/demo.js +0 -143
  12. package/examples/example-images/FileMap.xml +0 -51
  13. package/examples/example-images/Grids/Start/0-1-0-text-0.png +0 -0
  14. package/examples/example-images/Grids/Start/0-2-0-text-0.jpeg +0 -0
  15. package/examples/example-images/Grids/Start/0-3-0-text-0.jpeg +0 -0
  16. package/examples/example-images/Grids/Start/0-4-0-text-0.jpeg +0 -0
  17. package/examples/example-images/Grids/Start/0-5-0-text-0.jpeg +0 -0
  18. package/examples/example-images/Grids/Start/1-1-0-text-0.jpeg +0 -0
  19. package/examples/example-images/Grids/Start/1-2-0-text-0.jpeg +0 -0
  20. package/examples/example-images/Grids/Start/1-3-0-text-0.jpeg +0 -0
  21. package/examples/example-images/Grids/Start/1-4-0-text-0.jpeg +0 -0
  22. package/examples/example-images/Grids/Start/1-5-0-text-0.jpeg +0 -0
  23. package/examples/example-images/Grids/Start/10-3-0-text-0.jpeg +0 -0
  24. package/examples/example-images/Grids/Start/10-4-0-text-0.jpeg +0 -0
  25. package/examples/example-images/Grids/Start/11-3-0-text-0.jpeg +0 -0
  26. package/examples/example-images/Grids/Start/11-4-0-text-0.jpeg +0 -0
  27. package/examples/example-images/Grids/Start/2-1-0-text-0.jpeg +0 -0
  28. package/examples/example-images/Grids/Start/2-2-0-text-0.jpeg +0 -0
  29. package/examples/example-images/Grids/Start/2-3-0-text-0.jpeg +0 -0
  30. package/examples/example-images/Grids/Start/2-4-0-text-0.jpeg +0 -0
  31. package/examples/example-images/Grids/Start/2-5-0-text-0.jpeg +0 -0
  32. package/examples/example-images/Grids/Start/3-1-0-text-0.jpeg +0 -0
  33. package/examples/example-images/Grids/Start/3-3-0-text-0.jpeg +0 -0
  34. package/examples/example-images/Grids/Start/3-4-0-text-0.jpeg +0 -0
  35. package/examples/example-images/Grids/Start/3-5-0-text-0.jpeg +0 -0
  36. package/examples/example-images/Grids/Start/4-1-0-text-0.jpeg +0 -0
  37. package/examples/example-images/Grids/Start/4-3-0-text-0.jpeg +0 -0
  38. package/examples/example-images/Grids/Start/4-4-0-text-0.jpeg +0 -0
  39. package/examples/example-images/Grids/Start/4-5-0-text-0.jpeg +0 -0
  40. package/examples/example-images/Grids/Start/5-4-0-text-0.jpeg +0 -0
  41. package/examples/example-images/Grids/Start/5-5-0-text-0.jpeg +0 -0
  42. package/examples/example-images/Grids/Start/6-3-0-text-0.jpeg +0 -0
  43. package/examples/example-images/Grids/Start/6-4-0-text-0.jpeg +0 -0
  44. package/examples/example-images/Grids/Start/7-1-0-text-0.jpeg +0 -0
  45. package/examples/example-images/Grids/Start/7-2-0-text-0.jpeg +0 -0
  46. package/examples/example-images/Grids/Start/7-3-0-text-0.jpeg +0 -0
  47. package/examples/example-images/Grids/Start/7-4-0-text-0.jpeg +0 -0
  48. package/examples/example-images/Grids/Start/8-1-0-text-0.jpeg +0 -0
  49. package/examples/example-images/Grids/Start/8-2-0-text-0.jpeg +0 -0
  50. package/examples/example-images/Grids/Start/8-3-0-text-0.jpeg +0 -0
  51. package/examples/example-images/Grids/Start/8-4-0-text-0.jpeg +0 -0
  52. package/examples/example-images/Grids/Start/9-1.png +0 -0
  53. package/examples/example-images/Grids/Start/9-2.png +0 -0
  54. package/examples/example-images/Grids/Start/9-3-0-text-0.jpeg +0 -0
  55. package/examples/example-images/Grids/Start/9-4-0-text-0.jpeg +0 -0
  56. package/examples/example-images/Grids/Start/grid.xml +0 -1325
  57. package/examples/example-images/Settings0/Styles/styles.xml +0 -39
  58. package/examples/example-images/Settings0/WebBrowser/webbrowserextensions.xml +0 -3
  59. package/examples/example-images/Settings0/settings.xml +0 -16
  60. package/examples/example-images.gridset +0 -0
  61. package/examples/example-images.zip +0 -0
  62. package/examples/example.ce +0 -0
  63. package/examples/example.dot +0 -14
  64. package/examples/example.grd +0 -1
  65. package/examples/example.gridset +0 -0
  66. package/examples/example.obf +0 -27
  67. package/examples/example.obz +0 -0
  68. package/examples/example.opml +0 -18
  69. package/examples/example.spb +0 -0
  70. package/examples/example.sps +0 -0
  71. package/examples/example2.grd +0 -1
  72. package/examples/obf/aboutme.json +0 -376
  73. package/examples/obf/array.json +0 -6
  74. package/examples/obf/hash.json +0 -4
  75. package/examples/obf/links.obz +0 -0
  76. package/examples/obf/simple.obf +0 -53
  77. package/examples/package-lock.json +0 -1326
  78. package/examples/package.json +0 -10
  79. package/examples/styled-output/converted-snap-to-touchchat.ce +0 -0
  80. package/examples/styled-output/styled-example.ce +0 -0
  81. package/examples/styled-output/styled-example.gridset +0 -0
  82. package/examples/styled-output/styled-example.obf +0 -37
  83. package/examples/styled-output/styled-example.spb +0 -0
  84. package/examples/styling-example.ts +0 -316
  85. package/examples/translate.js +0 -39
  86. package/examples/translate_demo.js +0 -254
  87. package/examples/typescript-demo.ts +0 -251
  88. package/examples/vitedemo/README.md +0 -164
  89. package/examples/vitedemo/index.html +0 -580
  90. package/examples/vitedemo/package-lock.json +0 -1751
  91. package/examples/vitedemo/package.json +0 -24
  92. package/examples/vitedemo/src/main.ts +0 -1001
  93. package/examples/vitedemo/src/vite-env.d.ts +0 -1
  94. package/examples/vitedemo/test-files/example.dot +0 -14
  95. package/examples/vitedemo/test-files/example.grd +0 -1
  96. package/examples/vitedemo/test-files/example.gridset +0 -0
  97. package/examples/vitedemo/test-files/example.obz +0 -0
  98. package/examples/vitedemo/test-files/example.opml +0 -18
  99. package/examples/vitedemo/test-files/simple.obf +0 -53
  100. package/examples/vitedemo/tsconfig.json +0 -24
  101. package/examples/vitedemo/vite.config.ts +0 -57
@@ -1,376 +0,0 @@
1
- {
2
- "id": "aboutme",
3
- "format": "open-board-0.1",
4
- "name": "CommuniKate About Me",
5
- "license": {
6
- "type": "CC-By",
7
- "copyright_notice_url": "http://creativecommons.org/licenses/by/3.0/",
8
- "author_name": "Kate McCallum",
9
- "author_url": "https://twitter.com/KateMcCallumuk"
10
- },
11
- "buttons": [
12
- {
13
- "label": "Top Page",
14
- "load_board": {
15
- "id": "page1",
16
- "path": "boards/page1.obf"
17
- },
18
- "id": 0,
19
- "border_color": "#444",
20
- "background_color": "#ffff32",
21
- "image_id": 0
22
- },
23
- {
24
- "label": "Name",
25
- "id": 1,
26
- "border_color": "#444",
27
- "background_color": "#c0c0c0",
28
- "image_id": 1
29
- },
30
- {
31
- "label": "I live in...",
32
- "id": 2,
33
- "border_color": "#444",
34
- "background_color": "#c0c0c0",
35
- "image_id": 2
36
- },
37
- {
38
- "label": "Birthday...",
39
- "id": 3,
40
- "border_color": "#444",
41
- "background_color": "#c0c0c0",
42
- "image_id": 3
43
- },
44
- {
45
- "label": "age...",
46
- "id": 4,
47
- "border_color": "#444",
48
- "background_color": "#c0c0c0",
49
- "image_id": 4
50
- },
51
- {
52
- "label": "I live with...",
53
- "id": 5,
54
- "border_color": "#444",
55
- "background_color": "#c0c0c0",
56
- "image_id": 5
57
- },
58
- {
59
- "label": "pet.. ",
60
- "id": 6,
61
- "border_color": "#444",
62
- "background_color": "#c0c0c0",
63
- "image_id": 6
64
- },
65
- {
66
- "label": "School college...",
67
- "id": 7,
68
- "border_color": "#444",
69
- "background_color": "#c0c0c0",
70
- "image_id": 7
71
- },
72
- {
73
- "label": "email..",
74
- "id": 8,
75
- "border_color": "#444",
76
- "background_color": "#c0c0c0",
77
- "image_id": 8
78
- },
79
- {
80
- "label": "work...",
81
- "id": 9,
82
- "border_color": "#444",
83
- "background_color": "#c0c0c0",
84
- "image_id": 9
85
- },
86
- {
87
- "label": "communication aid..",
88
- "id": 10,
89
- "border_color": "#444",
90
- "background_color": "#c0c0c0",
91
- "image_id": 10
92
- },
93
- {
94
- "label": "music..",
95
- "id": 11,
96
- "border_color": "#444",
97
- "background_color": "#c0c0c0",
98
- "image_id": 11
99
- },
100
- {
101
- "label": "film..",
102
- "id": 12,
103
- "border_color": "#444",
104
- "background_color": "#c0c0c0",
105
- "image_id": 12
106
- },
107
- {
108
- "label": "hobby..",
109
- "id": 13,
110
- "border_color": "#444",
111
- "background_color": "#c0c0c0",
112
- "image_id": 13
113
- },
114
- {
115
- "label": "tv...",
116
- "id": 14,
117
- "border_color": "#444",
118
- "background_color": "#c0c0c0",
119
- "image_id": 14
120
- },
121
- {
122
- "label": "disability...",
123
- "id": 15,
124
- "border_color": "#444",
125
- "background_color": "#c0c0c0",
126
- "image_id": 15
127
- },
128
- {
129
- "label": "mobile...",
130
- "id": 16,
131
- "border_color": "#444",
132
- "background_color": "#c0c0c0",
133
- "image_id": 16
134
- },
135
- {
136
- "label": "About You",
137
- "load_board": {
138
- "id": "aboutyou",
139
- "path": "boards/aboutyou.obf"
140
- },
141
- "id": 17,
142
- "border_color": "rgb(255, 255, 0)",
143
- "background_color": "rgba(120, 113, 255, 0.5)",
144
- "image_id": 17
145
- }
146
- ],
147
- "images": [
148
- {
149
- "id": 0,
150
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/communication aid 2.svg",
151
- "content_type": "image/svg",
152
- "license": {
153
- "type": "CC BY-SA",
154
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
155
- "source_url": null,
156
- "author_name": "Paxtoncrafts Charitable Trust ",
157
- "author_url": null
158
- }
159
- },
160
- {
161
- "id": 1,
162
- "url": "https://s3.amazonaws.com/opensymbols/libraries/sclera/name.png",
163
- "content_type": "image/png",
164
- "license": {
165
- "type": "CC BY-NC",
166
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc/2.0/",
167
- "source_url": null,
168
- "author_name": "Sclera",
169
- "author_url": null
170
- }
171
- },
172
- {
173
- "id": 2,
174
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/chicken live.svg",
175
- "content_type": "image/svg",
176
- "license": {
177
- "type": "CC BY-SA",
178
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
179
- "source_url": null,
180
- "author_name": "Paxtoncrafts Charitable Trust ",
181
- "author_url": null
182
- }
183
- },
184
- {
185
- "id": 3,
186
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/birthday cake.svg",
187
- "content_type": "image/svg",
188
- "license": {
189
- "type": "CC BY-SA",
190
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
191
- "source_url": null,
192
- "author_name": "Paxtoncrafts Charitable Trust ",
193
- "author_url": null
194
- }
195
- },
196
- {
197
- "id": 4,
198
- "url": "https://s3.amazonaws.com/opensymbols/libraries/sclera/Age 16+.png",
199
- "content_type": "image/png",
200
- "license": {
201
- "type": "CC BY-NC",
202
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc/2.0/",
203
- "source_url": null,
204
- "author_name": "Sclera",
205
- "author_url": null
206
- }
207
- },
208
- {
209
- "id": 5,
210
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/chicken live.svg",
211
- "content_type": "image/svg",
212
- "license": {
213
- "type": "CC BY-SA",
214
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
215
- "source_url": null,
216
- "author_name": "Paxtoncrafts Charitable Trust ",
217
- "author_url": null
218
- }
219
- },
220
- {
221
- "id": 6,
222
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/pet brush.svg",
223
- "content_type": "image/svg",
224
- "license": {
225
- "type": "CC BY-SA",
226
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
227
- "source_url": null,
228
- "author_name": "Paxtoncrafts Charitable Trust ",
229
- "author_url": null
230
- }
231
- },
232
- {
233
- "id": 7,
234
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/school.svg",
235
- "content_type": "image/svg",
236
- "license": {
237
- "type": "CC BY-SA",
238
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
239
- "source_url": null,
240
- "author_name": "Paxtoncrafts Charitable Trust ",
241
- "author_url": null
242
- }
243
- },
244
- {
245
- "id": 8,
246
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/email attachment.svg",
247
- "content_type": "image/svg",
248
- "license": {
249
- "type": "CC BY-SA",
250
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
251
- "source_url": null,
252
- "author_name": "Paxtoncrafts Charitable Trust ",
253
- "author_url": null
254
- }
255
- },
256
- {
257
- "id": 9,
258
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/work , to.svg",
259
- "content_type": "image/svg",
260
- "license": {
261
- "type": "CC BY-SA",
262
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
263
- "source_url": null,
264
- "author_name": "Paxtoncrafts Charitable Trust ",
265
- "author_url": null
266
- }
267
- },
268
- {
269
- "id": 10,
270
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/communication aid 2.svg",
271
- "content_type": "image/svg",
272
- "license": {
273
- "type": "CC BY-SA",
274
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
275
- "source_url": null,
276
- "author_name": "Paxtoncrafts Charitable Trust ",
277
- "author_url": null
278
- }
279
- },
280
- {
281
- "id": 11,
282
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/music class.svg",
283
- "content_type": "image/svg",
284
- "license": {
285
- "type": "CC BY-SA",
286
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
287
- "source_url": null,
288
- "author_name": "Paxtoncrafts Charitable Trust ",
289
- "author_url": null
290
- }
291
- },
292
- {
293
- "id": 12,
294
- "url": "https://s3.amazonaws.com/opensymbols/libraries/sclera/film roll film.png",
295
- "content_type": "image/png",
296
- "license": {
297
- "type": "CC BY-NC",
298
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc/2.0/",
299
- "source_url": null,
300
- "author_name": "Sclera",
301
- "author_url": null
302
- }
303
- },
304
- {
305
- "id": 13,
306
- "url": "https://s3.amazonaws.com/opensymbols/libraries/arasaac/hobby-horses.png",
307
- "content_type": "image/png",
308
- "license": {
309
- "type": "CC BY-NC-SA",
310
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc-sa/3.0/",
311
- "source_url": null,
312
- "author_name": "Sergio Palao",
313
- "author_url": null
314
- }
315
- },
316
- {
317
- "id": 14,
318
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/change tv channel , to.svg",
319
- "content_type": "image/svg",
320
- "license": {
321
- "type": "CC BY-SA",
322
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
323
- "source_url": null,
324
- "author_name": "Paxtoncrafts Charitable Trust ",
325
- "author_url": null
326
- }
327
- },
328
- {
329
- "id": 15,
330
- "url": "https://s3.amazonaws.com/opensymbols/libraries/arasaac/movement disability.png",
331
- "content_type": "image/png",
332
- "license": {
333
- "type": "CC BY-NC-SA",
334
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc-sa/3.0/",
335
- "source_url": null,
336
- "author_name": "Sergio Palao",
337
- "author_url": null
338
- }
339
- },
340
- {
341
- "id": 16,
342
- "url": "https://s3.amazonaws.com/opensymbols/libraries/mulberry/mobile phone silent.svg",
343
- "content_type": "image/svg",
344
- "license": {
345
- "type": "CC BY-SA",
346
- "copyright_notice_url": "http://creativecommons.org/licenses/by-sa/2.0/uk",
347
- "source_url": null,
348
- "author_name": "Paxtoncrafts Charitable Trust ",
349
- "author_url": null
350
- }
351
- },
352
- {
353
- "id": 17,
354
- "url": "https://s3.amazonaws.com/opensymbols/libraries/arasaac/to forget about something.png",
355
- "content_type": "image/png",
356
- "license": {
357
- "type": "CC BY-NC-SA",
358
- "copyright_notice_url": "http://creativecommons.org/licenses/by-nc-sa/3.0/",
359
- "source_url": null,
360
- "author_name": "Sergio Palao",
361
- "author_url": null
362
- }
363
- }
364
- ],
365
- "sounds": [],
366
- "grid": {
367
- "rows": 4,
368
- "columns": 5,
369
- "order": [
370
- [0, 1, 2, 3, 4],
371
- [5, 6, 7, 8, 9],
372
- [10, 11, 12, 13, 14],
373
- [15, 16, 17, null, null]
374
- ]
375
- }
376
- }
@@ -1,6 +0,0 @@
1
- [
2
- {
3
- "a": 1,
4
- "b": 2
5
- }
6
- ]
@@ -1,4 +0,0 @@
1
- {
2
- "a": 1,
3
- "b": 2
4
- }
Binary file
@@ -1,53 +0,0 @@
1
- {
2
- "format": "open-board-0.1",
3
- "id": "inline_images",
4
- "locale": "en",
5
- "name": "Simple Images Board",
6
- "description_html": "This is an .obf file with images included as data attributes within the file. It also includes some simple styling.",
7
- "grid": {
8
- "rows": 2,
9
- "columns": 2,
10
- "order": [
11
- [1, null],
12
- [null, 2]
13
- ]
14
- },
15
- "buttons": [
16
- {
17
- "id": 1,
18
- "label": "kids",
19
- "vocalization": "children",
20
- "ext_speaker_best": true,
21
- "image_id": "12345",
22
- "background_color": "rgb(255, 255, 255)",
23
- "border_color": "rgba(150, 150, 150, 0.5)"
24
- },
25
- {
26
- "id": 2,
27
- "label": "cat",
28
- "vocalization": "feline",
29
- "image_id": 119,
30
- "background_color": "rgba(0, 255, 0, 0.5)",
31
- "border_color": "rgb(150, 150, 150)"
32
- }
33
- ],
34
- "images": [
35
-
36
- {
37
- "id":"12345",
38
- "width":100,
39
- "height":100,
40
- "url":"https://d18vdu4p71yql0.cloudfront.net/libraries/noun-project/No-09d75d7313.svg",
41
- "data":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEwMHB4IiBoZWlnaHQ9IjEwMHB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAwIDEwMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBzdHlsZT0iZmlsbDojMDEwMTAxOyIgZD0iTTUwLDBDMjIuMzg4LDAsMCwyMi4zODgsMCw1MHMyMi4zODgsNTAsNTAsNTBzNTAtMjIuMzg4LDUwLTUwUzc3LjYxMiwwLDUwLDB6IE01MCwxMi41ICBjOC4wOTQsMCwxNS41MzksMi42MzcsMjEuNjY4LDcuMDA3TDE5LjQ5NCw3MS42NTVDMTUuMTI1LDY1LjUyNywxMi41LDU4LjA4MSwxMi41LDUwQzEyLjUsMjkuMzIxLDI5LjMyMSwxMi41LDUwLDEyLjV6IE01MCw4Ny41ICBjLTguMDk0LDAtMTUuNTM5LTIuNjM3LTIxLjY2OC03LjAwN2w1Mi4xNzQtNTIuMTQ4Qzg0Ljg3NSwzNC40NzMsODcuNSw0MS45MTksODcuNSw1MEM4Ny41LDcwLjY3OSw3MC42NzksODcuNSw1MCw4Ny41eiIvPgo8L3N2Zz4K",
42
- "content_type":"image/svg+xml"
43
- },
44
- {
45
- "id":119,
46
- "width":100,
47
- "height":100,
48
- "url":"https://d18vdu4p71yql0.cloudfront.net/libraries/noun-project/No-09d75d7313.svg",
49
- "content_type":"image/svg+xml"
50
- }
51
- ],
52
- "sounds": []
53
- }