@willwade/aac-processors 0.0.28 → 0.0.30

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.
@@ -1291,6 +1291,8 @@ class GridsetProcessor extends baseProcessor_1.BaseProcessor {
1291
1291
  pluginMetadata.autoContentType === 'Prediction'
1292
1292
  ? predictionCellCounter
1293
1293
  : undefined,
1294
+ // Store page name for Grid3 image lookup
1295
+ gridPageName: gridName,
1294
1296
  },
1295
1297
  });
1296
1298
  // Add button to page
@@ -165,6 +165,10 @@ class ObfProcessor extends baseProcessor_1.BaseProcessor {
165
165
  if (imageBuffer) {
166
166
  buttonParameters.imageData = imageBuffer;
167
167
  }
168
+ // Store image_id for web viewers to fetch images via API
169
+ if (btn.image_id) {
170
+ buttonParameters.image_id = btn.image_id;
171
+ }
168
172
  return new treeStructure_1.AACButton({
169
173
  // Make button ID unique by combining page ID and button ID
170
174
  id: `${pageId}::${btn?.id || ''}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willwade/aac-processors",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "A comprehensive TypeScript library for processing AAC (Augmentative and Alternative Communication) file formats with translation support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",