@examind/block-sdk 0.3.6 → 0.4.0

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/index.js CHANGED
@@ -215,7 +215,7 @@ var ExcelQuestionNodeHandler = class extends NodeHandler {
215
215
  }))
216
216
  }))
217
217
  };
218
- return `<x-excel id="${node.id}" data-x-prompt data-x-points="${node.points}"><x-data>${JSON.stringify(data)}</x-data></x-excel>`;
218
+ return `<x-excel id="${node.id}" data-x-prompt data-x-points="${node.points}" data-x-config-id="${node.configId}"><x-data>${JSON.stringify(data)}</x-data></x-excel>`;
219
219
  }
220
220
  };
221
221
 
@@ -1424,6 +1424,7 @@ var ExcelQuestionNodeHandler2 = class extends NodeHandler2 {
1424
1424
  const jsonNode = {
1425
1425
  id: node.getAttribute("id") || "",
1426
1426
  points: Number(node.getAttribute("data-x-points") || 1),
1427
+ configId: node.getAttribute("data-x-config-id") || "",
1427
1428
  data,
1428
1429
  active: data.parts.length > 0 ? data.parts[0].id : "",
1429
1430
  type: "excel-question",
package/dist/index.mjs CHANGED
@@ -188,7 +188,7 @@ var ExcelQuestionNodeHandler = class extends NodeHandler {
188
188
  }))
189
189
  }))
190
190
  };
191
- return `<x-excel id="${node.id}" data-x-prompt data-x-points="${node.points}"><x-data>${JSON.stringify(data)}</x-data></x-excel>`;
191
+ return `<x-excel id="${node.id}" data-x-prompt data-x-points="${node.points}" data-x-config-id="${node.configId}"><x-data>${JSON.stringify(data)}</x-data></x-excel>`;
192
192
  }
193
193
  };
194
194
 
@@ -1397,6 +1397,7 @@ var ExcelQuestionNodeHandler2 = class extends NodeHandler2 {
1397
1397
  const jsonNode = {
1398
1398
  id: node.getAttribute("id") || "",
1399
1399
  points: Number(node.getAttribute("data-x-points") || 1),
1400
+ configId: node.getAttribute("data-x-config-id") || "",
1400
1401
  data,
1401
1402
  active: data.parts.length > 0 ? data.parts[0].id : "",
1402
1403
  type: "excel-question",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@examind/block-sdk",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "@comment version": [
5
5
  "Don't specify package version here. It will be injected by publish workflow."
6
6
  ],
@@ -21,7 +21,7 @@
21
21
  "peerDependencies": {
22
22
  "nanoid": ">=3.0.0",
23
23
  "node-html-parser": ">=6.0.0",
24
- "@examind/block-types": "^0.3.6"
24
+ "@examind/block-types": "^0.4.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@eslint/js": "^9.17.0",
@@ -36,7 +36,7 @@
36
36
  "tsup": "^8.3.5",
37
37
  "typescript": "^5.7.2",
38
38
  "typescript-eslint": "^8.18.2",
39
- "@examind/block-types": "0.3.6"
39
+ "@examind/block-types": "0.4.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "lodash-es": "4.17.21"