zz-shopify-components 0.22.1-beta.0 → 0.22.1-beta.1

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.
@@ -14,7 +14,7 @@
14
14
  const trackModalEvent = (eventType, modalId, additionalData = {}) => {
15
15
  try {
16
16
  const eventData = {
17
- event: 'modal_interaction',
17
+ event: eventType,
18
18
  modal_action: eventType,
19
19
  modal_id: modalId || 'unknown',
20
20
  timestamp: new Date().toISOString(),
@@ -229,9 +229,9 @@
229
229
  attributeChangedCallback(name, oldValue, newValue) {
230
230
  if (name === 'open' && oldValue !== newValue) {
231
231
  if (this.hasAttribute('open')) {
232
- this.show();
232
+ this._openInternal(false);
233
233
  } else {
234
- this.hide();
234
+ this._closeInternal(false);
235
235
  }
236
236
  }
237
237
  }
@@ -461,7 +461,7 @@
461
461
 
462
462
  // Analytics helper methods
463
463
  _getTriggerSource() {
464
- return this._lastTriggerSource || 'programmatic';
464
+ return this._lastTriggerSource || 'unknown';
465
465
  }
466
466
 
467
467
  _getCloseMethod() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zz-shopify-components",
3
- "version": "0.22.1-beta.0",
3
+ "version": "0.22.1-beta.1",
4
4
  "description": "Reusable Shopify components for theme projects",
5
5
  "keywords": [
6
6
  "shopify",