qumra-engine 2.0.95 → 2.0.97

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.
@@ -57,7 +57,7 @@ exports.default = new (class WidgetExtension {
57
57
  }
58
58
  if (isIframe) {
59
59
  renderedWidgets.push(`
60
- <section content-type="widget" widget-id="${widget._id}" id="qumra-widget-id-${widget._id}">
60
+ <section content-type="widget" widget-id="${widget._id}" id="qumra-widget-id-${widget._id}" template-key="main">
61
61
  ${html}
62
62
  </section>
63
63
  `);
@@ -279,7 +279,13 @@ exports.default = new (class SeoExtension {
279
279
 
280
280
  element.onclick = () => {
281
281
  window.parent.postMessage(
282
- { type: "widgetAction", action: "edit", widgetId: element.getAttribute("widget-id"), templateKey: element.getAttribute("template-key") },
282
+ {
283
+ type: "widgetAction",
284
+ action: "edit",
285
+ widgetId: element.getAttribute("widget-id"),
286
+ templateKey: element.getAttribute("template-key")
287
+ templateId: element.getAttribute("template-id")
288
+ },
283
289
  "*"
284
290
  );
285
291
  };
@@ -314,7 +320,13 @@ exports.default = new (class SeoExtension {
314
320
  const btnActions = {
315
321
  'btn-edit': el => {
316
322
  window.parent.postMessage(
317
- { type: "widgetAction", action: "edit", widgetId: el.getAttribute("widget-id"), templateKey: el.getAttribute("template-key") },
323
+ {
324
+ type: "widgetAction",
325
+ action: "edit",
326
+ widgetId: el.getAttribute("widget-id"),
327
+ templateKey: el.getAttribute("template-key"),
328
+ templateId: el.getAttribute("template-id"),
329
+ },
318
330
  "*"
319
331
  );
320
332
  },
@@ -322,7 +334,13 @@ exports.default = new (class SeoExtension {
322
334
 
323
335
  'btn-delete': el => {
324
336
  window.parent.postMessage(
325
- { type: "widgetAction", action: "delete", widgetId: el.getAttribute("widget-id"), templateKey: el.getAttribute("template-key") },
337
+ {
338
+ type: "widgetAction",
339
+ action: "delete",
340
+ widgetId: el.getAttribute("widget-id"),
341
+ templateKey: el.getAttribute("template-key"),
342
+ templateId: el.getAttribute("template-id"),
343
+ },
326
344
  "*"
327
345
  );
328
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.95",
3
+ "version": "2.0.97",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {