uxml-preview 0.3.0 → 0.4.0

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.
@@ -196,6 +196,7 @@ export type SheetItem = {
196
196
  kind: 'import';
197
197
  url: string;
198
198
  span: Span;
199
+ resolvedSheet?: number;
199
200
  } | {
200
201
  kind: 'unknown';
201
202
  span: Span;
@@ -244,6 +245,11 @@ export interface UxmlDocument {
244
245
  * own `source`, which is why the source text lives on the sheet.
245
246
  */
246
247
  sheets: StyleSheet[];
248
+ /** Stylesheet entry points and the element subtree each one is attached to. */
249
+ styleRoots?: Array<{
250
+ sheet: number;
251
+ scope: NodeId;
252
+ }>;
247
253
  /**
248
254
  * Parse-time only — `'malformed'` (bad syntax) and `'import-unresolved'`
249
255
  * (a `<Style src="…">` or `@import` that `resolveImport` could not read).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "uxml-preview",
3
- "version": "0.3.0",
4
- "description": "Preview Unity UI Toolkit UXML/USS in a browser without the Unity Editor. Uses Yoga (WebAssembly), the same layout engine UI Toolkit uses: 548 of 564 element coordinates identical to Unity 6. Parses and writes files back byte-for-byte.",
3
+ "version": "0.4.0",
4
+ "description": "Preview Unity UI Toolkit UXML/USS in a browser without the Unity Editor. Uses Yoga (WebAssembly), the same layout engine UI Toolkit uses: 660 of 676 element coordinates identical to Unity 6. Parses and writes files back byte-for-byte.",
5
5
  "keywords": [
6
6
  "unity",
7
7
  "unity3d",