qumra-engine 2.0.126 → 2.0.127

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.
@@ -434,6 +434,19 @@ exports.default = new (class SeoExtension {
434
434
  } else {
435
435
  console.warn(\`⚠️ لم يتم العثور على عنصر يحتوي على widget-id="\${widgetId}"\`);
436
436
  }
437
+ } else if (data?.type === "fullRender"){
438
+
439
+ const { html } = data.data || {};
440
+
441
+ if !html) {
442
+ console.warn("⚠️ لا يوجد widgetId أو html في الرسالة");
443
+ return;
444
+ }
445
+
446
+ document.open(); // فتح الصفحة الحالية لإعادة الكتابة
447
+ document.write(html); // كتابة HTML جديد
448
+ document.close(); // إغلاق الـ stream وتشغيل الـ HTML
449
+
437
450
  } else {
438
451
  console.log("📩 رسالة وصلت:", data);
439
452
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.126",
3
+ "version": "2.0.127",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {