opal-vite 0.2.8 → 0.2.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15a7db8a58bb79c8f01f9a34d0b8476cdf5d432217c39f616b322af0f2406eb1
4
- data.tar.gz: '0451690e098de4374161cf8ed70019188c66c993f1adac8cf0b8a6b0b11c2789'
3
+ metadata.gz: eb31e7b3478b5f2e4d0d1a82c36ccfe86c2a0bfc3e81eb6bb21b501b91ee3334
4
+ data.tar.gz: cfe0b22d3f66481284ab13cce5945d5c1bbeabf1a6d6d3ded3de2627f4fa227d
5
5
  SHA512:
6
- metadata.gz: 324838e853c77b63f71275495862dde22b000aa22802d4d1983fc46136804fb833e57bbeca562bf1cca0d4228b96924ca4c1581f92d30aa3aa184ee825f1f538
7
- data.tar.gz: 4627b59bd7e3cb3e9852c95cdb019fd70179dbec60e384c68175eec49b89fae58eca5073ecd02b3660563bb927ccfa4cab4218184906c62818be112eeb4b9943
6
+ metadata.gz: edf45d3847246ffdb1f4d460769b9765e6b21015bd8f0a4a5000f851250324e913dff4637477439cdb87d560363ba620034c604f0a6db12e732d95914ccbcc0e
7
+ data.tar.gz: 2f7fc2281f8f0596bc30a60ad218caf7630451270ac35ce51e9bc9f2ac59098b8b47120e2afa365497712cd0f5fc8b02c23b557cae07ad4059f74ce6d2f9123a
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Vite
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.11"
4
4
  end
5
5
  end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/dom_helpers'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/dom_helpers' is deprecated. Please use require 'opal_vite/concerns/v1/dom_helpers' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ DomHelpers = V1::DomHelpers
11
+ end
12
+ end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/js_proxy_ex'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/js_proxy_ex' is deprecated. Please use require 'opal_vite/concerns/v1/js_proxy_ex' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ JsProxyEx = V1::JsProxyEx
11
+ end
12
+ end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/react_helpers'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/react_helpers' is deprecated. Please use require 'opal_vite/concerns/v1/react_helpers' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ ReactHelpers = V1::ReactHelpers
11
+ end
12
+ end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/stimulus_helpers'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/stimulus_helpers' is deprecated. Please use require 'opal_vite/concerns/v1/stimulus_helpers' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ StimulusHelpers = V1::StimulusHelpers
11
+ end
12
+ end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/storable'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/storable' is deprecated. Please use require 'opal_vite/concerns/v1/storable' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ Storable = V1::Storable
11
+ end
12
+ end
@@ -4,4 +4,9 @@ require 'opal_vite/concerns/v1/toastable'
4
4
 
5
5
  `console.warn("[DEPRECATION] require 'opal_vite/concerns/toastable' is deprecated. Please use require 'opal_vite/concerns/v1/toastable' instead.")`
6
6
 
7
- # Module is already defined by v1, re-exported for backward compatibility
7
+ # Alias old module path for backward compatibility
8
+ module OpalVite
9
+ module Concerns
10
+ Toastable = V1::Toastable
11
+ end
12
+ end
@@ -2,8 +2,9 @@
2
2
 
3
3
  module OpalVite
4
4
  module Concerns
5
- # DomHelpers concern - provides common DOM manipulation methods
6
- module DomHelpers
5
+ module V1
6
+ # DomHelpers concern - provides common DOM manipulation methods
7
+ module DomHelpers
7
8
  # Create a custom event and dispatch it on a target
8
9
  def dispatch_custom_event(event_name, detail = {}, target = nil)
9
10
  target ||= window
@@ -81,9 +82,10 @@ module OpalVite
81
82
  def hide_element(el)
82
83
  set_style(el, 'display', 'none')
83
84
  end
85
+ end
84
86
  end
85
87
  end
86
88
  end
87
89
 
88
90
  # Alias for backward compatibility
89
- DomHelpers = OpalVite::Concerns::DomHelpers
91
+ DomHelpers = OpalVite::Concerns::V1::DomHelpers
@@ -2,27 +2,28 @@
2
2
 
3
3
  module OpalVite
4
4
  module Concerns
5
- # JS::ProxyEx - Extended JS proxy utilities for Ruby-like JavaScript interop
6
- #
7
- # This module provides Ruby-friendly wrappers around JavaScript objects and APIs
8
- # that opal_stimulus's JS::Proxy doesn't fully cover yet.
9
- #
10
- # Usage:
11
- # include OpalVite::Concerns::JsProxyEx
12
- #
13
- # # Global objects
14
- # local_storage.get_item('key')
15
- # json.parse(data)
16
- #
17
- # # Object creation
18
- # new_event('click', bubbles: true)
19
- # new_url('https://example.com')
20
- # new_regexp('[a-z]+')
21
- #
22
- # # Event listeners with proper block handling
23
- # window.add_event_listener('click') { |event| ... }
24
- #
25
- module JsProxyEx
5
+ module V1
6
+ # JS::ProxyEx - Extended JS proxy utilities for Ruby-like JavaScript interop
7
+ #
8
+ # This module provides Ruby-friendly wrappers around JavaScript objects and APIs
9
+ # that opal_stimulus's JS::Proxy doesn't fully cover yet.
10
+ #
11
+ # Usage:
12
+ # include OpalVite::Concerns::V1::JsProxyEx
13
+ #
14
+ # # Global objects
15
+ # local_storage.get_item('key')
16
+ # json.parse(data)
17
+ #
18
+ # # Object creation
19
+ # new_event('click', bubbles: true)
20
+ # new_url('https://example.com')
21
+ # new_regexp('[a-z]+')
22
+ #
23
+ # # Event listeners with proper block handling
24
+ # window.add_event_listener('click') { |event| ... }
25
+ #
26
+ module JsProxyEx
26
27
  # ============================================
27
28
  # Global JavaScript Objects
28
29
  # ============================================
@@ -406,9 +407,10 @@ module OpalVite
406
407
  return str if parts.length == 1
407
408
  parts[0] + parts[1..-1].map(&:capitalize).join
408
409
  end
410
+ end
409
411
  end
410
412
  end
411
413
  end
412
414
 
413
415
  # Alias for backward compatibility
414
- JsProxyEx = OpalVite::Concerns::JsProxyEx
416
+ JsProxyEx = OpalVite::Concerns::V1::JsProxyEx