@refraction-ui/astro 0.8.0 → 0.8.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.
|
@@ -22,7 +22,6 @@ const REFRACTION_FRAME = /@refraction-ui\//
|
|
|
22
22
|
/** Frameworks a refraction-ui adapter can run under. */
|
|
23
23
|
export type LibraryFramework =
|
|
24
24
|
| 'react'
|
|
25
|
-
| 'angular'
|
|
26
25
|
| 'astro'
|
|
27
26
|
| 'vue'
|
|
28
27
|
| 'svelte'
|
|
@@ -203,7 +202,7 @@ export type LibraryOriginIdentity = Pick<
|
|
|
203
202
|
|
|
204
203
|
/**
|
|
205
204
|
* The single capture primitive shared by every per-framework seam (React error
|
|
206
|
-
* boundary,
|
|
205
|
+
* boundary, Astro middleware). It performs the entire
|
|
207
206
|
* guarded flow in one place so the seams stay thin and identical in behavior:
|
|
208
207
|
*
|
|
209
208
|
* 1. **Library-origin filter** — if the error's stack has no
|
package/dist/shared/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Framework-agnostic base prop types for all refraction-ui components.
|
|
3
|
-
* These are headless core types — no React
|
|
3
|
+
* These are headless core types — no React or Astro imports.
|
|
4
4
|
* Framework wrappers extend these with framework-specific types.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Inline script for preventing theme flash on page load.
|
|
3
3
|
* Inject this as a <script> tag in the <head> before any CSS.
|
|
4
|
-
* Works with any framework (React,
|
|
4
|
+
* Works with any framework (React, Astro, plain HTML).
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
export function getThemeScript(
|