@refraction-ui/astro 0.4.10 → 0.4.12

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.
@@ -191,5 +191,16 @@ const configJSON = JSON.stringify(api.config)
191
191
  // Responsive listener
192
192
  window.addEventListener('resize', updateBreakpoint)
193
193
  updateBreakpoint()
194
+
195
+ // Dev warning: ensure AppShellHeader is placed correctly inside AppShellMain
196
+ var header = shell.querySelector('[data-rfr-shell-header]')
197
+ var main = shell.querySelector('[data-rfr-shell-main]')
198
+ if (header && main && !main.contains(header)) {
199
+ console.warn(
200
+ '[refraction-ui] <AppShellHeader> should be placed inside <AppShellMain>, ' +
201
+ 'not as a direct child of <AppShell>. The current placement collapses ' +
202
+ 'the header into a vertical sliver. See: https://github.com/elloloop/refraction-ui/tree/main/packages/astro-app-shell#readme'
203
+ )
204
+ }
194
205
  })()
195
206
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refraction-ui/astro",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "All Refraction UI Astro components in one package",
5
5
  "type": "module",
6
6
  "exports": {