igniteui-astro-components 0.0.9 → 0.0.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-astro-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Reusable Astro components, layouts, and integrations for Infragistics / Ignite UI documentation sites. Replaces the Starlight defaults with project-specific implementations.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -17,8 +17,6 @@ import './Search.scss';
17
17
  class="search-trigger"
18
18
  aria-label="Search documentation"
19
19
  title="Search (Ctrl+K)"
20
- commandfor="search-dialog"
21
- command="show-modal"
22
20
  >
23
21
  <igc-icon name="search" collection="docs" aria-hidden="true"></igc-icon>
24
22
  <span class="search-trigger__label">Search</span>
@@ -128,13 +126,8 @@ import './Search.scss';
128
126
  }
129
127
  updateSearchHint();
130
128
 
131
- // Declarative show-modal via commandfor fires a `command` event on the dialog —
132
- // use it to load page find and focus the input.
133
- document.addEventListener('command', async (e: Event) => {
134
- const ce = e as CommandEvent;
135
- if (ce.target instanceof HTMLDialogElement && ce.target.id === 'search-dialog') {
136
- await loadAndMountPagefind();
137
- }
129
+ document.getElementById('search-trigger')?.addEventListener('click', () => {
130
+ openSearch();
138
131
  });
139
132
 
140
133
  // Keyboard shortcut