@sirendesign/markup 1.0.15 → 1.0.16

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.
@@ -85596,18 +85596,20 @@ function initMarkupWidget(config, containerId = 'markup-widget-root') {
85596
85596
  root.unmount();
85597
85597
  };
85598
85598
  }
85599
+ // Create API object
85600
+ const MarkupWidgetAPI = {
85601
+ init: initMarkupWidget,
85602
+ destroy: () => {
85603
+ const container = document.getElementById('markup-widget-root');
85604
+ if (container) {
85605
+ container.remove();
85606
+ }
85607
+ },
85608
+ };
85599
85609
  // Expose global API for script tag usage
85600
85610
  if (typeof window !== 'undefined') {
85601
- window.MarkupWidget = {
85602
- init: initMarkupWidget,
85603
- destroy: () => {
85604
- const container = document.getElementById('markup-widget-root');
85605
- if (container) {
85606
- container.remove();
85607
- }
85608
- },
85609
- };
85611
+ window.MarkupWidget = MarkupWidgetAPI;
85610
85612
  }
85611
85613
 
85612
- export { initMarkupWidget as default, initMarkupWidget };
85614
+ export { MarkupWidgetAPI as default, initMarkupWidget };
85613
85615
  //# sourceMappingURL=markup-widget.esm.js.map